/* TaxHub — gaya umum (layout, header, tab, node, panel, tombol) */
        :root {
            --ink: #0f1117; --ink-2: #2b2f3a; --ink-3: #4a5068; --ink-4: #8891a8;
            --surface: #f5f4f0; --surface-2: #eceae4; --surface-3: #e0ddd5; --white: #ffffff;
            --accent: #1a3a5c; --accent-2: #2b5797; --accent-light: #dce8f5;
            --gold: #b5892a; --gold-light: #f5edd9; --teal: #0f7b6c; --teal-light: #d3eeeb;
            --green: #1d6b38; --red: #c0392b; --border: rgba(0,0,0,0.08); --border-strong: rgba(0,0,0,0.15);
            --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
            --shadow-md: 0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
            --radius: 6px; --radius-lg: 10px; --mono: 'DM Mono', monospace;
        }
        *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
        body { font-family: 'DM Sans', sans-serif; background: var(--surface); color: var(--ink); overflow: hidden; height: 100vh; display: flex; flex-direction: column; }
        #header { height: 56px; background: var(--ink); display: flex; align-items: center; justify-content: space-between; padding: 0 20px; flex-shrink: 0; position: relative; }
        #header::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--gold) 0%, var(--accent-2) 40%, transparent 100%); }
        .header-left { display: flex; align-items: center; gap: 14px; }
        .header-logo { width: 28px; height: 28px; background: var(--gold); border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; color: var(--ink); flex-shrink: 0; }
        .header-title { font-family: 'Playfair Display', serif; font-size: 16px; color: var(--white); letter-spacing: 0.02em; }
        .header-divider { width: 1px; height: 20px; background: rgba(255,255,255,0.15); }
        #group-title { font-family: 'DM Mono', monospace; font-size: 12px; color: var(--gold); letter-spacing: 0.05em; border-bottom: 1px dashed rgba(181,137,42,0.5); padding-bottom: 1px; cursor: pointer; outline: none; }
        .header-controls { display: flex; align-items: center; gap: 8px; }
        .tabs { background: var(--ink-2); display: flex; align-items: flex-end; padding: 0 20px; gap: 2px; flex-shrink: 0; height: 40px; }
        .tab-btn { padding: 0 18px; height: 34px; background: transparent; border: none; color: var(--ink-4); font-family: 'DM Sans', sans-serif; font-size: 12px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; cursor: pointer; border-radius: var(--radius) var(--radius) 0 0; transition: all 0.15s; }
        .tab-btn:hover { color: var(--white); background: rgba(255,255,255,0.06); }
        .tab-btn.active { background: var(--surface); color: var(--ink); font-weight: 600; }
        .tab-content { display: none; flex: 1; overflow: hidden; }
        .tab-content.active { display: flex; }
        #chart-container { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
        #toolbar { min-height: 44px; background: var(--white); border-bottom: 1px solid var(--border); display: flex; flex-wrap: wrap; align-items: center; padding: 6px 16px; gap: 8px; flex-shrink: 0; }
        .legend-group { display: flex; align-items: center; gap: 18px; flex: 1; }
        .legend-item { display: flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 500; color: var(--ink-3); letter-spacing: 0.03em; text-transform: uppercase; }
        .legend-pip { width: 12px; height: 12px; border-radius: 3px; flex-shrink: 0; }
        .legend-pip.circle { border-radius: 50%; }
        #canvas-legend { position: absolute; top: 12px; left: 12px; z-index: 5; background: rgba(255,255,255,0.96); border: 1px solid var(--border-strong); border-radius: 8px; box-shadow: var(--shadow-md); padding: 8px 11px 9px; display: flex; flex-direction: column; gap: 5px; }
        #canvas-legend .legend-item { text-transform: uppercase; font-size: 10.5px; }
        #canvas-legend .cl-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 3px; }
        #canvas-legend .cl-head span { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; color: var(--ink-3); }
        #canvas-legend .cl-x { border: none; background: none; cursor: pointer; font-size: 15px; line-height: 1; color: var(--ink-4); padding: 0 2px; }
        #canvas-legend .cl-x:hover { color: var(--ink-1); }
        #legend-show-btn { position: absolute; top: 12px; left: 12px; z-index: 5; background: rgba(255,255,255,0.96); border: 1px solid var(--border-strong); border-radius: 8px; box-shadow: var(--shadow-md); padding: 6px 10px; font-size: 11px; cursor: pointer; color: var(--ink-2); }
        .l-owner      { background: #b5892a; }
        .l-holding    { background: #1E3A5F; }
        .l-subholding { background: #2b5797; }
        .l-operating  { background: #0D9488; }
        .l-individual { background: #15803D; }
        .l-dormant    { background: #c8c4bc; border: 1px solid #a8a49c; }
        .l-other      { background: #78716C; }
        .export-item { padding: 8px 14px; font-size: 12px; color: var(--ink-2); cursor: pointer; }
        .export-item:hover { background: var(--surface-2); }
        .grp-item { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--ink-2); padding: 4px 6px; cursor: pointer; border-radius: 4px; }
        .grp-item:hover { background: var(--surface-2); }
        .toolbar-sep { width: 1px; height: 22px; background: var(--border-strong); }
        .view-toggle { display: flex; background: var(--surface-2); border-radius: 6px; padding: 2px; gap: 1px; }
        .vt-btn { padding: 4px 12px; border: none; border-radius: 4px; font-family: 'DM Sans', sans-serif; font-size: 11px; font-weight: 500; color: var(--ink-3); cursor: pointer; background: transparent; transition: all .15s; letter-spacing: .02em; }
        .vt-btn.active { background: var(--white); color: var(--ink); box-shadow: var(--shadow-sm); }
        #svg-canvas { flex: 1; background: var(--surface); background-image: radial-gradient(circle, rgba(0,0,0,0.04) 1px, transparent 1px); background-size: 24px 24px; overflow: hidden; position: relative; }
        #svg-canvas svg { width: 100%; height: 100%; cursor: grab; }
        #svg-canvas svg:active { cursor: grabbing; }
        .d3-node rect, .d3-node ellipse { transition: opacity .28s ease; }
        .d3-node:hover rect, .d3-node:hover ellipse { opacity: .82; cursor: pointer; }
        .d3-node.dimmed { opacity: .1; }
        .d3-edge { transition: opacity .28s ease; }
        .d3-edge.dimmed { opacity: .04; }
        .d3-edge.highlighted path { stroke: #2b5797 !important; stroke-width: 2px !important; }
        .d3-node.highlighted rect, .d3-node.highlighted ellipse { stroke: var(--gold) !important; stroke-width: 2px !important; }
        @keyframes selPulse { 0%,100% { filter: drop-shadow(0 0 8px rgba(181,137,42,0.65)); } 50% { filter: drop-shadow(0 0 16px rgba(181,137,42,1)); } }
        .d3-node.selected-node .node-body { stroke: var(--gold) !important; stroke-width: 2.6px !important; animation: selPulse 1.8s ease-in-out infinite; }
        
        .pct-badge { font-family: 'DM Mono', monospace; font-size: 10.5px; font-weight: 500; }
        
        #sidebar { position: relative; width: 460px; background: var(--white); border-left: 1px solid var(--border); display: flex; flex-direction: column; overflow: hidden; flex-shrink: 0; transition: margin-right 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s; }
        #sidebar.closed { margin-right: -480px; opacity: 0; border-left: none; }
        #sidebar-resizer { position: absolute; left: 0; top: 0; width: 7px; height: 100%; cursor: col-resize; z-index: 6; background: transparent; }
        #sidebar-resizer:hover { background: linear-gradient(90deg, rgba(43,87,151,0.28), transparent); }
        .sidebar-header { padding: 14px 18px 12px; border-bottom: 1px solid var(--border); flex-shrink: 0; display: flex; justify-content: space-between; align-items: center; }
        .sidebar-header h3 { font-family: 'Playfair Display', serif; font-size: 14px; font-weight: 600; color: var(--ink); }
        .close-sidebar-btn { background: transparent; border: none; font-size: 20px; color: var(--ink-4); cursor: pointer; transition: color 0.15s; line-height: 1; padding: 0 4px; }
        .close-sidebar-btn:hover { color: var(--red); }
        #panel-content { flex: 1; overflow-y: auto; padding: 14px 18px; }
        .panel-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; gap: 10px; color: var(--ink-4); }
        .panel-empty-icon { width: 44px; height: 44px; border: 2px dashed var(--border-strong); border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center; font-size: 18px; }
        .panel-empty p { font-size: 12px; text-align: center; line-height: 1.6; max-width: 180px; }
        .entity-badge { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 4px; font-size: 10px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 10px; }
        .entity-badge.Owner      { background: var(--gold-light); color: var(--gold); }
        .entity-badge.Holding    { background: var(--accent-light); color: var(--accent); }
        .entity-badge.Subholding { background: var(--accent-light); color: var(--accent-2); }
        .entity-badge.Operating  { background: var(--teal-light);   color: var(--teal); }
        .entity-badge.Individual { background: #d5ead9; color: var(--green); }
        .entity-badge.Dormant    { background: var(--surface-2); color: var(--ink-3); }
        .entity-badge.Other      { background: #f5ecea; color: #78716C; }
        .entity-name { font-family: 'Playfair Display', serif; font-size: 17px; font-weight: 600; color: var(--ink); line-height: 1.3; margin-bottom: 3px; }
        .entity-code { font-family: var(--mono); font-size: 11px; color: var(--ink-4); margin-bottom: 14px; }
        .detail-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 14px; }
        .detail-card-title { padding: 7px 12px; font-size: 10px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-4); border-bottom: 1px solid var(--border); background: var(--white); }
        .btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; font-family: 'DM Sans', sans-serif; font-size: 12px; font-weight: 500; border: none; border-radius: var(--radius); cursor: pointer; transition: all .15s; letter-spacing: .01em; white-space: nowrap; }
        .btn-ghost { background: transparent; color: rgba(255,255,255,.75); border: 1px solid rgba(255,255,255,.15); }
        .btn-ghost:hover { background: rgba(255,255,255,.1); color: white; }
        .btn-outline { background: var(--white); color: var(--ink-2); border: 1px solid var(--border-strong); box-shadow: var(--shadow-sm); }
        .btn-outline:hover { background: var(--surface); border-color: var(--ink-4); }
        .btn-danger { background: #fef2f2; color: var(--red); border: 1px solid #fecaca; }
        .btn-danger:hover { background: #fee2e2; }
        .btn-save { background: var(--teal); color: var(--white); padding: 9px 20px; font-weight: 600; font-size: 13px; margin-top: 20px; box-shadow: var(--shadow-md); }
        .btn-save:hover { background: #0d6b5e; }
        .btn-add { background: var(--surface-2); color: var(--ink-2); border: 1px dashed var(--border-strong); margin-top: 10px; }
        .btn-add:hover { background: var(--surface-3); }
        .search-wrap { position: relative; display: flex; align-items: center; }
        .search-wrap input { padding: 6px 10px 6px 30px; font-family: 'DM Sans', sans-serif; font-size: 12px; color: rgba(255,255,255,.85); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); border-radius: var(--radius); outline: none; width: 200px; transition: all .2s; }
        .search-wrap input::placeholder { color: rgba(255,255,255,.35); }
        .search-wrap input:focus { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.3); }
        .search-icon { position: absolute; left: 9px; color: rgba(255,255,255,.35); font-size: 13px; pointer-events: none; }
        
/* TaxHub — gaya tabel (editor, list, detail, sticky header, search & sort) */
        .editor-table thead th { position: sticky; top: 0; z-index: 5; background: var(--surface-2); box-shadow: 0 1px 0 var(--border-strong); }
        .list-table thead th { position: sticky; top: 0; z-index: 5; background: var(--white); box-shadow: 0 1px 0 var(--border); }
        .table-editor-container { overflow: auto; }
        table.detail-table { width: 100%; border-collapse: collapse; font-size: 12px; }
        table.detail-table tr:not(:last-child) { border-bottom: 1px solid var(--border); }
        table.detail-table th { padding: 8px 12px; color: var(--ink-3); font-weight: 500; width: 44%; text-align: left; background: var(--surface); }
        table.detail-table td { padding: 8px 12px; color: var(--ink); font-weight: 500; }
        table.detail-table td.mono { font-family: var(--mono); font-size: 11px; }
        table.detail-table td.pct  { font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--accent-2); }
        .list-table-wrap { overflow-x: auto; }
        table.list-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 11px; }
        table.list-table th { padding: 6px 10px; color: var(--ink-4); font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; background: var(--white); border-bottom: 1px solid var(--border); }
        table.list-table td { padding: 7px 10px; color: var(--ink-2); border-bottom: 1px solid var(--border); }
        table.list-table tr:last-child td { border-bottom: none; }
        table.list-table tr:hover td { background: var(--surface); }
        table.list-table td.name { font-weight: 600; color: var(--ink); }
        table.list-table td.num  { font-family: var(--mono); font-size: 10.5px; text-align: right; }
        table.list-table td.pct-cell { font-family: var(--mono); font-weight: 600; color: var(--accent-2); text-align: right; }
        .section-label { font-size: 10px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-4); margin: 14px 0 7px; display: flex; align-items: center; gap: 8px; }
        .section-label::after { content: ''; flex: 1; height: 1px; background: var(--border); }
        .table-editor-container { width: 100%; height: 100%; padding: 28px 32px; overflow-y: auto; background: var(--white); }
        .editor-heading { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
        .editor-sub { font-size: 13px; color: var(--ink-4); margin-bottom: 24px; line-height: 1.6; }
        .editor-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
        .editor-table thead th { padding: 10px 12px; background: var(--surface); color: var(--ink-3); font-weight: 600; font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; border-bottom: 2px solid var(--border-strong); text-align: left; }
        .editor-table tbody td { border-bottom: 1px solid var(--border); }
        .editor-table tbody tr:hover { background: var(--surface); }
        .editor-table tbody td { padding: 7px 10px; }
        .editor-table input, .editor-table select { width: 100%; padding: 5px 9px; font-family: 'DM Sans', sans-serif; font-size: 12px; color: var(--ink); background: var(--white); border: 1px solid var(--border-strong); border-radius: var(--radius); outline: none; transition: border-color .15s, box-shadow .15s; }
        .editor-table input:focus, .editor-table select:focus { border-color: var(--accent-2); box-shadow: 0 0 0 3px rgba(43,87,151,.1); }
        .editor-table input[disabled] { background: var(--surface-2); color: var(--ink-3); font-family: var(--mono); font-size: 11px; }
        /* SEARCH & SORT TABLE STYLES */
        .table-search-input { width: 100%; padding: 7px 10px 7px 30px; font-family: 'DM Sans', sans-serif; font-size: 11px; color: var(--ink); background: var(--white); border: none; border-bottom: 1px solid var(--border); outline: none; transition: border-color .15s; background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="%238891a8" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line></svg>'); background-repeat: no-repeat; background-position: 10px center; }
        .table-search-input:focus { border-bottom-color: var(--accent-2); }
        .editor-search { border: 1px solid var(--border-strong); border-radius: var(--radius); border-bottom: 1px solid var(--border-strong); }
        .editor-search:focus { border-color: var(--accent-2); box-shadow: 0 0 0 3px rgba(43,87,151,.1); }
        
        .sortable-table th { cursor: pointer; user-select: none; position: relative; padding-right: 18px !important; transition: background 0.15s; }
        .sortable-table th:hover { background: var(--surface-2) !important; color: var(--ink) !important; }
        .sortable-table th::after { content: '↕'; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); color: var(--border-strong); font-size: 10px; }
        .sortable-table th.sort-asc::after { content: '▲'; color: var(--accent-2); }
        .sortable-table th.sort-desc::after { content: '▼'; color: var(--accent-2); }
        .sortable-table th.no-sort { cursor: default; }
        .sortable-table th.no-sort::after { display: none; }
        .sortable-table th.no-sort:hover { background: var(--surface) !important; color: var(--ink-3) !important; }
/* TaxHub — gaya modal & rich-text & pane-tabs */
        .rt-wrap { border: 1px solid var(--border-strong); border-radius: 6px; overflow: hidden; }
        .rt-tb { display: flex; gap: 2px; padding: 4px; background: var(--surface); border-bottom: 1px solid var(--border); flex-wrap: wrap; }
        .rt-tb button { border: 1px solid var(--border); background: var(--white); border-radius: 4px; min-width: 26px; height: 24px; font-size: 12px; cursor: pointer; color: var(--ink-2); }
        .rt-tb button:hover { background: var(--surface-2); }
        .rt-ed { min-height: 80px; max-height: 220px; overflow: auto; padding: 8px 10px; font-size: 13px; color: var(--ink-1); background: var(--white); line-height: 1.5; }
        .rt-ed:focus { outline: none; }
        .pane-tabs { display: flex; flex-wrap: wrap; gap: 2px; margin: 6px 0 12px; border-bottom: 1px solid var(--border); }
        .pane-tab { border: none; background: transparent; padding: 6px 10px; font-size: 11px; font-weight: 600; color: var(--ink-4); cursor: pointer; border-bottom: 2px solid transparent; }
        .pane-tab:hover { color: var(--ink-2); }
        .pane-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
        #edit-modal-overlay { position: fixed; inset: 0; background: rgba(15,17,23,0.45); z-index: 9998; display: flex; align-items: center; justify-content: center; }
        #edit-modal { background: var(--white); border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,0.35); width: min(560px,92vw); max-height: 88vh; overflow: auto; }
        #edit-modal .em-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--white); }
        #edit-modal .em-head span { font-weight: 700; font-size: 14px; color: var(--ink-1); }
        #edit-modal .em-x { border: none; background: none; cursor: pointer; font-size: 20px; line-height: 1; color: var(--ink-4); }
        #edit-modal .em-body { padding: 16px 18px 18px; }
        #edit-modal .em-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
        #edit-modal .em-f { display: flex; flex-direction: column; gap: 4px; font-size: 11px; color: var(--ink-3); font-weight: 600; }
        #edit-modal .em-f input[type=text], #edit-modal .em-f select { padding: 7px 9px; border: 1px solid var(--border-strong); border-radius: 6px; font-size: 13px; color: var(--ink-1); width: 100%; box-sizing: border-box; }
        #edit-modal .em-check { flex-direction: row; align-items: center; gap: 7px; }
        #edit-modal .em-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }

/* TaxHub - grid compliance (freeze pane: header + kolom entitas) */
.comp-scroll { overflow: auto; max-height: 70vh; border: 1px solid var(--border); border-radius: 8px; }
.comp-table { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 11.5px; }
.comp-table th, .comp-table td { padding: 5px 8px; border-bottom: 1px solid var(--border); border-right: 1px solid var(--border); text-align: center; white-space: nowrap; background: var(--white); }
.comp-table thead th { position: sticky; background: var(--surface-2); z-index: 2; font-weight: 600; color: var(--ink-3); }
.comp-table thead tr:first-child th { top: 0; }
.comp-table thead tr:nth-child(2) th { top: 29px; }
.comp-table .comp-ent { position: sticky; left: 0; text-align: left; background: var(--white); z-index: 3; min-width: 150px; }
.comp-table thead .comp-ent { z-index: 6; background: var(--surface-2); }
.comp-table tbody tr:hover td { background: var(--surface); }
.comp-table tbody tr:hover .comp-ent { background: var(--surface); }
.comp-table input[type=text] { width: 88px; padding: 3px 5px; font-size: 11px; border: 1px solid var(--border-strong); border-radius: 4px; }

/* TaxHub - freeze pane tabel editor (scroll terpisah, heading & tombol diam) */
.table-editor-container:has(> .editor-scroll) { display: flex; flex-direction: column; overflow: hidden; }
.editor-scroll { flex: 1 1 auto; min-height: 0; overflow: auto; }
.table-editor-container:has(> .editor-scroll) > .btn { align-self: flex-start; }
.table-editor-container:has(> .editor-scroll) > .editor-scroll { margin-top: 0; }

/* TaxHub - Compliance data-grid (freeze pane header+kolom, sort, filter, status) */
.cgrid-scroll { overflow: auto; max-height: 70vh; border: 1px solid var(--border); border-radius: 8px; position: relative; }
.cgrid { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 11.5px; }
.cgrid th, .cgrid td { border-bottom: 1px solid var(--border); border-right: 1px solid var(--border); padding: 4px 7px; text-align: center; white-space: nowrap; }
.cgrid td { background: var(--white); }
.cgrid thead th { position: sticky; background: var(--surface-2); z-index: 3; color: var(--ink-3); font-weight: 600; }
.cgrid thead tr.cg-h1 th { top: 0; height: 30px; }
.cgrid thead tr.cg-h2 th { top: 30px; height: 26px; }
.cgrid thead tr.cg-hf th { top: 56px; height: 32px; background: var(--surface); }
.cgrid .cg-sort { cursor: pointer; user-select: none; }
.cgrid .cg-sort:hover { background: var(--surface-3); color: var(--ink); }
.cgrid .cg-ent { position: sticky; left: 0; text-align: left; background: var(--white); z-index: 2; min-width: 150px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.cgrid thead .cg-ent { z-index: 6; background: var(--surface-2); }
.cgrid thead tr.cg-hf .cg-ent { background: var(--surface); }
.cgrid tbody tr.cg-st-vf td { background: #f4fcf6; }
.cgrid tbody tr.cg-st-cp td { background: #f4f8ff; }
.cgrid tbody tr.cg-st-ip td { background: #fffdf4; }
.cgrid .cg-fil { width: 100%; box-sizing: border-box; font-size: 10.5px; padding: 2px 4px; border: 1px solid var(--border-strong); border-radius: 4px; background: var(--white); }
.cgrid td input[type=text] { width: 92px; padding: 3px 5px; font-size: 11px; border: 1px solid var(--border-strong); border-radius: 4px; }
.cg-badge { font-size: 10px; padding: 2px 8px; border-radius: 10px; font-weight: 600; white-space: nowrap; display: inline-block; }
.cgrid { user-select: none; -webkit-user-select: none; }
.cgrid input[type=text] { user-select: text; -webkit-user-select: text; }

/* TaxHub - Compliance tri-state cell (kosong / centang / nihil) */
.cg-cell { display: inline-block; min-width: 24px; height: 20px; line-height: 18px; text-align: center; border: 1px solid var(--border-strong); border-radius: 4px; cursor: pointer; font-size: 12px; color: var(--ink-3); background: var(--white); }
.cg-cell.cg-y { background: #dcfce7; border-color: #86efac; color: #166534; font-weight: 700; }
.cg-cell.cg-n { background: #f1f5f9; border-color: #cbd5e1; color: #94a3b8; }
.cg-cell.cg-dis { background: var(--surface-2); border-color: var(--border); color: var(--ink-4); cursor: not-allowed; }
.cg-cell:hover:not(.cg-dis) { border-color: var(--accent-2); }

/* TaxHub Online - mode hanya-baca (viewer) */
body.ro-mode .btn-save,
body.ro-mode .btn-add,
body.ro-mode .btn-danger,
body.ro-mode .row-edit-btn,
body.ro-mode [onclick*="importFromExcel"],
body.ro-mode [onclick*="resetData"],
body.ro-mode [onclick*="addCompMonth"],
body.ro-mode [onclick*="addCompEntities"],
body.ro-mode [onclick*="removeCompEntity"],
body.ro-mode [onclick*="verifyComp"],
body.ro-mode [onclick*="unverifyComp"] { display: none !important; }
body.ro-mode .cg-cell:not(.cg-dis) { pointer-events: none; }
body.ro-mode .editor-table input, body.ro-mode .editor-table select,
body.ro-mode .cgrid input, body.ro-mode #panel-content input,
body.ro-mode #panel-content select, body.ro-mode #panel-content .cg-cell { pointer-events: none; background: var(--surface-2); }
