:root {
  --navy: #17263c;
  --navy-raised: #223653;
  --blue: #355f9e;
  --logo-blue: #577cbe;
  --blue-soft: #eaf0fa;
  --red: #c93434;
  --page: #f4f6f9;
  --surface: #ffffff;
  --surface-soft: #eef2f7;
  --ink: #1a2433;
  --muted: #687385;
  --line: #d7dee8;
  --green: #247a5a;
  --amber: #9a651d;
  --shadow: 0 12px 34px rgba(23, 38, 60, .08);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--page); }
body { min-height: 100%; margin: 0; color: var(--ink); background: var(--page); font-family: Aptos, "Segoe UI Variable", "Segoe UI", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
.shell { width: min(100% - 48px, 1440px); margin-inline: auto; }

.topbar { position: sticky; top: 0; z-index: 30; min-height: 72px; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.topbar-inner { display: flex; height: 72px; align-items: center; gap: 28px; }
.brand { display: flex; flex: 0 0 auto; height: 48px; align-items: center; gap: 12px; }
.brand img { width: 151px; height: 45px; object-fit: contain; object-position: left center; }
.brand span { padding-left: 12px; color: var(--navy); border-left: 1px solid var(--line); font-size: 14px; font-weight: 750; }
.main-nav { display: flex; height: 100%; flex: 1; align-items: stretch; justify-content: center; gap: 2px; }
.main-nav a { position: relative; display: flex; padding: 0 12px; align-items: center; color: #5f6b7d; font-size: 14px; font-weight: 650; white-space: nowrap; }
.main-nav a:hover { color: var(--navy); background: #f8fafc; }
.main-nav a.active { color: var(--blue); }
.main-nav a.active::after { position: absolute; right: 12px; bottom: 0; left: 12px; height: 3px; background: var(--blue); border-radius: 3px 3px 0 0; content: ""; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.icon-button { display: grid; width: 40px; height: 40px; place-items: center; color: #fff; background: var(--blue); border-radius: 9px; font-size: 24px; line-height: 1; }
.avatar { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; color: #fff; background: var(--navy); border-radius: 50%; font-size: 13px; font-weight: 750; }
.menu-button { display: none; height: 40px; padding: 0 13px; color: var(--navy); background: #fff; border: 1px solid var(--line); border-radius: 9px; font-size: 14px; font-weight: 700; }
.mobile-nav { display: none; padding: 8px 16px 14px; background: #fff; border-top: 1px solid var(--line); }
.mobile-nav.open { display: grid; }
.mobile-nav a { min-height: 45px; padding: 0 12px; display: flex; align-items: center; color: #536176; border-radius: 8px; font-size: 15px; font-weight: 650; }
.mobile-nav a.active { color: var(--blue); background: var(--blue-soft); }

.main-content { padding: 38px 0 56px; }
.page-heading { display: flex; min-height: 62px; margin-bottom: 24px; align-items: flex-start; justify-content: space-between; gap: 28px; }
.page-heading h1 { margin: 0 0 7px; color: var(--navy); font-size: clamp(29px, 2.4vw, 35px); line-height: 1.1; font-weight: 760; letter-spacing: -.025em; }
.page-heading p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.45; }
.back-link { display: block; margin-bottom: 12px; color: var(--blue); font-size: 14px; font-weight: 700; }
.heading-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 9px; }
.primary-button, .secondary-button, .row-action { display: inline-flex; min-height: 40px; padding: 0 15px; align-items: center; justify-content: center; gap: 7px; border: 1px solid transparent; border-radius: 9px; font-size: 14px; font-weight: 720; text-decoration: none; }
.primary-button { color: #fff; background: var(--blue); border-color: var(--blue); }
.primary-button:hover { background: #2c5187; }
.secondary-button, .row-action { color: var(--blue); background: #fff; border-color: #ccd5e1; }
.secondary-button:hover, .row-action:hover { background: var(--blue-soft); }
.full-button { width: 100%; }

.summary-strip { display: grid; margin-bottom: 22px; grid-template-columns: repeat(4, minmax(0, 1fr)); background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.summary-strip > a { display: grid; min-height: 100px; padding: 20px; grid-template-columns: auto 1fr auto; align-items: center; gap: 15px; border-right: 1px solid var(--line); }
.summary-strip > a:last-child { border-right: 0; }
.summary-strip > a:hover { background: #fafbfd; }
.summary-strip > a > strong { min-width: 42px; color: var(--navy); font-size: 30px; line-height: 1; letter-spacing: -.04em; }
.summary-strip .urgent-number { color: var(--red); }
.summary-strip > a > span { display: grid; gap: 3px; }
.summary-strip b { font-size: 15px; }
.summary-strip small { color: var(--muted); font-size: 13px; }
.summary-strip i { color: #a1abba; font-size: 23px; font-style: normal; }
.stats-bar { display: grid; margin-bottom: 22px; grid-template-columns: repeat(3, minmax(0, 1fr)); background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.stats-bar > div { display: grid; min-height: 88px; padding: 17px 20px; grid-template-columns: 1fr auto; align-content: center; gap: 3px 16px; border-right: 1px solid var(--line); }
.stats-bar > div:last-child { border-right: 0; }
.stats-bar span { color: var(--muted); font-size: 14px; }
.stats-bar strong { grid-row: span 2; align-self: center; color: var(--navy); font-size: 27px; }
.stats-bar .alert-value { color: var(--red); }
.stats-bar small { color: #7b8798; font-size: 13px; }

.overview-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(360px, .85fr); gap: 22px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.panel-header { display: flex; min-height: 78px; padding: 19px 21px; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.panel-header h2, .table-toolbar h2 { margin: 0 0 4px; color: var(--navy); font-size: 17px; font-weight: 740; }
.panel-header p { margin: 0; color: var(--muted); font-size: 14px; }
.plain-link { color: var(--blue); font-size: 14px; font-weight: 700; white-space: nowrap; }
.task-list { display: grid; }
.task-row { display: grid; min-height: 88px; padding: 15px 20px; grid-template-columns: 8px minmax(0, 1fr) 78px auto; align-items: center; gap: 14px; border-bottom: 1px solid #e8ecf1; }
.task-row:last-child { border-bottom: 0; }
.task-row:hover { background: #fbfcfd; }
.task-marker { width: 8px; height: 8px; border-radius: 50%; }
.marker-red { background: var(--red); }
.marker-amber { background: var(--amber); }
.marker-blue { background: var(--logo-blue); }
.task-copy { display: grid; min-width: 0; gap: 3px; }
.task-copy > span { color: var(--blue); font-family: Consolas, monospace; font-size: 12px; font-weight: 720; }
.task-copy strong { overflow: hidden; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.task-copy small { overflow: hidden; color: var(--muted); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.task-row time { color: var(--muted); font-size: 14px; text-align: right; }
.row-action { min-width: 68px; min-height: 35px; padding-inline: 11px; }
.shipment-brief-list { display: grid; padding: 4px 20px; }
.shipment-brief-list > a { display: grid; min-height: 100px; padding: 14px 0; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; border-bottom: 1px solid #e8ecf1; }
.shipment-brief-list > a:last-child { border-bottom: 0; }
.shipment-brief-list > a:hover .shipment-brief-copy strong { color: var(--blue); }
.shipment-brief-icon { display: grid; width: 38px; height: 38px; place-items: center; color: var(--blue); background: var(--blue-soft); border-radius: 9px; font-size: 13px; font-weight: 800; }
.shipment-brief-copy, .shipment-brief-state { display: grid; min-width: 0; gap: 5px; }
.shipment-brief-copy strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.shipment-brief-copy small, .shipment-brief-state small { color: var(--muted); font-size: 12px; }
.shipment-brief-state { justify-items: end; }

.status { display: inline-flex; width: fit-content; min-height: 25px; padding: 3px 9px; align-items: center; border: 1px solid transparent; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.status-blue { color: #315a91; background: #edf3fb; border-color: #d7e2f1; }
.status-green { color: #216b50; background: #eaf5f0; border-color: #cfe4da; }
.status-red { color: #a62f2f; background: #fbefef; border-color: #efd2d2; }
.status-amber { color: #7b541c; background: #faf3e7; border-color: #eadbc2; }
.status-gray { color: #606c7c; background: #f1f3f6; border-color: #dfe4ea; }

.data-panel { overflow: hidden; }
.table-toolbar { display: flex; min-height: 72px; padding: 15px 19px; align-items: center; justify-content: space-between; gap: 22px; border-bottom: 1px solid var(--line); }
.table-toolbar > div { display: flex; align-items: baseline; gap: 10px; }
.table-toolbar > div span { color: var(--muted); font-size: 13px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; min-width: 960px; border-collapse: collapse; }
thead { background: #f8fafc; }
th { height: 44px; padding: 0 16px; color: #6f7b8d; text-align: left; font-size: 13px; font-weight: 700; }
td { height: 70px; padding: 10px 16px; border-top: 1px solid #e8ecf1; font-size: 14px; vertical-align: middle; }
tbody tr:hover { background: #fbfcfd; }
.record-ref { color: var(--blue); font-family: Consolas, monospace; font-size: 13px; font-weight: 700; }
.two-lines { display: grid; min-width: 0; gap: 4px; }
.two-lines strong { font-size: 14px; }
.two-lines small { color: var(--muted); font-size: 13px; }
.number-cell { font-family: Consolas, monospace; font-weight: 650; }
.muted-cell { color: var(--muted); }
.more-button { display: grid; width: 34px; height: 34px; place-items: center; color: var(--blue); background: transparent; border: 0; border-radius: 8px; font-size: 22px; }
.more-button:hover { background: var(--blue-soft); }
.empty-state { padding: 32px 20px; color: var(--muted); text-align: center; }
.empty-state strong { color: var(--navy); font-size: 15px; }
.empty-state p { margin: 5px 0 0; font-size: 14px; }
td .empty-state { padding: 18px; }

.flash { margin-bottom: 20px; padding: 13px 15px; border: 1px solid; border-radius: 9px; font-size: 14px; }
.flash-success { color: #216b50; background: #eaf5f0; border-color: #cfe4da; }
.flash-error { color: #a62f2f; background: #fbefef; border-color: #efd2d2; }
.flash-fade { opacity: .55; transition: opacity .35s ease; }

.record-choice-grid { display: grid; max-width: 900px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.record-choice-grid > a { display: grid; min-height: 88px; padding: 16px; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 11px; }
.record-choice-grid > a:hover { background: var(--blue-soft); border-color: #b9c9df; }
.record-choice-grid > a > span { display: grid; width: 42px; height: 42px; place-items: center; color: var(--blue); background: var(--blue-soft); border-radius: 9px; font-size: 12px; font-weight: 800; }
.record-choice-grid > a > div { display: grid; gap: 4px; }
.record-choice-grid strong { font-size: 15px; }
.record-choice-grid small { color: var(--muted); font-size: 13px; }
.record-choice-grid i { color: #9aa5b3; font-size: 22px; font-style: normal; }

.form-panel { padding: 22px; }
.narrow-form { max-width: 700px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.form-grid.one-column { grid-template-columns: 1fr; }
.form-grid label, .form-stack label, .status-form label, .requirement-row label { display: grid; gap: 7px; color: #435064; font-size: 14px; font-weight: 650; }
input, select { width: 100%; height: 42px; padding: 0 12px; color: var(--ink); background: #fff; border: 1px solid #cfd7e2; border-radius: 8px; outline: none; font-size: 15px; }
input:focus, select:focus { border-color: var(--logo-blue); box-shadow: 0 0 0 3px rgba(87, 124, 190, .13); }
input:disabled, select:disabled { color: #8a94a3; background: #f1f3f6; border-color: #dfe4ea; cursor: not-allowed; }
input[type="file"] { height: auto; min-height: 48px; padding: 10px; }
label small { color: var(--muted); font-size: 12px; font-weight: 400; }
.checkbox-field { display: flex !important; align-items: center; align-self: end; }
.checkbox-field input { width: 18px; height: 18px; }
.form-actions { display: flex; margin-top: 22px; padding-top: 19px; justify-content: flex-end; gap: 9px; border-top: 1px solid var(--line); }
.edit-preservation-note { display: flex; margin-top: 22px; padding: 13px 15px; align-items: flex-start; gap: 7px; color: #536176; background: #f3f7fc; border: 1px solid #dce5f1; border-radius: 8px; font-size: 13px; line-height: 1.45; }
.edit-preservation-note strong { flex: 0 0 auto; color: var(--navy); }
.requirements-editor { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.requirements-editor h2 { margin: 0 0 5px; color: var(--navy); font-size: 19px; }
.requirements-editor > p { margin: 0 0 17px; color: var(--muted); font-size: 14px; }
.requirements-editor fieldset { display: grid; margin: 0 0 12px; padding: 15px; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; border: 1px solid var(--line); border-radius: 9px; }
.requirements-editor legend { padding: 0 7px; color: var(--navy); font-size: 14px; font-weight: 750; }
.requirements-editor .wide-field { grid-column: 1 / -1; }

.awb-requirement-box { display: grid; margin-top: 24px; padding: 20px; gap: 17px; background: #f8fbff; border: 1px solid #cbd9eb; border-radius: 11px; }
.awb-requirement-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.awb-requirement-heading h2 { margin: 0 0 5px; color: var(--navy); font-size: 18px; }
.awb-requirement-heading p { max-width: 720px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.required-document-badge { display: inline-flex; min-height: 28px; padding: 4px 10px; align-items: center; color: #7b541c; background: #fff6e8; border: 1px solid #eadbc2; border-radius: 999px; font-size: 12px; font-weight: 750; white-space: nowrap; }
.awb-requirement-box > label, .awb-required-fields label { display: grid; gap: 7px; color: #435064; font-size: 14px; font-weight: 650; }
.awb-required-fields .wide-field { grid-column: 1 / -1; }
.awb-required-note { margin: 0; padding: 11px 13px; color: #684818; background: #fff8ed; border-left: 3px solid var(--amber); border-radius: 6px; font-size: 13px; line-height: 1.45; }
.awb-required-note.is-not-applicable { color: #596678; background: #f1f3f6; border-left-color: #9aa5b3; }

.record-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(270px, 310px); gap: 22px; }
.record-main { display: grid; min-width: 0; gap: 22px; }
.detail-grid { display: grid; margin: 0; padding: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.detail-grid div { display: grid; gap: 5px; }
.detail-grid dt { color: var(--muted); font-size: 13px; }
.detail-grid dd { margin: 0; font-size: 15px; font-weight: 650; }
.status-form { display: flex; padding: 17px 20px; align-items: end; gap: 12px; background: #f8fafc; border-top: 1px solid var(--line); }
.status-form label { min-width: 210px; }
.status-form .secondary-button { min-height: 42px; }
.retention-note { display: flex; padding: 15px 20px; align-items: flex-start; gap: 12px; color: #4d5d70; background: #f3f7fc; border-top: 1px solid #dce5f1; }
.retention-icon { display: grid; width: 24px; height: 24px; flex: 0 0 auto; place-items: center; color: #fff; background: var(--blue); border-radius: 50%; font-family: Georgia, serif; font-size: 14px; font-weight: 700; }
.retention-note > div { display: grid; min-width: 0; gap: 3px; }
.retention-note strong { color: var(--navy); font-size: 13px; }
.retention-note p { margin: 0; font-size: 13px; line-height: 1.45; }
.requirements-panel { overflow: hidden; background: #f5f7fa; }
.requirements-panel > .panel-header { background: #fff; }
.requirement-panel-header p { max-width: 700px; line-height: 1.45; }
.requirement-help { display: grid; padding: 14px 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; background: #eef2f7; border-bottom: 1px solid #dde4ec; }
.requirement-help > span { display: flex; min-width: 0; min-height: 52px; padding: 9px 10px; align-items: center; gap: 9px; background: #fff; border: 1px solid #dfe5ec; border-radius: 8px; }
.requirement-help > span > span { display: grid; min-width: 0; gap: 2px; }
.requirement-help strong { color: #354256; font-size: 12px; }
.requirement-help small { overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.guide-dot { display: inline-block; width: 10px; height: 10px; flex: 0 0 auto; border-radius: 50%; }
.guide-required { background: var(--amber); }
.guide-received { background: #3f8c6b; }
.guide-neutral { background: #929cab; }
.guide-waived { background: var(--red); }
.requirement-row { display: grid; min-width: 0; margin: 14px 16px; padding: 17px; gap: 17px; background: #fff; border: 1px solid #dfe5ec; border-radius: 10px; box-shadow: 0 3px 10px rgba(23, 38, 60, .035); }
.requirement-row:last-child { margin-bottom: 16px; }
.requirement-row label { min-width: 0; }
.requirement-title { display: flex; padding-bottom: 14px; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid #e8ecf1; }
.requirement-identity { display: flex; min-width: 0; align-items: center; gap: 12px; }
.requirement-identity > div { display: grid; min-width: 0; gap: 4px; }
.requirement-icon { display: grid; width: 42px; height: 42px; flex: 0 0 auto; place-items: center; color: var(--blue); background: var(--blue-soft); border: 1px solid #d4dfed; border-radius: 9px; font-size: 10px; font-weight: 800; letter-spacing: .03em; }
.requirement-title strong { color: var(--navy); font-size: 15px; }
.requirement-title small { color: var(--muted); font-size: 12px; line-height: 1.4; }
.requirement-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 14px; }
.requirement-fields .waiver-field { grid-column: 1 / -1; }
.shipment-requirement-fields .waiver-field { grid-column: auto; }
.requirement-actions { display: flex; padding-top: 15px; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 9px; border-top: 1px solid #e8ecf1; }
.document-action { max-width: 100%; white-space: normal; text-align: center; }
.documents-side { align-self: start; overflow: hidden; }
.side-document-list { display: grid; }
.side-document-list > a { display: grid; min-height: 78px; padding: 13px 16px; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 11px; border-bottom: 1px solid #e8ecf1; }
.side-document-list > a:last-child { border-bottom: 0; }
.side-document-list > a:hover { background: #fbfcfd; }
.file-badge { display: grid; width: 37px; height: 37px; place-items: center; color: var(--blue); background: var(--blue-soft); border-radius: 8px; font-size: 10px; font-weight: 800; }
.side-document-list > a > span:last-child { display: grid; min-width: 0; gap: 4px; }
.side-document-list strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.side-document-list small { color: var(--muted); font-size: 12px; }

.admin-layout { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 22px; }
.employee-form h2 { margin: 0 0 18px; color: var(--navy); font-size: 19px; }
.employee-form .full-button { margin-top: 18px; }
.employee-list { overflow: hidden; }
.employee-list > article { display: grid; min-height: 82px; padding: 14px 18px; grid-template-columns: auto minmax(190px, 1fr) minmax(170px, .8fr) auto auto; align-items: center; gap: 14px; border-bottom: 1px solid #e8ecf1; }
.employee-list > article:last-child { border-bottom: 0; }
.employee-list details { position: relative; }
.employee-list summary { color: var(--blue); font-size: 13px; font-weight: 700; cursor: pointer; }
.employee-actions { position: absolute; right: 0; z-index: 10; width: 270px; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 9px; box-shadow: var(--shadow); }
.employee-actions form { margin-bottom: 9px; }
.employee-actions form:last-child { margin-bottom: 0; }
.employee-actions .secondary-button { width: 100%; }
.reset-form { display: grid; grid-template-columns: 1fr auto; gap: 7px; }
.reset-form input { height: 38px; font-size: 13px; }

.site-footer { display: flex; padding: 18px 0 30px; justify-content: space-between; gap: 20px; color: var(--muted); border-top: 1px solid var(--line); font-size: 13px; }
.site-footer a { color: var(--blue); font-weight: 700; }

.auth-page { display: grid; min-height: 100vh; padding: 28px; place-items: center; background: var(--page); }
.auth-card { width: min(100%, 430px); padding: 34px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.auth-card > img { display: block; width: 205px; height: 76px; margin-bottom: 25px; object-fit: contain; object-position: left center; }
.auth-heading { margin-bottom: 22px; }
.auth-heading h1 { margin: 0 0 7px; color: var(--navy); font-size: 27px; }
.auth-heading p, .auth-note { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.form-stack { display: grid; gap: 16px; }
.auth-note { margin-top: 19px; padding-top: 17px; border-top: 1px solid var(--line); }
.install-card { width: min(100%, 500px); }

@media (max-width: 1180px) {
  .main-nav a { padding-inline: 9px; font-size: 13px; }
  .record-layout { grid-template-columns: 1fr; }
  .documents-side { width: 100%; }
}

@media (max-width: 940px) {
  .shell { width: min(100% - 32px, 1440px); }
  .main-nav { display: none; }
  .topbar-inner { justify-content: space-between; }
  .menu-button { display: inline-flex; }
  .overview-layout { grid-template-columns: 1fr; }
  .requirement-help { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .requirement-fields, .shipment-requirement-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shipment-requirement-fields .waiver-field { grid-column: 1 / -1; }
  .summary-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .summary-strip > a:nth-child(2) { border-right: 0; }
  .summary-strip > a:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .admin-layout { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .shell { width: min(100% - 24px, 1440px); }
  .topbar, .topbar-inner { min-height: 66px; height: 66px; }
  .brand img { width: 136px; height: 41px; }
  .brand span, .topbar .avatar { display: none; }
  .main-content { padding-top: 26px; }
  .page-heading { min-height: auto; margin-bottom: 19px; }
  .page-heading p { font-size: 14px; }
  .record-heading { align-items: stretch; flex-direction: column; }
  .heading-actions { justify-content: flex-start; }
  .heading-actions > a { flex: 1 1 150px; }
  .page-heading > .primary-button { width: 40px; padding: 0; overflow: hidden; font-size: 0; }
  .page-heading > .primary-button::first-letter { font-size: 20px; }
  .summary-strip > a { min-height: 88px; padding: 15px; gap: 10px; }
  .summary-strip > a > strong { min-width: 34px; font-size: 25px; }
  .summary-strip i { display: none; }
  .stats-bar { grid-template-columns: 1fr; }
  .stats-bar > div { min-height: 76px; border-right: 0; border-bottom: 1px solid var(--line); }
  .stats-bar > div:last-child { border-bottom: 0; }
  .panel-header { min-height: 72px; padding: 16px; }
  .task-row { padding: 15px 16px; grid-template-columns: 8px minmax(0, 1fr) auto; gap: 12px; }
  .task-row time { display: none; }
  .shipment-brief-list { padding-inline: 16px; }
  .shipment-brief-list > a { grid-template-columns: auto minmax(0, 1fr); }
  .shipment-brief-state { grid-column: 2; justify-items: start; }
  .form-panel { padding: 17px; }
  .form-grid, .record-choice-grid, .requirements-editor fieldset, .detail-grid, .requirement-row, .requirement-fields, .shipment-requirement-fields { grid-template-columns: 1fr; }
  .requirements-editor .wide-field { grid-column: auto; }
  .requirement-title, .waiver-field, .requirement-actions, .awb-required-fields .wide-field { grid-column: 1; }
  .requirement-title { align-items: flex-start; flex-direction: column; }
  .requirement-help { grid-template-columns: 1fr; }
  .requirement-actions { align-items: stretch; flex-direction: column-reverse; }
  .requirement-actions .primary-button, .requirement-actions .secondary-button { width: 100%; }
  .awb-requirement-heading { flex-direction: column; }
  .edit-preservation-note { flex-direction: column; }
  .status-form { align-items: stretch; flex-direction: column; }
  .status-form label { min-width: 0; }
  .employee-list > article { grid-template-columns: auto 1fr auto; }
  .employee-list > article > .two-lines:nth-of-type(2), .employee-list > article > .status { display: none; }
  .site-footer { flex-direction: column; }
}

@media (max-width: 450px) {
  .summary-strip { grid-template-columns: 1fr; }
  .summary-strip > a { border-right: 0; border-bottom: 1px solid var(--line); }
  .summary-strip > a:last-child { border-bottom: 0; }
  .auth-page { padding: 14px; }
  .auth-card { padding: 24px; }
}
