:root { color-scheme: light; font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif; color: #20332f; background: #f3f6f4; }
* { box-sizing: border-box; }
body { margin: 0; }
.header { display: flex; align-items: center; gap: 14px; padding: 22px 6%; border-bottom: 1px solid #dce5df; background: white; }
.brand { font-size: 20px; font-weight: 700; }
.badge { font-size: 11px; letter-spacing: .08em; border: 1px solid #b8d2c6; padding: 4px 8px; border-radius: 5px; color: #28654a; }
main { max-width: 980px; padding: 64px 24px; margin: auto; }
.panel { padding: 40px; background: white; border: 1px solid #dce5df; border-radius: 16px; box-shadow: 0 8px 32px #20332f06; }
.narrow { max-width: 460px; margin: auto; }
.eyebrow { color: #36785a; font-size: 13px; font-weight: 600; margin: 0 0 12px; }
h1 { font-size: clamp(22px, 3.8vw, 30px); line-height: 1.5; margin: 0 0 14px; }
.muted { color: #62716a; line-height: 1.9; }
label { display: block; font-size: 14px; font-weight: 600; margin: 22px 0 8px; }
input:not([type=hidden]) { width: 100%; font: inherit; padding: 12px; border: 1px solid #bdccc2; border-radius: 7px; }
input:focus { outline: 2px solid #84b89b; outline-offset: 2px; }
button, .button { display: inline-block; border: 0; border-radius: 7px; padding: 12px 20px; font: inherit; background: #276b4a; color: white; text-decoration: none; cursor: pointer; }
.narrow button { width: 100%; margin-top: 28px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; }
.secondary { color: #345745; background: #edf3ef; }
.notice { padding: 18px; margin-top: 28px; border-radius: 8px; background: #f0f6f2; line-height: 1.8; }
.error { color: #a12f2f; background: #fff2f2; padding: 12px; border-radius: 6px; }
@media (max-width: 600px) { main { padding: 32px 16px; } .panel { padding: 26px 22px; } }

.brand { text-decoration: none; color: inherit; }
.header-nav { margin-left: auto; display: flex; align-items: center; gap: 18px; font-size: 14px; }
.header-nav a, .text-link { color: #276b4a; text-decoration: none; }
main { max-width: 1280px; padding-top: 36px; }
.page-heading, .section-heading { display: flex; gap: 16px; align-items: center; justify-content: space-between; }
.page-heading { margin-bottom: 22px; } .page-heading h1 { margin-bottom: 0; }
h2 { font-size: 20px; margin: 0 0 12px; }
.form-panel { padding: 28px 32px; margin-bottom: 20px; }
.grid { display: grid; gap: 18px; } .grid.two { grid-template-columns: repeat(2,minmax(0,1fr)); } .grid.four { grid-template-columns: repeat(4,minmax(0,1fr)); }
.field label { margin-top: 14px; } textarea, select { font: inherit; border: 1px solid #bdccc2; border-radius: 7px; padding: 11px; color: inherit; background: white; }
.field textarea, .field select { width: 100%; } .price-field { max-width: 300px; }
.required { color: #995337; font-size: 11px; margin-left: 8px; font-weight: normal; } .optional { font-size: 13px; color: #63726a; }
.help { font-size: 13px; line-height: 1.8; color: #62716a; margin: 8px 0 16px; }
.field-error, .errorlist { color: #a12f2f; font-size: 13px; line-height: 1.6; margin: 6px 0; } .errorlist { padding-left: 18px; }
.field-invalid input, .field-invalid textarea { border-color: #c66c6c; }
.sku-toolbar, .bulk-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.bulk-toolbar { padding: 14px; border-radius: 8px; background: #f3f6f4; font-size: 14px; }
.inline-field { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: normal; }
.inline-field input { max-width: 82px; } #bulk-value { max-width: 180px; } .compact { padding: 8px 12px; font-size: 13px; white-space: nowrap; }
.check-label { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; margin: 0; font-weight: normal; }
input[type=checkbox] { width: 17px; height: 17px; accent-color: #276b4a; }
.table-scroll { overflow-x: auto; } table { width: 100%; border-collapse: collapse; } .sku-table { min-width: 860px; }
th { text-align: left; font-size: 12px; font-weight: 600; padding: 12px 8px; background: #f1f5f2; color: #52655b; }
td { padding: 12px 8px; border-bottom: 1px solid #e5ece7; vertical-align: top; } .sku-table td input:not([type=hidden]):not([type=checkbox]) { min-width: 90px; padding: 9px; font-size: 13px; }
.sku-table td:nth-child(3) { width: 23%; } .sku-table td:nth-child(7) { width: 10%; }
button:disabled { opacity: .45; cursor: default; } [hidden] { display: none !important; }
.image-grid { display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0; } .image-card { width: 134px; border: 1px solid #dce5df; border-radius: 8px; padding: 7px; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.image-card img { width: 118px; height: 118px; object-fit: contain; background: #f4f6f4; border-radius: 5px; } .marked-delete { opacity: .4; }
.upload-label { margin-bottom: 10px; font-size: 14px; } #product-images-input { max-width: 500px; background: #f8faf8; }
.save-bar { position: sticky; bottom: 0; display: flex; justify-content: flex-end; gap: 12px; padding: 16px 0; background: #f3f6f4ee; border-top: 1px solid #dce5df; }
.flash { padding: 14px 18px; color: #245d40; border: 1px solid #b9d8c5; border-radius: 8px; margin-bottom: 20px; background: #eff8f1; }
.search-form { display: flex; align-items: center; gap: 12px; } .search-form input { flex: 1; } .list-count { font-size: 13px; color: #62716a; }
.product-list-row { display: flex; align-items: center; gap: 20px; padding: 22px 0; border-bottom: 1px solid #e3ebe6; } .product-thumbnail img { width: 88px; height: 88px; object-fit: contain; background: #f4f6f4; border-radius: 7px; }
.product-list-body { flex: 1; min-width: 0; } .product-list-body h2 { font-size: 18px; margin: 8px 0; } .product-list-body a { color: inherit; text-decoration: none; } .product-code { font-size: 12px; color: #718178; margin: 0; } .product-list-body .muted { font-size: 13px; margin-bottom: 0; } .meta-gap { margin-left: 14px; }
.empty-state { text-align: center; padding: 48px 10px; color: #62716a; } .pagination { display: flex; justify-content: center; gap: 28px; margin-top: 24px; } .pagination a { color: #276b4a; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 760px) { .grid.two, .grid.four { grid-template-columns: 1fr; gap: 0; } .form-panel { padding: 22px 18px; } .header { padding: 16px; } .header-nav { gap: 10px; } .header-nav a { font-size: 12px; } .product-list-row { gap: 12px; } .product-thumbnail img { width: 60px; height: 60px; } .product-list-row > .button { padding: 9px; } .meta-gap { display: inline-block; margin-left: 6px; } .search-form { flex-wrap: wrap; } }

.dashboard-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(270px,1fr)); gap:20px; }
.dashboard-card { display:flex; flex-direction:column; text-decoration:none; color:inherit; padding:28px; transition:border-color .15s,transform .15s; }
.dashboard-card:hover { border-color:#36785a; transform:translateY(-2px); } .dashboard-card p { flex:1; line-height:1.8; color:#62716a; margin:0 0 24px; } .dashboard-card span { color:#276b4a; font-weight:600; }
.form-panel form p { margin:16px 0; } .form-panel form p label { margin:0 0 8px; } .form-panel select, .form-panel textarea { max-width:100%; } .form-panel form p input:not([type=checkbox]), .form-panel form p select, .form-panel textarea { width:100%; } .form-panel .helptext { display:block; font-size:12px; color:#62716a; margin-top:6px; }
.totals { display:flex; flex-wrap:wrap; gap:18px; } .totals div { min-width:130px; } .totals dt { color:#62716a; font-size:13px; } .totals dd { margin:8px 0; font-weight:700; font-size:20px; } .batch-row { display:flex; align-items:center; gap:14px; padding:10px 0; border-bottom:1px solid #eee; }
.print-document { margin-bottom:24px; }
@media print { @page { size:A4; margin:10mm; } .header,.no-print,.flash { display:none!important; } body { background:white; } main { max-width:none; padding:0; } .panel { box-shadow:none; border:0; padding:0; } .print-document { break-after:page; } .print-document:last-child { break-after:auto; } table { font-size:10pt; } .table-scroll { overflow:visible; } thead { display:table-header-group; } tr { break-inside:avoid; } }
@media(max-width:700px) { .header-nav { flex-wrap:wrap; } .header-nav span { display:none; } }

/* Order management: compact controls, visible actions, readable rows. */
.orders-main { max-width:1600px; padding-top:24px; } .order-heading { margin-bottom:16px; } .order-heading h1 { font-size:25px; }
.order-search-panel { padding:18px 20px; margin-bottom:12px; border-radius:10px; box-shadow:none; } .order-search-panel h2 { font-size:16px; margin-bottom:12px; }
.order-filter-grid { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:10px 12px; }
.order-filter-group { min-width:0; border:0; border-top:1px solid #e2e9e5; margin:14px 0 0; padding:10px 0 0; }
.order-filter-group legend { padding:0 10px 0 0; color:#425a4d; font-size:12px; font-weight:700; }
.order-filter-keyword .order-filter-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
.order-date-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px 24px; }
.order-range-title { display:block; margin-bottom:4px; font-size:12px; font-weight:600; color:#52615a; }
.order-date-range { display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); align-items:start; gap:8px; }
.order-date-range > span { padding-top:7px; color:#62716a; }
@media(max-width:650px) { .order-date-grid, .order-filter-keyword .order-filter-grid { grid-template-columns:minmax(0,1fr); } }
.order-filter-field label { margin:0 0 4px; font-size:12px; color:#52615a; } .order-filter-field input:not([type=hidden]), .order-filter-field select { width:100%; min-width:0; height:34px; padding:5px 8px; font-size:13px; border-radius:5px; }
.order-search-footer { display:flex; align-items:center; gap:10px; margin-top:13px; } .order-search-footer button,.order-search-footer .button { font-size:13px; padding:8px 20px; } .order-result-summary { margin-left:auto; color:#62716a; font-size:13px; }
.order-import-panel { display:flex; flex-wrap:wrap; align-items:center; gap:10px 20px; padding:12px 18px; margin-bottom:14px; border-radius:9px; box-shadow:none; }
.order-import-form { display:flex; flex-wrap:wrap; align-items:center; gap:10px; flex:1; font-size:13px; } .order-import-form input[type=file] { width:300px; max-width:100%; padding:5px 8px; font-size:12px; background:#f7f8f7; } .order-import-form strong { white-space:nowrap; } .order-import-form button { padding:7px 16px; font-size:13px; } .order-import-form .help { margin:0; font-size:11px; } .order-import-form .errorlist { flex-basis:100%; } .order-import-panel>.text-link { font-size:12px; }
.order-results { padding:0; border-radius:10px; box-shadow:none; overflow:hidden; } .order-selection-bar { display:flex; align-items:center; flex-wrap:wrap; gap:14px; padding:15px 18px 10px; } .order-selection-bar h2 { margin:0 10px 0 0; font-size:17px; } #order-selected-count { font-size:13px; color:#276b4a; font-weight:600; }
.order-action-groups { display:flex; flex-wrap:wrap; gap:10px 22px; padding:0 18px 10px; } .order-action-group { display:flex; align-items:center; flex-wrap:wrap; gap:6px; } .order-action-group>span { font-size:11px; color:#63726a; margin-right:3px; } .order-action-group .compact { padding:7px 10px; font-size:12px; } .order-scope-note { font-size:11px; color:#63726a; margin:0; padding:0 18px 12px; }
.order-table { table-layout:fixed; min-width:1000px; font-size:13px; } .order-table .col-select { width:36px; } .order-table .col-order { width:18%; } .order-table .col-recipient { width:15%; } .order-table .col-product { width:25%; } .order-table .col-quantity { width:58px; } .order-table .col-status { width:90px; } .order-table .col-shipping { width:17%; } .order-table .col-action { width:95px; }
.order-table th { font-size:11px; padding:10px 9px; background:#edf1ee; white-space:nowrap; } .order-table td { padding:10px 9px; vertical-align:middle; border-bottom:1px solid #e1e5e2; }
.order-table tbody tr:nth-child(even) { background:#f3f4f4; } .order-table tbody tr:nth-child(odd) { background:#fff; } .order-table tbody tr:hover { background:#edf3ef; } .order-table tbody tr.is-selected { background:#e0eee6; box-shadow:inset 3px 0 #32764f; }
.order-table .order-one-line,.order-table .order-product-name,.order-table .order-order-id { display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:100%; } .order-product-name { font-weight:500; } .order-sub { display:block; margin-top:4px; color:#6b746f; font-size:11px; line-height:1.4; } .order-quantity { text-align:center; } .order-sub.return-count { color:#9b5b37; }
.order-badge { display:inline-block; font-size:10px; padding:2px 6px; border-radius:4px; background:#fff1d5; color:#7d5a1d; white-space:nowrap; } .badge-shipped { background:#e2eee7; color:#2d6945; } .badge-attention { display:block; width:max-content; margin-top:4px; background:#fbe4df; color:#9b4033; } .order-table .compact { font-size:11px; padding:7px 8px; } .order-empty { text-align:center; padding:30px!important; color:#63726a; }
.order-pagination { padding:14px; margin:0; font-size:13px; } .order-history { padding:13px 18px; margin-top:16px; border-radius:9px; box-shadow:none; } .order-history summary { cursor:pointer; font-size:13px; font-weight:600; } .order-history .batch-row { justify-content:space-between; font-size:12px; } .order-history .batch-row form { flex-shrink:0; }
@media(max-width:1100px) { .order-filter-grid { grid-template-columns:repeat(4,minmax(0,1fr)); } }
@media(max-width:650px) { .orders-main { padding:20px 12px; } .order-filter-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .order-search-panel { padding:14px; } .order-import-panel { padding:12px; } .order-result-summary { margin-left:0; } .order-search-footer { flex-wrap:wrap; } .order-action-groups { gap:12px; } }

.flash.flash-error { color:#963d32; background:#fff1ed; border-color:#e5b6ac; }


/* Shared workspace: clear navigation, restrained spacing and consistent data tables. */
body { font-size:14px; line-height:1.55; background:#f3f5f7; color:#26342f; }
.header { min-height:64px; padding:12px 28px; gap:12px; background:#fff; }
.brand { font-size:19px; } .header-account { display:flex; align-items:center; flex-wrap:wrap; gap:12px; margin-left:auto; font-size:13px; } .account-role { color:#64736c; font-size:12px; }
.app-layout { display:grid; grid-template-columns:210px minmax(0,1fr); max-width:1840px; margin:auto; align-items:start; }
.app-layout main { width:100%; max-width:none; min-width:0; margin:0; align-self:start; padding:26px 28px 48px; }
.sidebar { position:sticky; top:0; padding:24px 12px; min-height:calc(100vh - 66px); background:#fff; border-right:1px solid #dce3df; }
.nav-group { margin-bottom:20px; } .nav-group>p { margin:0 12px 6px; font-size:11px; color:#718078; font-weight:600; letter-spacing:.06em; }
.nav-group a { display:block; padding:9px 12px; margin:3px 0; border-radius:6px; color:#3b4c43; text-decoration:none; font-size:13px; border-left:3px solid transparent; }
.nav-group a:hover { background:#f2f5f3; } .nav-group a.is-current { background:#e6f0ea; color:#1c603b; font-weight:700; border-left-color:#2f7951; }
.app-layout .panel { border-radius:9px; padding:22px; box-shadow:none; border-color:#dce3df; }
.app-layout .form-panel { padding:22px; margin-bottom:18px; } .app-layout .page-heading { margin-bottom:18px; } .app-layout h1 { font-size:24px; line-height:1.4; } .app-layout h2 { font-size:17px; } .app-layout .eyebrow { font-size:11px; margin-bottom:5px; }
.app-layout .muted { color:#596a60; } .app-layout label { font-size:13px; }
.app-layout input:not([type=hidden]):not([type=checkbox]), .app-layout select, .app-layout textarea { padding:9px 11px; border-radius:5px; font-size:14px; color:#26342f; }
.app-layout button,.app-layout .button { padding:9px 15px; border-radius:5px; font-size:13px; }
.app-layout .compact { padding:6px 10px; font-size:12px; } .app-layout input[type=checkbox] { padding:0; }
.app-layout .actions { margin-top:14px; margin-bottom:14px; }
.workflow-form { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px 24px; align-items:start; }
.app-layout .workflow-form>p { margin:0; } .app-layout .workflow-form>p label { margin:0 0 6px; }
.workflow-form>p:has(textarea), .workflow-form>.errorlist { grid-column:1/-1; }
.workflow-form>button { justify-self:start; } .workflow-form>input[type=hidden] { display:none; }
.app-layout table:not(.order-table) { font-size:13px; } .app-layout table:not(.order-table) th { padding:11px 12px; background:#eaf0ec; color:#41574a; white-space:nowrap; }
.app-layout table:not(.order-table) td { padding:11px 12px; vertical-align:middle; border-bottom-color:#dfe5e1; }
.app-layout table:not(.order-table) tbody tr:nth-child(even) { background:#f3f5f5; } .app-layout table:not(.order-table) tbody tr:hover { background:#edf3ef; }
.app-layout .dashboard-card { padding:22px; } .dashboard-card h2 { margin-bottom:8px; } .dashboard-card p { margin-bottom:16px; font-size:13px; } .dashboard-grid { gap:14px; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); }
.heading-actions { display:flex; flex-wrap:wrap; gap:8px; } .heading-count { font-size:13px; color:#607167; font-weight:500; margin-left:8px; }
.app-layout .catalog-search-panel { padding:16px 18px; margin-bottom:14px; }
.catalog-search { display:flex; align-items:flex-end; flex-wrap:wrap; gap:12px; } .catalog-search .field { flex:1; min-width:200px; } .catalog-search .catalog-keyword { flex:2; min-width:260px; }
.catalog-search .field label { margin:0 0 6px; } .catalog-search .field input { width:100%; } .catalog-search-actions { display:flex; gap:8px; padding-bottom:1px; }
.app-layout .catalog-results { padding:0; overflow:hidden; } .catalog-table { min-width:800px; table-layout:fixed; } .catalog-table th:first-child { width:43%; } .catalog-table th:nth-child(2) { width:25%; } .catalog-table th:nth-child(3) { width:12%; } .catalog-table th:nth-child(4),.catalog-table th:nth-child(5) { width:6%; } .catalog-table th:nth-child(6) { width:8%; }
.catalog-product { display:flex; align-items:center; gap:12px; min-width:0; } .catalog-thumbnail { flex:0 0 54px; width:54px; height:54px; background:#e9eeeb; border:1px solid #d8e0da; border-radius:5px; display:flex; align-items:center; justify-content:center; overflow:hidden; text-decoration:none; color:#68786e; font-size:10px; }
.catalog-thumbnail img { width:100%; height:100%; object-fit:contain; } .catalog-product-text { min-width:0; } .catalog-name { display:block; font-size:14px; font-weight:600; color:#234d37; text-decoration:none; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.catalog-code { display:block; color:#68796f; font-size:11px; margin-top:4px; overflow-wrap:anywhere; } .category-name { font-size:13px; line-height:1.6; overflow-wrap:anywhere; } .category-unresolved { color:#94651e; } .number { text-align:right; font-variant-numeric:tabular-nums; white-space:nowrap; } .stock-number { font-weight:700; } .catalog-results .pagination { padding:16px; margin:0; font-size:13px; }
/* Keep the order screen deliberately compact after the shared rules. */
.app-layout .order-search-panel { padding:16px 18px; } .app-layout .order-import-panel { padding:10px 16px; } .app-layout .order-results { padding:0; }
.app-layout .order-filter-field input:not([type=hidden]), .app-layout .order-filter-field select { font-size:13px; padding:5px 8px; }
.app-layout .order-action-group .compact { font-size:12px; padding:7px 10px; } .app-layout .order-table .compact { font-size:11px; padding:7px 8px; }
@media(max-width:1050px) { .app-layout { grid-template-columns:180px minmax(0,1fr); } .app-layout main { padding:22px 18px 40px; } .nav-group a { padding:8px; font-size:12px; } }
@media(max-width:800px) { .header { padding:12px 16px; } .app-layout { display:block; } .sidebar { position:static; min-height:0; padding:10px 14px; border-right:0; border-bottom:1px solid #dce3df; } .sidebar nav { display:flex; flex-wrap:wrap; gap:8px 16px; } .nav-group { margin:0; display:flex; flex-wrap:wrap; gap:3px; } .nav-group>p { display:none; } .nav-group a { margin:0; padding:7px 9px; } .app-layout main { padding:20px 14px 32px; } .workflow-form { grid-template-columns:1fr; } .page-heading { flex-wrap:wrap; } .catalog-search .field,.catalog-search .catalog-keyword { min-width:180px; } .header-account { gap:8px; } }
@media print { .sidebar { display:none!important; } .app-layout { display:block; max-width:none; } .app-layout main,.app-layout .panel { padding:0; } .app-layout table:not(.order-table) td,.app-layout table:not(.order-table) th { padding:3mm; } }

.field-help { margin:6px 0 0; font-size:12px; } .catalog-search select { max-width:100%; }


/* SKU editing stays in a lazy-loaded modal; action links have reserved width. */
.catalog-table { min-width:1120px; } .catalog-table th:first-child { width:30%; } .catalog-table th:nth-child(2) { width:17%; } .catalog-table th:nth-child(3) { width:90px; } .catalog-table th:nth-child(4),.catalog-table th:nth-child(5) { width:50px; } .catalog-table th:nth-child(6) { width:220px; } .catalog-table th:nth-child(7) { width:174px; }
.catalog-row-actions { display:flex; align-items:center; flex-wrap:wrap; gap:6px; white-space:nowrap; }
.app-layout .sku-count-link { padding:3px 6px; background:transparent; color:#24603e; text-decoration:underline; text-underline-offset:3px; font-weight:600; }
.sku-dialog-open { overflow:hidden; } .sku-dialog { width:min(1240px,96vw); max-width:none; max-height:92vh; padding:0; border:1px solid #becfc3; border-radius:10px; color:#26342f; box-shadow:0 20px 70px #12271e44; overflow:hidden; }
.sku-dialog[open] { display:flex; flex-direction:column; } .sku-dialog::backdrop { background:#17241c88; }
.sku-dialog-heading { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:16px 20px; border-bottom:1px solid #dce3df; background:#f6f8f7; }
.sku-dialog-heading h2 { margin:0; font-size:19px; } .sku-dialog-heading p { margin:4px 0 0; color:#607167; font-size:13px; }
.sku-dialog-body { min-height:120px; overflow:auto; padding:18px 20px; } .sku-dialog-body .panel { padding:16px; } .sku-product-caption { color:#607167; font-size:12px; margin:0 0 12px; }
.sku-dialog-footer { position:sticky; bottom:-18px; display:flex; justify-content:flex-end; gap:8px; padding:12px 0; background:#fffffff5; border-top:1px solid #dce3df; } #sku-dialog-error { margin:0 20px 16px; }
.catalog-save-message { color:#24603e; background:#e6f0ea; border:1px solid #b8d2c0; padding:10px 14px; border-radius:6px; }
@media(max-width:650px) { .sku-dialog { width:98vw; max-height:96vh; } .sku-dialog-body { padding:12px; } .sku-dialog-heading { padding:12px; } }


.app-layout .summary-search-panel { padding:16px 20px; margin-bottom:16px; }
.summary-search { display:flex; align-items:flex-end; flex-wrap:wrap; gap:12px 18px; } .summary-search .field { min-width:160px; } .summary-search .field label { margin:0 0 5px; } .summary-search .field input,.summary-search .field select { width:100%; }
.summary-group-options { margin:0; border:0; padding:0; } .summary-group-options legend { font-size:13px; font-weight:600; padding:0; margin-bottom:5px; } .summary-group-options>div { display:flex; gap:6px; }
.summary-group-options label { display:flex; align-items:center; gap:6px; margin:0; padding:8px 12px; border:1px solid #ccd8d0; border-radius:5px; cursor:pointer; }
.app-layout .summary-group-options input[type=radio] { width:16px; height:16px; padding:0; margin:0; accent-color:#276b4a; }
.summary-group-options label:has(input:checked) { background:#e6f0ea; border-color:#619375; color:#1d603b; } .summary-note { margin:12px 0 0; font-size:12px; }
.summary-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin-bottom:16px; } .app-layout .summary-metrics .panel { padding:17px 20px; } .summary-metrics p { margin:0 0 6px; font-size:12px; color:#607167; } .summary-metrics strong { font-size:25px; font-variant-numeric:tabular-nums; } .summary-metrics small { font-size:12px; font-weight:400; }
.app-layout .summary-results { padding:0; overflow:hidden; } .summary-result-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:16px 20px; } .summary-result-heading h2 { margin:0; } .summary-result-heading span { font-size:12px; color:#607167; }
.summary-table { min-width:670px; } .summary-table tfoot { background:#e8f0eb; font-weight:700; } .summary-sales { font-weight:700; } .summary-partial { display:block; font-size:11px; font-weight:400; color:#98672a; }
@media(max-width:700px) { .summary-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); } .summary-metrics strong { font-size:21px; } .summary-result-heading { flex-wrap:wrap; } }


.sortable-images .image-card { width:146px; cursor:grab; } .sortable-images .image-card:active { cursor:grabbing; } .sortable-images .image-card img { width:130px; height:118px; } .image-position { color:#41634e; font-size:11px; font-weight:600; } .image-move-actions { display:flex; gap:6px; }
.sku-bulk-settings { background:#f4f7f5; border:1px solid #d7e1da; border-radius:7px; padding:14px; margin:14px 0; } .sku-bulk-heading { display:flex; align-items:center; flex-wrap:wrap; gap:18px; margin-bottom:10px; } .sku-bulk-heading h3 { font-size:14px; margin:0; } .sku-bulk-scope { display:flex; gap:14px; } .sku-bulk-scope label { display:flex; align-items:center; gap:5px; margin:0; font-size:12px; }
.app-layout .sku-bulk-scope input[type=radio] { width:16px; height:16px; padding:0; margin:0; accent-color:#276b4a; } .sku-bulk-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; } .sku-bulk-field { display:flex; flex-direction:column; gap:8px; min-width:0; } .sku-bulk-field>label { margin:0; font-size:12px; } .sku-bulk-field>.compact,.sku-bulk-buttons { margin-top:auto; } .sku-bulk-buttons { display:flex; flex-wrap:wrap; gap:6px; } .sku-bulk-field input:not([type=checkbox]) { width:100%; min-width:0; }
@media(max-width:900px) { .sku-bulk-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }

/* One complete shipment per row, including all matching and nonmatching items. */
.order-group-items { margin-top:5px; font-size:11px; color:#426651; }
.order-group-items summary { cursor:pointer; }
.order-group-items ul { list-style:none; margin:8px 0 0; padding:0; }
.order-group-items li { padding:7px 0; border-top:1px solid #dce5df; }
.order-group-items .order-sub { font-size:10px; overflow-wrap:anywhere; }
.order-sub-inline { font-size:11px; }
.bundle-table { min-width:1080px; }
.bundle-table th:nth-child(1) { width:45px; } .bundle-table th:nth-child(2) { width:19%; }
.bundle-table th:nth-child(3) { width:24%; } .bundle-table th:nth-child(4) { width:29%; }
.bundle-table th:nth-child(5) { width:55px; } .bundle-table th:nth-child(6) { width:15%; } .bundle-table th:nth-child(7) { width:100px; }
.app-layout .bundle-confirm-group { padding:18px; margin-bottom:14px; }
.bundle-confirm-table { table-layout:fixed; min-width:900px; }
.bundle-confirm-table th:nth-child(1) { width:22%; } .bundle-confirm-table th:nth-child(2) { width:19%; }
.bundle-confirm-table th:nth-child(3) { width:18%; } .bundle-confirm-table th:nth-child(4) { width:35%; }
.bundle-confirm-table .order-one-line { display:block; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }

.order-row-actions { display:flex; flex-direction:column; gap:6px; align-items:flex-start; }
.order-table .col-action { width:142px; }
.app-layout .picking-panel { padding:18px 22px; margin-bottom:14px; border-radius:9px; box-shadow:none; }
.picking-panel .help { margin:8px 0 12px; } .picking-panel .section-heading { margin-bottom:8px; }
.picking-progress { color:#276b4a; font-size:20px; font-weight:700; } .picking-progress small { font-size:12px; font-weight:500; }
.picking-open-form { display:flex; align-items:flex-end; flex-wrap:wrap; gap:12px; }
.picking-open-form .field { min-width:180px; } .picking-open-code { flex:1; max-width:600px; }
.picking-open-form label,.picking-scan-form label { margin:0 0 6px; }
.picking-scan-controls { display:flex; gap:10px; max-width:800px; } .picking-scan-controls input { flex:1; min-width:0; }
.picking-order-code { overflow-wrap:anywhere; }
.picking-table { min-width:980px; table-layout:fixed; } .picking-check-col { width:75px; } .picking-image-col { width:84px; }
.picking-product-col { width:32%; } .picking-sku-col { width:25%; } .picking-count-col { width:70px; } .picking-order-col { width:22%; }
.picking-table .order-one-line { display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.picking-table .picking-checked { background:#e7f2eb!important; } .picking-excluded { color:#7b8580; }
.picking-thumbnail { width:60px; height:60px; object-fit:contain; background:white; border:1px solid #dce5df; border-radius:4px; }
.picking-shipping-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; margin:0; padding:0; border:0; min-width:0; }
.picking-shipping-fields label { margin:0 0 6px; } .picking-shipping-fields select { width:100%; }
.picking-panel button:disabled { cursor:default; opacity:.5; }
.picking-print-code { display:flex; gap:20px; align-items:center; margin:14px 0; } .picking-print-code svg { display:block; width:100px; height:100px; }
@media(max-width:650px) { .picking-shipping-fields { grid-template-columns:1fr; } .picking-scan-controls { flex-wrap:wrap; } .picking-scan-controls input { flex-basis:100%; } .picking-progress { font-size:16px; } }

.shipping-queue-table { min-width:900px; }
.shipping-queue-table th:first-child { width:22%; } .shipping-queue-table th:nth-child(2) { width:18%; }
.shipping-queue-table th:nth-child(3) { width:29%; } .shipping-queue-table th:nth-child(4) { width:60px; }
.shipping-queue-table th:nth-child(5) { width:95px; } .shipping-queue-table th:nth-child(6) { width:145px; }

/* Settlement search is a GET form; fee configuration is a separate POST form. */
.app-layout .settlement-search-panel,.app-layout .settlement-results-panel,.app-layout .settlement-calculation-panel,.app-layout .settlement-preview-panel { padding:18px 22px; margin-bottom:16px; border-radius:9px; box-shadow:none; }
.app-layout .settlement-search-panel { background:#f8faf9; }
.settlement-section-note,.settlement-count { font-size:12px; color:#62716a; }
.settlement-status { border:0; padding:0; margin:0 0 14px; }
.settlement-status legend { font-size:12px; font-weight:600; margin-bottom:6px; }
.settlement-status>div { display:flex; flex-wrap:wrap; gap:7px; }
.settlement-status label { display:flex; align-items:center; gap:6px; margin:0; padding:7px 12px; border:1px solid #bdccc2; border-radius:6px; background:white; cursor:pointer; }
.settlement-status label:has(input:checked) { color:#205f3f; background:#e4efe8; border-color:#48835e; font-weight:700; }
.app-layout .settlement-status input[type=radio] { width:15px; padding:0; accent-color:#276b4a; }
.settlement-search-fields { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:12px; }
.settlement-search-fields label,.settlement-fee-grid label { margin:0 0 6px; }
.settlement-search-fields select { width:100%; min-width:0; }
.settlement-scope { display:flex; flex-wrap:wrap; justify-content:space-between; gap:8px; padding:12px 14px; border-left:4px solid #32764f; background:#edf4ef; margin:12px 0; font-size:13px; }
.settlement-fee-group { border:0; margin:16px 0; padding:0; }
.settlement-fee-group legend { font-weight:700; font-size:13px; margin-bottom:9px; }
.settlement-fee-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.settlement-preview-panel { border-color:#88ad95; }
.settlement-results-panel .help { margin:8px 0 14px; }
.settlement-table { min-width:820px; }
.settlement-members { font-size:11px; margin-top:5px; }
.settlement-members summary { color:#276b4a; cursor:pointer; }
.settlement-members ul { list-style:none; margin:8px 0; padding:0; max-width:360px; }
.settlement-members li { border-top:1px solid #dce5df; padding:7px 0; }
.settlement-product-name { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.settlement-cancelled { background:#f5e8e3; color:#854a39; }
.settlements-main .actions .help { margin:0; }
.settlement-preview-panel button:disabled,.settlement-calculation-panel button:disabled { opacity:.5; cursor:default; }
@media(max-width:700px) { .settlement-fee-grid { grid-template-columns:1fr; } .settlement-section-note { display:none; } .settlements-main .section-heading { flex-wrap:wrap; } }

/* Allocation: the chosen mode controls both input fields and the target list. */
.app-layout .allocation-panel { padding:18px 22px; margin-bottom:16px; }
.allocation-lead { font-size:14px; margin:0 0 12px; }
.allocation-steps { display:flex; flex-wrap:wrap; gap:12px 32px; padding-left:20px; font-size:13px; color:#52675a; margin:0 0 20px; }
.allocation-current { font-size:13px; font-weight:700; color:#276b4a; }
.allocation-mode-options { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; padding:0; border:0; margin:14px 0; }
.allocation-mode-card { display:flex; gap:10px; padding:14px; margin:0; border:1px solid #bdccc2; border-radius:6px; cursor:pointer; }
.allocation-mode-card:has(input:checked) { background:#e9f3ed; border-color:#568d68; }
.app-layout .allocation-mode-card input[type=radio] { width:16px; height:16px; margin:3px 0 0; padding:0; accent-color:#276b4a; }
.allocation-mode-card strong,.allocation-mode-card small { display:block; }
.allocation-mode-card small { font-size:12px; font-weight:400; margin-top:6px; color:#52675a; line-height:1.6; }
.allocation-editor-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.allocation-editor-fields label,.allocation-filter-form label,.allocation-owner-form label { margin:0 0 6px; }
.allocation-editor-fields input,.allocation-editor-fields select { width:100%; min-width:0; }
.allocation-filter-form,.allocation-owner-form { display:flex; flex-wrap:wrap; align-items:flex-end; gap:12px; margin-top:14px; }
.allocation-filter-form .field { min-width:180px; }
.allocation-note { padding:10px 12px; border-left:3px solid #c8a15d; background:#fcf7ed; font-size:12px; }
.allocation-table { table-layout:fixed; min-width:850px; }
.allocation-table th:first-child { width:28%; } .allocation-table th:nth-child(2) { width:18%; } .allocation-table th:nth-child(3) { width:26%; } .allocation-table th:nth-child(4) { width:10%; }
.allocation-product { display:block; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.allocation-row-actions { display:flex; flex-wrap:wrap; gap:7px; align-items:center; }
.allocation-unassigned { margin-top:7px; font-size:11px; } .allocation-unassigned summary { color:#98602d; cursor:pointer; }
.allocation-unassigned ul { list-style:none; padding:0; margin:8px 0; } .allocation-unassigned li { border-top:1px solid #dce5df; padding:7px 0; }
.allocation-main button:disabled { opacity:.5; cursor:default; }
@media(max-width:700px) { .allocation-mode-options,.allocation-editor-fields { grid-template-columns:1fr; } .allocation-main .section-heading { flex-wrap:wrap; gap:6px; } }

.catalog-assignment-help { margin:0 0 12px; font-size:12px; }
.catalog-liver-form { display:flex; flex-direction:column; gap:7px; }
.app-layout .catalog-liver-form select { width:100%; min-width:0; padding:7px 8px; font-size:12px; }
.catalog-liver-actions { display:flex; flex-wrap:wrap; gap:6px; }
.catalog-liver-hint { display:block; font-size:11px; margin-top:5px; }
.catalog-liver-stopped { display:block; font-size:11px; color:#98602d; margin-bottom:5px; }
.catalog-liver-form button:disabled { opacity:.5; cursor:default; }

.settlement-rate-grid { grid-template-columns:minmax(0,300px); }
.settlement-formula { padding:10px 14px; border-left:3px solid #32764f; background:#edf4ef; font-size:13px; line-height:1.7; }

.password-reset-link { margin-top:20px; font-size:13px; }
.recovery-panel h1 { margin-bottom:18px; }
.recovery-panel>p { margin:16px 0; line-height:1.7; }
.recovery-panel .field { margin:16px 0; }
.recovery-panel .field label { margin:0 0 7px; }
.recovery-panel .field input { width:100%; }
.recovery-panel .help { font-size:12px; line-height:1.7; margin:8px 0; }
.recovery-panel .help ul { padding-left:20px; }

.picking-order-code { font-family:ui-monospace,"SFMono-Regular",Consolas,monospace; font-weight:700; font-variant-numeric:tabular-nums; letter-spacing:.04em; }

.settings-form { display:flex; flex-direction:column; gap:18px; }
.settings-form .form-panel { margin-bottom:0; }
.settings-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:4px 24px; }
.settings-fields .field { min-width:0; }
.settings-fields input,.settings-fields select { width:100%; }
.public-layout .settings-main { padding-top:26px; }
@media(max-width:700px) { .settings-fields { grid-template-columns:1fr; } }
.mfa-panel ol { padding-left:20px; line-height:1.8; font-size:14px; }
.mfa-qr { margin:20px auto; text-align:center; }
.mfa-qr svg { display:block; max-width:100%; height:auto; margin:auto; }
.mfa-key { display:block; overflow-wrap:anywhere; padding:12px; background:#f3f6f4; }
.mfa-codes { padding-left:20px; line-height:2; font-size:15px; }
