:root {
  --ink: #152738;
  --muted: #657889;
  --line: #dfe8ed;
  --canvas: #f4f7f9;
  --surface: #ffffff;
  --navy: #0b1b2a;
  --navy-2: #16344a;
  --teal: #178f7f;
  --teal-dark: #0e7568;
  --teal-soft: #e2f5f0;
  --amber: #b66d17;
  --amber-soft: #fff1d8;
  --coral: #c95443;
  --coral-soft: #ffebe7;
  --blue: #2f73ae;
  --blue-soft: #e8f2fb;
  --shadow: 0 20px 50px rgba(16, 39, 56, .10);
  --radius-lg: 18px;
  --radius-md: 12px;
  --max-width: 1500px;
  --visual-height: 100dvh;
  color: var(--ink);
  background: var(--canvas);
  font-family: "Segoe UI", Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; background: var(--canvas); overflow-x: hidden; }
body { margin: 0; min-width: 320px; min-height: 100%; background: var(--canvas); overflow-x: hidden; font-size: 16px; line-height: 1.5; }
body.modal-open { position: fixed; inset: 0; width: 100%; overflow: hidden; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .52; transform: none !important; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid rgba(23, 143, 127, .38);
  outline-offset: 3px;
}

.skip-link { position: fixed; top: max(8px, env(safe-area-inset-top)); left: max(8px, env(safe-area-inset-left)); z-index: 100; padding: 12px 16px; color: #fff; background: var(--navy); border-radius: 9px; transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.app-shell { display: flex; min-height: 100vh; min-height: 100dvh; }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  width: calc(256px + env(safe-area-inset-left));
  padding: calc(24px + env(safe-area-inset-top)) 16px calc(18px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  color: #dce8f1;
  background: var(--navy);
}
.brand-lockup { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 10px 26px; }
.brand-lockup strong, .brand-lockup span { display: block; }
.brand-lockup strong { color: #fff; font-size: 1rem; letter-spacing: -.02em; }
.brand-lockup > div > span { margin-top: 2px; color: #91a8b9; font-size: .8125rem; }
.brand-mark { display: flex; align-items: end; gap: 3px; width: 36px; height: 36px; padding: 8px; border-radius: 11px; background: #dff6ef; }
.brand-mark span { display: block; width: 5px; margin: 0; border-radius: 4px 4px 2px 2px; background: var(--teal); }
.brand-mark span:nth-child(1) { height: 11px; opacity: .65; }
.brand-mark span:nth-child(2) { height: 19px; }
.brand-mark span:nth-child(3) { height: 14px; opacity: .8; }
.sidebar-section-label { padding: 0 12px 10px; color: #7890a3; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.nav-list { display: flex; flex-direction: column; gap: 4px; }
.nav-item { position: relative; display: flex; align-items: center; gap: 11px; width: 100%; min-height: 46px; padding: 9px 12px; border: 0; border-radius: 10px; color: #a9bac8; background: transparent; font-size: .875rem; text-align: left; transition: color .16s ease, background-color .16s ease; }
.nav-item:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.nav-item.active { color: #fff; background: #17354a; box-shadow: inset 3px 0 0 #61c8b7; }
.nav-icon { display: inline-grid; place-items: center; width: 20px; height: 20px; color: currentColor; font-size: 1.05rem; }
.nav-badge { min-width: 23px; margin-left: auto; padding: 2px 7px; border-radius: 20px; color: #fff; background: var(--coral); font-size: .75rem; text-align: center; }
.sidebar-footer { margin-top: auto; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .09); }
.sidebar-scrim { display: none; }

.main-content { width: calc(100% - 256px); min-width: 0; min-height: 100vh; margin-left: 256px; }
.topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: calc(68px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) max(24px, env(safe-area-inset-right)) 0 clamp(24px, 4vw, 58px); border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .9); backdrop-filter: blur(14px); }
.breadcrumb { display: flex; align-items: center; gap: 9px; min-width: 0; color: #8697a5; font-size: .875rem; }
.breadcrumb strong { overflow: hidden; color: var(--ink); text-overflow: ellipsis; white-space: nowrap; }
.topbar-actions { display: flex; align-items: center; gap: 12px; min-width: 0; }
.today-label { color: #758796; font-size: .8125rem; white-space: nowrap; }
.icon-button { display: none; place-items: center; min-width: 44px; min-height: 44px; padding: 0; border: 0; border-radius: 50%; color: var(--ink); background: transparent; font-size: 1.25rem; }
.icon-button:hover { background: #edf3f5; }
.sync-button { display: inline-flex; align-items: center; justify-content: flex-start; gap: 9px; min-height: 44px; padding: 8px 11px; border: 1px solid transparent; border-radius: 10px; color: var(--muted); background: transparent; font-size: .8125rem; text-align: left; }
.sidebar .sync-button { width: 100%; color: #a6b9c7; }
.topbar .sync-button { border-color: var(--line); background: #fff; }
.status-dot { flex: 0 0 auto; width: 9px; height: 9px; border-radius: 50%; background: #8da0ae; box-shadow: 0 0 0 4px rgba(141, 160, 174, .14); }
.sync-saving .status-dot, .sync-pending .status-dot { background: var(--blue); box-shadow: 0 0 0 4px rgba(47, 115, 174, .13); }
.sync-synced .status-dot { background: var(--teal); box-shadow: 0 0 0 4px rgba(23, 143, 127, .13); }
.sync-error .status-dot, .sync-conflict .status-dot { background: var(--coral); box-shadow: 0 0 0 4px rgba(201, 84, 67, .14); }
.sync-offline .status-dot { background: var(--amber); box-shadow: 0 0 0 4px rgba(182, 109, 23, .14); }
.settings-button { min-height: 44px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: #fff; font-size: .8125rem; font-weight: 750; white-space: nowrap; }
.settings-button:hover, .settings-button.settings-configured { border-color: #9fcfc5; color: var(--teal-dark); background: var(--teal-soft); }
.page-content { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: clamp(26px, 4vw, 52px) max(clamp(24px, 4vw, 58px), env(safe-area-inset-right)) calc(64px + env(safe-area-inset-bottom)) max(clamp(24px, 4vw, 58px), env(safe-area-inset-left)); outline: none; }

.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.eyebrow { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; color: var(--teal-dark); font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow::before { width: 18px; height: 2px; border-radius: 2px; background: currentColor; content: ""; }
.page-heading h1 { margin: 0; font-size: clamp(1.75rem, 3vw, 2.3rem); font-weight: 760; line-height: 1.08; letter-spacing: -.04em; }
.page-heading p { max-width: 640px; margin: 10px 0 0; color: var(--muted); font-size: .9375rem; line-height: 1.55; }
.action-row { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid transparent; border-radius: 9px; font-size: .875rem; font-weight: 750; line-height: 1.2; transition: transform .16s ease, background-color .16s ease, border-color .16s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { color: #fff; background: var(--teal); box-shadow: 0 8px 18px rgba(23, 143, 127, .2); }
.btn-primary:hover { background: var(--teal-dark); }
.btn-secondary { border-color: #d2dfe5; color: var(--ink); background: #fff; }
.btn-secondary:hover { border-color: #aac0ca; background: #fbfdfd; }
.btn-quiet { color: #225f92; background: var(--blue-soft); }
.btn-small { min-height: 44px; padding: 0 13px; font-size: .8125rem; }
.card-link { min-height: 44px; padding: 8px; border: 0; color: var(--teal-dark); background: none; font-size: .8125rem; font-weight: 750; }

.dashboard-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.metric-card { position: relative; min-width: 0; min-height: 154px; padding: 19px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); box-shadow: 0 8px 24px rgba(26, 50, 66, .03); }
.metric-card::after { position: absolute; right: -25px; bottom: -30px; width: 78px; height: 78px; border: 12px solid rgba(23, 143, 127, .07); border-radius: 50%; content: ""; }
.metric-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.metric-label { color: #617687; font-size: .875rem; font-weight: 700; }
.metric-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; color: var(--teal); background: var(--teal-soft); }
.metric-number { margin-top: 18px; font-size: 2rem; font-weight: 760; line-height: 1; letter-spacing: -.05em; }
.metric-meta { margin-top: 12px; color: #738696; font-size: .8125rem; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr); gap: 20px; align-items: start; }
.card { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: 0 8px 26px rgba(28, 49, 66, .03); }
.card-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 68px; padding: 16px 20px 13px; }
.card-title { margin: 0; font-size: 1rem; font-weight: 780; letter-spacing: -.02em; }
.card-subtitle { margin: 4px 0 0; color: #718392; font-size: .8125rem; }
.list-card { overflow: hidden; }
.table-wrap { max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; }
.data-table { width: 100%; min-width: 700px; border-collapse: collapse; font-size: .875rem; }
.data-table th { padding: 10px 20px; color: #718392; font-size: .75rem; font-weight: 750; letter-spacing: .05em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.data-table td { padding: 14px 20px; border-top: 1px solid #edf2f4; color: #304556; vertical-align: middle; }
.data-table tbody tr:hover td { background: #fbfcfd; }
.cell-subtitle { display: block; margin-top: 3px; color: var(--muted); font-size: .8125rem; }
.plate { color: var(--ink) !important; font-weight: 750; letter-spacing: .035em; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 5px 9px; border-radius: 20px; font-size: .75rem; font-weight: 750; white-space: nowrap; }
.status-pill::before { width: 6px; height: 6px; border-radius: 50%; background: currentColor; content: ""; }
.status-pill.open { color: #935916; background: var(--amber-soft); }
.status-pill.returned { color: #225f92; background: var(--blue-soft); }
.status-pill.closed { color: #0d7165; background: var(--teal-soft); }
.status-pill.diff { color: #a34134; background: var(--coral-soft); }
.record-kind { display: inline-flex; margin-bottom: 4px; padding: 3px 7px; border-radius: 5px; color: #536b7c; background: #edf3f5; font-size: .75rem; font-weight: 750; }
.side-stack { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.notice-card { min-width: 0; padding: 21px; border: 1px solid #cce8e1; border-radius: var(--radius-lg); background: #edf8f5; }
.notice-card h2 { margin: 0; font-size: 1.1rem; letter-spacing: -.025em; }
.notice-card p { margin: 9px 0 16px; color: #51746e; font-size: .875rem; line-height: 1.55; }
.notice-stat { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 15px; padding-top: 14px; border-top: 1px solid #cce8e1; color: #3f6c65; font-size: .875rem; }
.notice-stat strong { color: var(--teal-dark); font-size: 1.2rem; }
.activity-list { padding: 0 20px 15px; }
.activity-item { display: grid; grid-template-columns: 11px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 14px 0; border-top: 1px solid #edf2f4; }
.activity-rail { width: 9px; height: 9px; margin-top: 6px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px var(--teal-soft); }
.activity-rail.blue { background: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
.activity-rail.amber { background: var(--amber); box-shadow: 0 0 0 4px var(--amber-soft); }
.activity-rail.coral { background: var(--coral); box-shadow: 0 0 0 4px var(--coral-soft); }
.activity-copy strong { display: block; font-size: .875rem; }
.activity-copy span { display: block; margin-top: 3px; color: var(--muted); font-size: .8125rem; overflow-wrap: anywhere; }
.activity-time { color: #758796; font-size: .75rem; white-space: nowrap; }

.form-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(290px, .75fr); gap: 20px; align-items: start; }
.form-card { padding: 24px; }
.form-card h2, .info-card h2 { margin: 0; font-size: 1.1rem; letter-spacing: -.02em; }
.section-note { margin: 7px 0 23px; color: var(--muted); font-size: .875rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 15px; }
.field { display: flex; min-width: 0; margin: 0; padding: 0; border: 0; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label, .field legend { color: #536b7c; font-size: .875rem; font-weight: 760; }
.field legend { margin-bottom: 8px; }
.field input, .field select, .field textarea, .search-input { width: 100%; min-height: 48px; padding: 0 13px; border: 1px solid #cfdee5; border-radius: 9px; color: var(--ink); background: #fff; font-size: 1rem; transition: border-color .14s ease, box-shadow .14s ease; }
.field textarea { min-height: 94px; padding-top: 12px; padding-bottom: 12px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder, .search-input::placeholder { color: #8798a5; opacity: 1; }
.field input:focus, .field select:focus, .field textarea:focus, .search-input:focus { border-color: #4eae9f; outline: 0; box-shadow: 0 0 0 3px rgba(23, 143, 127, .12); }
.login-password-row { display: flex; gap: 8px; min-width: 0; }
.login-password-row input { min-width: 0; flex: 1 1 auto; }
.login-password-row button { min-height: 48px; flex: 0 0 auto; }
.field-help { margin: -4px 0 7px; color: var(--muted); font-size: .8125rem; }
.qty-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.qty-field { min-width: 0; padding: 12px; border: 1px solid #e1e9ed; border-radius: 10px; background: #f7fafb; }
.qty-field label { display: block; margin-bottom: 8px; }
.qty-field input { min-height: 48px; font-weight: 750; }
.shipment-allocation-fieldset .field-help { margin: 0 0 12px; }
.shipment-allocation-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.shipment-allocation-field select { width: 100%; min-width: 0; min-height: 44px; padding: 0 9px; border: 1px solid #cfdee5; border-radius: 8px; color: var(--ink); background: #fff; font-size: .875rem; }
.shipment-allocation-field select:focus { border-color: #4eae9f; outline: 0; box-shadow: 0 0 0 3px rgba(23, 143, 127, .12); }
.shipment-allocation-field .allocation-source-label { margin: 9px 0 6px; font-size: .75rem; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; padding-top: 18px; border-top: 1px solid #e9eff2; }
.muted { color: var(--muted); font-weight: 400; }
.helper-text { color: var(--muted); font-size: .8125rem; line-height: 1.55; }
.info-card { padding: 20px; }
.info-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 46px; padding: 10px 0; border-top: 1px solid #e9eff2; font-size: .875rem; }
.info-row:first-of-type { margin-top: 10px; }
.info-row span { color: var(--muted); }
.info-row strong { color: var(--ink); text-align: right; overflow-wrap: anywhere; }
.warning-row strong { color: var(--amber); }
.info-list { display: flex; flex-direction: column; }
.record-note-block { margin-top: 14px; padding: 14px; border-radius: 10px; background: #f6f9fa; }
.record-note-block > span { color: var(--muted); font-size: .8125rem; font-weight: 700; }
.record-note-block p { margin: 6px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 13px; margin-bottom: 15px; flex-wrap: wrap; }
.search-wrap { position: relative; flex: 1; width: 100%; min-width: 260px; max-width: 540px; }
.search-wrap > span { position: absolute; top: 12px; left: 13px; color: #758796; font-size: 1.1rem; }
.search-input { padding-left: 39px; }
.filter-row { display: flex; gap: 7px; flex-wrap: wrap; }
.filter-chip { min-height: 44px; padding: 0 13px; border: 1px solid #d1dfe5; border-radius: 8px; color: #566d7e; background: #fff; font-size: .8125rem; font-weight: 700; white-space: nowrap; }
.filter-chip.active { border-color: var(--navy); color: #fff; background: var(--navy); }
.filter-chip span { opacity: .76; }
.related-card { margin-top: 20px; }
.empty-state { padding: 44px 20px; color: var(--muted); font-size: .875rem; text-align: center; }
.empty-state strong, .empty-state span { display: block; }
.empty-state strong { margin-bottom: 6px; color: var(--ink); font-size: 1rem; }

.stock-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.stock-card { padding: 20px; }
.stock-card h2 { margin: 0; color: #536b7c; font-size: .9375rem; }
.stock-number { margin-top: 12px; font-size: 2rem; font-weight: 760; line-height: 1; letter-spacing: -.05em; }
.stock-card p { min-height: 42px; margin: 9px 0 0; color: var(--muted); font-size: .8125rem; }
.stock-bar { height: 8px; margin-top: 17px; overflow: hidden; border-radius: 5px; background: #e8eef1; }
.stock-bar span { display: block; height: 100%; border-radius: inherit; background: var(--teal); }
.stock-card:nth-child(2) .stock-bar span { background: var(--blue); }
.stock-card:nth-child(3) .stock-bar span { background: var(--amber); }
.stock-content { margin-top: 20px; }

.plate-grid { display: grid; grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); gap: 20px; align-items: start; }
.plate-search-card { padding: 22px; }
.plate-search-card h2 { margin: 0; font-size: 1.1rem; }
.plate-search-card > p { margin: 7px 0 0; color: var(--muted); font-size: .875rem; }
.plate-input { max-width: none; margin-top: 15px; }
.quick-picks { display: flex; gap: 8px; margin-top: 13px; flex-wrap: wrap; }
.quick-pick { min-height: 44px; padding: 8px 12px; border: 1px solid #cfdfdf; border-radius: 22px; color: #246f65; background: #f5faf9; font-size: .8125rem; font-weight: 700; }
.quick-pick:hover, .quick-pick.active { border-color: #65bdae; background: var(--teal-soft); }
.recent-choices { margin-top: 10px; }
.recent-choices > span { display: block; color: var(--muted); font-size: .75rem; font-weight: 700; }
.recent-choices .quick-picks { margin-top: 7px; }
.recent-choices .quick-pick { max-width: 100%; overflow-wrap: anywhere; }
.plate-result { margin-top: 20px; padding-top: 17px; border-top: 1px solid #e8eef1; }
.plate-result-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plate-result-head strong { font-size: 1.25rem; letter-spacing: .04em; }
.plate-result-head span { color: var(--muted); font-size: .8125rem; }
.timeline { padding: 4px 20px 20px; }
.timeline-item { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; gap: 13px; padding: 18px 0; border-bottom: 1px solid #e9eff2; }
.timeline-marker { position: relative; width: 12px; height: 12px; margin-top: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px var(--teal-soft); }
.timeline-marker.return { background: var(--amber); box-shadow: 0 0 0 4px var(--amber-soft); }
.timeline-marker::after { position: absolute; top: 13px; left: 5px; width: 2px; height: 70px; background: #d9e8e5; content: ""; }
.timeline-item:last-child .timeline-marker::after { display: none; }
.timeline-copy strong { display: block; font-size: .9375rem; overflow-wrap: anywhere; }
.timeline-copy p { margin: 5px 0 0; color: var(--muted); font-size: .8125rem; overflow-wrap: anywhere; }
.timeline-meta { color: var(--muted); font-size: .75rem; text-align: right; white-space: nowrap; }
.timeline-meta strong, .timeline-meta time { display: block; }
.timeline-meta strong { color: var(--ink); font-size: .875rem; }
.timeline-meta .card-link { margin-top: 4px; }

.mobile-nav { display: none; }
.modal-backdrop { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); background: rgba(6, 20, 31, .55); backdrop-filter: blur(4px); }
.modal { display: grid; grid-template-rows: auto minmax(0, 1fr); width: min(100%, 600px); max-height: min(calc(var(--visual-height) - 32px), 780px); overflow: hidden; border-radius: 18px; background: #fff; box-shadow: 0 26px 90px rgba(5, 18, 28, .3); }
.modal-wide { width: min(100%, 780px); }
.modal.source-reports-modal { width: min(100%, 1360px); max-height: min(calc(var(--visual-height) - 32px), 900px); }
.source-reports-modal .summary-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.source-period-picker { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(150px, 1fr) auto; align-items: end; gap: 12px; padding: 14px; border: 1px solid #e1e9ed; border-radius: 10px; background: #f7fafb; }
.source-period-picker .field { margin: 0; }
.source-report-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 18px; padding-top: 16px; border-top: 1px solid #e9eff2; }
.source-report-tabs .btn { flex: 0 1 auto; }
.source-reports-modal textarea { width: 100%; }
.source-review-heading { display: flex; justify-content: space-between; align-items: start; flex-wrap: wrap; gap: 12px; }
.source-review-card { padding: 16px; margin-block: 16px; }
.source-review-original, .source-review-history { margin-block: 18px; }
.source-reports-modal pre { max-height: 360px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; padding: 12px; background: #f4f7f8; border-radius: 8px; }
@media (max-width: 700px) {
  .source-reports-modal .summary-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .source-period-picker { grid-template-columns: 1fr 1fr; }
  .source-period-picker > button { grid-column: 1 / -1; }
  .source-report-tabs .btn { flex: 1 1 140px; }
}
.modal-header { position: sticky; top: 0; z-index: 2; display: flex; align-items: start; justify-content: space-between; gap: 15px; padding: 19px 22px 15px; border-bottom: 1px solid #e8eef1; background: #fff; }
.modal-header h2 { margin: 0; font-size: 1.15rem; letter-spacing: -.02em; overflow-wrap: anywhere; }
.modal-header p { margin: 5px 0 0; color: var(--muted); font-size: .8125rem; overflow-wrap: anywhere; }
.modal-close { flex: 0 0 auto; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; color: #536b7c; background: #edf3f5; font-size: 1.4rem; }
.modal-body { min-height: 0; padding: 20px 22px 22px; overflow: auto; overscroll-behavior: contain; }
.modal-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.modal-actions .helper-text { margin-right: auto; }
.sticky-actions { position: sticky; bottom: -22px; z-index: 2; margin-right: -22px; margin-left: -22px; padding: 15px 22px calc(15px + env(safe-area-inset-bottom)); border-top: 1px solid #e6edf1; background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); }
.compare-banner { display: flex; align-items: center; gap: 11px; margin-bottom: 18px; padding: 13px; border-radius: 10px; color: #983d31; background: var(--coral-soft); font-size: .875rem; line-height: 1.45; }
.compare-banner > span { display: grid; place-items: center; flex: 0 0 auto; width: 25px; height: 25px; border-radius: 50%; background: #ffd8d1; font-weight: 800; }
.recovery-banner { display: flex; align-items: center; gap: 11px; margin-bottom: 18px; padding: 11px 13px; border: 1px solid #dceaf1; border-radius: 10px; color: #35556a; background: #f0f6fa; font-size: .8125rem; line-height: 1.4; }
.recovery-banner > span { display: grid; place-items: center; flex: 0 0 auto; width: 23px; height: 23px; border-radius: 50%; color: var(--blue); background: #fff; font-weight: 800; }
.recovery-banner > div { min-width: 0; flex: 1 1 auto; }
.recovery-banner strong { color: #24465d; }
.recovery-banner-error { border-color: #f1c9c3; color: #874338; background: #fff5f3; }
.recovery-banner-error > span { color: #9b493d; background: #ffe4df; }
.recovery-banner-disclosure { display: block; padding: 0; overflow: hidden; }
.recovery-banner-disclosure > summary { display: flex; align-items: center; gap: 11px; padding: 11px 13px; cursor: pointer; list-style: none; }
.recovery-banner-disclosure > summary::-webkit-details-marker { display: none; }
.recovery-summary-icon { display: grid; place-items: center; flex: 0 0 auto; width: 23px; height: 23px; border-radius: 50%; color: var(--blue); background: #fff; font-weight: 800; }
.recovery-summary-copy { display: grid; min-width: 0; flex: 1 1 auto; gap: 2px; }
.recovery-summary-copy small { color: var(--muted); font-size: .75rem; }
.recovery-summary-action { flex: 0 0 auto; padding: 6px 10px; border: 1px solid #d5e3e9; border-radius: 8px; color: #315a70; background: #fff; font-size: .75rem; font-weight: 800; }
.recovery-hide-label, .recovery-banner-disclosure[open] .recovery-show-label { display: none; }
.recovery-banner-disclosure[open] .recovery-hide-label { display: inline; }
.recovery-banner-disclosure[open] > summary { border-bottom: 1px solid #dceaf1; }
.recovery-draft-list { padding: 0 13px 10px; }
.recovery-draft-list .field-help { margin: 10px 0 4px; }
.recovery-draft-list .info-row:first-of-type { margin-top: 0; }
.summary-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.summary-strip > div { min-width: 0; padding: 13px; border: 1px solid #e1e9ed; border-radius: 10px; background: #f7fafb; }
.summary-strip span, .summary-strip strong { display: block; }
.summary-strip > div > span { color: var(--muted); font-size: .75rem; }
.summary-strip strong { margin-top: 5px; font-size: 1rem; overflow-wrap: anywhere; }
.compare-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.compare-table th, .compare-table td { padding: 11px 8px; border-bottom: 1px solid #e8eef1; text-align: right; }
.compare-table th:first-child, .compare-table td:first-child { text-align: left; }
.compare-table th { color: var(--muted); font-size: .75rem; }
.difference { color: var(--coral); font-weight: 800; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 13px; margin: 21px 0 10px; }
.section-heading h3 { margin: 0; font-size: 1rem; }
.section-heading p { margin: 4px 0 0; color: var(--muted); font-size: .8125rem; }
.return-list { display: flex; flex-direction: column; gap: 9px; }
.return-record { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px; border: 1px solid #e1e9ed; border-radius: 11px; background: #fafcfd; }
.return-record strong { display: block; font-size: .9375rem; }
.return-record p { margin: 4px 0 0; color: var(--muted); font-size: .8125rem; overflow-wrap: anywhere; }
.return-record .record-note { color: #40586a; white-space: pre-wrap; }
.return-record-action { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.immutable-banner { margin-bottom: 13px; padding: 12px 14px; border: 1px solid #cfe2ea; border-radius: 9px; color: #315a70; background: #eef6fa; font-size: .875rem; font-weight: 700; }
.toast-region { position: fixed; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); z-index: 80; display: flex; align-items: flex-end; flex-direction: column; gap: 9px; pointer-events: none; }
.toast { width: min(390px, calc(100vw - 32px)); padding: 14px 16px; border-left: 4px solid var(--blue); border-radius: 10px; color: #fff; background: var(--navy); box-shadow: var(--shadow); font-size: .875rem; animation: toast-in .2s ease; }
.toast.success { border-left-color: #58c5b2; }
.toast.error { border-left-color: #f08372; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

@media (max-width: 1080px) {
  .dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .content-grid, .form-layout, .plate-grid { grid-template-columns: 1fr; }
  .side-stack { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .recovery-banner-disclosure > summary { gap: 9px; padding: 10px; }
  .recovery-summary-action { padding: 6px 8px; }
  .recovery-draft-list .info-row { align-items: flex-start; flex-direction: column; }
  .recovery-draft-list .info-row .action-row { justify-content: flex-start; width: 100%; }
  .sidebar { width: min(286px, calc(100vw - 38px)); transform: translateX(-105%); transition: transform .2s ease; box-shadow: 20px 0 50px rgba(5, 18, 28, .22); }
  .sidebar.open { transform: none; }
  .sidebar-scrim { position: fixed; inset: 0; z-index: 19; display: block; width: 100%; height: 100%; padding: 0; border: 0; visibility: hidden; opacity: 0; background: rgba(5, 18, 28, .35); transition: opacity .2s ease, visibility .2s; }
  body.nav-open { overflow: hidden; }
  body.nav-open .sidebar-scrim { visibility: visible; opacity: 1; }
  .main-content { width: 100%; margin-left: 0; padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .topbar { min-height: calc(62px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) max(12px, env(safe-area-inset-right)) 0 max(12px, env(safe-area-inset-left)); }
  .icon-button { display: grid; }
  .breadcrumb { margin-right: auto; font-size: .8125rem; }
  .breadcrumb > span:first-child, .breadcrumb > span:nth-child(2) { display: none; }
  .today-label { display: none; }
  .topbar-actions { gap: 8px; }
  .topbar .sync-button { flex: 0 1 140px; min-width: 0; max-width: 140px; padding: 6px 9px; }
  .topbar .sync-copy { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .page-content { padding: 26px max(15px, env(safe-area-inset-right)) calc(34px + env(safe-area-inset-bottom)) max(15px, env(safe-area-inset-left)); }
  .page-heading { display: block; margin-bottom: 22px; }
  .page-heading h1 { font-size: 1.8rem; }
  .page-heading p { font-size: .875rem; }
  .page-heading .action-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 18px; }
  .page-heading .action-row .btn { width: 100%; padding-inline: 9px; }
  .dashboard-grid { gap: 10px; margin-bottom: 14px; }
  .metric-card { min-height: 138px; padding: 15px; }
  .metric-number { font-size: 1.65rem; }
  .metric-label { font-size: .8125rem; }
  .metric-meta { font-size: .75rem; }
  .card-header { padding-inline: 15px; }
  .activity-list { padding-inline: 15px; }
  .side-stack { display: flex; }
  .form-card { padding: 17px; }
  .form-grid { grid-template-columns: 1fr; gap: 15px; }
  .field.full { grid-column: auto; }
  .qty-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
  .shipment-allocation-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .qty-field { padding: 9px; }
  .qty-field input { padding-inline: 7px; }
  .form-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toolbar { display: block; }
  .search-wrap { min-width: 0; max-width: none; }
  .filter-row { margin-top: 10px; padding-bottom: 3px; overflow-x: auto; flex-wrap: nowrap; }
  .stock-grid { grid-template-columns: 1fr; gap: 10px; }
  .stock-card p { min-height: 0; }
  .plate-search-card { padding: 17px; }
  .mobile-nav { position: fixed; inset: auto 0 0; z-index: 18; display: flex; justify-content: space-around; min-height: calc(68px + env(safe-area-inset-bottom)); padding: 4px max(2px, env(safe-area-inset-right)) calc(4px + env(safe-area-inset-bottom)) max(2px, env(safe-area-inset-left)); border-top: 1px solid #d7e2e7; background: rgba(255, 255, 255, .96); backdrop-filter: blur(14px); }
  .mobile-nav .nav-item { display: flex; flex: 1 1 0; min-width: 0; min-height: 56px; padding: 5px 1px; border-radius: 8px; color: #657988; flex-direction: column; justify-content: center; gap: 1px; font-size: .6875rem; font-weight: 750; line-height: 1.1; text-align: center; }
  .mobile-nav .nav-item.active { color: var(--teal-dark); background: var(--teal-soft); box-shadow: none; }
  .mobile-nav .nav-icon { width: auto; height: 22px; font-size: 1rem; }
  .mobile-nav .nav-badge { position: absolute; top: 3px; left: 50%; min-width: 18px; margin: 0 0 0 8px; padding: 1px 4px; font-size: .625rem; }
  .toast-region { right: max(12px, env(safe-area-inset-right)); bottom: calc(78px + env(safe-area-inset-bottom)); left: max(12px, env(safe-area-inset-left)); align-items: stretch; }
  .toast { width: 100%; }
  .modal-backdrop { align-items: end; padding: env(safe-area-inset-top) 0 0; }
  .modal { width: 100%; max-height: calc(var(--visual-height) - env(safe-area-inset-top)); border-radius: 18px 18px 0 0; }
  .modal-wide { width: 100%; }
  .modal-header, .modal-body { padding-right: max(17px, env(safe-area-inset-right)); padding-left: max(17px, env(safe-area-inset-left)); }
  .sticky-actions { bottom: -22px; margin-right: max(-17px, calc(env(safe-area-inset-right) * -1)); margin-left: max(-17px, calc(env(safe-area-inset-left) * -1)); padding-right: max(17px, env(safe-area-inset-right)); padding-left: max(17px, env(safe-area-inset-left)); }
  .summary-strip { grid-template-columns: 1fr; }
  .section-heading { align-items: flex-start; }
  .return-record { align-items: flex-start; flex-direction: column; }
  .return-record-action { width: 100%; justify-content: space-between; }
  .modal-actions { align-items: stretch; flex-direction: column; }
  .modal-actions .helper-text { margin-right: 0; }

  .table-wrap { overflow: visible; }
  .mobile-cards { display: block; min-width: 0; }
  .mobile-cards thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .mobile-cards tbody, .mobile-cards tr, .mobile-cards td { display: block; width: 100%; }
  .mobile-cards tbody { padding: 10px; }
  .mobile-cards tr { margin-bottom: 10px; padding: 9px 12px; border: 1px solid #dfe8ed; border-radius: 11px; background: #fff; }
  .mobile-cards tr:last-child { margin-bottom: 0; }
  .mobile-cards td { display: grid; grid-template-columns: minmax(92px, 38%) minmax(0, 1fr); align-items: center; gap: 10px; padding: 8px 0; border: 0; border-bottom: 1px solid #edf2f4; text-align: right; overflow-wrap: anywhere; }
  .mobile-cards td:last-child { border-bottom: 0; }
  .mobile-cards td::before { color: var(--muted); font-size: .75rem; font-weight: 750; text-align: left; content: attr(data-label); }
  .mobile-cards td[colspan] { display: block; padding: 0; }
  .mobile-cards td[colspan]::before { display: none; }
  .mobile-cards .cell-subtitle { text-align: right; }
  .mobile-cards td .btn { justify-self: end; }
}

@media (max-width: 430px) {
  .page-heading .action-row { grid-template-columns: 1fr; }
  .timeline { padding-inline: 15px; }
  .timeline-item { grid-template-columns: 14px minmax(0, 1fr); }
  .timeline-meta { grid-column: 2; display: flex; align-items: center; justify-content: space-between; gap: 8px; text-align: left; white-space: normal; flex-wrap: wrap; }
  .timeline-marker::after { height: 95px; }
}

@media (max-width: 360px) {
  .page-content { padding-right: max(12px, env(safe-area-inset-right)); padding-left: max(12px, env(safe-area-inset-left)); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .metric-card { min-height: 125px; }
  .qty-grid { grid-template-columns: 1fr; }
  .shipment-allocation-grid { grid-template-columns: 1fr; }
  .form-actions { grid-template-columns: 1fr; }
  .topbar-actions { gap: 6px; }
  .topbar .settings-button { flex: 0 1 66px; min-width: 0; max-width: 66px; padding: 5px 4px; font-size: .6875rem; line-height: 1.15; white-space: normal; }
  .topbar .sync-button { flex: 1 1 110px; min-width: 0; max-width: 110px; padding-inline: 6px; }
  .topbar .sync-copy { min-width: 0; }
  .mobile-cards td { grid-template-columns: 84px minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

.status-pill.rejected { color: #7d2c5a; background: #f8e5f0; }
.btn-reject { border-color: #e1b1c8; color: #7d2c5a; background: #fff5fa; }
.btn-reject:hover { border-color: #c9789d; background: #f8e5f0; }
.depot-picker { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: start; }
.depot-picker select { width: 100%; min-height: 48px; padding: 0 13px; border: 1px solid #cfdee5; border-radius: 9px; color: var(--ink); background: #fff; font-size: 1rem; }
.depot-picker select:focus { border-color: #4eae9f; outline: 0; box-shadow: 0 0 0 3px rgba(23, 143, 127, .12); }
.row-actions, .section-actions { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.rejection-history-card { margin-top: 20px; border-color: #ead5e0; }
.rejection-history-card .card-header { background: #fffafd; }
.rejection-banner { display: flex; align-items: flex-start; flex-direction: column; gap: 4px; margin-bottom: 18px; padding: 14px; border: 1px solid #e6bfd3; border-radius: 10px; color: #7d2c5a; background: #fff2f8; font-size: .875rem; }
.rejection-banner strong { color: #662348; }
.rejection-form-note { margin-top: 16px; padding: 12px 14px; border-radius: 9px; color: #7d2c5a; background: #fff2f8; }
.report-launch-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.report-view-choice { display: flex; align-items: center; justify-content: space-between; gap: 15px; width: 100%; min-height: 94px; padding: 16px; border: 1px solid #dce7eb; border-radius: 12px; color: var(--ink); background: #fff; text-align: left; cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.report-view-choice:hover { border-color: #97bdb7; box-shadow: 0 7px 20px rgba(27, 65, 75, .08); transform: translateY(-1px); }
.report-view-choice:focus-visible { outline: 3px solid rgba(23, 143, 127, .35); outline-offset: 2px; }
.report-view-copy { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.report-view-copy strong { font-size: .94rem; line-height: 1.3; }
.report-view-copy span { color: var(--muted); font-size: .78rem; line-height: 1.45; }
.report-view-count { display: grid; flex: 0 0 auto; place-items: center; min-width: 37px; min-height: 37px; padding: 0 8px; border-radius: 11px; color: var(--teal-dark); background: #e8f5f2; font-size: .82rem; font-weight: 800; }
.report-active-view { margin-top: 16px; }
.report-record-details summary { min-height: 44px; color: var(--teal-dark); font-weight: 750; cursor: pointer; }
.report-record-details ul { margin: 4px 0 10px; padding-left: 18px; color: var(--muted); font-size: .8rem; }
.report-record-details li + li { margin-top: 4px; }
.report-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(290px, .75fr); gap: 20px; align-items: start; }
.report-grid-wide { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); margin-top: 20px; }
.report-card, .report-grid .list-card { overflow: hidden; }
.report-table { min-width: 820px; }
.market-report-table { min-width: 1080px; }
.report-balance-card { margin-top: 20px; overflow: hidden; }
.report-balance-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 20px; border-bottom: 1px solid #e7eef1; }
.report-tabs { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.report-tab { min-height: 44px; padding: 0 14px; border: 1px solid #d2dfe5; border-radius: 9px; color: var(--ink); background: #fff; font-size: .8125rem; font-weight: 750; }
.report-tab:hover { border-color: #aac0ca; background: #fbfdfd; }
.report-tab.active { border-color: var(--navy); color: #fff; background: var(--navy); }
.report-balance-panel { padding: 0; }
.report-balance-empty { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 5px; min-height: 132px; padding: 24px 20px; color: var(--muted); text-align: center; }
.report-balance-empty strong { color: var(--ink); font-size: .95rem; }
.report-balance-empty span { font-size: .8125rem; }
.report-footnote { padding: 13px 20px 17px; color: var(--muted); font-size: .8125rem; line-height: 1.5; }
.report-notice { min-height: 100%; }
.open-invoices-card { margin-top: 20px; overflow: hidden; }
.selection-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.selection-count { color: var(--muted); font-size: .8125rem; font-weight: 750; white-space: nowrap; }
.select-all-control { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; color: #536b7c; font-size: .8125rem; font-weight: 750; cursor: pointer; }
.row-checkbox { width: 20px; height: 20px; margin: 0; accent-color: var(--teal); vertical-align: middle; }
.checkbox-label { display: block; cursor: pointer; }
.contact-cell { display: flex; align-items: flex-end; flex-direction: column; gap: 5px; min-width: 170px; }
.contact-missing { color: var(--amber); font-weight: 750; }
.contact-ready { color: #2e7469; overflow-wrap: anywhere; }
.contact-source { color: var(--muted); font-size: .72rem; }
.report-source { margin: -12px 0 20px; padding: 10px 13px; border: 1px solid #cde5df; border-radius: 9px; color: #276f64; background: #effaf7; font-size: .8125rem; }
.report-source-warning { border-color: #ecd5a9; color: #8b5a17; background: #fff8e9; }
.communication-list { display: flex; flex-direction: column; gap: 11px; }
.communication-card { padding: 15px; border: 1px solid #e1e9ed; border-radius: 11px; background: #fafcfd; }
.communication-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.communication-card h3 { margin: 0; font-size: .98rem; }
.communication-card-head p { margin: 3px 0 0; color: var(--muted); font-size: .8125rem; }
.contact-summary { max-width: 55%; color: var(--muted); font-size: .8125rem; text-align: right; overflow-wrap: anywhere; }
.communication-invoices { margin: 12px 0 0; padding: 10px 0 0 20px; border-top: 1px solid #e5edf0; color: #40586a; font-size: .8125rem; }
.communication-invoices li + li { margin-top: 4px; }
.communication-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 13px; flex-wrap: wrap; }
.preview-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 13px; padding: 12px 14px; border-radius: 9px; background: #f4f8f9; font-size: .875rem; }
.preview-meta span { color: var(--muted); }
.preview-meta strong { text-align: right; overflow-wrap: anywhere; }
.message-preview { min-height: 190px !important; padding: 12px 13px !important; color: #263f50 !important; background: #f8fbfc !important; font-size: .9rem !important; line-height: 1.55; white-space: pre-wrap; resize: vertical; }

@media (max-width: 1080px) {
  .report-grid, .report-grid-wide { grid-template-columns: 1fr; }
  .report-launch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .report-launch-grid { grid-template-columns: 1fr; gap: 9px; margin-top: 14px; }
  .report-view-choice { min-height: 78px; padding: 13px; }
  .selection-actions { justify-content: flex-start; width: 100%; margin-top: 7px; }
  .open-invoices-card .card-header { align-items: flex-start; flex-direction: column; }
  .communication-card-head { flex-direction: column; }
  .contact-summary { max-width: 100%; text-align: left; }
  .contact-cell { align-items: flex-end; min-width: 0; }
  .depot-picker { grid-template-columns: 1fr; }
  .depot-picker .btn { width: 100%; }
  .report-balance-header { align-items: flex-start; flex-direction: column; }
  .report-tabs { justify-content: flex-start; width: 100%; }
  .report-tab { flex: 1 1 180px; }
  .report-table, .market-report-table { min-width: 0; }
  .report-footnote { padding-inline: 15px; }
}

@media (max-width: 430px) {
  .row-actions, .section-actions, .communication-actions { width: 100%; }
  .row-actions .btn, .section-actions .btn, .communication-actions .btn { flex: 1 1 auto; }
  .selection-actions .btn { flex: 1 1 145px; }
  .preview-meta { align-items: flex-start; flex-direction: column; }
  .preview-meta strong { text-align: left; }
}
