/*
Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
Click nbfs://nbhost/SystemFileSystem/Templates/ClientSide/css.css to edit this template
*/
/*
    Created on : Mar 6, 2026, 8:05:25 AM
    Author     : dhane
*/

:root{
    --base:#E5EDFF;
    --ink:#0b1b3a;
    --muted:#42526b;
    --card:#ffffff;
    --radius:18px;
    --shadow:0 8px 22px rgba(11,27,58,.10);
    --line:rgba(11,27,58,.10);
    --pagew:1400px;
}

body{
    margin:0;
    background:linear-gradient(180deg, var(--base) 0%, #fff 40%);
    font-family: Arial, sans-serif;
    color:var(--ink);
}

.wrap{
    width:100%;
    max-width:var(--pagew);
    margin:0 auto;
    padding:18px 0 60px 0;
}

.pageHead{
    background:var(--card);
    border-radius:var(--radius);
    box-shadow:var(--shadow);
    border:1px solid var(--line);
    padding:18px 18px 14px 18px;
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:16px;
    width:100%;
    box-sizing:border-box;
}

.pageHead h1{
    margin:0;
    font-size:26px;
    letter-spacing:.2px;
}

.subhead{
    margin-top:6px;
    color:var(--muted);
    font-size:13px;
}

.actions{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    justify-content:flex-end;
    gap:10px;
}

.pill{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:10px 12px;
    border-radius:999px;
    background:var(--base);
    border:1px solid var(--line);
}

.btn{
    display:inline-block;
    padding:10px 14px;
    border-radius:999px;
    border:1px solid var(--line);
    background:#fff;
    color:var(--ink);
    text-decoration:none;
    font-size:13px;
    box-shadow:0 3px 10px rgba(0,0,0,.06);
}

.btn:hover{
    filter:brightness(.98);
}

.btn.primary{
    background:#2d6cdf;
    color:#fff;
    border-color:transparent;
}

select{
    border-radius:999px;
    border:1px solid var(--line);
    padding:8px 10px;
    background:#fff;
}

.card{
    margin-top:14px;
    background:var(--card);
    border-radius:var(--radius);
    box-shadow:var(--shadow);
    border:1px solid var(--line);
    padding:14px;
    width:100%;
    box-sizing:border-box;
    overflow:hidden;
}

/* Top scrollbar */
.table-scroll-top{
    width:100%;
    overflow-x:auto;
    overflow-y:hidden;
    height:16px;
    margin-bottom:8px;
}

.table-scroll-top > div{
    height:1px;
}

/* Bottom scrollbar (real scroll container for the table) */
.table-scroll{
    width:100%;
    overflow-x:auto;
    overflow-y:hidden;
}

/* DataTables polish */
table.dataTable{
    width:100% !important;
    border-radius:14px;
    overflow:hidden;
}

table.dataTable thead th{
    background:var(--base);
    border-bottom:1px solid var(--line) !important;
    color:var(--ink);
}

/* Force assign checkbox column to stay narrow */
th.assign-col,
td.assign-col {
    width: 50px !important;
    min-width: 50px !important;
    max-width: 50px !important;
    text-align: center;
    padding-left: 4px !important;
    padding-right: 4px !important;
}

/* First header row: dark blue with white text */
.adminTable thead tr:first-child th{
    background:#00133b !important;
    color:#ffffff !important;
    border-bottom:1px solid rgba(255,255,255,.14) !important;
}

.adminTable thead tr:first-child th:hover{
    background:#0b2a66 !important;
}

/* Sorting text */
.adminTable thead tr:first-child th.sorting,
.adminTable thead tr:first-child th.sorting_asc,
.adminTable thead tr:first-child th.sorting_desc{
    color:#ffffff !important;
}

/* Sorting icons */
.adminTable thead tr:first-child th.sorting:before,
.adminTable thead tr:first-child th.sorting:after,
.adminTable thead tr:first-child th.sorting_asc:before,
.adminTable thead tr:first-child th.sorting_asc:after,
.adminTable thead tr:first-child th.sorting_desc:before,
.adminTable thead tr:first-child th.sorting_desc:after{
    color:#ffffff !important;
    opacity:.70 !important;
}

.adminTable thead tr:first-child th.sorting_asc:before,
.adminTable thead tr:first-child th.sorting_desc:after{
    opacity:1 !important;
}
table.dataTable tbody tr:hover{
    background:rgba(229,237,255,.65) !important;
}
/* Shared admin table cell behavior */
.adminTable td{
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dataTables_wrapper .dataTables_filter input{
    border-radius:999px;
    border:1px solid var(--line);
    padding:8px 10px;
}

.dataTables_wrapper .dataTables_length select{
    border-radius:999px;
}

.dt-buttons .dt-button{
    border-radius:999px !important;
    border:1px solid var(--line) !important;
    background:#fff !important;
    box-shadow:0 3px 10px rgba(0,0,0,.06);
}

.dt-top{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:14px;
    padding:10px 12px;
    margin:10px 0 10px 0;
    background:var(--base);
    border-radius:999px;
    border:1px solid rgba(11,27,58,.12);
    font-size:13px;
    width:100%;
    box-sizing:border-box;
}

.dataTables_info{
    padding:0 !important;
    color:var(--ink);
    font-weight:600;
}

/* Docs table layout */
#docs{
    width:100% !important;
    table-layout:fixed;
}

#docs td{
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    max-width:1px;
}

/* Column widths */
#docs th.col-edit,
#docs td.col-edit{
    width:80px;
    text-align:center;
}

#docs th.col-id,
#docs td.col-id{
    width:90px;
}

#docs th.col-title,
#docs td.col-title{
    width:360px;
}

#docs th.col-author,
#docs td.col-author{
    width:210px;
}

#docs th.col-file,
#docs td.col-file{
    width:370px;
}

#docs th.col-category,
#docs td.col-category{
    width:170px;
}

#docs th.col-fy,
#docs td.col-fy{
    width:90px;
    text-align:center;
}

/* Filter row */
thead tr.filters th{
    background:#fff !important;
    border-bottom:1px solid rgba(11,27,58,.10) !important;
}

thead tr.filters input{
    width:100%;
    box-sizing:border-box;
    border-radius:999px;
    border:1px solid rgba(11,27,58,.18);
    padding:6px 10px;
}

/* ===============================
   Column toggle styling
   =============================== */

.toggleCard{
    margin-top:14px;
    background:var(--card);
    border-radius:var(--radius);
    box-shadow:var(--shadow);
    border:1px solid var(--line);
    padding:14px;
    box-sizing:border-box;
}

.toggleHead{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    flex-wrap:wrap;
    padding:10px 12px;
    background:var(--base);
    border:1px solid rgba(11,27,58,.12);
    border-radius:999px;
}

.toggleTitle{
    font-weight:700;
    letter-spacing:.2px;
}

.toggleAll{
    display:inline-flex;
    align-items:center;
    gap:10px;
    font-size:13px;
    color:var(--ink);
    user-select:none;
}

/* Grid of column checkboxes */
.toggleGrid{
    margin-top:12px;
    display:flex;
    flex-wrap:wrap;
    gap:10px 12px;
}

/* Each checkbox label looks like a pill */
.tchk{
    display:inline-flex;
    align-items:center;
    gap:10px;
    padding:8px 12px;
    border-radius:999px;
    background:#fff;
    border:1px solid rgba(11,27,58,.12);
    box-shadow:0 2px 8px rgba(0,0,0,.05);
    font-size:13px;
    color:var(--ink);
    user-select:none;
    cursor:pointer;
}

.tchk:hover{
    filter:brightness(.985);
}

.tchk input[type="checkbox"]{
    width:16px;
    height:16px;
    accent-color:#2d6cdf;
    cursor:pointer;
}

.tchk span{
    white-space:nowrap;
}

/* Logo and link stylie */
.adminTopWrap{
    width:100%;
    max-width:var(--pagew);
    margin:18px auto 0 auto;
}

.adminTopBar{
    display:flex;
    align-items:flex-end;
    gap:22px;
    background:var(--card);
    border:1px solid var(--line);
    border-radius:var(--radius);
    box-shadow:var(--shadow);
    padding:16px 18px;
    box-sizing:border-box;
}

.adminBrand{
    flex:0 0 auto;
}

.adminLogoLink{
    display:inline-block;
    line-height:0;
}

.adminLogo{
    display:block;
    width:125px;
    height:auto;
    border-radius:12px;
}

.adminNavArea{
    flex:1 1 auto;
    min-width:0;
    display:flex;
    flex-direction:column;
    justify-content:flex-end;
    gap:12px;
}

.adminSiteTitle{
    font-size:28px;
    font-weight:700;
    color:var(--ink);
    letter-spacing:.2px;
}

.adminNav{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:10px;
    font-size:18px;
    line-height:1.4;
}

.adminNav a{
    color:var(--ink);
    text-decoration:none;
    padding:8px 14px;
    border-radius:999px;
    background:var(--base);
    border:1px solid rgba(11,27,58,.10);
    transition:background .15s ease, color .15s ease, border-color .15s ease;
}

.adminNav a:hover{
    background:#d8e4ff;
}

.adminNav a.isCurrent{
    background:#00133b;
    color:#fff;
    border-color:#00133b;
}

.adminNav span{
    color:var(--muted);
    font-weight:600;
}

/* Narrow some of the smaller columns */
.col-term {
    width: 80px;
}

.col-origfy,
.col-curfy {
    width: 70px;
}

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

    .adminNav{
        font-size:16px;
    }
}