/* =========================================================================
   JT Guwahati Sellers Portal — module stylesheet (derived from Attendance_Ghy attendance.css; tokens unchanged)
   Theme matched to the J Thomas Online application hub (jthomas.online):
   Montserrat display / Questrial body / JetBrains Mono, navy + blue palette,
   white cards with 18px radius, soft ambient background, tea-leaf particles,
   fade-up and hover-lift motion. Bootstrap 4 / DataTables / Select2 / SweetAlert2
   are restyled here; page markup and behaviour are unchanged.
   ========================================================================= */

:root {
  --bg: #ffffff;
  --bg-soft: #f4f8fc;
  --border: #e2ebf4;
  --border-hi: rgba(33, 150, 243, .55);
  --text: #10263b;
  --text-dim: #4c6379;
  --text-faint: #7d92a6;
  --blue: #2196f3;
  --blue-deep: #1272c4;
  --navy: #093e6a;
  --navy-ink: #0d2c49;
  --sky: #e8f3fd;
  --live: #1b9e77;
  --amber: #b45f06;
  --red: #c62828;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 2px 10px rgba(9, 62, 106, .06);
  --shadow-md: 0 12px 34px rgba(9, 62, 106, .12);
  --font-display: 'Montserrat', system-ui, sans-serif;
  --font-body: 'Questrial', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', Consolas, monospace;
  --grad-brand: linear-gradient(135deg, var(--navy), var(--blue-deep));
  --grad-action: linear-gradient(135deg, var(--blue), var(--blue-deep));
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
::selection { background: rgba(33, 150, 243, .22); }
a { color: var(--blue-deep); }
a:hover { color: var(--navy); }
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6, .modal-title, .card-header, .navbar-brand, legend {
  font-family: var(--font-display);
  color: var(--navy-ink);
  letter-spacing: -.01em;
}
label { font-weight: 600; color: var(--text-dim); font-size: .9rem; }
.text-muted { color: var(--text-faint) !important; }
.text-primary { color: var(--blue-deep) !important; }
.text-success { color: var(--live) !important; }
.text-mono, .setting-key, .audit-json, code, pre { font-family: var(--font-mono); }
code { color: var(--blue-deep); background: var(--sky); border-radius: 6px; padding: .05em .4em; font-size: .85em; }

/* ---------- motion ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes drift { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(60px, 42px) scale(1.12); } }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .3, 1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- ambient background (hub) ---------- */
.ambient { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; background: var(--bg); }
.ambient::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(1100px 640px at 10% -10%, rgba(33, 150, 243, .10), transparent 60%),
    radial-gradient(900px 560px at 94% 2%, rgba(9, 62, 106, .07), transparent 55%),
    radial-gradient(1100px 700px at 50% 115%, rgba(33, 150, 243, .08), transparent 60%);
}
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; animation: drift 28s ease-in-out infinite alternate; }
.blob-1 { width: 540px; height: 540px; left: -160px; top: -140px; background: radial-gradient(circle, rgba(33, 150, 243, .18), transparent 70%); }
.blob-2 { width: 480px; height: 480px; right: -140px; top: 160px; background: radial-gradient(circle, rgba(9, 62, 106, .10), transparent 70%); animation-delay: -9s; }
#leaves { position: fixed; inset: 0; z-index: -1; pointer-events: none; }

/* ---------- navigation ---------- */
.sp-nav {
  position: sticky; top: 0; z-index: 1030;
  padding: .55rem 1.5rem;
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .35s, background .35s;
}
.sp-nav.scrolled { background: rgba(255, 255, 255, .92); box-shadow: var(--shadow-sm); }
.sp-nav .navbar-brand { display: flex; align-items: center; gap: 11px; padding: 0; margin-right: 1.5rem; font-weight: 700; font-size: 1.08rem; color: var(--navy); }
.sp-nav .navbar-brand:hover { color: var(--navy); }
.brand-mark {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none;
  background: var(--grad-brand);
  box-shadow: 0 6px 18px rgba(18, 114, 196, .35), inset 0 1px 0 rgba(255, 255, 255, .25);
  transition: transform .35s;
}
.sp-nav .navbar-brand:hover .brand-mark { transform: scale(1.06) rotate(-4deg); }
.brand-name em { font-style: normal; color: var(--blue); }
.sp-nav .navbar-nav .nav-link {
  font-family: var(--font-display); font-weight: 600; font-size: .86rem; color: var(--text-dim);
  padding: .45rem .8rem; border-radius: 999px; transition: color .25s, background .25s;
}
.sp-nav .navbar-nav .nav-link:hover, .sp-nav .navbar-nav .show > .nav-link { color: var(--navy); background: var(--bg-soft); }
.sp-nav .navbar-nav .nav-link.active { color: var(--blue-deep); background: var(--sky); }
.sp-nav .navbar-toggler { border-color: var(--border); }
.sp-nav .badge-pill { font-family: var(--font-mono); font-size: .62rem; vertical-align: 2px; }
.dropdown-menu { border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-md); padding: .4rem; margin-top: .5rem; }
.dropdown-item { border-radius: 9px; padding: .45rem .9rem; font-size: .92rem; color: var(--text); }
.dropdown-item:hover, .dropdown-item:focus { background: var(--bg-soft); color: var(--navy); }
.dropdown-item.active, .dropdown-item:active { background: var(--sky); color: var(--blue-deep); }
.dropdown-divider { border-color: var(--border); }
.navbar .dropdown-item { cursor: pointer; }

/* ---------- page title (hub eyebrow pill) ---------- */
.sp-title {
  display: flex; align-items: center; gap: 10px; width: fit-content; max-width: calc(100% - 3rem);
  margin: 1.1rem auto 0; padding: 7px 17px; border-radius: 999px;
  background: var(--sky); border: 1px solid rgba(33, 150, 243, .30);
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--blue-deep);
  animation: fadeUp .7s .05s backwards;
}
.sp-title .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 10px var(--blue); animation: pulse 2.4s infinite; flex: none; }
.sp-page { flex: 1; padding: 1.1rem 1.5rem 2.5rem; animation: fadeUp .55s .1s backwards; }

/* ---------- footer (hub) ---------- */
.sp-foot {
  background: var(--navy); color: #a9c6e0; font-size: .82rem;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 1.5rem;
}
.sp-foot a { color: #cfe2f3; text-decoration: none; }
.sp-foot a:hover { color: #fff; }

/* ---------- cards ---------- */
.card {
  position: relative; border-radius: var(--radius); border: 1px solid var(--border); background: #fff;
  box-shadow: var(--shadow-sm); margin-bottom: 1rem; overflow: hidden;
  transition: transform .35s cubic-bezier(.2, .7, .3, 1), border-color .35s, box-shadow .35s;
  animation: fadeUp .6s backwards;
}
.row > [class*="col"]:nth-child(2) .card { animation-delay: .05s; }
.row > [class*="col"]:nth-child(3) .card { animation-delay: .1s; }
.row > [class*="col"]:nth-child(4) .card { animation-delay: .15s; }
.row > [class*="col"]:nth-child(5) .card { animation-delay: .2s; }
.row > [class*="col"]:nth-child(6) .card { animation-delay: .25s; }
.row > [class*="col"]:nth-child(7) .card { animation-delay: .3s; }
.row > [class*="col"]:nth-child(n+8) .card { animation-delay: .35s; }
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: 0; transition: opacity .4s; pointer-events: none; z-index: 0;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(33, 150, 243, .09), transparent 65%);
}
.card:hover::before { opacity: 1; }
.card > * { position: relative; z-index: 1; }
.card-header {
  background: transparent; border-bottom: 1px solid var(--border); font-weight: 700; font-size: .98rem; color: var(--navy-ink);
  border-radius: var(--radius) var(--radius) 0 0 !important; padding: .8rem 1.1rem;
}
.card-header .btn { margin-top: -.25rem; margin-bottom: -.25rem; }
.card-footer { background: var(--bg-soft); border-top: 1px solid var(--border); }
a.text-decoration-none > .card, .stat-card { cursor: default; }
.stat-card:hover, a.text-decoration-none:hover > .card { transform: translateY(-4px); border-color: var(--border-hi); box-shadow: var(--shadow-md); }
.stat-card .stat-value { font-family: var(--font-display); font-size: 1.9rem; font-weight: 800; color: var(--navy-ink); line-height: 1.1; letter-spacing: -.02em; }
.stat-card .stat-label { font-family: var(--font-mono); color: var(--text-faint); text-transform: uppercase; font-size: .62rem; letter-spacing: .14em; margin-top: .25rem; }
.stat-card.stat-danger .stat-value { color: var(--red); }
.stat-card.stat-warning .stat-value { color: var(--amber); }
.stat-card.stat-success .stat-value { color: var(--live); }
.stat-card.stat-muted .stat-value { color: var(--text-faint); }
.stat-card .fa-2x { color: var(--blue) !important; opacity: .28 !important; transition: transform .35s, opacity .35s; }
.stat-card:hover .fa-2x { transform: scale(1.1) rotate(-6deg); opacity: .5 !important; }

/* ---------- buttons ---------- */
.btn { border-radius: var(--radius-sm); font-family: var(--font-display); font-weight: 600; letter-spacing: .01em; transition: transform .2s, box-shadow .25s, background .25s, color .25s, border-color .25s; }
.btn-sm, .btn-group-sm > .btn { border-radius: 10px; font-size: .8rem; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn-primary { background: var(--grad-action); border: 0; color: #fff; box-shadow: 0 6px 18px rgba(33, 150, 243, .30); }
.btn-primary:hover, .btn-primary:focus, .btn-primary:not(:disabled):not(.disabled):active { background: linear-gradient(135deg, #1e8ae0, var(--navy)); color: #fff; box-shadow: 0 10px 26px rgba(33, 150, 243, .42); }
.btn-primary:focus, .btn-primary.focus { box-shadow: 0 0 0 3px rgba(33, 150, 243, .25); }
.btn-outline-primary { color: var(--blue-deep); border-color: rgba(33, 150, 243, .45); background: rgba(255, 255, 255, .7); }
.btn-outline-primary:hover, .btn-outline-primary:not(:disabled):not(.disabled).active, .btn-outline-primary:not(:disabled):not(.disabled):active { background: var(--sky); color: var(--blue-deep); border-color: var(--border-hi); }
.btn-group > .btn-primary.btn, .btn-group .btn-primary { background: var(--grad-brand); box-shadow: none; }
.btn-success { background: linear-gradient(135deg, #22b283, #168a67); border: 0; box-shadow: 0 6px 16px rgba(27, 158, 119, .28); }
.btn-success:hover, .btn-success:focus { background: linear-gradient(135deg, #1b9e77, #11704f); box-shadow: 0 9px 22px rgba(27, 158, 119, .38); }
.btn-outline-success { color: #15805f; border-color: rgba(27, 158, 119, .45); }
.btn-outline-success:hover { background: rgba(27, 158, 119, .10); color: #11704f; border-color: rgba(27, 158, 119, .6); }
.btn-secondary { background: var(--text-dim); border: 0; }
.btn-outline-secondary { color: var(--text-dim); border-color: var(--border); background: rgba(255, 255, 255, .7); }
.btn-outline-secondary:hover { background: var(--bg-soft); color: var(--navy); border-color: #cfdceb; }
.btn-danger { background: linear-gradient(135deg, #e04a4a, #b3261e); border: 0; }
.btn-outline-danger { color: var(--red); border-color: rgba(198, 40, 40, .4); background: rgba(255, 255, 255, .7); }
.btn-outline-danger:hover { background: #fdecec; color: #8e1c1c; border-color: rgba(198, 40, 40, .6); }
.btn-link { color: var(--blue-deep); }
.btn-light, .btn-outline-light { border-color: var(--border); }

/* ---------- badges (hub pills) ---------- */
.badge { border-radius: 999px; font-weight: 600; letter-spacing: .02em; padding: .35em .7em; }
.badge-status { font-size: .74rem; padding: .35em .75em; }
.badge-primary { background: var(--sky); color: var(--blue-deep); border: 1px solid rgba(33, 150, 243, .30); }
.badge-success { background: rgba(27, 158, 119, .10); color: var(--live); border: 1px solid rgba(27, 158, 119, .35); }
.badge-warning { background: #fff4d6; color: #8a5a00; border: 1px solid rgba(255, 179, 0, .45); }
.badge-danger { background: #fdecec; color: #b3261e; border: 1px solid rgba(198, 40, 40, .35); }
.badge-info { background: var(--sky); color: #0b6e8a; border: 1px solid rgba(11, 110, 138, .3); }
.badge-secondary { background: var(--bg-soft); color: var(--text-dim); border: 1px solid var(--border); }
.badge-light { background: #fff; color: var(--text-dim); border: 1px solid var(--border); }
.badge-outline { background: #fff; border: 1px solid var(--border); color: var(--text-dim); }
.badge.border { border-color: var(--border) !important; }
.sp-nav .badge-warning { background: var(--blue); color: #fff; border: 0; box-shadow: 0 0 10px rgba(33, 150, 243, .6); }

/* ---------- alerts ---------- */
.alert { border-radius: 14px; border: 1px solid transparent; }
.alert-info { background: var(--sky); color: var(--navy-ink); border-color: rgba(33, 150, 243, .3); }
.alert-warning { background: #fff8e6; color: #6d4700; border-color: rgba(255, 179, 0, .4); }
.alert-danger { background: #fdecec; color: #8e1c1c; border-color: rgba(198, 40, 40, .3); }
.alert-success { background: rgba(27, 158, 119, .10); color: #11704f; border-color: rgba(27, 158, 119, .35); }
.alert-light { background: rgba(255, 255, 255, .7); color: var(--text-dim); border-color: var(--border); }
.alert a { font-weight: 600; }

/* ---------- filter bar ---------- */
.filter-bar {
  background: rgba(255, 255, 255, .78); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-sm);
  padding: .75rem 1rem; margin-bottom: 1rem; animation: fadeUp .55s backwards;
}
.filter-bar .form-group { margin-bottom: 0; }
.filter-bar .btn-group .btn { font-size: .78rem; }

/* ---------- forms ---------- */
.form-control, .custom-select { border-radius: 10px; border: 1px solid var(--border); color: var(--text); background-color: rgba(255, 255, 255, .9); transition: border-color .2s, box-shadow .2s; }
.form-control:focus, .custom-select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(33, 150, 243, .18); background-color: #fff; }
.form-control-sm { border-radius: 9px; }
.form-control:disabled, .form-control[readonly] { background: var(--bg-soft); }
.input-group-text { border-radius: 10px; border-color: var(--border); background: var(--bg-soft); }
.form-section-title { font-family: var(--font-mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .16em; color: var(--text-faint); margin: 1rem 0 .5rem; border-bottom: 1px solid var(--border); padding-bottom: .3rem; }
.form-text.help { font-size: .8rem; }
.is-invalid + .invalid-feedback { display: block; }
.required::after { content: " *"; color: var(--red); }
.custom-control-input:checked ~ .custom-control-label::before { background-color: var(--blue); border-color: var(--blue); }
.custom-control-input:focus ~ .custom-control-label::before { box-shadow: 0 0 0 3px rgba(33, 150, 243, .18); }
.custom-switch .custom-control-label::before { border-color: var(--border); background: #fff; }
.select2-container .select2-selection--single { height: calc(1.5em + .75rem + 2px); border: 1px solid var(--border); border-radius: 10px; background: rgba(255, 255, 255, .9); }
.select2-container--default .select2-selection--single .select2-selection__rendered { line-height: calc(1.5em + .75rem); padding-left: .75rem; color: var(--text); }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: calc(1.5em + .75rem); }
.select2-container--default.select2-container--focus .select2-selection--single, .select2-container--default.select2-container--open .select2-selection--single { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(33, 150, 243, .18); }
.select2-dropdown { border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-md); overflow: hidden; }
.select2-container--default .select2-results__option--highlighted[aria-selected] { background: var(--blue); }
.select2-container--default .select2-search--dropdown .select2-search__field { border: 1px solid var(--border); border-radius: 8px; }
.nav-tabs { border-bottom: 1px solid var(--border); }
.nav-tabs .nav-link { font-family: var(--font-display); font-weight: 600; font-size: .86rem; color: var(--text-dim); border: 0; border-bottom: 2px solid transparent; padding: .6rem 1rem; }
.nav-tabs .nav-link:hover { color: var(--navy); border-color: transparent; }
.nav-tabs .nav-link.active { color: var(--blue-deep); background: transparent; border-color: var(--blue); }

/* ---------- tables ---------- */
.table { color: var(--text); }
.table-jt thead, .thead-jt { background: var(--grad-brand); }
.table-jt thead th, .table thead.thead-jt th, table.dataTable thead th, table.dataTable thead td {
  background: transparent; color: #fff; border-color: rgba(255, 255, 255, .14) !important; border-bottom: 0 !important;
  vertical-align: middle; white-space: nowrap; font-family: var(--font-display); font-weight: 600; font-size: .8rem; letter-spacing: .01em;
}
.table-jt thead th a, .table thead.thead-jt th a { color: #fff; }
.table-jt td, .table-jt th { vertical-align: middle; border-color: var(--border); }
.table-jt tbody tr { transition: background .2s; }
.table-jt tbody tr:hover { background: rgba(232, 243, 253, .55); }
.table-jt tfoot th, .table-jt tfoot td { background: var(--bg-soft); color: var(--navy-ink); font-family: var(--font-display); font-weight: 700; font-size: .85rem; border-color: var(--border); }
.table-sm-text { font-size: .875rem; }
.table-responsive { overflow-x: auto; border-radius: 14px; border: 1px solid var(--border); background: #fff; box-shadow: var(--shadow-sm); }
.table-responsive > .table { margin-bottom: 0; }
.table-responsive > .table-bordered { border: 0; }
.table-responsive > .table-bordered thead th:first-child, .table-responsive > .table-bordered thead th:last-child { border-left: 0; border-right: 0; }
.card .table-responsive { border-radius: 0; border: 0; box-shadow: none; }
.card .table-responsive > .table { border-radius: 0; }
.card > .card-body.p-0 > .table:last-child, .card > .card-body.p-0 .table.mb-0 { margin-bottom: 0; }
.table-borderless td, .table-borderless th { border: 0; }
.table-danger, .table-danger > td, .table-danger > th { background-color: #fdecec; }
.table-warning, .table-warning > td, .table-warning > th { background-color: #fff8e6; }
table.dataTable.no-footer { border-bottom: 1px solid var(--border); }
table.dataTable thead .sorting::before, table.dataTable thead .sorting_asc::before, table.dataTable thead .sorting_desc::before,
table.dataTable thead .sorting::after, table.dataTable thead .sorting_asc::after, table.dataTable thead .sorting_desc::after { color: #fff; }
.dataTables_wrapper { font-size: .9rem; }
.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select { border: 1px solid var(--border); border-radius: 10px; padding: .3rem .6rem; margin-left: .25rem; background: rgba(255, 255, 255, .9); }
.dataTables_wrapper .dataTables_filter input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(33, 150, 243, .18); }
.dataTables_wrapper .dt-buttons { margin-bottom: .5rem; }
.dataTables_wrapper .dt-button { border-radius: 10px !important; background: rgba(255, 255, 255, .8) !important; border: 1px solid var(--border) !important; color: var(--text-dim) !important; font-family: var(--font-display); font-weight: 600; font-size: .8rem; transition: transform .2s, background .2s; }
.dataTables_wrapper .dt-button:hover { background: var(--sky) !important; color: var(--blue-deep) !important; transform: translateY(-1px); }
.dataTables_wrapper .dataTables_paginate .paginate_button { border-radius: 9px !important; border: 1px solid transparent !important; color: var(--text-dim) !important; }
.dataTables_wrapper .dataTables_paginate .paginate_button.current, .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover { background: var(--sky) !important; border-color: rgba(33, 150, 243, .3) !important; color: var(--blue-deep) !important; }
.dataTables_wrapper .dataTables_paginate .paginate_button:hover { background: var(--bg-soft) !important; border-color: var(--border) !important; color: var(--navy) !important; }
.dataTables_wrapper .dataTables_info { color: var(--text-faint); }

/* ---------- modals / sweetalert ---------- */
.modal-content { border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-md); }
.modal-header { border-bottom: 1px solid var(--border); }
.modal-footer { border-top: 1px solid var(--border); background: var(--bg-soft); border-radius: 0 0 var(--radius) var(--radius); }
.modal-title { font-weight: 700; }
.modal-backdrop.show { opacity: .35; }
.close { color: var(--text-dim); text-shadow: none; }
.swal2-popup { border-radius: var(--radius) !important; font-family: var(--font-body) !important; box-shadow: var(--shadow-md) !important; }
.swal2-title { font-family: var(--font-display) !important; color: var(--navy-ink) !important; }
.swal2-styled.swal2-confirm { border-radius: 10px !important; background: var(--grad-action) !important; font-family: var(--font-display) !important; font-weight: 600 !important; box-shadow: 0 6px 18px rgba(33, 150, 243, .30) !important; }
.swal2-styled.swal2-cancel { border-radius: 10px !important; font-family: var(--font-display) !important; font-weight: 600 !important; }

/* ---------- shift day grid ---------- */
.shift-days td { vertical-align: middle; }
.shift-days input[type=time] { min-width: 7.5rem; }
.shift-days .day-off input[type=time], .shift-days .day-off input[type=number] { opacity: .35; }

/* ---------- utilities ---------- */
.w-6 { width: 6rem; } .w-8 { width: 8rem; } .w-10 { width: 10rem; }
.cursor-pointer { cursor: pointer; }
.nowrap { white-space: nowrap; }
.setting-row { padding: .8rem 0; border-bottom: 1px solid var(--border); }
.setting-row:last-child { border-bottom: 0; }
.setting-key { font-size: .72rem; color: var(--text-faint); }
.audit-json { font-size: .76rem; white-space: pre-wrap; word-break: break-all; margin: 0; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 10px; padding: .4rem .6rem; max-height: 8rem; overflow: auto; color: var(--text-dim); }
.legend span { font-weight: 600; }
.swatch { display: inline-block; width: .9rem; height: .9rem; border-radius: 4px; vertical-align: -2px; margin-right: .25rem; }
details > summary { outline: none; }

/* ---------- login (hub card) ---------- */
body.login-body { padding: 48px 16px; text-align: center; }
.login-container {
  max-width: 420px; margin: 6vh auto 0; background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  padding: 30px 30px 26px; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow-md); text-align: left;
  animation: fadeUp .8s .05s backwards;
}
.login-container .brand { text-align: center; color: var(--navy); font-family: var(--font-display); font-weight: 700; margin-bottom: .75rem; }
.login-container .brand img { width: 62px; height: 62px; padding: 9px; display: block; margin: 0 auto .7rem; border-radius: 16px; object-fit: contain; background: var(--grad-brand); box-shadow: 0 8px 22px rgba(18, 114, 196, .35), inset 0 1px 0 rgba(255, 255, 255, .25); }
.login-container h2 { font-weight: 800; text-align: center; font-size: 1.9rem; letter-spacing: -.02em; background: linear-gradient(100deg, var(--blue) 0%, var(--blue-deep) 55%, var(--navy) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 1rem; }
.login-container label { margin-top: 10px; }
.login-container input { margin-bottom: 10px; }
.login-container .btn-primary { width: 100%; padding: .65rem; margin-top: .35rem; }

/* ---------- status colours (muster / registers) ---------- */
.st-present { color: var(--live); }
.st-late { color: var(--amber); font-weight: 700; }
.st-half { color: #0b6e8a; font-weight: 600; }
.st-absent { color: var(--red); font-weight: 700; }
.st-leave { color: var(--blue-deep); }
.st-off { color: var(--text-faint); }
.st-missed { color: #6f42c1; font-weight: 700; }
.st-none { color: var(--border); }

/* ---------- muster roll grid ---------- */
.muster-wrap { max-height: 78vh; }
.muster { font-size: .75rem; margin-bottom: 0; }
.muster th, .muster td { padding: .15rem .25rem; white-space: nowrap; }
.muster thead { background: none; }
.muster thead th { position: sticky; top: 0; background: var(--navy); color: #fff; border-color: rgba(255, 255, 255, .14); z-index: 2; text-align: center; }
.muster thead th.sticky-col { text-align: left; z-index: 3; background: var(--navy); }
.muster thead th.sun, .muster thead th.tot { background: var(--blue-deep); color: #fff; }
.muster tbody .sticky-col { position: sticky; left: 0; background: #fff; z-index: 1; min-width: 14rem; }
.muster thead .sticky-col { position: sticky; left: 0; min-width: 14rem; }
.muster td.c { text-align: center; }
.muster td a { color: inherit; text-decoration: none; display: block; }
.muster tbody .sun { background: var(--bg-soft); }
.muster tbody .tot { background: var(--bg-soft); font-weight: 600; }

/* ---------- leave calendar (month grid) ---------- */
.leave-cal-wrap { max-height: 75vh; }
.leave-cal { font-size: .72rem; margin-bottom: 0; }
.leave-cal th, .leave-cal td { padding: .15rem .2rem; text-align: center; white-space: nowrap; vertical-align: middle; }
.leave-cal thead { background: none; }
.leave-cal thead th { position: sticky; top: 0; background: var(--navy); color: #fff; border-color: rgba(255, 255, 255, .14); z-index: 2; line-height: 1.15; }
.leave-cal thead th.off { background: var(--blue-deep); }
.leave-cal thead th.sticky-col, .leave-cal tbody .sticky-col, .leave-cal tfoot .sticky-col { position: sticky; left: 0; text-align: left; min-width: 13rem; }
.leave-cal thead th.sticky-col { background: var(--navy); z-index: 3; }
.leave-cal tbody .sticky-col, .leave-cal tfoot .sticky-col { background: #fff; z-index: 1; }
.leave-cal tbody td.off, .leave-cal tfoot td.off { background: var(--bg-soft); }
.leave-cal td.today, .leave-cal thead th.today { box-shadow: inset 0 0 0 2px var(--blue); }
.leave-cal .lv { display: block; color: #fff; font-weight: 600; border-radius: 5px; padding: 0 .15rem; line-height: 1.5; text-decoration: none; transition: transform .2s; }
.leave-cal .lv:hover { transform: scale(1.08); }
.leave-cal .lv.half { background-image: linear-gradient(135deg, rgba(255, 255, 255, .6) 50%, transparent 50%); }
.leave-cal .lv.pending { opacity: .6; outline: 1px dashed var(--navy-ink); outline-offset: -1px; }
.leave-cal tfoot td { background: var(--bg-soft); font-weight: 600; }
.balance-card .stat-value { font-size: 1.6rem; }

/* ---------- print ---------- */
@media print {
  .navbar, .sp-nav, .sp-title, .sp-foot, .ambient, #leaves, .no-print, .dataTables_filter, .dataTables_info, .dataTables_paginate, .dataTables_length, .dt-buttons, .btn { display: none !important; }
  body { background: #fff; }
  .sp-page { padding: 0; animation: none; }
  .card, .filter-bar, .table-responsive { box-shadow: none; border: 1px solid #dee2e6; animation: none; }
  .table-jt thead, .thead-jt { background: #093e6a !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  a[href]::after { content: ""; }
  .muster-wrap, .leave-cal-wrap { max-height: none; overflow: visible; }
  .muster { font-size: .6rem; }
  .leave-cal { font-size: .6rem; }
  .muster thead th, .muster .sticky-col, .leave-cal thead th, .leave-cal .sticky-col { position: static; }
  .leave-cal .lv { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  @page { size: landscape; margin: 8mm; }
}

/* ---------- navigation: fit every width ----------
   >= 1200px: one row, wrapping onto a second row when the window is narrow or the zoom is high;
   <  1200px: Bootstrap collapses the menu into the hamburger button (profile menu included). */
@media (min-width: 1200px) {
  .sp-nav .navbar-nav { flex-wrap: wrap; justify-content: flex-end; row-gap: .15rem; }
  .sp-nav .navbar-collapse { flex-shrink: 1; min-width: 0; }
  .sp-nav .navbar-brand { flex: none; }
}
@media (min-width: 1200px) and (max-width: 1599.98px) {
  .sp-nav .navbar-nav .nav-link { padding: .4rem .6rem; font-size: .8rem; }
  .sp-nav .navbar-brand { font-size: 1rem; margin-right: 1rem; }
  .brand-mark { width: 36px; height: 36px; }
}
@media (min-width: 1200px) and (max-width: 1399.98px) {
  .brand-long { display: none; }
  .sp-nav .navbar-nav .nav-link { padding: .38rem .5rem; font-size: .78rem; }
}
@media (max-width: 1199.98px) {
  .sp-nav .navbar-nav .nav-link { border-radius: 10px; }
  .sp-nav .navbar-collapse { padding-top: .5rem; }
  .sp-nav .dropdown-menu { box-shadow: none; border-color: var(--border); margin: .1rem 0 .3rem .75rem; }
}
@media (max-width: 767.98px) {
  .sp-page { padding: 1rem .75rem 2rem; }
  .sp-nav { padding: .5rem .9rem; }
  .stat-card .stat-value { font-size: 1.5rem; }
  .sp-title { max-width: calc(100% - 1.5rem); letter-spacing: .12em; }
  .blob { display: none; }
}

/* =========================================================================
   Sellers Portal additions: left sidebar shell + top bar (the brief asks for a
   sidebar; Attendance uses a top navbar). Tokens above are unchanged.
   ========================================================================= */
.sp-body { display: block; }
.sp-shell { display: flex; min-height: 100vh; }
.sp-side {
  width: 250px; flex: none; position: sticky; top: 0; height: 100vh; overflow-y: auto; z-index: 1035;
  background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3);
  border-right: 1px solid var(--border); display: flex; flex-direction: column; padding: 14px 12px 10px;
  transition: transform .3s cubic-bezier(.2, .7, .3, 1);
}
.sp-brand { display: flex; align-items: center; gap: 11px; padding: 4px 8px 14px; color: var(--navy); font-family: var(--font-display); font-weight: 700; font-size: .98rem; line-height: 1.15; text-decoration: none; }
.sp-brand:hover { color: var(--navy); text-decoration: none; }
.sp-brand .brand-name em { font-style: normal; color: var(--blue); font-size: .88rem; }
.sp-nav { display: flex; flex-direction: column; gap: 2px; }
.sp-nav form { margin: 0; }
.sp-nav-link {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; border: 0; background: transparent; cursor: pointer;
  padding: .55rem .85rem; border-radius: 12px; color: var(--text-dim); font-family: var(--font-display); font-weight: 600; font-size: .86rem;
  transition: background .25s, color .25s, transform .2s; text-decoration: none;
}
.sp-nav-link i { width: 18px; text-align: center; color: var(--text-faint); transition: color .25s; }
.sp-nav-link:hover { background: var(--bg-soft); color: var(--navy); text-decoration: none; transform: translateX(2px); }
.sp-nav-link:hover i { color: var(--blue-deep); }
.sp-nav-link.active { background: var(--sky); color: var(--blue-deep); box-shadow: inset 3px 0 0 var(--blue); }
.sp-nav-link.active i { color: var(--blue); }
.sp-nav-divider { height: 1px; background: var(--border); margin: .6rem .5rem; }
.sp-price-app {
  margin-top: auto; display: flex; align-items: center; gap: 10px; padding: .7rem .85rem; border-radius: 14px; text-decoration: none;
  background: var(--grad-brand); color: #fff; box-shadow: 0 8px 22px rgba(18, 114, 196, .3); transition: transform .25s, box-shadow .25s;
}
.sp-price-app:hover { color: #fff; text-decoration: none; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(18, 114, 196, .4); }
.sp-price-app i { font-size: 1.2rem; color: #9fd1ff; }
.sp-price-app span { display: flex; flex-direction: column; line-height: 1.2; }
.sp-price-app strong { font-family: var(--font-display); font-size: .84rem; }
.sp-price-app small { font-size: .7rem; color: #cfe2f3; }
.sp-side-foot { font-family: var(--font-mono); font-size: .62rem; color: var(--text-faint); text-align: center; padding-top: .6rem; }

.sp-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sp-top {
  position: sticky; top: 0; z-index: 1030; display: flex; align-items: center; gap: 12px; padding: .6rem 1.25rem;
  background: rgba(255, 255, 255, .82); -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3);
  border-bottom: 1px solid var(--border); transition: box-shadow .35s;
}
.sp-top.scrolled { box-shadow: var(--shadow-sm); }
.sp-burger { display: none; border: 1px solid var(--border); background: #fff; border-radius: 10px; width: 38px; height: 38px; color: var(--navy); }
.sp-who-name { font-family: var(--font-display); font-weight: 700; font-size: .95rem; color: var(--navy-ink); letter-spacing: -.01em; }
.sp-who-sub { font-size: .76rem; color: var(--text-faint); }
.sp-who-sub b { color: var(--blue-deep); }
.sp-user { font-size: 1.55rem; color: var(--navy); }
.sp-user:hover { color: var(--blue-deep); }
.sp-markform .select2-container { min-width: 230px; }
.sp-markform .select2-container--default .select2-selection--multiple { border-radius: 10px; border: 1px solid var(--border); min-height: 31px; padding: 0 4px; }
.sp-markform .select2-container--default .select2-selection--multiple .select2-selection__choice { background: var(--sky); border: 1px solid rgba(33,150,243,.3); color: var(--blue-deep); border-radius: 8px; font-size: .74rem; margin-top: 4px; }
.sp-title {
  display: flex; align-items: center; gap: 10px; width: fit-content; max-width: calc(100% - 3rem);
  margin: 1.1rem 1.5rem 0; padding: 7px 17px; border-radius: 999px;
  background: var(--sky); border: 1px solid rgba(33, 150, 243, .30);
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--blue-deep);
  animation: fadeUp .7s .05s backwards;
}
.sp-title .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 10px var(--blue); animation: pulse 2.4s infinite; flex: none; }
.sp-page { flex: 1; padding: 1.1rem 1.5rem 2.5rem; animation: fadeUp .55s .1s backwards; }
.sp-foot { background: var(--navy); color: #a9c6e0; font-size: .82rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 1.5rem; }
.sp-foot a { color: #cfe2f3; text-decoration: none; }
.sp-foot a:hover { color: #fff; }
.sp-backdrop { display: none; position: fixed; inset: 0; background: rgba(9, 62, 106, .35); z-index: 1034; }

/* loading / empty / error states (Bible-style overlay) */
.sp-loading { position: relative; min-height: 120px; }
.sp-loading::after { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,.7); border-radius: inherit; z-index: 5; }
.sp-loading::before { content: ""; position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border: 4px solid var(--sky); border-top-color: var(--blue); border-radius: 50%; animation: spspin .8s linear infinite; z-index: 6; }
@keyframes spspin { to { transform: rotate(360deg); } }
.sp-empty { padding: 2.5rem 1rem; text-align: center; color: var(--text-faint); }
.sp-empty i { font-size: 2rem; display: block; margin-bottom: .6rem; color: var(--blue); opacity: .4; }
.sp-error { padding: 1.5rem; text-align: center; color: #8e1c1c; background: #fdecec; border-radius: 14px; }

@media (max-width: 991.98px) {
  .sp-side { position: fixed; left: 0; top: 0; transform: translateX(-105%); box-shadow: var(--shadow-md); }
  .sp-shell.side-open .sp-side { transform: none; }
  .sp-backdrop.show { display: block; }
  .sp-burger { display: inline-flex; align-items: center; justify-content: center; }
  .sp-top { padding: .5rem .9rem; flex-wrap: wrap; }
  .sp-top-right { width: 100%; justify-content: flex-end; margin-top: .35rem; }
  .sp-title { margin: 1rem .9rem 0; }
  .sp-page { padding: 1rem .9rem 2rem; }
}
@media print {
  .sp-side, .sp-top, .sp-title, .sp-foot, .sp-backdrop { display: none !important; }
  .sp-page { padding: 0; }
}


/* ---------- list component ---------- */
.sp-cards { margin-bottom: .25rem; }
.sp-cards .stat-card .stat-value { font-size: 1.35rem; }
.sp-cards .stat-card { margin-bottom: .75rem; }
.sp-list-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: .25rem; padding: .5rem .75rem; background: rgba(255,255,255,.78); border: 1px solid var(--border); border-bottom: 0; border-radius: 14px 14px 0 0; }
.sp-list-toolbar .sp-pp { width: 5.2rem; }
.sp-list-toolbar .sp-q { width: 14rem; }
.sp-list-wrap { border-radius: 0 0 14px 14px; min-height: 120px; }
.sp-list-wrap .sp-tbl { margin-bottom: 0; font-size: .84rem; }
.sp-tbl th.sortable { cursor: pointer; user-select: none; }
.sp-tbl th .sp-sort { opacity: .55; font-size: .7rem; margin-left: 2px; }
.sp-tbl th .fa-sort-up, .sp-tbl th .fa-sort-down { opacity: 1; color: #9fd1ff; }
.sp-tbl tbody tr.mine td { background: rgba(232, 243, 253, .75); }
.sp-tbl tbody tr.mine td:first-child { box-shadow: inset 3px 0 0 var(--blue); }
.sp-tbl tbody tr.aged td { background: #fff8e6; }
.sp-tbl tbody tr.aged-hot td { background: #fdecec; }
.sp-tbl tbody tr.clickable { cursor: pointer; }
.sp-list-pager { display: flex; align-items: center; justify-content: flex-end; gap: .25rem; padding: .6rem 0; }
.sp-list-state { }
.filter-bar .form-group { margin-right: .5rem; margin-bottom: .35rem; }
.filter-bar label.small { margin-right: .3rem; margin-bottom: 0; }
.filter-bar .select2-container { min-width: 12rem; }
.filter-bar .select2-container--default .select2-selection--multiple { border-radius: 9px; border: 1px solid var(--border); min-height: 31px; }
.sp-kv { display: flex; justify-content: space-between; padding: .2rem 0; border-bottom: 1px dashed var(--border); font-size: .86rem; }
.sp-kv:last-child { border-bottom: 0; }
.sp-kv b { font-family: var(--font-display); }
.sp-legend { font-size: .76rem; color: var(--text-faint); }
.sp-legend .sw { display: inline-block; width: .8rem; height: .8rem; border-radius: 3px; vertical-align: -2px; margin: 0 .2rem 0 .6rem; }
.sp-chart-wrap { position: relative; height: 280px; }

/* ---------- Bible page (ported from WH/bible.php, prefixed) ---------- */
.bible-wrap { font-size: 13px; }
.bible-wrap .filterbar { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-bottom: 12px; }
.bible-wrap .fg { display: flex; flex-direction: column; gap: 3px; }
.bible-wrap .fg label { font-size: 11px; font-weight: 600; color: #6c757d; text-transform: uppercase; letter-spacing: .3px; margin: 0; }
.bible-wrap .fg input, .bible-wrap .fg select { padding: 5px 8px; border: 1px solid #ced4da; border-radius: 5px; font-size: 13px; }
.bible-wrap .selinfo { margin-left: auto; font-size: 12px; color: #6c757d; align-self: center; }
.bible-wrap .selinfo b { color: #1a3c34; }
.bible-wrap .maintabs { display: flex; gap: 2px; flex-wrap: wrap; }
.bible-wrap .mtab { padding: 9px 18px; font-size: 13px; cursor: pointer; font-weight: 600; color: #495057; background: #dfe4e2; border: 1px solid #c9d2ce; border-bottom: none; border-radius: 8px 8px 0 0; user-select: none; }
.bible-wrap .mtab.active { background: #fff; color: #1a3c34; border-color: #dee2e6; position: relative; top: 1px; padding-top: 10px; }
.bible-wrap .mtab .cnt { background: #198754; color: #fff; border-radius: 9px; font-size: 10px; padding: 1px 6px; margin-left: 5px; }
.bible-wrap .mainpane { display: none; background: #fff; border: 1px solid #dee2e6; border-radius: 0 8px 8px 8px; margin-bottom: 12px; overflow: hidden; position: relative; min-height: 140px; }
.bible-wrap .mainpane.active { display: block; }
.bible-wrap .load-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(255,255,255,.75); display: none; flex-direction: column; align-items: center; justify-content: center; gap: 8px; z-index: 20; color: #1a3c34; font-weight: 600; font-size: 12.5px; }
.bible-wrap .load-overlay .spin { width: 34px; height: 34px; border: 4px solid #d7efe4; border-top-color: #198754; border-radius: 50%; animation: bspin .8s linear infinite; }
@keyframes bspin { to { transform: rotate(360deg); } }
.bible-wrap .pane-pad { padding: 12px; }
.bible-wrap .tabletools { display: flex; gap: 8px; padding: 8px 10px; border-bottom: 1px solid #eee; align-items: center; flex-wrap: wrap; }
.bible-wrap .tabletools .spacer { flex: 1; }
.bible-wrap .bible-tbl { width: 100%; border-collapse: collapse; font-size: 12px; }
.bible-wrap .bible-tbl thead th { background: #1a3c34 !important; color: #fff; padding: 6px 6px; text-align: left; font-size: 11px; white-space: nowrap; position: sticky; top: 0; border: none; z-index: 5; }
.bible-wrap .bible-tbl td { padding: 5px 6px; border-bottom: 1px solid #f0f0f0; white-space: nowrap; }
.bible-wrap .bible-tbl tbody tr:hover td { background: #eef7f3; cursor: pointer; }
.bible-wrap .bible-tbl tbody tr.sel td { background: #d7efe4; }
.bible-wrap .scrollbox { max-height: 55vh; overflow: auto; }
.bible-wrap .b { font-weight: 700; }
.bible-wrap .txt-green { color: #198754; font-weight: 600; }
.bible-wrap .txt-red { color: #dc3545; font-weight: 700; }
.bible-wrap .badge-pill2 { display: inline-block; padding: 1px 7px; border-radius: 10px; font-size: 10.5px; font-weight: 600; }
.bible-wrap .bg-sold { background: #d1e7dd; color: #0f5132; }
.bible-wrap .bg-hold { background: #fff3cd; color: #664d03; }
.bible-wrap .bg-ct { background: #cfe2ff; color: #084298; }
.bible-wrap .bg-wd { background: #e2d9f3; color: #432874; }
.bible-wrap .bg-ra { background: #f8d7da; color: #842029; }
.bible-wrap .abtn { padding: 6px 12px; border: none; border-radius: 5px; font-size: 12.5px; cursor: pointer; font-weight: 600; }
.bible-wrap .abtn-green { background: #198754; color: #fff; }
.bible-wrap .abtn-outline { background: #fff; border: 1px solid #ced4da; color: #333; }
.bible-wrap .detail-head { padding: 8px 12px; background: #f8f9fa; border-bottom: 1px solid #dee2e6; font-size: 12.5px; }
.bible-wrap .detail-head b { color: #1a3c34; }
.bible-wrap .cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin-bottom: 12px; }
.bible-wrap .scard { background: #fff; border: 1px solid #dee2e6; border-radius: 8px; padding: 8px 10px; }
.bible-wrap .scard .t { font-size: 10.5px; font-weight: 700; color: #6c757d; text-transform: uppercase; }
.bible-wrap .scard .v { font-size: 16px; font-weight: 700; margin-top: 2px; }
.bible-wrap .scard .s { font-size: 11px; color: #6c757d; }
.bible-wrap .scard.hl { border-color: #198754; background: #f2fbf7; }
.bible-wrap .scard.hl .v { color: #198754; }
.bible-wrap .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 900px) { .bible-wrap .grid2 { grid-template-columns: 1fr; } }
.bible-wrap .panel { background: #fff; border: 1px solid #dee2e6; border-radius: 8px; overflow: hidden; }
.bible-wrap .panel h4 { background: #f8f9fa; border-bottom: 1px solid #dee2e6; padding: 8px 12px; font-size: 12.5px; color: #1a3c34; margin: 0; }
.bible-wrap .panel .bible-tbl thead th, .bible-wrap .mainpane .bible-tbl.sub thead th { background: #495057 !important; }
.bible-wrap .view-details { display: inline-block; color: #198754; cursor: pointer; padding: 2px 8px; font-size: 13px; }
.bible-wrap .view-details:hover { color: #0d6efd; }
.bible-wrap div.dataTables_wrapper div.dataTables_filter { display: none; }
.bible-wrap div.dataTables_wrapper div.dataTables_info { padding: 6px 10px; font-size: 11.5px; color: #6c757d; }
.bible-wrap table.dataTable thead .sorting:before, .bible-wrap table.dataTable thead .sorting:after,
.bible-wrap table.dataTable thead .sorting_asc:before, .bible-wrap table.dataTable thead .sorting_asc:after,
.bible-wrap table.dataTable thead .sorting_desc:before, .bible-wrap table.dataTable thead .sorting_desc:after { color: #cfe3dd; }
@media (max-width: 768px) {
  .bible-wrap .fg { flex: 1 1 45%; min-width: 130px; }
  .bible-wrap .fg input, .bible-wrap .fg select { width: 100% !important; }
  .bible-wrap .maintabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .bible-wrap .mtab { padding: 8px 12px; font-size: 12px; white-space: nowrap; flex: 0 0 auto; }
  .bible-wrap .scrollbox { max-height: 62vh; }
  .bible-wrap .cards { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- print: list pages ---------- */
@media print {
  .filter-bar, .sp-list-toolbar, .sp-list-pager, .no-print, .sp-cards .fa-2x { display: none !important; }
  .sp-list-wrap { overflow: visible !important; border: 0; box-shadow: none; }
  .sp-tbl { font-size: 9pt !important; }
  .sp-tbl th .sp-sort { display: none; }
  .sp-tbl thead th { background: #093e6a !important; color: #fff !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .card { break-inside: avoid; }
  .bible-wrap .scrollbox { max-height: none; overflow: visible; }
  .bible-wrap .mainpane { display: block !important; }
}

/* ---------- admin: issue credentials ---------- */
.cred-note { background: var(--bg-soft); border: 1px dashed var(--border); border-radius: 8px; padding: .55rem .75rem; }
.cred-marks { max-height: 420px; overflow-y: auto; }
.cred-sheet .cred-brand { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.cred-sheet .cred-brand img { height: 44px; width: auto; }
.cred-table th { width: 32%; font-weight: 600; color: var(--text-dim); background: var(--bg-soft); white-space: nowrap; vertical-align: middle; }
.cred-table td { vertical-align: middle; word-break: break-all; }
.cred-table td.no-print { width: 1%; white-space: nowrap; }
.cred-value { font-size: 1.15rem; font-weight: 600; letter-spacing: .04em; }
.cred-pass { color: var(--navy-ink, #093e6a); background: #fff8e1; }
.btn-xs { padding: .1rem .4rem; font-size: .75rem; line-height: 1.3; }
.copy-done { color: var(--success, #1e8f4e) !important; border-color: currentColor !important; }
@media print {
  .cred-sheet { border: 1px solid #333 !important; max-width: 640px; margin: 0 auto; }
  .cred-sheet .card-header { background: #fff !important; color: #000 !important; border-bottom: 1px solid #333; }
  .cred-table td, .cred-table th { border-color: #999 !important; color: #000 !important; }
  .cred-pass { background: #fff !important; }
  .alert { display: none !important; }
}

/* ---------- accounts statement tabs ---------- */
#acctTabs .nav-link .badge { font-size: .68rem; vertical-align: 1px; }
@media print { #acctPanes .tab-pane { display: block !important; opacity: 1 !important; } #acctPanes .tab-pane + .tab-pane { margin-top: 1rem; } }
