/* ==========================================================================
   LG H&H × 동영로지스틱스 수출 작업 현황 및 마감 시스템 스타일시트
   ========================================================================== */

:root {
  /* Color Tokens */
  --primary: #1E3A8A;           /* Navy Blue */
  --primary-hover: #172554;
  --primary-light: #EFF6FF;
  --accent: #C8102E;            /* LG Heritage Crimson */
  --accent-light: #FEE2E2;
  
  --bg-app: #F8FAFC;            /* Clean Slate White */
  --bg-surface: #FFFFFF;
  --bg-surface-glass: rgba(255, 255, 255, 0.92);
  --bg-subtle: #F1F5F9;

  --text-main: #0F172A;
  --text-muted: #64748B;
  --text-sub: #475569;
  --text-inverse: #FFFFFF;

  --border-light: #E2E8F0;
  --border-glass: rgba(226, 232, 240, 0.8);

  --success: #10B981;
  --success-bg: #ECFDF5;
  --warning: #F59E0B;
  --warning-bg: #FEF3C7;
  --danger: #EF4444;
  --danger-bg: #FEE2E2;
  --storage: #8B5CF6;
  --storage-bg: #F3E8FF;

  /* Elevation */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-app);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Custom Slim Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}

/* Header */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-surface-glass);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.header-container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: nowrap;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 2px 6px;
  background: transparent;
  transition: var(--transition);
}

.header-logo {
  height: 28px;
  width: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.05));
  transition: transform 0.2s ease;
}

.header-logo:hover {
  transform: scale(1.02);
}

.logo-lg {
  height: 26px;
}

.logo-dy {
  height: 27px;
}

.brand-divider {
  width: 1px;
  height: 18px;
  background: linear-gradient(180deg, transparent, #CBD5E1 30%, #CBD5E1 70%, transparent);
}

/* Navigation Tabs */
.main-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: var(--bg-subtle);
  padding: 4px;
  border-radius: var(--radius-lg);
  flex-shrink: 0;
}

.nav-tab {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 7px 13px;
  border: none;
  background: transparent;
  color: var(--text-sub);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: var(--radius-md);
  transition: var(--transition);
  position: relative;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-tab .tab-text {
  white-space: nowrap;
}

.nav-tab:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.6);
}

.nav-tab.active {
  background: var(--bg-surface);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
  font-weight: 700;
}

.badge-pulse {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background: var(--accent);
  color: #FFF;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.btn-refresh {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  padding: 6px 12px;
  border-radius: var(--radius-md);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-sub);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}
  transition: var(--transition);
}

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

.status-indicator {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status-dot.online {
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
}

/* Main Content Area */
.app-main {
  max-width: 1440px;
  margin: 0 auto;
  padding: 1.75rem 1.5rem 3rem;
}

.tab-pane {
  display: none;
  animation: fadeIn 0.25s ease-out;
}

.tab-pane.active {
  display: block;
}

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

/* Pane Header */
.pane-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.pane-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.5px;
}

.pane-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.date-badge {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  padding: 6px 12px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  color: var(--text-sub);
}

/* Glass Panel */
.glass-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.glass-panel:hover {
  box-shadow: var(--shadow-md);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

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

.panel-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.panel-tag {
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--bg-subtle);
  color: var(--text-sub);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

/* KPI Summary Cards */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

/* Date Picker Control */
.date-picker-control {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  padding: 5px 12px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.date-picker-control label {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-sub);
}

.date-input {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 4px 8px;
  font-size: 0.88rem;
  font-family: inherit;
  font-weight: 600;
  color: var(--text-main);
  background: var(--bg-subtle);
  cursor: pointer;
  outline: none;
}

.date-input:focus {
  border-color: var(--primary);
  background: #FFF;
}

/* KPI Three Columns Layout */
.kpi-three-columns {
  display: grid;
  grid-template-columns: 1.15fr 1.15fr 0.9fr;
  gap: 1.15rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 1200px) {
  .kpi-three-columns {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .kpi-three-columns {
    grid-template-columns: 1fr;
  }
}

.kpi-group-box {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.15rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.kpi-group-box:hover {
  box-shadow: var(--shadow-md);
}

.kpi-group-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3.5px;
}

.group-month::before   { background: linear-gradient(90deg, #1E3A8A, #3B82F6); }
.group-today::before   { background: linear-gradient(90deg, #059669, #10B981); }
.group-storage::before { background: linear-gradient(90deg, #8B5CF6, #EF4444); }

.kpi-group-header {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
  border-bottom: 1px solid #F1F5F9;
  padding-bottom: 0.5rem;
}

.group-icon {
  font-size: 1.1rem;
}

.kpi-cards-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
}

.kpi-cards-pair {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
}

.kpi-mini-card {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-md);
  padding: 0.85rem 0.65rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: var(--transition);
}

.kpi-mini-card:hover {
  background: #FFFFFF;
  border-color: #CBD5E1;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.mini-lbl {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-sub);
  margin-bottom: 0.25rem;
  white-space: nowrap;
}

.mini-val {
  font-family: 'Outfit', sans-serif;
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.5px;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.mini-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.text-success { color: #059669; }
.text-warning { color: #D97706; }
.text-danger  { color: #DC2626; }
.text-danger-light { color: #B91C1C; font-weight: 700; }
.text-storage { color: #7C3AED; }
.text-primary { color: #1E3A8A; }

/* Visual Chart Lists */
.dash-grid-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.bar-chart-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.bar-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.bar-labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.86rem;
  color: var(--text-sub);
}

.bar-label-group {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.pier-name {
  color: var(--text-main);
  font-weight: 700;
  font-size: 0.88rem;
}

.country-name {
  color: var(--text-main);
  font-weight: 700;
  font-size: 0.88rem;
}

.flag-icon {
  font-size: 1.05rem;
  line-height: 1;
}

.bar-stat-val {
  font-size: 0.84rem;
  color: var(--text-sub);
}

.bar-stat-val strong {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  color: var(--text-main);
}

.bar-track {
  height: 8px;
  background: #F1F5F9;
  border-radius: var(--radius-full);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #1E3A8A, #3B82F6);
  border-radius: var(--radius-full);
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.bar-fill.accent {
  background: linear-gradient(90deg, #C8102E, #FB7185);
}

.bar-fill.accent-purple {
  background: linear-gradient(90deg, #6D28D9, #A855F7);
}

/* ==========================================================================
   Terminal Hierarchy Layout (신항 / 북항 대분류 & 하위 부두 인덴트 트리)
   ========================================================================== */
.terminal-hier-container {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.terminal-hier-group {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  transition: var(--transition);
  position: relative;
}

.terminal-hier-group.group-bukhang {
  border-color: #DDD6FE;
  background: linear-gradient(180deg, #FAF5FF 0%, #FFFFFF 45%);
}

.terminal-hier-group.group-shinhang {
  border-color: #BFDBFE;
  background: linear-gradient(180deg, #F0F9FF 0%, #FFFFFF 45%);
}

.terminal-hier-group.group-other {
  border-color: #E2E8F0;
  background: #F8FAFC;
  padding: 0.75rem 1.15rem;
}

.terminal-hier-group:hover {
  box-shadow: var(--shadow-sm);
}

.hier-main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.45rem;
}

.hier-main-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hier-main-title strong {
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.3px;
}

.hier-main-stat {
  font-size: 0.9rem;
  color: var(--text-sub);
}

.hier-main-stat strong {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-main);
}

.hier-main-track {
  height: 7px;
  background: #E2E8F0;
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 0.75rem;
}

/* Sub Pier List (Tree styled with left border & dash) */
.hier-sub-list {
  padding-left: 0.75rem;
  border-left: 2px solid #E2E8F0;
  margin-left: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.group-bukhang .hier-sub-list {
  border-left-color: #C4B5FD;
}

.group-shinhang .hier-sub-list {
  border-left-color: #93C5FD;
}

.hier-sub-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.86rem;
  padding: 1px 0;
}

.sub-label-col {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 95px;
}

.sub-dash {
  color: #94A3B8;
  font-weight: 800;
  font-size: 0.95rem;
}

.sub-pier-name {
  font-weight: 600;
  color: #1E293B;
  font-size: 0.88rem;
}

.sub-bar-col {
  flex: 1;
}

.sub-track {
  height: 5px;
  background: #F1F5F9;
  border-radius: var(--radius-full);
  overflow: hidden;
}

.sub-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.sub-fill.fill-purple {
  background: linear-gradient(90deg, #8B5CF6, #A855F7);
}

.sub-fill.fill-blue {
  background: linear-gradient(90deg, #3B82F6, #60A5FA);
}

.sub-stat-col {
  text-align: right;
  min-width: 85px;
  font-size: 0.82rem;
  color: var(--text-sub);
  white-space: nowrap;
}

.sub-stat-col strong {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--text-main);
  font-size: 0.9rem;
}

.badge-storage {
  background: #F3E8FF;
  color: #7C3AED;
  border: 1px solid #DDD6FE;
  font-weight: 700;
  font-size: 0.76rem;
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

.badge-blue {
  background: #EFF6FF;
  color: #2563EB;
  border: 1px solid #BFDBFE;
  font-weight: 700;
  font-size: 0.76rem;
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

.sub-expand-btn {
  background: none;
  border: none;
  color: #64748B;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 4px;
  margin-top: 2px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.sub-expand-btn:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* Excel Upload Dropzone - Modern Compact Banner */
.upload-dropzone {
  background: linear-gradient(135deg, #FFFFFF, #F8FAFC);
  border: 1.5px dashed #CBD5E1;
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.75rem;
  margin-bottom: 1.25rem;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  box-shadow: var(--shadow-sm);
}

.upload-dropzone:hover, .upload-dropzone.dragover {
  border-color: var(--primary);
  background: #F0F7FF;
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.08);
  transform: translateY(-1px);
}

.dropzone-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.dropzone-icon {
  font-size: 2rem;
  background: var(--primary-light);
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.dropzone-text {
  flex: 1;
  text-align: left;
}

.dropzone-text h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.2rem;
}

.dropzone-text p {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.upload-progress {
  margin-top: 0.85rem;
  background: var(--bg-subtle);
  border-radius: var(--radius-full);
  height: 6px;
  overflow: hidden;
  position: relative;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), #3B82F6);
  width: 0%;
  transition: width 0.3s ease;
}

/* Filter Card */
.filter-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.filter-inputs {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
}

.input-group {
  position: relative;
  flex: 1;
  max-width: 420px;
}

.input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.input-group input {
  width: 100%;
  padding: 9px 12px 9px 36px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  background: var(--bg-subtle);
  transition: var(--transition);
}

.input-group input:focus {
  outline: none;
  border-color: var(--primary);
  background: #FFF;
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.input-group-select select {
  padding: 9px 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  background: #FFF;
  color: var(--text-main);
  cursor: pointer;
}

/* Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.table-scroll {
  max-height: 650px;
}

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

.data-table th {
  background: #F8FAFC;
  color: #64748B;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  padding: 10px 12px;
  border-bottom: 2px solid var(--border-light);
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 1px 0 #E2E8F0;
}

.data-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #F1F5F9;
  color: var(--text-main);
  white-space: nowrap;
  vertical-align: middle;
}

.data-table tbody tr {
  transition: background 0.15s ease;
}

.data-table tbody tr:hover {
  background: #F0F4F8;
}

.data-table-dense td, .data-table-dense th {
  padding: 8px 10px;
  font-size: 0.82rem;
}

.data-table-compact {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}

.data-table-compact th {
  padding: 10px 6px;
  font-size: 0.8rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.data-table-compact td {
  padding: 9px 6px;
  font-size: 0.84rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.day-weekday {
  color: #64748B;
  font-size: 0.78rem;
  font-weight: 600;
  margin-left: 2px;
}

.day-sat {
  color: #2563EB;
  font-size: 0.78rem;
  font-weight: 700;
  margin-left: 2px;
}

.day-sun {
  color: #DC2626;
  font-size: 0.78rem;
  font-weight: 700;
  margin-left: 2px;
}

/* Badges - Modern Crisp Style */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 2.5px 8px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  line-height: 1.3;
}

.badge-success { background: #ECFDF5; color: #065F46; border: 1px solid #A7F3D0; }
.badge-warning { background: #FFFBEB; color: #92400E; border: 1px solid #FDE68A; }
.badge-danger  { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }
.badge-storage { background: #F5F3FF; color: #5B21B6; border: 1px solid #DDD6FE; }
.badge-blue    { background: #EFF6FF; color: #1E40AF; border: 1px solid #BFDBFE; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 9px 18px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: #FFF;
}
.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-success {
  background: #059669;
  color: #FFF;
}
.btn-success:hover {
  background: #047857;
}

.btn-secondary {
  background: var(--bg-subtle);
  color: var(--text-main);
  border: 1px solid var(--border-light);
}
.btn-secondary:hover {
  background: #E2E8F0;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-sub);
}
.btn-outline:hover {
  background: var(--bg-subtle);
  color: var(--text-main);
}

.btn-sm {
  padding: 4px 8px;
  font-size: 0.78rem;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   MOBILE WORKER MODE (스마트폰 최적화)
   ========================================================================== */
.mobile-container {
  max-width: 540px;
  margin: 0 auto;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.mobile-header {
  background: linear-gradient(135deg, var(--primary), #1E40AF);
  color: #FFF;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.worker-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.worker-avatar {
  font-size: 2rem;
  background: rgba(255, 255, 255, 0.15);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
}

.worker-name {
  font-size: 1.1rem;
  font-weight: 700;
}

.worker-sub {
  font-size: 0.78rem;
  opacity: 0.85;
}

.mobile-quick-stats {
  display: flex;
  gap: 0.6rem;
}

.stat-box {
  background: rgba(255, 255, 255, 0.12);
  padding: 6px 10px;
  border-radius: var(--radius-md);
  text-align: center;
}

.stat-num {
  font-size: 1.2rem;
  font-weight: 800;
  display: block;
  line-height: 1;
}

.stat-lbl {
  font-size: 0.68rem;
  opacity: 0.8;
}

.mobile-search-bar {
  padding: 1rem;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mobile-search-bar input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
}

.mobile-filter-chips {
  display: flex;
  gap: 0.5rem;
}

.chip {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
  background: #FFF;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-sub);
  cursor: pointer;
}

.chip.active {
  background: var(--primary);
  color: #FFF;
  border-color: var(--primary);
}

.mobile-card-list {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-height: 70vh;
  overflow-y: auto;
}

.worker-card {
  background: #FFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.15rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
  transition: var(--transition);
  position: relative;
}

.worker-card.is-done {
  border-left: 4px solid var(--success);
  background: linear-gradient(180deg, #FFFFFF, #F0FDF4);
}

.worker-card.is-progress {
  border-left: 4px solid #2563EB;
  background: linear-gradient(180deg, #FFFFFF, #EFF6FF);
}

.worker-card.is-ready {
  border-left: 4px solid var(--warning);
}

/* ==========================================================================
   Container Box Badge (화물 컨테이너 형상 뱃지)
   ========================================================================== */
.cntr-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 3px 8px 3px 5px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: -0.2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  border: 1.5px solid transparent;
  white-space: nowrap;
  user-select: none;
  vertical-align: middle;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cntr-icon-img {
  width: 22px;
  height: 20px;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
  flex-shrink: 0;
}

/* 1. 대기중 (주황/황동색 컨테이너) */
.cntr-badge.cntr-ready {
  background: #FFFBEB;
  color: #B45309;
  border-color: #FCD34D;
}
.cntr-badge.cntr-ready:hover {
  background: #FEF3C7;
  border-color: #F59E0B;
}

/* 2. 작업중 (항만 코발트 블루 컨테이너) */
.cntr-badge.cntr-progress {
  background: #EFF6FF;
  color: #1D4ED8;
  border-color: #93C5FD;
  animation: cntrProgressGlow 2s infinite ease-in-out;
}

@keyframes cntrProgressGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4); border-color: #93C5FD; }
  50% { box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25); border-color: #3B82F6; }
}

/* 3. 작업완료 (포레스트 에메랄드 그린 컨테이너) */
.cntr-badge.cntr-done {
  background: #ECFDF5;
  color: #047857;
  border-color: #6EE7B7;
}
.cntr-badge.cntr-done:hover {
  background: #D1FAE5;
  border-color: #10B981;
}

/* 4. 이월 단독 뱃지 (미완료 이월 건 전용) */
.cntr-badge.cntr-rollover {
  background: #FEF2F2;
  color: #DC2626;
  border-color: #FECACA;
  font-weight: 800;
}

.cntr-badge.cntr-rollover:hover {
  background: #FEE2E2;
  border-color: #F87171;
}

.cntr-badge.cntr-rollover .rollover-icon {
  font-size: 0.95rem;
  line-height: 1;
}

/* ==========================================================================
   Worker 3-Step Stepper Buttons (대기중 / 작업중 / 작업완료 3단계 원터치)
   ========================================================================== */
.worker-status-stepper {
  display: grid;
  grid-template-columns: 1fr 1fr 1.15fr;
  gap: 0.45rem;
  width: 100%;
}

.step-btn {
  padding: 10px 4px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 700;
  border: 1.5px solid #E2E8F0;
  background: #F8FAFC;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  transition: var(--transition);
  user-select: none;
}

.step-btn:hover {
  background: #EDF2F7;
  color: var(--text-main);
  border-color: #CBD5E1;
}

.step-btn:active {
  transform: scale(0.97);
}

/* Step 1: 대기중 (READY) */
.step-btn.step-ready.active {
  background: linear-gradient(180deg, #FDE68A 0%, #F59E0B 100%);
  color: #78350F;
  border-color: #D97706;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.35);
}

/* Step 2: 작업중 (IN_PROGRESS) */
.step-btn.step-progress.active {
  background: linear-gradient(180deg, #3B82F6 0%, #1D4ED8 100%);
  color: #FFFFFF;
  border-color: #1E40AF;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.35);
}

/* Step 3: 작업완료 (DONE) */
.step-btn.step-done.active {
  background: linear-gradient(180deg, #10B981 0%, #047857 100%);
  color: #FFFFFF;
  border-color: #065F46;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.35);
}

.card-actions {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px dashed #E2E8F0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* PDA Date Bar */
.pda-date-bar {
  background: #F8FAFC;
  border-bottom: 1px solid var(--border-light);
  padding: 0.75rem 1rem;
}

.pda-date-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.pda-date-lbl {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-sub);
  white-space: nowrap;
}

.pda-date-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.btn-pda-arrow {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  color: var(--text-sub);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-pda-arrow:hover {
  background: var(--bg-subtle);
  border-color: var(--primary);
  color: var(--primary);
}

.pda-date-picker-box {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.pda-date-picker-box:hover {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(30, 58, 138, 0.12);
}

.pda-date-val {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1E293B;
  letter-spacing: -0.2px;
}

.pda-day-val {
  font-size: 0.82rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
}

.pda-day-val.day-weekday {
  color: #1E40AF;
  background: #EFF6FF;
}

.pda-day-val.day-sat {
  color: #1D4ED8;
  background: #DBEAFE;
}

.pda-day-val.day-sun {
  color: #DC2626;
  background: #FEE2E2;
}

.pda-cal-ico {
  font-size: 0.85rem;
  color: #64748B;
  margin-left: 2px;
}

.pda-hidden-date {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.btn-pda-today {
  background: var(--primary);
  color: #FFF;
  border: none;
  border-radius: var(--radius-sm);
  padding: 5px 10px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.btn-pda-today:hover {
  background: var(--primary-hover);
}

/* Rollover Badge & Button */
.badge-rollover {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  background: #FEF2F2;
  color: #DC2626;
  border: 1px solid #FECACA;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: -0.2px;
  animation: rolloverGlow 2.5s infinite ease-in-out;
}

@keyframes rolloverGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4); }
  50% { box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2); }
}

.card-top-right {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-defer {
  width: 100%;
  background: #F8FAFC;
  border: 1px dashed #CBD5E1;
  border-radius: var(--radius-md);
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748B;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  transition: var(--transition);
}

.btn-defer:hover {
  background: #FEF2F2;
  border-color: #F87171;
  color: #DC2626;
}

/* Completed Animation & Empty State */
.card-fade-out {
  opacity: 0;
  transform: translateY(-8px) scale(0.96);
  transition: all 0.35s ease;
}

.pda-empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 1px dashed #CBD5E1;
}

.pda-empty-icon {
  font-size: 3rem;
  margin-bottom: 0.75rem;
}

.pda-empty-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 0.35rem;
}

.pda-empty-desc {
  font-size: 0.85rem;
  color: #64748B;
}

/* ==========================================================================
   SETTLEMENT HUB (LG생활건강 마감)
   ========================================================================== */
.settlement-kpi-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.settle-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.settle-card.card-highlight {
  background: linear-gradient(135deg, #1E3A8A, #172554);
  color: #FFF;
  border: none;
}

.settle-card.card-highlight .settle-lbl { color: #93C5FD; }
.settle-card.card-highlight .settle-detail { color: #BFDBFE; }

.settle-lbl {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-sub);
  margin-bottom: 0.25rem;
}

.settle-val {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.text-bold-lg {
  font-size: 2.1rem;
  color: #FCD34D;
}

.settle-detail {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.settlement-breakdown {
  background: #FFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.breakdown-tag {
  font-size: 0.88rem;
  color: var(--text-sub);
}

.breakdown-tag span {
  font-weight: 700;
  color: var(--primary);
}

.breakdown-info {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-left: auto;
}

.settlement-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}

.settlement-table th {
  padding: 8px 3px;
  font-size: 0.77rem;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.3px;
}

.settlement-table td {
  padding: 7px 3px;
  font-size: 0.81rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}

/* 12개 컬럼별 폭 정밀 배분 (합계 100%) - 스크롤 없이 완벽 압축 */
.settlement-table th:nth-child(1), .settlement-table td:nth-child(1) { width: 7.2%; text-align: center; } /* 출하일 */
.settlement-table th:nth-child(2), .settlement-table td:nth-child(2) { width: 6.5%; text-align: center; } /* 선적번호 (대폭 축소) */
.settlement-table th:nth-child(3), .settlement-table td:nth-child(3) { width: 8.0%; text-align: left; }   /* 수출국 */
.settlement-table th:nth-child(4), .settlement-table td:nth-child(4) { width: 9.5%; text-align: center; } /* 컨테이너 NO */
.settlement-table th:nth-child(5), .settlement-table td:nth-child(5) { width: 7.8%; text-align: center; } /* SEAL NO */
.settlement-table th:nth-child(6), .settlement-table td:nth-child(6) { width: 4.5%; text-align: center; } /* 규격 */
.settlement-table th:nth-child(7), .settlement-table td:nth-child(7) { width: 7.8%; text-align: center; } /* 구간/터미널 */
.settlement-table th:nth-child(8), .settlement-table td:nth-child(8) { width: 7.8%; text-align: right; }  /* 운송료(원) */
.settlement-table th:nth-child(9), .settlement-table td:nth-child(9) { width: 7.8%; text-align: right; }  /* 부대비용(원) */
.settlement-table th:nth-child(10), .settlement-table td:nth-child(10) { width: 8.3%; text-align: right; } /* 합계(원) */
.settlement-table th:nth-child(11), .settlement-table td:nth-child(11) { width: 18.8%; text-align: left; } /* 산출근거 / 비고 */
.settlement-table th:nth-child(12), .settlement-table td:nth-child(12) { width: 6.0%; text-align: center; } /* 금액수정 */

.btn-settle-edit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 3px 6px;
  font-size: 0.74rem;
  font-weight: 700;
  border-radius: 4px;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  color: #334155;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-settle-edit:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #FFFFFF;
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  padding: 1rem;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: #FFF;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 780px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.95);
  transition: var(--transition);
}

.modal-container.modal-sm {
  max-width: 460px;
}

.modal-overlay.active .modal-container {
  transform: scale(1);
}

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.modal-close {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  background: var(--bg-subtle);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-sub);
}

.form-group input, .form-group select, .form-group textarea {
  padding: 9px 12px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  background: #FFF;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.confirm-info-box {
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.info-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
}

/* Toast Notification */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 2000;
}

.toast {
  background: #0F172A;
  color: #FFF;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  animation: slideIn 0.3s ease;
}

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

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Utilities */
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1.25rem; }
.py-4 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.text-center { text-align: center; }

/* Responsive adjustments */
@media (max-width: 900px) {
  .header-container {
    height: auto;
    padding: 0.75rem 1rem;
    flex-direction: column;
    align-items: stretch;
  }
  .dash-grid-two {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-group.full-width {
    grid-column: span 1;
  }
  .main-nav {
    overflow-x: auto;
    white-space: nowrap;
  }
}

/* ==========================================================================
   SAFE FREIGHT TARIFF RATE BOARD & MODAL STYLES
   ========================================================================== */
.tariff-panel {
  padding: 1.25rem 1.5rem;
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.tariff-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid #EDF2F7;
}

.tariff-badge {
  background: #EEF2FF;
  color: #4F46E5;
  border: 1px solid #C7D2FE;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.tariff-title {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
}

.tariff-sub {
  font-size: 0.84rem;
  color: var(--text-sub);
  margin-top: 4px;
}

.tariff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 1024px) {
  .tariff-grid {
    grid-template-columns: 1fr;
  }
}

.tariff-section {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-md);
  padding: 0.85rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.tariff-sec-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: #1E293B;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

.tariff-table-wrapper {
  overflow-x: auto;
}

.tariff-mini-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.tariff-mini-table th {
  background: #F1F5F9;
  color: #475569;
  font-weight: 700;
  text-align: center;
  padding: 6px 10px;
  border: 1px solid #E2E8F0;
  white-space: nowrap;
}

.tariff-mini-table td {
  padding: 6px 10px;
  border: 1px solid #E2E8F0;
  text-align: center;
  color: #1E293B;
}

.tariff-mini-table tr.highlight-row {
  background: #F0FDF4;
}

.tariff-mini-table tr.highlight-row td {
  border-color: #DCFCE7;
}

.tariff-mini-table tr.subtle-row {
  background: #F8FAFC;
}

.badge-mini {
  background: #3B82F6;
  color: #FFF;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  margin-left: 2px;
}

.modal-lg {
  max-width: 780px !important;
  width: 95%;
}

.modal-scrollable {
  max-height: 70vh;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.form-section-title {
  font-size: 0.98rem;
  font-weight: 800;
  color: #1E293B;
  padding-bottom: 4px;
  border-bottom: 2px solid #E2E8F0;
  margin-bottom: 0.75rem;
}

.tariff-edit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.tariff-edit-grid .form-group {
  margin-bottom: 0;
}

.tariff-edit-grid .form-group label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #475569;
  margin-bottom: 4px;
}

.tariff-edit-grid .form-group input {
  padding: 6px 10px;
  font-size: 0.9rem;
  font-weight: 700;
  font-family: monospace;
}

.tariff-edit-grid .form-group.highlight-input {
  background: #F0FDF4;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px dashed #86EFAC;
}

.btn-outline-primary {
  background: #FFFFFF;
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-outline-primary:hover {
  background: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 2px 6px rgba(30, 58, 138, 0.25);
}

/* Header Buttons: PDA Link & Admin Lock */
.btn-pda-link-trigger {
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  color: #1E3A8A;
  padding: 6px 12px;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-pda-link-trigger:hover {
  background: #DBEAFE;
  box-shadow: var(--shadow-sm);
}

.btn-admin-lock {
  background: transparent;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.btn-admin-lock:hover {
  background: #FEE2E2;
  border-color: #FCA5A5;
  color: #DC2626;
}

/* Admin Lock Screen Overlay */
.admin-lock-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(12px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.admin-lock-card {
  background: #FFFFFF;
  border-radius: 20px;
  width: 100%;
  max-width: 400px;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  animation: modalScaleIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.lock-brand-icon {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.admin-lock-input {
  width: 100%;
  height: 48px;
  text-align: center;
  font-size: 1.1rem;
  border-radius: 10px;
  border: 2px solid #E2E8F0;
  outline: none;
  font-weight: 600;
  letter-spacing: 2px;
  transition: border-color 0.2s;
}

.admin-lock-input:focus {
  border-color: #1E3A8A;
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.15);
}
