:root {
  --bg: #080a11;
  --bg-2: #0d111c;
  --panel: rgba(24, 29, 44, .72);
  --panel-soft: rgba(22, 27, 40, .52);
  --border: rgba(255, 255, 255, .085);
  --border-strong: rgba(255, 255, 255, .14);
  --text: #f5f6fa;
  --muted: #9aa4b9;
  --muted-2: #687289;
  --red: #b92520;
  --red-2: #e04b43;
  --blue: #5f82ec;
  --green: #54d7a5;
  --shadow: 0 24px 70px rgba(0, 0, 0, .28);
}
* { box-sizing: border-box; }
html { color-scheme: dark; }
body { margin: 0; min-height: 100vh; color: var(--text); background: radial-gradient(circle at 70% 10%, #121a31 0, transparent 36%), linear-gradient(145deg, #07090f, #0a0d16 55%, #080a11); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input, select { font: inherit; }
button { color: inherit; }
.glass { border: 1px solid var(--border); background: var(--panel); box-shadow: var(--shadow); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.kicker { color: #8792aa; font-size: 10px; font-weight: 800; letter-spacing: .18em; }
.primary-button, .secondary-button { border: 0; border-radius: 12px; cursor: pointer; font-weight: 800; transition: .18s ease; }
.primary-button { min-height: 48px; padding: 0 20px; background: linear-gradient(135deg, var(--red), #8e1916); color: white; box-shadow: 0 12px 30px rgba(185,37,32,.2); }
.primary-button:hover { transform: translateY(-1px); background: linear-gradient(135deg, #d2342e, #9a1c18); }
.secondary-button { height: 43px; padding: 0 18px; border: 1px solid var(--border); background: rgba(255,255,255,.05); }
.secondary-button:hover { background: rgba(255,255,255,.09); }

.login-page { display: grid; place-items: center; padding: 32px; }
.login-wrap { width: min(1180px, 100%); min-height: 650px; display: grid; grid-template-columns: 1.25fr .75fr; gap: 28px; }
.login-brand-panel { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 50px; border: 1px solid rgba(255,255,255,.06); border-radius: 30px; background: linear-gradient(155deg, rgba(147,20,18,.62), rgba(35,11,18,.5) 60%, rgba(13,16,28,.8)); box-shadow: var(--shadow); }
.login-brand-panel::after { content: ""; position: absolute; width: 420px; height: 420px; right: -150px; bottom: -190px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; box-shadow: 0 0 0 70px rgba(255,255,255,.02), 0 0 0 140px rgba(255,255,255,.015); }
.login-logo { position: relative; z-index: 1; width: min(540px, 90%); height: auto; border-radius: 8px; }
.login-copy { position: relative; z-index: 1; max-width: 600px; }
.login-copy h1 { margin: 14px 0 12px; max-width: 570px; font-size: clamp(38px, 5vw, 66px); line-height: 1.01; letter-spacing: -.055em; }
.login-copy p { margin: 0; max-width: 480px; color: rgba(255,255,255,.68); font-size: 16px; line-height: 1.65; }
.login-card { align-self: center; padding: 34px; border-radius: 24px; }
.login-card-head { display: flex; align-items: center; gap: 14px; }
.login-card-head img { width: 48px; height: 48px; border-radius: 12px; }
.login-card h2 { margin: 6px 0 0; font-size: 24px; }
.login-form { display: grid; gap: 17px; margin-top: 34px; }
.login-form label, .field, .date-filters label { display: grid; gap: 8px; }
.login-form label > span, .field > span, .date-filters label > span, .select-box > span { color: var(--muted); font-size: 11px; font-weight: 700; }
.login-form input, .field select, .date-filters input, .select-box select { width: 100%; height: 46px; padding: 0 14px; border: 1px solid var(--border); border-radius: 11px; outline: none; background: rgba(4,7,13,.42); color: white; }
.login-form input:focus, .field select:focus, .date-filters input:focus, .select-box select:focus { border-color: rgba(224,75,67,.55); box-shadow: 0 0 0 3px rgba(224,75,67,.08); }
.demo-note, .small-note { color: var(--muted-2); font-size: 11px; line-height: 1.6; }

.app-page { overflow-x: hidden; }
.ambient { position: fixed; z-index: -1; pointer-events: none; border-radius: 50%; filter: blur(90px); opacity: .18; }
.ambient-red { width: 420px; height: 420px; left: -180px; top: -150px; background: #c72b27; }
.ambient-blue { width: 500px; height: 500px; right: -240px; top: 130px; background: #294b9f; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 242px minmax(0, 1fr); gap: 14px; padding: 14px; }
.sidebar { position: sticky; top: 14px; height: calc(100vh - 28px); display: flex; flex-direction: column; padding: 18px 14px; border-radius: 24px; }
.brand-mini { display: flex; align-items: center; gap: 12px; padding: 5px 7px 20px; border-bottom: 1px solid rgba(255,255,255,.07); }
.brand-mini img { width: 44px; height: 44px; border-radius: 12px; }
.brand-mini strong, .brand-mini span { display: block; }
.brand-mini strong { font-size: 14px; }
.brand-mini span { margin-top: 4px; color: var(--muted-2); font-size: 10px; letter-spacing: .16em; }
.nav-list { display: grid; gap: 7px; margin-top: 22px; }
.nav-link, .nav-sublink { width: 100%; border: 0; background: transparent; cursor: pointer; text-align: left; transition: .16s ease; }
.nav-link { min-height: 46px; display: grid; grid-template-columns: 27px minmax(0, 1fr) auto; align-items: center; gap: 6px; padding: 9px 12px; border-radius: 12px; color: #99a3b8; font-size: 12px; font-weight: 750; line-height: 1.22; }
.nav-link span:nth-child(2), .nav-sublink { white-space: normal; overflow-wrap: anywhere; }
.nav-link:hover, .nav-link.active, .nav-link.parent-active { color: white; background: linear-gradient(90deg, rgba(185,37,32,.2), rgba(185,37,32,.06)); }
.nav-link.active { box-shadow: inset 0 0 0 1px rgba(224,75,67,.24); }
.nav-symbol { color: #748098; font-size: 15px; }
.nav-link.active .nav-symbol { color: #ff7771; }
.chevron { transition: .18s ease; }
.chevron.rotated { transform: rotate(180deg); }
.nav-submenu { display: none; padding: 2px 0 2px 44px; }
.nav-submenu.open { display: block; }
.nav-sublink { padding: 9px 10px; border-left: 1px solid rgba(255,255,255,.08); color: #7e899f; font-size: 11px; }
.nav-sublink:hover, .nav-sublink.active { color: white; border-left-color: var(--red-2); }
.sidebar-user { margin-top: auto; display: grid; grid-template-columns: 38px 1fr 30px; align-items: center; gap: 10px; padding: 16px 8px 3px; border-top: 1px solid rgba(255,255,255,.07); }
.avatar { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; background: linear-gradient(135deg, var(--red), #7b1714); font-size: 10px; font-weight: 900; }
.sidebar-user strong, .sidebar-user span { display: block; }
.sidebar-user strong { font-size: 11px; }
.sidebar-user span { margin-top: 3px; color: var(--muted-2); font-size: 9px; }
.sidebar-user button { width: 30px; height: 30px; border: 0; border-radius: 9px; background: rgba(255,255,255,.04); cursor: pointer; color: #8d97aa; }
.main-area { min-width: 0; }
.topbar { position: relative; z-index: 220; overflow: visible; min-height: 80px; display: flex; align-items: center; justify-content: space-between; padding: 17px 22px; border-radius: 20px; }
.topbar-title { display: flex; align-items: center; gap: 12px; }
.topbar h1 { margin: 5px 0 0; font-size: 21px; letter-spacing: -.03em; }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.viewer-badge { padding: 8px 11px; border: 1px solid rgba(84,215,165,.16); border-radius: 9px; background: rgba(84,215,165,.07); color: #7de1ba; font-size: 10px; font-weight: 750; }
.today { color: var(--muted); font-size: 11px; }
.mobile-toggle { display: none; width: 38px; height: 38px; border: 1px solid var(--border); border-radius: 10px; background: rgba(255,255,255,.04); }
.view { position: relative; z-index: 1; display: none; padding: 28px 4px 40px; }
.view.active { display: block; animation: fadeIn .22s ease both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.page-intro { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding: 0 5px 20px; }
.page-intro h2 { margin: 0; font-size: 30px; letter-spacing: -.045em; }
.page-intro p { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.compact-search { min-width: 290px; height: 44px; display: flex; align-items: center; gap: 8px; padding: 0 13px; border: 1px solid var(--border); border-radius: 12px; background: rgba(8,12,21,.65); }
.compact-search span { color: var(--muted-2); }
.compact-search input { width: 100%; border: 0; outline: 0; background: transparent; color: white; font-size: 11px; }
.select-box { min-width: 240px; display: grid; gap: 7px; }

.order-list { display: grid; gap: 10px; }
.order-row { width: 100%; display: grid; grid-template-columns: 48px minmax(220px, 1.5fr) .55fr .75fr 24px; align-items: center; gap: 15px; padding: 16px; border: 1px solid var(--border); border-radius: 15px; background: var(--panel-soft); box-shadow: 0 14px 36px rgba(0,0,0,.14); backdrop-filter: blur(16px); cursor: pointer; text-align: left; transition: .17s ease; }
.order-row:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.15); background: rgba(34,40,57,.72); }
.company-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: rgba(185,37,32,.16); color: #ff8782; font-weight: 900; }
.company-mark.usd { background: rgba(95,130,236,.15); color: #a8bbff; }
.order-main strong, .order-main small, .order-stat strong, .order-stat small { display: block; }
.order-main strong { font-size: 13px; }
.order-main small { margin-top: 5px; color: var(--muted-2); font-size: 10px; }
.order-stat small { color: var(--muted-2); font-size: 9px; }
.order-stat strong { margin-top: 5px; font-size: 12px; }
.row-arrow { color: #6f7a91; font-size: 25px; }

.panel { padding: 20px; border-radius: 18px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.panel-head h3 { margin: 7px 0 0; font-size: 17px; }
.summary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(235px, 1fr)); gap: 12px; margin-bottom: 14px; }
.summary-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.summary-card { min-height: 135px; display: flex; flex-direction: column; justify-content: space-between; padding: 20px; border-radius: 17px; }
.summary-card span { color: var(--muted); font-size: 11px; }
.summary-card strong { margin-top: 18px; font-size: clamp(23px, 3vw, 33px); letter-spacing: -.04em; }
.summary-card small { margin-top: 10px; color: var(--muted-2); font-size: 10px; }
#companyOrders { display: grid; gap: 8px; margin-top: 18px; }
.status-chip { padding: 7px 10px; border: 1px solid var(--border); border-radius: 9px; color: #9da8bc; background: rgba(255,255,255,.035); font-size: 9px; font-weight: 800; }
.empty-state { display: grid; place-items: center; min-height: 170px; color: var(--muted); font-size: 12px; text-align: center; }

.current-intro { align-items: center; }
.date-filters { display: flex; align-items: end; gap: 8px; }
.date-filters input { width: 145px; }
.current-company-list { display: grid; gap: 8px; margin-top: 17px; }
.current-row { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px; padding: 13px; border: 1px solid rgba(255,255,255,.06); border-radius: 13px; background: rgba(255,255,255,.025); }
.current-row strong, .current-row small { display: block; }
.current-row strong { font-size: 12px; }
.current-row small { margin-top: 4px; color: var(--muted-2); font-size: 9px; }
.current-row b { font-size: 12px; }

.stock-bars { display: grid; gap: 13px; margin-top: 24px; }
.stock-bar-row { display: grid; grid-template-columns: 32px 125px minmax(150px, 1fr) 90px; align-items: center; gap: 13px; }
.rank { color: #5f6a7f; font-size: 10px; font-weight: 900; }
.stock-code strong, .stock-code small { display: block; }
.stock-code strong { font-size: 11px; }
.stock-code small { margin-top: 3px; color: var(--muted-2); font-size: 9px; }
.stock-track { height: 9px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.05); }
.stock-track span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #9e1f1b, #e24c44); box-shadow: 0 0 14px rgba(224,75,67,.17); }
.stock-qty { text-align: right; font-size: 10px; }

.robot-layout { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 14px; }
.robot-settings { display: grid; align-content: start; gap: 16px; }
.robot-settings .primary-button { margin-top: 4px; }
.robot-result { min-height: 470px; }
.robot-table-head, .robot-row { display: grid; grid-template-columns: 1.2fr .65fr .75fr; gap: 15px; align-items: center; }
.robot-table-head { margin-top: 23px; padding: 0 13px 10px; color: var(--muted-2); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.robot-row { padding: 13px; border-top: 1px solid rgba(255,255,255,.06); font-size: 11px; }
.robot-row b { color: #87e1bd; }
.robot-total { display: flex; justify-content: space-between; margin-top: 16px; padding: 16px; border-radius: 12px; background: rgba(84,215,165,.06); color: #a5e9ce; font-size: 12px; }

.modal-backdrop { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 24px; background: rgba(2,4,9,.76); backdrop-filter: blur(12px); }
.modal-backdrop[hidden] { display: none; }
.order-modal { position: relative; width: min(820px, 100%); max-height: calc(100vh - 48px); overflow: auto; padding: 28px; border-radius: 22px; }
.modal-close { position: absolute; right: 16px; top: 14px; width: 34px; height: 34px; border: 0; border-radius: 10px; background: rgba(255,255,255,.05); color: var(--muted); cursor: pointer; font-size: 22px; }
.order-modal h2 { margin: 10px 45px 0 0; font-size: 26px; }
.modal-sub { margin: 7px 0 0; color: var(--muted); font-size: 11px; }
.modal-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin-top: 22px; }
.modal-summary div { padding: 14px; border: 1px solid rgba(255,255,255,.065); border-radius: 12px; background: rgba(255,255,255,.025); }
.modal-summary span, .modal-summary strong { display: block; }
.modal-summary span { color: var(--muted-2); font-size: 9px; }
.modal-summary strong { margin-top: 8px; font-size: 13px; }
.detail-table-wrap { overflow-x: auto; margin-top: 22px; }
.detail-table { width: 100%; border-collapse: collapse; min-width: 540px; }
.detail-table th { padding: 10px; color: var(--muted-2); font-size: 9px; text-align: left; text-transform: uppercase; }
.detail-table td { padding: 12px 10px; border-top: 1px solid rgba(255,255,255,.06); color: #b3bccd; font-size: 11px; }
.detail-table td strong { color: white; }
.modal-footnote { margin: 17px 0 0; color: var(--muted-2); font-size: 10px; line-height: 1.55; }
.toast { position: fixed; z-index: 120; left: 50%; bottom: 24px; transform: translate(-50%, 18px); opacity: 0; padding: 11px 15px; border: 1px solid var(--border-strong); border-radius: 11px; background: rgba(24,29,44,.97); box-shadow: var(--shadow); color: #dce1e9; font-size: 11px; pointer-events: none; transition: .2s ease; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

@media (max-width: 980px) {
  .login-wrap { grid-template-columns: 1fr; min-height: auto; }
  .login-brand-panel { min-height: 460px; }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; z-index: 80; left: 14px; top: 14px; width: 242px; transform: translateX(calc(-100% - 30px)); transition: .22s ease; }
  .sidebar.open { transform: none; }
  .mobile-toggle { display: grid; place-items: center; }
  .order-row { grid-template-columns: 44px 1fr 24px; }
  .order-stat { display: none; }
  .current-intro { align-items: flex-start; flex-direction: column; }
  .date-filters { width: 100%; flex-wrap: wrap; }
  .robot-layout { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .login-page { padding: 14px; }
  .login-brand-panel { min-height: 390px; padding: 28px; border-radius: 22px; }
  .login-copy h1 { font-size: 42px; }
  .app-shell { padding: 8px; }
  .topbar { min-height: 70px; padding: 13px 14px; }
  .topbar-right .today { display: none; }
  .viewer-badge { font-size: 9px; }
  .view { padding-top: 22px; }
  .page-intro { align-items: stretch; flex-direction: column; }
  .compact-search, .select-box { min-width: 0; width: 100%; }
  .summary-grid.two { grid-template-columns: 1fr; }
  .summary-card { min-height: 120px; }
  .stock-bar-row { grid-template-columns: 30px 105px 1fr; }
  .stock-qty { grid-column: 3; }
  .modal-summary { grid-template-columns: repeat(2, 1fr); }
  .date-filters label { flex: 1; min-width: 130px; }
  .date-filters input { width: 100%; }
  .order-modal { padding: 22px 16px; }
}

.app-shell { grid-template-columns: 286px minmax(0, 1fr); }
.sidebar { padding: 22px 17px; }
.brand-mini { gap: 14px; padding-bottom: 24px; }
.brand-mini img { width: 52px; height: 52px; }
.brand-mini strong { font-size: 17px; }
.brand-mini span { font-size: 11px; }
.nav-list { gap: 10px; margin-top: 26px; }
.nav-link { min-height: 58px; grid-template-columns: 34px 1fr auto; padding: 0 15px; border-radius: 15px; font-size: 16px; font-weight: 760; }
.nav-symbol { font-size: 19px; }
.nav-submenu { padding-left: 54px; }
.nav-sublink { padding: 13px 12px; font-size: 14px; font-weight: 700; }
.sidebar-user strong { font-size: 14px; }
.sidebar-user span { font-size: 11px; }
.topbar h1 { font-size: 24px; }
.viewer-badge { font-size: 12px; }
.viewer-badge.admin-badge { border-color: rgba(224,75,67,.28); background: rgba(185,37,32,.13); color: #ff918c; }

.order-row { grid-template-columns: minmax(300px,1.7fr) .42fr .58fr minmax(185px,.7fr) 24px; gap: 22px; padding: 22px 24px; border-radius: 18px; }
.order-main strong { font-size: 17px; }
.order-main small { margin-top: 7px; font-size: 13px; }
.order-stat small { font-size: 12px; }
.order-stat strong { margin-top: 7px; font-size: 16px; }
.order-status-cell { display: flex; justify-content: flex-start; }
.order-status-badge { display: inline-flex; align-items: center; min-height: 39px; padding: 0 14px; border: 1px solid rgba(95,130,236,.22); border-radius: 11px; background: rgba(95,130,236,.10); color: #a9bbff; font-size: 13px; font-weight: 800; white-space: nowrap; }
.order-status-badge.arrived { border-color: rgba(84,215,165,.23); background: rgba(84,215,165,.09); color: #8ae3c1; }
.status-select-wrap { display: grid; gap: 6px; min-width: 185px; }
.status-select-wrap > span { color: var(--muted-2); font-size: 11px; font-weight: 800; }
.status-select-wrap select { width: 100%; height: 42px; padding: 0 12px; border: 1px solid rgba(224,75,67,.25); border-radius: 11px; outline: 0; background: rgba(9,12,21,.78); color: white; font-size: 13px; font-weight: 750; cursor: pointer; }
.status-select-wrap:not(.compact) { min-width: 210px; }
.row-arrow { font-size: 30px; }

.detail-page-head { display: grid; gap: 24px; padding: 4px 4px 20px; }
.back-button { width: fit-content; min-height: 43px; padding: 0 16px; border: 1px solid var(--border); border-radius: 11px; background: rgba(255,255,255,.045); color: #d8deea; cursor: pointer; font-size: 14px; font-weight: 800; }
.back-button:hover { background: rgba(255,255,255,.08); }
.detail-title-row { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.detail-title-row h2 { margin: 9px 0 0; font-size: clamp(28px,4vw,42px); letter-spacing: -.045em; }
.detail-title-row p { margin: 10px 0 0; color: var(--muted); font-size: 15px; }
.detail-summary { display: grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); gap: 12px; margin-bottom: 14px; }
.detail-summary > div { min-height: 112px; display: flex; flex-direction: column; justify-content: space-between; padding: 20px; border: 1px solid var(--border); border-radius: 16px; background: var(--panel-soft); box-shadow: 0 14px 36px rgba(0,0,0,.14); }
.detail-summary span { color: var(--muted); font-size: 13px; }
.detail-summary strong { font-size: 22px; }
.detail-panel { padding: 24px; }
.detail-panel-head { align-items: end; }
.detail-panel-head h3 { font-size: 21px; }
.detail-search { min-width: 330px; }
.full-order-table { min-width: 900px; }
.detail-table th { padding: 15px 13px; font-size: 11px; position: sticky; top: 0; z-index: 2; background: rgba(18,23,35,.98); }
.detail-table td { padding: 15px 13px; font-size: 14px; line-height: 1.45; vertical-align: top; }
.detail-table td:nth-child(1) { color: var(--muted-2); width: 76px; }
.detail-table td:nth-child(2) { width: 180px; }
.detail-table td:nth-child(4),.detail-table td:nth-child(5),.detail-table td:nth-child(6) { white-space: nowrap; }
.detail-table td small { display: block; margin-top: 5px; color: var(--muted-2); font-size: 11px; }
.table-empty { padding: 40px !important; text-align: center; color: var(--muted) !important; }

.current-row { grid-template-columns: 1fr auto; padding: 17px; }
.current-row strong { font-size: 15px; }.current-row small { font-size: 12px; }.current-row b { font-size: 15px; }
.compact-search input { font-size: 13px; }

@media (max-width: 1180px) {
  .order-row { grid-template-columns: minmax(260px,1fr) .42fr .58fr minmax(170px,.65fr) 20px; gap: 14px; }
}
@media (max-width: 980px) {
  .sidebar { width: 280px; }
  .order-row { grid-template-columns: 1fr 24px; }
  .order-stat,.order-status-cell { grid-column: 1; }
  .order-stat { display: block; }
  .order-status-cell { margin-top: 4px; }
  .row-arrow { grid-column: 2; grid-row: 1 / span 4; }
  .detail-title-row,.detail-panel-head { align-items: stretch; flex-direction: column; }
  .detail-search { width: 100%; min-width: 0; }
}
@media (max-width: 700px) {
  .nav-link { font-size: 15px; }
  .order-row { padding: 18px; }
  .order-main strong { font-size: 16px; }
  .detail-title-row h2 { font-size: 30px; }
  .detail-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .detail-table td { font-size: 13px; }
}

.order-list { gap: 14px; }
.order-row {
  grid-template-columns: minmax(360px, 1.75fr) minmax(120px, .38fr) minmax(180px, .55fr) minmax(190px, .58fr) 28px;
  gap: 28px;
  min-height: 118px;
  padding: 26px 28px;
  border-radius: 20px;
}
.order-main strong { font-size: 20px; line-height: 1.25; letter-spacing: -.025em; }
.order-main small { margin-top: 10px; font-size: 14px; line-height: 1.35; }
.order-stat small,
.status-label { display: block; color: var(--muted-2); font-size: 13px; font-weight: 700; }
.order-stat strong { margin-top: 9px; font-size: 19px; line-height: 1.2; }
.order-status-cell { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.order-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 17px;
  border-radius: 13px;
  font-size: 15px;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.order-status-badge.ordered {
  border-color: rgba(245, 190, 72, .34);
  background: linear-gradient(135deg, rgba(245,190,72,.19), rgba(176,116,17,.11));
  color: #ffd978;
}
.order-status-badge.arrived {
  border-color: rgba(84,215,165,.36);
  background: linear-gradient(135deg, rgba(84,215,165,.20), rgba(22,124,91,.12));
  color: #8ff0cb;
}
.order-status-badge.customs {
  border-color: rgba(74,144,226,.38);
  background: linear-gradient(135deg, rgba(74,144,226,.20), rgba(31,78,153,.12));
  color: #a9cfff;
}
.order-status-badge.danger {
  border-color: rgba(255,120,133,.34);
  background: linear-gradient(135deg, rgba(255,120,133,.18), rgba(143,38,52,.12));
  color: #ff9eaa;
}
.order-status-badge.neutral {
  border-color: rgba(148,163,184,.26);
  background: linear-gradient(135deg, rgba(148,163,184,.12), rgba(71,85,105,.10));
  color: #d0d7e5;
}
.status-dot { width: 9px; height: 9px; flex: 0 0 auto; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 14%, transparent); }
.row-arrow { font-size: 34px; }

.detail-status-editor,
.detail-status-view {
  min-width: 260px;
  padding: 17px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(18,23,36,.72);
}
.detail-status-editor > span,
.detail-status-view > span:first-child {
  display: block;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.detail-status-editor select {
  height: 48px;
  border-width: 1px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 850;
}
.detail-status-editor.ordered select {
  border-color: rgba(245,190,72,.38);
  background: rgba(91,63,17,.35);
  color: #ffe08d;
}
.detail-status-editor.arrived select {
  border-color: rgba(84,215,165,.38);
  background: rgba(15,74,58,.38);
  color: #9af1d1;
}
.detail-status-editor.customs select {
  border-color: rgba(74,144,226,.40);
  background: rgba(27,65,125,.34);
  color: #b8d8ff;
}
.detail-status-editor small {
  display: block;
  margin-top: 9px;
  color: var(--muted-2);
  font-size: 11px;
  line-height: 1.35;
}
.detail-status-view .order-status-badge { min-height: 48px; font-size: 15px; }

@media (max-width: 1220px) {
  .order-row { grid-template-columns: minmax(300px,1.5fr) 110px 170px 180px 24px; gap: 18px; }
}
@media (max-width: 980px) {
  .order-row { grid-template-columns: 1fr 24px; gap: 14px; min-height: 0; }
  .order-stat,.order-status-cell { grid-column: 1; }
  .order-status-cell { margin-top: 3px; }
  .row-arrow { grid-column: 2; grid-row: 1 / span 4; }
  .detail-status-editor,.detail-status-view { width: 100%; min-width: 0; }
}
@media (max-width: 700px) {
  .order-row { padding: 21px; }
  .order-main strong { font-size: 18px; }
  .order-main small { font-size: 13px; }
  .order-stat strong { font-size: 18px; }
  .order-status-badge { min-height: 43px; font-size: 14px; }
}

.orders-toolbar { display:flex; align-items:center; gap:12px; }
.upload-order-button { min-height:48px; padding:0 20px; white-space:nowrap; font-size:14px; }
.upload-modal-backdrop { background:rgba(2,4,9,.82); }
.upload-modal { position:relative; width:min(600px,100%); padding:32px; border-radius:24px; }
.upload-modal h2 { margin:10px 44px 0 0; font-size:30px; letter-spacing:-.035em; }
.upload-description { margin:10px 0 24px; color:var(--muted); font-size:14px; line-height:1.65; }
.drop-zone { min-height:235px; display:flex; flex-direction:column; align-items:center; justify-content:center; padding:28px; border:2px dashed rgba(224,75,67,.34); border-radius:18px; background:rgba(255,255,255,.025); text-align:center; cursor:pointer; transition:.18s ease; outline:none; }
.drop-zone:hover,.drop-zone.dragging,.drop-zone:focus-visible { border-color:#e0534c; background:rgba(185,37,32,.09); transform:translateY(-1px); }
.drop-icon { width:66px; height:66px; display:grid; place-items:center; margin-bottom:18px; border-radius:18px; background:linear-gradient(145deg,#d43a34,#8d1713); color:white; font-size:16px; font-weight:900; box-shadow:0 14px 34px rgba(167,25,23,.3); }
.drop-zone strong { font-size:18px; }
.drop-zone > span { margin-top:7px; color:#d16661; font-size:14px; font-weight:700; }
.drop-zone small { margin-top:16px; color:var(--muted-2); font-size:12px; }
.selected-file { margin-top:14px; padding:14px 16px; border:1px solid var(--border); border-radius:13px; background:rgba(255,255,255,.035); color:#dfe4ed; font-size:13px; overflow-wrap:anywhere; }
.upload-submit { width:100%; min-height:50px; margin-top:18px; font-size:15px; }
.upload-submit:disabled { opacity:.42; cursor:not-allowed; transform:none; }
.upload-error { margin-top:14px; padding:12px 14px; border:1px solid rgba(255,91,84,.25); border-radius:12px; background:rgba(185,37,32,.10); color:#ff9e99; font-size:13px; line-height:1.5; }
.upload-progress { margin-top:16px; }
.upload-progress span { display:block; height:5px; border-radius:999px; background:linear-gradient(90deg,#b92420,#f06a62,#b92420); background-size:200% 100%; animation:uploadPulse 1.15s linear infinite; }
.upload-progress p { margin:9px 0 0; color:var(--muted); font-size:12px; }
@keyframes uploadPulse { to { background-position:-200% 0; } }
.source-chip { display:inline-flex; margin-top:8px; padding:5px 9px; border-radius:999px; border:1px solid rgba(255,255,255,.07); background:rgba(255,255,255,.025); color:var(--muted); font-size:11px; }
@media(max-width:700px){ .orders-toolbar{align-items:stretch;flex-direction:column}.upload-order-button{width:100%}.upload-modal{padding:24px 18px}.upload-modal h2{font-size:25px}.drop-zone{min-height:210px} }

.login-error {
  border: 1px solid rgba(239, 68, 68, .36);
  background: rgba(127, 29, 29, .2);
  color: #fecaca;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: .95rem;
  line-height: 1.45;
}

.viewer-badge.finance-badge {
  border-color: rgba(95,130,236,.26);
  background: rgba(95,130,236,.11);
  color: #b9c7ff;
}

.universal-search { position: relative; min-width: 390px; }
.universal-search .compact-search { width: 100%; min-width: 0; }
.search-dropdown {
  position: absolute;
  z-index: 999;
  top: calc(100% + 10px);
  right: 0;
  width: min(590px, 86vw);
  max-height: 460px;
  overflow: auto;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 18px;
  background: #111625;
  box-shadow: 0 38px 110px rgba(0,0,0,.82), 0 16px 42px rgba(0,0,0,.62), 0 0 0 1px rgba(255,255,255,.035);
}
.search-results-head { display: flex; align-items: center; justify-content: space-between; padding: 9px 11px 11px; color: var(--muted-2); font-size: 10px; font-weight: 850; letter-spacing: .16em; }
.search-results-head b { display: grid; place-items: center; min-width: 25px; height: 25px; padding: 0 7px; border-radius: 999px; background: rgba(255,255,255,.055); color: #cbd3e2; font-size: 11px; letter-spacing: 0; }
.search-result-row { width: 100%; display: grid; grid-template-columns: 42px minmax(0,1fr) auto; align-items: center; gap: 13px; padding: 13px; border: 1px solid transparent; border-radius: 13px; background: transparent; text-align: left; cursor: pointer; transition: .16s ease; }
.search-result-row:hover, .search-result-row:focus-visible { outline: 0; border-color: var(--border); background: rgba(255,255,255,.055); }
.search-result-row + .search-result-row { margin-top: 3px; }
.search-result-icon { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 11px; background: rgba(185,37,32,.15); color: #ff8882; font-size: 17px; font-weight: 900; }
.stock-result .search-result-icon { background: rgba(95,130,236,.15); color: #b2c1ff; }
.search-result-copy { min-width: 0; }
.search-result-copy strong, .search-result-copy small { display: block; }
.search-result-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.search-result-copy small { margin-top: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 11px; }
.search-result-qty { display: inline-flex; align-items: center; gap: 12px; color: #dce2ed; font-size: 13px; font-weight: 800; white-space: nowrap; }
.search-result-qty i { color: var(--muted-2); font-size: 23px; font-style: normal; font-weight: 400; }
.search-empty { padding: 25px 18px; color: var(--muted); text-align: center; font-size: 13px; line-height: 1.55; }
.matched-stock-row { background: rgba(95,130,236,.075); }
.matched-stock-row td:first-child { box-shadow: inset 3px 0 0 #7596ff; }

.company-page-intro { justify-content: center; text-align: center; }
.company-picker-zone { display: grid; justify-items: center; gap: 12px; padding: 2px 0 28px; }
.company-picker-caption { color: var(--muted-2); font-size: 10px; font-weight: 850; letter-spacing: .19em; }
.company-picker { position: relative; width: min(610px, 100%); }
.company-picker-button { width: 100%; min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 23px; border-radius: 20px; cursor: pointer; text-align: left; transition: .18s ease; }
.company-picker-button:hover, .company-picker.open .company-picker-button { border-color: rgba(224,75,67,.35); background: rgba(30,34,49,.88); transform: translateY(-1px); }
.company-picker-button span { min-width: 0; }
.company-picker-button small, .company-picker-button strong { display: block; }
.company-picker-button small { margin-bottom: 7px; color: var(--muted); font-size: 11px; font-weight: 750; }
.company-picker-button strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 22px; letter-spacing: -.025em; }
.company-picker-button i { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid var(--border); border-radius: 13px; background: rgba(255,255,255,.04); color: #aeb7c8; font-size: 22px; font-style: normal; transition: .18s ease; }
.company-picker.open .company-picker-button i { transform: rotate(180deg); color: white; }
.company-picker-menu { position: absolute; z-index: 60; top: calc(100% + 11px); left: 0; width: 100%; padding: 12px; border-radius: 20px; background: rgba(15,19,31,.98); box-shadow: 0 30px 90px rgba(0,0,0,.5); }
.company-picker-search { height: 47px; display: flex; align-items: center; gap: 9px; padding: 0 14px; border: 1px solid var(--border); border-radius: 13px; background: rgba(5,8,15,.5); }
.company-picker-search span { color: var(--muted-2); }
.company-picker-search input { width: 100%; border: 0; outline: 0; background: transparent; color: white; font-size: 13px; }
.company-picker-options { max-height: 340px; overflow: auto; margin-top: 9px; }
.company-picker-option { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px; border: 1px solid transparent; border-radius: 13px; background: transparent; cursor: pointer; text-align: left; transition: .15s ease; }
.company-picker-option:hover, .company-picker-option.selected { border-color: var(--border); background: rgba(255,255,255,.05); }
.company-picker-option.selected { border-color: rgba(224,75,67,.25); background: linear-gradient(90deg, rgba(185,37,32,.15), rgba(185,37,32,.04)); }
.company-picker-option strong, .company-picker-option small { display: block; }
.company-picker-option strong { font-size: 15px; }
.company-picker-option small { margin-top: 5px; color: var(--muted); font-size: 11px; }
.company-picker-option b { color: #dce2ed; font-size: 13px; white-space: nowrap; }
.company-picker-empty { padding: 26px; color: var(--muted); text-align: center; font-size: 13px; }

.current-firms-panel, .current-detail-panel { padding: 22px; }
.current-detail-panel { margin-top: 15px; }
.current-company-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(310px,1fr)); gap: 11px; }
.current-company-card { width: 100%; min-height: 90px; display: grid; grid-template-columns: minmax(0,1fr) auto 22px; align-items: center; gap: 15px; padding: 17px 18px; border: 1px solid var(--border); border-radius: 16px; background: rgba(255,255,255,.025); cursor: pointer; text-align: left; transition: .16s ease; }
.current-company-card:hover, .current-company-card.active { transform: translateY(-1px); border-color: rgba(224,75,67,.27); background: rgba(255,255,255,.055); }
.current-company-card.active { box-shadow: inset 3px 0 0 var(--red-2); }
.current-company-card strong, .current-company-card small { display: block; }
.current-company-card strong { font-size: 16px; }
.current-company-card small { margin-top: 6px; color: var(--muted); font-size: 11px; }
.current-company-card b { color: #e3e7ef; font-size: 14px; white-space: nowrap; }
.current-company-card i { color: var(--muted-2); font-size: 25px; font-style: normal; }
.finance-access-note { padding: 7px 10px; border: 1px solid var(--border); border-radius: 9px; color: var(--muted); font-size: 10px; font-weight: 750; }
.finance-access-note.editable { border-color: rgba(95,130,236,.25); background: rgba(95,130,236,.08); color: #b9c7ff; }
.current-payment-list { display: grid; gap: 10px; }
.current-payment-row { display: grid; grid-template-columns: minmax(260px,1.4fr) minmax(150px,.55fr) minmax(160px,.55fr) minmax(165px,.55fr) auto; align-items: center; gap: 17px; min-height: 106px; padding: 17px 18px; border: 1px solid var(--border); border-radius: 16px; background: rgba(255,255,255,.027); }
.current-order-link { min-width: 0; padding: 0; border: 0; background: transparent; cursor: pointer; text-align: left; }
.current-order-link:hover strong { color: #ff8b85; }
.current-order-link strong, .current-order-link small { display: block; }
.current-order-link strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; transition: color .15s ease; }
.current-order-link small { margin-top: 7px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 11px; }
.current-payment-amount span, .current-payment-date span, .current-payment-status > span { display: block; margin-bottom: 8px; color: var(--muted-2); font-size: 10px; font-weight: 800; }
.current-payment-amount strong, .current-payment-date > strong { font-size: 14px; }
.current-payment-date input, .payment-select { width: 100%; height: 43px; padding: 0 11px; border: 1px solid var(--border); border-radius: 11px; outline: 0; background: rgba(5,8,15,.5); color: white; font-size: 12px; font-weight: 750; }
.current-payment-date input:focus, .payment-select:focus { border-color: rgba(95,130,236,.48); box-shadow: 0 0 0 3px rgba(95,130,236,.09); }
.current-payment-date input:disabled { opacity: .4; cursor: not-allowed; }
.payment-select.paid { border-color: rgba(84,215,165,.34); background: rgba(23,104,78,.22); color: #9af1d1; }
.payment-select.unpaid { border-color: rgba(245,190,72,.28); background: rgba(108,76,19,.2); color: #ffe08d; }
.payment-status-badge { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 13px; border: 1px solid; border-radius: 11px; font-size: 12px; font-weight: 850; }
.payment-status-badge i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.payment-status-badge.paid { border-color: rgba(84,215,165,.34); background: rgba(84,215,165,.1); color: #8ff0cb; }
.payment-status-badge.unpaid { border-color: rgba(245,190,72,.3); background: rgba(245,190,72,.1); color: #ffd978; }
.payment-save-button { min-height: 43px; padding: 0 15px; border: 1px solid rgba(95,130,236,.27); border-radius: 11px; background: rgba(95,130,236,.1); color: #c5d0ff; cursor: pointer; font-size: 12px; font-weight: 850; transition: .15s ease; }
.payment-save-button:hover { background: rgba(95,130,236,.18); }
.payment-save-button:disabled { opacity: .5; cursor: wait; }

@media (max-width: 1280px) {
  .current-payment-row { grid-template-columns: minmax(250px,1.2fr) 140px 150px 155px auto; gap: 12px; }
}
@media (max-width: 1050px) {
  .universal-search { min-width: 320px; }
  .current-payment-row { grid-template-columns: 1fr 1fr; }
  .current-order-link { grid-column: 1 / -1; }
  .payment-save-button { width: fit-content; }
}
@media (max-width: 700px) {
  .universal-search { width: 100%; min-width: 0; }
  .search-dropdown { left: 0; right: auto; width: 100%; }
  .search-result-row { grid-template-columns: 38px minmax(0,1fr); }
  .search-result-qty { grid-column: 2; justify-content: space-between; margin-top: 3px; }
  .company-picker-button { min-height: 76px; padding: 15px 17px; }
  .company-picker-button strong { font-size: 19px; }
  .company-picker-option { align-items: flex-start; flex-direction: column; gap: 7px; }
  .company-picker-option b { white-space: normal; }
  .current-company-grid { grid-template-columns: 1fr; }
  .current-company-card { grid-template-columns: 1fr 20px; }
  .current-company-card b { grid-column: 1; grid-row: 2; }
  .current-company-card i { grid-column: 2; grid-row: 1 / span 2; }
  .current-payment-row { grid-template-columns: 1fr; }
  .current-order-link { grid-column: auto; }
  .payment-save-button { width: 100%; }
}

[hidden] { display: none !important; }
body.modal-open { overflow: hidden; }
button:disabled { opacity: .45; cursor: not-allowed !important; transform: none !important; }
textarea, input, select { font: inherit; }
textarea { resize: vertical; }
.danger-button { min-height: 43px; padding: 0 16px; border: 1px solid rgba(255,91,84,.3); border-radius: 12px; background: rgba(185,37,32,.12); color: #ff9c97; font-weight: 800; cursor: pointer; }
.danger-button:hover { background: rgba(185,37,32,.2); }
.danger-button.compact { min-height: 42px; }
.ghost-button { min-height: 36px; padding: 0 12px; border: 1px solid var(--border); border-radius: 10px; background: rgba(255,255,255,.035); color: #b8c1d1; cursor: pointer; font-size: 11px; font-weight: 750; }
.ghost-button:hover { background: rgba(255,255,255,.075); }
.danger-link { border: 0; background: transparent; color: #ff8f89; cursor: pointer; font-weight: 750; }
.panel-actions { display: flex; gap: 10px; margin-top: 15px; }
.panel-actions.right { justify-content: flex-end; }

.sidebar-user { grid-template-columns: 38px 1fr auto; }
.sidebar-user-actions { display: flex; gap: 5px; }
.sidebar-user-actions button { width: 30px; height: 30px; }
.topbar-actions { display: flex; align-items: center; gap: 10px; min-width: 0; }
.global-search { position: relative; z-index: 230; width: min(420px, 34vw); }
.global-search > label { height: 43px; display: flex; align-items: center; gap: 9px; padding: 0 14px; border: 1px solid var(--border); border-radius: 12px; background: rgba(4,7,13,.5); }
.global-search input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; color: white; font-size: 12px; }
.global-search .search-dropdown { top: calc(100% + 10px); width: min(610px, 80vw); }
.notification-wrap { position: relative; }
.notification-button { position: relative; width: 43px; height: 43px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 12px; background: rgba(255,255,255,.04); cursor: pointer; font-size: 19px; }
.notification-button b { position: absolute; right: -6px; top: -7px; min-width: 21px; height: 21px; display: grid; place-items: center; padding: 0 5px; border: 2px solid #10141f; border-radius: 999px; background: #d93f37; color: white; font-size: 10px; }
.notification-panel { position: absolute; z-index: 90; right: 0; top: calc(100% + 10px); width: min(440px, 90vw); max-height: 570px; overflow: auto; padding: 15px; border-radius: 19px; background: rgba(14,18,29,.98); }
.notification-head { display: flex; align-items: center; justify-content: space-between; padding: 5px 5px 13px; }
.notification-head h3 { margin: 5px 0 0; font-size: 16px; }
.notification-head button { border: 0; background: transparent; color: #93a6e8; cursor: pointer; font-size: 10px; }
.notification-list { display: grid; gap: 6px; }
.notification-item { width: 100%; display: grid; grid-template-columns: 9px 1fr; gap: 11px; padding: 13px; border: 1px solid transparent; border-radius: 13px; background: rgba(255,255,255,.025); text-align: left; cursor: pointer; }
.notification-item:hover { border-color: var(--border); background: rgba(255,255,255,.05); }
.notification-item.unread { background: rgba(95,130,236,.09); border-color: rgba(95,130,236,.16); }
.notification-mark { width: 8px; height: 8px; margin-top: 5px; border-radius: 50%; background: #596276; }
.notification-item.unread .notification-mark { background: #7898ff; box-shadow: 0 0 12px rgba(120,152,255,.7); }
.notification-item strong, .notification-item small, .notification-item time { display: block; }
.notification-item strong { font-size: 13px; }
.notification-item small { margin-top: 5px; color: var(--muted); line-height: 1.45; }
.notification-item time { margin-top: 7px; color: var(--muted-2); font-size: 9px; }
.finance-alert-chip { min-height: 43px; display: flex; align-items: center; gap: 7px; padding: 0 12px; border: 1px solid rgba(245,190,72,.25); border-radius: 12px; background: rgba(245,190,72,.09); color: #ffd878; cursor: pointer; }
.finance-alert-chip > span { width: 21px; height: 21px; display: grid; place-items: center; border-radius: 50%; background: rgba(245,190,72,.18); font-weight: 900; }
.finance-alert-chip b { font-size: 13px; }
.finance-alert-chip small { font-size: 9px; font-weight: 800; }
.viewer-badge.sales-badge { border-color: rgba(245,190,72,.22); background: rgba(245,190,72,.08); color: #ffe09a; }

.order-row { grid-template-columns: minmax(280px,1.55fr) .55fr .75fr minmax(175px,.7fr) 24px; min-height: 98px; padding: 20px 22px; }
.order-main strong { font-size: 17px; }
.order-main small { font-size: 12px; }
.order-stat strong { font-size: 17px; }
.order-stat small, .status-label { font-size: 10px; }
.detail-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 9px; }
.detail-status-editor { min-width: 175px; display: grid; gap: 5px; padding: 7px 10px; border: 1px solid var(--border); border-radius: 11px; background: rgba(255,255,255,.025); }
.detail-status-editor span { color: var(--muted-2); font-size: 9px; font-weight: 800; }
.detail-status-editor select { border: 0; outline: 0; background: transparent; color: white; font-weight: 800; }
.order-detail-grid { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(320px,.8fr); gap: 14px; margin-bottom: 14px; }
.order-notes-panel textarea { width: 100%; margin-top: 15px; padding: 14px; border: 1px solid var(--border); border-radius: 13px; outline: 0; background: rgba(5,8,15,.48); color: white; line-height: 1.55; }
.order-notes-panel textarea:focus { border-color: rgba(95,130,236,.42); }
.order-notes-panel textarea[readonly] { color: #b7c0cf; }
.mini-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.mini-info-grid > div { min-height: 80px; display: flex; flex-direction: column; justify-content: space-between; padding: 13px; border: 1px solid var(--border); border-radius: 12px; background: rgba(255,255,255,.025); }
.mini-info-grid span { color: var(--muted-2); font-size: 9px; font-weight: 800; }
.mini-info-grid strong { font-size: 13px; }
.receipt-legend { display: flex; gap: 8px; margin-top: 15px; }
.receipt-legend span, .receipt-status { display: inline-flex; align-items: center; width: fit-content; padding: 5px 8px; border-radius: 999px; font-size: 9px; font-weight: 850; }
.receipt-ok, .receipt-status.ok { background: rgba(84,215,165,.1); color: #91edca; }
.receipt-short, .receipt-status.short { background: rgba(245,190,72,.1); color: #ffdb7d; }
.receipt-extra, .receipt-status.extra { background: rgba(95,130,236,.12); color: #bdcaff; }
.receipt-table { min-width: 1220px; }
.receipt-table tr.receipt-short { background: rgba(245,190,72,.035); }
.receipt-table tr.receipt-extra { background: rgba(95,130,236,.035); }
.table-number-input { width: 88px; height: 38px; padding: 0 9px; border: 1px solid var(--border); border-radius: 9px; outline: 0; background: rgba(5,8,15,.55); color: white; }
.table-note-input { display: block; width: 170px; height: 36px; margin-top: 7px; padding: 0 9px; border: 1px solid var(--border); border-radius: 9px; outline: 0; background: rgba(5,8,15,.55); color: white; }
.detail-table td small { display: block; margin-top: 4px; color: var(--muted-2); }

.finance-alert-panel { margin-bottom: 14px; border-color: rgba(245,190,72,.18); }
.status-chip.warning { color: #ffdc81; border-color: rgba(245,190,72,.23); background: rgba(245,190,72,.08); }
#financeAlertList { display: grid; gap: 8px; margin-top: 15px; }
.finance-alert-row { width: 100%; display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 12px; padding: 13px; border: 1px solid var(--border); border-radius: 12px; background: rgba(255,255,255,.025); text-align: left; cursor: pointer; }
.finance-alert-row.overdue { border-color: rgba(255,91,84,.22); background: rgba(185,37,32,.07); }
.finance-alert-row.upcoming { border-color: rgba(245,190,72,.18); background: rgba(245,190,72,.05); }
.alert-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; background: rgba(255,255,255,.055); font-weight: 900; }
.finance-alert-row strong, .finance-alert-row small { display: block; }
.finance-alert-row small { margin-top: 4px; color: var(--muted); }
.due-state { display: block; margin-top: 5px; font-size: 9px; }
.due-state.overdue { color: #ff8d87; }
.due-state.upcoming { color: #ffda79; }
.due-state.paid { color: #8be8c5; }
.current-payment-row { grid-template-columns: minmax(230px,1.2fr) 140px 130px 130px 145px 145px auto; }

.stock-table-head, .stock-table-row { display: grid; grid-template-columns: minmax(160px,1.2fr) minmax(150px,1fr) minmax(170px,1fr) minmax(130px,.8fr) 80px; gap: 12px; align-items: center; }
.stock-table-head { margin-top: 20px; padding: 0 12px 10px; color: var(--muted-2); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.stock-table-row { min-height: 72px; padding: 12px; border-top: 1px solid rgba(255,255,255,.06); font-size: 11px; }
.stock-table-row span small { display: block; margin-top: 4px; color: var(--muted-2); }
.price-change.up { color: #ff9b95; }
.price-change.down { color: #84e5bf; }
.price-history-panel { margin-top: 14px; }
.price-history-head, .price-history-row { display: grid; grid-template-columns: .7fr 1.9fr .9fr 1fr; gap: 12px; align-items: center; }
.price-history-head { padding: 16px 12px 9px; color: var(--muted-2); font-size: 9px; text-transform: uppercase; }
.price-history-row { width: 100%; padding: 12px; border: 0; border-top: 1px solid rgba(255,255,255,.06); background: transparent; text-align: left; cursor: pointer; }
.price-history-row:hover { background: rgba(255,255,255,.035); }
.price-history-row strong, .price-history-row small { display: block; }
.price-history-row small { margin-top: 4px; color: var(--muted); }

.robot-data-actions { display: flex; gap: 9px; }
.data-import-summary { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-bottom: 14px; }
.data-import-summary > div { min-height: 92px; display: flex; flex-direction: column; justify-content: space-between; padding: 15px; border: 1px solid var(--border); border-radius: 14px; background: var(--panel-soft); }
.data-import-summary span, .data-import-summary small { color: var(--muted); font-size: 10px; }
.data-import-summary strong { font-size: 24px; }
.robot-insight { margin: 19px 0 8px; padding: 14px; border: 1px solid rgba(95,130,236,.17); border-radius: 12px; background: rgba(95,130,236,.065); }
.robot-insight span, .robot-insight strong, .robot-insight small { display: block; }
.robot-insight span { color: var(--muted-2); font-size: 9px; }
.robot-insight strong { margin-top: 5px; font-size: 12px; }
.robot-insight small { margin-top: 6px; color: var(--muted); }
.robot-table-head.extended, .robot-row.extended { grid-template-columns: 1fr repeat(5,.7fr); }

.request-layout { display: grid; grid-template-columns: 350px minmax(0,1fr); gap: 14px; }
.request-form { display: grid; align-content: start; gap: 15px; }
.field input, .field textarea, .field select, .form-grid input, .form-grid select { width: 100%; padding: 0 13px; border: 1px solid var(--border); border-radius: 11px; outline: 0; background: rgba(4,7,13,.5); color: white; }
.field input, .field select, .form-grid input, .form-grid select { height: 45px; }
.field textarea { padding-top: 12px; }
#requestList { display: grid; gap: 9px; margin-top: 16px; }
.request-card { display: flex; justify-content: space-between; gap: 18px; padding: 16px; border: 1px solid var(--border); border-radius: 14px; background: rgba(255,255,255,.025); }
.request-card-main { min-width: 0; }
.request-card-main > strong { display: block; margin-top: 8px; font-size: 15px; }
.request-card-main p { margin: 7px 0; color: #c2c9d5; line-height: 1.5; }
.request-card-main small { color: var(--muted); }
.request-status { display: inline-flex; padding: 5px 8px; border-radius: 999px; background: rgba(245,190,72,.1); color: #ffda79; font-size: 9px; font-weight: 850; }
.request-status.kapalı { background: rgba(255,255,255,.06); color: #9aa4b9; }
.request-status.siparişe-aktarıldı { background: rgba(84,215,165,.1); color: #8eeac8; }
.request-actions { display: flex; align-items: center; gap: 8px; }
.request-actions select { height: 39px; padding: 0 10px; border: 1px solid var(--border); border-radius: 10px; background: rgba(5,8,15,.55); color: white; }

.security-tabs { display: flex; gap: 7px; margin-bottom: 12px; }
.security-tabs button { min-height: 42px; padding: 0 15px; border: 1px solid var(--border); border-radius: 11px; background: rgba(255,255,255,.03); color: var(--muted); cursor: pointer; font-weight: 750; }
.security-tabs button.active { background: rgba(185,37,32,.13); border-color: rgba(224,75,67,.24); color: white; }
.security-panel { display: none; }
.security-panel.active { display: block; }
.user-table-head, .user-row { display: grid; grid-template-columns: 1.2fr 1fr .5fr .8fr 160px; gap: 12px; align-items: center; }
.user-table-head, .log-table-head, .session-table-head { margin-top: 17px; padding: 0 12px 9px; color: var(--muted-2); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.user-row { min-height: 68px; padding: 11px 12px; border-top: 1px solid rgba(255,255,255,.06); }
.user-row strong, .user-row small { display: block; }
.user-row small { margin-top: 4px; color: var(--muted); }
.role-pill, .user-state { display: inline-flex; width: fit-content; padding: 6px 9px; border-radius: 999px; font-size: 9px; font-weight: 850; }
.role-pill.admin { background: rgba(185,37,32,.12); color: #ff9a95; }
.role-pill.finance_manager { background: rgba(95,130,236,.12); color: #bdcaff; }
.role-pill.salesperson { background: rgba(245,190,72,.11); color: #ffdd85; }
.role-pill.viewer { background: rgba(255,255,255,.055); color: #b5becd; }
.user-state.active { color: #8be7c3; }
.user-state.inactive { color: #ff8d87; }
.user-row-actions { display: flex; justify-content: flex-end; gap: 7px; }
.log-table-head, .log-row { display: grid; grid-template-columns: minmax(145px,.75fr) minmax(110px,.55fr) minmax(220px,1.15fr) minmax(280px,1.55fr); gap: 16px; align-items: center; }
.log-table-head { padding: 0 14px 10px; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .06em; }
.log-row { min-height: 72px; padding: 13px 14px; border-top: 1px solid rgba(255,255,255,.06); font-size: 11px; }
.audit-date { color: var(--muted); }
.audit-user { color: var(--ink); font-size: 12px; }
.audit-action strong, .audit-action small { display: block; }
.audit-action strong { color: var(--ink); font-size: 12px; line-height: 1.35; }
.audit-action small { margin-top: 5px; color: var(--muted); font-size: 9px; }
.audit-detail { color: var(--muted); line-height: 1.55; overflow-wrap: anywhere; }
.session-table-head, .session-row { display: grid; grid-template-columns: .9fr 1fr 1fr .9fr .7fr; gap: 12px; align-items: center; }
.session-row { min-height: 58px; padding: 10px 12px; border-top: 1px solid rgba(255,255,255,.06); font-size: 10px; }
.session-row strong, .session-row small { display: block; }
.session-row small { color: var(--muted); }

.form-modal, .confirm-modal { position: relative; width: min(720px,100%); max-height: calc(100vh - 48px); overflow: auto; padding: 30px; border-radius: 22px; }
.form-modal.small { width: min(480px,100%); }
.form-modal h2, .confirm-modal h2 { margin: 9px 45px 21px 0; font-size: 26px; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin-bottom: 18px; }
.toggle-field { display: flex; align-items: center; gap: 9px; color: #c9d0dc; }
.toggle-field input { width: 18px; height: 18px; }
.confirm-modal { width: min(460px,100%); text-align: center; }
.confirm-icon { width: 58px; height: 58px; display: grid; place-items: center; margin: 0 auto; border-radius: 18px; background: rgba(185,37,32,.15); color: #ff928d; font-size: 25px; font-weight: 900; }
.confirm-modal h2 { margin: 16px 0 8px; }
.confirm-modal p { color: var(--muted); line-height: 1.55; }
.confirm-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 21px; }

@media (max-width: 1250px) {
  .topbar-actions .today { display: none; }
  .global-search { width: 320px; }
  .current-payment-row { grid-template-columns: 1fr 1fr 1fr; }
  .current-order-link { grid-column: 1 / -1; }
  .stock-table-head, .stock-table-row { grid-template-columns: minmax(145px,1.1fr) minmax(130px,.9fr) minmax(145px,.9fr) minmax(115px,.7fr) 70px; }
}
@media (max-width: 980px) {
  .topbar-actions { flex: 1; justify-content: flex-end; }
  .global-search { width: min(340px,48vw); }
  .viewer-badge { display: none; }
  .order-detail-grid, .request-layout { grid-template-columns: 1fr; }
  .stock-table-head { display: none; }
  .stock-table-row { grid-template-columns: 1fr 1fr 1fr; gap: 9px; border: 1px solid var(--border); border-radius: 13px; margin-top: 9px; }
  .stock-table-row > *:last-child { justify-self: start; }
  .user-table-head { display: none; }
  .user-row { grid-template-columns: 1fr 1fr; border: 1px solid var(--border); border-radius: 12px; margin-top: 8px; }
}
@media (max-width: 700px) {
  .topbar { align-items: flex-start; }
  .topbar-actions { gap: 6px; }
  .global-search { position: absolute; left: 10px; right: 10px; top: 76px; width: auto; }
  .view { padding-top: 75px; }
  .notification-panel { position: fixed; right: 10px; top: 78px; left: 10px; width: auto; }
  .finance-alert-chip small { display: none; }
  .order-row { grid-template-columns: 1fr 24px; }
  .order-stat, .order-status-cell { display: block; }
  .detail-title-row { align-items: flex-start; flex-direction: column; }
  .detail-actions { justify-content: flex-start; }
  .mini-info-grid, .data-import-summary, .form-grid { grid-template-columns: 1fr; }
  .current-payment-row { grid-template-columns: 1fr; }
  .stock-table-row { grid-template-columns: 1fr 1fr; }
  .price-history-head { display: none; }
  .price-history-row { grid-template-columns: 1fr 1fr; border: 1px solid var(--border); border-radius: 12px; margin-top: 8px; }
  .robot-data-actions { width: 100%; }
  .robot-data-actions button { flex: 1; }
  .robot-table-head.extended { display: none; }
  .robot-row.extended { grid-template-columns: 1fr 1fr; border: 1px solid var(--border); border-radius: 10px; margin-top: 7px; }
  .request-card { flex-direction: column; }
  .request-actions { justify-content: space-between; }
  .log-table-head, .session-table-head { display: none; }
  .log-row, .session-row { grid-template-columns: 1fr 1fr; border: 1px solid var(--border); border-radius: 11px; margin-top: 8px; }
  .log-row .audit-action, .log-row .audit-detail { grid-column: 1 / -1; }
}

.sidebar-user {
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 11px;
  margin: auto 0 0;
  padding: 13px 11px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.025));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
}
.sidebar-user .avatar { width: 44px; height: 44px; border-radius: 13px; font-size: 13px; }
.sidebar-user-copy { min-width: 0; text-align: left; }
.sidebar-user-copy strong { overflow: hidden; color: #f4f6fb; font-size: 14px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user-copy span { margin-top: 5px; color: #aeb8ca; font-size: 11px; font-weight: 650; opacity: 1; }
.sidebar-user-actions { justify-self: end; }
.sidebar-user-actions button { color: #aeb8ca; background: rgba(255,255,255,.055); }
.sidebar-user-actions button:hover { color: #fff; background: rgba(255,255,255,.1); }

.simple-order-table { min-width: 760px; }
.simple-order-table th:nth-child(1), .simple-order-table td:nth-child(1) { width: 70px; }
.simple-order-table th:nth-child(2), .simple-order-table td:nth-child(2) { width: 210px; }
.simple-order-table th:nth-child(4), .simple-order-table td:nth-child(4) { width: 150px; text-align: center; }
.simple-order-table th:nth-child(5), .simple-order-table td:nth-child(5) { width: 170px; text-align: right; }
.simple-order-table td:nth-child(4) strong, .simple-order-table td:nth-child(5) strong { color: #f5f7fb; font-size: 14px; }

.current-company-picker-zone { padding-top: 6px; padding-bottom: 24px; }
.current-company-picker-zone .company-picker { width: min(680px, 100%); }

.current-payment-row {
  grid-template-columns: minmax(245px,1.35fr) minmax(125px,.55fr) 120px 150px 145px minmax(170px,.65fr) auto;
  gap: 14px;
  min-height: 112px;
}
.current-payment-date.final-payment-date { padding: 10px 12px; border: 1px solid rgba(95,130,236,.16); border-radius: 12px; background: rgba(95,130,236,.045); }
.current-payment-date.final-payment-date strong { color: #eef2ff; }
.current-payment-date.final-payment-date small { margin-top: 5px; }

.user-permission-modal { width: min(920px, 100%); }
.permission-editor { margin: 24px 0; padding: 20px; border: 1px solid rgba(255,255,255,.08); border-radius: 18px; background: rgba(5,8,15,.34); }
.permission-editor-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 8px; }
.permission-editor-head h3 { margin: 5px 0 0; font-size: 18px; }
.permission-editor > p { margin: 0 0 17px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.permission-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.permission-group { padding: 14px; border: 1px solid rgba(255,255,255,.07); border-radius: 14px; background: rgba(255,255,255,.025); }
.permission-group h4 { margin: 0 0 10px; color: #e8ebf2; font-size: 12px; letter-spacing: .02em; }
.permission-option { display: flex; align-items: flex-start; gap: 9px; padding: 9px 8px; border-radius: 10px; cursor: pointer; transition: .15s ease; }
.permission-option:hover { background: rgba(255,255,255,.045); }
.permission-option input { width: 17px; height: 17px; margin: 1px 0 0; accent-color: #d43a34; }
.permission-option span { min-width: 0; }
.permission-option strong, .permission-option small { display: block; }
.permission-option strong { color: #dce2ed; font-size: 11px; line-height: 1.35; }
.permission-option small { margin-top: 3px; overflow: hidden; color: #737e93; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.permission-option:has(input:checked) { background: rgba(185,37,32,.09); }
.permission-option:has(input:disabled) { opacity: .72; cursor: default; }

@media (max-width: 1450px) {
  .current-payment-row { grid-template-columns: minmax(230px,1.2fr) 120px 110px 145px 140px 165px auto; gap: 10px; }
  .permission-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 1100px) {
  .current-payment-row { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .current-order-link { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .permission-editor-head { align-items: flex-start; flex-direction: column; }
  .permission-grid { grid-template-columns: 1fr; }
  .current-payment-row { grid-template-columns: 1fr; }
}

.request-card {
  display: grid;
  grid-template-columns: minmax(280px, 1.35fr) minmax(360px, .9fr) auto;
  align-items: center;
  gap: 22px;
  padding: 22px 24px;
}
.request-card-main { min-width: 0; }
.request-card-main > strong { margin-top: 12px; font-size: 19px; letter-spacing: -.02em; }
.request-card-main p { max-width: 700px; margin: 12px 0 10px; font-size: 15px; }
.request-card-main small { display: block; font-size: 11px; }
.request-card-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  gap: 10px;
}
.request-card-facts > div {
  min-height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255,255,255,.05), rgba(255,255,255,.018));
}
.request-card-facts small { color: var(--muted-2); font-size: 9px; font-weight: 850; letter-spacing: .09em; }
.request-card-facts strong { margin-top: 8px; overflow: hidden; color: #f6f7fb; font-size: 25px; line-height: 1; text-overflow: ellipsis; white-space: nowrap; }
.request-card-facts span { margin-top: 7px; color: #9aa5b9; font-size: 10px; }
.request-actions {
  min-width: 190px;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
}
.request-actions select { width: 100%; min-width: 170px; }
.request-actions .danger-link { min-height: 38px; border: 1px solid rgba(255,91,84,.15); border-radius: 10px; background: rgba(185,37,32,.055); }
.request-actions .danger-link:hover { background: rgba(185,37,32,.12); }

.current-payment-row {
  grid-template-columns: minmax(250px,1.3fr) minmax(125px,.55fr) 115px 155px 180px 150px 92px;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
}
.current-payment-row > * { min-width: 0; box-sizing: border-box; }
.current-payment-date,
.current-payment-status,
.current-payment-amount { align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
.current-payment-date input,
.current-payment-status select { width: 100%; max-width: 100%; box-sizing: border-box; }
.current-payment-status .payment-status-badge { margin-top: 8px; }
.payment-save-button { min-width: 88px; white-space: nowrap; }
.current-order-link strong,
.current-order-link small { overflow: hidden; text-overflow: ellipsis; }
.current-order-link strong { white-space: normal; }

.panel-head,
.page-intro,
.detail-title-row,
.current-intro { flex-wrap: wrap; row-gap: 12px; }
.panel-head > div,
.page-intro > div,
.detail-title-row > div { min-width: 0; }
.panel-head h3,
.page-intro h2,
.detail-title-row h2 { overflow-wrap: anywhere; }
.panel-head > .status-chip,
.panel-head > .finance-access-note { flex-shrink: 0; }
.primary-button,
.secondary-button,
.ghost-button,
.danger-button,
.back-button,
.payment-save-button { line-height: 1.2; }

.payment-alert-backdrop {
  z-index: 180;
  background: rgba(2,4,9,.78);
  backdrop-filter: blur(12px);
}
.payment-alert-modal {
  position: relative;
  width: min(980px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 28px;
  border: 1px solid rgba(245,190,72,.2);
  border-radius: 25px;
  background:
    radial-gradient(circle at 10% 0%, rgba(245,190,72,.12), transparent 34%),
    radial-gradient(circle at 90% 10%, rgba(185,37,32,.12), transparent 32%),
    rgba(14,18,29,.985);
  box-shadow: 0 34px 100px rgba(0,0,0,.58), inset 0 1px 0 rgba(255,255,255,.04);
  animation: paymentAlertEnter .3s ease both;
}
@keyframes paymentAlertEnter {
  from { opacity: 0; transform: translateY(14px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.payment-alert-modal-head {
  display: grid;
  grid-template-columns: 66px minmax(0,1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 3px 42px 22px 0;
  border-bottom: 1px solid rgba(255,255,255,.075);
}
.payment-alert-modal-head h2 { margin: 7px 0 5px; font-size: clamp(24px,3vw,34px); letter-spacing: -.035em; }
.payment-alert-modal-head p { margin: 0; color: var(--muted); line-height: 1.5; }
.payment-alert-siren {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(245,190,72,.28);
  border-radius: 19px;
  background: rgba(245,190,72,.11);
  color: #ffda78;
  font-size: 29px;
  font-weight: 950;
  box-shadow: 0 0 30px rgba(245,190,72,.12);
}
.payment-alert-modal-list { display: grid; gap: 10px; margin-top: 20px; }
.payment-alert-modal-item {
  width: 100%;
  display: grid;
  grid-template-columns: 46px minmax(190px,1fr) minmax(160px,.55fr) minmax(150px,.45fr);
  align-items: center;
  gap: 16px;
  padding: 17px 18px;
  border: 1px solid rgba(245,190,72,.16);
  border-radius: 16px;
  background: rgba(245,190,72,.045);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: .16s ease;
}
.payment-alert-modal-item:hover { transform: translateY(-1px); border-color: rgba(245,190,72,.3); background: rgba(245,190,72,.075); }
.payment-alert-modal-item.overdue { border-color: rgba(255,91,84,.2); background: rgba(185,37,32,.065); }
.payment-alert-modal-item.overdue:hover { border-color: rgba(255,91,84,.38); background: rgba(185,37,32,.1); }
.payment-alert-modal-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(255,255,255,.055);
  color: #ffda78;
  font-size: 19px;
  font-weight: 900;
}
.payment-alert-modal-item.overdue .payment-alert-modal-icon { color: #ff918b; }
.payment-alert-modal-copy small,
.payment-alert-modal-amount small { display: block; color: var(--muted-2); font-size: 8px; font-weight: 850; letter-spacing: .09em; }
.payment-alert-modal-copy strong,
.payment-alert-modal-amount strong { display: block; margin-top: 6px; color: #f5f7fb; font-size: 16px; }
.payment-alert-modal-copy em { display: block; margin-top: 5px; color: #8d98ab; font-size: 10px; font-style: normal; }
.payment-alert-modal-deadline {
  justify-self: end;
  padding: 10px 12px;
  border-radius: 11px;
  background: rgba(245,190,72,.12);
  color: #ffda78;
  font-size: 11px;
  letter-spacing: .035em;
  white-space: nowrap;
}
.payment-alert-modal-item.overdue .payment-alert-modal-deadline { background: rgba(185,37,32,.14); color: #ff928c; }
.payment-alert-modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }

@media (max-width: 1350px) {
  .request-card { grid-template-columns: minmax(260px,1fr) minmax(320px,.8fr); }
  .request-actions { grid-column: 1 / -1; flex-direction: row; justify-content: flex-end; }
  .request-actions select { width: 210px; }
  .current-payment-row { grid-template-columns: minmax(230px,1.2fr) 120px 105px 145px 165px 145px 86px; gap: 9px; }
}
@media (max-width: 1100px) {
  .request-card { grid-template-columns: 1fr; }
  .request-card-facts { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .request-actions { grid-column: auto; }
  .current-payment-row { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .current-order-link { grid-column: 1 / -1; }
  .payment-save-button { width: 100%; }
  .payment-alert-modal-item { grid-template-columns: 42px minmax(0,1fr) minmax(150px,.6fr); }
  .payment-alert-modal-deadline { grid-column: 2 / -1; justify-self: start; }
}
@media (max-width: 720px) {
  .request-card { padding: 17px; }
  .request-card-facts { grid-template-columns: 1fr; }
  .request-actions { flex-direction: column; }
  .request-actions select { width: 100%; }
  .current-payment-row { grid-template-columns: 1fr; }
  .payment-alert-modal { padding: 20px 16px; border-radius: 20px; }
  .payment-alert-modal-head { grid-template-columns: 52px 1fr; padding-right: 32px; }
  .payment-alert-siren { width: 50px; height: 50px; border-radius: 15px; }
  .payment-alert-modal-head .status-chip { grid-column: 1 / -1; justify-self: start; }
  .payment-alert-modal-item { grid-template-columns: 40px 1fr; padding: 14px; }
  .payment-alert-modal-amount { grid-column: 2; }
  .payment-alert-modal-deadline { grid-column: 2; }
  .payment-alert-modal-actions { flex-direction: column-reverse; }
  .payment-alert-modal-actions button { width: 100%; }
}

.brand-mini {
  min-height: 92px;
  align-items: center;
  gap: 17px;
  padding: 7px 10px 24px;
}
.brand-mini img {
  width: 68px;
  height: 68px;
  flex: 0 0 68px;
  border-radius: 15px;
}
.brand-mini-copy {
  min-width: 0;
  display: flex;
  align-items: center;
  transform: translateY(5px);
}
.brand-mini strong {
  color: #f7f8fb;
  font-size: 22px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: -.035em;
  white-space: nowrap;
}

.request-layout > * { min-width: 0; }
.request-card {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  grid-template-columns: minmax(250px, 1.2fr) minmax(290px, .9fr) minmax(165px, .42fr);
  overflow: hidden;
}
.request-card-main,
.request-card-facts,
.request-card-facts > div,
.request-actions { min-width: 0; }
.request-card-main p,
.request-card-main small { overflow-wrap: anywhere; }
.request-card-facts strong {
  overflow: visible;
  font-size: clamp(20px, 1.55vw, 25px);
  line-height: 1.12;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
}
.request-actions {
  width: 100%;
  max-width: 190px;
  margin-left: auto;
}
.request-actions select,
.request-actions .danger-link {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.payment-alert-siren {
  position: relative;
  overflow: hidden;
  color: #fff1b9;
  background: linear-gradient(145deg, rgba(255,91,84,.25), rgba(245,190,72,.14));
  border-color: rgba(255,122,86,.42);
  animation: warningSirenPulse 1.1s ease-in-out infinite;
}
.payment-alert-siren::after {
  content: "";
  position: absolute;
  inset: -35%;
  background: conic-gradient(from 0deg, transparent 0 38%, rgba(255,224,147,.35) 46%, transparent 54% 100%);
  animation: warningSirenSweep 1.1s linear infinite;
}
.payment-alert-siren { isolation: isolate; }
.payment-alert-siren::before {
  content: "!";
  position: relative;
  z-index: 2;
}
.payment-alert-siren { font-size: 0; }
.payment-alert-siren::before { font-size: 29px; }
@keyframes warningSirenPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(255,91,84,.08), 0 0 28px rgba(245,190,72,.12); }
  50% { box-shadow: 0 0 0 9px rgba(255,91,84,.04), 0 0 42px rgba(255,91,84,.24); }
}
@keyframes warningSirenSweep { to { transform: rotate(360deg); } }
.payment-alert-modal-item { cursor: default; }
.payment-alert-modal-item:hover { transform: none; }
.payment-alert-modal-actions button { min-width: 190px; }

@media (max-width: 1650px) {
  .request-layout { grid-template-columns: 1fr; }
  .request-form { max-width: 760px; }
}
@media (max-width: 1180px) {
  .request-card { grid-template-columns: 1fr; }
  .request-card-facts { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .request-actions {
    max-width: none;
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(120px,.35fr);
    align-items: stretch;
  }
}
@media (max-width: 720px) {
  .brand-mini { min-height: 76px; gap: 13px; padding-left: 7px; }
  .brand-mini img { width: 56px; height: 56px; flex-basis: 56px; }
  .brand-mini strong { font-size: 19px; }
  .request-card-facts,
  .request-actions { grid-template-columns: 1fr; }
  .payment-alert-modal-actions button { min-width: 0; }
}

.request-card {
  grid-template-columns: minmax(360px, 520px) minmax(430px, 560px) minmax(190px, 230px);
  justify-content: center;
  column-gap: 18px;
}
.request-card-main {
  align-self: center;
}
.request-card-main small {
  margin-top: 14px;
}
.request-card-facts {
  width: 100%;
  align-self: center;
}
.request-card-facts > div {
  min-height: 112px;
  padding: 16px 18px;
}
.request-actions {
  align-self: center;
  margin-left: 0;
}

.login-brand-panel {
  justify-content: center;
  gap: 42px;
}
.login-logo {
  align-self: center;
  width: min(760px, 92%);
  margin: 0 auto;
  transform: translateY(16px);
}
.login-copy {
  width: 100%;
  max-width: 650px;
  margin: 0 auto;
}
.login-copy .kicker {
  display: inline-block;
}
.login-copy p {
  display: none;
}

@media (max-width: 1500px) {
  .request-card {
    grid-template-columns: minmax(330px, 1fr) minmax(390px, .9fr) minmax(180px, 210px);
    justify-content: stretch;
  }
}
@media (max-width: 1180px) {
  .request-card {
    grid-template-columns: minmax(300px, 1fr) minmax(360px, .9fr);
  }
  .request-actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 220px) minmax(0, 160px);
    justify-content: end;
    max-width: none;
  }
}
@media (max-width: 820px) {
  .request-card {
    grid-template-columns: 1fr;
    justify-content: stretch;
  }
  .request-card-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .request-actions {
    grid-column: auto;
    grid-template-columns: 1fr;
  }
  .login-brand-panel {
    gap: 28px;
  }
  .login-logo {
    width: min(620px, 96%);
    transform: translateY(8px);
  }
}
@media (max-width: 560px) {
  .request-card-facts {
    grid-template-columns: 1fr;
  }
  .login-brand-panel {
    padding: 26px 22px;
  }
  .login-logo {
    width: 100%;
  }
}

.welcome-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 42%, rgba(184, 38, 35, .19), transparent 34%),
    rgba(4, 6, 12, .78);
  backdrop-filter: blur(14px);
  opacity: 0;
  transition: opacity .28s ease;
}
.welcome-backdrop.show { opacity: 1; }
.welcome-card {
  position: relative;
  width: min(590px, 100%);
  overflow: hidden;
  padding: 44px 44px 30px;
  text-align: center;
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,.12);
  background:
    linear-gradient(145deg, rgba(32, 36, 54, .97), rgba(14, 17, 29, .98)),
    var(--panel);
  box-shadow: 0 35px 110px rgba(0,0,0,.62), 0 0 55px rgba(178,37,33,.12);
  transform: translateY(24px) scale(.96);
  opacity: 0;
  transition: transform .42s cubic-bezier(.2,.8,.2,1), opacity .32s ease;
}
.welcome-backdrop.show .welcome-card { transform: translateY(0) scale(1); opacity: 1; }
.welcome-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, transparent, #e44740 28%, #ff8c69 52%, #e44740 76%, transparent);
  box-shadow: 0 0 24px rgba(228,71,64,.7);
}
.welcome-card::after {
  content: "";
  position: absolute;
  width: 330px;
  height: 330px;
  right: -190px;
  bottom: -220px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 50%;
  box-shadow: 0 0 0 58px rgba(255,255,255,.018), 0 0 0 116px rgba(255,255,255,.012);
  pointer-events: none;
}
.welcome-emblem {
  position: relative;
  width: 108px;
  height: 108px;
  display: grid;
  place-items: center;
  margin: 0 auto 25px;
}
.welcome-emblem img {
  position: relative;
  z-index: 3;
  width: 72px;
  height: 72px;
  border-radius: 20px;
  filter: drop-shadow(0 12px 22px rgba(0,0,0,.42));
  animation: welcomeLogoFloat 2.7s ease-in-out infinite;
}
.welcome-ring {
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  border: 1px solid rgba(232,91,83,.34);
}
.welcome-ring-one { animation: welcomeRing 2.2s ease-out infinite; }
.welcome-ring-two { inset: 18px; border-color: rgba(255,255,255,.16); animation: welcomeRing 2.2s .55s ease-out infinite; }
.welcome-card .kicker { display: block; margin-bottom: 12px; color: #d18b87; letter-spacing: .22em; }
.welcome-card h2 { margin: 0 auto; max-width: 760px; font-size: clamp(30px, 4.2vw, 48px); line-height: 1.08; letter-spacing: -.04em; text-align: center; }
.welcome-card h2 span { display: block; font-weight: 800; }
.welcome-card h2 strong { display: block; color: #fff; font-weight: 800; white-space: nowrap; }
.welcome-details {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 34px;
  margin: 26px 0 26px;
  color: rgba(233,235,244,.74);
  font-size: 13px;
  font-weight: 650;
}
.welcome-details i { width: 4px; height: 4px; border-radius: 50%; background: #d94a44; box-shadow: 0 0 10px rgba(217,74,68,.8); }
.welcome-continue { min-width: 178px; }
.welcome-progress {
  height: 3px;
  margin: 26px -44px -30px;
  overflow: hidden;
  background: rgba(255,255,255,.045);
}
.welcome-progress span {
  display: block;
  height: 100%;
  width: 100%;
  transform-origin: left;
  background: linear-gradient(90deg, #a51e1c, #ee5f57, #ff9b73);
  animation: welcomeProgress 4.3s linear forwards;
}
@keyframes welcomeRing {
  0% { transform: scale(.76); opacity: 0; }
  30% { opacity: .8; }
  100% { transform: scale(1.16); opacity: 0; }
}
@keyframes welcomeLogoFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes welcomeProgress { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@media (max-width: 620px) {
  .welcome-backdrop { padding: 15px; }
  .welcome-card { padding: 34px 23px 26px; border-radius: 24px; }
  .welcome-emblem { width: 92px; height: 92px; margin-bottom: 20px; }
  .welcome-emblem img { width: 62px; height: 62px; }
  .welcome-card h2 strong { white-space: normal; }
  .welcome-details { flex-wrap: wrap; gap: 8px; }
  .welcome-progress { margin: 24px -23px -26px; }
}

.topbar:has(.search-dropdown:not([hidden])) { z-index: 260; }
.global-search:focus-within { z-index: 270; }
.global-search .search-dropdown { isolation: isolate; }

.future-goods-nav {
  min-height: 48px;
  margin-top: -5px;
  padding-left: 42px;
  color: #98a3b8;
  font-size: 13px;
}
.future-goods-nav .nav-symbol {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  font-size: 10px;
  font-weight: 900;
}
.future-goods-nav > span:nth-child(2) {
  white-space: normal;
  line-height: 1.25;
}
.future-goods-nav.active .nav-symbol {
  border-color: rgba(255,91,84,.35);
  color: #ff8d88;
  background: rgba(185,37,32,.12);
}
.customer-safe-badge {
  border-color: rgba(84,215,165,.2);
  color: #8eeac8;
  background: rgba(84,215,165,.07);
}
.future-goods-detail-head .detail-title-row {
  align-items: flex-end;
}
.future-goods-panel {
  max-width: 1500px;
}
.future-goods-table {
  min-width: 900px;
}
.future-goods-table th:nth-child(1),
.future-goods-table td:nth-child(1) {
  width: 90px;
}
.future-goods-table th:nth-child(2),
.future-goods-table td:nth-child(2) {
  width: 250px;
}
.future-goods-table td:nth-child(2) strong {
  color: var(--text);
  font-size: 15px;
}
.future-goods-table td:nth-child(3) {
  color: var(--text);
}
.future-goods-table th:nth-child(4),
.future-goods-table td:nth-child(4) {
  width: 230px;
}
.future-product-type-cell {
  color: var(--red-2);
  font-weight: 850;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.future-goods-safe-stat strong {
  font-size: 14px !important;
  color: #b8c6df !important;
}

.request-sheet-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.request-form-sheet {
  display: block;
}
.request-current-user {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
  color: #aab4c7;
  background: rgba(255,255,255,.035);
  font-size: 12px;
  font-weight: 750;
}
.request-form-grid {
  display: grid;
  grid-template-columns: minmax(220px,1fr) minmax(180px,.55fr) minmax(240px,1fr) auto;
  align-items: end;
  gap: 14px;
  margin-top: 18px;
}
.request-form-grid .primary-button {
  min-width: 170px;
  min-height: 48px;
  white-space: nowrap;
}
.request-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin-top: 18px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 15px;
  background: rgba(5,8,15,.18);
}
.request-table {
  min-width: 1180px;
}
.request-sheet-head,
.request-sheet-row {
  display: grid;
  grid-template-columns: minmax(160px,.8fr) minmax(150px,.65fr) minmax(220px,1fr) minmax(200px,.9fr) minmax(170px,.75fr) minmax(190px,.8fr) minmax(80px,.35fr);
  align-items: center;
  gap: 0;
}
.request-sheet-head {
  position: sticky;
  top: 0;
  z-index: 2;
  min-height: 54px;
  background: rgba(18,23,35,.985);
  border-bottom: 1px solid rgba(255,255,255,.09);
}
.request-sheet-head span {
  padding: 0 16px;
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.request-sheet-row {
  min-height: 76px;
  border-bottom: 1px solid rgba(255,255,255,.065);
  transition: background .16s ease;
}
.request-sheet-row:last-child {
  border-bottom: 0;
}
.request-sheet-row:hover {
  background: rgba(255,255,255,.025);
}
.request-sheet-row > span {
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 13px 16px;
  border-right: 1px solid rgba(255,255,255,.045);
  color: #bdc6d5;
}
.request-sheet-row > span:last-child {
  border-right: 0;
}
.request-sheet-row strong {
  overflow-wrap: anywhere;
  color: #f5f7fb;
  font-size: 14px;
  line-height: 1.35;
}
.request-sheet-row small {
  margin-top: 4px;
  color: #7f8aa0;
  font-size: 10px;
}
.request-status-select {
  width: 100%;
  min-height: 40px;
  padding: 0 34px 0 12px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 10px;
  background: rgba(7,10,18,.75);
  color: #f2f4f8;
}
.request-delete-button {
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(255,91,84,.18);
  border-radius: 10px;
  background: rgba(185,37,32,.06);
}
.request-delete-button:hover {
  background: rgba(185,37,32,.14);
}

@media (max-width: 1180px) {
  .request-form-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
  .request-form-grid .primary-button {
    width: 100%;
  }
  .future-goods-nav {
    padding-left: 28px;
  }
}
@media (max-width: 720px) {
  .request-form-grid {
    grid-template-columns: 1fr;
  }
  .request-current-user {
    width: 100%;
    justify-content: center;
    border-radius: 10px;
  }
  .future-goods-nav {
    padding-left: 20px;
  }
}
.request-table.no-manage .request-sheet-head,
.request-table.no-manage .request-sheet-row {
  grid-template-columns: minmax(170px,.85fr) minmax(160px,.7fr) minmax(240px,1fr) minmax(220px,.95fr) minmax(180px,.8fr) minmax(160px,.7fr);
}

.request-page-intro { align-items: center; }
.request-export-button {
  min-width: 150px;
  min-height: 46px;
  border-color: rgba(84,215,165,.2);
  color: #9cebcf;
  background: rgba(84,215,165,.065);
  white-space: nowrap;
}
.request-export-button:hover {
  border-color: rgba(84,215,165,.34);
  background: rgba(84,215,165,.12);
}
@media (max-width: 700px) {
  .request-page-intro { align-items: stretch; }
  .request-export-button { width: 100%; }
}

.future-goods-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.future-arrival-edit-button {
  border-color: rgba(95,130,236,.28);
  color: #b9c8ff;
  background: rgba(95,130,236,.08);
}
.future-arrival-edit-button:hover {
  border-color: rgba(95,130,236,.46);
  background: rgba(95,130,236,.14);
}
.future-arrival-stat { min-width: 180px; }
.future-arrival-badge {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 43px;
  margin-top: 8px !important;
  padding: 0 14px;
  border: 1px solid rgba(95,130,236,.24);
  border-radius: 11px;
  background: rgba(95,130,236,.09);
  color: #bdcaff;
  font-size: 14px !important;
  font-weight: 800;
  white-space: nowrap;
}
.future-arrival-badge.is-empty {
  border-color: rgba(255,255,255,.10);
  background: rgba(255,255,255,.035);
  color: #8d97aa;
  font-weight: 700;
}
.future-arrival-badge.has-date::before {
  content: '◷';
  margin-right: 8px;
  color: #8ba8ff;
  font-size: 16px;
}
.future-arrival-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}
@media (max-width: 820px) {
  .future-goods-actions { justify-content: flex-start; }
  .future-goods-actions > button { width: 100%; }
  .future-arrival-stat { min-width: 0; }
  .future-arrival-badge { white-space: normal; text-align: center; }
  .future-arrival-modal-actions { flex-direction: column-reverse; }
  .future-arrival-modal-actions > button { width: 100%; }
}

.future-arrival-stat > small {
  color: #f7f9ff;
  font-weight: 850;
  letter-spacing: .012em;
  text-shadow:
    0 0 7px rgba(255,255,255,.52),
    0 0 16px rgba(132,158,255,.34);
}

.stock-table-head,
.stock-table-row {
  grid-template-columns: minmax(170px, 1.2fr) minmax(150px, 1fr) minmax(180px, 1fr) minmax(135px, .8fr) 92px;
}

.sensitive-orders-backdrop {
  z-index: 1600;
  background: rgba(3, 5, 11, .82);
  backdrop-filter: blur(16px);
}
.sensitive-orders-modal {
  width: min(680px, calc(100vw - 32px));
  padding: clamp(26px, 4vw, 42px);
  border: 1px solid rgba(255, 105, 99, .24);
  border-radius: 26px;
  background:
    radial-gradient(circle at 12% 5%, rgba(190, 39, 35, .18), transparent 38%),
    linear-gradient(145deg, rgba(26, 29, 45, .98), rgba(12, 14, 24, .98));
  box-shadow: 0 34px 95px rgba(0, 0, 0, .62), 0 0 0 1px rgba(255,255,255,.035) inset;
  text-align: center;
}
.sensitive-orders-icon {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  margin: 0 auto 20px;
  border: 1px solid rgba(255, 103, 96, .34);
  border-radius: 22px;
  background: rgba(180, 38, 34, .18);
  color: #ff8b86;
  font-size: 30px;
  font-weight: 900;
  box-shadow: 0 0 32px rgba(214, 51, 45, .18);
}
.sensitive-orders-modal h2 { margin: 10px 0 18px; font-size: clamp(25px, 4vw, 36px); letter-spacing: -.04em; }
.sensitive-orders-modal p { max-width: 590px; margin: 10px auto; color: var(--muted); font-size: 14px; line-height: 1.7; }
.sensitive-orders-modal p strong { color: #f4f6ff; }
.sensitive-orders-actions { display: flex; justify-content: center; gap: 12px; margin-top: 27px; }
.sensitive-orders-actions button { min-height: 48px; padding-inline: 20px; }
.sensitive-continue-button { background: linear-gradient(135deg, #b82520, #8d1916); box-shadow: 0 12px 28px rgba(179, 33, 29, .25); }

@media (max-width: 980px) {
  .stock-table-head { display: none; }
  .stock-table-row { grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--border); border-radius: 13px; margin-top: 9px; }
}
@media (max-width: 620px) {
  .stock-table-row { grid-template-columns: 1fr 1fr; }
  .sensitive-orders-actions { flex-direction: column-reverse; }
  .sensitive-orders-actions button { width: 100%; }
}

.access-denied-backdrop {
  z-index: 1700;
  background: rgba(3, 5, 11, .84);
  backdrop-filter: blur(16px);
}
.access-denied-modal {
  width: min(520px, calc(100vw - 32px));
  padding: clamp(28px, 4vw, 42px);
  border: 1px solid rgba(255, 105, 99, .24);
  border-radius: 26px;
  background:
    radial-gradient(circle at 50% 0%, rgba(190, 39, 35, .19), transparent 42%),
    linear-gradient(145deg, rgba(26, 29, 45, .99), rgba(12, 14, 24, .99));
  box-shadow: 0 34px 95px rgba(0,0,0,.64), 0 0 0 1px rgba(255,255,255,.035) inset;
  text-align: center;
}
.access-denied-icon {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  margin: 0 auto 20px;
  border: 1px solid rgba(255, 103, 96, .34);
  border-radius: 22px;
  background: rgba(180, 38, 34, .18);
  color: #ff8b86;
  font-size: 32px;
  font-weight: 900;
  box-shadow: 0 0 32px rgba(214,51,45,.18);
}
.access-denied-modal h2 { margin: 10px 0 12px; font-size: clamp(25px, 4vw, 34px); letter-spacing: -.04em; }
.access-denied-modal p { margin: 0 auto 26px; color: #c4cad8; font-size: 15px; line-height: 1.7; }
.access-denied-modal .primary-button { min-width: 150px; min-height: 48px; }

.current-payment-list {
  overflow-x: auto;
  padding-bottom: 3px;
}
.current-payment-row {
  grid-template-columns:
    minmax(190px, 1.25fr)
    minmax(100px, .55fr)
    78px
    126px
    132px
    minmax(105px, .62fr)
    minmax(105px, .62fr)
    minmax(105px, .62fr)
    126px
    82px;
  gap: 8px;
  min-width: 1320px;
  min-height: 116px;
  padding: 15px 14px;
}
.current-payment-row .current-payment-amount,
.current-payment-row .current-payment-date,
.current-payment-row .current-payment-status,
.finance-text-field {
  min-width: 0;
}
.finance-text-field {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.finance-text-field > span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}
.finance-value-chip,
.finance-text-field input {
  width: 100%;
  min-width: 0;
  height: 43px;
  box-sizing: border-box;
  border: 1px solid;
  border-radius: 11px;
  outline: 0;
  font-size: 11px;
  font-weight: 820;
}
.finance-value-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  cursor: pointer;
  text-align: left;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s ease;
}
.finance-value-chip:hover {
  transform: translateY(-1px);
}
.finance-value-chip i {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
}
.finance-value-chip b {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: inherit;
}
.finance-value-chip.empty {
  opacity: .68;
  font-weight: 740;
}
.finance-text-field input {
  padding: 0 10px;
  background: rgba(5, 8, 15, .72);
  color: #f8faff;
}
.finance-text-field input:focus {
  box-shadow: 0 0 0 3px rgba(255,255,255,.06);
}
.logistics-tone .finance-value-chip,
.logistics-tone input {
  border-color: rgba(61, 196, 226, .34);
  background: rgba(31, 131, 157, .14);
  color: #9beaff;
}
.logistics-tone .finance-value-chip:hover,
.logistics-tone input:focus {
  border-color: rgba(92, 220, 247, .58);
  box-shadow: 0 0 0 3px rgba(61, 196, 226, .09);
}
.customs-tone .finance-value-chip,
.customs-tone input {
  border-color: rgba(156, 120, 244, .35);
  background: rgba(94, 62, 166, .15);
  color: #d1bdff;
}
.customs-tone .finance-value-chip:hover,
.customs-tone input:focus {
  border-color: rgba(182, 151, 255, .58);
  box-shadow: 0 0 0 3px rgba(156, 120, 244, .09);
}
.byk-tone .finance-value-chip,
.byk-tone input {
  border-color: rgba(242, 108, 99, .35);
  background: rgba(164, 51, 45, .15);
  color: #ffb3ae;
}
.byk-tone .finance-value-chip:hover,
.byk-tone input:focus {
  border-color: rgba(255, 137, 129, .6);
  box-shadow: 0 0 0 3px rgba(242, 108, 99, .09);
}
.current-payment-row .payment-save-button {
  min-width: 0;
  padding-inline: 10px;
}

@media (max-width: 1280px) {
  .current-payment-list { overflow-x: visible; }
  .current-payment-row {
    min-width: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }
  .current-order-link { grid-column: 1 / -1; }
  .payment-save-button { width: 100%; }
}
@media (max-width: 720px) {
  .current-payment-row { grid-template-columns: 1fr; }
  .current-order-link { grid-column: auto; }
}

.current-payment-row {
  grid-template-columns:
    minmax(175px, 1.15fr)
    92px
    72px
    124px
    128px
    minmax(125px, .76fr)
    minmax(150px, .92fr)
    minmax(115px, .68fr)
    minmax(115px, .68fr)
    122px
    78px;
  gap: 8px;
  min-width: 1460px;
  min-height: 116px;
  align-items: center;
}
.finance-text-field {
  min-width: 0;
  align-self: stretch;
  justify-content: center;
}
.finance-value-chip {
  min-height: 43px;
  height: auto;
  padding: 9px 10px;
  align-items: flex-start;
  line-height: 1.35;
}
.finance-value-chip i {
  margin-top: 4px;
}
.finance-value-chip b {
  min-width: 0;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.35;
}
.finance-text-field textarea {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 43px;
  max-height: 220px;
  box-sizing: border-box;
  padding: 10px;
  border: 1px solid;
  border-radius: 11px;
  outline: 0;
  resize: none;
  overflow-y: auto;
  background: rgba(5, 8, 15, .72);
  color: #f8faff;
  font: inherit;
  font-size: 11px;
  font-weight: 820;
  line-height: 1.35;
  scrollbar-width: thin;
}
.finance-text-field textarea:focus {
  box-shadow: 0 0 0 3px rgba(255,255,255,.06);
}
.logistics-tone textarea {
  border-color: rgba(61, 196, 226, .34);
  background: rgba(31, 131, 157, .14);
  color: #9beaff;
}
.logistics-tone textarea:focus {
  border-color: rgba(92, 220, 247, .58);
  box-shadow: 0 0 0 3px rgba(61, 196, 226, .09);
}
.tracking-tone .finance-value-chip,
.tracking-tone textarea {
  border-color: rgba(245, 185, 72, .38);
  background: rgba(166, 112, 21, .15);
  color: #ffe19a;
}
.tracking-tone .finance-value-chip:hover,
.tracking-tone textarea:focus {
  border-color: rgba(255, 205, 104, .66);
  box-shadow: 0 0 0 3px rgba(245, 185, 72, .10);
}
.customs-tone textarea {
  border-color: rgba(156, 120, 244, .35);
  background: rgba(94, 62, 166, .15);
  color: #d1bdff;
}
.customs-tone textarea:focus {
  border-color: rgba(182, 151, 255, .58);
  box-shadow: 0 0 0 3px rgba(156, 120, 244, .09);
}
.byk-tone textarea {
  border-color: rgba(242, 108, 99, .35);
  background: rgba(164, 51, 45, .15);
  color: #ffb3ae;
}
.byk-tone textarea:focus {
  border-color: rgba(255, 137, 129, .6);
  box-shadow: 0 0 0 3px rgba(242, 108, 99, .09);
}

@media (max-width: 1280px) {
  .current-payment-list { overflow-x: visible; }
  .current-payment-row {
    min-width: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }
  .current-order-link { grid-column: 1 / -1; }
  .payment-save-button { width: 100%; }
}
@media (max-width: 720px) {
  .current-payment-row { grid-template-columns: 1fr; }
  .current-order-link { grid-column: auto; }
}

.finance-text-field textarea[hidden], .finance-text-field .finance-value-chip[hidden] { display: none !important; }

.dashboard-intro { align-items: flex-end; }
.dashboard-card-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; margin-bottom:18px; }
.dashboard-card { position:relative; min-height:150px; border:1px solid var(--border); border-radius:22px; padding:24px; text-align:left; color:var(--text); background:linear-gradient(145deg,rgba(31,37,58,.92),rgba(17,21,35,.9)); cursor:pointer; transition:.2s ease; }
.dashboard-card:hover { transform:translateY(-3px); border-color:rgba(239,78,74,.42); box-shadow:0 22px 50px rgba(0,0,0,.25); }
.dashboard-card small { display:block; color:var(--muted); font-size:13px; font-weight:800; letter-spacing:.06em; text-transform:uppercase; }
.dashboard-card strong { display:block; margin:16px 0 8px; font-size:38px; line-height:1; }
.dashboard-card span { color:var(--muted); font-size:14px; }
.dashboard-card i { position:absolute; right:22px; bottom:19px; font-style:normal; font-size:28px; color:#ff7772; }
.dashboard-grid { display:grid; grid-template-columns:minmax(0,1.45fr) minmax(360px,.8fr); gap:18px; }
.dashboard-recent-row { width:100%; display:flex; align-items:center; justify-content:space-between; gap:24px; padding:18px 4px; color:var(--text); background:none; border:0; border-bottom:1px solid var(--border); text-align:left; cursor:pointer; }
.dashboard-recent-row:last-child { border-bottom:0; }
.dashboard-recent-row span { display:flex; flex-direction:column; gap:5px; min-width:0; }
.dashboard-recent-row strong { font-size:16px; }
.dashboard-recent-row small { color:var(--muted); }
.dashboard-recent-row b { white-space:nowrap; font-size:16px; }
.security-health-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.security-health-grid > div { padding:17px; border:1px solid var(--border); border-radius:16px; background:rgba(9,12,22,.44); }
.security-health-grid span { display:block; color:var(--muted); font-size:12px; margin-bottom:7px; }
.security-health-grid strong { font-size:14px; color:#95f0ca; }

.template-lab-grid { display:grid; grid-template-columns:minmax(360px,.8fr) minmax(0,1.2fr); gap:18px; margin-bottom:18px; }
.template-analyzer-panel,.template-result-panel { min-height:430px; }
.compact-template-drop { margin:16px 0; min-height:220px; }
.template-analysis-empty { min-height:280px; display:grid; place-items:center; text-align:center; color:var(--muted); border:1px dashed var(--border); border-radius:18px; padding:28px; }
.template-analysis-result { display:flex; flex-direction:column; gap:16px; }
.template-detected-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.template-detected-grid > div { padding:15px; border:1px solid var(--border); border-radius:14px; background:rgba(10,13,24,.55); }
.template-detected-grid span { display:block; color:var(--muted); font-size:11px; text-transform:uppercase; letter-spacing:.08em; margin-bottom:7px; }
.template-detected-grid strong { font-size:15px; }
.template-mapping code,.template-config-preview { display:block; max-height:180px; overflow:auto; padding:15px; white-space:pre-wrap; overflow-wrap:anywhere; color:#b9c3e9; background:#0a0d17; border:1px solid var(--border); border-radius:14px; font:12px/1.55 ui-monospace,SFMono-Regular,Consolas,monospace; }
.template-sample-table { overflow:auto; border:1px solid var(--border); border-radius:14px; }
.template-sample-table > div { display:grid; grid-template-columns:1fr 1.5fr .7fr .8fr; gap:10px; padding:11px 13px; border-bottom:1px solid var(--border); }
.template-sample-table > div:first-child { background:rgba(255,255,255,.035); color:var(--muted); }
.template-sample-table > div:last-child { border-bottom:0; }
.template-warning { margin:0; color:#ffd477; font-size:13px; }
.template-list-head,.template-list-row { display:grid; grid-template-columns:minmax(220px,1.6fr) .55fr .45fr .65fr .8fr minmax(180px,1fr); gap:14px; align-items:center; }
.template-list-head { padding:0 14px 12px; color:var(--muted); font-size:11px; font-weight:800; text-transform:uppercase; letter-spacing:.08em; }
.template-list-row { padding:16px 14px; border-top:1px solid var(--border); }
.template-list-row > span:first-child { display:flex; flex-direction:column; gap:4px; min-width:0; }
.template-list-row small { color:var(--muted); }
.template-row-actions,.backup-actions { display:flex; justify-content:flex-end; align-items:center; gap:8px; flex-wrap:wrap; }
.file-type-pill,.template-state { width:max-content; padding:7px 10px; border-radius:999px; font-size:11px; font-weight:900; }
.file-type-pill.pdf { color:#ff9d9d; background:rgba(220,55,55,.13); }
.file-type-pill.excel { color:#8be0bc; background:rgba(42,189,133,.13); }
.template-state.active { color:#8be0bc; background:rgba(42,189,133,.13); }
.template-state.inactive { color:#a7aec4; background:rgba(130,137,160,.12); }

.preview-modal { width:min(1180px,94vw); max-height:92vh; overflow:auto; padding:30px; border-radius:26px; }
.preview-summary-grid { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:10px; margin:20px 0 14px; }
.preview-summary-grid > div { min-width:0; padding:15px; border:1px solid var(--border); border-radius:15px; background:rgba(10,13,24,.5); }
.preview-summary-grid span { display:block; color:var(--muted); font-size:11px; text-transform:uppercase; letter-spacing:.07em; margin-bottom:7px; }
.preview-summary-grid strong { display:block; overflow-wrap:anywhere; }
.preview-validation { display:flex; flex-wrap:wrap; align-items:center; gap:12px; margin-bottom:14px; padding:14px 16px; border-radius:15px; }
.preview-validation.valid { color:#8ff1c7; border:1px solid rgba(64,205,151,.32); background:rgba(38,148,108,.12); }
.preview-validation.warning { color:#ffd57d; border:1px solid rgba(235,178,55,.3); background:rgba(190,130,30,.12); }
.preview-validation span { color:var(--muted); }
.preview-validation small { width:100%; }
.preview-table-wrap { max-height:470px; overflow:auto; border:1px solid var(--border); border-radius:18px; }
.preview-actions { display:flex; justify-content:flex-end; gap:12px; margin-top:18px; }

.security-note { color:var(--muted); margin-top:-4px; }
.backup-table-head,.backup-row { display:grid; grid-template-columns:.8fr minmax(230px,1.5fr) .55fr .65fr .65fr minmax(280px,1.2fr); gap:13px; align-items:center; }
.backup-table-head { padding:0 12px 12px; color:var(--muted); font-size:11px; font-weight:800; text-transform:uppercase; letter-spacing:.08em; }
.backup-row { padding:15px 12px; border-top:1px solid var(--border); }
.backup-row > span:nth-child(2) { display:flex; flex-direction:column; gap:4px; min-width:0; }
.backup-row small { color:var(--muted); overflow-wrap:anywhere; }
.backup-actions a { text-decoration:none; }
.hardening-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:13px; }
.hardening-card { padding:19px; border:1px solid var(--border); border-radius:17px; background:rgba(8,12,22,.45); }
.hardening-card span { color:var(--muted); font-size:12px; }
.hardening-card strong { display:block; margin:9px 0; color:#8ff1c7; font-size:20px; }
.hardening-card small { color:var(--muted); line-height:1.55; }
.security-actions { display:flex; align-items:flex-end; gap:12px; margin-top:20px; }
.security-actions .field { flex:1; margin:0; }

@media (max-width:1400px) {
  .dashboard-card-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .preview-summary-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .template-list-head,.template-list-row,.backup-table-head,.backup-row { grid-template-columns:1.3fr .5fr .4fr .6fr .7fr 1fr; }
}
@media (max-width:980px) {
  .dashboard-grid,.template-lab-grid { grid-template-columns:1fr; }
  .hardening-grid { grid-template-columns:1fr 1fr; }
  .template-list-head,.backup-table-head { display:none; }
  .template-list-row,.backup-row { grid-template-columns:1fr 1fr; border:1px solid var(--border); border-radius:16px; margin-bottom:10px; }
  .template-row-actions,.backup-actions { grid-column:1/-1; justify-content:flex-start; }
}
@media (max-width:620px) {
  .dashboard-card-grid,.preview-summary-grid,.template-detected-grid,.hardening-grid,.security-health-grid { grid-template-columns:1fr; }
  .preview-actions,.security-actions { flex-direction:column; align-items:stretch; }
  .template-sample-table > div { grid-template-columns:1fr 1fr; }
}

.manual-mapper-layout {
  grid-template-columns: minmax(350px,.64fr) minmax(620px,1.36fr);
  align-items: start;
}
.manual-mapper-layout .template-analyzer-panel,
.manual-mapper-layout .template-result-panel { min-height: 610px; }
.template-mapper-controls {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin: 16px 0;
  padding: 15px;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 16px;
  background: rgba(5,8,15,.24);
}
.template-mapper-help {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 13px;
  border-left: 3px solid rgba(95,130,236,.75);
  border-radius: 10px;
  background: rgba(95,130,236,.07);
}
.template-mapper-help strong { color: #e8edff; font-size: 13px; }
.template-mapper-help span { color: #9aa7bd; font-size: 11px; line-height: 1.55; }
.template-field-palette {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 8px;
}
.template-field-palette button {
  position: relative;
  min-height: 42px;
  padding: 8px 11px;
  border: 1px solid rgba(255,255,255,.085);
  border-radius: 11px;
  background: rgba(255,255,255,.028);
  color: #b7c0d0;
  font-size: 11px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
  transition: .16s ease;
}
.template-field-palette button.required::after { content: '*'; margin-left: 4px; color: #ff817a; }
.template-field-palette button:hover { border-color: rgba(255,255,255,.18); color: #f4f6fa; }
.template-field-palette button.active { border-color: rgba(95,130,236,.7); color: white; background: rgba(95,130,236,.16); box-shadow: 0 0 0 3px rgba(95,130,236,.08); }
.template-field-palette button.assigned::before {
  content: '✓';
  position: absolute;
  right: 9px;
  top: 50%;
  transform: translateY(-50%);
  color: #78e3b8;
  font-weight: 950;
}
.template-mapping-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.template-map-chip,
.template-map-row-anchor {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 9px 10px;
  border: 1px solid rgba(255,255,255,.065);
  border-radius: 10px;
  background: rgba(255,255,255,.022);
}
.template-map-chip span,
.template-map-row-anchor span { color: #78849a; font-size: 9px; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.template-map-chip strong,
.template-map-row-anchor strong { min-width:0; overflow-wrap:anywhere; color:#aab4c6; font-size:11px; }
.template-map-chip.selected strong { color:#f5f7fb; }
.template-map-row-anchor { grid-column: 1 / -1; border-color: rgba(95,130,236,.16); background: rgba(95,130,236,.045); }
.template-mapper-actions { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.template-mapper-actions .ghost-button { flex:1; }
.template-preview-empty,
.template-preview-loading {
  min-height: 420px;
  display:grid;
  place-items:center;
  align-content:center;
  gap:12px;
  padding:28px;
  border:1px dashed rgba(255,255,255,.09);
  border-radius:16px;
  color:#8994a8;
  text-align:center;
}
.template-loader {
  width:36px;
  height:36px;
  border:3px solid rgba(255,255,255,.08);
  border-top-color:#708df5;
  border-radius:50%;
  animation: templateSpin .8s linear infinite;
}
@keyframes templateSpin { to { transform:rotate(360deg); } }
.template-excel-workspace {
  overflow:hidden;
  border:1px solid rgba(255,255,255,.08);
  border-radius:16px;
  background:#0a0e18;
}
.excel-sheet-toolbar {
  min-height:46px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:8px 10px;
  border-bottom:1px solid rgba(255,255,255,.075);
  background:rgba(19,24,37,.98);
}
.excel-sheet-toolbar > span { flex:0 0 auto; color:#78849a; font-size:10px; font-weight:750; }
.excel-sheet-tabs { display:flex; gap:6px; overflow-x:auto; }
.excel-sheet-tabs button {
  min-height:30px;
  padding:0 12px;
  border:1px solid rgba(255,255,255,.07);
  border-radius:8px;
  color:#9ba6b8;
  background:rgba(255,255,255,.025);
  cursor:pointer;
  white-space:nowrap;
}
.excel-sheet-tabs button.active { color:white; border-color:rgba(95,130,236,.4); background:rgba(95,130,236,.13); }
.excel-preview-scroll { max-height:620px; overflow:auto; overscroll-behavior:contain; }
.excel-preview-table {
  width:max-content;
  min-width:100%;
  border-collapse:separate;
  border-spacing:0;
  table-layout:fixed;
  color:#d7dce6;
  font-family:Arial,sans-serif;
  font-size:11px;
  user-select:none;
}

.excel-preview-table .row-number-col { width:48px; }
.excel-preview-table th,
.excel-preview-table td { height:31px; border-right:1px solid rgba(255,255,255,.07); border-bottom:1px solid rgba(255,255,255,.07); }
.excel-preview-table thead th {
  position:sticky;
  top:0;
  z-index:6;
  padding:0 7px;
  color:#8793a8;
  background:#151b29;
  text-align:center;
  font-size:10px;
}
.excel-preview-table tbody th {
  position:sticky;
  left:0;
  z-index:4;
  width:48px;
  color:#778399;
  background:#151b29;
  text-align:center;
  font-weight:700;
}
.excel-preview-table .excel-corner { left:0; z-index:8; }
.excel-preview-table td {
  position:relative;
  max-width:240px;
  padding:0 7px;
  overflow:hidden;
  background: color-mix(in srgb, var(--cell-bg, #0d121e) 52%, #0d121e);
  white-space:nowrap;
  cursor:cell;
  transition:background .12s ease, box-shadow .12s ease;
}
.excel-preview-table td span { display:block; overflow:hidden; text-overflow:ellipsis; }
.excel-preview-table td:hover { z-index:2; overflow:visible; background:#212a3d; box-shadow:inset 0 0 0 2px rgba(255,255,255,.18); }
.excel-preview-table td:hover span { position:relative; overflow:visible; width:max-content; min-width:100%; padding-right:8px; background:#212a3d; }
.excel-preview-table tr.selected-data-row td { background-color:rgba(95,130,236,.035); }
.excel-preview-table td.map-first-row { border-top:2px solid rgba(255,255,255,.34); }
.excel-preview-table td.map-last-row { border-bottom:2px solid rgba(255,255,255,.34); }
.excel-preview-table td.template-range-preview { background:rgba(95,130,236,.2); box-shadow:inset 0 0 0 2px rgba(134,160,255,.7); }
.excel-preview-table td.map-code { background:rgba(255,211,75,.15); box-shadow:inset 0 0 0 1px rgba(255,211,75,.48); }
.excel-preview-table td.map-description { background:rgba(255,116,49,.14); box-shadow:inset 0 0 0 1px rgba(255,116,49,.46); }
.excel-preview-table td.map-quantity { background:rgba(72,226,95,.13); box-shadow:inset 0 0 0 1px rgba(72,226,95,.44); }
.excel-preview-table td.map-price { background:rgba(66,192,242,.14); box-shadow:inset 0 0 0 1px rgba(66,192,242,.46); }
.excel-preview-table td.map-line-total { background:rgba(181,116,255,.13); box-shadow:inset 0 0 0 1px rgba(181,116,255,.42); }
.excel-preview-table td.map-supplier { background:rgba(255,139,194,.12); box-shadow:inset 0 0 0 1px rgba(255,139,194,.42); }
.excel-preview-table td.map-document { box-shadow:inset 0 0 0 3px rgba(255,195,83,.78); }
.excel-preview-table td.map-date { box-shadow:inset 0 0 0 3px rgba(116,144,255,.78); }
.excel-preview-table td.map-invoice-total { box-shadow:inset 0 0 0 3px rgba(80,226,174,.78); }
.excel-gap-row td { height:38px; color:#68758b; background:#111725; text-align:center; font-style:italic; }
.template-pdf-preview { display:flex; flex-direction:column; gap:12px; }
.template-pdf-preview img { width:100%; max-height:680px; object-fit:contain; border:1px solid rgba(255,255,255,.08); border-radius:14px; background:white; }
.pdf-preview-note { display:flex; flex-direction:column; gap:4px; padding:12px 14px; border:1px solid rgba(95,130,236,.15); border-radius:12px; background:rgba(95,130,236,.055); }
.pdf-preview-note strong { color:#e7ecff; }
.pdf-preview-note span { color:#9aa7bd; font-size:11px; line-height:1.5; }
.template-analysis-result { margin-top:16px; padding-top:16px; border-top:1px solid rgba(255,255,255,.075); }
.template-analysis-success { display:flex; align-items:center; gap:12px; padding:13px; border:1px solid rgba(68,211,155,.18); border-radius:13px; background:rgba(68,211,155,.065); }
.template-analysis-success > span { width:34px; height:34px; display:grid; place-items:center; border-radius:10px; color:#86ebc4; background:rgba(68,211,155,.12); font-weight:950; }
.template-analysis-success div { display:flex; flex-direction:column; gap:3px; }
.template-analysis-success strong { color:#dff9ef; }
.template-analysis-success small { color:#8da99e; }
@media (max-width: 1380px) {
  .manual-mapper-layout { grid-template-columns:minmax(330px,.72fr) minmax(520px,1.28fr); }
}
@media (max-width: 1080px) {
  .manual-mapper-layout { grid-template-columns:1fr; }
  .manual-mapper-layout .template-analyzer-panel,
  .manual-mapper-layout .template-result-panel { min-height:0; }
}
@media (max-width: 620px) {
  .template-field-palette,
  .template-mapping-summary { grid-template-columns:1fr; }
  .template-mapper-actions { flex-direction:column; align-items:stretch; }
  .excel-preview-scroll { max-height:520px; }
}

.remember-login-option {
  display: flex !important;
  align-items: center;
  gap: 10px;
  margin-top: -2px;
  color: #b5bdcf;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  user-select: none;
}
.remember-login-option input {
  width: 18px;
  height: 18px;
  accent-color: #c92d2b;
  cursor: pointer;
}
.remember-login-option span { margin: 0 !important; }
.role-badge,
#roleBadge {
  min-width: 0;
  white-space: nowrap;
}
.current-filter-bar {
  align-items: end;
  justify-content: flex-end;
  gap: 10px;
}
.current-filter-bar label:first-child { min-width: 210px; }
.current-filter-bar select,
.current-filter-bar input {
  height: 48px;
  min-width: 0;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(5,8,15,.58);
  color: #f5f7fb;
  font-size: 13px;
  font-weight: 850;
  outline: 0;
}
.current-filter-bar select:focus,
.current-filter-bar input:focus {
  border-color: rgba(95,130,236,.45);
  box-shadow: 0 0 0 3px rgba(95,130,236,.09);
}
.current-company-picker-zone { display: none !important; }
.current-detail-panel { overflow: hidden; }
.current-payment-list {
  overflow-x: visible !important;
  padding-bottom: 0 !important;
}
.current-payment-row {
  min-width: 0 !important;
  width: 100%;
  grid-template-columns:
    minmax(185px, 1.08fr)
    minmax(92px, .45fr)
    minmax(66px, .32fr)
    minmax(112px, .55fr)
    minmax(124px, .62fr)
    minmax(108px, .62fr)
    minmax(130px, .75fr)
    minmax(108px, .62fr)
    minmax(108px, .62fr)
    minmax(102px, .56fr)
    minmax(66px, .32fr) !important;
  gap: 7px !important;
  padding: 14px 12px !important;
  align-items: stretch !important;
}
.current-order-link strong {
  white-space: normal !important;
  overflow-wrap: anywhere;
  font-size: 15px !important;
}
.current-order-link small {
  white-space: normal !important;
  overflow-wrap: anywhere;
  font-size: 10px !important;
}
.current-payment-amount strong,
.current-payment-date strong,
.current-payment-date input,
.payment-select,
.finance-value-chip b {
  font-size: 12px !important;
}
.current-payment-amount span,
.current-payment-date span,
.current-payment-status > span,
.finance-text-field > span {
  font-size: 9px !important;
  margin-bottom: 7px !important;
}
.finance-value-chip {
  min-height: 44px !important;
  padding: 9px 10px !important;
  align-items: flex-start !important;
}
.finance-value-chip b {
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  line-height: 1.35 !important;
}
.finance-text-field textarea {
  min-height: 44px !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
}
.current-payment-date.final-payment-date { padding: 9px 10px !important; }
.payment-save-button { min-width: 0 !important; padding: 0 8px !important; font-size: 11px !important; }
.current-payment-status .payment-select { min-height: 44px; }

@media (max-width: 1500px) {
  .current-payment-row {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
  .current-order-link { grid-column: 1 / -1; }
  .payment-save-button { width: 100%; min-height: 44px; }
}
@media (max-width: 860px) {
  .current-filter-bar { justify-content: stretch; }
  .current-filter-bar label,
  .current-filter-bar label:first-child,
  .current-filter-bar button { width: 100%; }
  .current-payment-row { grid-template-columns: 1fr !important; }
  .current-order-link { grid-column: auto; }
}

.current-order-link-simple small { display: none !important; }
.current-order-link-simple strong { font-size: 20px !important; letter-spacing: -.02em; white-space: normal !important; }
.current-payment-amount.prominent span { font-size: 12px !important; margin-bottom: 10px !important; }
.current-payment-amount.prominent strong { font-size: 20px !important; line-height: 1.15; }
.current-payment-list { overflow-x: visible !important; }
.current-detail-panel { overflow: visible !important; }
.current-payment-row {
  grid-template-columns: minmax(175px,1.18fr) 130px 110px 130px 165px 165px 145px 145px 112px 88px !important;
  gap: 10px !important;
  align-items: stretch !important;
  overflow: visible !important;
}
.current-payment-row .payment-save-button { min-width: 82px; }
.role-select-field { display: flex; flex-direction: column; gap: 8px; }
.role-select-field > span { color: var(--muted); font-weight: 800; }
.role-select-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; align-items: stretch; }
.role-select-row select { width: 100%; height: 45px; }
.ghost-button.compact { padding: 0 16px; min-width: 96px; height: 45px; white-space: nowrap; }
.modal-help { margin: 8px 0 18px; color: var(--muted); line-height: 1.55; }
.role-permission-hint { margin: 12px 0 18px; padding: 13px 15px; border: 1px solid rgba(255,255,255,.1); border-radius: 14px; color: #cbd5e1; background: rgba(255,255,255,.04); font-weight: 800; }
@media (max-width: 1700px) {
  .current-payment-row { grid-template-columns: minmax(200px,1fr) 130px 120px 150px repeat(3,minmax(145px,1fr)) 135px 120px !important; }
  .current-payment-status { grid-column: auto; }
}
@media (max-width: 1350px) {
  .current-payment-row { grid-template-columns: repeat(3,minmax(0,1fr)) !important; }
  .current-order-link { grid-column: 1 / -1 !important; }
}
@media (max-width: 760px) {
  .current-payment-row { grid-template-columns: 1fr !important; }
  .role-select-row { grid-template-columns: 1fr; }
  .ghost-button.compact { width: 100%; }
}

.current-detail-panel {
  overflow: hidden !important;
}
.current-payment-list {
  overflow-x: hidden !important;
  width: 100%;
}
.current-payment-row {
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box;
  grid-template-columns:
    minmax(140px, 1.05fr)
    minmax(104px, .68fr)
    minmax(76px, .42fr)
    minmax(112px, .62fr)
    minmax(128px, .7fr)
    minmax(120px, .72fr)
    minmax(120px, .72fr)
    minmax(112px, .68fr)
    minmax(112px, .68fr)
    minmax(92px, .52fr) !important;
  gap: 8px !important;
  padding: 14px 12px !important;
  align-items: stretch !important;
  overflow: hidden !important;
}
.current-order-link-simple strong {
  font-size: clamp(16px, .92vw, 18px) !important;
  line-height: 1.18 !important;
}
.current-payment-amount.prominent strong {
  font-size: clamp(16px, .95vw, 18px) !important;
  line-height: 1.15 !important;
}
.current-payment-amount.prominent span,
.current-payment-date span,
.current-payment-status > span,
.finance-text-field > span {
  font-size: 9px !important;
  letter-spacing: .06em;
}
.current-payment-date input,
.payment-select,
.finance-value-chip,
.finance-text-field textarea {
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box;
}
.finance-value-chip {
  padding: 8px 9px !important;
}
.finance-value-chip b,
.current-payment-date strong,
.current-payment-date input,
.payment-select {
  font-size: 11px !important;
}
.current-payment-status .payment-select {
  padding: 0 7px !important;
}
.current-payment-row .payment-save-button {
  grid-column: 1;
  width: 100%;
  max-width: 180px;
  min-width: 0 !important;
  min-height: 40px;
  padding: 0 8px !important;
}
@media (max-width: 1550px) {
  .current-payment-row {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
  .current-order-link { grid-column: 1 / span 2 !important; }
  .current-payment-row .payment-save-button { grid-column: auto; max-width: none; }
}
@media (max-width: 860px) {
  .current-payment-row { grid-template-columns: 1fr !important; }
  .current-order-link { grid-column: auto !important; }
}

.dashboard-future-row strong {
  font-size: 17px;
}
.dashboard-future-row small {
  color: #aeb8ca;
}
.dashboard-future-row b {
  color: #9af1d1;
  font-size: 12px;
  padding: 7px 10px;
  border: 1px solid rgba(84, 215, 165, .22);
  border-radius: 999px;
  background: rgba(84, 215, 165, .08);
}
.current-payment-date.final-payment-date {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.current-payment-date.final-payment-date strong {
  font-size: clamp(15px, 1vw, 18px) !important;
  line-height: 1.2;
}

.welcome-card > p,
.welcome-card .welcome-description,
#welcomeDescription {
  display: none !important;
}
#welcomeTitle {
  width: min(100%, 860px);
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
}
#welcomeTitle span {
  display: block !important;
}
#welcomeName {
  display: block !important;
  white-space: nowrap !important;
  text-align: center !important;
}
@media (max-width: 620px) {
  #welcomeName {
    white-space: normal !important;
  }
}

.balance-file-list { margin: 12px 0 16px; display: grid; gap: 8px; }
.balance-file-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 12px; }
.balance-file-head span { color: var(--text); font-weight: 800; }
.balance-file-head small { color: var(--muted-2); }
.balance-file-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 14px; background: rgba(255,255,255,.035); }
.balance-file-row span, .balance-file-row strong, .balance-file-row small { display: block; }
.balance-file-row strong { color: var(--text); font-size: 13px; }
.balance-file-row small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.robot-row strong small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; font-weight: 600; }
.robot-warnings { display: grid; gap: 8px; margin: 0 0 12px; }
.robot-warnings span { display: block; padding: 10px 12px; border: 1px solid rgba(255,205,100,.22); border-radius: 12px; background: rgba(255,205,100,.07); color: #f6d891; font-size: 11px; }
@media (max-width: 720px) {
  .balance-file-head, .balance-file-row { align-items: stretch; flex-direction: column; }
}

.robot-actions { display: flex; justify-content: flex-end; margin: 12px 0 8px; }
.robot-table-head.weighted, .robot-row.weighted { grid-template-columns: minmax(210px,1.2fr) repeat(4,.7fr); }

body.compact-ui .app-shell { grid-template-columns: 246px minmax(0, 1fr); gap: 10px; padding: 10px; }
body.compact-ui .sidebar { top: 10px; height: calc(100vh - 20px); padding: 16px 12px; border-radius: 20px; }
body.compact-ui .brand-mini { padding-bottom: 16px; }
body.compact-ui .brand-mini img { width: 44px; height: 44px; }
body.compact-ui .brand-mini strong { font-size: 15px; }
body.compact-ui .nav-list { gap: 6px; margin-top: 18px; }
body.compact-ui .nav-link { min-height: 45px; grid-template-columns: 28px 1fr auto; padding: 0 11px; border-radius: 12px; font-size: 13px; }
body.compact-ui .nav-symbol { font-size: 16px; }
body.compact-ui .nav-submenu { padding-left: 42px; }
body.compact-ui .nav-sublink { padding: 9px 10px; font-size: 12px; }
body.compact-ui .sidebar-user { padding: 12px 6px 2px; }
body.compact-ui .sidebar-user .avatar { width: 38px; height: 38px; }
body.compact-ui .sidebar-user-copy strong { font-size: 12px; }
body.compact-ui .sidebar-user-copy span { font-size: 10px; }
body.compact-ui .sidebar-user-actions button { width: 28px; height: 28px; }
body.compact-ui .topbar { min-height: 62px; padding: 12px 16px; border-radius: 16px; }
body.compact-ui .topbar h1 { font-size: 20px; }
body.compact-ui .view { padding: 18px 2px 28px; }
body.compact-ui .page-intro { padding-bottom: 14px; }
body.compact-ui .page-intro h2 { font-size: 25px; }
body.compact-ui .page-intro p { font-size: 12px; }
body.compact-ui .panel { padding: 16px; border-radius: 15px; }
body.compact-ui .summary-card { min-height: 112px; padding: 16px; }
body.compact-ui .order-row { gap: 14px; padding: 16px 18px; }
body.compact-ui .robot-layout { grid-template-columns: 300px minmax(0, 1fr); }

body.mini-ui .app-shell { grid-template-columns: 1fr; padding: 8px; }
body.mini-ui .sidebar { position: fixed; z-index: 80; left: 8px; top: 8px; width: min(280px, calc(100vw - 16px)); height: calc(100vh - 16px); transform: translateX(calc(-100% - 24px)); transition: .22s ease; }
body.mini-ui .sidebar.open { transform: none; }
body.mini-ui .mobile-toggle { display: inline-grid; place-items: center; }
body.mini-ui .topbar-actions { gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
body.mini-ui .global-search { order: 2; width: 100%; max-width: none; }
body.mini-ui .page-intro { align-items: stretch; flex-direction: column; }
body.mini-ui .summary-grid.two, body.mini-ui .dashboard-grid, body.mini-ui .robot-layout { grid-template-columns: 1fr; }
body.mini-ui .robot-table-head.weighted { display: none; }
body.mini-ui .robot-row.weighted { grid-template-columns: 1fr 1fr; border: 1px solid var(--border); border-radius: 10px; margin-top: 7px; }
body.mini-ui .robot-row.weighted strong { grid-column: 1 / -1; }
body.mini-ui .robot-actions { justify-content: stretch; }
body.mini-ui .robot-actions button { width: 100%; }

@media (max-width: 720px) {
  .robot-table-head.weighted { display: none; }
  .robot-row.weighted { grid-template-columns: 1fr 1fr; border: 1px solid var(--border); border-radius: 10px; margin-top: 7px; }
  .robot-row.weighted strong { grid-column: 1 / -1; }
}

.sidebar-user { display: none !important; }
.topbar-account {
  min-height: 43px;
  max-width: min(360px, 26vw);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 13px;
  background: rgba(255,255,255,.04);
}
.topbar-account strong {
  min-width: 0;
  overflow: hidden;
  color: #f4f6fb;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: -.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.topbar-account .topbar-separator { color: rgba(255,255,255,.28); font-weight: 800; }
.topbar-account .viewer-badge { flex: 0 0 auto; }
.topbar-icon-button,
.topbar-logout-button {
  width: 43px;
  height: 43px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255,255,255,.045);
  color: #aeb8ca;
  cursor: pointer;
  font-size: 17px;
  font-weight: 900;
  transition: .16s ease;
}
.topbar-icon-button:hover,
.topbar-logout-button:hover { background: rgba(255,255,255,.085); color: #fff; transform: translateY(-1px); }
.topbar-logout-button { border-color: rgba(224,75,67,.20); background: rgba(185,37,32,.10); color: #ffaaa6; }
.topbar-logout-button:hover { background: rgba(185,37,32,.18); color: #fff; }
body.compact-ui .topbar-account { min-height: 39px; max-width: min(300px, 30vw); padding: 0 10px; gap: 8px; }
body.compact-ui .topbar-account strong { font-size: 12px; }
body.compact-ui .topbar-icon-button,
body.compact-ui .topbar-logout-button { width: 39px; height: 39px; border-radius: 11px; }
body.mini-ui .topbar-account { order: 1; max-width: min(100%, 320px); }
body.mini-ui .topbar-icon-button { order: 1; }
body.mini-ui .today { order: 1; }
body.mini-ui .topbar-logout-button { order: 1; }
@media (max-width: 1250px) {
  .topbar-account { max-width: min(300px, 28vw); }
}
@media (max-width: 980px) {
  .topbar-account .viewer-badge { display: inline-flex; }
  .topbar-account { max-width: min(300px, 42vw); }
}
@media (max-width: 700px) {
  .topbar-account { max-width: calc(100vw - 190px); min-height: 38px; padding: 0 9px; }
  .topbar-account strong { font-size: 12px; }
  .topbar-account .viewer-badge { padding: 6px 8px; font-size: 10px; }
  .topbar-icon-button, .topbar-logout-button { width: 38px; height: 38px; }
}

.stock-description-layout {
  display: grid;
  grid-template-columns: minmax(320px, .72fr) minmax(0, 1.28fr);
  gap: 18px;
  align-items: start;
}
.stock-catalog-tabs {
  display: inline-flex;
  gap: 6px;
  margin: 0 0 16px;
  padding: 5px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: var(--shadow);
}
.stock-catalog-tabs button {
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-weight: 850;
  cursor: pointer;
}
.stock-catalog-tabs button.active {
  background: var(--wine, var(--red));
  color: #fff;
  box-shadow: 0 8px 20px rgba(101, 11, 27, .18);
}
.stock-catalog-tab-panel[hidden] {
  display: none !important;
}
.stock-description-upload-panel,
.stock-description-list-panel {
  min-width: 0;
}
.supplier-price-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  gap: 12px;
  margin: 0 0 14px;
}
.supplier-price-upload-panel,
.supplier-price-list-panel {
  min-width: 0;
}
.supplier-price-upload-panel > .primary-button {
  width: 100%;
  margin-top: 14px;
}
.supplier-price-list {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
}
.supplier-price-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(90px, auto) auto;
  gap: 14px;
  align-items: center;
  min-height: 76px;
  padding: 13px 15px;
  border-top: 1px solid var(--border);
}
.supplier-price-row:first-child {
  border-top: 0;
}
.supplier-price-row > div,
.supplier-price-row > span:not(.currency-chip) {
  display: grid;
  min-width: 0;
  gap: 4px;
}
.supplier-price-row strong {
  overflow: hidden;
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.supplier-price-row small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.stock-description-summary {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.stock-description-table {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--panel-soft);
}
.stock-description-head,
.stock-description-row {
  display: grid;
  grid-template-columns: minmax(130px, .34fr) minmax(0, 1fr) minmax(120px, .34fr) minmax(120px, .28fr);
  gap: 16px;
  align-items: center;
  padding: 13px 16px;
}
.stock-description-head {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: rgba(101,11,27,.035);
}
.stock-description-row {
  border-top: 1px solid var(--border);
  color: var(--text);
}
.stock-description-row strong {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.stock-description-row span {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.stock-description-row small {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.stock-description-row .stock-product-type {
  color: var(--red-2);
  font-weight: 850;
}
.future-description-cell {
  max-width: 720px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.future-description-cell[title] {
  cursor: help;
}
body.compact-ui .stock-description-layout {
  grid-template-columns: 1fr;
}
body.compact-ui .stock-description-head,
body.compact-ui .stock-description-row {
  grid-template-columns: minmax(110px, .32fr) minmax(0, 1fr) minmax(100px, .3fr) minmax(90px, .24fr);
  gap: 10px;
  padding: 11px 12px;
}
@media (max-width: 820px) {
  .stock-description-layout { grid-template-columns: 1fr; }
  .stock-catalog-tabs { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .supplier-price-fields { grid-template-columns: 1fr; }
  .supplier-price-row { grid-template-columns: minmax(0, 1fr) auto; }
  .supplier-price-row > span:not(.currency-chip) { grid-column: 1; }
  .supplier-price-row .danger-link { grid-column: 2; grid-row: 2; }
  .stock-description-head { display: none; }
  .stock-description-row { grid-template-columns: 1fr; gap: 6px; align-items: start; }
  .stock-description-row span { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
}

.current-payment-row .current-payment-amount,
.current-payment-row .current-payment-date,
.current-payment-row .current-payment-status,
.current-payment-row .finance-text-field {
  text-align: center !important;
}
.current-payment-row .current-payment-amount span,
.current-payment-row .current-payment-date span,
.current-payment-row .current-payment-status > span,
.current-payment-row .finance-text-field > span {
  width: 100%;
  text-align: center !important;
}
.current-payment-row .current-payment-amount strong,
.current-payment-row .current-payment-date strong,
.current-payment-row .current-payment-date input,
.current-payment-row .payment-select {
  text-align: center !important;
  text-align-last: center;
}
.current-payment-row .finance-value-chip {
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
  min-height: 46px !important;
  padding: 8px 10px !important;
}
.current-payment-row .finance-value-chip b {
  flex: 0 1 auto;
  text-align: center !important;
  line-height: 1.25 !important;
}
.current-payment-row .finance-value-chip i {
  margin-inline-end: 2px;
}
.current-payment-status .payment-status-badge {
  width: 100% !important;
  min-height: 46px !important;
  margin-top: 0 !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 0 10px !important;
  border-radius: 13px !important;
  box-sizing: border-box;
  font-size: 12px !important;
  letter-spacing: .01em;
  white-space: nowrap;
}
.current-payment-status .payment-status-badge.paid {
  border-color: rgba(84,215,165,.34) !important;
  background: linear-gradient(135deg, rgba(84,215,165,.14), rgba(84,215,165,.075)) !important;
  color: #94f0cd !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.025);
}
.current-payment-status .payment-status-badge.unpaid {
  border-color: rgba(255,116,108,.34) !important;
  background: linear-gradient(135deg, rgba(185,37,32,.13), rgba(185,37,32,.065)) !important;
  color: #ffaaa5 !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.025);
}
.current-payment-status .payment-status-badge i {
  width: 9px !important;
  height: 9px !important;
  flex: 0 0 9px;
  box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 14%, transparent), 0 0 13px currentColor;
}
body.secure-client-guard {
  -webkit-touch-callout: none;
}

.current-payment-row .current-payment-status {
  align-items: stretch !important;
  justify-content: center !important;
  text-align: center !important;
}
.current-payment-row .current-payment-status > span {
  display: block !important;
  margin: 0 0 8px !important;
  width: 100% !important;
  text-align: center !important;
  line-height: 1.1 !important;
}
.current-payment-status .payment-status-badge {
  width: 100% !important;
  height: 54px !important;
  min-height: 54px !important;
  max-height: 54px !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 0 12px !important;
  line-height: 1 !important;
  text-align: center !important;
  vertical-align: middle !important;
}
.current-payment-status .payment-status-badge i {
  display: inline-block !important;
  position: static !important;
  margin: 0 !important;
  transform: none !important;
}
.current-payment-status .payment-status-badge::before,
.current-payment-status .payment-status-badge::after {
  display: none !important;
  content: none !important;
}

.current-payment-status {
  align-self: stretch !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: center !important;
  text-align: center !important;
}
.current-payment-status > span:first-child:not(.payment-status-badge) {
  display: block !important;
  width: 100% !important;
  margin: 0 0 8px !important;
  text-align: center !important;
  line-height: 1.15 !important;
}
.current-payment-status > .payment-status-badge {
  display: flex !important;
  width: 100% !important;
  height: 68px !important;
  min-height: 68px !important;
  margin: 0 !important;
  padding: 0 12px !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 9px !important;
  box-sizing: border-box !important;
  line-height: 1 !important;
  text-align: center !important;
  white-space: nowrap !important;
}
.current-payment-status > .payment-status-badge i {
  display: block !important;
  flex: 0 0 10px !important;
  width: 10px !important;
  height: 10px !important;
  margin: 0 !important;
  align-self: center !important;
}

.current-payment-status {
  align-self: stretch !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: stretch !important;
  text-align: center !important;
}
.current-payment-status > span:first-child:not(.readonly-payment-text):not(.readonly-payment-dot) {
  display: block !important;
  width: 100% !important;
  margin: 0 0 8px !important;
  line-height: 1.15 !important;
  text-align: center !important;
}
.current-payment-status > .readonly-payment-status {
  width: 100% !important;
  min-width: 0 !important;
  height: 68px !important;
  min-height: 68px !important;
  max-height: 68px !important;
  box-sizing: border-box !important;
  display: grid !important;
  grid-template-columns: auto auto !important;
  align-items: center !important;
  justify-content: center !important;
  align-content: center !important;
  justify-items: center !important;
  column-gap: 9px !important;
  margin: 0 !important;
  padding: 0 12px !important;
  border: 1px solid !important;
  border-radius: 14px !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;
  text-align: center !important;
  transform: none !important;
}
.current-payment-status > .readonly-payment-status.paid {
  border-color: rgba(84,215,165,.36) !important;
  background: linear-gradient(135deg, rgba(84,215,165,.16), rgba(84,215,165,.075)) !important;
  color: #94f0cd !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.025) !important;
}
.current-payment-status > .readonly-payment-status.unpaid {
  border-color: rgba(255,116,108,.36) !important;
  background: linear-gradient(135deg, rgba(185,37,32,.14), rgba(185,37,32,.07)) !important;
  color: #ffaaa5 !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.025) !important;
}
.current-payment-status .readonly-payment-dot {
  display: block !important;
  position: static !important;
  width: 11px !important;
  height: 11px !important;
  min-width: 11px !important;
  min-height: 11px !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 50% !important;
  background: currentColor !important;
  box-shadow: 0 0 0 5px color-mix(in srgb, currentColor 14%, transparent), 0 0 14px currentColor !important;
  line-height: 1 !important;
  align-self: center !important;
  justify-self: center !important;
}
.current-payment-status .readonly-payment-text {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  color: inherit !important;
  font: inherit !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  text-align: center !important;
  align-self: center !important;
  justify-self: center !important;
}

.current-payment-status > .readonly-payment-status {
  font-size: 12px !important;
  column-gap: 7px !important;
  padding-left: 8px !important;
  padding-right: 8px !important;
}
.current-payment-status .readonly-payment-dot {
  width: 10px !important;
  height: 10px !important;
  min-width: 10px !important;
  min-height: 10px !important;
}
.current-payment-status .readonly-payment-text {
  font-size: 12px !important;
  line-height: 1 !important;
}

.export-ratio-list .order-row {
  grid-template-columns: minmax(250px, 1.45fr) minmax(115px, .65fr) minmax(140px, .75fr) minmax(140px, .75fr) minmax(125px, .65fr) auto;
}
.export-ratio-main strong {
  font-size: clamp(20px, 1.7vw, 28px);
  line-height: 1.08;
}
.export-payment-list .order-row {
  grid-template-columns: minmax(240px, 1.25fr) minmax(135px, .67fr) minmax(135px, .67fr) minmax(135px, .67fr) minmax(155px, .78fr) auto;
}
.export-payment-row .order-main strong {
  font-size: clamp(18px, 1.45vw, 24px);
  line-height: 1.1;
}
.export-payment-row .export-paid-stat strong {
  color: #157354;
}
.order-status-badge.partial {
  border-color: rgba(215, 151, 25, .34);
  background: linear-gradient(135deg, rgba(245, 190, 72, .2), rgba(176, 116, 17, .1));
  color: #9b6500;
}
.export-company-picker-zone {
  padding-top: 4px;
}
.export-company-picker-zone .company-picker {
  width: min(760px, 100%);
}
.export-overview-summary {
  grid-template-columns: minmax(220px, .72fr) repeat(2, minmax(300px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.current-summary-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.current-summary-grid .current-currency-card {
  width: 100%;
}
body.mini-ui .export-overview-summary {
  grid-template-columns: minmax(220px, .72fr) repeat(2, minmax(300px, 1fr));
}
.export-summary-card {
  min-width: 0;
  min-height: 188px;
  padding: 22px;
  border: 1px solid rgba(123, 13, 29, .22);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(64, 8, 18, .055);
}
.export-summary-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.export-summary-card-head > span {
  color: #791126;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .14em;
}
.export-summary-card-head > small {
  color: var(--muted);
  font-size: 11px;
  text-align: right;
}
.export-count-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: linear-gradient(145deg, #fff 0%, rgba(123, 13, 29, .035) 100%);
}
.export-count-value {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 34px 0 0;
}
.export-count-value strong {
  color: var(--ink);
  font-size: clamp(38px, 4vw, 54px);
  line-height: .9;
  letter-spacing: -.055em;
}
.export-count-value span,
.export-count-note {
  color: var(--muted);
  font-size: 11px;
}
.export-summary-total {
  margin: 20px 0 18px;
}
.export-summary-total > small {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
}
.export-summary-total > strong {
  display: block;
  color: var(--ink);
  font-size: clamp(25px, 2.6vw, 36px);
  line-height: 1;
  letter-spacing: -.045em;
  overflow-wrap: anywhere;
}
.export-summary-breakdown {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid rgba(123, 13, 29, .12);
}
.export-summary-breakdown > div {
  min-width: 0;
  padding-top: 13px;
}
.export-summary-breakdown > div + div {
  padding-left: 18px;
  border-left: 1px solid rgba(123, 13, 29, .12);
}
.export-summary-breakdown span {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
}
.export-summary-breakdown i {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
}
.export-summary-breakdown .paid i {
  background: #20a878;
  box-shadow: 0 0 0 4px rgba(32, 168, 120, .11);
}
.export-summary-breakdown .unpaid i {
  background: #c82950;
  box-shadow: 0 0 0 4px rgba(200, 41, 80, .1);
}
.export-summary-breakdown strong {
  display: block;
  color: var(--ink);
  font-size: clamp(15px, 1.35vw, 19px);
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.export-summary-breakdown .paid strong { color: #157354; }
.export-summary-breakdown .unpaid strong { color: #a7193b; }
.export-summary-unpaid {
  position: relative;
  padding-right: 82px;
}
.export-unpaid-detail-button {
  position: absolute;
  right: 0;
  top: 13px;
  min-width: 70px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 10px 0 12px;
  border: 1px solid rgba(123, 13, 29, .17);
  border-radius: 9px;
  background: rgba(123, 13, 29, .055);
  color: #761026;
  cursor: pointer;
  transition: .16s ease;
}
.export-unpaid-detail-button em {
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}
.export-unpaid-detail-button b {
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
}
.export-unpaid-detail-button:hover {
  border-color: rgba(123, 13, 29, .3);
  background: rgba(123, 13, 29, .1);
  transform: translateX(1px);
}
.export-unpaid-detail-button:disabled {
  opacity: .38;
  cursor: default;
  transform: none;
}
.form-modal.export-unpaid-detail-modal {
  width: min(1120px, 100%);
}
.export-unpaid-detail-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  margin: 8px 45px 22px 0;
}
.export-unpaid-detail-head h2 {
  margin: 0 0 7px;
}
.export-unpaid-detail-head p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.export-unpaid-detail-controls {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(190px, auto);
  align-items: stretch;
  gap: 12px;
}
.export-unpaid-company-filter {
  min-width: 220px;
  display: grid;
  gap: 6px;
}
.export-unpaid-company-filter > span {
  color: var(--muted);
  font-size: 10px;
}
.export-unpaid-company-filter select {
  width: 100%;
  min-height: 64px;
  padding: 0 40px 0 14px;
  border: 1px solid rgba(123, 13, 29, .16);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}
.export-unpaid-company-filter select:focus {
  border-color: rgba(123, 13, 29, .4);
  outline: 3px solid rgba(123, 13, 29, .08);
}
.export-unpaid-detail-total {
  min-width: 190px;
  padding: 14px 16px;
  border: 1px solid rgba(200, 41, 80, .18);
  border-radius: 12px;
  background: rgba(200, 41, 80, .055);
}
.export-unpaid-detail-total span {
  display: block;
  color: var(--muted);
  font-size: 10px;
}
.export-unpaid-detail-total strong {
  display: block;
  margin-top: 5px;
  color: #a7193b;
  font-size: 21px;
}
.export-unpaid-detail-list-head,
.export-unpaid-detail-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) repeat(3, minmax(120px, .65fr)) minmax(155px, .8fr) 24px;
  align-items: center;
  gap: 14px;
}
.export-unpaid-detail-list-head {
  padding: 0 16px 9px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .06em;
}
.export-unpaid-detail-list {
  display: grid;
  gap: 9px;
  max-height: min(55vh, 540px);
  overflow: auto;
}
.export-unpaid-detail-row {
  min-height: 88px;
  padding: 15px 16px;
  border: 1px solid rgba(123, 13, 29, .14);
  border-radius: 13px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  transition: .16s ease;
}
.export-unpaid-detail-row:hover {
  border-color: rgba(123, 13, 29, .28);
  background: #fffafb;
  transform: translateY(-1px);
}
.export-unpaid-detail-row:focus-visible {
  outline: 3px solid rgba(123, 13, 29, .12);
  outline-offset: 2px;
}
.export-unpaid-detail-identity strong,
.export-unpaid-detail-identity small,
.export-unpaid-detail-metric span,
.export-unpaid-detail-metric strong,
.export-unpaid-detail-status > span:first-child {
  display: block;
}
.export-unpaid-detail-identity strong {
  color: var(--ink);
  font-size: 17px;
}
.export-unpaid-detail-identity small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}
.export-unpaid-detail-metric span,
.export-unpaid-detail-status > span:first-child {
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
}
.export-unpaid-detail-metric strong {
  margin-top: 7px;
  color: var(--ink);
  font-size: 14px;
}
.export-unpaid-detail-metric.paid strong { color: #157354; }
.export-unpaid-detail-metric.remaining strong { color: #a7193b; }
.export-unpaid-detail-status .order-status-badge {
  width: max-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  margin-top: 7px;
  padding: 0 11px;
  font-size: 11px;
  line-height: 1;
}
.export-unpaid-detail-arrow {
  color: #6d1021;
  font-size: 28px;
  font-weight: 500;
}
.export-unpaid-detail-actions {
  justify-content: flex-end;
  margin-top: 18px;
}
.export-overview-panel .order-list {
  margin-top: 16px;
}
.export-invoice-preview-fields {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.export-invoice-preview-fields .form-grid {
  margin-bottom: 14px;
}
.export-paid-amount-field input:disabled {
  border-color: rgba(123, 13, 29, .11);
  background: rgba(123, 13, 29, .045);
  color: #6f6970;
  cursor: not-allowed;
  opacity: 1;
}
.template-match-note {
  margin: 4px 0 14px;
  padding: 11px 13px;
  border: 1px solid rgba(38, 155, 112, .24);
  border-radius: 10px;
  background: rgba(38, 155, 112, .08);
  color: #157354;
  font-size: 12px;
  font-weight: 750;
}
.export-invoice-preview-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: -4px 0 14px;
  padding: 13px 15px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(123, 13, 29, .04);
}
.export-invoice-preview-summary strong { color: var(--ink); }
.export-invoice-preview-summary span { color: var(--muted); font-size: 12px; text-align: right; }
.export-invoice-detail-summary { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.export-invoice-detail-table { min-width: 880px; }
.export-invoice-detail-table th:nth-child(1), .export-invoice-detail-table td:nth-child(1) { width: 70px; }
.export-invoice-detail-table th:nth-child(2), .export-invoice-detail-table td:nth-child(2) { width: 190px; }
.export-invoice-detail-table th:nth-child(4), .export-invoice-detail-table td:nth-child(4),
.export-invoice-detail-table th:nth-child(5), .export-invoice-detail-table td:nth-child(5),
.export-invoice-detail-table th:nth-child(6), .export-invoice-detail-table td:nth-child(6) { width: 150px; }
.export-ratio-layout {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(320px, .9fr);
  gap: 18px;
  margin-bottom: 18px;
}
.export-cost-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.export-ratio-summary strong {
  font-size: clamp(16px, 1.4vw, 22px);
}
.export-ratio-upload-panel .drop-zone.disabled {
  opacity: .55;
  cursor: not-allowed;
}
.export-ratio-table th,
.export-ratio-table td {
  text-align: center;
}
.export-ratio-table td:nth-child(2),
.export-ratio-table th:nth-child(2) {
  text-align: left;
}
@media (max-width: 1100px) {
  .export-ratio-layout {
    grid-template-columns: 1fr;
  }
  .export-ratio-list .order-row {
    grid-template-columns: 1fr;
  }
  .export-payment-list .order-row {
    grid-template-columns: repeat(2, minmax(0, 1fr)) 24px;
  }
  .export-payment-row .order-main {
    grid-column: 1 / 3;
  }
  .export-payment-row .row-arrow {
    grid-column: 3;
    grid-row: 1 / span 4;
  }
  .export-invoice-detail-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .export-overview-summary,
  body.mini-ui .export-overview-summary {
    grid-template-columns: 1fr 1fr;
  }
  .export-count-card {
    grid-column: 1 / -1;
  }
}
@media (max-width: 900px) {
  .export-unpaid-detail-head {
    align-items: stretch;
    flex-direction: column;
  }
  .export-unpaid-detail-total {
    width: 100%;
  }
  .export-unpaid-detail-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }
  .export-unpaid-detail-list-head {
    display: none;
  }
  .export-unpaid-detail-row {
    grid-template-columns: repeat(2, minmax(0, 1fr)) 24px;
  }
  .export-unpaid-detail-identity {
    grid-column: 1 / 3;
  }
  .export-unpaid-detail-arrow {
    grid-column: 3;
    grid-row: 1 / span 3;
  }
}
@media (max-width: 720px) {
  .export-cost-grid {
    grid-template-columns: 1fr;
  }
  .export-payment-list .order-row {
    grid-template-columns: 1fr 24px;
  }
  .export-payment-row .order-main {
    grid-column: 1;
  }
  .export-overview-summary,
  body.mini-ui .export-overview-summary {
    grid-template-columns: 1fr;
  }
  .current-summary-grid {
    grid-template-columns: 1fr;
  }
  .export-count-card {
    grid-column: auto;
  }
  .export-summary-card {
    min-height: 0;
    padding: 18px;
  }
  .export-count-value {
    margin: 22px 0 14px;
  }
  .export-summary-breakdown > div + div {
    padding-left: 14px;
  }
  .export-summary-unpaid {
    padding-right: 0;
  }
  .export-unpaid-detail-button {
    position: static;
    width: 100%;
    margin-top: 10px;
  }
  .form-modal.export-unpaid-detail-modal {
    padding: 22px 16px;
  }
  .export-unpaid-detail-head {
    margin-right: 34px;
  }
  .export-unpaid-detail-controls {
    grid-template-columns: 1fr;
  }
  .export-unpaid-company-filter {
    min-width: 0;
  }
  .export-unpaid-detail-row {
    grid-template-columns: minmax(0, 1fr) 24px;
  }
  .export-unpaid-detail-identity,
  .export-unpaid-detail-metric,
  .export-unpaid-detail-status {
    grid-column: 1;
  }
  .export-unpaid-detail-arrow {
    grid-column: 2;
    grid-row: 1 / span 5;
  }
  .export-unpaid-detail-actions .secondary-button {
    width: 100%;
  }
  .export-payment-list .order-stat,
  .export-payment-list .order-status-cell {
    grid-column: 1;
  }
  .export-invoice-detail-summary { grid-template-columns: 1fr; }
  .export-invoice-preview-summary { align-items: flex-start; flex-direction: column; }
  .export-invoice-preview-summary span { text-align: left; }
}

.export-ratio-summary {
  display: block;
  margin-bottom: 18px;
}
.export-ratio-summary > div {
  display: none;
}
.export-total-board {
  padding: 18px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(16,24,47,.96) 0%, rgba(11,17,34,.92) 100%);
  box-shadow: 0 18px 44px rgba(0,0,0,.22);
}
.export-total-board header {
  margin-bottom: 14px;
  color: var(--text);
  font-size: clamp(18px, 1.6vw, 26px);
  font-weight: 900;
  letter-spacing: -.03em;
}
.export-total-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.export-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 88px;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  background: rgba(255,255,255,.035);
}
.export-total-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}
.export-total-copy span {
  color: var(--text);
  font-size: clamp(14px, 1.1vw, 17px);
  font-weight: 800;
  letter-spacing: -.01em;
}
.export-total-copy small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}
.export-total-row strong {
  flex: 0 0 auto;
  color: var(--text);
  font-size: clamp(20px, 1.75vw, 30px);
  font-weight: 900;
  letter-spacing: -.03em;
  text-align: right;
  white-space: nowrap;
}
.export-total-row.highlight {
  background: rgba(248, 187, 78, .10);
  border-color: rgba(248, 187, 78, .28);
}
.export-total-row.highlight strong {
  color: #ffd77a;
}
.export-total-row.positive {
  background: rgba(92, 214, 160, .10);
  border-color: rgba(92, 214, 160, .28);
}
.export-total-row.positive strong {
  color: #8ef0c3;
}
.export-total-row.negative {
  background: rgba(255, 111, 128, .10);
  border-color: rgba(255, 111, 128, .26);
}
.export-total-row.negative strong {
  color: #ff9aaa;
}
.export-total-row.margin {
  grid-column: 1 / -1;
  min-height: 92px;
}
.export-total-row.margin .export-total-copy span {
  font-size: clamp(16px, 1.25vw, 20px);
}
.export-total-row.margin strong {
  font-size: clamp(26px, 2.2vw, 38px);
}
@media (max-width: 900px) {
  .export-total-grid {
    grid-template-columns: 1fr;
  }
  .export-total-row.margin {
    grid-column: auto;
  }
}
@media (max-width: 760px) {
  .export-total-board {
    padding: 15px;
  }
  .export-total-row {
    flex-direction: column;
    align-items: flex-start;
    min-height: 0;
    gap: 8px;
  }
  .export-total-row strong {
    text-align: left;
    white-space: normal;
  }
}

.side-order-notification {
  position: fixed;
  z-index: 220;
  right: 22px;
  top: 96px;
  width: min(350px, calc(100vw - 28px));
  min-height: 88px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  overflow: hidden;
  padding: 14px 44px 14px 15px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 17px;
  background:
    radial-gradient(circle at 100% 0, rgba(207, 76, 102, .17), transparent 42%),
    linear-gradient(145deg, #86172d, #6d0d20 58%, #560817) !important;
  box-shadow:
    0 18px 48px rgba(61, 8, 18, .24),
    0 6px 18px rgba(61, 8, 18, .14),
    inset 0 1px 0 rgba(255, 255, 255, .16);
  color: #fff;
  transform: translateX(calc(100% + 60px)) scale(.96);
  opacity: 0;
  isolation: isolate;
  transition: transform .34s cubic-bezier(.2, .9, .24, 1.08), opacity .24s ease, box-shadow .24s ease;
  cursor: pointer;
}
.side-order-notification::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, #ef8ba0, #bd3f5a 58%, #8f1830);
  box-shadow: 5px 0 18px rgba(115, 12, 32, .18);
}
.side-order-notification::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -38px;
  bottom: -56px;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(118, 14, 34, .08);
  border-radius: 50%;
  box-shadow: 0 0 0 20px rgba(118, 14, 34, .025), 0 0 0 42px rgba(118, 14, 34, .018);
}
.side-order-notification.visible {
  transform: translateX(0) scale(1);
  opacity: 1;
}
.side-order-notification.visible:hover {
  transform: translateY(-2px) scale(1);
  box-shadow: 0 28px 78px rgba(61, 8, 18, .23), 0 10px 28px rgba(61, 8, 18, .13);
}
.side-order-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 14px;
  background: rgba(255, 255, 255, .08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 8px 20px rgba(50, 2, 12, .18);
}
.side-order-icon svg {
  width: 25px;
  height: 25px;
  stroke: #fff;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 4px rgba(42, 0, 8, .28));
}
.side-order-copy {
  min-width: 0;
  display: block;
}
.side-order-notification strong {
  display: block;
  color: #fff !important;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.2;
  letter-spacing: -.015em;
  text-shadow: 0 1px 2px rgba(37, 0, 8, .22);
}
.side-order-notification small {
  display: block;
  margin-top: 5px;
  overflow: hidden;
  color: rgba(255, 255, 255, .76) !important;
  font-size: 11.5px;
  font-weight: 650;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.side-order-close {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  background: rgba(255, 255, 255, .055);
  color: rgba(255, 255, 255, .82);
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  transition: transform .18s ease, background .18s ease, color .18s ease;
}
.side-order-close:hover {
  transform: rotate(5deg) scale(1.06);
  background: rgba(255, 255, 255, .16);
  color: #fff;
}
@media (max-width: 720px) {
  .side-order-notification {
    right: 14px;
    left: 14px;
    top: auto;
    bottom: 18px;
    width: auto;
    min-height: 84px;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    padding: 13px 42px 13px 14px;
    transform: translateY(130%);
  }
  .side-order-notification.visible {
    transform: translateY(0);
  }
  .side-order-notification.visible:hover {
    transform: translateY(-2px);
  }
  .side-order-icon {
    width: 44px;
    height: 44px;
    border-radius: 13px;
  }
  .side-order-icon svg {
    width: 24px;
    height: 24px;
  }
}

.orders-page-actions {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}
.select-box.compact {
  min-width: 190px;
}
.select-box.compact select {
  min-height: 44px;
}
@media (max-width: 760px) {
  .orders-page-actions {
    width: 100%;
    justify-content: flex-start;
  }
  .select-box.compact {
    width: 100%;
  }
}

.import-order-note-list {
  display: grid;
  gap: 14px;
}
.import-order-note-card {
  padding: 20px;
}
.import-order-note-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
.import-order-note-head > div {
  min-width: 0;
}
.import-order-note-identities {
  width: min(760px, 100%);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.import-order-note-identities > div {
  min-width: 0;
}
.import-order-note-head strong {
  display: block;
  margin-top: 7px;
  color: var(--text);
  font-size: clamp(18px, 1.45vw, 24px);
  font-weight: 900;
  overflow-wrap: anywhere;
}
.import-order-note-head time {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
}
.import-order-note-card p {
  margin: 18px 0;
  padding: 16px 18px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 16px;
  background: rgba(255,255,255,.035);
  color: var(--text);
  font-size: 14px;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.import-order-note-card footer {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}
.import-order-note-card footer strong {
  color: var(--text);
}
.import-order-note-delete {
  margin-left: auto;
  padding: 8px 10px;
}
.panel.order-note-warning-panel {
  margin-bottom: 18px;
  padding: 20px;
  border-color: rgba(190, 129, 15, .38) !important;
  background: linear-gradient(135deg, #fffdf8 0%, #fffaf0 100%) !important;
  box-shadow: 0 8px 26px rgba(148, 96, 6, .07) !important;
}
.order-note-warning-head {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 15px;
}
.order-note-warning-head h3 {
  margin: 5px 0 3px;
  color: var(--text);
  font-size: 18px;
}
.order-note-warning-head p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.order-note-warning-icon,
.order-note-alert-icon {
  display: grid;
  place-items: center;
  border: 1px solid rgba(190, 129, 15, .3);
  border-radius: 14px;
  background: #fff3d7;
  color: #9a6500;
  font-weight: 950;
}
.order-note-warning-icon {
  width: 46px;
  height: 46px;
  font-size: 22px;
}
.matched-order-note-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}
.matched-order-note-item,
.order-note-alert-item {
  padding: 15px 17px;
  border: 1px solid rgba(190, 129, 15, .22);
  border-radius: 13px;
  background: rgba(255, 255, 255, .78);
}
.matched-order-note-identities {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.matched-order-note-identities span {
  display: block;
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .11em;
}
.matched-order-note-identities strong {
  display: block;
  margin-top: 5px;
  color: var(--text);
  font-size: 15px;
  overflow-wrap: anywhere;
}
.matched-order-note-item p,
.order-note-alert-item p {
  margin: 12px 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.matched-order-note-item footer,
.order-note-alert-item footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(123, 13, 29, .09);
  color: var(--muted);
  font-size: 10px;
}
.payment-alert-modal.order-note-alert-modal {
  width: min(820px, 100%);
  border-color: rgba(190, 129, 15, .3) !important;
}
.order-note-alert-modal-head {
  grid-template-columns: 66px minmax(0, 1fr) auto;
}
.order-note-alert-icon {
  width: 62px;
  height: 62px;
  font-size: 29px;
  box-shadow: 0 0 28px rgba(190, 129, 15, .11);
}
.order-note-alert-list {
  display: grid;
  gap: 10px;
  max-height: min(48vh, 470px);
  margin-top: 20px;
  overflow: auto;
}
.order-note-alert-item {
  background: #fffdf8;
}
.export-invoice-edit-actions {
  align-items: center;
  flex-wrap: wrap;
}
.export-invoice-edit-actions #deleteExportPayment {
  margin-right: auto;
}
@media (max-width: 720px) {
  .import-order-note-head {
    flex-direction: column;
    gap: 8px;
  }
  .import-order-note-identities,
  .matched-order-note-identities {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .order-note-warning-head,
  .order-note-alert-modal-head {
    grid-template-columns: 46px minmax(0, 1fr);
  }
  .order-note-warning-head .status-chip,
  .order-note-alert-modal-head .status-chip {
    grid-column: 1 / -1;
    justify-self: start;
  }
  .order-note-alert-icon {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    font-size: 22px;
  }
  .matched-order-note-item footer,
  .order-note-alert-item footer {
    align-items: flex-start;
    flex-direction: column;
  }
  .export-invoice-edit-actions > button {
    flex: 1 1 auto;
  }
}

.import-price-history-intro {
  align-items: flex-end;
}
.import-pricing-intro {
  align-items: flex-end;
}
.import-pricing-layout {
  display: grid;
  grid-template-columns: minmax(360px, 1.1fr) minmax(280px, .9fr);
  gap: 16px;
  align-items: start;
  margin-bottom: 16px;
}
.import-pricing-setup,
.import-pricing-help {
  min-width: 0;
}
.import-pricing-setup {
  display: grid;
  gap: 14px;
}
.import-pricing-setup .panel-head {
  margin-bottom: 0;
}
.import-pricing-setup > .primary-button {
  width: 100%;
}
.import-pricing-help p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}
.import-pricing-steps {
  display: grid;
  gap: 9px;
}
.import-pricing-steps span {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel-soft);
  color: var(--text);
  font-size: 13px;
  font-weight: 750;
}
.import-pricing-steps b {
  display: inline-grid;
  flex: 0 0 27px;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 9px;
  background: rgba(101, 11, 27, .09);
  color: var(--red-2);
}
.import-pricing-result {
  padding: 20px;
}
.import-pricing-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 10px;
  margin: 0 0 16px;
}
.import-pricing-summary > div {
  display: grid;
  gap: 7px;
  min-height: 98px;
  padding: 14px 15px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel-soft);
}
.import-pricing-summary > div.total {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: center;
  justify-content: stretch;
  gap: 24px;
  row-gap: 7px;
  min-height: 118px;
  padding: 20px 24px;
  border-color: rgba(22, 122, 89, .34);
  background: linear-gradient(135deg, rgba(22, 122, 89, .11), rgba(92, 214, 160, .055));
  box-shadow: 0 14px 34px rgba(22, 122, 89, .08);
}
.import-pricing-summary > div.matched {
  border-color: rgba(22, 122, 89, .25);
}
.import-pricing-summary > div.unmatched {
  border-color: rgba(181, 42, 66, .28);
  background: rgba(181, 42, 66, .04);
}
.import-pricing-summary span,
.import-pricing-summary small {
  color: var(--muted);
  font-size: 11px;
}
.import-pricing-summary strong {
  color: var(--text);
  font-size: 20px;
}
.import-pricing-summary > div.total span {
  grid-column: 1;
  grid-row: 1;
  color: var(--green);
  font-size: clamp(14px, 1.15vw, 18px);
  font-weight: 900;
  letter-spacing: -.01em;
}
.import-pricing-summary > div.total strong {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  color: var(--green);
  font-size: clamp(34px, 3vw, 50px);
  font-weight: 950;
  letter-spacing: -.045em;
  line-height: 1;
  text-align: right;
  white-space: nowrap;
}
.import-pricing-summary > div.total small {
  grid-column: 1;
  grid-row: 2;
  color: #407b67;
  font-size: 12px;
  font-weight: 800;
  text-align: right;
}
.import-pricing-table-wrap {
  max-height: calc(100vh - 340px);
  min-height: 240px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 15px;
}
.import-pricing-table {
  min-width: 850px;
}
.import-pricing-table thead {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--panel);
}
.pricing-unmatched-row {
  background: rgba(181, 42, 66, .035);
}
.pricing-match-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 31px;
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}
.pricing-match-badge.matched {
  border-color: rgba(22, 122, 89, .28);
  background: rgba(22, 122, 89, .08);
  color: var(--green);
}
.pricing-match-badge.unmatched {
  border-color: rgba(181, 42, 66, .28);
  background: rgba(181, 42, 66, .08);
  color: #a11331;
}
.page-intro-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.import-price-history-panel {
  padding: 20px;
}
.import-price-history-panel .panel-head {
  margin-bottom: 14px;
}
.import-price-history-panel .panel-head small {
  display: block;
  max-width: 760px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.import-price-history-search {
  min-width: min(340px, 100%);
}
.import-price-history-table-wrap {
  max-height: calc(100vh - 310px);
  min-height: 260px;
  overflow: auto;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
}
.import-price-history-table {
  min-width: 980px;
}
.import-price-history-table thead {
  position: sticky;
  top: 0;
  z-index: 3;
  background: rgba(17,22,37,.98);
  backdrop-filter: blur(12px);
}
.import-price-history-table tbody tr {
  scroll-margin-top: 58px;
}
.import-price-history-table tbody tr:hover {
  background: rgba(255,255,255,.035);
}
.import-price-history-table td:nth-child(2) strong {
  color: var(--text);
  font-weight: 900;
}
.currency-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}
.currency-chip.usd {
  border-color: rgba(88,214,164,.28);
  background: rgba(88,214,164,.10);
  color: #8ff0cb;
}
.currency-chip.eur {
  border-color: rgba(140,153,255,.30);
  background: rgba(115,126,240,.12);
  color: #b8c0ff;
}
.import-price-history-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 14px 0;
}
.import-price-history-columns span {
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 999px;
  background: rgba(255,255,255,.035);
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}
.table-loading {
  display: grid;
  min-height: 180px;
  place-items: center;
  color: var(--muted);
  font-size: 13px;
}
@media (max-width: 820px) {
  .import-price-history-intro {
    align-items: flex-start;
  }
  .import-pricing-intro {
    align-items: flex-start;
  }
  .import-pricing-layout {
    grid-template-columns: 1fr;
  }
  .import-pricing-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .import-pricing-summary > div.total {
    grid-column: 1 / -1;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    min-height: 0;
    padding: 18px;
  }
  .import-pricing-summary > div.total strong {
    margin-left: 0;
    text-align: left;
    white-space: normal;
  }
  .import-pricing-summary > div.total small {
    text-align: left;
  }
  .import-pricing-result {
    padding: 15px;
  }
  .page-intro-actions {
    width: 100%;
    justify-content: flex-start;
  }
  .import-price-history-panel {
    padding: 15px;
  }
  .import-price-history-search {
    width: 100%;
    min-width: 0;
  }
  .import-price-history-table-wrap {
    max-height: calc(100vh - 360px);
  }
}
