:root {
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: #172b4d;
  background: #f4f7fb;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --navy: #0b1728;
  --blue: #164a8b;
  --action: #2563eb;
  --muted: #718198;
  --line: #e8edf4;
  --white: #fff;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; }
button, input { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }

.login-layout { display: grid; grid-template-columns: minmax(400px, 1fr) minmax(460px, .92fr); min-height: 100vh; background: var(--white); }
.login-story { position: relative; display: flex; flex-direction: column; min-height: 100vh; overflow: hidden; padding: 48px clamp(36px, 7vw, 108px) 36px; color: var(--white); background: radial-gradient(ellipse at 18% 82%, rgba(37,99,235,.25), transparent 42%), linear-gradient(145deg, #0b1728 0%, #102d50 100%); }
.login-story::after { position: absolute; right: -210px; bottom: -240px; width: 580px; height: 580px; border: 1px solid rgba(255,255,255,.07); border-radius: 50%; content: ""; box-shadow: 0 0 0 68px rgba(255,255,255,.025), 0 0 0 138px rgba(255,255,255,.02); pointer-events: none; }
.brand { display: inline-flex; align-items: center; gap: 11px; width: fit-content; }
.brand-name { display: flex; flex-direction: column; font-size: 18px; font-weight: 720; line-height: 1.05; letter-spacing: -.03em; }
.brand-name span { margin-top: 4px; font-size: 10px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
.brand-light { color: var(--white); }
.brand-dark { color: var(--blue); }
.eyebrow { margin: 0; color: #8296b1; font-size: 10px; font-weight: 750; letter-spacing: .15em; }
.login-story > .eyebrow { margin-top: auto; margin-bottom: 24px; color: #a9c5e7; }
.story-copy { max-width: 560px; }
.story-copy h1 { margin: 0; font-size: clamp(42px, 5vw, 68px); font-weight: 680; line-height: 1.07; letter-spacing: -.055em; }
.story-copy p { max-width: 410px; margin: 23px 0 0; color: #c1ccda; font-size: 16px; line-height: 1.75; }
.route-card { position: relative; display: flex; align-items: center; width: min(390px, 100%); margin-top: 54px; padding: 19px 22px; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; background: rgba(255,255,255,.055); backdrop-filter: blur(12px); }
.route-node { z-index: 1; display: inline-flex; align-items: center; gap: 9px; color: #e1eaf5; font-size: 13px; font-weight: 600; }
.route-dot { width: 9px; height: 9px; border: 2px solid #70a7ef; border-radius: 50%; background: #142c49; }
.route-line { flex: 1; height: 1px; margin: 0 14px; background: linear-gradient(90deg, #70a7ef, rgba(112,167,239,.28)); }
.story-foot { margin: auto 0 0; padding-top: 54px; color: #9aacc2; font-size: 12px; }
.story-foot span { margin: 0 7px; color: #6682a6; }
.login-panel { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 58px 36px 22px; background: #fff; }
.login-card { width: min(100%, 390px); }
.login-card .brand { margin-bottom: 48px; }
.login-card .eyebrow { margin-bottom: 12px; }
.login-card h2 { margin: 0; color: #172b4d; font-size: 29px; font-weight: 700; letter-spacing: -.04em; }
.muted { color: var(--muted); }
.login-card > .muted { margin: 10px 0 31px; font-size: 14px; }
#login-form { display: flex; flex-direction: column; }
#login-form label { margin: 0 0 8px; color: #34445c; font-size: 13px; font-weight: 650; }
#login-form input { width: 100%; height: 48px; padding: 0 13px; border: 1px solid #dce3ed; border-radius: 8px; outline: none; background: #fff; color: #172b4d; }
#login-form input:focus, .search-box:focus-within { border-color: #6a9cf0; box-shadow: 0 0 0 3px rgba(37,99,235,.11); }
#username { margin-bottom: 19px; }
.password-wrap { position: relative; margin-bottom: 20px; }
.password-wrap input { padding-right: 76px !important; }
.password-toggle { position: absolute; top: 0; right: 7px; height: 48px; padding: 0 8px; border: 0; background: transparent; color: var(--blue); font-size: 12px; font-weight: 650; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 8px; font-weight: 650; transition: background .16s ease, transform .16s ease; }
.button:focus-visible, .nav-item:focus-visible, .text-button:focus-visible, .password-toggle:focus-visible { outline: 3px solid rgba(37,99,235,.42); outline-offset: 2px; }
.button-primary { min-height: 48px; padding: 0 17px; color: #fff; background: var(--action); box-shadow: 0 4px 11px rgba(37,99,235,.18); }
.button-primary:hover { background: #1d4ed8; }
.button-primary:disabled { cursor: wait; opacity: .76; }
.button-wide { width: 100%; }
.button-spinner { display: none; width: 15px; height: 15px; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.is-loading .button-spinner { display: inline-block; }
.form-error { margin: -7px 0 15px; color: #b42318; font-size: 13px; line-height: 1.5; }
.authorized-note { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 23px 0 0; color: #8190a3; font-size: 11px; }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 3px rgba(22,163,74,.12); }
.login-footer { margin-top: auto; color: #9aa6b5; font-size: 11px; }

.app-shell { display: flex; min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 4; display: flex; flex-direction: column; width: 246px; padding: 27px 16px 21px; color: #d7e1ef; background: var(--navy); }
.sidebar-brand { padding: 0 9px 33px; }
.side-label { margin: 0 12px 12px; color: #71849e; font-size: 9px; font-weight: 750; letter-spacing: .15em; }
.navigation { display: grid; gap: 5px; }
.nav-item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 43px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: #aebdd0; text-align: left; font-size: 13px; font-weight: 560; }
.nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-item.is-active { background: #173a64; color: #fff; box-shadow: inset 3px 0 #5c9aff; }
.nav-icon { display: inline-grid; width: 20px; place-items: center; font-size: 17px; line-height: 1; }
.sidebar-bottom { margin-top: auto; padding: 13px 10px 0; border-top: 1px solid rgba(255,255,255,.1); }
.sidebar-system { display: flex; align-items: center; gap: 9px; color: #b8c5d5; font-size: 11px; }
.sidebar-bottom p { margin: 17px 0 0; color: #dce5ef; font-size: 12px; font-weight: 620; line-height: 1.7; }
.sidebar-bottom p span { color: #8496ac; font-size: 11px; font-weight: 400; }
.main-column { min-width: 0; width: calc(100% - 246px); margin-left: 246px; }
.topbar { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; min-height: 70px; padding: 0 clamp(22px, 4vw, 54px); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.94); backdrop-filter: blur(12px); }
.breadcrumbs { display: flex; align-items: center; gap: 11px; color: #8290a3; font-size: 12px; }
.breadcrumbs strong { color: #33445d; font-weight: 650; }
.crumb-separator { color: #c4ccd7; }
.user-menu { display: flex; align-items: center; gap: 10px; }
.avatar { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; color: #1b4b83; background: #e6effc; font-size: 13px; font-weight: 700; }
.user-details { display: flex; flex-direction: column; min-width: 105px; }
.user-details strong { overflow: hidden; max-width: 155px; color: #283950; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.user-details small { margin-top: 3px; color: #8a97a8; font-size: 10px; }
.button-quiet { min-height: 34px; margin-left: 10px; padding: 0 12px; border: 1px solid #e1e7ef; background: #fff; color: #43536b; font-size: 11px; }
.button-quiet:hover { background: #f6f8fb; }
.content { max-width: 1500px; margin: 0 auto; padding: 34px clamp(22px, 4vw, 54px) 55px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.page-heading .eyebrow { margin-bottom: 10px; }
.page-heading h1 { margin: 0; color: #172b4d; font-size: clamp(25px, 3vw, 32px); font-weight: 700; letter-spacing: -.045em; }
.page-heading .muted { margin: 8px 0 0; font-size: 13px; }
.date-chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid #e5eaf1; border-radius: 8px; background: #fff; color: #586981; font-size: 11px; white-space: nowrap; }
.date-icon { color: #5478a5; font-size: 15px; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.kpi-card, .panel-card { border: 1px solid #e9edf3; border-radius: 11px; background: #fff; box-shadow: 0 2px 6px rgba(25,46,74,.025); }
.kpi-card { min-height: 135px; padding: 17px 18px; }
.kpi-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #708097; font-size: 11px; font-weight: 570; }
.kpi-icon { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 8px; font-size: 17px; }
.kpi-blue { color: #2563eb; background: #edf4ff; }
.kpi-violet { color: #7453c8; background: #f2effc; }
.kpi-green { color: #178153; background: #eaf7f0; }
.kpi-amber { color: #b76808; background: #fff4e5; }
.kpi-card > strong { display: block; margin-top: 10px; color: #172b4d; font-size: 27px; font-weight: 720; letter-spacing: -.04em; }
.kpi-card > small { display: block; margin-top: 4px; color: #97a2b1; font-size: 10px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .85fr); gap: 15px; margin-top: 15px; }
.panel-card { min-width: 0; padding: 19px 20px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 17px; }
.panel-heading h2 { margin: 0; color: #233750; font-size: 14px; font-weight: 680; letter-spacing: -.015em; }
.panel-heading p { margin: 5px 0 0; color: #8c99a9; font-size: 10px; }
.warehouse-chart { display: grid; gap: 15px; padding: 4px 0 2px; }
.warehouse-bar-label { display: flex; justify-content: space-between; gap: 14px; margin-bottom: 7px; color: #65748a; font-size: 10px; }
.warehouse-bar-label strong { color: #293d59; font-weight: 650; }
.bar-track { height: 7px; overflow: hidden; border-radius: 9px; background: #edf1f6; }
.bar-fill { height: 100%; min-width: 3px; border-radius: inherit; background: linear-gradient(90deg, #2563eb, #5b92f4); }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 20px; color: #178153; background: #eaf7f0; font-size: 9px; font-weight: 700; white-space: nowrap; }
.badge.is-error { color: #b42318; background: #fff0ee; }
.system-row { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid #edf0f4; color: #718097; font-size: 11px; }
.system-row strong { color: #178153; font-size: 10px; font-weight: 680; }
.system-footnote { margin: 13px 0 0; color: #9aa5b3; font-size: 9px; line-height: 1.55; }
.table-card { margin-top: 15px; padding-bottom: 8px; }
.text-button { padding: 7px 0 7px 7px; border: 0; background: transparent; color: var(--action); font-size: 10px; font-weight: 650; white-space: nowrap; }
.search-box { display: flex; align-items: center; gap: 8px; min-width: 190px; height: 34px; padding: 0 10px; border: 1px solid #e2e8f0; border-radius: 7px; background: #fff; color: #8996a8; font-size: 15px; }
.search-box input { width: 100%; min-width: 0; border: 0; outline: 0; color: #34445c; font-size: 10px; }
.table-scroll { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { padding: 10px 11px; border-bottom: 1px solid #edf0f4; color: #8a96a7; font-size: 9px; font-weight: 700; letter-spacing: .045em; text-transform: uppercase; white-space: nowrap; }
td { padding: 12px 11px; border-bottom: 1px solid #f0f2f6; color: #526179; font-size: 10px; }
tbody tr:last-child td { border-bottom: 0; }
td strong { color: #2a3d58; font-weight: 650; }
.movement-badge { display: inline-flex; padding: 4px 7px; border-radius: 20px; color: #13744b; background: #eaf7f0; font-size: 9px; font-weight: 700; }
.movement-badge.is-out { color: #a55b0b; background: #fff4e5; }
.empty-state { padding: 20px 10px; color: #8b98a9; font-size: 11px; text-align: center; }
.loading-panel { padding: 40px; border: 1px solid #e9edf3; border-radius: 11px; background: #fff; color: #728198; font-size: 12px; text-align: center; }
.notice { margin-bottom: 18px; padding: 12px 14px; border-radius: 8px; font-size: 12px; line-height: 1.5; }
.notice-error { border: 1px solid #f4c8c3; color: #9f261e; background: #fff5f4; }
.view-panel { animation: fade-in .18s ease-out; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade-in { from { opacity: .5; transform: translateY(3px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1050px) {
  .login-layout { grid-template-columns: minmax(340px, .9fr) minmax(400px, 1fr); }
  .login-story { padding-right: 42px; padding-left: 42px; }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .login-layout { display: block; }
  .login-story { min-height: 330px; padding: 27px 25px 24px; }
  .login-story > .eyebrow { margin-top: 36px; margin-bottom: 13px; }
  .story-copy h1 { font-size: 37px; }
  .story-copy p { margin-top: 12px; font-size: 13px; }
  .route-card { margin-top: 21px; padding: 13px 16px; }
  .story-foot { display: none; }
  .login-panel { min-height: 510px; padding: 39px 24px 18px; }
  .login-card .brand { margin-bottom: 32px; }
  .login-footer { margin-top: 36px; }
  .sidebar { position: fixed; inset: auto 0 0; width: 100%; height: 66px; padding: 6px 8px 7px; border-top: 1px solid rgba(255,255,255,.1); }
  .sidebar-brand, .side-label, .sidebar-bottom { display: none; }
  .navigation { display: flex; justify-content: space-around; gap: 2px; height: 100%; }
  .nav-item { flex: 1; flex-direction: column; justify-content: center; gap: 3px; min-height: 0; padding: 4px 2px; font-size: 9px; }
  .nav-item.is-active { box-shadow: inset 0 2px #5c9aff; }
  .nav-icon { font-size: 16px; }
  .main-column { width: 100%; margin-left: 0; padding-bottom: 66px; }
  .topbar { min-height: 59px; padding: 0 16px; }
  .breadcrumbs { gap: 6px; font-size: 10px; }
  .user-menu { gap: 7px; }
  .avatar { width: 30px; height: 30px; }
  .user-details { min-width: 0; max-width: 92px; }
  .user-details strong { max-width: 92px; font-size: 10px; }
  .user-details small { font-size: 9px; }
  .button-quiet { min-height: 30px; margin-left: 0; padding: 0 8px; font-size: 9px; }
  .content { padding: 25px 15px 28px; }
  .page-heading { align-items: flex-start; }
  .date-chip { padding: 7px 8px; font-size: 9px; }
  .date-icon { display: none; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .panel-card { padding: 15px 13px; }
  .panel-heading { align-items: flex-start; gap: 9px; }
  .search-box { min-width: 130px; }
}
@media (max-width: 420px) {
  .kpi-grid { gap: 9px; }
  .kpi-card { min-height: 124px; padding: 13px 11px; }
  .kpi-top { align-items: flex-start; font-size: 9px; }
  .kpi-icon { width: 25px; height: 25px; flex: 0 0 25px; }
  .kpi-card > strong { font-size: 23px; }
  .page-heading { flex-direction: column; gap: 13px; }
  .date-chip { align-self: flex-start; }
  .panel-heading p { max-width: 180px; }
  .table-card .panel-heading { flex-wrap: wrap; }
  .search-box { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

.brand { gap: 0; align-items: flex-start; }
.brand-mark { display: block; width: 84px; height: 62px; object-fit: contain; object-position: center; }
.brand-caption { align-self: flex-end; margin: 0 0 4px 8px; color: currentColor; font-size: 9px; font-weight: 750; letter-spacing: .19em; }
.sidebar-brand .brand-mark { width: 70px; height: 50px; }
.sidebar-brand .brand-caption { margin-bottom: 3px; font-size: 8px; }
.login-card .brand { margin-bottom: 39px; }
.story-copy h1 { font-size: clamp(42px, 4vw, 56px); }
.heading-tools { display: flex; align-items: center; justify-content: flex-end; gap: 9px; }
.button-quiet:disabled { cursor: wait; opacity: .6; }
.page-action { white-space: nowrap; }
.table-secondary { color: #8c99a9; font-size: 10px; }
.action-cell { min-width: 130px; white-space: nowrap; }
.row-action { display: inline-flex; align-items: center; min-height: 28px; margin: 2px 6px 2px 0; padding: 0 8px; border: 1px solid #e3e9f1; border-radius: 6px; background: #fff; color: #50627a; font-size: 10px; font-weight: 650; }
.row-action:hover { border-color: #b7c9e2; background: #f7faff; color: #164a8b; }
.row-action-primary { border-color: #d6e5fc; color: #1d5ca7; background: #f4f8ff; }
.row-action-danger { color: #a83b34; }
.quantity-in { color: #178153; font-weight: 700; }
.quantity-out { color: #b42318; font-weight: 700; }
.badge.is-warning { color: #9a5c08; background: #fff4e5; }
.badge.is-muted { color: #66758a; background: #eff2f6; }
.product-thumb { display: inline-grid; width: 43px; height: 43px; place-items: center; border: 1px solid #edf0f4; border-radius: 8px; background: #f7f9fc; object-fit: cover; }
.product-thumb-empty { color: #93a2b6; font-size: 22px; }
.status-chart { display: grid; gap: 13px; }
.status-chart-row { display: grid; grid-template-columns: minmax(92px, .75fr) minmax(55px, 1fr) 25px; align-items: center; gap: 10px; color: #66758a; font-size: 10px; }
.status-chart-row strong { color: #34445c; text-align: right; }
.bar-fill-violet { background: linear-gradient(90deg, #7255c7, #a18ae8); }
.dashboard-secondary { margin-top: 15px; }
.movement-chart { display: flex; align-items: flex-end; justify-content: space-around; gap: 8px; min-height: 150px; padding: 13px 4px 0; border-bottom: 1px solid #edf0f4; }
.trend-column { display: flex; flex: 1 1 0; flex-direction: column; align-items: center; justify-content: flex-end; height: 130px; min-width: 0; }
.trend-value { overflow: hidden; max-width: 100%; color: #7e8ba0; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.trend-bar { width: min(22px, 70%); min-height: 3px; margin-top: 6px; border-radius: 5px 5px 0 0; background: linear-gradient(180deg, #6197eb, #2563eb); }
.trend-label { margin-top: 7px; color: #8a97a8; font-size: 8px; }
.system-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.system-detail { display: flex; flex-direction: column; gap: 11px; min-height: 100px; }
.system-detail > span { color: #8290a3; font-size: 11px; }
.system-detail > strong { color: #243951; font-size: 14px; overflow-wrap: anywhere; }
.toast { position: fixed; top: 84px; right: 24px; z-index: 20; max-width: min(440px, calc(100vw - 32px)); padding: 12px 16px; border: 1px solid #cde8d8; border-radius: 9px; color: #17613e; background: #f0fbf4; box-shadow: 0 12px 32px rgba(27,46,74,.12); font-size: 12px; line-height: 1.5; }
.toast-error { border-color: #f1c7c2; color: #9f261e; background: #fff5f4; }
.toast-warning { border-color: #f0d7a4; color: #79500a; background: #fff9eb; }
.editor-modal { width: min(680px, calc(100vw - 28px)); max-height: min(88vh, 860px); padding: 0; overflow: auto; border: 1px solid #e6ebf2; border-radius: 15px; color: #172b4d; background: #fff; box-shadow: 0 28px 90px rgba(10,25,48,.25); }
.editor-modal::backdrop { background: rgba(8,20,37,.58); backdrop-filter: blur(3px); }
.editor-modal > form { padding: 23px 25px 20px; }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.modal-header .eyebrow { margin-bottom: 8px; }
.modal-header h2 { margin: 0; color: #172b4d; font-size: 22px; letter-spacing: -.035em; }
.modal-header .muted { margin: 7px 0 0; font-size: 12px; line-height: 1.5; }
.modal-close { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border: 1px solid #e6ebf2; border-radius: 8px; color: #607087; background: #fff; font-size: 22px; }
.modal-close:hover { background: #f4f7fb; }
.modal-fields { display: grid; gap: 16px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.form-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; color: #43536b; font-size: 11px; font-weight: 650; }
.form-field-wide { grid-column: 1 / -1; }
.form-field input, .form-field select, .form-field textarea { width: 100%; min-height: 41px; padding: 9px 11px; border: 1px solid #dce3ed; border-radius: 7px; outline: 0; color: #263a54; background: #fff; font-size: 12px; font-weight: 450; }
.form-field textarea { min-height: 78px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: #6a9cf0; box-shadow: 0 0 0 3px rgba(37,99,235,.11); }
.form-field input[type="file"] { padding: 8px; }
.checkbox-field { display: flex; align-items: center; gap: 9px; min-height: 36px; color: #526179; font-size: 12px; }
.checkbox-field input { width: 16px; height: 16px; accent-color: #2563eb; }
.modal-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 23px; padding-top: 16px; border-top: 1px solid #edf0f4; }
.modal-actions .button { min-height: 40px; padding: 0 15px; font-size: 11px; }
.warehouse-checklist { display: grid; gap: 6px; }
.warehouse-checklist .checkbox-field { padding: 8px 10px; border: 1px solid #edf0f4; border-radius: 7px; }
.form-section { padding-top: 3px; }
.form-section h3 { margin: 0 0 11px; color: #34445c; font-size: 12px; }
.order-lines { display: grid; gap: 10px; }
.order-line { display: grid; grid-template-columns: minmax(0, 1fr) 130px auto; align-items: end; gap: 10px; padding: 11px; border: 1px solid #edf0f4; border-radius: 9px; background: #fafbfd; }
.order-line .form-field { min-width: 0; }
.order-line .row-action { margin-bottom: 6px; }
.add-line { margin-top: 8px; padding-left: 0; }
dialog:not([open]) { display: none; }

@media (max-width: 1050px) {
  .system-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .brand-mark { width: 70px; height: 52px; }
  .sidebar-brand .brand-mark { width: 60px; height: 43px; }
  .navigation { justify-content: flex-start; overflow-x: auto; scrollbar-width: none; }
  .navigation::-webkit-scrollbar { display: none; }
  .nav-item { flex: 0 0 67px; min-width: 67px; }
  .nav-item[hidden] { display: none; }
  .heading-tools { flex-wrap: wrap; justify-content: flex-start; }
  .page-heading { flex-wrap: wrap; }
  .page-heading .heading-tools { width: 100%; }
  .system-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .system-detail { min-height: 85px; padding: 13px; }
  .editor-modal > form { padding: 20px 17px 16px; }
  .order-line { grid-template-columns: minmax(0, 1fr) 100px; }
  .order-line .row-action { grid-column: 2; justify-self: end; margin-top: -6px; }
  .toast { top: 68px; right: 12px; }
}
@media (max-width: 460px) {
  .form-grid { grid-template-columns: 1fr; gap: 12px; }
  .form-field-wide { grid-column: auto; }
  .system-grid { grid-template-columns: 1fr; }
  .status-chart-row { grid-template-columns: minmax(82px, .8fr) minmax(45px, 1fr) 20px; }
  .modal-actions { justify-content: stretch; }
  .modal-actions .button { flex: 1; }
}
