:root {
  --button-color: #1d6f50;
  --button-hover-color: #175f45;
  --button-soft-color: rgba(29, 111, 80, 0.12);
  --table-color: #f8fafb;
  --table-hover-color: rgba(248, 250, 251, 0.55);
  color: #15171f;
  background: #f4f6f8;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
}

body.has-bottom-app-nav {
  padding-bottom: 92px;
}

svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(320px, 460px) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: clamp(18px, 5vw, 56px);
  background:
    linear-gradient(135deg, var(--button-soft-color), transparent 34%),
    linear-gradient(315deg, rgba(31, 95, 191, 0.08), transparent 32%),
    #f4f6f8;
}

.auth-shell.single {
  grid-template-columns: minmax(320px, 480px);
  justify-content: center;
}

.auth-shell.register-view {
  align-items: start;
}

.auth-shell.single.register-view {
  grid-template-columns: minmax(320px, 980px);
}

.auth-card,
.preview-card {
  border: 1px solid #dde3ea;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 24px 80px rgba(18, 27, 38, 0.08);
}

.auth-card {
  width: 100%;
  padding: clamp(22px, 4vw, 34px);
}

.auth-card.wide {
  width: min(100%, 980px);
  max-width: 980px;
}

.company-logo-slot {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px dashed #cbd5df;
  border-radius: 8px;
  background: #fbfcfd;
}

.company-logo-mark {
  width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 8px;
  color: #ffffff;
  background: var(--button-color);
}

.company-logo-img {
  display: none;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border-radius: 8px;
  object-fit: cover;
}

.company-logo-slot.has-company-logo .company-logo-img {
  display: block;
}

.company-logo-slot.has-company-logo .company-logo-mark {
  display: none;
}

.company-logo-slot strong,
.company-logo-slot small {
  display: block;
}

.company-logo-slot small {
  margin-top: 3px;
  color: #667085;
  font-size: 0.82rem;
}

.login-logo-slot {
  min-height: 0;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  padding: 0 0 10px;
  border: 0;
  background: transparent;
  text-align: center;
}

.login-logo-slot .company-logo-mark,
.login-logo-slot .company-logo-img {
  width: 200px;
  height: 200px;
  border-radius: 8px;
}

.login-logo-slot .company-logo-mark svg {
  width: 104px;
  height: 104px;
}

.login-logo-slot strong {
  color: #101828;
  font-size: clamp(1.45rem, 5vw, 2rem);
  font-weight: 900;
  line-height: 1.1;
}

.auth-heading {
  margin: 28px 0 24px;
}

.auth-heading.compact-heading {
  margin-bottom: 20px;
}

.auth-heading h1 {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  letter-spacing: 0;
}

.auth-form {
  display: grid;
  gap: 16px;
}

.register-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.span-2 {
  grid-column: 1 / -1;
}

.field-group {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  color: #344054;
  font-size: 0.92rem;
  font-weight: 750;
}

.register-form .field-group > span:first-child {
  min-height: 42px;
  display: flex;
  align-items: flex-end;
  line-height: 1.15;
}

.input-shell {
  min-height: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border: 1px solid #d5dde5;
  border-radius: 8px;
  background: #ffffff;
}

.register-form .field-group:not(.span-2) .input-shell {
  height: 58px;
}

.input-shell:focus-within {
  border-color: var(--button-color);
  box-shadow: 0 0 0 4px var(--button-soft-color);
}

.input-shell svg {
  flex: 0 0 auto;
  color: #667085;
}

.input-shell input,
.input-shell select,
.input-shell textarea {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #15171f;
  background: transparent;
  font: inherit;
}

.input-shell input,
.input-shell select {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.input-shell select {
  appearance: none;
  cursor: pointer;
}

.textarea-shell {
  align-items: flex-start;
  min-height: 112px;
  padding-top: 13px;
}

.input-shell textarea {
  min-height: 84px;
  resize: vertical;
}

.input-shell input::placeholder,
.input-shell textarea::placeholder {
  color: #98a2b3;
}

.field-hint {
  min-height: 38px;
  color: #667085;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.35;
}

.password-toggle {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border: 0;
  border-radius: 8px;
  color: #4b5563;
  background: transparent;
  cursor: pointer;
}

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

.password-toggle .eye-closed,
.password-toggle[aria-pressed="true"] .eye-open {
  display: none;
}

.password-toggle[aria-pressed="true"] .eye-closed {
  display: block;
}

.auth-submit {
  min-height: 50px;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  background: var(--button-color);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.auth-submit:hover,
.primary-action:hover {
  background: var(--button-hover-color);
}

.auth-submit:disabled,
.secondary-auth-action:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.form-error {
  min-height: 20px;
  margin: -2px 0 0;
  color: #b42318;
  font-size: 0.9rem;
  font-weight: 750;
}

.form-error:empty {
  display: none;
}

.form-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.secondary-auth-action {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid #d5dde5;
  border-radius: 8px;
  color: #15171f;
  background: #ffffff;
  font-weight: 800;
  text-decoration: none;
}

.auth-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 2px;
}

.auth-links.single-link {
  justify-content: center;
}

.auth-links a {
  color: var(--button-color);
  font-weight: 750;
  text-decoration: none;
}

.register-link {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid #cfd9ca;
  border-radius: 8px;
  background: #f8fbf9;
}

.auth-preview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.preview-card {
  min-height: 210px;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 20px;
}

.preview-card strong {
  font-size: 1.1rem;
}

.preview-card p {
  margin-bottom: 0;
  color: #667085;
  line-height: 1.55;
}

.empty-home-shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
  background: #f4f6f8;
}

.empty-home-header {
  position: relative;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px clamp(18px, 4vw, 40px);
  border-bottom: 1px solid #dde3ea;
  background: #ffffff;
}

.empty-home-content {
  min-height: 0;
  width: min(100%, 1180px);
  display: grid;
  place-items: center;
  margin: 0 auto;
  padding: clamp(18px, 4vw, 40px);
}

body.has-bottom-app-nav .empty-home-content {
  min-height: calc(100vh - 76px - 92px);
}

.admin-home-content {
  min-height: 0;
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: clamp(18px, 4vw, 40px);
}

.locker-user-content {
  display: grid;
  gap: 18px;
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: clamp(18px, 4vw, 40px);
}

.is-hidden {
  display: none !important;
}

.header-actions {
  position: absolute;
  top: calc(100% - 8px);
  right: clamp(18px, 4vw, 40px);
  z-index: 20;
  min-width: 230px;
  display: none;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 8px;
  border: 1px solid #dde3ea;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 20px 55px rgba(15, 23, 42, 0.16);
}

.header-actions.is-open {
  display: flex;
}

.header-actions .secondary-auth-action {
  width: 100%;
  justify-content: flex-start;
}

.menu-toggle {
  width: 48px;
  min-height: 48px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid #d5dde5;
  border-radius: 8px;
  color: #15171f;
  background: #ffffff;
  cursor: pointer;
}

.menu-toggle:hover,
.menu-toggle[aria-expanded="true"] {
  color: var(--button-color);
  border-color: var(--button-color);
  background: var(--button-soft-color);
}

.bottom-app-nav {
  position: fixed;
  left: 50%;
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 40;
  width: min(calc(100% - 24px), 640px);
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 6px;
  padding: 8px;
  border: 1px solid #dbe3ea;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 55px rgba(15, 23, 42, 0.2);
  transform: translateX(-50%);
  backdrop-filter: blur(14px);
}

.bottom-nav-item {
  min-width: 0;
  min-height: 56px;
  display: grid;
  place-items: center;
  gap: 4px;
  padding: 6px 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #667085;
  background: transparent;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 850;
  cursor: pointer;
}

.bottom-nav-item svg {
  width: 22px;
  height: 22px;
}

.bottom-nav-item span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bottom-nav-item:hover,
.bottom-nav-item.is-active {
  color: var(--button-color);
  border-color: #d7e5dc;
  background: var(--button-soft-color);
}

.admin-users-card {
  display: grid;
  gap: 18px;
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid #dde6ee;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.08);
}

.admin-package-card {
  align-items: start;
}

.admin-package-form {
  grid-template-columns: minmax(240px, 1fr) auto;
  align-items: end;
}

.admin-package-form .form-actions {
  margin-top: 0;
}

.admin-search {
  max-width: 560px;
}

.bulk-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.bulk-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #344054;
  font-weight: 800;
}

.table-checkbox,
.bulk-check input {
  width: 20px;
  height: 20px;
  accent-color: var(--button-color);
}

.compact-action {
  width: auto;
  min-height: 44px;
  padding: 0 18px;
}

#serviceCancelEdit {
  display: none;
}

#serviceCancelEdit.is-visible {
  display: inline-flex;
}

#prealertCancelEdit {
  display: none;
}

#prealertCancelEdit.is-visible {
  display: inline-flex;
}

.settings-content {
  display: grid;
  gap: 18px;
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: clamp(18px, 4vw, 40px);
}

.settings-form {
  gap: 20px;
}

.settings-grid,
.settings-preview-row,
.logo-editor-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.color-input-shell {
  min-height: 62px;
  justify-content: space-between;
}

.color-input-shell input[type="color"] {
  width: 54px;
  height: 38px;
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

.settings-table-preview table {
  min-width: 360px;
}

.logo-editor-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid #e4e8ee;
  border-radius: 8px;
  background: #fbfcfd;
}

.trm-info-panel {
  display: grid;
  gap: 6px;
  min-height: 72px;
  padding: 14px 16px;
  border: 1px solid #dbe4ed;
  border-radius: 8px;
  background: #ffffff;
}

.trm-info-panel span {
  color: #667085;
  font-weight: 800;
}

.trm-info-panel strong {
  color: #111827;
  font-size: 1.35rem;
}

.trm-info-panel small {
  color: #667085;
  font-weight: 700;
}

.logo-crop-stage {
  position: relative;
  width: min(100%, 400px);
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid #cfd8e3;
  border-radius: 8px;
  background:
    linear-gradient(45deg, #eef2f6 25%, transparent 25%),
    linear-gradient(-45deg, #eef2f6 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #eef2f6 75%),
    linear-gradient(-45deg, transparent 75%, #eef2f6 75%),
    #ffffff;
  background-position: 0 0, 0 12px, 12px -12px, -12px 0;
  background-size: 24px 24px;
  cursor: grab;
  touch-action: none;
}

.logo-crop-stage:active {
  cursor: grabbing;
}

.logo-crop-stage img {
  position: absolute;
  inset: 0 auto auto 0;
  max-width: none;
  transform-origin: top left;
  user-select: none;
}

.logo-crop-frame {
  position: absolute;
  inset: 0;
  border: 2px solid var(--button-color);
  box-shadow: inset 0 0 0 999px rgba(15, 23, 42, 0.06);
  pointer-events: none;
}

.logo-editor-controls {
  display: grid;
  gap: 16px;
}

.range-control {
  width: 100%;
  accent-color: var(--button-color);
}

.logo-preview-slot {
  align-self: start;
}

.locker-user-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.locker-user-form .field-group:not(.span-2) .input-shell {
  height: 58px;
}

.table-action-button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid #d7e5dc;
  border-radius: 8px;
  color: var(--button-color);
  background: var(--button-soft-color);
  font-weight: 800;
  cursor: pointer;
}

.table-action-button:hover {
  border-color: #1f7a56;
  background: #e8f4ee;
}

.favorite-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #344054;
  font-weight: 800;
}

.favorite-toggle input {
  width: 18px;
  height: 18px;
  accent-color: #1f7a56;
}

.address-list {
  display: grid;
  gap: 14px;
}

.address-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid #e4e8ee;
  border-radius: 8px;
  background: #fbfcfd;
}

.address-card.favorite {
  border-color: #b7dec9;
  background: #f3fbf6;
}

.address-card-main,
.address-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.address-card h3 {
  margin: 0;
  color: #111827;
  font-size: 1.35rem;
}

.address-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.address-detail-grid div {
  min-width: 0;
  padding: 12px;
  border: 1px solid #e8edf2;
  border-radius: 8px;
  background: #ffffff;
}

.address-detail-grid dt {
  margin-bottom: 5px;
  color: #667085;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.address-detail-grid dd {
  margin: 0;
  color: #182230;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.muted-empty {
  margin: 0;
  color: #667085;
  font-weight: 750;
}

.status-pill.success {
  color: var(--button-color);
  background: var(--button-soft-color);
}

.locker-card {
  display: grid;
  gap: 22px;
  max-width: 760px;
  padding: clamp(22px, 4vw, 32px);
  border: 1px solid #dde6ee;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.08);
}

.locker-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.locker-card-icon {
  display: inline-grid;
  width: 62px;
  height: 62px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  background: var(--button-color);
  color: #ffffff;
}

.locker-card-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.locker-card h1 {
  margin: 4px 0 0;
  color: #111827;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

.locker-id-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border: 1px solid #d7e5dc;
  border-radius: 8px;
  background: #f3fbf6;
}

.locker-id-panel span {
  color: #526174;
  font-weight: 800;
}

.locker-id-panel strong {
  color: var(--button-color);
  font-size: 2rem;
  letter-spacing: 0;
}

.locker-delivery {
  display: grid;
  gap: 16px;
}

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

.delivery-grid div {
  min-width: 0;
  padding: 14px;
  border: 1px solid #e4e8ee;
  border-radius: 8px;
  background: #fbfcfd;
}

.delivery-grid dt {
  margin-bottom: 6px;
  color: #667085;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.delivery-grid dd {
  margin: 0;
  color: #182230;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.prealerts-shell {
  min-height: 100vh;
  background: #f4f6f8;
}

.prealerts-content {
  display: grid;
  gap: 18px;
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: clamp(18px, 4vw, 40px);
}

.contact-content {
  min-height: calc(100vh - 98px);
  display: grid;
  place-items: center;
  width: min(100%, 760px);
  margin: 0 auto;
  padding: clamp(22px, 5vw, 54px);
}

.contact-card {
  width: 100%;
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: clamp(26px, 5vw, 46px);
  text-align: center;
}

.contact-card .section-title {
  margin: 0;
}

.contact-subtitle {
  max-width: 560px;
  margin: 0;
  color: #344054;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  font-weight: 750;
  line-height: 1.45;
}

.whatsapp-contact-button {
  width: min(100%, 420px);
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 8px;
  padding: 16px 22px;
  border: 1px solid rgba(37, 211, 102, 0.42);
  border-radius: 8px;
  color: #0f3d25;
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.18), rgba(255, 255, 255, 0.92));
  box-shadow: 0 18px 44px rgba(15, 118, 68, 0.14);
  text-decoration: none;
}

.facebook-contact-button {
  width: min(100%, 420px);
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 16px 22px;
  border: 1px solid rgba(24, 119, 242, 0.34);
  border-radius: 8px;
  color: #173b74;
  background: linear-gradient(135deg, rgba(24, 119, 242, 0.14), rgba(255, 255, 255, 0.94));
  box-shadow: 0 18px 44px rgba(24, 119, 242, 0.12);
  text-decoration: none;
}

.whatsapp-contact-button:hover,
.facebook-contact-button:hover {
  border-color: #25d366;
  transform: translateY(-1px);
}

.facebook-contact-button:hover {
  border-color: #1877f2;
}

.whatsapp-contact-button strong,
.whatsapp-contact-button small,
.facebook-contact-button strong,
.facebook-contact-button small {
  display: block;
  text-align: left;
}

.whatsapp-contact-button strong,
.facebook-contact-button strong {
  color: #111827;
  font-size: 1.25rem;
  font-weight: 900;
}

.whatsapp-contact-button small,
.facebook-contact-button small {
  margin-top: 3px;
  color: #475467;
  font-size: 0.95rem;
  font-weight: 800;
}

.whatsapp-logo {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 999px;
  color: #ffffff;
  background: #25d366;
  box-shadow: inset 0 -10px 18px rgba(0, 0, 0, 0.09);
}

.whatsapp-logo svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.facebook-logo {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 999px;
  color: #ffffff;
  background: #1877f2;
  box-shadow: inset 0 -10px 18px rgba(0, 0, 0, 0.1);
}

.facebook-logo svg {
  width: 34px;
  height: 34px;
  fill: currentColor;
}

.prealert-form-card,
.prealert-list-card {
  padding: clamp(18px, 3vw, 26px);
}

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

.prealert-form .field-group > span:first-child {
  min-height: 38px;
  display: flex;
  align-items: flex-end;
  line-height: 1.15;
}

.prealert-form .field-group:not(.span-2) .input-shell {
  height: 58px;
}

.prealert-form.is-editing .field-group > span:first-child {
  color: #92400e;
}

.prealert-form.is-editing .input-shell {
  border-color: #f59e0b;
  background: #fffbeb;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.12);
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.prealert-form.is-editing .input-shell:hover,
.prealert-form.is-editing .input-shell:focus-within {
  border-color: #d97706;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.2);
}

.prealert-form.is-editing .input-shell svg {
  color: #b45309;
}

.section-title {
  margin-bottom: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.file-shell input {
  padding: 12px 0;
}

.form-success {
  min-height: 20px;
  margin: -2px 0 0;
  color: var(--button-color);
  font-size: 0.9rem;
  font-weight: 750;
}

.form-success:empty {
  display: none;
}

.notice-modal {
  width: min(92vw, 560px);
  border: 0;
  border-radius: 8px;
  padding: 0;
  box-shadow: 0 30px 90px rgba(18, 27, 38, 0.22);
}

.consolidation-modal {
  width: min(94vw, 1080px);
}

.consolidation-modal .notice-modal-body {
  max-height: 86vh;
  overflow: auto;
}

.notice-modal::backdrop {
  background: rgba(15, 23, 42, 0.45);
}

.notice-modal-body {
  display: grid;
  gap: 16px;
  padding: 24px;
  background: #ffffff;
}

.notice-modal-body h2 {
  font-size: 1.3rem;
}

.notice-modal-body p {
  margin-bottom: 0;
  color: #4b5563;
  line-height: 1.6;
}

.table-input {
  width: 120px;
  min-height: 42px;
  border: 1px solid #d5dde5;
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
  font-weight: 700;
  color: #15171f;
}

.money-stack {
  display: grid;
  gap: 3px;
  white-space: nowrap;
}

.money-stack.is-declared-value {
  justify-items: start;
  text-align: left;
}

.money-stack.is-pending-payment {
  justify-items: end;
  text-align: right;
}

.money-stack small {
  color: #64748b;
  font-weight: 800;
}

.package-row-consolidated {
  background: linear-gradient(90deg, rgba(185, 28, 28, 0.13), rgba(185, 28, 28, 0.04));
  box-shadow: inset 5px 0 0 #b91c1c;
}

.package-row-consolidated td {
  border-top-color: rgba(185, 28, 28, 0.18);
  border-bottom-color: rgba(185, 28, 28, 0.18);
}

.pay-package-button {
  min-height: 36px;
  border: 0;
  border-radius: 8px;
  padding: 0 12px;
  color: #ffffff;
  background: var(--button-color);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}

.pay-package-button:hover {
  filter: brightness(0.95);
}

.delivery-data-button {
  min-height: 36px;
  border: 1px solid #c9d5e5;
  border-radius: 8px;
  padding: 0 12px;
  color: #1f3b67;
  background: #f4f7fb;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}

.delivery-data-button:hover {
  border-color: #9fb2cc;
  background: #eaf0f8;
}

.bottom-actions {
  margin-top: 18px;
  justify-content: space-between;
}

.final-shipping-actions-row td {
  padding: 0;
  border-top: 2px solid #f59e0b;
  border-bottom: 2px solid #f59e0b;
  background: #fffbeb;
}

.final-shipping-actions-row .bottom-actions {
  margin: 0;
  padding: 14px 16px;
  justify-content: flex-start;
  gap: 18px;
}

.final-shipping-actions-row .auth-submit {
  flex: 0 0 auto;
}

.payment-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.payment-detail-grid div {
  padding: 12px;
  border: 1px solid #e4e8ee;
  border-radius: 8px;
  background: #fbfcfd;
}

.payment-detail-grid dt {
  margin-bottom: 5px;
  color: #667085;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.payment-detail-grid dd {
  margin: 0;
  color: #15171f;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.payment-methods {
  display: grid;
  gap: 10px;
}

.payment-method-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid #e4e8ee;
  border-radius: 8px;
  background: #ffffff;
}

.payment-method-card img {
  width: 72px;
  max-height: 58px;
  object-fit: contain;
}

.payment-method-card p,
.payment-method-card span {
  margin: 0;
  color: #667085;
  font-weight: 800;
}

.payment-method-card p {
  margin-bottom: 6px;
  line-height: 1.25;
}

.payment-method-card strong {
  display: block;
  color: #15171f;
  font-size: 1.12rem;
  font-weight: 900;
}

.payment-proof-help {
  margin: 0;
  padding: 12px 14px;
  border-radius: 8px;
  color: #1d6f50;
  background: rgba(29, 111, 80, 0.1);
  font-weight: 900;
  line-height: 1.35;
}

.tracking-copy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tracking-copy-row span {
  overflow-wrap: anywhere;
}

.copy-tracking-button {
  min-height: 30px;
  border: 1px solid #c9d5e5;
  border-radius: 8px;
  padding: 0 10px;
  color: #344054;
  background: #ffffff;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}

.copy-tracking-button:hover {
  background: #f4f7fb;
}

.delivery-data-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, auto);
  gap: 12px;
  align-items: center;
}

.delivery-track-link {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  color: #ffffff;
  background: var(--button-color);
  font: inherit;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.delivery-track-link:hover {
  background: var(--button-hover-color);
}

.mini-badge {
  display: inline-flex;
  width: fit-content;
  margin-top: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.mini-badge.consolidated {
  color: var(--button-color);
  background: rgba(29, 111, 80, 0.12);
}

.form-success.is-error {
  color: #b42318;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.manual-package-modal {
  width: min(94vw, 980px);
}

.manual-package-body {
  gap: 18px;
}

.manual-package-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.manual-user-results {
  max-height: 220px;
  display: grid;
  gap: 8px;
  overflow: auto;
  padding: 8px;
  border: 1px solid #e4e8ee;
  border-radius: 8px;
  background: #fbfcfd;
}

.manual-user-option {
  width: 100%;
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid #d5dde5;
  border-radius: 8px;
  color: #15171f;
  background: #ffffff;
  text-align: left;
  cursor: pointer;
}

.manual-user-option:hover {
  border-color: var(--button-color);
  background: var(--button-soft-color);
}

.manual-user-option strong,
.manual-user-option span,
.manual-user-option small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.manual-user-option small {
  color: #667085;
  font-size: 0.78rem;
  font-weight: 700;
}

.selected-package-list {
  display: grid;
  gap: 8px;
  max-height: 240px;
  margin: 0;
  padding: 8px;
  overflow: auto;
  border: 1px solid #e4e8ee;
  border-radius: 8px;
  background: #fbfcfd;
  list-style: none;
}

.selected-package-list li {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid #d5dde5;
  border-radius: 8px;
  background: #ffffff;
}

.selected-package-list span {
  color: #667085;
  font-size: 0.84rem;
  font-weight: 750;
}

.modal-helper-text {
  margin: 0;
  color: #667085;
  font-weight: 800;
  line-height: 1.45;
}

.insurance-options {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid #e4e8ee;
  border-radius: 8px;
}

.insurance-options legend {
  padding: 0 6px;
  color: #344054;
  font-weight: 850;
}

.insurance-options label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #344054;
  font-weight: 750;
}

.insurance-options input {
  width: 18px;
  height: 18px;
  accent-color: var(--button-color);
}

.manual-selected-user {
  padding: 12px;
  border: 1px solid #d7e5dc;
  border-radius: 8px;
  color: var(--button-color);
  background: var(--button-soft-color);
  font-weight: 800;
}

.invoice-preview-button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #d7e5dc;
  border-radius: 8px;
  color: var(--button-color);
  background: var(--button-soft-color);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
}

.invoice-file-name {
  display: block;
  max-width: 180px;
  margin-top: 5px;
  color: #667085;
  overflow: hidden;
  text-overflow: ellipsis;
}

.invoice-preview-list {
  display: grid;
  gap: 8px;
  min-width: 150px;
}

.invoice-preview-modal {
  width: min(94vw, 980px);
}

.invoice-preview-body {
  gap: 14px;
}

.invoice-preview-header,
.invoice-preview-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.invoice-preview-content {
  min-height: min(68vh, 720px);
  display: grid;
  place-items: center;
  overflow: auto;
  border: 1px solid #e4e8ee;
  border-radius: 8px;
  background: #f8fafb;
}

.invoice-preview-frame {
  width: 100%;
  height: min(68vh, 720px);
  border: 0;
  background: #ffffff;
}

.invoice-preview-image {
  display: block;
  max-width: 100%;
  max-height: min(68vh, 720px);
  object-fit: contain;
}

.invoice-preview-actions {
  justify-content: flex-end;
}

.pagination-controls {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 14px;
  color: #667085;
  font-weight: 750;
}

.pagination-controls button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.app-frame {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  background:
    linear-gradient(135deg, rgba(46, 123, 92, 0.08), transparent 34%),
    #f4f6f8;
}

.sidebar {
  min-height: 100vh;
  padding: 20px;
  border-right: 1px solid #dde3ea;
  background: rgba(255, 255, 255, 0.88);
}

.brand,
.nav-item,
.primary-action,
.text-button,
.icon-button {
  min-height: 44px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #15171f;
  text-decoration: none;
}

.brand-mark,
.metric-icon,
.role-icon,
.icon-button {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 8px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  color: #ffffff;
  background: var(--button-color);
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  margin-top: 2px;
  color: #667085;
  font-size: 0.82rem;
}

.nav-list {
  display: grid;
  gap: 6px;
  margin-top: 28px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border-radius: 8px;
  color: #4b5563;
  text-decoration: none;
  font-weight: 650;
}

.nav-item:hover,
.nav-item.active {
  color: #15171f;
  background: #eef3f0;
}

.main-content {
  min-width: 0;
  padding: 28px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--button-color);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
}

h2 {
  margin-bottom: 0;
  font-size: 1.05rem;
  line-height: 1.2;
}

.topbar-actions,
.actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.primary-action,
.text-button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 750;
  text-decoration: none;
}

.primary-action {
  gap: 8px;
  padding: 0 16px;
  color: #ffffff;
  background: var(--button-color);
}

.icon-button {
  width: 44px;
  color: var(--button-color);
  border: 1px solid #d5dde5;
  background: #ffffff;
}

.text-button {
  gap: 8px;
  padding: 0 14px;
  color: #15171f;
  border: 1px solid #d5dde5;
  background: #ffffff;
  cursor: pointer;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.metric-card,
.data-card {
  border: 1px solid #dde3ea;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(18, 27, 38, 0.06);
}

.metric-card {
  min-height: 172px;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px;
}

.metric-icon {
  width: 42px;
  height: 42px;
}

.accent-green {
  color: var(--button-color);
  background: var(--button-soft-color);
}

.accent-blue {
  color: #1f5fbf;
  background: #eaf1ff;
}

.accent-amber {
  color: #9a5b00;
  background: #fff3dc;
}

.accent-rose {
  color: #b43c5d;
  background: #ffeaf0;
}

.metric-label {
  color: #667085;
  font-size: 0.92rem;
}

.metric-card strong {
  font-size: 2.25rem;
  line-height: 1;
}

.metric-card small {
  color: #7a8491;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.8fr);
  gap: 14px;
}

.data-card {
  min-width: 0;
  padding: 18px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.section-heading.compact {
  align-items: flex-start;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid #e4e8ee;
  border-radius: 8px;
}

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 0.94rem;
}

th,
td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid #e8edf2;
  white-space: nowrap;
}

th {
  color: #667085;
  background: var(--table-color);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

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

tbody tr:hover {
  background: var(--table-hover-color);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 750;
}

.status-pill.in-progress {
  color: #1f5fbf;
  background: #eaf1ff;
}

.status-pill.ready {
  color: var(--button-color);
  background: var(--button-soft-color);
}

.status-pill.neutral {
  color: #5b6471;
  background: #eef1f4;
}

.status-pill.status-registered {
  color: #4b5563;
  background: #eef1f4;
}

.status-pill.status-sent-colombia {
  color: #075985;
  background: #cffafe;
}

.status-pill.status-intermediate {
  color: #6d28d9;
  background: #ede9fe;
}

.status-pill.status-in-colombia {
  color: #713f12;
  background: #fde68a;
}

.status-pill.status-final-requested {
  color: #9a3412;
  background: #fed7aa;
}

.status-pill.status-consolidated {
  color: #991b1b;
  background: #fee2e2;
}

.status-pill.status-payment-light {
  color: #166534;
  background: #dcfce7;
}

.status-pill.status-payment-dark {
  color: #ffffff;
  background: #166534;
}

.status-pill.status-gold {
  color: #713f12;
  background: #facc15;
}

.role-list {
  display: grid;
  gap: 12px;
}

.role-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  border: 1px solid #e4e8ee;
  border-radius: 8px;
  background: #fbfcfd;
}

.role-icon {
  width: 42px;
  height: 42px;
  color: var(--button-color);
  background: var(--button-soft-color);
}

.role-item strong {
  display: block;
  margin-bottom: 5px;
}

.role-item p {
  margin-bottom: 0;
  color: #667085;
  line-height: 1.45;
}

@media (max-width: 980px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-shell.single {
    grid-template-columns: minmax(0, 1fr);
  }

  .auth-preview {
    grid-template-columns: 1fr;
  }

  .app-frame {
    grid-template-columns: 1fr;
  }

  .sidebar {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid #dde3ea;
  }

  .nav-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .nav-item {
    justify-content: center;
  }

  .summary-grid,
  .content-grid,
  .prealert-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .packages-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .auth-shell {
    padding: 12px;
  }

  .auth-links {
    align-items: stretch;
    flex-direction: column;
  }

  .register-form,
  .form-actions,
  .prealert-form,
  .admin-package-form,
  .manual-package-form,
  .settings-grid,
  .settings-preview-row,
  .logo-editor-layout,
  .locker-user-form {
    grid-template-columns: 1fr;
  }

  .locker-card-header,
  .locker-id-panel,
  .address-card-main,
  .address-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .locker-card h1 {
    font-size: 2rem;
  }

  .delivery-grid,
  .address-detail-grid,
  .payment-detail-grid {
    grid-template-columns: 1fr;
  }

  .payment-method-card {
    grid-template-columns: 56px 1fr;
  }

  .payment-method-card img {
    width: 56px;
    max-height: 48px;
  }

  .delivery-data-actions {
    grid-template-columns: 1fr;
  }

  .auth-links a,
  .register-link {
    justify-content: center;
    text-align: center;
  }

  .main-content {
    padding: 16px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar-actions {
    width: 100%;
  }

  .primary-action {
    flex: 1;
  }

  .nav-list,
  .summary-grid,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .nav-item {
    justify-content: flex-start;
  }

  .header-actions {
    left: 12px;
    right: 12px;
    min-width: 0;
  }
}
