/* SLIKCheck — tema fintech Navy/Cobalt di atas Bootstrap 5 */
@font-face { font-family: "Plus Jakarta Sans"; src: url("../fonts/plus-jakarta-sans.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/ibm-plex-mono-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --sc-navy: #0B192C; --sc-navy-2: #0A1128; --sc-navy-3: #1E3E62; --sc-cobalt: #0052CC; --sc-cobalt-2: #0747A6;
  --sc-cyan: #00B4D8; --sc-sky: #38BDF8; --sc-page: #F8FAFC; --sc-border: #E2E8F0; --sc-muted: #64748B; --sc-ink: #0F172A;
  --bs-body-font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bs-body-color: var(--sc-ink); --bs-body-bg: var(--sc-page); --bs-primary: #0052CC; --bs-primary-rgb: 0, 82, 204;
  --bs-link-color: #1D4ED8; --bs-link-color-rgb: 29, 78, 216; --bs-border-color: var(--sc-border); --bs-border-radius: .6rem;
}
body { font-size: .95rem; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, .h1, .h2, .h3, .h4, .h5 { font-weight: 700; letter-spacing: -.02em; color: var(--sc-ink); }
.font-mono, .num { font-family: "IBM Plex Mono", ui-monospace, monospace; font-weight: 600; letter-spacing: -.01em; }
.label-caps { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--sc-muted); }
.text-muted-2 { color: var(--sc-muted) !important; }

/* Buttons */
.btn { font-weight: 600; border-radius: .55rem; transition: background-color .15s ease, box-shadow .15s ease, transform .15s ease, border-color .15s ease; }
.btn:active { transform: scale(.98); }
.btn-primary { --bs-btn-bg: var(--sc-cobalt); --bs-btn-border-color: var(--sc-cobalt); --bs-btn-hover-bg: var(--sc-cobalt-2); --bs-btn-hover-border-color: var(--sc-cobalt-2); --bs-btn-active-bg: #063b8a; }
.btn-navy { background: var(--sc-navy); color: #fff; border-color: var(--sc-navy); }
.btn-navy:hover { background: var(--sc-navy-3); color: #fff; }
.btn-cyan { background: var(--sc-cyan); color: var(--sc-navy); border-color: var(--sc-cyan); }
.btn-cyan:hover { background: #22c3e3; color: var(--sc-navy); }
.btn-outline-light-subtle { color: #e2e8f0; border: 1px solid rgba(255,255,255,.25); }
.btn-outline-light-subtle:hover { background: rgba(255,255,255,.08); color: #fff; }

/* Cards */
.card { border: 1px solid var(--sc-border); border-radius: .9rem; box-shadow: 0 1px 2px rgba(15,23,42,.04); }
.card-header { background: transparent; border-bottom: 1px solid var(--sc-border); font-weight: 700; padding: 1rem 1.25rem; }
.card-body { padding: 1.25rem; }
.stat-card { position: relative; overflow: hidden; transition: transform .15s ease, box-shadow .15s ease; }
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px -12px rgba(11,25,44,.25); }
.stat-card .stat-icon { width: 40px; height: 40px; border-radius: .6rem; display: grid; place-items: center; font-size: 1.15rem; background: #EFF6FF; color: var(--sc-cobalt); }
.stat-card .stat-value { font-family: "IBM Plex Mono", monospace; font-weight: 600; font-size: 1.45rem; color: var(--sc-ink); line-height: 1.2; word-break: break-word; }
.stat-card .stat-value.na { font-family: inherit; font-size: .85rem; font-weight: 500; color: var(--sc-muted); }
.card-accent { border-top: 3px solid var(--sc-cobalt); }

/* Tables */
.user-modal-list-scroll {
  height: 245px;
  max-height: 245px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}
.user-modal-list-scroll::-webkit-scrollbar { width: 6px; }
.user-modal-list-scroll::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 99px; }
.consent-heading-icon, .consent-meta-icon, .consent-empty-icon { display: inline-grid; place-items: center; flex: 0 0 auto; border-radius: .7rem; }
.consent-heading-icon { width: 38px; height: 38px; background: #E8F1FF; color: #155EEF; font-size: 1.15rem; }
.consent-status { display: inline-flex; align-items: center; gap: .4rem; border-radius: 99px; padding: .38rem .7rem; background: #E8F7EE; color: #16794B; font-size: .8rem; font-weight: 700; }
.consent-meta-grid { display: grid; grid-template-columns: minmax(150px, .7fr) minmax(0, 1.7fr); gap: .75rem; }
.consent-meta-item { display: flex; align-items: flex-start; gap: .7rem; min-width: 0; padding: .85rem; border: 1px solid #E7ECF3; border-radius: .8rem; background: #FAFBFD; }
.consent-meta-icon { width: 34px; height: 34px; background: #EEF3FA; color: #52647A; }
.consent-meta-item > div, .consent-hashes > div { min-width: 0; }
.consent-meta-label { display: block; margin-bottom: .2rem; color: #64748B; font-size: .75rem; font-weight: 600; }
.consent-meta-value { display: block; color: #172B4D; font-size: .84rem; line-height: 1.5; overflow-wrap: anywhere; }
.consent-disclosure { overflow: hidden; border: 1px solid #E7ECF3; border-radius: .75rem; background: #fff; }
.consent-disclosure summary { display: flex; align-items: center; padding: .8rem .9rem; color: #344563; cursor: pointer; font-size: .84rem; font-weight: 600; list-style: none; }
.consent-disclosure summary::-webkit-details-marker { display: none; }
.consent-disclosure summary::after { content: "+"; margin-left: auto; color: #64748B; font-size: 1.1rem; }
.consent-disclosure[open] summary::after { content: "−"; }
.consent-disclosure summary:hover { background: #F8FAFC; }
.consent-hashes { display: grid; gap: .75rem; padding: .2rem .9rem .9rem; }
.consent-hashes code { display: block; padding: .6rem .7rem; border-radius: .5rem; background: #F4F6F9; color: #334155; font-size: .75rem; line-height: 1.55; overflow-wrap: anywhere; white-space: normal; }
.consent-snapshot { max-height: 260px; overflow: auto; margin: 0 .75rem .75rem; padding: .8rem; border: 1px solid #EDF0F4; border-radius: .5rem; background: #F8FAFC; color: #475569; font: .78rem/1.65 "IBM Plex Mono", ui-monospace, monospace; white-space: pre-wrap; overflow-wrap: anywhere; user-select: text; }
.consent-empty-state { display: flex; align-items: flex-start; gap: .8rem; padding: 1rem; border: 1px solid #FDE7B2; border-radius: .8rem; background: #FFFBEB; color: #713F12; }
.consent-empty-icon { width: 36px; height: 36px; background: #FEF3C7; color: #B45309; font-size: 1.1rem; }
@media (max-width: 575.98px) { .consent-meta-grid { grid-template-columns: 1fr; } }
.table { --bs-table-bg: transparent; margin-bottom: 0; }
.table > thead th { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--sc-muted); font-weight: 700; background: #F8FAFC; border-bottom: 1px solid var(--sc-border); white-space: nowrap; }
.table > tbody td { vertical-align: middle; border-color: #EEF2F7; }
.table-hover > tbody > tr:hover > * { --bs-table-hover-bg: #F1F5F9; }

/* DataTables Bootstrap */
.card.datatable-card { overflow: hidden; border: 1px solid #e2e8f0; border-radius: 14px; background: #fff; box-shadow: 0 2px 7px rgba(15,23,42,.025); }
.card.datatable-card > .table-responsive { overflow-x: auto; border-radius: inherit; -webkit-overflow-scrolling: touch; }
.dt-container { width: 100%; color: var(--sc-ink); background: #fff; font-size: 13px; }
.dt-container > .row:not(.dt-layout-table):first-child { min-height: 67px; margin: 0 !important; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #edf1f5; }
.dt-container > .row:not(.dt-layout-table):last-child { min-height: 58px; margin: 0 !important; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #edf1f5; }
.dt-container > .row:not(.dt-layout-table) > * { padding: 0 !important; }
.dt-container > .dt-layout-table { margin: 0 !important; }
.dt-length { display: flex; align-items: center; gap: 10px; color: #52647d; white-space: nowrap; font-size: 13px; }
.dt-length label { display: flex; align-items: center; gap: 10px; margin: 0; }
.dt-length select { width: 62px; height: 38px; min-height: 38px; border-color: #cbd5e1; border-radius: 8px; padding: 6px 9px; }
.dt-search { display: flex; align-items: center; gap: 10px; }
.dt-search label { margin: 0; color: #52647d; font-size: 13px; font-weight: 500; }
.dt-search input { width: min(280px, 45vw) !important; height: 38px; min-height: 38px; border-color: #cbd5e1; border-radius: 8px; background-color: #fff; padding: 6px 12px; }
.dt-search input:focus, .dt-length select:focus { border-color: var(--sc-cobalt); box-shadow: 0 0 0 3px rgba(21,94,239,.1); }
.dt-info { color: var(--sc-muted); font-size: .82rem; padding: 0 !important; }
.dt-paging { display: flex; justify-content: flex-end; }
.dt-paging .pagination { height: 34px; margin: 0; gap: 5px; flex-wrap: nowrap; }
.dt-paging, .dt-paging nav { height: 34px; }
.dt-paging .dt-paging-button { height: 34px; }
.dt-paging .page-item, .dt-paging .page-link { height: 34px; }
.dt-paging .page-link { min-width: 36px; height: 34px; padding: 0 10px; display: flex; align-items: center; justify-content: center; text-align: center; border: 1px solid #e2e8f0; border-radius: 7px !important; color: #475569; font-size: 13px; line-height: 34px; }
.dt-paging .page-item.disabled .page-link { color: #a8b2c1; background: #f8fafc; border-color: #e2e8f0; opacity: 1; }
.dt-paging .page-item.active .page-link { background: var(--sc-cobalt); border-color: var(--sc-cobalt); color: #fff; }
.dt-container .datatable-scroll,
.dt-container .table-responsive { overflow-x: auto !important; border-top: 0; }
.dt-container table.dataTable { width: 100% !important; min-width: 850px; border-collapse: collapse !important; margin: 0 !important; }
.dt-container table.dataTable > thead th { height: 48px; padding: 15px 18px; background: #f8fafc; border-bottom: 1px solid var(--sc-border); border-right: 0; color: #52647d; font-size: 11px; line-height: 1.25; }
.dt-container table.dataTable > tbody td { height: 68px; padding: 15px 18px; border-bottom: 1px solid #edf1f5; border-right: 0; color: #334155; font-size: 13px; }
.dt-container table.dataTable > tbody > tr:last-child td { border-bottom: 0; }
.dt-container table.dataTable > tbody > tr:hover > * { background-color: #fbfdff; }
.dt-container table.dataTable > tbody > tr:nth-child(even) > * { background-color: #fff; }
.dt-container table.dataTable td.dt-empty { height: 154px; padding: 48px 20px !important; text-align: center; color: #64748b; }
.dt-container table.dataTable td.dt-empty::before { content: none; }
.dt-container table.dataTable .empty-icon { display: block; margin-bottom: 10px; color: #94a3b8; font-size: 27px; line-height: 1; }
.dt-container table.dataTable .empty-icon + strong { display: block; margin-bottom: 5px; color: #334155; font-size: 14px; }
.dt-container table.dataTable .empty-icon + strong + small { display: block; width: min(280px, calc(100vw - 70px)); margin: 0 auto; color: #94a3b8; font-size: 12px; line-height: 1.5; }
.dt-container table.dataTable th.dt-orderable-asc,
.dt-container table.dataTable th.dt-orderable-desc { cursor: pointer; }
.dt-container table.dataTable > thead th.no-sort,
.dt-container table.dataTable > thead th.dt-ordering-none { cursor: default !important; }
.dt-container table.dataTable > thead th.no-sort::before,
.dt-container table.dataTable > thead th.no-sort::after,
.dt-container table.dataTable > thead th.dt-ordering-none::before,
.dt-container table.dataTable > thead th.dt-ordering-none::after { display: none !important; }
@media (max-width: 700px) {
  .dt-container > .row:not(.dt-layout-table):first-child,
  .dt-container > .row:not(.dt-layout-table):last-child { gap: .75rem; }
  .dt-container > .row:not(.dt-layout-table):first-child { flex-direction: column; align-items: stretch; }
  .dt-container > .row:not(.dt-layout-table):first-child > * { width: 100%; }
  .dt-container > .row:not(.dt-layout-table):last-child { flex-direction: column; align-items: stretch; }
  .dt-container > .row:not(.dt-layout-table):last-child > * { width: 100%; }
  .dt-info { text-align: left; }
  .dt-container .dt-layout-cell.dt-layout-start,
  .dt-container .dt-layout-cell.dt-layout-end { width: 100%; }
  .dt-container .dt-layout-row:first-child { align-items: flex-start; flex-direction: column; }
  .dt-container .dt-layout-row:last-child { align-items: flex-start; flex-direction: column; }
  .dt-search { width: 100%; }
  .dt-search input { width: 100% !important; }
  .dt-paging { justify-content: flex-end; }
  .dt-paging nav, .dt-paging .pagination { justify-content: flex-end; }
  .dt-paging .pagination { gap: .15rem; flex-wrap: wrap; height: auto; }
  .dt-paging, .dt-paging nav, .dt-paging .dt-paging-button,
  .dt-paging .page-item, .dt-paging .page-link { height: 32px; }
  .dt-paging .page-link { min-width: 32px; padding: .25rem .45rem; font-size: 12px; }
  .dt-paging .page-item:first-child .page-link,
  .dt-paging .page-item:last-child .page-link { display: none; }
}

/* Forms */
.form-control, .form-select { border-radius: .55rem; border-color: #CBD5E1; padding: .6rem .8rem; }
.form-control:focus, .form-select:focus { border-color: var(--sc-cobalt); box-shadow: 0 0 0 .2rem rgba(0,82,204,.15); }
.form-label { font-weight: 600; font-size: .85rem; }

/* App shell */
.app-shell { display: flex; min-height: 100vh; }
.sidebar { width: 260px; flex-shrink: 0; background: var(--sc-navy); color: #F8FAFC; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.sidebar .brand { padding: 1.25rem 1.25rem 1rem; display: flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none; font-weight: 800; font-size: 1.15rem; }
.brand-mark { width: 34px; height: 34px; border-radius: .6rem; background: linear-gradient(135deg, var(--sc-cobalt), var(--sc-cyan)); display: grid; place-items: center; color: #fff; font-size: 1rem; }
.sidebar .nav-section { padding: 1rem 1.25rem .35rem; font-size: .65rem; letter-spacing: .1em; text-transform: uppercase; color: #64748B; font-weight: 700; }
.sidebar .nav-link { color: #CBD5E1; padding: .55rem 1rem; margin: .1rem .75rem; border-radius: .55rem; display: flex; align-items: center; gap: .7rem; font-weight: 500; font-size: .9rem; transition: background-color .15s ease, color .15s ease; }
.sidebar .nav-link i { font-size: 1.05rem; opacity: .85; }
.sidebar .nav-link:hover { background: rgba(255,255,255,.06); color: #fff; }
.sidebar .nav-link.active { background: var(--sc-navy-3); color: var(--sc-sky); }
.sidebar .credit-box { margin: 1rem .9rem; padding: 1rem; border-radius: .8rem; background: linear-gradient(160deg, rgba(0,82,204,.35), rgba(0,180,216,.12)); border: 1px solid rgba(56,189,248,.2); }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { height: 64px; background: rgba(255,255,255,.85); backdrop-filter: blur(8px); border-bottom: 1px solid var(--sc-border); display: flex; align-items: center; padding: 0 1.5rem; gap: 1rem; position: sticky; top: 0; z-index: 1020; }
.content { padding: 1.75rem 1.5rem 3rem; max-width: 1360px; width: 100%; }
.page-title { font-size: 1.5rem; margin-bottom: .2rem; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--sc-navy-3); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .85rem; }
.mobile-logout-button { width: 40px; height: 40px; display: inline-grid; place-items: center; }
@media (max-width: 991.98px) {
  .sidebar { position: fixed; left: -280px; z-index: 1040; transition: left .2s ease; }
  .sidebar.open { left: 0; box-shadow: 0 0 0 100vmax rgba(2,6,23,.5); }
  .content { padding: 1.25rem 1rem 2.5rem; }
}

/* Badges */
.badge { font-weight: 600; border-radius: .45rem; padding: .38em .6em; }
.kol-1 { background: #DCFCE7; color: #14532D; } .kol-2 { background: #FEF3C7; color: #78350F; } .kol-3 { background: #FFEDD5; color: #7C2D12; }
.kol-4 { background: #FEE2E2; color: #7F1D1D; } .kol-5 { background: #450A0A; color: #FEE2E2; } .kol-na { background: #F1F5F9; color: #475569; }
.risk-low { background: #E0F2FE; color: #0369A1; } .risk-medium { background: #FEF9C3; color: #854D0E; } .risk-high { background: #FEE2E2; color: #991B1B; }
.st-pending { background: #F1F5F9; color: #334155; } .st-processing { background: #DBEAFE; color: #1E40AF; } .st-success { background: #DCFCE7; color: #166534; }
.st-failed { background: #FEE2E2; color: #991B1B; } .st-needs_review { background: #FEF3C7; color: #92400E; }
.hist-cell { width: 22px; height: 22px; border-radius: 5px; display: inline-grid; place-items: center; font-size: .65rem; font-weight: 700; font-family: "IBM Plex Mono", monospace; }

/* Risk hero on analysis */
.risk-panel { border-radius: 1rem; padding: 1.5rem; color: #fff; background: var(--sc-navy); position: relative; overflow: hidden; }
.risk-panel::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(0,180,216,.35), transparent 70%); }
.risk-panel.high { background: linear-gradient(135deg, #0B192C 0%, #4A0D12 100%); }
.risk-panel.medium { background: linear-gradient(135deg, #0B192C 0%, #4A3A0A 100%); }
.risk-panel.low { background: linear-gradient(135deg, #0B192C 0%, #0A3D5C 100%); }
.risk-meter { height: 8px; border-radius: 99px; background: rgba(255,255,255,.15); overflow: hidden; }
.risk-meter > span { display: block; height: 100%; background: linear-gradient(90deg, #4ADE80, #FACC15, #F87171); }
.finding { border-left: 3px solid var(--sc-border); padding: .75rem 1rem; border-radius: 0 .6rem .6rem 0; background: #fff; }
.finding.high { border-left-color: #DC2626; background: #FFF7F7; } .finding.medium { border-left-color: #D97706; background: #FFFCF2; } .finding.low { border-left-color: #0284C7; background: #F7FBFF; }
.nav-tabs-line { border-bottom: 1px solid var(--sc-border); gap: .25rem; }
.nav-tabs-line .nav-link { border: 0; border-bottom: 2px solid transparent; color: var(--sc-muted); font-weight: 600; padding: .75rem 1rem; }
.nav-tabs-line .nav-link.active { color: var(--sc-cobalt); border-bottom-color: var(--sc-cobalt); background: transparent; }
.profile-mobile-tabs { display: none; }

/* Upload */
.dropzone { border: 2px dashed #94A3B8; border-radius: 1rem; background: #fff; padding: 2.5rem 1.5rem; text-align: center; cursor: pointer; transition: border-color .15s ease, background-color .15s ease; }
.dropzone:hover, .dropzone.drag { border-color: var(--sc-cobalt); background: #F0F6FF; }
.dropzone .bi { font-size: 2.5rem; color: var(--sc-cobalt); }

/* Public / landing */
.public-nav { background: var(--sc-navy-2); }
.public-nav .nav-link { color: #CBD5E1; font-weight: 500; } .public-nav .nav-link:hover { color: #fff; }
.hero { background: radial-gradient(1200px 500px at 85% -10%, rgba(0,180,216,.22), transparent 60%), radial-gradient(800px 400px at 0% 110%, rgba(0,82,204,.35), transparent 60%), var(--sc-navy-2); color: #F8FAFC; padding: 5rem 0 6rem; position: relative; overflow: hidden; }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 4.4vw, 3.3rem); line-height: 1.1; letter-spacing: -.035em; }
.hero .lead { color: #CBD5E1; }
.hero-badge { display: inline-flex; gap: .5rem; align-items: center; padding: .35rem .8rem; border-radius: 99px; background: rgba(30,58,138,.6); color: #BFDBFE; font-size: .8rem; font-weight: 600; border: 1px solid rgba(147,197,253,.25); }
.hero-mock { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12); border-radius: 1.1rem; padding: 1.1rem; backdrop-filter: blur(6px); box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.hero-mock .mock-card { background: #fff; color: var(--sc-ink); border-radius: .8rem; padding: 1rem; }
.feature-icon { width: 46px; height: 46px; border-radius: .75rem; display: grid; place-items: center; background: #EFF6FF; color: var(--sc-cobalt); font-size: 1.3rem; }
.section { padding: 5rem 0; }
.price-card { height: 100%; transition: transform .15s ease, box-shadow .15s ease; }
.price-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(11,25,44,.35); }
.price-card.featured { border: 2px solid var(--sc-cobalt); }
.price { font-family: "IBM Plex Mono", monospace; font-weight: 600; font-size: 1.6rem; }
.analysis-failure-icon { display: inline-grid; place-items: center; width: 42px; height: 42px; flex: 0 0 auto; border-radius: .75rem; background: #FEF3C7; color: #B45309; font-size: 1.25rem; }
.analysis-failure-help { padding: .9rem 1rem; border: 1px solid #FDE7B2; border-radius: .7rem; background: #FFFBEB; color: #713F12; }
.analysis-failure-help li + li { margin-top: .3rem; }
.footer { background: var(--sc-navy-2); color: #94A3B8; padding: 3rem 0 2rem; font-size: .875rem; }
.footer a { color: #CBD5E1; text-decoration: none; }

/* Auth */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.auth-side { background: radial-gradient(700px 400px at 100% 0%, rgba(0,180,216,.25), transparent 60%), var(--sc-navy); color: #E2E8F0; padding: 3rem; display: flex; flex-direction: column; justify-content: space-between; }
.auth-side h2 { color: #fff; font-size: 2rem; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 2rem 1.25rem; background: #fff; }
.auth-form .inner { width: 100%; max-width: 420px; }
@media (max-width: 991.98px) { .auth-wrap { grid-template-columns: 1fr; } .auth-side { display: none; } }

.empty-state { padding: 3rem 1rem; text-align: center; color: var(--sc-muted); }
.empty-state .bi { font-size: 2.2rem; color: #94A3B8; }
.na { color: var(--sc-muted); font-style: italic; font-size: .85em; }
.chart-box { position: relative; height: 280px; }
.pagination { --bs-pagination-active-bg: var(--sc-cobalt); --bs-pagination-active-border-color: var(--sc-cobalt); margin-bottom: 0; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.password-policy-feedback {
  font-size: .82rem;
  line-height: 1.6;
  padding: .75rem .85rem;
  border: 1px solid #e2e8f0;
  border-radius: .65rem;
  background: #fff;
  box-shadow: 0 .35rem 1rem rgba(15, 23, 42, .08);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .15rem 1rem;
}

.password-policy-feedback .password-rule {
  font-weight: 600;
}

.password-policy-feedback .password-rule.is-invalid {
  color: var(--bs-danger);
}

.password-policy-feedback .password-rule.is-valid {
  color: var(--bs-success);
}

.password-input-group > .form-control.is-invalid,
.password-input-group > .form-control.is-valid {
  background-image: none;
}

@media (max-width: 575.98px) {
  .password-policy-feedback {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .profile-mobile-tabs {
    display: flex;
    gap: .25rem;
    overflow-x: auto;
    border-bottom: 1px solid var(--sc-border);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .profile-mobile-tabs::-webkit-scrollbar { display: none; }

  .profile-mobile-tabs button {
    flex: 0 0 auto;
    padding: .6rem .8rem;
    border: 1px solid transparent;
    border-bottom: 0;
    border-radius: .55rem .55rem 0 0;
    background: transparent;
    color: var(--sc-muted);
    font: inherit;
    font-size: .82rem;
    font-weight: 600;
    white-space: nowrap;
  }

  .profile-mobile-tabs button.active {
    margin-bottom: -1px;
    border-color: var(--sc-border);
    background: #fff;
    color: var(--sc-cobalt);
  }

  .profile-edit-grid { display: block; }
  .profile-edit-grid > .col-lg-6 { display: contents; }
  .mobile-profile-card.is-mobile-hidden { display: none !important; }
  .profile-edit-grid .mobile-profile-card { margin-bottom: 1rem !important; }
}
.password-input-group .form-control {
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

.password-toggle {
  min-width: 46px;
  border-color: var(--bs-border-color);
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.password-toggle:hover,
.password-toggle:focus {
  border-color: #94a3b8;
  color: #334155;
  background: #f8fafc;
}
.brand-logo-frame {
  width: 174px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  flex: 0 0 174px;
  overflow: hidden;
}

.brand-logo {
  display: block;
  width: 174px;
  height: 44px;
  max-width: 174px;
  max-height: 44px;
  object-fit: contain;
  object-position: left center;
}

.sidebar .brand {
  min-height: 76px;
  overflow: hidden;
}

.sidebar .brand:has(.brand-logo) span:not(.brand-logo-frame) {
  display: none;
}

.navbar-brand .brand-logo,
.auth-side .brand-logo {
  object-position: center;
}

/* Mobile layout: retain desktop table columns and allow deliberate horizontal scrolling. */
html,
body {
  max-width: 100%;
  overflow-x: clip;
}

.app-shell,
.main,
.content,
.content > * {
  min-width: 0;
}

.content {
  box-sizing: border-box;
}

.table-responsive,
.datatable-scroll,
.dt-container,
.dt-container .dt-layout-table,
.dt-container .dt-layout-cell {
  max-width: 100%;
}

.dt-container .datatable-scroll,
.dt-container .table-responsive {
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.sidebar-backdrop {
  display: none;
}

@media (max-width: 991.98px) {
  .sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1035;
    width: 100%;
    height: 100%;
    border: 0;
    background: rgba(2, 6, 23, .52);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, visibility .2s ease;
  }

  .sidebar-backdrop.show {
    opacity: 1;
    visibility: visible;
  }

  .sidebar {
    z-index: 1040;
    width: min(280px, 86vw);
    height: 100dvh;
    padding-bottom: env(safe-area-inset-bottom);
  }

  .sidebar.open {
    box-shadow: none;
  }

  .topbar {
    height: 58px;
    padding-right: .75rem;
    padding-left: .75rem;
  }

  .content {
    padding: 1.1rem .85rem calc(2rem + env(safe-area-inset-bottom));
  }

  .content > .d-flex {
    align-items: flex-start !important;
  }

  .card-header,
  .card-body {
    padding: .9rem;
  }

  .chart-box {
    height: 230px;
  }

  .hero .container > .row,
  .section .container > .row {
    margin-right: 0;
    margin-left: 0;
  }
}

@media (max-width: 575.98px) {
  body {
    font-size: .9rem;
  }

  .page-title {
    font-size: 1.25rem;
    line-height: 1.3;
  }

  .content {
    padding-right: .7rem;
    padding-left: .7rem;
  }

  .topbar .btn[data-toggle-sidebar] {
    width: 40px;
    height: 40px;
    display: inline-grid;
    place-items: center;
    padding: 0;
  }

  .topbar .dropdown > .btn {
    max-width: min(66vw, 260px);
    padding-right: .25rem;
    padding-left: .25rem;
  }

  .topbar .dropdown .avatar {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
  }

  .content .btn,
  .content .form-select,
  .content .form-control {
    min-height: 40px;
  }

  .content .btn-sm {
    min-height: 34px;
  }

  .content > .d-flex > form {
    width: 100%;
  }

  .content > .d-flex > form .form-select {
    flex: 1 1 auto;
    min-width: 0;
  }

  .datatable-scroll,
  .table-responsive {
    scrollbar-width: thin;
    scrollbar-color: #94a3b8 #f1f5f9;
  }

  .dt-container {
    font-size: 12px;
  }

  .dt-container > .row:not(.dt-layout-table):first-child,
  .dt-container > .row:not(.dt-layout-table):last-child {
    padding: .75rem;
  }

  .dt-length,
  .dt-length label,
  .dt-search {
    width: 100%;
  }

  .dt-length {
    justify-content: space-between;
  }

  .dt-length label {
    justify-content: flex-end;
  }

  .dt-search {
    flex-wrap: wrap;
    gap: .35rem;
  }

  .dt-search input {
    width: 100% !important;
    min-height: 40px;
  }

  .dt-container table.dataTable {
    min-width: 760px;
  }

  .dt-container table.dataTable > thead th {
    height: 42px;
    padding: .65rem .75rem;
    font-size: 10px;
  }

  .dt-container table.dataTable > tbody td {
    height: 58px;
    padding: .65rem .75rem;
    font-size: 12px;
  }

  .dt-info {
    font-size: .75rem;
  }

  .dt-paging {
    justify-content: flex-start;
  }

  .dt-paging nav,
  .dt-paging .pagination {
    justify-content: flex-start;
    max-width: 100%;
  }

  .card.datatable-card > .table-responsive {
    border-radius: 0 0 .9rem .9rem;
  }

  .modal-dialog {
    margin: .5rem;
  }

  .modal-dialog-centered {
    min-height: calc(100% - 1rem);
  }

  .modal-content {
    border-radius: .85rem;
  }

  .hero {
    padding: 3.25rem 0 4rem;
  }

  .hero .container > .row,
  .section .container > .row {
    --bs-gutter-x: 1rem;
  }

  .section {
    padding: 3.25rem 0;
  }

  .auth-form {
    padding: 1.25rem .9rem;
  }
}
