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

:root {
  --gps-primary: #2563eb;
  --gps-primary-dark: #1d4ed8;
  --gps-primary-soft: #eff6ff;
  --gps-navy: #0f172a;
  --gps-slate: #475569;
  --gps-muted: #94a3b8;
  --gps-surface: #ffffff;
  --gps-bg: #f4f7fb;
  --gps-border: #e2e8f0;
  --gps-success: #16a34a;
  --gps-warning: #f59e0b;
  --gps-danger: #dc2626;
  --gps-radius: 18px;
  --gps-shadow: 0 10px 35px rgba(15, 23, 42, .07);
}

html, body {
  font-family: 'Manrope', 'Noto Sans Thai', sans-serif !important;
  color: var(--gps-navy);
  background: var(--gps-bg) !important;
  -webkit-font-smoothing: antialiased;
}

body { min-height: 100vh; margin: 0 !important; }
a { color: var(--gps-primary); }
h1, h2, h3, h4, h5, h6 { color: var(--gps-navy); font-weight: 700; letter-spacing: -.025em; }

.layout-page { background: var(--gps-bg); }
.container-p-y { padding-top: 1.5rem !important; padding-bottom: 2rem !important; }
.content-wrapper { min-width: 0; }

/* Sidebar */
.layout-menu {
  background: #0b1220 !important;
  border: 0 !important;
  box-shadow: 12px 0 36px rgba(15, 23, 42, .08);
}
.app-brand { height: 84px !important; padding: 0 1.35rem !important; }
.app-brand-link { gap: .75rem; }
.gps-brand-mark {
  width: 42px; height: 42px; border-radius: 14px; display: inline-flex;
  align-items: center; justify-content: center; color: #fff;
  background: linear-gradient(145deg, #3b82f6, #1d4ed8);
  box-shadow: 0 8px 22px rgba(37, 99, 235, .35); font-size: 1.35rem;
}
.app-brand-text { color: #fff !important; font-size: 1.05rem !important; letter-spacing: -.02em !important; }
.gps-brand-subtitle { color: #64748b; font-size: .66rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.layout-menu .menu-header { color: #64748b !important; font-size: .68rem; letter-spacing: .12em; padding: 1rem 1.35rem .5rem; }
.layout-menu .menu-inner { padding: .4rem .8rem 1rem !important; }
.layout-menu .menu-item { margin: .2rem 0; }
.layout-menu .menu-link {
  min-height: 46px; padding: .72rem .9rem !important; border-radius: 12px !important;
  color: #94a3b8 !important; font-weight: 600; transition: .2s ease;
}
.layout-menu .menu-link:hover { color: #fff !important; background: rgba(255,255,255,.06) !important; transform: translateX(2px); }
.layout-menu .menu-item.active > .menu-link {
  color: #fff !important; background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
  box-shadow: 0 8px 20px rgba(37, 99, 235, .28);
}
.layout-menu .menu-icon { font-size: 1.25rem !important; }
.gps-menu-logout { margin-top: 1.2rem !important; border-top: 1px solid rgba(148,163,184,.12); padding-top: .7rem; }
.gps-menu-logout .menu-link:hover { color: #fca5a5 !important; background: rgba(239,68,68,.08) !important; }

/* Top navigation */
.layout-navbar {
  margin: 1rem 1.5rem 0 !important; border: 1px solid rgba(226,232,240,.75) !important;
  border-radius: 16px !important; box-shadow: 0 6px 24px rgba(15,23,42,.05) !important;
  background: rgba(255,255,255,.88) !important; backdrop-filter: blur(16px);
}
.gps-page-eyebrow { color: var(--gps-primary); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.gps-page-title { font-size: 1rem; font-weight: 700; margin: 0; }
.gps-user-copy { text-align: right; line-height: 1.2; }
.gps-user-name { font-size: .82rem; font-weight: 700; color: var(--gps-navy); }
.gps-user-role { color: var(--gps-muted); font-size: .7rem; }
.avatar img { object-fit: cover; border: 2px solid #fff; box-shadow: 0 0 0 2px #dbeafe; }

/* Content primitives */
.card {
  border: 1px solid rgba(226,232,240,.9) !important; border-radius: var(--gps-radius) !important;
  background: var(--gps-surface); box-shadow: var(--gps-shadow) !important;
}
.card-header { background: transparent !important; border-bottom: 1px solid var(--gps-border) !important; padding: 1.25rem 1.4rem !important; }
.card-body { padding: 1.4rem; }
.gps-page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.gps-page-header h2 { margin: 0 0 .2rem; font-size: clamp(1.35rem, 2vw, 1.85rem); }
.gps-page-header p { margin: 0; color: var(--gps-slate); }

.btn { border-radius: 11px !important; font-weight: 700 !important; padding: .65rem 1rem; box-shadow: none !important; transition: .18s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--gps-primary) !important; border-color: var(--gps-primary) !important; }
.btn-primary:hover { background: var(--gps-primary-dark) !important; border-color: var(--gps-primary-dark) !important; }
.btn-sm { border-radius: 9px !important; padding: .45rem .7rem !important; }
.rounded-pill { border-radius: 999px !important; }

.form-label { color: #334155; font-size: .82rem; font-weight: 700; margin-bottom: .45rem; }
.form-control, .form-select, .select2-selection {
  min-height: 46px; border: 1px solid var(--gps-border) !important; border-radius: 11px !important;
  color: var(--gps-navy); background-color: #fff; box-shadow: none !important;
}
.form-control:focus, .form-select:focus { border-color: #60a5fa !important; box-shadow: 0 0 0 4px rgba(37,99,235,.1) !important; }
input[type='file'].form-control { padding: .6rem .75rem; }

.table-responsive { border: 1px solid var(--gps-border); border-radius: 14px; overflow-x: auto; }
.table { margin: 0 !important; color: #334155; vertical-align: middle; }
.table > :not(caption) > * > * { padding: .9rem 1rem !important; border-bottom-color: #edf2f7 !important; }
.table thead th { background: #f8fafc !important; color: #64748b !important; border: 0 !important; font-size: .72rem; font-weight: 800; letter-spacing: .055em; text-transform: uppercase; white-space: nowrap; }
.table tbody tr { transition: background .15s ease; }
.table tbody tr:hover { background: #f8fbff !important; }
.badge { padding: .45rem .7rem; border-radius: 999px; font-weight: 700; }

.modal-content { border: 0 !important; border-radius: 20px !important; box-shadow: 0 25px 70px rgba(15,23,42,.2) !important; }
.modal-header, .modal-footer { border-color: var(--gps-border) !important; padding: 1.15rem 1.4rem; }
.modal-body { padding: 1.4rem; }
.dropdown-menu { border: 1px solid var(--gps-border) !important; border-radius: 14px !important; box-shadow: var(--gps-shadow) !important; padding: .55rem; }
.dropdown-item { border-radius: 9px; padding: .65rem .75rem; }
.alert { border: 0; border-radius: 13px; }

#map, .leaflet-container { border-radius: 16px; background: #eaf0f7; }
.layout-page > h2 { margin: 1.5rem 1.5rem .75rem; text-align: left !important; font-size: 1.55rem; }
.layout-page > .car-buttons { margin: 0 1.5rem 1rem; display: flex; flex-wrap: wrap; justify-content: flex-start; gap: .55rem; }
.layout-page > .car-buttons button { margin: 0 !important; border-radius: 999px !important; padding: .65rem 1rem !important; font-weight: 700; }
.layout-page > #notice { margin: 0 1.5rem .75rem; text-align: left !important; }
.layout-page > #map { width: auto !important; margin: 0 1.5rem 1.5rem !important; height: calc(100vh - 255px) !important; min-height: 480px; }
.leaflet-control-zoom, .leaflet-routing-container { border: 0 !important; border-radius: 12px !important; box-shadow: var(--gps-shadow) !important; overflow: hidden; }
.content-footer { background: transparent !important; color: var(--gps-muted); font-size: .8rem; }

/* Login */
.gps-auth-page { overflow-x: hidden; background: #f8fafc !important; }
.gps-auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(420px, .88fr); }
.gps-auth-visual { position: relative; padding: clamp(2rem, 5vw, 5.5rem); display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; color: #fff; background: linear-gradient(145deg, #081225 0%, #12356b 52%, #2563eb 100%); }
.gps-auth-visual::before, .gps-auth-visual::after { content: ''; position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.12); }
.gps-auth-visual::before { width: 550px; height: 550px; right: -180px; top: -180px; }
.gps-auth-visual::after { width: 360px; height: 360px; left: -140px; bottom: -160px; }
.gps-auth-brand, .gps-auth-message, .gps-auth-meta { position: relative; z-index: 1; }
.gps-auth-brand { display: flex; align-items: center; gap: .85rem; font-weight: 800; }
.gps-auth-message { max-width: 600px; }
.gps-auth-message h1 { color: #fff; font-size: clamp(2.1rem, 4vw, 4.35rem); line-height: 1.08; margin: 0 0 1.25rem; }
.gps-auth-message p { color: #cbd5e1; font-size: clamp(1rem, 1.4vw, 1.15rem); line-height: 1.8; max-width: 530px; }
.gps-auth-chip { display: inline-flex; gap: .5rem; align-items: center; padding: .55rem .85rem; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; background: rgba(255,255,255,.08); color: #dbeafe; font-size: .78rem; font-weight: 700; margin-bottom: 1.5rem; }
.gps-auth-panel { display: flex; align-items: center; justify-content: center; padding: 2rem; background: #fff; }
.gps-login-card { width: min(100%, 430px); }
.gps-login-card h2 { font-size: 2rem; margin-bottom: .55rem; }
.gps-login-card .lead { color: var(--gps-slate); font-size: .95rem; margin-bottom: 2rem; }
.gps-input-icon { position: relative; }
.gps-input-icon > i { position: absolute; z-index: 2; left: 1rem; top: 50%; transform: translateY(-50%); color: #94a3b8; font-size: 1.2rem; }
.gps-input-icon .form-control { padding-left: 3rem; }
.gps-login-submit { min-height: 50px; margin-top: .6rem; }

@media (max-width: 1199.98px) {
  .layout-navbar { margin: .75rem .9rem 0 !important; }
  .container-p-y { padding: 1.15rem .9rem 1.5rem !important; }
}
@media (max-width: 991.98px) {
  .gps-auth-shell { grid-template-columns: 1fr; }
  .gps-auth-visual { min-height: 290px; padding: 2rem; }
  .gps-auth-message h1 { font-size: 2.25rem; }
  .gps-auth-message p { margin-bottom: 0; }
  .gps-auth-meta { display: none; }
  .gps-auth-panel { padding: 2.25rem 1.25rem; }
}
@media (max-width: 767.98px) {
  .layout-navbar { min-height: 64px !important; padding: 0 .85rem !important; }
  .gps-page-copy, .gps-user-copy { display: none; }
  .card { border-radius: 15px !important; }
  .card-body, .card.p-5, .card.p-4, .card.p-3 { padding: 1rem !important; }
  .gps-page-header { align-items: stretch; flex-direction: column; }
  .gps-page-header .btn { width: 100%; }
  .table > :not(caption) > * > * { padding: .75rem !important; }
  .status-timeline { min-width: 620px; overflow-x: auto; }
  #map { min-height: 62vh; height: 68vh !important; }
  .content-footer .footer-container { gap: .65rem; }
}
@media (max-width: 575.98px) {
  .gps-auth-visual { min-height: 250px; }
  .gps-auth-message h1 { font-size: 1.85rem; }
  .gps-auth-message p { font-size: .88rem; line-height: 1.6; }
  .gps-login-card h2 { font-size: 1.65rem; }
  .btn-lg { font-size: .9rem !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Operations modules */
.gps-dashboard-hero { display:flex; align-items:center; justify-content:space-between; gap:1.5rem; margin-bottom:1.25rem; padding:1.5rem 1.7rem; border-radius:20px; color:#fff; background:linear-gradient(125deg,#0f2d5c,#1d4ed8 62%,#3b82f6); box-shadow:0 18px 40px rgba(37,99,235,.18); }
.gps-dashboard-hero h2 { color:#fff; margin:.25rem 0; font-size:clamp(1.45rem,2.3vw,2rem); }.gps-dashboard-hero p{margin:0;color:#bfdbfe}.gps-dashboard-hero .gps-page-eyebrow{color:#93c5fd}
.gps-completion{display:flex;align-items:center;gap:.8rem}.gps-completion>div{display:flex;flex-direction:column;text-align:right}.gps-completion strong{font-size:1.7rem}.gps-completion small{color:#bfdbfe}.gps-completion>span{width:60px;height:60px;border-radius:50%;background:conic-gradient(#fff var(--progress),rgba(255,255,255,.18) 0);position:relative}.gps-completion>span:after{content:'';position:absolute;inset:7px;border-radius:50%;background:#2865d4}
.gps-stat-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:1rem}.gps-stat-card{display:flex;align-items:center;gap:.8rem;padding:1rem;border:1px solid var(--gps-border);border-radius:16px;background:#fff;color:inherit!important;box-shadow:0 6px 20px rgba(15,23,42,.04);transition:.2s}.gps-stat-card:hover{transform:translateY(-2px);box-shadow:var(--gps-shadow)}.gps-stat-icon{width:42px;height:42px;flex:0 0 42px;display:grid;place-items:center;border-radius:12px;font-size:1.15rem}.gps-stat-icon.primary{color:#2563eb;background:#eff6ff}.gps-stat-icon.warning{color:#d97706;background:#fffbeb}.gps-stat-icon.success{color:#16a34a;background:#f0fdf4}.gps-stat-icon.danger{color:#dc2626;background:#fef2f2}.gps-stat-icon.info{color:#0891b2;background:#ecfeff}.gps-stat-icon.slate{color:#475569;background:#f1f5f9}.gps-stat-card>span:last-child{min-width:0;display:flex;flex-direction:column}.gps-stat-card small{color:#64748b;font-size:.67rem}.gps-stat-card strong{font-size:1.35rem;line-height:1.25}.gps-stat-card em{color:#94a3b8;font-size:.6rem;font-style:normal;white-space:nowrap}
.gps-fleet-list{display:flex;flex-direction:column;gap:1rem}.gps-fleet-row{display:grid;grid-template-columns:1fr auto;gap:.45rem}.gps-fleet-row>div:first-child{display:flex;flex-direction:column}.gps-fleet-row small{color:#94a3b8;font-size:.65rem}.gps-fleet-row>span{font-size:.7rem;font-weight:800;color:#2563eb}.gps-fleet-row .progress{grid-column:1/-1;height:6px;background:#eaf0f7}.gps-fleet-row .progress-bar{background:#2563eb}
.gps-segment-tabs{display:inline-flex;gap:.3rem;padding:.35rem;border:1px solid var(--gps-border);border-radius:14px;background:#fff}.gps-segment-tabs a{display:inline-flex;align-items:center;gap:.4rem;padding:.65rem 1rem;border-radius:10px;color:#64748b;font-size:.75rem;font-weight:700}.gps-segment-tabs a.active{color:#1d4ed8;background:#eff6ff}
.gps-driver-shell{max-width:920px}.gps-driver-head{display:flex;justify-content:space-between;align-items:flex-end;gap:1rem;margin-bottom:1.25rem}.gps-driver-head h2{margin:.2rem 0}.gps-driver-head p{margin:0;color:#64748b}.gps-driver-list{display:flex;flex-direction:column;gap:.85rem}.gps-driver-task{display:grid;grid-template-columns:48px 1fr;gap:1rem;padding:1rem;border:1px solid var(--gps-border);border-radius:17px;background:#fff;box-shadow:0 6px 20px rgba(15,23,42,.04)}.gps-driver-task.done{opacity:.72}.gps-driver-seq{width:44px;height:44px;display:grid;place-items:center;border-radius:13px;color:#fff;background:#2563eb;font-weight:800}.gps-driver-task-main h4{margin:.15rem 0 .45rem}.gps-driver-task-main small{color:#94a3b8}.gps-driver-task-main p{display:flex;gap:.4rem;color:#64748b;font-size:.78rem}.gps-driver-actions{display:flex;flex-wrap:wrap;gap:.5rem}.gps-driver-actions .btn{flex:1 1 120px}
.gps-notification-list{display:flex;flex-direction:column}.gps-notification-item{position:relative;display:flex;gap:1rem;padding:1rem 1.25rem;border-bottom:1px solid #edf2f7;color:inherit!important}.gps-notification-item:hover{background:#f8fbff}.gps-notification-item.unread{background:#f5f9ff}.gps-notification-icon{width:42px;height:42px;flex:0 0 42px;display:grid;place-items:center;border-radius:12px}.gps-notification-icon.info{color:#2563eb;background:#eff6ff}.gps-notification-icon.success{color:#16a34a;background:#f0fdf4}.gps-notification-icon.warning{color:#d97706;background:#fffbeb}.gps-notification-icon.danger{color:#dc2626;background:#fef2f2}.gps-notification-item p{margin:.2rem 0;color:#64748b;font-size:.76rem}.gps-notification-item small{color:#94a3b8}.gps-unread-dot{margin-left:auto;color:#2563eb;font-size:.55rem}
.gps-health-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:12px;font-size:1.2rem}.gps-health-icon.ok{color:#16a34a;background:#f0fdf4}.gps-health-icon.bad{color:#dc2626;background:#fef2f2}
.gps-notification-count{position:absolute;right:-3px;top:-4px;min-width:18px;height:18px;padding:0 4px;display:grid;place-items:center;border:2px solid #fff;border-radius:999px;color:#fff;background:#ef4444;font-size:.55rem;font-weight:800}
@media(max-width:1399.98px){.gps-stat-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:767.98px){.gps-dashboard-hero{align-items:flex-start;padding:1.2rem}.gps-completion>span{display:none}.gps-stat-grid{grid-template-columns:repeat(2,1fr)}.gps-stat-card{padding:.85rem}.gps-driver-head{align-items:stretch;flex-direction:column}.gps-driver-task{grid-template-columns:36px 1fr;padding:.85rem}.gps-driver-seq{width:36px;height:36px}.gps-segment-tabs{display:flex;overflow-x:auto}.gps-segment-tabs a{flex:1 0 auto;justify-content:center}}
@media(max-width:420px){.gps-stat-grid{grid-template-columns:1fr}.gps-completion{display:none}}
@media print{.gps-topbar,.gps-page-header .btn,.content-footer,form.card{display:none!important}.layout-page{padding:0!important}.container-p-y{padding:0!important}.card{box-shadow:none!important;border:0!important}body{background:#fff!important}}

/* Workflow navigation: only authorized, non-empty groups are rendered. */
.gps-unified-nav .gps-grouped-navigation { flex:1; flex-wrap:wrap; align-items:stretch; overflow:visible; gap:.5rem 0; padding:.65rem 0; }
.gps-menu-group { min-width:0; padding:0 .8rem; border-right:1px solid #e2e8f0; }
.gps-menu-group:first-child { padding-left:0; }
.gps-menu-group:last-child { border-right:0; }
.gps-menu-group-label { display:block; padding:0 .65rem .2rem; font-size:.65rem; font-weight:700; color:#64748b; }
.gps-menu-group-links { display:flex; flex-wrap:wrap; gap:.15rem; }
.gps-menu-group-links .gps-unified-nav-link { min-height:40px; border-radius:9px; padding:0 .65rem; font-size:.75rem; }
.gps-menu-group-links .gps-unified-nav-link.active { background:#eaf2ff; }
.gps-menu-group-links .gps-unified-nav-link:focus-visible { outline:2px solid #2563eb; outline-offset:2px; }
.gps-unified-nav .gps-menu-role { align-self:flex-start; margin-top:.8rem; }
@media(max-width:767.98px) {
  .gps-unified-nav .gps-grouped-navigation { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); width:100%; gap:.75rem; }
  .gps-menu-group,.gps-menu-group:first-child { padding:0; border:0; }
  .gps-menu-group-links { flex-direction:column; }
  .gps-menu-group-links .gps-unified-nav-link { white-space:normal; min-height:44px; }
  .gps-unified-nav .gps-menu-role { display:none; }
  .gps-topbar:has(.gps-grouped-navigation) { position:relative!important; }
}

/* Navigation v3 */
html.layout-navbar-fixed .layout-content-navbar .layout-page {
  padding-top: 0 !important;
}
html.layout-navbar-fixed .layout-wrapper:not(.layout-horizontal):not(.layout-without-menu) .layout-page,
html.layout-navbar-fixed .layout-wrapper:not(.layout-without-menu) .layout-page {
  padding-top: 0 !important;
}
html.layout-navbar-fixed .layout-wrapper:not(.layout-horizontal) .layout-page::before {
  content: none !important;
  display: none !important;
  height: 0 !important;
}
html.layout-navbar-fixed .layout-content-navbar .gps-topbar {
  position: sticky !important;
  top: 0 !important;
  right: auto !important;
  left: auto !important;
  width: 100% !important;
}
.gps-sidebar {
  width: 286px !important;
  background: #ffffff !important;
  color: #0f172a;
  display: flex !important;
  flex-direction: column;
  padding: 0 !important;
  overflow: hidden;
}
.gps-sidebar-head {
  height: 82px;
  flex: 0 0 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  border-bottom: 1px solid #e7edf5;
}
.gps-logo { display: inline-flex; align-items: center; gap: .75rem; color: #0f172a !important; }
.gps-logo-symbol {
  width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center;
  background: #2563eb; color: #fff; font-size: 1.3rem; transform: rotate(-3deg);
  box-shadow: 0 10px 25px rgba(37, 99, 235, .32);
}
.gps-logo-copy { display: flex; flex-direction: column; line-height: 1; }
.gps-logo-copy strong { font-size: 1.15rem; letter-spacing: .04em; }
.gps-logo-copy small { margin-top: .32rem; color: #94a3b8; font-size: .59rem; font-weight: 800; letter-spacing: .22em; }
.gps-sidebar-close { width: 36px; height: 36px; border: 1px solid #e2e8f0; border-radius: 10px; display: grid; place-items: center; background: #f8fafc; color: #475569; font-size: 1.35rem; }
.gps-sidebar-status {
  display: flex; align-items: center; gap: .7rem; margin: 1rem 1rem .35rem; padding: .75rem .85rem;
  border: 1px solid #d1fae5; border-radius: 13px; background: #f0fdf4;
}
.gps-sidebar-status > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.gps-sidebar-status strong { color: #166534; font-size: .72rem; }
.gps-sidebar-status small { color: #65a078; font-size: .63rem; margin-top: .1rem; }
.gps-live-pulse { position: relative; width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 5px rgba(34,197,94,.12); }
.gps-live-pulse::after { content: ''; position: absolute; inset: -5px; border: 1px solid #22c55e; border-radius: 50%; animation: gps-live 2s ease-out infinite; }
@keyframes gps-live { from { opacity: .7; transform: scale(.6); } to { opacity: 0; transform: scale(1.6); } }
.gps-navigation { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: .4rem .85rem 1rem; scrollbar-width: thin; scrollbar-color: #cbd5e1 transparent; }
.gps-nav-section + .gps-nav-section { margin-top: 1.15rem; }
.gps-nav-label { padding: .45rem .7rem; color: #94a3b8; font-size: .61rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.gps-nav-link {
  position: relative; display: flex; align-items: center; gap: .72rem; min-height: 56px; margin: .2rem 0;
  padding: .55rem .6rem; border-radius: 13px; color: #475569 !important; transition: background .18s ease, color .18s ease, transform .18s ease;
}
.gps-nav-link:hover { color: #1d4ed8 !important; background: #f1f5f9; transform: translateX(2px); }
.gps-nav-link.active { color: #1d4ed8 !important; background: #eff6ff; box-shadow: inset 3px 0 0 #2563eb; }
.gps-nav-icon { width: 36px; height: 36px; flex: 0 0 36px; display: grid; place-items: center; border-radius: 10px; background: #f1f5f9; font-size: 1.15rem; }
.gps-nav-link.active .gps-nav-icon { color: #2563eb; background: #dbeafe; }
.gps-nav-copy { min-width: 0; display: flex; flex: 1; flex-direction: column; }
.gps-nav-copy strong { color: inherit; font-size: .78rem; font-weight: 700; }
.gps-nav-copy small { color: #94a3b8; font-size: .63rem; margin-top: .12rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gps-nav-link.active .gps-nav-copy small { color: #60a5fa; }
.gps-nav-arrow { color: #cbd5e1; font-size: 1rem; }
.gps-sidebar-foot { flex: 0 0 auto; display: flex; align-items: center; gap: .55rem; padding: 1rem; border-top: 1px solid #e7edf5; background: #f8fafc; }
.gps-sidebar-user { min-width: 0; flex: 1; display: flex; align-items: center; gap: .65rem; }
.gps-sidebar-user img { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 11px; object-fit: cover; }
.gps-sidebar-user > span { min-width: 0; display: flex; flex-direction: column; }
.gps-sidebar-user strong, .gps-sidebar-user small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gps-sidebar-user strong { color: #1e293b; font-size: .72rem; }
.gps-sidebar-user small { color: #94a3b8; font-size: .61rem; margin-top: .12rem; }
.gps-logout-button { width: 36px; height: 36px; flex: 0 0 36px; display: grid; place-items: center; border-radius: 10px; color: #64748b !important; background: #fff; border: 1px solid #e2e8f0; font-size: 1.1rem; }
.gps-logout-button:hover { color: #dc2626 !important; background: #fef2f2; border-color: #fecaca; }

.gps-topbar {
  position: relative; z-index: 10; min-height: 104px; margin: 0 !important; padding: 1.05rem 1.75rem 0;
  display: flex; align-items: center; justify-content: space-between; column-gap: 1rem; row-gap: .85rem; flex-wrap: wrap;
  background: #ffffff; border-bottom: 1px solid #e7edf5; box-shadow: 0 5px 18px rgba(15,23,42,.035);
}
.gps-topbar::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(180deg, #3b82f6, #60a5fa); }
.gps-topbar-main, .gps-topbar-actions { display: flex; align-items: center; }
.gps-topbar-main { min-width: 0; gap: .9rem; }
.gps-topbar-actions { flex: 0 0 auto; gap: .65rem; }
.gps-navbar-brand { flex: 0 0 auto; display: inline-flex; align-items: center; gap: .65rem; color: #0f172a !important; }
.gps-navbar-logo { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; color: #fff; background: linear-gradient(145deg, #3b82f6, #1d4ed8); box-shadow: 0 8px 20px rgba(37,99,235,.25); font-size: 1.2rem; }
.gps-navbar-brand-copy { display: flex; flex-direction: column; line-height: 1; }
.gps-navbar-brand-copy strong { font-size: 1rem; letter-spacing: .06em; }
.gps-navbar-brand-copy small { margin-top: .28rem; color: #94a3b8; font-size: .52rem; font-weight: 800; letter-spacing: .18em; }
.gps-navbar-divider { width: 1px; height: 38px; flex: 0 0 1px; margin: 0 .15rem; background: #e2e8f0; }
.gps-menu-trigger, .gps-icon-button {
  width: 42px; height: 42px; flex: 0 0 42px; border: 1px solid #e2e8f0; border-radius: 12px;
  align-items: center; justify-content: center; background: #fff; color: #475569 !important; font-size: 1.25rem;
}
.gps-menu-trigger { display: inline-flex; }
.gps-menu-trigger:hover, .gps-icon-button:hover { color: #2563eb !important; border-color: #bfdbfe; background: #eff6ff; }
.gps-page-icon { width: 48px; height: 48px; flex: 0 0 48px; display: grid; place-items: center; border-radius: 14px; color: #2563eb; background: #eff6ff; font-size: 1.35rem; }
.gps-title-block { min-width: 0; }
.gps-breadcrumb { display: flex; align-items: center; gap: .2rem; color: #94a3b8; font-size: .61rem; font-weight: 700; letter-spacing: .03em; }
.gps-breadcrumb i { font-size: .85rem; }
.gps-title-block h1 { margin: .12rem 0 0; font-size: clamp(1.15rem, 2vw, 1.45rem); line-height: 1.2; }
.gps-title-block p { margin: .18rem 0 0; color: #64748b; font-size: .72rem; }
.gps-date-chip { height: 42px; align-items: center; gap: .48rem; padding: 0 .85rem; border: 1px solid #e2e8f0; border-radius: 12px; color: #64748b; background: #fff; font-size: .7rem; font-weight: 700; }
.gps-date-chip i { color: #2563eb; font-size: 1rem; }
.gps-profile-button { min-height: 48px; padding: .25rem .4rem; display: flex; align-items: center; gap: .6rem; border: 0; border-radius: 14px; background: transparent; color: #0f172a; }
.gps-profile-button:hover { background: #f8fafc; }
.gps-profile-avatar { position: relative; display: inline-flex; }
.gps-profile-avatar img { width: 40px; height: 40px; border-radius: 12px; object-fit: cover; border: 2px solid #fff; box-shadow: 0 0 0 1px #dbe3ee; }
.gps-profile-avatar > span { position: absolute; right: -2px; bottom: -2px; width: 11px; height: 11px; border: 2px solid #fff; border-radius: 50%; background: #22c55e; }
.gps-profile-copy { max-width: 150px; flex-direction: column; text-align: left; line-height: 1.15; }
.gps-profile-copy strong, .gps-profile-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gps-profile-copy strong { font-size: .72rem; }
.gps-profile-copy small { color: #94a3b8; font-size: .61rem; margin-top: .17rem; }
.gps-profile-menu { min-width: 240px !important; }
.gps-profile-menu-head { padding: .55rem; display: flex; align-items: center; gap: .7rem; }
.gps-profile-menu-head img { width: 42px; height: 42px; border-radius: 12px; object-fit: cover; }
.gps-profile-menu-head > span { min-width: 0; display: flex; flex-direction: column; }
.gps-profile-menu-head strong { color: #0f172a; font-size: .77rem; }
.gps-profile-menu-head small { color: #94a3b8; font-size: .65rem; }

.gps-unified-nav { order: 3; flex: 0 0 calc(100% + 3.5rem); width: calc(100% + 3.5rem); margin: 0 -1.75rem; padding: 0 1.75rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-top: 1px solid #edf1f6; background: #fbfdff; }
.gps-unified-nav-scroll { min-width: 0; display: flex; align-items: center; gap: .2rem; overflow-x: auto; scrollbar-width: none; }
.gps-unified-nav-scroll::-webkit-scrollbar { display: none; }
.gps-unified-nav-link { position: relative; min-height: 48px; flex: 0 0 auto; display: inline-flex; align-items: center; gap: .42rem; padding: 0 .78rem; color: #64748b !important; font-size: .69rem; font-weight: 700; }
.gps-unified-nav-link::after { content: ''; position: absolute; right: .75rem; bottom: 0; left: .75rem; height: 3px; border-radius: 3px 3px 0 0; background: transparent; }
.gps-unified-nav-link:hover { color: #1d4ed8 !important; }
.gps-unified-nav-link.active { color: #1d4ed8 !important; }
.gps-unified-nav-link.active::after { background: #2563eb; }
.gps-unified-nav-link i { font-size: 1rem; }
.gps-role-badge { flex: 0 0 auto; display: inline-flex; align-items: center; gap: .35rem; padding: .38rem .65rem; border: 1px solid #dbeafe; border-radius: 999px; color: #2563eb; background: #eff6ff; font-size: .61rem; font-weight: 800; white-space: nowrap; }

.gps-quickbar { padding: .65rem 1rem; background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; box-shadow: 0 6px 20px rgba(15,23,42,.04); }
.gps-quickbar-scroll { display: flex; align-items: center; gap: .35rem; overflow-x: auto; scrollbar-width: none; }
.gps-quickbar-scroll::-webkit-scrollbar { display: none; }
.gps-quickbar-link { flex: 0 0 auto; display: inline-flex; align-items: center; gap: .45rem; min-height: 40px; padding: .5rem .8rem; border-radius: 10px; color: #64748b !important; font-size: .73rem; font-weight: 700; }
.gps-quickbar-link:hover { color: #1d4ed8 !important; background: #f8fafc; }
.gps-quickbar-link.active { color: #1d4ed8 !important; background: #eff6ff; }
.gps-quickbar-link i { font-size: 1rem; }

@media (min-width: 1200px) {
  .layout-menu-fixed .layout-page { padding-left: 0 !important; width: 100% !important; }
}
@media (max-width: 1199.98px) {
  .gps-sidebar { width: 286px !important; }
  .gps-topbar { min-height: 86px; padding: 1rem 1rem 0; }
  .gps-unified-nav { flex-basis: calc(100% + 2rem); width: calc(100% + 2rem); margin: 0 -1rem; padding: 0 1rem; }
}
@media (max-width: 767.98px) {
  .gps-topbar { min-height: 74px; padding: .75rem .85rem 0; row-gap: .65rem; }
  .gps-unified-nav { flex-basis: calc(100% + 1.7rem); width: calc(100% + 1.7rem); margin: 0 -.85rem; padding: 0 .6rem; }
  .gps-unified-nav-link { min-height: 44px; padding: 0 .65rem; }
  .gps-role-badge { display: none; }
  .gps-page-icon { display: none; }
  .gps-navbar-divider, .gps-title-block { display: none; }
  .gps-navbar-brand-copy { display: none; }
  .gps-breadcrumb, .gps-title-block p { display: none; }
  .gps-title-block h1 { margin: 0; font-size: 1.05rem; }
  .gps-profile-button { padding: .1rem; }
}
