/* Cloud Accessories Store. Existing prototype and other departments keep their layout. */
.accessories-cloud { --store-ink:#173d34; --store-muted:#65796f; --store-line:#dce7e0; --store-soft:#f4f8f5; }
.accessories-cloud .accessories-page { max-width:1600px; padding-bottom:90px; }
.accessories-cloud .accessories-topbar { margin:10px 0 24px; }
.accessories-cloud .welcome h1 { font-size:30px; letter-spacing:-1px; }
.accessories-cloud .welcome>span { color:var(--store-muted); font-size:14px; line-height:1.6; }
.accessories-cloud .accessory-summary { grid-template-columns:repeat(5,minmax(0,1fr)); gap:10px; }
.accessories-cloud .accessory-summary-card { box-shadow:none; min-height:105px; padding:16px; gap:12px; border-color:var(--store-line); }
.accessories-cloud .accessory-summary-card strong { font-size:27px; }
.accessories-cloud .accessory-summary-card small { font-size:12px; color:#51665d; }
.accessories-cloud .accessory-summary-card p { font-size:11px; line-height:1.4; color:var(--store-muted); }
.accessories-cloud .accessory-summary-card:last-child { grid-column:auto; }
.store-navigation { display:flex; gap:6px; margin:24px 0 18px; border-bottom:1px solid var(--store-line); padding-bottom:10px; flex-wrap:wrap; scroll-margin-top:16px; }
.store-navigation button { display:flex; align-items:center; gap:9px; border:1px solid transparent; border-radius:9px; padding:12px 18px; background:transparent; color:#50685d; font:600 14px 'DM Sans',sans-serif; cursor:pointer; }
.store-navigation button[aria-pressed=true] { background:#1d604f; color:white; box-shadow:0 3px 7px #153c3212; }
.store-navigation button:hover:not([aria-pressed=true]) { background:#eaf2ec; }
.store-navigation svg { width:18px; height:18px; }
.accessories-cloud [hidden] { display:none!important; }
.accessories-cloud .panel { box-shadow:none; border-color:var(--store-line); border-radius:16px; }
.accessories-cloud .section-heading { padding:24px 24px 20px; }
.accessories-cloud .section-heading h2 { font-size:22px; margin:5px 0; }
.accessories-cloud .section-heading p { font-size:13px; line-height:1.6; }
.accessories-cloud .section-kicker { color:#427666; font-size:11px; letter-spacing:.1em; }
.accessories-cloud .accessory-role-badge { background:#f2f6f3; color:#536e60; }
.accessories-cloud .register-tools { padding:0 24px 22px; gap:16px; flex-wrap:wrap; }
.accessories-cloud .status-tabs { padding:4px; gap:2px; flex-wrap:wrap; overflow:visible; }
.accessories-cloud .status-tabs button { min-height:40px; padding:8px 12px; font-size:13px; }
.accessories-cloud .status-tabs button.active { color:#1e604e; }
.accessories-cloud .status-tabs b { color:inherit; opacity:.8; font-size:12px; }
.accessories-cloud .search-field { height:44px; width:min(360px,100%); padding:0 12px; flex:1 1 260px; }
.accessories-cloud .search-field input { font-size:14px; }
.accessories-cloud .search-field svg { width:18px; height:18px; }
.accessories-cloud .accessory-table-wrap { display:none; }
.accessories-cloud #assignment-mobile-list { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); align-items:start; gap:16px; padding:24px; background:#f7faf8; }
.store-work-card { border:1px solid var(--store-line); border-radius:12px; padding:18px; min-width:0; background:white; color:var(--store-ink); overflow-wrap:anywhere; }
.store-work-card>header { display:flex; align-items:center; gap:10px; }
.store-worker-code { display:grid; place-items:center; min-width:42px; height:42px; border-radius:11px; background:#e9f3ed; color:#205b46; font-size:15px; font-weight:800; }
.store-work-card header>div { min-width:0; flex:1; }
.store-work-card h3 { font-size:16px; margin:0 0 3px; }
.store-work-card header p { margin:0; font-size:12px; color:var(--store-muted); line-height:1.5; }
.store-work-card header p>span { display:inline; }
.store-badge { display:inline-flex; align-items:center; padding:5px 8px; border-radius:6px; font-size:11px; font-weight:650; line-height:1.4; color:#576f62; background:#f0f4f1; }
.store-badge.amber { background:#fff2dc; color:#8f570e; }
.store-badge.green { background:#eaf5ee; color:#286b4c; }
.store-product { padding:16px 0 12px; display:grid; gap:3px; }
.store-product strong { font-size:14px; }
.store-product>span { color:var(--store-muted); font-size:12px; }
.store-allocation { display:flex; gap:16px; align-items:center; padding:12px 0; border-top:1px solid #edf2ee; border-bottom:1px solid #edf2ee; }
.store-allocation>strong { font-size:24px; font-weight:750; white-space:nowrap; }
.store-allocation small { font-size:11px; color:var(--store-muted); font-weight:400; }
.store-allocation>span { font-size:13px; display:grid; gap:4px; }
.store-work-card .accessory-availability { margin:14px 0; }
.store-work-card .accessory-availability-line { border:0; border-left:3px solid #d7e8db; border-radius:0 7px 7px 0; padding:9px 10px!important; }
.store-work-card .accessory-availability-line.short { border-left-color:#d9a358; }
.store-work-card .accessory-availability-line>strong { font-size:12px; line-height:1.5; }
.store-work-card .accessory-stock-numbers { display:flex; font-size:11px; gap:3px 12px!important; }
.store-work-card .accessory-shortage-text { flex-basis:100%; font-size:11px; }
.store-work-card .accessory-stock-status { display:none; }
.store-no-accessories { padding:12px 0; font-size:13px; color:var(--store-muted); }
.store-work-card footer { border-top:1px solid #edf2ee; padding-top:13px; display:flex; align-items:center; justify-content:space-between; gap:10px; }
.store-work-card footer>span { color:var(--store-muted); font-size:12px; }
.accessories-cloud button.store-primary { background:#1e604f; color:#fff; border:1px solid #1e604f; padding:11px 14px; border-radius:8px; font-size:13px; font-weight:650; min-height:44px; cursor:pointer; }
.store-primary>span { margin-left:12px; }
.accessories-cloud button.store-primary:hover { background:#154b3d; }
.accessories-cloud .accessory-cloud-footer { padding:14px 24px 18px; }
.accessories-cloud .accessory-cloud-toolbar { font-size:12px; }
.accessories-cloud .accessory-cloud-pager button,.accessories-cloud .accessory-cloud-toolbar button { min-height:40px; background:#fff; }
.accessories-cloud .empty-state strong { font-size:16px; }
.accessories-cloud .empty-state span { font-size:13px; }
.accessories-cloud .forecast-list,.accessories-cloud .inventory-grid { grid-template-columns:repeat(3,minmax(0,1fr)); padding:0 24px 24px; gap:16px; overflow:visible; }
.accessories-cloud .inventory-toolbar { padding:0 24px 20px; }
.store-stock-card { padding:20px; border:1px solid var(--store-line); border-radius:12px; min-width:0; overflow-wrap:anywhere; }
.store-stock-card header { display:flex; align-items:center; justify-content:space-between; color:var(--store-muted); font-size:12px; }
.store-stock-card h3 { margin:16px 0 5px; font-size:17px; }
.store-stock-card>p { font-size:13px; color:var(--store-muted); line-height:1.6; margin:0; }
.store-stock-total { display:flex; align-items:baseline; gap:8px; flex-wrap:wrap; margin:18px 0; }
.store-stock-total strong { font-size:32px; line-height:1.2; color:#225d49; }
.store-stock-total span { color:var(--store-muted); font-size:12px; }
.store-stock-demand { display:grid; gap:7px; font-size:12px; padding:12px 0; border-top:1px solid var(--store-line); }
.store-stock-demand span { display:flex; justify-content:space-between; gap:12px; }
.store-stock-card .store-stock-outcome { padding:10px 12px; border-radius:7px; background:#eef6f0; color:#2d6850; font-weight:650; }
.store-stock-card .store-stock-outcome.short { background:#fff4e3; color:#925715; }
.store-stock-card details { margin-top:15px; font-size:12px; }
.store-stock-card summary { cursor:pointer; padding:8px 0; color:#4a6859; }
.store-stock-card dl { margin:10px 0; display:grid; gap:6px; }
.store-stock-card dl>div { display:flex; justify-content:space-between; gap:12px; }
.store-stock-card dd { margin:0; }
.store-stock-lots { border-top:1px solid var(--store-line); }
.store-stock-lots summary { display:flex; flex-wrap:wrap; align-items:center; gap:4px 10px; font-weight:650; }
.store-stock-lots summary::before { content:'▸'; }
.store-stock-lots[open] summary::before { content:'▾'; }
.store-stock-lots summary span { font-size:11px; font-weight:400; color:var(--store-muted); }
.store-lot-status,.store-lot-help { font-size:11px; line-height:1.6; color:var(--store-muted); }
.store-lot-requirements { display:grid; gap:10px; margin:12px 0; }
.store-lot-requirement { padding:12px; border:1px solid var(--store-line); border-radius:8px; background:#f6faf8; }
.store-lot-requirement header { flex-wrap:wrap; gap:4px 8px; }
.store-lot-requirement header strong { color:var(--store-ink); }
.store-lot-requirement>p { margin:6px 0 12px; color:var(--store-muted); font-size:11px; line-height:1.5; }
.store-lot-needed { display:flex; flex-wrap:wrap; justify-content:space-between; gap:5px 10px; color:#225d49; }
.store-lot-requirement dl { font-size:11px; color:var(--store-muted); }
.store-lot-requirement dd { font-weight:600; text-align:right; }
.store-lot-pager { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px; }
.store-lot-pager button,.store-stock-lot-content>button { min-height:36px; padding:6px 9px; font-size:11px; }
.accessories-cloud .accessory-cloud-search { margin:0 24px 20px; font-size:13px; }
.accessories-cloud .accessory-cloud-search input,.accessories-cloud .accessory-cloud-search select { min-height:44px; }
.accessories-cloud #accessory-cloud-request-list { padding:0 24px 24px; }
.store-empty { margin:0; padding:24px; color:var(--store-muted); font-size:14px; }
.store-transaction { display:flex; align-items:flex-start; gap:16px; margin:0 24px; padding:20px 0; border-top:1px solid var(--store-line); min-width:0; overflow-wrap:anywhere; }
.store-transaction>div { flex:1; min-width:0; }
.store-transaction h3 { font-size:14px; margin:0 0 6px; }
.store-transaction p { margin:5px 0; font-size:13px; }
.store-transaction small { font-size:12px; color:var(--store-muted); }
.store-transaction>strong { font-size:15px; white-space:nowrap; }
#accessory-store-records>.external-grid { margin-top:20px; }
.accessories-cloud .accessory-modal { width:min(100%,1000px); border-radius:18px; }
.accessories-cloud .action-modal { max-width:680px; }
.accessories-cloud .accessory-cloud-detail { padding:32px; font-size:14px; }
.accessories-cloud .accessory-cloud-detail h2 { font-size:24px; margin:0 0 8px; }
.accessories-cloud .accessory-cloud-detail h3 { font-size:16px; }
.accessories-cloud .accessory-cloud-detail p { color:var(--store-muted); font-size:13px; }
.store-workspace-header { padding:0 0 22px; margin-bottom:22px; border-bottom:1px solid var(--store-line); }
.store-requirements { display:grid; gap:12px; margin:18px 0; }
.store-requirement { padding:20px; border:1px solid var(--store-line); border-radius:11px; display:grid; grid-template-columns:minmax(0,1fr) auto; gap:15px; }
.store-requirement h3 { margin:0; line-height:1.5; overflow-wrap:anywhere; }
.store-requirement p { margin:5px 0 0; }
.store-requirement>div { grid-column:1 / -1; }
.store-requirement dl { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:15px; margin:0; }
.store-requirement dt { color:var(--store-muted); font-size:11px; margin-bottom:6px; }
.store-requirement dd { margin:0; font-size:15px; font-weight:650; }
.store-requirement>button,.store-requirement>.store-badge { align-self:center; justify-self:end; }
.store-disclosure { padding:18px 0; border-top:1px solid var(--store-line); }
.store-disclosure>summary { font-size:14px; font-weight:650; cursor:pointer; line-height:1.6; }
.store-disclosure>summary>span { color:var(--store-muted); font-size:12px; font-weight:400; margin-left:8px; }
.store-disclosure .accessory-cloud-card { box-shadow:none; }
.store-help { font-size:12px!important; }
.store-secondary-actions { display:flex; flex-wrap:wrap; gap:10px; padding:18px 0; }
.store-secondary-actions button,.store-quantity-shortcuts button { padding:10px 13px; min-height:42px; border:1px solid var(--store-line); border-radius:8px; background:white; color:#28604b; font:600 13px 'DM Sans',sans-serif; cursor:pointer; }
.store-quantity-shortcuts { display:flex; gap:8px; flex-wrap:wrap; }
.accessories-cloud .accessory-cloud-detail input,.accessories-cloud .accessory-cloud-detail select { min-height:46px; }
.store-action-preview { display:grid; grid-template-columns:1fr 1fr; gap:16px; padding:18px; background:#f0f7f2; border-radius:10px; color:#456354; font-size:12px; }
.store-action-preview strong { display:block; font-size:22px; margin-top:5px; color:#23543f; }
.store-action-preview p { grid-column:1 / -1; margin:0; }
.store-action-preview .store-negative { color:#b14727; }
.accessories-cloud .save-action { background:#1e604f; min-height:44px; padding:12px 20px; font-size:14px; }
.accessories-cloud .modal-actions { position:sticky; bottom:-32px; padding:16px 0; background:#fff; border-top:1px solid var(--store-line); z-index:1; }
.accessories-cloud .accessory-cloud-error:not(:empty) { padding:12px; border:1px solid #efd6ca; border-radius:8px; background:#fff5ef; color:#9a4026; }
.accessories-cloud button:focus-visible,.accessories-cloud summary:focus-visible,.accessories-cloud a:focus-visible,.accessories-cloud input:focus-visible,.accessories-cloud select:focus-visible,.accessories-cloud textarea:focus-visible { outline:3px solid #64a991; outline-offset:3px; }
.accessories-cloud .accessory-modal .modal-close { width:40px; height:40px; z-index:3; }
@media(max-width:1400px) { .accessories-cloud #assignment-mobile-list,.accessories-cloud .forecast-list,.accessories-cloud .inventory-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .accessories-cloud .accessory-summary-card { grid-template-columns:1fr; gap:8px; } .accessories-cloud .accessory-summary-card>span { display:none; } }
@media(max-width:900px) { .accessories-cloud .accessory-summary { grid-template-columns:repeat(3,minmax(0,1fr)); } .accessories-cloud .search-field { flex:auto; width:100%; } .store-requirement { grid-template-columns:1fr; } .store-requirement>button { justify-self:start; } .accessories-cloud .register-tools { align-items:stretch; } .store-navigation button { padding:10px 12px; } }
@media(max-width:650px) {
  .accessories-cloud .welcome h1 { font-size:27px; }
  .accessories-cloud .accessory-summary { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
  .accessories-cloud .accessory-summary-card { min-height:88px; padding:13px; }
  .accessories-cloud .accessory-summary-card:last-child { grid-column:1 / -1; display:flex; align-items:center; }
  .accessories-cloud .accessory-summary-card:last-child>div { display:flex; align-items:center; gap:12px; }
  .accessories-cloud .accessory-summary-card:last-child p { display:none; }
  .store-navigation { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:5px; margin-top:18px; }
  .store-navigation button { padding:10px 5px; font-size:12px; justify-content:center; gap:5px; }
  .store-navigation svg { width:14px; height:14px; }
  .accessories-cloud .section-heading { padding:18px 16px; }
  .accessories-cloud .section-heading h2 { font-size:20px; }
  .accessories-cloud .section-heading>.accessory-role-badge,.accessories-cloud .section-heading>.readonly-badge { display:none; }
  .accessories-cloud .register-tools { padding:0 16px 16px; }
  .accessories-cloud .status-tabs { display:grid; grid-template-columns:1fr 1fr; }
  .accessories-cloud .status-tabs button { padding:8px; font-size:12px; }
  .accessories-cloud #assignment-mobile-list,.accessories-cloud .forecast-list,.accessories-cloud .inventory-grid { grid-template-columns:1fr; padding:16px; gap:12px; }
  .store-work-card { padding:16px; }
  .store-work-card header .store-badge { max-width:88px; }
  .store-work-card footer { flex-wrap:wrap; }
  .accessories-cloud .accessory-cloud-footer { padding:12px 16px; }
  .accessories-cloud .accessory-cloud-search { margin:0 16px 16px; }
  .accessories-cloud .inventory-toolbar { padding:0 16px 16px; }
  .accessories-cloud .accessory-cloud-toolbar { gap:10px; line-height:1.5; }
  .accessories-cloud .accessory-modal { border-radius:16px 16px 0 0; }
  .accessories-cloud .accessory-cloud-detail { padding:24px 16px; }
  .accessories-cloud .accessory-cloud-detail h2 { font-size:21px; }
  .store-requirement { padding:16px; }
  .store-requirement dl { grid-template-columns:1fr 1fr; gap:16px; }
  .store-transaction { margin:0 16px; flex-wrap:wrap; gap:10px; }
  .store-transaction>div { flex-basis:calc(100% - 105px); }
  .store-transaction>strong { margin-left:auto; }
  .accessories-cloud .modal-actions { bottom:-24px; }
}
@media(prefers-reduced-motion:reduce) { .accessories-cloud * { scroll-behavior:auto!important; transition:none!important; } }
