:root {
  --red: #b50909;
  --red-dark: #790303;
  --ink: #17191d;
  --muted: #68707c;
  --line: #dde1e7;
  --soft: #f5f6f8;
  --white: #fff;
  --shadow: 0 18px 50px rgba(26, 29, 34, .10);
}
* { box-sizing: border-box; }
html { min-height: 100%; background: #f3f4f6; }
body { margin: 0; min-height: 100vh; color: var(--ink); font-family: Inter, "Segoe UI", Arial, sans-serif; }
html.member-responsive-disabled,
html.member-responsive-disabled body { min-width: 1440px; }
a { color: inherit; }
button, input { font: inherit; }
.auth-page { display: grid; grid-template-columns: minmax(330px, .9fr) minmax(480px, 1.1fr); min-height: 100vh; }
.brand-panel { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 48px 9%; color: #fff; background: linear-gradient(145deg, #850404 0%, #b50909 52%, #690303 100%); }
.brand-panel::before, .brand-panel::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.17); transform: rotate(45deg); }
.brand-panel::before { width: 330px; height: 330px; right: -185px; top: 7%; }
.brand-panel::after { width: 190px; height: 190px; left: -110px; bottom: 4%; }
.brand-mark { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 14px; font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.brand-symbol { width: 37px; height: 37px; border: 8px solid #fff; transform: rotate(45deg); }
.brand-copy { position: relative; z-index: 1; max-width: 520px; }
.brand-copy h1 { margin: 0 0 18px; font-size: clamp(38px, 4.4vw, 68px); line-height: .98; letter-spacing: -.045em; }
.brand-copy p { max-width: 460px; margin: 0; color: rgba(255,255,255,.78); font-size: 17px; line-height: 1.65; }
.brand-foot { position: relative; z-index: 1; font-size: 12px; color: rgba(255,255,255,.62); }
.auth-main { display: grid; place-items: center; padding: 48px 7%; background: #fff; }
.auth-card { width: min(100%, 470px); }
.logo { display: block; width: min(330px, 88%); height: auto; margin-bottom: 52px; }
.eyebrow { margin: 0 0 10px; color: var(--red); font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.auth-card h2 { margin: 0 0 10px; font-size: 34px; letter-spacing: -.035em; }
.intro { margin: 0 0 30px; color: var(--muted); line-height: 1.55; }
.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 700; }
.field input { width: 100%; height: 50px; border: 1px solid var(--line); border-radius: 7px; padding: 0 15px; outline: none; transition: .18s; }
.field input:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(181,9,9,.09); }
.field small { display: block; margin-top: 7px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 66px; }
.text-btn { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--red); cursor: pointer; font-size: 12px; font-weight: 700; }
.primary-btn { width: 100%; height: 52px; border: 0; border-radius: 7px; color: #fff; background: var(--red); cursor: pointer; font-weight: 800; box-shadow: 0 10px 24px rgba(181,9,9,.22); transition: .18s; }
.primary-btn:hover { background: var(--red-dark); transform: translateY(-1px); }
.form-foot { margin: 22px 0 0; text-align: center; color: var(--muted); font-size: 14px; }
.form-foot a { color: var(--red); font-weight: 800; text-decoration: none; }
.notice { display: none; margin: 0 0 18px; padding: 12px 14px; border-radius: 6px; font-size: 13px; line-height: 1.4; }
.notice.show { display: block; }
.notice.error { color: #7b1515; background: #fff0f0; }
.notice.success { color: #195f36; background: #eaf8f0; }
.loading-overlay { position: fixed; z-index: 9999; inset: 0; display: flex; align-items: center; justify-content: center; visibility: hidden; opacity: 0; background: rgba(255,255,255,.68); backdrop-filter: blur(1px); transition: opacity .15s ease, visibility .15s ease; }
.loading-overlay.show { visibility: visible; opacity: 1; }
.loading-box { display: flex; align-items: center; gap: 12px; min-width: 150px; padding: 16px 22px; border: 1px solid var(--line); border-radius: 9px; color: #343a43; background: #fff; box-shadow: 0 14px 40px rgba(26,29,34,.18); }
.loading-spinner { width: 24px; height: 24px; flex: 0 0 24px; border: 3px solid #ead0d0; border-top-color: var(--red); border-radius: 50%; animation: loading-spin .75s linear infinite; }
@keyframes loading-spin { to { transform: rotate(360deg); } }
.app-shell { min-height: 100vh; background: var(--soft); }
.topbar { position: relative; z-index: 5; height: 64px; display: flex; align-items: center; gap: 22px; padding: 0 12px; border-bottom: 1px solid var(--line); background: #fff; }
.topbar .logo { flex: 0 0 auto; width: 190px; margin: 0; }
.user-area { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 13px; }
.avatar { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 50%; color: #fff; background: var(--red); font-weight: 800; }
.logout { border: 0; background: none; color: var(--red); cursor: pointer; font-weight: 700; }
.app-body { height: calc(100vh - 64px); min-height: 0; }
.sidebar { display: flex; flex: 1 1 auto; align-items: center; gap: 6px; min-width: 0; padding: 0; overflow-x: auto; color: #343a43; }
.sidebar-label { display: none; }
.nav-link { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; margin: 0; padding: 9px 12px; border-radius: 6px; text-decoration: none; font-size: 13px; font-weight: 700; }
.nav-link:hover, .nav-link.active { color: #fff; background: var(--red); }
.nav-icon { display: inline-flex; width: 22px; height: 18px; flex: 0 0 22px; align-items: center; justify-content: center; text-align: center; font-size: 17px; line-height: 1; }
.main { display: flex; flex-direction: column; height: 100%; min-width: 0; min-height: 0; padding: 10px 12px; overflow: hidden; }
.page-head { flex: 0 0 auto; display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 10px; }
.page-head h1 { margin: 0 0 4px; font-size: clamp(26px, 2.5vw, 34px); letter-spacing: -.035em; }
.page-head p { margin: 0; color: var(--muted); }
.query-page { overflow-y: auto; }
.query-page .app-body { height: auto; min-height: calc(100vh - 64px); }
.query-page .main { height: auto; min-height: calc(100vh - 64px); padding-top: 8px; padding-bottom: 8px; overflow: visible; }
.query-page .table-card { flex: 0 0 auto; }
.query-page .table-wrap { flex: 0 0 auto; overflow-x: auto; overflow-y: visible; }
.query-page .page-head h1 { font-size: clamp(22px, 2vw, 28px); }
.query-page .page-head.status-only { justify-content: flex-end; min-height: 18px; margin-bottom: 6px; }
.query-page .filter-field input,
.query-page .search-btn { height: 36px; }
.query-page .filter-grid,
.query-page .container-filter-grid { grid-template-columns: 250px 282px max-content 96px; justify-content: start; gap: 10px; }
.query-page .date-range-group { grid-column: auto; }
.query-page .range-row { align-self: end; flex-wrap: nowrap; gap: 5px; height: 36px; margin: 0; padding: 0; border-top: 0; }
.query-page .range-row > span { margin-right: 1px; font-size: 9px; white-space: nowrap; }
.query-page .range-btn { padding: 4px 6px; font-size: 9px; white-space: nowrap; }

@media (max-width: 1280px) {
  html:not(.member-responsive-disabled) .query-page .filter-grid,
  html:not(.member-responsive-disabled) .query-page .container-filter-grid { grid-template-columns: 1fr 1fr; }
  html:not(.member-responsive-disabled) .query-page .order-search-field { grid-column: 1 / -1; }
  html:not(.member-responsive-disabled) .query-page .range-row,
  html:not(.member-responsive-disabled) .query-page .search-btn { grid-column: 1 / -1; }
}
.status { display: inline-flex; align-items: center; gap: 7px; color: #257448; font-size: 12px; font-weight: 700; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #2eaa67; box-shadow: 0 0 0 4px #dff4e8; }
.panel { border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: 0 8px 32px rgba(35,39,47,.045); }
.search-panel { flex: 0 0 auto; padding: 12px 18px; margin-bottom: 10px; }
.document-actions { display: flex; gap: 9px; }
.document-actions[hidden] { display: none; }
.document-btn { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px; border: 1px solid #9cc8ee; border-radius: 6px; color: #1267a8; background: #eaf5ff; text-decoration: none; font-size: 11px; font-weight: 800; }
.document-btn:hover { border-color: #1267a8; color: #fff; background: #1267a8; }
.pdf-file-icon { position: relative; display: inline-grid; place-items: end center; flex: 0 0 18px; width: 18px; height: 20px; padding-bottom: 3px; border: 1px solid currentColor; border-radius: 2px; background: rgba(255,255,255,.72); color: inherit; font-size: 6px; font-weight: 900; line-height: 1; letter-spacing: 0; }
.pdf-file-icon::after { content: ""; position: absolute; top: -1px; right: -1px; width: 5px; height: 5px; border-left: 1px solid currentColor; border-bottom: 1px solid currentColor; background: #cfe8fb; }
.document-btn:hover .pdf-file-icon::after { background: #fff; }
.filter-grid { display: grid; grid-template-columns: minmax(260px, 1.35fr) minmax(145px, .72fr) minmax(145px, .72fr) 120px; gap: 14px; align-items: end; }
.container-filter-grid { display: grid; grid-template-columns: minmax(260px, 1.35fr) minmax(145px, .72fr) minmax(145px, .72fr) 120px; gap: 14px; align-items: end; }
.date-range-group { grid-column: span 2; min-width: 0; margin: 0; padding: 0; border: 0; }
.date-range-group legend { margin: 0 0 4px; padding: 0; color: #4d535c; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.date-range-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.date-range-inputs .filter-field label { margin-bottom: 3px; }
.filter-field label { display: block; margin-bottom: 5px; color: #4d535c; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.filter-field input { width: 100%; height: 40px; border: 1px solid var(--line); border-radius: 7px; padding: 0 12px; color: var(--ink); background: #fff; outline: none; }
.filter-field input:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(181,9,9,.08); }
.filter-field { position: relative; }
.filter-field input[readonly] { cursor: pointer; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2368707c' stroke-width='2'%3E%3Crect x='3' y='4' width='18' height='17' rx='2'/%3E%3Cpath d='M8 2v4M16 2v4M3 10h18'/%3E%3C/svg%3E") no-repeat right 10px center; padding-right: 32px; }
.english-calendar { position: absolute; z-index: 50; top: calc(100% + 8px); left: 0; width: 310px; padding: 16px; border: 1px solid var(--line); border-radius: 9px; background: #fff; box-shadow: 0 16px 40px rgba(27,31,38,.18); }
.calendar-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.calendar-head strong { font-size: 14px; }
.calendar-head button { width: 30px; height: 30px; border: 0; border-radius: 5px; color: var(--ink); background: transparent; cursor: pointer; font-size: 22px; }
.calendar-head button:hover { color: var(--red); background: #fff0f0; }
.calendar-weekdays, .calendar-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; text-align: center; }
.calendar-weekdays { margin-bottom: 6px; color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.calendar-days button, .calendar-days span { display: grid; place-items: center; height: 32px; border: 0; border-radius: 5px; background: transparent; font-size: 12px; }
.calendar-days button { cursor: pointer; }
.calendar-days button:hover { color: var(--red); background: #fff0f0; }
.calendar-days button.selected { color: #fff; background: var(--red); font-weight: 800; }
.calendar-foot { display: flex; justify-content: space-between; margin-top: 12px; padding-top: 12px; border-top: 1px solid #eceef1; }
.calendar-foot button { border: 0; color: var(--red); background: none; cursor: pointer; font-size: 12px; font-weight: 800; }
.search-btn { height: 40px; border: 0; border-radius: 7px; color: #fff; background: var(--red); cursor: pointer; font-weight: 800; }
.range-row { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-top: 8px; padding-top: 8px; border-top: 1px solid #eceef1; }
.range-row > span { margin-right: 4px; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.range-btn { padding: 5px 10px; border: 1px solid var(--line); border-radius: 99px; color: #545b65; background: #fff; cursor: pointer; font-size: 11px; font-weight: 700; }
.range-btn:hover, .range-btn.active { border-color: var(--red); color: #fff; background: var(--red); }
.query-page .range-row .clear-filter-btn { flex: 0 0 96px; width: 96px; height: 36px; margin-left: 0; padding: 0 14px; border: 1px solid #aeb5be; border-radius: 7px; color: #4c535d; background: linear-gradient(#fff,#f0f2f4); box-shadow: 0 1px 2px rgba(25,29,35,.08); font-size: 12px; font-weight: 800; }
.query-page .range-row .clear-filter-btn:hover { border-color: #7f8791; color: #24292f; background: linear-gradient(#f8f9fa,#e4e7ea); }
.query-page .range-row .clear-filter-btn:active { background: #dde1e5; box-shadow: inset 0 1px 2px rgba(25,29,35,.14); }
.search-label { display: block; margin-bottom: 10px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.search-row { display: flex; gap: 10px; }
.search-row input { flex: 1; min-width: 0; height: 50px; border: 1px solid var(--line); border-radius: 7px; padding: 0 16px; outline: none; font-size: 16px; }
.search-row input:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(181,9,9,.08); }
.search-row button { min-width: 140px; border: 0; border-radius: 7px; color: #fff; background: var(--red); cursor: pointer; font-weight: 800; }
.quick { margin: 10px 0 0; color: var(--muted); font-size: 12px; }
.quick button { border: 0; padding: 0; color: var(--red); background: none; cursor: pointer; font-weight: 700; }
.table-card { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.table-card[hidden] { display: none; }
.table-meta { flex: 0 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 10px 18px; border-bottom: 1px solid var(--line); }
.table-meta strong { font-size: 15px; }
.table-meta #resultCount,
.table-meta #detailCount { color: var(--muted); font-size: 12px; }
.table-meta-tools { display: flex; align-items: center; justify-content: flex-end; gap: 14px; min-width: 0; }
.table-meta-tools .document-actions { flex: 0 0 auto; }
.table-wrap { flex: 1 1 auto; min-height: 0; overflow: auto; }
.pagination { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 22px; border-top: 1px solid var(--line); background: #fff; }
.pagination > span { color: var(--muted); font-size: 12px; }
.pagination > div { display: flex; gap: 6px; }
.page-size-control { display: inline-flex; align-items: center; gap: 6px; color: #343a43; font-size: 12px; white-space: nowrap; }
.page-size-control select { height: 32px; min-width: 62px; padding: 0 25px 0 9px; border: 1px solid var(--line); border-radius: 5px; color: #343a43; background: #fff; cursor: pointer; outline: none; }
.page-size-control select:focus { border-color: var(--red); box-shadow: 0 0 0 2px rgba(181,9,9,.08); }
.pagination button { min-width: 34px; height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 5px; color: #515862; background: #fff; cursor: pointer; font-size: 12px; font-weight: 700; }
.pagination button:hover:not(:disabled), .pagination button.active { border-color: var(--red); color: #fff; background: var(--red); }
.pagination button:disabled { opacity: .42; cursor: not-allowed; }
.empty-state-row td { height: 260px; padding: 0; text-align: center; background: #fff; }
.empty-state { display: flex; height: 100%; min-height: 260px; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: var(--muted); }
.empty-state svg { width: 58px; height: 58px; fill: none; stroke: #aeb5bf; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.empty-state strong { color: #555d68; font-size: 15px; font-weight: 700; }
table { width: 100%; border-collapse: collapse; white-space: nowrap; }
.order-table { min-width: 1375px; table-layout: auto; }
th { padding: 12px 6px; border-bottom: 1px solid var(--line); color: #4d535c; background: #f6f7f9; text-align: left; white-space: nowrap; overflow-wrap: normal; word-break: normal; line-height: 1.35; font-size: 10px; letter-spacing: .04em; text-transform: none; }
thead th { position: sticky; z-index: 3; top: 0; box-shadow: 0 1px 0 var(--line); }
td { padding: 9px 6px; overflow: visible; text-overflow: clip; border-bottom: 1px solid #eceef1; font-size: 12px; }
.order-table th:nth-child(1) { width: 84px; }
.order-table th:nth-child(2), .order-table td:nth-child(2) { width: 102px; min-width: 102px; }
.order-table th:nth-child(3), .order-table td:nth-child(3) { width: 126px; min-width: 126px; }
.order-table th:nth-child(4) { width: 38px; }
.order-table th:nth-child(5) { width: 54px; white-space: normal; }
.order-table th:nth-child(6) { width: 46px; white-space: normal; }
.order-table th:nth-child(7) { width: 52px; white-space: normal; }
.order-table th:nth-child(8) { width: 102px; }
.order-table th:nth-child(9) { width: 122px; }
.order-table th:nth-child(10) { width: 94px; white-space: nowrap; font-size: 9px; }
.order-table th:nth-child(11), .order-table td:nth-child(11) { width: 100px; min-width: 100px; white-space: nowrap; }
.order-table th:nth-child(11) { font-size: 9px; }
.order-table th:nth-child(12), .order-table td:nth-child(12) { width: 100px; min-width: 100px; }
.order-table th:nth-child(13) { width: 94px; white-space: nowrap; font-size: 13px; font-weight: 900; }
.order-table th:nth-child(14) { width: 96px; white-space: normal; }
.order-table th:nth-child(15) { width: 90px; white-space: nowrap; font-size: 9px; }
.order-table th:nth-child(16) { width: 96px; }
.order-table td { padding-top: 5px; padding-bottom: 5px; }
.shipment-summary-table { min-width: 1095px; }
.shipment-summary-table th:nth-child(1), .shipment-summary-table td:nth-child(1) { width: 110px; min-width: 110px; }
.shipment-summary-table th:nth-child(2), .shipment-summary-table td:nth-child(2) { width: 135px; min-width: 135px; }
.shipment-summary-table th:nth-child(3), .shipment-summary-table td:nth-child(3) { width: 80px; min-width: 80px; white-space: nowrap; }
.shipment-summary-table th:nth-child(4), .shipment-summary-table td:nth-child(4) { width: 94px; min-width: 94px; white-space: nowrap; }
.shipment-summary-table th:nth-child(5), .shipment-summary-table td:nth-child(5) { width: 100px; min-width: 100px; white-space: nowrap; }
.shipment-summary-table th:nth-child(6), .shipment-summary-table td:nth-child(6) { width: 94px; min-width: 94px; }
.shipment-summary-table th:nth-child(6) { font-size: 13px; font-weight: 900; }
.shipment-summary-table th:nth-child(7), .shipment-summary-table td:nth-child(7) { width: 110px; min-width: 110px; white-space: normal; }
.shipment-summary-table th:nth-child(8), .shipment-summary-table td:nth-child(8) { width: 90px; min-width: 90px; white-space: nowrap; }
.shipment-summary-table th:nth-child(9), .shipment-summary-table td:nth-child(9) { width: 96px; min-width: 96px; }
.shipment-summary-table th:nth-child(10), .shipment-summary-table td:nth-child(10) { width: 200px; min-width: 200px; }
.shipment-summary-table th { padding-top: 7px; padding-bottom: 7px; }
.shipment-summary-table td { padding-top: 5px; padding-bottom: 5px; }
.documents-cell { overflow: visible; }
.row-document-actions { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.row-document-actions .document-btn { padding: 3px 7px; font-size: 10px; }
.row-document-actions .pdf-file-icon { flex-basis: 15px; width: 15px; height: 17px; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fffafa; }
.po-cell { color: var(--red); font-weight: 800; }
.detail-link { display: inline-flex; align-items: center; gap: 3px; padding-bottom: 1px; border-bottom: 1px solid currentColor; color: var(--red); font-weight: 800; text-decoration: none; }
.detail-link span { font-size: 11px; text-decoration: none; }
.detail-link:hover { color: var(--red-dark); }
.back-link { display: inline-block; margin-bottom: 6px; color: var(--red); font-size: 13px; font-weight: 800; text-decoration: none; }
.detail-head { margin-bottom: 6px; }
.detail-head > div { width: 100%; }
.container-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(135px, 1fr)); gap: 1px; margin-top: 6px; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #e4e7eb; box-shadow: 0 8px 28px rgba(35,39,47,.045); }
.container-summary-item { min-width: 0; padding: 6px 10px; background: #fff; }
.container-summary-item > span { display: block; margin-bottom: 2px; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .045em; white-space: nowrap; }
.container-summary-item > strong { display: flex; align-items: center; min-height: 20px; color: var(--ink); font-size: 12px; white-space: nowrap; }
.container-summary-item.summary-due > strong { font-size: 13px; font-weight: 900; }
.container-summary-item .delivery-status { font-size: 11px; }
.badge { display: inline-block; padding: 5px 9px; border-radius: 99px; color: #1d6a3e; background: #e7f7ed; font-size: 11px; font-weight: 800; }
.delivery-status { display: inline-block; min-width: 64px; padding: 4px 7px; border-radius: 99px; text-align: center; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.order-table td:nth-child(13) .delivery-status { min-width: 74px; padding-right: 5px; padding-left: 5px; font-size: 12px; }
.order-table td:nth-child(14) .delivery-status { padding-right: 5px; padding-left: 5px; font-size: 12px; }
.order-table td:nth-child(12) { font-size: 13px; font-weight: 800; }
.shipment-summary-table td:nth-child(6) .delivery-status { min-width: 74px; padding-right: 5px; padding-left: 5px; font-size: 12px; }
.shipment-summary-table td:nth-child(7) .delivery-status { padding-right: 5px; padding-left: 5px; font-size: 12px; }
.shipment-detail-table { min-width: 825px; }
.shipment-detail-table th { padding-top: 7px; padding-bottom: 7px; }
.shipment-detail-table th:nth-child(1) { width: 84px; }
.shipment-detail-table th:nth-child(2), .shipment-detail-table td:nth-child(2) { width: 102px; min-width: 102px; }
.shipment-detail-table th:nth-child(3), .shipment-detail-table td:nth-child(3) { width: 126px; min-width: 126px; }
.shipment-detail-table th:nth-child(4) { width: 38px; }
.shipment-detail-table th:nth-child(5) { width: 46px; }
.shipment-detail-table th:nth-child(6) { width: 52px; }
.shipment-detail-table th:nth-child(7), .shipment-detail-table td:nth-child(7) { width: 100px; min-width: 100px; }
.shipment-detail-table th:nth-child(8), .shipment-detail-table td:nth-child(8) { width: 96px; min-width: 96px; }
.shipment-detail-table .detail-due-cell { font-size: 13px; font-weight: 800; }
.shipment-detail-table td:nth-child(8) .delivery-status { padding-right: 5px; padding-left: 5px; font-size: 12px; }
.delivery-status.on-time { color: #1d713f; background: #e3f6eb; }
.delivery-status.delayed { color: #b20b0b; background: #ffe9e9; }
.delivery-status.delivered { color: #0875bd; background: #e5f4ff; }
.delivery-status.delivered-late { color: #8a6500; background: #fff2b8; }
.delivery-status.booked { color: #9a5a12; background: #fff1dc; }
.delivery-status.planned { color: inherit; background: transparent; font-weight: 800; }
.dev-card { min-height: 440px; display: grid; place-items: center; padding: 40px; text-align: center; }
.dev-icon { display: grid; place-items: center; width: 76px; height: 76px; margin: 0 auto 22px; border-radius: 18px; color: #fff; background: var(--red); font-size: 34px; box-shadow: 0 14px 30px rgba(181,9,9,.2); }
.dev-card h2 { margin: 0 0 10px; font-size: 27px; }
.dev-card p { max-width: 480px; margin: 0 auto 24px; color: var(--muted); line-height: 1.6; }
.back-btn { display: inline-block; padding: 12px 18px; border-radius: 6px; color: #fff; background: #202226; text-decoration: none; font-size: 13px; font-weight: 800; }
@media (max-width: 820px) {
  html:not(.member-responsive-disabled) .auth-page { grid-template-columns: 1fr; }
  html:not(.member-responsive-disabled) .brand-panel { display: none; }
  html:not(.member-responsive-disabled) .auth-main { padding: 40px 24px; }
  html:not(.member-responsive-disabled) .logo { margin-bottom: 38px; }
  html:not(.member-responsive-disabled) .topbar { gap: 10px; }
  html:not(.member-responsive-disabled) .sidebar { padding: 0; }
  html:not(.member-responsive-disabled) .main { height: 100%; padding: 12px; }
  html:not(.member-responsive-disabled) .page-head { align-items: flex-start; flex-direction: column; }
  html:not(.member-responsive-disabled) .topbar .logo { width: 180px; }
  html:not(.member-responsive-disabled) .user-area > span { display: none; }
  html:not(.member-responsive-disabled) .filter-grid { grid-template-columns: 1fr 1fr; }
  html:not(.member-responsive-disabled) .query-page .filter-grid { grid-template-columns: 1fr 1fr; }
  html:not(.member-responsive-disabled) .order-search-field { grid-column: 1 / -1; }
  html:not(.member-responsive-disabled) .container-filter-grid { grid-template-columns: 1fr 1fr; }
  html:not(.member-responsive-disabled) .query-page .container-filter-grid { grid-template-columns: 1fr 1fr; }
  html:not(.member-responsive-disabled) .query-page .range-row { grid-column: 1 / -1; }
  html:not(.member-responsive-disabled) .search-btn { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  html:not(.member-responsive-disabled) .search-row { flex-direction: column; }
  html:not(.member-responsive-disabled) .search-row button { height: 48px; }
  html:not(.member-responsive-disabled) .topbar { padding: 0 16px; }
  html:not(.member-responsive-disabled) .topbar .logo { width: 155px; }
  html:not(.member-responsive-disabled) .filter-grid { grid-template-columns: 1fr; }
  html:not(.member-responsive-disabled) .query-page .filter-grid { grid-template-columns: 1fr; }
  html:not(.member-responsive-disabled) .order-search-field { grid-column: auto; }
  html:not(.member-responsive-disabled) .container-filter-grid { grid-template-columns: 1fr; }
  html:not(.member-responsive-disabled) .query-page .container-filter-grid { grid-template-columns: 1fr; }
  html:not(.member-responsive-disabled) .query-page .range-row { height: auto; flex-wrap: wrap; }
  html:not(.member-responsive-disabled) .table-meta { align-items: flex-start; flex-direction: column; }
  html:not(.member-responsive-disabled) .table-meta-tools { width: 100%; align-items: flex-start; flex-direction: column; }
  html:not(.member-responsive-disabled) .document-actions { width: 100%; }
  html:not(.member-responsive-disabled) .document-btn { flex: 1; justify-content: center; }
  html:not(.member-responsive-disabled) .date-range-group { grid-column: auto; }
  html:not(.member-responsive-disabled) .date-range-inputs { grid-template-columns: 1fr; }
  html:not(.member-responsive-disabled) .search-btn { grid-column: auto; }
}
