/* ============================================================
   TRUE CARGO — STAFF DASHBOARD STYLES
   staff-dashboard.css
   ============================================================ */

:root {
  --gold-100: #fff9e0;
  --gold-200: #ffeea0;
  --gold-300: #ffd84d;
  --gold-400: #fecc00;
  --gold-500: #e6b800;
  --gold-600: #b38f00;
  --navy-900: #0b0f1a;
  --navy-800: #111827;
  --navy-700: #1a2035;
  --navy-600: #243050;
  --slate-100: #f4f6fa;
  --slate-200: #e8ecf4;
  --slate-300: #d2d9e8;
  --slate-400: #9aa3bc;
  --slate-600: #5a6482;
  --white:     #ffffff;
  --success:   #0c9e4c;
  --danger:    #d63031;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(11,15,26,.07);
  --shadow-md: 0 6px 24px rgba(11,15,26,.10);
  --shadow-gold: 0 4px 20px rgba(254,204,0,.22);
  --transition: all .22s cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'DM Sans', sans-serif; background: var(--slate-100); color: var(--navy-800); line-height: 1.6; }
input, button { font-family: inherit; }
a { text-decoration: none; }

/* ── SUB NAVBAR ── */
.sub-navbar {
  width: 100%;
  background: var(--white);
  border-bottom: 2px solid var(--slate-200);
  box-shadow: 0 3px 12px rgba(11,15,26,.07);
  display: none;
}
.sub-navbar.visible { display: block; }
.sub-navbar__inner {
  max-width: 1200px; margin: auto;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 20px;
}
.sub-navbar__links { display: flex; }
.sub-navbar__link {
  display: flex; align-items: center; gap: 8px;
  padding: 16px 22px; font-size: 14px; font-weight: 600;
  color: var(--slate-600); border-bottom: 3px solid transparent;
  cursor: pointer; transition: var(--transition);
}
.sub-navbar__link:hover { background: var(--gold-100); border-bottom-color: var(--gold-300); }
.sub-navbar__link.active {
  border-bottom-color: var(--gold-400);
  background: var(--gold-100); color: var(--navy-900); font-weight: 700;
}
.sub-navbar__welcome { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; }
.sub-navbar__avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 800; color: var(--navy-900);
  box-shadow: var(--shadow-gold);
}

/* ── PAGE WRAP ── */
.page-wrap { max-width: 960px; margin: auto; padding: 20px; }

/* ============================================================
   LOGIN CARD
   ============================================================ */
.login-section {
  min-height: 60vh;
  display: flex; align-items: center; justify-content: center;
  padding: 40px 20px; background-color: white;
}
.login-card {
  background: var(--white); border-radius: var(--radius-lg);
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-md);
  width: 100%; max-width: 440px; overflow: hidden;
}
.login-card-header {
  background: var(--navy-900);
  padding: 28px 32px 24px;
  position: relative; overflow: hidden; text-align: center;
}
.login-card-header::before {
  content: ''; position: absolute; top: -40px; right: -40px;
  width: 160px; height: 160px; border-radius: 50%;
  background: radial-gradient(circle, rgba(254,204,0,.14) 0%, transparent 70%);
  pointer-events: none;
}
.login-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(254,204,0,.12); border: 1px solid rgba(254,204,0,.25);
  border-radius: 50px; padding: 5px 14px;
  font-size: 11px; font-weight: 700; color: var(--gold-300);
  letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px;
}
.login-card-header h2 { font-size: 22px; font-weight: 800; color: var(--white); margin-bottom: 4px; }
.login-card-header p  { font-size: 13px; color: var(--slate-400); }
.login-card-body { padding: 28px 32px 32px; }

/* ── FIELDS ── */
.field { margin-bottom: 16px; }
.field label {
  display: block; font-size: 11px; font-weight: 700;
  color: var(--slate-600); margin-bottom: 5px;
  letter-spacing: .06em; text-transform: uppercase;
}
.field-inner { position: relative; }
.di {
  width: 100%; border: 1.5px solid var(--slate-300);
  background: var(--slate-100); border-radius: var(--radius-sm);
  padding: 10px 14px; font-size: 13px; color: var(--navy-800);
  outline: none; transition: var(--transition); -webkit-appearance: none;
}
.di:focus {
  border-color: var(--gold-400); background: var(--white);
  box-shadow: 0 0 0 3px rgba(254,204,0,.15);
}
.di::placeholder { color: var(--slate-400); }
.di.error { border-color: var(--danger); }

/* password toggle */
.pw-toggle {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  font-size: 16px; color: var(--slate-400); padding: 2px;
  transition: var(--transition);
}
.pw-toggle:hover { color: var(--navy-700); }

.field-error { font-size: 11px; color: var(--danger); margin-top: 4px; display: none; }
.field-error.show { display: block; }

/* ── LOGIN BUTTON ── */
.btn-login {
  width: 100%;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-300));
  color: var(--navy-900); border: none; border-radius: var(--radius-md);
  padding: 13px 20px; font-size: 14px; font-weight: 800;
  cursor: pointer; transition: var(--transition);
  box-shadow: var(--shadow-gold);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 6px;
}
.btn-login:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(254,204,0,.38); }
.btn-login:active { transform: translateY(0); }

.login-footer-note { text-align: center; margin-top: 18px; font-size: 12px; color: var(--slate-400); }
.login-footer-note a { color: var(--gold-600); font-weight: 600; }
.login-footer-note a:hover { color: var(--navy-800); }

/* ============================================================
   TAB CONTENT
   ============================================================ */
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ── PROFILE ── */
.profile-header {
  background: var(--navy-900); border-radius: var(--radius-lg);
  padding: 28px 32px; margin-bottom: 14px;
  display: flex; align-items: center; gap: 20px;
  position: relative; overflow: hidden;
}
.profile-header::before {
  content: ''; position: absolute; top: -60px; right: -60px;
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(254,204,0,.12) 0%, transparent 70%);
  pointer-events: none;
}
.profile-avatar-lg {
  width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 800; color: var(--navy-900);
  box-shadow: var(--shadow-gold); position: relative; z-index: 1;
}
.profile-header-info { position: relative; z-index: 1; }
.profile-header-info h3 { font-size: 20px; font-weight: 800; color: var(--white); margin-bottom: 6px; }
.role-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(254,204,0,.15); border: 1px solid rgba(254,204,0,.3);
  border-radius: 50px; padding: 3px 10px;
  font-size: 11px; font-weight: 700; color: var(--gold-300);
  letter-spacing: .06em; text-transform: uppercase;
}

/* profile cards — always single column list */
.profile-grid { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.profile-card {
  background: var(--white); border-radius: var(--radius-sm);
  border: 1px solid var(--slate-200); padding: 9px 14px;
  box-shadow: var(--shadow-sm);
  display: flex; align-items: center; gap: 10px;
}
.profile-card-icon    { font-size: 16px; flex-shrink: 0; width: 20px; text-align: center; }
.profile-card-content { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 8px; }
.profile-card-label   {
  font-size: 10px; font-weight: 700; color: var(--slate-400);
  text-transform: uppercase; letter-spacing: .07em;
  flex-shrink: 0; min-width: 76px;
}
.profile-card-value   { font-size: 13px; font-weight: 700; color: var(--navy-900); }
.profile-card-sub     { font-size: 11px; color: var(--slate-600); margin-left: 4px; }

.profile-status-row {
  background: var(--white); border-radius: var(--radius-md);
  border: 1.5px solid #0c9e4c; padding: 11px 16px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: 0 4px 12px rgba(12,158,76,.10);
}
.status-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--success); flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(12,158,76,.2);
}
.status-text  { font-size: 13px; font-weight: 700; color: var(--success); }
.status-sub   { font-size: 11px; color: var(--slate-600); margin-left: auto; }

/* ── TASKS ── */
.section-wrap {
  background: var(--white); border-radius: var(--radius-lg);
  border: 1px solid var(--slate-200); padding: 20px 22px;
  box-shadow: var(--shadow-md);
}
.tasks-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.tasks-title  { font-size: 17px; font-weight: 800; color: var(--navy-900); }
.tasks-count  {
  background: var(--gold-100); border: 1px solid var(--gold-300);
  border-radius: 50px; padding: 3px 12px;
  font-size: 12px; font-weight: 700; color: var(--gold-600);
}
.task-list { display: flex; flex-direction: column; gap: 8px; }
.task-item {
  background: var(--white); border-radius: var(--radius-md);
  border: 1.5px solid var(--slate-200); padding: 11px 14px;
  box-shadow: var(--shadow-sm);
  display: flex; align-items: center; gap: 12px;
  transition: var(--transition);
}
.task-item:hover { border-color: var(--gold-300); box-shadow: var(--shadow-gold); transform: translateY(-1px); }
.task-icon {
  font-size: 18px; flex-shrink: 0;
  width: 38px; height: 38px; border-radius: var(--radius-sm);
  background: var(--gold-100);
  display: flex; align-items: center; justify-content: center;
}
.task-body  { flex: 1; min-width: 0; }
.task-name  { font-size: 13px; font-weight: 700; color: var(--navy-900); margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.task-meta  { font-size: 11px; color: var(--slate-600); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.task-badge {
  flex-shrink: 0; align-self: center;
  font-size: 10px; font-weight: 700;
  border-radius: 50px; padding: 3px 9px;
  text-transform: uppercase; letter-spacing: .05em; white-space: nowrap;
}
.badge-pending  { background: #fff3cd; color: #856404; border: 1px solid #ffc107; }
.badge-progress { background: #cfe2ff; color: #084298; border: 1px solid #9ec5fe; }
.badge-done     { background: #d1e7dd; color: #0a3622; border: 1px solid #a3cfbb; }
.badge-urgent   { background: #f8d7da; color: #842029; border: 1px solid #f5c2c7; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 600px) {
  /* page */
  .page-wrap { padding: 20px 12px; }

  /* sub-navbar */
  .sub-navbar__link    { padding: 13px 16px; font-size: 13px; }
  .sub-navbar__welcome { font-size: 13px; }

  /* login */
  .login-card-body, .login-card-header { padding: 20px 18px; }

  /* profile header */
  .profile-header {
    flex-direction: column; text-align: center;
    padding: 20px 16px; gap: 10px; margin-bottom: 10px;
  }

  /* profile cards — label above value on very small screens */
  .profile-card         { padding: 8px 12px; gap: 8px; }
  .profile-card-icon    { font-size: 15px; width: 18px; }
  .profile-card-content { flex-direction: column; align-items: flex-start; gap: 0; }
  .profile-card-label   { min-width: unset; font-size: 9px; }
  .profile-card-value   { font-size: 12px; }
  .profile-card-sub     { margin-left: 0; font-size: 10px; }

  /* status row */
  .profile-status-row { padding: 10px 14px; }
  .status-sub         { margin-left: auto; }

  /* tasks */
  .section-wrap { padding: 14px 12px; }
  .tasks-title  { font-size: 15px; }
  .task-item    { padding: 10px 10px; gap: 10px; }
  .task-icon    { width: 34px; height: 34px; font-size: 16px; }
  .task-name    { font-size: 12px; white-space: normal; }
  .task-meta    { font-size: 10px; white-space: normal; }
  .task-badge   { font-size: 9px; padding: 2px 8px; }
}





/* ============================================================
   TRUE CARGO — TASK CARDS v2 + ORDER MODAL + RATE CALCULATOR
   Append this entire file to the bottom of staff-dashboard.css
   ============================================================ */

/* ── TASK LOCATION ROW ── */
.task-location-row {
  display: flex; flex-direction: column; gap: 0;
  margin-top: 7px; background: var(--slate-100);
  border: 1px solid var(--slate-200); border-radius: var(--radius-sm);
  padding: 8px 10px;
}
.task-loc { display: flex; align-items: flex-start; gap: 7px; padding: 3px 0; }
.task-loc-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; margin-top: 3px; }
.task-loc-dot--pickup { background: #0c9e4c; box-shadow: 0 0 0 2px rgba(12,158,76,.2); }
.task-loc-dot--drop   { background: #d63031; box-shadow: 0 0 0 2px rgba(214,48,49,.2); }
.task-loc-label {
  font-size: 9px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .07em; color: var(--slate-400); min-width: 38px;
  flex-shrink: 0; margin-top: 2px;
}
.task-loc-addr { font-size: 11px; color: var(--navy-800); font-weight: 500; line-height: 1.4; }
.task-loc-divider {
  width: calc(100% - 16px); height: 1px;
  background: var(--slate-200); margin: 4px 0 4px 16px;
}

/* ── TASK RIGHT PANEL ── */
.task-right {
  flex-shrink: 0; display: flex; flex-direction: column;
  align-items: flex-end; gap: 8px; align-self: flex-start; padding-top: 2px;
}
.task-status-row { display: flex; flex-direction: column; gap: 5px; }
.btn-status {
  border: none; border-radius: 50px; padding: 5px 13px;
  font-size: 11px; font-weight: 700; cursor: pointer;
  transition: all .18s ease; white-space: nowrap;
  font-family: 'DM Sans', sans-serif;
}
.btn-status--active { background: var(--gold-100); color: var(--gold-600); border: 1.5px solid var(--gold-300); }
.btn-status--active:hover,
.btn-status--active-on {
  background: var(--gold-400); color: var(--navy-900);
  border-color: var(--gold-500); box-shadow: 0 2px 8px rgba(254,204,0,.35);
}
.btn-status--close { background: #fef2f2; color: #991b1b; border: 1.5px solid #fca5a5; }
.btn-status--close:hover { background: #fee2e2; border-color: #f87171; }

.task-item { align-items: flex-start !important; }
.task-body  { padding-top: 2px; }

/* ============================================================
   ORDER MODAL
   ============================================================ */
body.modal-open { overflow: hidden; }

.modal-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(11,15,26,.62); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 16px; opacity: 0; transition: opacity .25s ease;
}
.modal-overlay.modal-visible { opacity: 1; }
.modal-overlay.modal-closing { opacity: 0; }

.modal-box {
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(11,15,26,.22);
  width: 100%; max-width: 620px; max-height: 90vh;
  display: flex; flex-direction: column; overflow: hidden;
  transform: translateY(24px) scale(.97);
  transition: transform .28s cubic-bezier(.22,1,.36,1);
}
.modal-overlay.modal-visible .modal-box { transform: translateY(0) scale(1); }
.modal-overlay.modal-closing .modal-box { transform: translateY(20px) scale(.97); }

.modal-header {
  background: var(--navy-900); padding: 18px 22px;
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0; position: relative; overflow: hidden;
}
.modal-header::after {
  content: ''; position: absolute; bottom: -30px; right: -30px;
  width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle, rgba(254,204,0,.12) 0%, transparent 70%);
  pointer-events: none;
}
.modal-title-wrap { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; }
.modal-icon {
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  background: rgba(254,204,0,.15); border: 1px solid rgba(254,204,0,.25);
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.modal-title { font-size: 16px; font-weight: 800; color: var(--white); }
.modal-sub   { font-size: 11px; color: var(--slate-400); margin-top: 1px; max-width: 400px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.modal-close {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  border-radius: 50%; width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 13px; cursor: pointer;
  transition: var(--transition); flex-shrink: 0; position: relative; z-index: 1;
}
.modal-close:hover { background: rgba(255,255,255,.18); }

.modal-body {
  flex: 1; overflow-y: auto; padding: 20px 22px;
  display: flex; flex-direction: column; gap: 18px;
  scrollbar-width: thin; scrollbar-color: var(--slate-300) transparent;
}
.modal-body::-webkit-scrollbar { width: 5px; }
.modal-body::-webkit-scrollbar-thumb { background: var(--slate-300); border-radius: 4px; }

.modal-section-title {
  font-size: 11px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .07em; color: var(--slate-600); margin-bottom: 10px;
  display: flex; align-items: center; gap: 6px;
}
.modal-section-icon { font-size: 13px; }

.modal-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.modal-fields--3 { grid-template-columns: 1fr 1fr 1fr; }
.modal-field--full { grid-column: 1 / -1; }
.modal-field label {
  display: block; font-size: 10px; font-weight: 700;
  color: var(--slate-400); text-transform: uppercase;
  letter-spacing: .06em; margin-bottom: 4px;
}
.modal-field input {
  width: 100%; border: 1.5px solid var(--slate-200);
  background: var(--slate-100); border-radius: var(--radius-sm);
  padding: 8px 11px; font-size: 12px; font-weight: 600;
  color: var(--navy-800); outline: none; transition: var(--transition);
  font-family: 'DM Sans', sans-serif;
}
.modal-field input:focus {
  border-color: var(--gold-400); background: var(--white);
  box-shadow: 0 0 0 3px rgba(254,204,0,.12);
}
.modal-select {
  width: 100%; border: 1.5px solid var(--slate-200);
  background: var(--slate-100); border-radius: var(--radius-sm);
  padding: 8px 11px; font-size: 12px; font-weight: 600;
  color: var(--navy-800); outline: none; transition: var(--transition);
  font-family: 'DM Sans', sans-serif; cursor: pointer;
}
.modal-select:focus {
  border-color: var(--gold-400); background: var(--white);
  box-shadow: 0 0 0 3px rgba(254,204,0,.12);
}
.modal-pin-err { font-size: 11px; color: var(--danger); margin-top: 3px; min-height: 14px; }

.modal-dim-label {
  font-size: 11px; font-weight: 800; color: var(--slate-600);
  text-transform: uppercase; letter-spacing: .07em; margin: 12px 0 8px;
}

/* volumetric box */
.modal-vol-box {
  background: #1d2940; border: 1px solid #2d70ff;
  border-radius: var(--radius-sm); padding: 11px 14px; margin: 12px 0;
}
.modal-vol-title   { font-size: 12px; font-weight: 700; color: #fff; margin-bottom: 5px; }
.modal-vol-formula { font-size: 11px; color: #93a4c4; margin-bottom: 3px; }
.modal-vol-result  { font-size: 13px; color: #dbe4f7; }
.modal-vol-result strong { color: #f2b300; font-size: 15px; }

/* shipping mode */
.modal-mode-group { display: flex; gap: 10px; margin-bottom: 14px; }
.modal-mode-opt {
  flex: 1; border: 2px solid var(--slate-200); border-radius: var(--radius-md);
  padding: 10px 8px; cursor: pointer; transition: var(--transition);
  display: flex; align-items: center; justify-content: center; gap: 7px;
  background: var(--slate-100); font-size: 13px; font-weight: 700; color: var(--navy-800);
}
.modal-mode-opt input[type="radio"] { display: none; }
.modal-mode-opt:hover { border-color: var(--gold-300); background: var(--gold-100); }
.modal-mode-opt--on { border-color: var(--gold-400); background: var(--gold-100); box-shadow: 0 0 0 3px rgba(254,204,0,.15); }
.modal-mode-icon { font-size: 18px; }

/* calculate button */
.btn-calc-rate {
  width: 100%; background: #1d2940; border: 1px solid #2d70ff;
  color: #fff; font-size: 15px; font-weight: 700;
  border-radius: var(--radius-sm); padding: 12px 16px;
  cursor: pointer; transition: var(--transition);
  font-family: 'DM Sans', sans-serif; margin-bottom: 8px;
}
.btn-calc-rate:hover    { background: #243560; border-color: #4d8bff; }
.btn-calc-rate:disabled { opacity: .55; cursor: not-allowed; }

.modal-rate-status { font-size: 12px; color: var(--slate-400); min-height: 16px; margin-bottom: 4px; }
.modal-rate-error  { color: var(--danger) !important; }

/* rate result */
.rate-result-box {
  background: #1d2940; border: 1px solid #2d70ff;
  border-radius: var(--radius-md); padding: 16px; color: #eef3ff; margin-top: 6px;
}
.rate-result-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.rate-mode-label { font-size: 14px; font-weight: 700; color: #fff; }
.rate-total-amt  { font-size: 22px; font-weight: 800; color: #f2b300; }
.rate-breakdown  {
  border-top: 1px solid rgba(255,255,255,.12);
  border-bottom: 1px solid rgba(255,255,255,.12);
  padding: 8px 0; margin-bottom: 10px;
}
.rate-row { display: flex; justify-content: space-between; font-size: 13px; margin: 4px 0; color: #cbd5e1; }
.rate-row strong { color: #fff; }
.rate-final-row { display: flex; justify-content: space-between; font-size: 16px; font-weight: 700; color: #2d70ff; margin-bottom: 8px; }
.rate-final-amt { color: #f2b300; font-size: 20px; font-weight: 800; }
.rate-meta-row  { font-size: 11px; color: #93a4c4; }

/* modal footer */
.modal-footer {
  padding: 14px 22px; border-top: 1px solid var(--slate-200);
  display: flex; gap: 10px; justify-content: flex-end;
  flex-shrink: 0; background: var(--white);
}
.btn-modal {
  border: none; border-radius: var(--radius-md); padding: 10px 22px;
  font-size: 13px; font-weight: 700; cursor: pointer;
  transition: var(--transition); font-family: 'DM Sans', sans-serif;
}
.btn-modal--cancel  { background: var(--slate-100); color: var(--slate-600); border: 1.5px solid var(--slate-300); }
.btn-modal--cancel:hover { background: var(--slate-200); }
.btn-modal--confirm { background: linear-gradient(135deg, var(--gold-400), var(--gold-300)); color: var(--navy-900); box-shadow: var(--shadow-gold); }
.btn-modal--confirm:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(254,204,0,.4); }

/* responsive */
@media (max-width: 600px) {
  .task-right { align-self: stretch; flex-direction: row; justify-content: space-between; align-items: center; }
  .task-status-row { flex-direction: row; }
  .modal-fields, .modal-fields--3 { grid-template-columns: 1fr; }
  .modal-field--full { grid-column: 1; }
  .modal-box { max-height: 95vh; }
  .modal-header, .modal-body, .modal-footer { padding: 14px 16px; }
}
@media (max-width: 400px) {
  .task-status-row { flex-direction: column; }
}

/* ============================================================
   RATE CALCULATOR INSIDE MODAL
   ============================================================ */

/* select */
.modal-select {
  width: 100%;
  border: 1.5px solid var(--slate-200);
  background: var(--slate-100);
  border-radius: var(--radius-sm);
  padding: 8px 11px;
  font-size: 12px;
  font-weight: 600;
  color: var(--navy-800);
  outline: none;
  transition: var(--transition);
  font-family: 'DM Sans', sans-serif;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.modal-select:focus {
  border-color: var(--gold-400);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(254,204,0,.12);
}

/* pincode error */
.rc-pin-error {
  font-size: 10px;
  color: var(--danger);
  margin-top: 3px;
  min-height: 14px;
}

/* spacing helper */
.rc-mt { margin-top: 10px; }

/* input with unit suffix */
.rc-input-group {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--slate-200);
  background: var(--slate-100);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: var(--transition);
}
.rc-input-group:focus-within {
  border-color: var(--gold-400);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(254,204,0,.12);
}
.rc-input-group input {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--navy-800);
  font-family: 'DM Sans', sans-serif;
  flex: 1;
  width: 0;
}
.rc-unit {
  padding: 0 10px;
  font-size: 10px;
  font-weight: 700;
  color: var(--slate-400);
  background: var(--slate-200);
  white-space: nowrap;
  align-self: stretch;
  display: flex;
  align-items: center;
  letter-spacing: .04em;
}

/* dimensions 3-col */
.rc-three { grid-template-columns: 1fr 1fr 1fr !important; }
.rc-dim-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--slate-400);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin: 12px 0 6px;
}
.rc-dim-sub {
  display: block;
  font-size: 10px;
  color: var(--slate-600);
  margin-top: 4px;
  font-weight: 500;
}

/* volumetric box */
.rc-vol-box {
  background: var(--navy-700);
  border: 1px solid var(--navy-600);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin: 12px 0;
}
.rc-vol-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 7px;
}
.rc-vol-row {
  font-size: 11px;
  color: #b8c6e0;
  margin-bottom: 4px;
  line-height: 1.5;
}
.rc-vol-row strong { color: var(--white); }
.rc-vol-row span   { color: var(--gold-300); font-weight: 700; }

/* shipping mode */
.rc-mode-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--slate-400);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 8px;
}
.rc-mode-row {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}
.rc-mode-opt {
  flex: 1;
  border: 2px solid var(--slate-200);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  cursor: pointer;
  transition: var(--transition);
  font-size: 13px;
  font-weight: 600;
  color: var(--slate-600);
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--slate-100);
}
.rc-mode-opt input[type="radio"] { display: none; }
.rc-mode-opt:hover { border-color: var(--gold-300); background: var(--gold-100); color: var(--navy-800); }
.rc-mode-opt--selected {
  border-color: var(--gold-400);
  background: var(--gold-100);
  color: var(--navy-900);
  box-shadow: 0 0 0 3px rgba(254,204,0,.15);
}

/* calculate button */
.rc-calc-btn {
  width: 100%;
  background: var(--navy-800);
  border: 1.5px solid var(--navy-600);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'DM Sans', sans-serif;
  letter-spacing: .02em;
}
.rc-calc-btn:hover  { background: var(--navy-700); border-color: var(--gold-400); }
.rc-calc-btn:disabled { opacity: .55; cursor: not-allowed; }

/* status */
.rc-status {
  font-size: 12px;
  color: var(--danger);
  margin-top: 6px;
  min-height: 16px;
}

/* result card */
.rc-result {
  margin-top: 14px;
  background: var(--navy-700);
  border: 1.5px solid #2d70ff;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  color: var(--white);
}
.rc-result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.rc-result-mode  { font-size: 13px; font-weight: 700; color: #93b4e0; }
.rc-result-total { font-size: 22px; font-weight: 800; color: var(--white); }
.rc-result-rows  {
  border-top: 1px solid rgba(255,255,255,.12);
  border-bottom: 1px solid rgba(255,255,255,.12);
  padding: 8px 0; margin-bottom: 8px;
}
.rc-result-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 4px;
  color: #b8c6e0;
}
.rc-result-row strong { color: var(--white); }
.rc-result-grand {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 800;
  color: var(--gold-300);
  margin-bottom: 6px;
}
.rc-result-meta { font-size: 11px; color: #7a92b8; }

/* responsive */
@media (max-width: 600px) {
  .rc-three { grid-template-columns: 1fr 1fr 1fr !important; }
  .rc-mode-row { flex-direction: row; }
  .rc-result-total { font-size: 18px; }
}