/* Group Bama Order Tracker - styles */
.tot-wrap,
.tot-admin-wrap {
  direction: rtl;
  font-family: IRANSans, IranSans, "ایران سنس", Vazirmatn, Tahoma, Arial, sans-serif;
  box-sizing: border-box;
}
.tot-wrap *,
.tot-admin-wrap * {
  box-sizing: border-box;
}
.tot-wrap {
  max-width: 980px;
  margin: 28px auto;
  padding: 0 12px;
}
.tot-card {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 0% 0%, rgba(245, 158, 11, .25), transparent 28%), linear-gradient(135deg, #0f172a, #111827 58%, #1f2937);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 28px;
  padding: 30px;
  color: #fff;
  box-shadow: 0 24px 70px rgba(15,23,42,.28);
}
.tot-card-glow {
  position: absolute;
  inset: auto -90px -110px auto;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249,115,22,.35), transparent 68%);
  filter: blur(2px);
  pointer-events: none;
}
.tot-heading-row {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}
.tot-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fbbf24;
  background: rgba(251,191,36,.11);
  border: 1px solid rgba(251,191,36,.25);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 12px;
}
.tot-title {
  margin: 0 0 10px;
  color: #fff;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.5;
}
.tot-muted {
  margin: 0;
  max-width: 680px;
  color: #d1d5db;
  font-size: 14px;
  line-height: 2;
}
.tot-truck-icon {
  width: 70px;
  height: 70px;
  min-width: 70px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.12);
  font-size: 32px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.tot-form {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}
.tot-field label,
.tot-admin-form label {
  display: block;
  margin: 0 0 7px;
  color: #f3f4f6;
  font-size: 13px;
  font-weight: 800;
}
.tot-field input,
.tot-admin-form input[type="file"] {
  width: 100%;
  height: 50px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 16px;
  background: rgba(255,255,255,.98);
  color: #111827;
  padding: 12px 14px;
  font-size: 14px;
  outline: none;
  transition: .2s ease;
}
.tot-field input:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245,158,11,.22);
}
.tot-submit-row {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 2px;
}
.tot-submit-row span {
  color: #cbd5e1;
  font-size: 12px;
}
.tot-btn {
  border: 0;
  min-height: 50px;
  border-radius: 16px;
  padding: 13px 24px;
  cursor: pointer;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  color: #111827;
  font-weight: 950;
  box-shadow: 0 12px 28px rgba(249,115,22,.28);
  transition: .2s ease;
}
.tot-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}
.tot-alert {
  margin-top: 18px;
  border-radius: 18px;
  padding: 14px 16px;
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
  font-size: 14px;
  line-height: 1.9;
}
.tot-alert.warning {
  background: #fff7ed;
  color: #9a3412;
  border-color: #fed7aa;
}
.tot-alert.success {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
}
.tot-result {
  margin-top: 18px;
  background: #fff;
  color: #111827;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 16px 50px rgba(15,23,42,.10);
}
.tot-result-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.tot-result-head strong {
  font-size: 16px;
}
.tot-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  border-radius: 999px;
  padding: 8px 13px;
  font-weight: 900;
  font-size: 13px;
}
.tot-badge:before {
  content: "✓";
  width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: #10b981;
  color: #fff;
  font-size: 12px;
}
.tot-badge.pending {
  background: #fff7ed;
  color: #9a3412;
  border-color: #fed7aa;
}
.tot-badge.pending:before {
  content: "!";
  background: #f97316;
}
.tot-timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 4px 0 18px;
  position: relative;
}
.tot-step {
  position: relative;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 12px;
  color: #6b7280;
  min-height: 74px;
}
.tot-step span {
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #d1d5db;
  margin-bottom: 8px;
}
.tot-step b {
  font-size: 13px;
}
.tot-step.is-done,
.tot-step.is-active {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
}
.tot-step.is-done span,
.tot-step.is-active span {
  background: #22c55e;
}
.tot-step.is-active {
  background: linear-gradient(135deg, #fffbeb, #f0fdf4);
  border-color: #fcd34d;
  color: #92400e;
}
.tot-barcode-box {
  border: 1px dashed #f59e0b;
  background: linear-gradient(135deg, #fffbeb, #fff);
  border-radius: 18px;
  padding: 16px;
  margin: 14px 0 16px;
}
.tot-barcode-box span {
  display: block;
  color: #92400e;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 7px;
}
.tot-copy-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}
.tot-barcode-input {
  width: 100%;
  height: 52px;
  border: 1px solid #fcd34d;
  border-radius: 15px;
  background: #fff;
  color: #111827;
  font-size: 22px;
  letter-spacing: .8px;
  font-weight: 950;
  text-align: left;
  padding: 10px 14px;
  outline: none;
}
.tot-barcode-input:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245,158,11,.18);
}
.tot-copy-btn,
.tot-track-link {
  min-height: 52px;
  border: 0;
  border-radius: 15px;
  padding: 12px 18px;
  cursor: pointer;
  background: linear-gradient(135deg, #111827, #1f2937);
  color: #fff !important;
  font-weight: 950;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: .2s ease;
  box-shadow: 0 10px 24px rgba(17,24,39,.18);
}
.tot-copy-btn:hover,
.tot-track-link:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}
.tot-copy-btn.is-copied {
  background: linear-gradient(135deg, #059669, #10b981);
}
.tot-tracking-help {
  margin: 13px 0 12px;
  color: #78350f;
  font-size: 13px;
  line-height: 2;
  font-weight: 700;
}
.tot-track-link {
  background: linear-gradient(135deg, #fbbf24, #f97316);
  color: #111827 !important;
  box-shadow: 0 10px 24px rgba(249,115,22,.20);
}
.tot-track-link:after {
  content: "↗";
  font-weight: 900;
}
.tot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.tot-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.tot-mini {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 13px;
}
.tot-mini span {
  display: block;
  color: #6b7280;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 7px;
}
.tot-mini strong {
  display: block;
  color: #111827;
  font-size: 14px;
  line-height: 1.8;
}
.tot-pending p {
  margin: 0 0 14px;
  color: #4b5563;
  line-height: 1.9;
}
/* Admin */
.tot-admin-wrap {
  max-width: 1180px;
  margin: 22px 0 22px 22px;
}
.tot-admin-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: linear-gradient(135deg, #111827, #1f2937);
  color: #fff;
  border-radius: 24px;
  padding: 26px;
  box-shadow: 0 18px 50px rgba(15,23,42,.18);
}
.tot-admin-hero h1 {
  color: #fff;
  margin: 0 0 8px;
  font-size: 25px;
  font-weight: 900;
}
.tot-admin-hero p {
  margin: 0;
  max-width: 820px;
  color: #d1d5db;
  line-height: 2;
}
.tot-admin-pill {
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 16px;
  padding: 14px;
  white-space: nowrap;
}
.tot-admin-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 16px;
  margin-top: 18px;
}
.tot-admin-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 8px 28px rgba(15,23,42,.06);
}
.tot-admin-card h2 {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 900;
}
.tot-admin-full {
  margin-top: 16px;
}
.tot-admin-form {
  display: grid;
  gap: 12px;
}
.tot-admin-form label {
  color: #111827;
}
.tot-admin-form input[type="file"] {
  border-color: #d1d5db;
  background: #fff;
}
.tot-help {
  color: #6b7280;
  line-height: 2;
  margin: 14px 0 0;
}
.tot-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid #f3f4f6;
}
.tot-stat-row span {
  color: #6b7280;
}
.tot-stat-row strong {
  color: #111827;
}
.tot-table-wrap {
  overflow-x: auto;
}
.tot-admin-table td,
.tot-admin-table th {
  text-align: right;
}
@media (max-width: 860px) {
  .tot-form,
  .tot-grid,
  .tot-grid.two,
  .tot-timeline,
  .tot-admin-grid {
    grid-template-columns: 1fr;
  }
  .tot-card {
    padding: 22px;
    border-radius: 22px;
  }
  .tot-heading-row,
  .tot-admin-hero {
    flex-direction: column;
  }
  .tot-title {
    font-size: 23px;
  }
  .tot-truck-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    font-size: 26px;
  }
  .tot-admin-wrap {
    margin-left: 10px;
  }
  .tot-admin-pill {
    white-space: normal;
  }
  .tot-copy-row {
    grid-template-columns: 1fr;
  }
  .tot-copy-btn,
  .tot-track-link {
    width: 100%;
  }
}
.tot-media-picker {
  display: grid;
  gap: 10px;
  align-items: center;
}
.tot-selected-file {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border: 1px dashed #d1d5db;
  border-radius: 14px;
  background: #f9fafb;
  color: #374151;
  font-weight: 700;
  line-height: 1.8;
  word-break: break-word;
}
.tot-selected-file.is-selected {
  border-color: #f59e0b;
  background: #fffbeb;
  color: #92400e;
}
.tot-history-table td,
.tot-history-table th {
  vertical-align: middle;
}
.tot-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #374151;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.tot-status-pill.is-current {
  background: #ecfdf5;
  color: #047857;
}
.tot-status-pill.is-processed {
  background: #eff6ff;
  color: #1d4ed8;
}
.tot-status-pill.is-media-only {
  background: #fff7ed;
  color: #c2410c;
}
.tot-empty-state {
  margin: 0;
  padding: 16px 18px;
  border: 1px dashed #d1d5db;
  border-radius: 16px;
  background: #f9fafb;
  color: #6b7280;
  font-weight: 700;
}
.tot-history-table .button-small {
  margin: 2px;
}
/* direct shipment lookup by name and city */
.tot-form.tot-form-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.tot-field select {
  width: 100%;
  height: 50px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 16px;
  background: rgba(255,255,255,.98);
  color: #111827;
  padding: 10px 14px;
  font-size: 14px;
  outline: none;
  transition: .2s ease;
}
.tot-field select:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245,158,11,.22);
}
@media (max-width: 860px) {
  .tot-form.tot-form-two {
    grid-template-columns: 1fr;
  }
}

/* v1.4.0 - multiple shipments with Jalali accordion */
.tot-results-list {
  margin-top: 18px;
  display: grid;
  gap: 14px;
}
.tot-result-summary {
  background: linear-gradient(135deg, #ecfdf5, #f8fafc);
  border: 1px solid #bbf7d0;
  border-radius: 20px;
  padding: 15px 18px;
  color: #064e3b;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .06);
}
.tot-result-summary strong,
.tot-result-summary span {
  display: block;
  line-height: 1.9;
}
.tot-result-summary span {
  color: #047857;
  font-size: 13px;
  font-weight: 700;
}
.tot-accordion-item {
  border: 1px solid #e5e7eb;
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 14px 40px rgba(15, 23, 42, .08);
}
.tot-accordion-summary {
  list-style: none;
  cursor: pointer;
  padding: 17px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: linear-gradient(135deg, #111827, #1f2937);
  color: #fff;
}
.tot-accordion-summary::-webkit-details-marker {
  display: none;
}
.tot-accordion-summary:before {
  content: "+";
  width: 30px;
  height: 30px;
  min-width: 30px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.16);
  font-weight: 950;
  order: -1;
}
.tot-accordion-item[open] .tot-accordion-summary:before {
  content: "−";
}
.tot-accordion-title {
  font-weight: 950;
  line-height: 1.8;
}
.tot-accordion-summary b {
  background: rgba(251, 191, 36, .14);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, .28);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
  white-space: nowrap;
}
.tot-accordion-content {
  margin-top: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.tot-date-strip {
  margin: 0 0 16px;
  padding: 13px 15px;
  border-radius: 16px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
  font-weight: 900;
  line-height: 1.9;
}
@media (max-width: 860px) {
  .tot-accordion-summary {
    align-items: flex-start;
    flex-direction: column;
  }
  .tot-accordion-summary:before {
    order: 0;
  }
  .tot-accordion-summary b {
    white-space: normal;
  }
}


/* v1.4.2 - searchable Iran cities picker */
.tot-city-picker,
.tot-city-picker * {
  font-family: IRANSans, IranSans, "ایران سنس", Vazirmatn, Tahoma, Arial, sans-serif !important;
}
.tot-city-picker {
  position: relative;
  width: 100%;
}
.tot-city-search {
  width: 100%;
  height: 50px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 16px;
  background: rgba(255,255,255,.98);
  color: #111827;
  padding: 12px 14px;
  font-size: 14px;
  outline: none;
  transition: .2s ease;
}
.tot-city-search:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245,158,11,.22);
}
.tot-city-options {
  margin-top: 8px;
  max-height: 230px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 16px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 14px 32px rgba(15,23,42,.16);
}
.tot-city-option {
  border: 1px solid #e5e7eb;
  border-radius: 13px;
  background: #f9fafb;
  color: #111827;
  cursor: pointer;
  padding: 10px 11px;
  text-align: right;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.7;
  transition: .18s ease;
}
.tot-city-option:hover,
.tot-city-option.is-selected {
  border-color: #f59e0b;
  background: #fffbeb;
  color: #92400e;
}
.tot-city-empty {
  margin-top: 8px;
  border-radius: 14px;
  padding: 11px 13px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.8;
}
@media (max-width: 560px) {
  .tot-city-options {
    grid-template-columns: 1fr;
    max-height: 260px;
  }
}

