.hidden { display: none !important; }
.narrow { max-width: 420px; }
.userbox { display: flex; gap: 12px; align-items: center; font-size: .9rem; color: var(--muted); }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.tabs button { border: 1px solid #d5dde5; background: #fff; padding: 8px 16px; border-radius: 999px; cursor: pointer; font: inherit; }
.tabs button.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.filter { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.filter input { padding: 6px 10px; border: 1px solid #d5dde5; border-radius: 8px; font: inherit; }
.grid-form { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); align-items: center; margin-bottom: 16px; }
.grid-form select { padding: 12px 14px; border: 1px solid #d5dde5; border-radius: 8px; font: inherit; background: #fff; }
.summary { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.summary div { background: var(--bg-alt); border-radius: 10px; padding: 10px 16px; }
.summary b { color: var(--primary); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; background: #fff; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #e6ebf0; white-space: nowrap; }
th { background: var(--bg-alt); }
td.num { text-align: right; }
.del { background: none; border: 0; color: #c0392b; cursor: pointer; font-size: 1rem; }
.thumb { width: 48px; height: 64px; object-fit: cover; border-radius: 6px; display: block; }
.inline { width: 130px; padding: 6px 8px; font: inherit; }
.otabs { padding-bottom: 12px; border-bottom: 2px solid #e6ebf0; }
.otabs button { font-weight: 700; font-size: 1rem; padding: 10px 20px; }
.readonly form.grid-form, .readonly .del { display: none !important; }
.readonly input.inline, .readonly select.inline { pointer-events: none; border-color: transparent; background: transparent; }
.chk { font: inherit; font-size: .85rem; padding: 6px 10px; border-radius: 8px; border: 1px solid #d5dde5; background: #fff; cursor: pointer; }
.chknote { width: 170px; padding: 6px 8px; font: inherit; }

/* Koreksi oleh accounting: tetap bisa diisi walau halaman read-only */
input.fix, select.fix { font: inherit; font-size: 13px; padding: 4px 6px; border: 1px solid #b5b5b2; border-radius: 6px; background: #fff; min-width: 0; max-width: 160px; }
input.fix.num { width: 110px; text-align: right; }
input.fix:focus, select.fix:focus { outline: 2px solid #f97316; outline-offset: 1px; }
