/* Tema netral mengikuti maxgroup-erp (halaman Permintaan Barang). Dimuat paling akhir. */

/* Sidebar: putih, menu tanpa kotak ikon, aktif = latar abu muda */
.sidebar{background:#fff;color:#24272c;border-right:1px solid #f0f2f4;box-shadow:none}
.logo-link{color:#24272c;border-bottom-color:#f0f2f4}
.logo-mark{box-shadow:none;border:1px solid #e8eaed}
.logo-copy small{color:#68717e}
.nav-group-title,.nav-group-admin .nav-group-title{color:#7d8591;font-size:11px;font-weight:600;letter-spacing:.1em}
.nav,.logout{color:#68717e}
.sidebar .nav{min-height:44px;gap:12px;padding:10px;border:0;border-radius:8px;font-size:13px;font-weight:600;color:#68717e}
.sidebar .nav .nav-icon,.sidebar .nav.active .nav-icon{width:18px;height:18px;background:transparent;box-shadow:none;border-radius:0}
.sidebar .nav .nav-icon svg{width:18px;height:18px}
.sidebar .nav:hover{transform:none;background:#f7f8f9;color:#24272c}
.sidebar .nav.active{background:#f1f3f5;border:0;color:#24272c;box-shadow:none}
.sidebar .nav.active:before{display:none}
.sidebar-footer{border-top-color:#f0f2f4}
.sidebar-footer>span{color:#7d8591}
.sidebar-footer .user-password-button{border-color:#e8eaed;background:#fff;color:#24272c}
.sidebar-footer .user-password-button:hover{background:#f7f8f9;color:#24272c}
.sidebar .logout{border-color:#e8eaed;color:#68717e}
.sidebar .logout:hover{background:#f7f8f9;color:#24272c}
.sidebar nav{scrollbar-color:#d9dde2 transparent}
.sidebar nav::-webkit-scrollbar-thumb{background:#d9dde2}

/* Header atas: putih, tipis, teks kecil abu */
.topbar{background:#fff;border-bottom:1px solid #f0f2f4;box-shadow:none}
.topbar-context .eyebrow{color:#68717e;font-size:11px;font-weight:400;letter-spacing:0;text-transform:none}
.topbar-context strong{color:#24272c;font-size:12px;font-weight:600}

/* Judul halaman dan tombol utama */
.page-head h1{color:#24272c;font-size:30px;font-weight:700;letter-spacing:-.045em}
.page-head .eyebrow{color:#7d8591;font-weight:600;letter-spacing:.1em}
.page-head .muted{color:#68717e}
button.primary,.primary{background:#24272c;border-color:#24272c;border-radius:10px;color:#fff;font-weight:600;box-shadow:0 1px 2px rgba(15,23,42,.25)}

/* Filter status: tab bergaris bawah dengan pill jumlah (qc-tabs ERP) */
:is(#project-status-cards,#sample-status-cards){display:flex;gap:4px;margin:0 0 16px;padding:0;overflow-x:auto;border-bottom:1px solid #e8eaed;scrollbar-width:none}
:is(#project-status-cards,#sample-status-cards)::-webkit-scrollbar{display:none}
:is(#project-status-cards,#sample-status-cards) .status-filter-card{flex:0 0 auto;min-width:0;min-height:44px;display:inline-flex;flex-direction:row;align-items:center;gap:6px;padding:0 11px;margin-bottom:-1px;border:0;border-bottom:1px solid transparent;border-radius:0;background:transparent;box-shadow:none;transform:none;isolation:auto;text-align:left;color:#6b7280}
:is(#project-status-cards,#sample-status-cards) .status-filter-card:after,:is(#project-status-cards,#sample-status-cards) .status-filter-card>i{display:none}
:is(#project-status-cards,#sample-status-cards) .status-filter-card>span{align-self:center;min-height:0;max-width:none;color:inherit;font-size:14px;font-weight:600;line-height:1.2;text-transform:none;letter-spacing:0;white-space:nowrap}
:is(#project-status-cards,#sample-status-cards) .status-filter-card>strong{align-self:center;grid-row:auto;grid-column:auto;padding:1px 7px;border-radius:999px;background:#eef0f3;color:#4a5260;font-size:12px;font-weight:700;line-height:1.2;letter-spacing:0}
:is(#project-status-cards,#sample-status-cards) .status-filter-card:hover{background:transparent;color:#24272c;box-shadow:none;transform:none}
:is(#project-status-cards,#sample-status-cards) .status-filter-card.active{border-bottom-color:#1f2430;background:transparent;color:#1f2430;box-shadow:none}
:is(#project-status-cards,#sample-status-cards) .status-filter-card.active>span{color:#1f2430}
:is(#project-status-cards,#sample-status-cards) .status-filter-card.active>strong{background:#1f2430;color:#fff}

/* Toolbar: search dan select ringkas */
.content .search-field,#projects-view .search-field{height:36px;border:1px solid #e8eaed;border-radius:8px;background:#fff}
.content .search-field svg,#projects-view .search-field svg{width:16px;height:16px;stroke:#838588}
.content .search-field input,#projects-view .search-field input{font-size:13.5px;color:#24272c;background:transparent}
.content [class*="toolbar"] select{min-height:36px;height:36px;border:1px solid #d9dde2;border-radius:8px;background-color:#fff;color:#24272c;font-size:13px;font-weight:600}

/* Tabel daftar */
#projects-view .project-list-panel,.content .project-list-panel{border:1px solid #e3e6ea;border-radius:14px;background:#fff;box-shadow:0 1px 3px rgba(36,39,44,.05)}
.project-table th,#projects-view .project-table th{padding:14px 8px;background:#fafbfc;color:#6b7280;font-size:11px;font-weight:600;text-transform:none;letter-spacing:.04em;border-bottom:1px solid #e3e6ea}
.project-table th:first-child,.project-table td:first-child{padding-left:16px}
.project-table td,#projects-view .project-table td{padding:13px 8px;border-top:0;border-bottom:1px solid #e8eaed;font-size:12.5px;color:#24272c}
.project-table tbody tr:hover,#projects-view .project-table tbody tr:hover{background:#fafbfc}

/* Pill status: bentuk badge ERP (warna status tetap) */
.status-pill{min-height:20px;padding:0 10px;border-radius:999px;font-size:12px;font-weight:500;line-height:20px;letter-spacing:0;text-transform:none}
.status-pill:before{display:none}

/* ===== Daftar project bergaya ERP ===== */
#project-status-filter,#project-sales-filter{display:none!important}
#projects-view .project-toolbar{display:flex;align-items:center;gap:10px;padding:14px 16px}
.pl-filter-wrap{position:relative;flex:none}
.pl-filter-button{display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:0 12px;border:1px solid #d9dde2;border-radius:8px;background:#fff;color:#24272c;font:inherit;font-size:13px;font-weight:600;cursor:pointer}
.pl-filter-button svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.pl-filter-button:hover,.pl-filter-button[aria-expanded="true"]{background:#f7f8f9}
.pl-filter-button.active{border-color:#24272c}
.pl-filter-count:empty{display:none}
.pl-filter-count{min-width:18px;padding:0 6px;border-radius:999px;background:#24272c;color:#fff;font-size:11px;line-height:18px;text-align:center}
.pl-menu{position:absolute;z-index:70;top:calc(100% + 6px);left:0;display:flex;align-items:flex-start;gap:6px}
.pl-menu[hidden]{display:none}
.pl-mlist,.pl-panel{background:#fff;border:1px solid #e3e6ea;border-radius:12px;box-shadow:0 12px 32px rgba(15,23,42,.12),0 2px 6px rgba(15,23,42,.06)}
.pl-mlist{width:220px;padding:6px}
.pl-mh{padding:8px 10px 6px;color:#24272c;font-size:12px;font-weight:700}
.pl-mitem{display:flex;align-items:center;gap:8px;width:100%;min-height:36px;padding:0 10px;border:0;border-radius:8px;background:transparent;color:#4a5260;font:inherit;font-size:13px;text-align:left;cursor:pointer}
.pl-mitem span{flex:1}
.pl-mitem em{min-width:18px;padding:0 6px;border-radius:999px;background:#24272c;color:#fff;font-size:11px;font-style:normal;line-height:18px;text-align:center}
.pl-mitem b{color:#9aa1ab;font-weight:400}
.pl-mitem:hover,.pl-mitem.on{background:#f1f3f5;color:#24272c}
.pl-panel{width:280px;display:flex;flex-direction:column}
.pl-ph{display:flex;align-items:baseline;gap:8px;padding:12px 12px 8px}
.pl-ph b{color:#24272c;font-size:13px}
.pl-ph span{color:#6b7280;font-size:12px}
.pl-back{display:none;border:0;background:none;font-size:18px;line-height:1;cursor:pointer;color:#4a5260}
.pl-pbody{padding:0 12px}
.pl-psearch{width:100%;min-height:34px;padding:6px 10px;border:1px solid #e8eaed;border-radius:8px;font:inherit;font-size:13px}
.pl-options{max-height:260px;overflow:auto;margin:8px -4px 0;padding:0 4px}
.pl-option{display:flex;align-items:center;gap:10px;min-height:36px;padding:0 6px;border-radius:6px;color:#24272c;font-size:13px;cursor:pointer}
.pl-option:hover{background:#f7f8f9}
.pl-option input{width:16px;height:16px;min-height:0;margin:0;accent-color:#24272c}
.pl-option span{flex:1;overflow-wrap:anywhere}
.pl-option small{color:#6b7280;font-size:12px}
.pl-none{margin:10px 6px;color:#6b7280;font-size:13px}
.pl-pfoot{display:flex;justify-content:flex-end;gap:8px;padding:12px;border-top:1px solid #f0f2f4;margin-top:8px}
.pl-filter-chips{display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:0 16px 12px}
.pl-filter-chip{display:inline-flex;align-items:center;gap:4px;min-height:28px;padding:0 4px 0 10px;border:1px solid #e3e6ea;border-radius:999px;background:#f7f8f9;color:#4a5260;font-size:12px}
.pl-filter-chip b{color:#24272c;font-weight:600}
.pl-filter-chip button{width:22px;height:22px;border:0;border-radius:50%;background:transparent;color:#6b7280;font-size:15px;line-height:1;cursor:pointer}
.pl-filter-chip button:hover{background:#e8eaed;color:#24272c}
.pl-filter-reset{border:0;background:none;color:#6b7280;font:inherit;font-size:12px;text-decoration:underline;cursor:pointer}
.pl-list-head{display:flex;justify-content:space-between;align-items:baseline;padding:4px 16px 10px;color:#68717e;font-size:12px}
.pl-list-head strong{color:#323437;font-size:13px;font-weight:700}

#projects-view .pl-table{min-width:960px;table-layout:fixed}
#projects-view .pl-table th:nth-child(1){width:24%}
#projects-view .pl-table th:nth-child(2){width:24%}
#projects-view .pl-table th:nth-child(3){width:13%}
#projects-view .pl-table th:nth-child(4){width:17%}
#projects-view .pl-table th:nth-child(5){width:12%}
#projects-view .pl-table th:nth-child(6){width:10%}
#projects-view .pl-table tbody tr:nth-child(even){background:#fff}
#projects-view .pl-table tbody tr:hover{background:#fafbfc}
.pl-th{display:inline-flex;align-items:center;gap:4px;padding:0;border:0;background:none;color:inherit;font:inherit;letter-spacing:inherit;cursor:pointer}
.pl-th i{color:#b0b6bf;font-style:normal;font-size:11px}
th[aria-sort="ascending"] .pl-th,th[aria-sort="descending"] .pl-th,th[aria-sort="ascending"] .pl-th i,th[aria-sort="descending"] .pl-th i{color:#24272c}
.pl-main .customer-name{display:block;color:#24272c;font-size:13.5px;font-weight:600;line-height:1.35;overflow-wrap:anywhere}
.pl-code{display:block;margin-top:3px;color:#6b7280;font-size:11.5px}
.pl-code .project-code{color:#6b7280;font:inherit;background:none;padding:0}
.pl-person{display:inline-flex;align-items:center;gap:8px;color:#24272c;font-size:12.5px}
.pl-av{width:24px;height:24px;flex:none;display:grid;place-items:center;border-radius:50%;background:#eef0f3;color:#4a5260;font-size:11px;font-weight:700}
.pl-stage{display:flex;flex-direction:column;gap:6px}
.pl-bar{display:flex;gap:3px}
.pl-bar i{width:18px;height:4px;border-radius:2px;background:#e5e7ea}
.pl-bar i.on{background:#7c9a88}
.pl-bar i.now{background:#24272c}
.pl-stage.stopped .pl-bar i.on{background:#d9a3a0}
.pl-stage-txt{color:#4a5260;font-size:12px;line-height:1.35}
#projects-view .pl-table .updated-date{display:block;color:#24272c;font-size:12.5px;font-weight:600}
#projects-view .pl-table .updated-time{display:block;margin-top:3px;color:#6b7280;font-size:11.5px}

/* Chip produk berwarna + tooltip */
#projects-view .project-products,.project-products{display:flex;flex-wrap:wrap;align-items:center;gap:5px;max-width:100%;min-width:0;border-radius:6px;cursor:default}
.project-products:focus-visible{outline:2px solid #24272c;outline-offset:2px}
#projects-view .project-product-chip,.project-product-chip{max-width:100%;padding:3px 9px;border-radius:999px;font-size:11.5px;font-weight:500;line-height:1.45;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#projects-view .project-product-more,.project-product-more{padding:3px 8px;border-radius:999px;background:#f1f3f5;color:#4a5260;font-size:11px;font-weight:600;white-space:nowrap}
#projects-view .project-product-chip.tone-chip-0,.project-product-chip.tone-chip-0{background:#edf4ff;color:#315e98}
#projects-view .project-product-chip.tone-chip-1,.project-product-chip.tone-chip-1{background:#eef5f0;color:#346347}
#projects-view .project-product-chip.tone-chip-2,.project-product-chip.tone-chip-2{background:#fdf3e4;color:#8a5a12}
#projects-view .project-product-chip.tone-chip-3,.project-product-chip.tone-chip-3{background:#f3effb;color:#5e4b8b}
#projects-view .project-product-chip.tone-chip-4,.project-product-chip.tone-chip-4{background:#fdeff0;color:#9a3d46}
#projects-view .project-product-chip.tone-chip-5,.project-product-chip.tone-chip-5{background:#e9f6f7;color:#2a6b72}
.product-tooltip{position:fixed;z-index:200;max-width:320px;padding:10px 12px;border:1px solid #e3e6ea;border-radius:10px;background:#fff;color:#24272c;box-shadow:0 12px 32px rgba(15,23,42,.14);font-size:12.5px;pointer-events:none}
.product-tooltip[hidden]{display:none}
.product-tooltip strong{display:block;margin-bottom:6px;color:#6b7280;font-size:11px;font-weight:600;letter-spacing:.04em;text-transform:uppercase}
.product-tooltip ul{margin:0;padding:0;list-style:none;display:grid;gap:5px}
.product-tooltip li{display:flex;align-items:center;gap:8px;line-height:1.35}
.product-tooltip li i{width:8px;height:8px;flex:none;border-radius:50%}
.product-tooltip li i.tone-chip-0{background:#5b8fd0}
.product-tooltip li i.tone-chip-1{background:#5f9a75}
.product-tooltip li i.tone-chip-2{background:#d39a3c}
.product-tooltip li i.tone-chip-3{background:#8d78c0}
.product-tooltip li i.tone-chip-4{background:#cf6b75}
.product-tooltip li i.tone-chip-5{background:#4fa3ac}

@media(max-width:760px){
  #projects-view .project-toolbar{flex-wrap:wrap}
  #projects-view .project-toolbar .search-field{flex:1 1 100%;order:-1}
  .pl-menu{position:fixed;left:12px;right:12px;top:auto;bottom:12px;flex-direction:column;align-items:stretch}
  .pl-mlist,.pl-panel{width:auto}
  .pl-menu.has-panel .pl-mlist{display:none}
  .pl-back{display:inline}
  #projects-view .pl-table{min-width:0;table-layout:auto}
  #projects-view .pl-table td:nth-child(1){grid-column:1;grid-row:1}
  #projects-view .pl-table td:nth-child(5){grid-column:2;grid-row:1;text-align:right}
  #projects-view .pl-table td:nth-child(2){grid-column:1/-1;grid-row:2;margin-top:0}
  #projects-view .pl-table td:nth-child(4){grid-column:1/-1;grid-row:3;display:block;border-bottom:0;padding-bottom:6px}
  #projects-view .pl-table td:nth-child(4):before{content:none}
  #projects-view .pl-table td:nth-child(3){grid-column:1;grid-row:4}
  #projects-view .pl-table td:nth-child(3):before{content:none}
  #projects-view .pl-table td:nth-child(6){grid-column:2;grid-row:4;text-align:right}
  .pl-list-head{display:none}
}

/* ===== Kerangka bergaya ERP: sidebar, header, judul ===== */
.sidebar{width:240px;padding:30px 18px 18px;border-right:1px solid #f0f2f4}
.logo-link.brand{display:block;margin:0 0 6px;padding:0 10px 0;border:0;color:#232528;text-decoration:none}
.brand-top{display:flex;align-items:center;gap:10px}
.brand-dots{display:block;width:36px;height:9px;flex:none;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 636 148'%3E%3Ccircle cx='74' cy='74' r='74' fill='%23f5605c'/%3E%3Ccircle cx='318.5' cy='74' r='74' fill='%23a8a8a8'/%3E%3Ccircle cx='563' cy='74' r='73' fill='%23fbbc51'/%3E%3C/svg%3E") center/contain no-repeat}
.brand-top b{color:#232528;font-size:22px;font-weight:600;letter-spacing:-1px;line-height:1.3}
.brand-top b span{color:#758b77}
.logo-link.brand small{display:block;margin-top:5px;color:#797b7e;font-size:12px;font-weight:500;letter-spacing:0}
.sidebar .nav-group-title{margin:28px 10px 10px;color:#7d8591;font-size:11px;font-weight:600;letter-spacing:.1em;text-transform:uppercase}
.sidebar .nav-group:first-child .nav-group-title{margin-top:30px}
.sidebar nav{display:flex;flex-direction:column;gap:3px}
.sidebar .nav-group{display:flex;flex-direction:column;gap:3px}
.sidebar .nav{display:flex;align-items:center;width:100%;text-align:left}
@media(min-width:761px){.app{padding-left:240px}}

.topbar{height:64px;padding:0 42px;gap:16px;background:#fff;border-bottom:1px solid #f0f2f4;color:#68717e;font-size:12px}
.topbar-context{display:block;flex:1 1 auto;min-width:0;overflow:hidden;color:#68717e;font-size:12px;font-weight:400;line-height:1.3;white-space:nowrap;text-overflow:ellipsis}
.topbar-context strong{display:inline}
.topbar-context strong{color:#24272c;font-size:12px;font-weight:600}
.topbar-actions{display:flex;align-items:center;gap:12px}
.notification-button{width:40px;height:40px;min-height:40px;display:flex;align-items:center;justify-content:center;border:1px solid #e8eaed;border-radius:50%;background:#fff;color:#555b64;box-shadow:none}
.notification-button:hover{background:#f3f5f8}
.notification-button svg{width:18px;height:18px}
.user-box{display:flex;align-items:center;gap:0;padding:0;border:0;background:none}
.user-chip{display:inline-flex;align-items:center;gap:10px;height:46px;padding:5px 12px 5px 5px;border:1px solid #e8eaed;border-radius:999px;background:#fff;color:#232528}
.user-chip .avatar{width:36px;height:36px;display:grid;place-items:center;border-radius:50%;background:#24272c;color:#fff;font-size:13px;font-weight:700;text-transform:uppercase}
.user-chip .user-identity{display:grid;gap:1px;line-height:1.2;text-align:left}
.user-chip .user-identity strong{color:#24272c;font-size:13px;font-weight:600}
.user-chip .user-identity small{color:#696b6e;font-size:12px;font-weight:600}
#clock{display:inline-flex;align-items:center;gap:7px;margin-left:14px;padding-left:14px;border-left:1px solid #f0f2f4;color:#818386;font-size:12px;font-variant-numeric:tabular-nums}
#clock::before{content:"";width:7px;height:7px;border-radius:50%;background:#3f9a63;box-shadow:0 0 0 3px #d7eddf}

@media(min-width:1001px){.content{padding:24px 42px 48px}}
.page-head{align-items:flex-end;gap:18px;margin:11px 0 29px}
.page-head .eyebrow{display:none}
.page-head h1{margin:0;color:#24272c;font-size:30px;font-weight:700;letter-spacing:-.045em;line-height:1.2}
.page-head .muted{margin:8px 0 0;color:#75777a;font-size:13px;line-height:1.6}
.page-head-actions{display:flex;gap:10px}
.page-head-actions button{min-height:40px;padding:8px 16px;border-radius:10px;font-size:14px;font-weight:600}
.page-head-actions .secondary{border:1px solid #e8eaed;background:#fff;color:#24272c;box-shadow:none}

/* Toolbar di luar panel, panel hanya berisi tabel (seperti ERP) */
#projects-view .project-list-panel{border:0;border-radius:0;background:transparent;box-shadow:none;overflow:visible}
#projects-view .project-toolbar{padding:0;margin:0 0 18px}
#projects-view .pl-filter-chips{padding:0 0 12px}
#projects-view .pl-list-head{padding:0 2px 10px}
#projects-view #project-table-wrap{border:1px solid #e3e6ea;border-radius:14px;background:#fff;box-shadow:0 1px 3px rgba(36,39,44,.05);overflow:auto}
#projects-view .pl-table th:first-child{border-top-left-radius:13px}
#projects-view .pl-table th:last-child{border-top-right-radius:13px}
#projects-view .project-toolbar .search-field{flex:1;max-width:none}

@media(max-width:760px){
  .sidebar{width:272px}
  .topbar{padding:0 16px;height:64px}
  .user-chip{height:42px;padding:3px}
  .user-chip .user-identity,#clock{display:none}
  .user-chip .avatar{width:34px;height:34px}
  .page-head h1{font-size:25px}
}

/* Toolbar tanpa latar; tooltip tahap seperti ERP */
#projects-view .project-toolbar{background:transparent;border:0;box-shadow:none}
.pl-stage{cursor:default;border-radius:6px}
.pl-stage:focus-visible{outline:2px solid #24272c;outline-offset:3px}
.product-tooltip .tip-code{display:block;margin:-3px 0 8px;color:#9aa1ab;font-size:11px;letter-spacing:.02em}
.product-tooltip .tip-steps{margin:0;padding:0;list-style:none;display:grid;gap:8px;min-width:200px}
.product-tooltip .tip-steps li{display:grid;grid-template-columns:18px 1fr auto;align-items:center;gap:8px;color:#9aa1ab}
.product-tooltip .tip-steps li i{width:18px;height:18px;display:grid;place-items:center;border:1px solid #d9dce0;border-radius:50%;font-size:10px;font-style:normal;line-height:1}
.product-tooltip .tip-steps li.done{color:#4a5260}
.product-tooltip .tip-steps li.done i{border-color:#cfe3d6;background:#eef5f0;color:#346347}
.product-tooltip .tip-steps li.now{color:#24272c;font-weight:600}
.product-tooltip .tip-steps li.now i{border-color:#24272c;background:#24272c;color:#fff;font-size:8px}
.product-tooltip .tip-steps li.stopped{color:#9a3d46;font-weight:600}
.product-tooltip .tip-steps li.stopped i{border-color:#f0c9cd;background:#fdeff0;color:#9a3d46}
.product-tooltip .tip-steps em{margin-left:4px;color:#6b7280;font-size:11px;font-style:normal;font-weight:400}
.product-tooltip .tip-steps small{color:#9aa1ab;font-size:11px;font-weight:400}
.product-tooltip .tip-note{margin:10px 0 0;padding-top:8px;border-top:1px solid #f0f2f4;color:#9a3d46;font-size:12px}

/* ===== Daftar sampel bergaya ERP ===== */
#sample-status-filter,#sample-pic-filter,#sample-sales-filter,#sample-priority-filter{display:none!important}
#samples-view .project-list-panel{border:0;border-radius:0;background:transparent;box-shadow:none;overflow:visible}
#samples-view .project-toolbar{display:flex;align-items:center;gap:10px;padding:0;margin:0 0 18px;background:transparent;border:0;box-shadow:none}
#samples-view .project-toolbar .search-field{flex:1;max-width:none}
#samples-view .pl-filter-chips{padding:0 0 12px}
#samples-view .pl-list-head{padding:0 2px 10px}
#samples-view #sample-table-wrap{border:1px solid #e3e6ea;border-radius:14px;background:#fff;box-shadow:0 1px 3px rgba(36,39,44,.05);overflow:auto}
#samples-view .sl-table{min-width:720px;table-layout:fixed}
#samples-view .sl-table th:nth-child(1){width:22%}
#samples-view .sl-table th:nth-child(2){width:30%}
#samples-view .sl-table th:nth-child(3){width:13%}
#samples-view .sl-table th:nth-child(4){width:13%}
#samples-view .sl-table th:nth-child(5){width:12%}
#samples-view .sl-table th:nth-child(6){width:10%}
#samples-view .sl-table tbody tr:nth-child(even){background:#fff}
#samples-view .sl-table tbody tr:hover{background:#fafbfc}
#samples-view .sl-table .project-name-cell{display:block}
#samples-view .sl-table .sample-handler{color:#4a5260;font-size:12.5px}
#samples-view .sl-table .updated-date{display:block;color:#24272c;font-size:12.5px;font-weight:600}
#samples-view .sl-table .updated-time{display:block;margin-top:3px;color:#6b7280;font-size:11.5px}
#samples-view .request-product-list{display:flex;flex-wrap:wrap;gap:5px}
#samples-view .request-product{display:inline-block;max-width:100%;padding:3px 9px;border-radius:999px;font-size:11.5px;font-weight:500;line-height:1.45;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#samples-view .request-product strong{font-weight:700}
#samples-view .request-product.priority-product{box-shadow:inset 0 0 0 1px currentColor}
#samples-view .request-product.tone-chip-0{background:#edf4ff;color:#315e98}
#samples-view .request-product.tone-chip-1{background:#eef5f0;color:#346347}
#samples-view .request-product.tone-chip-2{background:#fdf3e4;color:#8a5a12}
#samples-view .request-product.tone-chip-3{background:#f3effb;color:#5e4b8b}
#samples-view .request-product.tone-chip-4{background:#fdeff0;color:#9a3d46}
#samples-view .request-product.tone-chip-5{background:#e9f6f7;color:#2a6b72}

@media(max-width:760px){
  #samples-view .project-toolbar{flex-wrap:wrap}
  #samples-view .project-toolbar .search-field{flex:1 1 100%;order:-1}
  #samples-view .sl-table{min-width:0;table-layout:auto}
  #samples-view .sl-table td:nth-child(1){grid-column:1;grid-row:1;padding-bottom:0;border-bottom:0}
  #samples-view .sl-table td:nth-child(5){grid-column:2;grid-row:1;text-align:right;max-width:none}
  #samples-view .sl-table td:nth-child(2){grid-column:1/-1;grid-row:2}
  #samples-view .sl-table td:nth-child(3){grid-column:1;grid-row:3;align-self:center}
  #samples-view .sl-table td:nth-child(4){grid-column:1;grid-row:4;align-self:center}
  #samples-view .sl-table td:nth-child(6){grid-column:2;grid-row:3/5;text-align:right;align-self:end}
  #samples-view .pl-list-head{display:none}
}

/* Req Sample Custom: satu chip produk sebaris, kolom Ditangani disembunyikan */
#samples-view[data-sample-type="CUSTOM_NEW_DEVELOPMENT"] .request-product-list{flex-wrap:nowrap;align-items:center;min-width:0}
#samples-view[data-sample-type="CUSTOM_NEW_DEVELOPMENT"] .request-product{flex:0 1 auto;min-width:0}
#samples-view[data-sample-type="CUSTOM_NEW_DEVELOPMENT"] .request-product-list .project-product-more{flex:none}
#samples-view[data-sample-type="CUSTOM_NEW_DEVELOPMENT"] .request-product-list .request-product ~ .request-product{display:none}
#samples-view[data-sample-type="CUSTOM_NEW_DEVELOPMENT"] .sl-table :is(th,td):nth-child(4){display:none}
#samples-view[data-sample-type="CUSTOM_NEW_DEVELOPMENT"] .sl-table th:nth-child(1){width:26%}
#samples-view[data-sample-type="CUSTOM_NEW_DEVELOPMENT"] .sl-table th:nth-child(2){width:34%}
#samples-view[data-sample-type="CUSTOM_NEW_DEVELOPMENT"] .sl-table th:nth-child(3){width:16%}

/* ===== Skala dan font mengikuti ERP; header tanpa blur supaya scroll ringan ===== */
:root{font-family:Geist,system-ui,-apple-system,"Segoe UI",sans-serif;font-size:14px}
body{font-size:14px;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
button,input,select,textarea{font-family:inherit}
.topbar{position:sticky;height:64px;background:#fff;backdrop-filter:none;-webkit-backdrop-filter:none;box-shadow:none}
.content .page-head h1,:is(#projects-view,#samples-view,#forecast-view,#product-dictionary-view,#admin-users-view) .page-head h1{font-size:30px;font-weight:700;letter-spacing:-.045em;line-height:1.2}

/* ===== Badge status dan chip produk: kunci gaya ERP di atas aturan lama per halaman ===== */
:is(#projects-view,#samples-view,#project-detail-view,#sample-detail-view,#dashboard-view) .status-pill{display:inline-flex;align-items:center;min-height:22px;height:auto;padding:0 10px;border:0;border-radius:999px;font-size:12px;font-weight:500;line-height:22px;letter-spacing:0;text-transform:none;white-space:nowrap}
:is(#projects-view,#samples-view,#project-detail-view,#sample-detail-view,#dashboard-view) .status-pill::before{display:none;content:none}
#samples-view .sl-table .request-product-list .request-product,#projects-view .pl-table .project-products .project-product-chip{padding:2px 9px;border:0;border-radius:999px;font-size:12px;font-weight:500;line-height:1.5;box-shadow:none}
#samples-view .sl-table .request-product-list .request-product.priority-product{box-shadow:inset 0 0 0 1px currentColor}
#samples-view .sl-table .request-product-list .project-product-more,#projects-view .pl-table .project-product-more{padding:2px 8px;border:0;border-radius:999px;background:#f1f3f5;color:#4a5260;font-size:11.5px;font-weight:600}
:is(#samples-view .sl-table,#projects-view .pl-table) td{vertical-align:middle}
:is(#samples-view .sl-table,#projects-view .pl-table) .customer-name{font-size:13.5px;font-weight:600}
:is(#samples-view .sl-table,#projects-view .pl-table) .pl-code{font-size:12px;color:#6b7280}
:is(#samples-view .sl-table,#projects-view .pl-table) .sales-name{font-size:12.5px}

/* Lebar kolom agar badge status muat satu baris */
#samples-view .sl-table th:nth-child(1){width:22%}
#samples-view .sl-table th:nth-child(2){width:25%}
#samples-view .sl-table th:nth-child(3){width:14%}
#samples-view .sl-table th:nth-child(4){width:12%}
#samples-view .sl-table th:nth-child(5){width:15%}
#samples-view .sl-table th:nth-child(6){width:12%}
#samples-view[data-sample-type="CUSTOM_NEW_DEVELOPMENT"] .sl-table th:nth-child(1){width:25%}
#samples-view[data-sample-type="CUSTOM_NEW_DEVELOPMENT"] .sl-table th:nth-child(2){width:30%}
#samples-view[data-sample-type="CUSTOM_NEW_DEVELOPMENT"] .sl-table th:nth-child(3){width:16%}
#samples-view[data-sample-type="CUSTOM_NEW_DEVELOPMENT"] .sl-table th:nth-child(5){width:16%}
#samples-view[data-sample-type="CUSTOM_NEW_DEVELOPMENT"] .sl-table th:nth-child(6){width:13%}
#projects-view .pl-table th:nth-child(1){width:22%}
#projects-view .pl-table th:nth-child(2){width:22%}
#projects-view .pl-table th:nth-child(3){width:13%}
#projects-view .pl-table th:nth-child(4){width:17%}
#projects-view .pl-table th:nth-child(5){width:15%}
#projects-view .pl-table th:nth-child(6){width:11%}
:is(#samples-view .sl-table,#projects-view .pl-table) .status-pill{max-width:100%;overflow:hidden;text-overflow:ellipsis}
#samples-view .sl-table .request-product-list .request-product,#projects-view .pl-table .project-products .project-product-chip{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;overflow-wrap:normal;min-width:0}

/* Kolom Ditangani disembunyikan juga di Existing (selalu Marketing Support) */
#samples-view .sl-table :is(th,td):nth-child(4){display:none}
#samples-view .sl-table th:nth-child(1){width:25%}
#samples-view .sl-table th:nth-child(2){width:30%}
#samples-view .sl-table th:nth-child(3){width:16%}
#samples-view .sl-table th:nth-child(5){width:16%}
#samples-view .sl-table th:nth-child(6){width:13%}

/* Garis bawah tab status aktif: garis dalam agar tidak terpotong overflow */
:is(#project-status-cards,#sample-status-cards) .status-filter-card{margin-bottom:0;border-bottom:0}
:is(#project-status-cards,#sample-status-cards) .status-filter-card.active{border-bottom:0;box-shadow:inset 0 -2px 0 #1f2430}
:is(#project-status-cards,#sample-status-cards) .status-filter-card:not(.active):hover{box-shadow:inset 0 -2px 0 #d9dde2}

/* ===== Aktivitas Tim: avatar berwarna, label peran, grup online ===== */
.team-activity-panel{border:1px solid #e3e6ea;border-radius:14px;background:#fff;box-shadow:0 16px 40px rgba(15,23,42,.14),0 2px 6px rgba(15,23,42,.06)}
.team-panel-head{padding:16px 16px 12px;border-bottom:1px solid #f0f2f4}
.team-panel-head strong{color:#24272c;font-size:15px;font-weight:700}
.team-panel-head small{display:flex;align-items:center;gap:6px;color:#3f9a63;font-size:12px;font-weight:600}
.team-panel-head small::before{content:"";width:7px;height:7px;border-radius:50%;background:#3f9a63;box-shadow:0 0 0 3px #d7eddf}
#refresh-team-activity{width:34px;height:34px;border:1px solid #e8eaed;border-radius:50%;background:#fff;color:#4a5260}
.team-activity-list{padding:6px 8px 10px}
.team-group-title{display:flex;align-items:center;gap:7px;margin:10px 8px 6px;color:#7d8591;font-size:11px;font-weight:600;letter-spacing:.08em;text-transform:uppercase}
.team-group-title i{width:6px;height:6px;border-radius:50%;background:#c4c8ce}
.team-group-title i.on{background:#3f9a63}
.team-activity-user{display:flex;align-items:flex-start;gap:11px;padding:10px 8px;border:0;border-radius:10px;background:transparent}
.team-activity-user:hover{background:#f7f8f9}
.team-user-avatar{position:relative;width:36px;height:36px;flex:none;display:grid;place-items:center;border-radius:50%;font-size:14px;font-weight:700;text-transform:uppercase}
.team-user-avatar.tone-chip-0{background:#edf4ff;color:#315e98}
.team-user-avatar.tone-chip-1{background:#eef5f0;color:#346347}
.team-user-avatar.tone-chip-2{background:#fdf3e4;color:#8a5a12}
.team-user-avatar.tone-chip-3{background:#f3effb;color:#5e4b8b}
.team-user-avatar.tone-chip-4{background:#fdeff0;color:#9a3d46}
.team-user-avatar.tone-chip-5{background:#e9f6f7;color:#2a6b72}
.team-user-avatar i{position:absolute;right:-1px;bottom:-1px;width:11px;height:11px;border:2px solid #fff;border-radius:50%;background:#c4c8ce}
.team-activity-user.online .team-user-avatar i{background:#3f9a63}
.team-activity-user:not(.online) .team-user-avatar{filter:saturate(.55);opacity:.85}
.team-user-copy{display:grid;gap:3px;min-width:0}
.team-user-line{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.team-user-line strong{color:#24272c;font-size:13px;font-weight:600}
.team-role{padding:1px 8px;border-radius:999px;font-size:11px;font-weight:600;line-height:1.5}
.team-role-admin{background:#24272c;color:#fff}
.team-role-sales{background:#edf4ff;color:#315e98}
.team-role-rnd{background:#f3effb;color:#5e4b8b}
.team-role-marketing{background:#fdf3e4;color:#8a5a12}
.team-role-supply{background:#e9f6f7;color:#2a6b72}
.team-role-other{background:#f1f3f5;color:#4a5260}
.team-user-copy b{color:#4a5260;font-size:12.5px;font-weight:500;line-height:1.4;overflow-wrap:anywhere}
.team-user-copy em{color:#9aa1ab;font-size:11.5px;font-style:normal}
.team-activity-user.online .team-user-copy em{color:#3f9a63;font-weight:600}

/* ===== Announcement: aksen merah lembut, kartu rapi ===== */
.announcement-panel .team-panel-head small{color:#9a3d46}
.announcement-panel .team-panel-head small::before{background:#d6534f;box-shadow:0 0 0 3px #fbe1e1}
#refresh-announcements{width:34px;height:34px;border:1px solid #e8eaed;border-radius:50%;background:#fff;color:#4a5260}
.active-announcement-list{display:grid;gap:10px;padding:12px}
.active-announcement-card{position:relative;padding:12px 14px 12px 16px;border:1px solid #f2d3d5;border-radius:12px;background:#fffafa;box-shadow:none;overflow:hidden}
.active-announcement-card::before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:#d6534f}
.active-announcement-card.solved{border-color:#e3e6ea;background:#fff}
.active-announcement-card.solved::before{background:#7c9a88}
.active-announcement-card header{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.active-announcement-card h4{margin:0;color:#24272c;font-size:13.5px;font-weight:700;line-height:1.35}
.active-announcement-card p{margin:6px 0 4px;color:#4a5260;font-size:12.5px;line-height:1.5}
.active-announcement-card>small{color:#9aa1ab;font-size:11.5px}
.announcement-history-status{flex:none;padding:1px 9px;border-radius:999px;font-size:11px;font-weight:600;line-height:1.6}
.announcement-history-status.active{background:#fdeff0;color:#9a3d46}
.announcement-history-status.solved{background:#eef5f0;color:#346347}
.active-announcement-card footer{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-top:10px;padding-top:10px;border-top:1px solid #f0f2f4}
.active-announcement-card footer>span{color:#6b7280;font-size:11.5px}
.active-announcement-card footer div{display:flex;gap:6px}
.active-announcement-card footer button{min-height:28px;padding:0 10px;border:1px solid #e3e6ea;border-radius:8px;background:#fff;color:#24272c;font-size:12px;font-weight:600;box-shadow:none}
.active-announcement-card footer button:hover{background:#f7f8f9}
.active-announcement-card footer .announcement-solve{border-color:#cfe3d6;background:#eef5f0;color:#346347}
.active-announcement-card footer .announcement-delete{border-color:#f2d3d5;color:#9a3d46}
.announcement-panel .team-panel-actions{padding:12px;border-top:1px solid #f0f2f4}
.announcement-panel .team-panel-actions .primary{width:100%;min-height:40px;border-radius:10px;background:#c7494f;border-color:#c7494f;color:#fff;font-weight:600}
.announcement-panel .team-panel-actions .primary:hover{background:#b23f45}

/* ===== Tabel sampel: kolom Proses (7 kolom, Ditangani tersembunyi) ===== */
#samples-view .sl-table{min-width:820px}
#samples-view .sl-table th:nth-child(1),#samples-view[data-sample-type="CUSTOM_NEW_DEVELOPMENT"] .sl-table th:nth-child(1){width:21%}
#samples-view .sl-table th:nth-child(2),#samples-view[data-sample-type="CUSTOM_NEW_DEVELOPMENT"] .sl-table th:nth-child(2){width:23%}
#samples-view .sl-table th:nth-child(3),#samples-view[data-sample-type="CUSTOM_NEW_DEVELOPMENT"] .sl-table th:nth-child(3){width:13%}
#samples-view .sl-table th:nth-child(5){width:17%}
#samples-view .sl-table th:nth-child(6),#samples-view[data-sample-type="CUSTOM_NEW_DEVELOPMENT"] .sl-table th:nth-child(6){width:15%}
#samples-view .sl-table th:nth-child(7){width:11%}
@media(max-width:760px){
  #samples-view .sl-table{min-width:0}
  #samples-view .sl-table td:nth-child(5){grid-column:1/-1;grid-row:3;display:block;text-align:left}
  #samples-view .sl-table td:nth-child(6){grid-column:2;grid-row:1;text-align:right}
  #samples-view .sl-table td:nth-child(3){grid-column:1;grid-row:4}
  #samples-view .sl-table td:nth-child(7){grid-column:2;grid-row:4;text-align:right;align-self:center}
}

/* ===== Kolom Proses berwarna sesuai status; kolom Status disembunyikan di daftar sampel ===== */
.pl-stage{--stage:#9aa1ab;--stage-soft:#e5e7ea;--stage-ink:#4a5260}
.pl-stage.stage-waiting-approval{--stage:#d39a3c;--stage-soft:#f6e6c8;--stage-ink:#8a5a12}
.pl-stage.stage-preparing{--stage:#4f86c6;--stage-soft:#d5e3f5;--stage-ink:#315e98}
.pl-stage.stage-ready{--stage:#3f9a63;--stage-soft:#d3ead9;--stage-ink:#2f6b47}
.pl-stage.stage-completed{--stage:#6d8b78;--stage-soft:#dbe5de;--stage-ink:#465a4d}
.pl-stage.stage-rejected,.pl-stage.stage-cancelled{--stage:#cf6b75;--stage-soft:#f3d4d7;--stage-ink:#9a3d46}
.pl-stage.stage-draft,.pl-stage.stage-not-requested{--stage:#9aa1ab;--stage-soft:#e5e7ea;--stage-ink:#5f6670}
.pl-stage .pl-bar i{background:#eceef0}
.pl-stage .pl-bar i.on{background:var(--stage-soft)}
.pl-stage .pl-bar i.now{background:var(--stage)}
.pl-stage.stage-completed .pl-bar i.on{background:var(--stage)}
.pl-stage.stopped .pl-bar i.on{background:var(--stage-soft)}
.pl-stage.stopped .pl-bar i.now{background:var(--stage)}
.pl-stage .pl-stage-txt{display:inline-flex;align-items:center;gap:6px;color:var(--stage-ink);font-size:12px;font-weight:600}
.pl-stage .pl-stage-txt::before{content:"";width:6px;height:6px;flex:none;border-radius:50%;background:var(--stage)}

#samples-view .sl-table :is(th,td):nth-child(6){display:none}
#samples-view .sl-table th:nth-child(1),#samples-view[data-sample-type="CUSTOM_NEW_DEVELOPMENT"] .sl-table th:nth-child(1){width:24%}
#samples-view .sl-table th:nth-child(2),#samples-view[data-sample-type="CUSTOM_NEW_DEVELOPMENT"] .sl-table th:nth-child(2){width:27%}
#samples-view .sl-table th:nth-child(3),#samples-view[data-sample-type="CUSTOM_NEW_DEVELOPMENT"] .sl-table th:nth-child(3){width:15%}
#samples-view .sl-table th:nth-child(5){width:22%}
#samples-view .sl-table th:nth-child(7){width:12%}
@media(max-width:760px){
  #samples-view .sl-table td:nth-child(5){grid-column:1/-1;grid-row:3}
}

/* ===== Toolbar: Filter di kiri, search ringkas di kanan, tinggi sama 36px ===== */
:is(#projects-view,#samples-view) .project-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px}
:is(#projects-view,#samples-view) .project-toolbar .pl-filter-wrap{order:0;margin-right:auto}
:is(#projects-view,#samples-view) .project-toolbar .search-field{order:1;flex:0 1 320px;width:320px;max-width:100%;height:36px;min-height:36px;padding:0 10px;border:1px solid #e8eaed;border-radius:8px;background:#fff;box-shadow:none}
:is(#projects-view,#samples-view) .project-toolbar .search-field input{height:100%;min-height:0;padding:0;font-size:13px}
:is(#projects-view,#samples-view) .project-toolbar .search-field svg{width:15px;height:15px}
:is(#projects-view,#samples-view) .project-toolbar .pl-filter-button{height:36px;min-height:36px}
@media(max-width:760px){
  :is(#projects-view,#samples-view) .project-toolbar{flex-wrap:nowrap}
  :is(#projects-view,#samples-view) .project-toolbar .search-field{order:1;flex:1 1 auto;width:auto}
}

/* ===== Tabel sampel: kolom Diajukan (8 kolom; Ditangani dan Status tersembunyi) ===== */
#samples-view .sl-table{min-width:880px}
:is(#samples-view,#samples-view[data-sample-type]) .sl-table th:nth-child(1){width:22%}
:is(#samples-view,#samples-view[data-sample-type]) .sl-table th:nth-child(2){width:25%}
:is(#samples-view,#samples-view[data-sample-type]) .sl-table th:nth-child(3){width:13%}
:is(#samples-view,#samples-view[data-sample-type]) .sl-table th:nth-child(5){width:18%}
:is(#samples-view,#samples-view[data-sample-type]) .sl-table th:nth-child(7){width:11%}
:is(#samples-view,#samples-view[data-sample-type]) .sl-table th:nth-child(8){width:11%}
#samples-view .sl-table .created-date{display:block;font-weight:600;font-size:12.5px;color:#24272c}
@media(max-width:760px){
  #samples-view .sl-table{min-width:0}
  #samples-view .sl-table td:nth-child(7){grid-column:1/-1;grid-row:5;text-align:left;align-self:start}
  #samples-view .sl-table td:nth-child(8){grid-column:2;grid-row:4;text-align:right;align-self:center}
}

/* ===== Filter tanggal: kalender rentang seperti ERP ===== */
#date-pop{position:fixed;z-index:90;width:min(304px,calc(100vw - 24px));padding:14px;border:1px solid #e8eaed;border-radius:18px;background:#fff;box-shadow:0 18px 50px rgba(30,35,30,.2);font-size:14px;color:#232528}
#date-pop[hidden]{display:none}
#date-pop button{font:inherit;box-shadow:none;letter-spacing:normal;text-transform:none}
#date-pop .dp-head{display:flex;align-items:center;gap:2px;margin-bottom:10px}
#date-pop .dp-head strong{flex:1;text-align:center;font-size:15px}
#date-pop .dp-nav{min-height:0;width:32px;height:32px;padding:0;border:0;border-radius:50%;background:transparent;color:#4b4d50;font-size:18px;line-height:1}
#date-pop .dp-nav:hover{background:#eff1f4}
#date-pop .dp-week,#date-pop .dp-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:2px;text-align:center}
#date-pop .dp-week span{padding:4px 0 6px;color:#898b8e;font-size:12px;font-weight:700;letter-spacing:.04em;text-transform:uppercase}
#date-pop .dp-day{min-height:0;width:100%;height:auto;aspect-ratio:1;padding:0;border:1px solid transparent;border-radius:50%;background:transparent;color:#232528;font-size:13px;font-weight:500}
#date-pop .dp-day:hover{background:#eff1f4}
#date-pop .dp-day.out{color:#b3b5b8}
#date-pop .dp-day.today{border-color:#3c6656;color:#2d5546;font-weight:700}
#date-pop .dp-day.inr{background:#e9eefb;border-radius:0;color:#24272c}
#date-pop .dp-day.sel{background:#24272c;border-color:#24272c;color:#fff;font-weight:700}
#date-pop .dp-hint{margin-top:10px;text-align:center;font-size:12px;color:#6b7280}
#date-pop .dp-foot{display:flex;flex-wrap:wrap;justify-content:flex-start;gap:4px 10px;margin-top:6px;padding-top:8px;border-top:1px solid #ebedf0}
#date-pop .dp-link{min-height:0;height:auto;padding:6px 8px;border:0;background:transparent;color:#2d5546;font-size:12px;font-weight:700}
#date-pop .dp-link:hover{text-decoration:underline;background:transparent}
.pl-menu .pl-range1,.pl-range1{display:grid}
:is(#projects-view,#samples-view) .pl-drange{width:100%;height:38px;min-height:38px;border:1px solid #e8eaed;border-radius:8px;padding:0 34px 0 11px;font:inherit;font-size:13px;color:#24272c;cursor:pointer;box-shadow:none;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E") no-repeat right 11px center}
:is(#projects-view,#samples-view) .pl-drange::placeholder{color:#6b7280}
:is(#projects-view,#samples-view) .pl-rhint{margin:6px 0 0;font-size:12px;color:#7a808c;line-height:1.45}

/* ===== Detail project/request sebagai pop-up hampir layar penuh (seperti pop-up SPK di ERP) ===== */
.content:has(>.routed-detail-view:not(.hidden)){max-width:none}
.content:has(>.routed-detail-view:not(.hidden))>section:not(.routed-detail-view):not(.hidden){display:block}
body.detail-pop-open{overflow:hidden}
.detail-backdrop{position:fixed;inset:0;z-index:44;background:rgba(24,28,34,.45)}
.detail-backdrop.hidden{display:none}
.content>.routed-detail-view:not(.hidden){position:fixed;z-index:45;top:3vh;right:0;left:0;width:min(1440px,calc(100vw - 48px));height:94vh;max-height:94vh;margin:0 auto;padding:22px 26px 28px;overflow:auto;overscroll-behavior:contain;border:0;border-radius:16px;background:#fff;box-shadow:0 24px 70px rgba(20,24,30,.35);--product-note-top:0px}
.content>.routed-detail-view .detail-pop-x{position:sticky;top:0;z-index:5;display:grid;place-items:center;width:34px;height:34px;min-height:34px;margin:0 0 -34px auto;padding:0;border:0;border-radius:50%;background:#f1f3f5;color:#24272c;font-size:20px;font-weight:400;line-height:1;cursor:pointer}
.content>.routed-detail-view .detail-pop-x:hover{background:#e6e8eb}
.content>.routed-detail-view .detail-page-head{padding-right:48px}
.content>.routed-detail-view .routed-activity-panel{top:44px;max-height:calc(94vh - 72px)}
@media(max-width:760px){
  .content>.routed-detail-view:not(.hidden){top:0;left:0;width:100vw;height:100dvh;max-height:100dvh;padding:14px 14px calc(24px + env(safe-area-inset-bottom));border-radius:0}
  .content>.routed-detail-view .routed-activity-panel{position:static;max-height:none}
}

/* ===== Aktivitas: chat menonjol, update proses jadi baris abu-abu ringkas (gaya chat ERP) ===== */
.act-filter{display:flex;width:max-content;max-width:100%;gap:2px;margin:12px 0 2px;padding:3px;border-radius:9px;background:#f1f3f5}
.act-filter button{display:inline-flex;align-items:center;gap:6px;min-height:0;height:28px;padding:0 11px;border:0;border-radius:7px;background:transparent;box-shadow:none;color:#6b7280;font:inherit;font-size:12.5px;font-weight:600;cursor:pointer}
.act-filter button:hover{color:#1f2430}
.act-filter button.on{background:#fff;color:#1f2430;box-shadow:0 1px 2px rgba(20,24,30,.12)}
.act-filter em{font-style:normal;font-size:11px;font-weight:600;color:#8a919c}
.act-filter em:empty{display:none}
.act-filter button.on em{color:#4b5260}
.timeline-panel .timeline{display:block}
.timeline-panel .timeline .timeline-item.act-chat,.timeline-panel .timeline .timeline-item.act-sys{display:grid;grid-template-columns:30px minmax(0,1fr);gap:0 10px;margin:0;padding:12px 0;border:0;border-radius:0;background:transparent;box-shadow:none}
.timeline-panel .timeline .timeline-item.act-chat:before,.timeline-panel .timeline .timeline-item.act-sys:before{content:none;display:none}
.timeline-panel .timeline .act-chat+.act-chat{border-top:1px solid #f0f2f4}
.timeline-panel .timeline .timeline-item.act-sys{padding:7px 0}
.timeline-panel .act-body{min-width:0}
.timeline-panel .act-av{width:30px;height:30px;display:grid;place-items:center;border-radius:50%;background:#e8ebef;color:#24272c;font-size:12px;font-weight:700}
.timeline-panel .act-head{display:flex;align-items:baseline;gap:8px;margin:0 0 2px}
.timeline-panel .act-head strong{font-size:13.5px;font-weight:600;color:#1f2430}
.timeline-panel .act-head time{font-size:11.5px;color:#7d8591}
.timeline-panel .act-head .timeline-delete{margin-left:auto;min-height:0;height:auto;padding:0;border:0;background:transparent;color:#a0a6af;font-size:11.5px;font-weight:500;cursor:pointer}
.timeline-panel .act-head .timeline-delete:hover{color:#c7494f}
.timeline-panel .timeline .act-msg{margin:0;color:#24272c;font-size:14px;font-weight:400;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere}
.timeline-panel .act-dot{justify-self:center;width:7px;height:7px;margin-top:6px;border-radius:50%;background:#c3c8cf}
.timeline-panel .timeline .act-text{display:-webkit-box;margin:0;overflow:hidden;color:#5f6670;font-size:12.5px;font-weight:400;line-height:1.5;white-space:pre-line;overflow-wrap:anywhere;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.timeline-panel .timeline .act-text{cursor:pointer}
.timeline-panel .timeline .act-text:hover{color:#3d434c}
.timeline-panel .timeline .act-text.open{display:block;-webkit-line-clamp:unset;cursor:pointer}
.timeline-panel .act-meta{margin-top:2px;color:#9aa1ab;font-size:11px}
.timeline-panel .act-body .timeline-attachment,.timeline-panel .act-body .timeline-image{margin-top:6px}
.timeline-panel .act-sys .timeline-attachment{font-size:12px}
.timeline[data-filter="chat"] .act-sys,.timeline[data-filter="system"] .act-chat{display:none!important}
.timeline .act-filter-empty{padding:14px 0;color:#8a919c;font-size:12.5px}

/* ===== HP: toolbar satu baris dan kartu daftar yang rapi (Project Sales dan Req Sample) ===== */
@media(max-width:760px){
  html:has(#projects-view) body :is(#projects-view,#samples-view) .project-toolbar.project-toolbar{flex-direction:row;flex-wrap:nowrap;align-items:center;justify-content:flex-start;gap:8px}
  body :is(#projects-view,#samples-view) .project-toolbar.project-toolbar .pl-filter-wrap{flex:none;margin:0}
  body :is(#projects-view,#samples-view) .project-toolbar.project-toolbar .search-field{flex:1 1 auto;width:auto;min-width:0;max-width:none;margin:0}
  :is(#projects-view .pl-table.pl-table,#samples-view .sl-table.sl-table){display:block;width:100%;min-width:0;border:0;background:transparent}
  html:has(#projects-view) body :is(#project-table-wrap,#sample-table-wrap).table-wrap{overflow:visible;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}
  :is(#projects-view .pl-table.pl-table,#samples-view .sl-table.sl-table) thead{display:none}
  :is(#projects-view .pl-table.pl-table,#samples-view .sl-table.sl-table) tbody{display:grid;gap:10px}
  :is(#projects-view .pl-table.pl-table,#samples-view .sl-table.sl-table) tbody tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px 12px;align-items:center;margin:0;padding:14px 16px;border:1px solid #e8eaed;border-radius:12px;background:#fff;box-shadow:none}
  :is(#projects-view .pl-table.pl-table,#samples-view .sl-table.sl-table) tbody tr td:nth-child(n){min-width:0;width:auto;max-width:none;margin:0;padding:0;border:0;background:transparent;text-align:left}
  :is(#projects-view .pl-table.pl-table,#samples-view .sl-table.sl-table) tbody tr td:nth-child(n)::before{content:none;display:none}
  :is(#projects-view .pl-table.pl-table,#samples-view .sl-table.sl-table) tbody tr td:nth-child(n) .pl-stage{display:block}
  #projects-view .pl-table.pl-table tbody tr td:nth-child(1){display:block;grid-column:1;grid-row:1}
  #projects-view .pl-table.pl-table tbody tr td:nth-child(5){display:block;grid-column:2;grid-row:1;justify-self:end;align-self:start}
  #projects-view .pl-table.pl-table tbody tr td:nth-child(2){display:block;grid-column:1/-1;grid-row:2}
  #projects-view .pl-table.pl-table tbody tr td:nth-child(4){display:block;grid-column:1/-1;grid-row:3}
  #projects-view .pl-table.pl-table tbody tr td:nth-child(3){display:block;grid-column:1;grid-row:4;align-self:end}
  #projects-view .pl-table.pl-table tbody tr td:nth-child(6){display:block;grid-column:2;grid-row:4;text-align:right}
  #samples-view .sl-table.sl-table tbody tr td:nth-child(1){display:block;grid-column:1;grid-row:1}
  #samples-view .sl-table.sl-table tbody tr td:nth-child(3){display:block;grid-column:2;grid-row:1;justify-self:end;align-self:start}
  #samples-view .sl-table.sl-table tbody tr td:nth-child(2){display:block;grid-column:1/-1;grid-row:2}
  #samples-view .sl-table.sl-table tbody tr td:nth-child(5){display:block;grid-column:1/-1;grid-row:3}
  #samples-view .sl-table.sl-table tbody tr td:nth-child(7){display:block;grid-column:1;grid-row:4}
  #samples-view .sl-table.sl-table tbody tr td:nth-child(8){display:block;grid-column:2;grid-row:4;text-align:right}
  :is(#projects-view .pl-table.pl-table tbody tr td:nth-child(6),#samples-view .sl-table.sl-table tbody tr td:nth-child(7),#samples-view .sl-table.sl-table tbody tr td:nth-child(8))::before{content:attr(data-label);display:block;margin:0 0 2px;color:#8a919c;font-size:11px;font-weight:500}
  :is(#projects-view .pl-table.pl-table,#samples-view .sl-table.sl-table) tbody tr td :is(.updated-date,.created-date){display:inline;font-size:12.5px;font-weight:600;color:#24272c;white-space:nowrap}
  :is(#projects-view .pl-table.pl-table,#samples-view .sl-table.sl-table) tbody tr td .updated-time{display:inline;margin-left:5px;font-size:11.5px;color:#7d8591;white-space:nowrap}
  :is(#projects-view .pl-table.pl-table,#samples-view .sl-table.sl-table) tbody tr td .customer-name{font-size:15px}
  :is(#projects-view .pl-table.pl-table,#samples-view .sl-table.sl-table) tbody tr td .pl-code{display:block;margin-top:2px;font-size:12px;white-space:normal}
  :is(#projects-view .pl-table.pl-table,#samples-view .sl-table.sl-table) tbody tr td .project-products,:is(#projects-view .pl-table.pl-table,#samples-view .sl-table.sl-table) tbody tr td .request-product-list{display:flex;flex-wrap:wrap;gap:6px}
  :is(#projects-view .pl-table.pl-table,#samples-view .sl-table.sl-table) tbody tr td .status-pill{max-width:46vw}
}

/* ===== Aktivitas lebih lega: pemisah hari, update 1 baris, grup update, chat bergelembung ===== */
.timeline-panel .act-day{display:flex;align-items:center;gap:10px;margin:16px 0 6px;color:#8a919c;font-size:11.5px;font-weight:600}
.timeline-panel .act-day::before,.timeline-panel .act-day::after{content:"";flex:1;height:1px;background:#eceef1}
.timeline-panel .timeline .timeline-item.act-sys{padding:4px 0}
.timeline-panel .act-dot{width:6px;height:6px;margin-top:6px}
.timeline-panel .act-line{display:flex;align-items:baseline;gap:10px;cursor:pointer}
.timeline-panel .timeline .act-text,.timeline-panel .timeline .act-text.open{display:block;flex:1;min-width:0;overflow:hidden;color:#6b7280;font-size:12.5px;line-height:1.5;white-space:nowrap;text-overflow:ellipsis;-webkit-line-clamp:unset;cursor:pointer}
.timeline-panel .act-line:hover .act-text{color:#3d434c}
.timeline-panel .act-line time,.timeline-panel .act-group summary time{flex:none;color:#9aa1ab;font-size:11px;font-weight:500}
.timeline-panel .act-sys .act-meta{display:none}
.timeline-panel .act-sys.open .act-text{overflow:visible;color:#3d434c;white-space:pre-line}
.timeline-panel .act-sys.open .act-meta{display:block}
.timeline-panel .act-group summary{display:grid;grid-template-columns:30px minmax(0,1fr) auto;align-items:center;gap:0 10px;padding:4px 0;list-style:none;color:#6b7280;font-size:12.5px;font-weight:600;cursor:pointer}
.timeline-panel .act-group summary::-webkit-details-marker{display:none}
.timeline-panel .act-group summary .act-dot{margin:0;justify-self:center}
.timeline-panel .act-group .act-group-label::after{content:" \25BE";color:#9aa1ab}
.timeline-panel .act-group[open] .act-group-label::after{content:" \25B4"}
.timeline-panel .act-group summary:hover{color:#1f2430}
.timeline-panel .timeline .timeline-item.act-chat{padding:10px 0}
.timeline-panel .timeline .act-chat+.act-chat{border-top:0}
.timeline-panel .act-head{margin:0 0 4px}
.timeline-panel .act-head time{font-size:11px}
.timeline-panel .act-bubble{display:inline-block;max-width:100%;padding:8px 12px;border-radius:4px 12px 12px 12px;background:#f3f4f6}
.timeline-panel .timeline .act-bubble .act-msg{font-size:13.5px;line-height:1.5}
.timeline-panel .act-mention{color:#2f5fb3;font-weight:600}
.timeline-panel .act-chat .timeline-image{display:block;width:160px;max-width:100%;margin-top:6px;padding:0;overflow:hidden;border:1px solid #e8eaed;border-radius:10px;background:#fff}
.timeline-panel .act-chat .timeline-image img{display:block;width:100%;height:120px;max-height:none;object-fit:cover;border-radius:0}
.timeline-panel .act-chat .timeline-image span{display:none}
.timeline[data-filter="chat"] .act-group{display:none!important}
.timeline[data-filter="system"] .act-group summary{display:none}

/* ===== Aktivitas sebagai kotak penuh: chat kotak putih, update proses kotak abu bertanda ===== */
.timeline-panel .timeline .timeline-item.act-chat,.timeline-panel .timeline .timeline-item.act-sys{margin:0 0 8px;padding:10px 12px;border-radius:10px}
.timeline-panel .timeline .timeline-item.act-chat{grid-template-columns:30px minmax(0,1fr);border:1px solid #e1e4e8;background:#fff;box-shadow:0 1px 2px rgba(20,24,30,.04)}
.timeline-panel .timeline .act-chat+.act-chat{border-top:1px solid #e1e4e8}
.timeline-panel .timeline .timeline-item.act-sys{display:block;border:1px solid #eceef1;background:#f6f7f9}
.timeline-panel .act-bubble{display:block;padding:0;border-radius:0;background:transparent}
.timeline-panel .timeline .act-bubble .act-msg{font-size:14px;line-height:1.55;color:#1f2430}
.timeline-panel .act-head time{font-size:11.5px}
.timeline-panel .act-sys-head{display:flex;align-items:center;gap:8px;margin:0 0 4px;font-size:11.5px}
.timeline-panel .act-tag{display:inline-flex;align-items:center;gap:5px;padding:2px 8px;border-radius:999px;background:#e9ecf0;color:#4b5260;font-size:11px;font-weight:600}
.timeline-panel .act-tag::before{content:"";width:6px;height:6px;border-radius:50%;background:#8a93a0}
.timeline-panel .act-by{color:#6b7280;font-weight:500}
.timeline-panel .act-sys-head time{margin-left:auto;color:#9aa1ab}
.timeline-panel .timeline .act-sys .act-text,.timeline-panel .timeline .act-sys .act-text.open{display:block;overflow:visible;color:#4b5260;font-size:12.5px;line-height:1.55;white-space:pre-line;text-overflow:clip;cursor:default}
.timeline-panel .act-day{margin:14px 0 8px}

/* ===== Penanda teks aktivitas: produk, user, tanggal, kode, proses ===== */
.timeline-panel :is(.act-text,.act-msg,.act-result-title,.act-field-body) :is(.act-product,.act-user,.act-date,.act-code){padding:0 4px;border-radius:4px;font-weight:600;-webkit-box-decoration-break:clone;box-decoration-break:clone}
.timeline-panel :is(.act-text,.act-msg,.act-result-title,.act-field-body) .act-product{background:#e8f0fc;color:#2c5aa0}
.timeline-panel :is(.act-text,.act-msg,.act-result-title,.act-field-body) .act-user{background:#f1ebfa;color:#6b44a8}
.timeline-panel :is(.act-text,.act-msg,.act-result-title,.act-field-body) .act-date{background:#fdf1dc;color:#8a5a12}
.timeline-panel :is(.act-text,.act-msg,.act-result-title,.act-field-body) .act-code{background:#eceef1;color:#374151;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.92em;font-weight:500}
.timeline-panel :is(.act-text,.act-msg,.act-result-title,.act-field-body) .act-proc{color:#1f2430;font-weight:700}
.timeline-panel :is(.act-text,.act-msg,.act-result-title,.act-field-body) .act-label{color:#6b7280;font-weight:600}
.timeline-panel .timeline .act-sys .act-text{line-height:1.7}

/* ===== Update hasil sampel: blok Keterangan/Saran Penyajian, langkah bernomor, link ke Hasil Sampel ===== */
.timeline-panel .act-result{margin-top:8px}
.timeline-panel .act-result-title{margin:0 0 6px;color:#4b5260;font-size:12.5px;line-height:1.7}
.timeline-panel .act-fields{display:grid;gap:10px;margin:0 0 0 2px;padding:2px 0 2px 12px;border-left:2px solid #dfe3e8}
.timeline-panel .act-field-label{display:block;margin:0 0 2px;color:#8a919c;font-size:10.5px;font-weight:700;letter-spacing:.05em;text-transform:uppercase}
.timeline-panel .act-field-body p{margin:0;color:#4b5260;font-size:12px;line-height:1.6;overflow-wrap:anywhere}
.timeline-panel .act-steps{display:grid;gap:4px;margin:4px 0;padding-left:20px;color:#4b5260;font-size:12px;line-height:1.55}
.timeline-panel .act-steps li{padding-left:2px;overflow-wrap:anywhere}
.timeline-panel .act-steps li::marker{color:#8a919c;font-weight:600}
.timeline-panel .act-link-row{display:flex;justify-content:flex-end;margin-top:8px}
.timeline-panel .act-link{min-height:0;height:auto;padding:0;border:0;background:transparent;box-shadow:none;color:#2c5aa0;font:inherit;font-size:12px;font-weight:600;cursor:pointer}
.timeline-panel .act-link:hover{text-decoration:underline}
