body {
            font-family: 'Inter', sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #f5576c 75%, #4facfe 100%);
            background-size: 400% 400%;
            animation: gradientShift 15s ease infinite;
            overflow: hidden; 
            transition: background 0.5s ease;
        }
        
        @keyframes gradientShift {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }

        /* Utilitas Glassmorphism - DARK (Bawaan) */
        .glass-panel {
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border-right: 1px solid rgba(255, 255, 255, 0.2);
        }

        .glass-card {
            background: rgba(255, 255, 255, 0.15);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
        }

        .glass-input {
            background: rgba(255, 255, 255, 0.2);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.3);
            color: #fff;
        }
        .glass-input:focus { outline: none; border-color: #fff; box-shadow: 0 0 10px rgba(255,255,255,0.2); }
        .glass-input::placeholder { color: rgba(255, 255, 255, 0.6); }
        .glass-input option { background: #1e293b; color: #fff; }

        /*
          TABLE ALIGNMENT PATCH
          - Samakan padding header & body
          - Pakai table-layout:fixed biar kolom presisi sejajar judul
          - Cegah teks panjang bikin kolom "lari"
        */
        .glass-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
        .glass-table th, .glass-table td { box-sizing: border-box; padding: 10px 12px; vertical-align: middle; }
        .glass-table th { background: rgba(255, 255, 255, 0.2); color: white; font-weight: 600; text-transform: uppercase; font-size: 12px; }
        .glass-table td { border-bottom: 1px solid rgba(255, 255, 255, 0.1); color: white; font-size: 14px; }
        .glass-table th, .glass-table td { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        .glass-table tr:hover { background: rgba(255, 255, 255, 0.05); }

        /* Gradien untuk Tombol */
        .btn-grad-1 { background: linear-gradient(135deg, #667eea, #764ba2); }
        .btn-grad-2 { background: linear-gradient(135deg, #11998e, #38ef7d); }
        .btn-grad-3 { background: linear-gradient(135deg, #f5576c, #f093fb); }
        .btn-grad-hover:hover { transform: translateY(-2px); filter: brightness(1.1); }

        /* Transisi Sidebar + Spacing Layout */
        #sidebar { width: 16rem; transition: transform 0.3s ease-in-out, width 0.3s ease, padding 0.3s ease; }
        main { transition: all 0.3s ease; min-width: 0; }
        .main-shell {
            width: 100%;
            max-width: 1400px !important;
            margin-left: auto;
            margin-right: auto;
            padding-left: 1rem;
            padding-right: 1rem;
        }
        .desktop-sidebar-toggle {
            display: none;
            width: 100%;
            min-height: 2.9rem;
            align-items: center;
            justify-content: center;
            gap: 0;
            background: rgba(255,255,255,0.14);
            border: 1px solid rgba(255,255,255,0.22);
            color: white;
            border-radius: 14px;
            padding: 0.7rem 0.9rem;
            font-weight: 700;
            backdrop-filter: blur(14px);
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
        }
        .desktop-sidebar-toggle:hover { background: rgba(255,255,255,0.2); }
        @media (min-width: 768px) {
            body#appBody {
                gap: 1.25rem;
                padding-right: 1.25rem;
            }
            #sidebar {
                flex: 0 0 16rem;
                margin-right: 0;
            }
            main {
                flex: 1 1 auto;
                min-width: 0;
            }
            .main-shell {
                padding-left: 1.25rem;
                padding-right: 1.25rem;
            }
            .desktop-sidebar-toggle { display: flex; }
            body.desktop-sidebar-collapsed {
                gap: 1rem;
                padding-right: 1rem;
            }
            body.desktop-sidebar-collapsed .desktop-sidebar-toggle { justify-content: center; }
            body.desktop-sidebar-collapsed #sidebar { width: 5.75rem !important; flex-basis: 5.75rem; }
            body.desktop-sidebar-collapsed #sidebar #navMenu button { justify-content: center; padding-left: 0.75rem; padding-right: 0.75rem; }
            body.desktop-sidebar-collapsed #sidebar #navMenu button span:last-child,
            body.desktop-sidebar-collapsed #sidebar #desktopCompanyName,
            body.desktop-sidebar-collapsed #sidebar #activeUserDisplay,
            body.desktop-sidebar-collapsed #sidebar .hidden-when-collapsed { display: none !important; }
            body.desktop-sidebar-collapsed #sidebar .group > div:first-child { justify-content: center; }
            body.desktop-sidebar-collapsed #sidebar .group { padding-left: 0.75rem; padding-right: 0.75rem; }
            body.desktop-sidebar-collapsed #sidebar .border-t { justify-content: center; }
        }
        
        /* Scrollbar Kustom */
        ::-webkit-scrollbar { width: 6px; height: 6px; }
        ::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.05); }
        ::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.2); border-radius: 3px; }

        /* Hak Akses Kasir */
        body.role-kasir .omset-col { display: none !important; }
        body.role-kasir .restricted-nav { display: none !important; }
        body.role-kasir [data-target="view-piutang"], body.role-kasir [data-target="view-settings"] { display: flex !important; }
        body.role-admin [data-target="view-keuangan"] { display: none !important; }

        /* Tombol & Overlay Obrolan */
        #chatFab {
            position: fixed; bottom: 20px; right: 20px; width: 60px; height: 60px;
            background: #1e293b;
            border-radius: 50%; box-shadow: 0 4px 15px rgba(0,0,0,0.5);
            display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 50;
            overflow: hidden; padding: 0; border: 2px solid #4facfe;
        }
        #chatFab img { width: 100%; height: 100%; object-fit: cover; }
        #chatOverlay {
            position: fixed; top: 16px; right: -430px; width: calc(100% - 32px); max-width: 420px; height: calc(100vh - 32px);
            background: linear-gradient(180deg, rgba(2,6,23,0.96), rgba(15,23,42,0.98)); backdrop-filter: blur(20px);
            border: 1px solid rgba(255,255,255,0.12); border-radius: 24px; transition: right 0.3s ease; z-index: 100;
            display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 24px 80px rgba(0,0,0,0.45);
        }
        #chatOverlay.active { right: 16px; }
        .chat-bubble { padding: 12px 14px; border-radius: 18px; font-size: 13px; line-height: 1.55; max-width: 85%; white-space: pre-wrap; box-shadow: 0 10px 24px rgba(0,0,0,0.18); }
        .chat-user { background: linear-gradient(135deg, #2563eb, #38bdf8); color: white; align-self: flex-end; border-bottom-right-radius: 6px; }
        .chat-ai { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.10); color: white; align-self: flex-start; border-bottom-left-radius: 6px; }

        /* Sembunyikan elemen dinamis */
        .hidden { display: none !important; }
        .hidden-view { display: none !important; }

        /* ================= MODE TERANG ================= */
        body.light-mode { background: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%); color: #1f2937 !important; }
        body.light-mode .text-white { color: #1f2937 !important; }
        body.light-mode .text-white\/70, body.light-mode .text-white\/80 { color: #4b5563 !important; }
        body.light-mode .text-white\/50, body.light-mode .text-white\/60 { color: #6b7280 !important; }
        body.light-mode .glass-panel, body.light-mode .glass-card { background: rgba(255, 255, 255, 0.7) !important; border: 1px solid rgba(0, 0, 0, 0.1) !important; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05) !important; }
        body.light-mode .bg-white\/20, body.light-mode .bg-white\/10 { background-color: rgba(0, 0, 0, 0.05) !important; }
        body.light-mode .bg-black\/30 { background-color: rgba(255, 255, 255, 0.6) !important; }
        body.light-mode .border-white\/20, body.light-mode .border-white\/30, body.light-mode .border-white\/10 { border-color: rgba(0, 0, 0, 0.1) !important; }
        body.light-mode .glass-input { background: rgba(255, 255, 255, 0.9) !important; border: 1px solid rgba(0, 0, 0, 0.2) !important; color: #1f2937 !important; }
        body.light-mode .glass-input:focus { border-color: #4facfe !important; box-shadow: 0 0 10px rgba(79,172,254,0.3) !important; }
        body.light-mode .glass-input::placeholder { color: rgba(0,0,0,0.5) !important; }
        body.light-mode .glass-input option { background: #fff !important; color: #1f2937 !important; }
        body.light-mode .glass-table th { background: rgba(0,0,0,0.05) !important; color: #1f2937 !important; }
        body.light-mode .glass-table td { border-bottom: 1px solid rgba(0,0,0,0.05) !important; color: #1f2937 !important; }
        body.light-mode .glass-table tr:hover { background: rgba(0,0,0,0.03) !important; }
        body.light-mode .text-shadow { text-shadow: none !important; }
        body.light-mode .text-blue-300 { color: #2563eb !important; }
        body.light-mode .text-yellow-400, body.light-mode .text-yellow-300 { color: #d97706 !important; }
        body.light-mode .text-green-400, body.light-mode .text-green-300 { color: #059669 !important; }
        body.light-mode .text-red-300, body.light-mode .text-red-400 { color: #dc2626 !important; }
        body.light-mode .border-l-blue-400 { border-left-color: #3b82f6 !important; }
        body.light-mode .border-l-yellow-400 { border-left-color: #f59e0b !important; }
        body.light-mode .border-l-green-400 { border-left-color: #10b981 !important; }

        /* Overlay */
        .modal-overlay { backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px); }

        /* ================= GAYA CETAK ================= */

@media print {
            body { background: white !important; overflow: auto !important; height: auto !important; color: black !important; }
            /* Sembunyikan elemen UI Aplikasi */
            body > *:not(#printArea) { display: none !important; }
            
            /* Area Khusus Cetak */
            #printArea { display: block !important; width: 100%; font-family: Arial, Helvetica, sans-serif; padding: 20px; }
            .print-header { text-align: center; border-bottom: 2px solid black; padding-bottom: 10px; margin-bottom: 20px; }
            .print-header h1 { margin: 0; font-size: 24pt; text-transform: uppercase; font-weight: bold; }
            .print-header p { margin: 5px 0 0 0; color: #333; font-size: 11pt; }
            
            .print-summary-box { display: flex; justify-content: space-between; border: 2px solid black; padding: 15px; border-radius: 8px; margin-bottom: 30px; text-align: center; break-inside: avoid; }
            .print-summary-box div { flex: 1; padding: 0 10px; }
            .print-summary-box h3 { margin: 5px 0; font-size: 16pt; font-weight: bold; }
            .print-summary-box p { margin: 0; font-size: 10pt; color: #444; font-weight: bold; text-transform: uppercase;}
            .print-summary-box span { font-size: 9pt; color: #666; }
            
            .print-table { width: 100%; border-collapse: collapse; margin-bottom: 30px; color: black !important; break-inside: auto; }
            .print-table tr { break-inside: avoid; page-break-inside: avoid; }
            .print-table th, .print-table td { border: 1px solid black; padding: 8px; text-align: center; font-size: 11pt; }
            .print-table th { background: #f3f4f6 !important; -webkit-print-color-adjust: exact; font-weight: bold; }
            
            .print-section-title { font-size: 14pt; margin-bottom: 10px; border-left: 4px solid black; padding-left: 8px; font-weight: bold; text-transform: uppercase; }
        }

/* v19 invoice modal */
#jualInvoiceModal.hidden { display: none; }
#jualInvoiceModal { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(2, 6, 23, 0.72); backdrop-filter: blur(6px); }
#jualInvoiceModal .v19-modal-card { width: min(920px, 100%); max-height: calc(100vh - 40px); overflow: auto; border-radius: 24px; border: 1px solid rgba(255,255,255,.12); background: linear-gradient(180deg, rgba(15,23,42,.96), rgba(30,41,59,.94)); box-shadow: 0 25px 80px rgba(0,0,0,.35); }
#jualInvoiceModal .v19-modal-head { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:18px 20px; border-bottom:1px solid rgba(255,255,255,.08); }
#jualInvoiceModal .v19-modal-body { padding: 20px; }
#jualInvoiceModal .v19-actions { display:flex; flex-wrap:wrap; gap:10px; }
#jualInvoiceModal .v19-action-btn { border: 1px solid rgba(255,255,255,.15); border-radius: 12px; padding: 10px 14px; font-weight: 700; color: white; background: rgba(255,255,255,.08); }
#jualInvoiceModal .v19-action-btn:hover { background: rgba(255,255,255,.16); }
#jualInvoiceModal .v19-action-btn.primary { background: linear-gradient(90deg, rgba(16,185,129,.88), rgba(52,211,153,.88)); border-color: rgba(255,255,255,.08); color: #052e16; }
#jualInvoiceModal .v19-action-btn.whatsapp { background: linear-gradient(90deg, rgba(34,197,94,.88), rgba(74,222,128,.88)); border-color: rgba(255,255,255,.08); color: #052e16; }
#jualInvoiceModal .v19-action-btn.print { background: linear-gradient(90deg, rgba(251,191,36,.9), rgba(250,204,21,.9)); border-color: rgba(255,255,255,.08); color: #422006; }
#jualInvoiceModal .v19-invoice-card { color:#0f172a; background: #fff; border-radius: 22px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(15,23,42,.06); }
#jualInvoiceModal .v19-invoice-top { padding: 24px; background: linear-gradient(135deg, #ede9fe, #dbeafe 52%, #dcfce7); }
#jualInvoiceModal .v19-invoice-grid { display:grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
#jualInvoiceModal .v19-label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color:#475569; margin-bottom: 6px; }
#jualInvoiceModal .v19-box { background:#f8fafc; border: 1px solid #e2e8f0; border-radius: 16px; padding: 14px 16px; }
#jualInvoiceModal .v19-table-wrap { padding: 0 24px 24px; }
#jualInvoiceModal .v19-table { width:100%; border-collapse: collapse; }
#jualInvoiceModal .v19-table th, #jualInvoiceModal .v19-table td { padding: 12px 10px; border-bottom: 1px solid #e2e8f0; text-align: left; }
#jualInvoiceModal .v19-table thead th { background:#f8fafc; color:#334155; font-size:12px; }
#jualInvoiceModal .v19-t-right { text-align:right !important; }
#jualInvoiceModal .v19-total { display:flex; justify-content:flex-end; padding: 0 24px 24px; }
#jualInvoiceModal .v19-total-card { min-width: 280px; background:#0f172a; color:#fff; border-radius: 18px; padding: 18px 20px; }
#jualInvoiceModal .v19-total-card .mini { color: rgba(255,255,255,.65); font-size: 12px; }
#jualInvoiceModal .v19-footer { padding: 0 24px 24px; color:#475569; font-size: 13px; }
#jualInvoiceModal .v19-cta-note { margin-top: 10px; color: rgba(255,255,255,.6); font-size: 12px; }
@media (max-width: 768px) {
  #jualInvoiceModal .v19-invoice-grid { grid-template-columns: 1fr; }
  #jualInvoiceModal .v19-total { padding-top: 8px; }
}

#tblSpk td{vertical-align:middle}#tblSpk td:nth-child(1),#tblSpk td:nth-child(2){text-align:center}








/* table precision + center alignment */
#view-gudangjadi .glass-table,
#view-ecommerce .glass-table,
#tblRiwayatJual,
#tblRiwayatJual table {
    table-layout: fixed;
}
#view-gudangjadi .glass-table th,
#view-gudangjadi .glass-table td,
#view-ecommerce .glass-table th,
#view-ecommerce .glass-table td,
#tblRiwayatJual th,
#tblRiwayatJual td {
    text-align: center;
    vertical-align: middle;
}
#tblRiwayatJual td .flex,
#tblRiwayatJual th .flex,
#view-gudangjadi td .flex,
#view-ecommerce td .flex {
    justify-content: center;
    align-items: center;
}


/* v9 rapihin tabel piutang + penjualan */
.table-compact { table-layout: fixed; border-collapse: separate; border-spacing: 0; }
.table-compact thead th { text-align: center; vertical-align: middle; font-size: 12px; font-weight: 800; letter-spacing: 0.02em; }
.table-compact tbody td { vertical-align: middle; }
.table-center-vertical td, .table-center-vertical th { vertical-align: middle; }
.table-piutang-rapi thead th, .table-piutang-rapi tbody td { padding-top: 14px; padding-bottom: 14px; }
.table-piutang-rapi tbody td:nth-child(1),
.table-piutang-rapi tbody td:nth-child(2) { text-align: center !important; }
.table-piutang-rapi tbody td:nth-child(3),
.table-piutang-rapi tbody td:nth-child(4),
.table-piutang-rapi tbody td:nth-child(5) { text-align: center !important; font-variant-numeric: tabular-nums; }
.table-piutang-rapi tbody td:nth-child(6) { text-align: center !important; }
.table-piutang-rapi tbody td:last-child { min-width: 220px; }
.table-piutang-rapi button { min-width: 92px; }
.table-jual-rapi thead th, .table-jual-rapi tbody td { padding-top: 12px; padding-bottom: 12px; }
.table-jual-rapi tbody td:nth-child(1),
.table-jual-rapi tbody td:nth-child(4),
.table-jual-rapi tbody td:nth-child(6) { text-align: center; }
.table-jual-rapi tbody td:nth-child(2),
.table-jual-rapi tbody td:nth-child(3) { text-align: left; }
.table-jual-rapi tbody td:nth-child(5) { text-align: right; font-variant-numeric: tabular-nums; }
#tblPiutang td, #tblRiwayatJual td { line-height: 1.45; }
#tblPiutang .piutang-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; }
#tblRiwayatJual .jual-shop-meta { display: flex; flex-direction: column; gap: 2px; }
#tblRiwayatJual .jual-product-cell { line-height: 1.5; word-break: break-word; }
body.light-mode .table-compact thead th { background: rgba(15,23,42,0.06) !important; }


/* v10 rapihin piutang + buku besar */
.table-keuangan-rapi thead th, .table-keuangan-rapi tbody td { padding-top: 13px; padding-bottom: 13px; }
.table-keuangan-rapi tbody td:nth-child(1),
.table-keuangan-rapi tbody td:nth-child(4),
.table-keuangan-rapi tbody td:nth-child(5),
.table-keuangan-rapi tbody td:nth-child(6) { text-align: center !important; }
.table-keuangan-rapi tbody td:nth-child(2) { text-align: center !important; line-height: 1.55; }
.table-keuangan-rapi .keu-desc-cell,.keu-popup-desc-cell{white-space:normal!important;word-break:break-word!important;line-height:1.55!important;text-align:center!important}
.keu-popup-table{width:100%!important;table-layout:auto!important}
.keu-popup-table thead th,.keu-popup-table tbody td{vertical-align:middle!important}
.keu-popup-table tbody td:nth-child(2){min-width:540px!important;text-align:center!important}
.keu-popup-table tbody td:nth-child(4),.keu-popup-table tbody td:nth-child(5),.keu-popup-table tbody td:nth-child(6){white-space:nowrap!important}

.table-keuangan-rapi tbody td:nth-child(3) { text-align: center !important; }
.table-keuangan-rapi tbody td:nth-child(4), .table-keuangan-rapi tbody td:nth-child(5), .table-piutang-rapi tbody td:nth-child(3), .table-piutang-rapi tbody td:nth-child(4), .table-piutang-rapi tbody td:nth-child(5) { font-variant-numeric: tabular-nums; }
#tblPiutang .piutang-actions { display: grid; grid-template-columns: repeat(2, minmax(96px, max-content)); justify-content: center; align-items: center; gap: 8px; }
#tblPiutang .piutang-actions .piutang-struk { grid-column: 1 / -1; justify-self: center; }
#tblPiutang td:nth-child(1), #tblPiutang td:nth-child(2) { font-weight: 600; }
#tblBukuBesar td:nth-child(2) { white-space: normal; word-break: break-word; }
#tblBukuBesar td:nth-child(4), #tblBukuBesar td:nth-child(5) { font-weight: 700; }
#tblPiutang td:nth-child(1), #tblPiutang td:nth-child(2) { white-space: normal; word-break: break-word; }
#tblPiutang td:nth-child(3), #tblPiutang td:nth-child(4), #tblPiutang td:nth-child(5) { white-space: nowrap; }
.table-piutang-rapi thead th:nth-child(3), .table-piutang-rapi thead th:nth-child(4), .table-piutang-rapi thead th:nth-child(5) { text-align: center !important; }
.piutang-name-btn, .piutang-bayar-link { background: transparent; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; }
.piutang-name-btn:hover, .piutang-bayar-link:hover { text-decoration: underline; }
.piutang-bayar-link { color: #bbf7d0; font-weight: 700; }
.piutang-history-row td { white-space: normal !important; }
#view-piutang .glass-table{table-layout:auto!important}
#view-piutang .glass-table th,#view-piutang .glass-table td{white-space:normal!important;overflow:visible!important;text-overflow:clip!important}
#view-piutang .table-piutang-rapi{width:100%!important;table-layout:fixed!important;border-collapse:separate!important;border-spacing:0!important}
#view-piutang .table-piutang-rapi thead th,#view-piutang .table-piutang-rapi tbody td{vertical-align:middle!important;text-align:center!important}
#view-piutang .table-piutang-rapi thead th:nth-child(1),#view-piutang .table-piutang-rapi tbody td:nth-child(1){width:4%!important;padding-left:8px!important;padding-right:8px!important}
#view-piutang .table-piutang-rapi thead th:nth-child(2),#view-piutang .table-piutang-rapi tbody td:nth-child(2){width:14%!important}
#view-piutang .table-piutang-rapi thead th:nth-child(3),#view-piutang .table-piutang-rapi tbody td:nth-child(3){width:19%!important}
#view-piutang .table-piutang-rapi thead th:nth-child(4),#view-piutang .table-piutang-rapi tbody td:nth-child(4){width:15%!important}
#view-piutang .table-piutang-rapi thead th:nth-child(5),#view-piutang .table-piutang-rapi tbody td:nth-child(5){width:15%!important}
#view-piutang .table-piutang-rapi thead th:nth-child(6),#view-piutang .table-piutang-rapi tbody td:nth-child(6){width:14%!important}
#view-piutang .table-piutang-rapi thead th:nth-child(7),#view-piutang .table-piutang-rapi tbody td:nth-child(7){width:11%!important}
#view-piutang .table-piutang-rapi thead th:nth-child(8),#view-piutang .table-piutang-rapi tbody td:nth-child(8){width:18%!important}
#view-piutang .table-piutang-rapi tbody td:last-child{min-width:0!important}
#view-piutang .table-piutang-rapi button{min-width:0!important;white-space:nowrap!important}
#view-piutang .table-piutang-rapi .piutang-name-btn,#view-piutang .table-piutang-rapi .piutang-bayar-link{display:inline-flex!important;justify-content:center!important;text-align:center!important;width:100%}
#view-piutang .table-piutang-rapi .piutang-actions{display:flex!important;flex-wrap:wrap!important;justify-content:center!important;align-items:center!important;gap:8px!important}


#view-keuangan .table-keuangan-rapi{width:100%!important;min-width:1160px!important;table-layout:fixed!important;border-collapse:separate!important;border-spacing:0!important}
#view-keuangan .table-keuangan-rapi thead th,#view-keuangan .table-keuangan-rapi tbody td{vertical-align:middle!important}
#view-keuangan .table-keuangan-rapi thead th:nth-child(1),#view-keuangan .table-keuangan-rapi tbody td:nth-child(1){width:13%!important}
#view-keuangan .table-keuangan-rapi thead th:nth-child(2),#view-keuangan .table-keuangan-rapi tbody td:nth-child(2){width:42%!important}
#view-keuangan .table-keuangan-rapi thead th:nth-child(3),#view-keuangan .table-keuangan-rapi tbody td:nth-child(3){width:17%!important}
#view-keuangan .table-keuangan-rapi thead th:nth-child(4),#view-keuangan .table-keuangan-rapi tbody td:nth-child(4){width:12%!important}
#view-keuangan .table-keuangan-rapi thead th:nth-child(5),#view-keuangan .table-keuangan-rapi tbody td:nth-child(5){width:12%!important}
#view-keuangan .table-keuangan-rapi thead th:nth-child(6),#view-keuangan .table-keuangan-rapi tbody td:nth-child(6){width:120px!important}
#view-keuangan .table-keuangan-rapi thead th{text-align:center!important}
#view-keuangan .table-keuangan-rapi tbody td:nth-child(1),#view-keuangan .table-keuangan-rapi tbody td:nth-child(2),#view-keuangan .table-keuangan-rapi tbody td:nth-child(3),#view-keuangan .table-keuangan-rapi tbody td:nth-child(4),#view-keuangan .table-keuangan-rapi tbody td:nth-child(5),#view-keuangan .table-keuangan-rapi tbody td:nth-child(6){text-align:center!important}
#view-keuangan .table-keuangan-rapi tbody td:nth-child(4),#view-keuangan .table-keuangan-rapi tbody td:nth-child(5),#view-keuangan .table-keuangan-rapi tbody td:nth-child(6){white-space:nowrap!important}
#view-keuangan .table-keuangan-rapi tbody td:nth-child(6) button{min-width:86px!important}


/* gudang jadi: rapikan judul kolom biar tidak kepotong */
#view-gudangjadi .glass-table thead th,
#gudangDetailModal .glass-table thead th {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    line-height: 1.35 !important;
    word-break: break-word;
}
#view-gudangjadi .glass-table {
    table-layout: auto !important;
}
#gudangDetailModal .glass-table {
    table-layout: auto !important;
}
#view-gudangjadi .glass-table tbody td,
#gudangDetailModal .glass-table tbody td {
    line-height: 1.4;
}


/* spk cutting: popup detail full readable + section minimize */
#view-spk .glass-table{table-layout:auto!important}
#view-spk .glass-table thead th{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;line-height:1.35!important;word-break:break-word!important}
#spkGroupModal .glass-table,
#cuttingPlanGroupModal .glass-table{table-layout:auto!important;width:100%!important}
#spkGroupModal .glass-table th,
#spkGroupModal .glass-table td,
#cuttingPlanGroupModal .glass-table th,
#cuttingPlanGroupModal .glass-table td{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;line-height:1.45!important;word-break:break-word!important;vertical-align:top!important}
#spkGroupModal .glass-table td:nth-child(2){min-width:420px!important}
#spkGroupModal .glass-table td:nth-child(3){min-width:420px!important}
#cuttingPlanGroupModal .glass-table td:nth-child(3){min-width:560px!important}
#spkGroupModal .glass-table td:last-child,
#cuttingPlanGroupModal .glass-table td:last-child{white-space:nowrap!important}

#mappingMasterTable th,#mappingMasterTable td{text-align:center!important;vertical-align:middle!important}
#mappingMasterTable tbody td{line-height:1.4!important}


#belanjaLuarSupplierModal .glass-card{width:min(99vw,1780px)!important;max-height:96vh!important}
#belanjaLuarSupplierModal .modal-scroll{max-height:calc(96vh - 104px)!important;overflow:auto!important}
#belanjaLuarSupplierModal .glass-table{table-layout:auto!important;width:100%!important}
#belanjaLuarSupplierModal .glass-table th,#belanjaLuarSupplierModal .glass-table td{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;word-break:break-word!important;line-height:1.45!important;vertical-align:middle!important;text-align:center!important}
#belanjaLuarSupplierModal .glass-table td:nth-child(1),#belanjaLuarSupplierModal .glass-table td:nth-child(2){font-weight:600!important}
#belanjaLuarSupplierModal .glass-table th:nth-child(3),#belanjaLuarSupplierModal .glass-table td:nth-child(3),#belanjaLuarSupplierModal .glass-table th:nth-child(4),#belanjaLuarSupplierModal .glass-table td:nth-child(4),#belanjaLuarSupplierModal .glass-table th:nth-child(5),#belanjaLuarSupplierModal .glass-table td:nth-child(5),#belanjaLuarSupplierModal .glass-table th:nth-child(6),#belanjaLuarSupplierModal .glass-table td:nth-child(6){white-space:nowrap!important;text-align:center!important}

#view-belanjaluar .belanja-luar-table{table-layout:auto!important;width:100%!important}
#view-belanjaluar .belanja-luar-table th,#view-belanjaluar .belanja-luar-table td{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;word-break:break-word!important;line-height:1.45!important;vertical-align:middle!important}
#view-belanjaluar .belanja-luar-table th:nth-child(1),#view-belanjaluar .belanja-luar-table td:nth-child(1){min-width:110px!important}
#view-belanjaluar .belanja-luar-table th:nth-child(2),#view-belanjaluar .belanja-luar-table td:nth-child(2){min-width:140px!important}
#view-belanjaluar .belanja-luar-table th:nth-child(3),#view-belanjaluar .belanja-luar-table td:nth-child(3){min-width:320px!important}
#view-belanjaluar .belanja-luar-table th:nth-child(4),#view-belanjaluar .belanja-luar-table td:nth-child(4){min-width:110px!important;white-space:nowrap!important}
#view-belanjaluar .belanja-luar-table th:nth-child(5),#view-belanjaluar .belanja-luar-table td:nth-child(5){min-width:150px!important;white-space:nowrap!important}
#view-belanjaluar .belanja-luar-table th:nth-child(6),#view-belanjaluar .belanja-luar-table td:nth-child(6){min-width:180px!important}
#view-belanjaluar .belanja-luar-table th:nth-child(7),#view-belanjaluar .belanja-luar-table td:nth-child(7){min-width:220px!important}
