:root {
  --bg: #f5f5f7; --surface: rgba(255,255,255,.88); --solid: #fff; --ink: #161617;
  --muted: #727277; --line: rgba(20,20,25,.08); --blue: #0a84ff; --blue-dark: #0066d6;
  --green: #1f9d68; --orange: #d97706; --red: #df3b46; --purple: #7657d6;
  --shadow: 0 18px 48px rgba(36,38,46,.08); --radius: 22px;
}
* { box-sizing: border-box; }
html { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Helvetica Neue", sans-serif; color: var(--ink); background: var(--bg); }
body { margin: 0; min-width: 320px; min-height: 100vh; background: radial-gradient(circle at 78% -15%, #e2efff 0, transparent 31%), var(--bg); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.login-view { min-height: 100vh; position: relative; display: grid; grid-template-columns: 1fr 480px; align-items: center; gap: 8vw; padding: 7vw 11vw; }
.login-brand { display: flex; align-items: center; gap: 28px; }
.login-brand strong { display: block; font-size: clamp(42px, 6vw, 88px); letter-spacing: .16em; font-weight: 650; }
.login-brand small { display: block; margin-top: 12px; color: var(--muted); font-size: 13px; letter-spacing: .32em; }
.brand-mark { width: 42px; height: 42px; position: relative; display: grid; place-items: center; color: white; background: #111; border-radius: 12px; overflow: hidden; }
.brand-mark.large { width: 110px; height: 110px; border-radius: 28px; box-shadow: 0 18px 45px rgba(0,0,0,.18); }
.brand-mark span { font-size: 28px; line-height: 1; font-weight: 800; transform: translateX(-1px); }
.brand-mark.large span { font-size: 68px; }
.brand-mark i { position: absolute; right: 7px; top: 7px; width: 10px; height: 10px; border: 2px solid white; border-left: 0; border-bottom: 0; opacity: .8; }
.glass { background: rgba(255,255,255,.76); border: 1px solid rgba(255,255,255,.95); box-shadow: var(--shadow); backdrop-filter: blur(26px); -webkit-backdrop-filter: blur(26px); }
.login-panel { padding: 48px; border-radius: 32px; }
.eyebrow { color: var(--blue); font-size: 11px; font-weight: 750; letter-spacing: .18em; }
.login-panel h1 { margin: 10px 0 8px; font-size: 38px; letter-spacing: -.04em; }
.login-panel p { color: var(--muted); margin: 0 0 30px; }
label { display: grid; gap: 9px; color: #55555b; font-size: 13px; font-weight: 600; }
input, select, textarea { width: 100%; border: 1px solid var(--line); outline: 0; background: rgba(248,248,250,.92); border-radius: 13px; color: var(--ink); padding: 13px 14px; transition: .2s; }
input:focus, select:focus, textarea:focus { border-color: rgba(10,132,255,.55); box-shadow: 0 0 0 4px rgba(10,132,255,.1); background: white; }
.login-panel form { display: grid; gap: 18px; }
.primary-button, .secondary-button { border: 0; border-radius: 13px; padding: 13px 20px; font-weight: 680; transition: .2s; }
.primary-button { color: white; background: var(--blue); box-shadow: 0 8px 18px rgba(10,132,255,.22); }
.primary-button:hover { background: var(--blue-dark); transform: translateY(-1px); }
.primary-button.compact { padding: 10px 16px; box-shadow: none; }
.secondary-button { color: var(--ink); background: #ededf1; }
.demo-note { margin-top: 23px; padding-top: 20px; border-top: 1px solid var(--line); color: #898990; font-size: 12px; line-height: 1.65; }
.filing-footer { color: #929298; text-align: center; font-size: 11px; letter-spacing: .02em; }
.filing-footer a { color: inherit; text-decoration: none; transition: color .2s; }
.filing-footer a:hover { color: var(--blue); text-decoration: underline; }
.login-filing { position: absolute; right: 0; bottom: 18px; left: 0; padding: 0 18px; }
.app-filing { max-width: 1500px; margin: 0 auto; padding: 0 24px 24px; }
.form-error { min-height: 16px; color: var(--red); font-size: 12px; text-align: center; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 236px 1fr; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 236px; z-index: 10; display: flex; flex-direction: column; padding: 26px 18px 20px; background: rgba(250,250,252,.8); border-right: 1px solid var(--line); backdrop-filter: blur(26px); -webkit-backdrop-filter: blur(26px); }
.sidebar-brand { display: flex; align-items: center; gap: 13px; padding: 0 9px 30px; }
.sidebar-brand strong { letter-spacing: .16em; font-size: 18px; }
.sidebar nav { display: grid; gap: 5px; }
.nav-item { width: 100%; display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 9px; border: 0; border-radius: 13px; padding: 11px 12px; color: #68686e; background: transparent; text-align: left; font-size: 14px; font-weight: 620; }
.nav-item:hover { background: rgba(0,0,0,.035); }
.nav-item.active { color: #111; background: white; box-shadow: 0 5px 18px rgba(35,37,45,.07); }
.nav-icon { font-size: 20px; text-align: center; font-weight: 450; }
.nav-item b { min-width: 20px; padding: 3px 6px; border-radius: 10px; color: white; background: var(--red); font-size: 10px; text-align: center; }
.sidebar-footer { margin-top: auto; display: grid; grid-template-columns: 38px 1fr 28px; align-items: center; gap: 10px; padding: 14px 8px 0; border-top: 1px solid var(--line); }
.avatar { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: white; background: #1c1c1e; font-weight: 700; }
.sidebar-footer strong, .sidebar-footer small { display: block; }
.sidebar-footer strong { font-size: 12px; }.sidebar-footer small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.sidebar-footer button { border: 0; color: var(--muted); background: transparent; font-size: 17px; }
.main-area { grid-column: 2; min-width: 0; }
.topbar { height: 112px; position: sticky; top: 0; z-index: 8; display: flex; align-items: center; justify-content: space-between; padding: 22px clamp(24px, 4vw, 62px); border-bottom: 1px solid var(--line); background: rgba(245,245,247,.78); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
.topbar p { margin: 0 0 5px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.topbar h1 { margin: 0; font-size: 27px; letter-spacing: -.035em; }
.top-actions { display: flex; gap: 10px; }
.icon-button { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 12px; color: #555; background: rgba(255,255,255,.72); font-size: 20px; }
.page-content { max-width: 1500px; margin: auto; padding: 34px clamp(24px,4vw,62px) 70px; }
.loading-card, .empty-state { padding: 70px 30px; border-radius: var(--radius); color: var(--muted); background: white; text-align: center; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
.stat-card, .card { border: 1px solid rgba(255,255,255,.8); background: var(--surface); box-shadow: 0 12px 35px rgba(38,40,48,.055); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.stat-card { padding: 21px; border-radius: 20px; }
.stat-head { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 12px; }
.stat-symbol { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; color: var(--blue); background: #e7f2ff; font-weight: 750; }
.stat-value { margin-top: 19px; font-size: 28px; font-weight: 720; letter-spacing: -.035em; }
.stat-caption { margin-top: 6px; color: #99999f; font-size: 11px; }
.logistics-stats .stat-value { font-size: 20px; }.logistics-totals { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); margin: 14px 0 18px; }.logistics-totals > div { display: grid; gap: 5px; }.logistics-totals > div:last-child { text-align: right; }
.inventory-value-stats { grid-template-columns: repeat(2,minmax(0,1fr)); margin: 16px 0; }.inventory-value-stats .stat-card:first-child { background: linear-gradient(145deg,rgba(255,255,255,.96),rgba(240,247,255,.92)); }.inventory-value-stats .stat-card:last-child { background: linear-gradient(145deg,rgba(255,255,255,.96),rgba(237,250,244,.94)); }.inventory-value-stats .stat-value { font-size: 24px; }
.logistics-carrier-title { margin-top: 22px; }.carrier-stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
.section-actions { display: flex; align-items: center; gap: 10px; }.product-import-sheet { width: min(980px,calc(100vw - 32px)); }.import-steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin: 4px 0 16px; }.import-steps > div { display: grid; grid-template-columns: 32px 1fr; gap: 2px 10px; align-items: center; padding: 14px; background: #f6f7fa; border-radius: 14px; }.import-steps span { grid-row: 1 / 3; display: grid; place-items: center; width: 32px; height: 32px; color: #fff; background: #0a84ff; border-radius: 50%; font-weight: 700; }.import-steps strong { font-size: 13px; }.import-steps small { color: #8e8e93; font-size: 11px; }.import-file-field { display: block; margin: 18px 0 12px; padding: 16px; background: #f7f8fa; border: 1px dashed #c9ccd3; border-radius: 14px; }.import-file-field input { display: block; margin: 10px 0 6px; }.product-import-result { min-height: 92px; }.import-summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin: 12px 0 16px; }.import-summary > div { display: grid; gap: 4px; padding: 14px; background: #edf7f2; border-radius: 14px; text-align: center; }.import-summary > div:nth-child(2) { background: #f4f4f7; }.import-summary > div.has-error { background: #fff0ef; }.import-summary strong { color: #172033; font-size: 24px; }.import-summary span { color: #737780; font-size: 11px; }.import-preview-title { margin: 14px 0 8px; font-size: 13px; font-weight: 700; }.import-issues { margin-top: 12px; padding: 13px 15px; border-radius: 12px; font-size: 12px; }.import-issues ul { max-height: 150px; overflow: auto; margin: 8px 0 0; padding-left: 20px; }.import-issues li + li { margin-top: 5px; }.import-issues.error { color: #9d2b25; background: #fff0ef; }.import-issues.duplicate { color: #6c5a14; background: #fff9df; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(280px,.8fr); gap: 18px; margin-top: 18px; }
.dashboard-scope { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; color: var(--muted); font-size: 11px; }.dashboard-scope > div { display: flex; align-items: center; gap: 8px; }.dashboard-scope-actions { justify-content: flex-end; }.dashboard-scope strong { color: var(--ink); }.scope-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(31,157,104,.11); }
.revenue-overview { display: grid; grid-template-columns: 1.35fr 1fr 1fr 1fr; gap: 14px; }
.revenue-card { min-height: 148px; display: flex; flex-direction: column; justify-content: space-between; padding: 19px; border: 1px solid rgba(28,28,30,.07); border-radius: 18px; background: rgba(255,255,255,.9); box-shadow: 0 10px 28px rgba(36,38,46,.05); }.revenue-card.primary { border-color: rgba(10,132,255,.2); background: linear-gradient(145deg,#fff 0%,#f0f7ff 100%); }
.dashboard-link-card { width: 100%; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: transform .18s ease,box-shadow .18s ease,border-color .18s ease; }.dashboard-link-card:hover { transform: translateY(-2px); border-color: rgba(10,132,255,.28); box-shadow: 0 14px 34px rgba(10,132,255,.11); }.dashboard-link-card:focus-visible { outline: 3px solid rgba(10,132,255,.22); outline-offset: 2px; }
.revenue-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }.revenue-card-head span,.revenue-card-head small,.revenue-numbers strong,.revenue-numbers span { display: block; }.revenue-card-head span { font-size: 13px; font-weight: 720; }.revenue-card-head small { margin-top: 5px; color: var(--muted); font-size: 9px; }.revenue-card-head b { min-width: 32px; padding: 7px; border-radius: 10px; color: var(--blue); background: #e8f3ff; text-align: center; font-size: 11px; }.revenue-card-head b.alert { color: var(--red); background: #ffe8ea; }
.revenue-numbers strong { font-size: 19px; letter-spacing: -.025em; }.revenue-numbers span { margin-top: 5px; color: var(--muted); font-size: 9px; }.revenue-progress { height: 5px; margin-top: 13px; overflow: hidden; border-radius: 99px; background: #dfe5ed; }.revenue-progress i { height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg,#0a84ff,#67b7ff); transition: width .35s ease; }
.kanban-section { margin-top: 28px; scroll-margin-top: 22px; }.kanban-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 14px; }.kanban-heading > div { display: flex; align-items: center; gap: 10px; }.kanban-heading h2 { margin: 0; font-size: 18px; }.kanban-heading p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }.board-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: #e9e9ed; font-size: 16px; }
.kanban-board { display: grid; grid-template-columns: repeat(6,minmax(220px,1fr)); gap: 12px; overflow-x: auto; padding: 2px 2px 14px; scroll-snap-type: x proximity; }
.kanban-column { min-height: 360px; overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: rgba(239,239,242,.68); scroll-snap-align: start; transition: .18s; }.kanban-column.drag-over { border-color: var(--blue); background: rgba(10,132,255,.08); box-shadow: inset 0 0 0 2px rgba(10,132,255,.15); transform: translateY(-2px); }
.kanban-column-head { width: 100%; padding: 14px 14px 11px; border: 0; border-bottom: 1px solid var(--line); color: inherit; background: transparent; font: inherit; text-align: left; cursor: pointer; transition: background .18s ease; }.kanban-column-head:hover { background: rgba(10,132,255,.045); }.kanban-column-head:focus-visible { outline: 2px solid rgba(10,132,255,.24); outline-offset: -2px; }.kanban-column-head > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; }.kanban-column-head span { padding: 5px 8px; border-radius: 7px; font-size: 10px; font-weight: 720; }.kanban-column-head b { color: var(--muted); font-size: 11px; }.kanban-column-head small { display: block; margin-top: 7px; color: var(--muted); font-size: 8px; }.color-amber .kanban-column-head span { color: #8a6000; background: #fff0c4; }.color-blue .kanban-column-head span { color: #0872d1; background: #e4f1ff; }.color-purple .kanban-column-head span { color: #6546bd; background: #eee8ff; }.color-orange .kanban-column-head span { color: #a85a00; background: #ffead2; }.color-teal .kanban-column-head span { color: #087d78; background: #dff7f5; }.color-green .kanban-column-head span { color: #16835a; background: #ddf7eb; }
.kanban-dropzone { min-height: 295px; max-height: min(62vh,620px); display: grid; align-content: start; gap: 9px; overflow-y: auto; overscroll-behavior: contain; padding: 10px; scrollbar-width: thin; scrollbar-color: rgba(98,98,105,.28) transparent; }.kanban-dropzone::-webkit-scrollbar { width: 5px; }.kanban-dropzone::-webkit-scrollbar-thumb { border-radius: 99px; background: rgba(98,98,105,.24); }.kanban-empty { padding: 30px 10px; color: #aaaab0; text-align: center; font-size: 9px; }
.kanban-card { padding: 13px; border: 1px solid rgba(20,20,25,.08); border-radius: 13px; background: #fff; box-shadow: 0 4px 14px rgba(35,37,45,.055); transition: transform .15s,opacity .15s,box-shadow .15s; }.kanban-card.is-movable { cursor: grab; }.kanban-card.is-movable:active { cursor: grabbing; }.kanban-card.is-movable:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(35,37,45,.09); }.kanban-card.dragging { opacity: .42; transform: rotate(1.5deg) scale(.98); }
.kanban-card-top,.kanban-card-foot,.kanban-amount { display: flex; align-items: center; justify-content: space-between; gap: 8px; }.kanban-card-top strong { font-size: 10px; }.kanban-card-top span { color: var(--muted); font-size: 8px; }.kanban-card h3 { margin: 13px 0 4px; font-size: 13px; }.kanban-card p { min-height: 28px; margin: 0; color: var(--muted); font-size: 9px; line-height: 1.5; }.kanban-amount { align-items: flex-end; margin-top: 13px; padding-top: 11px; border-top: 1px solid var(--line); }.kanban-amount strong { font-size: 11px; }.kanban-amount small { color: var(--muted); font-size: 8px; }.kanban-card-foot { margin-top: 11px; }.kanban-card-foot > span { padding: 4px 7px; border-radius: 99px; color: #55555b; background: #f1f1f4; font-size: 8px; }.kanban-card-foot select { width: auto; max-width: 92px; padding: 5px 23px 5px 7px; border-radius: 8px; background-color: #f7f7f9; font-size: 8px; }.kanban-card-foot > small { color: #a16a00; font-size: 8px; }
.kanban-column.is-dense .kanban-dropzone { gap:6px; padding:8px; }.kanban-column.is-dense .kanban-card { padding:10px; border-radius:11px; }.kanban-column.is-dense .kanban-card h3 { margin:7px 0 2px; font-size:11px; }.kanban-column.is-dense .kanban-card p { min-height:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:8px; }.kanban-column.is-dense .kanban-amount { margin-top:7px; padding-top:7px; }.kanban-column.is-dense .kanban-card-foot { margin-top:7px; }.kanban-column.is-dense .kanban-card-foot > span { max-width:82px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; padding:3px 6px; }.kanban-column.is-ultra-dense .kanban-dropzone { gap:5px; padding:7px; }.kanban-column.is-ultra-dense .kanban-card { padding:8px 9px; border-radius:10px; }.kanban-column.is-ultra-dense .kanban-card h3 { margin:5px 0 1px; font-size:10px; }.kanban-column.is-ultra-dense .kanban-card p { min-height:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:7.5px; }.kanban-column.is-ultra-dense .kanban-amount { margin-top:5px; padding-top:5px; }.kanban-column.is-ultra-dense .kanban-amount small { max-width:92px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.kanban-column.is-ultra-dense .kanban-card-foot { margin-top:5px; }
.overview-grid { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(280px,.75fr); gap: 18px; margin-top: 18px; }
.status-overview { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; padding: 20px; }
.status-box { padding: 15px; border-radius: 15px; background: #f7f7f9; }
.status-box span { display: block; color: var(--muted); font-size: 10px; }.status-box strong { display: block; margin-top: 8px; font-size: 22px; }
.inventory-ring-wrap { display: grid; grid-template-columns: 128px 1fr; align-items: center; gap: 18px; padding: 20px; }
.inventory-ring { width: 124px; height: 124px; display: grid; place-items: center; position: relative; border-radius: 50%; background: conic-gradient(var(--blue) var(--stock-angle,70%), #e8e8ed 0); }
.inventory-ring::before { content: ""; position: absolute; width: 88px; height: 88px; border-radius: 50%; background: white; }.inventory-ring div { position: relative; text-align: center; }.inventory-ring strong,.inventory-ring small { display: block; }.inventory-ring strong { font-size: 24px; }.inventory-ring small { color: var(--muted); font-size: 9px; }
.inventory-summary { display: grid; gap: 13px; }.inventory-summary div { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 11px; }.inventory-summary strong { color: var(--ink); }
.card { border-radius: var(--radius); overflow: hidden; }
.card-head { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 18px 21px; border-bottom: 1px solid var(--line); }
.card-head h2 { margin: 0; font-size: 16px; }.card-head p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.text-button { border: 0; color: var(--blue); background: transparent; font-size: 12px; font-weight: 650; }
.table-wrap { overflow-x: auto; }
.order-drag-scroll { cursor: grab; scroll-behavior: auto; }.order-drag-scroll.is-dragging { cursor: grabbing; user-select: none; }.order-list-table { min-width: 1420px; }.order-list-table .order-sticky-identity { position: sticky; left: 0; z-index: 2; min-width: 190px; max-width: 220px; background: #fff; box-shadow: 8px 0 16px -14px rgba(25,30,40,.55); }.order-list-table thead .order-sticky-identity { z-index: 4; background: rgba(248,248,250,.98); }.order-scroll-hint { margin-left:auto; color:var(--muted); font-size:9px; white-space:nowrap; }
.managed-scroll-panel { max-height: 320px; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(98,98,105,.3) transparent; transition: max-height .28s ease; }.managed-scroll-panel.is-expanded { max-height: min(72vh,780px); }.managed-scroll-panel::-webkit-scrollbar { width: 7px; height: 7px; }.managed-scroll-panel::-webkit-scrollbar-thumb { border: 2px solid transparent; border-radius: 99px; background: rgba(98,98,105,.3); background-clip: padding-box; }.managed-scroll-panel thead { position: sticky; top: 0; z-index: 3; box-shadow: 0 1px 0 var(--line); }.managed-scroll-panel thead th { background: rgba(248,248,250,.97); backdrop-filter: blur(12px); }
table { width: 100%; border-collapse: collapse; white-space: nowrap; }
th { padding: 12px 17px; color: #929298; background: rgba(248,248,250,.7); font-size: 10px; text-align: left; letter-spacing: .04em; }
.inventory-sort-button { display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; color: inherit; background: transparent; font: inherit; letter-spacing: inherit; white-space: nowrap; }
.inventory-sort-button:hover,.inventory-sort-button:focus-visible { color: var(--blue); }
.inventory-sort-button span { color: var(--blue); font-size: 12px; }
td { padding: 15px 17px; border-top: 1px solid var(--line); font-size: 12px; }
tbody tr { transition: .18s; } tbody tr:hover { background: rgba(10,132,255,.03); }
.primary-cell strong, .primary-cell small { display: block; }.primary-cell small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.product-cell { display: flex; align-items: center; gap: 11px; }
.product-picture { display: grid; place-items: center; overflow: hidden; flex: 0 0 auto; border: 1px solid #e3e3e8; border-radius: 11px; color: #9a9aa1; background: linear-gradient(145deg,#fafafa,#f0f0f3); text-align: center; }
.product-picture img { width: 100%; height: 100%; display: block; object-fit: contain; background: white; }
.product-picture span { max-width: 80%; font-size: 9px; line-height: 1.25; }
.product-picture.table { width: 58px; height: 48px; }
.product-picture.order { width: 42px; height: 38px; border-radius: 9px; }
.product-picture.order span { font-size: 7px; }
.product-picture.preview { width: 78px; height: 68px; border-radius: 15px; }
.product-picture.editor { width: 170px; height: 136px; border-radius: 18px; background: white; }
.selected-product-preview { min-height: 86px; display: flex; align-items: center; gap: 14px; padding: 9px 12px; border: 1px solid #e2e8f1; border-radius: 16px; background: #f6f9fd; }
.selected-product-preview strong,.selected-product-preview small { display: block; }
.selected-product-preview strong { font-size: 13px; }
.selected-product-preview small { margin-top: 6px; color: var(--muted); font-size: 10px; }
.order-items-section { display: grid; gap: 12px; }
.order-items-head,.order-item-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.order-items-head strong,.order-items-head small { display: block; }
.order-items-head strong { font-size: 14px; }.order-items-head small { margin-top: 4px; color: var(--muted); font-size: 11px; }
#orderItems { display: grid; gap: 10px; }
.order-item { display: grid; gap: 12px; padding: 15px; border: 1px solid #dfe5ed; border-radius: 18px; background: #fbfcff; }
.order-item-title strong { font-size: 13px; }.order-item-title button:disabled { opacity: .35; cursor: not-allowed; }
.customer-select-field { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 10px; }
.customer-select-field .secondary-button { height: 43px; white-space: nowrap; }
.order-item-fields { display: grid; grid-template-columns: minmax(140px,1.2fr) minmax(120px,1fr) minmax(120px,1fr) 76px minmax(110px,.8fr); gap: 10px; }
.order-item-fields.has-admin-cost { grid-template-columns: minmax(135px,1.15fr) minmax(105px,.9fr) minmax(105px,.9fr) 72px minmax(100px,.8fr) minmax(145px,1fr); }
.order-item-fields label { min-width: 0; }
.order-item-fields select,.order-item-fields input { width: 100%; }
.admin-purchase-cost-field { padding: 8px 10px; border: 1px solid #f0d18b; border-radius: 12px; background: #fff9e9; }.admin-purchase-cost-field small { color: #9a6b12; font-size: 8px; line-height: 1.35; }
.order-admin-cost-preview { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; margin-top: 10px; }.order-admin-cost-preview>div { display: grid; gap: 5px; padding: 13px 14px; border: 1px solid #efd89f; border-radius: 13px; background: #fffaf0; }.order-admin-cost-preview span { color: #84601a; font-size: 9px; }.order-admin-cost-preview strong { font-size: 13px; }
.order-items-mini { margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.product-image-editor { display: flex; align-items: center; gap: 18px; padding: 14px; border: 1px solid var(--line); border-radius: 18px; background: #f8f8fa; }
.product-image-controls { min-width: 0; flex: 1; display: grid; gap: 12px; }
.product-image-controls input[type=file] { padding: 9px; background: white; font-size: 11px; }
.product-image-controls input[type=file]::file-selector-button { margin-right: 10px; padding: 7px 10px; border: 0; border-radius: 8px; color: #075ca8; background: #eaf3ff; font-weight: 650; }
.remove-product-image { display: flex; grid-template-columns: auto 1fr; align-items: center; gap: 7px; width: fit-content; color: var(--red); font-size: 11px; }
.remove-product-image input { width: 16px; height: 16px; padding: 0; accent-color: var(--red); }
.read-only-badge { padding: 7px 10px; border-radius: 999px; color: #707078; background: #ededf1; font-size: 10px; font-weight: 650; }
.read-only-text { color: var(--muted); font-size: 10px; }
.status-pill, .change-pill { display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border-radius: 999px; font-size: 10px; font-weight: 680; }
.status-pill::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.tone-neutral { color: #696970; background: #eeeef1; }.tone-warning { color: #9a6500; background: #fff0c7; }.tone-blue { color: #0872d1; background: #e4f1ff; }.tone-purple { color: #6546bd; background: #eee8ff; }.tone-orange { color: #a85a00; background: #ffead2; }.tone-teal { color: #087d78; background: #dff7f5; }.tone-green { color: #16835a; background: #ddf7eb; }.tone-red { color: #c52d39; background: #ffe4e7; }
.material-list { padding: 6px 20px; }
.material-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 17px 0; border-bottom: 1px solid var(--line); }.material-row:last-child { border-bottom: 0; }
.material-row strong, .material-row small { display: block; }.material-row small { margin-top: 5px; color: var(--muted); font-size: 10px; }
.material-price { text-align: right; }.material-price strong { font-size: 14px; }.change-up { color: var(--red); }.change-down { color: var(--green); }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 17px; }
.order-create-banner { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 17px; padding: 20px 22px; border: 1px solid #d7e8ff; border-radius: 20px; background: linear-gradient(135deg,#eef7ff 0%,#fff 55%,#f0f8ff 100%); box-shadow: 0 10px 30px rgba(10,132,255,.06); }
.order-create-banner span,.order-create-banner strong,.order-create-banner small { display: block; }.order-create-banner span { margin-bottom: 7px; color: var(--blue); font-size: 9px; font-weight: 750; letter-spacing: .14em; }.order-create-banner strong { font-size: 15px; }.order-create-banner small { margin-top: 5px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.shared-space { margin-bottom: 18px; padding: 19px; border: 1px solid #dfe6ef; border-radius: 20px; background: rgba(255,255,255,.78); box-shadow: 0 10px 34px rgba(30,50,80,.05); }.shared-space-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 14px; }.shared-space-head h2 { margin: 5px 0 0; font-size: 17px; }.shared-space-head p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }.shared-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }.shared-card { min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 15px; background: #fbfcfe; }.shared-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }.shared-card-head>span { color: var(--blue); font-size: 9px; font-weight: 750; letter-spacing: .08em; }.shared-card-head>div { display: flex; gap: 5px; }.shared-card>strong { display: block; font-size: 12px; }.shared-card p { margin: 8px 0 0; color: #555b65; font-size: 10px; line-height: 1.65; word-break: break-word; }.shared-action { border: 0; padding: 4px 6px; border-radius: 7px; color: var(--blue); background: #eaf3ff; font-size: 8px; }.shared-action.danger { color: #b42318; background: #fff0ee; }.shared-file-link { display: block; margin-top: 9px; color: var(--blue); font-size: 10px; line-height: 1.45; word-break: break-all; }.shared-empty { grid-column: 1/-1; padding: 18px; border-radius: 12px; color: var(--muted); background: #f6f7f9; font-size: 11px; text-align: center; }
.segmented { display: inline-flex; padding: 3px; border-radius: 11px; background: #e9e9ed; }
.segmented button { border: 0; border-radius: 9px; padding: 7px 13px; color: #737378; background: transparent; font-size: 11px; font-weight: 650; }
.segmented button.active { color: #111; background: white; box-shadow: 0 2px 8px rgba(0,0,0,.1); }
.search-input { width: min(300px, 50vw); background: rgba(255,255,255,.8); }
.table-filter-row th { padding-top: 7px; padding-bottom: 9px; background: #f7f8fa; }
.table-filter-row input,.table-filter-row select { width: 100%; min-width: 105px; height: 32px; padding: 6px 8px; border: 1px solid #dfe2e8; border-radius: 8px; color: var(--ink); background: #fff; font-size: 10px; font-weight: 550; }
.table-filter-row th:empty::after { content: "—"; color: #c2c5ca; }
.table-filter-reset { width: 100%; min-width: 58px; height: 32px; border: 0; border-radius: 8px; color: var(--blue); background: #eaf3ff; font-size: 10px; font-weight: 700; cursor: pointer; }
.manual-edit-hint { color: var(--muted); font-size: 11px; }
.management-actions { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 16px 0 4px; padding: 16px 18px; border: 1px solid #d8e8fa; border-radius: 16px; background: linear-gradient(135deg,#eff7ff,#fff); }.management-actions strong,.management-actions span { display: block; }.management-actions strong { font-size: 13px; }.management-actions span { margin-top: 4px; color: var(--muted); font-size: 10px; }
.inventory-movement-sheet { width: min(1060px,calc(100vw - 32px)); }.inventory-movement-balance { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-bottom: 15px; }.inventory-movement-balance>div { padding: 13px 15px; border-radius: 13px; background: #f4f7fb; }.inventory-movement-balance span,.inventory-movement-balance strong { display: block; }.inventory-movement-balance span { color: var(--muted); font-size: 10px; }.inventory-movement-balance strong { margin-top: 4px; font-size: 20px; }.inventory-ledger-section { margin-top: 20px; }.inventory-ledger-section h3 { margin: 0; font-size: 15px; }.inventory-ledger-section p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }.inventory-ledger-wrap { max-height: 390px; overflow: auto; }.inventory-ledger-wrap td strong,.inventory-ledger-wrap td small { display: block; }.inventory-ledger-wrap td small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.section-title { display: flex; align-items: flex-end; justify-content: space-between; margin: 30px 0 15px; }.section-title:first-child { margin-top: 0; }.section-title h2 { margin: 0; font-size: 18px; }.section-title p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.material-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.customer-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; margin-bottom: 18px; }
.customer-card { padding: 18px; }.customer-card .customer-initial { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 12px; color: white; background: #1c1c1e; font-size: 14px; font-weight: 700; }
.customer-card h3 { margin: 15px 0 5px; font-size: 14px; }.customer-card p { min-height: 16px; margin: 0; color: var(--muted); font-size: 10px; }.customer-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 15px; padding-top: 13px; border-top: 1px solid var(--line); }.customer-metrics strong,.customer-metrics small { display: block; }.customer-metrics strong { font-size: 13px; }.customer-metrics small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.top-products { display: grid; min-width: 250px; gap: 6px; }.top-products > span { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 6px; font-size: 10px; }.top-products b { color: var(--blue); font-size: 8px; letter-spacing: .04em; }.top-products small,.recent-order-note { display: block; color: var(--muted); font-size: 8px; white-space: nowrap; }.recent-order-note { margin-top: 3px; }
.product-edit-cell { min-width: 150px; }.visible-edit-button { width: max-content; margin-top: 8px; padding: 7px 12px; }
.supplier-product-table-wrap { overflow-x: visible; }
.supplier-product-table { width: 100%; table-layout: fixed; white-space: normal; }
.supplier-product-table .col-picture { width: 68px; }
.supplier-product-table .col-product { width: 15%; }
.supplier-product-table .col-model { width: 9%; }
.supplier-product-table .col-supplier { width: 10%; }
.supplier-product-table .col-specification { width: 20%; }
.supplier-product-table .col-material { width: 12%; }
.supplier-product-table .col-purchase { width: 10%; }
.supplier-product-table .col-sale { width: 10%; }
.supplier-product-table .col-updated { width: 84px; }
.supplier-product-table th { padding: 11px 9px; line-height: 1.35; }
.supplier-product-table td { padding: 13px 9px; vertical-align: top; line-height: 1.55; overflow-wrap: anywhere; word-break: break-word; }
.supplier-product-table .product-edit-cell { min-width: 0; }
.supplier-product-table .product-picture.table { width: 48px; height: 42px; }
.supplier-product-table .specification-cell strong { white-space: pre-line; font-weight: 560; }
.supplier-product-table .supplier-name-cell,
.supplier-product-table .material-name-cell { white-space: normal; }
.supplier-product-table .price-value-cell,
.supplier-product-table .updated-date-cell { white-space: nowrap; font-size: 11px; }
.supplier-product-table .visible-edit-button { max-width: 100%; white-space: nowrap; }
.supplier-account-panel { padding: 15px; border: 1px solid #d8e8fa; border-radius: 16px; background: linear-gradient(135deg,#f1f8ff,#fff); }
.supplier-account-panel > div:first-child strong,
.supplier-account-panel > div:first-child small { display: block; }
.supplier-account-panel > div:first-child strong { font-size: 13px; }
.supplier-account-panel > div:first-child small { margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.supplier-account-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-top: 14px; }
.supplier-account-fields .wide { grid-column: 1/-1; }
.account-info-cell { min-width: 190px; white-space: normal; }
.payment-order-info { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px; border: 1px solid #dce8f6; border-radius: 14px; background: #f5f9ff; }.payment-order-info strong { color: #173a5e; font-size: 14px; }.payment-order-info span { color: var(--muted); font-size: 10px; text-align: right; }.supplier-payment-cell { min-width: 205px; }.supplier-payment-cell em { display: block; margin-top: 7px; color: var(--muted); font-size: 9px; font-style: normal; }.supplier-pay-button { display: block; margin-top: 8px; color: #8a5b00; background: #fff3d3; }
.supplier-payment-relations { overflow: hidden; border: 1px solid #dbe6f2; border-radius: 16px; background: #f8fbff; }
.relation-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 15px; border-bottom: 1px solid #e2eaf3; }
.relation-head strong,.relation-head small { display: block; }.relation-head strong { font-size: 12px; }.relation-head small { margin-top: 3px; color: var(--muted); font-size: 9px; }.relation-head>span { color: #46617d; font-size: 9px; }
.relation-list { display: grid; max-height: 250px; overflow-y: auto; }
.relation-row { display: grid; grid-template-columns: 18px minmax(0,1fr) 140px; align-items: center; gap: 11px; padding: 11px 15px; border-bottom: 1px solid #e8eef5; cursor: pointer; }
.relation-row:last-child { border-bottom: 0; }.relation-row>input[type="checkbox"] { width: 17px; height: 17px; padding: 0; accent-color: var(--blue); }.relation-row span strong,.relation-row span small { display: block; }.relation-row span strong { font-size: 11px; }.relation-row span small { margin-top: 3px; color: var(--muted); font-size: 9px; }.relation-row .supplier-allocation-input { min-width: 0; padding: 8px 9px; font-size: 10px; }
.inventory-relation-row { grid-template-columns: 18px minmax(0,1fr); }.relation-empty { padding: 18px; color: var(--muted); font-size: 11px; text-align: center; }.relation-warning { display: grid; justify-items: center; gap: 7px; color: #845b12; background: #fffaf0; }.relation-warning span { font-size: 9px; }.relation-warning button { margin-top: 4px; }.payment-relation-cell { min-width: 190px; max-width: 310px; white-space: normal; line-height: 1.55; }
.owner-select { min-width: 112px; padding: 7px 9px; font-size: 10px; border-radius: 9px; }
.service-flow { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 10px; }.service-flow span { padding: 5px 8px; border-radius: 999px; background: #f0f0f3; }.service-flow i { width: 12px; height: 1px; background: #c7c7cc; }
.service-action { border: 0; padding: 6px 9px; border-radius: 9px; color: var(--blue); background: #e9f3ff; font-size: 10px; font-weight: 650; }
.supplier-rank-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.rank-card { position: relative; padding: 20px; }.rank-number { position: absolute; right: 18px; top: 16px; color: #d0d0d5; font-size: 28px; font-weight: 750; }.rank-card:first-child .rank-number { color: #d29b25; }.rank-card h3 { max-width: 75%; margin: 0; font-size: 14px; }.rank-card p { margin: 5px 0 18px; color: var(--muted); font-size: 10px; }.rank-card strong { font-size: 22px; }.rank-card small { margin-left: 4px; color: var(--muted); font-size: 9px; }
.receipt-button { border: 0; padding: 6px 9px; border-radius: 8px; color: var(--blue); background: #eaf3ff; font-size: 10px; }
.order-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; min-width: 148px; }.order-actions:empty::after { content: "—"; color: var(--muted); }.edit-entry { color: #075ca8; background: #eaf3ff; font-weight: 680; }.danger-button { padding: 7px 10px; border: 0; border-radius: 9px; color: #b42318; background: #fff0ee; font-size: 10px; font-weight: 680; cursor: pointer; }.danger-button:hover { color: white; background: #d92d20; }.pi-button { display: inline-flex; align-items: center; padding: 7px 10px; border: 0; border-radius: 9px; color: white; background: #111; font-size: 10px; font-weight: 680; text-decoration: none; box-shadow: 0 4px 12px rgba(0,0,0,.12); }.pi-button:hover { background: var(--blue); }.pi-button:disabled { opacity: .55; cursor: wait; }
.detail-entry { color: #4f46b8; background: #efedff; }.cost-create-note,.cost-lock-note { padding: 12px 14px; border-radius: 12px; font-size: 11px; line-height: 1.5; }.cost-create-note { border: 1px solid #cfe3fb; color: #175b96; background: #f1f7ff; }.cost-lock-note { border: 1px solid #f0d9a6; color: #765410; background: #fff9e9; }.fee-currency-field>span { display:block; margin-bottom:6px; }.fee-currency-field>div { display:grid; grid-template-columns:minmax(0,1fr) 82px; gap:7px; }.fee-currency-field select { padding-left:10px; padding-right:24px; font-weight:700; }.order-cost-field.locked input,.order-cost-field.locked select { color: #777; background: #f0f1f3; cursor: not-allowed; }.order-detail-sheet { width: min(900px,100%); }.detail-summary-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }.detail-summary-grid>div,.detail-cost-grid>div { display: grid; gap: 5px; padding: 13px; border: 1px solid var(--line); border-radius: 13px; background: #f8fafc; }.detail-summary-grid span,.detail-cost-grid span { color: var(--muted); font-size: 9px; }.detail-summary-grid strong,.detail-cost-grid b { font-size: 12px; }.detail-summary-grid small { color: var(--muted); font-size: 9px; line-height: 1.4; }.detail-section { margin-top: 20px; }.detail-section h3 { margin: 0 0 10px; font-size: 14px; }.detail-section p { margin: 8px 0; color: #51545c; font-size: 11px; line-height: 1.6; }.detail-cost-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; }.detail-payment { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); }.detail-payment strong { font-size: 12px; }.detail-payment span,.detail-empty { color: var(--muted); font-size: 10px; }
.modal-subtitle { margin: 6px 0 0; color: var(--muted); font-size: 11px; }.upload-field small { color: var(--muted); font-weight: 450; }.upload-field input { padding: 10px; }.account-active { display: flex; align-items: center; grid-auto-flow: column; justify-content: start; }.account-active input { width: 18px; height: 18px; padding: 0; accent-color: var(--blue); }
.exchange-form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; align-items: end; padding: 20px; }.exchange-form button { height: 43px; width: 100%; }
.material-checks { margin: 0; padding: 14px; border: 1px solid var(--line); border-radius: 14px; }.material-checks legend { padding: 0 6px; color: #55555b; font-size: 13px; font-weight: 600; }.material-checks > div { display: flex; flex-wrap: wrap; gap: 8px 16px; }.material-checks label { display: flex; grid: none; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; }.material-checks input { width: 16px; height: 16px; padding: 0; accent-color: var(--blue); }
.material-card { padding: 20px; }
.material-card-head { display: flex; align-items: flex-start; justify-content: space-between; }
.material-card h3 { margin: 0; font-size: 14px; }.material-card .source { margin-top: 5px; color: var(--muted); font-size: 10px; }
.big-price { margin: 18px 0 4px; font-size: 26px; font-weight: 730; }.big-price small { color: var(--muted); font-size: 10px; font-weight: 500; }
.sparkline { width: 100%; height: 72px; margin-top: 10px; overflow: visible; }
.sparkline polyline { fill: none; stroke: var(--blue); stroke-width: 2.2; vector-effect: non-scaling-stroke; }
.sparkline .area { fill: url(#fade); stroke: none; opacity: .55; }
.sparkline-base { stroke: #e3e3e7; stroke-width: 1; }
.axis-labels text { fill: #8e8e93; font-size: 4.2px; font-weight: 550; }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.settings-list { padding: 5px 20px; }.settings-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 17px 0; border-bottom: 1px solid var(--line); }.settings-row:last-child { border: 0; }
.settings-row strong, .settings-row small { display: block; }.settings-row small { margin-top: 5px; color: var(--muted); font-size: 10px; }
.settings-row code { padding: 6px 9px; border-radius: 8px; background: #f0f0f3; font-size: 10px; }
.source-form { display: grid; gap: 12px; padding: 20px; }.source-form .toggle-row { display: flex; align-items: center; justify-content: space-between; }.source-form input[type="checkbox"] { width: 42px; height: 24px; accent-color: var(--blue); }
.notice { margin-bottom: 17px; padding: 14px 16px; border: 1px solid #f1dda7; border-radius: 14px; color: #795500; background: #fff8e7; font-size: 12px; line-height: 1.55; }
.empty-inline { padding: 30px; color: var(--muted); text-align: center; font-size: 12px; }
.modal-backdrop { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: rgba(20,20,25,.32); backdrop-filter: blur(10px); }
.modal-sheet { width: min(760px,100%); max-height: calc(100vh - 40px); overflow: auto; padding: 28px; border-radius: 28px; background: rgba(255,255,255,.96); box-shadow: 0 35px 100px rgba(0,0,0,.2); }
#modal .modal-sheet { width: min(980px,100%); }
.compact-modal { width: min(620px,100%); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 24px; }.modal-head h2 { margin: 7px 0 0; font-size: 24px; }.close-button { width: 32px; height: 32px; border: 0; border-radius: 50%; color: #68686e; background: #ededf1; font-size: 20px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 14px; }.form-grid .wide { grid-column: 1/-1; }
.order-preview { display: flex; justify-content: space-between; margin-top: 22px; padding: 16px; border-radius: 14px; color: #626268; background: #f3f6fa; font-size: 12px; }.order-preview strong { color: #111; font-size: 15px; }
.order-receivable-preview { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-top: 10px; }.order-receivable-preview > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 1px solid #d8e7f8; border-radius: 14px; background: #f4f9ff; }.order-receivable-preview > div:last-child { border-color: #d7eadf; background: #f1fbf6; }.order-receivable-preview span { color: var(--muted); font-size: 11px; }.order-receivable-preview strong { font-size: 14px; }.order-prepayment-field small { color: var(--muted); font-size: 10px; line-height: 1.45; }
.order-breakdown-preview { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-top: 22px; }.order-breakdown-preview div { display: grid; gap: 5px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }.order-breakdown-preview span { color: var(--muted); font-size: 10px; }.order-breakdown-preview strong { color: #1d1d1f; font-size: 12px; }
.order-breakdown-preview.four-part { grid-template-columns: repeat(4,1fr); }
.settlement-preview { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; margin-top: 20px; }.settlement-preview div { display: grid; gap: 5px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #f7f9fc; }.settlement-preview span { color: var(--muted); font-size: 10px; }.settlement-preview strong { font-size: 15px; }
.settlement-reconcile { margin-top: 18px; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; }.settlement-reconcile>div { display: grid; grid-template-columns: 1.1fr repeat(3,1fr); gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 10px; }.settlement-reconcile>div:last-child { border-bottom: 0; }.settlement-reconcile .reconcile-head { color: var(--muted); background: #f5f7fa; font-size: 9px; font-weight: 700; }.settlement-reconcile b { font-size: 10px; }.variance-over { color: var(--red); }.variance-under { color: var(--green); }
.finance-todo { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 16px 0; padding: 16px 18px; border: 1px solid #d9e9fb; border-radius: 16px; background: linear-gradient(135deg,#eff7ff,#fff); }.finance-todo strong,.finance-todo span { display: block; }.finance-todo strong { font-size: 13px; }.finance-todo span { margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.finance-year-heading { margin-top: 0; }.finance-year-stats .stat-card { background: linear-gradient(145deg,rgba(255,255,255,.97),rgba(242,248,255,.92)); }.finance-year-summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin: 14px 0 18px; }.finance-year-summary>div { padding: 15px 17px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.78); }.finance-year-summary span,.finance-year-summary strong { display: block; }.finance-year-summary span { color: var(--muted); font-size: 10px; }.finance-year-summary strong { margin-top: 6px; font-size: 15px; }.finance-monthly-card { margin-bottom: 22px; }.finance-export-heading { margin-bottom: 10px; }.finance-export-form { display: grid; grid-template-columns: repeat(2,minmax(180px,240px)) auto; align-items: end; gap: 12px; margin-bottom: 22px; padding: 17px; border: 1px solid #d8e9fb; border-radius: 17px; background: linear-gradient(135deg,#eff7ff,#fff); }.finance-export-form label { display: grid; gap: 6px; color: var(--muted); font-size: 10px; }.finance-export-form input { min-width: 0; }.finance-export-form .primary-button { min-height: 40px; }.finance-alltime-stats { margin-top: 4px; }
.supplier-payable-overview { display: grid; grid-template-columns: minmax(260px,.72fr) minmax(0,1.6fr); gap: 16px; margin: 16px 0 24px; }.payable-summary-card,.payable-ranking { border: 1px solid rgba(170,112,0,.14); border-radius: 20px; background: linear-gradient(145deg,#fff,#fff8e9); box-shadow: 0 12px 35px rgba(80,55,10,.055); }.payable-summary-card { display: flex; flex-direction: column; justify-content: space-between; min-height: 176px; padding: 22px; }.payable-summary-card span,.payable-summary-card small,.payable-summary-card strong,.payable-summary-card em { display: block; }.payable-summary-card span { color: #76520a; font-size: 13px; font-weight: 720; }.payable-summary-card small { margin-top: 6px; color: var(--muted); font-size: 9px; line-height: 1.45; }.payable-summary-card strong { margin-top: 22px; font-size: 25px; letter-spacing: -.025em; }.payable-summary-card em { margin-top: 7px; color: #9a6b12; font-size: 10px; font-style: normal; }.payable-ranking { padding: 18px 20px; background: rgba(255,255,255,.9); }.payable-ranking-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 12px; }.payable-ranking-head h2 { margin: 0; font-size: 15px; }.payable-ranking-head p { margin: 4px 0 0; color: var(--muted); font-size: 9px; }.payable-rank-grid { display: grid; gap: 8px; }.payable-rank-grid article { display: grid; grid-template-columns: 30px minmax(0,1fr) auto; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 12px; background: #f7f7f9; }.payable-rank-grid article > span { color: #b08a3a; font-size: 11px; font-weight: 750; }.payable-rank-grid article strong,.payable-rank-grid article small { display: block; }.payable-rank-grid article strong { font-size: 12px; }.payable-rank-grid article small { margin-top: 3px; color: var(--muted); font-size: 8px; }.payable-rank-grid article b { color: #8a5b00; font-size: 12px; }.payable-empty { padding: 32px; color: var(--muted); text-align: center; font-size: 11px; }
.receivable-overview .payable-summary-card,.receivable-overview .payable-ranking { border-color: rgba(0,113,227,.14); }.receivable-overview .payable-summary-card { background: linear-gradient(145deg,#fff,#edf6ff); }.receivable-overview .payable-summary-card span { color: #075fae; }.receivable-overview .payable-summary-card em,.receivable-overview .payable-rank-grid article > span,.receivable-overview .payable-rank-grid article b { color: #0071e3; }
.payable-rank-entry { width: 100%; display: grid; grid-template-columns: 30px minmax(0,1fr) auto; align-items: center; gap: 11px; padding: 10px 12px; border: 0; border-radius: 12px; color: inherit; background: #f7f7f9; text-align: left; cursor: pointer; transition: .16s; }.payable-rank-entry:hover { background: #fff2d3; transform: translateY(-1px); }.payable-rank-entry > span { color: #b08a3a; font-size: 11px; font-weight: 750; }.payable-rank-entry strong,.payable-rank-entry small { display: block; }.payable-rank-entry strong { font-size: 12px; }.payable-rank-entry small { margin-top: 3px; color: var(--muted); font-size: 8px; }.payable-rank-entry b { color: #8a5b00; font-size: 12px; }
.supplier-payable-details { grid-column: 1/-1; overflow: hidden; border: 1px solid rgba(170,112,0,.16); border-radius: 20px; background: #fff; box-shadow: 0 14px 36px rgba(70,50,15,.06); scroll-margin-top: 22px; }.payable-details-title,.payable-detail-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }.payable-details-title { padding: 18px 20px; border-bottom: 1px solid var(--line); background: linear-gradient(135deg,#fffaf0,#fff); }.payable-details-title h3 { margin: 0; font-size: 15px; }.payable-details-title p { margin: 4px 0 0; color: var(--muted); font-size: 9px; }.payable-detail-supplier + .payable-detail-supplier { border-top: 8px solid #f3f3f5; }.payable-detail-supplier.is-focus { box-shadow: inset 4px 0 #d39a21; }.payable-detail-head { padding: 15px 20px; border-bottom: 1px solid var(--line); }.payable-detail-head>div:first-child strong,.payable-detail-head>div:first-child small { display: block; }.payable-detail-head>div:first-child strong { font-size: 13px; }.payable-detail-head>div:first-child small { margin-top: 4px; color: var(--muted); font-size: 9px; }.payable-detail-head>div:last-child { display: flex; align-items: center; gap: 12px; }.payable-detail-head b { color: #8a5b00; font-size: 15px; }.compact-pay-button { padding: 8px 11px; font-size: 10px; }.payable-products-cell { max-width: 320px; white-space: normal; line-height: 1.5; }.payable-order-date { display: block; margin-top: 4px; color: var(--muted); font-size: 8px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 100; transform: translate(-50%,30px); padding: 11px 17px; border-radius: 12px; color: white; background: rgba(28,28,30,.92); box-shadow: 0 10px 30px rgba(0,0,0,.18); opacity: 0; pointer-events: none; transition: .25s; font-size: 12px; }.toast.show { opacity: 1; transform: translate(-50%,0); }
.supplier-search-field small,#supplierPaymentAmountHint { display:block; margin-top:6px; color:var(--muted); font-size:9px; line-height:1.45; }.supplier-search-field small.unmatched,#supplierPaymentAmountHint.unmatched { color:var(--red); }.extra-payment-note { display:block; margin-top:4px; color:#a76b00; font-size:8px; }
.success-celebration { position:fixed; inset:0; z-index:120; display:grid; place-items:center; overflow:hidden; padding:22px; background:rgba(5,12,25,.6); backdrop-filter:blur(18px); opacity:0; transition:opacity .28s ease; }.success-celebration.show { opacity:1; }.success-sheet { position:relative; width:min(560px,100%); overflow:hidden; padding:34px; border:1px solid rgba(255,255,255,.72); border-radius:30px; background:rgba(255,255,255,.96); box-shadow:0 38px 110px rgba(0,0,0,.3); text-align:center; transform:translateY(24px) scale(.94); transition:transform .48s cubic-bezier(.2,.9,.2,1.12); }.success-celebration.show .success-sheet { transform:none; }.success-local-fx { position:relative; display:grid; place-items:center; height:178px; margin:-10px -10px 10px; }.success-scene { position:absolute; inset:0; }.success-mark { position:relative; z-index:4; display:grid; place-items:center; width:78px; height:78px; border-radius:27px; color:white; background:linear-gradient(145deg,#0984ff,#0057d9); box-shadow:0 18px 40px rgba(0,113,227,.28); font-size:39px; font-weight:850; animation:successMark .75s cubic-bezier(.15,.9,.2,1.2) both; }.success-sheet h2 { margin:0; color:#101114; font-size:26px; letter-spacing:-.035em; }.success-copy { max-width:440px; margin:9px auto 0; color:var(--muted); font-size:12px; line-height:1.65; }.success-results { display:grid; grid-template-columns:repeat(3,1fr); gap:9px; margin-top:22px; }.success-results div { padding:13px 10px; border:1px solid #e6e8ee; border-radius:14px; background:#f7f9fc; }.success-results span,.success-results strong { display:block; }.success-results span { color:var(--muted); font-size:9px; }.success-results strong { margin-top:5px; color:#15161a; font-size:12px; }.success-actions { display:flex; justify-content:center; gap:10px; margin-top:24px; }.success-celebration[data-kind=first] .success-mark { color:#fff5cf; background:linear-gradient(145deg,#f8bd36,#d57a00); box-shadow:0 20px 48px rgba(213,122,0,.34); }.success-celebration[data-kind=settled] .success-mark { background:linear-gradient(145deg,#20c586,#087d55); box-shadow:0 20px 48px rgba(8,125,85,.32); }.success-scan-ring { position:absolute; inset:28px 50%; width:150px; height:150px; margin-left:-75px; border:1px solid rgba(0,113,227,.42); border-radius:50%; animation:successScan 1.8s ease-out infinite; }.success-scan-ring.second { animation-delay:.55s; }.success-order-flight { position:absolute; top:9px; left:50%; z-index:2; width:184px; padding:10px 13px; border:1px solid #d7e8fb; border-radius:13px; background:#fff; box-shadow:0 13px 35px rgba(0,80,170,.14); text-align:left; animation:orderFlight 1.1s cubic-bezier(.15,.86,.25,1) both; }.success-order-flight b,.success-order-flight span { display:block; }.success-order-flight b { color:#126ecc; font-size:10px; }.success-order-flight span { margin-top:3px; color:#79818b; font-size:8px; }.success-flow-dot { position:absolute; top:86px; width:7px; height:7px; border-radius:50%; background:#39a0ff; animation:flowDot 1.45s ease-in-out infinite; }.success-flow-dot.d1 { left:22%; }.success-flow-dot.d2 { left:32%; animation-delay:.2s; }.success-flow-dot.d3 { right:25%; animation-delay:.4s; }.success-star-halo { position:absolute; inset:50%; width:154px; height:154px; margin:-77px; border:2px solid rgba(240,164,21,.28); border-radius:50%; box-shadow:0 0 0 18px rgba(240,164,21,.08),0 0 0 40px rgba(240,164,21,.035); animation:starHalo 1.5s ease-in-out infinite; }.success-milestone { position:absolute; top:15px; left:50%; transform:translateX(-50%); color:#ad6c00; font-size:9px; font-weight:800; letter-spacing:.18em; }.success-profit-line { position:absolute; left:15%; right:15%; bottom:42px; height:2px; background:linear-gradient(90deg,transparent,#13a86f 24%,#34d399 70%,transparent); transform-origin:left; animation:profitLine 1s .2s both; }.success-ledger-number { position:absolute; top:18px; color:#718078; font-size:9px; font-weight:700; }.success-ledger-number.left { left:15%; }.success-ledger-number.right { right:15%; }.success-profit-lock { position:absolute; left:50%; bottom:17px; transform:translateX(-50%); color:#078057; font-size:9px; letter-spacing:.13em; }.success-particle { --x:50%;--y:47%; position:absolute; z-index:125; left:var(--x); top:var(--y); width:8px; height:8px; border-radius:2px; background:var(--p); box-shadow:0 0 8px var(--p); animation:particleBurst 1.25s var(--d) cubic-bezier(.15,.75,.2,1) both; }.success-celebration[data-kind=settled] .success-particle { animation-name:fireworkBurst; }
@keyframes successMark { 0%{opacity:0;transform:scale(.2) rotate(-18deg)} 70%{transform:scale(1.12) rotate(3deg)} 100%{opacity:1;transform:none} }@keyframes successScan { 0%{opacity:.65;transform:scale(.35)} 100%{opacity:0;transform:scale(1.45)} }@keyframes orderFlight { 0%{opacity:0;transform:translate(-110px,64px) rotate(-8deg) scale(.72)} 100%{opacity:1;transform:translateX(-50%) rotate(0) scale(1)} }@keyframes flowDot { 0%,100%{opacity:.2;transform:translateY(12px)} 50%{opacity:1;transform:translateY(-10px)} }@keyframes starHalo { 0%,100%{opacity:.55;transform:scale(.82) rotate(0)} 50%{opacity:1;transform:scale(1.1) rotate(12deg)} }@keyframes profitLine { from{transform:scaleX(0)} to{transform:scaleX(1)} }@keyframes particleBurst { 0%{opacity:0;transform:rotate(var(--r)) translateX(10px) scale(.2)} 18%{opacity:1} 100%{opacity:0;transform:rotate(var(--r)) translateX(280px) rotate(240deg) scale(.9)} }@keyframes fireworkBurst { 0%{opacity:0;transform:rotate(var(--r)) translateX(8px) scale(.2)} 15%{opacity:1} 100%{opacity:0;transform:rotate(var(--r)) translateX(220px) scale(.55)} }
.mobile-nav { display: none; }
@media (max-width: 1180px) { .revenue-overview { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 1050px) { .stats-grid { grid-template-columns: repeat(2,1fr); }.dashboard-grid,.overview-grid,.supplier-payable-overview { grid-template-columns: 1fr; }.customer-grid { grid-template-columns: repeat(2,1fr); }.supplier-rank-grid { grid-template-columns: repeat(2,1fr); }.login-view { grid-template-columns: 1fr; }.login-brand { justify-content: center; }.login-panel { width: min(480px,100%); justify-self: center; } }
@media (max-width: 760px) {
  .login-view { padding: 32px 18px 70px; gap: 28px; }.login-brand { justify-content: flex-start; }.brand-mark.large { width: 72px; height: 72px; border-radius: 20px; }.brand-mark.large span { font-size: 44px; }.login-brand strong { font-size: 34px; }.login-brand small { font-size: 8px; }.login-panel { padding: 28px 22px; }.app-filing { padding-bottom: 92px; }
  .app-shell { display: block; }.sidebar { display: none; }.main-area { padding-bottom: 78px; }.topbar { height: 94px; padding: 18px 18px; }.topbar h1 { font-size: 22px; }.icon-button { display: none; }.primary-button.compact { width: 40px; height: 40px; overflow: hidden; padding: 0; font-size: 0; }.primary-button.compact span { font-size: 24px; }.page-content { padding: 20px 16px 40px; }.stats-grid { grid-template-columns: repeat(2,1fr); gap: 10px; }.stat-card { padding: 16px; }.stat-value { font-size: 22px; }.dashboard-grid, .overview-grid, .material-grid, .admin-grid { grid-template-columns: 1fr; }.status-overview { grid-template-columns: repeat(2,1fr); }.customer-grid,.supplier-rank-grid { grid-template-columns: 1fr; }.order-create-banner { align-items: stretch; flex-direction: column; }.order-create-banner button { width: 100%; }.toolbar { align-items: stretch; flex-direction: column; }.search-input { width: 100%; }.form-grid { grid-template-columns: 1fr; }.form-grid .wide { grid-column: auto; }.exchange-form { grid-template-columns: 1fr; }.order-breakdown-preview { grid-template-columns: 1fr; }.dashboard-scope { align-items: flex-start; flex-direction: column; }.revenue-overview { grid-template-columns: 1fr; }.revenue-card { min-height: 128px; }.kanban-board { grid-template-columns: repeat(6,82vw); }.kanban-heading { align-items: flex-start; }.kanban-heading .text-button { display: none; }.logistics-totals { grid-template-columns: 1fr; }.logistics-totals > div:last-child { text-align: left; }
  .product-image-editor { align-items: stretch; flex-direction: column; }.product-picture.editor { width: 100%; max-width: none; height: 180px; }.selected-product-preview { align-items: flex-start; }
  .customer-select-field { grid-template-columns: 1fr; }.customer-select-field .secondary-button { width: 100%; }.management-actions { align-items: stretch; flex-direction: column; }.management-actions button { width: 100%; }
  .section-title { align-items: stretch; flex-direction: column; }.section-actions { width: 100%; }.section-actions button { flex: 1; }.import-steps { grid-template-columns: 1fr; }.import-summary { grid-template-columns: repeat(3,1fr); }
  .order-items-head { align-items: flex-start; flex-direction: column; }.order-item-fields,.order-item-fields.has-admin-cost { grid-template-columns: 1fr 1fr; }.order-item-fields label:nth-child(-n+3) { grid-column: 1/-1; }.order-admin-cost-preview { grid-template-columns: 1fr; }.order-breakdown-preview.four-part,.order-receivable-preview { grid-template-columns: 1fr 1fr; }.settlement-preview { grid-template-columns: 1fr; }.finance-todo { align-items: flex-start; flex-direction: column; }.finance-year-summary,.finance-export-form { grid-template-columns: 1fr; }.finance-export-form .primary-button { width: 100%; }.shared-space-head { align-items: stretch; flex-direction: column; }.shared-grid { grid-template-columns: 1fr; }.detail-summary-grid,.detail-cost-grid { grid-template-columns: 1fr 1fr; }.payable-ranking-head { align-items: flex-start; flex-direction: column; }.payable-rank-grid article,.payable-rank-entry { grid-template-columns: 26px minmax(0,1fr); }.payable-rank-grid article b,.payable-rank-entry b { grid-column: 2; }.payable-details-title,.payable-detail-head { align-items: flex-start; flex-direction: column; }.payable-detail-head>div:last-child { width: 100%; justify-content: space-between; }.payment-order-info { align-items: flex-start; flex-direction: column; }.payment-order-info span { text-align: left; }.supplier-account-fields { grid-template-columns: 1fr; }.supplier-account-fields .wide { grid-column: auto; }
  .mobile-nav { position: fixed; inset: auto 0 0; z-index: 25; display: grid; grid-template-columns: repeat(6,1fr); padding: 7px max(6px,env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)) max(6px,env(safe-area-inset-left)); border-top: 1px solid var(--line); background: rgba(250,250,252,.88); backdrop-filter: blur(24px); }.mobile-nav button { display: grid; place-items: center; gap: 3px; border: 0; color: #8a8a90; background: transparent; font-size: 17px; }.mobile-nav button span { font-size: 8px; }.mobile-nav button.active { color: var(--blue); }.modal-backdrop { align-items: end; padding: 0; }.modal-sheet { max-height: 90vh; border-radius: 28px 28px 0 0; padding: 24px 18px calc(24px + env(safe-area-inset-bottom)); }
  .success-celebration { align-items:end; padding:0; }.success-sheet { padding:27px 18px calc(22px + env(safe-area-inset-bottom)); border-radius:28px 28px 0 0; }.success-local-fx { height:150px; }.success-results { grid-template-columns:1fr; }.success-actions { align-items:stretch; flex-direction:column-reverse; }.success-actions button { width:100%; }
}
@media (prefers-reduced-motion:reduce) { .success-celebration,.success-sheet,.success-mark,.success-scan-ring,.success-order-flight,.success-flow-dot,.success-star-halo,.success-profit-line,.success-particle { animation:none!important; transition:none!important; }.success-particle { display:none; } }
