:root {
    --brand-50: #eef4ff;
    --brand-100: #dbe7fd;
    --brand-200: #b9d0fb;
    --brand-500: #1a56c4;
    --brand-600: #0033a0;
    --brand-700: #012a84;
    --brand-800: #021f63;
    --brand-900: #021444;
    --accent-300: #ffd95e;
    --accent-400: #ffc933;
    --accent-500: #ffc400;
    --accent-600: #eab300;
    --bg: #f1f4f9;
    --surface: #ffffff;
    --surface-2: #f7f9fc;
    --ink: #0d1b2e;
    --ink-2: #3d4c63;
    --muted: #64748b;
    --faint: #94a3b8;
    --line: #e3e9f2;
    --line-soft: #eef2f8;
    --green: #16a34a;
    --green-bg: #e7f6ec;
    --red: #dc2626;
    --red-bg: #fdeaea;
    --orange: #d97706;
    --orange-bg: #fdf2e0;
    --blue: #2563eb;
    --blue-bg: #e9f0fe;
    --teal: #0d9488;
    --teal-bg: #e6f7f5;
    --yellow-bg: #fff4cc;
    --yellow-ink: #92600a;
    --radius: 14px;
    --radius-sm: 10px;
    --shadow-xs: 0 1px 2px rgba(13, 27, 46, .05);
    --shadow-sm: 0 1px 3px rgba(13, 27, 46, .06), 0 1px 2px rgba(13, 27, 46, .04);
    --shadow: 0 4px 16px rgba(13, 27, 46, .08);
    --shadow-lg: 0 12px 32px rgba(13, 27, 46, .14);
    --sidebar-w: 264px;
    --topbar-h: 68px;
    --font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

::selection {
    background: var(--brand-100);
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 99px;
    border: 3px solid var(--bg);
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .18);
    border: none;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
}

:focus-visible {
    outline: 2px solid var(--brand-500);
    outline-offset: 2px;
}

svg {
    display: block;
}

.layout {
    display: flex;
    min-height: 100vh;
}

.main {
    flex: 1;
    margin-left: var(--sidebar-w);
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.content {
    padding: 26px;
    width: 100%;
    max-width: 1560px;
    margin: 0 auto;
    flex: 1;
}

.app-foot {
    padding: 16px 26px 22px;
    text-align: center;
    font-size: 12px;
    color: var(--faint);
}

.sidebar {
    width: var(--sidebar-w);
    background: linear-gradient(180deg, #04266b 0%, #021444 55%, #010e30 100%);
    color: #fff;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    transition: transform .28s cubic-bezier(.4, 0, .2, 1);
    z-index: 100;
    overflow-y: auto;
    overflow-x: hidden;
}

.brand {
    padding: 20px 20px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent-300), var(--accent-500));
    color: var(--brand-800);
    font-weight: 800;
    font-size: 17px;
    letter-spacing: -.02em;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(255, 196, 0, .35);
}

.brand-text b {
    font-size: 15px;
    display: block;
    letter-spacing: .02em;
}

.brand-text span {
    font-size: 11.5px;
    opacity: .65;
}

.sidebar-close {
    display: none;
    margin-left: auto;
    background: rgba(255, 255, 255, .1);
    border: none;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    place-items: center;
}

.nav-label {
    padding: 18px 24px 8px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .42);
}

.nav {
    flex: 1;
    padding: 4px 0 16px;
}

.nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 14px;
    margin: 2px 12px;
    border-radius: var(--radius-sm);
    color: #aebbd4;
    font-size: 14px;
    font-weight: 500;
    transition: all .18s ease;
    position: relative;
}

.nav a .nic {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: rgba(255, 255, 255, .07);
    display: grid;
    place-items: center;
    color: #93a5c4;
    transition: all .18s ease;
    flex-shrink: 0;
}

.nav a .nic svg {
    width: 18px;
    height: 18px;
}

.nav a:hover {
    background: rgba(255, 255, 255, .07);
    color: #fff;
    transform: translateX(2px);
}

.nav a.active {
    background: linear-gradient(90deg, rgba(255, 196, 0, .18), rgba(255, 196, 0, .04));
    color: #fff;
    font-weight: 600;
    box-shadow: inset 3px 0 0 var(--accent-500);
}

.nav a.active .nic {
    background: var(--accent-500);
    color: var(--brand-900);
    box-shadow: 0 2px 10px rgba(255, 196, 0, .35);
}

.sidebar-foot {
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 11px;
}

.sf-info {
    flex: 1;
    min-width: 0;
    line-height: 1.25;
}

.sf-info b {
    display: block;
    font-size: 13.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sf-info span {
    font-size: 11px;
    color: rgba(255, 255, 255, .55);
}

.sf-logout {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, .6);
    transition: all .15s;
    flex-shrink: 0;
}

.sf-logout:hover {
    background: rgba(220, 38, 38, .18);
    color: #ff8a8a;
}

.sf-logout svg {
    width: 17px;
    height: 17px;
}

.topbar {
    background: rgba(255, 255, 255, .86);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    min-height: var(--topbar-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 26px;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 60;
}

.tb-left {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
}

.tb-titles h1 {
    font-size: 17.5px;
    font-weight: 700;
    letter-spacing: -.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tb-titles .crumb {
    font-size: 12px;
    color: var(--faint);
}

.tb-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.menu-toggle {
    display: none;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: var(--surface);
    cursor: pointer;
    color: var(--brand-600);
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.menu-toggle svg {
    width: 19px;
    height: 19px;
}

.search {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    width: 270px;
    color: var(--faint);
    transition: all .18s;
    flex-shrink: 0;
}

.search svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.search input {
    border: none;
    background: none;
    outline: none;
    font: inherit;
    font-size: 13.5px;
    width: 100%;
    color: var(--ink);
}

.search input::placeholder {
    color: var(--faint);
}

.search:focus-within {
    border-color: var(--brand-500);
    box-shadow: 0 0 0 4px rgba(0, 51, 160, .1);
    background: var(--surface);
}

.search kbd {
    font-family: inherit;
    font-size: 11px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-bottom-width: 2px;
    border-radius: 6px;
    padding: 1px 6px;
    color: var(--faint);
    flex-shrink: 0;
}

.icon-btn {
    position: relative;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: var(--surface);
    display: grid;
    place-items: center;
    color: var(--muted);
    cursor: pointer;
    transition: all .15s;
    flex-shrink: 0;
}

.icon-btn:hover {
    color: var(--brand-600);
    border-color: var(--brand-200);
    background: var(--brand-50);
}

.icon-btn svg {
    width: 17px;
    height: 17px;
}

.icon-btn .dot {
    position: absolute;
    top: 8px;
    right: 9px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--red);
    border: 2px solid #fff;
}

.user-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 14px 5px 6px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    transition: all .15s;
    cursor: default;
}

.user-chip:hover {
    border-color: var(--brand-200);
    box-shadow: var(--shadow-xs);
}

.uc-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.uc-text b {
    font-size: 13px;
    max-width: 130px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.uc-text span {
    font-size: 11px;
    color: var(--faint);
}

.avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12.5px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--brand-500), var(--brand-800));
    flex-shrink: 0;
    letter-spacing: .02em;
}

.avatar.light {
    background: rgba(255, 255, 255, .13);
    border: 1px solid rgba(255, 255, 255, .28);
    color: #fff;
}

.avatar.lg {
    width: 84px;
    height: 84px;
    border-radius: 22px;
    font-size: 27px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 16px;
    border-radius: var(--radius-sm);
    border: none;
    font-size: 13.5px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    background: linear-gradient(180deg, var(--brand-600), var(--brand-700));
    color: #fff;
    box-shadow: 0 1px 2px rgba(0, 51, 160, .3), inset 0 1px 0 rgba(255, 255, 255, .14);
    transition: all .16s ease;
    white-space: nowrap;
}

.btn svg {
    width: 15px;
    height: 15px;
}

.btn:hover {
    background: linear-gradient(180deg, var(--brand-500), var(--brand-600));
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 51, 160, .32);
}

.btn:active {
    transform: translateY(0);
    box-shadow: var(--shadow-xs);
}

.btn-block {
    width: 100%;
}

.btn-yellow {
    background: linear-gradient(180deg, var(--accent-400), var(--accent-600));
    color: #3d2e00;
    box-shadow: 0 1px 2px rgba(200, 150, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .4);
}

.btn-yellow:hover {
    background: linear-gradient(180deg, var(--accent-300), var(--accent-500));
    box-shadow: 0 4px 12px rgba(200, 150, 0, .35);
}

.btn-danger-soft {
    background: var(--red-bg);
    color: var(--red);
    box-shadow: none;
}

.btn-danger-soft:hover {
    background: #fbdede;
    color: #b91c1c;
    box-shadow: none;
}

.btn-soft {
    background: var(--brand-50);
    color: var(--brand-700);
    box-shadow: none;
}

.btn-soft:hover {
    background: var(--brand-100);
    color: var(--brand-800);
    box-shadow: none;
}

.btn-ghost {
    background: var(--surface);
    color: var(--ink-2);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-xs);
}

.btn-ghost:hover {
    background: var(--surface-2);
    color: var(--ink);
    box-shadow: var(--shadow-sm);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12.5px;
}

.btn-icon {
    width: 32px;
    height: 32px;
    padding: 0;
    flex-shrink: 0;
}

.btn-icon svg {
    width: 14px;
    height: 14px;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(225px, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}

.stat-card {
    --sc: var(--brand-600);
    --sc-bg: var(--blue-bg);
    position: relative;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px 20px 16px;
    box-shadow: var(--shadow-sm);
    transition: all .2s ease;
    overflow: hidden;
}

.stat-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--sc), transparent 140%);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.stat-card.green { --sc: var(--green); --sc-bg: var(--green-bg); }
.stat-card.blue { --sc: var(--blue); --sc-bg: var(--blue-bg); }
.stat-card.yellow { --sc: var(--accent-600); --sc-bg: var(--yellow-bg); }
.stat-card.orange { --sc: var(--orange); --sc-bg: var(--orange-bg); }
.stat-card.teal { --sc: var(--teal); --sc-bg: var(--teal-bg); }
.stat-card.red { --sc: var(--red); --sc-bg: var(--red-bg); }

.stat-card .s-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.stat-card .label {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 7px;
}

.stat-card .value {
    font-size: 25px;
    font-weight: 750;
    font-variant-numeric: tabular-nums;
    letter-spacing: -.02em;
    color: var(--ink);
    line-height: 1.15;
}

.stat-card .value small {
    font-size: 14px;
    font-weight: 600;
    color: var(--faint);
    margin-right: 2px;
}

.stat-card .s-ico {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    background: var(--sc-bg);
    color: var(--sc);
    flex-shrink: 0;
}

.stat-card .s-ico svg {
    width: 20px;
    height: 20px;
}

.stat-card .hint {
    font-size: 12px;
    color: var(--faint);
    margin-top: 9px;
}

.panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 22px;
    overflow: hidden;
}

.panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 17px 22px;
    border-bottom: 1px solid var(--line-soft);
    flex-wrap: wrap;
}

.panel-head h2 {
    font-size: 15.5px;
    font-weight: 700;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 9px;
    letter-spacing: -.01em;
}

.panel-head h2 svg {
    width: 17px;
    height: 17px;
    color: var(--brand-600);
}

.panel-head .sub {
    font-size: 12.5px;
    color: var(--faint);
    margin-top: 3px;
}

.panel-head .ph-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.panel-body {
    padding: 22px;
}

.dash-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.dash-grid .panel {
    margin-bottom: 0;
}

.dash-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.fuel-row {
    margin-bottom: 18px;
}

.fuel-row:last-of-type {
    margin-bottom: 0;
}

.fr-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    margin-bottom: 8px;
    color: var(--ink-2);
}

.fr-head b {
    font-variant-numeric: tabular-nums;
    color: var(--ink);
}

.fuel-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.fuel-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
}

.fuel-dot.petrol { background: var(--blue); box-shadow: 0 0 0 3px var(--blue-bg); }
.fuel-dot.diesel { background: var(--green); box-shadow: 0 0 0 3px var(--green-bg); }

.fuel-total {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px dashed var(--line);
    font-size: 13px;
    color: var(--muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fuel-total b {
    font-size: 16px;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}

.progress {
    height: 8px;
    border-radius: 99px;
    background: var(--line-soft);
    overflow: hidden;
}

.progress > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--brand-500), var(--brand-600));
    transition: width .6s cubic-bezier(.4, 0, .2, 1);
}

.progress.yellow > span { background: linear-gradient(90deg, var(--accent-400), var(--accent-600)); }
.progress.green > span { background: linear-gradient(90deg, #22c55e, var(--green)); }

.qa-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.qa {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px 13px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-2);
    transition: all .16s ease;
}

.qa:hover {
    border-color: var(--brand-200);
    background: var(--brand-50);
    color: var(--brand-700);
    transform: translateY(-1px);
    box-shadow: var(--shadow-xs);
}

.qa-ico {
    width: 33px;
    height: 33px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.qa-ico svg {
    width: 16px;
    height: 16px;
}

.info-strip {
    display: flex;
    gap: 12px;
    background: var(--brand-50);
    border: 1px solid var(--brand-100);
    border-radius: var(--radius);
    padding: 14px 18px;
    margin-bottom: 22px;
    font-size: 13px;
    color: var(--ink-2);
    align-items: flex-start;
    line-height: 1.55;
}

.info-strip .is-ico {
    color: var(--brand-600);
    flex-shrink: 0;
    margin-top: 1px;
    display: grid;
    place-items: center;
}

.info-strip .is-ico svg {
    width: 17px;
    height: 17px;
}

.info-strip b {
    color: var(--brand-800);
}

.two-col {
    display: grid;
    grid-template-columns: 385px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.two-col > div {
    min-width: 0;
}

.two-col .panel {
    margin-bottom: 20px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.two-col .form-grid {
    grid-template-columns: 1fr;
}

.field {
    display: flex;
    flex-direction: column;
}

.field label {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 6px;
}

.field input,
.field select,
.field textarea {
    padding: 10px 13px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    background-color: var(--surface);
    color: var(--ink);
    transition: border-color .15s, box-shadow .15s;
    width: 100%;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
    border-color: #cbd5e1;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--brand-500);
    box-shadow: 0 0 0 4px rgba(0, 51, 160, .11);
}

.field input::placeholder,
.field textarea::placeholder {
    color: var(--faint);
}

.field input[type="file"] {
    padding: 7px 10px;
    background: var(--surface-2);
    cursor: pointer;
    font-size: 13px;
}

.field input[type="file"]::file-selector-button {
    margin-right: 10px;
    border: none;
    background: var(--brand-600);
    color: #fff;
    padding: 6px 12px;
    border-radius: 7px;
    font-weight: 600;
    font-size: 12.5px;
    cursor: pointer;
    font-family: inherit;
    transition: background .15s;
}

.field input[type="file"]::file-selector-button:hover {
    background: var(--brand-700);
}

.field.full {
    grid-column: 1 / -1;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px dashed var(--line);
}

.form-note {
    font-size: 12px;
    color: var(--faint);
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-note svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}

.table-wrap {
    overflow-x: auto;
}

table.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.data-table th {
    padding: 11px 16px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--faint);
    background: var(--surface-2);
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}

.data-table td {
    padding: 13px 16px;
    border-bottom: 1px solid var(--line-soft);
    color: var(--ink-2);
    vertical-align: middle;
    white-space: nowrap;
}

.data-table tbody tr {
    transition: background .12s;
}

.data-table tbody tr:hover {
    background: var(--surface-2);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.data-table .num {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.data-table .strong {
    font-weight: 700;
    color: var(--ink);
}

.row-actions {
    display: inline-flex;
    gap: 6px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .01em;
}

.badge::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}

.badge.green { background: var(--green-bg); color: var(--green); }
.badge.red { background: var(--red-bg); color: var(--red); }
.badge.orange { background: var(--orange-bg); color: var(--orange); }
.badge.blue { background: var(--blue-bg); color: var(--blue); }
.badge.teal { background: var(--teal-bg); color: var(--teal); }
.badge.yellow { background: var(--yellow-bg); color: var(--yellow-ink); }
.badge.gray { background: var(--surface-2); color: var(--muted); }

.empty {
    text-align: center;
    padding: 52px 20px;
    color: var(--faint);
    font-size: 13.5px;
}

.empty b {
    display: block;
    color: var(--muted);
    font-size: 14.5px;
    margin-bottom: 4px;
    font-weight: 600;
}

.empty svg {
    width: 34px;
    height: 34px;
    margin: 0 auto 10px;
    color: #cbd5e1;
}

.vol-bar {
    height: 7px;
    background: var(--line-soft);
    border-radius: 99px;
    overflow: hidden;
    min-width: 100px;
    width: 100%;
    max-width: 160px;
}

.vol-bar > span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--brand-500), var(--brand-600));
    border-radius: inherit;
}

.vol-bar.green > span { background: linear-gradient(90deg, #22c55e, var(--green)); }

.emp-photo {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    object-fit: cover;
    background: var(--brand-50);
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--brand-700);
}

.profile-hero {
    display: flex;
    gap: 22px;
    align-items: center;
    flex-wrap: wrap;
}

.profile-info {
    flex: 1;
    min-width: 220px;
}

.profile-info h2 {
    font-size: 21px;
    font-weight: 750;
    letter-spacing: -.02em;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.profile-info .role-line {
    color: var(--muted);
    font-size: 13.5px;
    margin-top: 3px;
}

.meta-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    color: var(--ink-2);
    background: var(--surface-2);
    border: 1px solid var(--line-soft);
    border-radius: 999px;
    padding: 6px 12px;
}

.meta-chip svg {
    width: 13px;
    height: 13px;
    color: var(--brand-600);
    flex-shrink: 0;
}

.meta-chip b {
    font-weight: 600;
    color: var(--ink);
}

.tabs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}

.tabs-grid > div {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.tabs-grid .panel {
    margin-bottom: 0;
}

.link-back {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 18px;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    transition: color .15s;
}

.link-back:hover {
    color: var(--brand-600);
}

.link-back svg {
    width: 15px;
    height: 15px;
}

.mini-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.mini-stat {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 13px 15px;
    box-shadow: var(--shadow-xs);
}

.mini-stat .ms-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--faint);
    margin-bottom: 4px;
}

.mini-stat .ms-value {
    font-size: 19px;
    font-weight: 750;
    font-variant-numeric: tabular-nums;
    letter-spacing: -.01em;
}

.overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(8, 15, 30, .5);
    backdrop-filter: blur(2px);
    z-index: 90;
}

.login-wrap {
    display: flex;
    min-height: 100vh;
}

.login-brand {
    flex: 1.15;
    background:
        radial-gradient(900px 480px at 15% -10%, rgba(26, 86, 196, .55) 0%, transparent 60%),
        radial-gradient(700px 500px at 110% 110%, rgba(255, 196, 0, .16) 0%, transparent 55%),
        linear-gradient(160deg, var(--brand-800), var(--brand-900));
    color: #fff;
    padding: 52px 56px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.login-brand::before {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .09);
    top: -180px;
    right: -140px;
}

.login-brand::after {
    content: "";
    position: absolute;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .07);
    bottom: -120px;
    left: -80px;
}

.lb-top {
    display: flex;
    align-items: center;
    gap: 13px;
    position: relative;
    z-index: 1;
}

.lb-logo {
    width: 48px;
    height: 48px;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--accent-300), var(--accent-500));
    color: var(--brand-900);
    font-weight: 800;
    font-size: 19px;
    display: grid;
    place-items: center;
    box-shadow: 0 6px 18px rgba(255, 196, 0, .35);
}

.lb-top b {
    font-size: 16px;
    display: block;
    letter-spacing: .02em;
}

.lb-top span {
    font-size: 12px;
    opacity: .65;
}

.lb-hero {
    margin: auto 0;
    max-width: 520px;
    position: relative;
    z-index: 1;
    padding: 40px 0;
}

.lb-hero h1 {
    font-size: 40px;
    line-height: 1.18;
    font-weight: 800;
    letter-spacing: -.03em;
    margin-bottom: 18px;
}

.lb-hero h1 em {
    font-style: normal;
    color: var(--accent-400);
}

.lb-hero p {
    font-size: 15.5px;
    line-height: 1.65;
    color: rgba(255, 255, 255, .72);
    max-width: 460px;
}

.lb-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 36px;
    position: relative;
    z-index: 1;
}

.lb-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: rgba(255, 255, 255, .88);
    font-weight: 500;
}

.lb-features .lf-ico {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .14);
    display: grid;
    place-items: center;
    color: var(--accent-400);
    flex-shrink: 0;
}

.lb-features .lf-ico svg {
    width: 15px;
    height: 15px;
}

.lb-foot {
    font-size: 12px;
    color: rgba(255, 255, 255, .45);
    position: relative;
    z-index: 1;
}

.login-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: var(--bg);
}

.login-card {
    width: 100%;
    max-width: 400px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
    padding: 38px 36px;
}

.login-card .lc-head {
    margin-bottom: 26px;
}

.login-card h1 {
    font-size: 21px;
    font-weight: 750;
    color: var(--ink);
    letter-spacing: -.02em;
}

.login-card .lc-sub {
    font-size: 13.5px;
    color: var(--faint);
    margin-top: 5px;
}

.login-card .field {
    margin-bottom: 16px;
}

.login-card .btn {
    width: 100%;
    justify-content: center;
    padding: 12px;
    font-size: 14.5px;
    margin-top: 6px;
}

.login-card .lc-foot {
    text-align: center;
    font-size: 12px;
    color: var(--faint);
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--line-soft);
}

.alert {
    display: flex;
    align-items: center;
    gap: 9px;
    background: var(--red-bg);
    color: var(--red);
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 18px;
    border: 1px solid #f6cfcf;
}

.alert svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

@media (max-width: 1280px) {
    .search { width: 210px; }
}

@media (max-width: 1100px) {
    .dash-grid,
    .two-col,
    .tabs-grid {
        grid-template-columns: 1fr;
    }
    .dash-grid .panel { margin-bottom: 22px; }
    .two-col .panel { margin-bottom: 20px; }
}

@media (max-width: 992px) {
    .search { display: none; }
    .uc-text { display: none; }
    .user-chip { border-color: transparent; background: transparent; padding: 0; }
    .user-chip:hover { box-shadow: none; }
    .login-brand { padding: 40px 36px; }
    .lb-hero h1 { font-size: 32px; }
}

@media (max-width: 900px) {
    .login-wrap { flex-direction: column; }
    .login-brand { min-height: auto; padding: 36px 30px 30px; }
    .lb-hero { padding: 26px 0; }
    .lb-hero h1 { font-size: 27px; }
    .lb-hero p { font-size: 14px; }
    .lb-features { display: none; }
    .lb-foot { display: none; }
    .login-main { padding: 24px 18px 40px; }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-105%);
    }
    .sidebar.open {
        transform: translateX(0);
        box-shadow: var(--shadow-lg);
    }
    .sidebar-close {
        display: grid;
    }
    .main {
        margin-left: 0;
    }
    .menu-toggle {
        display: grid;
    }
    .overlay.show {
        display: block;
    }
    .content {
        padding: 16px 14px;
    }
    .topbar {
        padding: 10px 14px;
    }
    .tb-titles h1 {
        font-size: 15.5px;
    }
    .tb-titles .crumb {
        display: none;
    }
    .app-foot { display: none; }
}

@media print {
    .sidebar,
    .topbar,
    .overlay,
    .app-foot,
    .form-actions,
    .link-back,
    .row-actions,
    .no-print {
        display: none !important;
    }
    .main { margin: 0; }
    .content { padding: 0; max-width: none; }
    .panel { box-shadow: none; break-inside: avoid; }
}

/* ===================== Compatibility aliases =====================
   Maps the simpler card/table/button markup used across feature pages
   (sales, density, stock, credit, employees) onto the themed panel/
   data-table components so everything shares one consistent look. */

/* .card family -> .panel family */
.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 22px;
    overflow: hidden;
}

.card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 17px 22px;
    border-bottom: 1px solid var(--line-soft);
    flex-wrap: wrap;
}

.card-head h2 {
    font-size: 15.5px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -.01em;
}

.card-body {
    padding: 22px;
}

/* Plain tables inside a table-wrap get the data-table treatment */
.table-wrap table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.table-wrap th {
    padding: 11px 16px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--faint);
    background: var(--surface-2);
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}

.table-wrap td {
    padding: 13px 16px;
    border-bottom: 1px solid var(--line-soft);
    color: var(--ink-2);
    vertical-align: middle;
    white-space: nowrap;
}

.table-wrap tbody tr {
    transition: background .12s;
}

.table-wrap tbody tr:hover {
    background: var(--surface-2);
}

.table-wrap tbody tr:last-child td {
    border-bottom: none;
}

.table-wrap td.empty {
    text-align: center;
    padding: 44px 20px;
    color: var(--faint);
    font-size: 13.5px;
    white-space: normal;
}

/* Danger button used by delete forms */
.btn-danger {
    background: var(--red-bg);
    color: var(--red);
}

.btn-danger:hover {
    background: #fbdede;
    color: #b91c1c;
    transform: translateY(-1px);
}

/* Give the form fields in simple cards consistent vertical rhythm */
.card-body .form-grid + .form-actions {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px dashed var(--line);
}

/* Inline delete forms shouldn't add block spacing in table rows */
.table-wrap td form {
    display: inline;
}

/* ===================== Extended metrics UI ===================== */
.chart-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 22px;
}

.chart-grid .card {
    margin-bottom: 22px;
}

/* Filter bar above tables */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 16px 18px;
    margin-bottom: 22px;
}

.filter-bar .field {
    margin-bottom: 0;
}

.filter-bar form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px;
}

.filter-bar input,
.filter-bar select {
    height: 38px;
    padding: 0 12px;
    font-size: 13px;
}

.filter-bar .btn,
.filter-bar .btn-sm {
    height: 38px;
    padding: 0 16px;
    font-size: 13px;
}

/* Calculation detail chips shown with records */
.calc-chip {
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
    background: var(--surface-2);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    min-width: 120px;
}

.calc-chip .cc-label {
    font-size: 11px;
    color: var(--faint);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.calc-chip .cc-value {
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}

.calc-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

/* Data-review flag */
.flag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--orange-bg);
    color: var(--orange);
    border-radius: var(--radius-sm);
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 600;
    margin: 2px 0;
}

.flag-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 8px;
}

/* Repeating nozzle rows in monthly sales form */
.nozzle-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr auto;
    gap: 10px;
    align-items: end;
    margin-bottom: 10px;
}

.denom-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
}

.subhead {
    font-size: 13px;
    font-weight: 700;
    color: var(--ink-2);
    margin: 18px 0 10px;
    padding-bottom: 6px;
    border-bottom: 1px dashed var(--line);
}

@media (max-width: 1100px) {
    .chart-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nozzle-row { grid-template-columns: 1fr 1fr; }
}

/* ===================== Shift-first nozzle reading table ===================== */
.nozzle-table th,
.nozzle-table td {
    white-space: nowrap;
    vertical-align: middle;
}

.nozzle-table input[type="number"] {
    width: 100%;
    min-width: 110px;
    padding: 7px 9px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font-size: 14px;
}

.nozzle-table .noz-litres,
.nozzle-table .noz-amount,
.nozzle-table tfoot td {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}

.nozzle-table tfoot td { background: var(--surface-2, #f7f8fa); }

.noz-row.row-bad input {
    border-color: #e4572e;
    background: #fff5f2;
}

/* Per-nozzle fuel selector (customizable nozzles) */
.nozzle-table .noz-fuel {
    padding: 7px 9px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font-size: 14px;
    background: var(--surface, #fff);
    min-width: 80px;
}

.nozzle-table .noz-remove {
    padding: 4px 9px;
}

@media (max-width: 768px) {
    .nozzle-table input[type="number"] { min-width: 80px; }
}

/* ===================== Period switch (Monthly Sales) ===================== */
.period-switch {
    display: inline-flex;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 4px;
    gap: 4px;
    margin-bottom: 18px;
    box-shadow: var(--shadow-xs);
}

.period-btn {
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-2);
    transition: all .15s ease;
    white-space: nowrap;
}

.period-btn:hover {
    background: var(--surface-2);
    color: var(--brand-700);
}

.period-btn.active {
    background: linear-gradient(180deg, var(--brand-500), var(--brand-600));
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.period-range {
    font-size: 12.5px;
    color: var(--faint);
    margin: -8px 0 20px;
}

@media (max-width: 480px) {
    .period-switch { width: 100%; justify-content: space-between; }
    .period-btn { padding: 8px 12px; flex: 1; text-align: center; }
}

/* ===================== Report download (Monthly / Yearly) ===================== */
.report-dl {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    padding: 16px 18px;
}

.report-dl-row {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.report-dl-row label {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ink-2);
    align-self: center;
}

.report-dl-row select {
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 13px;
    background-color: var(--surface);
    color: var(--ink);
    min-width: 130px;
}

.report-dl-row select:focus {
    outline: none;
    border-color: var(--brand-500);
}

@media (max-width: 480px) {
    .report-dl { gap: 16px; }
    .report-dl-row { width: 100%; }
    .report-dl-row select { flex: 1; }
}

/* ===================== Employee profile header ===================== */
.profile-head {
    display: flex;
    gap: 22px;
    align-items: center;
    flex-wrap: wrap;
}

.profile-photo {
    width: 96px;
    height: 96px;
    border-radius: 16px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--brand-50);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-xs);
}

/* ===================== Clickable rows + day detail modal ===================== */
.clickable-row {
    cursor: pointer;
}

.clickable-row:hover {
    background: var(--brand-50) !important;
}

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(8, 15, 30, .55);
    backdrop-filter: blur(3px);
    z-index: 200;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.show {
    display: flex;
}

.modal {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 620px;
    max-height: 88vh;
    overflow-y: auto;
    animation: modalIn .18s ease;
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    background: var(--surface);
}

.modal-head h3 {
    font-size: 16.5px;
    font-weight: 700;
    color: var(--ink);
}

.modal-close {
    width: 34px;
    height: 34px;
    border: none;
    background: var(--surface-2);
    border-radius: 9px;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: var(--muted);
    transition: all .15s;
}

.modal-close:hover {
    background: var(--red-bg);
    color: var(--red);
}

.modal-body {
    padding: 22px;
}

.modal-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
}

.modal-stats .ms-item {
    background: var(--surface-2);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 6px;
    min-height: 64px;
}

.modal-stats .ms-item span {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--faint);
    line-height: 1.3;
}

.modal-stats .ms-item b {
    font-size: 16px;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Badge inside a stat cell (excess/shortage) sits neatly, no wrap gap */
.modal-stats .ms-item b .badge {
    font-size: 12px;
    white-space: nowrap;
}

/* Section titles inside the modal */
.modal-body .subhead:first-child {
    margin-top: 0;
}

/* ===================== Attendance calendar ===================== */
.att-cal {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.att-cal-head {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    margin-bottom: 2px;
}

.att-cal-head span {
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--faint);
    padding: 4px 0;
}

.att-cal-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.att-day {
    position: relative;
    aspect-ratio: 1 / 1;
    border: 1px solid var(--line);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-2);
    background: var(--surface);
    transition: transform .12s;
}

.att-day:hover:not(.empty-cell) {
    transform: translateY(-1px);
    box-shadow: var(--shadow-xs);
}

.att-day.empty-cell {
    border: none;
    background: transparent;
}

.att-day .ad-num {
    position: relative;
    z-index: 1;
}

.att-day .ad-dot {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
}

.att-day.is-today {
    outline: 2px solid var(--brand-500);
    outline-offset: 1px;
}

/* status fills */
.att-day.present { background: var(--green-bg); color: var(--green); border-color: #bfe6cb; }
.att-day.absent  { background: var(--red-bg); color: var(--red); border-color: #f3c9c9; }
.att-day.half    { background: var(--orange-bg); color: var(--orange); border-color: #f3dcb6; }
.att-day.leave   { background: var(--blue-bg); color: var(--blue); border-color: #c3d6fb; }

.att-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px dashed var(--line);
    font-size: 12.5px;
    color: var(--ink-2);
}

.att-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.att-legend .lg {
    width: 12px;
    height: 12px;
    border-radius: 4px;
    display: inline-block;
}

.att-legend .lg.present { background: var(--green); }
.att-legend .lg.absent { background: var(--red); }
.att-legend .lg.half { background: var(--orange); }
.att-legend .lg.leave { background: var(--blue); }

/* ===================== Modal key/value breakdown ===================== */
.kv-group {
    margin-top: 14px;
}

.kv-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--faint);
    margin-bottom: 8px;
}

.kv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
}

.kv {
    display: flex;
    flex-direction: column;
    gap: 3px;
    background: var(--surface-2);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-sm);
    padding: 9px 12px;
}

.kv span {
    font-size: 11px;
    font-weight: 600;
    color: var(--faint);
}

.kv b {
    font-size: 14px;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}

/* Keep modal content from overflowing horizontally */
.modal-body {
    overflow-x: hidden;
}

.modal-body .table-wrap {
    max-width: 100%;
}

/* ===================== Reconciliation banner (modal) ===================== */
.recon-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: var(--surface-2);
}

.recon-banner > span {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--faint);
}

.recon-banner.short {
    background: var(--red-bg);
    border-color: #f3c9c9;
}

.recon-banner.excess {
    background: var(--green-bg);
    border-color: #bfe6cb;
}

.recon-banner .badge {
    font-size: 13px;
}

.recon-banner.balanced {
    background: var(--surface-2);
    border-color: var(--line);
}

/* Live reconciliation grid inside a shift block */
.recon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 8px;
    margin-top: 4px;
}

.recon-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
}

.recon-item span {
    font-size: 11px;
    font-weight: 600;
    color: var(--faint);
}

.recon-item b {
    font-size: 14px;
    color: var(--ink);
}

/* Automated side (nozzle fuel + oil) vs manual counted collection */
.recon-item.auto {
    background: var(--brand-50, #eef3ff);
    border-color: #d4e0f5;
}

.recon-item.manual {
    background: #fff8ea;
    border-color: #f0e2c0;
}

.recon-item.strong {
    border-width: 2px;
}

.recon-item.strong b {
    font-size: 15px;
    font-weight: 800;
}

/* ===================== Repeatable shift blocks ===================== */
.shift-block {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-bottom: 14px;
    background: var(--surface-2);
}

.shift-block-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}

.shift-block-head .shift-select {
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    background-color: var(--surface);
    color: var(--ink);
    min-width: 150px;
}

.shift-block .subhead:first-of-type {
    margin-top: 8px;
}

.shift-block-head .manager-input {
    flex: 1 1 180px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    background: var(--surface);
    color: var(--ink);
    min-width: 160px;
}

.credit-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 8px;
}

.credit-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.credit-row .credit-name {
    flex: 2 1 200px;
}

.credit-row .credit-amount {
    flex: 1 1 120px;
}

.credit-row input {
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    background: var(--surface);
    color: var(--ink);
}

@media (max-width: 640px) {
    .shift-block-head {
        flex-wrap: wrap;
    }
    .shift-block-head .manager-input {
        order: 3;
        flex-basis: 100%;
    }
}

/* ---------------------------------------------- Credit monitoring helpers */
.card-head .muted { font-size: 12px; color: var(--muted); }
.warn-line {
    margin: 0 0 12px;
    padding: 10px 14px;
    border-radius: 8px;
    background: var(--red-bg);
    color: var(--red);
    font-size: 13px;
}
.inline-form { display: inline-block; margin: 0; }
td .inline-form + .inline-form { margin-left: 6px; }
td input[type="date"],
td input[type="text"] {
    padding: 6px 8px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface);
    color: var(--ink);
    font-size: 13px;
}

/* ============================================================ */
/*  Petroltics — Landing Page                                   */
/* ============================================================ */
.landing {
    min-height: 100vh;
    background:
        radial-gradient(1100px 500px at 85% -10%, rgba(26, 86, 196, .18), transparent 60%),
        radial-gradient(900px 500px at -10% 10%, rgba(255, 196, 0, .10), transparent 55%),
        var(--bg);
    color: var(--ink);
}

/* ---- Top nav ---- */
.land-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 24px;
}

.land-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--ink);
}

.land-logo {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--brand-600), var(--brand-500));
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 20px;
    box-shadow: var(--shadow-sm);
}

.land-brand-text {
    font-weight: 800;
    font-size: 20px;
    letter-spacing: -.3px;
}

.land-brand-text small {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-600);
    margin-left: 2px;
    vertical-align: super;
}

.land-links {
    display: flex;
    align-items: center;
    gap: 26px;
}

.land-links a {
    text-decoration: none;
    color: var(--ink-2);
    font-weight: 600;
    font-size: 15px;
}

.land-links a:hover {
    color: var(--brand-600);
}

.land-login-btn {
    background: var(--brand-600);
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
}

.land-login-btn:hover {
    background: var(--brand-700);
}

/* ---- Hero ---- */
.land-hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px 70px;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 40px;
    align-items: center;
}

.land-badge {
    display: inline-block;
    background: var(--brand-50);
    color: var(--brand-600);
    border: 1px solid var(--brand-100);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 20px;
}

.land-hero h1 {
    font-size: 50px;
    line-height: 1.08;
    letter-spacing: -1.4px;
    font-weight: 800;
    margin-bottom: 18px;
}

.land-hero h1 em {
    font-style: normal;
    color: var(--brand-600);
}

.land-hero p {
    font-size: 18px;
    color: var(--ink-2);
    max-width: 540px;
    margin-bottom: 28px;
}

.land-cta {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
}

.land-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: auto;
}

.land-primary svg {
    width: 18px;
    height: 18px;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    padding: 13px 22px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink);
    font-weight: 700;
    text-decoration: none;
}

.btn-ghost:hover {
    border-color: var(--brand-200);
    color: var(--brand-600);
}

.land-stats {
    display: flex;
    gap: 34px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.land-stats div {
    display: flex;
    flex-direction: column;
}

.land-stats b {
    font-size: 20px;
    color: var(--ink);
}

.land-stats span {
    font-size: 13px;
    color: var(--muted);
}

/* ---- Hero art ---- */
.land-hero-art {
    position: relative;
    height: 360px;
}

.art-card {
    position: absolute;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 210px;
}

.art-card .art-label {
    font-size: 13px;
    color: var(--muted);
    font-weight: 600;
}

.art-card b {
    font-size: 26px;
    letter-spacing: -.5px;
}

.art-trend {
    font-size: 13px;
    color: var(--muted);
    font-weight: 700;
}

.art-trend.up {
    color: var(--green);
}

.art-1 {
    top: 20px;
    left: 20px;
    z-index: 3;
}

.art-2 {
    top: 130px;
    right: 10px;
    z-index: 2;
    border-top: 3px solid var(--brand-500);
}

.art-3 {
    bottom: 10px;
    left: 60px;
    z-index: 1;
    border-top: 3px solid var(--accent-500);
}

/* ---- Sections ---- */
.land-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 24px;
    text-align: center;
}

.land-section h2 {
    font-size: 34px;
    letter-spacing: -.8px;
    margin-bottom: 10px;
}

.land-sub {
    color: var(--muted);
    font-size: 16px;
    margin-bottom: 40px;
}

.land-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    text-align: left;
}

.land-feature {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-xs);
    transition: transform .15s ease, box-shadow .15s ease;
}

.land-feature:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.land-feature h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--brand-700);
}

.land-feature p {
    color: var(--ink-2);
    font-size: 15px;
}

.land-how {
    background: var(--surface);
    border-radius: 24px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}

.land-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    text-align: left;
    margin-top: 20px;
}

.land-step {
    padding: 20px;
}

.step-no {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--brand-50);
    color: var(--brand-600);
    font-weight: 800;
    font-size: 18px;
    margin-bottom: 14px;
}

.land-step h3 {
    font-size: 17px;
    margin-bottom: 6px;
}

.land-step p {
    color: var(--ink-2);
    font-size: 15px;
}

.land-final {
    text-align: center;
    padding: 70px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.land-final h2 {
    font-size: 30px;
    letter-spacing: -.6px;
    margin-bottom: 22px;
}

.land-foot {
    max-width: 1200px;
    margin: 0 auto;
    padding: 26px 24px;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--muted);
    font-size: 14px;
}

.land-admin-link {
    color: var(--muted);
    text-decoration: none;
    font-weight: 600;
}

.land-admin-link:hover {
    color: var(--brand-600);
}

@media (max-width: 860px) {
    .land-hero {
        grid-template-columns: 1fr;
    }
    .land-hero-art {
        display: none;
    }
    .land-hero h1 {
        font-size: 38px;
    }
    .land-grid,
    .land-steps {
        grid-template-columns: 1fr;
    }
    .land-links a:not(.land-login-btn) {
        display: none;
    }
}

/* ============================================================ */
/*  Petroltics — Admin console                                  */
/* ============================================================ */
.admin-shell {
    min-height: 100vh;
    background: var(--bg);
    display: flex;
    flex-direction: column;
}

.admin-top {
    height: var(--topbar-h);
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 26px;
}

.admin-top-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.admin-who {
    font-weight: 700;
    color: var(--ink-2);
}

.admin-main {
    flex: 1;
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    padding: 30px 24px;
}

.admin-grid {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 24px;
    align-items: start;
}

.admin-form-card,
.admin-list-card {
    padding: 24px;
    overflow: visible;
}

.admin-form-card h2,
.admin-list-card h2 {
    font-size: 19px;
    margin-bottom: 6px;
}

.admin-list-card h2 .count {
    display: inline-block;
    background: var(--brand-50);
    color: var(--brand-600);
    border-radius: 999px;
    padding: 1px 10px;
    font-size: 13px;
    margin-left: 6px;
    vertical-align: middle;
}

.muted {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 16px;
}

.stack {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.banner {
    padding: 11px 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 14px;
}

.banner.ok {
    background: var(--green-bg);
    color: var(--green);
}

.banner.err {
    background: var(--red-bg);
    color: var(--red);
}

.pill {
    display: inline-block;
    background: var(--yellow-bg);
    color: var(--yellow-ink);
    font-size: 11px;
    font-weight: 700;
    padding: 1px 8px;
    border-radius: 999px;
    margin-left: 4px;
}

.admin-list-card .table-wrap {
    overflow-x: auto;
    margin-top: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

@media (max-width: 820px) {
    .admin-grid {
        grid-template-columns: 1fr;
    }
}

/* Admin tenants table sits flush inside its bordered wrapper */
.admin-list-card .table-wrap .data-table {
    margin: 0;
    width: 100%;
}

.admin-list-card .data-table code {
    font-size: 12.5px;
    background: var(--surface-2);
    padding: 2px 6px;
    border-radius: 6px;
    color: var(--ink-2);
}

/* ============================================================ */
/*  Topbar — global search dropdown + notifications panel       */
/* ============================================================ */

/* ---- Search results dropdown ---- */
.search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    max-height: 360px;
    overflow-y: auto;
    z-index: 60;
    padding: 6px;
}

.sr-item {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas: "type label" "type sub";
    column-gap: 10px;
    align-items: center;
    padding: 9px 10px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--ink);
}

.sr-item:hover {
    background: var(--brand-50);
}

.sr-type {
    grid-area: type;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: var(--brand-600);
    background: var(--brand-50);
    border: 1px solid var(--brand-100);
    padding: 3px 8px;
    border-radius: 999px;
    white-space: nowrap;
}

.sr-label {
    grid-area: label;
    font-size: 14px;
    font-weight: 600;
}

.sr-sub {
    grid-area: sub;
    font-size: 12px;
    color: var(--muted);
}

.sr-empty {
    padding: 16px;
    text-align: center;
    color: var(--muted);
    font-size: 13.5px;
}

/* ---- Notifications panel ---- */
.notif-wrap {
    position: relative;
    flex-shrink: 0;
}

.notif-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 340px;
    max-width: 86vw;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: 60;
    overflow: hidden;
}

.notif-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 16px;
    border-bottom: 1px solid var(--line-soft);
}

.notif-head b {
    font-size: 14.5px;
}

.notif-summary {
    font-size: 12px;
    color: var(--muted);
    font-weight: 600;
}

.notif-list {
    max-height: 340px;
    overflow-y: auto;
}

.notif-item {
    display: block;
    padding: 11px 16px;
    border-bottom: 1px solid var(--line-soft);
    text-decoration: none;
    color: var(--ink);
}

.notif-item:hover {
    background: var(--surface-2);
}

.notif-item.overdue {
    border-left: 3px solid var(--red);
}

.ni-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.ni-top b {
    font-size: 13.5px;
}

.ni-amt {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--brand-700);
}

.ni-sub {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: var(--muted);
}

.ni-flag {
    color: var(--red);
    font-weight: 700;
}

.notif-empty {
    padding: 22px 16px;
    text-align: center;
    color: var(--muted);
    font-size: 13.5px;
}

.notif-foot {
    display: block;
    text-align: center;
    padding: 11px;
    font-size: 13px;
    font-weight: 600;
    color: var(--brand-600);
    text-decoration: none;
    border-top: 1px solid var(--line-soft);
    background: var(--surface-2);
}

.notif-foot:hover {
    background: var(--brand-50);
}

/* The red dot uses [hidden] now; keep it visible when not hidden */
.icon-btn .dot[hidden] {
    display: none;
}

@media (max-width: 560px) {
    .search {
        width: 160px;
    }
}

/* ============================================================ */
/*  Daily Sales — inline oil sales entry                        */
/* ============================================================ */
.oil-group {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    margin-bottom: 12px;
    background: var(--surface-2);
}

.oil-group-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.oil-group-head b {
    font-size: 13.5px;
    color: var(--ink);
}

.oil-table {
    width: 100%;
    border-collapse: collapse;
}

.oil-table th {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--muted);
    text-align: left;
    padding: 4px 6px;
    white-space: nowrap;
}

.oil-table td {
    padding: 3px 6px;
}

.oil-table input,
.oil-table select {
    width: 100%;
    min-width: 72px;
    padding: 7px 9px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font: inherit;
    font-size: 13px;
    color: var(--ink);
    background: var(--surface);
    box-sizing: border-box;
    height: 36px;
}

/* Custom chevron for the oil-type select so it matches the app's inputs */
.oil-table select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-right: 30px;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.oil-table input:focus,
.oil-table select:focus {
    outline: none;
    border-color: var(--brand-500);
    box-shadow: 0 0 0 3px rgba(0, 51, 160, .1);
}

.oil-table .oil-product {
    min-width: 160px;
}

/* Oil price-design rows use the HTML5 `form=` attribute so each product saves
   independently without nesting a <form> inside a table row. The anchor form
   itself carries no layout. */
.hidden-inline-form {
    display: contents;
}

/* ============================================================ Petroltics Assistant */
.assistant-btn {
    color: var(--brand-600);
}

.asst-popup {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 380px;
    max-width: calc(100vw - 32px);
    height: 560px;
    max-height: calc(100vh - 110px);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 1200;
}

.asst-popup[hidden] {
    display: none;
}

/* Head */
.asst-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    background: linear-gradient(135deg, var(--brand-600), var(--brand-800));
    color: #fff;
}

.asst-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.asst-title b {
    font-size: 14px;
    display: block;
    line-height: 1.2;
}

.asst-sub {
    font-size: 11px;
    opacity: .8;
}

.asst-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent-500);
    box-shadow: 0 0 0 3px rgba(255, 196, 0, .25);
    flex-shrink: 0;
}

.asst-head-actions {
    display: flex;
    gap: 4px;
}

.asst-icon {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    cursor: pointer;
    transition: background .15s;
}

.asst-icon:hover {
    background: rgba(255, 255, 255, .28);
}

.asst-icon svg {
    width: 16px;
    height: 16px;
}

/* BYOK keys panel */
.asst-keys {
    padding: 12px 14px;
    background: var(--surface-2);
    border-bottom: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.asst-keys[hidden] {
    display: none;
}

.asst-keys label {
    font-size: 11px;
    font-weight: 600;
    color: var(--ink-2);
    margin-top: 4px;
}

.asst-keys select,
.asst-keys input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 13px;
    background-color: var(--surface);
    color: var(--ink);
}

.asst-keys select:focus,
.asst-keys input:focus {
    outline: none;
    border-color: var(--brand-500);
    box-shadow: 0 0 0 4px rgba(0, 51, 160, .11);
}

.asst-muted {
    color: var(--muted);
    font-weight: 400;
}

.asst-keys-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 8px;
    font-size: 11px;
}

.asst-save {
    border: none;
    background: var(--brand-600);
    color: #fff;
    padding: 7px 16px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    font-size: 12px;
}

.asst-save:hover {
    background: var(--brand-700);
}

/* Message body */
.asst-body {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--bg);
}

.asst-msg {
    max-width: 85%;
    padding: 9px 12px;
    border-radius: 14px;
    font-size: 13px;
    line-height: 1.45;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.asst-msg.bot {
    align-self: flex-start;
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--ink);
    border-bottom-left-radius: 4px;
}

.asst-msg.user {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
    color: #fff;
    border-bottom-right-radius: 4px;
}

.asst-msg.pending {
    opacity: .6;
    font-style: italic;
}

/* Markdown rendering inside bot messages */
.asst-msg.bot strong {
    font-weight: 700;
    color: var(--ink);
}

.asst-msg.bot .asst-ul {
    margin: 6px 0;
    padding-left: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.asst-msg.bot .asst-ul li {
    position: relative;
    padding: 7px 10px 7px 12px;
    background: var(--surface-2);
    border: 1px solid var(--line-soft);
    border-left: 3px solid var(--brand-500);
    border-radius: 8px;
    line-height: 1.45;
    font-size: 12.5px;
}

/* Date / label line inside a bullet */
.asst-msg.bot .asst-li-label {
    display: block;
    font-weight: 700;
    color: var(--brand-700);
    margin-bottom: 2px;
}

/* The figures line inside a bullet */
.asst-msg.bot .asst-li-vals {
    display: block;
    color: var(--ink-2);
}

/* Pipe separators between figures */
.asst-msg.bot .asst-sep {
    display: inline-block;
    margin: 0 6px;
    color: var(--faint);
}

/* Sub-heading lines like "Total:" */
.asst-msg.bot .asst-head-line {
    margin-top: 10px;
    margin-bottom: 2px;
    font-weight: 700;
    color: var(--ink);
    font-size: 13px;
}

.asst-msg.bot .asst-gap {
    height: 8px;
}

.asst-msg.bot > div {
    line-height: 1.5;
}

/* Input row */
.asst-input {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding: 10px 12px;
    border-top: 1px solid var(--line);
    background: var(--surface);
}

.asst-input textarea {
    flex: 1;
    resize: none;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 9px 12px;
    font-family: inherit;
    font-size: 13px;
    line-height: 1.4;
    max-height: 120px;
    color: var(--ink);
    background: var(--surface-2);
}

.asst-input textarea:focus {
    outline: none;
    border-color: var(--brand-500);
    box-shadow: 0 0 0 3px rgba(0, 51, 160, .1);
    background: var(--surface);
}

.asst-mic,
.asst-send {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    color: var(--brand-600);
    cursor: pointer;
    transition: all .15s;
}

.asst-mic svg,
.asst-send svg {
    width: 17px;
    height: 17px;
}

.asst-mic:hover,
.asst-send:hover {
    background: var(--brand-50);
    border-color: var(--brand-200);
}

.asst-send {
    background: linear-gradient(180deg, var(--brand-600), var(--brand-700));
    color: #fff;
    border-color: transparent;
}

.asst-send:hover {
    background: linear-gradient(180deg, var(--brand-500), var(--brand-600));
    color: #fff;
}

.asst-mic.recording {
    background: var(--red-bg);
    color: var(--red);
    border-color: var(--red);
    animation: asst-pulse 1.1s ease-in-out infinite;
}

@keyframes asst-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, .4); }
    50% { box-shadow: 0 0 0 6px rgba(220, 38, 38, 0); }
}

@media (max-width: 480px) {
    .asst-popup {
        right: 8px;
        bottom: 8px;
        height: calc(100vh - 80px);
    }
}

.payment-type {
    font-size: 11px;
    color: var(--muted);
    margin-top: 2px;
}

td .inline-form.pay-form {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    min-width: 132px;
}

.pay-label {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0;
}

.pay-form select {
    padding: 7px 9px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font-size: 12.5px;
    font-family: inherit;
    background-color: var(--surface);
    color: var(--ink);
    cursor: pointer;
    width: 100%;
    transition: border-color .15s, box-shadow .15s;
}

.pay-form select:hover {
    border-color: #cbd5e1;
}

.pay-form select:focus {
    outline: none;
    border-color: var(--brand-500);
    box-shadow: 0 0 0 3px rgba(0, 51, 160, .11);
}

.pay-form .btn {
    width: 100%;
}

/* Unified custom dropdown chevron on every select */
select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1.5 1.75L6 6.25L10.5 1.75' stroke='%2364748b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px 8px;
    padding-right: 34px;
    cursor: pointer;
}

select:hover {
    border-color: #cbd5e1;
}

select:focus {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1.5 1.75L6 6.25L10.5 1.75' stroke='%231a56c4' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>");
}

.field select { padding-right: 34px; }
.filter-bar select { padding-right: 34px; }
.pay-form select { padding-right: 28px; background-position: right 8px center; }
.report-dl-row select { padding-right: 30px; background-position: right 10px center; }
.shift-block-head .shift-select { padding-right: 32px; }
.asst-keys select { padding-right: 28px; background-position: right 9px center; }

/* Dropdown polish — reinforce custom chrome on all states */
select,
select:hover,
select:focus,
select:active {
    appearance: none !important;
    -webkit-appearance: none !important;
}

.field select {
    border-radius: 12px;
    padding: 10px 36px 10px 13px;
    min-height: 42px;
}

select:required:invalid {
    color: var(--muted);
}

select option {
    color: var(--ink);
}
