:root {
  --ink: #0a1733;
  --ink-soft: #40506e;
  --primary: #1769ff;
  --primary-dark: #0e4fd0;
  --navy: #102655;
  --canvas: #f4f7fc;
  --line: #e1e7f0;
  --muted: #70809d;
  --card-shadow: 0 10px 30px rgba(27, 45, 82, .06);
  --sidebar-width: 270px;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { color: var(--ink); font-family: "DM Sans", system-ui, -apple-system, sans-serif; background: var(--canvas); }
h1, h2, h3, h4, h5, .btn, .sidebar-brand { font-family: "Manrope", "DM Sans", sans-serif; }
a { color: var(--primary); }
.btn { border-radius: 10px; font-weight: 700; }
.btn-primary { --bs-btn-bg: var(--primary); --bs-btn-border-color: var(--primary); --bs-btn-hover-bg: var(--primary-dark); --bs-btn-hover-border-color: var(--primary-dark); }
.form-label { color: #20314f; font-size: .9rem; font-weight: 700; margin-bottom: .45rem; }
.form-control, .form-select { border-color: #d5deeb; border-radius: 10px; min-height: 46px; padding: .65rem .85rem; }
.form-control:focus, .form-select:focus { border-color: #77a5ff; box-shadow: 0 0 0 .2rem rgba(23, 105, 255, .12); }
.eyebrow { font-family: "Manrope", sans-serif; font-size: .72rem; font-weight: 800; letter-spacing: .14em; }
.alert { border: 1px solid transparent; border-radius: 12px; }
.alert-success { background: #e7f7ef; border-color: #b7e5ce; color: #0d5e3c; }
.alert-danger { background: #fff0f1; border-color: #ffd0d5; color: #982331; }
.alert-warning { background: #fff8e3; border-color: #f6dda0; color: #70500a; }

/* Authentication */
.auth-body { margin: 0; background: #eff3f8; overflow-x: hidden; }
.auth-shell { display: grid; grid-template-columns: minmax(460px, 1.08fr) minmax(520px, .92fr); min-height: 100vh; }
.auth-story { background: radial-gradient(circle at 100% 0, rgba(141, 83, 230, .8), transparent 34%), linear-gradient(150deg, #0f234d 0%, #0f3c96 62%, #0d57e9 100%); color: #fff; display: flex; flex-direction: column; justify-content: space-between; min-height: 100vh; padding: clamp(64px, 7vw, 110px); position: relative; overflow: hidden; }
.auth-story::after { content: ""; width: 380px; height: 380px; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; position: absolute; bottom: -170px; right: -110px; box-shadow: 0 0 0 65px rgba(255,255,255,.03), 0 0 0 130px rgba(255,255,255,.02); }
.auth-story h1 { font-size: clamp(2.8rem, 4.2vw, 4.6rem); font-weight: 800; letter-spacing: -.055em; line-height: 1.04; margin: 20px 0 16px; }
.auth-story p { color: rgba(255,255,255,.88); font-size: 1.05rem; line-height: 1.65; max-width: 600px; }
.brand-mark { align-items: center; background: linear-gradient(135deg, #3968ff, #7357dd); border-radius: 12px; color: #fff; display: inline-flex; flex: 0 0 auto; font-size: 1.3rem; height: 42px; justify-content: center; width: 42px; }
.brand-mark-dark { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.08); height: 56px; width: 56px; }
.auth-benefits { display: flex; flex-direction: column; gap: 14px; position: relative; z-index: 1; }
.auth-benefits span { align-items: center; display: flex; font-size: .95rem; gap: 10px; }
.auth-workspace { align-items: center; display: flex; justify-content: center; min-height: 100vh; padding: 42px; }
.auth-card-wrap { max-width: 520px; width: 100%; }
.auth-card { background: #fff; border: 1px solid #e1e6ee; border-radius: 20px; box-shadow: 0 22px 60px rgba(24, 44, 78, .09); padding: clamp(30px, 4vw, 44px); }
.auth-card h2 { font-size: 1.75rem; font-weight: 800; letter-spacing: -.035em; margin: 8px 0 8px; }
.auth-card .btn-lg { font-size: 1rem; min-height: 49px; }
.auth-switch { color: var(--muted); margin: 24px 0 0; text-align: center; }
.auth-switch a { font-weight: 700; text-decoration: none; }
.input-icon { position: relative; }
.input-icon > i { color: #8290a8; left: 15px; position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; }
.input-icon .form-control { padding-left: 42px; }
.password-toggle { background: transparent; border: 0; color: #71809a; padding: 10px; position: absolute; right: 5px; top: 50%; transform: translateY(-50%); }

/* App shell */
.app-body { min-height: 100vh; }
.app-sidebar { background: #fff; border-right: 1px solid var(--line); bottom: 0; flex-direction: column; left: 0; position: fixed; top: 0; width: var(--sidebar-width); z-index: 1030; }
.sidebar-brand { align-items: center; border-bottom: 1px solid var(--line); color: var(--ink); display: flex; gap: 12px; min-height: 80px; padding: 16px 28px; text-decoration: none; }
.sidebar-brand strong, .sidebar-brand small { display: block; }
.sidebar-brand strong { font-size: 1.08rem; }
.sidebar-brand small { color: var(--muted); font-family: "DM Sans", sans-serif; font-size: .72rem; font-weight: 600; margin-top: 1px; }
.sidebar-nav { flex: 1; overflow-y: auto; padding: 26px 14px; }
.nav-section { color: #96a2b7; font-family: "Manrope", sans-serif; font-size: .62rem; font-weight: 800; letter-spacing: .15em; margin: 4px 14px 9px; }
.sidebar-nav .nav-link { align-items: center; background: transparent; border: 0; border-radius: 10px; color: #34435c; display: flex; font-size: .91rem; font-weight: 700; gap: 12px; margin: 3px 0; padding: 11px 13px; text-align: left; text-decoration: none; width: 100%; }
.sidebar-nav .nav-link > i:first-child { color: #51627e; font-size: 1.05rem; width: 20px; }
.sidebar-nav .nav-link:hover { background: #f3f6fb; color: var(--primary); }
.sidebar-nav .nav-link.active { background: #eaf0ff; color: #1559ea; }
.sidebar-nav .nav-link.active > i { color: #1559ea; }
.nav-submenu { border-left: 1px solid #dce3ef; margin: 4px 0 8px 22px; padding: 2px 0 2px 22px; }
.nav-submenu a { border-radius: 7px; color: #586781; display: block; font-size: .86rem; font-weight: 600; padding: 7px 10px; text-decoration: none; }
.nav-submenu a:hover { background: #f3f6fb; color: var(--primary); }
.sidebar-logout { border-top: 1px solid var(--line); padding: 17px 28px; }
.sidebar-logout button { align-items: center; background: none; border: 0; color: #e33a42; display: flex; font-weight: 700; gap: 10px; padding: 8px 0; }
.app-frame { margin-left: var(--sidebar-width); min-height: 100vh; padding-bottom: 42px; padding-top: 80px; }
.app-topbar { align-items: center; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); display: flex; height: 80px; left: var(--sidebar-width); padding: 0 30px; position: fixed; right: 0; top: 0; z-index: 1020; backdrop-filter: blur(12px); }
.topbar-title h1 { font-size: 1.05rem; font-weight: 800; margin: 0; }
.topbar-title span { color: var(--muted); font-size: .75rem; }
.topbar-actions { align-items: center; display: flex; gap: 10px; }
.icon-button { align-items: center; background: transparent; border: 0; border-radius: 10px; color: #42516a; display: inline-flex; font-size: 1.25rem; height: 42px; justify-content: center; width: 42px; }
.icon-button:hover { background: #f1f4f9; }
.notification-dot { align-items: center; background: #ef3d4b; border: 2px solid #fff; border-radius: 50%; color: #fff; display: flex; font-size: .55rem; font-weight: 800; height: 18px; justify-content: center; position: absolute; right: 1px; top: 0; width: 18px; }
.notification-menu { border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--card-shadow); min-width: 290px; overflow: hidden; }
.user-menu { align-items: center; background: transparent; border: 0; display: flex; gap: 10px; padding: 4px; text-align: left; }
.user-avatar { align-items: center; background: linear-gradient(145deg, #132e67, #3479ff); border: 2px solid #e8edf5; border-radius: 12px; color: #fff; display: inline-flex; flex: 0 0 auto; font-family: "Manrope", sans-serif; font-size: .8rem; font-weight: 800; height: 46px; justify-content: center; object-fit: cover; overflow: hidden; width: 46px; }
.user-avatar img { height: 100%; object-fit: cover; width: 100%; }
.user-copy strong, .user-copy small { display: block; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-copy strong { font-size: .88rem; }
.user-copy small { color: var(--muted); font-size: .68rem; }
.app-content { min-height: calc(100vh - 120px); padding: 28px 30px 44px; }
.app-footer { background: rgba(255,255,255,.96); border-top: 1px solid var(--line); bottom: 0; color: #8d9ab0; font-size: .72rem; left: var(--sidebar-width); padding: 11px 30px; position: fixed; right: 0; text-align: center; z-index: 1010; }
.mobile-sidebar { max-width: 310px; }
.mobile-sidebar .offcanvas-header { border-bottom: 1px solid var(--line); padding: 0 15px 0 0; }
.mobile-sidebar .sidebar-brand { border: 0; min-height: 76px; }

/* Page components */
.welcome-banner { align-items: center; background: linear-gradient(120deg, #fff 30%, #f2f6ff 100%); border: 1px solid #dce6fb; border-radius: 18px; box-shadow: var(--card-shadow); display: flex; justify-content: space-between; margin-bottom: 22px; min-height: 135px; padding: 26px; }
.welcome-banner h2, .page-head h2 { font-size: clamp(1.65rem, 2.2vw, 2.15rem); font-weight: 800; letter-spacing: -.045em; margin: 8px 0 4px; }
.welcome-banner p, .page-head p { color: var(--muted); margin: 0; }
.kpi-grid { display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpi-card { align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 5px 18px rgba(26, 42, 72, .035); display: flex; gap: 14px; min-height: 124px; padding: 18px; }
.kpi-icon, .action-icon { align-items: center; border-radius: 12px; display: inline-flex; flex: 0 0 auto; font-size: 1.3rem; height: 48px; justify-content: center; width: 48px; }
.kpi-card small, .kpi-card strong { display: block; }
.kpi-card small { color: var(--ink-soft); font-size: .78rem; margin-bottom: 3px; }
.kpi-card strong { font-family: "Manrope", sans-serif; font-size: clamp(.96rem, 1.15vw, 1.22rem); overflow-wrap: anywhere; }
.kpi-copy { flex: 1; min-width: 0; }
.kpi-copy .numeric-value { text-align: right; }
.kpi-updated { color: #8a96a9; display: block; font-size: .59rem; line-height: 1.35; margin-top: 7px; white-space: nowrap; }
.tone-blue { background: #1769ff; color: #fff; }.tone-amber { background: #ffbd13; color: #17213a; }.tone-cyan { background: #1bc1df; color: #06243b; }.tone-red { background: #e53b4c; color: #fff; }.tone-green { background: #188e5d; color: #fff; }.tone-slate { background: #6e7883; color: #fff; }
.panel-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--card-shadow); padding: 22px; }
.panel-heading { align-items: flex-start; display: flex; justify-content: space-between; margin-bottom: 18px; }
.panel-heading h3 { font-size: 1.05rem; font-weight: 800; margin: 4px 0 0; }
.panel-heading a { font-size: .8rem; font-weight: 700; text-decoration: none; }
.empty-state { align-items: center; color: #7c89a2; display: flex; flex-direction: column; justify-content: center; min-height: 260px; text-align: center; }
.empty-state i { color: #9caac1; font-size: 2.2rem; }.empty-state p { margin: 12px 0 0; }
.empty-state.compact { min-height: 150px; }
.action-list { display: grid; gap: 10px; }
.action-list a { align-items: center; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); display: flex; gap: 12px; padding: 14px; text-decoration: none; }
.action-list strong, .action-list small { display: block; }.action-list small { color: var(--muted); }
.quick-grid { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.quick-grid a { border: 1px solid var(--line); border-radius: 12px; color: var(--ink); display: flex; flex-direction: column; font-weight: 700; gap: 14px; min-height: 94px; padding: 16px; text-decoration: none; transition: .15s ease; }
.quick-grid a:hover { border-color: #9fbdff; box-shadow: 0 8px 22px rgba(23, 105, 255, .08); transform: translateY(-1px); }.quick-grid i { color: #173c79; font-size: 1.35rem; }
.active-user-list, .audit-list { display: grid; gap: 4px; }
.active-user, .audit-item { align-items: center; display: flex; gap: 12px; padding: 10px 0; }
.active-user + .active-user, .audit-item + .audit-item { border-top: 1px solid #edf0f5; }
.small-avatar { border: 0; border-radius: 10px; height: 40px; width: 40px; }
.active-user strong, .active-user small, .audit-item strong, .audit-item small { display: block; }.active-user small, .audit-item small { color: var(--muted); font-size: .72rem; }
.online-dot { background: #27b66c; border: 3px solid #e1f7eb; border-radius: 50%; height: 12px; width: 12px; }
.audit-item > span { align-items: center; background: #eef4ff; border-radius: 10px; color: var(--primary); display: flex; height: 38px; justify-content: center; width: 38px; }
.page-head { align-items: end; display: flex; justify-content: space-between; margin-bottom: 22px; }
.security-chip { align-items: center; background: #e9f7f0; border: 1px solid #c7eada; border-radius: 999px; color: #18704c; display: inline-flex; font-size: .78rem; font-weight: 700; gap: 7px; padding: 8px 12px; }
.table-toolbar { align-items: center; display: flex; justify-content: space-between; margin-bottom: 18px; }
.search-form { align-items: center; display: flex; gap: 8px; max-width: 620px; position: relative; width: 100%; }.search-form > i { color: #8693a9; left: 14px; position: absolute; }.search-form input { padding-left: 40px; }
.data-table { --bs-table-bg: transparent; color: var(--ink); font-size: .84rem; }
.data-table thead th { background: #f5f7fb; border-bottom: 1px solid var(--line); color: #5e6c84; font-family: "Manrope", sans-serif; font-size: .67rem; letter-spacing: .06em; padding: 12px 14px; text-transform: uppercase; white-space: nowrap; }
.data-table tbody td { border-color: #edf0f4; max-width: 300px; padding: 13px 14px; vertical-align: middle; }
.data-table tbody tr:hover { background: #fafcff; }
.status-badge { border-radius: 999px; display: inline-block; font-size: .69rem; font-weight: 800; padding: 5px 9px; text-transform: capitalize; white-space: nowrap; }
.status-badge.success { background: #e5f7ed; color: #137346; }.status-badge.warning { background: #fff4d4; color: #8a6100; }.status-badge.danger { background: #ffe8eb; color: #a62836; }.status-badge.muted { background: #eef1f5; color: #5f6e84; }
.pagination-wrap { border-top: 1px solid var(--line); display: flex; justify-content: flex-end; margin: 18px -22px -22px; padding: 16px 22px; }
.page-link { border-color: #e0e6ef; color: #3d4d69; font-size: .8rem; }.page-item.active .page-link { background: var(--primary); border-color: var(--primary); }
.table-user { align-items: center; display: flex; gap: 10px; min-width: 210px; }.table-user strong, .table-user small { display: block; }.table-user small { color: var(--muted); }
.modal-content { border-radius: 16px; }.modal-header, .modal-footer { border-color: var(--line); }
.permission-card { padding: 20px; }.permission-group { border-top: 1px solid var(--line); padding: 16px 0 6px; }.permission-group-title { color: #8592a8; font-size: .65rem; font-weight: 800; letter-spacing: .1em; margin-bottom: 8px; }.permission-row { align-items: center; cursor: pointer; display: flex; justify-content: space-between; padding: 8px 0; }.permission-row strong, .permission-row small { display: block; }.permission-row strong { font-size: .83rem; }.permission-row small { color: var(--muted); font-size: .67rem; }.permission-row .form-check-input { height: 1.15rem; width: 1.15rem; }
.form-section-title { font-size: .95rem; font-weight: 800; }.smtp-hint { align-items: flex-start; background: #f3f7ff; border-radius: 12px; color: #53627b; display: flex; font-size: .8rem; gap: 10px; margin-top: 20px; padding: 14px; }

/* User profile */
.profile-photo-card { align-items: center; display: flex; flex-direction: column; text-align: center; }
.profile-photo-card h3 { font-size: 1.15rem; font-weight: 800; margin: 17px 0 3px; }
.profile-photo-card > p { color: var(--muted); font-size: .82rem; margin-bottom: 10px; }
.profile-avatar-preview { align-items: center; background: linear-gradient(145deg, #132e67, #3479ff); border: 5px solid #eef3fb; border-radius: 24px; color: #fff; display: flex; font-family: "Manrope", sans-serif; font-size: 2rem; font-weight: 800; height: 132px; justify-content: center; overflow: hidden; width: 132px; }
.profile-avatar-preview img { height: 100%; object-fit: cover; width: 100%; }

/* Master data */
.master-table-card { padding: 22px; position: relative; }
.master-toolbar { margin-bottom: 18px; padding-right: 92px; }
.master-filter-group { align-items: end; display: flex; flex-wrap: wrap; gap: 9px; }
.master-search { min-width: 220px; position: relative; width: min(330px, 100%); }
.master-search i { color: #8693a9; left: 14px; position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; }
.master-search input { padding-left: 40px; }
.master-date-field { min-width: 165px; }
.master-date-field label { color: #66758c; display: block; font-size: .62rem; font-weight: 800; margin: 0 0 5px 2px; }
.date-separator { color: var(--muted); font-size: .72rem; margin-bottom: 11px; }
.page-size-form { position: absolute; right: 22px; top: 22px; }
.page-size-form .form-select { font-size: .78rem; font-weight: 700; min-width: 78px; }
.master-table-wrap { border-top: 1px solid #edf0f4; }
.sort-link { align-items: center; color: inherit; display: inline-flex; gap: 6px; text-decoration: none; }
.sort-link i { color: #a0abc0; font-size: .62rem; }
.sort-link:hover, .sort-link.active { color: var(--primary); }
.sort-link.active i { color: var(--primary); }
.compact-table { font-size: .72rem; }
.compact-table thead th { font-size: .58rem; padding: 10px 9px; }
.compact-table tbody td { max-width: 230px; padding: 10px 9px; }
.compact-table .status-badge { font-size: .59rem; padding: 4px 7px; }
.data-table th.numeric-column, .data-table td.numeric-cell, .data-table td.numeric-cell > * { text-align: right !important; }
.data-table th.numeric-column .sort-link { justify-content: flex-end; width: 100%; }
.data-table td.numeric-cell > span { display: block; }
.table-footer { align-items: center; border-top: 1px solid var(--line); color: var(--muted); display: flex; font-size: .72rem; justify-content: space-between; margin: 18px -22px -22px; min-height: 68px; padding: 15px 22px; }
.pdf-column { text-align: center !important; width: 42px; }
.pdf-download { align-items: center; background: #fff0f1; border-radius: 8px; color: #dc3545; display: inline-flex; font-size: 1.05rem; height: 30px; justify-content: center; text-decoration: none; transition: .15s ease; width: 30px; }
.pdf-download:hover { background: #dc3545; color: #fff; transform: translateY(-1px); }

/* Dashboard analytics */
.invoice-chart-card .panel-heading { margin-bottom: 8px; }
.invoice-chart-heading { gap: 18px; }
.chart-filter { align-items: flex-end; display: flex; flex: 0 0 auto; gap: 8px; }
.chart-filter label { margin: 0; }
.chart-filter label > span { color: #66758c; display: block; font-size: .6rem; font-weight: 800; margin: 0 0 4px 2px; text-transform: uppercase; }
.chart-filter .form-select { background-color: #f8faff; font-size: .72rem; font-weight: 700; min-height: 36px; padding-bottom: .4rem; padding-top: .4rem; }
.chart-filter label:first-child .form-select { min-width: 120px; }
.chart-filter label:last-of-type .form-select { min-width: 88px; }
.invoice-chart-wrap { height: 310px; position: relative; }
.invoice-chart-wrap.chart-error::after { align-items: center; background: #f8faff; color: var(--muted); content: "Grafik tidak dapat dimuat."; display: flex; inset: 0; justify-content: center; position: absolute; }
.dashboard-row { margin-bottom: 2px; }
.numeric-value { font-variant-numeric: tabular-nums; }
.aging-card .panel-heading { margin-bottom: 14px; }
.aging-grid { display: grid; gap: 10px; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.aging-bucket { background: #f7f9fc; border: 1px solid #e8edf4; border-radius: 12px; min-width: 0; padding: 13px 12px 11px; }
.aging-bucket > span:first-child { color: var(--muted); display: block; font-size: .68rem; font-weight: 800; }
.aging-bucket strong { display: block; font-family: "Manrope", sans-serif; font-size: clamp(.68rem, .8vw, .82rem); margin-top: 7px; overflow: hidden; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.aging-bar { background: #e6ebf3; border-radius: 99px; display: block; height: 4px; margin-top: 10px; overflow: hidden; }
.aging-fill { border-radius: inherit; display: block; height: 100%; min-width: 2px; }
.aging-fill-blue { background: #1769ff; }
.aging-fill-green { background: #188e5d; }
.ranking-row { margin-bottom: 2px; }
.ranking-card .panel-heading { margin-bottom: 10px; }
.ranking-list { display: grid; }
.ranking-item { align-items: center; border-top: 1px solid #edf0f4; display: flex; gap: 11px; min-height: 52px; padding: 8px 0; }
.ranking-item:first-child { border-top: 0; }
.ranking-number { align-items: center; background: #edf3ff; border-radius: 9px; color: var(--primary); display: inline-flex; flex: 0 0 auto; font-family: "Manrope", sans-serif; font-size: .72rem; font-weight: 800; height: 30px; justify-content: center; width: 30px; }
.ranking-copy { flex: 1; min-width: 0; }
.ranking-copy strong, .ranking-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ranking-copy strong { font-size: .79rem; }.ranking-copy small { color: var(--muted); font-size: .65rem; margin-top: 2px; }
.ranking-value { color: #152544; flex: 0 0 auto; font-family: "Manrope", sans-serif; font-size: .75rem; font-weight: 800; text-align: right; white-space: nowrap; }

/* Import */
.import-card .panel-heading { margin-bottom: 22px; }
.upload-drop { position: relative; }
.upload-drop:focus-visible { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(23,105,255,.12); outline: 0; }
.upload-drop.is-dragover { background: #eaf2ff; border-color: var(--primary); box-shadow: 0 12px 28px rgba(23,105,255,.12); transform: translateY(-2px); }
.upload-drop.is-disabled { cursor: wait; opacity: .65; pointer-events: none; }
.upload-drop { align-items: center; background: #f8faff; border: 1.5px dashed #aac2ee; border-radius: 14px; cursor: pointer; display: flex; flex-direction: column; margin-bottom: 16px; min-height: 190px; padding: 28px; text-align: center; transition: .18s ease; }.upload-drop:hover { background: #f1f6ff; border-color: var(--primary); }.upload-drop input { height: 1px; opacity: 0; position: absolute; width: 1px; }.upload-icon { align-items: center; background: #e4edff; border-radius: 14px; color: var(--primary); display: flex; font-size: 1.7rem; height: 58px; justify-content: center; margin-bottom: 13px; width: 58px; }.upload-drop strong, .upload-drop small { display: block; }.upload-drop small { color: var(--muted); margin-top: 5px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.expected-files { display: grid; gap: 6px; grid-template-columns: 1fr 1fr; margin: 2px 0 16px; }
.expected-files span { align-items: center; background: #f5f7fb; border: 1px solid #e7ebf2; border-radius: 8px; color: #596983; display: flex; font-size: .67rem; gap: 6px; min-width: 0; overflow: hidden; padding: 7px 8px; text-overflow: ellipsis; white-space: nowrap; }
.expected-files i { color: #198757; flex: 0 0 auto; }
.selected-files { display: grid; gap: 8px; margin: -2px 0 14px; }
.selected-file { align-items: center; background: #f8faff; border: 1px solid #e1e7f0; border-radius: 11px; display: flex; gap: 10px; padding: 10px; }
.selected-file-icon { align-items: center; background: #e8f6ef; border-radius: 8px; color: #198757; display: flex; flex: 0 0 auto; height: 36px; justify-content: center; width: 36px; }
.selected-file-copy { flex: 1; min-width: 0; }
.selected-file-copy strong, .selected-file-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.selected-file-copy strong { font-size: .78rem; }
.selected-file-copy small { color: var(--muted); font-size: .66rem; margin-top: 2px; }
.selected-file-status { background: #eaf0ff; border-radius: 999px; color: #2458bd; flex: 0 0 auto; font-size: .65rem; font-weight: 800; padding: 5px 8px; }
.selected-file.is-completed .selected-file-status { background: #e5f7ed; color: #137346; }
.selected-file.is-failed { background: #fff8f8; border-color: #f2cdd2; }
.selected-file.is-failed .selected-file-icon { background: #ffe8eb; color: #b52d3e; }
.selected-file.is-failed .selected-file-status { background: #ffe8eb; color: #a62836; }
.import-note { align-items: flex-start; background: #fff8e7; border-radius: 10px; color: #71540e; display: flex; font-size: .78rem; gap: 9px; margin-bottom: 16px; padding: 12px; }
.import-progress { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 22px; }.progress { background: #e8edf5; height: 10px; }.progress-bar { background: linear-gradient(90deg, #1769ff, #6d58e8); }
.import-stats { display: grid; gap: 8px; grid-template-columns: repeat(4, 1fr); margin-top: 18px; text-align: center; }.import-stats div { background: #f7f9fc; border-radius: 10px; padding: 10px 4px; }.import-stats span, .import-stats small { display: block; }.import-stats span { font-family: "Manrope", sans-serif; font-size: 1.05rem; font-weight: 800; }.import-stats small { color: var(--muted); font-size: .66rem; }
.job-list { display: grid; gap: 4px; }.job-item { align-items: flex-start; border-bottom: 1px solid #edf0f4; display: flex; gap: 13px; padding: 14px 0; }.job-item:last-child { border-bottom: 0; }.job-icon { align-items: center; background: #e9f7f0; border-radius: 10px; color: #198757; display: flex; flex: 0 0 auto; font-size: 1.2rem; height: 42px; justify-content: center; width: 42px; }.job-main { flex: 1; min-width: 0; }.job-main > small { color: var(--muted); display: block; font-size: .7rem; margin-top: 2px; }.job-progress { background: #e9edf3; border-radius: 99px; height: 5px; margin-top: 9px; overflow: hidden; }.job-progress span { background: var(--primary); display: block; height: 100%; }.job-counts { color: #66758d; display: flex; font-size: .68rem; gap: 14px; margin-top: 5px; }
.error-page { align-items: center; display: flex; flex-direction: column; justify-content: center; min-height: 65vh; text-align: center; }.error-code { background: linear-gradient(135deg, #1769ff, #714de0); background-clip: text; color: transparent; font-family: "Manrope", sans-serif; font-size: 6rem; font-weight: 800; letter-spacing: -.08em; }.error-page p { color: var(--muted); margin-bottom: 24px; }

@media (max-width: 1399.98px) { .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 991.98px) {
  .auth-shell { display: block; }.auth-story { display: none; }.auth-workspace { min-height: 100vh; padding: 28px 18px; }
  .app-frame { margin-left: 0; }.app-topbar { left: 0; padding: 0 18px; }.app-content { padding: 22px 18px 48px; }.app-footer { left: 0; padding-inline: 18px; }
}
@media (max-width: 767.98px) {
  .topbar-title span { display: none; }.topbar-title h1 { font-size: .95rem; }.app-topbar { height: 70px; }.app-frame { padding-top: 70px; }
  .page-head, .welcome-banner { align-items: flex-start; flex-direction: column; gap: 18px; }.welcome-banner { min-height: auto; padding: 22px; }
  .kpi-grid { grid-template-columns: 1fr; }.kpi-card { min-height: 95px; }.panel-card { padding: 17px; }.quick-grid { grid-template-columns: 1fr 1fr; }
  .table-toolbar { align-items: flex-start; flex-direction: column; gap: 12px; }.search-form { flex-wrap: wrap; }.search-form input { width: calc(100% - 0px); }
  .pagination-wrap { margin: 18px -17px -17px; padding: 14px 17px; }.pagination { flex-wrap: wrap; }
  .master-table-card { padding: 17px; }.master-toolbar { padding-right: 0; }.master-filter-group { align-items: stretch; flex-direction: column; }.master-search, .master-date-field { min-width: 0; width: 100%; }.date-separator { display: none; }.page-size-form { margin-bottom: 14px; position: static; }.page-size-form .form-select { margin-left: auto; width: 82px; }.table-footer { align-items: flex-start; flex-direction: column; gap: 12px; margin: 18px -17px -17px; padding: 14px 17px; }
  .invoice-chart-heading { align-items: stretch; flex-direction: column; }.chart-filter { width: 100%; }.chart-filter label { flex: 1; }.chart-filter .form-select { min-width: 0 !important; width: 100%; }
  .invoice-chart-wrap { height: 260px; }.ranking-value { font-size: .68rem; }.aging-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.aging-bucket:last-child { grid-column: 1 / -1; }
  .import-stats { grid-template-columns: 1fr 1fr; }.job-item { flex-wrap: wrap; }.resume-import { margin-left: 55px; }
}
@media (max-width: 420px) { .auth-card { padding: 25px 20px; }.quick-grid { grid-template-columns: 1fr; }.topbar-actions { gap: 2px; }.user-avatar { height: 40px; width: 40px; } }
