
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root{
  --bg:#f3f4f6;
  --panel:#ffffff;
  --panel-soft:#f8fafc;
  --line:#e5e7eb;
  --text:#0f172a;
  --muted:#64748b;
  --primary:#4f46e5;
  --primary-dark:#4338ca;
  --primary-soft:#eef2ff;
  --orange:#f59e0b;
  --green:#059669;
  --green-soft:#e8f7ef;
  --red:#dc2626;
  --red-soft:#fbecec;
  --blue:#2563eb;
  --blue-soft:#eef4ff;
  --pink:#db2777;
  --pink-soft:#fdf2f8;
  --shadow:0 1px 2px rgba(15,23,42,.06),0 10px 28px rgba(15,23,42,.05);
  --radius:22px;
  --radius-sm:16px;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:'Inter',Arial,sans-serif;
  background:var(--bg);
  color:var(--text);
  font-size:15px;
}
a{text-decoration:none;color:inherit}
.app-shell{display:flex;min-height:100vh}
.sidebar{
  width:275px;
  background:#fff;
  border-right:1px solid var(--line);
  display:flex;
  flex-direction:column;
  position:sticky;top:0;min-height:100vh;
}
.brand-block{
  display:flex;align-items:center;gap:12px;
  padding:22px 20px;border-bottom:1px solid var(--line)
}
.brand-icon{
  width:38px;height:38px;border-radius:14px;display:grid;place-items:center;
  background:linear-gradient(135deg,#4f46e5,#5b21b6);
  color:#fff;font-weight:800;box-shadow:0 10px 18px rgba(79,70,229,.25)
}
.brand-title{font-size:14px;font-weight:800;color:#059669}
.brand-subtitle{font-size:12px;color:#94a3b8;margin-top:2px}
.sidebar-nav{padding:16px 14px;display:flex;flex-direction:column;gap:8px}
.sidebar-nav a{
  min-height:48px;padding:0 16px;border-radius:16px;
  display:flex;align-items:center;gap:12px;color:#64748b;font-weight:500;
  transition:.18s ease;
}
.sidebar-nav a::before{width:18px;display:inline-block;text-align:center;font-size:17px}
.sidebar-nav a[href*='dashboard']::before{content:'⌗'}
.sidebar-nav a[href*='customers']::before{content:'◔'}
.sidebar-nav a[href*='billing']::before{content:'₹'}
.sidebar-nav a[href*='vehicles']::before{content:'◒'}
.sidebar-nav a[href*='drivers']::before{content:'◌'}
.sidebar-nav a[href*='office']::before{content:'▣'}
.sidebar-nav a[href*='reports']::before{content:'▥'}
.sidebar-nav a:hover{background:#f3f4f9;color:#334155}
.sidebar-nav a.active{background:#eceefe;color:#4f46e5;font-weight:700}
.sidebar-user{
  margin-top:auto;padding:22px 18px;border-top:1px solid var(--line);
  display:flex;align-items:center;gap:12px
}
.avatar{
  width:40px;height:40px;border-radius:999px;background:#f3f4f6;border:1px solid #e5e7eb;
  display:grid;place-items:center;font-weight:700;color:#334155
}
.user-name{font-size:14px;font-weight:700}
.user-email{font-size:12px;color:#94a3b8}
.main-panel{flex:1;min-width:0}
.notice-strip{
  background:var(--orange);color:#fff;text-align:center;font-size:11px;
  font-weight:800;letter-spacing:.08em;padding:5px 10px
}
.container{padding:26px 30px 34px}
.page-header{
  display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:16px
}
.page-title{margin:0;font-size:18px;font-weight:800}
.page-subtitle{margin:6px 0 0;color:var(--muted);font-size:13px}
.header-right{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.date-badge{font-size:13px;color:var(--muted)}
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  min-height:42px;padding:0 18px;border-radius:14px;border:0;cursor:pointer;
  background:linear-gradient(135deg,#5b4df2,#4f46e5);color:#fff;font-weight:700;font-size:14px;
  box-shadow:0 8px 18px rgba(79,70,229,.16)
}
.btn:hover{filter:brightness(.98)}
.btn-secondary,.btn-outline,.toolbar-btn{
  background:#f3f4f6;color:#0f172a;box-shadow:none;border:1px solid #eceef3
}
.btn-outline{background:#fff}
.btn-danger{background:linear-gradient(135deg,#ef4444,#dc2626)}
.toolbar{
  display:flex;gap:12px;flex-wrap:wrap;align-items:center;margin-bottom:18px
}
.toolbar-btn{
  min-height:42px;padding:0 18px;border-radius:14px;font-weight:700;
  display:inline-flex;align-items:center;gap:8px
}
.toolbar-btn.primary{
  background:linear-gradient(135deg,#5b4df2,#4f46e5);color:#fff;border:0;box-shadow:0 8px 18px rgba(79,70,229,.16)
}
.toolbar-btn .ico,.modal-title .ico{font-style:normal;font-size:15px}
.flash{
  margin:0 0 16px;padding:14px 16px;border-radius:16px;background:#ecfdf5;color:#065f46;border:1px solid #bbf7d0
}
.flash-error{background:#fef2f2;color:#991b1b;border-color:#fecaca}
.grid-stats{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-bottom:22px
}
.card{
  background:#fff;border:1px solid #e7e9ef;border-radius:22px;padding:22px;box-shadow:0 1px 2px rgba(15,23,42,.04)
}
.stat-card{padding:24px}
.stat-card:nth-child(1){background:#eef4ff}
.stat-card:nth-child(2){background:#ecfdf5}
.stat-card:nth-child(3){background:#fff7ed}
.stat-card:nth-child(4){background:#faf5ff}
.stat-card:nth-child(5){background:#fdf2f8}
.stat-card:nth-child(6){background:#eef2ff}
.stat-title{font-size:13px;font-weight:800;text-transform:uppercase;margin-bottom:10px}
.stat-value{font-size:22px;font-weight:800}
.section-title{margin:0 0 14px;font-size:16px;font-weight:800}
.section-subtitle{font-size:13px;color:var(--muted);margin:-6px 0 14px}
.layout,.two-col,.three-col{display:grid;gap:18px}
.layout,.two-col{grid-template-columns:repeat(2,minmax(0,1fr))}
.three-col{grid-template-columns:repeat(3,minmax(0,1fr))}
.table-wrap{
  overflow:auto;border:1px solid #eceef3;border-radius:18px;background:#fff
}
table{width:100%;border-collapse:collapse}
th,td{padding:16px 18px;text-align:left;border-bottom:1px solid #edf0f4;white-space:nowrap}
th{font-size:13px;font-weight:800;background:#fff}
tbody tr:hover{background:#fafafa}
.small{font-size:12px;color:var(--muted)}
.badge{
  display:inline-flex;align-items:center;border-radius:999px;padding:7px 12px;
  font-size:12px;font-weight:700;background:#f3f4f6;color:#334155
}
.link-danger{color:#dc2626;font-weight:700}
.link-primary{color:#2563eb;font-weight:700}
label{display:block;margin:0 0 7px;font-size:13px;font-weight:700;color:#334155}
input,select,textarea{
  width:100%;min-height:44px;border-radius:14px;border:1px solid #e6e9ef;
  background:#fff;padding:0 14px;font:inherit;color:var(--text);outline:none
}
textarea{padding:12px 14px;min-height:90px;resize:vertical}
input:focus,select:focus,textarea:focus{border-color:#c7d2fe;box-shadow:0 0 0 4px rgba(99,102,241,.09)}
form{display:grid;gap:12px}
.report-header{
  display:flex;justify-content:space-between;gap:16px;align-items:center;margin-bottom:18px
}
.report-summary{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-bottom:18px
}
.soft-card{
  border-radius:20px;padding:22px;border:1px solid #e9edf3;background:#fff
}
.soft-card.blue{background:#eef4ff}
.soft-card.red{background:#fdf2f2}
.soft-card.green{background:#ecfdf5}
.soft-card-title{font-size:13px;font-weight:800;text-transform:uppercase;margin-bottom:10px}
.soft-card-value{font-size:20px;font-weight:800}
.panel-split{display:grid;grid-template-columns:1.1fr 1fr;gap:18px}
.placeholder-center{
  min-height:190px;display:grid;place-items:center;color:#94a3b8;font-size:15px
}
.metric-row{
  display:flex;justify-content:space-between;gap:14px;padding:10px 0;color:#334155
}
.progress{
  height:8px;border-radius:999px;background:#ecfdf5;overflow:hidden;margin:8px 0 14px;border:1px solid #d1fae5
}
.progress > span{display:block;height:100%;background:#10b981;width:0%}
.summary-list{display:grid;gap:14px}
.summary-item{
  border:1px solid #edf0f4;border-radius:18px;padding:16px;background:#fff
}
.actions-row{display:flex;gap:8px;flex-wrap:wrap}
.modal-backdrop{
  position:fixed;inset:0;background:rgba(15,23,42,.38);display:none;align-items:center;justify-content:center;
  z-index:70;padding:16px
}
.modal-backdrop.active{display:flex}
.modal{
  width:min(560px,100%);background:#fff;border-radius:24px;border:1px solid #e5e7eb;
  box-shadow:0 20px 50px rgba(15,23,42,.22);overflow:hidden
}
.modal-head{
  padding:18px 22px;border-bottom:1px solid #edf0f4;display:flex;justify-content:space-between;align-items:center
}
.modal-title{font-size:17px;font-weight:800;display:flex;gap:10px;align-items:center}
.modal-body{padding:20px 22px}
.modal-close{
  width:38px;height:38px;border-radius:12px;border:1px solid #e5e7eb;background:#fff;cursor:pointer;font-size:20px
}
.card-head-inline{
  display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:12px
}
.total-highlight{text-align:right;font-size:13px;color:#64748b}
.total-highlight strong{display:block;color:#db2777;font-size:18px;margin-top:4px}
.report-filters{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:14px}
.report-filters select,.report-filters input{max-width:260px}
.quick-links{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.icon-tile{
  min-height:180px;border:1px solid #edf0f4;border-radius:22px;background:#fff;padding:20px
}
.icon-tile-title{font-size:16px;font-weight:800;margin-bottom:6px}
.icon-tile-empty{display:grid;place-items:center;color:#a1a1aa;min-height:110px}
@media (max-width:1200px){
  .grid-stats,.report-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
  .three-col{grid-template-columns:1fr}
  .layout,.two-col,.panel-split,.quick-links{grid-template-columns:1fr}
}
@media (max-width:900px){
  .app-shell{display:block}
  .sidebar{position:relative;width:100%;min-height:auto}
  .grid-stats,.report-summary{grid-template-columns:1fr}
  .container{padding:18px}
  .page-header{flex-direction:column}
}

.grid-ico{display:grid;grid-template-columns:repeat(2,8px);grid-template-rows:repeat(2,8px);gap:4px}
.grid-ico i{display:block;width:8px;height:8px;border:2px solid #fff;border-radius:2px}
.top-chip,.top-icon{
  min-height:34px;border:1px solid var(--line);background:#fff;border-radius:14px;
  display:inline-flex;align-items:center;justify-content:center;padding:0 14px;font-size:13px;font-weight:600;color:#111827
}
.top-icon{width:34px;padding:0}
.user-meta{min-width:0}
.logout-mini{
  margin-left:auto;width:32px;height:32px;border:1px solid var(--line);border-radius:10px;
  display:grid;place-items:center;color:#94a3b8;background:#fff
}
.mini-btn{
  min-height:30px;padding:0 10px;border-radius:10px;border:1px solid #dbe2ea;background:#fff;cursor:pointer;
  font-size:12px;font-weight:700;color:#334155
}
.modal-backdrop{backdrop-filter:blur(2px)}
.modal{transform:translateY(16px) scale(.98);opacity:0;transition:.22s ease}
.modal-backdrop.active .modal{transform:translateY(0) scale(1);opacity:1}
.login-body{
  min-height:100vh;
  background:
    radial-gradient(circle at top left, rgba(79,70,229,.18), transparent 30%),
    radial-gradient(circle at bottom right, rgba(245,158,11,.12), transparent 25%),
    #f5f7fb;
}
.login-shell{min-height:100vh;display:grid;place-items:center;padding:24px}
.login-card{
  width:min(460px,100%);background:#fff;border:1px solid #e7e9ef;border-radius:28px;padding:28px;box-shadow:0 20px 40px rgba(15,23,42,.08)
}
.login-brand{display:flex;align-items:center;gap:12px;margin-bottom:18px}
.login-title{margin:0 0 8px;font-size:28px;line-height:1.1}
.login-subtitle{margin:0 0 18px;color:var(--muted)}
.login-form{display:grid;gap:14px}
.demo-credentials{
  margin-top:16px;padding:12px 14px;border-radius:14px;background:#f8fafc;border:1px solid #e8ecf1;
  font-size:13px;color:#475569
}


.nav-dropdown{display:flex;flex-direction:column;gap:6px}
.nav-dropdown-toggle{
  display:flex;align-items:center;justify-content:space-between;
  min-height:48px;padding:0 16px;border-radius:16px;border:0;background:transparent;
  color:#64748b;font-weight:500;cursor:pointer;font:inherit;width:100%;
}
.nav-dropdown-toggle:hover{background:#f3f4f9;color:#334155}
.nav-dropdown.open .nav-dropdown-toggle{background:#eceefe;color:#4f46e5;font-weight:700}
.nav-caret{font-size:16px;transition:transform .2s ease}
.nav-dropdown.open .nav-caret{transform:rotate(180deg)}
.nav-dropdown-menu{display:none;flex-direction:column;gap:6px;padding-left:12px}
.nav-dropdown.open .nav-dropdown-menu{display:flex}
.nav-dropdown-menu a{
  min-height:42px;padding:0 14px;border-radius:14px;
  display:flex;align-items:center;color:#64748b;font-weight:500
}
.nav-dropdown-menu a:hover{background:#f3f4f9;color:#334155}
.nav-dropdown-menu a.active{background:#eceefe;color:#4f46e5;font-weight:700}

.top-horizontal-form{
  display:grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr auto;
  gap:14px;
  align-items:end;
}
.top-horizontal-form .form-submit-wrap{display:flex;align-items:end}
.full-width-table table{width:100%}

@media (max-width: 1100px){
  .top-horizontal-form{grid-template-columns:1fr 1fr}
}
@media (max-width: 700px){
  .top-horizontal-form{grid-template-columns:1fr}
}


.top-horizontal-form{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:14px;
  align-items:end;
}
.form-submit-wrap{
  display:flex;
  align-items:end;
}
.ledger-total-box{
  display:flex;
  gap:24px;
  flex-wrap:wrap;
  padding-top:16px;
  font-size:14px;
}
@media (max-width:1200px){
  .top-horizontal-form{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width:800px){
  .top-horizontal-form{grid-template-columns:1fr}
}


.top-horizontal-form-6{
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:14px;
  align-items:end;
}
@media (max-width:1300px){
  .top-horizontal-form-6{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width:800px){
  .top-horizontal-form-6{grid-template-columns:1fr}
}


.top-horizontal-form-8{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
  align-items:end;
}
.top-horizontal-form-8 input[type="file"]{
  padding:10px 12px;
  min-height:44px;
}
@media (max-width:1300px){
  .top-horizontal-form-8{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width:900px){
  .top-horizontal-form-8{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:700px){
  .top-horizontal-form-8{grid-template-columns:1fr}
}


.dashboard-alert-card{
  margin-bottom:18px;
  background:#fff7ed;
  border:1px solid #fed7aa;
  border-radius:22px;
  padding:18px;
}
.dashboard-alert-card-service{
  background:#fffbeb;
  border-color:#fde68a;
}
.alert-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
  margin-bottom:12px;
}
.alert-title{
  font-size:18px;
  font-weight:800;
  color:#9a3412;
}
.dashboard-alert-card-service .alert-title{
  color:#92400e;
}
.alert-subtitle{
  font-size:13px;
  color:#7c2d12;
  margin-top:4px;
}
.alert-close{
  width:34px;
  height:34px;
  border-radius:10px;
  display:grid;
  place-items:center;
  background:#fff;
  border:1px solid #fdba74;
  font-size:22px;
  line-height:1;
}
.danger-badge,.warning-badge{
  display:inline-flex;
  align-items:center;
  border-radius:999px;
  padding:6px 10px;
  font-size:12px;
  font-weight:700;
}
.danger-badge{
  background:#fee2e2;
  color:#b91c1c;
}
.warning-badge{
  background:#fef3c7;
  color:#92400e;
}
.top-horizontal-form-6{
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:14px;
  align-items:end;
}
@media (max-width:1300px){
  .top-horizontal-form-6{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width:800px){
  .top-horizontal-form-6{grid-template-columns:1fr}
}


.checkbox-dropdown{
  position:relative;
}
.checkbox-dropdown-toggle{
  width:100%;
  min-height:44px;
  border-radius:14px;
  border:1px solid #e6e9ef;
  background:#fff;
  padding:0 14px;
  font:inherit;
  text-align:left;
  cursor:pointer;
  color:#334155;
}
.checkbox-dropdown.open .checkbox-dropdown-toggle{
  border-color:#c7d2fe;
  box-shadow:0 0 0 4px rgba(99,102,241,.09);
}
.checkbox-dropdown-menu{
  display:none;
  position:absolute;
  top:calc(100% + 8px);
  left:0;
  width:100%;
  z-index:30;
  background:#fff;
  border:1px solid #e6e9ef;
  border-radius:16px;
  padding:10px;
  box-shadow:0 10px 24px rgba(15,23,42,.08);
}
.checkbox-dropdown.open .checkbox-dropdown-menu{
  display:block;
}
.checkbox-dropdown-menu label{
  display:flex;
  align-items:center;
  gap:10px;
  padding:8px 6px;
  margin:0;
  font-size:14px;
  font-weight:500;
  cursor:pointer;
}
.checkbox-dropdown-menu input[type="checkbox"]{
  width:16px;
  height:16px;
  min-height:auto;
}


.sidebar-nav{gap:10px}
.nav-dropdown-menu{padding-left:10px}
.full-width-table{width:100%}
.card{overflow:visible}
input[type="file"]{
  width:100%;
  min-height:44px;
  border-radius:14px;
  border:1px solid #e6e9ef;
  background:#fff;
  padding:10px 12px;
  font:inherit;
}
.table-wrap{overflow:auto}
@media (max-width:1400px){
  .top-horizontal-form-6{grid-template-columns:repeat(3,minmax(0,1fr))}
  .top-horizontal-form-8{grid-template-columns:repeat(3,minmax(0,1fr))}
}


.dashboard-alert-card-emi{
  background:#eef4ff;
  border-color:#bfdbfe;
}
.dashboard-alert-card-emi .alert-title{color:#1d4ed8}
.dashboard-alert-card-emi .alert-subtitle{color:#1e40af}

.badge-muted{background:#f1f5f9;color:#64748b}
.driver-shell{max-width:760px;margin:0 auto;padding:18px}
.driver-topbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px}
.driver-brand{display:flex;align-items:center;gap:12px}
.driver-page-title{margin:0;font-size:20px;font-weight:800}
.driver-page-subtitle{margin:4px 0 0;color:var(--muted);font-size:13px}
.driver-actions{display:flex;gap:10px;flex-wrap:wrap}
.driver-card{background:#fff;border:1px solid #e7e9ef;border-radius:24px;padding:18px;box-shadow:0 8px 24px rgba(15,23,42,.05);margin-bottom:16px}
.driver-card h2{margin:0 0 8px;font-size:17px}
.driver-card p{margin:0 0 14px;color:var(--muted);font-size:13px}
.mobile-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.mobile-form-grid .full{grid-column:1 / -1}
.quick-stat-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:16px}
.quick-stat{background:#fff;border:1px solid #e7e9ef;border-radius:20px;padding:16px}
.quick-stat-title{font-size:12px;color:var(--muted);font-weight:700;text-transform:uppercase}
.quick-stat-value{margin-top:6px;font-size:22px;font-weight:800}
.mobile-table-card{padding:0;overflow:hidden}
.mobile-entry-list{display:grid;gap:0}
.mobile-entry-item{padding:16px 18px;border-top:1px solid #eef2f7}
.mobile-entry-item:first-child{border-top:0}
.mobile-entry-head{display:flex;justify-content:space-between;gap:10px;align-items:flex-start;margin-bottom:8px}
.mobile-entry-title{font-weight:800}
.mobile-entry-meta{font-size:13px;color:var(--muted);display:grid;gap:4px}
.segment-tabs{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:16px}
.segment-tab{border:1px solid #e5e7eb;background:#fff;border-radius:16px;padding:12px 14px;font-weight:700;text-align:center}
.segment-tab.active{background:#eceefe;border-color:#c7d2fe;color:#4f46e5}
.help-chip{display:inline-flex;align-items:center;padding:7px 11px;border-radius:999px;background:#eef2ff;color:#4338ca;font-size:12px;font-weight:700}
@media (max-width:700px){
  .driver-shell{padding:14px}
  .driver-topbar{flex-direction:column;align-items:flex-start}
  .mobile-form-grid,.quick-stat-grid{grid-template-columns:1fr}
  .login-card{padding:22px}
  .login-title{font-size:24px}
}


.checkbox-group{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px 14px;
  padding:10px 12px;
  border:1px solid #e6e9ef;
  border-radius:16px;
  background:#fff;
}
.checkbox-group label{
  display:flex;
  align-items:center;
  gap:10px;
  margin:0;
  font-size:14px;
  font-weight:500;
  cursor:pointer;
}
.checkbox-group input[type="checkbox"]{
  width:18px;
  height:18px;
  min-height:auto;
  accent-color:#4f46e5;
}
@media (max-width:700px){
  .checkbox-group{grid-template-columns:1fr}
}
