/* =====================================================================
   Chit Fund Management — application styles
   One set of tokens drives every colour, radius and shadow below.
   ===================================================================== */
:root {
    --brand-900: #0b1d45;
    --brand-800: #102a63;
    --brand-700: #1d4ed8;
    --brand-600: #2563eb;
    --brand-500: #3b82f6;
    --brand-100: #dbeafe;
    --brand-50:  #eff6ff;
    --gold-500:  #f59e0b;
    --gold-100:  #fef3c7;

    --success: #059669; --success-bg: #d1fae5;
    --warning: #c2410c; --warning-bg: #ffedd5;
    --danger:  #dc2626; --danger-bg:  #fee2e2;
    --info:    #0e7490; --info-bg:    #cffafe;
    --violet:  #7c3aed; --violet-bg:  #ede9fe;

    --bg: #f3f6fb;
    --surface: #ffffff;
    --surface-2: #f8fafd;
    --border: #e4e9f2;
    --text: #0f172a;
    --text-2: #334155;
    --muted: #64748b;

    --radius: 16px;
    --radius-sm: 10px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);
    --shadow: 0 1px 3px rgba(15, 23, 42, .06), 0 6px 18px -6px rgba(15, 23, 42, .08);
    --shadow-lg: 0 24px 60px -12px rgba(15, 23, 42, .28);

    --sidebar-w: 264px;
    --sidebar-mini: 78px;
    --topbar-h: 72px;

    --bs-primary: var(--brand-600);
    --bs-primary-rgb: 37, 99, 235;
    --bs-body-font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --bs-body-color: var(--text);
    --bs-body-bg: var(--bg);
    --bs-border-color: var(--border);
    --bs-link-color: var(--brand-600);
    --bs-link-color-rgb: 37, 99, 235;
}

html, body { background: var(--bg); }
body { font-size: 14.5px; color: var(--text); -webkit-font-smoothing: antialiased; }
a { text-decoration: none; }
.text-muted { color: var(--muted) !important; }
.fw-800 { font-weight: 800; }
.money { font-variant-numeric: tabular-nums; white-space: nowrap; }
.small-caps { text-transform: uppercase; letter-spacing: .06em; font-size: 11px; font-weight: 700; color: var(--muted); }

/* ---------------- Sidebar ---------------- */
.app-sidebar {
    position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w); z-index: 1040;
    display: flex; flex-direction: column;
    background: radial-gradient(120% 60% at 0% 0%, #1b3b85 0%, transparent 60%), linear-gradient(180deg, var(--brand-900), #0a1736);
    color: #c7d2fe; transition: width .2s ease, transform .25s ease;
}
.sidebar-brand { display: flex; align-items: center; gap: 12px; padding: 18px 18px 16px; border-bottom: 1px solid rgba(255,255,255,.07); min-height: var(--topbar-h); }
.brand-mark { width: 40px; height: 40px; flex: none; filter: drop-shadow(0 6px 14px rgba(37, 99, 235, .45)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand-text strong { color: #fff; font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-text small { color: #93a4cf; font-size: 12px; }
.sidebar-pin { margin-left: auto; border: 0; background: rgba(255,255,255,.06); color: #a5b4fc; width: 30px; height: 30px; border-radius: 8px; align-items: center; justify-content: center; }
.sidebar-pin:hover { background: rgba(255,255,255,.12); color: #fff; }

.sidebar-nav { flex: 1; overflow-y: auto; padding: 10px 12px 16px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.15) transparent; }
.nav-label { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: #6f80ad; font-weight: 700; padding: 18px 12px 6px; }
.nav-link-item {
    display: flex; align-items: center; gap: 12px; padding: 9px 12px; margin: 2px 0; border-radius: 12px;
    color: #c7d2fe; font-weight: 500; position: relative; transition: background .15s, color .15s;
}
.nav-link-item i { font-size: 18px; width: 22px; text-align: center; color: #8ea2d8; transition: color .15s; }
.nav-text { display: flex; flex-direction: column; line-height: 1.15; white-space: nowrap; }
.nav-link-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-link-item:hover i { color: #fff; }
.nav-link-item.active { background: linear-gradient(90deg, var(--brand-600), #3b6ff0); color: #fff; box-shadow: 0 8px 20px -8px rgba(37, 99, 235, .8); }
.nav-link-item.active i { color: #e0e7ff; }

.sidebar-user { display: flex; align-items: center; gap: 10px; margin: 12px; padding: 10px; border-radius: 14px; background: rgba(255,255,255,.05); }
.user-meta { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.user-meta strong { color: #fff; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-meta small { color: #8ea2d8; font-size: 11.5px; }
.logout-btn { margin-left: auto; color: #8ea2d8; font-size: 18px; padding: 4px 6px; border-radius: 8px; }
.logout-btn:hover { color: #fff; background: rgba(255,255,255,.1); }

/* Collapsed (desktop) */
html.sidebar-mini .app-sidebar { width: var(--sidebar-mini); }
html.sidebar-mini .brand-text, html.sidebar-mini .nav-text, html.sidebar-mini .nav-label, html.sidebar-mini .user-meta, html.sidebar-mini .logout-btn { display: none; }
html.sidebar-mini .sidebar-brand { justify-content: center; padding: 16px 8px; flex-direction: column; }
html.sidebar-mini .sidebar-pin { margin: 6px 0 0; transform: rotate(180deg); }
html.sidebar-mini .nav-link-item { justify-content: center; padding: 11px; }
html.sidebar-mini .nav-link-item:hover::after {
    content: attr(data-title); position: absolute; left: calc(100% + 12px); top: 50%; transform: translateY(-50%);
    background: var(--brand-900); color: #fff; padding: 6px 10px; border-radius: 8px; font-size: 12.5px; white-space: nowrap; box-shadow: var(--shadow-lg); z-index: 10;
}
html.sidebar-mini .sidebar-user { justify-content: center; }
html.sidebar-mini .app-main { margin-left: var(--sidebar-mini); }

/* ---------------- Main / Topbar ---------------- */
.app-main { margin-left: var(--sidebar-w); min-height: 100vh; display: flex; flex-direction: column; transition: margin-left .2s ease; }
.app-topbar {
    position: sticky; top: 0; z-index: 1020; height: var(--topbar-h);
    display: flex; align-items: center; gap: 16px; padding: 0 28px;
    background: rgba(243, 246, 251, .82); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid rgba(228, 233, 242, .7);
}
.topbar-burger { border: 0; background: var(--surface); width: 40px; height: 40px; border-radius: 12px; font-size: 22px; box-shadow: var(--shadow-sm); }
.topbar-title { min-width: 0; }
.topbar-title h1 { font-size: 20px; font-weight: 800; margin: 0; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-title p { margin: 0; color: var(--muted); font-size: 12.5px; }
.topbar-search { position: relative; width: 320px; margin-left: auto; }
.topbar-search > i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); z-index: 2; pointer-events: none; }
.topbar-search .select2-container .select2-selection--single { height: 42px; border-radius: 12px; padding-left: 30px; background: var(--surface); }
.topbar-search .select2-container .select2-selection__rendered { line-height: 40px; color: var(--muted); }
.topbar-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.topbar-search + .topbar-actions { margin-left: 0; }
.topbar-user { display: flex; align-items: center; gap: 8px; border: 1px solid var(--border); background: var(--surface); padding: 4px 10px 4px 4px; border-radius: 999px; font-weight: 600; font-size: 13.5px; color: var(--text); }
.topbar-user:hover { border-color: #cbd5e1; }
.dropdown-menu { border: 1px solid var(--border); border-radius: 14px; padding: 6px; }
.dropdown-item { border-radius: 9px; padding: 8px 12px; font-weight: 500; }
.dropdown-header { white-space: normal; color: var(--text); }

.app-content { padding: 24px 28px 40px; flex: 1; }
.app-footer { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 28px 22px; color: var(--muted); font-size: 12.5px; }
.demo-tag { color: #92400e; background: var(--gold-100); padding: 3px 10px; border-radius: 999px; }

/* ---------------- Avatars ---------------- */
.avatar { width: 38px; height: 38px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; flex: none; letter-spacing: .02em; }
.avatar-sm { width: 30px; height: 30px; border-radius: 50%; font-size: 11.5px; }
.avatar-lg { width: 64px; height: 64px; border-radius: 18px; font-size: 22px; }
.tone-0 { background: #dbeafe; color: #1d4ed8; } .tone-1 { background: #dcfce7; color: #15803d; }
.tone-2 { background: #fef3c7; color: #b45309; } .tone-3 { background: #fce7f3; color: #be185d; }
.tone-4 { background: #ede9fe; color: #6d28d9; } .tone-5 { background: #cffafe; color: #0e7490; }
.sidebar-user .avatar { background: rgba(255,255,255,.12); color: #fff; }

/* ---------------- Cards ---------------- */
.card { border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); background: var(--surface); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 0; flex-wrap: wrap; }
.card-head h3 { font-size: 16px; font-weight: 700; margin: 0; display: flex; align-items: center; gap: 8px; }
.card-head h3 i { color: var(--brand-600); }
.card-head .sub { color: var(--muted); font-size: 12.5px; margin: 2px 0 0; }
.card-body-pad { padding: 18px 20px 20px; }

/* KPI tiles */
.kpi { padding: 18px 20px; display: flex; flex-direction: row; gap: 14px; align-items: flex-start; height: 100%; position: relative; overflow: hidden; }
.kpi-icon { width: 48px; height: 48px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; font-size: 22px; flex: none; }
.kpi-label { color: var(--muted); font-size: 13px; font-weight: 600; }
.kpi-value { font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; margin-top: 2px; font-variant-numeric: tabular-nums; }
.kpi-foot { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.kpi-foot b { color: var(--text-2); }
a.kpi-link { color: inherit; display: block; height: 100%; }
a.kpi-link .card { transition: transform .15s, box-shadow .15s; }
a.kpi-link:hover .card { transform: translateY(-2px); box-shadow: 0 12px 30px -12px rgba(15, 23, 42, .25); }
.ic-blue { background: var(--brand-50); color: var(--brand-600); }
.ic-green { background: var(--success-bg); color: var(--success); }
.ic-gold { background: var(--gold-100); color: #b45309; }
.ic-red { background: var(--danger-bg); color: var(--danger); }
.ic-violet { background: var(--violet-bg); color: var(--violet); }
.ic-cyan { background: var(--info-bg); color: var(--info); }

/* Welcome hero */
.hero {
    border-radius: 20px; padding: 24px 26px; color: #fff; position: relative; overflow: hidden; border: 0;
    background: radial-gradient(80% 140% at 100% 0%, rgba(245, 158, 11, .35) 0%, transparent 55%), linear-gradient(120deg, #102a63 0%, #1d4ed8 60%, #3b82f6 100%);
    box-shadow: 0 20px 40px -18px rgba(29, 78, 216, .6);
}
.hero::after { content: ''; position: absolute; right: -60px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%; border: 40px solid rgba(255,255,255,.06); }
.hero h2 { font-size: 22px; font-weight: 800; margin: 0 0 4px; }
.hero p { margin: 0; color: #dbeafe; }
.hero .hero-date { color: #fde68a; font-size: 13px; font-weight: 600; }
.task-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; position: relative; z-index: 1; }
.task-chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 12px; background: rgba(255,255,255,.12); color: #fff; font-weight: 600; font-size: 13px; border: 1px solid rgba(255,255,255,.16); transition: background .15s; }
.task-chip:hover { background: rgba(255,255,255,.22); color: #fff; }
.task-chip b { background: #fff; color: var(--brand-700); border-radius: 8px; padding: 1px 8px; font-size: 12.5px; }
.task-chip.warn b { background: #fde68a; color: #92400e; }
.task-chip.alert b { background: #fecaca; color: #991b1b; }

/* ---------------- Buttons ---------------- */
.btn { border-radius: 11px; font-weight: 600; padding: 8px 16px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; font-size: 14px; }
.btn-sm { padding: 6px 12px; font-size: 13px; border-radius: 9px; }
.btn-lg { padding: 12px 22px; font-size: 15.5px; border-radius: 13px; }
.btn-primary { background: linear-gradient(180deg, #3b74f0, var(--brand-600)); border-color: var(--brand-600); box-shadow: 0 6px 14px -6px rgba(37, 99, 235, .7), inset 0 1px 0 rgba(255,255,255,.18); }
.btn-primary:hover, .btn-primary:focus { background: var(--brand-700); border-color: var(--brand-700); }
.btn-success { background: linear-gradient(180deg, #10b981, var(--success)); border-color: var(--success); box-shadow: 0 6px 14px -6px rgba(5, 150, 105, .7); }
.btn-gold { background: linear-gradient(180deg, #fbbf24, var(--gold-500)); border: 1px solid #e59a0a; color: #451a03; box-shadow: 0 6px 14px -6px rgba(245, 158, 11, .8); }
.btn-gold:hover { color: #451a03; filter: brightness(1.04); }
.btn-light { background: var(--surface); border: 1px solid var(--border); color: var(--text-2); }
.btn-light:hover { background: var(--surface-2); border-color: #cbd5e1; }
.btn-soft { background: var(--brand-50); color: var(--brand-700); border: 1px solid transparent; }
.btn-soft:hover { background: var(--brand-100); color: var(--brand-700); }
.btn-soft-danger { background: var(--danger-bg); color: var(--danger); border: 1px solid transparent; }
.btn-soft-danger:hover { background: #fecaca; color: #b91c1c; }
.btn-soft-success { background: var(--success-bg); color: var(--success); border: 1px solid transparent; }
.btn-soft-success:hover { background: #a7f3d0; color: #047857; }
.btn-icon { width: 34px; height: 34px; padding: 0; border-radius: 10px; }
.btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-loading::after { content: ''; position: absolute; width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,.5); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.btn-light.is-loading::after { border-color: rgba(15,23,42,.2); border-top-color: var(--brand-600); }
@keyframes spin { to { transform: rotate(360deg); } }
.row-actions { display: inline-flex; gap: 6px; }

/* ---------------- Pills ---------------- */
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.pill-success { background: var(--success-bg); color: #047857; }
.pill-warning { background: var(--warning-bg); color: var(--warning); }
.pill-danger { background: var(--danger-bg); color: #b91c1c; }
.pill-info { background: var(--info-bg); color: var(--info); }
.pill-primary { background: var(--brand-100); color: var(--brand-700); }
.pill-muted { background: #eef2f7; color: var(--muted); }
.tag { display: inline-block; padding: 2px 8px; border-radius: 7px; background: #eef2f7; color: var(--text-2); font-size: 12px; font-weight: 600; }
.tag-gold { background: var(--gold-100); color: #92400e; }
.tag-blue { background: var(--brand-50); color: var(--brand-700); }

/* ---------------- Filter strip & toolbars ---------------- */
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar .spacer { flex: 1; }
.filter-card { padding: 14px 16px; margin-bottom: 16px; }
.filter-card .form-label { font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 4px; text-transform: uppercase; letter-spacing: .04em; }
.search-box { position: relative; }
.search-box i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search-box .form-control { padding-left: 36px; }
.segmented { display: inline-flex; background: #e9eef6; padding: 4px; border-radius: 12px; gap: 2px; flex-wrap: wrap; }
.segmented button, .segmented a { border: 0; background: transparent; padding: 7px 14px; border-radius: 9px; font-weight: 600; font-size: 13px; color: var(--muted); }
.segmented .active { background: var(--surface); color: var(--brand-700); box-shadow: var(--shadow-sm); }

/* Summary strip above tables */
.summary-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 16px; }
.summary-item { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow-sm); }
.summary-item span { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
.summary-item strong { font-size: 19px; font-weight: 800; font-variant-numeric: tabular-nums; }

/* ---------------- Forms ---------------- */
.form-control, .form-select { border-radius: 11px; border-color: #d8dfeb; padding: 9px 13px; font-size: 14.5px; }
.form-control:focus, .form-select:focus { border-color: var(--brand-500); box-shadow: 0 0 0 4px rgba(59, 130, 246, .15); }
.form-control-sm, .form-select-sm { padding: 6px 11px; font-size: 13.5px; border-radius: 9px; }
.form-label { font-weight: 600; font-size: 13.5px; color: var(--text-2); margin-bottom: 6px; }
.form-label .req { color: var(--danger); }
.form-label .opt { color: var(--muted); font-weight: 400; font-size: 12px; }
.form-hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.field-error { display: none; font-size: 12.5px; color: var(--danger); margin-top: 5px; font-weight: 500; }
.has-error .form-control, .has-error .form-select, .has-error .select2-selection { border-color: var(--danger) !important; }
.has-error .field-error { display: block; }
.input-group-text { border-radius: 11px; background: var(--surface-2); border-color: #d8dfeb; font-weight: 600; color: var(--muted); }
.form-section { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--brand-700); margin: 6px 0 12px; display: flex; align-items: center; gap: 8px; }
.form-section::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.form-check-input:checked { background-color: var(--brand-600); border-color: var(--brand-600); }

/* Choice cards (radio as big buttons) */
.choice-group { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice label { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1.5px solid #d8dfeb; border-radius: 12px; cursor: pointer; font-weight: 600; font-size: 13.5px; background: var(--surface); transition: all .12s; }
.choice label:hover { border-color: var(--brand-500); }
.choice input:checked + label { border-color: var(--brand-600); background: var(--brand-50); color: var(--brand-700); box-shadow: 0 0 0 3px rgba(59, 130, 246, .15); }
.choice input:focus-visible + label { outline: 2px solid var(--brand-500); outline-offset: 2px; }

/* Account picker cards inside the collection popup */
.account-list { display: grid; gap: 10px; }
.account-card { position: relative; }
.account-card input { position: absolute; opacity: 0; }
.account-card label { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 14px; cursor: pointer; transition: all .12s; background: var(--surface); }
.account-card label:hover { border-color: var(--brand-500); }
.account-card input:checked + label { border-color: var(--brand-600); background: var(--brand-50); box-shadow: 0 0 0 3px rgba(59, 130, 246, .15); }
.account-card .acc-radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #cbd5e1; position: relative; }
.account-card input:checked + label .acc-radio { border-color: var(--brand-600); }
.account-card input:checked + label .acc-radio::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--brand-600); }
.acc-title { font-weight: 700; }
.acc-meta { font-size: 12.5px; color: var(--muted); }
.acc-due { text-align: right; }
.acc-due strong { display: block; font-size: 16px; }
.acc-due small { font-size: 11.5px; color: var(--muted); }

/* Calculation panel (auction / payout preview) */
.calc-panel { background: linear-gradient(180deg, var(--brand-50), #fff); border: 1px solid var(--brand-100); border-radius: 14px; padding: 14px 16px; }
.calc-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; border-bottom: 1px dashed #d6e2fb; }
.calc-row:last-child { border-bottom: 0; }
.calc-row span { color: var(--text-2); }
.calc-row strong { font-variant-numeric: tabular-nums; }
.calc-row.total { font-size: 16px; padding-top: 10px; }
.calc-row.total strong { color: var(--success); font-size: 19px; }

/* ---------------- Tables ---------------- */
.table-card { padding: 4px 0 0; overflow: hidden; }
.table-card .card-head { padding-bottom: 12px; }
.table { margin: 0; --bs-table-bg: transparent; }
.table > :not(caption) > * > * { padding: 12px 14px; border-bottom-color: #edf1f7; vertical-align: middle; }
.table thead th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; background: var(--surface-2); border-bottom: 1px solid var(--border) !important; white-space: nowrap; }
.table tbody tr { transition: background .1s; }
.table-hover > tbody > tr:hover > * { --bs-table-accent-bg: #f6f9ff; }
.table td .cell-main { font-weight: 600; color: var(--text); }
.table td .cell-sub { font-size: 12.5px; color: var(--muted); }
.cell-person { display: flex; align-items: center; gap: 10px; min-width: 180px; }
.cell-person a { color: var(--text); font-weight: 600; }
.cell-person a:hover { color: var(--brand-600); }
.table tfoot td { font-weight: 800; background: var(--surface-2); }
.table-compact > :not(caption) > * > * { padding: 9px 12px; }
.text-end.money, td.money { text-align: right; }

/* DataTables */
div.dataTables_wrapper { padding: 0; }
div.dataTables_wrapper div.dataTables_length, div.dataTables_wrapper div.dataTables_filter { padding: 0 16px 12px; }
div.dataTables_wrapper div.dataTables_info, div.dataTables_wrapper div.dataTables_paginate { padding: 14px 16px; }
div.dataTables_wrapper div.dataTables_filter input { border-radius: 10px; padding: 6px 12px; width: 230px; margin-left: 8px; border: 1px solid #d8dfeb; }
div.dataTables_wrapper div.dataTables_length select { border-radius: 9px; }
.dataTables_wrapper .row { margin: 0; }
.dataTables_wrapper .row > * { padding: 0; }
.page-link { border-radius: 9px !important; margin: 0 2px; border: 0; color: var(--text-2); font-weight: 600; }
.page-item.active .page-link { background: var(--brand-600); }
table.dataTable { margin: 0 !important; width: 100% !important; }
table.dataTable td.dataTables_empty { padding: 48px 16px !important; color: var(--muted); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Empty states */
.empty-state { text-align: center; padding: 36px 16px; color: var(--muted); }
.empty-state i { font-size: 34px; color: #b9c4d8; display: block; margin-bottom: 6px; }
.empty-state p { margin: 0; }

/* ---------------- Lists on dashboard ---------------- */
.list-plain { list-style: none; margin: 0; padding: 0; }
.list-plain li { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-top: 1px solid #eef2f7; }
.list-plain li:first-child { border-top: 0; }
.list-plain .grow { flex: 1; min-width: 0; }
.list-plain .title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-plain .meta { font-size: 12.5px; color: var(--muted); }
.date-badge { width: 46px; flex: none; text-align: center; border-radius: 12px; background: var(--brand-50); color: var(--brand-700); padding: 5px 0; line-height: 1.05; }
.date-badge b { display: block; font-size: 17px; font-weight: 800; }
.date-badge small { font-size: 10.5px; text-transform: uppercase; font-weight: 700; }
.date-badge.today { background: var(--brand-600); color: #fff; }
.progress { height: 8px; border-radius: 99px; background: #eaf0f8; }
.progress-bar { border-radius: 99px; background: linear-gradient(90deg, var(--brand-500), var(--brand-700)); }
.progress-bar.good { background: linear-gradient(90deg, #34d399, var(--success)); }
.progress-bar.mid { background: linear-gradient(90deg, #fbbf24, #f59e0b); }

/* Profile header */
.profile-head { display: flex; gap: 18px; align-items: center; padding: 22px; flex-wrap: wrap; }
.profile-head h2 { font-size: 22px; font-weight: 800; margin: 0; }
.profile-meta { display: flex; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 13.5px; margin-top: 6px; }
.profile-meta span { display: inline-flex; align-items: center; gap: 6px; }
.profile-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px 20px; padding: 18px 20px 20px; }
.detail-grid dt { font-size: 12px; color: var(--muted); font-weight: 600; margin-bottom: 2px; }
.detail-grid dd { margin: 0; font-weight: 600; word-break: break-word; }
.nav-tabs-app { border: 0; gap: 4px; padding: 14px 16px 0; border-bottom: 1px solid var(--border); }
.nav-tabs-app .nav-link { border: 0; border-bottom: 2.5px solid transparent; color: var(--muted); font-weight: 700; padding: 10px 14px; border-radius: 0; font-size: 14px; }
.nav-tabs-app .nav-link.active { color: var(--brand-700); border-bottom-color: var(--brand-600); background: transparent; }
.nav-tabs-app .nav-link .count { background: #eef2f7; color: var(--muted); border-radius: 99px; padding: 1px 8px; font-size: 11.5px; margin-left: 4px; }
.nav-tabs-app .nav-link.active .count { background: var(--brand-100); color: var(--brand-700); }

/* Month grid on scheme page */
.month-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 6px; }
.month-cell { aspect-ratio: 1; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; background: #eef2f7; color: var(--muted); }
.month-cell.done { background: var(--brand-600); color: #fff; }
.month-cell.next { background: var(--gold-100); color: #92400e; outline: 2px solid var(--gold-500); }

/* ---------------- Modals ---------------- */
.app-modal .modal-content { border: 0; border-radius: 20px; box-shadow: var(--shadow-lg); overflow: hidden; }
.app-modal .modal-header { border-bottom: 1px solid var(--border); padding: 16px 20px; gap: 12px; background: linear-gradient(180deg, #fff, var(--surface-2)); }
.app-modal .modal-icon { width: 38px; height: 38px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--brand-50); color: var(--brand-600); font-size: 18px; flex: none; }
.app-modal .modal-title { font-weight: 800; font-size: 17px; margin: 0; }
.app-modal .modal-body { padding: 20px; }
.app-modal .modal-footer, .modal-actions { border-top: 1px solid var(--border); margin: 20px -20px -20px; padding: 14px 20px; display: flex; justify-content: flex-end; gap: 10px; background: var(--surface-2); position: sticky; bottom: -20px; z-index: 5; }
.modal-backdrop.show { opacity: .45; background: #0b1d45; }
.modal-loading { padding: 50px 0; text-align: center; color: var(--muted); }
.modal-loading .spinner-border { color: var(--brand-600); }

/* Receipt (popup + print) */
.receipt { max-width: 420px; margin: 0 auto; background: #fff; border: 1px dashed #cbd5e1; border-radius: 16px; padding: 20px; position: relative; }
.receipt-head { text-align: center; border-bottom: 1px dashed #cbd5e1; padding-bottom: 12px; margin-bottom: 12px; }
.receipt-head h4 { font-size: 17px; font-weight: 800; margin: 6px 0 2px; }
.receipt-head p { margin: 0; font-size: 12px; color: var(--muted); }
.receipt-amount { text-align: center; padding: 14px; margin: 12px 0; border-radius: 14px; background: var(--success-bg); color: #065f46; }
.receipt-amount small { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.receipt-amount strong { font-size: 30px; font-weight: 800; }
.receipt-row { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; padding: 5px 0; }
.receipt-row span { color: var(--muted); }
.receipt-row strong { text-align: right; }
.receipt-foot { text-align: center; font-size: 12px; color: var(--muted); border-top: 1px dashed #cbd5e1; padding-top: 10px; margin-top: 10px; }
.receipt.cancelled::after { content: 'CANCELLED'; position: absolute; top: 45%; left: 50%; transform: translate(-50%, -50%) rotate(-18deg); font-size: 44px; font-weight: 900; color: rgba(220, 38, 38, .18); border: 5px solid rgba(220, 38, 38, .18); padding: 4px 18px; border-radius: 12px; }
.success-burst { width: 64px; height: 64px; border-radius: 50%; background: var(--success-bg); color: var(--success); display: flex; align-items: center; justify-content: center; font-size: 34px; margin: 0 auto 8px; animation: pop .35s ease; }
@keyframes pop { 0% { transform: scale(.5); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

/* ---------------- Select2 ---------------- */
.select2-container { width: 100% !important; }
.select2-container .select2-selection--single { height: 42px; border: 1px solid #d8dfeb; border-radius: 11px; }
.select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 40px; padding-left: 13px; color: var(--text); }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 40px; right: 6px; }
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single { border-color: var(--brand-500); box-shadow: 0 0 0 4px rgba(59, 130, 246, .15); }
.select2-dropdown { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-lg); z-index: 1060; }
.select2-search--dropdown .select2-search__field { border-radius: 9px; padding: 7px 10px; border: 1px solid #d8dfeb; }
.select2-results__option { padding: 8px 12px; }
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable { background: var(--brand-600); }
.s2-cust { display: flex; align-items: center; gap: 10px; }
.s2-cust .avatar { width: 32px; height: 32px; font-size: 11.5px; border-radius: 10px; }
.s2-cust small { display: block; opacity: .75; font-size: 12px; }
.form-select-sm + .select2-container .select2-selection--single { height: 35px; border-radius: 9px; }
.form-select-sm + .select2-container .select2-selection__rendered { line-height: 33px !important; font-size: 13.5px; }
.form-select-sm + .select2-container .select2-selection__arrow { height: 33px !important; }

/* ---------------- Toastr & confirm ---------------- */
#toast-container > div { border-radius: 14px; box-shadow: var(--shadow-lg) !important; opacity: 1; padding: 15px 16px 15px 52px; font-family: var(--bs-body-font-family); width: 340px; background-position: 18px center; }
#toast-container > .toast-success { background-color: #065f46; }
#toast-container > .toast-error { background-color: #991b1b; }
#toast-container > .toast-info { background-color: var(--brand-800); }
#toast-container > .toast-warning { background-color: #9a3412; }
.toast-title { font-weight: 700; }
.jconfirm .jconfirm-box { border-radius: 20px !important; padding: 22px 22px 16px !important; font-family: var(--bs-body-font-family); box-shadow: var(--shadow-lg) !important; }
.jconfirm .jconfirm-box .jconfirm-title-c { font-weight: 800 !important; font-size: 19px !important; }
.jconfirm .jconfirm-box .jconfirm-content { color: var(--text-2); font-size: 14.5px; }
.jconfirm .jconfirm-box .jconfirm-buttons button { border-radius: 11px !important; font-weight: 700 !important; text-transform: none !important; padding: 9px 18px !important; }
.jconfirm.jconfirm-modern .jconfirm-box div.jconfirm-title-c .jconfirm-icon-c { font-size: 44px; }
.jconfirm .jconfirm-bg { background-color: #0b1d45 !important; }

/* ---------------- Floating collect button (mobile) ---------------- */
.fab-collect { display: none; position: fixed; right: 16px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 1030; border: 0; border-radius: 999px; padding: 14px 20px; gap: 8px; align-items: center; font-weight: 700; color: #fff; background: linear-gradient(180deg, #3b74f0, var(--brand-700)); box-shadow: 0 14px 30px -10px rgba(29, 78, 216, .8); }
.fab-collect i { font-size: 18px; }

/* ---------------- Responsive ---------------- */
@media (max-width: 991.98px) {
    .app-sidebar { transform: translateX(-100%); box-shadow: none; width: var(--sidebar-w) !important; }
    html.sidebar-mini .brand-text, html.sidebar-mini .nav-text, html.sidebar-mini .nav-label, html.sidebar-mini .user-meta, html.sidebar-mini .logout-btn { display: flex; }
    html.sidebar-mini .nav-label { display: block; }
    html.sidebar-mini .nav-link-item { justify-content: flex-start; padding: 9px 12px; }
    html.sidebar-mini .sidebar-brand { flex-direction: row; justify-content: flex-start; padding: 18px; }
    body.sidebar-open .app-sidebar { transform: translateX(0); box-shadow: var(--shadow-lg); }
    .sidebar-backdrop { position: fixed; inset: 0; background: rgba(11, 29, 69, .5); z-index: 1035; opacity: 0; pointer-events: none; transition: opacity .2s; }
    body.sidebar-open .sidebar-backdrop { opacity: 1; pointer-events: auto; }
    .app-main, html.sidebar-mini .app-main { margin-left: 0; }
    .app-topbar { padding: 0 16px; gap: 10px; }
    .app-content { padding: 18px 16px 90px; }
    .app-footer { padding: 12px 16px 90px; }
    .fab-collect { display: inline-flex; }
    .topbar-actions .btn .btn-label { display: none; }
}
@media (max-width: 575.98px) {
    .topbar-title h1 { font-size: 17px; }
    .kpi-value { font-size: 22px; }
    .profile-actions { margin-left: 0; width: 100%; }
    .modal-dialog { margin: .5rem; }
    .app-modal .modal-body { padding: 16px; }
    .app-modal .modal-footer, .modal-actions { margin: 16px -16px -16px; bottom: -16px; }
    div.dataTables_wrapper div.dataTables_filter input { width: 100%; margin-left: 0; }
    div.dataTables_wrapper div.dataTables_filter label { width: 100%; }
}

/* ---------------- Print ---------------- */
@media print {
    .app-sidebar, .app-topbar, .app-footer, .fab-collect, .no-print, .toolbar, .filter-card, .dataTables_length, .dataTables_filter, .dataTables_paginate, .dataTables_info { display: none !important; }
    .app-main { margin: 0 !important; }
    .app-content { padding: 0 !important; }
    .card { box-shadow: none !important; border: 0 !important; }
    body { background: #fff !important; font-size: 12px; }
    .print-only { display: block !important; }
    .table thead th { background: #f1f5f9 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.print-only { display: none; }

/* Dates and short codes never wrap mid-value in tables. */
.table td[data-order], .table td.nowrap { white-space: nowrap; }
@media (max-width: 575.98px) {
    .kpi { flex-direction: column; gap: 10px; padding: 14px; }
    .kpi-icon { width: 38px; height: 38px; font-size: 18px; border-radius: 11px; }
    .kpi-value { font-size: 19px; word-break: break-word; }
    .kpi-label, .kpi-foot { font-size: 12px; }
}

/* =====================================================================
   Login — full-screen illustrated background with a glass sign-in card
   ===================================================================== */
.lg-page { min-height: 100vh; margin: 0; color: #fff; overflow-x: hidden;
    background: radial-gradient(60% 60% at 20% 30%, #1d4ed8 0%, transparent 70%), radial-gradient(50% 50% at 90% 90%, #7c3aed55 0%, transparent 70%), linear-gradient(135deg, #071739 0%, #0b2a6b 50%, #0a1f52 100%); }
.lg-bg { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
.lg-bg::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.12) 1px, transparent 1px); background-size: 26px 26px; mask-image: radial-gradient(ellipse at 35% 45%, #000 20%, transparent 75%); }
.lg-orb { position: absolute; border-radius: 50%; filter: blur(70px); }
.orb-1 { width: 420px; height: 420px; background: #3b82f6; opacity: .45; top: -120px; left: -80px; animation: drift 16s ease-in-out infinite; }
.orb-2 { width: 360px; height: 360px; background: #f59e0b; opacity: .22; bottom: -120px; left: 30%; animation: drift 20s ease-in-out infinite reverse; }
.orb-3 { width: 300px; height: 300px; background: #22d3ee; opacity: .18; top: 20%; right: -80px; animation: drift 18s ease-in-out infinite; }
@keyframes drift { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(40px, 30px); } }

.lg-shell { position: relative; z-index: 1; min-height: 100vh; display: grid; grid-template-columns: 1.25fr 1fr; align-items: center; gap: 24px; max-width: 1280px; margin: 0 auto; padding: 32px 40px; }

.lg-visual { display: flex; flex-direction: column; align-items: center; text-align: center; }
.lg-brand { align-self: flex-start; display: flex; align-items: center; gap: 12px; font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.lg-brand img { filter: drop-shadow(0 8px 18px rgba(59,130,246,.55)); }
.lg-art { position: relative; width: 100%; max-width: 580px; margin: 10px auto 0; }
.lg-illustration { width: 100%; height: auto; display: block; animation: floaty 7s ease-in-out infinite; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.lg-chip { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px 10px 10px; border-radius: 999px; font-weight: 700; font-size: 14px; color: #0f172a; background: rgba(255,255,255,.95); box-shadow: 0 16px 34px -12px rgba(2,6,23,.6); animation: floaty 6s ease-in-out infinite; }
.lg-chip i { width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; color: #fff; }
.chip-1 { top: 6%; left: -2%; } .chip-1 i { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.chip-2 { top: 40%; right: -6%; animation-delay: -1.5s; } .chip-2 i { background: linear-gradient(135deg, #fbbf24, #d97706); }
.chip-3 { bottom: 4%; left: 30%; animation-delay: -3s; } .chip-3 i { background: linear-gradient(135deg, #34d399, #059669); }
.chip-4 { top: -2%; right: 14%; animation-delay: -4.5s; } .chip-4 i { background: linear-gradient(135deg, #a78bfa, #7c3aed); }
.lg-headline { font-size: 38px; font-weight: 800; letter-spacing: -.025em; margin: 22px 0 18px;
    background: linear-gradient(90deg, #ffffff 0%, #bfdbfe 55%, #fde68a 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lg-icons { display: flex; gap: 14px; }
.lg-icons span { width: 50px; height: 50px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; font-size: 21px; color: #fde68a; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(8px); transition: transform .2s, background .2s; }
.lg-icons span:hover { transform: translateY(-3px); background: rgba(255,255,255,.16); }

.lg-card-wrap { display: flex; flex-direction: column; align-items: center; }
.lg-card { width: 100%; max-width: 410px; padding: 40px 34px 28px; border-radius: 28px; color: var(--text); text-align: center;
    background: rgba(255,255,255,.94); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 40px 90px -30px rgba(2,6,23,.75), inset 0 1px 0 rgba(255,255,255,.8); border: 1px solid rgba(255,255,255,.5); }
.lg-card-logo { margin-top: -78px; margin-bottom: 14px; }
.lg-logo-ring { display: inline-flex; padding: 10px; border-radius: 26px; background: #fff; box-shadow: 0 18px 40px -14px rgba(29,78,216,.6); }
.lg-card h2 { font-size: 27px; font-weight: 800; letter-spacing: -.02em; margin: 0; }
.lg-sub { color: var(--muted); margin: 4px 0 26px; }
.lg-input { position: relative; text-align: left; }
.lg-input > i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: #94a3b8; font-size: 17px; z-index: 2; transition: color .15s; }
.lg-input:focus-within > i { color: var(--brand-600); }
.lg-input .form-control { height: 54px; padding-left: 46px; padding-right: 46px; border-radius: 15px; background: #f1f5fb; border: 1.5px solid transparent; font-size: 15px; font-weight: 500; }
.lg-input .form-control:focus { background: #fff; border-color: var(--brand-500); box-shadow: 0 0 0 4px rgba(59,130,246,.14); }
.lg-input .form-control::placeholder { color: #94a3b8; font-weight: 400; }
.lg-eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: #94a3b8; width: 38px; height: 38px; border-radius: 10px; z-index: 2; }
.lg-eye:hover { color: var(--text); background: #e2e8f0; }
.lg-submit { height: 54px; border-radius: 15px; font-size: 16px; font-weight: 700; color: #fff; border: 0;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 60%, #1e3a8a 100%); box-shadow: 0 14px 28px -10px rgba(29,78,216,.75); transition: transform .15s, box-shadow .15s; }
.lg-submit:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 18px 32px -10px rgba(29,78,216,.85); }
.lg-submit i { font-size: 19px; }
.lg-secure { margin-top: 20px; font-size: 12.5px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.lg-secure i { color: var(--success); font-size: 15px; }
.lg-card .field-error { text-align: left; }
.lg-copy { margin-top: 18px; font-size: 12.5px; color: #93a4cf; }

@media (max-width: 991.98px) {
    .lg-shell { grid-template-columns: 1fr; padding: 24px 16px; gap: 8px; }
    .lg-visual { order: -1; }
    .lg-brand { align-self: center; }
    .lg-art { max-width: 340px; }
    .lg-chip { font-size: 12px; padding: 6px 12px 6px 6px; } .lg-chip i { width: 26px; height: 26px; font-size: 13px; }
    .lg-headline { font-size: 26px; margin: 12px 0 0; }
    .lg-icons { display: none; }
    .lg-card { margin-top: 60px; padding: 36px 24px 24px; }
}
@media (prefers-reduced-motion: reduce) { .lg-orb, .lg-illustration, .lg-chip { animation: none; } }
@media (max-width: 575.98px) {
    .lg-art { max-width: 250px; }
    .chip-3, .chip-4 { display: none; }
    .chip-1 { left: -14%; } .chip-2 { right: -14%; }
    .lg-headline { font-size: 22px; }
    .lg-card { margin-top: 52px; }
}

/* Login always fits one screen on desktop — sized from the window height, never scrolls. */
@media (min-width: 992px) {
    .lg-page { height: 100vh; overflow: hidden; }
    .lg-shell { height: 100vh; min-height: 0; padding: 20px 40px; }
    .lg-visual { height: 100%; justify-content: center; min-height: 0; }
    .lg-brand { position: absolute; top: 22px; left: 40px; }
    /* Illustration is 640×560; leave room for the headline and icons below it. */
    .lg-art { max-width: min(560px, calc((100vh - 220px) * 1.14)); margin-top: 30px; }
    .lg-headline { font-size: clamp(24px, 4.2vh, 38px); margin: 1.6vh 0 1.4vh; }
    .lg-icons span { width: clamp(38px, 5.6vh, 50px); height: clamp(38px, 5.6vh, 50px); font-size: clamp(16px, 2.4vh, 21px); }
    .lg-card { padding: clamp(28px, 5vh, 40px) 34px clamp(18px, 3vh, 28px); }
    .lg-card-logo { margin-top: calc(-1 * clamp(64px, 9vh, 78px)); }
    .lg-sub { margin-bottom: clamp(14px, 3vh, 26px); }
    .lg-input .form-control, .lg-submit { height: clamp(46px, 7vh, 54px); }
    .lg-card .mb-4 { margin-bottom: clamp(14px, 2.6vh, 24px) !important; }
    .lg-copy { position: absolute; bottom: 14px; right: 40px; margin: 0; }
}
@media (min-width: 992px) and (max-height: 640px) {
    .lg-icons { display: none; }
    .lg-art { max-width: min(560px, calc((100vh - 150px) * 1.14)); }
    .lg-chip { font-size: 12.5px; padding: 6px 12px 6px 6px; }
    .lg-chip i { width: 26px; height: 26px; font-size: 13px; }
}
@media (min-width: 1600px) {
    .lg-shell { max-width: 1560px; }
    .lg-art { max-width: min(700px, calc((100vh - 220px) * 1.14)); }
    .lg-card { max-width: 460px; }
    .lg-brand { left: 40px; }
}

/* ---------------- Tables fit laptop screens ----------------
   Every column must stay visible at 1280–1600px wide with the sidebar open. */
.tag, .pill, .row-actions { white-space: nowrap; }
.cell-person { min-width: 0; }
.table-scroll { overflow-x: auto; max-width: 100%; }
table.dataTable thead > tr > th.sorting, table.dataTable thead > tr > th.sorting_asc, table.dataTable thead > tr > th.sorting_desc { padding-right: 22px; }
@media (max-width: 1599.98px) {
    .app-content { padding: 20px 20px 36px; }
    .app-topbar { padding: 0 20px; }
    .table > :not(caption) > * > * { padding: 10px 9px; }
    .table thead th { font-size: 11px; letter-spacing: .04em; }
    .table td .cell-sub { font-size: 12px; }
    .table .avatar { width: 32px; height: 32px; font-size: 11.5px; border-radius: 10px; }
    .cell-person { gap: 8px; }
    .table .btn-icon { width: 30px; height: 30px; border-radius: 9px; }
    .table .btn-sm:not(.btn-icon) { padding: 5px 9px; }
    .row-actions { gap: 4px; }
    body { font-size: 14px; }
}
@media (max-width: 1365.98px) {
    .table > :not(caption) > * > * { padding: 9px 7px; }
    .table td { font-size: 13.5px; }
}
.tag.tag-wrap { white-space: normal; }
