/* =========================================================
   MOVAG CARGO
   BRAND SYSTEM
========================================================= */

:root {
  --movag-bg: #f7f5f2;
  --movag-surface: #ffffff;
  --movag-surface-soft: #faf8f5;

  --movag-black: #171717;
  --movag-charcoal: #292725;

  --movag-text: #1f1f1f;
  --movag-muted: #69645f;

  --movag-accent: #b49372;
  --movag-accent-dark: #87694d;
  --movag-accent-soft: #f3ece4;

  --movag-border: #e3ddd6;

  --movag-shadow:
    0 10px 30px rgba(35, 28, 22, 0.055);

  --movag-focus:
    0 0 0 3px rgba(180, 147, 114, 0.18);
}


/* =========================================================
   RESET / GLOBAL
========================================================= */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;

  background:
    var(--movag-bg);

  color:
    var(--movag-text);
}


/* =========================================================
   GENERIC PAGE / AUTH
========================================================= */

.page-shell {
  min-height: 100vh;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 24px;

  background:
    linear-gradient(
      145deg,
      #faf8f5 0%,
      #f4f0eb 100%
    );
}

.card {
  width: 100%;
  max-width: 520px;

  background:
    var(--movag-surface);

  border:
    1px solid
    var(--movag-border);

  border-radius: 18px;

  padding: 36px;

  box-shadow:
    var(--movag-shadow);
}

.card h1 {
  font-size: 32px;

  margin-bottom: 8px;

  color:
    var(--movag-black);
}

.card p {
  color:
    var(--movag-muted);

  margin-bottom: 24px;
}

.auth-card {
  max-width: 620px;
}

.auth-brand {
  display: flex;
  justify-content: center;

  margin-bottom: 28px;

  text-decoration: none;
}

.auth-logo {
  display: block;

  width: min(270px, 76%);
  height: auto;

  object-fit: contain;
}

.auth-form {
  display: flex;
  flex-direction: column;

  gap: 18px;
}


/* =========================================================
   STATUS BOX
========================================================= */

.status-box {
  padding: 16px;

  border-radius: 10px;

  background: #eef2ff;
  color: #3730a3;

  font-weight: 600;
}

.status-box.success {
  background: #dcfce7;
  color: #166534;
}

.status-box.error {
  background: #fee2e2;
  color: #991b1b;
}


/* =========================================================
   FORMS
========================================================= */

.form-grid {
  display: grid;

  grid-template-columns:
    1fr 1fr;

  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;

  gap: 7px;
}

.form-group label {
  font-size: 14px;
  font-weight: 700;

  color:
    #383532;
}

.form-group input,
.form-group select {
  width: 100%;

  border:
    1px solid
    var(--movag-border);

  border-radius: 10px;

  padding: 12px 14px;

  font-size: 16px;

  color:
    var(--movag-text);

  background:
    var(--movag-surface);

  outline: none;
}

.form-group input:focus,
.form-group select:focus {
  border-color:
    var(--movag-accent);

  box-shadow:
    var(--movag-focus);
}

.form-group input[readonly] {
  background:
    var(--movag-surface-soft);

  color:
    var(--movag-muted);

  cursor:
    not-allowed;
}


/* =========================================================
   BUTTONS
========================================================= */

.primary-button {
  border: none;

  border-radius: 10px;

  padding: 13px 18px;

  background:
    var(--movag-black);

  color:
    #ffffff;

  font-size: 16px;
  font-weight: 700;

  cursor: pointer;

  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.primary-button:hover {
  background:
    var(--movag-charcoal);
}

.primary-button:active {
  transform:
    translateY(1px);
}


/* =========================================================
   MESSAGES / LINKS
========================================================= */

.auth-message {
  margin-top: 18px;

  padding: 14px;

  border-radius: 10px;

  font-weight: 600;
}

.auth-message.success {
  background: #dcfce7;
  color: #166534;
}

.auth-message.error {
  background: #fee2e2;
  color: #991b1b;
}

.auth-message.info {
  background: #eaf2ff;
  color: #234b83;
}

.auth-message.hidden {
  display: none;
}

.auth-link {
  margin-top: 22px;
}

.auth-link a {
  color:
    var(--movag-accent-dark);

  font-weight: 700;

  text-decoration: none;
}

.auth-link a:hover {
  text-decoration: underline;
}


/* =========================================================
   TOPBAR + REAL LOGO
========================================================= */

.topbar {
  min-height: 82px;

  background:
    var(--movag-surface);

  color:
    var(--movag-black);

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 24px;

  padding: 12px 6%;

  border-bottom:
    1px solid
    var(--movag-border);

  box-shadow:
    0 3px 14px
    rgba(0, 0, 0, 0.025);
}

.topbar-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;

  gap: 2px;
}

.topbar-logo-link {
  display: block;

  line-height: 0;

  text-decoration: none;
}

.topbar-logo {
  display: block;

  width: 180px;
  max-width: 42vw;

  height: auto;

  object-fit: contain;
}

.topbar-brand > span {
  color:
    var(--movag-muted);

  font-size: 12px;

  letter-spacing: 0.4px;
}

.secondary-button {
  border:
    1px solid
    #cbc4bd;

  background:
    transparent;

  color:
    var(--movag-black);

  border-radius: 9px;

  padding: 10px 16px;

  font-weight: 600;

  text-decoration: none;

  cursor: pointer;

  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.secondary-button:hover {
  background:
    var(--movag-surface-soft);

  border-color:
    var(--movag-accent);
}


/* =========================================================
   DASHBOARD
========================================================= */

.dashboard-shell {
  width:
    min(1180px, 92%);

  margin:
    0 auto;

  padding:
    40px 0 70px;
}

.dashboard-hero {
  display: flex;

  justify-content: space-between;

  gap: 30px;

  align-items: center;

  margin-bottom: 30px;
}

.dashboard-hero h1 {
  font-size: 38px;

  margin-bottom: 8px;

  color:
    var(--movag-black);
}

.eyebrow {
  color:
    var(--movag-accent-dark);

  font-weight: 800;

  text-transform: uppercase;

  font-size: 12px;

  letter-spacing: 1.2px;

  margin-bottom: 7px;
}


/* =========================================================
   LOCKER
========================================================= */

.locker-card {
  min-width: 230px;

  background:
    var(--movag-black);

  color:
    #ffffff;

  padding:
    22px 26px;

  border-radius: 16px;

  box-shadow:
    0 10px 24px
    rgba(0, 0, 0, 0.11);
}

.locker-card span {
  display: block;

  color:
    #b8b1aa;

  margin-bottom: 6px;
}

.locker-card strong {
  font-size: 29px;
}


/* =========================================================
   DASHBOARD CARDS
========================================================= */

.dashboard-grid {
  display: grid;

  grid-template-columns:
    2fr 1fr;

  gap: 22px;

  margin-bottom: 34px;
}

.dashboard-card {
  background:
    var(--movag-surface);

  border:
    1px solid
    var(--movag-border);

  border-radius: 16px;

  padding: 26px;

  box-shadow:
    var(--movag-shadow);
}

.dashboard-card h3 {
  margin-bottom: 20px;

  color:
    var(--movag-black);
}

.profile-row {
  display: flex;

  justify-content: space-between;

  gap: 20px;

  padding: 13px 0;

  border-bottom:
    1px solid
    var(--movag-border);
}

.profile-row:last-child {
  border-bottom: 0;
}

.profile-row span {
  color:
    var(--movag-muted);
}

.summary-number {
  font-size: 48px;

  font-weight: 800;

  color:
    var(--movag-black);
}


/* =========================================================
   PROFILE
========================================================= */

.profile-edit-card {
  max-width: 820px;

  margin:
    0 auto;
}

.profile-back-link {
  display: inline-block;

  text-decoration: none;
}

.profile-card-heading {
  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 16px;

  margin-bottom: 20px;
}

.profile-card-heading h3 {
  margin-bottom: 0;
}

.profile-edit-link {
  color:
    var(--movag-accent-dark);

  font-size: 14px;

  font-weight: 700;

  text-decoration: none;
}

.profile-edit-link:hover {
  text-decoration: underline;
}

.profile-completion-notice {
  background:
    #faf7f3;

  border:
    1px solid
    #e6d5c4;

  border-radius: 14px;

  padding: 18px 20px;

  margin-bottom: 24px;

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 20px;
}

.profile-completion-notice.hidden {
  display: none;
}

.profile-completion-notice strong {
  display: block;

  color:
    #6f553c;

  margin-bottom: 4px;
}

.profile-completion-notice p {
  color:
    var(--movag-muted);
}

.profile-action-button {
  flex-shrink: 0;

  background:
    var(--movag-black);

  color:
    #ffffff;

  padding: 10px 16px;

  border-radius: 10px;

  font-weight: 700;

  text-decoration: none;
}

.profile-action-button:hover {
  background:
    var(--movag-charcoal);
}


/* =========================================================
   PACKAGES
========================================================= */

.packages-section {
  margin-top: 15px;
}

.section-heading {
  margin-bottom: 20px;
}

.packages-container {
  display: grid;

  gap: 20px;
}

.package-list-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(0, 1.4fr);
  gap: 14px;
  align-items: end;
  margin-bottom: 0;
  padding: 16px;
  background: var(--movag-surface);
  border: 1px solid var(--movag-border);
  border-radius: 14px;
  box-shadow: var(--movag-shadow);
}

.packages-container > .admin-packages-heading {
  margin-bottom: 0;
}

.package-list-toolbar .form-group {
  margin: 0;
}

.package-list-toolbar input,
.package-list-toolbar select {
  width: 100%;
}

.package-toolbar-label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
}

.package-filter-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.package-filter-button {
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid var(--movag-border);
  border-radius: 10px;
  background: #ffffff;
  color: var(--movag-text);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.package-filter-button:hover,
.package-filter-button.active {
  border-color: var(--movag-black);
  background: var(--movag-black);
  color: #ffffff;
}

.bulk-print-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(190px, 240px) auto;
  gap: 16px;
  align-items: end;
  margin-bottom: 18px;
  padding: 18px;
  background: var(--movag-surface);
  border: 1px solid var(--movag-border);
  border-radius: 14px;
  box-shadow: var(--movag-shadow);
}

.bulk-print-toolbar .form-group {
  margin: 0;
}

.bulk-print-toolbar select {
  width: 100%;
}

.bulk-print-toolbar button {
  min-height: 46px;
}

#adminPackagesContainer {
  max-height: 760px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 8px;
  scrollbar-gutter: stable;
}

@media (max-width: 650px) {
  .package-list-toolbar {
    grid-template-columns: 1fr;
  }

  .package-filter-buttons {
    grid-template-columns: 1fr;
  }

  .bulk-print-toolbar {
    grid-template-columns: 1fr;
  }
}

.package-card {
  background:
    var(--movag-surface);

  border:
    1px solid
    var(--movag-border);

  border-radius: 16px;

  padding: 24px;

  box-shadow:
    var(--movag-shadow);
}

.package-card-header {
  display: flex;

  justify-content: space-between;

  align-items: flex-start;

  gap: 20px;

  margin-bottom: 20px;
}

.package-label {
  font-size: 12px;

  color:
    var(--movag-muted);

  text-transform:
    uppercase;
}

.package-card h3 {
  font-size: 24px;

  margin-top: 4px;

  color:
    var(--movag-black);
}

.status-pill {
  display: inline-block;

  background:
    var(--movag-accent-soft);

  color:
    var(--movag-accent-dark);

  border:
    1px solid
    #e5d5c4;

  font-weight: 700;

  padding: 8px 12px;

  border-radius: 999px;

  font-size: 13px;
}

.package-status-summary {
  max-width: 320px;

  text-align: right;
}

.package-status-description {
  margin-top: 9px;

  color:
    var(--movag-muted);

  font-size: 14px;

  line-height: 1.45;
}

.package-details {
  display: grid;

  grid-template-columns:
    repeat(
      4,
      minmax(0, 1fr)
    );

  gap: 18px;
}

.package-details div {
  display: flex;

  flex-direction: column;

  gap: 5px;
}

.package-details span {
  color:
    var(--movag-muted);

  font-size: 13px;
}

.package-photo {
  width: 100%;

  max-height: 350px;

  object-fit: cover;

  border-radius: 12px;

  margin-bottom: 20px;
}

.empty-state {
  background:
    var(--movag-surface);

  border:
    1px solid
    var(--movag-border);

  border-radius: 16px;

  padding: 45px;

  text-align: center;

  color:
    var(--movag-muted);

  box-shadow:
    var(--movag-shadow);
}

.empty-state h3 {
  color:
    var(--movag-black);

  margin-bottom: 7px;
}


/* =========================================================
   STATUS HISTORY
========================================================= */

.status-history {
  margin-top: 24px;

  padding-top: 20px;

  border-top:
    1px solid
    var(--movag-border);
}

.status-history h4 {
  margin-bottom: 16px;

  font-size: 16px;

  color:
    var(--movag-black);
}

.history-item {
  display: flex;

  gap: 12px;

  position: relative;

  padding-bottom: 18px;
}

.history-dot {
  width: 11px;
  height: 11px;

  border-radius: 50%;

  background:
    var(--movag-accent);

  margin-top: 5px;

  flex-shrink: 0;
}

.history-item strong {
  display: block;

  color:
    var(--movag-black);
}

.history-item span {
  display: block;

  margin-top: 3px;

  color:
    var(--movag-muted);

  font-size: 13px;
}

.history-item p {
  margin-top: 5px;

  color:
    #56514c;
}

.history-empty {
  color:
    var(--movag-muted);
}


/* =========================================================
   PAST PACKAGES
========================================================= */

.collapsible-heading {
  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 16px;
}

.hidden-section {
  display: none;
}

.past-toggle-button {
  border:
    1px solid
    var(--movag-accent);

  background:
    var(--movag-surface);

  color:
    var(--movag-accent-dark);

  border-radius: 10px;

  padding: 10px 16px;

  font-weight: 700;

  cursor: pointer;

  transition:
    0.2s ease;
}

.past-toggle-button:hover {
  background:
    var(--movag-black);

  border-color:
    var(--movag-black);

  color:
    #ffffff;
}

.past-toggle-button:focus {
  outline: none;

  box-shadow:
    var(--movag-focus);
}


/* =========================================================
   WAREHOUSE
========================================================= */

.warehouse-section {
  margin-bottom: 34px;
}

.warehouse-card {
  padding: 28px;
}

.warehouse-modern-card {
  width: 100%;
}

.warehouse-modern-header {
  display: flex;

  align-items: flex-start;

  justify-content: space-between;

  gap: 24px;

  padding-bottom: 24px;

  margin-bottom: 24px;

  border-bottom:
    1px solid
    var(--movag-border);
}

.warehouse-location-label {
  display: block;

  margin-bottom: 8px;

  color:
    var(--movag-accent-dark);

  font-size: 15px;

  font-weight: 700;
}

.warehouse-modern-header h3 {
  margin: 0;

  color:
    var(--movag-black);

  font-size: 26px;
}

.warehouse-locker-badge {
  background:
    var(--movag-black);

  color:
    #ffffff;

  padding: 10px 16px;

  border-radius: 10px;

  font-weight: 800;

  font-size: 18px;

  box-shadow:
    0 6px 15px
    rgba(0, 0, 0, 0.10);
}

.warehouse-modern-grid {
  display: grid;

  grid-template-columns:
    repeat(
      2,
      minmax(0, 1fr)
    );

  gap:
    22px 40px;
}

.warehouse-modern-row {
  display: flex;

  flex-direction: column;

  gap: 5px;
}

.warehouse-modern-row span {
  color:
    var(--movag-muted);

  font-size: 14px;
}

.warehouse-modern-row strong {
  color:
    var(--movag-black);

  font-size: 17px;

  line-height: 1.4;
}

.warehouse-hours {
  display: flex;

  align-items: center;

  gap: 10px;

  margin-top: 28px;

  padding-top: 22px;

  border-top:
    1px solid
    var(--movag-border);

  color:
    #56514c;
}

.warehouse-hours-icon {
  display: inline-flex;

  align-items: center;

  justify-content: center;

  width: 34px;
  height: 34px;

  border:
    2px solid
    var(--movag-accent);

  border-radius: 50%;

  color:
    var(--movag-accent-dark);

  font-size: 20px;
}

.warehouse-instructions {
  margin-top: 24px;

  padding: 16px;

  background:
    var(--movag-surface-soft);

  border:
    1px solid
    var(--movag-border);

  border-radius: 12px;
}

.warehouse-instructions p {
  margin-top: 6px;

  color:
    #56514c;
}

.warehouse-copy-button {
  width: 100%;

  display: flex;

  align-items: center;

  justify-content: center;

  gap: 10px;

  margin-top: 24px;

  padding: 14px 18px;

  border:
    1px solid
    #d8d0c7;

  border-radius: 12px;

  background:
    var(--movag-surface);

  color:
    var(--movag-black);

  font-size: 16px;

  font-weight: 700;

  cursor: pointer;

  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.warehouse-copy-button:hover {
  background:
    var(--movag-surface-soft);

  border-color:
    var(--movag-accent);
}

.warehouse-copy-button span {
  font-size: 22px;
}

.warehouse-copy-message {
  margin-top: 12px;

  text-align: center;

  color: #166534;

  font-size: 14px;

  font-weight: 700;
}

.warehouse-copy-message.hidden {
  display: none;
}

.warehouse-empty {
  text-align: center;

  padding: 20px;

  color:
    var(--movag-muted);
}

.warehouse-empty strong {
  display: block;

  color:
    var(--movag-black);

  margin-bottom: 6px;
}


/* =========================================================
   ADMIN
========================================================= */

.admin-grid {
  display: grid;
  align-items: stretch;

  grid-template-columns:
    1.4fr 1fr;

  gap: 22px;

  margin-bottom: 35px;
}

.admin-card-heading {
  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 20px;

  margin-bottom: 20px;
}

.admin-search {
  width: 280px;

  max-width: 100%;

  padding: 11px 13px;

  border:
    1px solid
    var(--movag-border);

  border-radius: 9px;

  background:
    var(--movag-surface);

  color:
    var(--movag-text);

  outline: none;
}

.admin-search:focus {
  border-color:
    var(--movag-accent);

  box-shadow:
    var(--movag-focus);
}

.admin-table-wrapper {
  max-height: 620px;

  overflow-x: auto;
  overflow-y: auto;

  border:
    1px solid
    var(--movag-border);

  border-radius: 12px;
}
.admin-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;

  background:
    var(--movag-surface);
}

.admin-table {
  width: 100%;

  border-collapse:
    collapse;
}

.admin-table th,
.admin-table td {
  text-align: left;

  padding:
    13px 12px;

  border-bottom:
    1px solid
    var(--movag-border);
}

.admin-table th {
  font-size: 13px;

  color:
    var(--movag-muted);

  text-transform:
    uppercase;
}

.admin-package-actions {
  margin-top: 22px;

  padding-top: 18px;

  border-top:
    1px solid
    var(--movag-border);

  display: flex;

  align-items: center;

  gap: 12px;
}

.admin-package-actions label {
  font-weight: 700;
}

.package-status-select {
  border:
    1px solid
    var(--movag-border);

  border-radius: 9px;

  padding: 9px 12px;

  background:
    var(--movag-surface);

  color:
    var(--movag-text);
}

.admin-packages-heading {
  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 16px;
}

.package-filter {
  min-width: 190px;

  border:
    1px solid
    var(--movag-border);

  border-radius: 10px;

  padding: 10px 12px;

  background:
    var(--movag-surface);

  color:
    var(--movag-text);

  font-weight: 600;
}


/* =========================================================
   CUSTOMER PICKER
========================================================= */

.customer-picker-group {
  position: relative;
}

.customer-search-results {
  position: absolute;

  top:
    calc(100% - 2px);

  left: 0;
  right: 0;

  z-index: 50;

  background:
    var(--movag-surface);

  border:
    1px solid
    var(--movag-border);

  border-radius: 10px;

  box-shadow:
    0 12px 30px
    rgba(0, 0, 0, 0.10);

  max-height: 280px;

  overflow-y: auto;
}

.customer-search-results.hidden {
  display: none;
}

.customer-search-option {
  width: 100%;

  border: none;

  background:
    var(--movag-surface);

  text-align: left;

  padding: 12px 14px;

  cursor: pointer;

  display: flex;

  flex-direction: column;

  gap: 4px;
}

.customer-search-option:hover {
  background:
    var(--movag-surface-soft);
}

.customer-search-option strong {
  color:
    var(--movag-black);

  font-size: 14px;
}

.customer-search-option span {
  color:
    var(--movag-muted);

  font-size: 12px;
}

.customer-search-empty {
  padding: 14px;

  color:
    var(--movag-muted);
}

.selected-customer {
  margin-top: 8px;

  padding: 10px 12px;

  border-radius: 9px;

  background:
    var(--movag-accent-soft);

  display: flex;

  flex-direction: column;

  gap: 3px;
}

.selected-customer.hidden {
  display: none;
}

.selected-customer span {
  color:
    var(--movag-muted);

  font-size: 12px;
}


/* =========================================================
   CUSTOMER DETAILS MODAL
========================================================= */

.customer-details-button {
  border:
    1px solid
    var(--movag-accent);

  background:
    var(--movag-surface);

  color:
    var(--movag-accent-dark);

  border-radius: 9px;

  padding: 8px 12px;

  font-size: 13px;

  font-weight: 700;

  cursor: pointer;

  white-space: nowrap;

  transition:
    0.2s ease;
}

.customer-details-button:hover {
  background:
    var(--movag-black);

  border-color:
    var(--movag-black);

  color:
    #ffffff;
}

.customer-details-button:focus {
  outline: none;

  box-shadow:
    var(--movag-focus);
}

.customer-details-modal {
  position: fixed;

  inset: 0;

  z-index: 1000;

  display: flex;

  align-items: center;

  justify-content: center;

  padding: 24px;

  background:
    rgba(20, 19, 18, 0.68);

  overflow-y: auto;
}

.customer-details-modal.hidden {
  display: none;
}

body.modal-open {
  overflow: hidden;
}

.customer-details-dialog {
  width:
    min(760px, 100%);

  max-height:
    calc(100vh - 48px);

  background:
    var(--movag-surface);

  border-radius: 18px;

  padding: 28px;

  box-shadow:
    0 24px 70px
    rgba(0, 0, 0, 0.20);

  overflow-y: auto;
}

.customer-details-modal-header {
  display: flex;

  align-items: flex-start;

  justify-content: space-between;

  gap: 20px;

  padding-bottom: 20px;

  margin-bottom: 22px;

  border-bottom:
    1px solid
    var(--movag-border);
}

.customer-details-modal-header h2 {
  color:
    var(--movag-black);
}

.customer-details-close {
  width: 40px;
  height: 40px;

  flex-shrink: 0;

  border: none;

  border-radius: 10px;

  background:
    var(--movag-surface-soft);

  color:
    var(--movag-black);

  font-size: 26px;

  line-height: 1;

  cursor: pointer;
}

.customer-details-close:hover {
  background:
    var(--movag-accent-soft);
}

.customer-details-summary {
  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 20px;

  padding: 18px;

  margin-bottom: 24px;

  background:
    var(--movag-surface-soft);

  border:
    1px solid
    var(--movag-border);

  border-radius: 14px;
}

.customer-details-summary h3 {
  margin-top: 4px;

  margin-bottom: 4px;

  font-size: 22px;

  color:
    var(--movag-black);
}

.customer-details-summary p {
  color:
    var(--movag-muted);
}

.customer-profile-status {
  display: inline-flex;

  align-items: center;

  border-radius: 999px;

  padding: 7px 11px;

  font-size: 12px;

  font-weight: 700;

  white-space: nowrap;
}

.customer-profile-status.complete {
  background: #dcfce7;

  color: #166534;
}

.customer-profile-status.incomplete {
  background: #fef3c7;

  color: #92400e;
}

.customer-details-grid {
  display: grid;

  grid-template-columns:
    repeat(
      2,
      minmax(0, 1fr)
    );

  gap: 14px;
}

.customer-detail-item {
  min-width: 0;

  padding: 16px;

  background:
    var(--movag-surface-soft);

  border:
    1px solid
    var(--movag-border);

  border-radius: 12px;

  display: flex;

  flex-direction: column;

  gap: 6px;
}

.customer-detail-item span {
  color:
    var(--movag-muted);

  font-size: 12px;

  font-weight: 700;

  text-transform:
    uppercase;

  letter-spacing:
    0.4px;
}

.customer-detail-item strong {
  color:
    var(--movag-black);

  font-size: 15px;

  line-height: 1.45;

  overflow-wrap:
    anywhere;
}

.customer-detail-wide {
  grid-column:
    1 / -1;
}


/* =========================================================
   PUBLIC HOMEPAGE
========================================================= */

.home-page {
  background:
    var(--movag-bg);

  color:
    var(--movag-black);
}


/* HEADER */

.home-header {
  min-height: 82px;

  padding:
    10px 6%;

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 24px;

  background:
    var(--movag-surface);

  border-bottom:
    1px solid
    var(--movag-border);

  box-shadow:
    0 3px 14px
    rgba(0, 0, 0, 0.025);
}

.home-brand {
  display: flex;

  align-items: center;

  text-decoration: none;

  line-height: 0;
}

.home-logo {
  display: block;

  width: 195px;

  height: auto;

  object-fit: contain;
}

.home-nav {
  display: flex;

  align-items: center;

  gap: 22px;
}

.home-login-link {
  color:
    var(--movag-black);

  text-decoration: none;

  font-weight: 700;
}

.home-login-link:hover {
  color:
    var(--movag-accent-dark);
}

.home-nav-button {
  background:
    var(--movag-black);

  color:
    #ffffff;

  padding: 11px 18px;

  border-radius: 10px;

  text-decoration: none;

  font-weight: 700;
}

.home-nav-button:hover {
  background:
    var(--movag-charcoal);
}


/* HERO */

.home-hero {
  width:
    min(1180px, 90%);

  margin:
    0 auto;

  min-height: 580px;

  display: grid;

  grid-template-columns:
    1.3fr 0.7fr;

  gap: 70px;

  align-items: center;

  padding:
    70px 0;
}

.home-hero h1 {
  font-size:
    clamp(
      46px,
      6vw,
      76px
    );

  line-height: 1.02;

  letter-spacing: -3px;

  margin-bottom: 24px;

  color:
    var(--movag-black);
}

.home-hero-text {
  max-width: 640px;

  font-size: 19px;

  line-height: 1.65;

  color:
    var(--movag-muted);
}

.home-hero-actions {
  display: flex;

  gap: 14px;

  margin-top: 32px;
}

.home-primary-button,
.home-secondary-button,
.home-light-button,
.home-outline-light-button {
  display: inline-flex;

  align-items: center;

  justify-content: center;

  padding: 13px 22px;

  border-radius: 10px;

  font-weight: 800;

  text-decoration: none;

  transition:
    0.2s ease;
}

.home-primary-button {
  background:
    var(--movag-black);

  color:
    #ffffff;
}

.home-primary-button:hover {
  background:
    var(--movag-charcoal);
}

.home-secondary-button {
  background:
    var(--movag-surface);

  color:
    var(--movag-black);

  border:
    1px solid
    var(--movag-border);
}

.home-secondary-button:hover {
  border-color:
    var(--movag-accent);
}


/* HERO CARD */

.home-hero-card {
  background:
    var(--movag-black);

  color:
    #ffffff;

  border-radius: 24px;

  padding: 38px;

  box-shadow:
    0 24px 60px
    rgba(0, 0, 0, 0.16);
}

.home-card-label {
  color:
    #bdb6af;

  font-size: 12px;

  letter-spacing: 1.5px;

  font-weight: 700;
}

.home-locker-example {
  display: block;

  font-size: 46px;

  margin:
    12px 0 18px;
}

.home-hero-card > p {
  color:
    #d2cec9;

  line-height: 1.6;
}

.home-mini-status {
  margin-top: 30px;

  padding-top: 22px;

  border-top:
    1px solid
    #414141;

  display: flex;

  align-items: flex-start;

  gap: 12px;
}

.home-status-dot {
  width: 11px;
  height: 11px;

  margin-top: 5px;

  border-radius: 50%;

  background: #22c55e;

  flex-shrink: 0;
}

.home-mini-status strong {
  display: block;
}

.home-mini-status small {
  display: block;

  margin-top: 4px;

  line-height: 1.45;

  color:
    #bdb6af;
}


/* GENERAL SECTIONS */

.home-section {
  width:
    min(1180px, 90%);

  margin:
    0 auto;

  padding:
    85px 0;
}

.home-section-heading {
  max-width: 700px;

  margin-bottom: 42px;
}

.home-section-heading h2 {
  font-size: 38px;

  margin-bottom: 12px;

  color:
    var(--movag-black);
}

.home-section-heading > p:last-child {
  color:
    var(--movag-muted);

  font-size: 17px;

  line-height: 1.6;
}


/* HOW IT WORKS */

.home-steps {
  display: grid;

  grid-template-columns:
    repeat(
      4,
      minmax(0, 1fr)
    );

  gap: 20px;
}

.home-step-card {
  background:
    var(--movag-surface);

  padding: 28px;

  border-radius: 18px;

  border:
    1px solid
    var(--movag-border);

  box-shadow:
    var(--movag-shadow);
}

.home-step-number {
  display: flex;

  align-items: center;

  justify-content: center;

  width: 38px;
  height: 38px;

  border-radius: 50%;

  background:
    var(--movag-black);

  color:
    #ffffff;

  font-weight: 800;

  margin-bottom: 22px;
}

.home-step-card h3 {
  margin-bottom: 10px;

  color:
    var(--movag-black);
}

.home-step-card p {
  color:
    var(--movag-muted);

  line-height: 1.6;
}


/* FEATURES */

.home-features-section {
  border-top:
    1px solid
    var(--movag-border);
}

.home-features {
  display: grid;

  grid-template-columns:
    repeat(
      2,
      minmax(0, 1fr)
    );

  gap: 20px;
}

.home-feature-card {
  background:
    var(--movag-surface);

  border:
    1px solid
    var(--movag-border);

  border-radius: 18px;

  padding: 30px;

  display: grid;

  grid-template-columns:
    auto 1fr;

  column-gap: 20px;

  box-shadow:
    var(--movag-shadow);
}

.home-feature-icon {
  grid-row:
    span 2;

  width: 46px;
  height: 46px;

  display: flex;

  align-items: center;

  justify-content: center;

  background:
    var(--movag-accent-soft);

  color:
    var(--movag-accent-dark);

  border-radius: 12px;

  font-weight: 900;
}

.home-feature-card h3 {
  margin-bottom: 8px;

  color:
    var(--movag-black);
}

.home-feature-card p {
  color:
    var(--movag-muted);

  line-height: 1.6;
}


/* CTA */

.home-cta {
  width:
    min(1180px, 90%);

  margin:
    70px auto;

  background:
    var(--movag-black);

  color:
    #ffffff;

  border-radius: 26px;

  padding: 52px;

  display: flex;

  justify-content: space-between;

  align-items: center;

  gap: 40px;

  box-shadow:
    0 20px 50px
    rgba(0, 0, 0, 0.12);
}

.home-cta h2 {
  font-size: 36px;

  margin-bottom: 10px;

  color:
    #ffffff;
}

.home-cta p {
  color:
    #cfc9c3;
}

.home-cta-eyebrow {
  color:
    #c8a783 !important;
}

.home-cta-actions {
  display: flex;

  gap: 12px;

  flex-shrink: 0;
}

.home-light-button {
  background:
    #ffffff;

  color:
    var(--movag-black);
}

.home-light-button:hover {
  background:
    #f1ece7;
}

.home-outline-light-button {
  border:
    1px solid
    #68625c;

  color:
    #ffffff;
}

.home-outline-light-button:hover {
  background:
    #2d2b29;
}


/* FOOTER */

.home-footer {
  border-top:
    1px solid
    var(--movag-border);

  background:
    var(--movag-surface);

  padding:
    26px 6%;

  display: flex;

  justify-content: space-between;

  align-items: center;

  gap: 20px;
}

.footer-logo {
  display: block;

  width: 165px;

  height: auto;

  object-fit: contain;
}

.home-footer p {
  color:
    var(--movag-muted);

  font-size: 14px;
}


/* =========================================================
   RESPONSIVE - TABLET
========================================================= */

@media (max-width: 900px) {

  .admin-grid {
    grid-template-columns: 1fr;
  }

  .admin-card-heading {
    flex-direction: column;

    align-items: stretch;
  }

  .admin-search {
    width: 100%;
  }

  .admin-package-actions {
    flex-direction: column;

    align-items: stretch;
  }

  .home-hero {
    grid-template-columns: 1fr;

    gap: 40px;

    padding:
      55px 0;
  }

  .home-hero-card {
    max-width: 600px;
  }

  .home-steps {
    grid-template-columns:
      1fr 1fr;
  }

  .home-cta {
    flex-direction: column;

    align-items: flex-start;
  }

}


/* =========================================================
   RESPONSIVE - DASHBOARD
========================================================= */

@media (max-width: 800px) {

  .dashboard-hero {
    flex-direction: column;

    align-items: stretch;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .package-details {
    grid-template-columns:
      1fr 1fr;
  }

}


@media (max-width: 700px) {

  .admin-packages-heading {
    flex-direction: column;

    align-items: stretch;
  }

  .package-filter {
    width: 100%;
  }

}


/* =========================================================
   RESPONSIVE - 650
========================================================= */

@media (max-width: 650px) {

  .warehouse-modern-header {
    flex-direction: column;
  }

  .warehouse-modern-grid {
    grid-template-columns: 1fr;

    gap: 18px;
  }

  .warehouse-locker-badge {
    align-self: flex-start;
  }

  .customer-details-modal {
    padding: 12px;

    align-items: flex-start;
  }

  .customer-details-dialog {
    max-height:
      calc(100vh - 24px);

    padding: 20px;

    border-radius: 14px;
  }

  .customer-details-modal-header {
    gap: 12px;
  }

  .customer-details-summary {
    flex-direction: column;

    align-items: flex-start;
  }

  .customer-details-grid {
    grid-template-columns: 1fr;
  }

  .customer-detail-wide {
    grid-column: auto;
  }

}


/* =========================================================
   RESPONSIVE - PHONE
========================================================= */

@media (max-width: 600px) {

  .form-grid {
    grid-template-columns: 1fr;
  }

  .profile-completion-notice {
    flex-direction: column;

    align-items: stretch;
  }

  .profile-action-button {
    text-align: center;
  }

  .package-status-summary {
    max-width: 100%;

    text-align: left;
  }

  .topbar {
    min-height: 72px;

    padding:
      10px 5%;

    gap: 12px;
  }

  .topbar-logo {
    width: 145px;

    max-width: 43vw;
  }

  .topbar-brand > span {
    font-size: 10px;
  }

  .secondary-button {
    padding:
      9px 11px;

    font-size: 13px;
  }

  .auth-logo {
    width:
      min(235px, 80%);
  }

  .home-header {
    min-height: 72px;

    padding:
      10px 5%;

    gap: 12px;
  }

  .home-logo {
    width: 135px;
  }

  .home-nav {
    gap: 9px;
  }

  .home-login-link {
    font-size: 13px;
  }

  .home-nav-button {
    padding:
      9px 11px;

    font-size: 13px;
  }

  .home-hero {
    width: 90%;

    min-height: auto;
  }

  .home-hero h1 {
    letter-spacing: -2px;
  }

  .home-hero-actions {
    flex-direction: column;
  }

  .home-primary-button,
  .home-secondary-button {
    width: 100%;
  }

  .home-hero-card {
    padding: 28px;
  }

  .home-locker-example {
    font-size: 36px;
  }

  .home-section {
    padding:
      60px 0;
  }

  .home-section-heading h2 {
    font-size: 30px;
  }

  .home-steps {
    grid-template-columns: 1fr;
  }

  .home-features {
    grid-template-columns: 1fr;
  }

  .home-feature-card {
    grid-template-columns: 1fr;
  }

  .home-feature-icon {
    grid-row: auto;

    margin-bottom: 16px;
  }

  .home-cta {
    padding:
      32px 24px;

    margin:
      40px auto;
  }

  .home-cta h2 {
    font-size: 30px;
  }

  .home-cta-actions {
    width: 100%;

    flex-direction: column;
  }

  .home-light-button,
  .home-outline-light-button {
    width: 100%;
  }

  .home-footer {
    flex-direction: column;

    align-items: flex-start;
  }

  .footer-logo {
    width: 145px;
  }

}


@media (max-width: 500px) {

  .package-details {
    grid-template-columns: 1fr;
  }

}
.instagram-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  text-decoration: none;
}

.instagram-icon {
  display: block;

  width: 36px;
  height: 36px;

  object-fit: contain;
}

.instagram-link:hover .instagram-icon {
  transform: scale(1.08);
}

/* October refinement: softer typography and a focused admin workspace. */
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button:focus-visible, a:focus-visible { outline: 3px solid #aa8865; outline-offset: 3px; }
.admin-page { background: #e8e9e7; --movag-border: #dce0dc; --movag-muted: #626964; --movag-shadow: 0 6px 24px rgba(30,40,34,.045); }
.admin-page .topbar { background: #fcfcfa; border-bottom-color: #d7dcd7; }
.admin-page .dashboard-card, .admin-page .billing-card { box-shadow: var(--movag-shadow); }
.admin-page .dashboard-hero h1 { font-size: clamp(27px,3vw,35px); letter-spacing: -.8px; }
.admin-page .dashboard-hero p:not(.eyebrow) { line-height: 1.6; }
.admin-page .dashboard-shell { padding-top: 26px; }
.workspace-nav { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 28px; padding: 5px; border: 1px solid #d5dbd5; background: #dfe3de; border-radius: 12px; width: fit-content; }
.workspace-nav a { padding: 10px 16px; border-radius: 8px; color: #58605a; text-decoration: none; font-size: 14px; font-weight: 650; }
.workspace-nav a:hover { background: #f1f3ef; }
.workspace-nav a[aria-current="page"] { background: #fff; color: #28382e; box-shadow: 0 2px 5px #26382b0a; }
.workspace-nav span { font-size: 10px; padding: 3px 6px; margin-left: 5px; background: #ede5d9; color: #785c3b; border-radius: 5px; text-transform: uppercase; }
@media(max-width: 600px) { .workspace-nav { width: 100%; } .workspace-nav a { flex: 1; text-align: center; padding: 10px 7px; font-size: 12px; } }

/* Package creation: explicit packaging allowance, no repeated adjustment. */
.weight-percent-presets { display:flex; gap:7px; margin-top:10px; flex-wrap:wrap; }
.weight-percent-presets button { border:1px solid var(--movag-border); border-radius:7px; padding:7px 12px; background:#fff; color:var(--movag-muted); cursor:pointer; font-size:12px; }
.weight-percent-presets button.active { border-color:#92704e; background:#f1e8dd; color:#765636; }

/* Operations refinement */
.bulk-status-builder {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px 18px;
  align-items:end;
}
.bulk-status-builder .form-group { margin:0; }
.bulk-status-preview {
  margin-top:18px;
  max-height:230px;
  overflow:auto;
  border:1px solid var(--movag-border);
  border-radius:12px;
  background:var(--movag-surface-soft);
  padding:14px 16px;
  color:var(--movag-muted);
  font-size:13px;
  line-height:1.55;
}
.bulk-status-preview strong { color:var(--movag-text); }
.bulk-status-preview ul { margin:10px 0 0; padding-left:20px; }
.bulk-status-preview p { margin-top:8px; }
.package-status-filter-label {
  grid-column: 1 / -1;
  min-width: 0;
  display:flex;
  align-items:center;
  gap:8px;
  margin-left:0;
  font-size:12px;
  font-weight:700;
  color:var(--movag-muted);
}
.package-status-filter-label select {
  min-width:0;
  max-width:100%;
  flex:1;
  height:44px;
  padding:9px 34px 9px 11px;
  border:1px solid var(--movag-border);
  border-radius:9px;
  background:#fff;
  color:var(--movag-text);
}
.customer-tariff-card {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(260px,.8fr);
  gap:24px;
  margin-top:20px;
  padding:20px;
  border:1px solid #ddcfbf;
  border-radius:14px;
  background:#faf6f1;
}
.customer-tariff-card h3 { margin:5px 0 7px; }
.customer-tariff-card p { color:var(--movag-muted); line-height:1.5; }
.customer-tariff-controls { display:grid; gap:9px; align-content:start; }
.customer-tariff-controls label { font-size:12px; font-weight:700; }
.customer-tariff-controls select,
.customer-tariff-controls input {
  width:100%;
  padding:11px 12px;
  border:1px solid var(--movag-border);
  border-radius:9px;
  background:#fff;
}
#customerTariffStatus { min-height:18px; font-size:12px; }
@media(max-width:800px) {
  .bulk-status-builder { grid-template-columns:1fr 1fr; }
  .customer-tariff-card { grid-template-columns:1fr; }
}
@media(max-width:560px) {
  .bulk-status-builder { grid-template-columns:1fr; }
  .package-filter-buttons { align-items:stretch; }
  .package-status-filter-label { flex-direction:column; align-items:stretch; width:100%; }
  .package-status-filter-label select { width:100%; min-width:0; }
}
.weight-help { margin-top:9px; color:var(--movag-muted); font-size:11px; line-height:1.6; }
.weight-preview { display:block; margin-top:12px; padding:12px 14px; border-radius:8px; background:#eef2eb; color:#45553d; font-size:13px; line-height:1.5; font-weight:600; }
.weight-preview.invalid { background:#fff1eb; color:#994e32; }

/* Let the customer scroll area fill the height set by the package form. */
@media (min-width:901px){
  .admin-customers-card{display:flex;flex-direction:column;min-width:0;min-height:400px}
  .admin-customers-card .admin-card-heading{flex-shrink:0}
  .admin-customers-card #customersContainer{position:relative;flex:1;min-height:0}
  .admin-customers-card .admin-table-wrapper{position:absolute;inset:0;max-height:none;height:100%}
}
