/* ===============================
   Base & resets
   =============================== */
* { box-sizing: border-box; }
html, body { height: 100%; }
img { max-width: 100%; height: auto; display: block; }
:root { --gap: 1rem; }

/* Typo utilitaires */
.clamp-title { font-size: clamp(1rem, 2.5vw, 1.25rem); margin: 0; }
.clamp-sub { font-size: clamp(.75rem, 2vw, .95rem); margin: 0; }

/* Header */
.logo { width: clamp(48px, 8vw, 92px); height: auto; }
.menu-dots { width: 20px; height: auto; }
.avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.inner-header { display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; }
.inner-menu { display:flex; flex-wrap:wrap; gap:16px; list-style:none; margin:0; padding:0 }
.profile { gap: 8px; }

/* Greeting */
.greetHeader { padding: clamp(12px, 2.5vw, 30px) clamp(12px, 4vw, 60px); }
.hello h2 { font-size: clamp(28px, 6vw, 74px); }
.hello span { font-size: clamp(24px, 5.5vw, 66px); line-height: 1.05; }
.hello-emoji { width: clamp(28px, 5vw, 40px); height: auto; }

/* KPI cards */
.boxes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 16px; width: 100%; }
.invoiceBox { border-radius: 1rem; padding: 1rem; display: grid; grid-template-columns: 1fr auto; align-items: center; position: relative; }
.price { font-size: clamp(1.25rem, 3.5vw, 2rem); font-weight: 700; }
.kpi-meta { display:flex; align-items:center; gap:.5rem; }
.icon { width: 36px; height: auto; position: absolute; right: 1rem; top: .5rem; }
.kpi-arrow { width: 18px; height: auto; }
.soft { background: #f8f9fa; }
.accent { background: #eef8ff; }
.accent-2 { background: #f7f6ff; }

/* Panels & map */
.panel { border-radius: 1rem; padding: 1rem; position: relative; }
.panel .panel-title { font-weight: 700; }
.map { width: 100%; min-height: 300px; background-size: cover; background-position: center; }
.menu-icon { width: 20px; height: auto; }

/* Date picker */
.date-picker-container { position: relative; width: 100%; }
.date-input { border: 1px solid rgba(0,0,0,.12); padding: .5rem .75rem; border-radius: .75rem; display:flex; align-items:center; justify-content:space-between; cursor:pointer; width: 100%; }
.date-picker { position: absolute; top: calc(100% + 8px); right: 0; z-index: 1050; background: #fff; border: 1px solid rgba(0,0,0,.12); border-radius: 1rem; padding: 1rem; display: none; gap: 1rem; width: min(92vw, 760px); box-shadow: 0 10px 30px rgba(0,0,0,.08); max-height: 70vh; overflow: auto; }
.sidebar { flex: 0 0 200px; }
.calendar-container { flex: 1 1 auto; min-width: 0; }

/* Stats */ 
.statecontent { min-height: 120px; }

/* Trips */
.trip-card { border: 1px solid rgba(0,0,0,.08); border-radius: 1rem; padding: 1rem; gap: 10px; flex-wrap: wrap; }
.trip-card .status { display:flex; justify-content: space-between; align-items:center; gap:.5rem; width: 100%; }
.trip-card .location { min-width: 120px; }
.dot { display:inline-block; width:.5rem; height:.5rem; border-radius:50%; background: #dc3545; margin-right:.5rem; }

/* Responsive breakpoints */
.aftermap { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .aftermap { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1200px) { .aftermap { grid-template-columns: 2fr 1fr 1fr; } }
@media (max-width: 575.98px) { .inner-menu li { min-width: 46%; text-align: center; } .sidebar { flex-basis: 180px; } }
