/* ============================
   GEPRO - SAPF Manager
   Colors inspired by PAD (pad.cm)
   Primary: #2ea3f2
   ============================ */

:root {
    --primary: #2ea3f2;
    --primary-dark: #1a8ad4;
    --primary-light: #e8f4fd;
    --primary-lighter: #f0f8ff;
    --secondary: #0b3d6b;
    --accent: #f5a623;
    --success: #27ae60;
    --danger: #e74c3c;
    --warning: #f39c12;
    --text-dark: #2c3e50;
    --text-medium: #555;
    --text-light: #888;
    --border: #e0e6ed;
    --bg-light: #f5f7fa;
    --bg-white: #ffffff;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-lg: 0 4px 20px rgba(0,0,0,0.12);
    --radius: 8px;
    --radius-sm: 4px;
    --sidebar-width: 250px;
    --topbar-height: 60px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    min-height: 100vh;
}

/* ===== Layout ===== */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* ===== Sidebar ===== */
.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, var(--secondary) 0%, #0a2e52 100%);
    color: white;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    color: white;
}

.logo-text strong {
    display: block;
    font-size: 18px;
    letter-spacing: 1px;
}

.logo-text small {
    font-size: 10px;
    opacity: 0.7;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.sidebar-nav {
    flex: 1;
    padding: 16px 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background: rgba(255,255,255,0.08);
    color: white;
}

.nav-item.active {
    background: rgba(46, 163, 242, 0.15);
    color: var(--primary);
    border-left-color: var(--primary);
}

.nav-item i {
    width: 20px;
    text-align: center;
    font-size: 16px;
}

.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: 13px;
    font-weight: 600;
}

.user-role {
    font-size: 11px;
    opacity: 0.6;
}

/* ===== Main Content ===== */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ===== Top Bar ===== */
.topbar {
    height: var(--topbar-height);
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 24px;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 50;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-dark);
    cursor: pointer;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-medium);
}

.breadcrumb span:last-child {
    color: var(--text-dark);
    font-weight: 600;
}

.breadcrumb i {
    font-size: 10px;
    color: var(--text-light);
}

.topbar-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 16px;
}

.current-date {
    font-size: 13px;
    color: var(--text-medium);
    background: var(--primary-light);
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 500;
}

/* ===== Pages ===== */
.page {
    padding: 24px;
    flex: 1;
}

.page-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
}

/* ===== Dashboard ===== */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow);
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.stat-icon.green { background: #e8f8f0; color: var(--success); }
.stat-icon.orange { background: #fef4e6; color: var(--warning); }
.stat-icon.red { background: #fde8e6; color: var(--danger); }

.stat-number {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    display: block;
}

.stat-label {
    font-size: 13px;
    color: var(--text-light);
}

.dashboard-recent {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}

.dashboard-recent h3 {
    font-size: 16px;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.recent-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.recent-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius-sm);
    background: var(--bg-light);
    font-size: 13px;
}

.recent-item .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.recent-item .info { flex: 1; }
.recent-item .time { color: var(--text-light); font-size: 12px; }

/* ===== Rooms Page ===== */
.rooms-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.week-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.week-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    min-width: 200px;
    text-align: center;
}

.btn-icon {
    width: 34px;
    height: 34px;
    border: 1px solid var(--border);
    background: var(--bg-white);
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-medium);
    transition: all 0.2s;
}

.btn-icon:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    background: var(--primary-light);
    color: var(--primary);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-sm:hover {
    background: var(--primary);
    color: white;
}

/* Room Tabs */
.room-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.room-tab {
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid var(--border);
    background: var(--bg-white);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.room-tab:first-child { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.room-tab:last-child { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.room-tab:not(:first-child) { border-left: none; }

.room-tab:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.room-tab.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Planning Container */
.planning-container {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.planning-grid-wrapper {
    flex: 1;
    overflow-x: auto;
}

/* Planning Grid */
.planning-grid {
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    min-width: 600px;
    overflow: hidden;
}

.grid-header {
    display: grid;
    grid-template-columns: 70px repeat(5, 1fr);
    border-bottom: 2px solid var(--primary);
}

.grid-header-cell {
    padding: 12px 8px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    color: var(--text-dark);
    background: var(--primary-lighter);
}

.grid-header-cell:first-child {
    color: var(--text-light);
    font-size: 11px;
    text-transform: uppercase;
}

.grid-header-cell.today {
    background: var(--primary);
    color: white;
    border-radius: 0;
}

.grid-body {
    position: relative;
}

.grid-row {
    display: grid;
    grid-template-columns: 70px repeat(5, 1fr);
    border-bottom: 1px solid #f0f2f5;
}

.grid-row:last-child { border-bottom: none; }

.grid-time {
    padding: 0 8px;
    font-size: 12px;
    color: var(--text-light);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 4px;
    border-right: 1px solid #f0f2f5;
    height: 50px;
}

.grid-cell {
    height: 50px;
    border-right: 1px solid #f0f2f5;
    position: relative;
    cursor: pointer;
    transition: background 0.15s;
}

.grid-cell:last-child { border-right: none; }

.grid-cell:hover {
    background: var(--primary-lighter);
}

/* Reservation blocks */
.reservation-block {
    position: absolute;
    left: 3px;
    right: 3px;
    border-radius: 6px;
    padding: 6px 8px;
    font-size: 11px;
    color: white;
    cursor: pointer;
    overflow: hidden;
    z-index: 5;
    transition: transform 0.15s, box-shadow 0.15s;
    line-height: 1.3;
}

.reservation-block:hover {
    transform: scale(1.02);
    box-shadow: 0 3px 12px rgba(0,0,0,0.2);
    z-index: 10;
}

.reservation-block .res-title {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.reservation-block .res-org {
    font-size: 10px;
    opacity: 0.85;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Color palette for directions */
.color-dg { background: #2ea3f2; }
.color-dsr { background: #3498db; }
.color-dai { background: #9b59b6; }
.color-dapc { background: #1abc9c; }
.color-dcrp { background: #e67e22; }
.color-dcap { background: #2c3e50; }
.color-dex { background: #27ae60; }
.color-dop { background: #16a085; }
.color-dcfm { background: #d35400; }
.color-ddlm { background: #2980b9; }
.color-dap { background: #8e44ad; }
.color-drh { background: #c0392b; }
.color-dag { background: #f39c12; }
.color-dmpcp { background: #7f8c8d; }
.color-dfc { background: #e74c3c; }
.color-dsi { background: #0984e3; }
.color-dcg { background: #6c5ce7; }
.color-daj { background: #00b894; }
.color-comport { background: #fd79a8; }

/* Reservation Form Panel */
.reservation-form-panel {
    width: 300px;
    flex-shrink: 0;
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
}

.reservation-form-panel h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-dark);
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-family: inherit;
    color: var(--text-dark);
    background: var(--bg-white);
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(46, 163, 242, 0.15);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.btn-primary {
    width: 100%;
    padding: 12px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

/* ===== Reservations List ===== */
.reservations-filter {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.filter-btn {
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid var(--border);
    background: var(--bg-white);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.reservations-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.reservation-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 16px 20px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: transform 0.15s;
    cursor: pointer;
    border-left: 4px solid var(--primary);
}

.reservation-card:hover {
    transform: translateX(4px);
}

.reservation-card .rc-color {
    width: 6px;
    height: 40px;
    border-radius: 3px;
    flex-shrink: 0;
}

.reservation-card .rc-info {
    flex: 1;
}

.reservation-card .rc-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.reservation-card .rc-meta {
    font-size: 12px;
    color: var(--text-light);
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.reservation-card .rc-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.reservation-card .rc-actions {
    display: flex;
    gap: 8px;
}

.btn-danger {
    padding: 8px 16px;
    background: var(--danger);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s;
}

.btn-danger:hover { background: #c0392b; }

.btn-secondary {
    padding: 8px 16px;
    background: var(--bg-light);
    color: var(--text-medium);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}

.btn-secondary:hover { background: var(--border); }

/* ===== Modal ===== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 200;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--bg-white);
    border-radius: var(--radius);
    width: 90%;
    max-width: 480px;
    box-shadow: var(--shadow-lg);
    animation: modalIn 0.2s ease;
}

@keyframes modalIn {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 16px;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    font-size: 18px;
    color: var(--text-light);
    cursor: pointer;
}

.modal-body {
    padding: 24px;
}

.modal-body .detail-row {
    display: flex;
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
}

.modal-body .detail-label {
    width: 140px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
}

.modal-body .detail-value {
    flex: 1;
    font-size: 14px;
    color: var(--text-dark);
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

/* ===== Toast ===== */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--success);
    color: white;
    padding: 14px 24px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 300;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.error {
    background: var(--danger);
}

/* ===== Empty State ===== */
.empty-state {
    text-align: center;
    padding: 40px;
    color: var(--text-light);
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 12px;
    color: var(--border);
}

.empty-state p {
    font-size: 14px;
}

/* ===== Room Info Bar ===== */
.room-info-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 16px;
    background: var(--primary-light);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--text-medium);
}

.room-info-bar .ri-icon {
    color: var(--primary);
    font-size: 16px;
}

.room-info-bar .ri-capacity {
    font-weight: 600;
    color: var(--text-dark);
}

/* ===== Room Info Bar extras ===== */
.ri-sep {
    color: var(--border);
}

.ri-capacity-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ri-edit-btn {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 3px;
    transition: all 0.2s;
}

.ri-edit-btn:hover {
    background: var(--primary);
    color: white;
}

.ri-config-btn {
    background: var(--bg-white);
    border: 1px solid var(--border);
    color: var(--text-medium);
    cursor: pointer;
    font-size: 12px;
    font-family: inherit;
    padding: 4px 12px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    margin-left: auto;
}

.ri-config-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ===== Room Config Modal ===== */
.room-config-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.room-config-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    gap: 16px;
}

.room-config-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    flex: 1;
}

.room-config-input-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.room-config-input {
    width: 80px;
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    text-align: center;
    color: var(--text-dark);
}

.room-config-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(46, 163, 242, 0.15);
}

.room-config-unit {
    font-size: 12px;
    color: var(--text-light);
}

/* ===== Hint Bar ===== */
.hint-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: #fffbe6;
    border: 1px solid #ffe58f;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-size: 12px;
    color: #ad8b00;
}

.hint-bar i {
    font-size: 14px;
    color: #faad14;
}

/* ===== Print Button ===== */
.btn-print {
    background: var(--bg-white);
    color: var(--text-medium);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-print:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ===== Cell hover highlight ===== */
.grid-cell:hover::after {
    content: '+';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 18px;
    color: var(--primary);
    opacity: 0.4;
    font-weight: 700;
    pointer-events: none;
}

/* ===== Responsive ===== */
@media (max-width: 1100px) {
    .planning-container {
        flex-direction: column;
    }
    .reservation-form-panel {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.open {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0;
    }
    .menu-toggle {
        display: block;
    }
    .dashboard-stats {
        grid-template-columns: 1fr 1fr;
    }
    .planning-grid {
        min-width: 500px;
    }
}

@media (max-width: 480px) {
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    .page {
        padding: 16px;
    }
    .rooms-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ===== Print Styles ===== */
@media print {
    * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }

    body { background: white; }

    .sidebar,
    .topbar,
    .reservation-form-panel,
    .hint-bar,
    .btn-print,
    .week-nav button,
    .modal-overlay,
    .toast,
    #page-dashboard,
    #page-reservations {
        display: none !important;
    }

    .main-content {
        margin-left: 0 !important;
    }

    .page {
        padding: 0 !important;
    }

    .planning-container {
        display: block !important;
    }

    .planning-grid-wrapper {
        overflow: visible !important;
    }

    .planning-grid {
        min-width: 100% !important;
        box-shadow: none !important;
        border: 1px solid #ccc;
    }

    /* Print header */
    .print-header {
        display: block !important;
        text-align: center;
        padding: 20px 0;
        border-bottom: 2px solid #2ea3f2;
        margin-bottom: 16px;
    }

    .print-header h1 {
        font-size: 20px;
        color: #0b3d6b;
        margin-bottom: 4px;
    }

    .print-header p {
        font-size: 13px;
        color: #555;
    }

    .rooms-header {
        margin-bottom: 8px !important;
    }

    .rooms-header .page-title {
        font-size: 16px !important;
    }

    .week-label {
        font-size: 13px !important;
    }

    .room-tabs .room-tab:not(.active) {
        display: none !important;
    }

    .room-tab.active {
        background: #2ea3f2 !important;
        color: white !important;
        border-radius: 4px !important;
    }

    .room-info-bar {
        background: #f0f8ff !important;
        border: 1px solid #ccc;
    }

    .reservation-block {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .grid-cell:hover::after { display: none !important; }

    /* Print footer */
    .print-footer {
        display: block !important;
        text-align: center;
        padding: 12px 0;
        margin-top: 16px;
        border-top: 1px solid #ccc;
        font-size: 11px;
        color: #888;
    }
}

/* Hide print elements on screen */
.print-header, .print-footer {
    display: none;
}
