
*{box-sizing:border-box;}
body{
    margin:0;
    font-family:Arial, sans-serif;
    background:#0b1a2f;
}
.auth-page{
    min-height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;
    padding:20px;
}
.auth-card{
    width:100%;
    max-width:360px;
    background:#142a4d;
    padding:22px;
    border-radius:12px;
    color:#fff;
    box-shadow:0 10px 25px rgba(0,0,0,0.25);
}
.auth-card h3{
    margin:0 0 14px;
    text-align:center;
    font-size:28px;
}
.form-group{
    margin-bottom:10px;
}
input,select,textarea{
    width:100%;
    padding:11px 12px;
    border:1px solid #b9c7d8;
    border-radius:7px;
    font-size:14px;
    background:#ffffff;
    color:#10253f;
    appearance:none;
    -webkit-appearance:none;
    outline:none;
    box-shadow:inset 0 0 0 1px rgba(255,255,255,0.2);
}
input::placeholder, textarea::placeholder{
    color:#66788f;
    opacity:1;
}
input:focus, select:focus, textarea:focus{
    border-color:#1e90ff;
    box-shadow:0 0 0 3px rgba(30,144,255,0.15);
    background:#ffffff;
}
button{
    width:100%;
    padding:11px 12px;
    background:#1e90ff;
    border:none;
    color:#fff;
    border-radius:7px;
    cursor:pointer;
    font-size:15px;
}
button:hover{
    background:#187bdd;
}
.message{
    margin-bottom:12px;
    padding:10px 12px;
    border-radius:7px;
    font-size:13px;
}
.error{
    background:#4a1f28;
    color:#ffd3da;
}
.success{
    background:#183c29;
    color:#c9ffe0;
}
.app{
    display:flex;
    min-height:100vh;
}
.sidebar{
    width:220px;
    background:#142a4d;
    color:#fff;
    padding:18px 14px;
}
.sidebar h3{
    margin:0 0 18px;
    font-size:20px;
}
.sidebar a{
    display:block;
    color:#fff;
    text-decoration:none;
    padding:10px 12px;
    border-radius:8px;
    margin-bottom:6px;
}
.sidebar a:hover{
    background:#1c3d6d;
}
.main{
    flex:1;
    background:#eef3f9;
    padding:22px;
}
.top-card{
    background:#fff;
    padding:12px 14px;
    border-radius:10px;
    max-width:390px;
    box-shadow:0 6px 20px rgba(0,0,0,0.06);
    margin-bottom:18px;
}
.top-card h2{
    margin:0 0 4px;
    font-size:18px;
    color:#10253f;
}
.top-card p{
    margin:0;
    font-size:12px;
    color:#52657d;
}
.card{
    background:#fff;
    padding:18px;
    border-radius:12px;
    box-shadow:0 6px 20px rgba(0,0,0,0.06);
}
.card h3{
    margin:0 0 14px;
    color:#10253f;
}
.inline-form{
    display:grid;
    grid-template-columns:repeat(2, minmax(0,1fr));
    gap:12px;
}
.inline-form .full{
    grid-column:1 / -1;
}
.table-wrap{
    overflow:auto;
}
table{
    width:100%;
    border-collapse:collapse;
    background:#fff;
}
th,td{
    padding:10px 12px;
    border-bottom:1px solid #dfe6ef;
    text-align:left;
    font-size:14px;
}
th{
    background:#163763;
    color:#fff;
}
.search-bar{
    display:flex;
    gap:10px;
    margin-bottom:14px;
}
.search-bar input{
    flex:1;
}
.small-btn{
    width:auto;
    padding:10px 16px;
}
.badge{
    display:inline-block;
    padding:4px 8px;
    border-radius:999px;
    font-size:12px;
    font-weight:bold;
}
.badge.active{background:#d7f7e4;color:#126937;}
.badge.inactive{background:#ffe0e0;color:#9b2020;}
.badge.available{background:#dceeff;color:#0e4f91;}
.badge.unavailable{background:#fff1d8;color:#8a5a00;}
@media(max-width:900px){
    .app{flex-direction:column;}
    .sidebar{width:100%;}
    .inline-form{grid-template-columns:1fr;}
}


.page-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
    margin-bottom:14px;
    flex-wrap:wrap;
}
.page-header h3{
    margin:0;
}
.table-actions{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
}
.btn-link{
    display:inline-block;
    padding:8px 12px;
    border-radius:7px;
    text-decoration:none;
    font-size:13px;
    color:#fff;
    background:#1e90ff;
}
.btn-link:hover{
    background:#187bdd;
}
.btn-link.danger{
    background:#c0392b;
}
.btn-link.danger:hover{
    background:#a93226;
}
.btn-link.secondary{
    background:#5b6b7c;
}
.btn-link.secondary:hover{
    background:#4a5868;
}
.compact-card{
    max-width:820px;
}


label{
    display:block;
    margin-bottom:6px;
    color:#334b68;
    font-size:13px;
    font-weight:600;
}

.card input,
.card select,
.card textarea{
    min-height:44px;
}

.auth-card input,
.auth-card select{
    background:#ffffff;
    color:#10253f;
    border:1px solid #9fb2c8;
}

.auth-card input::placeholder{
    color:#66788f;
}

.search-bar input{
    background:#ffffff;
}

.card input[readonly]{
    background:#f4f7fb;
}

textarea{
    min-height:90px;
    resize:vertical;
}


.checkbox-list{
    display:grid;
    grid-template-columns:repeat(2, minmax(0,1fr));
    gap:10px;
}
.checkbox-item{
    display:flex;
    align-items:flex-start;
    gap:10px;
    padding:12px;
    border:1px solid #d7e1ec;
    border-radius:8px;
    background:#f9fbfd;
}
.checkbox-item input[type="checkbox"]{
    width:18px;
    height:18px;
    margin-top:2px;
    min-height:auto;
    box-shadow:none;
}
.checkbox-item strong{
    display:block;
    color:#10253f;
    margin-bottom:4px;
}
.muted{
    color:#6b7d91;
    font-size:13px;
}
.stats-grid{
    display:grid;
    grid-template-columns:repeat(3, minmax(0,1fr));
    gap:12px;
    margin-bottom:18px;
}
.stat-box{
    background:#fff;
    border-radius:10px;
    padding:16px;
    box-shadow:0 6px 20px rgba(0,0,0,0.06);
}
.stat-box h4{
    margin:0 0 6px;
    color:#52657d;
    font-size:13px;
    font-weight:600;
}
.stat-box p{
    margin:0;
    font-size:24px;
    font-weight:700;
    color:#10253f;
}
.notice{
    padding:12px 14px;
    border-radius:8px;
    background:#edf5ff;
    color:#184b88;
    border:1px solid #cfe1ff;
    margin-bottom:14px;
    font-size:13px;
}
@media(max-width:900px){
    .checkbox-list{grid-template-columns:1fr;}
    .stats-grid{grid-template-columns:1fr;}
}


.details-block{
    margin-top:18px;
    border:1px solid #d7e1ec;
    border-radius:10px;
    overflow:hidden;
}
.details-header{
    background:#163763;
    color:#fff;
    padding:12px 14px;
    font-weight:700;
}
.assignment-group{
    padding:14px;
    border-top:1px solid #e4ebf3;
    background:#fff;
}
.assignment-group h4{
    margin:0 0 10px;
    color:#10253f;
}
.mini-table{
    width:100%;
    border-collapse:collapse;
}
.mini-table th,.mini-table td{
    padding:9px 10px;
    border-bottom:1px solid #e4ebf3;
    text-align:left;
    font-size:13px;
}
.mini-table th{
    background:#f4f7fb;
    color:#334b68;
}

.header-action-row{
    display:flex;
    gap:8px;
    align-items:center;
    flex-wrap:wrap;
}
.header-mini-form{
    margin:0;
}
.save-btn,
.neutral-btn,
.action-btn,
.select-officer-btn,
.danger-btn{
    width:auto;
    min-width:0;
    padding:8px 12px;
    font-size:13px;
    line-height:1.2;
    border-radius:6px;
}
.save-btn{
    background:#17824f;
}
.save-btn:hover{
    background:#126b41;
}
.neutral-btn{
    background:#6b7c8f;
}
.neutral-btn:hover{
    background:#59697a;
}
.draft-notice{
    background:#fff7df;
    border-color:#f0d789;
    color:#7b5c0a;
}
.details-count{
    float:right;
    font-weight:600;
}
.officer-assignment-table .actions-col{
    width:220px;
}
.row-actions.compact-actions{
    display:flex;
    align-items:center;
    gap:8px;
    flex-wrap:wrap;
}
.inline-row-form{
    margin:0;
}
.replace-btn{
    background:#1e90ff;
}
.replace-btn:hover{
    background:#187bdd;
}
.danger-btn{
    background:#dc3545;
}
.danger-btn:hover{
    background:#bb2d3b;
}
.assignment-footer-row{
    margin-top:14px;
    display:flex;
    justify-content:flex-start;
}
.add-btn{
    background:#1e90ff;
}
.add-btn:hover{
    background:#187bdd;
}
.pending-pill{
    display:inline-block;
    margin-left:8px;
    padding:3px 8px;
    border-radius:999px;
    font-size:11px;
    font-weight:700;
    color:#7a5200;
    background:#fff2cc;
    vertical-align:middle;
}
.custom-modal{
    position:fixed;
    inset:0;
    background:rgba(9,18,31,0.55);
    display:none;
    align-items:center;
    justify-content:center;
    padding:20px;
    z-index:9999;
}
.custom-modal.show{
    display:flex;
}
.custom-modal-content{
    width:100%;
    max-width:820px;
    background:#fff;
    border-radius:12px;
    box-shadow:0 18px 50px rgba(0,0,0,0.24);
    overflow:hidden;
}
.custom-modal-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:14px 16px;
    background:#163763;
    color:#fff;
}
.custom-modal-header h4{
    margin:0;
    font-size:18px;
}
.modal-close{
    width:auto;
    min-width:0;
    padding:4px 10px;
    font-size:24px;
    line-height:1;
    background:transparent;
    color:#fff;
}
.modal-close:hover{
    background:rgba(255,255,255,0.12);
}
.custom-modal-body{
    padding:16px;
}
.modal-search{
    margin-bottom:14px;
}
.modal-table-wrap{
    max-height:420px;
    overflow:auto;
    border:1px solid #dfe6ef;
    border-radius:8px;
}
.modal-officer-table th{
    position:sticky;
    top:0;
    z-index:1;
}
@media(max-width:900px){
    .details-count{
        float:none;
        display:block;
        margin-top:6px;
    }
    .officer-assignment-table .actions-col{
        width:auto;
    }
}


.preview-toolbar-card{
    margin-bottom:18px;
}
.roster-preview-sheet{
    background:#fff;
    padding:28px 40px 44px;
    border-radius:12px;
    box-shadow:0 10px 28px rgba(0,0,0,0.08);
    color:#111827;
    max-width:1100px;
}
.preview-header-row{
    position:relative;
    min-height:88px;
    margin-bottom:14px;
}
.preview-logo-wrap{
    display:flex;
    justify-content:center;
    align-items:flex-start;
}
.preview-logo-box{
    width:78px;
    height:78px;
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    font-size:13px;
    color:#55657a;
    font-weight:700;
    padding:0;
    overflow:hidden;
    background:transparent;
}
.preview-logo-box img{
    width:100%;
    height:100%;
    object-fit:contain;
    display:block;
}
.preview-address-block{
    position:absolute;
    top:0;
    right:0;
    text-align:right;
    font-weight:700;
    line-height:1.35;
    font-size:13px;
    max-width:280px;
}
.preview-title-block{
    text-align:center;
    margin-bottom:28px;
}
.preview-title{
    font-size:18px;
    font-weight:700;
    text-transform:uppercase;
    text-decoration:underline;
    margin-bottom:10px;
}
.preview-meta{
    font-size:14px;
    margin-bottom:4px;
}
.preview-duty-block{
    margin-bottom:26px;
}
.preview-duty-heading-row{
    display:flex;
    align-items:baseline;
    gap:12px;
    margin-bottom:8px;
    flex-wrap:wrap;
}
.preview-duty-title{
    font-weight:700;
    font-size:16px;
    margin-bottom:0;
}
.preview-duty-location{
    font-size:11px;
    color:#4b5563;
    margin-bottom:0;
}
.preview-duty-table{
    width:100%;
    border-collapse:collapse;
}
.preview-duty-table td{
    border:none;
    padding:5px 4px;
    font-size:14px;
    vertical-align:top;
}
.preview-serial{
    width:42px;
    font-weight:700;
}
.preview-officer-cell{
    width:50%;
}
.preview-time-cell{
    width:26%;
    white-space:nowrap;
}
.preview-phone-cell{
    width:18%;
    white-space:nowrap;
    text-align:left;
}
.preview-signature-block{
    margin-top:56px;
    width:260px;
    margin-left:auto;
    text-align:left;
    line-height:1.8;
    font-size:14px;
}
.preview-empty-note{
    padding:12px 0;
    font-style:italic;
    color:#6b7280;
}
.preview-designer-credit{
    margin-top:20px;
    text-align:right;
    font-size:10px;
    font-style:italic;
    color:#4b5563;
}
@media print{
    body{background:#fff;}
    .sidebar,.preview-toolbar-card{display:none !important;}
    .app,.main{display:block;background:#fff;padding:0;margin:0;}
    .roster-preview-sheet{box-shadow:none;border-radius:0;max-width:none;padding:20px 22px 30px;}
    .preview-header-row{min-height:82px;margin-bottom:10px;}
    .preview-logo-box{width:72px;height:72px;}
    .preview-address-block{top:0;right:0;font-size:12.5px;line-height:1.28;}
}
@media(max-width:900px){
    .roster-preview-sheet{padding:22px;}
    .preview-header-row{min-height:auto;padding-top:0;}
    .preview-logo-wrap{justify-content:center;margin-bottom:10px;}
    .preview-address-block{position:static;text-align:center;max-width:none;margin-top:8px;}
}

.dashboard-main{
    padding:32px 30px;
}
.dashboard-welcome{
    max-width:560px;
    padding:16px 20px;
    border-radius:18px;
    margin-bottom:24px;
}
.dashboard-welcome h2{
    font-size:24px;
    margin-bottom:6px;
}
.dashboard-welcome p{
    font-size:14px;
}
.stats-grid{
    display:grid;
    grid-template-columns:repeat(4, minmax(0, 1fr));
    gap:18px;
    margin-bottom:22px;
}
.stat-card{
    background:#fff;
    border-radius:16px;
    padding:18px 18px 16px;
    box-shadow:0 8px 24px rgba(16,37,63,0.08);
    border:1px solid #e3ebf4;
}
.stat-label{
    display:block;
    color:#5d6f85;
    font-size:13px;
    margin-bottom:10px;
    font-weight:600;
}
.stat-value{
    color:#10253f;
    font-size:30px;
    font-weight:700;
    line-height:1;
}
.dashboard-grid{
    display:grid;
    grid-template-columns:1.6fr 1fr;
    gap:20px;
    align-items:start;
}
.recent-rosters-card,
.quick-actions-card{
    border-radius:18px;
    box-shadow:0 8px 24px rgba(16,37,63,0.08);
    border:1px solid #e3ebf4;
}
.section-head{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
    margin-bottom:16px;
    flex-wrap:wrap;
}
.section-head h3{
    margin:0;
}
.recent-roster-list{
    display:flex;
    flex-direction:column;
    gap:14px;
}
.recent-roster-item{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:16px;
    padding:14px 16px;
    border:1px solid #e3ebf4;
    border-radius:14px;
    background:#f8fbff;
}
.recent-roster-title{
    color:#10253f;
    font-size:16px;
    font-weight:700;
}
.quick-actions-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px;
}
.quick-action-btn{
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:52px;
    text-align:center;
    padding:12px 14px;
    border-radius:12px;
    text-decoration:none;
    background:#163763;
    color:#fff;
    font-weight:600;
}
.quick-action-btn:hover{
    background:#1d4a84;
}
.empty-state{
    padding:20px;
    border:1px dashed #cbd7e6;
    border-radius:14px;
    background:#f8fbff;
    color:#5d6f85;
}
@media(max-width:1100px){
    .stats-grid{
        grid-template-columns:repeat(2, minmax(0, 1fr));
    }
    .dashboard-grid{
        grid-template-columns:1fr;
    }
}
@media(max-width:700px){
    .dashboard-main{
        padding:18px;
    }
    .stats-grid,
    .quick-actions-grid{
        grid-template-columns:1fr;
    }
    .recent-roster-item{
        flex-direction:column;
        align-items:flex-start;
    }
}


.four-grid{grid-template-columns:repeat(4, minmax(0,1fr));}
.action-stat-box{display:flex;flex-direction:column;justify-content:space-between;gap:10px;}
.action-stat-box .btn-link{text-align:center;}
.manual-roster-card{margin-top:18px;}
.manual-duty-grid{display:grid;grid-template-columns:1fr;gap:16px;margin-top:18px;}
.manual-duty-meta{display:grid;grid-template-columns:repeat(2,minmax(0,220px));gap:12px;margin-bottom:14px;}
.manual-duty-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:14px;}
.manual-add-wrap{flex:1;min-width:260px;}
.manual-empty-state{padding:12px 14px;border:1px dashed #c7d5e6;border-radius:8px;background:#f8fbff;color:#61748a;font-size:13px;margin-top:12px;}
.hidden-empty-state{display:none;}
.manual-save-row{margin-top:18px;}
.manual-assignment-table thead th{background:#f4f7fb;color:#334b68;}
@media(max-width:900px){
    .four-grid{grid-template-columns:1fr;}
    .manual-duty-meta{grid-template-columns:1fr;}
}


.stats-grid.four-grid{
    display:grid;
    grid-template-columns:repeat(4, minmax(0, 1fr));
    gap:18px;
    margin-bottom:18px;
}
.stat-box{
    background:#fff;
    border-radius:16px;
    padding:22px 24px;
    box-shadow:0 6px 20px rgba(0,0,0,0.06);
}
.stat-box h4{
    margin:0 0 8px;
    color:#445f81;
    font-size:18px;
}
.stat-box p{
    margin:0;
    font-size:34px;
    font-weight:700;
    color:#0b2a56;
}
.action-stat-box .btn-link{margin-top:8px;}
.notice{
    background:#e7f0fb;
    color:#174b8a;
    border:1px solid #bfd6f5;
    border-radius:12px;
    padding:16px 20px;
    margin-bottom:18px;
    font-size:16px;
}
.checkbox-list{
    display:grid;
    grid-template-columns:repeat(2, minmax(0,1fr));
    gap:14px;
}
.checkbox-item{
    display:flex;
    gap:12px;
    align-items:flex-start;
    border:1px solid #d8e3f0;
    border-radius:12px;
    padding:14px;
    background:#fbfdff;
}
.checkbox-item input[type="checkbox"]{
    width:22px;
    height:22px;
    min-height:auto;
    margin-top:2px;
}
.muted{color:#62748a; font-size:13px;}
.details-block{
    margin-top:18px;
    border:1px solid #d8e3f0;
    border-radius:18px;
    overflow:hidden;
    background:#fff;
}
.details-header{
    background:#173d72;
    color:#fff;
    padding:18px 22px;
    font-size:18px;
    font-weight:700;
}
.details-count{float:right; font-weight:700;}
.assignment-group{padding:18px 22px;}
.mini-table td{font-size:18px; padding:18px 16px;}
.manual-top-form{margin-bottom:10px;}
.manual-build-block{overflow:visible;}
.manual-search-bar{position:relative; padding:18px 22px 0;}
.manual-search-results{
    position:absolute;
    left:22px; right:22px; top:calc(100% - 2px);
    background:#fff;
    border:1px solid #d8e3f0;
    border-radius:12px;
    box-shadow:0 10px 24px rgba(0,0,0,0.10);
    z-index:20;
    max-height:260px;
    overflow:auto;
}
.hidden-results{display:none;}
.search-result-item{
    display:block;
    width:100%;
    text-align:left;
    background:#fff;
    color:#10253f;
    border:none;
    border-bottom:1px solid #eef3f9;
    border-radius:0;
    padding:12px 14px;
}
.search-result-item:hover{background:#eef5ff; color:#10253f;}
.search-result-empty{padding:12px 14px; color:#66788f; font-size:14px;}
.manual-add-panel{padding:16px 22px 0;}
.manual-selected-officer{margin-bottom:10px; font-weight:600;}
.manual-time-compact-row{
    display:flex;
    gap:12px;
    align-items:end;
    flex-wrap:wrap;
}
.compact-time-input{
    width:150px;
    min-height:40px !important;
    padding:8px 10px;
}
.manual-add-btn-wrap{padding-bottom:1px;}
.manual-list-group{padding-top:14px;}
.manual-roster-list{display:flex; flex-direction:column; gap:0;}
.manual-empty-row{
    text-align:center;
    color:#6b7280;
    padding:18px 0;
    border-top:1px solid #dfe6ef;
}
.manual-officer-row{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
    padding:16px 0;
    border-top:1px solid #dfe6ef;
}
.manual-officer-grid{
    flex:1;
    display:grid;
    grid-template-columns:1.1fr 1fr 1.5fr 0.9fr 0.9fr;
    gap:12px;
    font-size:16px;
    color:#10253f;
}
.link-danger{
    background:none;
    color:#c0392b;
    border:none;
    padding:0;
    width:auto;
    font-size:14px;
    font-weight:700;
}
.link-danger:hover{background:none; color:#a93226;}
.manual-save-row{margin-top:20px;}
@media(max-width:1100px){
    .stats-grid.four-grid{grid-template-columns:repeat(2, minmax(0,1fr));}
    .manual-officer-grid{grid-template-columns:1fr 1fr;}
}
@media(max-width:700px){
    .stats-grid.four-grid,.checkbox-list{grid-template-columns:1fr;}
    .manual-officer-row{flex-direction:column; align-items:flex-start;}
    .manual-officer-grid{grid-template-columns:1fr; width:100%;}
    .compact-time-input{width:100%;}
    .manual-search-results{left:0; right:0;}
}


/* Manual roster clean redesign */
.clean-search-bar{padding:16px 18px 0;}
.manual-picker-row{display:grid;grid-template-columns:minmax(260px,2fr) minmax(220px,1.4fr) 120px 120px auto;gap:10px;align-items:end;}
.manual-picker-row label{display:block;margin-bottom:6px;font-size:12px;font-weight:700;color:#243b57;}
.manual-officer-select,.manual-officer-search{height:40px;}
.manual-officer-select.search-active{height:auto;min-height:40px;padding-top:8px;padding-bottom:8px;overflow-y:auto;}
.manual-officer-select.search-active option{padding:8px 10px;}

.compact-time-small{width:110px;min-width:110px;height:40px;padding:6px 8px;font-size:13px;}
.manual-add-btn-wrap .small-btn{height:40px;padding:0 14px;white-space:nowrap;}
.clean-officer-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid #e7edf5;}
.manual-officer-summary{display:flex;align-items:center;gap:10px;flex-wrap:wrap;color:#10253f;font-size:14px;}
.time-pill{display:inline-block;padding:4px 10px;border-radius:999px;background:#eef4fb;color:#21466f;font-weight:700;font-size:12px;}
.clean-officer-row .link-danger{margin-left:auto;}
.manual-list-group{padding-top:10px;}
.manual-roster-list{gap:0;}
.manual-empty-row{margin:2px 0 4px;}
@media(max-width:1100px){.manual-picker-row{grid-template-columns:1fr 1fr 120px 120px;}.manual-add-btn-wrap{grid-column:1 / -1;}}
@media(max-width:760px){.manual-picker-row{grid-template-columns:1fr;}.compact-time-small{width:100%;min-width:0;}.clean-officer-row{flex-direction:column;align-items:flex-start;}.clean-officer-row .link-danger{margin-left:0;}}


.manual-picker-row-modal{align-items:end;grid-template-columns:minmax(260px,1.6fr) auto auto auto}
.manual-selected-wrap{min-width:260px}
.manual-selected-display{min-height:42px;padding:10px 12px;border:1px solid #d6deea;border-radius:10px;background:#f7f9fc;font-size:14px;display:flex;align-items:center}
.modal-overlay{position:fixed;inset:0;background:rgba(15,23,42,.58);display:none;align-items:center;justify-content:center;padding:20px;z-index:9999}
.modal-card{width:min(900px,100%);max-height:90vh;overflow:hidden;background:#fff;border-radius:16px;box-shadow:0 18px 50px rgba(0,0,0,.22)}
.modal-head{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:1px solid #e5e7eb}
.modal-head h4{margin:0;color:#0f172a}
.modal-close-btn{border:none;background:transparent;font-size:28px;line-height:1;cursor:pointer;color:#475569}
.modal-body{padding:18px 20px 20px}
.modal-search-input{width:100%;padding:11px 12px;border:1px solid #cbd5e1;border-radius:10px;margin-bottom:14px}
.officer-picker-table-wrap{max-height:52vh;overflow:auto;border:1px solid #e2e8f0;border-radius:12px}
.officer-picker-table{width:100%;border-collapse:collapse}
.officer-picker-table th,.officer-picker-table td{padding:10px 12px;border-bottom:1px solid #e2e8f0;text-align:left;font-size:14px}
.officer-picker-table thead th{position:sticky;top:0;background:#f8fafc;z-index:1}
.modal-empty-state{display:none;margin-top:12px}
.manual-selected-trigger{
    width:100%;
    justify-content:flex-start;
    text-align:left;
    color:#22364f;
    cursor:pointer;
}
.manual-selected-trigger:hover{
    border-color:#8fb3da;
    background:#eef4fb;
}
.manual-selected-trigger:focus{
    outline:none;
    border-color:#1e90ff;
    box-shadow:0 0 0 3px rgba(30,144,255,0.15);
}


.admins-page-card{
    max-width:980px;
}
.custom-modal{
    position:fixed;
    inset:0;
    display:none;
    z-index:999;
}
.custom-modal.show{
    display:block;
}
.custom-modal-backdrop{
    position:absolute;
    inset:0;
    background:rgba(11,26,47,0.55);
}
.custom-modal-dialog{
    position:relative;
    z-index:2;
    width:100%;
    max-width:520px;
    margin:70px auto;
    background:#fff;
    border-radius:14px;
    box-shadow:0 18px 45px rgba(0,0,0,0.2);
    overflow:hidden;
}
.custom-modal-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:16px 18px;
    border-bottom:1px solid #dfe6ef;
}
.custom-modal-header h3{
    margin:0;
    color:#10253f;
}
.custom-modal-body{
    padding:18px;
}
.modal-close-btn{
    width:auto;
    min-width:42px;
    padding:8px 12px;
    font-size:22px;
    line-height:1;
    background:#eef3f9;
    color:#10253f;
}
.modal-close-btn:hover{
    background:#dde7f2;
}
@media(max-width:700px){
    .custom-modal-dialog{
        margin:20px 14px;
        width:auto;
    }
}


.profile-page-card{
    max-width:700px;
}
.profile-summary-box{
    background:#f4f8fc;
    border:1px solid #dfe6ef;
    border-radius:10px;
    padding:14px 16px;
    margin-bottom:16px;
    color:#10253f;
}
.profile-summary-box div{
    margin-bottom:8px;
}
.profile-summary-box div:last-child{
    margin-bottom:0;
}
.profile-password-form{
    max-width:460px;
}
.profile-password-form label{
    display:block;
    margin-bottom:6px;
    color:#10253f;
    font-size:14px;
    font-weight:bold;
}


.site-footer{
    background:#000;
    color:#f3f6fb;
    padding:24px 20px 14px;
    border-top:1px solid rgba(255,255,255,0.08);
}
.site-footer-inner{
    max-width:1200px;
    margin:0 auto;
    display:flex;
    justify-content:space-between;
    gap:24px;
    flex-wrap:wrap;
}
.footer-block h4{
    margin:0 0 10px;
    font-size:18px;
    color:#ffffff;
}
.footer-block p{
    margin:0 0 8px;
    color:#d8e1ec;
    font-size:14px;
}
.site-footer a{
    color:#ffffff;
    text-decoration:none;
}
.site-footer a:hover{
    color:#4da3ff;
}
.social-icons{
    display:flex;
    gap:12px;
    flex-wrap:wrap;
    margin-top:8px;
}
.social-icons a{
    width:42px;
    height:42px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    background:#111827;
    border:1px solid rgba(255,255,255,0.12);
    transition:all .2s ease;
}
.social-icons a:hover{
    transform:translateY(-2px);
    background:#1e90ff;
    color:#fff;
}
.social-icons svg{
    width:20px;
    height:20px;
    fill:currentColor;
}
.footer-bottom{
    max-width:1200px;
    margin:18px auto 0;
    padding-top:12px;
    border-top:1px solid rgba(255,255,255,0.08);
    text-align:center;
    color:#cdd7e4;
    font-size:13px;
}
@media(max-width:900px){
    .site-footer{
        padding:20px 16px 14px;
    }
    .footer-block h4{
        font-size:16px;
    }
}


body{
    background:#0b1a2f;
    color:#10253f;
}
.auth-page-clean{
    background:#0b1a2f;
}
.auth-shell{
    width:100%;
    max-width:460px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:18px;
}
.auth-branding{
    text-align:center;
}
.auth-logo{
    width:90px;
    height:90px;
    object-fit:cover;
    border-radius:50%;
    display:block;
    margin:0 auto 12px;
    box-shadow:0 10px 24px rgba(16,37,63,0.12);
    background:#fff;
    padding:4px;
}
.auth-system-name{
    font-size:24px;
    font-weight:700;
    color:#ffffff;
    line-height:1.25;
}
.auth-card-clean{
    width:100%;
    max-width:400px;
    background:#ffffff;
    color:#10253f;
    padding:28px 24px 24px;
    border-radius:18px;
    border:1px solid #e3ebf4;
    box-shadow:0 16px 40px rgba(16,37,63,0.10);
}
.auth-card-clean h3{
    margin:0 0 16px;
    text-align:center;
    font-size:24px;
    color:#10253f;
}
.auth-card-clean .form-group{
    margin-bottom:12px;
}
.auth-card-clean input,
.auth-card-clean select{
    min-height:46px;
    border:1px solid #cfd9e6;
    border-radius:10px;
    background:#fff;
    color:#10253f;
}
.auth-card-clean button{
    margin-top:6px;
    min-height:46px;
    border-radius:10px;
    font-weight:600;
}
.auth-simple-footer{
    font-size:12px;
    color:rgba(255,255,255,0.78);
    text-align:center;
}
.auth-card-clean .message.error{
    background:#fff1f2;
    color:#9f1239;
    border:1px solid #fecdd3;
}
@media(max-width:520px){
    .auth-page{
        padding:24px 16px;
    }
    .auth-logo{
        width:82px;
        height:82px;
    }
    .auth-system-name{
        font-size:22px;
    }
    .auth-card-clean{
        padding:24px 18px 20px;
    }
}


/* About section */
.about-section{
    width:100%;
    max-width:400px;
    text-align:center;
    margin-top:2px;
}
.about-preview{
    margin:0;
    color:#e5e7eb;
    font-size:14px;
}
.about-full{
    display:none;
    margin:8px 0 0;
    color:#cbd5e1;
    font-size:13px;
    line-height:1.6;
}
.read-more-btn{
    color:#38bdf8;
    cursor:pointer;
    margin-left:4px;
    font-weight:600;
}
.read-more-btn:hover{
    text-decoration:underline;
}
