@media screen {
    #printSection {
        display: none;
    }
}
@media print {
    body * {
        visibility:hidden;
    }
    #printSection, #printSection * {
        visibility:visible;
    }
    #printSection {
        position:absolute;
        left:0;
        top:0;
    }
    #content-page
    {
        display:none;
    }
}

.custom-nav-padding{
    padding: 1.5rem 1rem !important;
    font-size: 18px;
    color: black;
}

.page-stats-bar {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
    margin-top: 8px;
    padding-top: 18px;
    border-top: 1px dashed #d1d5db;
}

.page-stat-item {
    position: relative;
    overflow: hidden;
    min-width: 0;
    padding: 16px 18px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #e8ecf1;
    border-left-width: 4px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.page-stat-item::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    opacity: 0.07;
    background: currentColor;
    pointer-events: none;
}

.page-stat-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.1);
}

.page-stat-item.total {
    color: #2563eb;
    border-left-color: #2563eb;
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
}

.page-stat-item.active {
    color: #16a34a;
    border-left-color: #16a34a;
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
}

.page-stat-item.inactive {
    color: #dc2626;
    border-left-color: #dc2626;
    background: linear-gradient(135deg, #fef2f2 0%, #ffffff 100%);
}

.page-stat-label {
    font-size: 11px;
    color: #64748b;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    line-height: 1.3;
    z-index: 1;
}

.page-stat-value {
    font-size: 30px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.5px;
    z-index: 1;
}

.page-stat-item.total .page-stat-value { color: #2563eb; }
.page-stat-item.active .page-stat-value { color: #16a34a; }
.page-stat-item.inactive .page-stat-value { color: #dc2626; }

.page-stat-item.cat-color-1 { color: #7c3aed; border-left-color: #7c3aed; background: linear-gradient(135deg, #f5f3ff 0%, #ffffff 100%); }
.page-stat-item.cat-color-1 .page-stat-value { color: #7c3aed; }
.page-stat-item.cat-color-2 { color: #0891b2; border-left-color: #0891b2; background: linear-gradient(135deg, #ecfeff 0%, #ffffff 100%); }
.page-stat-item.cat-color-2 .page-stat-value { color: #0891b2; }
.page-stat-item.cat-color-3 { color: #d97706; border-left-color: #d97706; background: linear-gradient(135deg, #fffbeb 0%, #ffffff 100%); }
.page-stat-item.cat-color-3 .page-stat-value { color: #d97706; }
.page-stat-item.cat-color-4 { color: #db2777; border-left-color: #db2777; background: linear-gradient(135deg, #fdf2f8 0%, #ffffff 100%); }
.page-stat-item.cat-color-4 .page-stat-value { color: #db2777; }
.page-stat-item.cat-color-5 { color: #059669; border-left-color: #059669; background: linear-gradient(135deg, #ecfdf5 0%, #ffffff 100%); }
.page-stat-item.cat-color-5 .page-stat-value { color: #059669; }

.page-stats-bar.category-stats .page-stat-label {
    max-width: 100%;
    word-break: break-word;
}

.page-with-stats {
    padding: 1.5rem 1.75rem 1.75rem;
}

.iq-card:has(.page-with-stats) {
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.07);
    overflow: hidden;
}

.page-stats-section {
    background: linear-gradient(145deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 22px;
}

.page-stats-bar-first {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    margin-bottom: 0;
}

.page-list-toolbar {
    gap: 14px;
    margin-bottom: 20px;
    padding: 14px 18px;
    background: #ffffff;
    border: 1px solid #e8ecf1;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
}

.page-list-toolbar .card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.2px;
}

.page-list-toolbar .btn-primary {
    border-radius: 8px;
    padding: 9px 22px;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    box-shadow: 0 3px 10px rgba(37, 99, 235, 0.28);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.page-list-toolbar .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(37, 99, 235, 0.35);
}

.page-table-section {
    margin-top: 0;
    border: 1px solid #e8ecf1;
    border-radius: 12px;
    overflow-x: auto;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
}

.page-table-section .dataTables_wrapper {
    width: 100%;
    overflow: visible;
}

.page-table-section .dataTables_scrollHead,
.page-table-section .dataTables_scrollBody {
    width: 100% !important;
}

.page-table-section .dataTables_scrollHeadInner,
.page-table-section .dataTables_scrollHeadInner table,
.page-table-section .dataTables_scrollBody table {
    width: 100% !important;
}

.page-table-section .dataTables_scrollBody {
    overflow: visible !important;
}

.page-table-section .rao_table {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.page-table-section .rao_table thead th {
    background: #f8fafc;
    color: #334155;
    font-weight: 700;
    font-size: 13px;
    border-bottom: 2px solid #e2e8f0 !important;
}

@media (max-width: 991px) {
    .page-stats-bar {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 12px;
    }

    .page-stat-value {
        font-size: 26px;
    }

    .page-with-stats {
        padding: 1.25rem 1.25rem 1.5rem;
    }
}

@media (max-width: 767px) {
    .page-stats-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .page-stat-item.total {
        grid-column: 1 / -1;
    }

    .page-stat-item {
        padding: 14px 15px;
    }

    .page-stat-value {
        font-size: 24px;
    }

    .page-stat-label {
        font-size: 10px;
    }

    .page-list-toolbar {
        flex-direction: column;
        align-items: stretch !important;
        text-align: center;
        padding: 14px;
    }

    .page-list-toolbar .btn-primary {
        width: 100%;
    }

    .page-stats-section {
        padding: 12px;
        margin-bottom: 16px;
    }
}

@media (max-width: 480px) {
    .page-stats-bar {
        grid-template-columns: 1fr;
    }

    .page-with-stats {
        padding: 1rem;
    }
}

.page-zone-filter {
    padding: 14px 18px;
    background: #ffffff;
    border: 1px solid #e8ecf1;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
}

.page-zone-filter-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #64748b;
    margin-bottom: 8px;
}

.page-zone-select {
    border-radius: 8px;
    border-color: #e2e8f0;
    font-weight: 500;
    color: #0f172a;
    max-width: 100%;
}

.page-zone-select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.page-stats-group-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #475569;
    margin: 0 0 10px 2px;
}

.page-stats-group-title:not(:first-of-type) {
    margin-top: 6px;
}