        :root {
            /* SHARED */
            --radius: 10px;
            --font: 'Plus Jakarta Sans', sans-serif;
            --mono: 'JetBrains Mono', monospace;
            --accent: #f59e0b;
            --accent2: #3b82f6;
            --primary: #f59e0b;
            --green: #10b981;
            --red: #ef4444;
            --purple: #8b5cf6;
            --teal: #06b6d4;

            /* LIGHT MODE (DEFAULT) */
            --bg: #f8fafc;
            --bg2: #ffffff;
            --bg3: #f1f5f9;
            --border: #e2e8f0;
            --text: #1e293b;
            --muted: #64748b;
            --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
        }

        [data-theme="dark"] {
            --bg: #0f1117;
            --bg2: #161b27;
            --bg3: #1e2535;
            --border: #2a3245;
            --text: #e8ecf4;
            --muted: #7a8599;
            --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
        }

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

        body {
            font-family: var(--font);
            background: var(--bg);
            color: var(--text);
            min-height: 100vh;
            display: flex;
            transition: background 0.3s, color 0.3s;
        }

        /* RESPONSIVE CSS & TOUCH OPTIMIZATION */
        @media (max-width: 1024px) {
            /* TABLET OVERRIDE: Tampilan padat mirip minimized */
            .sidebar { width: 70px !important; }
            .logo-sub, .nav-label, .nav-item span:not(.badge), .nav-item .badge, .nav-text { display: none !important; }
            .nav-item { justify-content: center; padding: 12px 0; gap: 0; }
            .nav-icon { font-size: 18px; }
            .logo { padding: 0 0 20px 0; text-align: center; }
            .logo-mark { font-size: 14px; }
            .stats { grid-template-columns: repeat(2, 1fr); gap:12px; }
            .sidebar-toggle-btn { display: none !important; }
        }

        @media (max-width: 991px) {
            /* MOBILE & TABLET OVERRIDE */
            body { flex-direction: column; overflow-x: hidden; }
            
            .sidebar { 
                position: fixed !important; bottom: 0 !important; left: 0 !important; top: auto !important;
                width: 100vw !important; height: 65px !important; min-height: auto !important;
                flex-direction: row !important; justify-content: space-around !important; align-items: center !important; 
                border-right: none !important; border-top: 1px solid var(--border) !important;
                border-bottom: none !important; padding: 0 !important; z-index: 99999 !important; 
                box-shadow: 0 -4px 20px rgba(0,0,0,0.15) !important;
                background: #0f172a !important; overflow: visible !important; display: flex !important;
            }
            .sidebar::-webkit-scrollbar { display: none; }
            .sidebar .logo, .sidebar .nav-label, .sidebar .sidebar-toggle-btn { display: none !important; }
            .sidebar .nav-section { display: flex; flex-direction: row; width: 100%; justify-content: space-around; padding: 0; margin: 0; }
            .sidebar .nav-item { 
                flex-direction: column; padding: 4px !important; gap: 2px; border-radius: 0; width: auto; flex: 1;
                margin: 0; justify-content: center; align-items: center; background: transparent !important;
            }
            .sidebar .nav-item span:not(.badge) { display: block !important; font-size: 9px; margin-top: 1px; text-transform: none; color:rgba(255,255,255,0.6); font-weight: 600; }
            .sidebar .nav-icon { font-size: 18px; line-height: 1; filter: grayscale(1) invert(1); opacity: 0.7; }
            .sidebar .nav-item.active { color: var(--accent); position: relative; }
            .sidebar .nav-item.active span { color: var(--accent) !important; opacity: 1; }
            .sidebar .nav-item.active .nav-icon { filter: grayscale(0) invert(0); opacity: 1; }
            .sidebar .nav-item.active::after { content:''; position: absolute; top:0; left: 50%; transform: translateX(-50%); width: 25px; height: 3px; background: var(--accent); border-radius: 0 0 4px 4px; }
            
            /* Penyesuaian Main Area */
            .main { width: 100%; margin-left: 0 !important; padding-bottom: 80px; } /* Jeda untuk bottom nav */
            .topbar { padding: 0 10px; height: 50px; background: var(--bg); border-bottom: 1px solid var(--border); }
            .topbar-search { display: none !important; }
            .topbar-right { gap: 6px; }
            .user-info { display: none !important; }
            
            /* Grids ke 1 Kolom */
            .stats { grid-template-columns: 1fr; gap: 10px; }
            .panels { grid-template-columns: 1fr; gap: 15px; }
            .kasir-split { grid-template-columns: 1fr !important; display: flex !important; flex-direction: column; gap: 15px; }
            .part-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)) !important; gap: 10px; }
            .content { padding: 12px; }
            
            /* Kasir Header */
            .kasir-mode-header { flex-direction: column !important; gap: 10px !important; }
            .type-toggle { width: 100% !important; margin-right: 0 !important; }
            .kasir-display-btn { width: 100% !important; padding: 15px !important; min-height: 60px !important; }
            
            /* Modals ke bentuk Layar Penuh (Fullscreen) */
            .modal { 
                width: 100% !important; max-width: none !important; height: 100% !important; max-height: 100vh !important;
                margin: 0 !important; border-radius: 0; transform: translateY(100%); display:flex; flex-direction:column;
            }
            .modal-overlay.open .modal { transform: translateY(0); }
            .modal-header { position: sticky; top: -24px; background: var(--bg2); z-index: 10; padding: 24px 0 15px; margin-top: -24px; margin-bottom: 15px; border-bottom: 2px solid var(--border); }
            
            /* Optimasi Sentuhan Jari Jari Mekanik (Touch Targets minimal 44px) */
            .btn, .form-input, .tab { min-height: 46px; }
            .tabs { flex-wrap: wrap; width: 100%; }
            .tab { border-radius: 8px; flex: 1; text-align: center; }
            .btn { justify-content: center; }
            
            /* UX Tabel: Horizontal scroll untuk layar sempit */
            .table { white-space: nowrap; }
            .panel { overflow-x: auto; -webkit-overflow-scrolling: touch; }
            .empty-state-container { padding: 20px 10px; }
            .empty-state-desc { display: none; } /* Terlalu panjang di mobile */

            /* Topbar Compact */
            .topbar-right .btn-primary { font-size: 0; padding: 0; width: 44px; justify-content: center; }
            .topbar-right .btn-primary::after { content: "📝"; font-size: 16px; margin: 0; }
        }

        /* SIDEBAR (Original Desktop) */
        .sidebar {
            width: 220px;
            min-height: 100vh;
            background: var(--bg2);
            border-right: 1px solid var(--border);
            display: flex;
            flex-direction: column;
            padding: 20px 0;
            flex-shrink: 0;
            transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
            z-index: 100;
        }
        .nav-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; padding: 0 20px; margin: 20px 0 10px; font-weight: 600; }
        .nav-item { display: flex; align-items: center; padding: 12px 20px; gap: 12px; color: var(--text); transition: all 0.2s; cursor: pointer; border-left: 3px solid transparent; }
        .nav-item:hover { background: var(--bg3); }
        .nav-item.active { background: var(--bg); border-left-color: var(--accent); font-weight: 700; color: var(--accent); }
        .nav-text { flex-grow: 1; font-size: 14px; }
        .nav-icon { font-size: 18px; width: 24px; text-align: center; }

        .sidebar.minimized {
            width: 70px;
        }

        .logo {
            padding: 0 20px 20px;
            border-bottom: 1px solid var(--border);
            margin-bottom: 12px;
            white-space: nowrap;
            transition: padding 0.3s;
        }

        .sidebar.minimized .logo {
            padding: 0 0 20px 0;
            text-align: center;
        }

        .logo-mark {
            font-size: 18px;
            font-weight: 700;
            color: var(--accent);
            letter-spacing: -0.5px;
            transition: font-size 0.3s;
        }

        .sidebar.minimized .logo-mark {
            font-size: 14px;
        }

        .logo-sub {
            font-size: 10px;
            color: var(--muted);
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-top: 2px;
            transition: opacity 0.3s;
        }

        .sidebar.minimized .logo-img,
        .sidebar.minimized .logo-name,
        .sidebar.minimized .logo-mark,
        .sidebar.minimized .logo-sub,
        .sidebar.minimized .nav-label,
        .sidebar.minimized .nav-item span:not(.badge),
        .sidebar.minimized .nav-item .badge,
        .sidebar.minimized .nav-text {
            opacity: 0;
            pointer-events: none;
            display: none !important;
        }

        .nav-section {
            padding: 4px 12px;
            margin-top: 4px;
            transition: padding 0.3s;
        }

        .sidebar.minimized .nav-section {
            padding: 4px 8px;
        }

        .nav-label {
            font-size: 10px;
            color: var(--muted);
            text-transform: uppercase;
            letter-spacing: 1px;
            padding: 0 8px;
            margin-bottom: 4px;
            white-space: nowrap;
        }

        .nav-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 12px 10px;
            border-radius: 8px;
            cursor: pointer;
            font-size: 13px;
            font-weight: 500;
            color: var(--muted);
            transition: all .15s;
            margin-bottom: 2px;
            text-decoration: none;
            white-space: nowrap;
        }

        .sidebar.minimized .nav-item {
            justify-content: center;
            padding: 12px 0;
            gap: 0;
        }

        .nav-item:hover {
            background: var(--bg3);
            color: var(--text);
        }

        .nav-item.active {
            background: rgba(245, 158, 11, 0.12);
            color: var(--accent);
        }

        .nav-item.active .nav-dot {
            background: var(--accent);
        }

        .nav-dot {
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: var(--border);
            flex-shrink: 0;
        }

        .nav-icon {
            width: 16px;
            height: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            flex-shrink: 0;
            transition: font-size 0.3s;
        }
        
        .sidebar.minimized .nav-icon {
            font-size: 18px;
        }

        .sidebar-toggle-btn {
            margin-top: auto;
            border-top: 1px solid var(--border);
            padding: 15px 20px;
            cursor: pointer;
            color: var(--muted);
            font-size: 14px;
            display: flex;
            align-items: center;
            gap: 10px;
            transition: all 0.2s;
        }
        
        .sidebar.minimized .sidebar-toggle-btn {
            justify-content: center;
            padding: 15px 0;
        }

        .sidebar-toggle-btn:hover {
            background: var(--bg3);
            color: var(--text);
        }

        /* MAIN */
        .main {
            flex: 1;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            min-width: 0;
        }

        /* TOPBAR */
        .topbar {
            height: 70px;
            background: var(--bg2);
            border-bottom: 1px solid var(--border);
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 24px;
            position: sticky;
            top: 0;
            z-index: 100;
        }

        .topbar-search {
            flex: 1;
            max-width: 500px;
        }

        .search-input-wrapper {
            position: relative;
            display: flex;
            align-items: center;
        }

        .search-icon {
            position: absolute;
            left: 12px;
            color: var(--muted);
            font-size: 14px;
        }

        #global-search {
            width: 100%;
            background: var(--bg);
            border: 1px solid var(--border);
            border-radius: 8px;
            padding: 10px 12px 10px 38px;
            color: var(--text);
            font-size: 13px;
            transition: all 0.2s;
        }

        #global-search:focus {
            outline: none;
            border-color: var(--accent2);
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
        }

        .search-results-dropdown {
            position: absolute;
            top: calc(100% + 8px);
            left: 0;
            right: 0;
            background: var(--bg2);
            border: 1px solid var(--border);
            border-radius: 10px;
            box-shadow: 0 15px 30px rgba(0,0,0,0.3);
            max-height: 400px;
            overflow-y: auto;
            display: none;
            z-index: 1000;
        }

        .search-results-dropdown.active {
            display: block;
        }

        .search-item {
            padding: 12px 16px;
            display: flex;
            align-items: center;
            gap: 12px;
            cursor: pointer;
            border-bottom: 1px solid var(--border);
            transition: background 0.2s;
        }

        .search-item:last-child { border-bottom: none; }
        .search-item:hover { background: rgba(255,255,255,0.03); }

        .search-item-info { flex: 1; }
        .search-item-label { font-size: 13px; font-weight: 600; color: var(--text); }
        .search-item-sub { font-size: 11px; color: var(--muted); margin-top: 2px; }
        .search-item-type { 
            font-size: 10px; 
            text-transform: uppercase; 
            letter-spacing: 0.5px; 
            background: var(--bg); 
            padding: 2px 6px; 
            border-radius: 4px; 
            color: var(--accent2);
            font-weight: 700;
        }

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

        .btn {
            display: flex;
            align-items: center;
            gap: 6px;
            padding: 7px 14px;
            border-radius: 8px;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            border: none;
            font-family: var(--font);
            transition: all .15s;
        }

        .btn-primary {
            background: var(--accent);
            color: #000;
        }

        .btn-primary:hover {
            background: #f7a82a;
        }

        .btn-outline {
            background: transparent;
            color: var(--text);
            border: 1px solid var(--border);
        }

        .btn-outline:hover {
            background: var(--bg3);
        }

        .btn-green {
            background: var(--green);
            color: #fff;
        }

        .btn-green:hover {
            background: #0da374;
        }

        .btn-ghost {
            background: transparent;
            color: var(--muted);
            border: none;
            padding: 7px 10px;
        }

        .btn-ghost:hover {
            color: var(--text);
            background: var(--bg3);
        }

        /* CONTENT */
        .content {
            flex: 1;
            overflow-y: auto;
            overflow-x: hidden;
            padding: 24px;
            min-width: 0;
        }

        /* TABS */
        .tabs {
            display: flex;
            gap: 4px;
            background: var(--bg3);
            padding: 4px;
            border-radius: 10px;
            margin-bottom: 20px;
            width: fit-content;
        }

        .tab {
            padding: 7px 16px;
            border-radius: 7px;
            font-size: 13px;
            font-weight: 500;
            cursor: pointer;
            color: var(--muted);
            transition: all .15s;
        }

        .tab.active {
            background: var(--bg2);
            color: var(--text);
            box-shadow: 0 1px 4px rgba(0, 0, 0, .3);
        }

        /* STAT CARDS */
        .stats {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 14px;
            margin-bottom: 24px;
        }

        .stat-card {
            background: var(--bg2);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            padding: 16px 18px;
        }

        .stat-label {
            font-size: 11px;
            color: var(--muted);
            text-transform: uppercase;
            letter-spacing: .8px;
            margin-bottom: 6px;
        }

        .stat-value {
            font-size: 24px;
            font-weight: 700;
            font-family: var(--mono);
            letter-spacing: -1px;
        }

        .stat-sub {
            font-size: 11px;
            color: var(--muted);
            margin-top: 4px;
        }

        .stat-card.amber {
            border-color: rgba(245, 158, 11, .3);
        }

        .stat-card.amber .stat-value {
            color: var(--accent);
        }

        .stat-card.green {
            border-color: rgba(16, 185, 129, .3);
        }

        .stat-card.green .stat-value {
            color: var(--green);
        }

        .stat-card.blue {
            border-color: rgba(59, 130, 246, .3);
        }

        .stat-card.blue .stat-value {
            color: var(--accent2);
        }

        .stat-card.red {
            border-color: rgba(239, 68, 68, .3);
        }

        .stat-card.red .stat-value {
            color: var(--red);
        }

        /* PANELS */
        .panels {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 16px;
            margin-bottom: 24px;
        }

        .panel {
            background: var(--bg2);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            padding: 18px;
        }

        /* EMPTY STATES */
        .empty-state-container { 
            display:flex; flex-direction:column; align-items:center; justify-content:center; 
            padding:40px; text-align:center; background:var(--bg3); 
            border-radius:var(--radius); border:2px dashed var(--border); 
            margin: 20px 0;
        }
        .empty-state-icon { font-size:48px; margin-bottom:15px; filter:grayscale(0.3); opacity:0.8; }
        .empty-state-title { font-size:16px; font-weight:700; margin-bottom:8px; color:var(--text); }
        .empty-state-desc { font-size:13px; color:var(--muted); margin-bottom:20px; max-width:300px; }

        .panel-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 14px;
        }

        .panel-title {
            font-size: 13px;
            font-weight: 600;
        }

        .panel-action {
            font-size: 11px;
            color: var(--accent);
            cursor: pointer;
        }

        /* TABLE */
        .table {
            width: 100%;
            border-collapse: collapse;
        }

        .table th {
            font-size: 10px;
            text-transform: uppercase;
            letter-spacing: .8px;
            color: var(--muted);
            padding: 0 0 10px;
            text-align: left;
            border-bottom: 1px solid var(--border);
            font-weight: 500;
        }

        .table td {
            padding: 10px 0;
            font-size: 13px;
            border-bottom: 1px solid rgba(42, 50, 69, .5);
        }

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

        /* STATUS PILLS */
        .pill {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            padding: 3px 8px;
            border-radius: 20px;
            font-size: 11px;
            font-weight: 600;
        }

        .pill-antri {
            background: rgba(245, 158, 11, .15);
            color: var(--accent);
        }

        .pill-proses {
            background: rgba(59, 130, 246, .15);
            color: var(--accent2);
        }

        .pill-selesai {
            background: rgba(16, 185, 129, .15);
            color: var(--green);
        }

        .pill-lunas {
            background: rgba(16, 185, 129, .15);
            color: var(--green);
        }

        .pill-belum {
            background: rgba(239, 68, 68, .15);
            color: var(--red);
        }

        .pill-dot {
            width: 5px;
            height: 5px;
            border-radius: 50%;
            background: currentColor;
        }

        /* MODAL */
        .modal-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, .7);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1000;
            backdrop-filter: blur(4px);
            opacity: 0;
            pointer-events: none;
            transition: opacity .2s;
        }

        .modal-overlay.open {
            opacity: 1 !important;
            pointer-events: all !important;
            display: flex !important;
        }

        .modal {
            background: var(--bg2);
            border: 1px solid var(--border);
            border-radius: 14px;
            width: 520px;
            max-height: 80vh;
            overflow-y: auto;
            padding: 24px;
            transform: translateY(10px);
            transition: transform .2s;
        }

        .modal-overlay.open .modal {
            transform: translateY(0);
        }

        .modal-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 20px;
        }

        .modal-title {
            font-size: 16px;
            font-weight: 700;
        }

        .modal-close {
            width: 28px;
            height: 28px;
            border-radius: 6px;
            background: var(--bg3);
            border: none;
            color: var(--muted);
            cursor: pointer;
            font-size: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .form-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
            margin-bottom: 12px;
        }

        .form-row.single {
            grid-template-columns: 1fr;
        }

        .form-group {
            display: flex;
            flex-direction: column;
            gap: 5px;
        }

        .form-label {
            font-size: 11px;
            color: var(--muted);
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: .6px;
        }

        .form-input {
            background: var(--bg3);
            border: 1px solid var(--border);
            border-radius: 8px;
            padding: 9px 12px;
            font-size: 13px;
            color: var(--text);
            font-family: var(--font);
            outline: none;
            transition: border-color .15s;
        }

        .form-input:focus {
            border-color: var(--accent);
        }

        /* NOTIF TOAST */
        .toast-container {
            position: fixed;
            top: 24px;
            right: 24px;
            z-index: 2000;
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .toast {
            min-width: 280px;
            max-width: 400px;
            background: var(--bg2);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            padding: 14px 18px;
            display: flex;
            align-items: center;
            gap: 12px;
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
            animation: slideInRight 0.3s ease-out forwards;
            position: relative;
            overflow: hidden;
        }

        .toast.success { border-left: 4px solid var(--green); }
        .toast.error { border-left: 4px solid var(--red); }
        .toast.warning { border-left: 4px solid var(--accent); }
        .toast.info { border-left: 4px solid var(--accent2); }

        .toast-content {
            font-size: 13px;
            font-weight: 500;
            color: var(--text);
        }

        .toast-close {
            margin-left: auto;
            color: var(--muted);
            cursor: pointer;
            font-size: 14px;
        }

        @keyframes slideInRight {
            from { transform: translateX(100%); opacity: 0; }
            to { transform: translateX(0); opacity: 1; }
        }

        @keyframes fadeOut {
            from { opacity: 1; }
            to { opacity: 0; }
        }

        /* ==========================================
           KASIR / POS - SPECIFIC STYLES
        ========================================== */

        /* Mode Toggle (Jual Langsung / Dari WO) */
        .type-toggle {
            display: flex;
            gap: 6px;
            margin-bottom: 20px;
            background: var(--bg3);
            padding: 4px;
            border-radius: 12px;
            width: 100%; /* Balans di mobile dan desktop */
        }

        .type-btn {
            flex: 1;
            padding: 12px 15px;
            border-radius: 10px;
            border: none;
            background: transparent;
            font-family: var(--font);
            font-size: 13px;
            font-weight: 600;
            color: var(--muted);
            cursor: pointer;
            transition: all 0.2s;
            line-height: 1.4;
            text-align: left;
        }

        .type-btn:hover {
            background: var(--bg2);
            color: var(--text);
        }

        .type-btn.active {
            background: var(--bg2);
            color: var(--text);
            box-shadow: 0 1px 6px rgba(0,0,0,0.12);
        }

        .type-btn.active.walkin {
            color: var(--accent);
        }

        /* Split Layout */
        .kasir-split {
            display: grid;
            grid-template-columns: 1fr 380px;
            gap: 16px;
            align-items: start;
        }

        .kasir-left {
            min-width: 0;
        }

        /* Search Bar in part panel */
        .search-bar {
            position: relative;
            margin-bottom: 14px;
        }

        .search-bar .search-icon {
            position: absolute;
            left: 12px;
            top: 50%;
            transform: translateY(-50%);
            font-size: 14px;
            color: var(--muted);
            pointer-events: none;
        }

        .search-bar input {
            width: 100%;
            background: var(--bg3);
            border: 1px solid var(--border);
            border-radius: 8px;
            padding: 9px 12px 9px 36px;
            font-size: 13px;
            color: var(--text);
            font-family: var(--font);
            outline: none;
            transition: border-color 0.15s, box-shadow 0.15s;
        }

        .search-bar input:focus {
            border-color: var(--accent);
            box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
        }

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

        /* Part Grid */
        .part-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
            gap: 10px;
            max-height: calc(100vh - 280px);
            overflow-y: auto;
            padding-right: 4px;
        }

        .part-grid::-webkit-scrollbar {
            width: 4px;
        }

        .part-grid::-webkit-scrollbar-track {
            background: transparent;
        }

        .part-grid::-webkit-scrollbar-thumb {
            background: var(--border);
            border-radius: 4px;
        }

        /* Part Card */
        .part-card {
            background: var(--bg3);
            border: 1px solid var(--border);
            border-radius: 10px;
            padding: 12px;
            cursor: pointer;
            transition: all 0.18s;
            position: relative;
            overflow: hidden;
        }

        .part-card:hover {
            border-color: var(--accent);
            background: var(--bg2);
            box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
            transform: translateY(-1px);
        }

        .part-card.low-stock {
            border-color: rgba(239, 68, 68, 0.3);
        }

        .part-card.low-stock:hover {
            border-color: var(--red);
            box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15);
        }

        .part-card-name {
            font-size: 13px;
            font-weight: 600;
            color: var(--text);
            margin-bottom: 3px;
            line-height: 1.3;
        }

        .part-card-code {
            font-size: 10px;
            color: var(--muted);
            font-family: var(--mono);
            margin-bottom: 8px;
            text-transform: uppercase;
        }

        .part-card-price {
            font-size: 14px;
            font-weight: 700;
            color: var(--accent);
            font-family: var(--mono);
            margin-bottom: 6px;
        }

        .part-card-stock {
            font-size: 11px;
            display: inline-flex;
            align-items: center;
            gap: 4px;
            padding: 2px 7px;
            border-radius: 20px;
            background: rgba(16, 185, 129, 0.12);
            color: var(--green);
            font-weight: 600;
        }

        .part-card-stock.low {
            background: rgba(239, 68, 68, 0.12);
            color: var(--red);
        }

        .part-card-add-hint {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: var(--accent);
            color: #000;
            text-align: center;
            font-size: 11px;
            font-weight: 700;
            padding: 4px;
            transform: translateY(100%);
            transition: transform 0.18s;
        }

        .part-card:hover .part-card-add-hint {
            transform: translateY(0);
        }

        /* Right Panel (Cart) */
        .kasir-split > div:last-child {
            position: sticky;
            top: 24px;
        }

        /* Cart Items */
        .cart-items {
            min-height: 80px;
            max-height: 260px;
            overflow-y: auto;
            margin-bottom: 4px;
        }

        .cart-items::-webkit-scrollbar {
            width: 4px;
        }

        .cart-items::-webkit-scrollbar-thumb {
            background: var(--border);
            border-radius: 4px;
        }

        .cart-empty {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 30px 0;
            color: var(--muted);
            font-size: 13px;
            gap: 8px;
        }

        .cart-empty-icon {
            font-size: 32px;
            opacity: 0.5;
        }

        .cart-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 9px 0;
            border-bottom: 1px solid var(--border);
        }

        .cart-item:last-child {
            border-bottom: none;
        }

        .cart-item-info {
            flex: 1;
            min-width: 0;
        }

        .cart-item-name {
            font-size: 13px;
            font-weight: 600;
            color: var(--text);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .cart-item-price {
            font-size: 11px;
            color: var(--muted);
            font-family: var(--mono);
        }

        .cart-item-qty {
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .qty-btn {
            width: 24px;
            height: 24px;
            border: 1px solid var(--border);
            border-radius: 6px;
            background: var(--bg3);
            color: var(--text);
            font-size: 14px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            line-height: 1;
            transition: all 0.15s;
        }

        .qty-btn:hover {
            background: var(--accent);
            color: #000;
            border-color: var(--accent);
        }

        .qty-val {
            min-width: 26px;
            text-align: center;
            font-size: 13px;
            font-weight: 700;
            font-family: var(--mono);
        }

        .cart-item-sub {
            font-size: 13px;
            font-weight: 700;
            color: var(--text);
            font-family: var(--mono);
            text-align: right;
            white-space: nowrap;
        }

        .cart-item-remove {
            color: var(--muted);
            cursor: pointer;
            font-size: 16px;
            line-height: 1;
            padding: 2px 4px;
            border-radius: 4px;
            transition: all 0.15s;
            border: none;
            background: transparent;
        }

        .cart-item-remove:hover {
            color: var(--red);
            background: rgba(239, 68, 68, 0.1);
        }

        /* Divider */
        .divider {
            border: none;
            border-top: 1px dashed var(--border);
            margin: 12px 0;
        }

        /* Total Rows */
        .total-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 4px 0;
        }

        .total-label {
            font-size: 13px;
            color: var(--muted);
        }

        .total-val {
            font-size: 14px;
            font-weight: 700;
            color: var(--text);
            font-family: var(--mono);
        }

        .grand-total .total-label {
            font-size: 14px;
            font-weight: 700;
            color: var(--text);
        }

        .grand-total .total-val {
            font-size: 20px;
            color: var(--green);
        }

        /* Payment Methods */
        .pay-methods {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 8px;
            margin-top: 8px;
            margin-bottom: 4px;
        }

        .pay-method {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 6px;
            padding: 10px 8px;
            border: 2px solid var(--border);
            border-radius: 10px;
            cursor: pointer;
            background: var(--bg3);
            transition: all 0.2s;
            font-size: 12px;
            font-weight: 600;
            color: var(--muted);
        }

        .pay-method:hover {
            border-color: var(--accent);
            background: var(--bg2);
            color: var(--text);
        }

        .pay-method.active {
            border-color: var(--green);
            background: rgba(16, 185, 129, 0.08);
            color: var(--green);
            box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
        }

        .pay-method-icon {
            font-size: 20px;
            line-height: 1;
        }

        /* Responsive for kasir on smaller screens */
        @media (max-width: 900px) {
            .kasir-split {
                grid-template-columns: 1fr;
            }

            .kasir-split > div:last-child {
                position: static;
            }

            .part-grid {
                max-height: 320px;
                grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
            }
        }

        /* ==========================================
           SUPPLIER PAGE - SPECIFIC STYLES
        ========================================== */

        /* Dark mode primary */
        [data-theme="dark"] {
            --primary: #f59e0b;
        }

        /* Supplier toolbar */
        .sup-toolbar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 18px;
            flex-wrap: wrap;
            gap: 10px;
        }

        .sup-toolbar-left {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
        }

        /* Filter bar */
        .sup-filter-bar {
            background: var(--bg2);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            padding: 12px 16px;
            margin-bottom: 16px;
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
            align-items: center;
        }

        .sup-filter-bar .form-input {
            height: 34px;
            font-size: 12px;
            padding: 6px 10px;
        }

        /* Supplier data tables: scrollable wrapper */
        .sup-table-wrap {
            overflow-x: auto;
            width: 100%;
        }

        .sup-table-wrap::-webkit-scrollbar {
            height: 5px;
        }

        .sup-table-wrap::-webkit-scrollbar-thumb {
            background: var(--border);
            border-radius: 4px;
        }

        /* Supplier table */
        .sup-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 13px;
            min-width: 620px;
        }

        .sup-table thead tr {
            background: var(--bg3);
        }

        .sup-table th {
            padding: 11px 14px;
            text-align: left;
            font-size: 11px;
            color: var(--muted);
            text-transform: uppercase;
            letter-spacing: .6px;
            font-weight: 600;
            white-space: nowrap;
        }

        .sup-table th.center { text-align: center; }
        .sup-table th.right  { text-align: right; }

        .sup-table td {
            padding: 11px 14px;
            border-bottom: 1px solid var(--border);
            vertical-align: middle;
        }

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

        .sup-table tbody tr {
            transition: background 0.15s;
        }

        .sup-table tbody tr:hover {
            background: var(--bg3);
        }

        .sup-table .td-center { text-align: center; }
        .sup-table .td-right  { text-align: right; }
        .sup-table .td-mono   { font-family: var(--mono); }
        .sup-table .td-muted  { color: var(--muted); font-size: 12px; }
        .sup-table .td-bold   { font-weight: 600; }
        .sup-table .td-name   { font-weight: 600; }
        .sup-table .td-actions {
            display: flex;
            gap: 5px;
            justify-content: center;
        }

        /* Supplier detail panel */
        #supplier-detail-panel {
            border-top: 3px solid var(--primary) !important;
        }

        /* Stat card number prevent overflow */
        .stat-value {
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }


/* SKELETON LOADING SHIMMER BY ANTIGRAVITY */
.skeleton {
    position: relative;
    overflow: hidden;
    background-color: #f1f5f9;
    border-radius: 8px;
}
.skeleton::after {
    display: block;
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
    100% { transform: translateX(100%); }
}

.part-card-skeleton {
    height: 180px;
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: white;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.sk-name { width: 80%; height: 20px; }
.sk-code { width: 40%; height: 14px; }
.sk-meta { width: 60%; height: 12px; }
.sk-price { width: 50%; height: 24px; margin-top: auto; }
.sk-stock { width: 30%; height: 12px; }
