/* Generated reference match: borderless data list + floating detail panel. */
:root {
  --rr-bg:#0d1217; --rr-sidebar:#0a0f13; --rr-surface:#151a20;
  --rr-surface-2:#1a2026; --rr-line:#252c33; --rr-gold:#d4a650;
  --rr-gold-soft:#e8c77f; --rr-selected:rgba(174,136,66,.24);
  --rr-text:#f1eee8; --rr-text-2:#d2d0cb; --rr-muted:#8e969f;
  --rr-green:#4cbc82; --rr-font:Inter,"Noto Sans TC","Microsoft JhengHei UI","Microsoft JhengHei","Segoe UI",sans-serif;
}
:is(body:has(#customers-view:not(.hidden)),body:has(#products-view:not(.hidden))){background:var(--rr-bg);color:var(--rr-text);font-family:var(--rr-font);font-size:14px}
:is(body:has(#customers-view:not(.hidden)),body:has(#products-view:not(.hidden))) .main-panel{background:var(--rr-bg)!important}
:is(body:has(#customers-view:not(.hidden)),body:has(#products-view:not(.hidden))) .sidebar{border-right-color:#1d242a!important;background:var(--rr-sidebar)!important}
:is(body:has(#customers-view:not(.hidden)),body:has(#products-view:not(.hidden))) .nav-item{color:#c2c1bd;font-size:14px;font-weight:620}
:is(body:has(#customers-view:not(.hidden)),body:has(#products-view:not(.hidden))) .nav-item.active{border-color:transparent!important;background:#282824!important;color:var(--rr-gold-soft)!important;box-shadow:none!important}
#customers-view,#products-view{color:var(--rr-text);font-family:var(--rr-font)}
#customers-view>.page-header,#products-view>.page-header{min-height:58px!important;margin:0 0 16px!important;padding:0!important;border:0!important}
#customers-view>.page-header h1,#products-view>.page-header h1{margin:0;color:var(--rr-text);font-size:32px!important;font-weight:760;line-height:1.15;letter-spacing:-.035em}
#customers-view .customer-actions,#products-view .customer-actions{align-self:flex-start;gap:8px}
#customers-view .customer-actions .ghost-btn,#products-view .customer-actions .ghost-btn{min-height:38px!important;padding:7px 13px!important;border:1px solid #30363b!important;border-radius:8px!important;color:var(--rr-gold-soft)!important;background:#11161a!important;font-size:12px!important;font-weight:720;box-shadow:none!important}
#customers-view .customer-toolbar,#products-view .customer-toolbar{display:grid!important;grid-template-columns:minmax(360px,1.2fr) minmax(420px,.95fr)!important;gap:10px!important;margin:0 0 20px!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
#customers-view .customer-search-row,#products-view .product-search-row{display:grid!important;grid-template-columns:minmax(220px,1fr) 132px 132px;gap:8px!important;min-width:0}
#customers-view .customer-date-row{grid-template-columns:minmax(148px,1fr) minmax(148px,1fr) auto}
#products-view .product-search-row:first-child{grid-template-columns:minmax(260px,1fr)}
#products-view .product-date-row{grid-template-columns:repeat(2,minmax(170px,1fr))}
#customers-view .customer-toolbar input,#customers-view .customer-toolbar select,#products-view .customer-toolbar input,#products-view .customer-toolbar select,#customers-view #customer-clear-filters-btn{width:100%;min-width:0;min-height:40px!important;height:40px;margin:0!important;padding:0 13px!important;border:1px solid #2b3238!important;border-radius:8px!important;color:var(--rr-text-2)!important;background:#10151a!important;font:500 12px/1 var(--rr-font)!important;box-shadow:none!important}
#products-view .workbench-date-field{gap:5px;color:var(--rr-muted);font-size:11px}
#customers-view .customer-summary-strip{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:0!important;min-height:112px;margin:0 0 24px!important;padding:18px 8px!important;border:0!important;border-radius:8px!important;background:var(--rr-surface)!important;box-shadow:0 7px 24px rgba(0,0,0,.12)!important}
#customers-view .customer-summary-cell{display:grid!important;align-content:center;gap:8px!important;min-height:74px!important;padding:0 20px!important;border:0!important;border-radius:0!important;background:transparent!important}
#customers-view .customer-summary-cell span{color:var(--rr-muted)!important;font-size:12px!important;font-weight:520;line-height:1}
#customers-view .customer-summary-cell strong{margin:0!important;color:#e0b35d!important;font-size:29px!important;font-weight:680;line-height:1;letter-spacing:-.025em}
#customers-view .customer-layout.drawer-open,#products-view .product-layout{display:grid!important;grid-template-columns:minmax(620px,1.78fr) minmax(292px,.72fr)!important;gap:26px!important;align-items:start}
#customers-view .customer-layout:not(.drawer-open){grid-template-columns:minmax(0,1fr)!important}
#customers-view .customer-list-card,#products-view .product-category-card{min-width:0;overflow:visible!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
#customers-view .customer-list-head,#products-view .customer-list-head{min-height:46px!important;margin:0;padding:0 2px 10px!important;border:0!important}
#customers-view .customer-list-head h3,#products-view .customer-list-head h3{color:var(--rr-text);font-size:18px!important;font-weight:680;letter-spacing:-.015em}
#customers-view .customer-list-head .status-text,#products-view .customer-list-head .status-text{color:var(--rr-muted)!important;font-size:11px!important}
#customers-view .customer-table-head,#products-view .product-table-head{min-height:38px!important;margin:0!important;padding:10px 12px!important;border:0!important;border-radius:0!important;color:var(--rr-muted)!important;background:transparent!important;font-size:10px!important;font-weight:560;letter-spacing:.015em}
#customers-view .customer-table-head,#customers-view .customer-record-item{grid-template-columns:minmax(0,2.25fr) 82px 112px 142px!important;gap:14px!important}
#products-view .product-table-head,#products-view .product-category-item{grid-template-columns:minmax(0,1.7fr) minmax(120px,.8fr) 124px!important;gap:14px!important}
#customers-view .customer-record-list,#products-view .product-category-list{display:grid!important;gap:3px!important;padding:0!important;border:0!important}
#customers-view .customer-record-item,#products-view .product-category-item{min-height:61px!important;margin:0!important;padding:8px 12px!important;border:0!important;border-radius:6px!important;color:var(--rr-text-2);background:transparent!important;box-shadow:none!important}
#customers-view .customer-record-item:hover,#products-view .product-category-item:hover{background:rgba(255,255,255,.025)!important}
#customers-view .customer-record-item.active,#products-view .product-category-item.active{padding-left:12px!important;border:0!important;border-radius:6px!important;background:var(--rr-selected)!important;box-shadow:none!important}
#customers-view .customer-record-item:before,#products-view .product-category-item:before,#customers-view .customer-table-head:before,#products-view .product-table-head:before{display:none!important;content:none!important}
#customers-view .customer-record-main,#products-view .product-category-main{gap:2px!important}
#customers-view .customer-record-name,#products-view .product-category-main strong{color:var(--rr-text)!important;font-size:13px!important;font-weight:680!important;line-height:1.3!important}
#customers-view .customer-record-preview,#customers-view .customer-record-sub,#products-view .product-category-main>span,#products-view .product-category-customers,#products-view .product-category-time,#customers-view .customer-record-time{color:var(--rr-muted)!important;font-size:10px!important;line-height:1.35}
#customers-view .customer-record-preview{max-width:260px}
#customers-view .comment-source{color:#b9b7b1!important;font-size:10px!important;font-weight:620}
#customers-view .customer-record-meta{gap:2px;color:#d0cdc5;font-size:11px}
#customers-view .customer-status-pill{padding:4px 8px!important;border:1px solid rgba(76,188,130,.25)!important;border-radius:999px!important;color:#75d7a3!important;background:rgba(76,188,130,.1)!important;font-size:10px!important}
#customers-view .customer-detail-card,#products-view .product-detail-card{position:sticky!important;top:14px!important;align-self:start;max-height:calc(100vh - 40px)!important;padding:18px!important;overflow:auto!important;border:1px solid var(--rr-line)!important;border-radius:10px!important;color:var(--rr-text-2);background:var(--rr-surface)!important;box-shadow:0 18px 42px rgba(0,0,0,.28)!important;scrollbar-width:thin;scrollbar-color:#3b3b34 transparent}
#customers-view .customer-detail-card::-webkit-scrollbar,#products-view .product-detail-card::-webkit-scrollbar{width:5px}
#customers-view .customer-detail-card::-webkit-scrollbar-thumb,#products-view .product-detail-card::-webkit-scrollbar-thumb{border-radius:999px;background:#3b3b34}
#customers-view .customer-drawer-head,#products-view .product-detail-head{margin:0 0 14px;padding:0 0 14px!important;border-bottom:1px solid rgba(255,255,255,.055)!important}
#customers-view .customer-profile{align-items:center}
#customers-view .customer-detail-avatar,#products-view .product-detail-visual{display:none!important}
#customers-view .customer-name-label,#products-view .section-kicker{color:var(--rr-gold-soft)!important;font-size:10px!important;font-weight:680;letter-spacing:.03em}
#customers-view .customer-name-row h3,#products-view .product-detail-head h3{color:var(--rr-text)!important;font-size:19px!important;font-weight:720;line-height:1.25}
#customers-view .customer-detail-tabs{gap:16px!important;margin:0 0 14px!important;padding:0!important;border-bottom:1px solid rgba(255,255,255,.055)!important}
#customers-view .customer-tab-btn{padding:9px 0!important;border:0!important;border-bottom:2px solid transparent!important;border-radius:0!important;color:var(--rr-muted)!important;background:transparent!important;font-size:10px!important;font-weight:620}
#customers-view .customer-tab-btn.active{border-bottom-color:var(--rr-gold)!important;color:var(--rr-gold-soft)!important}
#customers-view .customer-drawer-body,#products-view .product-category-detail{color:var(--rr-text-2);font-size:11px!important}
#customers-view .customer-tab-panel .detail-block,#customers-view .customer-tab-panel .mini-stat,#customers-view .product-summary-item,#customers-view .timeline-item,#products-view .product-buyer-item,#products-view .product-buyer-order{border:0!important;border-radius:5px!important;background:transparent!important;box-shadow:none!important}
#products-view .product-detail-head{display:grid!important;grid-template-columns:minmax(0,1fr) auto;gap:14px;align-items:start!important}
#products-view .product-detail-head .ghost-btn{min-height:34px!important;padding:6px 10px!important;font-size:10px!important}
#products-view .product-detail-head .ghost-btn{width:auto!important;white-space:nowrap}
#products-view .product-detail-code{margin:5px 0 0;color:var(--rr-muted);font-size:10px;line-height:1.2}
#products-view .product-detail-stats{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px!important;margin:0 0 14px!important;padding:12px 0!important;border:0!important;border-radius:6px!important;background:#171d22!important}
#products-view .product-detail-stats .mini-stat{display:grid!important;justify-items:center;gap:5px!important;padding:0 5px!important;border:0!important;background:transparent!important;text-align:center}
#products-view .product-detail-stats .mini-stat span{color:var(--rr-muted)!important;font-size:9px!important}
#products-view .product-detail-stats .mini-stat strong{color:#e0b35d!important;font-size:17px!important;font-weight:680}
#products-view .product-detail-stats .mini-stat:last-child strong{font-size:11px!important;line-height:1.35;word-break:keep-all}
#products-view .product-detail-alerts{margin:0 0 10px;padding:8px 0!important;border:0!important;color:var(--rr-muted);font-size:10px}
#products-view .product-buyer-list{display:grid!important;gap:2px!important;border:0!important}
#products-view .product-buyer-item{min-height:49px;padding:8px 6px!important}
#products-view .product-buyer-item:hover{background:rgba(255,255,255,.025)!important}
#products-view .product-buyer-item.active{background:rgba(174,136,66,.14)!important}
#products-view .product-buyer-head strong{color:var(--rr-text)!important;font-size:11px!important}
#products-view .product-buyer-head span,#products-view .product-buyer-meta span{color:var(--rr-muted)!important;font-size:9px!important}
#products-view .product-buyer-meta strong{color:var(--rr-text)!important;font-size:11px!important}
/* Final no-image alignment: flatter canvas, quieter gold, exact generated-board density. */
#customers-view,#products-view{padding:0 2px!important}
#customers-view>.page-header,#products-view>.page-header{align-items:center!important}
#customers-view>.page-header h1,#products-view>.page-header h1{font-size:30px!important;font-weight:700;letter-spacing:-.025em}
#customers-view .customer-toolbar,#products-view .customer-toolbar{margin-bottom:18px!important}
#customers-view .customer-summary-strip{min-height:100px;margin-bottom:22px!important;padding:14px 6px!important;background:#141a1f!important}
#customers-view .customer-summary-cell{min-height:68px!important;padding:0 18px!important}
#customers-view .customer-summary-cell strong{font-size:27px!important;font-weight:640}
#customers-view .customer-list-head,#products-view .customer-list-head{min-height:42px!important;padding-bottom:8px!important}
#customers-view .customer-list-head h3,#products-view .customer-list-head h3{font-size:17px!important;font-weight:650}
#customers-view .customer-table-head,#products-view .product-table-head{padding:8px 10px!important;color:#7e878f!important}
#customers-view .customer-record-item,#products-view .product-category-item{min-height:58px!important;padding:7px 10px!important;border-radius:5px!important}
#customers-view .customer-record-item.active,#products-view .product-category-item.active{padding-left:10px!important;background:rgba(157,122,58,.27)!important}
#customers-view .customer-record-name,#products-view .product-category-main strong{font-size:12.5px!important;font-weight:640!important}
#customers-view .customer-record-preview,#customers-view .customer-record-sub,#products-view .product-category-main>span,#products-view .product-category-customers,#products-view .product-category-time,#customers-view .customer-record-time{font-size:9.5px!important}
#customers-view .customer-detail-card,#products-view .product-detail-card{padding:16px!important;border-color:#242c32!important;border-radius:8px!important;background:#141a20!important;box-shadow:0 16px 36px rgba(0,0,0,.22)!important}
#customers-view .customer-name-row h3,#products-view .product-detail-head h3{font-size:18px!important;font-weight:680}
#customers-view .customer-detail-tabs{gap:13px!important}
#customers-view .customer-tab-btn{font-size:9.5px!important}
#products-view .product-detail-stats{padding:10px 0!important;background:#171d22!important}
#products-view .product-detail-stats .mini-stat strong{font-size:16px!important}
#products-view .product-buyer-item{min-height:46px;padding:7px 5px!important}
#customers-view .customer-reference-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;margin:12px 0 16px;padding:11px 0;border-radius:6px;background:#171d22}
#customers-view .customer-reference-stats>div{display:grid;justify-items:center;gap:5px;min-width:0;text-align:center}
#customers-view .customer-reference-stats span{color:var(--rr-muted);font-size:9px}
#customers-view .customer-reference-stats strong{max-width:100%;overflow:hidden;color:#e0b35d;font-size:15px;font-weight:660;text-overflow:ellipsis;white-space:nowrap}
#customers-view .customer-reference-recent{margin-top:12px;padding-top:11px!important;border-top:1px solid rgba(255,255,255,.055)!important}
#customers-view .customer-reference-order{display:grid;grid-template-columns:112px minmax(0,1fr);gap:8px;padding:7px 0;color:var(--rr-muted);font-size:9px}
#customers-view .customer-reference-order strong{overflow:hidden;color:var(--rr-text-2);font-size:10px;font-weight:560;text-overflow:ellipsis;white-space:nowrap}

/* Readability pass: larger secondary copy and tighter customer/platform rhythm. */
#customers-view .customer-table-head,
#customers-view .customer-record-item {
  grid-template-columns: minmax(220px, 240px) 104px 132px minmax(170px, 1fr) !important;
  gap: 12px !important;
}

#customers-view .customer-table-head,
#products-view .product-table-head {
  font-size: 12px !important;
}

#customers-view .customer-record-name,
#products-view .product-category-main strong {
  font-size: 14px !important;
}

#customers-view .customer-record-preview,
#customers-view .customer-record-sub,
#customers-view .customer-record-time,
#products-view .product-category-main > span,
#products-view .product-category-customers,
#products-view .product-category-time {
  color: #a5adb5 !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
}

#customers-view .customer-record-preview {
  max-width: 300px;
}

#customers-view .comment-source {
  font-size: 13px !important;
}

#customers-view .customer-record-meta {
  font-size: 13px !important;
  line-height: 1.35;
}

#customers-view .customer-status-pill {
  font-size: 12px !important;
}

#customers-view .customer-list-head .status-text,
#products-view .customer-list-head .status-text,
#customers-view .customer-summary-cell span,
#products-view .workbench-date-field,
#products-view .product-detail-code,
#products-view .product-detail-alerts {
  color: #a5adb5 !important;
  font-size: 13px !important;
}

#customers-view .customer-name-label,
#products-view .section-kicker,
#customers-view .customer-tab-btn,
#products-view .product-detail-stats .mini-stat span {
  font-size: 11px !important;
}

#customers-view .customer-drawer-body,
#products-view .product-category-detail {
  font-size: 14px !important;
}

#customers-view .customer-reference-stats span,
#products-view .product-buyer-head span,
#products-view .product-buyer-meta span {
  color: #a5adb5 !important;
  font-size: 12px !important;
}

#products-view .product-buyer-head strong,
#products-view .product-buyer-meta strong {
  font-size: 13px !important;
}

#customers-view .customer-reference-order {
  font-size: 11px;
}

#customers-view .customer-reference-order strong {
  font-size: 12px;
}

@media (max-width: 1350px) and (min-width: 1121px) {
  #customers-view .customer-table-head,
  #customers-view .customer-record-item {
    grid-template-columns: minmax(200px, 225px) 92px 120px minmax(150px, 1fr) !important;
    gap: 10px !important;
  }
}

@media (max-width: 760px) {
  #customers-view .customer-record-item,
  #products-view .product-category-item {
    grid-template-columns: minmax(0, 1fr) auto !important;
  }

  #customers-view .customer-record-preview,
  #customers-view .customer-record-sub,
  #customers-view .customer-record-time,
  #products-view .product-category-main > span,
  #products-view .product-category-customers,
  #products-view .product-category-time {
    font-size: 13px !important;
  }
}

/* Unified filter toolbar: one row, one baseline, one gap system. */
#customers-view .customer-toolbar,
#products-view .customer-toolbar {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 0 !important;
  align-items: end !important;
}

#customers-view .customer-toolbar {
  grid-template-columns: minmax(300px, 1fr) 132px 132px 140px 140px 92px !important;
  column-gap: 10px !important;
}

#customers-view .customer-search-row,
#customers-view .customer-date-row {
  display: contents !important;
}

#products-view .customer-toolbar {
  grid-template-columns: minmax(360px, 1fr) 150px 150px !important;
  column-gap: 10px !important;
}

#products-view .product-search-row,
#products-view .product-date-row {
  display: contents !important;
}

#products-view .workbench-date-field {
  display: grid !important;
  grid-template-rows: 40px;
  gap: 0 !important;
  align-self: end;
}

#products-view .workbench-date-field > span {
  display: none !important;
}

#products-view #product-search {
  align-self: end;
}

#customers-view .customer-toolbar input,
#customers-view .customer-toolbar select,
#customers-view #customer-clear-filters-btn,
#products-view .customer-toolbar input,
#products-view .customer-toolbar select {
  height: 40px !important;
  min-height: 40px !important;
}

@media (max-width: 1350px) {
  #customers-view .customer-toolbar {
    grid-template-columns: minmax(260px, 1fr) 120px 120px 132px 132px 88px !important;
    column-gap: 8px !important;
  }

  #products-view .customer-toolbar {
    grid-template-columns: minmax(300px, 1fr) 142px 142px !important;
    column-gap: 8px !important;
  }
}

@media (max-width: 1120px) {
  #customers-view .customer-toolbar {
    grid-template-columns: minmax(0, 1fr) 124px 124px !important;
    gap: 8px !important;
  }

  #customers-view #customer-date-from,
  #customers-view #customer-date-to,
  #customers-view #customer-clear-filters-btn {
    grid-row: 2;
  }

  #customers-view #customer-date-from {
    grid-column: 1;
  }

  #customers-view #customer-date-to {
    grid-column: 2;
  }

  #customers-view #customer-clear-filters-btn {
    grid-column: 3;
  }

  #products-view .customer-toolbar {
    grid-template-columns: minmax(0, 1fr) 142px 142px !important;
  }
}

@media (max-width: 760px) {
  #customers-view .customer-toolbar,
  #products-view .customer-toolbar {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 9px !important;
  }

  #customers-view .customer-toolbar > *,
  #customers-view .customer-toolbar input,
  #customers-view .customer-toolbar select,
  #customers-view #customer-clear-filters-btn,
  #products-view .customer-toolbar > *,
  #products-view .customer-toolbar input,
  #products-view .customer-toolbar select,
  #products-view .workbench-date-field {
    grid-column: 1 !important;
    grid-row: auto !important;
    width: 100% !important;
  }
}
@media(max-width:1350px){#customers-view .customer-toolbar,#products-view .customer-toolbar{grid-template-columns:minmax(0,1fr)!important}#customers-view .customer-layout.drawer-open,#products-view .product-layout{grid-template-columns:minmax(540px,1.7fr) minmax(285px,.7fr)!important}}
@media(max-width:1120px){#customers-view .customer-layout.drawer-open,#products-view .product-layout{grid-template-columns:minmax(0,1fr)!important}#customers-view .customer-detail-card,#products-view .product-detail-card{position:static!important;max-height:none!important}}
@media(max-width:760px){#customers-view>.page-header h1,#products-view>.page-header h1{font-size:27px!important}#customers-view .customer-actions,#products-view .customer-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}#customers-view .customer-actions .ghost-btn,#products-view .customer-actions .ghost-btn{width:100%}#customers-view .customer-search-row,#customers-view .customer-date-row,#products-view .product-search-row,#products-view .product-date-row{grid-template-columns:minmax(0,1fr)!important}#customers-view .customer-summary-strip{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:5px!important;min-height:0;padding:6px!important}#customers-view .customer-summary-cell{min-height:70px!important;padding:10px 12px!important;border-radius:6px!important;background:rgba(255,255,255,.018)!important}#customers-view .customer-summary-cell strong{font-size:24px!important}#customers-view .customer-table-head,#products-view .product-table-head{display:none!important}#customers-view .customer-record-item,#products-view .product-category-item{grid-template-columns:minmax(0,1fr) auto!important;gap:9px!important;min-height:68px!important;padding:9px 10px!important}#customers-view .customer-record-meta,#products-view .product-category-customers{grid-column:1}#customers-view .customer-record-side,#products-view .product-category-time{grid-column:2;grid-row:1/span 2}#customers-view .customer-detail-card,#products-view .product-detail-card{padding:14px!important}}
