/* TourSetu dashboard layout: keep the auth card narrow, expand every mounted dashboard. */
body.ts-dashboard-active {
  display:block !important;
  place-items:initial !important;
  justify-content:initial !important;
  align-items:initial !important;
  width:100% !important;
  max-width:none !important;
  min-width:0 !important;
  min-height:100vh !important;
  margin:0 !important;
  padding:0 !important;
  overflow-x:clip !important;
}
body.ts-dashboard-active #app,
#app.ts-dashboard-active {
  display:block !important;
  width:100% !important;
  max-width:100vw !important;
  min-width:0 !important;
  min-height:100vh !important;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  border-radius:0 !important;
  box-shadow:none !important;
  background:transparent !important;
}
#app [data-ts-dashboard-root] {
  width:100% !important;
  max-width:none !important;
  min-width:0 !important;
  min-height:100vh !important;
  margin:0 !important;
  box-sizing:border-box !important;
}
#app :where(.toursetu-agency-dashboard,.hotel-dashboard-shell,.driver-app) {
  width:100% !important;
  max-width:none !important;
  min-width:0 !important;
  min-height:100vh !important;
  box-sizing:border-box !important;
}
#app :where(.agency-main-content,.hotel-main-content,.driver-app .main,.driver-app .content) {
  min-width:0 !important;
  max-width:none !important;
}
@media (min-width:1024px) {
  body.ts-dashboard-active { padding:0 !important; }
  body.ts-dashboard-active #app, #app.ts-dashboard-active { width:100% !important; max-width:100vw !important; }
  .toursetu-agency-dashboard { display:flex !important; align-items:stretch !important; }
  .toursetu-agency-dashboard > .agency-sidebar { position:sticky !important; inset-block-start:0; flex:0 0 260px !important; width:260px !important; min-width:260px !important; height:100vh !important; min-height:100vh !important; overflow-y:auto; }
  .toursetu-agency-dashboard > .agency-main-content { flex:1 1 0 !important; width:auto !important; max-width:none !important; min-width:0 !important; min-height:100vh !important; overflow-x:clip !important; }
  #main-content > div[style*="display:grid"] { display:grid !important; grid-template-columns:repeat(3,minmax(0,1fr)) !important; width:100% !important; gap:clamp(14px,1.6vw,24px) !important; }
  #main-content > div[style*="display:grid"] > * { min-width:0 !important; max-width:100% !important; }
  .hotel-dashboard-shell { display:flex !important; align-items:stretch !important; }
  .hotel-dashboard-shell > div:first-child { flex:0 0 280px !important; width:280px !important; min-width:280px !important; min-height:100vh !important; }
  #hotel-main-content { flex:1 1 0 !important; width:auto !important; max-width:none !important; min-width:0 !important; }
  .driver-app { display:flex !important; align-items:stretch !important; }
  .driver-app > .sidebar { position:sticky !important; inset-block-start:0; flex:0 0 260px !important; width:260px !important; min-width:260px !important; height:100vh !important; }
  .driver-app .main { flex:1 1 0 !important; width:auto !important; min-width:0 !important; margin-left:0 !important; }
  .driver-app .content { width:100% !important; max-width:1600px !important; margin-inline:auto !important; }
  .ts-mobile-nav-toggle { display:none !important; }
}
@media (min-width:769px) and (max-width:1023px) {
  body.ts-dashboard-active #app { width:100% !important; max-width:100vw !important; }
  .toursetu-agency-dashboard > .agency-sidebar { flex-basis:220px !important; width:220px !important; }
  .toursetu-agency-dashboard > .agency-main-content { width:auto !important; min-width:0 !important; }
  .hotel-dashboard-shell > div:first-child { flex-basis:240px !important; width:240px !important; }
}
@media (max-width:768px) {
  body.ts-dashboard-active { display:block !important; padding:0 !important; margin:0 !important; width:100% !important; min-width:320px !important; min-height:100vh !important; }
  body.ts-dashboard-active #app, #app.ts-dashboard-active { display:block !important; width:100% !important; max-width:100vw !important; min-height:100vh !important; margin:0 !important; padding:0 !important; border:0 !important; border-radius:0 !important; box-shadow:none !important; }
  #app [data-ts-dashboard-root] { width:100% !important; max-width:100% !important; margin:0 !important; min-height:100vh !important; }
  .toursetu-agency-dashboard,.hotel-dashboard-shell,.driver-app { display:flex !important; flex-direction:column !important; width:100% !important; max-width:100% !important; min-width:0 !important; min-height:100vh !important; margin:0 !important; border-radius:0 !important; }
  .toursetu-agency-dashboard > .agency-sidebar,.hotel-dashboard-shell > div:first-child,.driver-app .sidebar { position:relative !important; inset:auto !important; width:100% !important; min-width:0 !important; height:auto !important; min-height:0 !important; max-height:none !important; padding:12px 14px !important; overflow:visible !important; }
  .toursetu-agency-dashboard .agency-sidebar nav,.hotel-dashboard-shell nav,.driver-app .side-nav { display:none !important; flex-direction:column !important; flex-wrap:nowrap !important; width:100% !important; gap:6px !important; margin-top:10px !important; overflow:visible !important; }
  .toursetu-agency-dashboard .agency-sidebar.ts-mobile-nav-open nav,.hotel-dashboard-shell > div:first-child.ts-mobile-nav-open nav,.driver-app .sidebar.ts-mobile-nav-open .side-nav { display:flex !important; }
  .toursetu-agency-dashboard .agency-sidebar .nav-item,.driver-app .side-link { width:100% !important; min-height:44px !important; flex:0 0 auto !important; margin:0 !important; white-space:normal !important; }
  .toursetu-agency-dashboard > .agency-main-content,#hotel-main-content,.driver-app .main,.driver-app .content { width:100% !important; max-width:100% !important; min-width:0 !important; min-height:0 !important; margin:0 !important; padding:16px 14px calc(28px + env(safe-area-inset-bottom)) !important; overflow:visible !important; }
  #main-content > div[style*="display:grid"],.driver-app .stats,.driver-app .driver-grid { display:grid !important; grid-template-columns:minmax(0,1fr) !important; width:100% !important; gap:12px !important; }
  #main-content > div[style*="display:grid"] > * { min-width:0 !important; width:100% !important; max-width:100% !important; }
  .ts-mobile-nav-toggle { display:flex !important; align-items:center; justify-content:flex-start; gap:10px; width:100%; min-height:46px; padding:10px 14px; border:1px solid rgba(255,255,255,.18); border-radius:10px; background:#111827; color:#fff; font:700 14px/1.2 Inter,sans-serif; cursor:pointer; }
  #app :where(input,select,textarea,button) { max-width:100%; min-width:0; }
  #app :where(table) { display:block; width:100%; max-width:100%; overflow-x:auto; -webkit-overflow-scrolling:touch; }
}
@media (prefers-reduced-motion:reduce) { .ts-mobile-nav-toggle { transition:none !important; } }
