:root {
  --green: #0a7a2d;
  --green-dark: #055320;
  --green-mid: #12973b;
  --green-soft: #eaf6ee;
  --blue-live: #1e75ff;
  --ink: #152016;
  --muted: #667469;
  --line: #d6e1d8;
  --surface: #ffffff;
  --page: #f4f7f5;
  --header-shadow: 0 6px 18px rgba(16, 35, 22, 0.08);
  --card-shadow: 0 14px 34px rgba(24, 38, 28, 0.08);
  --button-shadow: 0 10px 22px rgba(8, 115, 38, 0.24);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 15%, #f0f5f1 0%, transparent 35%),
    radial-gradient(circle at 85% 20%, #eef4f0 0%, transparent 35%),
    linear-gradient(180deg, #f8faf8 0%, #f2f6f3 100%);
  font-family: "Avenir Next", "Segoe UI", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

button,
input,
select {
  font: inherit;
}

.login-gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  gap: 24px;
  padding: 32px 20px;
  background:
    linear-gradient(140deg, rgba(8, 115, 38, 0.04), rgba(8, 115, 38, 0) 42%),
    radial-gradient(circle at 80% 10%, rgba(15, 118, 47, 0.08), transparent 32%),
    repeating-linear-gradient(45deg, rgba(10, 28, 15, 0.025), rgba(10, 28, 15, 0.025) 1px, transparent 1px, transparent 14px),
    #f5f8f6;
}

.login-panel {
  width: min(460px, 100%);
  padding: 34px 34px 30px;
  border: 1px solid #dde6df;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: var(--card-shadow);
}

.login-logo {
  display: block;
  width: min(320px, 100%);
  height: auto;
  margin: 0 auto 18px;
}

.login-subtitle {
  margin: 0 0 22px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}

.login-form {
  display: grid;
  gap: 14px;
}

.login-form label {
  display: grid;
  gap: 6px;
}

.login-form label span {
  font-size: 12px;
  font-weight: 700;
  color: #405247;
}

.login-form input {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #cdd8d0;
  border-radius: 12px;
  outline: none;
  background: #fbfdfb;
}

.login-form input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(10, 122, 45, 0.16);
  background: #ffffff;
}

.login-submit {
  margin-top: 8px;
  width: 100%;
  padding: 14px 18px;
  font-size: 15px;
}

.login-error {
  min-height: 18px;
  margin: 0;
  color: #b42f1f;
  font-size: 12px;
  font-weight: 650;
}

.password-input-wrap {
  position: relative;
}

.password-input-wrap input {
  padding-right: 46px;
}

.password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: #edf4ef;
  color: #496251;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}

.password-toggle:hover {
  background: #dcece1;
}

.forgot-password {
  margin: -4px 0 2px;
  color: #6f8075;
  font-size: 11px;
}

.password-policy {
  color: #67756b;
  font-size: 10px;
  font-weight: 600;
}

.password-strength {
  display: grid;
  gap: 5px;
  margin-top: 4px;
}

.password-strength > span {
  height: 6px;
  border-radius: 999px;
  background: #dfebe2;
  position: relative;
  overflow: hidden;
}

.password-strength > span::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 22%;
  border-radius: inherit;
  background: #d14a3a;
  transition: width 0.2s ease, background 0.2s ease;
}

.password-strength[data-strength="fair"] > span::after {
  width: 48%;
  background: #da8a26;
}

.password-strength[data-strength="good"] > span::after {
  width: 74%;
  background: #4fa44f;
}

.password-strength[data-strength="strong"] > span::after {
  width: 100%;
  background: #0b7f2f;
}

.password-strength small {
  color: #637267;
  font-size: 10px;
  font-weight: 650;
}

.password-change-form {
  margin-top: 6px;
}

.password-change-note {
  margin: 0 0 2px;
  padding: 10px 12px;
  border: 1px solid #cfe0d3;
  border-radius: 10px;
  color: #285235;
  background: var(--green-soft);
  font-size: 12px;
  font-weight: 650;
}

.password-updated-screen {
  display: grid;
  gap: 10px;
  text-align: center;
  padding: 8px 2px;
}

.password-updated-screen h3 {
  margin: 0;
  color: #1e6d34;
  font-size: 22px;
}

.password-updated-screen p {
  margin: 0;
  color: #627166;
  font-size: 14px;
}

.login-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  color: #76857a;
  font-size: 12px;
  letter-spacing: 0.02em;
}

.app-shell {
  min-height: 100vh;
}

.app-header {
  height: 102px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 34px;
  border-bottom: 1px solid #dce6df;
  background: #ffffff;
  box-shadow: var(--header-shadow);
}

.header-left,
.header-right {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-wordmark {
  display: grid;
  gap: 2px;
  min-width: 220px;
}

.brand-wordmark strong {
  font-size: 40px;
  line-height: 0.9;
  letter-spacing: -0.03em;
}

.brand-pack {
  color: #1d2a20;
}

.brand-flow {
  color: #1d9a41;
}

.brand-wordmark small {
  font-size: 11px;
  color: #647469;
  letter-spacing: 0.18em;
  font-weight: 800;
}

.top-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid #d9e4dc;
  border-radius: 999px;
  background: #f8fbf8;
}

.top-tab {
  border: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 17px;
  border-radius: 999px;
  color: #44614d;
  background: transparent;
  cursor: pointer;
  transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease;
  font-size: 13.5px;
  font-weight: 800;
}

.top-tab:hover {
  color: #1f5b33;
  background: var(--green-soft);
}

.top-tab .nav-icon {
  width: 16px;
  text-align: center;
  color: #7a8e81;
  font-size: 12px;
}

.top-tab.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, #0f8133 0%, #0b6c2b 100%);
  box-shadow: 0 8px 16px rgba(9, 106, 40, 0.24);
}

.top-tab.is-active .nav-icon {
  color: #ffffff;
}

.environment-pill {
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 11px;
  letter-spacing: 0.09em;
  font-weight: 800;
}

.environment-pill[data-env="sandbox"] {
  color: #1f6435;
  border-color: #b7dfc2;
  background: #ebf8ef;
}

.environment-pill[data-env="live"] {
  color: #1552bb;
  border-color: #b8cef7;
  background: #ebf2ff;
}

.status-pill {
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid #d5e2d8;
  color: #3f5447;
  background: #f9fcfa;
  font-size: 12px;
  font-weight: 650;
}

.user-menu {
  position: relative;
}

.user-menu-button {
  border: 1px solid #d5e2d8;
  border-radius: 11px;
  padding: 8px 11px;
  color: #253529;
  background: #ffffff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 700;
}

.user-menu-button:hover {
  background: #f7faf8;
}

.user-menu-button .caret {
  font-size: 10px;
  color: #617267;
}

.user-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 180px;
  padding: 8px;
  border: 1px solid #d6e2d9;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(17, 35, 22, 0.14);
  display: grid;
  gap: 4px;
  z-index: 20;
}

.user-dropdown button {
  border: 0;
  border-radius: 9px;
  padding: 9px 10px;
  text-align: left;
  background: transparent;
  color: #30443a;
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
}

.user-dropdown button:hover {
  background: #eef5f0;
}

.app-view {
  display: none;
}

.app-view.is-active {
  display: block;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(360px, 470px) minmax(650px, 1fr);
  gap: 24px;
  max-width: 1700px;
  margin: 0 auto;
  padding: 24px;
}

.control-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 6px 0;
}

.control-panel .panel-card {
  border: 0;
  border-radius: 14px;
  background: transparent;
  box-shadow: none;
  padding: 10px 0 16px;
  border-bottom: 1px solid #dbe6de;
}

.control-panel .panel-card:last-child {
  border-bottom: 0;
}

.panel-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(23, 34, 26, 0.06);
  padding: 18px;
}

.section-heading {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.section-heading.compact {
  margin-bottom: 11px;
}

.section-heading h2 {
  margin: 0 0 2px;
  font-size: 16px;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.step {
  min-width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #ffffff;
  background: var(--green);
  font-size: 12px;
  font-weight: 800;
}

.field {
  display: grid;
  gap: 7px;
  margin-bottom: 12px;
}

.field span,
.field-label {
  font-size: 12px;
  font-weight: 750;
}

.field input,
.mapping-form input,
.mapping-form select,
.preview-controls select,
.locations-actions input,
.location-form-grid input {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #cbd6ce;
  border-radius: 10px;
  outline: none;
  background: #fbfdfb;
  color: var(--ink);
}

.field input:focus,
.mapping-form input:focus,
.mapping-form select:focus,
.preview-controls select:focus,
.locations-actions input:focus,
.location-form-grid input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(8, 115, 38, 0.13);
  background: #ffffff;
}

.branding-control {
  display: grid;
  gap: 9px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.branding-control.no-divider {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.campaign-summary {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid #d6e2d9;
  border-radius: 11px;
  background: #f8fbf9;
  display: grid;
  gap: 3px;
}

.campaign-summary strong {
  font-size: 12px;
  color: #2a4032;
}

.campaign-summary small {
  font-size: 10px;
  color: #617167;
}

.branding-options,
.output-options {
  display: grid;
  gap: 9px;
}

.branding-option,
.output-option {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fbfcfb;
  cursor: pointer;
}

.branding-option.is-selected,
.output-option.is-selected {
  border-color: var(--green);
  box-shadow: 0 0 0 1px var(--green);
  background: var(--green-soft);
}

.branding-option input,
.output-option input {
  margin-top: 2px;
  accent-color: var(--green);
}

.branding-option span,
.output-option span {
  display: grid;
  gap: 2px;
}

.branding-option b,
.output-option b {
  font-size: 13px;
}

.branding-option small,
.output-option small {
  color: var(--muted);
  font-size: 10px;
}

.logo-upload {
  display: grid;
  gap: 6px;
  padding: 10px;
  border-radius: 9px;
  background: #f4f8f5;
  font-size: 10px;
  font-weight: 700;
}

.logo-upload input {
  font-size: 10px;
}

.logo-upload small {
  color: var(--muted);
  font-weight: 500;
}

.drop-zone {
  min-height: 144px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 18px;
  border: 1.5px dashed #9bb3a2;
  border-radius: 13px;
  background: #f8fbf9;
  cursor: pointer;
  text-align: center;
  transition: 0.2s ease;
}

.drop-zone:hover,
.drop-zone.is-dragging {
  border-color: var(--green);
  background: var(--green-soft);
  transform: translateY(-1px);
}

.upload-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  margin-bottom: 2px;
  border-radius: 50%;
  color: #ffffff;
  background: var(--green);
  font-size: 21px;
  font-weight: 900;
}

.drop-zone strong {
  font-size: 14px;
}

.drop-zone > span:not(.upload-icon) {
  color: var(--muted);
  font-size: 12px;
}

.drop-zone small {
  max-width: 100%;
  margin-top: 5px;
  color: #536157;
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.validation-strip {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 11px;
  padding: 10px 11px;
  border-radius: 11px;
  color: #184a25;
  background: var(--green-soft);
}

.validation-strip strong,
.validation-strip small {
  display: block;
}

.validation-strip strong {
  font-size: 12px;
}

.validation-strip small {
  margin-top: 2px;
  color: #53705b;
  font-size: 10px;
}

.validation-ok {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: var(--green);
  font-weight: 900;
}

.validation-strip.is-warning {
  color: #6b4f08;
  background: #fff6d8;
}

.validation-strip.is-warning .validation-ok {
  background: #c18a00;
}

.match-summary {
  margin-bottom: 11px;
  padding: 10px;
  border-radius: 10px;
  background: #f4f7f5;
  color: var(--muted);
  font-size: 11px;
}

.match-summary.warning {
  background: #fff6d8;
  color: #6b4f08;
}

.match-summary.ok {
  background: var(--green-soft);
  color: #184a25;
}

.primary-button,
.secondary-button {
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 12px 15px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.2s ease, filter 0.18s ease;
}

.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--green-mid) 0%, var(--green) 55%, var(--green-dark) 100%);
  box-shadow: var(--button-shadow);
}

.primary-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 25px rgba(8, 115, 38, 0.32);
  filter: brightness(1.03);
}

.secondary-button {
  margin-top: 8px;
  color: var(--green-dark);
  background: #ebf5ee;
}

.secondary-button:hover {
  transform: translateY(-1px);
  background: #deefe4;
}

.secondary-button.inline,
.primary-button.inline {
  width: auto;
}

.preview-panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #dde4df;
  box-shadow: 0 11px 30px rgba(20, 38, 26, 0.08);
}

.preview-toolbar {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.preview-toolbar > div:first-child {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.preview-label {
  color: var(--green);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 850;
}

.preview-toolbar strong {
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.preview-controls {
  display: flex;
  align-items: center;
  gap: 7px;
}

.preview-controls button {
  width: 34px;
  height: 31px;
  display: grid;
  place-items: center;
  border: 1px solid #cbd5ce;
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
}

.preview-controls button:hover {
  border-color: var(--green);
  color: var(--green);
}

.preview-controls button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

#packCounter {
  min-width: 42px;
  text-align: center;
  color: #5c685f;
  font-size: 11px;
  font-weight: 750;
}

.preview-stage {
  min-height: calc(100vh - 170px);
  padding: 28px;
  overflow: auto;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  background-image: radial-gradient(#b7c3ba 0.8px, transparent 0.8px);
  background-size: 16px 16px;
}

.document-preview {
  display: flex;
  justify-content: center;
  transform-origin: top center;
  transition: transform 0.18s ease;
}

.preview-footer {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 14px;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.preview-footer span {
  min-width: 44px;
  text-align: center;
  color: #5f7065;
  font-size: 12px;
  font-weight: 700;
}

.preview-footer button {
  border: 1px solid #d4dfd7;
  border-radius: 9px;
  padding: 7px 10px;
  background: #f6faf7;
  color: #2f4637;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.preview-footer button:hover {
  background: #eaf4ee;
}

.a5-label {
  width: 148mm;
  min-height: 210mm;
  display: flex;
  flex-direction: column;
  border: 0.35mm solid var(--green-dark);
  color: #0c150e;
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(18, 40, 25, 0.12);
  font-family: Arial, Helvetica, sans-serif;
}

.label-header {
  min-height: 27mm;
  display: grid;
  grid-template-columns: 1fr 35mm;
  align-items: stretch;
  border-bottom: 0.25mm solid var(--green-dark);
}

.label-title-wrap {
  display: flex;
  align-items: center;
  gap: 3mm;
  min-width: 0;
  flex: 1;
}

.packflow-label-logo {
  width: 22mm;
  height: 14mm;
  margin-left: 4mm;
  object-fit: contain;
  flex: 0 0 auto;
}

.label-logo {
  display: block;
  width: 18mm;
  height: 14mm;
  object-fit: contain;
  flex: 0 0 auto;
}

.label-logo[hidden] {
  display: none !important;
}

.label-header h2 {
  align-self: center;
  margin: 0;
  padding: 5mm 5mm;
  color: var(--green);
  font-size: 18pt;
  line-height: 0.98;
  letter-spacing: -0.7pt;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  min-width: 0;
}

.pack-box {
  margin: 3.5mm;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 0.3mm solid var(--green);
  border-radius: 1.4mm;
}

.pack-box > span {
  color: var(--green);
  font-size: 8pt;
  font-weight: 800;
}

.pack-box > div {
  display: flex;
  align-items: baseline;
  gap: 3mm;
  margin-top: 1mm;
}

.pack-box strong {
  font-size: 22pt;
  line-height: 1;
}

.pack-box small {
  font-size: 7pt;
  font-weight: 800;
}

.store-block {
  min-height: 34mm;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  border-bottom: 0.25mm solid var(--green-dark);
}

.store-block > div {
  padding: 5mm;
}

.date-block {
  border-left: 0.2mm solid #9db4a4;
}

.label-caption {
  display: block;
  margin-bottom: 1.2mm;
  color: var(--green);
  font-size: 7.4pt;
  font-weight: 850;
  letter-spacing: 0.2pt;
}

.store-name {
  display: block;
  font-size: 17pt;
  line-height: 1.05;
  text-transform: uppercase;
}

.store-number-caption {
  margin-top: 4mm;
}

.store-number {
  display: block;
  font-size: 13pt;
}

.date-block strong {
  display: block;
  font-size: 12pt;
  text-transform: uppercase;
}

.contents-block {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.contents-title {
  padding: 2.4mm 4mm;
  color: #ffffff;
  background: var(--green);
  font-size: 10pt;
  font-weight: 900;
  letter-spacing: 0.15pt;
}

.label-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 6.8pt;
}

.label-table thead th {
  height: 9mm;
  padding: 1.2mm 1.5mm;
  border-right: 0.2mm solid #8cad96;
  border-bottom: 0.25mm solid #8cad96;
  color: var(--green-dark);
  background: #eff7f1;
  text-align: center;
  font-size: 6.3pt;
  line-height: 1.1;
}

.label-table tbody td {
  height: 8.3mm;
  padding: 1.2mm 1.5mm;
  border-right: 0.18mm solid #b8cabe;
  border-bottom: 0.18mm dashed #aac0b0;
  vertical-align: middle;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.label-table tbody tr:last-child td {
  border-bottom: 0;
}

.label-table th:last-child,
.label-table td:last-child {
  border-right: 0;
}

.col-order {
  width: 24mm;
}

.col-code {
  width: 36mm;
}

.col-qty {
  width: 14mm;
  color: #ffffff !important;
  background: var(--green) !important;
}

.label-table td:nth-child(1),
.label-table td:nth-child(3) {
  text-align: center;
}

.label-table td:nth-child(4) {
  color: #ffffff;
  background: var(--green);
  text-align: center;
  font-size: 11pt;
  font-weight: 900;
}

.label-table .empty-row td:not(:last-child),
.label-table .empty-row td:last-child {
  color: transparent;
}

.label-footer {
  min-height: 23mm;
  display: grid;
  grid-template-columns: 31mm 38mm 1fr;
  border-top: 0.3mm solid var(--green-dark);
}

.total-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-right: 0.2mm solid #9db4a4;
}

.total-block span {
  font-size: 6.7pt;
  font-weight: 850;
}

.total-block strong {
  color: var(--green);
  font-size: 22pt;
  line-height: 1.05;
}

.check-block {
  display: grid;
  grid-template-columns: auto 1fr;
  align-content: center;
  gap: 3mm 3mm;
  padding: 3.5mm 4mm;
  color: var(--green-dark);
  font-size: 6.8pt;
  font-weight: 850;
}

.write-line,
.date-line {
  border-bottom: 0.2mm dotted #667469;
}

.date-line {
  color: #3b493e;
  font-weight: 500;
}

.a5-label.rows-large .label-table {
  font-size: 8pt;
}

.a5-label.rows-large .label-table tbody td {
  height: 10.2mm;
  padding: 1.55mm 1.6mm;
}

.a5-label.rows-medium .label-table {
  font-size: 7.1pt;
}

.a5-label.rows-medium .label-table tbody td {
  height: 6.8mm;
  padding: 0.9mm 1.35mm;
}

.a5-label.rows-compact .label-table {
  font-size: 6.1pt;
}

.a5-label.rows-compact .label-table tbody td {
  height: 4.75mm;
  padding: 0.38mm 1.1mm;
}

.a5-label.rows-large .label-table td:nth-child(4) {
  font-size: 12pt;
}

.a5-label.rows-medium .label-table td:nth-child(4) {
  font-size: 10.5pt;
}

.a5-label.rows-compact .label-table td:nth-child(4) {
  font-size: 9pt;
}

.combined-preview {
  width: 297mm;
  height: 210mm;
  display: grid;
  grid-template-columns: 148.5mm 148.5mm;
  align-items: stretch;
  justify-items: stretch;
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(18, 40, 25, 0.12);
  overflow: visible;
  flex: 0 0 297mm;
  margin: 0;
}

.combined-preview .a5-label {
  margin: 0 !important;
  width: 148.5mm !important;
  min-width: 148.5mm !important;
  max-width: 148.5mm !important;
  height: 210mm !important;
  min-height: 210mm !important;
  box-shadow: none;
  overflow: hidden;
  position: relative;
  left: auto !important;
  right: auto !important;
}

.delivery-preview {
  box-sizing: border-box;
  width: 148.5mm !important;
  min-width: 148.5mm !important;
  max-width: 148.5mm !important;
  height: 210mm;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-left: 0.25mm dashed #7c897f;
  background: #ffffff;
  padding: 7mm;
}

.delivery-preview img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.delivery-match {
  position: absolute;
  left: 8mm;
  right: 8mm;
  bottom: 5mm;
  padding: 2mm 3mm;
  border-radius: 2mm;
  background: rgba(255, 255, 255, 0.92);
  font-size: 7pt;
  font-weight: 800;
  text-align: center;
}

.delivery-missing {
  display: grid;
  gap: 4mm;
  text-align: center;
  padding: 12mm;
  border: 0.3mm dashed #7c897f;
}

.delivery-missing strong {
  font-size: 18pt;
}

.delivery-missing span {
  font-size: 8.5pt;
}

.preview-stage:has(.combined-preview) {
  justify-content: flex-start;
  align-items: flex-start;
}

.blank-preview {
  width: 148mm;
  height: 210mm;
  display: grid;
  place-items: center;
  border: 0.35mm dashed #aebbb2;
  background: #ffffff;
  color: #738078;
  text-align: center;
  padding: 20mm;
}

.blank-preview strong {
  display: block;
  margin-bottom: 3mm;
  font-size: 16pt;
  color: #314037;
}

.locations-shell {
  max-width: 1380px;
  margin: 0 auto;
  padding: 24px;
  display: grid;
  gap: 16px;
}

.locations-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.eyebrow {
  margin: 0;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 850;
  color: #7f8d83;
}

.eyebrow.green {
  color: #2b743f;
}

.subtitle {
  margin: 0;
}

.locations-header h2 {
  margin: 5px 0 6px;
  font-size: 30px;
  letter-spacing: -0.02em;
}

.locations-header p {
  margin: 0;
  color: var(--muted);
}

.locations-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.location-stats {
  color: #577063;
  font-size: 13px;
  font-weight: 650;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #ffffff;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 12px 13px;
  border-bottom: 1px solid #e8eeea;
  text-align: left;
  vertical-align: top;
  font-size: 13px;
}

.data-table th {
  color: #506358;
  background: #f6faf7;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.row-buttons,
.history-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.row-buttons button,
.history-reopen,
.history-delete {
  border: 1px solid #d5e1d8;
  border-radius: 8px;
  padding: 6px 10px;
  background: #ffffff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.row-buttons button:hover,
.history-reopen:hover {
  background: #f4f8f5;
}

.history-delete {
  border-color: #efd3d3;
  color: #8d2121;
  background: #fff8f8;
}

.empty-cell {
  color: #718178;
  text-align: center !important;
  padding: 22px !important;
}

.settings-grid {
  display: grid;
  grid-template-columns: minmax(280px, 900px);
  gap: 16px;
}

.settings-card {
  max-width: 900px;
}

.settings-card h3 {
  margin: 0 0 8px;
}

.settings-card p {
  color: var(--muted);
}

.settings-actions,
.template-actions,
.mapping-actions {
  display: flex;
  gap: 8px;
  margin: 14px 0;
  flex-wrap: wrap;
}

.mapping-status {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid #cfe0d3;
  border-radius: 9px;
  background: var(--green-soft);
  color: #285235;
  font-size: 10px;
  line-height: 1.4;
}

.mapping-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.mapping-form label {
  display: grid;
  gap: 5px;
  color: #314037;
  font-size: 11px;
  font-weight: 800;
}

.mapping-form small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 500;
  line-height: 1.35;
}

.mapping-actions {
  grid-column: 1 / -1;
  padding-top: 4px;
}

dialog {
  border: 0;
  border-radius: 16px;
  padding: 0;
  width: min(780px, 96vw);
  box-shadow: 0 24px 45px rgba(10, 23, 15, 0.25);
}

dialog::backdrop {
  background: rgba(9, 20, 12, 0.45);
}

#locationForm {
  position: relative;
  padding: 24px;
}

.confirm-dialog {
  padding: 24px;
  display: grid;
  gap: 16px;
}

.confirm-dialog h3 {
  margin: 0;
}

.confirm-dialog p {
  margin: 0;
  color: #617167;
}

.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

#locationForm h2 {
  margin: 0 0 16px;
}

.dialog-close {
  position: absolute;
  right: 14px;
  top: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: #eff5f0;
  color: #294135;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.location-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.location-form-grid label {
  display: grid;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
}

.location-form-grid .wide {
  grid-column: 1 / -1;
}

.dialog-actions {
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 22;
  max-width: 380px;
  padding: 12px 15px;
  border-radius: 11px;
  color: #ffffff;
  background: #18231b;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: 0.2s ease;
  font-size: 13px;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1240px) {
  .app-header {
    height: auto;
    padding: 10px 16px;
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .header-left,
  .header-right {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .brand-wordmark strong {
    font-size: 28px;
  }

  .top-tabs {
    order: 3;
    width: 100%;
    overflow: auto;
  }

  .top-tab {
    flex: 1 0 auto;
  }
}

@media (max-width: 1120px) {
  .workspace {
    grid-template-columns: 1fr;
  }

  .preview-stage {
    min-height: 840px;
  }

  .combined-preview {
    transform: none !important;
    margin: 0 !important;
  }

  .preview-stage:has(.combined-preview) {
    overflow-x: auto;
  }
}

@media (max-width: 700px) {
  .login-panel {
    padding: 24px 20px 20px;
  }

  .mapping-form {
    grid-template-columns: 1fr;
  }

  .mapping-actions,
  .template-actions,
  .settings-actions,
  .dialog-actions {
    flex-direction: column;
  }

  .location-form-grid {
    grid-template-columns: 1fr;
  }

  .primary-button.inline,
  .secondary-button.inline,
  .template-actions .inline {
    width: 100%;
  }
}

@media (max-width: 620px) {
  .workspace,
  .locations-shell {
    padding: 12px;
  }

  .preview-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .preview-controls select {
    flex: 1;
    max-width: none;
    min-width: 0;
  }

  .preview-stage {
    padding: 12px;
    justify-content: flex-start;
  }

  .a5-label {
    transform-origin: top left;
    transform: scale(0.72);
    margin-right: -41mm;
    margin-bottom: -59mm;
  }
}

@page {
  size: A5 portrait;
  margin: 0;
}

@media print {
  body * {
    visibility: hidden !important;
  }

  #labelPreview,
  #labelPreview * {
    visibility: visible !important;
  }

  #labelPreview {
    position: absolute;
    left: 0;
    top: 0;
    width: 148mm;
    height: 210mm;
    min-height: 210mm;
    box-shadow: none;
    border: 0.35mm solid var(--green-dark);
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
}

/* PackFlow v1.7 authentication cleanup */
.environment-pill { display:none !important; }


/* PackFlow v1.7.3 release polish */
.a5-label::after {
  content: "";
  flex: 1 1 auto;
  min-height: 0;
}
.label-footer { order: 3; }
.a5-label::after { order: 4; }
.preview-stage { padding-top: 24px; padding-bottom: 24px; }
.document-preview { filter: drop-shadow(0 18px 32px rgba(18, 40, 25, 0.12)); }
@media (max-width: 1100px) {
  .app-header { height: 82px; padding: 0 20px; }
  .brand-wordmark { min-width: 185px; }
  .brand-wordmark strong { font-size: 34px; }
  .top-tab { padding: 9px 12px; }
}

/* PackFlow v1.8 Carrier Integration Centre */
.carrier-shell { gap: 20px; }
.carrier-header { align-items: center; }
.carrier-summary { display:grid; grid-template-columns:repeat(5,minmax(120px,1fr)); gap:12px; }
.carrier-summary > div { padding:16px 18px; border:1px solid #d8e4db; border-radius:14px; background:#fff; box-shadow:0 8px 24px rgba(23,34,26,.05); display:grid; gap:4px; }
.carrier-summary span { color:var(--muted); font-size:11px; font-weight:750; text-transform:uppercase; letter-spacing:.06em; }
.carrier-summary strong { font-size:26px; color:#17311f; }
.carrier-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:16px; }
.carrier-card { border:1px solid #d5e2d8; border-radius:18px; background:#fff; box-shadow:0 12px 30px rgba(18,38,24,.07); overflow:hidden; }
.carrier-card-top { display:flex; align-items:center; justify-content:space-between; padding:18px 18px 10px; }
.carrier-mark { width:52px; height:52px; border-radius:15px; display:grid; place-items:center; background:linear-gradient(145deg,#075a26,#0c8738); color:#fff; font-size:16px; font-weight:900; letter-spacing:.04em; }
.carrier-status { display:inline-flex; align-items:center; gap:7px; padding:7px 10px; border-radius:999px; background:#f0f5f1; color:#526458; font-size:11px; font-weight:800; }
.carrier-status i { width:8px; height:8px; border-radius:50%; background:#9eaaa1; }
.carrier-card[data-status="connected"] .carrier-status { background:#e9f7ed; color:#176534; }
.carrier-card[data-status="connected"] .carrier-status i { background:#18a04b; }
.carrier-card[data-status="error"] .carrier-status { background:#fff0ed; color:#a33224; }
.carrier-card[data-status="error"] .carrier-status i { background:#d94432; }
.carrier-card[data-status="disabled"] { opacity:.65; }
.carrier-card-body { padding:4px 18px 16px; }
.carrier-card-body h3 { margin:0 0 5px; font-size:21px; }
.carrier-card-body p { margin:0 0 16px; color:var(--muted); font-size:12px; }
.carrier-card-body dl { display:grid; gap:8px; margin:0; }
.carrier-card-body dl div { display:flex; justify-content:space-between; gap:12px; font-size:11px; }
.carrier-card-body dt { color:#718076; }
.carrier-card-body dd { margin:0; font-weight:750; color:#2b4031; text-align:right; }
.carrier-card-actions { display:grid; grid-template-columns:1fr 1fr; gap:9px; padding:14px 18px 18px; border-top:1px solid #edf1ee; }
.carrier-card-actions button { width:100%; }
.carrier-test-button { border:1px solid #b8d7c0; border-radius:10px; background:#edf8f0; color:#176a36; padding:10px 12px; font-weight:800; cursor:pointer; }
.carrier-test-button:hover { background:#e1f3e6; }
.carrier-section-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.carrier-section-heading h3 { margin:2px 0 0; }
.carrier-log-list { margin-top:12px; display:grid; gap:7px; }
.carrier-log { display:grid; grid-template-columns:155px 100px 150px 90px 1fr; gap:12px; align-items:center; padding:10px 12px; border:1px solid #e1e9e3; border-radius:10px; font-size:11px; background:#fbfdfb; }
.carrier-log time,.carrier-log small { color:#718076; }
.carrier-log b { color:#16713a; }
.carrier-log[data-result="failed"] b { color:#b53625; }
.carrier-empty { padding:22px; border:1px dashed #b7c7bb; border-radius:12px; color:#708077; text-align:center; }
.carrier-dialog { width:min(980px,94vw); max-height:90vh; padding:0; border:0; border-radius:20px; box-shadow:0 28px 80px rgba(13,33,19,.28); overflow:hidden; }
.carrier-dialog::backdrop { background:rgba(17,31,22,.52); backdrop-filter:blur(3px); }
.carrier-dialog form { display:grid; grid-template-rows:auto auto minmax(0,1fr) auto; max-height:90vh; background:#fff; }
.dialog-header { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:20px 22px; border-bottom:1px solid #e1e9e3; }
.dialog-header h3 { margin:3px 0 0; font-size:22px; }
.icon-button { width:38px; height:38px; border:0; border-radius:10px; background:#eef4ef; color:#405247; font-size:24px; cursor:pointer; }
.carrier-tabs { display:flex; gap:5px; padding:10px 14px; border-bottom:1px solid #e1e9e3; overflow-x:auto; background:#f8fbf8; }
.carrier-tab { border:0; border-radius:9px; padding:9px 12px; background:transparent; color:#53665a; font-size:12px; font-weight:800; cursor:pointer; white-space:nowrap; }
.carrier-tab.is-active { background:#0a7a2d; color:#fff; }
.carrier-tab-panel { display:none; padding:22px; overflow:auto; }
.carrier-tab-panel.is-active { display:block; }
.carrier-form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.carrier-form-grid label,.service-editor label { display:grid; gap:7px; }
.carrier-form-grid label span,.service-editor label span { font-size:12px; font-weight:800; color:#405247; }
.carrier-form-grid input,.carrier-form-grid select,.service-editor input,.service-editor textarea,.mapping-row input { width:100%; padding:11px 12px; border:1px solid #cbd8ce; border-radius:10px; background:#fbfdfb; outline:none; }
.carrier-form-grid input:focus,.carrier-form-grid select:focus,.service-editor input:focus,.service-editor textarea:focus,.mapping-row input:focus { border-color:#0a7a2d; box-shadow:0 0 0 3px rgba(10,122,45,.13); }
.carrier-switch { margin-top:16px; display:inline-flex; align-items:center; gap:9px; font-weight:800; }
.carrier-switch input { accent-color:#0a7a2d; }
.carrier-help { margin:18px 0 0; padding:12px 14px; border-radius:10px; background:#fff8e6; color:#765913; font-size:11px; }
.service-editor { display:grid; gap:16px; }
.mapping-table { border:1px solid #d9e5dc; border-radius:12px; overflow:hidden; }
.mapping-row { display:grid; grid-template-columns:240px 1fr; gap:14px; align-items:center; padding:10px 12px; border-bottom:1px solid #e7eee9; }
.mapping-row:last-child { border-bottom:0; }
.mapping-row span { font-size:12px; font-weight:750; color:#3f5346; }
.mapping-head { background:#eef6f0; }
.test-centre { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.test-result { margin-top:16px; padding:16px; border:1px solid #d9e5dc; border-radius:12px; background:#f8fbf8; color:#53665a; font-weight:750; }
.test-result[data-result="success"] { background:#eaf7ee; color:#176534; border-color:#bfe0c8; }
.test-result[data-result="failed"] { background:#fff0ed; color:#a33224; border-color:#efc2ba; }
.dialog-actions { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px 20px; border-top:1px solid #e1e9e3; background:#f8fbf8; }
.dialog-actions-right { display:flex; gap:9px; }

@media (max-width: 900px) {
  .carrier-summary { grid-template-columns:repeat(2,1fr); }
  .carrier-form-grid { grid-template-columns:1fr; }
  .carrier-log { grid-template-columns:1fr 1fr; }
  .carrier-log small { grid-column:1 / -1; }
  .mapping-row { grid-template-columns:1fr; }
}


/* Final polish overrides */
.contents-block{flex:1 1 auto !important;display:flex;flex-direction:column;min-height:0;}
.label-table{flex:1 1 auto !important;}
.label-footer{margin-top:auto !important;flex-shrink:0 !important;display:flex;align-items:center;justify-content:space-between;gap:24px;}
.label-footer .footer-signoff{display:flex;align-items:center;gap:16px;width:100%;}
.carrier-grid{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(340px,1fr));gap:28px!important;}
.carrier-card{border:none!important;border-radius:20px!important;box-shadow:0 10px 30px rgba(0,0,0,.06)!important;padding:28px!important;transition:.2s;}
.carrier-card:hover{transform:translateY(-3px);box-shadow:0 16px 40px rgba(0,0,0,.1)!important;}
.carrier-card .carrier-icon{background:#fff!important;border:1px solid #e8ece8!important;border-radius:14px!important;}
.status-pill{background:transparent!important;border:none!important;font-weight:600;}

/* PACKFLOW v1.8.2 LAUNCH POLISH */
.a5-label {
  width: 148mm !important;
  height: 210mm !important;
  min-height: 210mm !important;
  max-height: 210mm !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}
.label-header,
.store-block,
.label-footer { flex: 0 0 auto !important; }
.contents-block {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}
.label-table { flex: 0 0 auto !important; }
.label-footer {
  margin-top: auto !important;
  min-height: 23mm !important;
  height: 23mm !important;
  display: grid !important;
  grid-template-columns: 31mm 38mm 1fr !important;
  align-self: stretch !important;
  background: #fff !important;
  position: relative !important;
  bottom: auto !important;
}
.check-block {
  grid-template-columns: auto minmax(24mm,1fr) auto minmax(18mm,.65fr) !important;
  align-items: center !important;
  align-content: center !important;
  gap: 2.5mm !important;
  padding: 3.5mm 4mm !important;
}
.check-block .write-line,
.check-block .date-line { width: 100% !important; }
.a5-label::after { display:none !important; content:none !important; }

.carrier-shell { max-width: 1440px; gap: 22px; }
.carrier-header { padding-bottom: 4px; }
.carrier-header h2 { font-size: 34px; letter-spacing: -0.035em; }
.carrier-header p { font-size: 14px; max-width: 720px; }
.carrier-summary {
  display: grid !important;
  grid-template-columns: repeat(4,minmax(110px,1fr)) minmax(180px,1.25fr) !important;
  gap: 0 !important;
  padding: 6px 12px !important;
  border: 1px solid #dfe8e1 !important;
  border-radius: 18px !important;
  background: rgba(255,255,255,.88) !important;
  box-shadow: 0 10px 34px rgba(20,43,27,.055) !important;
}
.carrier-summary > div {
  min-height: 82px;
  padding: 17px 22px !important;
  border: 0 !important;
  border-right: 1px solid #e6ece7 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  align-content: center;
}
.carrier-summary > div:last-child { border-right:0 !important; }
.carrier-summary span { font-size: 10px; }
.carrier-summary strong { font-size: 25px; }
.carrier-health { grid-template-columns: 12px 1fr; column-gap:10px; }
.carrier-health i { width:9px; height:9px; border-radius:50%; background:#22a64f; box-shadow:0 0 0 5px #e9f8ed; grid-row:1 / span 2; align-self:center; }
.carrier-health span,.carrier-health strong { grid-column:2; }
.carrier-health strong { font-size:15px !important; color:#166532 !important; }

.carrier-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 0 !important;
  padding: 8px 14px !important;
  border: 1px solid #dfe8e1 !important;
  border-radius: 20px !important;
  background: rgba(255,255,255,.92) !important;
  box-shadow: 0 14px 42px rgba(20,43,27,.06) !important;
}
.carrier-card {
  display: grid !important;
  grid-template-columns: minmax(360px,1.5fr) minmax(250px,.75fr) auto !important;
  align-items: center !important;
  min-height: 94px !important;
  padding: 14px 10px !important;
  border: 0 !important;
  border-bottom: 1px solid #e8eeea !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
  transition: background .18s ease !important;
}
.carrier-card:last-child { border-bottom:0 !important; }
.carrier-card:hover { transform:none !important; background:#f8fbf9 !important; box-shadow:none !important; }
.carrier-identity { display:flex; align-items:center; gap:16px; min-width:0; }
.carrier-logo-wrap {
  width: 58px; height:58px; flex:0 0 58px; display:grid; place-items:center;
  border:1px solid #e2e9e4; border-radius:14px; background:#fff; box-shadow:0 5px 14px rgba(26,48,32,.06); overflow:hidden;
}
.carrier-brand { display:grid; place-items:center; width:100%; height:100%; font-weight:900; line-height:1; letter-spacing:-.04em; }
.carrier-brand-ups { color:#ffb500; background:#351c15; border-radius:11px 11px 18px 18px; width:39px; height:46px; font-size:19px; text-transform:lowercase; }
.carrier-brand-dx { color:#1cb4e8; font-size:26px; font-style:italic; }
.carrier-brand-dpd { color:#d71920; font-size:18px; }
.carrier-brand-dhl { color:#d40511; background:#ffcc00; font-size:16px; font-style:italic; }
.carrier-brand-fedex { font-size:17px; color:#4d148c; }
.carrier-brand-anpost { color:#00843d; font-size:15px; line-height:.84; text-align:center; }
.carrier-brand-royalmail { color:#d71920; font-size:11px; text-align:center; }
.carrier-name-block { min-width:0; }
.carrier-title-row { display:flex; align-items:center; gap:12px; min-width:0; }
.carrier-title-row h3 { margin:0; font-size:18px; }
.carrier-name-block p { margin:5px 0 0; color:#6a786e; font-size:11px; }
.carrier-name-block p b { color:#a4aea7; padding:0 5px; }
.carrier-status { padding:4px 8px !important; font-size:10px !important; background:transparent !important; }
.carrier-status i { width:6px !important; height:6px !important; }
.carrier-row-stats { display:grid; grid-template-columns:1fr 1.3fr; gap:18px; padding:0 24px; border-left:1px solid #edf1ee; }
.carrier-row-stats div { display:grid; gap:5px; }
.carrier-row-stats span { color:#7a887e; font-size:10px; }
.carrier-row-stats strong { color:#24362a; font-size:12px; }
.carrier-row-actions { display:flex; align-items:center; gap:10px; justify-self:end; }
.carrier-configure-link {
  min-width:118px; padding:11px 15px; border:1px solid #cae1d0; border-radius:10px; background:#eff8f1; color:#176a36; font-weight:800; cursor:pointer;
}
.carrier-configure-link span { margin-left:12px; font-size:18px; line-height:0; vertical-align:-1px; }
.carrier-menu-button { padding:10px 12px; border:0; border-radius:9px; background:transparent; color:#69786e; font-size:11px; font-weight:750; cursor:pointer; }
.carrier-menu-button:hover { background:#edf4ef; color:#176a36; }
.carrier-activity { border:0 !important; box-shadow:none !important; background:transparent !important; padding-inline:0 !important; }

.carrier-dialog {
  position: fixed !important;
  inset: 0 0 0 auto !important;
  width: min(620px,92vw) !important;
  height: 100vh !important;
  max-height: 100vh !important;
  margin: 0 !important;
  border-radius: 0 !important;
  transform: translateX(0);
  box-shadow: -24px 0 70px rgba(12,31,18,.22) !important;
}
.carrier-dialog form { height:100vh !important; max-height:100vh !important; }
.carrier-dialog::backdrop { background:rgba(12,26,17,.32) !important; backdrop-filter:blur(2px) !important; }
.carrier-tabs { padding:10px 20px !important; }
.carrier-tab-panel { padding:26px !important; }

@media (max-width: 1000px) {
  .carrier-summary { grid-template-columns:repeat(2,1fr) !important; }
  .carrier-card { grid-template-columns:1fr !important; gap:14px; }
  .carrier-row-stats { border-left:0; padding:0 74px; }
  .carrier-row-actions { justify-self:stretch; padding-left:74px; }
}


/* PACKFLOW v1.9.1 PDF / HEADER HOTFIX */
.app-header { height: 102px !important; }
.preview-footer { justify-content: center !important; }
#downloadPreview { display: none !important; }
@media (max-width: 1100px) {
  .app-header { height: 90px !important; }
}
