/* =====================================================================
   DWARG — module views polish (sits on app.css, do not duplicate tokens)
   ===================================================================== */

.kicker,
.page-header .kicker,
.page-head-kicker {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: .28rem;
}
.page-header { gap: 1.15rem 1.5rem; }
.page-header h1 { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.page-header h1 .badge-status { font-size: .72rem; font-weight: 700; letter-spacing: 0; vertical-align: middle; }
.page-header .subtitle { max-width: 52rem; line-height: 1.5; }
.page-header .actions .btn i,
.sticky-actions .btn i { pointer-events: none; }

/* ---- Form sections ---- */
.form-section {
    border: var(--border-whisper);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-xs);
    overflow: hidden;
}
.form-section + .form-section { margin-top: 1.15rem; }
.form-section-hd {
    padding: .9rem 1.25rem .15rem;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
}
.form-section-hd i { color: var(--brand); margin-right: .4rem; }
.form-section > .card-body { padding: .85rem 1.25rem 1.25rem; }
.form-section .form-label { font-weight: 650; }
.modal-body .form-section { box-shadow: none; margin-bottom: 1rem; }
.modal-body .form-section:last-child { margin-bottom: 0; }
.modal-body .form-section-hd { padding-left: 0; padding-right: 0; }
.modal-header { align-items: center; }
.modal-title { display: flex; align-items: center; gap: .35rem; font-weight: 750; }
.modal-footer { gap: .5rem; }

/* ---- Tables & numbers ---- */
.table td.text-end, .table th.text-end, .num, .totals-box span:last-child {
    font-variant-numeric: tabular-nums lining-nums;
}
.table tbody tr[class*="priority-"] { box-shadow: inset 3px 0 0 currentColor; }
.table-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: .35rem;
    white-space: nowrap;
}
.table-actions .btn i { pointer-events: none; }
.btn-icon-only {
    width: 36px;
    height: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.table-actions .btn-sm,
a.btn-sm.btn-icon-only,
.btn-sm.btn-icon-only {
    width: 34px;
    height: 34px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.table-responsive { -webkit-overflow-scrolling: touch; }
.table-responsive > .table { margin-bottom: 0; }
.att-grid { overflow-x: auto; }

/* ---- Totals bar ---- */
.totals-box {
    box-shadow: var(--shadow-xs);
}
.totals-box .row-t span:last-child { font-weight: 650; }
.totals-box .row-t.grand span:last-child { font-weight: 800; letter-spacing: -.03em; }

/* ---- Status / chips ---- */
.integ-status { display: inline-flex; align-items: center; gap: .35rem; font-size: .72rem; font-weight: 800; border-radius: 999px; padding: .2rem .6rem; }
.integ-status.is-on { background: var(--leaf-50); color: var(--leaf-600); }
.integ-status.is-off { background: var(--n-100); color: var(--n-700); }

.report-tile { transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease); border: var(--border-whisper); }
.report-tile:hover { transform: translateY(-1px); box-shadow: var(--shadow); border-color: var(--brand-100); color: inherit; }
.report-tile .tile-ic {
    width: 44px; height: 44px; border-radius: 14px; flex-shrink: 0;
    display: grid; place-items: center;
    background: var(--brand-50); color: var(--brand); font-size: 1.2rem;
}
.report-group { font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 1.6rem 0 .7rem; }

.mod-list { max-width: none; }
.mod-list .list-group-item { padding: .9rem 1.2rem; }

.att-legend .chip { font-variant-numeric: tabular-nums; }
.att-grid { max-width: 100%; }
.att-grid .table { min-width: 720px; }
.att-grid thead th:first-child,
.att-grid tbody td:first-child {
    position: sticky;
    left: 0;
    background: #fff;
    z-index: 1;
    box-shadow: 1px 0 0 var(--line-2);
}

.perm-table thead th { font-size: .65rem; }
.perm-table tbody td { padding: .55rem .5rem; }

.plan-price { letter-spacing: -.03em; }
.plan-card { transition: border-color .18s, box-shadow .18s; }
.plan-card:hover { border-color: var(--brand-100); box-shadow: var(--shadow-sm); }

.empty-state .empty-hint { font-size: .78rem; color: var(--muted); margin: -.4rem auto 1rem; max-width: 380px; }

.dl-grid { display: grid; grid-template-columns: 8.5rem 1fr; gap: .45rem .9rem; font-size: .86rem; }
.dl-grid > div:nth-child(odd), .dl-grid dt { color: var(--muted); font-weight: 700; font-size: .76rem; }
.dl-grid dd { margin: 0; }

.admin-code { font-size: .72rem; background: var(--background); padding: .12rem .4rem; border-radius: 6px; }

/* Super admin: calm, no flashy hover bounce */
.admin-body .stat-card:hover { transform: none; }
.admin-body .hero-card { box-shadow: var(--shadow-sm); }
.admin-body .page-header h1 i { opacity: .85; }

.list-row {
    display: flex;
    align-items: flex-start;
    gap: .85rem;
    padding: .95rem 0;
    border-bottom: 1px solid var(--line-2);
}
.list-row:last-child { border-bottom: 0; }
.icon-tile {
    width: 38px; height: 38px; border-radius: 12px; flex-shrink: 0;
    display: grid; place-items: center;
    background: var(--brand-50); font-size: 1.05rem;
}

/* POS / counter */
.pos-pay .form-control-lg, .pos-pay .form-select-lg { font-weight: 700; }
.pos-change { font-variant-numeric: tabular-nums; font-size: 1.05rem; }

/* Support thread */
.support-bubble { max-width: min(80%, 36rem); }
.support-bubble .card-body { padding: .85rem 1.05rem; }

.error-screen { background: radial-gradient(60% 60% at 70% 20%, rgba(var(--primary-light-rgb), .1), transparent 70%), var(--surface, var(--background)); }
.error-screen .empty-icon { width: 88px; height: 88px; border-radius: 24px; background: var(--bl-ice-50); color: var(--brand); display: grid; place-items: center; font-size: 2.4rem; }

.toolbar .form-check { white-space: nowrap; }
.nav-tabs-line { margin-bottom: 1.15rem; }

@media (max-width: 767.98px) {
    .mod-hide-md { display: none !important; }
    .page-header .actions .btn-icon-only { flex: 0 0 auto; width: 44px; }
}
@media (max-width: 575.98px) {
    .ws-hide-sm { display: none !important; }
    .page-header .kicker { margin-bottom: .15rem; }
    .form-section-hd { padding: .8rem 1rem 0; }
    .form-section > .card-body { padding: .75rem 1rem 1.05rem; }
    .dl-grid { grid-template-columns: 1fr; gap: .15rem; }
    .dl-grid > div:nth-child(odd), .dl-grid dt { margin-top: .4rem; }
    .report-tile .card-body { padding: 1rem; }
    .sticky-actions { margin-left: -.15rem; margin-right: -.15rem; }
    .table thead th { white-space: nowrap; }
}
