/* ==========================================================================
   WBASS LOGISTICS & CUSTOMS VAULT — STYLESHEET
   Aesthetics: Luxury Luthier Dark-Mode & Ergonomic Android Mobile First
   ========================================================================== */

:root {
  --bg-main: #0a0e17;
  --bg-card: #111827;
  --bg-card-sub: #172033;
  --bg-hover: #1e293b;
  --border-color: #1f293d;
  --border-light: #2d3b55;

  --accent-amber: #f59e0b;
  --accent-amber-hover: #d97706;
  --accent-amber-glow: rgba(245, 158, 11, 0.15);

  --status-danger: #ef4444;
  --status-danger-bg: rgba(239, 68, 68, 0.12);
  --status-warning: #f59e0b;
  --status-warning-bg: rgba(245, 158, 11, 0.12);
  --status-success: #10b981;
  --status-success-bg: rgba(16, 185, 129, 0.12);
  --status-info: #3b82f6;
  --status-info-bg: rgba(59, 130, 246, 0.12);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-sub: #64748b;

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);

  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.5;
  min-height: 100vh;
  padding-bottom: calc(75px + var(--safe-bottom)); /* Space for mobile nav */
  overflow-x: hidden;
}

/* Scrollbar customization */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-amber);
}

/* ==========================================================================
   HEADER & TOP BAR
   ========================================================================== */

.top-header {
  background-color: rgba(17, 24, 39, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 768px) {
  .header-container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
  }
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  font-size: 28px;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 1px solid var(--accent-amber);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px var(--accent-amber-glow);
  flex-shrink: 0;
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: linear-gradient(90deg, #f8fafc, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Quick Tools Links Bar */
.quick-tools-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}

.quick-tools-wrapper::-webkit-scrollbar {
  display: none;
}

.tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--border-color);
  background-color: var(--bg-card-sub);
  color: var(--text-main);
  white-space: nowrap;
  transition: all 0.2s ease;
  min-height: 40px;
}

.tool-btn:hover, .tool-btn:active {
  transform: translateY(-1px);
  border-color: var(--border-light);
}

.tool-btn.fedex {
  border-color: rgba(147, 51, 234, 0.4);
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.15), rgba(79, 70, 229, 0.1));
  color: #c084fc;
}

.tool-btn.fedex:hover {
  border-color: #a855f7;
  color: #ffffff;
}

.tool-btn.invoice-gen {
  border-color: rgba(245, 158, 11, 0.4);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(217, 119, 6, 0.1));
  color: #fbbf24;
}

.tool-btn.invoice-gen:hover {
  border-color: #f59e0b;
  color: #ffffff;
}

.tool-btn.beacukai {
  border-color: rgba(59, 130, 246, 0.4);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(37, 99, 235, 0.1));
  color: #60a5fa;
}

.tool-btn.beacukai:hover {
  border-color: #3b82f6;
  color: #ffffff;
}

.tool-btn.add-btn {
  background-color: var(--accent-amber);
  color: #0b0f19;
  border: none;
  cursor: pointer;
}

.tool-btn.add-btn:hover {
  background-color: var(--accent-amber-hover);
}

.desktop-only {
  display: none;
}

@media (min-width: 768px) {
  .desktop-only {
    display: inline-flex;
  }
}

/* Desktop Navigation Tabs */
.desktop-tabs {
  display: none;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  gap: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

@media (min-width: 768px) {
  .desktop-tabs {
    display: flex;
  }
}

.desktop-tabs .tab-btn {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 12px 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.desktop-tabs .tab-btn:hover {
  color: var(--text-main);
}

.desktop-tabs .tab-btn.active {
  color: var(--accent-amber);
  border-bottom-color: var(--accent-amber);
}

.badge {
  background-color: var(--bg-card-sub);
  color: var(--text-muted);
  font-size: 0.7rem;
  padding: 2px 7px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
}

.desktop-tabs .tab-btn.active .badge {
  background-color: var(--accent-amber-glow);
  color: var(--accent-amber);
  border-color: var(--accent-amber);
}

.badge.danger {
  background-color: var(--status-danger-bg);
  color: var(--status-danger);
  border-color: var(--status-danger);
}

.badge.info {
  background-color: var(--status-info-bg);
  color: var(--status-info);
  border-color: var(--status-info);
}

/* ==========================================================================
   MAIN CONTENT & STATS
   ========================================================================== */

.main-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px;
}

@media (min-width: 768px) {
  .main-content {
    padding: 24px;
    padding-bottom: 40px;
  }
}

/* Stats Cards Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

@media (max-width: 540px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .stat-card {
    padding: 12px 10px;
  }
  /* On mobile phones, let the tax card span 2 columns so currency is never truncated */
  .stat-card.success-card {
    grid-column: span 2;
  }
  .stat-card.info-card {
    grid-column: span 2;
  }
}

@media (min-width: 900px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
  .stat-card.success-card,
  .stat-card.info-card {
    grid-column: span 1;
  }
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-amber);
}

.stat-card.warning-card::before {
  background: var(--status-danger);
}
.stat-card.success-card::before {
  background: var(--status-success);
}
.stat-card.info-card::before {
  background: var(--status-info);
}

.stat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.stat-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-icon-bg {
  font-size: 16px;
  opacity: 0.8;
}

.stat-value {
  font-family: var(--font-mono);
  font-size: clamp(1.1rem, 3.8vw, 1.45rem);
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
  letter-spacing: -0.3px;
  line-height: 1.25;
  white-space: nowrap;
}

.stat-card.success-card .stat-value {
  color: #34d399;
  font-size: clamp(1.2rem, 4.4vw, 1.55rem);
}

.stat-sub {
  font-size: 0.72rem;
  color: var(--text-sub);
  line-height: 1.35;
}

@media (min-width: 541px) {
  .stat-sub {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* Tab Content Visibility */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.25s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   TAB 1: SHIPMENTS & FILTERS
   ========================================================================== */

.controls-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.search-box {
  position: relative;
  width: 100%;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 15px;
  color: var(--text-muted);
  pointer-events: none;
}

.search-box input {
  width: 100%;
  background: var(--bg-card-sub);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  padding: 12px 38px 12px 38px;
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  min-height: 44px; /* Touch target */
  transition: border-color 0.2s ease;
}

.search-box input:focus {
  border-color: var(--accent-amber);
  box-shadow: 0 0 0 2px var(--accent-amber-glow);
}

.clear-search-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
}

/* Filter Pills (Smooth Android Horizontal Scroll) */
.filter-pills-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}

.filter-pills-scroll::-webkit-scrollbar {
  display: none;
}

.filter-pill {
  background: var(--bg-card-sub);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 38px;
  display: flex;
  align-items: center;
}

.filter-pill:hover {
  background: var(--bg-hover);
  color: var(--text-main);
}

.filter-pill.active {
  background: var(--accent-amber);
  color: #0b0f19;
  border-color: var(--accent-amber);
  font-weight: 700;
}

/* Shipment Cards Container */
.shipments-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.shipment-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.shipment-card:hover {
  border-color: var(--border-light);
}

.shipment-card.is-held {
  border-left: 4px solid var(--status-danger);
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.04), transparent);
}

.shipment-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

@media (min-width: 600px) {
  .shipment-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.awb-badge-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.date-pill {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(245, 158, 11, 0.1);
  color: var(--accent-amber);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.courier-tag {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: var(--bg-card-sub);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

.courier-tag.fedex {
  background: rgba(147, 51, 234, 0.2);
  color: #d8b4fe;
  border-color: rgba(147, 51, 234, 0.4);
}

.awb-number {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0.5px;
}

.btn-copy {
  background: var(--bg-card-sub);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  padding: 5px 9px;
  font-size: 0.75rem;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}

.btn-copy:active {
  transform: scale(0.95);
  background: var(--accent-amber);
  color: #0b0f19;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 700;
  width: fit-content;
}

.status-badge.in_transit {
  background: var(--status-info-bg);
  color: var(--status-info);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.status-badge.customs_held {
  background: var(--status-danger-bg);
  color: var(--status-danger);
  border: 1px solid rgba(239, 68, 68, 0.4);
  animation: pulseHeld 2s infinite ease-in-out;
}

@keyframes pulseHeld {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
}

.status-badge.cleared, .status-badge.delivered {
  background: var(--status-success-bg);
  color: var(--status-success);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-badge.billing_issued {
  background: var(--status-warning-bg);
  color: var(--status-warning);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Shipment Details Body */
.shipment-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.item-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
}

.item-category-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent-amber);
  background: var(--accent-amber-glow);
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
}

.route-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.route-arrow {
  color: var(--accent-amber);
}

.meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.chip {
  background: var(--bg-card-sub);
  border: 1px solid var(--border-color);
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
}

.chip.tax-paid {
  border-color: rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.chip.tax-pending {
  border-color: rgba(245, 158, 11, 0.4);
  color: #fbbf24;
}

/* ==========================================================================
   ATTACHED DOCUMENTS DRAWER (RESPONSIVE FOR MOBILE ANDROID & DESKTOP)
   ========================================================================== */

.attached-docs-wrapper {
  margin-top: 10px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #060913;
  width: 100%;
  box-sizing: border-box;
}

.attached-docs-toggle {
  background: var(--bg-card-sub);
  width: 100%;
  padding: 11px 14px;
  border: none;
  color: var(--accent-amber);
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  gap: 8px;
  min-height: 44px;
  box-sizing: border-box;
  transition: background 0.2s ease;
}

.attached-docs-toggle:hover, .attached-docs-toggle:active {
  background: var(--bg-hover);
}

.attached-docs-toggle strong {
  color: #fff;
}

.toggle-arrow-badge {
  font-size: 0.72rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 3px 8px;
  border-radius: 4px;
  flex-shrink: 0;
}

.attached-docs-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  font-size: 0.72rem;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 4px;
  flex-wrap: wrap;
  gap: 4px;
}

.attached-docs-list {
  padding: 10px;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 440px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
  width: 100%;
}

.attached-docs-list::-webkit-scrollbar {
  width: 5px;
}
.attached-docs-list::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}
.attached-docs-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.attached-doc-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.attached-doc-item:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.02);
}

.attached-doc-header {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
}

.attached-doc-title-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.attached-doc-name {
  color: #f1f5f9;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.35;
  word-break: break-word;
  overflow-wrap: break-word;
}

.attached-doc-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  width: 100%;
  box-sizing: border-box;
  margin-top: 2px;
}

.attached-doc-actions .btn-doc-view,
.attached-doc-actions .btn-doc-ext,
.attached-doc-actions .btn-doc-download {
  width: 100%;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px 4px;
  font-size: 0.72rem;
  font-weight: 700;
  min-height: 38px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  gap: 4px;
}

@media (min-width: 640px) {
  .attached-doc-item {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  .attached-doc-actions {
    display: flex;
    width: auto;
    flex-shrink: 0;
    gap: 6px;
    margin-top: 0;
  }
  .attached-doc-actions .btn-doc-view,
  .attached-doc-actions .btn-doc-ext,
  .attached-doc-actions .btn-doc-download {
    width: auto;
    padding: 6px 12px;
  }
}

/* Identity Attachments Mobile Responsive */
.id-attachment-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--bg-card-sub);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  font-size: 0.75rem;
  width: 100%;
  box-sizing: border-box;
}

.id-attachment-info {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
  width: 100%;
}

.id-attachment-title {
  font-weight: 600;
  color: var(--text-main);
  word-break: break-word;
  overflow-wrap: break-word;
}

.id-attachment-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  width: 100%;
  box-sizing: border-box;
}

.id-attachment-actions .btn-doc-view,
.id-attachment-actions .btn-doc-ext,
.id-attachment-actions .btn-doc-download {
  justify-content: center;
  text-align: center;
  padding: 6px 2px;
  font-size: 0.72rem;
  font-weight: 700;
  min-height: 36px;
  white-space: nowrap;
}

@media (min-width: 640px) {
  .id-attachment-item {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .id-attachment-actions {
    display: flex;
    width: auto;
    flex-shrink: 0;
  }
  .id-attachment-actions .btn-doc-view,
  .id-attachment-actions .btn-doc-ext,
  .id-attachment-actions .btn-doc-download {
    width: auto;
    padding: 4px 10px;
  }
}

/* Customs Alert Box inside Shipment Card */
.customs-alert-box {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-top: 8px;
}

.customs-alert-header {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--status-danger);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.customs-alert-text {
  font-size: 0.8rem;
  color: #fca5a5;
  line-height: 1.4;
  margin-bottom: 8px;
}

.customs-solution-box {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: 0.75rem;
  color: #6ee7b7;
}

/* Shipment Action Bar */
.shipment-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
  flex-wrap: wrap;
}

.action-links {
  display: flex;
  gap: 8px;
}

.btn-track {
  background: var(--bg-card-sub);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
}

.btn-track:hover {
  background: var(--bg-hover);
  border-color: var(--border-light);
}

.crud-actions {
  display: flex;
  gap: 6px;
}

.btn-icon-action {
  background: var(--bg-card-sub);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 15px;
  transition: all 0.2s ease;
}

.btn-icon-action:hover {
  background: var(--bg-hover);
  color: var(--text-main);
}

.btn-icon-action.delete:hover {
  background: var(--status-danger-bg);
  color: var(--status-danger);
  border-color: var(--status-danger);
}

/* ==========================================================================
   TAB 2: ARSIP DOKUMEN & INVOICE GRID
   ========================================================================== */

.documents-archive-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 768px) {
  .documents-archive-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.doc-archive-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-sm);
}

.doc-archive-card:hover {
  border-color: var(--border-light);
}

.doc-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.doc-title-text {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  word-break: break-word;
}

.doc-type-pill {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
  background: var(--bg-card-sub);
  color: var(--accent-amber);
  border: 1px solid var(--accent-amber);
}

.doc-filename-box {
  background: var(--bg-card-sub);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  word-break: break-all;
}

.doc-desc-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.doc-awb-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: #a855f7;
  background: rgba(168, 85, 247, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Document Status Banner */
.doc-status-banner {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.12), rgba(30, 58, 138, 0.2));
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.doc-status-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.doc-status-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #38bdf8;
  margin-bottom: 2px;
}

.doc-status-desc {
  font-size: 0.8rem;
  color: #cbd5e1;
  line-height: 1.4;
}

.doc-status-desc code {
  background: rgba(0, 0, 0, 0.4);
  padding: 2px 6px;
  border-radius: 4px;
  color: #fde047;
  font-family: var(--font-mono);
}

/* Image Thumbnail in Doc Card */
.doc-thumb-container {
  position: relative;
  width: 100%;
  height: 160px;
  background: #050811;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.doc-thumb-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.doc-thumb-container:hover img {
  transform: scale(1.05);
}

.doc-thumb-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.thumb-hover-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 6px 10px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  color: #e2e8f0;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* PDF Interactive Preview Box */
.doc-pdf-preview-box {
  background: rgba(239, 68, 68, 0.08);
  border: 1px dashed rgba(239, 68, 68, 0.45);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.doc-pdf-preview-box:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: #ef4444;
  transform: translateY(-1px);
}

.pdf-preview-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.pdf-preview-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pdf-preview-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fca5a5;
}

.pdf-preview-subtitle {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Doc Action Button Group */
.doc-btn-group {
  display: flex;
  gap: 8px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.btn-doc-view {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-doc-view:hover {
  background: rgba(56, 189, 248, 0.22);
  border-color: #38bdf8;
  color: #fff;
}

.btn-doc-download {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-doc-download:hover {
  background: rgba(16, 185, 129, 0.22);
  border-color: #10b981;
  color: #fff;
}

.btn-doc-ext {
  background: var(--bg-card-sub);
  border: 1px solid var(--border-color);
  color: var(--text-sub);
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-doc-ext:hover {
  background: var(--bg-hover);
  color: var(--text-main);
}

/* Modal Document Viewer */
.modal-card-lg {
  max-width: 900px;
  width: 95%;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
}

.doc-preview-body {
  flex: 1;
  overflow-y: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
  max-height: 72vh;
  background: #050811;
  border-radius: var(--radius-sm);
  padding: 12px;
}

.doc-modal-img {
  max-width: 100%;
  max-height: 68vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}

.doc-modal-iframe {
  width: 100%;
  height: 68vh;
  border: none;
  border-radius: 6px;
  background: #fff;
}

/* ==========================================================================
   TAB 3: KLINIK PABEAN & SOP
   ========================================================================== */

.section-hero-card {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.hero-icon {
  font-size: 36px;
  background: var(--accent-amber-glow);
  padding: 10px;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.hero-body h2 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--text-main);
}

.hero-body p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.customs-tools-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 24px;
}

@media (min-width: 768px) {
  .customs-tools-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.customs-tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-tag {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  width: fit-content;
  background: var(--bg-card-sub);
  color: var(--accent-amber);
  border: 1px solid var(--accent-amber);
}

.card-tag.alert {
  background: var(--status-danger-bg);
  color: var(--status-danger);
  border-color: var(--status-danger);
}

.card-tag.warning {
  background: var(--status-warning-bg);
  color: var(--status-warning);
  border-color: var(--status-warning);
}

.customs-tool-card h3 {
  font-size: 1rem;
  font-weight: 700;
}

.customs-tool-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  flex: 1;
}

.sop-tip {
  font-size: 0.75rem;
  color: var(--accent-amber);
  background: var(--bg-card-sub);
  padding: 8px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent-amber);
}

.btn-action {
  background: var(--accent-amber);
  color: #0b0f19;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  text-align: center;
  margin-top: 6px;
}

.btn-action:hover {
  background: var(--accent-amber-hover);
}

.section-title-wrap {
  margin-bottom: 12px;
}

.section-title-wrap h3 {
  font-size: 1.1rem;
  font-weight: 700;
}

.customs-cases-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ==========================================================================
   TAB 4: BRANKAS IDENTITAS (IDENTITY VAULT)
   ========================================================================== */

.identity-header-bar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

@media (min-width: 600px) {
  .identity-header-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.identity-header-bar h2 {
  font-size: 1.3rem;
  font-weight: 800;
}

.section-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.btn-primary {
  background: var(--accent-amber);
  color: #0b0f19;
  border: none;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background: var(--accent-amber-hover);
}

.identities-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 768px) {
  .identities-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.identity-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-sm);
}

.id-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.id-holder-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
}

.id-type-badge {
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--accent-amber-glow);
  color: var(--accent-amber);
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.id-number-box {
  background: var(--bg-card-sub);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.id-number-val {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.id-actions-group {
  display: flex;
  gap: 6px;
}

.btn-id-toggle {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 18px;
  padding: 4px 6px;
}

.id-details-list {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.id-card-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid var(--border-color);
}

/* ==========================================================================
   TAB 5: REKAP BILLING & TAX TABLE (WITH NO URUT)
   ========================================================================== */

.tax-table-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tax-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.85rem;
}

.tax-table th {
  background: var(--bg-card-sub);
  padding: 12px 14px;
  color: var(--text-muted);
  font-weight: 700;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

.tax-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-main);
  vertical-align: middle;
}

.tax-table tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.tax-no-col {
  text-align: center;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent-amber);
}

.tax-amount-col {
  font-family: var(--font-mono);
  font-weight: 700;
  color: #34d399;
}

/* ==========================================================================
   MOBILE BOTTOM NAVIGATION (ANDROID VIEW)
   ========================================================================== */

.mobile-bottom-nav {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(17, 24, 39, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-color);
  z-index: 900;
  height: calc(64px + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  justify-content: space-around;
  align-items: center;
}

@media (min-width: 768px) {
  .mobile-bottom-nav {
    display: none;
  }
  body {
    padding-bottom: 0;
  }
}

.mobile-nav-item {
  background: none;
  border: none;
  color: var(--text-sub);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
  padding: 8px 6px;
  flex: 1;
  min-height: 48px;
  font-family: inherit;
  transition: all 0.2s ease;
}

.mobile-nav-item .nav-icon {
  font-size: 18px;
}

.mobile-nav-item .nav-label {
  font-size: 0.65rem;
  font-weight: 600;
}

.mobile-nav-item.active {
  color: var(--accent-amber);
}

.mobile-nav-item.active .nav-icon {
  transform: translateY(-2px);
}

/* Floating Action Button (FAB) on Android */
.mobile-fab {
  display: flex;
  position: fixed;
  bottom: calc(76px + var(--safe-bottom));
  right: 16px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #0b0f19;
  border: none;
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4);
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: bold;
  z-index: 850;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.mobile-fab:active {
  transform: scale(0.92);
}

@media (min-width: 768px) {
  .mobile-fab {
    display: none;
  }
}

/* ==========================================================================
   MODAL DIALOGS (BOTTOM-SHEET ERGONOMICS FOR MOBILE)
   ========================================================================== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}

@media (min-width: 600px) {
  .modal-overlay {
    align-items: center;
    padding: 20px;
  }
}

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  overflow-y: auto;
  padding: 20px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 600px) {
  .modal-card {
    border-radius: var(--radius-lg);
    animation: fadeIn 0.2s ease;
  }
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
}

.modal-close-btn {
  background: var(--bg-card-sub);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 600px) {
  .form-row {
    flex-direction: row;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group.flex-1 {
  flex: 1;
}

.form-group label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.required {
  color: var(--status-danger);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg-card-sub);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  padding: 10px 12px;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  min-height: 44px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent-amber);
  box-shadow: 0 0 0 2px var(--accent-amber-glow);
}

.mono-input {
  font-family: var(--font-mono) !important;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
}

.btn-secondary {
  background: var(--bg-card-sub);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
}

/* ==========================================================================
   TOAST NOTIFICATIONS
   ========================================================================== */

.toast-container {
  position: fixed;
  bottom: calc(85px + var(--safe-bottom));
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 2000;
  pointer-events: none;
  width: 90%;
  max-width: 380px;
}

@media (min-width: 768px) {
  .toast-container {
    bottom: 24px;
    right: 24px;
    left: auto;
    transform: none;
  }
}

.toast {
  background: #1e293b;
  border: 1px solid var(--border-light);
  color: var(--text-main);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toastIn 0.25s ease forwards;
}

.toast.success {
  border-left: 4px solid var(--status-success);
}

.toast.danger {
  border-left: 4px solid var(--status-danger);
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Loading & Empty States */
.loading-state, .empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border-color);
  border-top-color: var(--accent-amber);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   TOMBOL DOKUMEN NYATA & PREVIEW (PDF, JPG, DOCX)
   ========================================================================== */

.doc-btn-group {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.btn-doc-view {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(217, 119, 6, 0.15));
  border: 1px solid var(--accent-amber);
  color: var(--accent-amber);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.btn-doc-view:hover {
  background: var(--accent-amber);
  color: #0b0f19;
  transform: translateY(-1px);
}

.btn-doc-download {
  background: var(--bg-card-sub);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.btn-doc-download:hover {
  background: var(--bg-hover);
  color: var(--text-main);
  border-color: var(--border-light);
}

.ext-badge {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  font-family: var(--font-mono);
}

.ext-badge.pdf {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.ext-badge.jpg, .ext-badge.jpeg, .ext-badge.png {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.ext-badge.docx, .ext-badge.doc {
  background: rgba(147, 51, 234, 0.2);
  color: #d8b4fe;
  border: 1px solid rgba(147, 51, 234, 0.4);
}

.ext-badge.txt {
  background: rgba(148, 163, 184, 0.2);
  color: #cbd5e1;
  border: 1px solid #64748b;
}

.doc-filesize-text {
  font-size: 0.7rem;
  color: var(--text-sub);
  font-family: var(--font-mono);
}

