@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    --c-primary:     #007A41;
    --c-primary-h:   #005e31;
    --c-primary-l:   #e8f5ee;
    --c-accent:      #B0CB1F;
    --c-accent-l:    #f4f8e0;

    /* Light theme surfaces */
    --c-bg:          #f4f6f8;
    --c-surface:     #ffffff;
    --c-surface2:    #f8fafb;
    --c-border:      #e5e9ed;
    --c-border-l:    #f0f3f5;

    /* Semantic */
    --c-green:       #16a34a;
    --c-green-l:     #dcfce7;
    --c-red:         #dc2626;
    --c-red-l:       #fee2e2;
    --c-amber:       #d97706;
    --c-amber-l:     #fef3c7;
    --c-blue:        #2563eb;
    --c-blue-l:      #dbeafe;
    --c-purple:      #7c3aed;
    --c-purple-l:    #ede9fe;

    /* Text */
    --c-text:        #111827;
    --c-text-2:      #374151;
    --c-muted:       #6b7280;
    --c-muted-l:     #9ca3af;

    /* Layout */
    --c-sidebar:     210px;
    --radius:        10px;
    --radius-lg:     14px;
    --shadow-sm:     0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --shadow:        0 4px 16px rgba(0,0,0,.08);
    --shadow-lg:     0 10px 40px rgba(0,0,0,.12);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; font-family: 'Inter', sans-serif; font-size: 14px; color: var(--c-text); background: var(--c-bg); -webkit-font-smoothing: antialiased; }
input, select, textarea, button { pointer-events: auto !important; user-select: auto; -webkit-user-select: auto; font-family: inherit; }

/* ══ LOGIN ═══════════════════════════════════════════ */
.sim-login-page {
    display: flex; align-items: center; justify-content: center; min-height: 100vh;
    background: linear-gradient(135deg, #f0faf4 0%, #e8f5ee 50%, #f4f8e0 100%);
}
.sim-login-wrap { width: 100%; max-width: 420px; padding: 20px; position: relative; z-index: 10; }
.sim-login-card {
    background: var(--c-surface); border: 1px solid var(--c-border);
    border-radius: 20px; padding: 44px 40px; box-shadow: var(--shadow-lg);
}
.sim-login-brand { text-align: center; margin-bottom: 32px; }
.sim-login-logo {
    width: 64px; height: 64px; border-radius: 16px;
    background: linear-gradient(135deg, var(--c-primary), #00a855);
    display: flex; align-items: center; justify-content: center;
    font-size: 30px; margin: 0 auto 14px;
    box-shadow: 0 8px 24px rgba(0,122,65,.25);
}
.sim-login-brand h1 { font-size: 22px; font-weight: 700; color: var(--c-text); }
.sim-login-brand p  { color: var(--c-muted); margin-top: 4px; font-size: 13px; }
.sim-login-hint { text-align: center; color: var(--c-muted-l); font-size: 11px; margin-top: 14px; }
.sim-pw-toggle { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; font-size: 15px; color: var(--c-muted); z-index: 2; }
.sim-pw-toggle:hover { color: var(--c-primary); }
.sim-input-wrap { position: relative; }
.sim-input-wrap .sim-input { padding-right: 40px; }

/* ══ SHELL ════════════════════════════════════════════ */
.sim-app { height: 100vh; }
.sim-app:not(.sim-login-page) { overflow: hidden; }
.sim-shell { display: flex; height: 100vh; }

/* ══ SIDEBAR ══════════════════════════════════════════ */
.sim-sidebar {
    width: var(--c-sidebar);
    background: var(--c-primary);
    display: flex; flex-direction: column;
    flex-shrink: 0;
    transition: transform .25s;
    z-index: 200;
}
.sim-sidebar-brand {
    display: flex; align-items: center; gap: 10px;
    padding: 20px 16px 16px;
    border-bottom: 1px solid rgba(255,255,255,.1);
}
.sim-brand-logo {
    width: 36px; height: 36px; border-radius: 10px;
    background: rgba(255,255,255,.2);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; flex-shrink: 0;
}
.sim-brand-text { display: flex; flex-direction: column; }
.sim-brand-name { font-weight: 700; font-size: 14px; color: #fff; line-height: 1.2; }
.sim-brand-sub  { font-size: 9px; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: .1em; font-weight: 600; margin-top: 1px; }

.sim-nav { flex: 1; padding: 12px 10px; overflow-y: auto; }
.sim-nav-section { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.4); padding: 12px 8px 4px; margin-top: 4px; }
.sim-nav-item {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 10px; border-radius: 8px;
    color: rgba(255,255,255,.75); text-decoration: none;
    font-weight: 500; font-size: 13px;
    transition: all .15s; margin-bottom: 1px;
}
.sim-nav-item:hover { background: rgba(255,255,255,.12); color: #fff; }
.sim-nav-item.active { background: rgba(255,255,255,.18); color: #fff; font-weight: 600; }
.sim-nav-icon { font-size: 15px; width: 20px; text-align: center; flex-shrink: 0; opacity: .85; }
.sim-nav-divider { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.35); padding: 14px 8px 4px; border-top: 1px solid rgba(255,255,255,.1); margin-top: 6px; }

.sim-sidebar-footer {
    padding: 12px 10px; border-top: 1px solid rgba(255,255,255,.1);
    display: flex; align-items: center; gap: 8px;
}
.sim-user-chip { display: flex; align-items: center; gap: 9px; flex: 1; min-width: 0; cursor: pointer; }
.sim-user-avatar {
    width: 34px; height: 34px; border-radius: 50%;
    background: rgba(255,255,255,.25);
    color: #fff; font-weight: 700; font-size: 13px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; overflow: hidden; position: relative;
    border: 2px solid rgba(255,255,255,.3);
}
.sim-user-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.sim-user-info { display: flex; flex-direction: column; min-width: 0; }
.sim-user-name { font-size: 12px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sim-user-role { font-size: 10px; color: rgba(255,255,255,.55); text-transform: capitalize; }
.sim-logout-btn { background: none; border: none; cursor: pointer; font-size: 16px; color: rgba(255,255,255,.5); padding: 5px; border-radius: 6px; flex-shrink: 0; transition: all .15s; }
.sim-logout-btn:hover { background: rgba(255,255,255,.15); color: #fff; }

/* ══ TOPBAR ══════════════════════════════════════════ */
.sim-main { flex: 1; display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.sim-topbar {
    height: 60px; background: var(--c-surface);
    border-bottom: 1px solid var(--c-border);
    display: flex; align-items: center; gap: 14px; padding: 0 24px;
    flex-shrink: 0; box-shadow: var(--shadow-sm);
}
.sim-menu-toggle { display: none; background: none; border: none; font-size: 20px; color: var(--c-muted); cursor: pointer; }
.sim-topbar-title { font-weight: 600; font-size: 16px; flex: 1; color: var(--c-text); }
.sim-topbar-date { font-size: 12px; color: var(--c-muted); font-weight: 500; }
.sim-role-badge { font-size: 11px; font-weight: 600; padding: 4px 12px; border-radius: 999px; }
.sim-role-admin         { background: var(--c-amber-l); color: var(--c-amber); }
.sim-role-store_manager { background: var(--c-primary-l); color: var(--c-primary); }
.sim-topbar-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--c-primary-l); color: var(--c-primary); font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; border: 2px solid var(--c-border); flex-shrink: 0; }
.sim-topbar-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

.sim-content { flex: 1; overflow-y: auto; padding: 24px; background: var(--c-bg); }

/* ══ PAGE HEADER ═════════════════════════════════════ */
.sim-page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; flex-wrap: wrap; gap: 10px; }
.sim-page-header h2 { font-size: 20px; font-weight: 700; color: var(--c-text); }
.sim-page-date { font-size: 12px; color: var(--c-muted); font-weight: 500; }

/* ══ STAT CARDS ══════════════════════════════════════ */
.sim-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 22px; }
.sim-stat-card {
    background: var(--c-surface); border: 1px solid var(--c-border);
    border-radius: var(--radius); padding: 20px;
    display: flex; align-items: center; gap: 16px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow .15s, transform .15s;
    position: relative; overflow: hidden;
}
.sim-stat-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; }
.sim-stat-green::before  { background: var(--c-green); }
.sim-stat-red::before    { background: var(--c-red); }
.sim-stat-amber::before  { background: var(--c-amber); }
.sim-stat-blue::before   { background: var(--c-blue); }
.sim-stat-purple::before { background: var(--c-purple); }
.sim-stat-card:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.sim-stat-icon { font-size: 28px; flex-shrink: 0; }
.sim-stat-val { font-size: 26px; font-weight: 700; line-height: 1; color: var(--c-text); }
.sim-stat-lbl { font-size: 12px; color: var(--c-muted); margin-top: 3px; font-weight: 500; }

/* ══ CARDS ════════════════════════════════════════════ */
.sim-card { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); overflow: hidden; margin-bottom: 20px; box-shadow: var(--shadow-sm); }
.sim-card-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--c-border); }
.sim-card-header h3 { font-size: 14px; font-weight: 600; color: var(--c-text); }
.sim-card-footer { padding: 12px 18px; border-top: 1px solid var(--c-border); background: var(--c-surface2); }
.sim-link { font-size: 13px; color: var(--c-primary); text-decoration: none; font-weight: 500; }
.sim-link:hover { color: var(--c-primary-h); text-decoration: underline; }

/* ══ TABLE ════════════════════════════════════════════ */
.sim-table-wrap { overflow-x: auto; }
.sim-table { width: 100%; border-collapse: collapse; font-size: 13px; white-space: nowrap; }
.sim-table thead th {
    background: var(--c-surface2); padding: 10px 16px; text-align: left;
    font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em;
    color: var(--c-muted); border-bottom: 1px solid var(--c-border);
}
.sim-table tbody td { padding: 12px 16px; border-bottom: 1px solid var(--c-border-l); vertical-align: middle; color: var(--c-text-2); }
.sim-table tbody tr:last-child td { border-bottom: none; }
.sim-table tbody tr:hover td { background: var(--c-surface2); }
.sim-table-striped tbody tr:nth-child(even) td { background: #fafbfc; }
.sim-tbl-empty { text-align: center; padding: 48px !important; color: var(--c-muted-l); font-size: 13px; }

/* ══ FILTERS ══════════════════════════════════════════ */
.sim-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }

/* ══ FORMS ════════════════════════════════════════════ */
.sim-form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sim-form-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.sim-fg { display: flex; flex-direction: column; gap: 5px; margin-bottom: 16px; }
.sim-fg label { font-size: 12px; font-weight: 600; color: var(--c-text-2); letter-spacing: .01em; }
.sim-fg small, .sim-hint { font-size: 11px; color: var(--c-muted); font-weight: 400; }
.req { color: var(--c-red); }
.sim-badge-admin { font-size: 10px; background: var(--c-amber-l); color: var(--c-amber); padding: 2px 7px; border-radius: 999px; font-weight: 600; }

.sim-input, .sim-select, .sim-textarea {
    background: var(--c-surface);
    border: 1.5px solid var(--c-border);
    border-radius: 8px; padding: 9px 12px;
    color: var(--c-text); font-size: 13.5px;
    transition: border-color .15s, box-shadow .15s;
    width: 100%;
}
.sim-input::placeholder, .sim-textarea::placeholder { color: var(--c-muted-l); }
.sim-input:focus, .sim-select:focus, .sim-textarea:focus {
    outline: none; border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(0,122,65,.1);
}
.sim-input:hover, .sim-select:hover { border-color: #c5cdd4; }
.sim-input-readonly { background: var(--c-surface2); color: var(--c-muted); cursor: not-allowed; }
.sim-input-sm { max-width: 160px; }
.sim-select { cursor: pointer; }
.sim-textarea { resize: vertical; }
.sim-input-group { display: flex; gap: 8px; align-items: center; }
.sim-qty-group { display: flex; gap: 6px; }
.sim-qty-group .sim-input { flex: 1; }

/* ══ BUTTONS ══════════════════════════════════════════ */
.sim-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 16px; border-radius: 8px;
    font-size: 13px; font-weight: 600; cursor: pointer;
    border: none; text-decoration: none;
    transition: all .15s; white-space: nowrap;
}
.sim-btn:active { transform: scale(.98); }
.sim-btn-primary  { background: var(--c-primary); color: #fff; box-shadow: 0 1px 3px rgba(0,122,65,.3); }
.sim-btn-primary:hover  { background: var(--c-primary-h); color: #fff; box-shadow: 0 4px 12px rgba(0,122,65,.35); }
.sim-btn-secondary { background: var(--c-surface); color: var(--c-text-2); border: 1.5px solid var(--c-border); }
.sim-btn-secondary:hover { border-color: var(--c-primary); color: var(--c-primary); }
.sim-btn-outline  { background: transparent; color: var(--c-primary); border: 1.5px solid var(--c-primary); }
.sim-btn-outline:hover  { background: var(--c-primary-l); }
.sim-btn-danger   { background: var(--c-red-l); color: var(--c-red); border: 1.5px solid #fecaca; }
.sim-btn-danger:hover   { background: var(--c-red); color: #fff; }
.sim-btn-ghost    { background: transparent; color: var(--c-muted); }
.sim-btn-ghost:hover    { color: var(--c-text); background: var(--c-surface2); }
.sim-btn-sm    { padding: 5px 11px; font-size: 12px; border-radius: 6px; }
.sim-btn-block { width: 100%; justify-content: center; padding: 11px; font-size: 14px; }

/* ══ MODAL ════════════════════════════════════════════ */
.sim-modal { position: fixed; inset: 0; z-index: 9000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.sim-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.35); backdrop-filter: blur(4px); z-index: 0; }
.sim-modal-box {
    position: relative; z-index: 1;
    background: var(--c-surface); border: 1px solid var(--c-border);
    border-radius: 16px; width: 100%; max-width: 560px;
    max-height: 90vh; overflow-y: auto;
    box-shadow: var(--shadow-lg); animation: sim-pop .2s ease;
}
@keyframes sim-pop { from { opacity:0; transform: scale(.95) translateY(10px); } to { opacity:1; transform: none; } }
.sim-modal-header {
    display: flex; align-items: flex-start; justify-content: space-between;
    padding: 20px 22px 16px; position: sticky; top: 0; background: var(--c-surface); z-index: 1;
    border-bottom: 1px solid var(--c-border);
}
.sim-modal-header h3 { font-size: 16px; font-weight: 700; color: var(--c-text); }
.sim-modal-header .modal-sub { font-size: 12px; color: var(--c-muted); margin-top: 2px; }
.sim-modal-close { background: none; border: none; cursor: pointer; font-size: 18px; color: var(--c-muted); padding: 2px 6px; border-radius: 6px; margin-top: -2px; }
.sim-modal-close:hover { background: var(--c-surface2); color: var(--c-text); }
.sim-modal-body   { padding: 20px 22px; }
.sim-modal-footer { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 22px; border-top: 1px solid var(--c-border); background: var(--c-surface2); border-radius: 0 0 16px 16px; }
.sim-mini-modal { z-index: 9999; }
.sim-mini-modal .sim-modal-backdrop { background: rgba(0,0,0,.25); }
.sim-modal-box-sm { max-width: 460px; }

/* Section headings inside modal */
.sim-modal-section { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--c-primary); margin: 0 0 14px; padding-bottom: 6px; border-bottom: 2px solid var(--c-primary-l); }

/* ══ ALERTS & TOAST ══════════════════════════════════ */
.sim-alert { padding: 10px 14px; border-radius: 8px; font-size: 13px; font-weight: 500; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.sim-alert-error   { background: var(--c-red-l);   color: var(--c-red);   border: 1px solid #fecaca; }
.sim-alert-success { background: var(--c-green-l); color: var(--c-green); border: 1px solid #bbf7d0; }

.sim-toast { position: fixed; bottom: 24px; right: 24px; z-index: 99999; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.sim-toast-item { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 10px; padding: 12px 18px; font-size: 13px; font-weight: 600; box-shadow: var(--shadow); animation: sim-toast-in .25s ease; min-width: 220px; color: var(--c-text); }
.sim-toast-item.success { border-left: 3px solid var(--c-green); }
.sim-toast-item.error   { border-left: 3px solid var(--c-red); }
@keyframes sim-toast-in { from { opacity:0; transform: translateX(20px); } to { opacity:1; transform: none; } }

/* ══ PAGINATION & BADGES ═════════════════════════════ */
.sim-pagination { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.sim-page-btn { padding: 5px 10px; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 6px; color: var(--c-text-2); cursor: pointer; font-size: 12px; font-weight: 500; }
.sim-page-btn:hover { border-color: var(--c-primary); color: var(--c-primary); }
.sim-page-btn.active { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.sim-page-info { font-size: 12px; color: var(--c-muted); margin-left: 6px; }

.sim-badge { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.sim-badge-success { background: var(--c-green-l); color: var(--c-green); }
.sim-badge-error   { background: var(--c-red-l);   color: var(--c-red); }
.sim-badge-info    { background: var(--c-blue-l);   color: var(--c-blue); }
.sim-badge-warning { background: var(--c-amber-l);  color: var(--c-amber); }

code { font-family: 'JetBrains Mono', monospace; font-size: 12px; background: var(--c-surface2); padding: 2px 6px; border-radius: 4px; color: var(--c-primary); border: 1px solid var(--c-border); }

/* ══ DASHBOARD GRID ══════════════════════════════════ */
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
@media (max-width: 900px) { .dash-grid { grid-template-columns: 1fr; } }

/* ══ STOCK IN OVERLAY ════════════════════════════════ */
#si-form-overlay {
    position: fixed; inset: 0; z-index: 8000;
    background: var(--c-bg); overflow-y: auto;
    display: flex; flex-direction: column;
    animation: sim-pop .2s ease;
}
.sif-header {
    position: sticky; top: 0; z-index: 10;
    background: var(--c-surface); border-bottom: 1px solid var(--c-border);
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 24px; flex-shrink: 0; box-shadow: var(--shadow-sm);
}
.sif-title { font-size: 17px; font-weight: 700; color: var(--c-text); }
.sif-close { background: none; border: 1.5px solid var(--c-border); color: var(--c-muted); padding: 7px 14px; border-radius: 8px; cursor: pointer; font-size: 13px; font-weight: 600; }
.sif-close:hover { border-color: var(--c-red); color: var(--c-red); background: var(--c-red-l); }
.sif-body { padding: 24px; flex: 1; max-width: 1400px; width: 100%; margin: 0 auto; }
.sif-section { margin-bottom: 20px; }
.sif-footer { display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 16px 0 24px; }
.sif-footer #sif-error { flex: 1; margin: 0; }
.sif-items-table tbody tr td { padding: 7px 8px; vertical-align: middle; }
.sif-items-table tfoot td { background: var(--c-surface2); border-top: 2px solid var(--c-border); font-weight: 600; padding: 10px 14px; color: var(--c-text); font-size: 13px; }
.sif-row-num { color: var(--c-muted-l); font-size: 12px; font-weight: 600; text-align: center; }
.sif-items-table .sim-input, .sif-items-table .sim-select { padding: 7px 10px; font-size: 13px; }
.sif-add-sup-btn, .sif-add-crop-btn { display: inline-flex; align-items: center; background: none; border: none; cursor: pointer; color: var(--c-primary); font-size: 11px; font-weight: 600; padding: 2px 4px; margin-top: 2px; }
.sif-add-sup-btn:hover, .sif-add-crop-btn:hover { text-decoration: underline; }
.sif-del-row { background: none; border: none; cursor: pointer; color: var(--c-muted-l); font-size: 15px; padding: 4px 8px; border-radius: 5px; }
.sif-del-row:hover { background: var(--c-red-l); color: var(--c-red); }
.sif-qty-wrap { display: flex; gap: 4px; }
.sif-qty-wrap .sim-input { flex: 1; min-width: 70px; }
.sif-qty-wrap .sim-select { width: 90px; flex-shrink: 0; }
.sif-amount-cell { font-weight: 600; color: var(--c-green); white-space: nowrap; font-size: 13px; }

/* ══ USER DP SECTION ═════════════════════════════════ */
.user-dp-section { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; padding: 16px; background: var(--c-surface2); border-radius: var(--radius); border: 1px solid var(--c-border); }
.user-dp-preview { width: 68px; height: 68px; border-radius: 50%; background: var(--c-primary-l); color: var(--c-primary); font-weight: 700; font-size: 24px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; border: 2px solid var(--c-border); overflow: hidden; position: relative; }
.user-dp-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.user-dp-actions { display: flex; flex-direction: column; gap: 8px; }

/* ══ REPORTS ══════════════════════════════════════════ */
.rpt-filter-card .sim-card-body { padding: 18px; }
.rpt-export-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; padding: 12px 16px; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.rpt-export-label { font-size: 12px; font-weight: 600; color: var(--c-muted); }
.rpt-summary-grid { grid-template-columns: repeat(4,1fr); }

/* ══ RESPONSIVE ═══════════════════════════════════════ */
@media (max-width: 768px) {
    :root { --c-sidebar: 230px; }
    .sim-sidebar { position: fixed; left: 0; top: 0; bottom: 0; transform: translateX(-100%); }
    .sim-sidebar.open { transform: none; box-shadow: var(--shadow-lg); }
    .sim-menu-toggle { display: block; }
    .sim-form-grid-2, .sim-form-grid-3 { grid-template-columns: 1fr; }
    .sim-stats-grid { grid-template-columns: 1fr 1fr; }
}

/* ══ TOPBAR RIGHT ════════════════════════════════════ */
.sim-topbar-right { display: flex; align-items: center; gap: 14px; }
.sim-topbar-user  { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.sim-topbar-username { font-size: 13px; font-weight: 600; color: var(--c-text-2); }

/* ══ DASHBOARD GREETING ══════════════════════════════ */
.dash-greeting {
    display: flex; align-items: flex-start; justify-content: space-between;
    flex-wrap: wrap; gap: 16px; margin-bottom: 24px;
}
.dash-greeting-text h2 { font-size: 22px; font-weight: 700; color: var(--c-text); margin-bottom: 4px; }
.dash-greeting-text p  { font-size: 13px; color: var(--c-muted); font-weight: 400; }
.dash-quick-actions { display: flex; gap: 10px; flex-shrink: 0; align-items: center; }
.dash-btn-out { background: var(--c-red); color: #fff; box-shadow: 0 1px 3px rgba(220,38,38,.3); }
.dash-btn-out:hover { background: #b91c1c; color: #fff; }

/* ══ DASHBOARD STAT CARDS ════════════════════════════ */
.dash-stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px; margin-bottom: 22px;
}
@media (max-width: 1200px) { .dash-stats-grid { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 700px)  { .dash-stats-grid { grid-template-columns: 1fr 1fr; } }

.dash-stat-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 20px 18px;
    box-shadow: var(--shadow-sm);
    position: relative; overflow: hidden;
    transition: box-shadow .15s, transform .15s;
}
.dash-stat-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

/* Blob decorations */
.dash-stat-blob {
    position: absolute; top: -20px; right: -20px;
    width: 80px; height: 80px; border-radius: 50%; opacity: .15;
}
.dash-blob-green  { background: var(--c-green); }
.dash-blob-green2 { background: #059669; }
.dash-blob-red    { background: var(--c-red); }
.dash-blob-amber  { background: var(--c-amber); }
.dash-blob-blue   { background: var(--c-blue); }

/* Icon circles */
.dash-stat-icon-wrap {
    width: 38px; height: 38px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 14px;
}
.dash-icon-green  { background: var(--c-green-l); color: var(--c-green); }
.dash-icon-green2 { background: #d1fae5; color: #059669; }
.dash-icon-red    { background: var(--c-red-l);   color: var(--c-red); }
.dash-icon-amber  { background: var(--c-amber-l); color: var(--c-amber); }
.dash-icon-blue   { background: var(--c-blue-l);  color: var(--c-blue); }

.dash-stat-lbl { font-size: 12px; color: var(--c-muted); font-weight: 500; margin-bottom: 4px; }
.dash-stat-val { font-size: 26px; font-weight: 700; color: var(--c-text); line-height: 1.1; }
.dash-stat-sub { font-size: 11px; color: var(--c-muted-l); margin-top: 4px; }

/* ══ TRANSACTION BADGES ══════════════════════════════ */
.dash-tx-badge { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.dash-tx-in    { background: var(--c-green-l); color: var(--c-green); }
.dash-tx-out   { background: var(--c-red-l);   color: var(--c-red); }

/* ══ LOW STOCK COUNT BADGE ═══════════════════════════ */
.dash-count-badge { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; margin-left: 8px; }

/* ══ SVG NAV ICONS ═══════════════════════════════════ */
.sim-nav-svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.sim-nav-item { gap: 9px; }
.sim-nav-section { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.35); padding: 14px 10px 4px; }

/* ══ PAGE HEADER (new consistent style) ══════════════ */
.pg-header {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 12px; margin-bottom: 20px;
}
.pg-header h2 { font-size: 20px; font-weight: 700; color: var(--c-text); margin-bottom: 2px; }
.pg-header p  { font-size: 13px; color: var(--c-muted); }
.pg-header-actions { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; }
.pg-header-actions .sim-input,
.pg-header-actions .sim-select { height: 36px; }

/* Search box */
.search-box { position: relative; display: flex; align-items: center; }
.search-box svg { position: absolute; left: 10px; width: 14px; height: 14px; stroke: var(--c-muted); pointer-events: none; }
.search-box input { padding-left: 32px; height: 36px; min-width: 180px; border-radius: 8px; border: 1.5px solid var(--c-border); background: var(--c-surface); font-size: 13px; color: var(--c-text); outline: none; }
.search-box input:focus { border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(0,122,65,.1); }
.sim-select-sm { height: 36px; padding: 0 10px; font-size: 13px; border-radius: 8px; }

/* Page table - clean no-outer-border style */
.pg-table { border-collapse: separate; border-spacing: 0; }
.pg-table thead th { background: transparent; border-bottom: 2px solid var(--c-border); font-size: 11px; font-weight: 700; color: var(--c-muted); text-transform: uppercase; letter-spacing: .06em; padding: 10px 16px; }
.pg-table tbody td { padding: 14px 16px; border-bottom: 1px solid var(--c-border-l); vertical-align: middle; }
.pg-table tbody tr:last-child td { border-bottom: none; }
.pg-table tbody tr:hover td { background: #f8fafb; }

/* Status dot */
.status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 6px; }
.status-dot-green { background: var(--c-green); box-shadow: 0 0 0 2px rgba(22,163,74,.2); }
.status-dot-amber { background: var(--c-amber); box-shadow: 0 0 0 2px rgba(217,119,6,.2); }
.status-dot-red   { background: var(--c-red);   box-shadow: 0 0 0 2px rgba(220,38,38,.2); }

/* Stock badges */
.stock-badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; border: 1px solid; }
.stock-badge-in  { background: var(--c-green-l); color: var(--c-green); border-color: #bbf7d0; }
.stock-badge-out { background: var(--c-red-l);   color: var(--c-red);   border-color: #fecaca; }
.stock-in-qty  { color: var(--c-green); font-weight: 700; }
.stock-out-qty { color: var(--c-red);   font-weight: 700; }

/* Balance stock bold green */
.balance-bold { font-weight: 700; color: var(--c-primary); font-size: 14px; }

/* Action icon buttons */
.action-btn { width: 30px; height: 30px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--c-border); background: var(--c-surface); cursor: pointer; transition: all .15s; color: var(--c-muted); }
.action-btn svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }
.action-btn-edit:hover  { border-color: var(--c-primary); color: var(--c-primary); background: var(--c-primary-l); }
.action-btn-del:hover   { border-color: var(--c-red); color: var(--c-red); background: var(--c-red-l); }

/* Category tag chip */
.cat-chip { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--c-surface2); border: 1px solid var(--c-border); font-size: 12px; color: var(--c-text-2); }

/* ══ WIDE MODAL for Stock IN ═════════════════════════ */
.sim-modal-wide { max-width: 900px; }
.sif-table-wrap { overflow-x: auto; margin: 0 -22px; padding: 0 22px; }
.sif-items-table { min-width: 750px; }
.sif-items-table thead th { background: var(--c-surface2); padding: 8px 10px; font-size: 11px; }
.sif-items-table tbody td { padding: 6px 6px; }
.sif-items-table .sim-input, .sif-items-table .sim-select { padding: 6px 9px; font-size: 12.5px; height: 34px; }
.sif-totals-row td { background: var(--c-surface2); padding: 8px 10px; font-size: 13px; border-top: 2px solid var(--c-border); }
.sif-row-num { color: var(--c-muted-l); font-size: 12px; text-align: center; }
.sif-add-sup-btn, .sif-add-crop-btn { background: none; border: none; color: var(--c-primary); font-size: 11px; font-weight: 600; cursor: pointer; padding: 1px 2px; }
.sif-qty-wrap { display: flex; gap: 4px; }
.sif-qty-wrap .sim-input { flex: 1; }
.sif-qty-wrap .sim-select { width: 80px; flex-shrink: 0; }
.sif-del-row { width: 26px; height: 26px; border: none; border-radius: 5px; background: none; cursor: pointer; color: var(--c-muted-l); display: flex; align-items: center; justify-content: center; }
.sif-del-row:hover { background: var(--c-red-l); color: var(--c-red); }
.sif-del-row svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2.5; }
.sif-amount-cell { font-weight: 700; color: var(--c-green); font-size: 13px; }

/* ══ RUNNING BALANCE COL ═════════════════════════════ */
.running-bal { font-weight: 700; color: var(--c-text); }

/* ══ DASHBOARD SUMMARY STRIP ═════════════════════════ */
.dash-summary-strip {
    display: flex; align-items: center;
    background: var(--c-surface); border: 1px solid var(--c-border);
    border-radius: var(--radius); padding: 16px 24px;
    margin-bottom: 22px; box-shadow: var(--shadow-sm);
    flex-wrap: wrap; gap: 0;
}
.dash-summary-item {
    display: flex; align-items: center; gap: 12px;
    flex: 1; min-width: 160px; padding: 6px 16px;
}
.dash-summary-item svg { flex-shrink: 0; opacity: .7; }
.dash-summary-val  { font-size: 22px; font-weight: 700; line-height: 1; }
.dash-summary-lbl  { font-size: 11px; color: var(--c-muted); margin-top: 3px; font-weight: 500; }
.dash-summary-green  svg, .dash-summary-green  .dash-summary-val { color: var(--c-green); stroke: var(--c-green); }
.dash-summary-red    svg, .dash-summary-red    .dash-summary-val { color: var(--c-red);   stroke: var(--c-red); }
.dash-summary-primary svg,.dash-summary-primary .dash-summary-val { color: var(--c-primary); stroke: var(--c-primary); }
.dash-summary-amber  svg, .dash-summary-amber  .dash-summary-val { color: var(--c-amber); stroke: var(--c-amber); }
.dash-summary-divider { width: 1px; height: 40px; background: var(--c-border); flex-shrink: 0; }
@media (max-width: 768px) { .dash-summary-divider { display: none; } .dash-summary-item { min-width: 50%; } }

/* ══ SEARCHABLE DROPDOWN ═════════════════════════════ */
.sim-searchable-select-wrap { position: relative; }
.sim-searchable-dropdown {
    position: absolute; top: calc(100% + 4px); left: 0; right: 0;
    background: var(--c-surface); border: 1.5px solid var(--c-primary);
    border-radius: 8px; box-shadow: var(--shadow-lg);
    z-index: 500; max-height: 220px; overflow-y: auto;
}
.sim-searchable-dropdown .sd-item {
    padding: 9px 14px; cursor: pointer; font-size: 13px; color: var(--c-text-2);
    transition: background .1s;
}
.sim-searchable-dropdown .sd-item:hover,
.sim-searchable-dropdown .sd-item.active { background: var(--c-primary-l); color: var(--c-primary); }
.sim-searchable-dropdown .sd-empty { padding: 12px 14px; font-size: 12px; color: var(--c-muted); text-align: center; }

/* ══ CATEGORY PRODUCTS LIST ══════════════════════════ */
.cat-products-list { padding: 12px 16px; }
.cat-product-item { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--c-border-l); font-size: 13px; }
.cat-product-item:last-child { border-bottom: none; }
.cat-product-code { font-size: 11px; color: var(--c-muted); font-family: 'JetBrains Mono',monospace; }

/* ══ FARMER DROPDOWN INSIDE MODAL ═══════════════════ */
.sif-items-table .sim-searchable-select-wrap { position: relative; }
.sif-farmer-dd { z-index: 9999 !important; min-width: 200px; }
.sif-farmer-dd .sd-item { display: flex; align-items: center; justify-content: space-between; }

/* ══ SETTINGS PAGE ════════════════════════════════════ */
.settings-section-title { font-size:13px;font-weight:700;color:var(--c-primary);margin-bottom:12px;padding-bottom:6px;border-bottom:2px solid var(--c-primary-l); }
.settings-info-box { background:var(--c-surface2);border:1px solid var(--c-border);border-radius:var(--radius);padding:16px 20px;margin-top:16px;font-size:13px; }
.settings-info-title { font-weight:700;color:var(--c-text);margin-bottom:4px; }

/* ══ INLINE SEARCHABLE DROPDOWN (Stock OUT) ═════════ */
.sim-dd-wrap { position: relative; }
.sim-dd-input-row {
    display: flex; align-items: center;
    border: 1.5px solid var(--c-border); border-radius: 8px;
    background: var(--c-surface); overflow: hidden;
    transition: border-color .15s, box-shadow .15s;
}
.sim-dd-input-row:focus-within {
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(0,122,65,.1);
}
.sim-dd-input-row svg { width: 15px; height: 15px; margin-left: 10px; flex-shrink: 0; stroke: var(--c-muted); }
.sim-dd-input {
    flex: 1; border: none; outline: none; background: transparent;
    padding: 9px 12px; font-size: 13.5px; color: var(--c-text); font-family: inherit;
}
.sim-dd-input::placeholder { color: var(--c-muted-l); }
.sim-dd-list {
    position: absolute; top: calc(100% + 4px); left: 0; right: 0;
    background: var(--c-surface); border: 1.5px solid var(--c-primary);
    border-radius: 8px; box-shadow: var(--shadow-lg);
    z-index: 9999; max-height: 220px; overflow-y: auto;
}
.sim-dd-item {
    padding: 9px 14px; cursor: pointer; font-size: 13px; color: var(--c-text-2);
    transition: background .1s;
}
.sim-dd-item:hover { background: var(--c-primary-l); color: var(--c-primary); }
.sim-dd-empty { padding: 12px 14px; font-size: 12px; color: var(--c-muted); text-align: center; }

/* ══ NEW ACTION ICONS ════════════════════════════════ */
.act-edit, .act-del {
    width: 32px; height: 32px; border-radius: 7px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1.5px solid; cursor: pointer;
    transition: all .15s; flex-shrink: 0;
}
.act-edit svg, .act-del svg {
    width: 14px; height: 14px; stroke: currentColor; fill: none;
    stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.act-edit {
    background: var(--c-primary-l); color: var(--c-primary);
    border-color: rgba(0,122,65,.2);
}
.act-edit:hover { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.act-del {
    background: var(--c-red-l); color: var(--c-red);
    border-color: rgba(220,38,38,.2);
}
.act-del:hover { background: var(--c-red); color: #fff; border-color: var(--c-red); }

/* ══ ACCESS CONTROL GRID ══════════════════════════════ */
.user-access-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.access-item {
    display: flex; align-items: center; gap: 8px;
    padding: 9px 12px; border-radius: 8px; cursor: pointer;
    border: 1.5px solid var(--c-border); background: var(--c-surface);
    font-size: 13px; font-weight: 500; color: var(--c-text-2);
    transition: all .15s; user-select: none;
}
.access-item:hover { border-color: var(--c-primary); color: var(--c-primary); background: var(--c-primary-l); }
.access-item input[type="checkbox"] {
    width: 15px; height: 15px; accent-color: var(--c-primary);
    flex-shrink: 0; cursor: pointer;
}
.access-item:has(input:checked) { border-color: var(--c-primary); background: var(--c-primary-l); color: var(--c-primary); }

/* ══ EXCEL IMPORT MODAL ══════════════════════════════ */
.imp-wrap { min-height: 300px; }
.imp-step { animation: sim-pop .2s ease; }

/* Upload Area */
.imp-upload-area {
    border: 2px dashed var(--c-border); border-radius: 12px;
    padding: 40px 24px; text-align: center; cursor: pointer;
    transition: all .2s; background: var(--c-surface2);
}
.imp-upload-area:hover, .imp-upload-area.imp-drag-over {
    border-color: var(--c-primary); background: var(--c-primary-l);
}
.imp-upload-icon { font-size: 44px; margin-bottom: 10px; }
.imp-upload-title { font-size: 16px; font-weight: 600; color: var(--c-text); margin-bottom: 6px; }
.imp-upload-sub { font-size: 13px; color: var(--c-muted); }
.imp-divider { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: var(--c-muted); font-size: 12px; }
.imp-divider::before, .imp-divider::after { content:''; flex:1; height:1px; background:var(--c-border); }

/* File Info */
.imp-file-badge {
    display: flex; align-items: center; gap: 12px;
    background: var(--c-primary-l); border: 1px solid rgba(0,122,65,.2);
    border-radius: 10px; padding: 12px 16px; margin-bottom: 18px;
}
.imp-file-icon { font-size: 28px; flex-shrink: 0; }
.imp-file-badge strong { font-size: 14px; color: var(--c-primary); }
.imp-file-badge small  { color: var(--c-muted); }

/* Section Label */
.imp-section-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--c-primary); margin-bottom: 10px; padding-bottom: 6px; border-bottom: 2px solid var(--c-primary-l); }

/* Mapping Grid */
.imp-map-grid { display: flex; flex-direction: column; gap: 10px; }
.imp-map-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.imp-map-field { display: flex; align-items: center; gap: 6px; }
.imp-map-label { font-size: 13px; font-weight: 600; color: var(--c-text-2); }
.imp-optional { font-size: 11px; color: var(--c-muted); }
.imp-map-arrow { color: var(--c-muted); font-size: 16px; text-align: center; }
.imp-col-select { font-size: 13px; }

/* Preview Table */
.imp-preview-scroll { overflow-x: auto; border-radius: 8px; border: 1px solid var(--c-border); }
.imp-preview-table { width: 100%; border-collapse: collapse; font-size: 12px; white-space: nowrap; }
.imp-preview-table thead th { background: var(--c-surface2); padding: 8px 12px; text-align: left; font-weight: 600; color: var(--c-muted); font-size: 11px; border-bottom: 1px solid var(--c-border); }
.imp-preview-table tbody td { padding: 7px 12px; border-bottom: 1px solid var(--c-border-l); color: var(--c-text-2); }
.imp-preview-table tbody tr:last-child td { border-bottom: none; }

/* Result */
.imp-result-success { text-align: center; padding: 30px 20px; }
.imp-result-icon  { font-size: 52px; margin-bottom: 12px; }
.imp-result-title { font-size: 20px; font-weight: 700; color: var(--c-text); margin-bottom: 20px; }
.imp-result-stats { display: flex; gap: 20px; justify-content: center; margin-bottom: 16px; }
.imp-stat-item { padding: 16px 28px; border-radius: 12px; min-width: 110px; }
.imp-stat-green { background: var(--c-green-l); }
.imp-stat-amber { background: var(--c-amber-l); }
.imp-stat-val   { font-size: 32px; font-weight: 700; }
.imp-stat-lbl   { font-size: 12px; color: var(--c-muted); margin-top: 4px; }
.imp-stat-green .imp-stat-val { color: var(--c-green); }
.imp-stat-amber .imp-stat-val { color: var(--c-amber); }
.imp-errors { background: var(--c-red-l); border-radius: 8px; padding: 12px; text-align: left; font-size: 12px; color: var(--c-red); margin-top: 12px; }

/* ══ ACCESS TYPE TOGGLE CARDS ════════════════════════ */
.access-type-wrap {
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 4px;
}
.access-type-option { cursor: pointer; }
.access-type-option input[type="radio"] { display: none; }
.access-type-card {
    border: 2px solid var(--c-border); border-radius: 10px;
    padding: 14px 16px; text-align: center; transition: all .15s;
    background: var(--c-surface);
}
.access-type-card:hover { border-color: var(--c-primary); background: var(--c-primary-l); }
.access-type-card.selected {
    border-color: var(--c-primary); background: var(--c-primary-l);
    box-shadow: 0 0 0 3px rgba(0,122,65,.12);
}
.access-type-icon  { font-size: 26px; margin-bottom: 6px; }
.access-type-title { font-size: 13px; font-weight: 700; color: var(--c-text); margin-bottom: 4px; }
.access-type-desc  { font-size: 11px; color: var(--c-muted); line-height: 1.4; }
.access-type-card.selected .access-type-title { color: var(--c-primary); }

/* ══ XL MODAL (Stock IN) ═════════════════════════════ */
.sim-modal-xl { max-width: 1100px; }
.sif-outer-wrap { overflow-x: auto; margin: 0 -22px; padding: 0 22px; }
.sif-items-table { min-width: 900px; }
.sif-items-table thead th { background: var(--c-surface2); padding: 8px 8px; font-size: 11px; white-space: nowrap; }
.sif-items-table tbody td { padding: 5px 5px; vertical-align: middle; }
.sif-items-table .sim-input, .sif-items-table .sim-select { padding: 6px 8px; font-size: 12.5px; height: 34px; }
.sif-totals-row td { background: var(--c-surface2); padding: 8px 8px; font-size: 13px; border-top: 2px solid var(--c-border); }

/* Dashboard strip labels */
.dash-summary-lbl { white-space: nowrap; }

/* ══ VIEW ACTION BUTTON ══════════════════════════════ */
.act-view {
    width: 32px; height: 32px; border-radius: 7px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1.5px solid rgba(37,99,235,.2); cursor: pointer; transition: all .15s;
    background: var(--c-blue-l); color: var(--c-blue); flex-shrink: 0;
}
.act-view svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.act-view:hover { background: var(--c-blue); color: #fff; border-color: var(--c-blue); }

/* ══ BULK ACTION BAR ══════════════════════════════════ */
.sim-bulk-bar {
    display: flex; align-items: center; gap: 12px;
    background: var(--c-primary-l); border: 1.5px solid rgba(0,122,65,.25);
    border-radius: 10px; padding: 10px 18px; margin-bottom: 12px;
    animation: sim-pop .2s ease;
}
.sim-bulk-bar span { font-weight: 600; color: var(--c-primary); }

/* ── STICKY ACTIONS + TABLE ALIGNMENT ─────────────── */
.sim-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; width: 100%; position: relative; }
.sim-table th, .sim-table td { padding: 10px 14px; vertical-align: middle; text-align: left; }
.sim-table th { white-space: nowrap; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing:.05em; color:var(--c-muted); background:var(--c-surface2); border-bottom:2px solid var(--c-border); position:sticky; top:0; z-index:1; }
.sim-table td { font-size:13px; border-bottom:1px solid var(--c-border-l); }
.sim-table tbody tr:hover td { background:var(--c-surface2); }
.sim-table th:last-child, .sim-table td:last-child { position:sticky; right:0; background:var(--c-surface); box-shadow:-2px 0 8px rgba(0,0,0,.06); z-index:2; white-space:nowrap; }
.sim-table thead th:last-child { background:var(--c-surface2); z-index:3; }
.sim-table tbody tr:hover td:last-child { background:var(--c-surface2); }
