/* ============================================================
   CAR BOOKING SYSTEM — Main Stylesheet
   Font: TH Sarabun New (Google Fonts)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Sarabun:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  --primary:       #1565C0;
  --primary-dark:  #0D47A1;
  --primary-light: #E3F2FD;
  --secondary:     #455A64;
  --success:       #2E7D32;
  --success-light: #E8F5E9;
  --warning:       #E65100;
  --warning-light: #FFF3E0;
  --danger:        #C62828;
  --danger-light:  #FFEBEE;
  --info:          #00695C;
  --info-light:    #E0F2F1;
  --gray-50:       #FAFAFA;
  --gray-100:      #F5F5F5;
  --gray-200:      #EEEEEE;
  --gray-300:      #E0E0E0;
  --gray-400:      #BDBDBD;
  --gray-500:      #9E9E9E;
  --gray-600:      #757575;
  --gray-700:      #616161;
  --gray-800:      #424242;
  --gray-900:      #212121;
  --border-radius: 10px;
  --border-radius-sm: 6px;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow:     0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -1px rgba(0,0,0,.06);
  --shadow-md:  0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -2px rgba(0,0,0,.05);
  --transition: all .2s ease;
}

/* ── Base ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Sarabun', 'TH Sarabun New', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--gray-900);
  background: var(--gray-100);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Sarabun', 'TH Sarabun New', sans-serif;
  font-weight: 600;
  line-height: 1.3;
}

/* ── Bootstrap Overrides ───────────────────────────────────── */
.btn {
  font-family: 'Sarabun', sans-serif;
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--border-radius-sm);
  padding: .45rem 1.1rem;
  transition: var(--transition);
  border: none;
}
.btn:focus { box-shadow: none; }
.btn-sm { font-size: 14px; padding: .3rem .8rem; }
.btn-lg { font-size: 17px; padding: .65rem 1.5rem; }

.btn-primary  { background: var(--primary);   color: #fff; }
.btn-primary:hover  { background: var(--primary-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-success  { background: var(--success);   color: #fff; }
.btn-success:hover  { background: #1B5E20; color: #fff; transform: translateY(-1px); }
.btn-danger   { background: var(--danger);    color: #fff; }
.btn-danger:hover   { background: #B71C1C; color: #fff; transform: translateY(-1px); }
.btn-secondary { background: var(--secondary); color: #fff; }
.btn-secondary:hover { background: #37474F; color: #fff; transform: translateY(-1px); }
.btn-info     { background: var(--info);      color: #fff; }
.btn-info:hover     { background: #004D40; color: #fff; transform: translateY(-1px); }
.btn-warning  { background: var(--warning);   color: #fff; }
.btn-warning:hover  { background: #BF360C; color: #fff; transform: translateY(-1px); }

.btn-outline-primary { border: 2px solid var(--primary); color: var(--primary); background: transparent; }
.btn-outline-primary:hover { background: var(--primary); color: #fff; }

.form-control, .form-select {
  font-family: 'Sarabun', sans-serif;
  font-size: 15px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--border-radius-sm);
  padding: .5rem .85rem;
  transition: var(--transition);
  background-color: #fff;
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(21,101,192,.15);
  outline: none;
}
.form-control[readonly] {
  background: var(--gray-50);
  color: var(--gray-700);
}
.form-label {
  font-family: 'Sarabun', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-800);
  margin-bottom: .3rem;
}
.form-text { font-size: 13px; }

.card {
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  background: #fff;
  transition: var(--transition);
}
.card-header {
  border-radius: var(--border-radius) var(--border-radius) 0 0 !important;
  padding: 1rem 1.25rem;
  font-weight: 600;
  font-size: 16px;
  border-bottom: 1px solid var(--gray-200);
  background: var(--gray-50);
  color: var(--gray-900);
}
.card-header.bg-primary { background: var(--primary) !important; color: #fff !important; border-bottom: none; }
.card-body { padding: 1.25rem; }

.table {
  font-family: 'Sarabun', sans-serif;
  font-size: 15px;
  margin-bottom: 0;
}
.table thead th {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  border: none;
  padding: .75rem 1rem;
  white-space: nowrap;
}
.table tbody tr {
  transition: var(--transition);
}
.table tbody tr:hover {
  background: var(--primary-light) !important;
}
.table td {
  padding: .7rem 1rem;
  vertical-align: middle;
  border-bottom: 1px solid var(--gray-200);
}
.table-bordered td, .table-bordered th { border: 1px solid var(--gray-200) !important; }

.alert {
  font-family: 'Sarabun', sans-serif;
  font-size: 15px;
  border: none;
  border-radius: var(--border-radius-sm);
  padding: .75rem 1.1rem;
}
.alert-success { background: var(--success-light); color: var(--success); }
.alert-danger  { background: var(--danger-light);  color: var(--danger); }
.alert-warning { background: var(--warning-light); color: var(--warning); }
.alert-info    { background: var(--info-light);    color: var(--info); }

.modal-content  { border: none; border-radius: var(--border-radius); box-shadow: var(--shadow-md); }
.modal-header   { border-bottom: 1px solid var(--gray-200); padding: 1rem 1.25rem; }
.modal-footer   { border-top: 1px solid var(--gray-200); }
.modal-title    { font-weight: 600; font-size: 17px; }

/* ── Navbar ────────────────────────────────────────────────── */
.app-navbar {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
  padding: .6rem 0;
  position: sticky;
  top: 0;
  z-index: 1030;
}
.app-navbar .navbar-brand {
  font-size: 18px;
  font-weight: 700;
  color: #fff !important;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.app-navbar .navbar-brand .brand-icon {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.2);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.app-navbar .nav-link {
  color: rgba(255,255,255,.85) !important;
  font-size: 15px;
  font-weight: 500;
  padding: .4rem .85rem !important;
  border-radius: var(--border-radius-sm);
  transition: var(--transition);
}
.app-navbar .nav-link:hover, .app-navbar .nav-link.active {
  color: #fff !important;
  background: rgba(255,255,255,.15);
}
.app-navbar .nav-link i { margin-right: .3rem; }
.app-navbar .dropdown-menu {
  background: #fff;
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  padding: .4rem 0;
  min-width: 170px;
}
.app-navbar .dropdown-item {
  font-family: 'Sarabun', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-800);
  padding: .45rem 1.1rem;
}
.app-navbar .dropdown-item:hover {
  background: var(--primary-light);
  color: var(--primary);
}
.app-navbar .dropdown-divider { border-color: var(--gray-200); }
.navbar-user-badge {
  background: rgba(255,255,255,.15);
  border-radius: 20px;
  padding: .3rem .9rem;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: .4rem;
}
.navbar-user-badge .user-avatar {
  width: 28px; height: 28px;
  background: rgba(255,255,255,.3);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  font-weight: 700;
}
.navbar-toggler {
  border: 1.5px solid rgba(255,255,255,.4);
  padding: .35rem .6rem;
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255%2c255%2c255%2c0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ── Page Header ───────────────────────────────────────────── */
.page-header {
  background: #fff;
  border-bottom: 1px solid var(--gray-200);
  padding: 1rem 0;
  margin-bottom: 1.5rem;
}
.page-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.page-title .title-icon {
  width: 38px; height: 38px;
  background: var(--primary-light);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  font-size: 18px;
}
.breadcrumb {
  font-size: 13px;
  margin: 0;
  background: none;
  padding: 0;
}
.breadcrumb-item a { color: var(--primary); text-decoration: none; }
.breadcrumb-item.active { color: var(--gray-600); }

/* ── Status Badges ─────────────────────────────────────────── */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .25rem .75rem;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.status-badge::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  display: inline-block;
  background: currentColor;
  opacity: .7;
}
.status-DRAFT                   { background: var(--gray-200);  color: var(--gray-700); }
.status-WAIT_TRANSPORT_APPROVAL { background: #FFF8E1;          color: #F57F17; }
.status-WAIT_ZONE8_APPROVAL     { background: #E3F2FD;          color: #1565C0; }
.status-WAIT_OUTSIDE_APPROVAL   { background: #F3E5F5;          color: #6A1B9A; }
.status-WAIT_ASSIGNMENT         { background: #E0F7FA;          color: #00695C; }
.status-APPROVED                { background: var(--success-light); color: var(--success); }
.status-REJECTED                { background: var(--danger-light);  color: var(--danger); }
.status-ASSIGNED                { background: #E8EAF6;          color: #283593; }
.status-COMPLETED               { background: #E0F2F1;          color: #00695C; }
.status-CANCELLED               { background: var(--gray-200);  color: var(--gray-600); }
/* legacy compat */
.status-WAIT_HEAD_APPROVAL      { background: #FFF8E1;          color: #F57F17; }
.status-WAIT_FINAL_APPROVAL     { background: #E3F2FD;          color: #1565C0; }

/* ── Dashboard Cards ───────────────────────────────────────── */
.stat-card {
  border-radius: var(--border-radius);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: var(--transition);
  cursor: default;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat-card .stat-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}
.stat-card .stat-value {
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: .15rem;
}
.stat-card .stat-label {
  font-size: 14px;
  font-weight: 500;
  opacity: .85;
}
.stat-primary { background: linear-gradient(135deg,#1565C0,#1976D2); color:#fff; }
.stat-primary .stat-icon { background: rgba(255,255,255,.2); color:#fff; }
.stat-success { background: linear-gradient(135deg,#2E7D32,#388E3C); color:#fff; }
.stat-success .stat-icon { background: rgba(255,255,255,.2); color:#fff; }
.stat-warning { background: linear-gradient(135deg,#E65100,#F57C00); color:#fff; }
.stat-warning .stat-icon { background: rgba(255,255,255,.2); color:#fff; }
.stat-info    { background: linear-gradient(135deg,#00695C,#00897B); color:#fff; }
.stat-info .stat-icon    { background: rgba(255,255,255,.2); color:#fff; }

/* ── Menu Cards (dashboard) ────────────────────────────────── */
.menu-card {
  border-radius: var(--border-radius);
  padding: 1.5rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .75rem;
  transition: var(--transition);
  background: #fff;
  box-shadow: var(--shadow-sm);
  color: var(--gray-900);
}
.menu-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  color: var(--primary);
}
.menu-card .menu-icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  transition: var(--transition);
}
.menu-card:hover .menu-icon { transform: scale(1.08); }
.menu-card .menu-label { font-size: 16px; font-weight: 600; }
.menu-card .menu-desc  { font-size: 13px; color: var(--gray-500); }

/* ── Section Divider ───────────────────────────────────────── */
.section-divider {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 1.25rem 0 .75rem;
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-700);
}
.section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gray-200);
}

/* ── Passenger Row ─────────────────────────────────────────── */
.passenger-row {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius-sm);
  padding: .5rem;
  margin-bottom: .5rem;
  transition: var(--transition);
}
.passenger-row:hover { border-color: var(--primary); background: var(--primary-light); }

/* ── Required Mark ─────────────────────────────────────────── */
.required { color: var(--danger); margin-left: .15rem; }

/* ── Loading Spinner ───────────────────────────────────────── */
.spinner-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.35);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
}
.spinner-overlay.show { display: flex; }
.spinner-overlay .spinner-text {
  color: #fff;
  font-size: 16px;
  font-weight: 500;
}

/* ── Toast Container ───────────────────────────────────────── */
.toast-container {
  position: fixed;
  top: 70px;
  right: 1rem;
  z-index: 9990;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.toast-msg {
  min-width: 280px;
  max-width: 380px;
  padding: .85rem 1.1rem;
  border-radius: var(--border-radius-sm);
  font-size: 15px;
  font-weight: 500;
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  box-shadow: var(--shadow-md);
  animation: slideInRight .3s ease forwards;
  cursor: pointer;
}
.toast-msg.success { background: var(--success-light); color: var(--success); border-left: 4px solid var(--success); }
.toast-msg.error   { background: var(--danger-light);  color: var(--danger);  border-left: 4px solid var(--danger); }
.toast-msg.info    { background: var(--info-light);    color: var(--info);    border-left: 4px solid var(--info); }
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(60px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeOut {
  from { opacity: 1; }
  to   { opacity: 0; transform: translateX(60px); }
}

/* ── Login Page ────────────────────────────────────────────── */
.login-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #0D47A1 0%, #1565C0 50%, #1976D2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.login-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
  overflow: hidden;
}
.login-header {
  background: linear-gradient(135deg, #0D47A1, #1565C0);
  padding: 2.5rem 2rem 2rem;
  text-align: center;
  color: #fff;
}
.login-header .hospital-logo {
  width: 72px; height: 72px;
  background: rgba(255,255,255,.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px;
  margin: 0 auto 1rem;
  border: 3px solid rgba(255,255,255,.4);
}
.login-header h4 { font-size: 20px; font-weight: 700; margin-bottom: .25rem; }
.login-header p  { font-size: 14px; opacity: .85; margin: 0; }
.login-body {
  padding: 2rem;
}
.login-body .form-control {
  padding: .65rem 1rem .65rem 2.75rem;
  font-size: 15px;
}
.input-icon-wrap {
  position: relative;
}
.input-icon-wrap .input-icon {
  position: absolute;
  left: .85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-500);
  font-size: 15px;
  pointer-events: none;
}
.btn-login {
  width: 100%;
  padding: .75rem;
  font-size: 17px;
  font-weight: 600;
  background: linear-gradient(135deg, #0D47A1, #1565C0);
  color: #fff;
  border: none;
  border-radius: 8px;
  transition: var(--transition);
}
.btn-login:hover {
  background: linear-gradient(135deg, #0A3D91, #1258B0);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(13,71,161,.4);
}

/* ── Timeline (approval history) ──────────────────────────── */
.approval-timeline { list-style: none; padding: 0; margin: 0; }
.timeline-item {
  display: flex;
  gap: 1rem;
  padding-bottom: 1.25rem;
  position: relative;
}
.timeline-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 34px;
  bottom: 0;
  width: 2px;
  background: var(--gray-200);
}
.timeline-dot {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
  margin-top: .1rem;
}
.dot-approved { background: var(--success-light); color: var(--success); }
.dot-rejected { background: var(--danger-light);  color: var(--danger); }
.dot-pending  { background: var(--gray-200);       color: var(--gray-500); }
.timeline-content { flex: 1; }
.timeline-title { font-weight: 600; font-size: 15px; margin-bottom: .1rem; }
.timeline-meta  { font-size: 13px; color: var(--gray-500); }
.timeline-remark { font-size: 14px; color: var(--gray-700); margin-top: .25rem; background: var(--gray-100); padding: .4rem .75rem; border-radius: 6px; }

/* ── Info Grid (request detail) ────────────────────────────── */
.info-item { margin-bottom: .75rem; }
.info-label { font-size: 13px; font-weight: 600; color: var(--gray-500); text-transform: uppercase; letter-spacing: .4px; margin-bottom: .15rem; }
.info-value { font-size: 15px; color: var(--gray-900); }

/* ── Empty State ───────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--gray-500);
}
.empty-state .empty-icon {
  font-size: 48px;
  margin-bottom: .75rem;
  opacity: .4;
}
.empty-state p { font-size: 15px; margin: 0; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 767.98px) {
  body { font-size: 15px; }
  .page-title { font-size: 18px; }
  .table { font-size: 13.5px; }
  .table thead th { font-size: 13.5px; padding: .55rem .65rem; }
  .table td { padding: .55rem .65rem; }
  .btn { font-size: 14px; }
  .btn-sm { font-size: 13px; }
  .stat-card .stat-value { font-size: 22px; }
  .app-navbar .navbar-brand { font-size: 16px; }
  .login-header { padding: 2rem 1.5rem 1.5rem; }
  .login-body { padding: 1.5rem; }
  .card-body { padding: 1rem; }
  /* Hide less important table columns on small screens */
  .table .col-hide-sm { display: none; }
}

@media (max-width: 575.98px) {
  .d-flex.flex-wrap-mobile { flex-wrap: wrap !important; gap: .5rem; }
  .table thead th:nth-child(n+5):not(:last-child) { display: none; }
  .table td:nth-child(n+5):not(:last-child)       { display: none; }
}

/* ── Ride Card (Grab/Bolt style) ───────────────────────────── */
.ride-card {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(21,101,192,.1);
  background: #fff;
  border: 1px solid rgba(0,0,0,.05);
}
.ride-card-header {
  background: linear-gradient(135deg, #1565C0, #1E88E5);
  color: #fff;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}
.ride-pulse {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #69F0AE;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(105,240,174,.5);
  animation: ridePulse 1.4s infinite;
}
@keyframes ridePulse {
  0%   { box-shadow: 0 0 0 0 rgba(105,240,174,.6); }
  70%  { box-shadow: 0 0 0 8px rgba(105,240,174,0); }
  100% { box-shadow: 0 0 0 0 rgba(105,240,174,0); }
}
.ride-card-body {
  padding: 1.5rem;
}

/* ── Main two-column: photo | details ── */
.ride-main-row {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
}
.ride-photo-col {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.ride-photo-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  gap: .3rem;
}
.ride-photo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  text-decoration: none;
}
.ride-photo-avatar {
  width: 110px; height: 110px;
  border-radius: 50%;
  background: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,.15);
  transition: transform .15s, box-shadow .15s;
  border: 4px solid #fff;
}
a.ride-photo-wrap:hover .ride-photo-avatar {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(21,101,192,.25);
}
.ride-photo-avatar svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.ride-nick-badge {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
  border-radius: 20px;
  padding: .15rem .7rem;
  letter-spacing: .3px;
}

/* departure time block */
.ride-depart-block { line-height: 1.2; }
.ride-depart-label { font-size: 11px; color: var(--gray-500); margin-bottom: .1rem; }
.ride-depart-time {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 1px;
  line-height: 1.1;
  text-shadow: 0 2px 4px rgba(21,101,192,.1);
}
.ride-depart-unit { font-size: 1rem; font-weight: 500; }
.ride-depart-date { font-size: 13px; color: var(--gray-600); margin-top: .2rem; font-weight: 500; }
.ride-depart-orig {
  display: inline-block;
  margin-top: .25rem;
  font-size: 11px;
  background: #FFF3E0;
  color: #E65100;
  border-radius: 20px;
  padding: .1rem .55rem;
}

/* assign modal info box */
.assign-info-box {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--gray-200);
}
.assign-depart-time {
  display: flex;
  align-items: baseline;
  gap: .5rem;
  background: linear-gradient(135deg, #1565C0, #1976D2);
  color: #fff;
  padding: .6rem 1rem;
}
.assign-depart-label { font-size: 13px; opacity: .85; }
.assign-depart-value { font-size: 1.6rem; font-weight: 800; letter-spacing: 1px; }
.assign-depart-date  { font-size: 12px; opacity: .75; margin-left: auto; }
.ride-detail-col { flex: 1; min-width: 0; }
.ride-driver-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--gray-800);
  line-height: 1.3;
}
.ride-driver-role {
  font-size: 12px;
  color: var(--gray-500);
  margin-bottom: .3rem;
}
.ride-phone-link {
  display: inline-block;
  font-size: 15px;
  font-weight: 600;
  color: var(--success);
  text-decoration: none;
  letter-spacing: .5px;
}
.ride-phone-link:hover { color: #1B5E20; }
.ride-plate-label {
  font-size: 11px;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: .2rem;
}
.ride-plate {
  font-size: 1.8rem;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: 1px;
  background: #f8f9fa;
  display: inline-block;
  padding: .4rem 1.2rem;
  border-radius: 10px;
  border: 2px solid #e0e0e0;
  box-shadow: inset 0 2px 4px rgba(0,0,0,.02);
}
.ride-plate-sm {
  font-size: 1.5rem;
  padding: .25rem .9rem;
  letter-spacing: 1px;
  border-width: 2px;
}
.ride-plate-type {
  font-size: 12px;
  color: var(--gray-500);
}
.ride-divider {
  border-top: 1px solid var(--gray-200);
  margin: .85rem 0;
}
.ride-trip-strip {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-top: .85rem;
  background: var(--gray-50);
  border-radius: 10px;
  overflow: hidden;
}
.ride-trip-item {
  flex: 1;
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  padding: .7rem .85rem;
}
.ride-trip-icon { font-size: 18px; margin-top: 1px; }
.ride-trip-sep {
  width: 1px;
  background: var(--gray-200);
  margin: .5rem 0;
}
.ride-note {
  margin-top: .85rem;
  padding: .6rem .85rem;
  background: #FFFDE7;
  border-left: 3px solid #F9A825;
  border-radius: 0 8px 8px 0;
  font-size: 13px;
  color: var(--gray-700);
}

/* ── Flatpickr overrides ───────────────────────────────────── */
.flatpickr-calendar {
  font-family: 'Sarabun', sans-serif;
  font-size: 14px;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,.15);
  border: 1px solid var(--gray-200);
}
.flatpickr-day.selected,
.flatpickr-day.selected:hover {
  background: var(--primary);
  border-color: var(--primary);
}
.flatpickr-day:hover {
  background: var(--primary-light);
}
.flatpickr-time input:hover,
.flatpickr-time input:focus,
.flatpickr-time .flatpickr-am-pm:hover {
  background: var(--primary-light);
}
.flatpickr-months .flatpickr-prev-month:hover svg,
.flatpickr-months .flatpickr-next-month:hover svg {
  fill: var(--primary);
}
.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month input.cur-year {
  font-family: 'Sarabun', sans-serif;
  font-weight: 600;
}
/* Input style when filled */
.flatpickr-input.form-control {
  background-color: #fff !important;
}
.flatpickr-input.form-control:not([value=""]) {
  border-color: var(--primary);
  color: var(--primary);
}

/* ── Print Overrides ───────────────────────────────────────── */
@media print {
  .app-navbar, .page-header, .btn, .toast-container, .spinner-overlay { display: none !important; }
  body { background: #fff; }
  .card { box-shadow: none; border: 1px solid #ddd; }
}
