/* Green Service Express 3.1 — design system, responsive dashboard et formulaires.
   Complément non destructif à styles.css, sans dépendance distante. */
:root {
  --forest: #102b26;
  --forest-2: #173c34;
  --green: #169d69;
  --green-dark: #0c7953;
  --green-soft: #e9f8f0;
  --ink: #192c2a;
  --muted: #758780;
  --line: #e6ece9;
  --bg: #f6f8f8;
  --white: #fff;
  --shadow: 0 4px 18px rgba(14, 42, 32, .045);
  --radius: 17px;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-synthesis: none; background: var(--bg); }
body { color: var(--ink); background: var(--bg); line-height: 1.48; }
button, input, textarea, select { font: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid #35b483; outline-offset: 3px;
}
.ui-icon { width: 19px; height: 19px; display: inline-block; vertical-align: middle; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.pro-shell { min-height: 100vh; display: grid; grid-template-columns: 258px minmax(0, 1fr); }
.shell-sidebar { background: var(--forest); height: 100dvh; min-height: 620px; position: sticky; top: 0; color: #dae9e2; display: flex; flex-direction: column; padding: 0 14px 15px; z-index: 51; overflow: auto; scrollbar-width: thin; scrollbar-color: #34584a transparent; }
.sidebar-brand-line { height: 91px; padding: 0 12px; display: flex; align-items: center; border-bottom: 1px solid rgba(255,255,255,.075); margin-bottom: 23px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark { width: 41px; height: 41px; background: #21b77a; border-radius: 13px; color: #fff; font-weight: 850; font-size: 25px; letter-spacing: -.09em; display: grid; place-items: center; position: relative; flex: 0 0 auto; padding-right: 2px; box-shadow: 0 5px 14px rgba(4,29,19,.12); }
.brand-spot { width: 6px; height: 6px; background: #d0f6a9; border-radius: 50%; position: absolute; top: 8px; right: 7px; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.06; min-width: 0; }
.brand-copy strong { color: #fff; font-size: 17px; font-weight: 800; letter-spacing: -.65px; white-space: nowrap; }
.brand-copy small { font-size: 8px; color: #83cbb0; margin-top: 6px; letter-spacing: 1.65px; font-weight: 800; white-space: nowrap; }
.sidebar-nav { display: flex; flex-direction: column; gap: 3px; }
.nav-group-title { color: #789d90; padding: 9px 13px 11px; font-size: 10px; font-weight: 850; letter-spacing: 1.55px; }
.nav-group-spacer { margin-top: 17px; }
.nav-link { color: #bbd1c6; display: flex; align-items: center; gap: 13px; border-radius: 10px; padding: 12px 12px; min-height: 43px; font-weight: 600; font-size: 13px; transition: background .17s, color .17s; }
.nav-link .ui-icon { color: #87ad9d; width: 19px; height: 19px; }
.nav-link span { flex: 1; }
.nav-link:hover { background: rgba(255,255,255,.085); color: #fff; }
.nav-link.active { background: #244b3d; color: #fff; box-shadow: inset 3px 0 0 #48d497; }
.nav-link.active .ui-icon { color: #77e9b8; }
.nav-link .nav-trailing { width: 14px; height: 14px; }
.nav-unread { background: #44b886; color: #fff; font-size: 10px; padding: 1px 7px; border-radius: 30px; }
.sidebar-bottom { margin-top: auto; padding: 28px 4px 0; }
.sidebar-support { background: rgba(255,255,255,.065); border: 1px solid rgba(255,255,255,.075); border-radius: 12px; display: flex; gap: 9px; align-items: center; padding: 13px 11px; margin: 0 4px 14px; }
.sidebar-support .ui-icon { color: #79dfad; width: 18px; }
.sidebar-support span { display: flex; flex-direction: column; gap: 2px; }
.sidebar-support b { color: #f0fff6; font-size: 11px; font-weight: 800; }
.sidebar-support small { color: #8eb6a4; font-size: 10px; }
.nav-logout { width: 100%; display: flex; align-items: center; gap: 12px; border: none; border-radius: 9px; background: transparent; color: #bbd1c6; font-size: 13px; font-weight: 650; padding: 12px; text-align: left; cursor: pointer; }
.nav-logout:hover { background: rgba(255,255,255,.085); color: #fff; }
.shell-workspace { min-width: 0; min-height: 100vh; display: flex; flex-direction: column; }
.shell-topbar { position: sticky; top: 0; z-index: 35; height: 81px; flex: 0 0 81px; padding: 0 clamp(22px, 3vw, 48px); background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 22px; backdrop-filter: blur(16px); }
.topbar-start, .topbar-right { display: flex; align-items: center; gap: 15px; min-width: 0; }
.topbar-page { display: flex; flex-direction: column; gap: 3px; }
.topbar-page span { letter-spacing: 1.32px; font-size: 9px; font-weight: 850; color: #97a6a0; }
.topbar-page strong { font-size: 14px; letter-spacing: -.1px; }
.topbar-right { gap: 21px; }
.topbar-search { width: clamp(190px,20vw,330px); height: 40px; border: 1px solid #e6ebe8; background: #f7f9f8; border-radius: 10px; display: flex; align-items: center; padding: 0 12px; gap: 8px; }
.topbar-search .ui-icon { width: 17px; color: #8b9d96; }
.topbar-search input { background: transparent; border: 0; padding: 0; min-width: 0; flex: 1; font-size: 12px; height: 100%; box-shadow: none !important; }
.topbar-search input:focus { outline: none; }
.topbar-search:focus-within { border-color: #55c69c; box-shadow: 0 0 0 3px rgba(22,157,105,.09); }
.topbar-search kbd { border: 1px solid #e1e8e3; border-radius: 5px; color: #85968e; background: #fff; padding: 0 5px; font-size: 11px; }
.icon-btn { background: none; color: #536b60; border: 0; width: 40px; height: 40px; border-radius: 11px; display: inline-grid; place-items: center; cursor: pointer; flex: 0 0 auto; }
.icon-btn:hover { background: #edf4ef; color: var(--green-dark); }
.topbar-alert { position: relative; background: #f5f8f6; border: 1px solid #edf0ec; }
.unread-dot { width: 8px; height: 8px; border: 2px solid #fff; border-radius: 50%; background: #f59e43; position: absolute; right: 9px; top: 7px; }
.topbar-user { display: flex; align-items: center; gap: 10px; border-left: 1px solid #e8edeb; padding-left: 22px; }
.user-avatar { height: 37px; width: 37px; background: linear-gradient(135deg,#dbf8e8,#bcefd6); color: #167b52; border: 1px solid #b5e3ce; border-radius: 11px; display: grid; place-items: center; font-size: 12px; font-weight: 900; }
.user-details { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.user-details strong { font-size: 12px; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; max-width: 180px; }
.user-details small { font-size: 11px; color: #8b9a93; }
.sidebar-toggle, .sidebar-close, .sidebar-backdrop { display: none; }
.content { padding: 35px clamp(22px, 3vw, 48px) 0; width: 100%; max-width: 1680px; margin: 0 auto; min-width: 0; flex: 1; }
.app-footer { padding: 33px 0 25px; display: flex; gap: 15px; justify-content: space-between; color: #9ba9a3; font-size: 11px; }
.page-head { margin-bottom: 26px; align-items: center; }
.page-head .eyebrow { display: block; color: #16875e; font-size: 10px; letter-spacing: 1.5px; margin-bottom: 7px; }
.page-head h1 { margin: 0 0 7px; font-size: clamp(25px,2.2vw,34px); line-height: 1.17; letter-spacing: -1.25px; font-weight: 800; }
.page-head p { color: #819089; font-size: 13px; max-width: 610px; line-height: 1.6; }
.btn { min-height: 39px; border-radius: 9px; gap: 8px; letter-spacing: -.1px; box-shadow: none; font-size: 12px; font-weight: 750; white-space: nowrap; }
.btn .ui-icon { width: 16px; height: 16px; }
.btn-primary { color: #fff; background: #169765; border: 1px solid #169765; box-shadow: 0 3px 8px #199b6520; }
.btn-primary:hover { color: #fff; background: #08764c; border-color: #08764c; }
.btn-secondary { background: #fff; border-color: #e4eae6; color: #334a40; }
.btn-secondary:hover { background: #f5f9f6; border-color: #bddec9; }
.btn-ghost { border-color: #e1e9e4; background: #f8faf9; }
.btn-lg { min-height: 47px; padding: 13px 20px; }
.panel { border-radius: 15px; border-color: #e7ece9; box-shadow: 0 3px 17px rgba(22,46,31,.035); padding: 23px; margin-bottom: 20px; }
.panel h2 { font-size: 17px; font-weight: 790; letter-spacing: -.45px; }
.panel h3 { color: #213b32; }
.panel-head { margin-bottom: 19px; }
.panel-head p { color: #92a099; }
.panel-eyebrow { display: block; color: #15915e; font-size: 9px; font-weight: 850; letter-spacing: 1.25px; margin-bottom: 7px; }
.text-link { display: inline-flex; gap: 4px; align-items: center; color: #168c5d; font-size: 12px; }
.text-link .ui-icon { width: 14px; height: 14px; }
.text-link:hover, .reference-link:hover { text-decoration: underline; }
.dashboard-hero { position: relative; isolation: isolate; min-height: 245px; border-radius: 18px; background: linear-gradient(105deg,#143b30 0%,#0b2924 62%,#123c32 100%); padding: 36px 39px; margin-bottom: 22px; overflow: hidden; display: flex; align-items: center; color: white; }
.dashboard-hero:before { content: ''; position: absolute; width: 400px; height: 400px; border-radius: 50%; background: #25a970; opacity: .14; filter: blur(45px); top: -260px; right: -90px; }
.hero-content { position: relative; z-index: 2; width: 57%; }
.hero-kicker { display: inline-flex; align-items: center; gap: 9px; font-size: 9px; letter-spacing: 1.6px; font-weight: 850; color: #85d9ae; }
.hero-kicker i { display: inline-block; width: 6px; height: 6px; background: #68dfa1; border-radius: 50%; box-shadow: 0 0 0 4px #ffffff0a; }
.dashboard-hero h2 { font-size: clamp(25px,2.3vw,35px); line-height: 1.15; letter-spacing: -1px; margin: 11px 0 11px; font-weight: 800; }
.dashboard-hero h2 em { font-style: normal; color: #64d9a1; }
.dashboard-hero p { font-size: 12px; color: #b2d1c3; max-width: 425px; line-height: 1.8; margin-bottom: 18px; }
.hero-action { display: inline-flex; gap: 12px; align-items: center; color: #10472f; background: #e6ffeb; font-size: 11px; font-weight: 850; padding: 10px 12px; border-radius: 8px; }
.hero-action:hover { background: white; }
.hero-action .ui-icon { width: 15px; height: 15px; }
.hero-art { position: absolute; right: 11px; top: 0; height: 100%; width: 47%; opacity: .98; pointer-events: none; }
.hero-art-grid { position: absolute; inset: 0; background-image: linear-gradient(#ffffff09 1px,transparent 1px),linear-gradient(90deg,#ffffff09 1px,transparent 1px); background-size: 30px 30px; mask-image: linear-gradient(90deg,transparent,#000 26%); }
.hero-route { position: absolute; right: 1%; top: 6%; width: 100%; height: 83%; overflow: visible; }
.hero-ghost { fill: none; stroke: #56a887; stroke-width: 11; opacity: .11; }
.hero-path { fill: none; stroke: #62df9f; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 7 7; }
.hero-point { fill: #1b6748; stroke: #8bf3b3; stroke-width: 2.5; }
.hero-centre { fill: #b5ffcb; }
.hero-art-ticket { background: rgba(246,255,249,.97); color: #172d24; position: absolute; right: 5%; bottom: 17px; display: flex; gap: 10px; align-items: center; padding: 11px 13px; border-radius: 12px; box-shadow: 0 9px 20px #071b1655; transform: rotate(-3deg); }
.ticket-icon { background: #dcf8e7; color: #168b57; border-radius: 9px; width: 34px; height: 34px; display: grid; place-items: center; }
.hero-art-ticket>span:nth-child(2) { display: flex; flex-direction: column; }
.hero-art-ticket b { font-size: 11px; }
.hero-art-ticket small { color: #82918a; font-size: 9px; margin-top: 3px; }
.ticket-check { color: #169b64; margin-left: 8px; }
.kpi-grid { gap: 13px; margin-bottom: 22px; }
.kpi-grid-6 { grid-template-columns: repeat(6,minmax(0,1fr)); }
.kpi { position: relative; min-height: 153px; background: white; border: 1px solid #e7ece8; border-radius: 14px; box-shadow: var(--shadow); padding: 19px 17px 16px; display: flex; flex-direction: column; gap: 0; transition: transform .16s, box-shadow .16s; min-width: 0; }
.kpi[href]:hover { transform: translateY(-3px); box-shadow: 0 10px 28px #1a463413; }
.kpi-icon { width: 34px; height: 34px; margin-bottom: 13px; border-radius: 10px; display: grid; place-items: center; }
.kpi-icon .ui-icon { width: 18px; height: 18px; }
.kpi-label { color: #687a71; font-size: 11px; letter-spacing: 0; font-weight: 650; text-transform: none; white-space: normal; line-height: 1.35; min-height: 18px; }
.kpi strong { font-size: 30px; margin: 6px 0 1px; line-height: 1.05; color: #1b3028; font-weight: 800; letter-spacing: -1px; }
.kpi .kpi-money { font-size: clamp(18px,1.5vw,25px); white-space: nowrap; letter-spacing: -.7px; }
.kpi small { color: #a1aca6; font-size: 10px; margin-top: auto; padding-top: 8px; }
.kpi-orange .kpi-icon { background: #fff5e9; color: #e4962a; }
.kpi-blue .kpi-icon { background: #ebf5ff; color: #3681d3; }
.kpi-purple .kpi-icon { background: #f4edff; color: #8e68cf; }
.kpi-green .kpi-icon { background: #e6f8ed; color: #1aa36b; }
.kpi-slate .kpi-icon { background: #f0f2f5; color: #75879d; }
.kpi-teal .kpi-icon { background: #e8f8f5; color: #209b94; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.74fr) minmax(290px, .8fr); gap: 20px; align-items: start; }
.dashboard-recent, .dashboard-aside .panel { margin-bottom: 19px; }
.dashboard-aside { min-width: 0; }
.table-wrap { width: 100%; overflow-x: auto; border-radius: 0; }
.table-panel { padding: 0; overflow: hidden; }
.table-panel .table-wrap { border-top: 1px solid #f0f2f0; }
.toolbar-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 24px 20px; }
.toolbar-head h2 { margin: 0; font-size: 18px; }
.toolbar-head p { margin: 7px 0 0; color: #91a098; font-size: 12px; }
.count-pill { display: inline-grid; place-items: center; background: #e8f7ef; color: #16754c; font-size: 11px; padding: 3px 8px; border-radius: 20px; vertical-align: middle; margin-left: 5px; }
.operations-table { border-collapse: collapse; min-width: 720px; font-size: 12px; }
.operations-table th { background: #fbfcfb; color: #87978e; font-size: 9px; font-weight: 820; text-transform: uppercase; letter-spacing: 1px; padding: 14px 15px; white-space: nowrap; }
.operations-table td { padding: 16px 15px; border-bottom: 1px solid #f0f3f0; font-size: 12px; line-height: 1.35; }
.operations-table tr:last-child td { border-bottom: 0; }
.operations-table tbody tr:hover { background: #fbfefc; }
.operations-table td strong { color: #324a3d; font-weight: 720; }
.operations-table td small { margin-top: 5px; font-size: 11px; color: #8fa198; }
.reference-link { font-weight: 830; color: #188455; white-space: nowrap; font-size: 12px; }
.truncate-travel { max-width: 250px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-open { background: #f5f9f6; color: #637f6c; width: 30px; height: 30px; display: inline-grid; place-items: center; border: 1px solid #edf1ed; border-radius: 8px; }
.row-open:hover { background: #e2f6eb; color: #0e8052; }
.row-open .ui-icon { width: 16px; height: 16px; }
.cell-date { font-weight: 700; }
.status { border-radius: 7px; padding: 5px 9px; gap: 7px; font-weight: 780; font-size: 10px; border: 1px solid transparent; }
.status:before { content: ''; width: 5px; height: 5px; background: currentColor; border-radius: 100%; display: inline-block; flex-shrink: 0; }
.status-warning { background: #fff7e8; color: #aa7119; border-color: #ffedd1; }
.status-info { background: #edf5ff; color: #3773b6; border-color: #deecfc; }
.status-primary { background: #f1eeff; color: #7959bb; border-color: #ebe3ff; }
.status-success { background: #e9f8ef; color: #17804b; border-color: #d9f0e1; }
.status-danger { background: #fff0f0; color: #b44d47; border-color: #fce0df; }
.status-muted { background: #f2f5f3; color: #798980; border-color: #e8eeeb; }
.panel-head .text-link { white-space: nowrap; }
.dashboard-activity .panel-head { margin-bottom: 24px; }
.live-indicator { width: 9px; height: 9px; background: #46be7d; border-radius: 50%; box-shadow: 0 0 0 4px #e4f8eb; flex: none; }
.activity-timeline { display: flex; flex-direction: column; }
.activity-row { display: grid; grid-template-columns: 24px minmax(0,1fr); gap: 9px; padding-bottom: 22px; position: relative; }
.activity-row:last-child { padding-bottom: 0; }
.activity-row:before { content: ''; position: absolute; top: 13px; left: 8px; bottom: 0; width: 1px; background: #e0e9e3; }
.activity-row:last-child:before { display: none; }
.activity-rail { width: 17px; height: 17px; border: 4px solid #ddf7e7; background: #35b974; border-radius: 50%; z-index: 1; margin-top: 2px; }
.activity-rail.status-dot-warning { border-color: #fff3d9; background: #e6a747; }
.activity-rail.status-dot-info { border-color: #e5efff; background: #6897e0; }
.activity-rail.status-dot-danger { border-color: #ffe4e4; background: #de6d66; }
.activity-row strong { font-size: 12px; color: #293f33; }
.activity-row p { margin: 4px 0 3px; color: #788a7f; font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
.activity-row small { color: #a0afa5; font-size: 10px; }
.activity-empty { color: #91a29a; text-align: center; padding: 27px 8px; }
.activity-empty .ui-icon { height: 26px; width: 26px; }
.activity-empty p { font-size: 12px; }
.quick-actions .panel-head { margin-bottom: 8px; }
.quick-action-row { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid #edf1ee; }
.quick-action-row:last-child { border-bottom: 0; padding-bottom: 0; }
.quick-action-row:hover strong { color: var(--green-dark); }
.quick-action-row>span:nth-child(2) { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.quick-action-row strong { font-size: 11px; color: #395146; }
.quick-action-row small { color: #a0aba4; font-size: 10px; margin-top: 3px; }
.quick-action-row>.ui-icon { width: 15px; color: #95a69a; }
.quick-action-icon { width: 35px; height: 35px; border-radius: 9px; display: grid; place-items: center; flex: 0 0 auto; }
.quick-action-icon .ui-icon { width: 18px; }
.qa-one { background: #e6f6ef; color: #2f9c6a; }
.qa-two { background: #edf5ff; color: #4b85cb; }
.qa-three { background: #f2edff; color: #9571cc; }
.empty-state { padding: 40px 15px; }
.empty-state .empty-icon { width: 62px; height: 62px; border-radius: 17px; background: #eaf8f0; color: #2e986b; display: grid; place-items: center; margin: 0 auto 12px; }
.empty-state .empty-icon .ui-icon { width: 26px; height: 26px; }
.empty-state h3 { font-size: 16px; letter-spacing: -.2px; margin: 4px 0; }
.empty-state p { font-size: 12px; margin: 3px 0 18px; }
.table-panel .empty-state { padding: 65px 20px; }
.filter-bar { margin: 0; border-top: 1px solid #f0f3ef; padding: 15px 23px; gap: 7px; }
.chip { border-radius: 7px; background: #f8faf8; border: 1px solid #e9efeb; font-size: 11px; padding: 7px 11px; }
.chip:hover { background: #eaf5ee; }
.chip.active { background: #174d36; color: #fff; border-color: #174d36; }
.table-search-form, .local-search { display: flex; align-items: center; background: #f8faf9; border: 1px solid #e5ece8; border-radius: 9px; min-width: 210px; height: 39px; gap: 7px; padding: 0 6px 0 11px; }
.table-search-form .ui-icon, .local-search .ui-icon { width: 16px; color: #8c9e94; }
.table-search-form input, .local-search input { height: 100%; background: transparent; border: 0; box-shadow: none !important; outline: none; font-size: 11px; padding: 0; flex: 1; min-width: 0; }
.table-search-form button { border: 0; border-radius: 7px; background: #e5f4eb; color: #147650; font-size: 10px; padding: 8px 9px; cursor: pointer; font-weight: 780; }
.local-search { min-width: 235px; }
.table-footnote { color: #9eaca4; text-align: right; font-size: 10px; padding: 13px 24px; border-top: 1px solid #f0f3ef; }
.local-empty { padding: 35px; font-size: 12px; text-align: center; color: #81948a; }
/* All CRUD, detail and pricing views inherit the same visual language. */
.panel:not(.table-panel) form .btn[type='submit'] { margin-top: 12px; }
.panel .form-grid { margin: 10px 0 4px; }
.form-grid { gap: 16px; }
.form-section { grid-template-columns: 37px 1fr; gap: 19px; }
.form-section .section-number { width: 35px; height: 35px; background: #e5f6ed; font-size: 13px; border-radius: 9px; }
.form-section .section-body>h2 { font-size: 18px; margin: 6px 0 18px; }
label { color: #52675c; font-weight: 700; font-size: 11px; }
input, select, textarea { background: #fbfcfb; border-color: #dce6df; color: #244031; border-radius: 9px; padding: 11px 12px; font-size: 13px; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: #a3b0a6; }
input:focus, select:focus, textarea:focus { background: #fff; border-color: #36b981; box-shadow: 0 0 0 3px #37bb8121; }
.panel .form-grid label { gap: 8px; }
.form-tag { font-size: 9px; font-weight: 850; letter-spacing: 1px; padding: 7px 9px; border-radius: 5px; color: #398a61; background: #eaf8f0; }
.client-card { border-top: 2px solid #169d69; }
.client-card .panel-head>div h2 { font-size: 17px; }
.client-card .panel-head>div p { overflow-wrap: anywhere; }
.mini-list>div { gap: 13px; }
.mini-list small { overflow-wrap: anywhere; }
.details, .note-box { border-radius: 10px; }
.detail-grid { gap: 19px; }
.detail-list>div { grid-template-columns: minmax(115px, 34%) minmax(0, 1fr); }
.detail-list dd { overflow-wrap: anywhere; }
.address-block strong { color: #263d32; }
.route-line { border-color: #8fd4aa; }
.timeline-item>span { background: #25a76a; box-shadow: 0 0 0 4px #eaf6ee; width: 11px; height: 11px; }
.driver-card-list .driver-course-card { box-shadow: var(--shadow); }
.quote-panel { border: 1px solid #dceee2; background: linear-gradient(115deg,#fff,#f8fcf9); }
.service-status-grid { gap: 16px; }
.service-card { border-color: var(--line); box-shadow: var(--shadow); border-top: 3px solid #2bb176; }
.alert { border-radius: 10px; font-weight: 660; }
.notification-item.is-unread { background: #f0faf4; }
.notification-item strong { font-size: 13px; }
/* Client hero and its real database-backed KPIs. */
.client-hero { display: grid; grid-template-columns: minmax(0,1fr) 220px; align-items: center; overflow: hidden; border-radius: 17px; background: linear-gradient(110deg,#173a30,#0d2d28); padding: 26px 33px; margin-bottom: 22px; min-height: 202px; color: white; position: relative; }
.client-hero-tag { color: #87dcae; font-size: 10px; font-weight: 850; letter-spacing: 1.4px; }
.client-hero h2 { font-size: clamp(22px,2vw,30px); letter-spacing: -.75px; line-height: 1.22; margin: 10px 0; }
.client-hero p { font-size: 12px; color: #b7d7c8; line-height: 1.65; margin: 0 0 14px; max-width: 460px; }
.client-hero-art { height: 170px; position: relative; display: grid; place-items: center; }
.client-hero-art>.ui-icon { z-index: 2; position: absolute; width: 49px; height: 49px; padding: 10px; border: 1px solid #72d9a569; border-radius: 13px; background: #f4fff1; color: #1b8350; box-shadow: 0 7px 17px #0f211c40; }
.client-hero-art>.ui-icon:first-child { left: 5%; top: 12%; }
.client-hero-art>.ui-icon:last-child { right: 7%; bottom: 12%; }
.client-hero-art span { width: 145px; height: 85px; border: 2px dashed #62dca0; border-radius: 100%; transform: rotate(-24deg); }
.client-kpis { grid-template-columns: repeat(4,minmax(0,1fr)); }
.client-kpis .kpi { min-height: 145px; }
.course-wizard { margin: 0 0 23px; background: white; border: 1px solid #e4ece7; border-radius: 14px; padding: 17px 22px; box-shadow: var(--shadow); scroll-margin-top: 92px; }
.wizard-steps { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; padding: 0; margin: 0; list-style: none; }
.wizard-steps li { display: flex; align-items: center; gap: 9px; color: #97a9a0; min-width: 0; }
.wizard-steps li span { height: 30px; width: 30px; background: #f0f4f1; border: 1px solid #e6eee9; border-radius: 9px; display: grid; place-items: center; font-size: 10px; font-weight: 850; flex: 0 0 auto; }
.wizard-steps li b { font-size: 11px; font-weight: 750; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wizard-steps li.is-current { color: #0d8b58; }
.wizard-steps li.is-current span, .wizard-steps li.is-done span { background: #1aa270; color: #fff; border-color: #1aa270; }
.wizard-steps li.is-done { color: #499b71; }
.wizard-panel { animation: gs-fade .2s ease-out; }
.wizard-actions { margin-top: 3px; }
.wizard-actions .wizard-cancel { margin-right: auto; }
@keyframes gs-fade { from { opacity: .4; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
/* Login: editorial panel + illustrated transport route, purely local assets. */
.gs-public { background: #fff; }
.gs-public .public-content { display: block; padding: 0; min-height: 100dvh; }
.gs-public .public-content>.alert { position: fixed; top: 14px; right: 14px; max-width: 400px; z-index: 80; box-shadow: 0 12px 35px #071a1224; }
.login-split { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(360px,.9fr); min-height: 100dvh; }
.login-story { background: radial-gradient(circle at 100% 15%,#1c644b 0%,transparent 44%),linear-gradient(140deg,#10352b,#0b2824); padding: 36px clamp(28px,5vw,82px) 29px; color: #fff; display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.login-story .brand-copy strong { font-size: 20px; }
.login-story .brand-copy small { font-size: 9px; }
.login-story-main { margin: auto 0 25px; max-width: 620px; padding-top: 50px; }
.story-tag { letter-spacing: 1.5px; font-size: 10px; font-weight: 850; color: #8bd9ae; }
.login-story h1 { font-size: clamp(33px, 3.3vw, 51px); letter-spacing: -2px; line-height: 1.12; margin: 14px 0 17px; font-weight: 820; }
.login-story h1 em { font-style: normal; color: #75e9a6; }
.login-story-main>p { max-width: 485px; font-size: 14px; line-height: 1.8; color: #b8d2c6; margin-bottom: 22px; }
.story-highlights { display: flex; flex-wrap: wrap; gap: 13px 23px; }
.story-highlights span { display: inline-flex; align-items: center; gap: 8px; color: #d7e9dd; font-size: 11px; }
.story-highlights .ui-icon { color: #7de0a3; width: 17px; height: 17px; }
.route-art { flex: 0 0 265px; width: 100%; border: 1px solid #ffffff22; background: linear-gradient(135deg,#ffffff12,#ffffff05); border-radius: 17px; overflow: hidden; box-shadow: 0 15px 37px #09211d40; backdrop-filter: blur(4px); }
.route-art-head { height: 35px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; background: #ffffff0a; font-size: 9px; color: #b6e5cc; letter-spacing: 1.2px; font-weight: 750; border-bottom: 1px solid #ffffff14; }
.route-art-dots { color: #a2d9bd; font-size: 7px; letter-spacing: 4px; }
.route-art-body { height: 230px; position: relative; overflow: hidden; background-image: linear-gradient(#ffffff05 1px, transparent 1px),linear-gradient(90deg,#ffffff05 1px,transparent 1px); background-size: 26px 26px; }
.route-art-body svg { width: 100%; height: 100%; position: absolute; inset: 0; overflow: visible; }
.route-ghost { fill: none; stroke: #67f5a6; stroke-width: 13; opacity: .09; }
.route-main { fill: none; stroke: #61daa0; stroke-width: 3.5; stroke-dasharray: 8 8; stroke-linecap: round; }
.map-orbit { position: absolute; border: 1px solid #b4edbf1a; width: 270px; height: 270px; border-radius: 50%; }
.orbit-one { left: 32%; top: -45%; }
.orbit-two { left: -20%; top: 18%; }
.map-scenic { position: absolute; width: 220px; height: 36px; transform: rotate(-35deg); border-radius: 60px; border: 1px solid #ffffff0b; }
.path-a { top: 34px; left: 20%; }.path-b { bottom: 20px; right: 0; }
.route-pin { width: 20px; height: 20px; display: grid; place-items: center; position: absolute; z-index: 3; border: 2px solid #e0ffe6; background: #2dcf7d; border-radius: 50%; box-shadow: 0 0 0 7px #a2ffb922; }
.route-pin span { width: 6px; height: 6px; border-radius: 50%; background: white; }
.route-pin.start { left: 14%; bottom: 25%; }.route-pin.finish { right: 12%; top: 25%; }
.route-bubble { position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 12px; background: #f7fffaf0; color: #184d31; border-radius: 8px; padding: 8px 9px; font-size: 10px; font-weight: 750; box-shadow: 0 4px 16px #06231c44; }
.route-bubble b { font-size: 9px; color: #1eab70; }.pickup-bubble { left: 13%; bottom: 9%; }.drop-bubble { right: 8%; top: 9%; }
.story-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 31px; color: #8fb6a4; font-size: 10px; }
.story-footer span:first-child { letter-spacing: 1.2px; font-weight: 830; color: #a8ddbe; }
.login-entry { display: flex; align-items: center; justify-content: center; background: #fff; padding: 40px clamp(28px,5vw,85px); }
.login-entry-inner { width: 100%; max-width: 405px; }
.mobile-login-brand { display: none; }
.login-welcome .eyebrow { font-size: 10px; color: #169c68; }
.login-welcome h2 { font-weight: 850; font-size: clamp(28px,2.5vw,39px); line-height: 1.14; letter-spacing: -1.45px; margin: 14px 0 14px; }
.login-welcome p { font-size: 13px; line-height: 1.75; color: #899891; margin-bottom: 29px; }
.login-form { gap: 19px; }
.login-form label { font-size: 12px; gap: 9px; }
.login-form input { height: 51px; font-size: 13px; background: #fbfcfb; }
.login-submit { margin-top: 4px; height: 51px; width: 100%; justify-content: space-between; padding: 0 20px; font-size: 13px; }
.login-separator { display: flex; align-items: center; gap: 15px; margin: 26px 0 15px; color: #94a39a; font-size: 11px; }
.login-separator:before, .login-separator:after { content: ''; flex: 1; height: 1px; background: #eaf0eb; }
.login-driver-link { display: flex; align-items: center; gap: 12px; border: 1px solid #e9eee9; border-radius: 11px; padding: 12px; transition: border-color .2s; }
.login-driver-link:hover { border-color: #80caa5; background: #fbfefb; }
.login-driver-icon { width: 37px; height: 37px; border-radius: 10px; background: #eaf8ef; color: #178b5c; display: grid; place-items: center; }
.login-driver-link>span:nth-child(2) { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.login-driver-link strong { font-size: 12px; }
.login-driver-link small { font-size: 11px; color: #91a198; }
.login-driver-link>.ui-icon { width: 15px; color: #779488; }
.login-security { margin-top: 34px; padding: 14px 15px; border-radius: 10px; background: #f5f8f6; display: flex; gap: 10px; align-items: flex-start; }
.login-security .ui-icon { color: #26a46d; width: 18px; margin-top: 1px; }
.login-security span { color: #708177; font-size: 11px; line-height: 1.6; }
/* Responsive widths and accessible mobile sidebar. */
@media (max-width: 1460px) {
  .kpi-grid-6 { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .dashboard-grid { grid-template-columns: minmax(0,1.45fr) minmax(270px,.8fr); }
}
@media (max-width: 1150px) {
  .pro-shell { grid-template-columns: 222px minmax(0,1fr); }
  .shell-sidebar { padding-left: 10px; padding-right: 10px; }
  .sidebar-brand-line { padding: 0 7px; }
  .nav-link { gap: 9px; padding: 11px; font-size: 12px; }
  .topbar-search { width: 210px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .dashboard-aside { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
  .dashboard-aside .panel { margin-bottom: 0; }
  .client-kpis { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 980px) {
  .pro-shell { display: block; }
  .shell-sidebar { position: fixed; top: 0; bottom: 0; left: 0; height: 100dvh; width: min(300px,86vw); transform: translateX(-104%); transition: transform .2s ease; z-index: 55; }
  .sidebar-is-open .shell-sidebar { transform: translateX(0); }
  .sidebar-backdrop { position: fixed; inset: 0; background: #061b17ad; border: none; z-index: 54; }
  .sidebar-is-open .sidebar-backdrop { display: block; }
  .sidebar-toggle, .sidebar-close { display: inline-grid; }
  .sidebar-close { margin-left: auto; color: #a5c4b5; width: 32px; }
  .sidebar-close:hover { background: #ffffff18; color: white; }
  .shell-topbar { height: 72px; flex-basis: 72px; padding: 0 24px; }
  .content { padding: 28px 24px 0; }
  .app-footer { padding-top: 24px; }
  .login-split { grid-template-columns: minmax(0,.95fr) minmax(320px,1.05fr); }
  .route-art { flex-basis: 210px; }
  .route-art-body { height: 175px; }
  .story-highlights { gap: 9px; }
}
@media (max-width: 740px) {
  .shell-topbar { padding: 0 16px; height: 66px; flex-basis: 66px; gap: 10px; }
  .topbar-page span { font-size: 8px; }
  .topbar-page strong { font-size: 12px; }
  .topbar-search, .user-details { display: none; }
  .topbar-right { gap: 10px; }
  .topbar-user { padding-left: 0; border: none; }
  .topbar-alert { width: 36px; height: 36px; }
  .user-avatar { height: 34px; width: 34px; }
  .content { padding: 24px 15px 0; }
  .page-head { align-items: flex-start; gap: 15px; margin-bottom: 21px; }
  .page-head .btn { align-self: flex-start; }
  .page-head h1 { font-size: 27px; }
  .dashboard-hero { padding: 26px; min-height: 230px; }
  .hero-content { width: 100%; max-width: 370px; }
  .hero-art { opacity: .18; right: -20%; width: 75%; }
  .hero-art-ticket { display: none; }
  .dashboard-hero p { max-width: 275px; }
  .kpi-grid-6 { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .kpi { min-height: 138px; padding: 15px; }
  .kpi-icon { margin-bottom: 9px; }
  .kpi strong { font-size: 27px; }
  .kpi .kpi-money { font-size: 20px; }
  .dashboard-aside { display: block; }
  .dashboard-aside .panel { margin-bottom: 17px; }
  .dashboard-recent .table-wrap { margin: 0 -2px; }
  .panel { padding: 18px; }
  .toolbar-head { align-items: stretch; flex-direction: column; padding: 21px 18px 16px; }
  .table-search-form, .local-search { width: 100%; }
  .filter-bar { flex-wrap: nowrap; overflow-x: auto; padding: 12px 18px; scrollbar-width: thin; }
  .filter-bar .chip { white-space: nowrap; }
  .table-footnote { padding: 12px 17px; }
  .client-hero { grid-template-columns: 1fr; padding: 24px; }
  .client-hero-art { display: none; }
  .wizard-steps { gap: 6px; }
  .wizard-steps li { justify-content: center; }
  .wizard-steps li b { display: none; }
  .course-wizard { padding: 13px 16px; }
  .form-section { grid-template-columns: 1fr; }
  .form-actions { flex-wrap: wrap; }
  .login-split { display: block; }
  .login-story { min-height: 210px; padding: 25px 25px 27px; }
  .login-story-main { padding: 23px 0 0; margin: 0; }
  .login-story h1 { font-size: 30px; margin: 6px 0 10px; }
  .login-story-main>p { font-size: 12px; margin-bottom: 0; }
  .story-tag, .story-highlights, .route-art, .story-footer { display: none; }
  .login-entry { align-items: start; padding: 28px 22px 52px; }
  .login-entry-inner { max-width: 490px; }
  .login-welcome h2 { font-size: 29px; margin: 7px 0 9px; }
  .login-welcome p { margin-bottom: 22px; }
}
@media (max-width: 390px) {
  .topbar-start { gap: 5px; }.shell-topbar { padding: 0 10px; }
  .user-avatar { display: none; }
  .kpi-grid-6, .client-kpis { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .kpi { padding: 12px; }
  .kpi-label { font-size: 10px; }
  .dashboard-hero { padding: 20px; }
  .dashboard-hero h2 { font-size: 25px; }
  .panel { padding: 15px; }
  .form-actions .btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { .shell-sidebar, .kpi, .nav-link, .wizard-panel { transition: none !important; animation: none !important; } }
/* Keep tabular content from setting the width of a mobile grid track. */
.dashboard-recent, .dashboard-aside, .dashboard-recent .table-wrap, .table-panel, .table-panel .table-wrap { min-width: 0; max-width: 100%; }
@media (max-width: 1150px) { .dashboard-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 740px) {
  .dashboard-recent .operations-table { display: block; min-width: 0; width: 100%; }
  .dashboard-recent .operations-table thead { display: none; }
  .dashboard-recent .operations-table tbody { display: block; }
  .dashboard-recent .operations-table tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; border-bottom: 1px solid #edf2ee; padding: 13px 0; }
  .dashboard-recent .operations-table tbody tr:last-child { border-bottom: 0; }
  .dashboard-recent .operations-table td { border: 0; padding: 3px 10px; display: block; min-width: 0; }
  .dashboard-recent .operations-table td:nth-child(1) { grid-row: 1; grid-column: 1; }
  .dashboard-recent .operations-table td:nth-child(2) { grid-row: 2; grid-column: 1; }
  .dashboard-recent .operations-table td:nth-child(3) { grid-row: 3; grid-column: 1; }
  .dashboard-recent .operations-table td:nth-child(4) { grid-row: 1; grid-column: 2; }
  .dashboard-recent .operations-table td:nth-child(5) { grid-row: 2 / 4; grid-column: 2; display: flex; align-items: center; justify-content: end; }
  .dashboard-recent .operations-table .truncate-travel { max-width: min(210px, 55vw); }
  .dashboard-recent .operations-table .status { max-width: 117px; white-space: normal; text-align: left; }
}

/* Tarification 3 zones - Green Service Express v3.2 */
.tariff-matrix-wrap{overflow-x:auto;margin:1rem 0 1.2rem}
.tariff-matrix{min-width:540px;width:100%;border-collapse:separate;border-spacing:0;border:1px solid var(--line,#dfe8e3);border-radius:14px;overflow:hidden}
.tariff-matrix th,.tariff-matrix td{padding:14px 16px;border-bottom:1px solid #e5ece7;text-align:left}
.tariff-matrix tr:last-child th,.tariff-matrix tr:last-child td{border-bottom:none}
.tariff-matrix thead th{background:#edf5f0;color:#18372c;font-size:.82rem}
.tariff-matrix tbody th{color:#193f31;font-weight:750}
.price-input{display:flex;align-items:center;gap:7px;min-width:126px}
.price-input input{width:95px!important;min-width:76px;text-align:right;font-weight:800;color:#153d2a}
.price-input span{font-size:.76rem;white-space:nowrap;color:#667c70}
.tariff-dot{display:inline-block;vertical-align:middle;width:12px;height:12px;border-radius:50%;margin-right:6px}
.tariff-a{background:#8b241d}.tariff-b{background:#c71c20}.tariff-c{background:#ee5245}
.zone-legend{display:flex;flex-wrap:wrap;gap:8px 19px;margin:12px 0;color:#536d61;font-size:.85rem}
.zone-legend span{display:inline-flex;align-items:center}
.zone-mapping-panel{margin-top:24px}
.zone-mapping-form{display:grid;grid-template-columns:minmax(120px,180px) 1fr minmax(110px,150px) auto;gap:12px;align-items:end;margin:24px 0}
.zone-mapping-form label{min-width:0}.zone-mapping-form button{margin-bottom:0}
.zone-chip{display:inline-flex;padding:5px 10px;border-radius:22px;font-weight:750;font-size:.77rem}
.zone-chip-a{color:#89221b;background:#f9e7e4}.zone-chip-b{color:#a71e22;background:#fceced}.zone-chip-c{color:#ae382c;background:#fff0ec}
.tariff-code-table{min-width:470px;width:100%}
.tariff-code-table th,.tariff-code-table td{padding:10px 15px;border-bottom:1px solid #e7eee9;text-align:left}
.legacy-pricing{border-top:1px solid #e4ece6;margin:24px 0 16px;padding-top:15px}
.legacy-pricing summary{cursor:pointer;font-weight:750;color:#456354;margin-bottom:15px}
@media(max-width:800px){.zone-mapping-form{grid-template-columns:1fr 1fr}.zone-mapping-form label:nth-of-type(2){grid-column:1/-1;grid-row:1}.zone-mapping-form button{grid-column:1/-1}}
@media(max-width:480px){.zone-mapping-form{grid-template-columns:1fr}.zone-mapping-form label:nth-of-type(2){grid-column:auto;grid-row:auto}.zone-mapping-form button{grid-column:auto}}

/* V3.3 : lecture des milliers de codes importés */
.zone-mapping-pagination{display:flex;gap:1rem;align-items:center;justify-content:space-between;flex-wrap:wrap;padding:1rem 0;color:var(--slate-600,#475569)}
.zone-mapping-form[role="search"]{align-items:end;margin:1rem 0}
.zone-mapping-form[role="search"] label{min-width:min(100%,18rem)}

/* Green Service Express v3.5 — références transport, suivi horodaté, historique */
.page-head-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}.tracking-panel{overflow:hidden}.transport-timeline{display:grid;gap:0;margin-top:4px}.transport-event{display:grid;grid-template-columns:20px 1fr;gap:12px;position:relative;padding:0 0 18px}.transport-event:last-child{padding-bottom:0}.transport-event:before{content:"";position:absolute;left:7px;top:13px;bottom:-3px;width:2px;background:#dce9e1}.transport-event:last-child:before{display:none}.transport-event-dot{width:16px;height:16px;border:4px solid #dff2e6;background:#15905a;border-radius:50%;margin-top:2px;z-index:1}.transport-event>div{min-width:0}.transport-event strong{display:block;color:#173e30;font-size:.92rem}.transport-event small{display:block;color:#728178;font-size:.76rem;margin-top:2px}.transport-event p{margin:5px 0 0;color:#5a6d62;font-size:.83rem;line-height:1.45}.document-hub{margin-top:20px}.event-badge{display:inline-flex;align-items:center;padding:5px 9px;border-radius:999px;font-size:.74rem;font-weight:800;background:#edf5f0;color:#246444;white-space:nowrap}.event-cancelled,.event-refused{background:#fff0ef;color:#a23d36}.event-delivered{background:#e4f7eb;color:#087547}.event-arrived_pickup,.event-arrived_delivery{background:#eef4ff;color:#315f9b}.event-picked_up{background:#e9f5ff;color:#12638a}.history-table td{vertical-align:top}.history-table td:nth-child(6){max-width:360px}.table-search-form select{border:0;background:#f4f7f5;color:#3f5d4d;border-radius:8px;padding:8px 10px;min-width:160px}.reference-transport{font-variant-numeric:tabular-nums;letter-spacing:.01em}
@media(max-width:740px){.page-head-actions{justify-content:flex-start;width:100%}.page-head-actions .btn{width:100%;justify-content:center}.history-table{min-width:900px}.transport-event{grid-template-columns:18px 1fr}.document-hub .panel-head{align-items:flex-start;flex-direction:column}.document-hub .panel-head .btn{width:100%;justify-content:center}}
