@import url('https://fonts.googleapis.com/css2?family=Noto+Serif:ital,wght@0,400;0,700;1,400;1,700&display=swap');

:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --bg-main: #0f172a;
    --bg-card: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border: #334155;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --accent: #8b5cf6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.5;
}

.dashboard {
    display: grid;
    grid-template-columns: 260px 1fr;
    height: 100vh;
    overflow: hidden;
    transition: grid-template-columns 0.3s ease;
}

.dashboard.sidebar-collapsed {
    grid-template-columns: 0px 1fr;
}

/* Sidebar */
aside {
    background-color: var(--bg-card);
    border-right: 1px solid var(--border);
    padding: 2rem 1.5rem;
    overflow-y: auto;
    overflow-x: hidden;
    white-space: nowrap;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

aside::-webkit-scrollbar {
    width: 5px;
}

aside::-webkit-scrollbar-track {
    background: transparent;
}

aside::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 10px;
}

.sidebar-collapsed aside {
    padding: 2rem 0;
    width: 0;
    opacity: 0;
    border-right: none;
}

aside h1 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 2rem;
    background: linear-gradient(to right, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav {
    flex: 1;
    display: flex;
    flex-direction: column;
}

nav ul:not(.nav-bottom) {
    list-style: none;
    flex: 1;
    overflow-y: auto;
    margin-right: -0.5rem;
    /* Hide scrollbar bleed */
    padding-right: 0.5rem;
}

.nav-bottom {
    list-style: none;
}

.nav-bottom {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

nav li {
    margin-bottom: 0.5rem;
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    transition: 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

nav a.active,
nav a:hover {
    background-color: var(--bg-main);
    color: var(--text-main);
    border-color: rgba(255, 255, 255, 0.1);
}

.nav-details summary {
    color: var(--text-muted);
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 500;
    transition: 0.2s;
    list-style: none;
    display: flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.nav-details summary::-webkit-details-marker {
    display: none;
}

.nav-details summary:hover {
    color: var(--text-main);
    background-color: var(--bg-main);
    border-color: rgba(255, 255, 255, 0.1);
}

.sub-nav {
    margin-left: 1rem;
    border-left: 1px solid var(--border);
    padding-left: 0.5rem;
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #f59e0b;
    /* Warning color */
}

.status-dot.online {
    background-color: #10b981;
    box-shadow: 0 0 0 rgba(16, 185, 129, 0.4);
    animation: status-pulse 2s infinite;
}

.status-dot.offline {
    background-color: #ef4444;
}

@keyframes status-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}


.chevron-icon {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
    color: var(--text-muted);
}

.nav-details[open] .chevron-icon {
    transform: rotate(90deg);
    color: var(--accent);
}

/* Main Content */
main {
    padding: 2rem 3rem;
    overflow-y: auto;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background-color: var(--bg-card);
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid var(--border);
}

.stat-card h3 {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.stat-card .value {
    font-size: 1.5rem;
    font-weight: 700;
}

/* Data Table */
.card {
    background-color: var(--bg-card);
    border-radius: 1rem;
    border: 1px solid var(--border);
    overflow: hidden;
}

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

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background-color: rgba(255, 255, 255, 0.02);
    text-align: left;
    padding: 1rem 1.5rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}

td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.875rem;
}

tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

.row-complete {
    background-color: rgba(34, 197, 94, 0.03) !important;
}

.row-complete td:first-child {
    border-left: 4px solid var(--success);
}

.view-toggle {
    display: flex;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.4rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border);
    width: fit-content;
    gap: 0.5rem;
}

.toggle-btn {
    padding: 0.6rem 1.25rem;
    border-radius: 0.5rem;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.toggle-btn:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

/* Base Active State */
.toggle-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

/* Action Specific Active States */
#tab-pending.active {
    background: var(--warning);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

#tab-completed.active {
    background: var(--success);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.tab-count {
    background: rgba(0, 0, 0, 0.15);
    padding: 0.1rem 0.5rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
}

.action-btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    min-width: 320px; /* Ensures space for buttons */
}

.action-btn {
    white-space: nowrap;
    padding: 0.4rem 0.75rem !important;
    min-width: fit-content;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
    border: none;
    font-size: 0.875rem;
}

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

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

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: none;
    z-index: 2000;
}

#reportModal {
    z-index: 3000;
}

#confirmModal {
    z-index: 9999 !important;
}

.modal {
    background: var(--bg-card);
    width: 600px;
    max-width: 95vw;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 1rem;
    border: 1px solid var(--border);
    padding: 2rem;
    position: relative;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

input,
select {
    width: 100%;
    background: var(--bg-main);
    border: 1px solid var(--border);
    padding: 0.75rem;
    border-radius: 0.5rem;
    color: white;
    transition: 0.3s;
}

input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.2);
}

.modal-section {
    background: rgba(255, 255, 255, 0.02);
    padding: 1.25rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border);
    margin-bottom: 1.5rem;
}

.info-tooltip {
    margin-left: 0.5rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    opacity: 0.6;
    transition: all 0.2s;
}

.info-tooltip:hover {
    opacity: 1;
    color: var(--text-main);
    transform: scale(1.1);
}

.modal-section h4 {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Tooltip System */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 260px;
    background-color: #1e293b;
    color: #f8fafc;
    text-align: left;
    border-radius: 10px;
    padding: 12px 16px;
    position: absolute;
    z-index: 9999;
    top: 150%; /* Position below for safety */
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #334155;
    font-size: 0.8rem;
    font-weight: 400;
    line-height: 1.5;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.6);
    pointer-events: none;
}

.tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    bottom: 100%; /* Arrow at top */
    left: 50%;
    margin-left: -8px;
    border-width: 8px;
    border-style: solid;
    border-color: transparent transparent #334155 transparent;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.examiner-inputs {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.examiner-row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.75rem;
    align-items: start;
    background: rgba(0, 0, 0, 0.1);
    padding: 0.75rem;
    border-radius: 0.5rem;
}

.examiner-fields {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.examiner-row span {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 0.5rem;
}

/* Sorting */
.sort-icon {
    font-size: 0.7rem;
    margin-left: 5px;
    color: var(--text-muted);
    transition: all 0.2s;
}

.sort-icon.active {
    color: var(--accent);
}

.tab-count {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.1rem 0.6rem;
    border-radius: 99px;
    font-size: 0.75rem;
    margin-left: 0.5rem;
    opacity: 0.8;
}

.active .tab-count {
    background: rgba(255, 255, 255, 0.2);
    opacity: 1;
}

/* Pagination & Global Modals */
.btn-pagination {
    background: rgba(79, 70, 229, 0.08);
    /* Semi-transparent Indigo */
    border: 1px solid rgba(79, 70, 229, 0.2);
    color: #a5b4fc;
    padding: 0.6rem 1.25rem;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-pagination:hover:not(:disabled) {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
    border-color: transparent;
}

.btn-pagination:disabled {
    opacity: 0.2;
    cursor: not-allowed;
    filter: saturate(0);
}

.close-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    color: var(--text-muted);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.25rem;
    line-height: 1;
}

.close-btn:hover {
    background: #ef4444;
    /* Standard Red for Danger */
    color: white;
    transform: rotate(90deg);
    border-color: transparent;
}

/* Notification Tags & Specific Layouts */
.type-badge {
    display: inline-block;
    width: 95px;
    /* Fixed uniform width */
    text-align: center;
    padding: 0.35rem 0;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.type-accepted {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.type-rejected {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.type-skipped {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.type-backup {
    background: rgba(79, 70, 229, 0.1);
    color: #818cf8;
    border: 1px solid rgba(79, 70, 229, 0.2);
}

.note-card {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.note-card:hover {
    background: rgba(255, 255, 255, 0.03);
    transform: translateX(4px);
    border-color: rgba(79, 70, 229, 0.3);
}

.note-content h4 {
    font-size: 0.95rem;
    margin: 0;
    color: var(--text-main);
}

.note-content p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 4px 0 0 0;
}

/* Badge System */
.status-badge {
    width: 95px;
    justify-content: center;
    padding: 0.35rem 0;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.nav-badge {
    background: #ef4444;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
    white-space: nowrap;
}

.nav-badge .txt {
    display: inline-block;
}

.badge-pending {
    background: rgba(148, 163, 184, 0.1);
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.badge-active {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-acknowledged {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.badge-submitted {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.4);
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.1);
    font-weight: 800;
    animation: badge-reveal 0.5s ease-out;
}

.badge-submitted i {
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.6;
    }
}

@keyframes badge-reveal {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.badge-rejected {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-skipped {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* 🔥 Fix TinyMCE popup inside modal */
.tox-tinymce-aux,
.tox-dialog,
.tox-menu,
.tox-silver-sink {
    z-index: 9999 !important;
}

.tox-tinymce-aux,
.tox-dialog,
.tox-menu,
.tox-silver-sink {
    position: fixed !important;
    z-index: 99999 !important;
}

.hamburger {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.25rem;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    transition: all 0.2s;
    margin-right: 0.5rem;
}

.sub-nav a {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    border-radius: 0.4rem;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.sub-nav a.active,
.sub-nav a:hover {
    border-color: rgba(79, 70, 229, 0.2);
}

/* Premium UI Enhancements */
.grid-layout {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 2rem;
    align-items: start;
}

.glass-card {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.25rem;
    position: relative;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
}

.card-header {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    border-top-left-radius: 1.25rem;
    border-top-right-radius: 1.25rem;
}

.card-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.card-body {
    padding: 1.5rem;
}

.btn-premium {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    font-weight: 700;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -5px rgba(79, 70, 229, 0.5);
    filter: brightness(1.1);
}

.info-note {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(79, 70, 229, 0.1);
    border: 1px solid rgba(79, 70, 229, 0.2);
    border-radius: 0.75rem;
    display: flex;
    gap: 1rem;
    align-items: start;
    font-size: 0.8rem;
    color: #a5b4fc;
    line-height: 1.4;
}

.info-note i {
    font-size: 1.1rem;
    color: var(--primary);
}

.account-grid {
    display: grid;
    gap: 1rem;
}

.btn-icon {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.2s;
}

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

.loading-state {
    padding: 4rem 2rem;
    text-align: center;
    color: var(--text-muted);
}

.loading-state i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

/* Master/Active status indicator refinement */
.status-pill {
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-pill.active {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-pill.inactive {
    background: rgba(148, 163, 184, 0.1);
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.master-pill {
    background: linear-gradient(to right, var(--primary), var(--accent));
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 800;
}

.hamburger:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary);
}

.hamburger i {
    pointer-events: none;
}

/* Mobile Responsiveness */
@media screen and (max-width: 768px) {
    .dashboard {
        grid-template-columns: 1fr;
    }
    
    .dashboard.sidebar-collapsed {
        grid-template-columns: 1fr;
    }
    
    aside {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        z-index: 2500;
        width: 260px !important;
        opacity: 1 !important;
        background-color: var(--bg-card);
        border-right: 1px solid var(--border) !important;
        transition: transform 0.3s ease;
        transform: translateX(0);
        padding: 1rem 1rem !important;
    }

    .dashboard.sidebar-collapsed aside {
        transform: translateX(-100%);
    }

    main {
        padding: 1.5rem 1rem;
    }

    header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .user-profile {
        align-self: flex-end;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .table-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .table-header > div {
        margin: 0 !important;
        max-width: none !important;
    }
    
    .table-header > div:last-child {
        align-self: flex-start;
        flex-wrap: wrap;
    }

    .view-toggle {
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.25rem;
    }
    
    .toggle-btn {
        flex: 1;
        justify-content: center;
        font-size: 0.75rem;
        padding: 0.5rem;
    }

    .card {
        overflow-x: auto;
    }

    table {
        min-width: 800px;
    }

    .modal {
        padding: 1.5rem;
        width: 90% !important;
        margin: 1rem auto;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }
}

/* Print CSS for Certificates */
@media print {
    @page {
        size: A4;
        margin: 0;
    }
    
    body {
        margin: 0;
        padding: 0;
        background: white !important;
        color: black !important;
    }
    
    body > *:not(#printArea) {
        display: none !important;
    }
    
    #printArea {
        display: block !important;
    }
    
    #printArea {
        width: 210mm;
        min-height: 297mm;
        padding: 2cm;
        margin: 0 auto;
        font-family: 'Noto Serif', serif;
        font-size: 12pt;
        line-height: 1.6;
        overflow-wrap: break-word;
        word-wrap: break-word;
    }
    
    #printArea, #printArea * {
        font-family: 'Noto Serif', serif !important;
    }
    
    #printArea h1 {
        text-align: center;
        font-size: 24pt;
        text-transform: uppercase;
        margin-bottom: 2cm;
        font-weight: bold;
        text-decoration: underline;
    }
    
    #printArea p {
        margin-bottom: 1.5cm;
        text-align: justify;
    }
    
    #printArea .signature {
        margin-top: 4cm;
        line-height: 1.5;
    }
}