/* Kerangka bersama semua halaman (header, menu akun, menu HP). Mandiri: dipakai juga di Rack SO
   yang tidak memuat /antd.css, jadi semua nilai warna ditulis lengkap di sini. */
.ant-header{position:sticky!important;top:0;z-index:100;height:56px!important;display:flex!important;align-items:center;justify-content:flex-start!important;gap:24px;padding:0 24px!important;background:#fff!important;border-bottom:1px solid #f0f0f0!important;box-shadow:0 1px 4px rgba(0,21,41,.06)!important;color:rgba(0,0,0,.88)!important;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif;font-size:14px!important;line-height:1.5714;box-sizing:border-box}
.ant-header *{box-sizing:border-box}
.ant-header .brand{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;gap:10px!important;font-weight:600!important;font-size:16px!important;letter-spacing:0!important;color:rgba(0,0,0,.88)!important;white-space:nowrap;text-decoration:none}
.ant-header .brand-mark{display:inline-grid;place-items:center;width:28px;height:28px;border-radius:6px;background:#1677ff;color:#fff;font-size:12px;font-weight:700;letter-spacing:.5px}
.ant-header .ant-menu-h{display:flex!important;align-items:stretch;height:100%;gap:4px;flex:1;min-width:0;margin:0;padding:0;overflow-x:auto;scrollbar-width:none}
.ant-header .ant-menu-h::-webkit-scrollbar{display:none}
.ant-header .ant-menu-h a{position:relative;display:flex;align-items:center;padding:0 16px;color:rgba(0,0,0,.88);white-space:nowrap;font-size:14px;text-decoration:none}
.ant-header .ant-menu-h a:hover{color:#1677ff}
.ant-header .ant-menu-h a[aria-current=page]{color:#1677ff}
.ant-header .ant-menu-h a[aria-current=page]::after{content:"";position:absolute;left:16px;right:16px;bottom:0;height:2px;background:#1677ff;border-radius:2px 2px 0 0}

/* Menu akun (P3) */
.ant-header #account{display:flex;align-items:center;margin-left:auto;white-space:nowrap;position:relative}
.shell-user{display:inline-flex!important;align-items:center;gap:8px;min-height:40px!important;padding:4px 8px!important;border:0!important;border-radius:6px!important;background:transparent!important;box-shadow:none!important;color:rgba(0,0,0,.88)!important;font:inherit;cursor:pointer}
.shell-user:hover,.shell-user[aria-expanded=true]{background:rgba(0,0,0,.04)!important}
.shell-avatar{display:inline-grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#e6f4ff;color:#1677ff;font-size:12px;font-weight:600}
.shell-name{display:flex;flex-direction:column;align-items:flex-start;line-height:1.3;text-align:left}
.shell-name small{color:rgba(0,0,0,.6);font-size:12px}
.shell-caret{font-size:10px;color:rgba(0,0,0,.45)}
.ant-header #account > .shell-dropdown{text-align:left;margin:0;line-height:1.5714}
.shell-dropdown{position:absolute;top:calc(100% + 6px);right:0;min-width:220px;padding:4px;background:#fff;border-radius:8px;box-shadow:0 6px 16px 0 rgba(0,0,0,.08),0 3px 6px -4px rgba(0,0,0,.12),0 9px 28px 8px rgba(0,0,0,.05);z-index:200}
.shell-dropdown .head{padding:8px 12px;border-bottom:1px solid #f0f0f0;margin-bottom:4px;line-height:1.4}
.shell-dropdown .head small{display:block;color:rgba(0,0,0,.6);font-size:12px}
.shell-dropdown button{display:flex!important;width:100%;justify-content:flex-start!important;min-height:36px!important;padding:5px 12px!important;border:0!important;border-radius:4px!important;background:none!important;box-shadow:none!important;color:rgba(0,0,0,.88)!important;font:inherit;text-align:left;cursor:pointer}
.shell-dropdown button:hover{background:rgba(0,0,0,.04)!important}
.shell-dropdown button.danger{color:#cf1322!important}

/* Dialog ganti kata sandi bersama */
.shell-dialog{position:fixed;inset:0;margin:auto!important;height:fit-content;max-height:calc(100% - 32px);background:#fff;width:min(440px,calc(100% - 32px));padding:0;border:0;border-radius:8px;box-shadow:0 6px 16px 0 rgba(0,0,0,.08),0 9px 28px 8px rgba(0,0,0,.05);font-family:inherit;color:rgba(0,0,0,.88)}
.shell-dialog::backdrop{background:rgba(0,0,0,.45)}
.shell-dialog form{padding:20px 24px}
.shell-dialog h2{margin:0 0 16px;font-size:16px;font-weight:600}
.shell-dialog label{display:block;margin:12px 0 6px;font-size:14px}
.shell-dialog input{width:100%;min-height:40px;padding:4px 11px;border:1px solid #d9d9d9;border-radius:6px;font:inherit;font-size:14px}
.shell-dialog .hint{color:rgba(0,0,0,.6);font-size:13px;margin:6px 0 0}
.shell-dialog .msg{margin-top:12px;font-size:14px;color:#cf1322}
.shell-dialog .msg.ok{color:#389e0d}
.shell-dialog .foot{display:flex;justify-content:flex-end;gap:8px;margin-top:20px}
.shell-dialog .foot button{min-height:36px;padding:4px 15px;border:1px solid #d9d9d9;border-radius:6px;background:#fff;font:inherit;cursor:pointer}
.shell-dialog .foot button.primary{background:#1677ff;border-color:#1677ff;color:#fff}

/* ---------- Navigasi samping (sidebar) ---------- */
body.op-sider-on{--op-w:220px;padding-left:var(--op-w)!important}
body.op-sider-on .ant-header .brand,body.op-sider-on .ant-header .ant-menu-h{display:none!important}
.op-sider{position:fixed;top:0;bottom:0;left:0;z-index:120;width:var(--op-w,220px);display:flex;flex-direction:column;background:#fff;border-right:1px solid #f0f0f0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif;font-size:14px;line-height:1.5714;color:rgba(0,0,0,.88);transition:width .2s,transform .2s;box-sizing:border-box}
.op-sider *{box-sizing:border-box}
.op-brand{display:flex;align-items:center;gap:10px;height:56px;flex:none;padding:0 18px;border-bottom:1px solid #f0f0f0;font-weight:600;font-size:16px;color:rgba(0,0,0,.88)!important;text-decoration:none;white-space:nowrap;overflow:hidden}
.op-brand .brand-mark{display:inline-grid;place-items:center;flex:none;width:28px;height:28px;border-radius:6px;background:#1677ff;color:#fff;font-size:12px;font-weight:700}
.op-nav{flex:1;overflow-y:auto;overflow-x:hidden;padding:8px 0;scrollbar-width:thin}
.op-group{padding:12px 24px 4px;font-size:12px;color:rgba(0,0,0,.6);white-space:nowrap}
.op-mod{position:relative}
.op-item{display:flex;align-items:center;gap:10px;min-height:40px;margin:2px 8px;padding:0 12px;border-radius:8px;color:rgba(0,0,0,.88)!important;text-decoration:none!important;white-space:nowrap;overflow:hidden}
.op-item:hover{background:rgba(0,0,0,.04)}
.op-item.on{background:#e6f4ff;color:#1677ff!important;font-weight:500}
.op-ico{width:18px;height:18px;flex:none}
.op-label{overflow:hidden;text-overflow:ellipsis}
.op-badge{margin-left:auto;min-width:20px;height:20px;padding:0 6px;border-radius:10px;background:#ff4d4f;color:#fff;font-size:12px;line-height:20px;text-align:center;font-weight:500}
.op-foot{flex:none;border-top:1px solid #f0f0f0;padding:6px 0;max-height:50vh;overflow-y:auto}
.op-backdrop{display:none}
/* Header tipis */
.op-toggle{display:inline-grid!important;place-items:center;flex:none;width:36px!important;height:36px!important;min-height:36px!important;padding:0!important;margin-left:-8px;border:0!important;border-radius:6px!important;background:transparent!important;box-shadow:none!important;color:rgba(0,0,0,.88)!important;cursor:pointer}
.op-toggle:hover{background:rgba(0,0,0,.04)!important}
.op-toggle svg{width:20px;height:20px}
@media (min-width:768px){.op-toggle{display:none!important}.ant-header{padding-left:24px!important}}
.op-crumb{display:flex;align-items:center;gap:8px;min-width:0;color:rgba(0,0,0,.6);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.op-crumb b{color:rgba(0,0,0,.88);font-weight:500;overflow:hidden;text-overflow:ellipsis}
.op-crumb .sep{color:rgba(0,0,0,.25)}
.ant-header{gap:12px!important;padding:0 16px 0 24px!important}
/* Tab di dalam halaman (Order, Pengaturan) — gaya sama dengan tab Tools/Warehouse/Rack SO */
.op-tabs{position:sticky;top:56px;z-index:50;background:#fff;border-bottom:1px solid #f0f0f0}
.op-tabs nav{display:flex;gap:32px;max-width:1440px;margin:0 auto;padding:0 24px;overflow-x:auto;scrollbar-width:none}
.op-tabs nav::-webkit-scrollbar{display:none}
.op-tabs a{position:relative;display:inline-flex;align-items:center;gap:8px;height:46px;color:rgba(0,0,0,.88)!important;text-decoration:none!important;white-space:nowrap;font-size:14px;transition:color .2s}
.op-tabs a:hover{color:#4096ff!important}
.op-tabs a[aria-current=page]{color:#1677ff!important}
.op-tabs a[aria-current=page]::after{content:"";position:absolute;left:0;right:0;bottom:0;height:2px;background:#1677ff}
.op-tabs .op-badge{margin-left:0}
/* Baris tab yang bisa digeser: bayangan di tepi menandakan masih ada tab lain */
.op-scroll-fade{-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 32px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 32px),transparent)}
.op-scroll-fade.at-end{-webkit-mask-image:none;mask-image:none}
/* Tabel data: scroll di dalam tabel (halaman tidak memanjang), judul kolom tetap terlihat saat digeser */
.table-wrap,.ant-table-wrap,#root .tablewrap{max-height:max(320px,calc(100vh - 200px));overflow:auto!important}
.table-wrap>table>thead th,.ant-table-wrap>table>thead th,#root .tablewrap>table>thead th{position:sticky!important;top:0;z-index:3}
#root .tablewrap>table>thead th{background:#fafafa!important}
/* Kotak upload file (pengganti tampilan "Choose File" bawaan browser) */
.op-file{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:96px;padding:16px;border:1px dashed #d9d9d9;border-radius:8px;background:#fafafa;color:rgba(0,0,0,.88);text-align:center;transition:border-color .2s,background .2s;cursor:pointer;width:100%;box-sizing:border-box}
.op-file:hover,.op-file.drag{border-color:#1677ff;background:#f0f7ff}
.op-file:focus-within{border-color:#1677ff;box-shadow:0 0 0 2px rgba(5,145,255,.1)}
.op-file>input[type=file]{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;margin:0;padding:0}
.op-file svg{width:28px;height:28px;color:#1677ff}
.op-file .op-file-title{font-size:14px}
.op-file .op-file-hint{font-size:12px;color:rgba(0,0,0,.6)}
.op-file .op-file-name{font-size:13px;font-weight:500;color:#1677ff;word-break:break-all}
.op-file.has-file{border-style:solid;border-color:#91caff;background:#f0f7ff}
/* Di dalam kotak upload yang sudah bergaris (Rack SO), tanpa garis ganda */
.upload .op-file{border:0;background:transparent;min-height:0;padding:8px 0}
.upload .op-file.has-file,.upload .op-file:hover{background:transparent}
/* Kolom tanggal/jam setinggi kolom lain (32px) */
:not(#root) input[type=date],:not(#root) input[type=time]{height:32px;min-height:32px;box-sizing:border-box;padding-top:0;padding-bottom:0}
/* HP: sidebar menjadi laci dari kiri */
@media (max-width:767px){
  body.op-sider-on{--op-w:0px;padding-left:0!important}
  .op-sider{width:264px;transform:translateX(-100%);box-shadow:none}
  body.op-drawer .op-sider{transform:none;box-shadow:6px 0 16px rgba(0,0,0,.12)}
  body.op-drawer .op-backdrop{display:block;position:fixed;inset:0;z-index:115;background:rgba(0,0,0,.45)}
  .op-item{min-height:44px}
  .ant-header{padding:0 8px 0 16px!important}
  .shell-name,.shell-caret{display:none}
  .op-tabs{position:static}.op-tabs nav{gap:24px;padding:0 16px}
  .table-wrap,.ant-table-wrap,#root .tablewrap{max-height:max(280px,calc(100vh - 150px))}
  .op-crumb span:first-child:not(:last-child),.op-crumb .sep{display:none}
  /* Tabel 4 kolom atau lebih: lebar minimum + geser ke samping, supaya kolom tidak terpotong/pecah */
  .table-wrap>table:has(>thead>tr>th:nth-child(4)),.ant-table-wrap>table:has(>thead>tr>th:nth-child(4)),#root .tablewrap>table:has(>thead>tr>th:nth-child(4)){min-width:600px}
  .table-wrap>table>thead th,.ant-table-wrap>table>thead th,#root .tablewrap>table>thead th{white-space:nowrap}
  .table-wrap .badge,.table-wrap .ant-tag,.ant-table-wrap .ant-tag,.ant-table-wrap .badge,.nw{white-space:nowrap}
}
/* Belum masuk: navigasi disembunyikan */
body.signed-out .op-sider,body.signed-out .op-toggle,body.signed-out .op-crumb,body.signed-out .op-backdrop{display:none!important}
body.signed-out.op-sider-on{padding-left:0!important}
body.signed-out .ant-header .brand{display:flex!important}
/* Ikon merek Paul Parker Operation (gambar), menggantikan kotak teks OP */
.brand-mark:has(img),.op-brand .brand-mark{background:transparent!important;padding:0!important;width:28px!important;height:28px!important}
.brand-mark img{display:block;width:28px;height:28px;border-radius:6px}
.op-brand .op-brand-name{display:flex;flex-direction:column;line-height:1.15;font-size:15px;font-weight:600;letter-spacing:.2px}
.op-brand .op-brand-name small{font-size:11px;font-weight:500;letter-spacing:1.6px;text-transform:uppercase;color:rgba(0,0,0,.55)}
