/* shipment.css - modern styling for Shipment module */
:root {
  --primary-hue: 210;
  --primary-sat: 80%;
  --primary-light: 55%;
  --accent-hue: 340;
  --accent-sat: 70%;
  --accent-light: 60%;
  --bg-glass: rgba(255, 255, 255, 0.12);
  --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.25);
}

/* Glass‑morphism card */
.mod-metric-card {
  backdrop-filter: blur(8px);
  background: var(--bg-glass);
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: var(--shadow-glass);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.mod-metric-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.35);
}

.mod-metric-label {
  font-size: 0.78rem;
  color: hsl(var(--primary-hue), var(--primary-sat), 70%);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.mod-metric-value {
  font-size: 1.4rem;
  font-weight: 600;
  color: hsl(var(--primary-hue), var(--primary-sat), var(--primary-light));
}

/* Form input styling */
.modular-input {
  width: 100%;
  border: 1px solid hsl(var(--primary-hue), 20%, 30%);
  border-radius: 6px;
  padding: 8px 10px;
  background: rgba(255,255,255,0.04);
  color: var(--text-main);
  transition: border-color 0.2s ease;
}
.modular-input:focus {
  outline: none;
  border-color: hsl(var(--primary-hue), var(--primary-sat), var(--primary-light));
  background: rgba(255,255,255,0.08);
}

/* Buttons */
.btn-modal-save {
  background: hsl(var(--primary-hue), var(--primary-sat), var(--primary-light));
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.btn-modal-save:hover {
  background: hsl(var(--primary-hue), var(--primary-sat), calc(var(--primary-light) + 5%));
}


/* SERVICE FILE TABS */
.sf-tab-bar {
    -webkit-overflow-scrolling: touch;
}
.sf-tab-bar::-webkit-scrollbar {
    height: 6px;
}
.sf-tab-bar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
.sf-tab-btn {
    background: transparent;
    border: none;
    padding: 12px 18px;
    font-weight: 800;
    font-size: 0.85rem;
    color: #64748b;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    /* white-space: nowrap; removed for wrapping */
}
.sf-tab-btn:hover {
    color: #0f172a;
    background: #f8fafc;
}
.sf-tab-btn.active {
    color: #2563eb;
    border-bottom: 3px solid #2563eb;
    background: #eff6ff;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}
.sf-tab-btn .material-icons {
    font-size: 18px;
}
.sf-tab-content {
    animation: fadeInTab 0.3s ease;
}
@keyframes fadeInTab {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}
