/* AMSA ERP v4.4.3 - Global Compact UI + Proportional Data View
   Fokus: mengecilkan tampilan semua modul agar data lebih banyak terlihat dalam 1 layar.
   Tidak mengubah database. */
:root{
  --sidebar-w:220px!important;
  --sidebar-w-v44:220px!important;
  --page-pad:14px!important;
  --ui-radius:16px!important;
  --compact-shadow:0 8px 22px rgba(15,23,42,.06);
}
html{font-size:14px!important;-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{font-size:13px!important;line-height:1.34!important;background:#f5f8fc!important;overflow-x:hidden}
body.v443-compact .main{margin-left:220px!important;max-width:calc(100vw - 220px)!important;padding:14px 16px!important}
body.v443-compact .sidebar{width:220px!important;padding:14px 14px!important}
body.v443-compact .brand{gap:9px!important;margin-bottom:12px!important;padding-bottom:10px!important}
body.v443-compact .brand-logo,body.v443-compact .brand .brand-logo{width:38px!important;height:38px!important;border-radius:12px!important;font-size:15px!important}
body.v443-compact .brand b{font-size:14.5px!important;line-height:1.1!important}
body.v443-compact .brand small{font-size:10px!important;margin-top:1px!important}
body.v443-compact .nav{gap:0!important;padding:4px!important}
body.v443-compact .nav-section{margin:10px 5px 4px!important;font-size:9.5px!important;letter-spacing:.10em!important}
body.v443-compact .nav button{min-height:34px!important;padding:7px 10px!important;border-radius:11px!important;font-size:12.2px!important;line-height:1.18!important;margin:1px 0!important;gap:7px!important}
body.v443-compact .nav button::before{font-size:13px!important;width:16px!important}
body.v443-compact .topbar{margin-bottom:10px!important;gap:10px!important;align-items:flex-start!important}
body.v443-compact .topbar h1{font-size:clamp(22px,2vw,29px)!important;line-height:1.08!important;letter-spacing:.005em!important;margin:0 0 4px!important}
body.v443-compact .topbar p{font-size:13px!important;line-height:1.32!important;max-width:620px!important;margin:0!important;color:#64748b!important}
body.v443-compact .topbar-actions{gap:8px!important;align-items:center!important}
body.v443-compact .topbar-actions .btn,body.v443-compact .topbar .btn{min-height:34px!important;padding:8px 12px!important;border-radius:12px!important;font-size:12.4px!important;line-height:1.15!important}
body.v443-compact .grid,body.v443-compact .dashboard-grid-v23,body.v443-compact .dashboard-grid-v42,body.v443-compact .dashboard-grid-v44{grid-template-columns:repeat(auto-fit,minmax(160px,1fr))!important;gap:9px!important;margin:10px 0!important}
body.v443-compact .card,body.v443-compact .dash-card-v42,body.v443-compact .v44-card,body.v443-compact .admin-card-v42{border-radius:15px!important;padding:12px 14px!important;min-height:auto!important;box-shadow:var(--compact-shadow)!important}
body.v443-compact .card small,body.v443-compact .v44-card small{font-size:10.5px!important;letter-spacing:.06em!important;line-height:1.15!important;margin-bottom:5px!important;color:#64748b!important}
body.v443-compact .card b,body.v443-compact .v44-card b{font-size:clamp(17px,1.6vw,23px)!important;line-height:1.05!important;margin-top:3px!important}
body.v443-compact .panel{border-radius:16px!important;margin-top:10px!important;box-shadow:var(--compact-shadow)!important;overflow:hidden}
body.v443-compact .panel-head{padding:10px 13px!important;gap:8px!important;min-height:auto!important}
body.v443-compact .panel-head h2{font-size:17px!important;line-height:1.15!important;margin:0!important}
body.v443-compact .panel-head p,body.v443-compact .panel-head small{font-size:12px!important;line-height:1.25!important}
body.v443-compact .btn{min-height:32px!important;padding:7px 11px!important;border-radius:11px!important;font-size:12.5px!important;line-height:1.15!important}
body.v443-compact .btn-sm{min-height:28px!important;padding:5px 8px!important;border-radius:9px!important;font-size:11.5px!important}
body.v443-compact .input,body.v443-compact select.input,body.v443-compact textarea.input{min-height:34px!important;padding:8px 10px!important;border-radius:11px!important;font-size:12.8px!important;line-height:1.25!important}
body.v443-compact textarea.input{min-height:70px!important}
body.v443-compact .field{margin:7px 0!important}
body.v443-compact .field label{font-size:11.5px!important;margin-bottom:4px!important;line-height:1.2!important;color:#475569!important}
body.v443-compact .form-grid{gap:9px!important}
body.v443-compact .module-toolbar-force,body.v443-compact .module-filter-compact,body.v443-compact .gas-toolbar-v24{padding:10px 12px!important;gap:8px!important}
body.v443-compact .module-toolbar-force .field,body.v443-compact .module-filter-compact .field{margin:0!important}
body.v443-compact .gas-result-info{font-size:12.5px!important;margin:8px 12px!important;color:#475569!important}
body.v443-compact .table-wrap{border-radius:0 0 14px 14px!important;overflow:auto!important;max-width:100%;-webkit-overflow-scrolling:touch}
body.v443-compact table{min-width:760px;border-collapse:separate;border-spacing:0;width:100%}
body.v443-compact th{font-size:11px!important;letter-spacing:.055em!important;padding:8px 10px!important;line-height:1.2!important;white-space:nowrap!important;color:#64748b!important}
body.v443-compact td{font-size:12.4px!important;padding:8px 10px!important;line-height:1.25!important;vertical-align:middle!important}
body.v443-compact td b{font-size:12.6px!important;line-height:1.15!important}
body.v443-compact td small{font-size:10.8px!important;line-height:1.2!important;color:#64748b!important}
body.v443-compact .v44-badge{font-size:10.8px!important;padding:3px 7px!important;border-radius:999px!important;line-height:1.2!important}
body.v443-compact .mobile-card,body.v443-compact .v44-mobile-card{padding:10px!important;border-radius:13px!important;margin:8px 0!important;box-shadow:var(--compact-shadow)!important}
body.v443-compact .mobile-card b,body.v443-compact .v44-mobile-card b{font-size:14px!important}
body.v443-compact .mobile-card small,body.v443-compact .v44-mobile-card small{font-size:11px!important}
body.v443-compact .modal-card,body.v443-compact .modal{border-radius:16px!important;max-width:min(920px,calc(100vw - 22px))!important}
body.v443-compact .modal-head{padding:12px 14px!important}
body.v443-compact .modal-head h2{font-size:18px!important;line-height:1.18!important}
body.v443-compact .modal-body{padding:12px 14px!important;max-height:calc(100vh - 130px)!important}
body.v443-compact .quick-actions-v42{gap:7px!important}
body.v443-compact .admin-grid-v42{grid-template-columns:repeat(auto-fit,minmax(200px,1fr))!important;gap:10px!important}
body.v443-compact .ops-tabs{gap:6px!important;margin:10px 0!important}
body.v443-compact .ops-pre{font-size:11.5px!important;padding:12px!important;line-height:1.38!important}

/* v4.4.2 Neraca Tabung - compact summary + history */
body.v443-compact.v442-ready .v442-summary-grid,body.v443-compact.v442-ready .balance-summary-grid{grid-template-columns:repeat(4,minmax(120px,1fr))!important;gap:9px!important;margin:10px 0 12px!important}
body.v443-compact.v442-ready .v442-card{border-radius:16px!important;padding:12px 14px!important;min-height:62px!important;box-shadow:var(--compact-shadow)!important}
body.v443-compact.v442-ready .v442-card small{font-size:10.8px!important;letter-spacing:.07em!important;margin-bottom:5px!important;line-height:1.15!important}
body.v443-compact.v442-ready .v442-card b{font-size:24px!important;line-height:1!important}
body.v443-compact.v442-ready .v442-toolbar{grid-template-columns:2fr 1fr 1fr 1fr auto!important;gap:8px!important;margin-top:8px!important}
body.v443-compact.v442-ready .v442-panel-grid{gap:12px!important;margin-top:12px!important}
body.v443-compact.v442-ready table.v442-table{font-size:12.5px!important;min-width:620px!important}
body.v443-compact.v442-ready table.v442-table th{font-size:10.8px!important;padding:9px 11px!important;line-height:1.15!important}
body.v443-compact.v442-ready table.v442-table td{font-size:12.4px!important;padding:9px 11px!important;line-height:1.25!important}
body.v443-compact.v442-ready .v442-party-name{min-width:210px!important;font-size:12.6px!important}
body.v443-compact.v442-ready .v442-count{border-radius:12px!important;padding:5px 10px!important;min-width:38px!important;font-size:12.5px!important}
body.v443-compact.v442-ready .v442-tabs{gap:7px!important;margin:10px 0!important}
body.v443-compact.v442-ready .v442-tabs button{padding:8px 13px!important;border-radius:13px!important;font-size:12.4px!important}
body.v443-compact.v442-ready .v442-note{font-size:12px!important;line-height:1.35!important}
body.v443-compact.v442-ready .v442-history-item{border-radius:12px!important;padding:9px 11px!important}
body.v443-compact.v442-ready .v442-history-item p{font-size:12px!important;line-height:1.32!important}

/* Modul spesifik yang biasanya terasa terlalu besar */
body.v443-compact .gas-summary-v24{gap:9px!important;margin:9px 0!important}
body.v443-compact .gas-toolbar-v24{grid-template-columns:repeat(auto-fit,minmax(140px,1fr))!important}
body.v443-compact .compact-neraca-v441 th,body.v443-compact .compact-neraca-v441 td{padding:7px 9px!important;font-size:12px!important}
body.v443-compact .compact-neraca-v441 td small{font-size:10.5px!important}
body.v443-compact .receipt-preview,body.v443-compact .print-preview,body.v443-compact .preview-sheet{transform-origin:top left;max-width:100%;overflow:auto}

@media(max-width:1180px){
  :root{--sidebar-w:205px!important;--sidebar-w-v44:205px!important;--page-pad:12px!important}
  body.v443-compact .main{margin-left:205px!important;max-width:calc(100vw - 205px)!important;padding:12px!important}
  body.v443-compact .sidebar{width:205px!important;padding:12px!important}
  body.v443-compact .nav button{font-size:11.8px!important;padding:7px 9px!important}
  body.v443-compact .topbar h1{font-size:24px!important}
  body.v443-compact.v442-ready .v442-summary-grid{grid-template-columns:repeat(4,minmax(105px,1fr))!important}
  body.v443-compact.v442-ready .v442-card b{font-size:22px!important}
}
@media(max-width:980px){
  body.v443-compact .main{margin-left:0!important;max-width:100vw!important;padding:10px 12px 24px!important}
  body.v443-compact .sidebar{width:min(78vw,280px)!important;transform:translateX(-110%);z-index:60}
  body.v443-compact .sidebar.show{transform:translateX(0)}
  body.v443-compact .mobile-header{display:flex!important;padding:7px 0!important;margin-bottom:9px!important}
  body.v443-compact .topbar{display:grid!important;grid-template-columns:1fr!important}
  body.v443-compact .topbar-actions{display:flex!important;flex-wrap:wrap!important;margin-top:6px!important}
  body.v443-compact .grid,body.v443-compact .dashboard-grid-v23,body.v443-compact .dashboard-grid-v42,body.v443-compact .dashboard-grid-v44{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.v443-compact.v442-ready .v442-summary-grid,body.v443-compact.v442-ready .balance-summary-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}
  body.v443-compact.v442-ready .v442-toolbar{grid-template-columns:1fr 1fr!important}
  body.v443-compact.v442-ready .v442-panel-grid{grid-template-columns:1fr!important}
}
@media(max-width:760px){
  body.v443-compact{font-size:12.5px!important}
  body.v443-compact .main{padding:8px 9px 22px!important}
  body.v443-compact .topbar h1{font-size:21px!important}
  body.v443-compact .topbar p{font-size:12.2px!important}
  body.v443-compact .topbar-actions .btn,body.v443-compact .topbar .btn{flex:1 1 130px!important}
  body.v443-compact .grid,body.v443-compact .dashboard-grid-v23,body.v443-compact .dashboard-grid-v42,body.v443-compact .dashboard-grid-v44{gap:7px!important}
  body.v443-compact .card,body.v443-compact .v44-card{padding:10px 11px!important;border-radius:13px!important}
  body.v443-compact .card b,body.v443-compact .v44-card b{font-size:18px!important}
  body.v443-compact.v442-ready .v442-summary-grid,body.v443-compact.v442-ready .balance-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important}
  body.v443-compact.v442-ready .v442-card{padding:10px 11px!important;min-height:56px!important;border-radius:13px!important}
  body.v443-compact.v442-ready .v442-card b{font-size:20px!important}
  body.v443-compact.v442-ready .v442-toolbar{grid-template-columns:1fr!important}
  body.v443-compact .panel-head{display:flex!important;align-items:center!important;justify-content:space-between!important;flex-wrap:wrap!important}
  body.v443-compact table{min-width:660px!important}
  body.v443-compact th,body.v443-compact td{padding:7px 8px!important;font-size:11.8px!important}
}
@media(max-width:480px){
  body.v443-compact .grid,body.v443-compact .dashboard-grid-v23,body.v443-compact .dashboard-grid-v42,body.v443-compact .dashboard-grid-v44{grid-template-columns:1fr!important}
  body.v443-compact.v442-ready .v442-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.v443-compact .topbar-actions{display:grid!important;grid-template-columns:1fr 1fr!important}
  body.v443-compact .topbar-actions .btn{width:100%!important;min-width:0!important}
  body.v443-compact .quick-actions-v42{grid-template-columns:1fr 1fr!important}
  body.v443-compact .modal-card,body.v443-compact .modal{max-width:calc(100vw - 12px)!important;margin:6px!important}
}
