:root{
    --dark:#111827;
    --dark-2:#1f2937;
    --green:#374151;
    --green-dark:#111827;
    --green-soft:#f3f4f6;
    --green-accent:#9ca3af;
    --yellow:#fbbf24;
    --red:#ef4444;
    --blue:#2563eb;
    --text:#1f2937;
    --muted:#64748b;
    --light:#f6f7f8;
    --border:#d1d5db;
    --white:#ffffff;
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:"Segoe UI", Arial, sans-serif;
}

body{
    background:var(--light);
    color:var(--text);
}

/* AUTH PAGES */

.auth-page{
    min-height:100vh;
    background:
        radial-gradient(circle at 90% 0%,rgba(107, 114, 128, .20),transparent 22%),
        linear-gradient(135deg,#111827 0%,#374151 48%,#d1d5db 100%);
    display:flex;
    align-items:center;
    justify-content:center;
    padding:26px;
}

.auth-shell{
    width:100%;
    max-width:1180px;
    min-height:700px;
    display:grid;
    grid-template-columns:1fr 1fr;
    border-radius:22px;
    overflow:hidden;
    box-shadow:0 30px 80px rgba(17, 24, 39, .40);
    background:white;
}

.auth-hero{
    position:relative;
    overflow:hidden;
    color:white;
    padding:44px;
    background:
        linear-gradient(135deg,rgba(17, 24, 39, .96),rgba(31, 41, 55, .84)),
        linear-gradient(135deg,#111827,#d1d5db);
}

.auth-hero::before{
    content:"";
    position:absolute;
    inset:0;
    background:
        radial-gradient(circle at 40% 45%,rgba(107, 114, 128, .16),transparent 30%),
        linear-gradient(130deg,transparent 0 55%,rgba(255,255,255,.14) 55.3% 100%);
    z-index:1;
}

.seal-row{
    position:relative;
    z-index:3;
    display:flex;
    align-items:center;
    gap:13px;
    text-transform:uppercase;
}

.seal-row img{
    width:74px;
    height:74px;
    object-fit:contain;
}

.seal-row strong{
    display:block;
    font-size:17px;
    line-height:1.1;
    font-weight:900;
}

.seal-row span{
    color:var(--green-accent);
    font-size:13px;
    font-weight:900;
}

.watermark-seal{
    position:absolute;
    width:430px;
    height:430px;
    background:url("../img/pgmoseal.png") center/contain no-repeat;
    opacity:.30;
    top:45%;
    left:50%;
    transform:translate(-50%,-50%);
    z-index:1;
}

.auth-hero-content{
    position:relative;
    z-index:3;
    max-width:430px;
    margin-top:185px;
}

.register-copy{
    position:absolute;
    left:44px;
    bottom:55px;
    margin-top:0 !important;
}

.auth-hero-content h1{
    font-size:44px;
    font-weight:950;
    line-height:1.05;
    margin-bottom:10px;
}

.auth-hero-content p{
    color:#facc15;
    font-size:24px;
    font-family:"Segoe Script","Comic Sans MS",cursive;
    margin-bottom:8px;
}

.auth-hero-content small{
    display:block;
    color:#f0fff4;
    font-size:15px;
    line-height:1.6;
    max-width:360px;
}

.auth-hero-content small b,
.register-copy h1 em{
    color:#9ca3af;
    font-style:italic;
}

.underline{
    display:block;
    width:130px;
    height:4px;
    background:#facc15;
    border-radius:999px;
    margin:8px 0 22px;
}

.feature-grid{
    margin-top:28px;
    display:flex;
    flex-direction:column;
    gap:14px;
    max-width:430px;
}

.feature-grid > div{
    display:flex;
    align-items:center;
    gap:14px;
    width:100%;
}

.feature-grid > div i{
    width:42px;
    height:42px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#9ca3af;
    color:white;
    flex-shrink:0;
    font-size:16px;
}

.feature-grid > div > div{
    display:flex;
    align-items:center;
    gap:10px;
    flex-wrap:nowrap;
    white-space:nowrap;
}

.feature-grid b{
    font-size:15px;
    font-weight:800;
    color:white;
}

.feature-grid span{
    font-size:14px;
    color:#f3f4f6;
}

.auth-card{
    position:relative;
    background:white;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:62px 62px;
}

.auth-switch{
    position:absolute;
    top:0;
    right:24px;
    display:flex;
    border-radius:0 0 12px 12px;
    overflow:hidden;
}

.auth-switch a{
    padding:16px 26px;
    text-decoration:none;
    font-size:13px;
    font-weight:800;
    color:var(--dark);
    background:#f8fafc;
}

.auth-switch a.active{
    background:var(--green);
    color:white;
}

.auth-form{
    width:100%;
    max-width:400px;
}

.auth-form h2{
    font-size:36px;
    font-weight:950;
    color:#111827;
    margin-bottom:8px;
}

.auth-form h2 span{
    color:var(--green);
}

.auth-form p{
    color:var(--muted);
    margin-bottom:28px;
}

.auth-form label{
    font-size:13px;
    color:#111827;
    font-weight:800;
    margin-bottom:7px;
    display:block;
}

.input-box{
    height:56px;
    display:flex;
    align-items:center;
    border:1px solid var(--border);
    border-radius:12px;
    overflow:hidden;
    margin-bottom:18px;
    background:white;
    transition:.2s;
}

.input-box:focus-within{
    border-color:var(--green);
    box-shadow:0 0 0 4px rgba(107, 114, 128, .16);
}

.input-box i{
    width:52px;
    text-align:center;
    color:var(--green);
}

.input-box input{
    flex:1;
    height:100%;
    border:none;
    outline:none;
    color:#111827;
    font-size:14px;
}

.input-box button{
    width:50px;
    height:100%;
    border:none;
    border-left:1px solid var(--border);
    background:white;
    color:var(--green);
}

.select-box{
    width:100%;
    height:56px;
    border:1px solid var(--border);
    border-radius:12px;
    padding:0 14px;
    outline:none;
    background:white;
    margin-bottom:18px;
}

.two-col{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:14px;
}

.form-options{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:22px;
}

.checkline{
    display:flex !important;
    align-items:center;
    gap:9px;
    color:#64748b !important;
    font-size:13px !important;
    font-weight:500 !important;
    margin:0 !important;
}

.checkline input{
    accent-color:var(--green);
}

.form-options a,
.bottom-link a{
    color:var(--green);
    text-decoration:none;
    font-weight:800;
    font-size:13px;
}

.main-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    min-height:52px;
    border:none;
    border-radius:12px;
    background:linear-gradient(135deg,#374151,#0f7a35);
    color:white;
    font-weight:900;
    box-shadow:0 10px 22px rgba(22,101,52,.25);
    padding:0 18px;
    text-decoration:none;
}

.main-btn:hover{
    background:linear-gradient(135deg,#111827,#374151);
    color:white;
}

.auth-form .main-btn{
    width:100%;
}

.or-line{
    position:relative;
    text-align:center;
    margin:26px 0;
}

.or-line::before{
    content:"";
    position:absolute;
    top:50%;
    left:0;
    right:0;
    height:1px;
    background:var(--border);
}

.or-line span{
    position:relative;
    background:white;
    padding:8px 12px;
    border-radius:50%;
    font-size:12px;
    color:#64748b;
}

.outline-btn,
.outline-green-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:50px;
    border:1px solid var(--green);
    color:var(--green);
    background:white;
    border-radius:12px;
    text-decoration:none;
    font-weight:900;
    padding:0 18px;
}

.outline-btn{
    width:100%;
}

.outline-btn:hover,
.outline-green-btn:hover{
    background:var(--green-soft);
    color:var(--green);
}

.terms{
    margin:4px 0 20px !important;
}

.terms b{
    color:var(--green);
}

.bottom-link{
    text-align:center;
    margin:20px 0 0 !important;
}

.auth-alert{
    display:none;
    margin-bottom:16px;
    padding:12px 14px;
    border-left:5px solid #4b5563;
    background:#f8fafc;
    border-radius:10px;
    font-size:14px;
}

/* PORTAL MULTI-PAGE DASHBOARD */

.portal-body{
    min-height:100vh;
    background:#f6f7f8;
    display:flex;
    color:#1f2937;
}

.portal-sidebar{
    width:260px;
    min-height:100vh;
    background:linear-gradient(180deg,#111827,#07551f 58%,#053012);
    color:white;
    padding:24px 18px;
    position:fixed;
    left:0;
    top:0;
    bottom:0;
    z-index:20;
}

.portal-logo{
    display:flex;
    align-items:center;
    gap:12px;
    margin-bottom:28px;
}

.portal-logo img{
    width:80px;
    height:80px;
    object-fit:contain;
}

.portal-logo strong{
    display:block;
    font-size:20px;
    font-weight:900;
}

.portal-logo span{
    display:block;
    font-size:12px;
    color:#f3f4f6;
}

.portal-menu{
    display:flex;
    flex-direction:column;
    gap:8px;
}

.portal-menu a{
    display:flex;
    align-items:center;
    gap:12px;
    color:#f3f4f6;
    text-decoration:none;
    padding:13px 14px;
    border-radius:12px;
    font-weight:800;
    font-size:15px;
    transition:.2s;
}

.portal-menu a i{
    width:20px;
    text-align:center;
}

.portal-menu a.active,
.portal-menu a:hover{
    background:linear-gradient(90deg,#4b5563,#9ca3af);
    color:white;
}

.portal-menu a span{
    margin-left:auto;
    min-width:22px;
    height:22px;
    border-radius:50%;
    background:#9ca3af;
    color:white;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:12px;
}

.student-mini{
    position:absolute;
    left:18px;
    right:18px;
    bottom:76px;
    display:flex;
    gap:10px;
    align-items:center;
    background:rgba(255,255,255,.08);
    padding:12px;
    border-radius:14px;
}

.mini-avatar{
    width:42px;
    height:42px;
    border-radius:50%;
    background:#f3f4f6;
    color:#374151;
    display:flex;
    align-items:center;
    justify-content:center;
}

.student-mini strong{
    display:block;
    font-size:13px;
}

.student-mini small{
    color:#f3f4f6;
}

.sidebar-logout{
    position:absolute;
    left:18px;
    right:18px;
    bottom:22px;
    border:none;
    background:transparent;
    color:white;
    text-align:left;
    padding:12px 14px;
    font-weight:800;
}

.sidebar-logout i{
    color:#f97316;
    margin-right:10px;
}

.portal-main{
    margin-left:260px;
    padding:28px;
    flex:1;
    min-height:100vh;
}

.portal-top{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    margin-bottom:24px;
}

.portal-top h1{
    font-size:28px;
    color:#111827;
    font-weight:900;
    margin:0;
}

.portal-top p{
    color:#64748b;
    margin:5px 0 0;
}

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

.top-icon,
.top-avatar{
    width:42px;
    height:42px;
    border-radius:50%;
    border:1px solid #d1d5db;
    background:white;
    display:flex;
    align-items:center;
    justify-content:center;
    position:relative;
    color:#374151;
    text-decoration:none;
}

.top-icon span{
    position:absolute;
    top:7px;
    right:7px;
    width:8px;
    height:8px;
    border-radius:50%;
    background:#ef4444;
}

.dash-card{
    background:white;
    border:1px solid #d1d5db;
    border-radius:18px;
    box-shadow:0 10px 28px rgba(17, 24, 39, .08);
}

.section-card,
.profile-card,
.upload-card,
.upload-list-card,
.help-card{
    padding:24px;
}

.empty-stat-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:18px;
    margin-bottom:18px;
}

.small-stat{
    padding:24px;
    text-align:center;
}

.small-stat i{
    width:54px;
    height:54px;
    border-radius:50%;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    font-size:22px;
    margin-bottom:12px;
}

.small-stat .doc{
    background:#f3f4f6;
    color:#4b5563;
}

.small-stat .pending{
    background:#fef3c7;
    color:#f59e0b;
}

.small-stat .approved{
    background:#f3f4f6;
    color:#374151;
}

.small-stat strong{
    display:block;
    font-size:34px;
    font-weight:950;
    color:#111827;
}

.small-stat span{
    color:#64748b;
}

.dashboard-grid-lite{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:18px;
}

.portal-welcome-card{
    padding:24px;
}

.portal-welcome-card h3,
.profile-card h3,
.help-card h3{
    font-size:20px;
    font-weight:950;
    color:#111827;
    margin-bottom:8px;
}

.portal-welcome-card p,
.help-card p{
    color:#64748b;
    margin-bottom:18px;
}

.profile-avatar-large{
    width:96px;
    height:96px;
    border-radius:50%;
    background:#f3f4f6;
    color:#374151;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:42px;
    margin-bottom:16px;
}

.profile-grid,
.documents-summary-grid,
.help-grid{
    margin-top:22px;
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:14px;
}

.documents-summary-grid{
    grid-template-columns:repeat(4,1fr);
}

.profile-grid div,
.documents-summary-grid div,
.help-grid div{
    padding:18px;
    border:1px solid #d1d5db;
    border-radius:16px;
    background:#f8fafc;
}

.documents-summary-grid div{
    text-align:center;
}

.documents-summary-grid i,
.help-grid i{
    width:46px;
    height:46px;
    border-radius:50%;
    background:#f3f4f6;
    color:#374151;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    margin-bottom:10px;
}

.profile-grid span,
.documents-summary-grid span,
.help-grid span{
    display:block;
    color:#64748b;
    font-size:13px;
}

.profile-grid strong,
.documents-summary-grid strong,
.help-grid strong{
    display:block;
    color:#111827;
    font-size:16px;
    margin-top:4px;
}

.documents-summary-grid strong{
    font-size:28px;
    font-weight:950;
}

.card-title{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    margin-bottom:18px;
}

.card-title h3{
    font-size:18px;
    font-weight:950;
    color:#111827;
    margin:0;
}

.card-title p{
    color:#64748b;
    margin:4px 0 0;
}

.upload-card label{
    font-weight:800;
    color:#111827;
    margin-bottom:7px;
    display:block;
}

.upload-card textarea{
    width:100%;
    border:1px solid #d1d5db;
    border-radius:12px;
    padding:12px 14px;
    outline:none;
    margin-bottom:16px;
    min-height:92px;
    resize:vertical;
}

.drop-zone{
    position:relative;
    border:2px dashed #cbd5e1;
    background:#f9fafb;
    border-radius:16px;
    padding:28px;
    text-align:center;
    margin-bottom:16px;
    color:#374151;
}

.drop-zone i{
    font-size:34px;
    margin-bottom:8px;
}

.drop-zone strong,
.drop-zone span,
.drop-zone small{
    display:block;
}

.drop-zone small{
    color:#64748b;
}

.drop-zone input{
    position:absolute;
    inset:0;
    opacity:0;
    cursor:pointer;
}

.tab-row{
    display:flex;
    gap:18px;
    border-bottom:1px solid #d1d5db;
    margin-bottom:16px;
}

.tab-row button{
    background:none;
    border:none;
    padding:0 0 12px;
    font-weight:800;
    color:#64748b;
}

.tab-row button.active{
    color:#374151;
    border-bottom:3px solid #374151;
}

.file-row{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:14px;
    border:1px solid #d1d5db;
    border-radius:14px;
    margin-bottom:10px;
}

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

.file-icon{
    width:44px;
    height:44px;
    border-radius:12px;
    background:#f3f4f6;
    color:#374151;
    display:flex;
    align-items:center;
    justify-content:center;
}

.badge-status{
    border-radius:999px;
    padding:7px 12px;
    font-size:12px;
    font-weight:800;
}

.badge-pending{
    background:#fef3c7;
    color:#92400e;
}

.badge-approved{
    background:#f3f4f6;
    color:#374151;
}

.badge-returned{
    background:#fee2e2;
    color:#991b1b;
}

.requirements-list{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:14px;
}

.requirements-list div{
    display:flex;
    align-items:center;
    gap:12px;
    padding:16px;
    border:1px solid #d1d5db;
    border-radius:14px;
    background:#f8fafc;
    font-weight:800;
}

.requirements-list i{
    color:#374151;
}

.notification-item{
    display:flex;
    align-items:flex-start;
    gap:14px;
    padding:16px;
    border:1px solid #d1d5db;
    border-radius:14px;
    background:#f8fafc;
    margin-bottom:12px;
}

.notification-item i{
    width:42px;
    height:42px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    flex-shrink:0;
}

.notification-item.approved i{
    background:#f3f4f6;
    color:#374151;
}

.notification-item.returned i{
    background:#fee2e2;
    color:#dc2626;
}

.notification-item p{
    margin:4px 0 0;
    color:#64748b;
}

.empty-state{
    text-align:center;
    padding:40px 20px;
    color:#64748b;
}

.empty-state i{
    font-size:40px;
    color:#cbd5e1;
    margin-bottom:10px;
}

.toast-box{
    position:fixed;
    top:20px;
    right:20px;
    background:white;
    border:1px solid #d1d5db;
    box-shadow:0 14px 35px rgba(15,23,42,.15);
    border-radius:14px;
    padding:14px 18px;
    display:none;
    z-index:999;
}

@media(max-width:1050px){
    .auth-shell{
        grid-template-columns:1fr;
        max-width:520px;
    }

    .auth-hero{
        min-height:320px;
    }

    .auth-hero-content{
        margin-top:90px;
    }

    .register-copy{
        position:relative;
        left:auto;
        bottom:auto;
        margin-top:90px !important;
    }

    .auth-card{
        padding:62px 34px 38px;
    }

    .portal-sidebar{
        position:relative;
        width:100%;
        min-height:auto;
    }

    .student-mini,
    .sidebar-logout{
        position:static;
        margin-top:16px;
    }

    .portal-body{
        display:block;
    }

    .portal-main{
        margin-left:0;
    }

    .empty-stat-grid,
    .dashboard-grid-lite,
    .documents-summary-grid,
    .help-grid{
        grid-template-columns:1fr;
    }
}

@media(max-width:650px){
    .auth-page{
        padding:14px;
    }

    .two-col,
    .profile-grid,
    .requirements-list{
        grid-template-columns:1fr;
    }

    .feature-grid > div > div{
        flex-direction:column;
        align-items:flex-start;
        gap:2px;
        white-space:normal;
    }

    .portal-main{
        padding:18px;
    }

    .portal-top{
        flex-direction:column;
        gap:16px;
    }

    .file-row{
        align-items:flex-start;
        flex-direction:column;
    }
}


/* SELECTED FILE PREVIEW FIX */

.drop-zone.has-file{
    border-color:#4b5563;
    background:#ecfdf5;
}

.drop-zone.has-file i{
    color:#4b5563;
}

.drop-zone.has-file #dropZoneSubtitle{
    max-width:100%;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    font-weight:800;
    color:#111827;
}

.selected-file-info{
    display:none;
    align-items:center;
    gap:14px;
    padding:14px;
    border:1px solid #d1d5db;
    background:#f9fafb;
    border-radius:14px;
    margin:-4px 0 18px;
}

.selected-file-info.show{
    display:flex;
}

.selected-file-icon{
    width:46px;
    height:46px;
    border-radius:12px;
    background:#f3f4f6;
    color:#374151;
    display:flex;
    align-items:center;
    justify-content:center;
    flex-shrink:0;
}

.selected-file-text{
    min-width:0;
    flex:1;
}

.selected-file-text strong{
    display:block;
    color:#111827;
    font-size:14px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.selected-file-text span{
    display:block;
    color:#64748b;
    font-size:13px;
    margin-top:2px;
}

.clear-file-btn{
    width:36px;
    height:36px;
    border:none;
    border-radius:50%;
    background:#fee2e2;
    color:#dc2626;
    display:flex;
    align-items:center;
    justify-content:center;
    flex-shrink:0;
}

.clear-file-btn:hover{
    background:#fecaca;
}



/* STUDENT ID HOVER GUIDE - FITTED VERSION */

.student-id-help{
    position:relative;
    display:block;
    margin-top:-14px;
    margin-bottom:12px;
    margin-left:2px;
    max-width:100%;
}

.student-id-guide-text{
    display:inline-flex;
    align-items:center;
    gap:5px;
    color:#374151;
    font-size:11px;
    font-weight:800;
    cursor:help;
    line-height:1;
}

.student-id-guide-text i{
    font-size:10px;
    color:#4b5563;
}

.student-id-tooltip{
    position:absolute;
    right:0;
    left:auto;
    top:20px;
    width:245px;
    max-width:245px;
    background:#ffffff;
    border:1px solid #d1d5db;
    border-radius:10px;
    padding:10px;
    box-shadow:0 12px 28px rgba(15,23,42,.15);
    z-index:999;
    opacity:0;
    visibility:hidden;
    transform:translateY(5px);
    transition:.18s ease;
    pointer-events:none;
}

.student-id-help:hover .student-id-tooltip{
    opacity:1;
    visibility:visible;
    transform:translateY(0);
}

.student-id-tooltip::before{
    content:"";
    position:absolute;
    top:-6px;
    right:18px;
    width:10px;
    height:10px;
    background:#ffffff;
    border-left:1px solid #d1d5db;
    border-top:1px solid #d1d5db;
    transform:rotate(45deg);
}

.student-id-tooltip p{
    margin:0 0 7px;
    color:#475569;
    font-size:10.5px;
    line-height:1.35;
}

.student-id-tooltip p b{
    color:#111827;
}

.school-acronym-list{
    display:flex;
    flex-direction:column;
    gap:3px;
}

.school-acronym-list span{
    display:block;
    color:#475569;
    font-size:10px;
    line-height:1.25;
    white-space:normal;
    word-break:normal;
}

.school-acronym-list b{
    color:#374151;
}



/* RESTORED MONTHLY DTR FORM TEMPLATE */

.dtr-template-card{
    padding:24px;
}

.dtr-form-actions{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
}

.dtr-paper{
    background:white;
    border:1.5px solid #111827;
    color:#111827;
    padding:22px;
    border-radius:10px;
    max-width:920px;
    margin:0 auto;
    font-family:Arial, sans-serif;
}

.dtr-paper-header{
    text-align:center;
    margin-bottom:18px;
}

.dtr-paper-header h2{
    font-size:24px;
    font-weight:900;
    letter-spacing:.5px;
    margin:0;
}

.dtr-paper-header span{
    display:block;
    font-size:13px;
}

.dtr-name-line{
    text-align:center;
    margin:12px 0;
}

.dtr-name-line input{
    width:70%;
    border:none;
    border-bottom:3px solid #111827;
    text-align:center;
    font-weight:800;
    outline:none;
    background:transparent;
}

.dtr-name-line small{
    display:block;
    font-size:12px;
}

.dtr-meta-grid{
    display:grid;
    grid-template-columns:2fr 1fr 1fr;
    gap:12px;
    margin-bottom:14px;
    font-size:13px;
}

.dtr-meta-grid label{
    font-weight:700;
}

.dtr-meta-grid input{
    width:100%;
    border:none;
    border-bottom:2px solid #111827;
    outline:none;
    padding:3px;
    background:transparent;
}

.dtr-table-wrap{
    overflow:auto;
}

.dtr-table{
    width:100%;
    border-collapse:collapse;
    table-layout:fixed;
}

.dtr-table th,
.dtr-table td{
    border:2px solid #111827;
    text-align:center;
    padding:0;
    height:30px;
    font-size:12px;
}

.dtr-table th{
    font-weight:900;
}

.dtr-table .day-cell{
    width:42px;
    font-weight:900;
}

.dtr-time-input,
.dtr-under-input{
    width:100%;
    height:28px;
    border:none;
    outline:none;
    text-align:center;
    font-size:12px;
    background:transparent;
    cursor:text;
}

.dtr-time-input::placeholder{
    color:#94a3b8;
    opacity:1;
}

.dtr-time-input:focus,
.dtr-under-input:focus{
    background:#f9fafb;
    outline:2px solid #9ca3af;
    outline-offset:-2px;
}

.weekend-label{
    display:block;
    font-weight:800;
    color:#111827;
}

.inactive-day{
    background:#f1f5f9;
    opacity:.55;
}

.dtr-table tfoot td{
    height:38px;
    padding:6px 12px !important;
    vertical-align:middle;
}

.dtr-table tfoot td:first-child{
    text-align:right !important;
    padding-right:18px !important;
}

#monthlyDtrTotal{
    display:inline-block;
    padding-left:10px;
}

.dtr-certification{
    margin-top:18px;
    font-size:12px;
}

.signature-line{
    margin-top:34px;
    border-top:3px solid #111827;
    text-align:center;
    padding-top:4px;
    font-size:12px;
}

#dtrNotes{
    width:100%;
    min-height:90px;
    border:1px solid #d1d5db;
    border-radius:12px;
    padding:12px 14px;
    outline:none;
    resize:vertical;
    font-size:14px;
}

#dtrNotes:focus{
    border-color:#4b5563;
    box-shadow:0 0 0 4px rgba(107, 114, 128, .15);
}

.badge-rejected{
    background:#fee2e2;
    color:#991b1b;
}

@media(max-width:900px){
    .dtr-meta-grid{
        grid-template-columns:1fr;
    }

    .dtr-paper{
        padding:14px;
    }

    .dtr-paper-header h2{
        font-size:20px;
    }
}



/* DASHBOARD / DTR SUMMARY FIX */

.dtr-summary-grid{
    display:grid !important;
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    gap:18px !important;
    margin-bottom:18px !important;
}

.dtr-summary-grid .small-stat{
    min-height:190px;
}

/* SIDEBAR MENU FIX */

.portal-sidebar{
    overflow-y:auto;
}

.portal-menu{
    padding-bottom:150px;
}

.portal-menu a{
    min-height:48px;
}

/* OJT REQUIREMENTS CHECKLIST */

.requirements-checklist{
    display:flex;
    flex-direction:column;
    gap:12px;
}

.requirement-check-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    padding:16px;
    border:1px solid #d1d5db;
    border-radius:14px;
    background:#ffffff;
}

.requirement-check-row.approved{
    border-color:#d1d5db;
    background:#f9fafb;
}

.requirement-check-row.pending{
    border-color:#fde68a;
    background:#fffbeb;
}

.requirement-check-row.missing,
.requirement-check-row.returned{
    border-color:#fecaca;
    background:#fef2f2;
}

.requirement-check-left{
    display:flex;
    align-items:center;
    gap:12px;
    margin:0;
    font-weight:900;
    color:#111827;
}

.requirement-check-left input{
    width:20px;
    height:20px;
    accent-color:#4b5563;
}

.requirement-status-pill{
    display:inline-flex;
    align-items:center;
    gap:8px;
    border-radius:999px;
    padding:8px 12px;
    font-size:12px;
    font-weight:900;
    white-space:nowrap;
}

.requirement-status-pill.approved{
    background:#f3f4f6;
    color:#374151;
}

.requirement-status-pill.pending{
    background:#fef3c7;
    color:#92400e;
}

.requirement-status-pill.missing,
.requirement-status-pill.returned{
    background:#fee2e2;
    color:#991b1b;
}

@media(max-width:900px){
    .dtr-summary-grid{
        grid-template-columns:1fr !important;
    }

    .requirement-check-row{
        align-items:flex-start;
        flex-direction:column;
    }
}

/* REQUIREMENTS GROUP SECTIONS */

.requirement-group{
    border:1px solid #d1d5db;
    border-radius:18px;
    background:#ffffff;
    padding:18px;
    margin-bottom:22px;
}

.requirement-group-header{
    padding-bottom:14px;
    margin-bottom:14px;
    border-bottom:1px solid #e5e7eb;
}

.requirement-group-header h4{
    margin:0;
    font-size:18px;
    font-weight:950;
    color:#111827;
}

.requirement-group-header p{
    margin:5px 0 0;
    font-size:13px;
    color:#64748b;
}

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

.requirement-check-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    padding:14px 16px;
    border:1px solid #d1d5db;
    border-radius:14px;
    background:#ffffff;
}

.requirement-check-row.approved{
    border-color:#d1d5db;
    background:#f9fafb;
}

.requirement-check-row.pending{
    border-color:#fde68a;
    background:#fffbeb;
}

.requirement-check-row.missing,
.requirement-check-row.returned{
    border-color:#fecaca;
    background:#fef2f2;
}

.requirement-check-left{
    display:flex;
    align-items:center;
    gap:12px;
    margin:0;
    font-weight:900;
    color:#111827;
}

.requirement-check-left input{
    width:20px;
    height:20px;
    accent-color:#4b5563;
}

.requirement-status-pill{
    display:inline-flex;
    align-items:center;
    gap:8px;
    border-radius:999px;
    padding:8px 12px;
    font-size:12px;
    font-weight:900;
    white-space:nowrap;
}

.requirement-status-pill.approved{
    background:#f3f4f6;
    color:#374151;
}

.requirement-status-pill.pending{
    background:#fef3c7;
    color:#92400e;
}

.requirement-status-pill.missing,
.requirement-status-pill.returned{
    background:#fee2e2;
    color:#991b1b;
}

@media(max-width:900px){
    .requirement-check-row{
        align-items:flex-start;
        flex-direction:column;
    }
}


/* PROFILE EDIT + PROFILE PICTURE */

.profile-edit-card{
    padding:28px;
}

.profile-edit-head{
    display:flex;
    align-items:center;
    gap:24px;
    margin-bottom:24px;
}

.profile-picture-box{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:10px;
    min-width:180px;
}

.profile-image-preview{
    overflow:hidden;
}

.profile-image-preview img{
    width:100%;
    height:100%;
    object-fit:cover;
    border-radius:50%;
}

.profile-upload-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    border:none;
    border-radius:999px;
    background:#f3f4f6;
    color:#374151;
    padding:9px 14px;
    font-size:12px;
    font-weight:900;
    cursor:pointer;
}

.profile-upload-btn input{
    display:none;
}

#profilePictureFileName{
    color:#64748b;
    font-size:12px;
    text-align:center;
    max-width:190px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.profile-note{
    color:#64748b;
    margin-top:8px;
    max-width:640px;
}

.profile-form-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:18px 20px;
    align-items:start;
}

.profile-form-grid > div{
    min-width:0;
}

.profile-form-grid label{
    display:block;
    margin-bottom:8px;
    font-weight:900;
    color:#111827;
}

.profile-form-grid .select-box{
    width:100%;
    margin-bottom:0;
    box-sizing:border-box;
}

.readonly-input{
    background:#f8fafc !important;
    color:#64748b !important;
    cursor:not-allowed;
}

.profile-fullname-row,
.profile-save-row{
    grid-column:1 / -1;
}

.profile-fullname-row small{
    display:block;
    margin-top:6px;
    color:#64748b;
    font-size:12px;
}

@media(max-width:900px){
    .profile-edit-head{
        flex-direction:column;
        align-items:flex-start;
    }

    .profile-form-grid{
        grid-template-columns:1fr;
    }
}



/* FINAL EDITABLE DTR FIX */

.dtr-table tbody tr{
    min-height:30px;
}

.dtr-time-input,
.dtr-under-input{
    width:100%;
    min-height:28px;
    height:28px;
    border:none;
    outline:none;
    background:transparent;
    text-align:center;
    font-size:12px;
    color:#111827;
    cursor:text;
}

.dtr-time-input::placeholder{
    color:#94a3b8;
    opacity:1;
}

.dtr-time-input:focus,
.dtr-under-input:focus{
    background:#f9fafb;
    outline:2px solid #9ca3af;
    outline-offset:-2px;
}

.dtr-table td{
    vertical-align:middle;
}

.dtr-form-actions{
    align-items:center;
}

/* SIDEBAR STUDENT PROFILE PICTURE */

.mini-avatar{
    width:48px;
    height:48px;
    border-radius:50%;
    overflow:hidden;
    background:#f3f4f6;
    color:#1f2937;
    display:flex;
    align-items:center;
    justify-content:center;
    flex-shrink:0;
}

.mini-avatar.has-profile-image{
    background:transparent;
}

.mini-avatar img{
    width:100%;
    height:100%;
    object-fit:cover;
    border-radius:50%;
    display:block;
}
/* CLICKABLE TOP PROFILE ICON */

.top-avatar{
    cursor:pointer;
    transition:.2s ease;
}

.top-avatar:hover{
    transform:translateY(-1px);
    box-shadow:0 0 0 4px rgba(107, 114, 128, .18);
}


/* STUDENT NOTIFICATION PANEL */
#notificationBadge{min-width:22px;height:22px;border-radius:999px;background:#9ca3af;color:#fff;display:inline-flex;align-items:center;justify-content:center;font-size:12px;font-weight:900;margin-left:auto;}
#topNotificationDot{width:9px;height:9px;border-radius:50%;background:#ef4444;position:absolute;top:8px;right:8px;display:none;}
.top-icon{position:relative;}
.notifications-list{display:flex;flex-direction:column;gap:12px;}
.notification-card{display:flex;gap:14px;padding:16px;border:1px solid #d1d5db;border-radius:16px;background:#fff;}
.notification-card.unread{border-color:#9ca3af;background:#f9fafb;}
.notification-card.success .notification-icon{background:#f3f4f6;color:#374151;}
.notification-card.error .notification-icon{background:#fee2e2;color:#991b1b;}
.notification-card.info .notification-icon{background:#dbeafe;color:#1d4ed8;}
.notification-icon{width:42px;height:42px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-shrink:0;}
.notification-content strong{display:block;color:#111827;font-weight:950;}
.notification-content p{margin:4px 0;color:#334155;}
.notification-content small{color:#64748b;}

/* REGISTRATION NAME FIELDS */

#registerMiddleInitial{
    text-transform:uppercase;
}

/* MULTI DOCUMENT UPLOAD LAYOUT */

.upload-card{
    padding:20px 24px;
}

.multi-upload-grid{
    display:grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap:16px;
}

.upload-slot{
    border:1px solid #d1d5db;
    border-radius:18px;
    background:#ffffff;
    padding:16px;
}

.upload-slot-head{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:12px;
}

.upload-slot-head span{
    font-size:16px;
    font-weight:950;
    color:#1f2937;
}

.upload-slot-head small{
    font-size:12px;
    font-weight:800;
    color:#64748b;
    background:#f1f5f9;
    padding:4px 8px;
    border-radius:999px;
}

.upload-slot label{
    font-size:13px;
    margin-bottom:6px;
}

.upload-select{
    min-height:42px;
    padding:8px 12px;
    margin-bottom:12px;
}

.compact-drop-zone{
    min-height:128px;
    padding:18px 12px;
    margin-bottom:12px;
}

.compact-drop-zone i{
    font-size:26px;
    margin-bottom:6px;
}

.compact-drop-zone strong{
    font-size:14px;
}

.compact-drop-zone span,
.compact-drop-zone small{
    font-size:12px;
}

.compact-drop-zone.has-file{
    border-color:#9ca3af;
    background:#f3f4f6;
}

.compact-selected-file{
    padding:10px 12px;
    margin-bottom:12px;
}

.compact-selected-file .selected-file-icon{
    width:34px;
    height:34px;
    font-size:14px;
}

.compact-selected-file .selected-file-text strong{
    font-size:13px;
    max-width:180px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.compact-selected-file .selected-file-text span{
    font-size:12px;
}

.compact-remarks{
    min-height:66px !important;
    padding:10px 12px !important;
    margin-bottom:0 !important;
}

.multi-upload-actions{
    margin-top:18px;
    display:flex;
    align-items:center;
    gap:14px;
    flex-wrap:wrap;
}

.multi-upload-actions small{
    color:#64748b;
    font-weight:700;
}

@media(max-width:1100px){
    .multi-upload-grid{
        grid-template-columns:1fr;
    }
}

#clearNotificationsBtn{
    border-radius: 999px;
    font-weight: 700;
    padding: 8px 14px;
}

#clearNotificationsBtn i{
    margin-right: 6px;
}
/* MOBILE DROPDOWN SIDEBAR */
.mobile-topbar{
    display: none;
}

@media (max-width: 768px){
    body{
        padding: 0;
        overflow-x: hidden;
    }

    .mobile-topbar{
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 2000;
        background: #111827;
        padding: 14px 18px;
        box-shadow: 0 4px 14px rgba(0,0,0,.18);
    }

    .mobile-menu-btn{
        border: none;
        background: #9ca3af;
        color: #fff;
        font-weight: 800;
        border-radius: 12px;
        padding: 10px 14px;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        cursor: pointer;
    }

    .sidebar{
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        width: 100%;
        height: auto;
        min-height: unset;
        max-height: 0;
        overflow: hidden;
        padding: 0 16px;
        background: #111827;
        z-index: 1999;
        transition: max-height .3s ease, padding .3s ease;
        border-radius: 0 0 18px 18px;
    }

    .sidebar.mobile-open{
        max-height: 90vh;
        padding: 18px 16px 22px;
        overflow-y: auto;
    }

    .sidebar .nav,
    .sidebar nav{
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .sidebar a,
    .sidebar .nav-link{
        width: 100%;
        border-radius: 12px;
        padding: 12px 14px;
    }

    .sidebar .student-card,
    .sidebar .profile-card,
    .sidebar .user-card{
        margin-top: 18px;
    }

    .main-content,
    .content,
    .page-content,
    .dashboard-content{
        margin-left: 0 !important;
        width: 100% !important;
        padding-top: 80px !important;
    }
}
/* FINAL PHONE DROPDOWN MENU FIX - ChatGPT */
.mobile-topbar{
    display:none;
}

@media (max-width: 900px){
    html,
    body{
        width:100% !important;
        max-width:100% !important;
        overflow-x:hidden !important;
    }

    body.portal-body,
    .portal-body{
        display:block !important;
        padding:0 !important;
        margin:0 !important;
        min-height:100vh !important;
        background:#f6f7f8 !important;
    }

    .mobile-topbar{
        display:flex !important;
        align-items:center !important;
        justify-content:flex-start !important;
        position:fixed !important;
        top:0 !important;
        left:0 !important;
        right:0 !important;
        height:74px !important;
        padding:14px 18px !important;
        background:#111827 !important;
        z-index:2147483647 !important;
        box-shadow:0 6px 18px rgba(0,0,0,.18) !important;
        pointer-events:auto !important;
    }

    .mobile-menu-btn{
        display:inline-flex !important;
        align-items:center !important;
        justify-content:center !important;
        gap:8px !important;
        position:relative !important;
        z-index:2147483647 !important;
        border:0 !important;
        outline:0 !important;
        background:#9ca3af !important;
        color:#ffffff !important;
        font-weight:900 !important;
        font-size:15px !important;
        line-height:1 !important;
        border-radius:12px !important;
        padding:12px 16px !important;
        min-height:44px !important;
        cursor:pointer !important;
        pointer-events:auto !important;
        box-shadow:0 10px 24px rgba(0,0,0,.22) !important;
        -webkit-tap-highlight-color:transparent !important;
    }

    .mobile-menu-btn i{
        pointer-events:none !important;
    }

    .mobile-menu-btn span{
        pointer-events:none !important;
    }

    .portal-sidebar{
        position:fixed !important;
        top:74px !important;
        left:0 !important;
        right:0 !important;
        bottom:auto !important;
        width:100% !important;
        max-width:100% !important;
        min-width:0 !important;
        height:auto !important;
        min-height:0 !important;
        max-height:0 !important;
        overflow:hidden !important;
        padding:0 24px !important;
        margin:0 !important;
        z-index:2147483646 !important;
        background:linear-gradient(180deg,#111827,#07551f 58%,#053012) !important;
        border-radius:0 0 22px 22px !important;
        transform:none !important;
        transition:max-height .28s ease, padding .28s ease !important;
        box-shadow:0 14px 35px rgba(0,0,0,.24) !important;
    }

    body.mobile-menu-open .portal-sidebar{
        max-height:calc(100vh - 74px) !important;
        overflow-y:auto !important;
        padding:22px 24px 28px !important;
    }

    .portal-sidebar .portal-logo{
        margin-top:0 !important;
        margin-bottom:20px !important;
    }

    .portal-sidebar .portal-logo img{
        width:58px !important;
        height:58px !important;
    }

    .portal-sidebar .portal-menu{
        padding-bottom:14px !important;
        gap:8px !important;
    }

    .portal-sidebar .portal-menu a{
        width:100% !important;
        min-height:46px !important;
        padding:12px 14px !important;
        border-radius:12px !important;
    }

    .portal-sidebar .student-mini,
    .portal-sidebar .sidebar-logout{
        position:static !important;
        left:auto !important;
        right:auto !important;
        bottom:auto !important;
        width:100% !important;
        margin-top:16px !important;
    }

    .portal-sidebar .student-mini{
        padding:12px !important;
    }

    .portal-main{
        margin-left:0 !important;
        width:100% !important;
        max-width:100% !important;
        min-height:100vh !important;
        padding:96px 16px 28px !important;
        overflow-x:hidden !important;
    }

    .portal-top{
        gap:14px !important;
        align-items:flex-start !important;
    }

    .portal-top h1{
        font-size:24px !important;
        line-height:1.15 !important;
        word-break:break-word !important;
    }

    .dash-card,
    .upload-card,
    .profile-card,
    .requirements-card,
    .documents-card,
    .submissions-card{
        width:100% !important;
        max-width:100% !important;
        overflow-x:hidden !important;
    }

    .multi-upload-grid,
    .dashboard-grid-lite,
    .documents-summary-grid,
    .help-grid,
    .empty-stat-grid,
    .profile-grid,
    .two-col,
    .requirements-list{
        grid-template-columns:1fr !important;
    }
}


/* PGMO POLISH PATCH 2026-06 */
.dtr-halfday-note{
    display:flex;
    align-items:flex-start;
    gap:10px;
    padding:12px 14px;
    margin:0 0 16px;
    background:#ecfdf3;
    border:1px solid #d1d5db;
    color:#111827;
    border-radius:14px;
    font-weight:700;
    font-size:13px;
    line-height:1.45;
}

.dtr-time-input::placeholder{
    color:transparent !important;
}

.id-request-status-box{
    display:flex;
    align-items:center;
    gap:16px;
    padding:18px;
    border-radius:18px;
    border:1px solid #d1d5db;
    background:#f8fafc;
}

.id-request-status-box i{
    width:46px;
    height:46px;
    border-radius:14px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:20px;
    background:#e2e8f0;
    color:#475569;
}

.id-request-status-box.allowed{
    background:#ecfdf3;
    border-color:#cbd5e1;
}

.id-request-status-box.allowed i{
    background:#9ca3af;
    color:white;
}

.id-request-status-box.locked{
    background:#fff7ed;
    border-color:#fed7aa;
}

.id-request-status-box.locked i{
    background:#f97316;
    color:white;
}

#ojtIdRequestPurpose{
    width:100%;
    min-height:120px;
    border:1px solid #d1d5db;
    border-radius:14px;
    padding:14px 16px;
    outline:none;
    resize:vertical;
}

#ojtIdRequestPurpose:focus{
    border-color:#4b5563;
    box-shadow:0 0 0 4px rgba(107, 114, 128, .15);
}

@media(max-width:900px){
    .dtr-summary-grid{
        grid-template-columns:1fr !important;
    }
    .dtr-template-card,
    .dash-card{
        border-radius:18px !important;
    }
    .card-title{
        flex-direction:column !important;
        align-items:flex-start !important;
        gap:12px !important;
    }
    .dtr-form-actions{
        width:100% !important;
        display:grid !important;
        grid-template-columns:1fr 1fr !important;
        gap:10px !important;
    }
    .dtr-form-actions .outline-green-btn{
        width:100% !important;
        justify-content:center !important;
        min-height:44px !important;
        font-size:12px !important;
    }
    .dtr-paper{
        width:100% !important;
        max-width:100% !important;
        padding:12px !important;
        border-radius:14px !important;
    }
    .dtr-table-wrap{
        overflow-x:auto !important;
        -webkit-overflow-scrolling:touch !important;
        border:1px solid #d1d5db;
        border-radius:12px;
    }
    .dtr-table{
        min-width:720px !important;
    }
    .dtr-name-line input{
        width:100% !important;
    }
    .id-request-status-box{
        align-items:flex-start;
    }
}

@media(max-width:480px){
    .portal-main{
        padding-left:12px !important;
        padding-right:12px !important;
    }
    .portal-top{
        flex-direction:column !important;
    }
    .portal-top .top-actions{
        width:100% !important;
        justify-content:flex-end !important;
    }
    .dtr-form-actions{
        grid-template-columns:1fr !important;
    }
}

/* PGMO PATCH 2026-06-25: OJT ID page, DTR hour inputs, password settings */
.dtr-time-input{
    font-weight:800;
    letter-spacing:.2px;
}

.dtr-time-input:focus{
    background:#ecfdf3 !important;
}

.id-request-clean-card{
    padding:30px;
    overflow:hidden;
    position:relative;
}

.id-request-clean-card::after{
    content:"";
    position:absolute;
    right:-90px;
    top:-90px;
    width:220px;
    height:220px;
    border-radius:50%;
    background:radial-gradient(circle, rgba(107, 114, 128, .18), transparent 68%);
    pointer-events:none;
}

.id-request-clean-head{
    display:flex;
    align-items:center;
    gap:20px;
    margin-bottom:22px;
    position:relative;
    z-index:1;
}

.id-request-main-icon{
    width:76px;
    height:76px;
    border-radius:24px;
    display:flex;
    align-items:center;
    justify-content:center;
    flex-shrink:0;
    color:#ffffff;
    font-size:30px;
    background:linear-gradient(135deg,#374151,#9ca3af);
    box-shadow:0 18px 40px rgba(22,101,52,.22);
}

.section-kicker{
    display:inline-flex;
    color:#374151;
    background:#f3f4f6;
    border:1px solid #d1d5db;
    border-radius:999px;
    padding:6px 12px;
    font-size:12px;
    font-weight:900;
    margin-bottom:10px;
}

.id-request-clean-head h2{
    margin:0;
    color:#0f172a;
    font-size:28px;
    font-weight:900;
}

.id-request-clean-head p{
    margin:8px 0 0;
    max-width:720px;
    color:#64748b;
    line-height:1.55;
}

.clean-status{
    position:relative;
    z-index:1;
    margin-top:8px;
}

.id-request-status-box.pending{
    background:#eff6ff;
    border-color:#bfdbfe;
}

.id-request-status-box.pending i{
    background:#2563eb;
    color:#ffffff;
}

.id-request-action-row{
    display:flex;
    align-items:center;
    gap:16px;
    flex-wrap:wrap;
    margin-top:20px;
    position:relative;
    z-index:1;
}

.id-request-action-btn{
    min-width:210px;
    justify-content:center;
}

.id-request-action-row small{
    color:#64748b;
    font-weight:700;
}

.id-history-card{
    padding:26px;
}

.id-request-history-row{
    display:flex;
    align-items:center;
    gap:14px;
    border:1px solid #d1d5db;
    border-radius:18px;
    background:#ffffff;
    padding:16px;
    margin-bottom:12px;
}

.id-history-icon{
    width:48px;
    height:48px;
    border-radius:16px;
    background:#f3f4f6;
    color:#374151;
    display:flex;
    align-items:center;
    justify-content:center;
    flex-shrink:0;
}

.id-history-icon.pending{
    background:#dbeafe;
    color:#2563eb;
}

.id-history-icon.approved{
    background:#f3f4f6;
    color:#374151;
}

.id-history-icon.rejected{
    background:#fee2e2;
    color:#dc2626;
}

.id-history-main{
    flex:1;
    min-width:0;
}

.id-history-main strong,
.id-history-main small,
.id-history-main p{
    display:block;
}

.id-history-main small{
    color:#64748b;
    margin-top:3px;
}

.id-history-main p{
    margin:6px 0 0;
    color:#b91c1c;
    font-size:13px;
}

.compact-empty{
    min-height:180px;
}

.password-settings-card{
    padding:28px;
}

.password-security-icon{
    width:48px;
    height:48px;
    border-radius:16px;
    background:#f3f4f6;
    color:#374151;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:20px;
}

.password-change-grid{
    display:grid;
    grid-template-columns:repeat(3, 1fr);
    gap:18px;
}

.password-change-grid label{
    display:block;
    margin-bottom:8px;
    font-weight:900;
    color:#111827;
}

.password-field-wrap{
    position:relative;
}

.password-field-wrap > i{
    position:absolute;
    left:16px;
    top:50%;
    transform:translateY(-50%);
    color:#374151;
    z-index:2;
}

.password-field-wrap input{
    width:100%;
    height:52px;
    border:1px solid #d1d5db;
    border-radius:14px;
    padding:0 56px 0 46px;
    background:#ffffff;
    outline:none;
    font-size:14px;
    color:#0f172a;
}

.password-field-wrap input:focus{
    border-color:#4b5563;
    box-shadow:0 0 0 4px rgba(107, 114, 128, .14);
}

.student-password-toggle{
    position:absolute;
    right:0;
    top:0;
    width:52px;
    height:52px;
    border:none;
    border-left:1px solid #d1d5db;
    border-radius:0 14px 14px 0;
    background:#f8fafc;
    color:#374151;
    cursor:pointer;
}

.student-password-toggle:hover{
    background:#ecfdf3;
}

.password-change-actions{
    grid-column:1 / -1;
    display:flex;
    justify-content:flex-start;
}

@media(max-width:1000px){
    .password-change-grid{
        grid-template-columns:1fr;
    }
}

@media(max-width:700px){
    .id-request-clean-card,
    .id-history-card,
    .password-settings-card{
        padding:20px !important;
    }

    .id-request-clean-head{
        flex-direction:column;
        align-items:flex-start;
    }

    .id-request-main-icon{
        width:62px;
        height:62px;
        border-radius:20px;
        font-size:24px;
    }

    .id-request-clean-head h2{
        font-size:24px;
    }

    .id-request-action-row{
        align-items:stretch;
        flex-direction:column;
    }

    .id-request-action-btn{
        width:100%;
        min-width:0;
    }

    .id-request-history-row{
        align-items:flex-start;
        flex-wrap:wrap;
    }

    .password-security-icon{
        display:none;
    }

    .password-change-actions .main-btn{
        width:100%;
        justify-content:center;
    }
}


/* PGMO PATCH 2026-06-25: DTR hour-minute input and forgot password option */
.dtr-time-input{
    min-width:76px;
    text-align:center;
    font-variant-numeric:tabular-nums;
}

.forgot-password-option{
    margin-top:10px;
    display:flex !important;
    align-items:center;
    gap:8px;
    color:#475569 !important;
    font-size:13px !important;
    font-weight:800 !important;
    cursor:pointer;
}

.forgot-password-option input{
    width:16px;
    height:16px;
    accent-color:#374151;
}

.password-reset-note{
    grid-column:1 / -1;
    display:flex;
    align-items:flex-start;
    gap:10px;
    border:1px solid #d1d5db;
    background:#f9fafb;
    color:#111827;
    border-radius:16px;
    padding:12px 14px;
    font-size:13px;
    font-weight:700;
}

.password-reset-note i{
    margin-top:2px;
    color:#374151;
}

/* PGMO PATCH: secure invite registration field */
.secure-register-note{
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 10px 0 18px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #ecfdf5;
    color: #111827;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
}

.secure-register-note i{
    margin-top: 2px;
    color: #374151;
}

.secure-code-box input{
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 800;
}


/* PGMO PATCH: secure registration landing */
.secure-register-landing .large-note{
    margin: 18px 0 22px;
    padding: 16px 18px;
    border-radius: 18px;
    align-items: flex-start;
}
.secure-register-landing .main-btn{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}


/* PGMO PATCH: school field profile layout */
.profile-form-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:18px 20px;
    align-items:start;
}
.profile-form-grid > div{ min-width:0; }
.profile-form-grid label{
    display:block;
    margin-bottom:8px;
    font-weight:900;
    color:#111827;
}
.profile-form-grid .select-box{
    width:100%;
    min-height:48px;
    margin-bottom:0;
    box-sizing:border-box;
}
.profile-fullname-row,
.profile-save-row{
    grid-column:1 / -1;
}
.profile-fullname-row small{
    display:block;
    margin-top:6px;
    color:#64748b;
    font-size:12px;
}
@media(max-width:900px){
    .profile-form-grid{ grid-template-columns:1fr; }
}


/* =========================================================
   STUDENT FRONT-END LIVE POLISH PATCH
   ========================================================= */
:root{
    --student-glow: rgba(107, 114, 128, .24);
    --student-soft-green: #ecfdf3;
    --student-deep-green: #064e2b;
}

@keyframes studentFadeUp{
    from{opacity:0; transform:translateY(18px) scale(.985);}
    to{opacity:1; transform:translateY(0) scale(1);}
}

@keyframes studentPageLeave{
    to{opacity:0; transform:translateY(8px) scale(.992);}
}

@keyframes bellShake{
    0%,100%{transform:rotate(0deg) scale(1);}
    20%{transform:rotate(-12deg) scale(1.08);}
    40%{transform:rotate(10deg) scale(1.08);}
    60%{transform:rotate(-8deg) scale(1.06);}
    80%{transform:rotate(6deg) scale(1.04);}
}

@keyframes pulseDot{
    0%{box-shadow:0 0 0 0 rgba(239,68,68,.55);}
    70%{box-shadow:0 0 0 8px rgba(239,68,68,0);}
    100%{box-shadow:0 0 0 0 rgba(239,68,68,0);}
}

@keyframes badgePulse{
    0%,100%{transform:scale(1);}
    50%{transform:scale(1.12);}
}

body.portal-body.student-page-ready .portal-main{
    animation:studentFadeUp .38s ease both;
}

body.portal-body.student-page-leaving .portal-main{
    animation:studentPageLeave .14s ease forwards;
}

.portal-sidebar,
.portal-top,
.dash-card,
.file-row,
.requirements-list div,
.main-btn,
.outline-green-btn,
.top-icon,
.top-avatar,
.sidebar-logout,
.portal-menu a{
    transition:transform .22s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease, color .22s ease, opacity .22s ease;
}

.student-polish-card{
    animation:studentFadeUp .45s ease both;
    animation-delay:var(--stagger, 0ms);
}

.dash-card:hover,
.file-row:hover,
.requirements-list div:hover{
    transform:translateY(-3px);
    box-shadow:0 18px 42px rgba(17, 24, 39, .13);
    border-color:#d1d5db;
}

.portal-menu a:hover{
    transform:translateX(5px);
    background:rgba(107, 114, 128, .13);
}

.main-btn:hover,
.outline-green-btn:hover{
    transform:translateY(-2px);
    box-shadow:0 14px 28px rgba(22,101,52,.20);
}

.live-bell-button{
    overflow:visible;
    cursor:pointer;
}

.bell-shake{
    animation:bellShake .72s ease both;
}

#topNotificationDot.dot-pulse{
    animation:pulseDot 1.35s infinite;
}

#notificationBadge.badge-pulse{
    animation:badgePulse 1.45s infinite;
}

.live-notification-dropdown{
    position:absolute;
    top:58px;
    right:0;
    width:360px;
    max-width:calc(100vw - 32px);
    background:rgba(255,255,255,.96);
    border:1px solid #d1d5db;
    border-radius:20px;
    box-shadow:0 24px 70px rgba(15,23,42,.24);
    backdrop-filter:blur(14px);
    z-index:5000;
    opacity:0;
    transform:translateY(12px) scale(.98);
    pointer-events:none;
    overflow:hidden;
}

body.live-notification-open .live-notification-dropdown{
    opacity:1;
    transform:translateY(0) scale(1);
    pointer-events:auto;
}

.live-dropdown-head,
.live-dropdown-foot{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:14px 16px;
    background:#f8fafc;
}

.live-dropdown-head strong{
    color:#0f172a;
    font-weight:950;
}

.live-dropdown-head small{
    color:#374151;
    font-weight:900;
}

.live-dropdown-foot a{
    width:100%;
    color:#374151;
    text-align:center;
    text-decoration:none;
    font-weight:900;
}

.live-notification-preview{
    max-height:360px;
    overflow-y:auto;
    padding:10px;
}

.live-mini-notification{
    width:100%;
    border:1px solid transparent;
    background:#ffffff;
    display:flex;
    gap:12px;
    text-align:left;
    padding:12px;
    border-radius:15px;
    cursor:pointer;
    margin-bottom:8px;
    align-items:flex-start;
}

.live-mini-notification:hover{
    background:#ecfdf3;
    border-color:#d1d5db;
    transform:translateY(-1px);
}

.live-mini-notification.unread{
    background:#f9fafb;
    border-color:#cbd5e1;
}

.live-mini-icon{
    width:36px;
    height:36px;
    border-radius:12px;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#374151;
    background:#f3f4f6;
    flex-shrink:0;
}

.live-mini-text strong,
.live-mini-text small{
    display:block;
}

.live-mini-text strong{
    color:#0f172a;
    font-weight:900;
    line-height:1.2;
}

.live-mini-text small{
    color:#64748b;
    margin-top:3px;
    line-height:1.35;
    display:-webkit-box;
    -webkit-box-orient:vertical;
    overflow:hidden;
}

.live-mini-empty{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    color:#64748b;
    min-height:90px;
    font-weight:700;
}

.notifications-list .notification-card.clickable-notification{
    width:100%;
    text-align:left;
    cursor:pointer;
    position:relative;
    align-items:center;
    border-radius:18px;
    background:linear-gradient(135deg,#ffffff,#f8fafc);
}

.notifications-list .notification-card.clickable-notification:hover{
    transform:translateY(-3px);
    box-shadow:0 18px 42px rgba(17, 24, 39, .12);
    border-color:#cbd5e1;
}

.notifications-list .notification-card.clickable-notification.unread{
    background:linear-gradient(135deg,#f9fafb,#ffffff);
}

.notification-title-row{
    display:flex;
    align-items:center;
    gap:10px;
    flex-wrap:wrap;
}

.new-pill{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:3px 8px;
    border-radius:999px;
    background:#9ca3af;
    color:white;
    font-size:11px;
    font-weight:900;
}

.notification-arrow{
    margin-left:auto;
    color:#94a3b8;
}

.clickable-notification.opening{
    opacity:.72;
    transform:scale(.99);
}

.live-data-refreshed .small-stat strong,
.live-data-refreshed #notificationBadge{
    animation:badgePulse .55s ease both;
}

.toast-box{
    animation:studentFadeUp .24s ease both;
    z-index:100000 !important;
}

.animated-empty{
    animation:studentFadeUp .34s ease both;
}

@media(max-width:768px){
    .live-notification-dropdown{
        position:fixed;
        top:78px;
        right:14px;
        left:14px;
        width:auto;
        max-width:none;
    }

    .portal-top{
        align-items:flex-start !important;
    }

    .top-actions{
        position:relative;
        flex-shrink:0;
    }
}


/* PGMO PATCH 2026-06-26: click/focus Student ID guide + secure password helper */
.student-id-help.is-open .student-id-tooltip,
.student-id-help:focus-within .student-id-tooltip{
    opacity:1;
    visibility:visible;
    transform:translateY(0);
}

.student-id-help .student-id-guide-text{
    user-select:none;
}

.password-security-guide{
    margin:-6px 0 14px;
    padding:12px 14px;
    border:1px solid #d1d5db;
    background:#f8fafc;
    border-radius:14px;
    color:#475569;
    font-size:12px;
    font-weight:700;
}

.password-security-guide strong{
    display:block;
    margin-bottom:7px;
    color:#111827;
    font-size:12px;
}

.password-rule-list{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:5px 10px;
}

.password-rule-list span{
    display:flex;
    align-items:center;
    gap:6px;
}

.password-rule-list span::before{
    content:"•";
    color:#94a3b8;
    font-weight:900;
}

.password-rule-list span.valid{
    color:#374151;
}

.password-rule-list span.valid::before{
    content:"✓";
    color:#4b5563;
}

@media (max-width: 540px){
    .password-rule-list{
        grid-template-columns:1fr;
    }
}

/* PGMO PATCH 2026-06-26: compact login/register layout + popup password guide */
.auth-page{
    padding:18px;
}

.auth-shell{
    max-width:1100px;
    min-height:min(650px, calc(100vh - 36px));
}

.login-shell{
    min-height:min(610px, calc(100vh - 36px));
}

.register-shell{
    min-height:min(650px, calc(100vh - 36px));
}

.auth-card{
    padding:42px 46px 28px;
}

.auth-form{
    max-width:420px;
}

.register-form{
    max-width:500px;
}

.auth-form h2{
    font-size:30px;
    margin-bottom:5px;
}

.auth-form p{
    margin-bottom:16px;
    font-size:13px;
    line-height:1.45;
}

.auth-form label{
    font-size:12px;
    margin-bottom:5px;
}

.input-box,
.select-box{
    height:46px;
    margin-bottom:10px;
    border-radius:11px;
}

.input-box i{
    width:46px;
}

.input-box button{
    width:46px;
}

.two-col{
    gap:8px 16px;
}

.compact-auth-grid .input-box{
    margin-bottom:10px;
}

.secure-register-note{
    margin:2px 0 10px;
    padding:10px 12px;
    border-radius:13px;
    font-size:12px;
    line-height:1.35;
}

.auth-switch a{
    padding:12px 22px;
}

.main-btn{
    min-height:46px;
}

.or-line{
    margin:18px 0;
}

.bottom-link{
    margin-top:12px;
    margin-bottom:0;
}

.terms{
    margin:0 0 12px !important;
    line-height:1.35;
}

.auth-hero{
    padding:36px;
}

.seal-row img{
    width:60px;
    height:60px;
}

.seal-row strong{
    font-size:15px;
}

.seal-row span{
    font-size:12px;
}

.watermark-seal{
    width:340px;
    height:340px;
    opacity:.24;
}

.auth-hero-content{
    margin-top:135px;
}

.login-hero .auth-hero-content{
    margin-top:118px;
}

.register-copy{
    left:36px;
    bottom:40px;
}

.auth-hero-content h1{
    font-size:38px;
}

.auth-hero-content p{
    font-size:21px;
}

.auth-hero-content small{
    font-size:14px;
    line-height:1.45;
}

.feature-grid{
    margin-top:18px;
    gap:10px;
}

.feature-grid > div i{
    width:36px;
    height:36px;
}

.student-id-help{
    height:0;
    margin:-8px 0 0 2px;
    z-index:1001;
}

.student-id-tooltip{
    top:8px;
}

.password-security-guide{
    position:relative;
    display:block;
    height:0;
    margin:-8px 0 0;
    padding:0;
    border:0;
    background:transparent;
    border-radius:0;
    color:#475569;
    font-size:12px;
    font-weight:700;
    z-index:1002;
}

.password-security-tooltip{
    position:absolute;
    right:0;
    top:8px;
    width:245px;
    max-width:245px;
    padding:10px;
    border:1px solid #d1d5db;
    border-radius:10px;
    background:#ffffff;
    box-shadow:0 12px 28px rgba(15,23,42,.15);
    opacity:0;
    visibility:hidden;
    transform:translateY(5px);
    transition:.18s ease;
    pointer-events:none;
}

.password-security-tooltip::before{
    content:"";
    position:absolute;
    top:-6px;
    right:18px;
    width:10px;
    height:10px;
    background:#ffffff;
    border-left:1px solid #d1d5db;
    border-top:1px solid #d1d5db;
    transform:rotate(45deg);
}

.password-security-guide.is-open .password-security-tooltip,
.password-security-guide:focus-within .password-security-tooltip{
    opacity:1;
    visibility:visible;
    transform:translateY(0);
    pointer-events:auto;
}

.password-security-tooltip strong{
    display:block;
    margin-bottom:7px;
    color:#111827;
    font-size:12px;
}

.password-security-tooltip .password-rule-list{
    display:grid;
    grid-template-columns:1fr;
    gap:5px;
}

.password-security-tooltip .password-rule-list span{
    display:flex;
    align-items:center;
    gap:6px;
}

@media(max-width:1050px){
    .auth-shell{
        max-width:520px;
        min-height:auto;
    }

    .auth-hero{
        min-height:190px;
        padding:24px;
    }

    .auth-hero-content,
    .login-hero .auth-hero-content{
        margin-top:44px;
    }

    .register-copy{
        margin-top:44px !important;
    }

    .auth-card{
        padding:48px 30px 24px;
    }
}

@media(max-width:650px){
    .auth-page{
        align-items:flex-start;
        padding:8px;
    }

    .auth-shell{
        border-radius:16px;
        max-width:100%;
        min-height:auto;
    }

    .auth-hero{
        min-height:108px;
        padding:15px 16px;
    }

    .auth-hero-content,
    .register-copy,
    .feature-grid{
        display:none;
    }

    .watermark-seal{
        width:170px;
        height:170px;
        left:84%;
        top:50%;
        opacity:.14;
    }

    .seal-row{
        gap:9px;
    }

    .seal-row img{
        width:42px;
        height:42px;
    }

    .seal-row strong{
        font-size:12px;
        line-height:1.08;
    }

    .seal-row span{
        font-size:10px;
    }

    .auth-card{
        padding:42px 16px 18px;
    }

    .auth-switch{
        right:12px;
    }

    .auth-switch a{
        padding:10px 16px;
        font-size:12px;
    }

    .auth-form h2{
        font-size:24px;
        margin-bottom:4px;
    }

    .auth-form p{
        margin-bottom:12px;
        font-size:12px;
    }

    .auth-form label{
        font-size:11.5px;
        margin-bottom:4px;
    }

    .input-box,
    .select-box{
        height:44px;
        margin-bottom:8px;
        border-radius:10px;
    }

    .input-box input{
        font-size:13px;
    }

    .input-box i,
    .input-box button{
        width:42px;
    }

    .two-col,
    .compact-auth-grid,
    .password-auth-grid{
        grid-template-columns:1fr;
        gap:0;
    }

    .secure-register-note{
        margin:0 0 8px;
        padding:8px 10px;
        font-size:11.5px;
    }

    .terms{
        margin:0 0 10px !important;
        font-size:11.5px !important;
    }

    .main-btn{
        min-height:44px;
        font-size:13px;
    }

    .bottom-link,
    .or-line{
        margin-top:10px;
    }

    .student-id-tooltip,
    .password-security-tooltip{
        left:0;
        right:auto;
        width:min(260px, calc(100vw - 56px));
        max-width:min(260px, calc(100vw - 56px));
    }

    .student-id-tooltip::before,
    .password-security-tooltip::before{
        left:18px;
        right:auto;
    }
}

@media(max-height:720px) and (min-width:651px){
    .auth-page{
        padding:10px;
    }

    .auth-shell{
        min-height:auto;
    }

    .auth-card{
        padding-top:38px;
        padding-bottom:20px;
    }

    .auth-hero{
        padding:30px;
    }

    .auth-hero-content{
        margin-top:105px;
    }

    .register-copy{
        left:30px;
        bottom:32px;
    }

    .input-box,
    .select-box{
        height:44px;
        margin-bottom:8px;
    }

    .secure-register-note{
        padding:8px 10px;
    }
}


/* PGMO PATCH: stable notification loading logo */
.notification-loading-state{
    min-height:190px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    text-align:center;
    padding:36px 20px;
    color:#64748b;
    animation:studentFadeUp .28s ease both;
}

.notification-loading-logo{
    width:54px;
    height:54px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#f3f4f6;
    color:#374151;
    box-shadow:0 14px 30px rgba(22,101,52,.16);
    margin-bottom:12px;
    font-size:24px;
}

.notification-loading-state h5{
    margin:0 0 4px;
    color:#0f172a;
    font-weight:950;
}

.notification-loading-state p{
    margin:0;
    color:#64748b;
    font-weight:700;
}


/* PGMO PATCH 2026-06-26: mobile side-by-side dashboard/DTR cards, smooth notifications, and persistent avatar */
.top-avatar,
.mini-avatar,
.profile-image-preview{
    overflow:hidden;
}

.top-avatar img,
.mini-avatar img,
.profile-image-preview img{
    width:100%;
    height:100%;
    object-fit:cover;
    border-radius:inherit;
    display:block;
}

.top-avatar{
    cursor:pointer;
}

.top-avatar.has-profile-image,
.mini-avatar.has-profile-image{
    padding:0;
    background:#ecfdf3;
    border-color:#cbd5e1;
}

.live-dropdown-foot span{
    width:100%;
    color:#374151;
    text-align:center;
    font-weight:900;
    font-size:13px;
}

.notification-loading-state{
    min-height:190px;
    animation:notificationSoftEnter .32s ease both !important;
}

.notification-loading-logo{
    position:relative;
    animation:notificationLogoFloat 1.6s ease-in-out infinite !important;
}

.notification-loading-logo::after{
    content:"";
    position:absolute;
    inset:-8px;
    border-radius:50%;
    border:2px solid rgba(107, 114, 128, .22);
    animation:notificationSoftPulse 1.6s ease-in-out infinite;
}

@keyframes notificationSoftEnter{
    from{opacity:0; transform:translateY(8px)}
    to{opacity:1; transform:translateY(0)}
}

@keyframes notificationLogoFloat{
    0%,100%{transform:translateY(0)}
    50%{transform:translateY(-4px)}
}

@keyframes notificationSoftPulse{
    0%{opacity:.75; transform:scale(.86)}
    70%{opacity:0; transform:scale(1.18)}
    100%{opacity:0; transform:scale(1.18)}
}

@media(max-width:768px){
    body[data-page="dashboard"] .empty-stat-grid,
    body[data-page="monthly-dtr"] .dtr-summary-grid,
    body[data-page="dtr"] .dtr-summary-grid{
        grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
        gap:10px !important;
        align-items:stretch !important;
    }

    body[data-page="dashboard"] .empty-stat-grid .small-stat,
    body[data-page="monthly-dtr"] .dtr-summary-grid .small-stat,
    body[data-page="dtr"] .dtr-summary-grid .small-stat{
        min-height:142px !important;
        padding:14px 10px !important;
        border-radius:18px !important;
        display:flex !important;
        flex-direction:column !important;
        justify-content:center !important;
        align-items:center !important;
    }

    body[data-page="dashboard"] .empty-stat-grid .small-stat i,
    body[data-page="monthly-dtr"] .dtr-summary-grid .small-stat i,
    body[data-page="dtr"] .dtr-summary-grid .small-stat i{
        width:44px !important;
        height:44px !important;
        font-size:19px !important;
        margin-bottom:10px !important;
    }

    body[data-page="dashboard"] .empty-stat-grid .small-stat strong,
    body[data-page="monthly-dtr"] .dtr-summary-grid .small-stat strong,
    body[data-page="dtr"] .dtr-summary-grid .small-stat strong{
        font-size:28px !important;
        line-height:1.05 !important;
        word-break:break-word !important;
        text-align:center !important;
    }

    body[data-page="dashboard"] .empty-stat-grid .small-stat span,
    body[data-page="monthly-dtr"] .dtr-summary-grid .small-stat span,
    body[data-page="dtr"] .dtr-summary-grid .small-stat span{
        font-size:13px !important;
        line-height:1.25 !important;
        text-align:center !important;
        max-width:120px !important;
    }

    body[data-page="dashboard"] .empty-stat-grid .small-stat:nth-child(3),
    body[data-page="monthly-dtr"] .dtr-summary-grid .small-stat:nth-child(3),
    body[data-page="dtr"] .dtr-summary-grid .small-stat:nth-child(3){
        grid-column:span 2 !important;
        min-height:130px !important;
    }

    .portal-top{
        margin-bottom:14px !important;
    }

    .portal-top p{
        font-size:14px !important;
        line-height:1.35 !important;
    }

    .live-notification-dropdown{
        top:86px !important;
        border-radius:18px !important;
    }

    .live-notification-preview{
        max-height:310px !important;
    }
}

@media(max-width:380px){
    body[data-page="dashboard"] .empty-stat-grid,
    body[data-page="monthly-dtr"] .dtr-summary-grid,
    body[data-page="dtr"] .dtr-summary-grid{
        gap:8px !important;
    }

    body[data-page="dashboard"] .empty-stat-grid .small-stat,
    body[data-page="monthly-dtr"] .dtr-summary-grid .small-stat,
    body[data-page="dtr"] .dtr-summary-grid .small-stat{
        padding:12px 8px !important;
        min-height:132px !important;
    }
}


/* PGMO PATCH 2026-06-26: stable notification card clicks and non-glitch loading */
.live-notification-dropdown{
    transition:opacity .18s ease, transform .18s ease !important;
    will-change:opacity, transform;
}

.live-notification-preview,
.live-mini-notification,
.notification-card.clickable-notification{
    pointer-events:auto !important;
}

.live-mini-notification,
.notification-card.clickable-notification{
    -webkit-tap-highlight-color:rgba(22,101,52,.14);
    touch-action:manipulation;
}

.live-mini-notification.opening,
.notification-card.clickable-notification.opening{
    opacity:.72;
    transform:scale(.985) !important;
}

.notification-loading-state{
    animation:none !important;
    transform:none !important;
    opacity:1 !important;
}

.notification-loading-logo{
    animation:none !important;
    transform:none !important;
    position:relative;
}

.notification-loading-logo::after{
    display:none !important;
    content:none !important;
}

.notification-loading-compact{
    min-height:128px !important;
    padding:22px 14px !important;
}

.notification-loading-compact .notification-loading-logo{
    width:46px !important;
    height:46px !important;
    font-size:20px !important;
    margin-bottom:8px !important;
}

.notification-loading-compact p{
    font-size:13px !important;
}

.live-mini-empty i.fa-spinner{
    animation:none !important;
}

@media(max-width:768px){
    .live-notification-dropdown{
        top:86px !important;
        left:14px !important;
        right:14px !important;
        width:auto !important;
        max-width:none !important;
        z-index:99999 !important;
    }

    .live-mini-notification{
        min-height:74px;
        padding:13px !important;
    }
}


/* PGMO PATCH: Required Student ID Guide Modal */
.required-guide-trigger{
    margin-top: 8px;
    cursor: pointer;
}

.required-guide-trigger .student-id-guide-text{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #dc2626;
    font-weight: 800;
    font-size: 13px;
    line-height: 1.35;
}

.required-guide-trigger .student-id-guide-text i{
    color: #f97316;
}

.student-id-guide-modal{
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.student-id-guide-modal.show{
    display: flex;
}

.student-id-guide-backdrop{
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, .62);
    backdrop-filter: blur(6px);
}

.student-id-guide-card{
    position: relative;
    width: min(460px, 100%);
    background: #ffffff;
    border-radius: 26px;
    padding: 30px;
    box-shadow: 0 28px 90px rgba(0, 0, 0, .34);
    animation: pgmoGuidePop .24s ease;
}

.guide-card-icon{
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: linear-gradient(135deg, #374151, #9ca3af);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 16px;
    box-shadow: 0 12px 28px rgba(22, 101, 52, .25);
}

.student-id-guide-card h3{
    margin: 0 0 8px;
    color: #111827;
    font-size: 24px;
    font-weight: 900;
}

.guide-lead{
    margin: 0;
    color: #475569;
    line-height: 1.55;
}

.guide-example-box{
    margin: 18px 0 14px;
    padding: 16px;
    border-radius: 18px;
    background: #ecfdf3;
    border: 1px solid #d1d5db;
    display: grid;
    gap: 8px;
}

.guide-example-box strong{
    color: #064e2b;
}

.guide-example-box span{
    display: inline-flex;
    width: fit-content;
    padding: 6px 10px;
    border-radius: 999px;
    background: #ffffff;
    color: #374151;
    font-weight: 900;
    font-size: 13px;
    border: 1px solid #d1fae5;
}

.student-id-guide-check{
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #0f172a;
    font-weight: 800;
    line-height: 1.45;
    margin: 16px 0;
    cursor: pointer;
}

.student-id-guide-check input{
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: #374151;
    flex: 0 0 auto;
}

#closeStudentIdGuide{
    width: 100%;
    min-height: 50px;
    border: none;
    border-radius: 16px;
    background: #374151;
    color: #ffffff;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 12px 26px rgba(22, 101, 52, .24);
    transition: transform .18s ease, background .18s ease, opacity .18s ease;
}

#closeStudentIdGuide:not(:disabled):hover{
    background: #111827;
    transform: translateY(-1px);
}

#closeStudentIdGuide:disabled{
    background: #94a3b8;
    cursor: not-allowed;
    box-shadow: none;
    opacity: .75;
}

body.student-id-guide-open{
    overflow: hidden;
}

@keyframes pgmoGuidePop{
    from{
        opacity: 0;
        transform: translateY(14px) scale(.96);
    }
    to{
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media(max-width: 520px){
    .student-id-guide-card{
        padding: 24px;
        border-radius: 22px;
    }

    .student-id-guide-card h3{
        font-size: 21px;
    }
}


/* PGMO PATCH: remember-me refresh, hidden accepted guide notice, scrollable bell dropdown, and requirement button fix */
.student-id-help.is-hidden,
#studentIdGuideTrigger.is-hidden{
    display:none !important;
}

.live-notification-dropdown{
    max-height:min(78vh, 560px) !important;
    display:flex !important;
    flex-direction:column !important;
}

.live-notification-preview{
    flex:1 1 auto !important;
    max-height:min(58vh, 420px) !important;
    overflow-y:auto !important;
    overscroll-behavior:contain;
    scrollbar-width:thin;
    scrollbar-color:#4b5563 #ecfdf3;
}

.live-notification-preview::-webkit-scrollbar{
    width:8px;
}

.live-notification-preview::-webkit-scrollbar-track{
    background:#ecfdf3;
    border-radius:999px;
}

.live-notification-preview::-webkit-scrollbar-thumb{
    background:#4b5563;
    border-radius:999px;
}

.requirements-upload-btn{
    position:relative;
    z-index:20;
    pointer-events:auto !important;
}

body[data-page="requirements"] .card-title{
    position:relative;
    z-index:2;
}

body[data-page="requirements"] .requirements-checklist{
    position:relative;
    z-index:1;
}


/* PGMO PATCH: restore polished Student ID guide notice */
.required-guide-trigger{
    margin-top: 10px !important;
    cursor: pointer;
}

.required-guide-trigger .student-id-guide-text{
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    width: 100% !important;
    padding: 12px 14px !important;
    border-radius: 16px !important;
    border: 1px solid #fed7aa !important;
    background: linear-gradient(135deg, #fff7ed, #ffffff) !important;
    color: #7c2d12 !important;
    font-size: 13px !important;
    line-height: 1.35 !important;
    box-shadow: 0 10px 24px rgba(249, 115, 22, .10) !important;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, opacity .18s ease;
}

.required-guide-trigger:hover .student-id-guide-text{
    transform: translateY(-1px);
    border-color: #fb923c !important;
    box-shadow: 0 14px 30px rgba(249, 115, 22, .16) !important;
}

.required-guide-trigger .student-id-guide-text > i{
    width: 30px;
    height: 30px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: #ffffff !important;
    background: linear-gradient(135deg, #f97316, #fb923c);
    margin-top: 1px;
}

.required-guide-trigger .student-id-guide-text strong{
    display: block;
    color: #9a3412;
    font-weight: 950;
    margin-bottom: 2px;
}

.required-guide-trigger .student-id-guide-text small{
    display: block;
    color: #92400e;
    font-weight: 700;
}

.student-id-help.is-hidden,
#studentIdGuideTrigger.is-hidden,
#studentIdGuideNotice.is-hidden{
    display: none !important;
}


/* Student document action buttons */
.student-file-actions{
    display:flex;
    align-items:center;
    gap:8px;
    flex-wrap:wrap;
}

@media(max-width:640px){
    .file-row{
        align-items:flex-start;
    }

    .student-file-actions{
        width:100%;
        margin-top:10px;
    }

    .student-file-actions .btn{
        flex:1;
    }
}

/* PGMO PATCH: requirement status source note for admin-uploaded documents */
.requirement-status-wrap{
    display:flex;
    flex-direction:column;
    align-items:flex-end;
    gap:6px;
}

.requirement-source-note{
    display:inline-flex;
    align-items:center;
    gap:6px;
    color:#374151;
    font-size:11px;
    font-weight:900;
    background:#f3f4f6;
    border:1px solid #d1d5db;
    border-radius:999px;
    padding:5px 8px;
    white-space:nowrap;
}

@media(max-width:900px){
    .requirement-status-wrap{
        align-items:flex-start;
    }
}

/* PGMO PATCH: distinguish requirement upload source */
.requirement-source-note.student-source{
    color:#1d4ed8;
    background:#dbeafe;
    border-color:#bfdbfe;
}

.requirement-source-note.admin-source{
    color:#374151;
    background:#f3f4f6;
    border-color:#d1d5db;
}


/* PGMO PATCH: clickable Terms and Privacy links */
.terms-clickable a,
.terms a{
    color: #374151;
    font-weight: 900;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.terms-clickable a:hover,
.terms a:hover{
    color: #064e2b;
}


/* PGMO DTR PREVIEW MODAL */
.dtr-preview-modal{
    display:none;
    position:fixed;
    inset:0;
    z-index:100000;
    background:rgba(2, 6, 23, .68);
    padding:22px;
    overflow:auto;
}

.dtr-preview-modal.show{
    display:flex;
    align-items:flex-start;
    justify-content:center;
}

body.dtr-preview-open{
    overflow:hidden;
}

.dtr-preview-dialog{
    width:min(1180px, 100%);
    background:#ffffff;
    border-radius:24px;
    box-shadow:0 30px 90px rgba(0,0,0,.35);
    overflow:hidden;
    animation:dtrPreviewPop .22s ease;
}

.dtr-preview-header{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:16px;
    padding:22px 24px;
    border-bottom:1px solid #dbe8df;
    background:linear-gradient(135deg, #111827, #374151);
    color:#ffffff;
}

.dtr-preview-header h3{
    margin:0;
    font-weight:900;
    font-size:24px;
}

.dtr-preview-header p{
    margin:4px 0 0;
    color:#f3f4f6;
}

.dtr-preview-close{
    width:42px;
    height:42px;
    border:none;
    border-radius:50%;
    background:rgba(255,255,255,.14);
    color:#ffffff;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
}

.dtr-preview-close:hover{
    background:rgba(255,255,255,.24);
}

.dtr-preview-body{
    padding:22px;
    max-height:70vh;
    overflow:auto;
    background:#f8fafc;
}

.dtr-preview-student{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin-bottom:18px;
    padding:14px 16px;
    border-radius:16px;
    background:#ffffff;
    border:1px solid #dbe8df;
}

.dtr-preview-student strong{
    color:#111827;
    font-weight:900;
}

.dtr-preview-student span{
    color:#64748b;
    font-weight:700;
}

.dtr-preview-grid{
    display:grid;
    gap:18px;
}

.dtr-preview-grid.two-months{
    grid-template-columns:1fr 1fr;
}

.dtr-preview-grid.one-month{
    grid-template-columns:minmax(0, 760px);
    justify-content:center;
}

.dtr-preview-panel{
    background:#ffffff;
    border:1px solid #dbe8df;
    border-radius:18px;
    overflow:hidden;
}

.dtr-preview-panel-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:14px 16px;
    background:#ecfdf3;
    border-bottom:1px solid #d1d5db;
}

.dtr-preview-panel-head h4{
    margin:0;
    color:#064e2b;
    font-weight:900;
}

.dtr-preview-panel-head span{
    color:#374151;
    font-weight:900;
}

.dtr-preview-table-wrap{
    overflow:auto;
    max-height:520px;
}

.dtr-preview-table{
    width:100%;
    border-collapse:collapse;
    font-size:12px;
}

.dtr-preview-table th,
.dtr-preview-table td{
    border:1px solid #1f2937;
    padding:5px 6px;
    text-align:center;
    white-space:nowrap;
}

.dtr-preview-table th{
    background:#f8fafc;
    color:#111827;
    font-weight:900;
}

.dtr-preview-table td:first-child{
    font-weight:800;
}

.dtr-preview-footer{
    display:flex;
    justify-content:flex-end;
    gap:12px;
    padding:18px 22px;
    border-top:1px solid #dbe8df;
    background:#ffffff;
}

@keyframes dtrPreviewPop{
    from{opacity:0; transform:translateY(14px) scale(.98);}
    to{opacity:1; transform:translateY(0) scale(1);}
}

@media(max-width:900px){
    .dtr-preview-grid.two-months{
        grid-template-columns:1fr;
    }
    .dtr-preview-body{
        max-height:72vh;
    }
    .dtr-preview-student,
    .dtr-preview-footer{
        flex-direction:column;
        align-items:stretch;
    }
}


/* PGMO PATCH 2026-06-30: forced password change banner */
.forced-password-banner{
    display:flex;
    gap:14px;
    align-items:flex-start;
    border:1px solid rgba(22,101,52,.18);
    background:linear-gradient(135deg, rgba(22,101,52,.08), rgba(107, 114, 128, .10));
    margin-bottom:18px;
}
.forced-password-banner h3{
    color:#111827;
    margin:0 0 4px;
    font-size:1.05rem;
    font-weight:800;
}
.forced-password-banner p{
    margin:0 0 4px;
    color:#374151;
    font-weight:700;
}
.forced-password-banner small{
    color:#374151;
}
.forced-password-icon{
    width:42px;
    height:42px;
    border-radius:14px;
    display:grid;
    place-items:center;
    background:#374151;
    color:#fff;
    flex:0 0 auto;
}


/* PGMO FINAL PATCH: compact sidebar student card for smaller desktop resolutions */
.student-mini{
    min-width:0 !important;
    overflow:hidden !important;
}
.student-mini > div{
    min-width:0 !important;
    flex:1 1 auto !important;
    overflow:hidden !important;
}
.student-mini strong,
.student-mini small{
    display:block !important;
    max-width:100% !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
}
.student-mini strong{
    font-size:12px !important;
    line-height:1.18 !important;
    white-space:normal !important;
    display:-webkit-box !important;
    line-clamp:2 !important;
    -webkit-box-orient:vertical !important;
    overflow-wrap:anywhere !important;
}
.student-mini small{
    font-size:12px !important;
    line-height:1.2 !important;
    white-space:nowrap !important;
}
@media(max-height:760px), (max-width:1100px){
    .student-mini{
        left:12px !important;
        right:12px !important;
        bottom:66px !important;
        padding:9px !important;
        gap:8px !important;
    }
    .student-mini .mini-avatar{
        width:36px !important;
        height:36px !important;
        flex:0 0 36px !important;
    }
    .portal-menu a{
        padding:11px 12px !important;
        font-size:14px !important;
    }
}

/* PGMO FINAL PATCH: DTR preview keeps two months side-by-side, with horizontal scroll on small screens */
.dtr-preview-body{
    overflow:auto !important;
}
.dtr-preview-grid.two-months{
    grid-template-columns:repeat(2, minmax(340px, 1fr)) !important;
    min-width:720px !important;
}
.dtr-preview-grid.one-month{
    grid-template-columns:minmax(0, 760px) !important;
}
@media(max-width:900px){
    .dtr-preview-dialog{
        width:100% !important;
    }
    .dtr-preview-grid.two-months{
        grid-template-columns:repeat(2, minmax(320px, 1fr)) !important;
        min-width:680px !important;
    }
    .dtr-preview-table{
        font-size:11px !important;
    }
}

/* PGMO FIX 2026-07-01: keep sidebar name card from overlapping menu on browser zoom/small desktop heights */
.portal-sidebar{
    display:flex !important;
    flex-direction:column !important;
    height:100vh !important;
    overflow-y:auto !important;
    overflow-x:hidden !important;
}
.portal-sidebar .portal-logo{
    flex:0 0 auto !important;
}
.portal-sidebar .portal-menu{
    flex:0 0 auto !important;
    padding-bottom:0 !important;
    margin-bottom:14px !important;
}
.portal-sidebar .student-mini{
    position:relative !important;
    left:auto !important;
    right:auto !important;
    bottom:auto !important;
    width:100% !important;
    flex:0 0 auto !important;
    margin:14px 0 0 !important;
    min-width:0 !important;
    overflow:hidden !important;
    z-index:1 !important;
}
.portal-sidebar .student-mini > div:last-child{
    min-width:0 !important;
    flex:1 1 auto !important;
    overflow:hidden !important;
}
.portal-sidebar .student-mini strong,
.portal-sidebar .student-mini small{
    display:block !important;
    max-width:100% !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
}
.portal-sidebar .student-mini strong{
    white-space:normal !important;
    line-height:1.16 !important;
    max-height:2.35em !important;
    overflow-wrap:anywhere !important;
}
.portal-sidebar .student-mini small{
    white-space:nowrap !important;
    line-height:1.2 !important;
}
.portal-sidebar .sidebar-logout{
    position:relative !important;
    left:auto !important;
    right:auto !important;
    bottom:auto !important;
    width:100% !important;
    flex:0 0 auto !important;
    margin-top:8px !important;
}
@media (min-width:901px){
    .portal-sidebar .student-mini{
        margin-top:auto !important;
    }
}
@media (max-height:760px), (max-width:1100px){
    .portal-sidebar .portal-logo{
        margin-bottom:14px !important;
    }
    .portal-sidebar .portal-logo img{
        width:56px !important;
        height:56px !important;
    }
    .portal-sidebar .portal-menu{
        gap:6px !important;
        margin-bottom:10px !important;
    }
    .portal-sidebar .portal-menu a{
        min-height:42px !important;
        padding:9px 10px !important;
        font-size:13px !important;
        line-height:1.15 !important;
    }
    .portal-sidebar .student-mini{
        padding:8px !important;
        gap:8px !important;
    }
    .portal-sidebar .student-mini .mini-avatar{
        width:36px !important;
        height:36px !important;
        flex:0 0 36px !important;
    }
    .portal-sidebar .student-mini strong{
        font-size:12px !important;
    }
    .portal-sidebar .student-mini small{
        font-size:11px !important;
    }
    .portal-sidebar .sidebar-logout{
        padding:9px 10px !important;
        font-size:13px !important;
    }
}
@media (max-width:900px){
    .portal-sidebar{
        height:auto !important;
        max-height:0;
    }
    body.mobile-menu-open .portal-sidebar,
    .portal-sidebar.mobile-open{
        max-height:90vh !important;
    }
    .portal-sidebar .student-mini{
        margin-top:14px !important;
    }
}

/* PGMO STUDENT DTR DESKTOP GUARD 2026-07-01
   Limit the desktop DTR form hit-area to the paper instead of the whole white card,
   and prevent the active same-page DTR sidebar link from stealing clicks. */
body[data-page="monthly-dtr"] .dtr-template-card{
    position:relative !important;
    overflow:visible !important;
}
body[data-page="monthly-dtr"] #monthlyDtrForm{
    max-width:920px !important;
    margin-left:auto !important;
    margin-right:auto !important;
}
body[data-page="monthly-dtr"] .dtr-paper{
    width:100% !important;
    max-width:920px !important;
    margin-left:auto !important;
    margin-right:auto !important;
}
body[data-page="monthly-dtr"] .card-title,
body[data-page="monthly-dtr"] .dtr-form-actions{
    position:relative !important;
    z-index:50 !important;
}
body[data-page="monthly-dtr"] #clearDtrButton,
body[data-page="monthly-dtr"] #downloadJointDtrPdfButton{
    position:relative !important;
    z-index:60 !important;
    cursor:pointer !important;
    pointer-events:auto !important;
    touch-action:manipulation !important;
    user-select:none !important;
    -webkit-user-select:none !important;
}
body[data-page="monthly-dtr"] .portal-menu a.active[href="dtr.html"],
body[data-page="monthly-dtr"] .portal-menu a.active[href$="/dtr.html"]{
    pointer-events:none !important;
}
@media(max-width:900px){
    body[data-page="monthly-dtr"] #monthlyDtrForm,
    body[data-page="monthly-dtr"] .dtr-paper{
        max-width:100% !important;
    }
    body[data-page="monthly-dtr"] .portal-menu a.active[href="dtr.html"],
    body[data-page="monthly-dtr"] .portal-menu a.active[href$="/dtr.html"]{
        pointer-events:auto !important;
    }
}


/* PGMO STUDENT DTR ACTIONS RELOCATION 2026-07-01
   The Clear/Print buttons are moved outside the DTR card so the old invisible
   notification/click layer at the top-right cannot interfere with them. */
body[data-page="monthly-dtr"] .current-page-link{
    pointer-events:none !important;
    cursor:default !important;
}

body[data-page="monthly-dtr"] .top-actions{
    position:relative !important;
    z-index:100 !important;
    isolation:isolate !important;
}

body[data-page="monthly-dtr"] button.top-icon{
    appearance:none !important;
    -webkit-appearance:none !important;
    padding:0 !important;
    cursor:pointer !important;
}

body[data-page="monthly-dtr"]:not(.live-notification-open) .live-notification-dropdown{
    display:none !important;
    pointer-events:none !important;
}

body[data-page="monthly-dtr"] .live-notification-dropdown{
    top:52px !important;
    right:0 !important;
    z-index:120 !important;
}

body[data-page="monthly-dtr"] .dtr-action-panel{
    max-width:920px;
    margin:0 auto 18px;
    padding:16px 18px;
    background:#ffffff;
    border:1px solid #d1d5db;
    border-radius:18px;
    box-shadow:0 12px 30px rgba(17, 24, 39, .08);
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    position:relative;
    z-index:20;
}

body[data-page="monthly-dtr"] .dtr-action-panel-text{
    display:flex;
    flex-direction:column;
    gap:2px;
    min-width:0;
}

body[data-page="monthly-dtr"] .dtr-action-panel-text strong{
    color:#111827;
    font-weight:900;
    font-size:15px;
}

body[data-page="monthly-dtr"] .dtr-action-panel-text span{
    color:#64748b;
    font-size:13px;
}

body[data-page="monthly-dtr"] .dtr-action-buttons{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:12px;
    flex-wrap:wrap;
}

body[data-page="monthly-dtr"] .dtr-action-buttons .outline-green-btn{
    min-width:130px;
    justify-content:center;
    position:relative;
    z-index:25;
    pointer-events:auto !important;
    cursor:pointer !important;
    touch-action:manipulation;
}

body[data-page="monthly-dtr"] .dtr-template-card .card-title{
    align-items:flex-start !important;
    gap:8px !important;
}

body[data-page="monthly-dtr"] .dtr-template-card .dtr-form-actions{
    display:none !important;
}

@media(max-width:900px){
    body[data-page="monthly-dtr"] .current-page-link{
        pointer-events:auto !important;
    }

    body[data-page="monthly-dtr"] .dtr-action-panel{
        max-width:100%;
        margin:0 0 14px;
        padding:14px;
        flex-direction:column;
        align-items:stretch;
        gap:12px;
    }

    body[data-page="monthly-dtr"] .dtr-action-buttons{
        display:grid;
        grid-template-columns:1fr 1fr;
        gap:10px;
        width:100%;
    }

    body[data-page="monthly-dtr"] .dtr-action-buttons .outline-green-btn{
        width:100%;
        min-width:0;
        min-height:44px;
    }
}


/* PGMO PATCH 2026-07-01: Notifications page action buttons must never be covered by notification cards/dropdowns */
body[data-page="notifications"] .section-card{
    position:relative !important;
    z-index:20 !important;
    isolation:isolate !important;
    overflow:visible !important;
}

body[data-page="notifications"] .section-card .card-title{
    position:relative !important;
    z-index:100 !important;
    overflow:visible !important;
}

body[data-page="notifications"] .notification-actions{
    position:relative !important;
    z-index:10000 !important;
    display:flex !important;
    align-items:center !important;
    gap:10px !important;
    pointer-events:auto !important;
}

body[data-page="notifications"] .notification-actions button,
body[data-page="notifications"] .notification-command-btn{
    position:relative !important;
    z-index:10001 !important;
    pointer-events:auto !important;
    cursor:pointer !important;
    touch-action:manipulation !important;
}

body[data-page="notifications"] .notifications-list{
    position:relative !important;
    z-index:1 !important;
    margin-top:14px !important;
}

body[data-page="notifications"] .notifications-list .clickable-notification{
    position:relative !important;
    z-index:1 !important;
}

body[data-page="notifications"] .top-actions{
    position:relative !important;
    z-index:200 !important;
    isolation:isolate !important;
}

body[data-page="notifications"]:not(.live-notification-open) .live-notification-dropdown{
    display:none !important;
    pointer-events:none !important;
}

body[data-page="notifications"] .live-notification-dropdown{
    top:52px !important;
    right:0 !important;
    z-index:300 !important;
}


/* PGMO FINAL STUDENT TOPBAR OVERLAY FIX 2026-07-02
   Prevents the hidden notification dropdown/cards from covering the top bar,
   redirecting blank areas, or blocking scroll on desktop/mobile. */
body.portal-body .portal-top{
    position:relative !important;
    z-index:40 !important;
    isolation:isolate !important;
}

body.portal-body .top-actions{
    position:relative !important;
    z-index:80 !important;
    isolation:isolate !important;
}

body.portal-body button.top-icon,
body.portal-body .top-actions .top-icon{
    appearance:none !important;
    -webkit-appearance:none !important;
    padding:0 !important;
    margin:0 !important;
    cursor:pointer !important;
    pointer-events:auto !important;
    flex:0 0 42px !important;
}

body.portal-body .top-avatar{
    cursor:pointer !important;
    pointer-events:auto !important;
    flex:0 0 42px !important;
}

body.portal-body #liveNotificationDropdown.live-notification-dropdown{
    position:absolute !important;
    top:52px !important;
    right:0 !important;
    left:auto !important;
    width:360px !important;
    max-width:calc(100vw - 32px) !important;
    max-height:min(76vh, 560px) !important;
    display:none !important;
    visibility:hidden !important;
    opacity:0 !important;
    transform:translateY(8px) scale(.98) !important;
    pointer-events:none !important;
    overflow:hidden !important;
    z-index:90 !important;
}

body.portal-body.live-notification-open #liveNotificationDropdown.live-notification-dropdown{
    display:flex !important;
    visibility:visible !important;
    opacity:1 !important;
    transform:translateY(0) scale(1) !important;
    pointer-events:auto !important;
}

body.portal-body:not(.live-notification-open) #liveNotificationDropdown,
body.portal-body:not(.live-notification-open) #liveNotificationDropdown *,
body.portal-body:not(.live-notification-open) .live-notification-preview{
    pointer-events:none !important;
    overflow:hidden !important;
}

body.portal-body.live-notification-open #liveNotificationDropdown .live-notification-preview{
    overflow-y:auto !important;
    overscroll-behavior:contain !important;
    -webkit-overflow-scrolling:touch !important;
}

body.portal-body .portal-top > :first-child{
    position:relative !important;
    z-index:1 !important;
}

body.portal-body .portal-main,
body.portal-body .dash-card,
body.portal-body .section-card,
body.portal-body .upload-list-card,
body.portal-body .requirements-checklist,
body.portal-body .uploaded-list{
    position:relative !important;
}

body.portal-body:not(.live-notification-open) .live-mini-notification{
    pointer-events:none !important;
}

@media(max-width:900px){
    body.portal-body #liveNotificationDropdown.live-notification-dropdown{
        top:50px !important;
        right:0 !important;
        width:min(340px, calc(100vw - 24px)) !important;
        max-height:min(70vh, 520px) !important;
    }
}


/* PGMO PATCH 2026-07-02: register gender select */
.input-box select{
    width:100%;
    border:0;
    outline:0;
    background:transparent;
    color:#0f172a;
    font:inherit;
    padding:0;
}
.input-box select:invalid,
.input-box select option[value=""]{
    color:#94a3b8;
}


/* PGMO PATCH 2026-07-02: no tab/page flicker, no invisible buttons added */
body.portal-body.student-page-ready .portal-main,
body.portal-body.student-page-leaving .portal-main{
    animation:none !important;
    opacity:1 !important;
    transform:none !important;
}

body.portal-body .student-polish-card{
    animation:none !important;
}

.tab-row button[data-filter]{
    touch-action:manipulation;
}


/* PGMO PATCH 2026-07-02: live UI polish, no 0 badge/avatar flash, cool loaders */
#notificationBadge{
    display:none;
}
#notificationBadge:not(:empty){
    display:inline-flex;
}

.mini-avatar,
.top-avatar,
#profilePicturePreview{
    position:relative;
    overflow:hidden;
    background:linear-gradient(135deg, #f3f4f6, #f9fafb);
}

.mini-avatar img,
.top-avatar img,
#profilePicturePreview img{
    opacity:1;
    transition:opacity .18s ease, transform .22s ease;
}

.mini-avatar.avatar-loading img,
.top-avatar.avatar-loading img,
#profilePicturePreview.avatar-loading img{
    opacity:0;
}

.mini-avatar .avatar-fallback-icon,
.top-avatar .avatar-fallback-icon,
#profilePicturePreview .avatar-fallback-icon{
    position:absolute;
    inset:0;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#374151;
    z-index:1;
}

.mini-avatar.has-profile-image .avatar-fallback-icon,
.top-avatar.has-profile-image .avatar-fallback-icon,
#profilePicturePreview.has-profile-image .avatar-fallback-icon{
    display:none;
}

.mini-avatar.avatar-loading::after,
.top-avatar.avatar-loading::after,
#profilePicturePreview.avatar-loading::after{
    content:"";
    position:absolute;
    inset:-40%;
    background:linear-gradient(110deg, transparent 28%, rgba(255,255,255,.72) 45%, transparent 62%);
    animation:pgmoAvatarShimmer 1.05s linear infinite;
    z-index:2;
    pointer-events:none;
}

@keyframes pgmoAvatarShimmer{
    from{transform:translateX(-35%) rotate(12deg)}
    to{transform:translateX(35%) rotate(12deg)}
}

.pgmo-live-loader,
.notification-loading-state,
.empty-state{
    animation:pgmoLiveRise .34s ease both;
    animation-delay:var(--stagger, 0ms);
}

.notification-loading-logo,
.empty-state > i.fa-spinner,
.empty-state > i.fa-bell,
.empty-state > i.fa-file-lines{
    animation:pgmoLoaderFloat 1.6s ease-in-out infinite !important;
}

.notification-loading-logo::after,
.empty-state > i.fa-spinner::after{
    content:"";
    position:absolute;
    inset:-8px;
    border-radius:inherit;
    border:2px solid rgba(22,101,52,.16);
    animation:pgmoLoaderPulse 1.6s ease-in-out infinite;
    pointer-events:none;
}

.student-polish-card,
.dash-card,
.file-row,
.requirement-item,
.notification-card{
    animation:pgmoCardSoftIn .32s ease both;
}

.dash-card:hover,
.file-row:hover,
.requirement-item:hover,
.notification-card:hover{
    transform:translateY(-2px);
    transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

@keyframes pgmoLiveRise{
    from{opacity:0; transform:translateY(10px) scale(.985)}
    to{opacity:1; transform:translateY(0) scale(1)}
}

@keyframes pgmoCardSoftIn{
    from{opacity:0; transform:translateY(8px)}
    to{opacity:1; transform:translateY(0)}
}

@keyframes pgmoLoaderFloat{
    0%,100%{transform:translateY(0)}
    50%{transform:translateY(-5px)}
}

@keyframes pgmoLoaderPulse{
    0%{opacity:.7; transform:scale(.82)}
    70%{opacity:0; transform:scale(1.18)}
    100%{opacity:0; transform:scale(1.18)}
}

@media (prefers-reduced-motion: reduce){
    .pgmo-live-loader,
    .notification-loading-state,
    .empty-state,
    .student-polish-card,
    .dash-card,
    .file-row,
    .requirement-item,
    .notification-card,
    .notification-loading-logo,
    .empty-state > i.fa-spinner,
    .empty-state > i.fa-bell,
    .empty-state > i.fa-file-lines{
        animation:none !important;
        transition:none !important;
    }
}

/* PGMO PATCH 2026-07-02: live ring loading animation like logout overlay, no invisible controls */
.pgmo-live-ring-loader,
.pgmo-dot-loader,
.notification-loading-logo,
.empty-state > i.fa-spinner,
.empty-state i.fa-spinner,
.live-mini-empty i.fa-spinner,
.loading-state i.fa-spinner,
.table-loading i.fa-spinner,
.students-loading i.fa-spinner,
.admin-loading i.fa-spinner{
    width:46px !important;
    height:46px !important;
    min-width:46px !important;
    min-height:46px !important;
    display:inline-block !important;
    position:relative !important;
    border-radius:50% !important;
    box-sizing:border-box !important;
    margin:0 auto 18px !important;
    background:none !important;
    border:5px solid #f3f4f6 !important;
    border-top-color:#374151 !important;
    border-right-color:#cbd5e1 !important;
    color:transparent !important;
    font-size:0 !important;
    line-height:0 !important;
    animation:pgmoLiveRingSpin .78s linear infinite !important;
    pointer-events:none !important;
}

.pgmo-live-ring-loader i,
.notification-loading-logo i{
    display:none !important;
}

.pgmo-live-ring-loader::before,
.pgmo-live-ring-loader::after,
.pgmo-dot-loader::before,
.pgmo-dot-loader::after,
.notification-loading-logo::before,
.notification-loading-logo::after,
.empty-state > i.fa-spinner::before,
.empty-state > i.fa-spinner::after,
.empty-state i.fa-spinner::before,
.empty-state i.fa-spinner::after,
.live-mini-empty i.fa-spinner::before,
.live-mini-empty i.fa-spinner::after,
.loading-state i.fa-spinner::before,
.loading-state i.fa-spinner::after,
.table-loading i.fa-spinner::before,
.table-loading i.fa-spinner::after,
.students-loading i.fa-spinner::before,
.students-loading i.fa-spinner::after,
.admin-loading i.fa-spinner::before,
.admin-loading i.fa-spinner::after{
    content:"" !important;
    display:none !important;
}

@keyframes pgmoLiveRingSpin{
    from{transform:rotate(0deg)}
    to{transform:rotate(360deg)}
}

@media (prefers-reduced-motion: reduce){
    .pgmo-live-ring-loader,
    .pgmo-dot-loader,
    .notification-loading-logo,
    .empty-state > i.fa-spinner,
    .empty-state i.fa-spinner,
    .live-mini-empty i.fa-spinner,
    .loading-state i.fa-spinner,
    .table-loading i.fa-spinner,
    .students-loading i.fa-spinner,
    .admin-loading i.fa-spinner{
        animation:none !important;
    }
}


/* PGMO PATCH 2026-07-02: restore LIVE rotating ring loaders after deployment clean
   This is visual only. It does not create buttons, links, overlays, or click targets. */
.pgmo-live-ring-loader,
.pgmo-dot-loader,
.notification-loading-logo,
.empty-state > i.fa-spinner,
.empty-state i.fa-spinner,
.live-mini-empty i.fa-spinner,
.loading-state i.fa-spinner,
.table-loading i.fa-spinner,
.students-loading i.fa-spinner,
.admin-loading i.fa-spinner,
.fa-spinner.fa-spin{
    width:46px !important;
    height:46px !important;
    min-width:46px !important;
    min-height:46px !important;
    display:inline-block !important;
    position:relative !important;
    border-radius:50% !important;
    box-sizing:border-box !important;
    margin:0 auto 18px !important;
    background:none !important;
    border:5px solid #f3f4f6 !important;
    border-top-color:#374151 !important;
    border-right-color:#cbd5e1 !important;
    color:transparent !important;
    font-size:0 !important;
    line-height:0 !important;
    transform-origin:center center !important;
    animation:pgmoLiveRingSpinRestored .75s linear infinite !important;
    pointer-events:none !important;
}

.pgmo-live-ring-loader::before,
.pgmo-live-ring-loader::after,
.pgmo-dot-loader::before,
.pgmo-dot-loader::after,
.notification-loading-logo::before,
.notification-loading-logo::after,
.empty-state > i.fa-spinner::before,
.empty-state > i.fa-spinner::after,
.empty-state i.fa-spinner::before,
.empty-state i.fa-spinner::after,
.live-mini-empty i.fa-spinner::before,
.live-mini-empty i.fa-spinner::after,
.loading-state i.fa-spinner::before,
.loading-state i.fa-spinner::after,
.table-loading i.fa-spinner::before,
.table-loading i.fa-spinner::after,
.students-loading i.fa-spinner::before,
.students-loading i.fa-spinner::after,
.admin-loading i.fa-spinner::before,
.admin-loading i.fa-spinner::after,
.fa-spinner.fa-spin::before,
.fa-spinner.fa-spin::after{
    content:"" !important;
    display:none !important;
}

@keyframes pgmoLiveRingSpinRestored{
    0%{transform:rotate(0deg)}
    100%{transform:rotate(360deg)}
}

@media (prefers-reduced-motion: reduce){
    .pgmo-live-ring-loader,
    .pgmo-dot-loader,
    .notification-loading-logo,
    .empty-state > i.fa-spinner,
    .empty-state i.fa-spinner,
    .live-mini-empty i.fa-spinner,
    .loading-state i.fa-spinner,
    .table-loading i.fa-spinner,
    .students-loading i.fa-spinner,
    .admin-loading i.fa-spinner,
    .fa-spinner.fa-spin{
        animation:pgmoLiveRingSpinRestored 1.15s linear infinite !important;
    }
}

/* PGMO PATCH 2026-07-03: grayscale theme transition (student portal)
   Visible theme only. No invisible buttons or overlay controls. */
:root{
    --dark:#111827;
    --dark-2:#1f2937;
    --green:#374151;
    --green-dark:#111827;
    --green-soft:#f3f4f6;
    --green-accent:#9ca3af;
    --light:#f6f7f8;
    --border:#d1d5db;
}

.auth-page{
    background:
        radial-gradient(circle at 90% 0%,rgba(255,255,255,.16),transparent 24%),
        linear-gradient(135deg,#050505 0%,#1f2937 48%,#f3f4f6 100%) !important;
}

.auth-hero,
.student-sidebar,
.mobile-sidebar-header,
.sidebar-brand,
.student-hero,
.dashboard-hero,
.page-hero{
    background:
        linear-gradient(135deg,rgba(0,0,0,.96),rgba(31,41,55,.90)),
        linear-gradient(135deg,#000000,#6b7280,#f9fafb) !important;
}

.btn-primary,
.primary-btn,
.upload-submit-btn,
.student-submit-btn,
button[type="submit"].btn-primary{
    background:linear-gradient(135deg,#111827,#4b5563) !important;
    border-color:#111827 !important;
    color:#ffffff !important;
    box-shadow:0 12px 26px rgba(17,24,39,.20) !important;
}

.btn-primary:hover,
.primary-btn:hover,
.upload-submit-btn:hover,
.student-submit-btn:hover{
    background:linear-gradient(135deg,#000000,#374151) !important;
}

.outline-green-btn,
.btn-outline-success,
.quick-card,
.student-card,
.dash-card{
    border-color:#d1d5db !important;
}

.outline-green-btn,
.btn-outline-success{
    color:#111827 !important;
    background:#ffffff !important;
}

.outline-green-btn:hover,
.btn-outline-success:hover{
    color:#ffffff !important;
    background:#374151 !important;
    border-color:#374151 !important;
}

.sidebar-link.active,
.sidebar-link:hover,
.nav-link.active,
.nav-link:hover,
.student-nav a.active,
.student-nav a:hover{
    background:rgba(255,255,255,.16) !important;
    color:#ffffff !important;
}

.badge-approved,
.badge-status.badge-approved,
.status-approved{
    background:#f3f4f6 !important;
    color:#111827 !important;
    border:1px solid #d1d5db !important;
}

/* PGMO PATCH 2026-07-03: student document delete option removed */
.student-document-lock{
    display:inline-flex;
    align-items:center;
    gap:6px;
    padding:7px 11px;
    border-radius:999px;
    border:1px solid #d1d5db;
    background:#f9fafb;
    color:#374151;
    font-size:12px;
    font-weight:800;
    white-space:nowrap;
}


/* PGMO PATCH 2026-07-03: black-to-deep-blue gradient theme
   Visible colors only. No invisible buttons or overlays. */
:root{
    --pgmo-gradient-dark:#04050a;
    --pgmo-gradient-mid:#0b1028;
    --pgmo-gradient-blue:#1f1a72;
    --pgmo-action-green:#16a34a;
    --pgmo-action-green-dark:#15803d;
    --pgmo-action-green-soft:#dcfce7;
}

.auth-page{
    background:
        radial-gradient(circle at 82% 20%, rgba(79,70,229,.32), transparent 34%),
        linear-gradient(135deg, var(--pgmo-gradient-dark) 0%, var(--pgmo-gradient-mid) 48%, var(--pgmo-gradient-blue) 100%) !important;
}

.auth-hero,
.student-sidebar,
.mobile-sidebar-header,
.sidebar-brand,
.student-hero,
.dashboard-hero,
.page-hero,
.portal-sidebar{
    background:
        radial-gradient(circle at 92% 12%, rgba(79,70,229,.34), transparent 30%),
        linear-gradient(135deg, var(--pgmo-gradient-dark) 0%, var(--pgmo-gradient-mid) 54%, var(--pgmo-gradient-blue) 100%) !important;
}

.portal-menu a,
.student-nav a,
.sidebar-link,
.nav-link{
    color:#f8fafc !important;
}

.portal-menu a.active,
.portal-menu a:hover,
.student-nav a.active,
.student-nav a:hover,
.sidebar-link.active,
.sidebar-link:hover,
.nav-link.active,
.nav-link:hover{
    background:linear-gradient(135deg, rgba(255,255,255,.20), rgba(79,70,229,.34)) !important;
    color:#ffffff !important;
}

.student-mini{
    background:rgba(255,255,255,.13) !important;
    border:1px solid rgba(255,255,255,.12) !important;
}

/* Keep action buttons green for easy spotting */
.main-btn,
.btn-primary,
.primary-btn,
.upload-submit-btn,
.student-submit-btn,
.section-btn,
.btn-success,
button[type="submit"].btn-primary{
    background:linear-gradient(135deg, var(--pgmo-action-green), var(--pgmo-action-green-dark)) !important;
    border-color:var(--pgmo-action-green-dark) !important;
    color:#ffffff !important;
    box-shadow:0 12px 26px rgba(22,163,74,.22) !important;
}

.main-btn:hover,
.btn-primary:hover,
.primary-btn:hover,
.upload-submit-btn:hover,
.student-submit-btn:hover,
.section-btn:hover,
.btn-success:hover{
    background:linear-gradient(135deg, #22c55e, #166534) !important;
    border-color:#166534 !important;
    color:#ffffff !important;
}

.outline-green-btn,
.btn-outline-success,
.btn-outline-primary{
    color:var(--pgmo-action-green-dark) !important;
    background:#ffffff !important;
    border-color:var(--pgmo-action-green) !important;
}

.outline-green-btn:hover,
.btn-outline-success:hover,
.btn-outline-primary:hover{
    color:#ffffff !important;
    background:var(--pgmo-action-green) !important;
    border-color:var(--pgmo-action-green-dark) !important;
}

.badge-approved,
.badge-status.badge-approved,
.status-approved,
.requirement-status-pill.approved,
.clean-status.approved,
.id-request-status-box.allowed{
    background:var(--pgmo-action-green-soft) !important;
    color:#166534 !important;
    border:1px solid #86efac !important;
    border-radius:999px !important;
    font-weight:900 !important;
}

/* PGMO PATCH 2026-07-03: charcoal gray gradient + readable status pills
   Uses the attached black-to-gray gradient. Action/status buttons stay color-coded.
   No invisible buttons or overlays are added here. */
:root{
    --pgmo-gradient-dark:#020202;
    --pgmo-gradient-mid:#181818;
    --pgmo-gradient-end:#474545;
    --pgmo-gradient-soft:#2b2b2b;
    --pgmo-action-green:#16a34a;
    --pgmo-action-green-dark:#15803d;
    --pgmo-action-green-soft:#dcfce7;
    --pgmo-warning:#f59e0b;
    --pgmo-warning-dark:#92400e;
    --pgmo-warning-soft:#fef3c7;
    --pgmo-danger:#dc2626;
    --pgmo-danger-dark:#991b1b;
    --pgmo-danger-soft:#fee2e2;
}

.login-body,
.logout-body,
.auth-page{
    background:
        radial-gradient(circle at 82% 20%, rgba(255,255,255,.10), transparent 34%),
        linear-gradient(135deg, var(--pgmo-gradient-dark) 0%, var(--pgmo-gradient-mid) 48%, var(--pgmo-gradient-end) 100%) !important;
}

.login-left,
.login-hero,
.auth-hero,
.admin-sidebar,
.sidebar,
.admin-hero,
.dashboard-hero,
.page-hero,
.student-sidebar,
.mobile-sidebar-header,
.sidebar-brand,
.student-hero,
.portal-sidebar{
    background:
        radial-gradient(circle at 90% 10%, rgba(255,255,255,.12), transparent 26%),
        linear-gradient(135deg, var(--pgmo-gradient-dark) 0%, var(--pgmo-gradient-mid) 58%, var(--pgmo-gradient-end) 100%) !important;
}

.sidebar a,
.admin-sidebar a,
.admin-nav a,
.sidebar-link,
.nav-link,
.portal-menu a,
.student-nav a{
    color:#f8fafc !important;
}

.sidebar a.active,
.sidebar a:hover,
.sidebar-link.active,
.sidebar-link:hover,
.admin-nav a.active,
.admin-nav a:hover,
.nav-link.active,
.nav-link:hover,
.portal-menu a.active,
.portal-menu a:hover,
.student-nav a.active,
.student-nav a:hover{
    background:
        linear-gradient(135deg, rgba(255,255,255,.20), rgba(255,255,255,.08)) !important;
    color:#ffffff !important;
    border-left-color:#ffffff !important;
}

.student-mini,
.admin-mini,
.sidebar-profile,
.student-sidebar .profile-mini,
.portal-profile-card{
    background:rgba(255,255,255,.13) !important;
    border:1px solid rgba(255,255,255,.12) !important;
}

/* Main action buttons stay green for quick recognition */
.btn-primary,
.primary-btn,
.admin-btn-primary,
button[type="submit"].btn-primary,
.btn-success,
.action-btn,
.generate-btn,
.certificate-generate-btn,
.main-btn,
.upload-submit-btn,
.student-submit-btn,
.section-btn,
button[onclick*="generate"],
button[onclick*="Generate"],
button[onclick*="render"].btn-primary,
button[onclick*="download"].btn-primary{
    background:linear-gradient(135deg, var(--pgmo-action-green), var(--pgmo-action-green-dark)) !important;
    border-color:var(--pgmo-action-green-dark) !important;
    color:#ffffff !important;
    box-shadow:0 12px 26px rgba(22,163,74,.22) !important;
}

.btn-primary:hover,
.primary-btn:hover,
.admin-btn-primary:hover,
.btn-success:hover,
.action-btn:hover,
.generate-btn:hover,
.certificate-generate-btn:hover,
.main-btn:hover,
.upload-submit-btn:hover,
.student-submit-btn:hover,
.section-btn:hover,
button[onclick*="generate"]:hover,
button[onclick*="Generate"]:hover,
button[onclick*="render"].btn-primary:hover,
button[onclick*="download"].btn-primary:hover{
    background:linear-gradient(135deg, #22c55e, #166534) !important;
    border-color:#166534 !important;
    color:#ffffff !important;
}

.btn-outline-success,
.outline-green-btn,
.btn-outline-primary{
    color:var(--pgmo-action-green-dark) !important;
    background:#ffffff !important;
    border-color:var(--pgmo-action-green) !important;
}

.btn-outline-success:hover,
.outline-green-btn:hover,
.btn-outline-primary:hover{
    color:#ffffff !important;
    background:var(--pgmo-action-green) !important;
    border-color:var(--pgmo-action-green-dark) !important;
}

/* Base badge/pill shape. Prevents highlighted-text look. */
.badge-soft,
.badge-status,
.status-pill,
.certificate-status,
.status-eligible,
.requirement-status-pill,
.clean-status,
.pgmo-req-badge,
.pgmo-completion-pill,
.id-request-status-box,
.student-document-lock{
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    width:max-content !important;
    min-width:auto !important;
    padding:7px 13px !important;
    border-radius:999px !important;
    font-weight:900 !important;
    line-height:1 !important;
    text-decoration:none !important;
    box-shadow:0 8px 18px rgba(15,23,42,.06) !important;
    white-space:nowrap !important;
}

/* Green: ready / eligible / approved / completed / success */
.badge-approved,
.badge-status.badge-approved,
.badge-soft.badge-approved,
.badge-soft.badge-eligible,
.badge-status.badge-eligible,
.certificate-status.eligible,
.status-eligible,
.eligible,
.badge-eligible,
.status-approved,
.status-ready,
.status-completed,
.badge-ready,
.badge-completed,
.badge-status.badge-completed,
.badge-soft.badge-completed,
.badge-status.badge-ready,
.badge-soft.badge-ready,
.requirement-status-pill.approved,
.requirement-status-pill.completed,
.clean-status.approved,
.clean-status.ready,
.clean-status.completed,
.pgmo-req-badge.approved,
.pgmo-completion-pill.completed,
.id-request-status-box.approved,
.id-request-status-box.allowed,
.student-document-lock.approved{
    background:var(--pgmo-action-green-soft) !important;
    color:#166534 !important;
    border:1px solid #86efac !important;
}

/* Yellow: pending / ongoing / submitted / locked / review */
.badge-pending,
.badge-status.badge-pending,
.badge-soft.badge-pending,
.badge-ongoing,
.badge-status.badge-ongoing,
.badge-soft.badge-ongoing,
.status-pending,
.status-ongoing,
.status-submitted,
.status-locked,
.badge-submitted,
.badge-locked,
.badge-status.badge-submitted,
.badge-soft.badge-submitted,
.badge-status.badge-locked,
.badge-soft.badge-locked,
.requirement-status-pill.pending,
.requirement-status-pill.ongoing,
.clean-status.pending,
.clean-status.ongoing,
.pgmo-req-badge.pending,
.pgmo-completion-pill.ongoing,
.pgmo-completion-pill.not-completed,
.id-request-status-box.pending,
.student-document-lock.submitted{
    background:var(--pgmo-warning-soft) !important;
    color:var(--pgmo-warning-dark) !important;
    border:1px solid #fbbf24 !important;
}

/* Red: returned / rejected / missing / denied */
.badge-returned,
.badge-rejected,
.badge-missing,
.badge-denied,
.badge-status.badge-returned,
.badge-status.badge-rejected,
.badge-status.badge-missing,
.badge-soft.badge-returned,
.badge-soft.badge-rejected,
.badge-soft.badge-missing,
.status-returned,
.status-rejected,
.status-missing,
.status-denied,
.requirement-status-pill.returned,
.requirement-status-pill.missing,
.clean-status.returned,
.clean-status.missing,
.pgmo-req-badge.returned,
.pgmo-req-badge.missing,
.id-request-status-box.rejected,
.id-request-status-box.returned{
    background:var(--pgmo-danger-soft) !important;
    color:var(--pgmo-danger-dark) !important;
    border:1px solid #fca5a5 !important;
}



/* PGMO PATCH 2026-07-03: polished OJT ID waiting approval state
   Visible UI only. No hidden/invisible buttons. */
body[data-page="id-request"] .id-request-status-box.clean-status,
body[data-page="id-request"] .id-request-status-box{
    display:flex !important;
    align-items:center !important;
    justify-content:flex-start !important;
    width:100% !important;
    max-width:760px !important;
    padding:16px 18px !important;
    border-radius:999px !important;
    gap:14px !important;
    line-height:1.15 !important;
    box-shadow:0 14px 34px rgba(15,23,42,.10) !important;
    white-space:normal !important;
}

body[data-page="id-request"] .id-request-status-box.clean-status i,
body[data-page="id-request"] .id-request-status-box i{
    flex:0 0 52px !important;
    width:52px !important;
    height:52px !important;
    border-radius:16px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    font-size:22px !important;
}

body[data-page="id-request"] .id-request-status-box.clean-status strong,
body[data-page="id-request"] .id-request-status-box strong{
    display:block !important;
    font-size:17px !important;
    font-weight:950 !important;
    letter-spacing:-.01em !important;
    margin:0 0 3px !important;
}

body[data-page="id-request"] .id-request-status-box.clean-status p,
body[data-page="id-request"] .id-request-status-box p{
    margin:0 !important;
    font-size:13px !important;
    font-weight:750 !important;
}

body[data-page="id-request"] .id-request-status-box.locked,
body[data-page="id-request"] .id-request-status-box.clean-status.locked{
    background:linear-gradient(135deg, #fff7ed 0%, #ffedd5 45%, #fed7aa 100%) !important;
    border:1px solid #fb923c !important;
    color:#7c2d12 !important;
}

body[data-page="id-request"] .id-request-status-box.locked i,
body[data-page="id-request"] .id-request-status-box.clean-status.locked i{
    background:linear-gradient(135deg, #fb923c 0%, #f97316 48%, #ea580c 100%) !important;
    color:#ffffff !important;
    box-shadow:0 12px 26px rgba(249,115,22,.32) !important;
}

body[data-page="id-request"] #submitOjtIdRequestButton:disabled,
body[data-page="id-request"] #submitOjtIdRequestButton[disabled]{
    opacity:1 !important;
    cursor:not-allowed !important;
}

body[data-page="id-request"] #submitOjtIdRequestButton:disabled:not(.is-ready),
body[data-page="id-request"] #submitOjtIdRequestButton[disabled]:not(.is-ready){
    background:linear-gradient(135deg, #111827 0%, #374151 42%, #f97316 100%) !important;
    border:0 !important;
    color:#ffffff !important;
    box-shadow:0 16px 34px rgba(17,24,39,.20), 0 10px 24px rgba(249,115,22,.24) !important;
}

body[data-page="id-request"] #submitOjtIdRequestButton:disabled:not(.is-ready) i,
body[data-page="id-request"] #submitOjtIdRequestButton[disabled]:not(.is-ready) i{
    color:#ffffff !important;
}

body[data-page="id-request"] #ojtIdRequestHint{
    color:#475569 !important;
    font-weight:800 !important;
}

@media (max-width: 640px){
    body[data-page="id-request"] .id-request-status-box.clean-status,
    body[data-page="id-request"] .id-request-status-box{
        align-items:flex-start !important;
        border-radius:24px !important;
        padding:14px !important;
    }

    body[data-page="id-request"] .id-request-status-box.clean-status i,
    body[data-page="id-request"] .id-request-status-box i{
        flex-basis:46px !important;
        width:46px !important;
        height:46px !important;
    }
}

/* PGMO PATCH 2026-07-03: student visible button gradients
   Visible styling only. No invisible buttons, hidden links, or click layers. */
body.portal-body .main-btn,
body.portal-body .primary-btn,
body.portal-body .upload-submit-btn,
body.portal-body .student-submit-btn,
body.portal-body .section-btn,
body.portal-body .requirements-upload-btn,
body.portal-body .profile-upload-btn,
body.portal-body .id-request-action-btn,
body.portal-body .notification-command-btn,
body.portal-body .student-file-actions .btn,
body.portal-body .dtr-action-buttons .outline-green-btn,
body.portal-body button[type="submit"],
body.auth-page .main-btn,
body.auth-page .outline-btn{
    background:linear-gradient(135deg, #16a34a 0%, #15803d 48%, #14532d 100%) !important;
    color:#ffffff !important;
    border:0 !important;
    box-shadow:0 14px 30px rgba(22,163,74,.24) !important;
    transition:transform .18s ease, box-shadow .18s ease, filter .18s ease !important;
}

body.portal-body .main-btn:hover,
body.portal-body .primary-btn:hover,
body.portal-body .upload-submit-btn:hover,
body.portal-body .student-submit-btn:hover,
body.portal-body .section-btn:hover,
body.portal-body .requirements-upload-btn:hover,
body.portal-body .profile-upload-btn:hover,
body.portal-body .id-request-action-btn:hover,
body.portal-body .notification-command-btn:hover,
body.portal-body .student-file-actions .btn:hover,
body.portal-body .dtr-action-buttons .outline-green-btn:hover,
body.portal-body button[type="submit"]:hover,
body.auth-page .main-btn:hover,
body.auth-page .outline-btn:hover{
    background:linear-gradient(135deg, #22c55e 0%, #16a34a 48%, #166534 100%) !important;
    color:#ffffff !important;
    transform:translateY(-1px) !important;
    box-shadow:0 18px 38px rgba(22,163,74,.30) !important;
}

/* Secondary clickable buttons use the black-to-gray theme but stay visible. */
body.portal-body .outline-green-btn,
body.portal-body .outline-btn,
body.portal-body .clear-file-btn,
body.portal-body .tab-row button,
body.portal-body .filter-chip,
body.portal-body .top-icon,
body.portal-body button.top-icon,
body.portal-body .live-bell-button,
body.portal-body .auth-switch a,
body.auth-page .auth-switch a{
    background:linear-gradient(135deg, #ffffff 0%, #f3f4f6 52%, #e5e7eb 100%) !important;
    color:#111827 !important;
    border:1px solid #d1d5db !important;
    box-shadow:0 10px 22px rgba(15,23,42,.08) !important;
    transition:transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease !important;
}

body.portal-body .outline-green-btn:hover,
body.portal-body .outline-btn:hover,
body.portal-body .clear-file-btn:hover,
body.portal-body .tab-row button:hover,
body.portal-body .filter-chip:hover,
body.portal-body .top-icon:hover,
body.portal-body button.top-icon:hover,
body.portal-body .live-bell-button:hover,
body.portal-body .auth-switch a:hover,
body.auth-page .auth-switch a:hover{
    background:linear-gradient(135deg, #020202 0%, #181818 52%, #474545 100%) !important;
    color:#ffffff !important;
    border-color:#111827 !important;
    transform:translateY(-1px) !important;
    box-shadow:0 16px 34px rgba(15,23,42,.20) !important;
}

body.portal-body .tab-row button.active,
body.portal-body .auth-switch a.active,
body.auth-page .auth-switch a.active{
    background:linear-gradient(135deg, #020202 0%, #181818 52%, #474545 100%) !important;
    color:#ffffff !important;
    border-color:#111827 !important;
    box-shadow:0 14px 30px rgba(15,23,42,.18) !important;
}

/* Keep disabled approval button as a visible gradient, not a hidden action. */
body[data-page="id-request"] #submitOjtIdRequestButton:disabled:not(.is-ready),
body[data-page="id-request"] #submitOjtIdRequestButton[disabled]:not(.is-ready){
    background:linear-gradient(135deg, #111827 0%, #374151 42%, #f97316 100%) !important;
    border:0 !important;
    color:#ffffff !important;
    opacity:1 !important;
    cursor:not-allowed !important;
    box-shadow:0 16px 34px rgba(17,24,39,.20), 0 10px 24px rgba(249,115,22,.24) !important;
}

/* Keep status pills readable and color-coded, not treated as normal buttons. */
body.portal-body .badge-soft,
body.portal-body .badge-status,
body.portal-body .status-pill,
body.portal-body .requirement-status-pill,
body.portal-body .clean-status,
body.portal-body .pgmo-req-badge,
body.portal-body .pgmo-completion-pill,
body.portal-body .student-document-lock{
    transform:none !important;
}

/* PGMO PATCH 2026-07-03: restore clean document tabs after button gradient update
   Only visible styling. No invisible buttons or overlays. */
body.portal-body .tab-row{
    display:flex !important;
    align-items:center !important;
    gap:18px !important;
    border-bottom:1px solid #d1d5db !important;
    margin-bottom:16px !important;
}

body.portal-body .tab-row button,
body.portal-body .tab-row button[type="button"],
body.portal-body .tab-row button[data-filter]{
    appearance:none !important;
    -webkit-appearance:none !important;
    background:transparent !important;
    color:#64748b !important;
    border:0 !important;
    border-bottom:3px solid transparent !important;
    border-radius:0 !important;
    box-shadow:none !important;
    padding:0 0 12px !important;
    margin:0 !important;
    font-weight:800 !important;
    line-height:1.2 !important;
    transform:none !important;
    cursor:pointer !important;
}

body.portal-body .tab-row button:hover,
body.portal-body .tab-row button[type="button"]:hover,
body.portal-body .tab-row button[data-filter]:hover{
    background:transparent !important;
    color:#111827 !important;
    border-bottom-color:#9ca3af !important;
    box-shadow:none !important;
    transform:none !important;
}

body.portal-body .tab-row button.active,
body.portal-body .tab-row button[type="button"].active,
body.portal-body .tab-row button[data-filter].active{
    background:transparent !important;
    color:#111827 !important;
    border:0 !important;
    border-bottom:3px solid #111827 !important;
    box-shadow:none !important;
    transform:none !important;
}

/* PGMO PATCH 2026-07-06: DTR month selector before printing */
.dtr-month-selector-card{
    background:#ffffff;
    border:1px solid #dbe8df;
    border-radius:18px;
    padding:16px;
    margin:0 0 18px;
    box-shadow:0 10px 26px rgba(6, 78, 43, .06);
}
.dtr-month-selector-head{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:14px;
    margin-bottom:14px;
}
.dtr-month-selector-head strong{
    display:block;
    color:#064e2b;
    font-size:16px;
    font-weight:900;
}
.dtr-month-selector-head span{
    display:block;
    margin-top:3px;
    color:#64748b;
    font-size:13px;
    font-weight:700;
}
.dtr-month-select-all,
.dtr-month-checkbox{
    cursor:pointer;
    user-select:none;
}
.dtr-month-select-all{
    display:inline-flex;
    align-items:center;
    gap:8px;
    white-space:nowrap;
    color:#166534;
    font-weight:900;
    padding:8px 10px;
    border-radius:999px;
    background:#ecfdf3;
    border:1px solid #bbf7d0;
}
.dtr-month-checkbox-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(190px, 1fr));
    gap:10px;
}
.dtr-month-checkbox{
    display:flex;
    align-items:center;
    gap:10px;
    padding:12px;
    border:1px solid #dbe8df;
    border-radius:14px;
    background:#f8fafc;
    transition:.18s ease;
}
.dtr-month-checkbox:hover{
    border-color:#86efac;
    background:#f0fdf4;
}
.dtr-month-checkbox input,
.dtr-month-select-all input{
    width:16px;
    height:16px;
    accent-color:#166534;
    flex:0 0 auto;
}
.dtr-month-checkbox span{
    display:flex;
    flex-direction:column;
    min-width:0;
}
.dtr-month-checkbox strong{
    color:#111827;
    font-size:14px;
    font-weight:900;
}
.dtr-month-checkbox small{
    color:#64748b;
    font-size:12px;
    font-weight:700;
}
.dtr-selected-months-preview{
    display:grid;
    gap:18px;
}
.dtr-preview-print-page{
    border:1px dashed #86efac;
    background:#ffffff;
    border-radius:18px;
    padding:14px;
}
.dtr-preview-page-label{
    display:inline-flex;
    align-items:center;
    margin:0 0 12px;
    padding:6px 10px;
    border-radius:999px;
    background:#166534;
    color:#ffffff;
    font-size:12px;
    font-weight:900;
}
@media(max-width:700px){
    .dtr-month-selector-head{
        flex-direction:column;
    }
    .dtr-month-select-all{
        width:100%;
        justify-content:center;
    }
    .dtr-month-checkbox-grid{
        grid-template-columns:1fr;
    }
}

/* HELP PAGE SUPPORT LAYOUT */
body[data-page="help"] .portal-main{
    max-width: 1240px;
}

body[data-page="help"] .help-support-page{
    padding: 28px;
    overflow: hidden;
}

body[data-page="help"] .help-page-heading{
    max-width: 760px;
    margin-bottom: 22px;
}

body[data-page="help"] .eyebrow{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #374151;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .02em;
}

body[data-page="help"] .help-support-page h3{
    margin: 0 0 8px;
    font-size: 26px;
    font-weight: 950;
    color: #111827;
}

body[data-page="help"] .help-support-page p{
    color: #64748b;
}

body[data-page="help"] .help-info-grid{
    margin-top: 0;
    margin-bottom: 24px;
}

body[data-page="help"] .help-info-grid > div{
    min-height: 138px;
    display: flex;
    flex-direction: column;
}

body[data-page="help"] .help-info-grid i{
    background: #ecfdf5;
    color: #166534;
}

body[data-page="help"] .help-info-grid span{
    line-height: 1.45;
}

body[data-page="help"] .hrmo-contact-card{
    --bg: #ffffff;
    --title-color: #111827;
    --text-color: #64748b;
    --button-color: #f3f4f6;
    --button-color-hover: #e5e7eb;

    width: 100%;
    height: 18rem;
    margin: 24px 0 32px;
    padding: .5rem;
    background: var(--bg);
    border: 1px solid #d1d5db;
    border-radius: 2rem;
    box-shadow: 0 18px 38px rgba(15, 23, 42, .14);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    outline: none;
}

body[data-page="help"] .hrmo-contact-card > img{
    position: absolute;
    inset: .5rem;
    width: calc(100% - 1rem);
    height: calc(100% - 1rem);
    object-fit: cover;
    object-position: 50% 50%;
    border-radius: 1.5rem;
    display: block;
    transition: width .35s ease, object-position .35s ease, filter .35s ease;
}

body[data-page="help"] .hrmo-contact-card > section{
    position: absolute;
    top: .5rem;
    right: .5rem;
    width: calc(58% - .5rem);
    height: calc(100% - 1rem);
    box-sizing: border-box;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 0;
    transform: translateX(1.5rem);
    pointer-events: none;
    transition: opacity .35s ease, transform .35s ease;
}

body[data-page="help"] .hrmo-contact-card h4{
    margin: 0 0 .55rem;
    font-size: 1.7rem;
    line-height: 1.1;
    font-weight: 950;
    color: var(--title-color);
}

body[data-page="help"] .hrmo-contact-card p{
    margin: 0 0 .85rem;
    font-size: .95rem;
    line-height: 1.42;
    color: var(--text-color);
}

body[data-page="help"] .hrmo-contact-list{
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: auto;
}

body[data-page="help"] .hrmo-contact-list span{
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 10px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    color: #374151;
    font-size: 12px;
    font-weight: 800;
}

body[data-page="help"] .hrmo-action-row{
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

body[data-page="help"] .hrmo-contact-card .tag{
    color: var(--title-color);
    font-weight: 900;
    white-space: nowrap;
}

body[data-page="help"] .hrmo-contact-card:hover > img,
body[data-page="help"] .hrmo-contact-card:focus-within > img,
body[data-page="help"] .hrmo-contact-card:focus > img{
    width: 42%;
    object-position: 50% 50%;
    filter: saturate(1.02);
}

body[data-page="help"] .hrmo-contact-card:hover > section,
body[data-page="help"] .hrmo-contact-card:focus-within > section,
body[data-page="help"] .hrmo-contact-card:focus > section{
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

body[data-page="help"] .support-team-section{
    margin-top: 10px;
}

body[data-page="help"] .support-team-title{
    text-align: center;
    max-width: 720px;
    margin: 0 auto 22px;
}

body[data-page="help"] .support-team-title h4{
    margin: 0 0 6px;
    font-size: 24px;
    font-weight: 950;
    color: #111827;
}

body[data-page="help"] .support-team-title p{
    margin: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
}

body[data-page="help"] .support-profile-grid{
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 26px;
    flex-wrap: wrap;
}

body[data-page="help"] .support-profile-card{
    --bg: #ffffff;
    --title-color: #ffffff;
    --title-color-hover: #111827;
    --text-color: #64748b;
    --button-color: #f3f4f6;
    --button-color-hover: #e5e7eb;

    background: var(--bg);
    border-radius: 2rem;
    padding: .5rem;
    width: 20rem;
    height: 30rem;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 44px rgba(15, 23, 42, .18);
    cursor: pointer;
    outline: none;
    isolation: isolate;
}

body[data-page="help"] .support-profile-card.dark{
    --bg: #222222;
    --title-color: #ffffff;
    --title-color-hover: #ffffff;
    --text-color: #cccccc;
    --button-color: #555555;
    --button-color-hover: #444444;
}

body[data-page="help"] .support-profile-card::before{
    content: "";
    position: absolute;
    width: calc(100% - 1rem);
    height: 30%;
    bottom: .5rem;
    left: .5rem;
    -webkit-mask: linear-gradient(#0000, #000f 80%);
    mask: linear-gradient(#0000, #000f 80%);
    backdrop-filter: blur(1rem);
    border-radius: 0 0 1.5rem 1.5rem;
    translate: 0 0;
    transition: translate .25s ease;
    z-index: 1;
    pointer-events: none;
}

body[data-page="help"] .support-profile-card > img{
    max-width: 100%;
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    object-position: 50% 5%;
    border-radius: 1.5rem;
    display: block;
    transition: aspect-ratio .25s ease, object-position .5s ease;
}

body[data-page="help"] .support-profile-card > section{
    margin: 1rem;
    height: calc(33.3333% - 1rem);
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

body[data-page="help"] .support-profile-card h2{
    margin: 0 0 1rem;
    font-size: 1.45rem;
    font-weight: 950;
    line-height: 1.1;
    color: var(--title-color);
    opacity: 1;
    translate: 0 -200%;
    transition: color .5s ease, margin-block-end .25s ease, opacity 1s ease, translate .25s ease;
}

body[data-page="help"] .support-profile-card p{
    margin: 0;
    font-size: .88rem;
    line-height: 1.28;
    color: var(--text-color);
    opacity: 0;
    translate: 0 100%;
    transition: margin-block-end .25s ease, opacity 1s .2s ease, translate .25s .2s ease;
}

body[data-page="help"] .support-ig-line{
    display: block;
    margin-top: 1px;
    font-size: .74rem;
    line-height: 1.05;
    letter-spacing: .01em;
}

body[data-page="help"] .support-profile-card > section > div{
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    opacity: 0;
    translate: 0 100%;
    transition: translate .25s .2s ease, opacity 1s ease;
}

body[data-page="help"] .support-profile-card .tag{
    align-self: center;
    color: var(--title-color-hover);
    font-weight: 900;
    white-space: nowrap;
}

body[data-page="help"] .support-copy-btn{
    border: 1px solid transparent;
    border-radius: 1.25rem 1.25rem 1.5rem 1.25rem;
    font-size: .95rem;
    font-weight: 900;
    padding: .95rem 1.1rem;
    background: var(--button-color);
    color: var(--title-color-hover);
    transition: background .25s ease, color .25s ease, transform .2s ease;
    outline-offset: 2px;
    position: relative;
    min-width: 7.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
}

body[data-page="help"] .support-copy-btn:hover{
    background: var(--button-color-hover);
    transform: translateY(-1px);
}

body[data-page="help"] .support-copy-btn:focus{
    outline: 2px solid var(--text-color);
}

body[data-page="help"] .support-copy-btn.copied{
    background: #16a34a;
    color: #ffffff;
}

body[data-page="help"] .support-profile-card:hover::before,
body[data-page="help"] .support-profile-card:focus-within::before,
body[data-page="help"] .support-profile-card:focus::before{
    translate: 0 100%;
}

body[data-page="help"] .support-profile-card:hover > img,
body[data-page="help"] .support-profile-card:focus-within > img,
body[data-page="help"] .support-profile-card:focus > img{
    aspect-ratio: 1 / 1;
    object-position: 50% 10%;
    transition: aspect-ratio .25s ease, object-position .25s ease;
}

body[data-page="help"] .support-profile-card:hover h2,
body[data-page="help"] .support-profile-card:hover p,
body[data-page="help"] .support-profile-card:focus-within h2,
body[data-page="help"] .support-profile-card:focus-within p,
body[data-page="help"] .support-profile-card:focus h2,
body[data-page="help"] .support-profile-card:focus p{
    translate: 0 0;
    margin-block-end: .5rem;
    opacity: 1;
}

body[data-page="help"] .support-profile-card:hover h2,
body[data-page="help"] .support-profile-card:focus-within h2,
body[data-page="help"] .support-profile-card:focus h2{
    color: var(--title-color-hover);
}

body[data-page="help"] .support-profile-card:hover > section > div,
body[data-page="help"] .support-profile-card:focus-within > section > div,
body[data-page="help"] .support-profile-card:focus > section > div{
    translate: 0 0;
    opacity: 1;
    transition: translate .25s .25s ease, opacity .5s .25s ease;
}

@media (max-width: 900px){
    body[data-page="help"] .help-support-page{
        padding: 22px;
    }

    body[data-page="help"] .hrmo-contact-card{
        height: 30rem;
    }

    body[data-page="help"] .hrmo-contact-card > img{
        width: calc(100% - 1rem);
        height: 58%;
    }

    body[data-page="help"] .hrmo-contact-card > section{
        top: auto;
        bottom: .5rem;
        left: .5rem;
        right: .5rem;
        width: calc(100% - 1rem);
        height: calc(42% - .5rem);
        padding: 1.2rem;
        opacity: 1;
        transform: none;
        pointer-events: auto;
    }

    body[data-page="help"] .hrmo-contact-card:hover > img,
    body[data-page="help"] .hrmo-contact-card:focus-within > img,
    body[data-page="help"] .hrmo-contact-card:focus > img{
        width: calc(100% - 1rem);
    }

    body[data-page="help"] .hrmo-contact-card h4{
        font-size: 1.35rem;
    }
}

@media (max-width: 750px){
    body[data-page="help"] .help-info-grid{
        grid-template-columns: 1fr;
    }

    body[data-page="help"] .support-profile-grid{
        gap: 18px;
    }

    body[data-page="help"] .support-profile-card{
        width: min(100%, 20rem);
        height: 30rem;
    }
}


@media (hover: none) and (min-width: 901px){
    body[data-page="help"] .hrmo-contact-card > img{
        width: 42%;
    }
}

@media (hover: none){
    body[data-page="help"] .hrmo-contact-card > section{
        opacity: 1;
        transform: none;
        pointer-events: auto;
    }

    body[data-page="help"] .support-profile-card::before{
        translate: 0 100%;
    }

    body[data-page="help"] .support-profile-card > img{
        aspect-ratio: 1 / 1;
        object-position: 50% 10%;
    }

    body[data-page="help"] .support-profile-card h2,
    body[data-page="help"] .support-profile-card p,
    body[data-page="help"] .support-profile-card > section > div{
        translate: 0 0;
        opacity: 1;
    }

    body[data-page="help"] .support-profile-card h2{
        color: var(--title-color-hover);
    }
}


/* PGMO RESPONSIVE HELP + GUIDE OPTIMIZATION 2026-07-06 */
body[data-page="help"] .portal-main{
    width: 100%;
    max-width: 1280px;
}

body[data-page="help"] .help-support-page{
    padding: clamp(18px, 2.4vw, 32px);
    border-radius: clamp(18px, 2.2vw, 28px);
}

body[data-page="help"] .help-page-heading{
    max-width: 780px;
    margin-bottom: clamp(16px, 2vw, 24px);
}

body[data-page="help"] .help-support-page h3{
    font-size: clamp(1.45rem, 2.2vw, 1.9rem);
    line-height: 1.15;
}

body[data-page="help"] .help-support-page p{
    line-height: 1.55;
}

body[data-page="help"] .help-info-grid{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(12px, 1.7vw, 18px);
    margin-bottom: clamp(20px, 2.4vw, 30px);
}

body[data-page="help"] .help-info-grid > div{
    min-height: 124px;
    padding: clamp(16px, 1.9vw, 22px);
    border-radius: 22px;
}

body[data-page="help"] .help-info-grid span{
    max-width: 58ch;
}

body[data-page="help"] .hrmo-contact-card{
    max-width: 1060px;
    height: clamp(17rem, 28vw, 20rem);
    margin: clamp(18px, 2.2vw, 26px) auto clamp(28px, 3vw, 38px);
}

body[data-page="help"] .hrmo-contact-card > section{
    padding: clamp(1.1rem, 2.2vw, 1.65rem);
}

body[data-page="help"] .hrmo-contact-card h4{
    font-size: clamp(1.25rem, 2vw, 1.8rem);
}

body[data-page="help"] .hrmo-contact-list span{
    overflow-wrap: anywhere;
}

body[data-page="help"] .support-team-title{
    margin-bottom: clamp(16px, 2vw, 24px);
}

body[data-page="help"] .support-team-title h4{
    font-size: clamp(1.35rem, 2vw, 1.65rem);
    line-height: 1.15;
}

body[data-page="help"] .support-profile-grid{
    display: grid;
    grid-template-columns: repeat(2, minmax(18rem, 20rem));
    justify-content: center;
    align-items: start;
    gap: clamp(18px, 2vw, 30px);
}

body[data-page="help"] .support-profile-card{
    width: 100%;
    max-width: 20rem;
    height: clamp(28rem, 43vw, 30rem);
}

body[data-page="help"] .support-profile-card h2{
    font-size: clamp(1.25rem, 1.8vw, 1.48rem);
}

body[data-page="help"] .support-profile-card p{
    font-size: 0.86rem;
}

body[data-page="help"] .support-ig-line{
    font-size: 0.72rem;
    line-height: 1;
}

body[data-page="help"] .support-copy-btn{
    min-width: 7.15rem;
    padding: 0.9rem 1rem;
}

@media (min-width: 1180px){
    body[data-page="help"] .help-info-grid{
        grid-template-columns: repeat(2, minmax(280px, 1fr));
    }
}

@media (max-width: 1100px){
    body[data-page="help"] .support-profile-grid{
        grid-template-columns: repeat(2, minmax(16rem, 19rem));
    }

    body[data-page="help"] .support-profile-card{
        max-width: 19rem;
    }
}

@media (max-width: 900px){
    body[data-page="help"] .help-info-grid{
        grid-template-columns: 1fr;
    }

    body[data-page="help"] .hrmo-contact-card{
        height: auto;
        max-width: 520px;
        padding: 0.5rem;
    }

    body[data-page="help"] .hrmo-contact-card > img{
        position: relative;
        inset: auto;
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        object-position: 50% 50%;
    }

    body[data-page="help"] .hrmo-contact-card:hover > img,
    body[data-page="help"] .hrmo-contact-card:focus-within > img,
    body[data-page="help"] .hrmo-contact-card:focus > img{
        width: 100%;
    }

    body[data-page="help"] .hrmo-contact-card > section{
        position: relative;
        inset: auto;
        width: 100%;
        height: auto;
        min-height: 0;
        padding: 1.15rem;
        opacity: 1;
        transform: none;
        pointer-events: auto;
    }

    body[data-page="help"] .hrmo-contact-list{
        margin: 0.75rem 0 0;
    }

    body[data-page="help"] .hrmo-contact-list span{
        border-radius: 14px;
        white-space: normal;
    }

    body[data-page="help"] .hrmo-action-row{
        margin-top: 1rem;
    }

    body[data-page="help"] .support-profile-grid{
        grid-template-columns: 1fr;
        justify-items: center;
    }
}

@media (max-width: 760px){
    body[data-page="help"] .portal-main{
        padding-inline: 12px;
    }

    body[data-page="help"] .help-support-page{
        padding: 16px;
        border-radius: 20px;
    }

    body[data-page="help"] .help-page-heading{
        text-align: left;
    }

    body[data-page="help"] .eyebrow{
        font-size: 11px;
    }

    body[data-page="help"] .help-info-grid > div{
        min-height: auto;
    }

    body[data-page="help"] .support-team-title{
        text-align: left;
        margin-inline: 0;
    }

    body[data-page="help"] .support-profile-card{
        width: min(100%, 21rem);
        max-width: 21rem;
        height: auto;
        min-height: 0;
    }

    body[data-page="help"] .support-profile-card::before{
        translate: 0 100%;
    }

    body[data-page="help"] .support-profile-card > img{
        aspect-ratio: 1 / 1;
        object-position: 50% 10%;
    }

    body[data-page="help"] .support-profile-card > section{
        height: auto;
        min-height: 0;
        margin: 0;
        padding: 1rem;
    }

    body[data-page="help"] .support-profile-card h2,
    body[data-page="help"] .support-profile-card p{
        translate: 0 0;
        opacity: 1;
        margin-block-end: 0.5rem;
    }

    body[data-page="help"] .support-profile-card h2{
        color: var(--title-color-hover);
    }

    body[data-page="help"] .support-profile-card > section > div{
        position: static;
        translate: 0 0;
        opacity: 1;
        margin-top: 1rem;
    }
}

@media (max-width: 430px){
    body[data-page="help"] .portal-main{
        padding-inline: 10px;
    }

    body[data-page="help"] .help-support-page{
        padding: 14px;
    }

    body[data-page="help"] .help-info-grid > div{
        padding: 15px;
    }

    body[data-page="help"] .hrmo-contact-card h4{
        font-size: 1.15rem;
    }

    body[data-page="help"] .hrmo-action-row,
    body[data-page="help"] .support-profile-card > section > div{
        gap: 0.65rem;
    }

    body[data-page="help"] .hrmo-contact-card .tag,
    body[data-page="help"] .support-profile-card .tag{
        font-size: 0.88rem;
    }

    body[data-page="help"] .support-copy-btn{
        min-width: 6.6rem;
        padding: 0.85rem 0.9rem;
        font-size: 0.86rem;
    }
}

/* PGMO PATCH 2026-07-06: mobile scroll-driven Help animations + light portal motion */
@keyframes pgmoHelpMobileReveal {
    0% {
        opacity: 0.18;
        transform: translateY(34px) scale(0.965);
        filter: blur(10px);
    }
    58% {
        opacity: 1;
        filter: blur(0);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes pgmoHelpMobileCardPop {
    0% {
        opacity: 0.25;
        transform: translateY(42px) scale(0.94);
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
        filter: blur(8px) saturate(0.88);
    }
    62% {
        opacity: 1;
        filter: blur(0) saturate(1.02);
        box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0) saturate(1);
    }
}

@keyframes pgmoHelpMobileImagePan {
    0% {
        transform: scale(1.08) translateY(12px);
        filter: saturate(0.9) brightness(0.94);
    }
    48% {
        filter: saturate(1.05) brightness(1);
    }
    100% {
        transform: scale(1) translateY(0);
        filter: saturate(1) brightness(1);
    }
}

@keyframes pgmoHelpMobileButtonRise {
    0% {
        opacity: 0.1;
        transform: translateY(18px) scale(0.96);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

@keyframes pgmoPortalCardIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 760px) and (prefers-reduced-motion: no-preference) {
    body[data-page="help"] .help-info-grid > div,
    body[data-page="help"] .hrmo-contact-card,
    body[data-page="help"] .support-team-title,
    body[data-page="help"] .support-profile-card {
        animation-duration: 1s;
        animation-fill-mode: both;
        animation-timing-function: linear;
        will-change: transform, opacity, filter;
    }

    @supports (animation-timeline: view()) {
        body[data-page="help"] .help-info-grid > div {
            animation-name: pgmoHelpMobileReveal;
            animation-timeline: view();
            animation-range: entry 0% cover 38%;
        }

        body[data-page="help"] .help-info-grid > div:nth-child(2) {
            animation-range: entry 4% cover 42%;
        }

        body[data-page="help"] .hrmo-contact-card {
            animation-name: pgmoHelpMobileCardPop;
            animation-timeline: view();
            animation-range: entry 0% cover 46%;
            transform-origin: center bottom;
        }

        body[data-page="help"] .hrmo-contact-card > img {
            animation: pgmoHelpMobileImagePan 1s linear both;
            animation-timeline: view();
            animation-range: entry 0% cover 58%;
            will-change: transform, filter;
        }

        body[data-page="help"] .support-team-title {
            animation-name: pgmoHelpMobileReveal;
            animation-timeline: view();
            animation-range: entry 0% cover 36%;
        }

        body[data-page="help"] .support-profile-card {
            animation-name: pgmoHelpMobileCardPop;
            animation-timeline: view();
            animation-range: entry 5% cover 48%;
            transform-origin: center bottom;
        }

        body[data-page="help"] .support-profile-card:nth-child(2) {
            animation-range: entry 9% cover 52%;
        }

        body[data-page="help"] .support-profile-card > img {
            animation: pgmoHelpMobileImagePan 1s linear both;
            animation-timeline: view();
            animation-range: entry 0% cover 55%;
            will-change: transform, filter;
        }

        body[data-page="help"] .support-copy-btn,
        body[data-page="help"] .hrmo-action-row {
            animation: pgmoHelpMobileButtonRise 1s linear both;
            animation-timeline: view();
            animation-range: entry 15% cover 42%;
        }
    }

    @supports not (animation-timeline: view()) {
        body[data-page="help"] .help-info-grid > div,
        body[data-page="help"] .hrmo-contact-card,
        body[data-page="help"] .support-team-title,
        body[data-page="help"] .support-profile-card {
            animation-name: pgmoPortalCardIn;
            animation-duration: 0.55s;
            animation-timing-function: ease;
        }
    }
}

@media (prefers-reduced-motion: no-preference) {
    body.portal-body:not([data-page="help"]) .portal-top {
        animation: pgmoPortalFadeDown 0.45s ease both;
    }

    body.portal-body:not([data-page="help"]) .dash-card,
    body.portal-body:not([data-page="help"]) .section-card,
    body.portal-body:not([data-page="help"]) .upload-card,
    body.portal-body:not([data-page="help"]) .upload-list-card,
    body.portal-body:not([data-page="help"]) .profile-edit-card,
    body.portal-body:not([data-page="help"]) .password-settings-card,
    body.portal-body:not([data-page="help"]) .id-request-clean-card,
    body.portal-body:not([data-page="help"]) .id-history-card,
    body.portal-body:not([data-page="help"]) .dtr-template-card {
        animation: pgmoPortalCardIn 0.52s ease both;
    }

    body.portal-body:not([data-page="help"]) .stat-grid > *,
    body.portal-body:not([data-page="help"]) .empty-stat-grid > *,
    body.portal-body:not([data-page="help"]) .documents-summary-grid > *,
    body.portal-body:not([data-page="help"]) .dtr-summary-grid > *,
    body.portal-body:not([data-page="help"]) .multi-upload-grid > *,
    body.portal-body:not([data-page="help"]) .requirements-checklist > *,
    body.portal-body:not([data-page="help"]) .notifications-list > * {
        animation: pgmoPortalCardIn 0.5s ease both;
    }

    body.portal-body:not([data-page="help"]) .stat-grid > *:nth-child(2),
    body.portal-body:not([data-page="help"]) .empty-stat-grid > *:nth-child(2),
    body.portal-body:not([data-page="help"]) .documents-summary-grid > *:nth-child(2),
    body.portal-body:not([data-page="help"]) .dtr-summary-grid > *:nth-child(2),
    body.portal-body:not([data-page="help"]) .multi-upload-grid > *:nth-child(2),
    body.portal-body:not([data-page="help"]) .requirements-checklist > *:nth-child(2),
    body.portal-body:not([data-page="help"]) .notifications-list > *:nth-child(2) {
        animation-delay: 0.06s;
    }

    body.portal-body:not([data-page="help"]) .stat-grid > *:nth-child(3),
    body.portal-body:not([data-page="help"]) .empty-stat-grid > *:nth-child(3),
    body.portal-body:not([data-page="help"]) .documents-summary-grid > *:nth-child(3),
    body.portal-body:not([data-page="help"]) .dtr-summary-grid > *:nth-child(3),
    body.portal-body:not([data-page="help"]) .multi-upload-grid > *:nth-child(3),
    body.portal-body:not([data-page="help"]) .requirements-checklist > *:nth-child(3),
    body.portal-body:not([data-page="help"]) .notifications-list > *:nth-child(3) {
        animation-delay: 0.12s;
    }
}

@media (prefers-reduced-motion: reduce) {
    body[data-page="help"] .help-info-grid > div,
    body[data-page="help"] .hrmo-contact-card,
    body[data-page="help"] .support-team-title,
    body[data-page="help"] .support-profile-card,
    body[data-page="help"] .support-profile-card > img,
    body[data-page="help"] .hrmo-contact-card > img,
    body.portal-body .portal-top,
    body.portal-body .dash-card,
    body.portal-body .section-card,
    body.portal-body .upload-card,
    body.portal-body .upload-list-card,
    body.portal-body .profile-edit-card,
    body.portal-body .password-settings-card,
    body.portal-body .id-request-clean-card,
    body.portal-body .id-history-card,
    body.portal-body .dtr-template-card {
        animation: none !important;
        transform: none !important;
        filter: none !important;
    }
}

/* PGMO PATCH 2026-07-06: Help page desktop optimization
   Desktop uses a compact two-column support layout so the HRMO card, upload tips,
   and support team cards sit naturally above the fold. Mobile keeps the scroll-driven layout. */
@media (min-width: 1180px){
    body[data-page="help"] .portal-main{
        max-width: 1260px !important;
        padding-top: 24px !important;
    }

    body[data-page="help"] .portal-top{
        margin-bottom: 18px !important;
    }

    body[data-page="help"] .help-support-page{
        display: grid !important;
        grid-template-columns: minmax(280px, 340px) minmax(0, 1fr) !important;
        grid-template-areas:
            "heading heading"
            "tips office"
            "team team" !important;
        column-gap: 20px !important;
        row-gap: 18px !important;
        padding: 24px !important;
        max-width: 1120px !important;
        margin: 0 auto !important;
    }

    body[data-page="help"] .help-page-heading{
        grid-area: heading !important;
        margin-bottom: 0 !important;
    }

    body[data-page="help"] .help-page-heading .eyebrow{
        margin-bottom: 6px !important;
        padding: 6px 11px !important;
        font-size: 11px !important;
    }

    body[data-page="help"] .help-support-page h3{
        font-size: 24px !important;
        margin-bottom: 6px !important;
    }

    body[data-page="help"] .help-page-heading p{
        margin-bottom: 0 !important;
        font-size: 14px !important;
    }

    body[data-page="help"] .help-info-grid{
        grid-area: tips !important;
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 14px !important;
        margin: 0 !important;
    }

    body[data-page="help"] .help-info-grid > div{
        min-height: 0 !important;
        height: 108px !important;
        padding: 17px 18px !important;
        justify-content: center !important;
        border-radius: 20px !important;
    }

    body[data-page="help"] .help-info-grid i{
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        margin-bottom: 9px !important;
    }

    body[data-page="help"] .help-info-grid strong{
        font-size: 14px !important;
        margin-bottom: 2px !important;
    }

    body[data-page="help"] .help-info-grid span{
        font-size: 12px !important;
        line-height: 1.35 !important;
    }

    body[data-page="help"] .hrmo-contact-card{
        grid-area: office !important;
        width: 100% !important;
        max-width: none !important;
        height: 230px !important;
        min-height: 230px !important;
        margin: 0 !important;
        border-radius: 26px !important;
        box-shadow: 0 14px 30px rgba(15, 23, 42, .12) !important;
    }

    body[data-page="help"] .hrmo-contact-card > img{
        border-radius: 20px !important;
        object-position: 50% 53% !important;
    }

    body[data-page="help"] .hrmo-contact-card:hover > img,
    body[data-page="help"] .hrmo-contact-card:focus-within > img,
    body[data-page="help"] .hrmo-contact-card:focus > img{
        width: 43% !important;
        object-position: 50% 53% !important;
    }

    body[data-page="help"] .hrmo-contact-card > section{
        width: calc(57% - .5rem) !important;
        padding: 18px !important;
    }

    body[data-page="help"] .hrmo-contact-card h4{
        font-size: 1.34rem !important;
        margin-bottom: 6px !important;
    }

    body[data-page="help"] .hrmo-contact-card p{
        font-size: .82rem !important;
        line-height: 1.35 !important;
        margin-bottom: 8px !important;
    }

    body[data-page="help"] .hrmo-contact-list{
        gap: 6px !important;
        margin-bottom: 0 !important;
    }

    body[data-page="help"] .hrmo-contact-list span{
        padding: 6px 8px !important;
        font-size: 10.5px !important;
        line-height: 1.1 !important;
    }

    body[data-page="help"] .hrmo-action-row{
        margin-top: 10px !important;
    }

    body[data-page="help"] .support-team-section{
        grid-area: team !important;
        margin-top: 2px !important;
    }

    body[data-page="help"] .support-team-title{
        margin-bottom: 15px !important;
    }

    body[data-page="help"] .support-team-title .eyebrow{
        margin-bottom: 6px !important;
        padding: 6px 11px !important;
        font-size: 11px !important;
    }

    body[data-page="help"] .support-team-title h4{
        font-size: 1.45rem !important;
        margin-bottom: 4px !important;
    }

    body[data-page="help"] .support-team-title p{
        font-size: 13px !important;
    }

    body[data-page="help"] .support-profile-grid{
        grid-template-columns: repeat(2, 16.5rem) !important;
        gap: 22px !important;
    }

    body[data-page="help"] .support-profile-card{
        width: 16.5rem !important;
        max-width: 16.5rem !important;
        height: 24.75rem !important;
        border-radius: 26px !important;
    }

    body[data-page="help"] .support-profile-card::before{
        border-radius: 0 0 20px 20px !important;
    }

    body[data-page="help"] .support-profile-card > img{
        border-radius: 20px !important;
    }

    body[data-page="help"] .support-profile-card > section{
        margin: .85rem !important;
        height: calc(33.3333% - .85rem) !important;
    }

    body[data-page="help"] .support-profile-card h2{
        font-size: 1.18rem !important;
        margin-bottom: .75rem !important;
    }

    body[data-page="help"] .support-profile-card p{
        font-size: .74rem !important;
        line-height: 1.22 !important;
    }

    body[data-page="help"] .support-ig-line{
        font-size: .64rem !important;
        line-height: .95 !important;
    }

    body[data-page="help"] .support-profile-card .tag{
        font-size: .8rem !important;
    }

    body[data-page="help"] .support-copy-btn{
        min-width: 6.25rem !important;
        padding: .72rem .8rem !important;
        font-size: .78rem !important;
        gap: 6px !important;
        border-radius: 1rem 1rem 1.25rem 1rem !important;
    }
}

@media (min-width: 901px) and (max-width: 1179px){
    body[data-page="help"] .portal-main{
        padding-top: 22px !important;
    }

    body[data-page="help"] .help-support-page{
        max-width: 940px !important;
        margin: 0 auto !important;
        padding: 22px !important;
    }

    body[data-page="help"] .portal-top{
        margin-bottom: 18px !important;
    }

    body[data-page="help"] .help-info-grid > div{
        min-height: 108px !important;
    }

    body[data-page="help"] .hrmo-contact-card{
        height: 235px !important;
        max-width: 900px !important;
        margin: 18px auto 24px !important;
    }

    body[data-page="help"] .hrmo-contact-card > section{
        padding: 18px !important;
    }

    body[data-page="help"] .hrmo-contact-card h4{
        font-size: 1.25rem !important;
    }

    body[data-page="help"] .hrmo-contact-list span{
        font-size: 10.5px !important;
        padding: 6px 8px !important;
    }

    body[data-page="help"] .support-profile-grid{
        grid-template-columns: repeat(2, 16.25rem) !important;
        gap: 20px !important;
    }

    body[data-page="help"] .support-profile-card{
        width: 16.25rem !important;
        max-width: 16.25rem !important;
        height: 24.5rem !important;
    }

    body[data-page="help"] .support-profile-card h2{
        font-size: 1.15rem !important;
    }

    body[data-page="help"] .support-profile-card p{
        font-size: .74rem !important;
    }

    body[data-page="help"] .support-copy-btn{
        min-width: 6.15rem !important;
        padding: .72rem .8rem !important;
        font-size: .78rem !important;
    }
}

/* PGMO PATCH 2026-07-06C: Desktop shell at normal browser zoom
   Makes the sidebar/header match the wider desktop reference without needing to zoom in. */
@media (min-width: 1180px){
    body.portal-body{
        background:#f6f7f8 !important;
    }

    body.portal-body .portal-sidebar{
        width:330px !important;
        padding:34px 26px !important;
        background:linear-gradient(180deg,#101010 0%,#171717 48%,#2e2e2e 100%) !important;
    }

    body.portal-body .portal-main,
    body[data-page="help"] .portal-main{
        margin-left:330px !important;
        max-width:none !important;
        width:auto !important;
        padding:42px 36px 36px !important;
    }

    body.portal-body .portal-logo{
        gap:18px !important;
        margin-bottom:44px !important;
    }

    body.portal-body .portal-logo img{
        width:92px !important;
        height:92px !important;
        min-width:92px !important;
    }

    body.portal-body .portal-logo strong{
        font-size:28px !important;
        line-height:1.05 !important;
        letter-spacing:-.02em !important;
    }

    body.portal-body .portal-logo small{
        display:block !important;
        margin-top:8px !important;
        color:#fff !important;
        font-size:16px !important;
        line-height:1.25 !important;
        font-weight:600 !important;
    }

    body.portal-body .portal-logo span{
        margin-top:5px !important;
        color:#fff !important;
        font-size:14px !important;
        line-height:1.25 !important;
        font-weight:500 !important;
    }

    body.portal-body .portal-menu{
        gap:12px !important;
    }

    body.portal-body .portal-menu a{
        padding:15px 16px !important;
        border-radius:16px !important;
        font-size:16px !important;
        line-height:1.2 !important;
    }

    body.portal-body .portal-menu a i{
        width:22px !important;
        font-size:16px !important;
    }

    body.portal-body .student-mini{
        left:22px !important;
        right:22px !important;
        bottom:72px !important;
        padding:12px 14px !important;
        border-radius:16px !important;
    }

    body.portal-body .sidebar-logout{
        left:22px !important;
        right:22px !important;
        bottom:22px !important;
        font-size:16px !important;
        padding:12px 14px !important;
    }

    body.portal-body .portal-top,
    body[data-page="help"] .portal-top{
        align-items:flex-start !important;
        margin-bottom:30px !important;
    }

    body.portal-body .portal-top h1,
    body[data-page="help"] .portal-top h1{
        font-size:34px !important;
        line-height:1.08 !important;
        letter-spacing:-.03em !important;
        margin:0 !important;
    }

    body.portal-body .portal-top p,
    body[data-page="help"] .portal-top p{
        margin:10px 0 0 !important;
        color:#536b8f !important;
        font-size:20px !important;
        line-height:1.35 !important;
        font-weight:400 !important;
    }

    body.portal-body .top-actions{
        gap:16px !important;
        padding-top:0 !important;
    }

    body.portal-body .top-icon,
    body.portal-body .top-avatar{
        width:54px !important;
        height:54px !important;
        min-width:54px !important;
        border-radius:50% !important;
        box-shadow:0 12px 28px rgba(15,23,42,.10) !important;
    }

    body.portal-body .top-avatar img{
        width:54px !important;
        height:54px !important;
        border-radius:50% !important;
        object-fit:cover !important;
    }

    body.portal-body #topNotificationDot{
        width:12px !important;
        height:12px !important;
        top:9px !important;
        right:9px !important;
    }
}

/* Keep the Help card content readable after the wider desktop shell is applied. */
@media (min-width:1180px){
    body[data-page="help"] .help-support-page{
        max-width:1280px !important;
        margin:0 !important;
    }
}

/* PGMO PATCH 2026-07-06D: Revert Help desktop content layout + cleaner sidebar */
@media (min-width: 901px){
    body.portal-body .portal-sidebar{
        width:260px !important;
        padding:24px 18px !important;
        background:linear-gradient(180deg,#111111 0%,#171717 55%,#2b2b2b 100%) !important;
        display:flex !important;
        flex-direction:column !important;
        height:100vh !important;
        overflow-y:auto !important;
        overflow-x:hidden !important;
    }

    body.portal-body .portal-main,
    body[data-page="help"] .portal-main{
        margin-left:260px !important;
        width:auto !important;
        max-width:none !important;
        padding:28px !important;
    }

    body.portal-body .portal-logo{
        gap:12px !important;
        margin-bottom:30px !important;
    }

    body.portal-body .portal-logo img{
        width:78px !important;
        height:78px !important;
        min-width:78px !important;
        object-fit:contain !important;
    }

    body.portal-body .portal-logo strong{
        font-size:22px !important;
        line-height:1.05 !important;
        letter-spacing:-.02em !important;
    }

    body.portal-body .portal-logo small{
        display:block !important;
        margin-top:5px !important;
        color:#ffffff !important;
        font-size:13px !important;
        line-height:1.25 !important;
        font-weight:600 !important;
    }

    body.portal-body .portal-logo span{
        display:block !important;
        margin-top:3px !important;
        color:#ffffff !important;
        font-size:12px !important;
        line-height:1.25 !important;
        font-weight:500 !important;
    }

    body.portal-body .portal-menu{
        gap:8px !important;
        margin-bottom:16px !important;
    }

    body.portal-body .portal-menu a{
        padding:13px 14px !important;
        border-radius:12px !important;
        font-size:14px !important;
        line-height:1.2 !important;
        gap:12px !important;
    }

    body.portal-body .portal-menu a i{
        width:20px !important;
        min-width:20px !important;
        font-size:14px !important;
        text-align:center !important;
    }

    body.portal-body .student-mini{
        position:relative !important;
        left:auto !important;
        right:auto !important;
        bottom:auto !important;
        width:100% !important;
        margin:auto 0 0 !important;
        padding:11px 12px !important;
        border-radius:14px !important;
        gap:10px !important;
    }

    body.portal-body .student-mini .mini-avatar{
        width:42px !important;
        height:42px !important;
        flex:0 0 42px !important;
    }

    body.portal-body .student-mini strong{
        font-size:12px !important;
        line-height:1.15 !important;
        white-space:normal !important;
        overflow-wrap:anywhere !important;
    }

    body.portal-body .student-mini small{
        font-size:11px !important;
        line-height:1.2 !important;
        white-space:nowrap !important;
    }

    body.portal-body .sidebar-logout{
        position:relative !important;
        left:auto !important;
        right:auto !important;
        bottom:auto !important;
        width:100% !important;
        margin-top:9px !important;
        padding:12px 14px !important;
        font-size:14px !important;
    }

    body.portal-body .portal-top,
    body[data-page="help"] .portal-top{
        align-items:flex-start !important;
        margin-bottom:24px !important;
    }

    body.portal-body .portal-top h1,
    body[data-page="help"] .portal-top h1{
        font-size:30px !important;
        line-height:1.1 !important;
        letter-spacing:-.02em !important;
        margin:0 !important;
    }

    body.portal-body .portal-top p,
    body[data-page="help"] .portal-top p{
        margin:6px 0 0 !important;
        color:#536b8f !important;
        font-size:15px !important;
        line-height:1.35 !important;
        font-weight:400 !important;
    }

    body.portal-body .top-actions{
        gap:12px !important;
        padding-top:0 !important;
    }

    body.portal-body .top-icon,
    body.portal-body .top-avatar{
        width:44px !important;
        height:44px !important;
        min-width:44px !important;
        border-radius:50% !important;
        box-shadow:0 10px 24px rgba(15,23,42,.09) !important;
    }

    body.portal-body .top-avatar img{
        width:44px !important;
        height:44px !important;
        border-radius:50% !important;
        object-fit:cover !important;
    }

    body.portal-body #topNotificationDot{
        width:10px !important;
        height:10px !important;
        top:7px !important;
        right:7px !important;
    }
}

@media (min-width: 901px){
    body[data-page="help"] .help-support-page{
        display:block !important;
        max-width:1180px !important;
        margin:0 auto !important;
        padding:32px 34px 38px !important;
        border-radius:24px !important;
        overflow:hidden !important;
    }

    body[data-page="help"] .help-page-heading{
        max-width:none !important;
        margin:0 0 22px !important;
    }

    body[data-page="help"] .help-page-heading .eyebrow,
    body[data-page="help"] .support-team-title .eyebrow{
        margin-bottom:10px !important;
        padding:7px 13px !important;
        font-size:12px !important;
    }

    body[data-page="help"] .help-support-page h3{
        font-size:30px !important;
        line-height:1.1 !important;
        margin:0 0 10px !important;
        letter-spacing:-.02em !important;
    }

    body[data-page="help"] .help-page-heading p{
        margin:0 !important;
        font-size:15px !important;
        line-height:1.5 !important;
        color:#536b8f !important;
    }

    body[data-page="help"] .help-info-grid{
        display:grid !important;
        grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
        gap:18px !important;
        margin:26px 0 30px !important;
    }

    body[data-page="help"] .help-info-grid > div{
        min-height:150px !important;
        height:auto !important;
        padding:24px !important;
        border-radius:20px !important;
        display:flex !important;
        flex-direction:column !important;
        justify-content:center !important;
    }

    body[data-page="help"] .help-info-grid i{
        width:42px !important;
        height:42px !important;
        min-width:42px !important;
        margin:0 0 14px !important;
        font-size:15px !important;
    }

    body[data-page="help"] .help-info-grid strong{
        font-size:15px !important;
        margin-bottom:4px !important;
    }

    body[data-page="help"] .help-info-grid span{
        font-size:13px !important;
        line-height:1.45 !important;
    }

    body[data-page="help"] .hrmo-contact-card{
        width:min(100%, 1060px) !important;
        max-width:1060px !important;
        height:320px !important;
        min-height:320px !important;
        margin:28px auto 38px !important;
        border-radius:2rem !important;
        box-shadow:0 18px 38px rgba(15,23,42,.14) !important;
    }

    body[data-page="help"] .hrmo-contact-card > img{
        border-radius:1.5rem !important;
        object-position:50% 50% !important;
    }

    body[data-page="help"] .hrmo-contact-card:hover > img,
    body[data-page="help"] .hrmo-contact-card:focus-within > img,
    body[data-page="help"] .hrmo-contact-card:focus > img{
        width:42% !important;
        object-position:50% 50% !important;
    }

    body[data-page="help"] .hrmo-contact-card > section{
        width:calc(58% - .5rem) !important;
        padding:1.5rem !important;
    }

    body[data-page="help"] .hrmo-contact-card h4{
        font-size:1.7rem !important;
        line-height:1.1 !important;
        margin:0 0 .55rem !important;
    }

    body[data-page="help"] .hrmo-contact-card p{
        font-size:.95rem !important;
        line-height:1.42 !important;
        margin:0 0 .85rem !important;
    }

    body[data-page="help"] .hrmo-contact-list{
        gap:8px !important;
        margin-bottom:auto !important;
    }

    body[data-page="help"] .hrmo-contact-list span{
        padding:8px 10px !important;
        font-size:12px !important;
        line-height:1.15 !important;
    }

    body[data-page="help"] .hrmo-action-row{
        margin-top:1rem !important;
    }

    body[data-page="help"] .support-team-section{
        margin-top:10px !important;
    }

    body[data-page="help"] .support-team-title{
        max-width:720px !important;
        margin:0 auto 22px !important;
        text-align:center !important;
    }

    body[data-page="help"] .support-team-title h4{
        font-size:24px !important;
        margin:0 0 6px !important;
    }

    body[data-page="help"] .support-team-title p{
        font-size:14px !important;
        line-height:1.5 !important;
        margin:0 !important;
    }

    body[data-page="help"] .support-profile-grid{
        display:flex !important;
        justify-content:center !important;
        align-items:flex-start !important;
        flex-wrap:wrap !important;
        gap:26px !important;
    }

    body[data-page="help"] .support-profile-card{
        width:20rem !important;
        max-width:20rem !important;
        height:30rem !important;
        border-radius:2rem !important;
    }

    body[data-page="help"] .support-profile-card > img{
        border-radius:1.5rem !important;
    }

    body[data-page="help"] .support-profile-card > section{
        margin:1rem !important;
        height:calc(33.3333% - 1rem) !important;
    }

    body[data-page="help"] .support-profile-card h2{
        font-size:1.45rem !important;
        margin:0 0 1rem !important;
    }

    body[data-page="help"] .support-profile-card p{
        font-size:.88rem !important;
        line-height:1.28 !important;
    }

    body[data-page="help"] .support-ig-line{
        font-size:.74rem !important;
        line-height:1.05 !important;
    }

    body[data-page="help"] .support-copy-btn{
        min-width:7.5rem !important;
        padding:.95rem 1.1rem !important;
        font-size:.95rem !important;
        border-radius:1.25rem 1.25rem 1.5rem 1.25rem !important;
    }
}

@media (min-width:901px) and (max-width:1120px){
    body[data-page="help"] .help-info-grid{
        grid-template-columns:1fr !important;
    }

    body[data-page="help"] .hrmo-contact-card{
        height:280px !important;
        min-height:280px !important;
    }
}

/* PGMO PATCH: unblur Jorge support card on mobile only.
   This keeps the uploaded zip's existing layout/animations unchanged. */
@media (max-width: 760px){
    body[data-page="help"] .support-profile-card.dark,
    body[data-page="help"] .support-profile-card.dark > img{
        filter: none !important;
        -webkit-filter: none !important;
    }

    body[data-page="help"] .support-profile-card.dark > img{
        animation-name: none !important;
        animation-timeline: auto !important;
        transform: none !important;
    }

    body[data-page="help"] .support-profile-card.dark::before{
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        display: none !important;
    }
}

/* PGMO PATCH 2026-07-06: hard fix for Jorge card grey/blur on mobile.
   The old scroll reveal animation was still controlling opacity/filter on the dark card.
   This keeps the same layout but forces the card and photo to render normally. */
@media (max-width: 760px){
    body[data-page="help"] .support-profile-card.dark,
    body[data-page="help"] .support-profile-card.dark *{
        opacity: 1 !important;
        filter: none !important;
        -webkit-filter: none !important;
        animation: none !important;
        animation-name: none !important;
        animation-timeline: auto !important;
        transform: none !important;
    }

    body[data-page="help"] .support-profile-card.dark{
        background: #222222 !important;
        color: #ffffff !important;
    }

    body[data-page="help"] .support-profile-card.dark > img{
        display: block !important;
        opacity: 1 !important;
        filter: none !important;
        -webkit-filter: none !important;
        mix-blend-mode: normal !important;
    }

    body[data-page="help"] .support-profile-card.dark::before,
    body[data-page="help"] .support-profile-card.dark::after{
        opacity: 0 !important;
        filter: none !important;
        -webkit-filter: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        display: none !important;
    }

    body[data-page="help"] .support-profile-card.dark h2,
    body[data-page="help"] .support-profile-card.dark p,
    body[data-page="help"] .support-profile-card.dark .tag,
    body[data-page="help"] .support-profile-card.dark .support-copy-btn{
        opacity: 1 !important;
        filter: none !important;
        -webkit-filter: none !important;
    }
}


/* PGMO DOCUMENT PREVIEW MODAL */
.pgmo-document-preview-open {
    overflow: hidden;
}

.pgmo-document-preview-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.pgmo-document-preview-modal.show {
    display: flex;
}

.pgmo-document-preview-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(4px);
}

.pgmo-document-preview-card {
    position: relative;
    z-index: 1;
    width: min(1100px, 96vw);
    height: min(760px, 92vh);
    background: #ffffff;
    border-radius: 22px;
    border: 1px solid rgba(21, 128, 61, 0.18);
    box-shadow: 0 30px 90px rgba(15, 23, 42, 0.35);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.pgmo-document-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    padding: 18px 20px;
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(135deg, #f8fafc, #ecfdf5);
}

.pgmo-document-preview-header h3 {
    margin: 0;
    color: #111827;
    font-size: 20px;
    font-weight: 900;
    line-height: 1.2;
}

.pgmo-document-preview-header p {
    margin: 4px 0 0;
    color: #64748b;
    font-size: 13px;
}

.pgmo-document-preview-close {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: #ffffff;
    color: #166534;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
}

.pgmo-document-preview-body {
    flex: 1;
    background: #f8fafc;
    padding: 14px;
    min-height: 0;
    overflow: auto;
}

.pgmo-document-frame {
    width: 100%;
    height: 100%;
    min-height: 520px;
    border: 0;
    border-radius: 14px;
    background: #ffffff;
}

.pgmo-document-image-wrap {
    width: 100%;
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.pgmo-document-image-wrap img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.16);
    background: #ffffff;
}

.pgmo-document-preview-empty {
    height: 100%;
    min-height: 360px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #64748b;
    background: #ffffff;
    border-radius: 16px;
    border: 1px dashed #cbd5e1;
    padding: 28px;
}

.pgmo-document-preview-empty i {
    font-size: 46px;
    color: #15803d;
    margin-bottom: 12px;
}

.pgmo-document-preview-empty h4 {
    color: #111827;
    font-weight: 900;
    margin-bottom: 6px;
}

.pgmo-document-preview-note {
    margin: 10px 2px 0;
    color: #64748b;
    font-size: 13px;
}

.pgmo-document-preview-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    border-top: 1px solid #e5e7eb;
    background: #ffffff;
}

@media (max-width: 680px) {
    .pgmo-document-preview-modal {
        padding: 10px;
    }

    .pgmo-document-preview-card {
        width: 100%;
        height: 92vh;
        border-radius: 16px;
    }

    .pgmo-document-preview-header {
        padding: 14px;
    }

    .pgmo-document-preview-header h3 {
        font-size: 17px;
    }

    .pgmo-document-preview-body {
        padding: 10px;
    }

    .pgmo-document-frame {
        min-height: 460px;
    }

    .pgmo-document-preview-footer {
        padding: 12px 14px;
        flex-wrap: wrap;
    }
}

/* PGMO STUDENT IMPROVEMENTS: progress tracker and document preview */
.student-progress-card{padding:24px;margin-bottom:18px;border-left:5px solid #15803d;}
.student-progress-loading{display:flex;align-items:center;justify-content:center;gap:10px;color:#64748b;font-weight:800;min-height:110px;}
.student-progress-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:16px;}
.student-progress-head h3{font-size:21px;font-weight:950;color:#111827;margin:0 0 5px;}
.student-progress-head p{color:#64748b;margin:0;font-size:14px;line-height:1.45;}
.student-progress-status{background:#ecfdf5;color:#15803d;border:1px solid #bbf7d0;border-radius:999px;padding:7px 12px;font-size:12px;font-weight:900;white-space:nowrap;}
.student-progress-bar-wrap{display:flex;align-items:center;gap:12px;margin-bottom:18px;}
.student-progress-bar{height:14px;background:#e5e7eb;border-radius:999px;overflow:hidden;flex:1;}
.student-progress-bar span{display:block;height:100%;background:linear-gradient(90deg,#16a34a,#0f7a35);border-radius:999px;transition:width .4s ease;}
.student-progress-bar-wrap strong{min-width:46px;text-align:right;color:#111827;font-weight:950;}
.student-progress-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;}
.student-progress-grid div{background:#f8fafc;border:1px solid #dbe7df;border-radius:14px;padding:14px;}
.student-progress-grid span{display:block;color:#64748b;font-size:12px;font-weight:800;margin-bottom:4px;}
.student-progress-grid strong{display:block;color:#111827;font-size:18px;font-weight:950;line-height:1.2;word-break:break-word;}
.student-document-preview-modal .modal-dialog{max-width:min(1120px,96vw);}
.student-document-preview-body{min-height:62vh;background:#f8fafc;border:1px solid #e5e7eb;border-radius:14px;display:flex;align-items:center;justify-content:center;overflow:hidden;padding:10px;}
.student-document-preview-frame{width:100%;height:68vh;border:0;border-radius:10px;background:#fff;}
.student-document-preview-image{max-width:100%;max-height:68vh;object-fit:contain;border-radius:10px;background:#fff;}
.student-document-preview-fallback{text-align:center;color:#64748b;padding:36px;}
.student-document-preview-fallback i{font-size:58px;color:#0f7a35;margin-bottom:12px;}
.student-document-preview-fallback h5{font-weight:900;color:#111827;}
@media(max-width:850px){.student-progress-grid{grid-template-columns:repeat(2,minmax(0,1fr));}.student-progress-head{flex-direction:column}.student-progress-status{align-self:flex-start;}}
@media(max-width:520px){.student-progress-card{padding:18px}.student-progress-grid{grid-template-columns:1fr}.student-document-preview-frame{height:62vh;}}

/* PROFILE PICTURE CROPPER MODAL */
.profile-crop-modal{
    position:fixed;
    inset:0;
    z-index:9999;
    display:none;
    align-items:center;
    justify-content:center;
    padding:20px;
}

.profile-crop-modal.show{
    display:flex;
}

.profile-crop-backdrop{
    position:absolute;
    inset:0;
    background:rgba(15,23,42,.68);
    backdrop-filter:blur(5px);
}

.profile-crop-card{
    position:relative;
    width:min(920px,100%);
    max-height:92vh;
    overflow:auto;
    background:#ffffff;
    border-radius:24px;
    box-shadow:0 28px 80px rgba(15,23,42,.35);
    padding:22px;
}

.profile-crop-head{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:18px;
    margin-bottom:18px;
}

.profile-crop-head h3{
    margin:0 0 4px;
    font-size:22px;
    font-weight:950;
    color:#111827;
}

.profile-crop-head p{
    margin:0;
    color:#64748b;
    font-size:14px;
}

.profile-crop-close{
    width:42px;
    height:42px;
    border:none;
    border-radius:50%;
    background:#f3f4f6;
    color:#111827;
    display:flex;
    align-items:center;
    justify-content:center;
    flex-shrink:0;
}

.profile-crop-body{
    display:grid;
    grid-template-columns:minmax(0,1fr) 190px;
    gap:20px;
    align-items:start;
}

.profile-crop-stage{
    min-height:420px;
    background:#0f172a;
    border-radius:18px;
    overflow:hidden;
    display:flex;
    align-items:center;
    justify-content:center;
}

.profile-crop-stage img{
    display:block;
    max-width:100%;
    max-height:70vh;
}

.profile-crop-preview-wrap{
    background:#f8fafc;
    border:1px solid #d1d5db;
    border-radius:18px;
    padding:16px;
    text-align:center;
}

.profile-crop-preview-wrap span{
    display:block;
    margin-bottom:12px;
    color:#111827;
    font-size:14px;
    font-weight:900;
}

.profile-crop-preview{
    width:132px;
    height:132px;
    margin:0 auto 12px;
    border-radius:50%;
    overflow:hidden;
    background:#e5e7eb;
    border:4px solid #ffffff;
    box-shadow:0 10px 24px rgba(15,23,42,.18);
}

.profile-crop-preview-wrap small{
    display:block;
    color:#64748b;
    font-size:12px;
    line-height:1.45;
}

.profile-crop-actions{
    display:flex;
    justify-content:flex-end;
    gap:12px;
    margin-top:18px;
    flex-wrap:wrap;
}

.profile-crop-actions .outline-green-btn,
.profile-crop-actions .main-btn{
    min-height:44px;
}

@media(max-width:760px){
    .profile-crop-card{
        padding:16px;
        border-radius:20px;
    }

    .profile-crop-body{
        grid-template-columns:1fr;
    }

    .profile-crop-stage{
        min-height:320px;
    }

    .profile-crop-preview{
        width:110px;
        height:110px;
    }

    .profile-crop-actions{
        justify-content:stretch;
    }

    .profile-crop-actions .outline-green-btn,
    .profile-crop-actions .main-btn{
        flex:1;
    }
}


/* LIVE REQUIREMENTS PROGRESS CARD - MISSING-AWARE DASHBOARD */
.requirements-progress-card {
    padding: 24px;
    overflow: hidden;
    position: relative;
    border-left: 5px solid #15803d;
}

.requirements-progress-card::before {
    content: "";
    position: absolute;
    width: 190px;
    height: 190px;
    right: -78px;
    top: -78px;
    background: radial-gradient(circle, rgba(22, 163, 74, 0.18), transparent 70%);
    pointer-events: none;
}

.requirements-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 22px;
    position: relative;
    z-index: 1;
}

.requirements-progress-header h3 {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 950;
    color: #111827;
}

.requirements-progress-header p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
}

.requirements-view-link {
    color: #15803d;
    font-weight: 900;
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
}

.requirements-view-link:hover {
    color: #166534;
}

.requirements-progress-body {
    display: grid;
    grid-template-columns: 178px minmax(0, 1fr);
    gap: 22px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.requirements-donut-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
}

.requirements-donut {
    width: 165px;
    height: 165px;
    border-radius: 50%;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
    transition: background 0.45s ease;
}

.requirements-donut-center {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 0 1px #e5e7eb;
}

.requirements-donut-center strong {
    font-size: 36px;
    font-weight: 950;
    color: #111827;
    line-height: 1;
}

.requirements-donut-center span {
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
    margin-top: 5px;
}

.requirements-status-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.req-status {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #d1d5db;
    border-radius: 16px;
    padding: 14px;
    background: #f8fafc;
}

.req-status > span {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    flex-shrink: 0;
}

.req-status.approved > span { background: #16a34a; }
.req-status.pending > span { background: #f59e0b; }
.req-status.returned > span { background: #ef4444; }
.req-status.missing > span { background: #d1d5db; }

.req-status strong {
    display: block;
    font-size: 24px;
    font-weight: 950;
    color: #111827;
    line-height: 1;
}

.req-status small {
    display: block;
    margin-top: 4px;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.requirements-progress-footer {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.requirements-note {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #475569;
    font-size: 13px;
    font-weight: 700;
    flex: 1;
    min-width: 220px;
}

.requirements-note i { color: #15803d; }

@media (max-width: 850px) {
    .requirements-progress-body { grid-template-columns: 1fr; }
}

@media (max-width: 650px) {
    .requirements-progress-card { padding: 18px; }
    .requirements-progress-header { flex-direction: column; gap: 8px; }
    .requirements-donut { width: 145px; height: 145px; }
    .requirements-donut-center { width: 98px; height: 98px; }
    .requirements-donut-center strong { font-size: 30px; }
    .requirements-status-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
    .req-status { padding: 11px; gap: 9px; }
    .req-status strong { font-size: 20px; }
    .progress-actions { width: 100%; }
    .progress-actions a { width: 100%; }
}

/* LIVE OJT HOURS PROGRESS CARD */
.hours-progress-card {
    padding: 24px;
    overflow: hidden;
    position: relative;
    border-left: 5px solid #166534;
}

.hours-progress-card::before {
    content: "";
    position: absolute;
    width: 190px;
    height: 190px;
    left: -78px;
    top: -78px;
    background: radial-gradient(circle, rgba(22, 101, 52, 0.18), transparent 70%);
    pointer-events: none;
}

.hours-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 22px;
    position: relative;
    z-index: 1;
}

.hours-progress-header h3 {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 950;
    color: #111827;
}

.hours-progress-header p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
}

.hours-progress-body {
    display: grid;
    grid-template-columns: 178px minmax(0, 1fr);
    gap: 22px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hours-donut-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hours-donut {
    width: 165px;
    height: 165px;
    border-radius: 50%;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
}

.hours-donut.loading,
.requirements-donut.loading {
    animation: pgmoDonutPulse 0.9s ease-in-out infinite alternate;
}

@keyframes pgmoDonutPulse {
    from { transform: scale(0.985); filter: brightness(0.98); }
    to { transform: scale(1.015); filter: brightness(1.04); }
}

.hours-donut-center {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 0 1px #e5e7eb;
}

.hours-donut-center strong {
    font-size: 34px;
    font-weight: 950;
    color: #111827;
    line-height: 1;
}

.hours-donut-center span {
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
    margin-top: 5px;
}

.hours-status-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.hour-status {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #d1d5db;
    border-radius: 16px;
    padding: 14px;
    background: #f8fafc;
}

.hour-status > span {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    flex-shrink: 0;
}

.hour-status.completed > span { background: #16a34a; }
.hour-status.required > span { background: #2563eb; }
.hour-status.remaining > span { background: #f59e0b; }
.hour-status.status > span { background: #64748b; }
.hour-status.status.completed > span { background: #16a34a; }

.hour-status strong {
    display: block;
    font-size: 24px;
    font-weight: 950;
    color: #111827;
    line-height: 1;
}

.hour-status small {
    display: block;
    margin-top: 4px;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.hours-progress-footer {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.hours-note {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #475569;
    font-size: 13px;
    font-weight: 700;
    flex: 1;
    min-width: 220px;
}

.hours-note i { color: #15803d; }

@media (max-width: 850px) {
    .hours-progress-body { grid-template-columns: 1fr; }
}

@media (max-width: 650px) {
    .hours-progress-card { padding: 18px; }
    .hours-progress-header { flex-direction: column; gap: 8px; }
    .hours-donut { width: 145px; height: 145px; }
    .hours-donut-center { width: 98px; height: 98px; }
    .hours-donut-center strong { font-size: 28px; }
    .hours-status-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
    .hour-status { padding: 11px; gap: 9px; }
    .hour-status strong { font-size: 20px; }
}


/* PGMO STUDENT LIVE LOGOUT LOADING ANIMATION */
body.pgmo-logout-active{
    overflow:hidden;
}

.sidebar-logout.is-logging-out{
    opacity:.7;
    cursor:wait;
}

.pgmo-logout-overlay{
    position:fixed;
    inset:0;
    z-index:2147483647;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:24px;
    background:
        radial-gradient(circle at 18% 18%, rgba(134,239,172,.24), transparent 28%),
        radial-gradient(circle at 82% 82%, rgba(22,163,74,.24), transparent 33%),
        linear-gradient(135deg, rgba(2,44,18,.98), rgba(5,78,35,.98) 50%, rgba(6,95,70,.98));
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transition:opacity .28s ease, visibility .28s ease;
    overflow:hidden;
}

body.pgmo-logout-active .mobile-topbar,
body.pgmo-logout-active .portal-sidebar{
    opacity:0 !important;
    visibility:hidden !important;
    pointer-events:none !important;
}

.pgmo-logout-overlay.show{
    opacity:1;
    visibility:visible;
    pointer-events:auto;
}

.pgmo-logout-overlay::before,
.pgmo-logout-overlay::after{
    content:"";
    position:absolute;
    width:420px;
    height:420px;
    border-radius:50%;
    border:1px solid rgba(255,255,255,.12);
    animation:pgmoLogoutPulse 2.1s ease-in-out infinite;
}

.pgmo-logout-overlay::before{
    left:-160px;
    top:-130px;
}

.pgmo-logout-overlay::after{
    right:-170px;
    bottom:-150px;
    animation-delay:.55s;
}

.pgmo-logout-particles{
    position:absolute;
    inset:0;
    pointer-events:none;
    overflow:hidden;
}

.pgmo-logout-particles span{
    position:absolute;
    width:9px;
    height:9px;
    border-radius:50%;
    background:rgba(187,247,208,.72);
    box-shadow:0 0 26px rgba(134,239,172,.8);
    animation:pgmoLogoutFloat 2.6s ease-in-out infinite;
}

.pgmo-logout-particles span:nth-child(1){ left:14%; top:24%; animation-delay:0s; }
.pgmo-logout-particles span:nth-child(2){ left:78%; top:19%; animation-delay:.28s; }
.pgmo-logout-particles span:nth-child(3){ left:18%; top:76%; animation-delay:.58s; }
.pgmo-logout-particles span:nth-child(4){ left:84%; top:70%; animation-delay:.86s; }
.pgmo-logout-particles span:nth-child(5){ left:50%; top:12%; animation-delay:1.1s; }

.pgmo-logout-card{
    width:min(92vw, 420px);
    position:relative;
    z-index:2;
    padding:36px 28px 28px;
    text-align:center;
    border-radius:30px;
    overflow:hidden;
    background:rgba(255,255,255,.97);
    border:1px solid rgba(255,255,255,.62);
    box-shadow:0 34px 90px rgba(0,0,0,.34);
    transform:translateY(18px) scale(.96);
    opacity:0;
    transition:transform .36s cubic-bezier(.2,.85,.2,1), opacity .36s ease;
}

.pgmo-logout-overlay.show .pgmo-logout-card{
    transform:translateY(0) scale(1);
    opacity:1;
}

.pgmo-logout-card::before{
    content:"";
    position:absolute;
    inset:-80% -60% auto -60%;
    height:160%;
    background:linear-gradient(110deg, transparent 35%, rgba(34,197,94,.16), transparent 65%);
    transform:translateX(-45%) rotate(12deg);
    animation:pgmoLogoutShine 1.45s ease-in-out infinite;
}

.pgmo-logout-seal-wrap{
    position:relative;
    width:118px;
    height:118px;
    margin:0 auto 20px;
}

.pgmo-logout-ring{
    position:absolute;
    inset:0;
    border-radius:50%;
    background:
        conic-gradient(from 0deg, #16a34a, #86efac, #facc15, #16a34a);
    animation:pgmoLogoutSpin 1.05s linear infinite;
}

.pgmo-logout-ring::after{
    content:"";
    position:absolute;
    inset:6px;
    border-radius:50%;
    background:white;
}

.pgmo-logout-seal{
    position:absolute;
    inset:17px;
    z-index:2;
    width:84px;
    height:84px;
    object-fit:contain;
    border-radius:50%;
    background:white;
    box-shadow:0 16px 34px rgba(15,23,42,.18);
    animation:pgmoLogoutSealBreathe 1.5s ease-in-out infinite;
}

.pgmo-logout-orbit{
    position:absolute;
    z-index:3;
    width:13px;
    height:13px;
    border-radius:50%;
    background:#facc15;
    box-shadow:0 0 20px rgba(250,204,21,.8);
    top:50%;
    left:50%;
    transform-origin:0 0;
    animation:pgmoLogoutOrbit 1.35s linear infinite;
}

.pgmo-logout-orbit.orbit-two{
    width:9px;
    height:9px;
    background:#22c55e;
    animation-duration:1.75s;
    animation-delay:-.4s;
}

.pgmo-logout-orbit.orbit-three{
    width:8px;
    height:8px;
    background:#ffffff;
    animation-duration:2.1s;
    animation-delay:-.9s;
}

.pgmo-logout-card h2{
    position:relative;
    margin:0 0 8px;
    font-size:27px;
    font-weight:950;
    color:#052e16;
}

.pgmo-logout-card p{
    position:relative;
    min-height:22px;
    margin:0 auto 22px;
    max-width:310px;
    color:#64748b;
    line-height:1.5;
    font-size:14px;
    transition:opacity .2s ease;
}

.pgmo-logout-meter{
    position:relative;
    width:100%;
    height:13px;
    border-radius:999px;
    background:#dbe6df;
    overflow:hidden;
    box-shadow:inset 0 1px 3px rgba(15,23,42,.16);
}

.pgmo-logout-meter span{
    display:block;
    height:100%;
    width:0%;
    border-radius:999px;
    background:linear-gradient(90deg,#15803d,#22c55e,#bbf7d0,#16a34a);
    background-size:220% 100%;
    box-shadow:0 0 22px rgba(34,197,94,.48);
    transition:width .1s linear;
    animation:pgmoLogoutMeterGlow .8s linear infinite;
}

.pgmo-logout-bottomline{
    position:relative;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
    margin-top:14px;
    color:#15803d;
    font-size:12px;
    font-weight:900;
    letter-spacing:.08em;
    text-transform:uppercase;
}

@keyframes pgmoLogoutSpin{
    to{ transform:rotate(360deg); }
}

@keyframes pgmoLogoutOrbit{
    0%{ transform:rotate(0deg) translateX(62px) rotate(0deg); }
    100%{ transform:rotate(360deg) translateX(62px) rotate(-360deg); }
}

@keyframes pgmoLogoutSealBreathe{
    0%, 100%{ transform:scale(1); }
    50%{ transform:scale(1.055); }
}

@keyframes pgmoLogoutShine{
    0%{ transform:translateX(-42%) rotate(12deg); }
    100%{ transform:translateX(42%) rotate(12deg); }
}

@keyframes pgmoLogoutMeterGlow{
    0%{ background-position:0% 0%; }
    100%{ background-position:220% 0%; }
}

@keyframes pgmoLogoutPulse{
    0%,100%{ transform:scale(.92); opacity:.35; }
    50%{ transform:scale(1.05); opacity:.75; }
}

@keyframes pgmoLogoutFloat{
    0%,100%{ transform:translateY(0) scale(.9); opacity:.45; }
    50%{ transform:translateY(-24px) scale(1.2); opacity:1; }
}

@media (max-width:650px){
    .pgmo-logout-card{
        border-radius:25px;
        padding:32px 22px 24px;
    }

    .pgmo-logout-seal-wrap{
        width:104px;
        height:104px;
    }

    .pgmo-logout-seal{
        inset:15px;
        width:74px;
        height:74px;
    }

    .pgmo-logout-orbit{
        animation-name:pgmoLogoutOrbitMobile;
    }

    .pgmo-logout-card h2{
        font-size:23px;
    }

    .pgmo-logout-card p{
        font-size:13px;
    }
}

@keyframes pgmoLogoutOrbitMobile{
    0%{ transform:rotate(0deg) translateX(55px) rotate(0deg); }
    100%{ transform:rotate(360deg) translateX(55px) rotate(-360deg); }
}

@media (prefers-reduced-motion: reduce){
    .pgmo-logout-overlay,
    .pgmo-logout-card,
    .pgmo-logout-card::before,
    .pgmo-logout-ring,
    .pgmo-logout-seal,
    .pgmo-logout-orbit,
    .pgmo-logout-particles span,
    .pgmo-logout-meter span{
        animation:none !important;
        transition:none !important;
    }
}

/* PGMO STUDENT LIVE SIGN-IN LOADING ANIMATION */
body.pgmo-login-active{
    overflow:hidden;
}

.main-btn.is-signing-in{
    opacity:.72;
    cursor:wait;
}

.pgmo-login-overlay{
    background:
        radial-gradient(circle at 18% 18%, rgba(187,247,208,.27), transparent 28%),
        radial-gradient(circle at 80% 78%, rgba(250,204,21,.18), transparent 34%),
        linear-gradient(135deg, rgba(2,44,18,.98), rgba(6,78,59,.98) 48%, rgba(21,128,61,.98));
}

.pgmo-login-card::before{
    background:linear-gradient(110deg, transparent 35%, rgba(250,204,21,.16), transparent 65%);
}

.pgmo-login-overlay .pgmo-logout-ring{
    background:conic-gradient(from 0deg, #15803d, #bbf7d0, #facc15, #22c55e, #15803d);
}

.pgmo-login-overlay .pgmo-logout-meter span{
    background:linear-gradient(90deg,#166534,#22c55e,#facc15,#bbf7d0,#16a34a);
    background-size:240% 100%;
}


/* PGMO OJT ID CARD OVERHAUL */
.ojt-id-page-grid{
    display:grid;
    grid-template-columns:minmax(320px, 430px) 1fr;
    gap:18px;
    align-items:start;
}

.ojt-id-preview-panel,
.ojt-id-submit-panel{
    padding:24px;
}

.ojt-id-card-title{
    align-items:flex-start;
    gap:14px;
}

.ojt-id-profile-link{
    min-height:40px;
    white-space:nowrap;
}

.ojt-id-preview-stage{
    display:flex;
    justify-content:center;
    align-items:center;
    min-height:520px;
    padding:14px;
    background:linear-gradient(135deg,#f8fafc,#ecfdf5);
    border:1px dashed #bbf7d0;
    border-radius:20px;
}

.pgmo-ojt-id-card{
    position:relative;
    width:min(100%, 320px);
    aspect-ratio:591 / 1004;
    background:#fff;
    border-radius:18px;
    overflow:hidden;
    box-shadow:0 20px 55px rgba(15,23,42,.18);
    isolation:isolate;
}

.pgmo-ojt-id-card.template-large{
    width:min(100%, 390px);
}

.pgmo-ojt-id-card .ojt-id-template-img{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    object-fit:cover;
    z-index:1;
}

.pgmo-ojt-id-card .ojt-id-photo{
    position:absolute;
    z-index:3;
    left:21.2%;
    top:33.7%;
    width:57.6%;
    aspect-ratio:1 / 1;
    border-radius:50%;
    overflow:hidden;
    background:linear-gradient(135deg,#e5e7eb,#f8fafc);
    border:5px solid rgba(255,255,255,.88);
    display:flex;
    align-items:center;
    justify-content:center;
    color:#0b5a39;
    font-size:clamp(36px, 9vw, 64px);
    font-weight:950;
    text-align:center;
}

.pgmo-ojt-id-card .ojt-id-photo img{
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center top;
    display:block;
}

.pgmo-ojt-id-card .ojt-id-name{
    position:absolute;
    z-index:4;
    left:8%;
    right:8%;
    top:75.0%;
    min-height:6.5%;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:0 4px;
    background:rgba(255,255,255,.97);
    color:#064e3b;
    text-align:center;
    font-weight:950;
    font-size:clamp(20px, 4.5vw, 32px);
    line-height:.98;
    text-transform:uppercase;
    letter-spacing:.01em;
    word-break:break-word;
}

.pgmo-ojt-id-card .ojt-id-role-mask{
    position:absolute;
    z-index:3;
    left:24%;
    right:24%;
    top:72.2%;
    height:5.2%;
    border-radius:999px;
    background:#000;
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:clamp(13px,2.8vw,20px);
    font-weight:800;
    letter-spacing:.02em;
}

.pgmo-ojt-id-card .ojt-id-info{
    position:absolute;
    z-index:4;
    left:7%;
    right:7%;
    top:82.0%;
    padding:3px 6px;
    background:rgba(255,255,255,.96);
    text-align:center;
    color:#064e3b;
    font-weight:900;
    text-transform:uppercase;
    line-height:1.1;
    font-size:clamp(10px, 2vw, 14px);
}

.pgmo-ojt-id-card .ojt-id-info div{
    margin:1px 0;
}

.pgmo-ojt-id-card .ojt-id-info span{
    font-weight:950;
}

.pgmo-ojt-id-card .ojt-id-info strong{
    font-weight:900;
}

.ojt-id-detail-checklist{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px;
    margin:18px 0;
}

.ojt-id-detail-checklist div{
    background:#f8fafc;
    border:1px solid #d1d5db;
    border-radius:16px;
    padding:14px;
}

.ojt-id-detail-checklist i{
    width:34px;
    height:34px;
    border-radius:50%;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    background:#ecfdf5;
    color:#047857;
    margin-bottom:8px;
}

.ojt-id-detail-checklist span,
.ojt-id-detail-checklist strong{
    display:block;
}

.ojt-id-detail-checklist span{
    color:#64748b;
    font-size:12px;
    font-weight:800;
}

.ojt-id-detail-checklist strong{
    color:#111827;
    font-size:14px;
    margin-top:2px;
    word-break:break-word;
}

.ojt-id-action-row{
    margin-top:12px;
}

.ojt-id-history-row,
.ojt-id-admin-row-card{
    display:flex;
    align-items:center;
    gap:14px;
}

.ojt-id-ready-note{
    color:#047857;
    font-weight:800;
}

.ojt-id-admin-mini{
    display:flex;
    align-items:center;
    gap:10px;
}

.ojt-id-admin-thumb{
    width:52px;
    height:72px;
    border-radius:10px;
    overflow:hidden;
    border:1px solid #d1d5db;
    background:#f8fafc;
    position:relative;
    flex-shrink:0;
}

.ojt-id-admin-thumb img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.ojt-id-modal-preview{
    display:flex;
    justify-content:center;
    padding:18px;
    background:linear-gradient(135deg,#f8fafc,#eef2ff);
    border-radius:18px;
}

.ojt-id-admin-modal .modal-body{
    background:#f8fafc;
}

@media(max-width:1050px){
    .ojt-id-page-grid{
        grid-template-columns:1fr;
    }

    .ojt-id-preview-stage{
        min-height:auto;
    }
}

@media(max-width:650px){
    .ojt-id-preview-panel,
    .ojt-id-submit-panel{
        padding:18px;
    }

    .ojt-id-card-title{
        flex-direction:column;
    }

    .ojt-id-profile-link,
    .ojt-id-action-row .main-btn{
        width:100%;
    }

    .ojt-id-detail-checklist{
        grid-template-columns:1fr;
    }

    .pgmo-ojt-id-card{
        width:min(100%, 300px);
    }
}

@media print{
    body.print-ojt-id-only *{
        visibility:hidden !important;
    }

    body.print-ojt-id-only #adminOjtIdPreviewPrintArea,
    body.print-ojt-id-only #adminOjtIdPreviewPrintArea *{
        visibility:visible !important;
    }

    body.print-ojt-id-only #adminOjtIdPreviewPrintArea{
        position:fixed;
        inset:0;
        display:flex !important;
        align-items:flex-start;
        justify-content:center;
        background:#fff !important;
        padding:20px !important;
        border-radius:0 !important;
    }

    body.print-ojt-id-only .pgmo-ojt-id-card{
        width:3.2in !important;
        box-shadow:none !important;
        border-radius:0 !important;
    }
}

/* OJT ID status colors */
.badge-ready,
.badge-status.badge-ready{
    background:#dcfce7 !important;
    color:#166534 !important;
}
.id-history-icon.ready{
    background:#dcfce7;
    color:#166534;
}




/* EDITABLE OJT ID FORM */
.ojt-id-editor-form{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px;
    margin:18px 0;
}

.ojt-id-editor-field{
    min-width:0;
}

.ojt-id-editor-field.field-wide{
    grid-column:1 / -1;
}

.ojt-id-editor-field label{
    display:block;
    margin:0 0 6px;
    color:#334155;
    font-size:12px;
    font-weight:900;
}

.ojt-id-editor-field input{
    min-height:46px;
    border-radius:13px;
    border:1px solid #d1d5db;
    font-weight:700;
}

.ojt-id-editor-field input:focus{
    border-color:#16a34a;
    box-shadow:0 0 0 4px rgba(22,163,74,.14);
}

.pgmo-ojt-id-card .ojt-id-role-mask{
    display:none !important;
}

@media(max-width:650px){
    .ojt-id-editor-form{
        grid-template-columns:1fr;
    }
}


/* PGMO OJT ID TEMPLATE ALIGNMENT FIX - 2026-07-15
   New ID card template: cleaner left-aligned details, smaller name above underline,
   and profile photo covers the circle area neatly. */
.pgmo-ojt-id-card{
    aspect-ratio:591 / 1004 !important;
}

.pgmo-ojt-id-card .ojt-id-photo{
    left:16.2% !important;
    top:31.0% !important;
    width:67.6% !important;
    height:auto !important;
    aspect-ratio:1 / 1 !important;
    border-radius:50% !important;
    overflow:hidden !important;
    background:#f8fafc !important;
    border:10px solid #6f7f79 !important;
    box-shadow:inset 0 0 0 7px #ffffff !important;
    padding:7px !important;
}

.pgmo-ojt-id-card .ojt-id-photo img{
    width:100% !important;
    height:100% !important;
    object-fit:cover !important;
    object-position:center top !important;
    border-radius:50% !important;
    display:block !important;
}

.pgmo-ojt-id-card .ojt-id-photo span{
    width:100% !important;
    height:100% !important;
    border-radius:50% !important;
    background:#ecfdf5 !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
}

.pgmo-ojt-id-card .ojt-id-name{
    left:10.2% !important;
    right:10.2% !important;
    top:72.1% !important;
    height:6.4% !important;
    min-height:0 !important;
    padding:0 8px 4px !important;
    background:transparent !important;
    color:#064e3b !important;
    display:flex !important;
    align-items:flex-end !important;
    justify-content:center !important;
    text-align:center !important;
    font-size:22px !important;
    line-height:.9 !important;
    font-weight:950 !important;
    letter-spacing:.01em !important;
    text-transform:uppercase !important;
    overflow:hidden !important;
    word-break:normal !important;
    overflow-wrap:normal !important;
    white-space:normal !important;
}

.pgmo-ojt-id-card.template-large .ojt-id-name{
    font-size:27px !important;
}

.pgmo-ojt-id-card .ojt-id-name.name-long{
    font-size:19px !important;
}

.pgmo-ojt-id-card .ojt-id-name.name-very-long{
    font-size:17px !important;
    letter-spacing:0 !important;
}

.pgmo-ojt-id-card .ojt-id-name.name-extra-long{
    font-size:15px !important;
    letter-spacing:0 !important;
    line-height:.88 !important;
}

.pgmo-ojt-id-card.template-large .ojt-id-name.name-long{
    font-size:23px !important;
}

.pgmo-ojt-id-card.template-large .ojt-id-name.name-very-long{
    font-size:21px !important;
}

.pgmo-ojt-id-card.template-large .ojt-id-name.name-extra-long{
    font-size:18px !important;
}

.pgmo-ojt-id-card .ojt-id-info{
    left:10.2% !important;
    right:10.2% !important;
    top:81.6% !important;
    padding:4px 8px !important;
    background:rgba(255,255,255,.94) !important;
    color:#064e3b !important;
    text-align:left !important;
    font-size:11.5px !important;
    line-height:1.08 !important;
    font-weight:900 !important;
    text-transform:uppercase !important;
    border-radius:4px !important;
}

.pgmo-ojt-id-card.template-large .ojt-id-info{
    font-size:13.5px !important;
}

.pgmo-ojt-id-card .ojt-id-info div{
    display:grid !important;
    grid-template-columns:42% 58% !important;
    align-items:baseline !important;
    column-gap:6px !important;
    margin:1px 0 !important;
    min-height:14px !important;
}

.pgmo-ojt-id-card .ojt-id-info span{
    text-align:right !important;
    font-weight:950 !important;
    white-space:nowrap !important;
}

.pgmo-ojt-id-card .ojt-id-info strong{
    display:block !important;
    text-align:left !important;
    font-weight:900 !important;
    min-width:0 !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    white-space:nowrap !important;
}

.pgmo-ojt-id-card .ojt-id-role-mask{
    display:none !important;
}

@media(max-width:520px){
    .pgmo-ojt-id-card .ojt-id-photo{
        border-width:8px !important;
        box-shadow:inset 0 0 0 6px #ffffff !important;
        padding:6px !important;
    }

    .pgmo-ojt-id-card .ojt-id-name{
        font-size:18px !important;
    }

    .pgmo-ojt-id-card .ojt-id-name.name-long{
        font-size:16px !important;
    }

    .pgmo-ojt-id-card .ojt-id-name.name-very-long,
    .pgmo-ojt-id-card .ojt-id-name.name-extra-long{
        font-size:14px !important;
    }

    .pgmo-ojt-id-card .ojt-id-info{
        font-size:10px !important;
    }
}

/* OJT ID FINAL CLEAN LAYOUT FIX - 2026-07-15
   Removes reliance on baked-in bottom labels. The template image is cleaned,
   and all student data is rendered once with a fixed, readable layout. */
.pgmo-ojt-id-card .ojt-id-template-img{
    z-index:1 !important;
}

.pgmo-ojt-id-card .ojt-id-photo{
    z-index:3 !important;
    left:20.3% !important;
    top:33.2% !important;
    width:59.4% !important;
    height:auto !important;
    aspect-ratio:1 / 1 !important;
    border-radius:50% !important;
    overflow:hidden !important;
    padding:0 !important;
    border:0 !important;
    box-shadow:none !important;
    background:#f8fafc !important;
}

.pgmo-ojt-id-card .ojt-id-photo img{
    width:100% !important;
    height:100% !important;
    object-fit:cover !important;
    object-position:center top !important;
    border-radius:50% !important;
    display:block !important;
}

.pgmo-ojt-id-card .ojt-id-photo span{
    width:100% !important;
    height:100% !important;
    border-radius:50% !important;
    background:#ecfdf5 !important;
    color:#064e3b !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    font-weight:950 !important;
}

.pgmo-ojt-id-card .ojt-id-name{
    z-index:4 !important;
    left:10.0% !important;
    right:10.0% !important;
    top:73.15% !important;
    height:5.9% !important;
    min-height:0 !important;
    padding:0 8px 7px !important;
    background:transparent !important;
    color:#064e3b !important;
    display:flex !important;
    align-items:flex-end !important;
    justify-content:center !important;
    text-align:center !important;
    font-size:22px !important;
    line-height:1 !important;
    font-weight:950 !important;
    letter-spacing:.005em !important;
    text-transform:uppercase !important;
    white-space:nowrap !important;
    word-break:normal !important;
    overflow-wrap:normal !important;
    overflow:hidden !important;
    text-overflow:clip !important;
}

.pgmo-ojt-id-card .ojt-id-name.name-long{
    font-size:18px !important;
    letter-spacing:0 !important;
}

.pgmo-ojt-id-card .ojt-id-name.name-very-long{
    font-size:15.2px !important;
    letter-spacing:-.01em !important;
}

.pgmo-ojt-id-card .ojt-id-name.name-extra-long{
    font-size:13px !important;
    letter-spacing:-.015em !important;
}

.pgmo-ojt-id-card.template-large .ojt-id-name{
    font-size:27px !important;
}

.pgmo-ojt-id-card.template-large .ojt-id-name.name-long{
    font-size:22px !important;
}

.pgmo-ojt-id-card.template-large .ojt-id-name.name-very-long{
    font-size:19px !important;
}

.pgmo-ojt-id-card.template-large .ojt-id-name.name-extra-long{
    font-size:16.5px !important;
}

.pgmo-ojt-id-card .ojt-id-info{
    z-index:4 !important;
    left:10.0% !important;
    right:10.0% !important;
    top:81.05% !important;
    padding:0 !important;
    background:transparent !important;
    color:#064e3b !important;
    text-align:left !important;
    font-size:10.7px !important;
    line-height:1.17 !important;
    font-weight:900 !important;
    text-transform:uppercase !important;
    border-radius:0 !important;
}

.pgmo-ojt-id-card.template-large .ojt-id-info{
    font-size:13px !important;
}

.pgmo-ojt-id-card .ojt-id-info div{
    display:grid !important;
    grid-template-columns:48% 52% !important;
    align-items:baseline !important;
    column-gap:6px !important;
    min-height:13px !important;
    margin:0 !important;
}

.pgmo-ojt-id-card.template-large .ojt-id-info div{
    min-height:16px !important;
}

.pgmo-ojt-id-card .ojt-id-info span{
    display:block !important;
    text-align:right !important;
    font-weight:950 !important;
    white-space:nowrap !important;
}

.pgmo-ojt-id-card .ojt-id-info strong{
    display:block !important;
    text-align:left !important;
    font-weight:900 !important;
    min-width:0 !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    white-space:nowrap !important;
}

.pgmo-ojt-id-card .ojt-id-role-mask{
    display:none !important;
}

@media(max-width:520px){
    .pgmo-ojt-id-card .ojt-id-name{
        font-size:18px !important;
    }
    .pgmo-ojt-id-card .ojt-id-name.name-long{
        font-size:15.3px !important;
    }
    .pgmo-ojt-id-card .ojt-id-name.name-very-long{
        font-size:13.3px !important;
    }
    .pgmo-ojt-id-card .ojt-id-name.name-extra-long{
        font-size:11.8px !important;
    }
    .pgmo-ojt-id-card .ojt-id-info{
        font-size:9.4px !important;
    }
}


/* OJT ID PHOTO CENTERING + SUPABASE REQUEST PATCH - 2026-07-15
   Keeps the student photo centered inside the white circle without covering the gray ring. */
.pgmo-ojt-id-card .ojt-id-photo{
    left:20.55% !important;
    top:33.25% !important;
    width:57.20% !important;
    height:auto !important;
    aspect-ratio:1 / 1 !important;
    border-radius:50% !important;
    overflow:hidden !important;
    padding:0 !important;
    border:0 !important;
    box-shadow:none !important;
    background:#f8fafc !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
}

.pgmo-ojt-id-card .ojt-id-photo img{
    width:100% !important;
    height:100% !important;
    object-fit:cover !important;
    object-position:center center !important;
    border-radius:50% !important;
    display:block !important;
}

.pgmo-ojt-id-card.template-large .ojt-id-photo{
    left:20.55% !important;
    top:33.25% !important;
    width:57.20% !important;
}


/* PGMO DASHBOARD CLEANUP 2026-07-16 */
.hour-status.remaining > span{
    background:#7c3aed;
}

.hour-status.remaining small::after{
    content:"";
}

.hours-donut.loading,
.requirements-donut.loading{
    animation:pgmoDonutPulse .95s ease-in-out infinite alternate;
    will-change:transform, filter;
}

@media (prefers-reduced-motion: reduce){
    .hours-donut.loading,
    .requirements-donut.loading{
        animation:none !important;
    }
}

/* PGMO PATCH 2026-07-16: clean notification loading animation, no square/card repaint effect */
body[data-page="notifications"] .notifications-list{
    min-height:220px;
}

body[data-page="notifications"] .notification-loading-state.pgmo-notification-circle-only{
    min-height:220px !important;
    padding:42px 20px !important;
    animation:pgmoNotificationFadeIn .22s ease both !important;
    background:transparent !important;
    border:0 !important;
    box-shadow:none !important;
}

body[data-page="notifications"] .notification-loading-state.pgmo-notification-circle-only .notification-loading-logo{
    width:58px !important;
    height:58px !important;
    min-width:58px !important;
    min-height:58px !important;
    margin:0 auto 14px !important;
    border-radius:50% !important;
    border:5px solid #e5e7eb !important;
    border-top-color:#15803d !important;
    border-right-color:#86efac !important;
    background:#ffffff !important;
    color:transparent !important;
    font-size:0 !important;
    line-height:0 !important;
    animation:pgmoNotificationCircleSpin .82s linear infinite !important;
}

body[data-page="notifications"] .notification-loading-state.pgmo-notification-circle-only .notification-loading-logo i,
body[data-page="notifications"] .notification-loading-state.pgmo-notification-circle-only .notification-loading-logo::before,
body[data-page="notifications"] .notification-loading-state.pgmo-notification-circle-only .notification-loading-logo::after{
    display:none !important;
    content:none !important;
}

body[data-page="notifications"] .stable-notification-card{
    animation:none !important;
    transform:none !important;
    transition:border-color .18s ease, background .18s ease, box-shadow .18s ease !important;
}

body[data-page="notifications"] .stable-notification-card:hover{
    transform:none !important;
    box-shadow:0 12px 28px rgba(15,23,42,.08) !important;
}

body[data-page="notifications"] .notification-empty-clean{
    animation:pgmoNotificationFadeIn .22s ease both !important;
}

@keyframes pgmoNotificationCircleSpin{
    from{transform:rotate(0deg)}
    to{transform:rotate(360deg)}
}

@keyframes pgmoNotificationFadeIn{
    from{opacity:0; transform:translateY(6px)}
    to{opacity:1; transform:translateY(0)}
}


/* PGMO PATCH 2026-07-16B: notifications page circle-only loading fix */
body[data-page="notifications"] #notificationsList{
    min-height:230px;
}

body[data-page="notifications"] #notificationsList .notification-card,
body[data-page="notifications"] #notificationsList .empty-state{
    animation:none !important;
    transform:none !important;
}

body[data-page="notifications"] #notificationsList .notification-loading-state.pgmo-notification-circle-only{
    display:flex !important;
    min-height:230px !important;
    width:100% !important;
    align-items:center !important;
    justify-content:center !important;
    flex-direction:column !important;
    padding:42px 20px !important;
    background:transparent !important;
    border:0 !important;
    box-shadow:none !important;
}

body[data-page="notifications"] #notificationsList .notification-loading-state.pgmo-notification-circle-only .notification-loading-logo{
    width:58px !important;
    height:58px !important;
    min-width:58px !important;
    min-height:58px !important;
    border-radius:50% !important;
    border:5px solid #e5e7eb !important;
    border-top-color:#15803d !important;
    border-right-color:#86efac !important;
    background:transparent !important;
    color:transparent !important;
    font-size:0 !important;
    line-height:0 !important;
    margin:0 0 14px !important;
    transform-origin:center center !important;
    animation:pgmoNotificationCircleSpinOnly .78s linear infinite !important;
}

body[data-page="notifications"] #notificationsList .notification-loading-state.pgmo-notification-circle-only .notification-loading-logo i,
body[data-page="notifications"] #notificationsList .notification-loading-state.pgmo-notification-circle-only .notification-loading-logo::before,
body[data-page="notifications"] #notificationsList .notification-loading-state.pgmo-notification-circle-only .notification-loading-logo::after{
    display:none !important;
    content:none !important;
}

@keyframes pgmoNotificationCircleSpinOnly{
    from{transform:rotate(0deg)}
    to{transform:rotate(360deg)}
}

/* PGMO PATCH 2026-07-16C: OJT ID preview centering fix */
.pgmo-ojt-id-card{
    display:block !important;
    margin-left:auto !important;
    margin-right:auto !important;
}

.pgmo-ojt-id-card .ojt-id-template-img{
    display:block !important;
    width:100% !important;
    height:auto !important;
    margin-left:auto !important;
    margin-right:auto !important;
}


/* PGMO PATCH 2026-07-16D: OJT ID preview name/photo safety */
.pgmo-ojt-id-card .ojt-id-name{
    left:7.5% !important;
    right:7.5% !important;
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:clip !important;
}

.pgmo-ojt-id-card .ojt-id-photo img{
    object-position:center center !important;
}

/* PGMO PATCH 2026-07-16D: safer OJT ID name fit in preview */
.pgmo-ojt-id-card .ojt-id-name{
    left:1% !important;
    right:1% !important;
    padding-left:2px !important;
    padding-right:2px !important;
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:clip !important;
}

/* PGMO PATCH 2026-07-16F: readable OJT ID details while keeping debit-card print size */
.pgmo-ojt-id-card .ojt-id-name{
    top:71.85% !important;
    height:7.05% !important;
    font-size:24px !important;
    line-height:.96 !important;
    align-items:flex-end !important;
    padding:0 4px 5px !important;
}

.pgmo-ojt-id-card .ojt-id-name.name-long{
    font-size:20px !important;
}

.pgmo-ojt-id-card .ojt-id-name.name-very-long{
    font-size:17px !important;
}

.pgmo-ojt-id-card .ojt-id-name.name-extra-long{
    font-size:14.5px !important;
}

.pgmo-ojt-id-card .ojt-id-info{
    left:5.6% !important;
    right:5.6% !important;
    top:79.75% !important;
    font-size:13.2px !important;
    line-height:1.12 !important;
    letter-spacing:-.035em !important;
}

.pgmo-ojt-id-card .ojt-id-info div{
    grid-template-columns:37% 63% !important;
    column-gap:5px !important;
    min-height:16px !important;
}

@media(max-width:520px){
    .pgmo-ojt-id-card .ojt-id-name{
        font-size:19px !important;
    }
    .pgmo-ojt-id-card .ojt-id-name.name-long{
        font-size:16px !important;
    }
    .pgmo-ojt-id-card .ojt-id-name.name-very-long{
        font-size:14px !important;
    }
    .pgmo-ojt-id-card .ojt-id-name.name-extra-long{
        font-size:12px !important;
    }
    .pgmo-ojt-id-card .ojt-id-info{
        font-size:10.8px !important;
    }
    .pgmo-ojt-id-card .ojt-id-info div{
        min-height:13px !important;
    }
}


/* PGMO PATCH 2026-07-16G: bigger readable OJT ID text, same card size */
.pgmo-ojt-id-card .ojt-id-name{
    top:71.35% !important;
    height:7.65% !important;
    font-size:27px !important;
    line-height:.96 !important;
    padding:0 3px 5px !important;
}

.pgmo-ojt-id-card .ojt-id-name.name-long{
    font-size:23px !important;
}

.pgmo-ojt-id-card .ojt-id-name.name-very-long{
    font-size:19.5px !important;
}

.pgmo-ojt-id-card .ojt-id-name.name-extra-long{
    font-size:16.5px !important;
}

.pgmo-ojt-id-card .ojt-id-info{
    left:5.2% !important;
    right:5.2% !important;
    top:79.15% !important;
    font-size:15.4px !important;
    line-height:1.08 !important;
    letter-spacing:-.045em !important;
}

.pgmo-ojt-id-card .ojt-id-info div{
    grid-template-columns:34% 66% !important;
    column-gap:5px !important;
    min-height:18px !important;
}

@media(max-width:520px){
    .pgmo-ojt-id-card .ojt-id-name{
        font-size:21px !important;
    }
    .pgmo-ojt-id-card .ojt-id-name.name-long{
        font-size:18px !important;
    }
    .pgmo-ojt-id-card .ojt-id-name.name-very-long{
        font-size:15.5px !important;
    }
    .pgmo-ojt-id-card .ojt-id-name.name-extra-long{
        font-size:13px !important;
    }
    .pgmo-ojt-id-card .ojt-id-info{
        font-size:12.3px !important;
    }
    .pgmo-ojt-id-card .ojt-id-info div{
        min-height:15px !important;
    }
}


/* PGMO PATCH 2026-07-16H: OJT ID preview photo/text adjustment to match larger print layout */
.pgmo-ojt-id-card .ojt-id-photo img{
    object-fit:cover !important;
    object-position:center center !important;
}

.pgmo-ojt-id-card .ojt-id-name{
    top:71.65% !important;
    height:7.25% !important;
    padding:0 3px 4px !important;
    line-height:.94 !important;
}

.pgmo-ojt-id-card .ojt-id-info{
    top:79.05% !important;
}

/* =====================================================================
   PGMO STUDENT RESPONSIVE + SAVED DTR ENTRIES PATCH 2026-07-20
   Database folders are intentionally untouched.
   ===================================================================== */
body.portal-body .portal-main{
    width:calc(100% - 260px);
    max-width:1680px;
    margin-right:auto;
}

body[data-page="monthly-dtr"] .portal-main{
    max-width:1440px;
}

body[data-page="monthly-dtr"] .dtr-template-card{
    max-width:1180px;
    margin-left:auto;
    margin-right:auto;
}

body[data-page="monthly-dtr"] .dtr-table-wrap{
    max-height:72vh;
    overflow:auto;
    overscroll-behavior:contain;
}

body[data-page="monthly-dtr"] .dtr-table thead th{
    position:sticky;
    top:0;
    z-index:4;
    background:#f3f4f6;
    box-shadow:0 1px 0 #cbd5e1;
}

body[data-page="monthly-dtr"] .dtr-table thead tr:first-child th{
    height:30px;
}

body[data-page="monthly-dtr"] .dtr-table thead tr:nth-child(2) th{
    top:30px;
}

.dtr-saved-entries-notice{
    display:flex;
    align-items:flex-start;
    gap:10px;
    margin:0 0 16px;
    padding:12px 14px;
    border:1px solid #d1d5db;
    border-radius:12px;
    background:#f8fafc;
    color:#334155;
    font-size:14px;
    line-height:1.45;
}

.dtr-saved-entries-notice i{
    margin-top:3px;
    flex:0 0 auto;
}

.dtr-saved-entries-notice.loading{background:#f8fafc;color:#475569;}
.dtr-saved-entries-notice.info{background:#eff6ff;border-color:#bfdbfe;color:#1e40af;}
.dtr-saved-entries-notice.success{background:#ecfdf5;border-color:#a7f3d0;color:#166534;}
.dtr-saved-entries-notice.warning{background:#fffbeb;border-color:#fde68a;color:#92400e;}
.dtr-saved-entries-notice.error{background:#fef2f2;border-color:#fecaca;color:#991b1b;}

body[data-page="monthly-dtr"] .dtr-row-submitted td{
    background:#f0fdf4 !important;
}

body[data-page="monthly-dtr"] .dtr-row-rejected td{
    background:#fff7ed !important;
}

body[data-page="monthly-dtr"] .dtr-row-submitted .day-cell{
    min-width:84px;
}

.dtr-row-lock-badge{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:4px;
    margin-top:3px;
    color:#166534;
    font-size:9px;
    font-weight:800;
    line-height:1.1;
    text-transform:uppercase;
    letter-spacing:.02em;
}

.dtr-row-rejected .dtr-row-lock-badge{color:#9a3412;}

body[data-page="monthly-dtr"] input.dtr-saved-input{
    opacity:1 !important;
    color:#14532d !important;
    -webkit-text-fill-color:#14532d !important;
    background:#dcfce7 !important;
    border-color:#86efac !important;
    cursor:not-allowed;
    font-weight:800;
}

body[data-page="monthly-dtr"] .dtr-row-rejected input.dtr-saved-input{
    color:#9a3412 !important;
    -webkit-text-fill-color:#9a3412 !important;
    background:#ffedd5 !important;
    border-color:#fdba74 !important;
}

.dtr-weekend-saved-time{
    display:inline-flex;
    min-height:34px;
    width:100%;
    align-items:center;
    justify-content:center;
    padding:4px 6px;
    border:1px solid #86efac;
    border-radius:8px;
    background:#dcfce7;
    color:#14532d;
    font-weight:800;
}

.dtr-weekend-saved-time.empty{
    border-color:transparent;
    background:transparent;
    color:#94a3b8;
}

body[data-page="monthly-dtr"] .dtr-action-buttons .dtr-top-submit-btn{
    min-height:46px;
    white-space:nowrap;
}

body[data-page="monthly-dtr"] .dtr-history-loading .dtr-table{
    opacity:.72;
}

.student-bottom-nav{
    display:none;
}

@media(max-width:900px){
    body.portal-body{
        padding-bottom:84px !important;
    }

    body.portal-body .portal-main{
        width:100% !important;
        max-width:none;
        margin:0;
    }

    .student-bottom-nav{
        position:fixed;
        left:10px;
        right:10px;
        bottom:max(8px, env(safe-area-inset-bottom));
        z-index:1200;
        display:grid;
        grid-template-columns:repeat(5, minmax(0, 1fr));
        min-height:64px;
        padding:5px;
        border:1px solid rgba(15,23,42,.12);
        border-radius:18px;
        background:rgba(255,255,255,.97);
        box-shadow:0 16px 38px rgba(15,23,42,.2);
        backdrop-filter:blur(14px);
        -webkit-backdrop-filter:blur(14px);
    }

    .student-bottom-nav-item{
        position:relative;
        display:flex;
        flex-direction:column;
        align-items:center;
        justify-content:center;
        gap:3px;
        min-width:0;
        min-height:52px;
        padding:5px 2px;
        border:0;
        border-radius:13px;
        background:transparent;
        color:#64748b;
        text-decoration:none;
        font:inherit;
        cursor:pointer;
        -webkit-tap-highlight-color:transparent;
    }

    .student-bottom-nav-item i{
        font-size:18px;
        line-height:1;
    }

    .student-bottom-nav-item span{
        max-width:100%;
        overflow:hidden;
        color:inherit;
        font-size:10px;
        font-weight:800;
        line-height:1.15;
        text-overflow:ellipsis;
        white-space:nowrap;
    }

    .student-bottom-nav-item.active{
        background:#ecfdf5;
        color:#166534;
    }

    .student-bottom-nav-item:focus-visible{
        outline:3px solid rgba(22,101,52,.24);
        outline-offset:1px;
    }

    .student-bottom-notification-badge{
        position:absolute;
        top:3px;
        left:calc(50% + 7px);
        display:inline-flex;
        align-items:center;
        justify-content:center;
        min-width:17px;
        height:17px;
        padding:0 4px;
        border:2px solid #fff;
        border-radius:999px;
        background:#dc2626;
        color:#fff !important;
        font-size:9px !important;
        font-weight:900 !important;
        line-height:1;
    }

    .student-bottom-notification-badge[hidden]{display:none !important;}

    body[data-page="monthly-dtr"] .dtr-action-panel{
        position:sticky;
        bottom:78px;
        z-index:50;
        padding:10px !important;
        border-radius:16px !important;
        box-shadow:0 10px 28px rgba(15,23,42,.17);
    }

    body[data-page="monthly-dtr"] .dtr-action-panel-text{
        display:none;
    }

    body[data-page="monthly-dtr"] .dtr-action-buttons{
        display:grid !important;
        grid-template-columns:repeat(3, minmax(0, 1fr));
        width:100%;
        gap:8px !important;
    }

    body[data-page="monthly-dtr"] .dtr-action-buttons button{
        width:100% !important;
        min-width:0 !important;
        min-height:46px;
        padding:8px 5px !important;
        border-radius:11px !important;
        font-size:11px !important;
        line-height:1.15;
    }

    body[data-page="monthly-dtr"] #submitMonthlyDtrButton{
        display:none !important;
    }

    body[data-page="monthly-dtr"] .dtr-paper{
        padding:14px 10px !important;
        border-radius:14px;
    }

    body[data-page="monthly-dtr"] .dtr-saved-entries-notice{
        margin-bottom:12px;
        font-size:12px;
    }

    body[data-page="monthly-dtr"] .dtr-meta-grid{
        grid-template-columns:1fr !important;
        gap:10px !important;
    }

    body[data-page="monthly-dtr"] .dtr-table-wrap{
        max-height:none;
        overflow:visible;
        border:0 !important;
    }

    body[data-page="monthly-dtr"] .dtr-table,
    body[data-page="monthly-dtr"] .dtr-table tbody,
    body[data-page="monthly-dtr"] .dtr-table tfoot{
        display:block;
        width:100%;
    }

    body[data-page="monthly-dtr"] .dtr-table thead{
        position:absolute;
        width:1px;
        height:1px;
        padding:0;
        margin:-1px;
        overflow:hidden;
        clip:rect(0,0,0,0);
        white-space:nowrap;
        border:0;
    }

    body[data-page="monthly-dtr"] .dtr-table tbody{
        display:grid;
        gap:10px;
    }

    body[data-page="monthly-dtr"] .dtr-table tbody tr{
        display:grid;
        grid-template-columns:repeat(2, minmax(0, 1fr));
        gap:8px;
        padding:11px;
        border:1px solid #dbe3ea;
        border-radius:14px;
        background:#fff;
        box-shadow:0 4px 12px rgba(15,23,42,.05);
    }

    body[data-page="monthly-dtr"] .dtr-table tbody tr.inactive-day{
        display:none;
    }

    body[data-page="monthly-dtr"] .dtr-table tbody td{
        display:flex;
        flex-direction:column;
        align-items:stretch;
        width:auto !important;
        min-width:0;
        padding:0 !important;
        border:0 !important;
        background:transparent !important;
        text-align:left;
    }

    body[data-page="monthly-dtr"] .dtr-table tbody td::before{
        display:block;
        margin-bottom:4px;
        color:#64748b;
        font-size:9px;
        font-weight:900;
        line-height:1;
        text-transform:uppercase;
        letter-spacing:.04em;
    }

    body[data-page="monthly-dtr"] .dtr-table tbody td:nth-child(1){
        grid-column:1 / -1;
        display:flex;
        flex-direction:row;
        align-items:center;
        justify-content:space-between;
        min-height:28px;
        padding-bottom:7px !important;
        border-bottom:1px solid #e2e8f0 !important;
        color:#0f172a;
        font-size:15px;
        font-weight:900;
    }

    body[data-page="monthly-dtr"] .dtr-table tbody td:nth-child(1)::before{content:"Day";margin:0;}
    body[data-page="monthly-dtr"] .dtr-table tbody td:nth-child(2)::before{content:"AM Arrival";}
    body[data-page="monthly-dtr"] .dtr-table tbody td:nth-child(3)::before{content:"AM Departure";}
    body[data-page="monthly-dtr"] .dtr-table tbody td:nth-child(4)::before{content:"PM Arrival";}
    body[data-page="monthly-dtr"] .dtr-table tbody td:nth-child(5)::before{content:"PM Departure";}
    body[data-page="monthly-dtr"] .dtr-table tbody td:nth-child(6)::before{content:"Undertime Hours";}
    body[data-page="monthly-dtr"] .dtr-table tbody td:nth-child(7)::before{content:"Undertime Minutes";}

    body[data-page="monthly-dtr"] .dtr-row-lock-badge{
        margin:0 0 0 auto;
        font-size:9px;
    }

    body[data-page="monthly-dtr"] .dtr-time-input,
    body[data-page="monthly-dtr"] .dtr-under-input,
    body[data-page="monthly-dtr"] .dtr-weekend-saved-time{
        width:100% !important;
        min-width:0;
        min-height:42px;
        font-size:16px !important;
    }

    body[data-page="monthly-dtr"] .dtr-weekend-hidden-cell{
        display:none !important;
    }

    body[data-page="monthly-dtr"] .dtr-table tfoot tr{
        display:grid;
        grid-template-columns:1fr auto;
        align-items:center;
        margin-top:12px;
        padding:12px;
        border:1px solid #bbf7d0;
        border-radius:13px;
        background:#f0fdf4;
    }

    body[data-page="monthly-dtr"] .dtr-table tfoot td{
        display:block;
        width:auto !important;
        padding:0 !important;
        border:0 !important;
        background:transparent !important;
        color:#14532d;
        text-align:left !important;
    }

    body[data-page="monthly-dtr"] .dtr-certification{
        margin-top:20px;
        font-size:11px;
    }
}

@media(max-width:520px){
    body.portal-body .portal-main{
        padding-left:12px !important;
        padding-right:12px !important;
    }

    .student-bottom-nav{
        left:6px;
        right:6px;
        border-radius:16px;
    }

    body[data-page="monthly-dtr"] .dtr-summary-grid{
        grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
    }

    body[data-page="monthly-dtr"] .dtr-summary-grid .small-stat:nth-child(3){
        grid-column:1 / -1;
    }

    body[data-page="monthly-dtr"] .dtr-table tbody tr{
        padding:10px;
    }
}

@media(max-width:900px){
    body.modal-open .student-bottom-nav{
        display:none !important;
    }
}

/* PGMO DTR HEADER OVERLAP FIX 2026-07-20
   The second sticky header row must start immediately after the 30px first
   row. The previous 35px offset left a visible gap where saved DTR values
   appeared inside the header while scrolling. */
@media (min-width:901px){
    body[data-page="monthly-dtr"] .dtr-table thead tr:first-child th{
        height:30px !important;
    }

    body[data-page="monthly-dtr"] .dtr-table thead tr:nth-child(2) th{
        top:30px !important;
    }
}

/* PGMO DTR STICKY HEADER SEAM FIX 2026-07-20
   Keep both header rows as one solid sticky block. This removes the
   sub-pixel seam between A.M./P.M./Undertime and the second header row. */
@media (min-width:901px){
    body[data-page="monthly-dtr"] .dtr-table thead{
        position:sticky !important;
        top:0 !important;
        z-index:20 !important;
        background:#f3f4f6 !important;
        box-shadow:0 2px 0 #111827;
        isolation:isolate;
    }

    body[data-page="monthly-dtr"] .dtr-table thead th{
        position:static !important;
        top:auto !important;
        z-index:auto !important;
        background:#f3f4f6 !important;
        background-clip:border-box !important;
    }

    body[data-page="monthly-dtr"] .dtr-table thead tr:first-child th,
    body[data-page="monthly-dtr"] .dtr-table thead tr:nth-child(2) th{
        top:auto !important;
    }
}

/* =====================================================================
   PGMO DTR PHONE INTERACTION FIX 2026-07-20
   Keeps the phone page vertically scrollable and prevents closed/floating
   interface layers from intercepting taps over the DTR form.
   ===================================================================== */
@media (max-width:900px){
    html{
        overflow-x:hidden !important;
        overflow-y:auto !important;
        height:auto !important;
        min-height:100% !important;
        touch-action:pan-y !important;
        overscroll-behavior-y:auto !important;
        -webkit-overflow-scrolling:touch !important;
    }

    body.portal-body[data-page="monthly-dtr"]{
        overflow-x:hidden !important;
        overflow-y:auto !important;
        height:auto !important;
        min-height:100vh !important;
        padding-bottom:calc(98px + env(safe-area-inset-bottom)) !important;
        touch-action:pan-y !important;
        overscroll-behavior-y:auto !important;
        -webkit-overflow-scrolling:touch !important;
    }

    body.portal-body[data-page="monthly-dtr"] .portal-main,
    body.portal-body[data-page="monthly-dtr"] .dtr-template-card,
    body.portal-body[data-page="monthly-dtr"] #monthlyDtrForm,
    body.portal-body[data-page="monthly-dtr"] .dtr-paper,
    body.portal-body[data-page="monthly-dtr"] .dtr-table-wrap,
    body.portal-body[data-page="monthly-dtr"] .dtr-table,
    body.portal-body[data-page="monthly-dtr"] .dtr-table tbody{
        overflow:visible !important;
        max-height:none !important;
        touch-action:pan-y !important;
        overscroll-behavior:auto !important;
        -webkit-overflow-scrolling:touch !important;
    }

    /* The action bar was sticky above the bottom navigation. On phones it
       floated over DTR cards and intercepted swipes/taps. Keep it in the
       normal document flow instead. */
    body.portal-body[data-page="monthly-dtr"] .dtr-action-panel{
        position:relative !important;
        top:auto !important;
        right:auto !important;
        bottom:auto !important;
        left:auto !important;
        z-index:2 !important;
        transform:none !important;
        margin-bottom:14px !important;
    }

    body.portal-body[data-page="monthly-dtr"] .dtr-action-buttons,
    body.portal-body[data-page="monthly-dtr"] .dtr-action-buttons button{
        position:relative !important;
        z-index:3 !important;
        pointer-events:auto !important;
        touch-action:manipulation !important;
    }

    body.portal-body[data-page="monthly-dtr"] input,
    body.portal-body[data-page="monthly-dtr"] textarea,
    body.portal-body[data-page="monthly-dtr"] select,
    body.portal-body[data-page="monthly-dtr"] label,
    body.portal-body[data-page="monthly-dtr"] button,
    body.portal-body[data-page="monthly-dtr"] a{
        pointer-events:auto;
    }

    body.portal-body[data-page="monthly-dtr"] .dtr-time-input,
    body.portal-body[data-page="monthly-dtr"] .dtr-under-input{
        touch-action:manipulation !important;
        -webkit-user-select:text !important;
        user-select:text !important;
    }

    /* A closed fixed sidebar must not remain as a high-z-index touch layer. */
    body.portal-body[data-page="monthly-dtr"]:not(.mobile-menu-open) .portal-sidebar{
        max-height:0 !important;
        height:0 !important;
        min-height:0 !important;
        padding-top:0 !important;
        padding-bottom:0 !important;
        overflow:hidden !important;
        visibility:hidden !important;
        opacity:0 !important;
        pointer-events:none !important;
        box-shadow:none !important;
    }

    body.portal-body[data-page="monthly-dtr"].mobile-menu-open .portal-sidebar{
        height:auto !important;
        max-height:calc(100dvh - 74px) !important;
        overflow-y:auto !important;
        visibility:visible !important;
        opacity:1 !important;
        pointer-events:auto !important;
        overscroll-behavior:contain !important;
        -webkit-overflow-scrolling:touch !important;
    }

    /* Only the actual Menu button should receive taps in the fixed top strip. */
    body.portal-body[data-page="monthly-dtr"] .mobile-topbar{
        pointer-events:none !important;
    }

    body.portal-body[data-page="monthly-dtr"] .mobile-menu-btn{
        pointer-events:auto !important;
        touch-action:manipulation !important;
    }

    body.portal-body[data-page="monthly-dtr"] .student-bottom-nav{
        pointer-events:none !important;
    }

    body.portal-body[data-page="monthly-dtr"] .student-bottom-nav-item{
        pointer-events:auto !important;
        touch-action:manipulation !important;
    }

    body.portal-body[data-page="monthly-dtr"] #dtrPreviewModal:not(.show),
    body.portal-body[data-page="monthly-dtr"]:not(.live-notification-open) #liveNotificationDropdown{
        display:none !important;
        visibility:hidden !important;
        opacity:0 !important;
        pointer-events:none !important;
    }
}

/* =====================================================================
   PGMO DTR PHONE CARD REDESIGN 2026-07-20
   Full-day, centered mobile cards with readable date headings and cleaner
   action buttons. Desktop DTR table remains unchanged.
   ===================================================================== */
.dtr-mobile-date,
.dtr-mobile-weekday{
    display:none;
}

@media (max-width:900px){
    body.portal-body[data-page="monthly-dtr"] .portal-main{
        box-sizing:border-box !important;
        width:100% !important;
        max-width:540px !important;
        margin-left:auto !important;
        margin-right:auto !important;
        padding-left:14px !important;
        padding-right:14px !important;
    }

    body.portal-body[data-page="monthly-dtr"] .dtr-action-panel,
    body.portal-body[data-page="monthly-dtr"] .dtr-template-card,
    body.portal-body[data-page="monthly-dtr"] .upload-list-card{
        box-sizing:border-box !important;
        width:100% !important;
        max-width:500px !important;
        margin-left:auto !important;
        margin-right:auto !important;
    }

    body.portal-body[data-page="monthly-dtr"] .dtr-template-card{
        padding:14px !important;
        border-radius:20px !important;
        overflow:visible !important;
    }

    body.portal-body[data-page="monthly-dtr"] .dtr-template-card .card-title{
        margin-bottom:14px !important;
    }

    body.portal-body[data-page="monthly-dtr"] .dtr-template-card .card-title h3{
        font-size:18px !important;
    }

    body.portal-body[data-page="monthly-dtr"] .dtr-template-card .card-title p{
        margin-top:3px !important;
        font-size:12px !important;
        line-height:1.45 !important;
    }

    body.portal-body[data-page="monthly-dtr"] #monthlyDtrForm,
    body.portal-body[data-page="monthly-dtr"] .dtr-paper{
        box-sizing:border-box !important;
        width:100% !important;
        max-width:470px !important;
        margin-left:auto !important;
        margin-right:auto !important;
    }

    body.portal-body[data-page="monthly-dtr"] .dtr-paper{
        padding:14px 12px 18px !important;
        border:1px solid #dbe3ea !important;
        border-radius:18px !important;
        background:#f8fafc !important;
        box-shadow:none !important;
    }

    body.portal-body[data-page="monthly-dtr"] .dtr-paper-header{
        margin-bottom:14px !important;
    }

    body.portal-body[data-page="monthly-dtr"] .dtr-paper-header h2{
        font-size:19px !important;
        line-height:1.2 !important;
    }

    body.portal-body[data-page="monthly-dtr"] .dtr-name-line input{
        width:92% !important;
        font-size:14px !important;
    }

    body.portal-body[data-page="monthly-dtr"] .dtr-meta-grid{
        gap:12px !important;
        margin-bottom:16px !important;
    }

    body.portal-body[data-page="monthly-dtr"] .dtr-meta-grid label{
        display:block !important;
        padding:11px 12px !important;
        border:1px solid #dbe3ea !important;
        border-radius:12px !important;
        background:#ffffff !important;
        color:#334155 !important;
        font-size:12px !important;
    }

    body.portal-body[data-page="monthly-dtr"] .dtr-meta-grid input{
        min-height:38px !important;
        margin-top:4px !important;
        border:1px solid #cbd5e1 !important;
        border-radius:9px !important;
        padding:7px 9px !important;
        background:#fff !important;
        font-size:14px !important;
    }

    body.portal-body[data-page="monthly-dtr"] .dtr-table tbody{
        display:flex !important;
        flex-direction:column !important;
        align-items:center !important;
        width:100% !important;
        gap:14px !important;
    }

    body.portal-body[data-page="monthly-dtr"] .dtr-table tbody tr{
        box-sizing:border-box !important;
        display:grid !important;
        grid-template-columns:1fr !important;
        width:100% !important;
        max-width:430px !important;
        margin:0 auto !important;
        gap:0 !important;
        padding:0 14px 14px !important;
        overflow:hidden !important;
        border:1px solid #d5dde6 !important;
        border-radius:18px !important;
        background:#ffffff !important;
        box-shadow:0 7px 18px rgba(15,23,42,.07) !important;
    }

    body.portal-body[data-page="monthly-dtr"] .dtr-table tbody tr.inactive-day{
        display:none !important;
    }

    body.portal-body[data-page="monthly-dtr"] .dtr-table tbody td{
        box-sizing:border-box !important;
        display:flex !important;
        flex-direction:column !important;
        align-items:stretch !important;
        width:100% !important;
        min-width:0 !important;
        margin:0 !important;
        padding:11px 0 0 !important;
        border:0 !important;
        background:transparent !important;
        text-align:left !important;
    }

    body.portal-body[data-page="monthly-dtr"] .dtr-table tbody td::before{
        display:block !important;
        margin:0 0 7px !important;
        color:#475569 !important;
        font-size:11px !important;
        font-weight:900 !important;
        line-height:1.2 !important;
        letter-spacing:.025em !important;
        text-transform:none !important;
    }

    body.portal-body[data-page="monthly-dtr"] .dtr-table tbody td:nth-child(1){
        grid-column:auto !important;
        display:grid !important;
        grid-template-columns:minmax(0,1fr) auto !important;
        align-items:center !important;
        min-height:64px !important;
        margin:0 0 !important;
        padding:11px 14px !important;
        border-bottom:1px solid #dbe3ea !important;
        background:#f1f5f9 !important;
        color:#0f172a !important;
    }

    body.portal-body[data-page="monthly-dtr"] .dtr-table tbody td:nth-child(1)::before{
        content:none !important;
        display:none !important;
    }

    body.portal-body[data-page="monthly-dtr"] .dtr-desktop-day{
        display:none !important;
    }

    body.portal-body[data-page="monthly-dtr"] .dtr-mobile-date{
        display:block !important;
        min-width:0 !important;
        color:#0f172a !important;
        font-size:16px !important;
        font-weight:950 !important;
        line-height:1.15 !important;
        text-align:left !important;
    }

    body.portal-body[data-page="monthly-dtr"] .dtr-mobile-weekday{
        display:block !important;
        margin-top:3px !important;
        color:#64748b !important;
        font-size:11px !important;
        font-weight:800 !important;
        line-height:1.2 !important;
        text-align:left !important;
    }

    body.portal-body[data-page="monthly-dtr"] .dtr-row-lock-badge{
        align-self:center !important;
        margin:0 !important;
        padding:5px 8px !important;
        border-radius:999px !important;
        background:#dcfce7 !important;
        font-size:9px !important;
        white-space:nowrap !important;
    }

    body.portal-body[data-page="monthly-dtr"] .dtr-row-rejected .dtr-row-lock-badge{
        background:#ffedd5 !important;
    }

    body.portal-body[data-page="monthly-dtr"] .dtr-table tbody td:nth-child(2)::before{content:"A.M. · Arrival" !important;}
    body.portal-body[data-page="monthly-dtr"] .dtr-table tbody td:nth-child(3)::before{content:"A.M. · Departure" !important;}
    body.portal-body[data-page="monthly-dtr"] .dtr-table tbody td:nth-child(4)::before{content:"P.M. · Arrival" !important;}
    body.portal-body[data-page="monthly-dtr"] .dtr-table tbody td:nth-child(5)::before{content:"P.M. · Departure" !important;}
    body.portal-body[data-page="monthly-dtr"] .dtr-table tbody td:nth-child(6)::before{content:"Undertime · Hours" !important;}
    body.portal-body[data-page="monthly-dtr"] .dtr-table tbody td:nth-child(7)::before{content:"Undertime · Minutes" !important;}

    body.portal-body[data-page="monthly-dtr"] .dtr-table tbody td:nth-child(4),
    body.portal-body[data-page="monthly-dtr"] .dtr-table tbody td:nth-child(6){
        margin-top:12px !important;
        padding-top:14px !important;
        border-top:1px dashed #cbd5e1 !important;
    }

    body.portal-body[data-page="monthly-dtr"] .dtr-time-input,
    body.portal-body[data-page="monthly-dtr"] .dtr-under-input,
    body.portal-body[data-page="monthly-dtr"] .dtr-weekend-saved-time{
        box-sizing:border-box !important;
        display:flex !important;
        width:100% !important;
        min-width:0 !important;
        min-height:48px !important;
        height:48px !important;
        padding:10px 12px !important;
        border:1px solid #cbd5e1 !important;
        border-radius:12px !important;
        background:#fff !important;
        color:#0f172a !important;
        font-size:17px !important;
        font-weight:800 !important;
        line-height:1 !important;
        text-align:center !important;
    }

    body.portal-body[data-page="monthly-dtr"] .dtr-time-input:focus,
    body.portal-body[data-page="monthly-dtr"] .dtr-under-input:focus{
        border-color:#15803d !important;
        outline:3px solid rgba(21,128,61,.16) !important;
        outline-offset:0 !important;
        background:#fff !important;
    }

    body.portal-body[data-page="monthly-dtr"] input.dtr-saved-input,
    body.portal-body[data-page="monthly-dtr"] .dtr-weekend-saved-time{
        border-color:#86efac !important;
        background:#dcfce7 !important;
        color:#14532d !important;
        -webkit-text-fill-color:#14532d !important;
    }

    body.portal-body[data-page="monthly-dtr"] .dtr-weekend-hidden-cell{
        display:none !important;
    }

    body.portal-body[data-page="monthly-dtr"] .dtr-table tfoot{
        width:100% !important;
        max-width:430px !important;
        margin-left:auto !important;
        margin-right:auto !important;
    }

    body.portal-body[data-page="monthly-dtr"] .dtr-table tfoot tr{
        grid-template-columns:minmax(0,1fr) auto !important;
        gap:10px !important;
        padding:14px !important;
        border-radius:14px !important;
    }

    /* Clear and Print stay side-by-side. Submit receives a full-width primary
       row so all three controls remain large and readable on small phones. */
    body.portal-body[data-page="monthly-dtr"] .dtr-action-panel{
        padding:12px !important;
        border-radius:18px !important;
        background:#ffffff !important;
    }

    body.portal-body[data-page="monthly-dtr"] .dtr-action-buttons{
        display:grid !important;
        grid-template-columns:repeat(2, minmax(0,1fr)) !important;
        gap:9px !important;
        width:100% !important;
    }

    body.portal-body[data-page="monthly-dtr"] .dtr-action-buttons button{
        min-height:48px !important;
        padding:9px 8px !important;
        border-radius:12px !important;
        font-size:12px !important;
        font-weight:900 !important;
        line-height:1.2 !important;
        white-space:normal !important;
    }

    body.portal-body[data-page="monthly-dtr"] #submitDtrTopButton{
        grid-column:1 / -1 !important;
        grid-row:1 !important;
        order:-1 !important;
        min-height:52px !important;
        font-size:13px !important;
    }

    body.portal-body[data-page="monthly-dtr"] #clearDtrButton{
        grid-column:1 !important;
        grid-row:2 !important;
    }

    body.portal-body[data-page="monthly-dtr"] #downloadJointDtrPdfButton{
        grid-column:2 !important;
        grid-row:2 !important;
    }

    body.portal-body[data-page="monthly-dtr"] #dtrNotes{
        min-height:110px !important;
        border-radius:13px !important;
        font-size:16px !important;
    }
}

@media (max-width:380px){
    body.portal-body[data-page="monthly-dtr"] .portal-main{
        padding-left:9px !important;
        padding-right:9px !important;
    }

    body.portal-body[data-page="monthly-dtr"] .dtr-template-card{
        padding:10px !important;
    }

    body.portal-body[data-page="monthly-dtr"] .dtr-paper{
        padding-left:9px !important;
        padding-right:9px !important;
    }

    body.portal-body[data-page="monthly-dtr"] .dtr-table tbody tr{
        padding-left:11px !important;
        padding-right:11px !important;
    }

    body.portal-body[data-page="monthly-dtr"] .dtr-table tbody td:nth-child(1){
        margin-left:-11px !important;
        margin-right:-11px !important;
        padding-left:11px !important;
        padding-right:11px !important;
    }
}

/* DTR PHONE CARD CENTERING CORRECTION 2026-07-20
   Cancels the legacy 720px mobile table minimum used by the old horizontal
   table layout. The new phone cards must use the actual phone width. */
@media (max-width:900px){
    body.portal-body[data-page="monthly-dtr"] .dtr-table-wrap,
    body.portal-body[data-page="monthly-dtr"] .dtr-table,
    body.portal-body[data-page="monthly-dtr"] .dtr-table tbody,
    body.portal-body[data-page="monthly-dtr"] .dtr-table tfoot{
        box-sizing:border-box !important;
        width:100% !important;
        min-width:0 !important;
        max-width:100% !important;
        margin-left:auto !important;
        margin-right:auto !important;
    }

    body.portal-body[data-page="monthly-dtr"] .dtr-table{
        table-layout:auto !important;
    }

    body.portal-body[data-page="monthly-dtr"] .dtr-table tbody tr{
        width:100% !important;
        max-width:430px !important;
        margin-left:auto !important;
        margin-right:auto !important;
    }
}

/* DTR PHONE CARD CELL HEIGHT FIX 2026-07-20
   The original printable table forced every cell to 30px tall. Mobile cards
   need natural-height cells so the full A.M., P.M., and undertime sections
   stack without overlapping. */
@media (max-width:900px){
    body.portal-body[data-page="monthly-dtr"] .dtr-table tbody td{
        height:auto !important;
        min-height:0 !important;
        max-height:none !important;
    }

    body.portal-body[data-page="monthly-dtr"] .dtr-table tbody td:nth-child(1){
        min-height:66px !important;
    }

    body.portal-body[data-page="monthly-dtr"] .dtr-mobile-date{
        grid-column:1 !important;
        grid-row:1 !important;
    }

    body.portal-body[data-page="monthly-dtr"] .dtr-mobile-weekday{
        grid-column:2 !important;
        grid-row:1 !important;
        align-self:center !important;
        justify-self:end !important;
        margin-top:0 !important;
        text-align:right !important;
    }

    body.portal-body[data-page="monthly-dtr"] .dtr-row-lock-badge{
        grid-column:2 !important;
        grid-row:2 !important;
        justify-self:end !important;
        margin-top:5px !important;
    }
}

/* =====================================================================
   PGMO DTR MOBILE DESKTOP-PREVIEW MODE 2026-07-20
   The phone preview uses the exact same table/card layout as desktop.
   The modal body is a two-axis touch scroller so the full desktop preview
   remains usable without replacing it with a separate mobile card design.
   ===================================================================== */
.dtr-preview-mobile-list{
    display:none !important;
}

@media (max-width:700px){
    html.dtr-preview-open{
        width:100% !important;
        height:100% !important;
        overflow:hidden !important;
        touch-action:auto !important;
        overscroll-behavior:none !important;
    }

    body.portal-body[data-page="monthly-dtr"].dtr-preview-open{
        width:100% !important;
        height:100% !important;
        overflow:hidden !important;
        overscroll-behavior:none !important;
        touch-action:auto !important;
    }

    body.portal-body[data-page="monthly-dtr"] .dtr-preview-modal,
    body.portal-body[data-page="monthly-dtr"] .dtr-preview-modal.show{
        position:fixed !important;
        inset:0 !important;
        z-index:2147483647 !important;
        box-sizing:border-box !important;
        width:100% !important;
        height:100vh !important;
        height:100dvh !important;
        padding:0 !important;
        overflow:hidden !important;
        background:rgba(2,6,23,.76) !important;
    }


    /* Keep portal navigation from sitting above the full-screen preview. */
    body.portal-body[data-page="monthly-dtr"].dtr-preview-open .mobile-topbar,
    body.portal-body[data-page="monthly-dtr"].dtr-preview-open .portal-sidebar,
    body.portal-body[data-page="monthly-dtr"].dtr-preview-open .student-bottom-nav,
    body.portal-body[data-page="monthly-dtr"].dtr-preview-open #liveNotificationDropdown{
        opacity:0 !important;
        visibility:hidden !important;
        pointer-events:none !important;
    }

    body.portal-body[data-page="monthly-dtr"] .dtr-preview-modal.show{
        display:flex !important;
        align-items:stretch !important;
        justify-content:stretch !important;
        visibility:visible !important;
        opacity:1 !important;
        pointer-events:auto !important;
        touch-action:auto !important;
    }

    body.portal-body[data-page="monthly-dtr"] .dtr-preview-dialog{
        position:relative !important;
        display:flex !important;
        flex-direction:column !important;
        width:100% !important;
        min-width:0 !important;
        max-width:none !important;
        height:100vh !important;
        height:100dvh !important;
        min-height:0 !important;
        max-height:100vh !important;
        max-height:100dvh !important;
        margin:0 !important;
        border-radius:0 !important;
        overflow:hidden !important;
        box-shadow:none !important;
        animation:none !important;
    }

    body.portal-body[data-page="monthly-dtr"] .dtr-preview-header{
        position:relative !important;
        z-index:3 !important;
        flex:0 0 auto !important;
        align-items:center !important;
        gap:12px !important;
        min-height:68px !important;
        padding:13px 14px !important;
        border-bottom:1px solid rgba(255,255,255,.12) !important;
        background:linear-gradient(135deg,#111827,#374151) !important;
    }

    body.portal-body[data-page="monthly-dtr"] .dtr-preview-header > div{
        min-width:0 !important;
    }

    body.portal-body[data-page="monthly-dtr"] .dtr-preview-header h3{
        margin:0 !important;
        font-size:18px !important;
        line-height:1.2 !important;
    }

    body.portal-body[data-page="monthly-dtr"] .dtr-preview-header p{
        margin:3px 0 0 !important;
        font-size:11px !important;
        line-height:1.35 !important;
        white-space:normal !important;
    }

    body.portal-body[data-page="monthly-dtr"] .dtr-preview-close{
        flex:0 0 44px !important;
        width:44px !important;
        height:44px !important;
        min-width:44px !important;
        min-height:44px !important;
        touch-action:manipulation !important;
    }

    body.portal-body[data-page="monthly-dtr"] .dtr-preview-body{
        position:relative !important;
        z-index:1 !important;
        flex:1 1 0 !important;
        box-sizing:border-box !important;
        width:100% !important;
        min-width:0 !important;
        min-height:0 !important;
        height:auto !important;
        max-height:none !important;
        padding:14px !important;
        overflow-x:auto !important;
        overflow-y:auto !important;
        background:#f8fafc !important;
        -webkit-overflow-scrolling:touch !important;
        overscroll-behavior:contain !important;
        touch-action:pan-x pan-y pinch-zoom !important;
        scrollbar-gutter:stable both-edges !important;
    }

    body.portal-body[data-page="monthly-dtr"] .dtr-preview-student{
        box-sizing:border-box !important;
        display:flex !important;
        flex-direction:row !important;
        align-items:center !important;
        justify-content:space-between !important;
        gap:12px !important;
        width:100% !important;
        min-width:0 !important;
        margin:0 0 14px !important;
        padding:12px 14px !important;
        border-radius:14px !important;
    }

    body.portal-body[data-page="monthly-dtr"] .dtr-preview-student strong,
    body.portal-body[data-page="monthly-dtr"] .dtr-preview-student span{
        min-width:0 !important;
        overflow-wrap:anywhere !important;
    }

    body.portal-body[data-page="monthly-dtr"] .dtr-month-selector-card{
        box-sizing:border-box !important;
        width:100% !important;
        min-width:0 !important;
        margin-bottom:14px !important;
        padding:14px !important;
        border-radius:16px !important;
    }

    body.portal-body[data-page="monthly-dtr"] .dtr-month-selector-head{
        flex-direction:column !important;
        align-items:stretch !important;
        gap:10px !important;
    }

    body.portal-body[data-page="monthly-dtr"] .dtr-month-select-all{
        box-sizing:border-box !important;
        width:100% !important;
        min-height:44px !important;
        justify-content:center !important;
        touch-action:manipulation !important;
    }

    body.portal-body[data-page="monthly-dtr"] .dtr-month-checkbox-grid{
        grid-template-columns:1fr !important;
    }

    body.portal-body[data-page="monthly-dtr"] .dtr-month-checkbox{
        min-height:48px !important;
        touch-action:manipulation !important;
    }

    /* The actual preview below intentionally keeps desktop dimensions. */
    body.portal-body[data-page="monthly-dtr"] .dtr-selected-months-preview{
        display:grid !important;
        gap:18px !important;
        width:max-content !important;
        min-width:760px !important;
        max-width:none !important;
        touch-action:pan-x pan-y pinch-zoom !important;
    }

    body.portal-body[data-page="monthly-dtr"] .dtr-preview-print-page{
        box-sizing:border-box !important;
        width:max-content !important;
        min-width:760px !important;
        max-width:none !important;
        padding:14px !important;
        border-radius:18px !important;
        touch-action:pan-x pan-y pinch-zoom !important;
    }

    body.portal-body[data-page="monthly-dtr"] .dtr-preview-grid.one-month{
        display:grid !important;
        grid-template-columns:760px !important;
        width:760px !important;
        min-width:760px !important;
        max-width:none !important;
        justify-content:center !important;
    }

    body.portal-body[data-page="monthly-dtr"] .dtr-preview-grid.two-months{
        display:grid !important;
        grid-template-columns:repeat(2, 540px) !important;
        width:1098px !important;
        min-width:1098px !important;
        max-width:none !important;
        gap:18px !important;
    }

    body.portal-body[data-page="monthly-dtr"] .dtr-preview-panel{
        box-sizing:border-box !important;
        width:100% !important;
        min-width:0 !important;
        border-radius:18px !important;
        overflow:hidden !important;
        touch-action:pan-x pan-y pinch-zoom !important;
    }

    body.portal-body[data-page="monthly-dtr"] .dtr-preview-panel-head{
        display:flex !important;
        flex-direction:row !important;
        align-items:center !important;
        justify-content:space-between !important;
        gap:12px !important;
        padding:14px 16px !important;
    }

    body.portal-body[data-page="monthly-dtr"] .dtr-preview-table-wrap{
        display:block !important;
        max-height:none !important;
        overflow:visible !important;
        touch-action:pan-x pan-y pinch-zoom !important;
    }

    body.portal-body[data-page="monthly-dtr"] .dtr-preview-table{
        display:table !important;
        width:100% !important;
        min-width:0 !important;
        table-layout:auto !important;
        border-collapse:collapse !important;
        font-size:12px !important;
    }

    body.portal-body[data-page="monthly-dtr"] .dtr-preview-table thead{
        display:table-header-group !important;
    }

    body.portal-body[data-page="monthly-dtr"] .dtr-preview-table tbody{
        display:table-row-group !important;
    }

    body.portal-body[data-page="monthly-dtr"] .dtr-preview-table tr{
        display:table-row !important;
    }

    body.portal-body[data-page="monthly-dtr"] .dtr-preview-table th,
    body.portal-body[data-page="monthly-dtr"] .dtr-preview-table td{
        display:table-cell !important;
        padding:5px 6px !important;
        border:1px solid #1f2937 !important;
        text-align:center !important;
        white-space:nowrap !important;
    }

    body.portal-body[data-page="monthly-dtr"] .dtr-preview-footer{
        position:relative !important;
        z-index:3 !important;
        flex:0 0 auto !important;
        display:flex !important;
        flex-direction:row !important;
        align-items:center !important;
        justify-content:flex-end !important;
        gap:9px !important;
        width:100% !important;
        padding:10px 12px calc(10px + env(safe-area-inset-bottom)) !important;
        border-top:1px solid #dbe8df !important;
        background:#ffffff !important;
        box-shadow:0 -8px 22px rgba(15,23,42,.08) !important;
    }

    body.portal-body[data-page="monthly-dtr"] .dtr-preview-footer button{
        box-sizing:border-box !important;
        width:auto !important;
        min-width:0 !important;
        min-height:46px !important;
        margin:0 !important;
        padding:10px 13px !important;
        border-radius:11px !important;
        font-size:12px !important;
        line-height:1.15 !important;
        font-weight:900 !important;
        touch-action:manipulation !important;
    }

    body.portal-body[data-page="monthly-dtr"] #downloadDtrFromPreviewButton{
        flex:1 1 auto !important;
        max-width:220px !important;
    }

    body.portal-body[data-page="monthly-dtr"] .dtr-preview-footer [data-close-dtr-preview]{
        flex:0 0 auto !important;
    }
}

@media (max-width:370px){
    body.portal-body[data-page="monthly-dtr"] .dtr-preview-footer button{
        padding-left:10px !important;
        padding-right:10px !important;
        font-size:11px !important;
    }
}



/* =====================================================================
   PGMO DTR MOBILE DAY-CARD SUBMIT + FULL-BLEED HEADER 2026-07-24
   Keeps database schemas and SQL untouched. Each editable phone day card can
   submit only its own new hours, and the gray date header now reaches both
   card edges instead of inheriting the row's horizontal content padding.
   ===================================================================== */
.dtr-card-submit-cell{
    display:none;
}

@media (max-width:900px){
    body.portal-body[data-page="monthly-dtr"] .dtr-table tbody td.day-cell{
        box-sizing:border-box !important;
        width:calc(100% + 28px) !important;
        max-width:none !important;
        margin-left:-14px !important;
        margin-right:-14px !important;
        border-radius:17px 17px 0 0 !important;
    }

    body.portal-body[data-page="monthly-dtr"] .dtr-table tbody tr.dtr-current-entry{
        border-color:#86b99a !important;
        box-shadow:0 0 0 3px rgba(22,101,52,.10), 0 9px 22px rgba(15,23,42,.10) !important;
    }

    body.portal-body[data-page="monthly-dtr"] .dtr-card-submit-cell{
        box-sizing:border-box !important;
        display:none !important;
        flex-direction:column !important;
        width:100% !important;
        min-width:0 !important;
        height:auto !important;
        margin:14px 0 0 !important;
        padding:14px 0 0 !important;
        border:0 !important;
        border-top:1px solid #dbe3ea !important;
        background:transparent !important;
    }

    body.portal-body[data-page="monthly-dtr"] .dtr-card-submit-cell::before{
        content:none !important;
        display:none !important;
    }


    body.portal-body[data-page="monthly-dtr"] .dtr-card-submit-cell.dtr-card-submit-visible{
        display:flex !important;
    }

    body.portal-body[data-page="monthly-dtr"] .dtr-card-submit-button{
        display:inline-flex !important;
        align-items:center !important;
        justify-content:center !important;
        gap:8px !important;
        width:100% !important;
        min-height:50px !important;
        margin:0 !important;
        padding:11px 14px !important;
        border-radius:12px !important;
        font-size:13px !important;
        font-weight:900 !important;
        line-height:1.2 !important;
        touch-action:manipulation !important;
    }

    body.portal-body[data-page="monthly-dtr"] .dtr-card-submit-button:disabled{
        border-color:#cbd5e1 !important;
        background:#e2e8f0 !important;
        color:#64748b !important;
        opacity:1 !important;
        cursor:not-allowed !important;
        box-shadow:none !important;
    }

    body.portal-body[data-page="monthly-dtr"] .dtr-row-submitted .dtr-card-submit-cell,
    body.portal-body[data-page="monthly-dtr"] .inactive-day .dtr-card-submit-cell{
        display:none !important;
    }
}

@media (max-width:380px){
    body.portal-body[data-page="monthly-dtr"] .dtr-table tbody td.day-cell{
        width:calc(100% + 22px) !important;
        margin-left:-11px !important;
        margin-right:-11px !important;
    }
}
