
:root{--navy:#082a55;--sky:#16a7df;--blue:#0d70d6;--bg:#edf3f9;--white:#fff;--muted:#69788d;--line:#dfe7f0;--shadow:0 15px 38px rgba(4,31,64,.14);--green:#16834b;--orange:#d9850c;--red:#bd3d3d}
*{box-sizing:border-box}
body{margin:0;font-family:Tahoma,Arial,sans-serif;background:#eef4fb;color:var(--navy)}
button,input,textarea{font:inherit}button{cursor:pointer}.page{display:none}.page.active{display:block}
.app-shell{width:min(100%,760px);margin:auto;min-height:100vh;background:var(--bg);padding-bottom:90px}
.hero{min-height:420px;position:relative;overflow:hidden;background:radial-gradient(120% 100% at 20% 0%,#1a2f52 0%,#0a1730 55%,#050a18 100%)}
.hero::before{content:"✈";position:absolute;top:60px;left:-10px;font-size:150px;color:rgba(255,255,255,.05);transform:rotate(-18deg)}
.hero::after{content:"";position:absolute;right:0;bottom:-8px;width:46%;height:190px;background:linear-gradient(90deg,rgba(201,164,92,.18),rgba(201,164,92,.35));clip-path:polygon(14% 45%,35% 8%,48% 35%,68% 11%,86% 45%,100% 28%,100% 100%,0 100%)}
.topbar{position:relative;z-index:3;display:grid;grid-template-columns:48px 1fr 48px;align-items:center;padding:17px 20px 0}
.brand{text-align:center}.brand-title{font-size:34px;font-weight:900;color:#fff;letter-spacing:1px}.brand-title span{color:#d4af6a}.brand-subtitle{font-size:14px;font-weight:700;color:#b9c4d6}
.icon-btn{width:42px;height:42px;border:0;background:rgba(255,255,255,.12);border-radius:50%;font-size:23px;color:#fff}
.hero-copy{position:relative;z-index:3;text-align:center;padding-top:16px}.hero-copy h1{font-size:40px;line-height:1.18;margin:0;color:#fff;font-weight:900}.hero-copy p{font-weight:700;color:#d4af6a;letter-spacing:2px;margin-top:10px}
.join-driver-hero{border:0;background:linear-gradient(90deg,#d4af6a,#e8c988);color:#0a1730;padding:12px 20px;border-radius:999px;font-weight:900;box-shadow:0 9px 25px rgba(0,0,0,.35);margin-top:16px}
.mobile-menu{display:none;position:absolute;z-index:9;top:68px;right:18px;background:#fff;border-radius:16px;padding:10px;width:260px;box-shadow:var(--shadow)}.mobile-menu.show{display:grid}.mobile-menu button{border:0;background:transparent;padding:12px;text-align:right;border-radius:10px}
.cust-subheader{padding:14px 18px 0}
.cust-back-link{border:0;background:#fff;color:var(--navy);font-weight:800;padding:9px 16px;border-radius:12px;box-shadow:0 6px 18px rgba(8,42,85,.08)}
.cust-shell{width:min(100%,760px);margin:auto;padding:0 0 40px}
.cust-header{background:radial-gradient(120% 160% at 20% 0%,#1a2f52 0%,#0a1730 60%,#050a18 100%);padding:24px 18px 30px;display:flex;align-items:center;gap:14px;border-radius:0 0 26px 26px}
.cust-icon-btn{width:40px;height:40px;flex:0 0 40px;border:0;border-radius:50%;background:rgba(255,255,255,.12);color:#fff;font-size:19px}
.cust-avatar{width:52px;height:52px;flex:0 0 52px;border-radius:50%;background:#d4af6a;color:#0a1730;font-weight:900;font-size:22px;display:flex;align-items:center;justify-content:center}
.cust-header-text{flex:1;min-width:0}
.cust-header-text .eyebrow{color:#d4af6a}
.cust-header-text h1{margin:2px 0 0;color:#fff;font-size:22px;font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cust-biometric{padding:0 18px;margin-top:14px}
.cust-card{background:#fff;border-radius:18px;box-shadow:0 10px 28px rgba(8,42,85,.08);margin:16px 18px 0;padding:18px}
.cust-card-title{font-weight:900;font-size:17px;color:var(--navy)}
.cust-card-sub{color:var(--muted);font-size:13px;margin:4px 0 14px}
.cust-quick-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.cust-quick-grid .field{margin:0}
.cust-submit-btn{grid-column:1/-1;border:0;background:linear-gradient(90deg,#0d70d6,#16a7df);color:#fff;font-weight:900;padding:14px;border-radius:12px;margin-top:4px}
.cust-bookings .order-card{box-shadow:none;border:1px solid var(--line);margin-bottom:12px}
.cust-bookings .order-card:last-child{margin-bottom:0}
.cust-bookings .empty-box{margin:0}
@media(max-width:480px){.cust-quick-grid{grid-template-columns:1fr}}
.quick-request-cta{position:relative;z-index:4;margin:-58px 18px 0}
.quick-request-btn{width:100%;display:flex;align-items:center;gap:14px;background:#fff;border:0;border-radius:18px;box-shadow:0 14px 34px rgba(10,23,48,.18);padding:20px}
.quick-request-icon{font-size:34px;background:linear-gradient(135deg,#d4af6a,#f0c987);width:56px;height:56px;border-radius:14px;display:flex;align-items:center;justify-content:center;flex:0 0 56px}
.quick-request-btn strong{display:block;font-size:19px;color:var(--navy);font-weight:900}
.quick-request-btn small{display:block;color:var(--muted);font-size:13px;margin-top:4px}
.wego-search{position:relative;z-index:4;margin:-58px 18px 0;background:#fff;border-radius:18px;box-shadow:0 14px 34px rgba(10,23,48,.18);padding:14px}
.wego-tabs{display:flex;gap:4px;margin-bottom:12px;overflow-x:auto}
.wego-tab{border:0;background:transparent;padding:8px 12px;font-weight:800;font-size:13px;color:var(--muted);border-radius:10px;white-space:nowrap}
.wego-tab.active{background:var(--navy,#0a1730);color:#d4af6a}
.wego-panel{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.wego-panel input{border:1px solid #e3e8ee;border-radius:10px;padding:11px 12px;font-size:14px;font-family:inherit}
.wego-panel .submit-btn{grid-column:1/-1;margin-top:2px}
.wego-panel.hidden{display:none}
.services{position:relative;z-index:4;margin-top:18px;padding:0 18px;display:grid;gap:12px}
.service-card{min-height:118px;border:0;border-radius:22px;display:grid;grid-template-columns:82px 1fr 130px 42px;align-items:center;text-align:right;padding:0 14px;color:#fff;box-shadow:var(--shadow)}
.flight{background:linear-gradient(100deg,#073872,#2381c1)}.bus{background:linear-gradient(100deg,#1b6b2a,#48a44c)}.car{background:linear-gradient(100deg,#ae5e00,#e99912)}.hotel{background:linear-gradient(100deg,#4a2587,#8e5dbe)}
.service-icon{width:64px;height:64px;border-radius:17px;background:rgba(255,255,255,.16);display:grid;place-items:center;font-size:34px}.service-content h2{margin:0 0 7px;font-size:24px}.service-content p{margin:0;font-size:13px}.service-art{font-size:68px;text-align:center}.arrow{width:34px;height:34px;background:#fff;color:#173e67;border-radius:50%;display:grid;place-items:center}
.driver-join-banner{margin:16px 18px;background:#fff;border-radius:20px;padding:20px;display:flex;justify-content:space-between;gap:18px;align-items:center;box-shadow:var(--shadow)}.driver-join-banner h2{margin:6px 0}.driver-join-banner p{color:var(--muted);line-height:1.7;margin:0}
.bottom-nav{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,760px);height:72px;background:#fff;display:grid;grid-template-columns:repeat(5,1fr);z-index:20;border-top:1px solid var(--line)}.bottom-nav button{border:0;background:transparent;color:#717b8b;display:flex;flex-direction:column;align-items:center;justify-content:center}.bottom-nav button.active{color:#0d6ed8}.bottom-nav small{font-size:10px}
.booking-shell{width:min(100%,900px);margin:auto;min-height:100vh;padding:24px;background:linear-gradient(180deg,#e9f4ff,#f7f9fc)}
.booking-header{display:flex;gap:16px;max-width:800px;margin:0 auto 18px}.booking-header h1{font-size:34px;margin:5px 0}.booking-header p{color:var(--muted);line-height:1.7}.eyebrow{font-size:13px;color:var(--blue);font-weight:800}
.back-btn{border:0;width:44px;height:44px;border-radius:50%;background:#fff;font-size:24px;box-shadow:0 8px 20px rgba(0,0,0,.08)}
#dashboardBackBar .back-btn{width:auto;height:auto;border-radius:12px;padding:9px 16px;font-size:14px;font-weight:800;color:var(--navy)}
.booking-card,.login-card{max-width:800px;margin:auto;background:#fff;border-radius:24px;padding:22px;box-shadow:var(--shadow)}
.qr-shell{background:radial-gradient(120% 100% at 20% 0%,#1a2f52 0%,#0a1730 55%,#050a18 100%);border-radius:24px;padding:24px 16px}
.qr-header{position:relative;z-index:2}
.qr-header .eyebrow{color:#d4af6a}
.qr-header h1{color:#fff}
.qr-header p{color:#b9c4d6}
.qr-shell .booking-card{background:#fff;max-width:100%;box-sizing:border-box}
.notice-box{background:#fff7e8;border:1px solid #f2d4a2;color:#8a5c10;padding:13px;border-radius:13px;margin-bottom:18px;line-height:1.7}
.trip-switch{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:20px;background:#f0f5fa;padding:7px;border-radius:16px}.trip-type{border:0;background:transparent;padding:13px;border-radius:11px;font-weight:800;color:#5e6c7e}.trip-type.active{background:#0d70d6;color:#fff}
.booking-form{display:grid;grid-template-columns:1fr 1fr;gap:16px}.field{display:flex;flex-direction:column;gap:8px}.field label{font-size:14px;font-weight:800}.field input,.field textarea{border:1px solid var(--line);border-radius:12px;padding:13px 14px;background:#fff}.full{grid-column:1/-1}.agreement{display:flex;gap:9px;align-items:center;background:#f6f9fc;padding:13px;border-radius:12px;font-size:13px}
.submit-btn{border:0;background:linear-gradient(90deg,#0967c7,#18a3dd);color:#fff;padding:15px;border-radius:13px;font-weight:900}.secondary-btn{border:0;background:#eef4fb;color:#0b4b8c;padding:12px 18px;border-radius:11px;font-weight:bold}
.success-box{max-width:800px;margin:18px auto;background:#fff;border-radius:22px;padding:28px;text-align:center;box-shadow:var(--shadow)}.hidden{display:none}.check{width:64px;height:64px;margin:auto;background:#e2f7ea;color:#13814a;border-radius:50%;display:grid;place-items:center;font-size:35px}.summary{text-align:right;background:#f5f8fc;border-radius:13px;padding:15px;line-height:1.9}
.login-shell{min-height:100vh;display:grid;place-items:center;padding:20px;background:linear-gradient(180deg,#e9f4ff,#f7f9fc)}.login-card{width:min(430px,100%)}.wide-card{width:min(720px,100%)}.demo-box{display:grid;gap:5px;background:#f4f7fb;padding:14px;border-radius:12px;margin:15px 0;font-size:13px}.login-error{color:var(--red);margin-bottom:10px}.track-form{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:end;margin:18px 0}.track-result{margin:16px 0;background:#f6f9fc;border-radius:16px;padding:18px}.offer-box{margin-top:14px;background:#e9f7ef;border:1px solid #bfe7ce;border-radius:14px;padding:16px}.offer-price{font-size:28px;font-weight:900;color:var(--green)}
.dashboard-shell{min-height:100vh;display:grid;grid-template-columns:250px 1fr;background:#f4f7fb}.sidebar{background:#fff;border-left:1px solid var(--line);padding:18px;display:flex;flex-direction:column;gap:8px}.staff-head{display:flex;gap:10px;align-items:center;padding:10px 0 18px;border-bottom:1px solid var(--line);margin-bottom:8px}.staff-avatar{width:44px;height:44px;border-radius:50%;background:#e8f2ff;color:var(--blue);display:grid;place-items:center;font-weight:bold}.staff-head span{display:block;color:var(--muted);font-size:12px}.sidebar button{border:0;background:transparent;text-align:right;padding:12px;border-radius:10px}.sidebar .side-active,.sidebar button:hover{background:#eaf2ff;color:var(--blue)}
.dashboard-main{padding:28px}.dash-tab{display:none}.dash-tab.active{display:block}.dashboard-top{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:20px}.dashboard-top h1{margin:5px 0}.dashboard-top p{color:var(--muted)}.count-card{background:#fff;padding:16px 22px;border-radius:16px;box-shadow:0 8px 24px rgba(0,0,0,.05)}.count-card span{display:block;color:var(--muted);font-size:12px}.count-card strong{font-size:28px}
.order-card,.application-card,.driver-card{background:#fff;border-radius:18px;padding:20px;margin-bottom:14px;box-shadow:0 8px 25px rgba(0,0,0,.05)}.order-head{display:flex;justify-content:space-between;gap:12px;align-items:center}.order-id{color:var(--muted);font-size:12px}
.status{display:inline-block;padding:6px 10px;border-radius:999px;font-size:12px;font-weight:bold}.status-new{background:#fff1d9;color:#9a6200}.status-offer{background:#e7f0ff;color:#1f5fb7}.status-approved{background:#e5f7ed;color:#146c40}.status-rejected{background:#fde9e9;color:#a33a3a}.status-review{background:#fff1d9;color:#8e5b08}
.order-grid,.app-grid,.driver-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:14px}.order-item{background:#f7f9fc;border-radius:12px;padding:12px}.order-item span{display:block;color:var(--muted);font-size:11px;margin-bottom:4px}.documents{margin-top:14px;background:#f5f8fc;padding:13px;border-radius:13px;display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.document-item{background:#fff;border:1px solid var(--line);padding:10px;border-radius:10px;font-size:12px}
.offer-controls{margin-top:14px;padding:14px;border:1px dashed #cfd9e5;border-radius:14px;display:grid;grid-template-columns:1fr 1fr auto;gap:10px;align-items:end}.actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}.approve-btn{border:0;background:var(--green);color:#fff;padding:11px 16px;border-radius:11px;font-weight:bold}.reject-btn{border:0;background:var(--red);color:#fff;padding:11px 16px;border-radius:11px;font-weight:bold}.pending-btn{border:0;background:#eef4fb;color:#0b4b8c;padding:11px 16px;border-radius:11px;font-weight:bold}
.empty-box{background:#fff;padding:30px;border-radius:18px;text-align:center;color:var(--muted)}
@media(max-width:760px){.dashboard-shell{grid-template-columns:1fr}.dashboard-main{padding:16px}.order-grid,.app-grid,.driver-grid{grid-template-columns:1fr 1fr}.offer-controls{grid-template-columns:1fr}.driver-join-banner{flex-direction:column;align-items:stretch}.documents{grid-template-columns:1fr}}
@media(max-width:620px){.brand-title{font-size:29px}.hero-copy h1{font-size:33px}.service-card{grid-template-columns:70px 1fr 76px 35px}.service-art{font-size:50px}.booking-form{grid-template-columns:1fr}.full{grid-column:auto}.booking-shell{padding:16px}.order-grid,.app-grid,.driver-grid{grid-template-columns:1fr}.dashboard-top{flex-direction:column;align-items:stretch}.track-form{grid-template-columns:1fr}}


/* v5.1 - actual image previews in employee dashboard */
.document-item{overflow:hidden}
.doc-preview{
  margin-top:8px;
  width:100%;
  min-height:120px;
  border-radius:10px;
  background:#eef3f8;
  border:1px solid var(--line);
  display:grid;
  place-items:center;
  overflow:hidden;
}
.doc-preview img{
  width:100%;
  height:190px;
  object-fit:contain;
  background:#fff;
}
.doc-preview .file-placeholder{
  padding:18px;
  text-align:center;
  color:var(--muted);
  line-height:1.6;
  word-break:break-word;
}
.preview-link{
  display:inline-block;
  margin-top:8px;
  background:#eef4fb;
  color:#0b5cae;
  padding:7px 10px;
  border-radius:8px;
  text-decoration:none;
  font-size:12px;
  font-weight:bold;
}


/* v6 - driver activation/accounts/offers */
.email-preview{
  margin-top:14px;
  border:1px solid #cfe0f5;
  border-radius:16px;
  background:#fff;
  overflow:hidden;
}
.email-preview-head{
  background:#eef6ff;
  padding:12px 15px;
  font-weight:800;
  color:#125ca8;
}
.email-preview-body{
  padding:16px;
  line-height:1.9;
}
.activation-code{
  display:inline-block;
  direction:ltr;
  letter-spacing:4px;
  font-size:28px;
  font-weight:900;
  color:#0c67c8;
  background:#edf5ff;
  padding:8px 16px;
  border-radius:12px;
  margin:8px 0;
}
.activation-success{
  margin:16px 0;
  background:#e8f7ef;
  border:1px solid #bde4cd;
  color:#12673d;
  padding:15px;
  border-radius:13px;
  line-height:1.8;
}
.driver-offer-card{
  background:#fff;
  border-radius:18px;
  padding:20px;
  margin-bottom:14px;
  box-shadow:0 8px 25px rgba(0,0,0,.05);
}
.star-row{font-size:30px;letter-spacing:4px;cursor:pointer;color:#f0a500}
.star{cursor:pointer}
.qr-category-row{display:flex;gap:8px;flex-wrap:wrap}
.qr-cat-btn{flex:1;min-width:100px;border:2px solid #e3e8ee;background:#fff;border-radius:12px;padding:12px 8px;font-weight:800;color:var(--muted)}
.qr-cat-btn.active{border-color:var(--sky,#1f8fe0);color:var(--navy);background:#eef7ff}
.qr-price-display{background:#eef7ff;border-radius:12px;padding:16px;text-align:center;font-size:26px;font-weight:900;color:var(--navy)}
.qr-phone-row{display:flex;gap:8px}
.qr-phone-row select{flex:0 0 170px}
.qr-phone-row input{flex:1}
.price-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:6px}
.price-btn{border:2px solid var(--sky,#1f8fe0);background:#fff;color:var(--navy);font-weight:900;font-size:15px;border-radius:12px;padding:12px 4px}
.price-btn-rejected{border-color:#e24b4a;color:#e24b4a;opacity:.7;text-decoration:line-through}
@media(max-width:480px){.price-grid{grid-template-columns:repeat(3,1fr)}}
.driver-offer-price{
  font-size:24px;
  font-weight:900;
  color:#0d70d6;
}
.broadcast-note{
  background:#eef6ff;
  color:#185b9b;
  padding:12px;
  border-radius:12px;
  margin-top:12px;
}
.driver-accepted-note{
  background:#e8f7ef;
  color:#12673d;
  padding:12px;
  border-radius:12px;
  margin-top:12px;
}
.driver-dashboard-shell .sidebar button{
  width:100%;
}

.driver-toolbar{
  display:flex;
  align-items:center;
  gap:12px;
  margin:0 0 14px;
  background:#eef6ff;
  color:#255f95;
  padding:12px 14px;
  border-radius:12px;
}
.driver-toolbar span{font-size:13px}
@media(max-width:620px){.driver-toolbar{flex-direction:column;align-items:stretch}}


/* v7 - driver personal profile + employee release to customer */
.driver-profile-preview{
  width:110px;
  height:110px;
  border-radius:50%;
  object-fit:cover;
  border:4px solid #fff;
  box-shadow:0 8px 24px rgba(0,0,0,.12);
  background:#eef3f8;
}
.driver-detail-card{
  margin-top:14px;
  background:#f8fbff;
  border:1px solid #d8e7f7;
  border-radius:16px;
  padding:16px;
}
.driver-detail-head{
  display:flex;
  align-items:center;
  gap:14px;
  margin-bottom:14px;
}
.driver-car-photo{
  width:100%;
  max-width:420px;
  height:230px;
  object-fit:contain;
  background:#fff;
  border:1px solid var(--line);
  border-radius:14px;
}
.release-btn{
  border:0;
  background:linear-gradient(90deg,#16834b,#27a565);
  color:#fff;
  padding:12px 16px;
  border-radius:11px;
  font-weight:900;
}
.release-sent{
  margin-top:10px;
  padding:12px;
  border-radius:12px;
  background:#e7f7ee;
  color:#12673d;
}
.customer-driver-card{
  margin-top:16px;
  padding:18px;
  border-radius:16px;
  background:#f4f9ff;
  border:1px solid #d5e6f7;
}
.customer-driver-grid{
  display:grid;
  grid-template-columns:150px 1fr;
  gap:16px;
  align-items:start;
}
.customer-driver-grid .driver-profile-preview{
  width:140px;height:140px;
}
@media(max-width:620px){
  .customer-driver-grid{grid-template-columns:1fr}
}


/* v8 - payment flow */
.payment-card{
  background:#fff;
  border-radius:18px;
  padding:20px;
  margin-bottom:14px;
  box-shadow:0 8px 25px rgba(0,0,0,.05);
}
.payment-info-box{
  margin-top:14px;
  background:#fff8e8;
  border:1px solid #f0d9a4;
  color:#7e5b16;
  border-radius:14px;
  padding:15px;
  line-height:1.8;
}
.payment-wallet{
  font-size:24px;
  font-weight:900;
  color:#0d70d6;
  direction:ltr;
  display:inline-block;
  margin:5px 0;
}
.payment-proof{
  margin-top:14px;
  background:#f5f9fd;
  padding:14px;
  border-radius:13px;
}
.payment-proof img{
  width:100%;
  max-width:420px;
  height:240px;
  object-fit:contain;
  background:#fff;
  border:1px solid var(--line);
  border-radius:12px;
  margin-top:10px;
}
.status-payment-wait{
  background:#fff1d9;
  color:#965f05;
}
.status-payment-confirmed{
  background:#e5f7ed;
  color:#146c40;
}
.status-payment-sent{
  background:#e8f1ff;
  color:#1f5fb7;
}
.driver-payment-confirmed{
  margin-top:14px;
  background:#e8f7ef;
  border:1px solid #bee5cd;
  color:#12673d;
  border-radius:14px;
  padding:14px;
  font-weight:800;
}

.side-section-title{margin:12px 8px 4px;font-size:11px;font-weight:900;color:#8b97a8}
.sidebar button{display:flex;align-items:center;justify-content:space-between;gap:8px}
.side-count{min-width:26px;height:24px;padding:0 7px;border-radius:999px;background:#eef3f8;color:#4d6178;display:grid;place-items:center;font-size:11px;font-weight:900}
.sidebar .side-active .side-count{background:#fff;color:#0d70d6}
.status-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:18px}
.module-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-top:8px}
.module-card{border:0;background:#fff;border-radius:18px;padding:22px 10px;display:flex;flex-direction:column;align-items:center;gap:8px;box-shadow:0 8px 24px rgba(0,0,0,.06);position:relative}
.module-icon{font-size:34px}
.module-card span{font-weight:800;font-size:14px;color:var(--navy)}
.module-card small{position:absolute;top:10px;left:10px;background:#d92c2c;color:#fff;border-radius:999px;min-width:20px;height:20px;font-size:11px;display:flex;align-items:center;justify-content:center;padding:0 5px}
.module-card small:empty,.module-card small[data-zero="1"]{display:none}
@media(max-width:900px){.module-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:620px){.module-grid{grid-template-columns:repeat(2,1fr)}}
.status-stat{border:0;background:#fff;border-radius:16px;padding:18px;text-align:right;box-shadow:0 8px 24px rgba(0,0,0,.05)}
.status-stat span{display:block;color:var(--muted);font-size:12px}
.status-stat strong{display:block;font-size:29px;color:var(--navy);margin-top:7px}
.trip-stage{margin-top:12px;display:flex;gap:7px;flex-wrap:wrap}
.trip-stage span{padding:6px 9px;border-radius:999px;font-size:11px;background:#eef3f8;color:#637184}
.trip-stage .current{background:#dff2e8;color:#12673d;font-weight:900}
.cancel-trip-btn{border:0;background:#fff0f0;color:#a83a3a;padding:10px 13px;border-radius:10px;font-weight:800}
@media(max-width:900px){.status-stats{grid-template-columns:repeat(2,1fr)}}
@media(max-width:620px){.status-stats{grid-template-columns:1fr}}


/* Cars / driver management cards - UI shell only */
.car-driver-person-card{padding:12px;min-height:210px;overflow:hidden}
.car-driver-card-photo{width:100%;height:125px;object-fit:cover;border-radius:14px;background:#eef3f8;display:block}
.car-driver-photo-empty{display:grid;place-items:center;font-size:54px}
.car-driver-name{font-size:17px!important;margin-top:2px}
.car-driver-state{font-style:normal;font-size:12px;color:#16834b;background:#e5f7ed;padding:5px 9px;border-radius:999px}
.car-driver-state.is-suspended{color:#a33a3a;background:#fde9e9}
.car-driver-profile-head{grid-column:1/-1;background:#fff;border-radius:18px;padding:14px;display:flex;align-items:center;gap:14px;box-shadow:0 8px 24px rgba(0,0,0,.06)}
.car-driver-profile-head .car-driver-card-photo{width:110px;height:78px;flex:0 0 110px}
.car-driver-profile-head strong{display:block;font-size:20px;color:var(--navy)}
.car-driver-profile-head span{display:block;margin-top:6px;color:var(--muted);font-size:13px}
.car-driver-action-card{min-height:145px}
@media(max-width:620px){.car-driver-card-photo{height:105px}.car-driver-profile-head .car-driver-card-photo{width:90px;height:68px;flex-basis:90px}}
.driver-price-panel{grid-column:1/-1;display:grid;gap:18px}
.driver-price-form,.driver-price-list{background:#fff;border-radius:20px;padding:20px;box-shadow:0 8px 24px rgba(0,0,0,.06)}
.driver-price-form{display:grid;grid-template-columns:1fr 1fr 1fr 1fr auto;gap:12px;align-items:end}
.driver-price-form select{border:1px solid var(--line);border-radius:12px;padding:13px 14px;background:#fff;font:inherit;color:var(--navy)}
.driver-price-add{min-width:110px}
.driver-price-list h3{margin:0 0 14px}
.driver-price-row{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:14px 0;border-bottom:1px solid var(--line)}
.driver-price-row:last-child{border-bottom:0}
.driver-price-row strong,.driver-price-row span{display:block}
.driver-price-row span{color:var(--muted);margin-top:5px}
@media(max-width:900px){.driver-price-form{grid-template-columns:1fr 1fr}.driver-price-add{grid-column:1/-1}}
@media(max-width:620px){.driver-price-form{grid-template-columns:1fr}.driver-price-add{grid-column:auto}.driver-price-row{align-items:flex-start;flex-direction:column}}

/* Driver monthly finance */
.driver-finance-panel{grid-column:1/-1;display:grid;gap:18px}
.finance-month-nav,.finance-settings,.finance-calendar,.finance-day-details{background:#fff;border-radius:20px;padding:20px;box-shadow:0 8px 24px rgba(0,0,0,.06)}
.finance-month-nav{display:flex;align-items:center;justify-content:center;gap:20px}.finance-month-nav strong{font-size:22px;color:var(--navy)}.finance-month-nav button{border:0;background:#eef5ff;color:#0866c6;width:42px;height:42px;border-radius:12px;font-size:20px;font-weight:900}
.finance-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.finance-summary>div{background:#fff;border-radius:18px;padding:18px;box-shadow:0 8px 24px rgba(0,0,0,.06)}.finance-summary span{display:block;color:var(--muted);font-size:13px}.finance-summary strong{display:block;color:var(--navy);font-size:20px;margin-top:8px;line-height:1.7}
.finance-settings{display:flex;justify-content:space-between;align-items:center;gap:20px}.finance-settings h3{margin:0 0 5px}.finance-settings p{margin:0;color:var(--muted);font-size:13px}.finance-setting-fields{display:flex;gap:10px;align-items:center}.finance-setting-fields select,.finance-setting-fields input{border:1px solid var(--line);border-radius:12px;padding:12px;background:#fff;font:inherit;min-width:150px}
.finance-week,.finance-days{display:grid;grid-template-columns:repeat(7,1fr);gap:8px}.finance-week{margin-bottom:8px}.finance-week span{text-align:center;color:var(--muted);font-size:12px;font-weight:800}.finance-day{min-height:82px;border:1px solid var(--line);background:#fff;border-radius:14px;padding:9px;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:5px;color:var(--navy);font:inherit}.finance-day.blank{border-color:transparent;background:transparent}.finance-day.has-trips{background:#f4f9ff;border-color:#bcdcff;cursor:pointer}.finance-day b{font-size:15px}.finance-day small{font-size:10px;color:#0866c6}.finance-dot{width:8px;height:8px;border-radius:50%;background:#0b78e3;display:block}
.finance-day-details h3{margin-top:0}.finance-trip{display:grid;grid-template-columns:2fr repeat(3,1fr);gap:12px;align-items:center;padding:14px 0;border-bottom:1px solid var(--line)}.finance-trip:last-child{border-bottom:0}.finance-trip span{display:block;color:var(--muted);font-size:12px;margin-top:4px}.finance-trip strong{color:var(--navy)}
@media(max-width:900px){.finance-summary{grid-template-columns:1fr 1fr}.finance-settings{align-items:stretch;flex-direction:column}.finance-setting-fields{flex-wrap:wrap}.finance-trip{grid-template-columns:1fr 1fr}.finance-day{min-height:68px}}
@media(max-width:620px){.finance-summary{grid-template-columns:1fr}.finance-setting-fields{display:grid;grid-template-columns:1fr}.finance-setting-fields select,.finance-setting-fields input{min-width:0;width:100%}.finance-week,.finance-days{gap:4px}.finance-week span{font-size:9px}.finance-day{min-height:58px;padding:5px}.finance-day small{display:none}.finance-trip{grid-template-columns:1fr}}

/* معلومات السائق داخل رأس صفحة السيارات */
.car-driver-profile-title{min-width:150px}
.car-driver-info-panel{margin-inline-start:auto;display:grid;grid-template-columns:repeat(3,minmax(150px,1fr));gap:9px 18px;flex:1;max-width:760px}
.car-driver-info-panel>div{background:#f7f9fc;border:1px solid #e8eef6;border-radius:12px;padding:8px 11px;min-width:0}
.car-driver-info-panel span{display:block;font-size:11px;color:var(--muted);margin-bottom:3px}
.car-driver-info-panel strong{display:block!important;font-size:13px!important;color:var(--navy);overflow-wrap:anywhere}
.driver-info-status{color:#16834b!important}
.driver-info-status.is-suspended{color:#c63d3d!important}
@media(max-width:1000px){.car-driver-profile-head{flex-wrap:wrap}.car-driver-info-panel{flex-basis:100%;max-width:none;grid-template-columns:repeat(2,minmax(130px,1fr))}}
@media(max-width:620px){.car-driver-info-panel{grid-template-columns:1fr}.car-driver-profile-title{min-width:0}}


/* Compact driver action tiles + driver rating tile */
.car-driver-action-card{min-height:108px!important;padding:14px 8px!important;gap:5px!important;border-radius:16px!important}
.car-driver-action-card .module-icon{font-size:27px!important;line-height:1}
.car-driver-action-card span{font-size:13px!important}
@media(min-width:1100px){#moduleMenuGrid.module-grid{grid-template-columns:repeat(5,1fr)}}
@media(max-width:1099px) and (min-width:701px){#moduleMenuGrid.module-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:700px){.car-driver-action-card{min-height:96px!important;padding:11px 6px!important}.car-driver-action-card .module-icon{font-size:24px!important}.car-driver-action-card span{font-size:12px!important}}

/* Driver portal V3 */
.driver-location-required{border:1px solid #f0b35d!important;background:#fff7e8!important;color:#8b5700!important}
.driver-location-lock{background:#fff;border:1px solid #e1e8f0;border-radius:22px;padding:42px 24px;text-align:center;box-shadow:0 12px 30px rgba(18,50,86,.06)}
.driver-location-lock .lock-icon{font-size:48px}.driver-location-lock h2{color:#082d5c;margin:10px 0}.driver-location-lock p{color:#6d7d90}
.driver-current-card,.driver-calendar-card,.driver-upcoming-card,.driver-placeholder-card{background:#fff;border-radius:22px;padding:22px;margin-bottom:18px;box-shadow:0 12px 30px rgba(18,50,86,.06);border:1px solid #edf1f6}
.driver-current-card h2{margin:8px 0;color:#082d5c}.driver-current-card p{color:#6d7d90}
.driver-calendar-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.driver-calendar-head button{border:0;background:#edf5ff;color:#0766c6;border-radius:12px;width:42px;height:42px;font-size:28px;cursor:pointer}.driver-calendar-head h3{margin:0;color:#082d5c}
.driver-cal-week,.driver-cal-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:6px}.driver-cal-week span{text-align:center;color:#6d7d90;font-size:13px;padding:7px 2px}.driver-cal-day{min-height:78px;border:1px solid #e5ebf3;background:#fff;border-radius:12px;padding:8px;display:flex;flex-direction:column;align-items:center;gap:4px;cursor:pointer;color:#082d5c}.driver-cal-day.booked{background:#f2f8ff;border-color:#b9d9ff}.driver-cal-day small{font-size:11px;color:#0766c6}.trip-dot{width:7px;height:7px;background:#1687f8;border-radius:50%;display:block}.driver-day-details{margin-top:16px;padding:14px;border-radius:14px;background:#f7faff;color:#52677e}.driver-mini-trip{display:flex;justify-content:space-between;gap:14px;align-items:center;padding:13px 14px;border-bottom:1px solid #edf1f6}.driver-mini-trip:last-child{border-bottom:0}.driver-mini-trip span{color:#6d7d90;font-size:14px}.driver-extra-head{margin-bottom:18px}.driver-extra-head h1{color:#082d5c}.rating-big{font-size:42px;font-weight:900;color:#082d5c}.driver-dashboard-shell .sidebar button{padding:12px 14px;font-size:16px}
@media(max-width:800px){.driver-cal-day{min-height:58px;padding:5px}.driver-cal-day small{font-size:9px}.driver-mini-trip{align-items:flex-start;flex-direction:column}.driver-dashboard-shell .sidebar button{font-size:14px}}

/* Driver account: profile + approved vehicle photos */
.driver-account-profile-card{background:#fff;border-radius:24px;padding:24px;box-shadow:0 10px 30px rgba(15,45,85,.06);display:grid;grid-template-columns:minmax(320px,1fr) minmax(280px,.7fr);gap:28px;align-items:center;direction:rtl}
.driver-account-images{display:grid;grid-template-columns:180px minmax(260px,1fr);gap:18px;align-items:stretch}
.driver-account-image-block,.driver-account-car-block{background:#f7faff;border:1px solid #e3ebf6;border-radius:20px;padding:14px;display:flex;flex-direction:column;gap:10px;align-items:center;justify-content:center;color:#6a7890;font-weight:700}
.driver-account-image-block .driver-profile-preview{width:130px;height:130px;border-radius:50%;object-fit:cover;border:4px solid #fff;box-shadow:0 6px 18px rgba(20,50,90,.12)}
.driver-account-car-block .driver-car-photo{width:100%;height:170px;object-fit:cover;border-radius:16px}
.driver-account-car-block .doc-preview{width:100%}
.driver-account-details h2{font-size:30px;margin:0 0 16px;color:#082b5c}
.driver-account-details p{font-size:18px;margin:12px 0;color:#17375e}
@media(max-width:850px){.driver-account-profile-card{grid-template-columns:1fr}.driver-account-images{grid-template-columns:1fr}.driver-account-car-block .driver-car-photo{height:200px}}

/* خريطة مباشرة داخل ملف كل سائق */
.car-driver-live-map-card{grid-column:1/-1;background:#fff;border-radius:18px;padding:14px;box-shadow:0 8px 24px rgba(0,0,0,.06);min-width:0}
.car-driver-live-map-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}
.car-driver-live-map-head strong{display:block;color:var(--navy);font-size:17px}
.car-driver-live-map-head span{display:block;color:var(--muted);font-size:12px;margin-top:4px}
.car-driver-live-badge{background:#e8f8ee!important;color:#15803d!important;border-radius:999px;padding:5px 10px;font-weight:800;font-size:11px!important;margin:0!important}
.car-driver-live-map{height:280px;border-radius:14px;overflow:hidden;border:1px solid #e6edf6;background:#eef3f8}
@media(max-width:620px){.car-driver-live-map{height:230px}.car-driver-live-map-head strong{font-size:15px}}
.car-driver-map-page{min-height:430px}
.car-driver-map-page .car-driver-live-map{height:360px}
.car-driver-map-back{margin-top:14px;border:0;border-radius:12px;padding:11px 18px;background:#eaf2ff;color:#07336d;font-weight:800;font-size:15px;cursor:pointer}
@media(max-width:620px){.car-driver-map-page .car-driver-live-map{height:300px}}

/* Approved drivers directory */
.approved-driver-directory{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:18px}
.approved-driver-tile{border:0;background:#fff;border-radius:22px;padding:18px;box-shadow:0 10px 28px rgba(15,45,85,.07);cursor:pointer;text-align:center;color:#082d63;display:flex;flex-direction:column;gap:8px;align-items:center}
.approved-driver-tile:hover{transform:translateY(-2px)}
.approved-driver-media{display:flex;align-items:center;justify-content:center;gap:10px;height:82px}
.approved-driver-media img{width:74px;height:74px;border-radius:16px;object-fit:cover;border:1px solid #e3eaf4}
.approved-driver-media img:first-child{width:64px;height:64px;border-radius:50%}
.approved-driver-avatar,.approved-driver-car-empty{font-size:42px}
.approved-driver-tile strong{font-size:20px}.approved-driver-tile span{color:#64748b}.approved-driver-tile em{font-style:normal;font-size:14px}
.approved-driver-detail{max-width:none}.approved-driver-actions{margin-top:18px}
/* Quick request: route -> car -> form */
.quick-cars-head{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:20px}.quick-cars-head h2,.quick-route-step h2{margin:0 0 6px;color:#062b62}.quick-cars-head p,.quick-route-step p{margin:0;color:#718096}.qr-cars-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:18px}.qr-car-choice{border:1px solid #dbe7f4;background:#fff;border-radius:22px;padding:14px;cursor:pointer;display:flex;flex-direction:column;gap:12px;align-items:center;box-shadow:0 10px 28px rgba(15,43,80,.07);font:inherit;color:#062b62}.qr-car-choice:hover{transform:translateY(-2px);border-color:#149fda}.qr-car-choice img,.qr-car-empty{width:100%;height:150px;object-fit:contain;border-radius:16px;background:#f5f8fc}.qr-car-empty{display:grid;place-items:center;font-size:64px}.qr-car-choice strong{font-size:20px}.qr-selected-car-summary{display:flex;align-items:center;gap:18px;padding:14px 18px;margin-bottom:20px;border-radius:18px;background:#f3f8fe;border:1px solid #dbe7f4}.qr-selected-car-summary img,.qr-summary-car{width:110px;height:72px;object-fit:contain;border-radius:12px;background:#fff}.qr-summary-car{display:grid;place-items:center;font-size:42px}.qr-selected-car-summary div{display:flex;flex-direction:column;gap:5px;flex:1}.qr-selected-car-summary div strong{font-size:20px;color:#062b62}.qr-selected-car-summary div span{font-size:18px;font-weight:700;color:#0877c9}@media(max-width:700px){.quick-cars-head,.qr-selected-car-summary{align-items:stretch;flex-direction:column}.qr-selected-car-summary img,.qr-summary-car{width:100%;height:130px}}
.qr-passenger-panel,.qr-passport-panel{background:#eef8ff;border:1px solid #d7ecfb;border-radius:18px;padding:16px}.qr-panel-title{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px}.qr-panel-title span{color:#64748b;font-size:14px}.qr-passenger-details,.qr-passport-uploads{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px}.qr-passenger-item,.qr-passport-item{background:#fff;border:1px solid #dbe5f0;border-radius:14px;padding:12px}.qr-passenger-item label,.qr-passport-item label{display:block;font-weight:800;margin-bottom:8px}.qr-passport-item input[type=file]{width:100%;border:1px dashed #60a5fa;border-radius:12px;padding:12px;background:#f8fbff}@media(max-width:700px){.qr-panel-title{align-items:flex-start;flex-direction:column}.qr-passenger-details,.qr-passport-uploads{grid-template-columns:1fr}}


/* Quick-trip employee alerts */
.employee-quick-alert{position:relative;width:min(420px,100%);min-height:112px;margin:0 0 22px auto;border:2px solid #ef4444;background:#fff;border-radius:24px;padding:18px 22px;display:flex;align-items:center;gap:15px;text-align:right;cursor:pointer;box-shadow:0 14px 35px rgba(15,23,42,.08);color:#082d63}
.employee-quick-alert .employee-alert-icon{font-size:34px}.employee-quick-alert span:nth-child(2){display:flex;flex-direction:column;gap:5px}.employee-quick-alert strong{font-size:19px}.employee-quick-alert small{color:#64748b;font-weight:700}.employee-quick-alert b{position:absolute;top:-10px;left:-10px;min-width:30px;height:30px;padding:0 7px;border-radius:999px;background:#dc2626;color:white;display:none;place-items:center}
.employee-quick-alert-card{border-right:5px solid #ef4444}.driver-countdown{font-variant-numeric:tabular-nums;color:#b91c1c;font-size:18px}
/* employee transfer dialog */
.ts-transfer-overlay{position:fixed;inset:0;background:#07152c99;z-index:9999;display:grid;place-items:center;padding:20px;direction:rtl}.ts-transfer-modal{width:min(900px,96vw);max-height:88vh;overflow:auto;background:#fff;border-radius:28px;padding:28px;position:relative;box-shadow:0 25px 80px #00152f40}.ts-transfer-close{position:absolute;left:20px;top:20px;border:0;background:#eef4fb;border-radius:14px;width:44px;height:44px;font-size:20px}.ts-transfer-modal h2{color:#05295d;margin:0 0 8px}.ts-transfer-modal>p{color:#6d7d92;margin-bottom:22px}.ts-transfer-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:16px}.ts-transfer-driver{border:1px solid #dce7f3;background:#fff;border-radius:22px;padding:14px;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:8px;font:inherit;color:#05295d}.ts-transfer-driver:hover{border-color:#168ee5;box-shadow:0 10px 30px #0b73c31a}.ts-transfer-driver .car-driver-card-photo{width:100%;height:125px;object-fit:cover;border-radius:16px}.ts-transfer-driver strong{font-size:20px}.ts-transfer-driver span{color:#65768d}.ts-transfer-driver em{font-style:normal;color:#078744;background:#e9f9ef;padding:5px 12px;border-radius:999px}

/* Scheduled trips shortcut beside driver alerts on employee overview */
.employee-top-actions{display:grid;grid-template-columns:minmax(300px,420px) minmax(300px,420px);gap:20px;justify-content:end;align-items:stretch;margin:0 0 22px auto}
.employee-top-actions .employee-quick-alert{width:100%;margin:0;min-height:112px}
.employee-scheduled-trips{position:relative;width:100%;min-height:112px;border:2px solid #0d70d6;background:#fff;border-radius:24px;padding:18px 22px;display:flex;align-items:center;gap:15px;text-align:right;cursor:pointer;box-shadow:0 14px 35px rgba(15,23,42,.08);color:#082d63}
.employee-scheduled-trips .employee-scheduled-icon{font-size:34px}
.employee-scheduled-trips span:nth-child(2){display:flex;flex-direction:column;gap:5px}
.employee-scheduled-trips strong{font-size:19px}
.employee-scheduled-trips small{color:#64748b;font-weight:700}
.employee-scheduled-trips b{position:absolute;top:-10px;left:-10px;min-width:30px;height:30px;padding:0 7px;border-radius:999px;background:#0d70d6;color:#fff;display:none;place-items:center}
.employee-scheduled-trips:hover{transform:translateY(-1px);box-shadow:0 16px 38px rgba(13,112,214,.14)}
@media(max-width:900px){.employee-top-actions{grid-template-columns:1fr 1fr}}
@media(max-width:700px){.employee-top-actions{grid-template-columns:1fr}.employee-top-actions .employee-quick-alert,.employee-scheduled-trips{min-height:100px}}

/* Driver availability + finance dashboard */
.driver-availability-control{padding:10px 4px 14px;border-bottom:1px solid #e5edf7;margin-bottom:8px}
.driver-availability-btn{width:100%;border:0;border-radius:14px;padding:12px 10px;font-weight:800;cursor:pointer;background:#eaf8ef;color:#137a3a}
.driver-availability-btn.off{background:#fff0f0;color:#b42318}.driver-availability-btn.locked{background:#f2f4f7;color:#667085;cursor:not-allowed}
.driver-finance-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:16px 0}.driver-finance-stat{background:#fff;border:1px solid #e3ebf5;border-radius:18px;padding:18px}.driver-finance-stat span{display:block;color:#667085;margin-bottom:8px}.driver-finance-stat strong{font-size:20px;color:#082d62}.driver-finance-table{display:grid;gap:10px}.driver-finance-row{display:grid;grid-template-columns:1.4fr repeat(3,1fr);gap:10px;align-items:center;background:#fff;border:1px solid #e3ebf5;border-radius:16px;padding:14px}.driver-finance-row span{color:#667085;font-size:13px}.driver-finance-row strong{display:block;color:#082d62;margin-top:4px}.driver-finance-filter{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.driver-finance-filter button{border:1px solid #d9e4f2;background:#fff;border-radius:12px;padding:9px 14px;cursor:pointer;font-weight:700}.driver-finance-filter button.active{background:#0b70d1;color:#fff}
@media(max-width:900px){.driver-finance-summary-grid{grid-template-columns:1fr 1fr}.driver-finance-row{grid-template-columns:1fr 1fr}}

/* TICKET SKY — employee direct request: mobile-friendly modal only */
#employeeDirectRequestModal .ts-transfer-modal{display:flex;flex-direction:column;overflow:hidden}
#employeeDirectRequestModal .booking-form{overflow:visible}
@media(max-width:620px){
  #employeeDirectRequestModal{padding:0;place-items:end center;background:#07152cb3}
  #employeeDirectRequestModal .ts-transfer-modal{
    width:100%;max-width:none!important;height:94dvh;max-height:94dvh;
    border-radius:24px 24px 0 0;padding:0;overflow:hidden;
  }
  #employeeDirectRequestModal .ts-transfer-modal>h2,
  #employeeDirectRequestModal .ts-transfer-modal>p{padding-left:22px;padding-right:22px}
  #employeeDirectRequestModal .ts-transfer-modal>h2{font-size:24px;line-height:1.35;margin:22px 58px 6px 0;padding-top:0}
  #employeeDirectRequestModal .ts-transfer-modal>p{font-size:14px;line-height:1.8;margin:0 0 10px}
  #employeeDirectRequestModal .ts-transfer-close{
    position:absolute;left:14px;top:14px;z-index:4;width:46px;height:46px;border-radius:14px;
  }
  #employeeDirectRequestModal .ts-transfer-modal>.booking-form{
    flex:1;min-height:0;display:grid;grid-template-columns:1fr;gap:12px;
    overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;
    padding:14px 18px 92px;scrollbar-width:thin;
  }
  #employeeDirectRequestModal .field{gap:6px;min-width:0}
  #employeeDirectRequestModal .field label{font-size:15px}
  #employeeDirectRequestModal .field input,
  #employeeDirectRequestModal .field select,
  #employeeDirectRequestModal .field textarea{
    box-sizing:border-box;width:100%;min-width:0;font-size:16px;min-height:50px;
    padding:11px 12px;border-radius:12px;
  }
  #employeeDirectRequestModal .field textarea{min-height:78px}
  #employeeDirectRequestModal .field.full{grid-column:auto}
  #employeeDirectRequestModal #directPassportFields{display:grid;grid-template-columns:1fr;gap:10px}
  #employeeDirectRequestModal .submit-btn.full{
    position:absolute;left:18px;right:18px;bottom:max(12px,env(safe-area-inset-bottom));z-index:3;
    width:auto;min-height:54px;margin:0;border-radius:14px;box-shadow:0 -8px 24px #fff,0 8px 24px #0b73c333;
    font-size:17px;
  }
}

/* Restored agreed driver trip card: compact and mobile safe */
.ts-agreed-trip-card{max-width:980px;margin:0 auto}.ts-driver-passports .actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:10px;margin-top:12px}
@media(max-width:600px){.ts-agreed-trip-card .order-head{align-items:flex-start;gap:12px}.ts-agreed-trip-card .order-grid{grid-template-columns:1fr!important}.ts-agreed-trip-card .actions{display:grid;grid-template-columns:1fr}.ts-agreed-trip-card .actions>*{width:100%;box-sizing:border-box}.ts-driver-passports .actions{grid-template-columns:1fr}}

/* Mobile driver dashboard: content/active trip must appear before the long sidebar menu */
@media(max-width:760px){
  .driver-dashboard-shell{display:flex!important;flex-direction:column!important}
  .driver-dashboard-shell .dashboard-main{order:1!important;width:100%!important;box-sizing:border-box}
  .driver-dashboard-shell .sidebar{order:2!important;width:100%!important;box-sizing:border-box}
  #driverActiveTripTop{display:block!important;order:-1}
  .ts-driver-top-trip{margin-top:0!important}
}

/* Employee driver operations center */
.ts-driver-directory-tools{grid-column:1/-1;display:grid;gap:14px;margin-bottom:6px}.ts-driver-alert-center{background:#fff;border:1px solid #e2e9f2;border-radius:18px;padding:16px;box-shadow:0 8px 24px rgba(8,42,85,.06)}.ts-driver-alert-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.ts-driver-alert-head strong{font-size:17px}.ts-driver-alert-head small{display:block;color:var(--muted);margin-top:4px}.ts-alert-badge,.ts-card-notice-badge{display:inline-grid;place-items:center;min-width:24px;height:24px;padding:0 6px;border-radius:999px;background:#e22;color:#fff;font-size:12px}.ts-driver-alert-list{display:grid;gap:8px;margin-top:12px}.ts-driver-alert-item{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:11px 12px;border-radius:12px;background:#f5f8fc}.ts-driver-alert-item.is-unread{background:#fff1f1;border:1px solid #ffcaca}.ts-driver-alert-item span{display:block;color:var(--muted);font-size:12px;margin-top:4px}.ts-driver-alert-item button{border:0;background:#0d70d6;color:#fff;border-radius:9px;padding:8px 11px;font-weight:800}.ts-driver-alert-item em{font-size:12px;color:var(--muted)}.ts-alert-empty{padding:12px 0 0;color:var(--muted)}.ts-driver-search{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;background:#fff;border-radius:16px;padding:12px 14px;box-shadow:0 8px 24px rgba(8,42,85,.06)}.ts-driver-search input{width:100%;border:1px solid var(--line);border-radius:11px;padding:12px 14px}.ts-driver-search b{white-space:nowrap;font-size:12px}.car-driver-state.is-trip{background:#fff0d8!important;color:#9a5a00!important}.car-driver-state.is-unavailable{background:#fff1e6!important;color:#a54b00!important}.car-driver-state.is-available{background:#e7f8ee!important;color:#137143!important}.ts-driver-live-summary{grid-column:1/-1;width:100%;display:flex;justify-content:space-between;gap:12px;align-items:center;background:#f7f9fc;border:1px solid var(--line);border-radius:14px;padding:12px 14px;margin-bottom:12px}.ts-driver-live-summary span{color:var(--muted);font-size:13px}.car-driver-action-card{position:relative}.ts-card-notice-badge{position:absolute;top:8px;left:8px}.notice-box.ts-conflict{background:#fff0f0;border-color:#f3baba;color:#9b2727}.notice-box.ts-ok{background:#edf9f2;border-color:#bfe7ce;color:#146c40}@media(max-width:620px){.ts-driver-alert-head,.ts-driver-alert-item,.ts-driver-live-summary{align-items:stretch;flex-direction:column}.ts-driver-search{grid-template-columns:auto 1fr}.ts-driver-search b{grid-column:1/-1}.ts-driver-alert-item button{width:100%}}
