/* Hub × Odoo 19 Enterprise look (light mode). Loaded last; only tokens and shared surfaces change, so every
   screen follows without per-page edits. Values from odoo/addons/web{,_enterprise}/static/src/scss:
   brand #714B67 (primary buttons), action #017e84 (links, focus, checks), page #F9FAFB, sheets white,
   borders #dee2e6, hover #e9ecef, radius 4px, white navbar with dark text. Dark mode keeps its own palette. */
:root:not(.dark) {
  --background: 210 20% 98.04%;          /* #F9FAFB  o-gray-100 (webclient background) */
  --foreground: 210 10.81% 14.51%;       /* #212529  o-gray-900 */
  --card: 0 0% 100%;
  --card-foreground: 210 10.81% 14.51%;
  --popover: 0 0% 100%;
  --popover-foreground: 210 10.81% 14.51%;
  --primary: 315.79 20.21% 36.86%;       /* #714B67  o-enterprise-color: primary buttons */
  --primary-foreground: 0 0% 100%;
  --secondary: 210 16.67% 92.94%;        /* #e9ecef  o-gray-200: secondary buttons */
  --secondary-foreground: 210 10.81% 14.51%;
  --muted: 210 16.67% 95.5%;
  --muted-foreground: 208.24 7.3% 45.69%; /* #6c757d  o-gray-600 */
  --accent: 210 16.67% 92.94%;           /* #e9ecef  hover surfaces */
  --accent-foreground: 210 10.81% 14.51%;
  --border: 210 13.79% 88.63%;           /* #dee2e6  o-gray-300 */
  --input: 210 13.79% 88.63%;
  --ring: 182.75 98.5% 26.08%;           /* #017e84  o-enterprise-action-color: focus */
  --radius: 4px;                         /* o-border-radius */
  --o-action: 182.75 98.5% 26.08%;
  --sidebar: 0 0% 100%;
  --sidebar-foreground: 210 10.81% 14.51%;
  --sidebar-border: 210 13.79% 88.63%;
  --sidebar-primary: 315.79 20.21% 36.86%;
  --sidebar-primary-foreground: 0 0% 100%;
  --sidebar-accent: 210 16.67% 92.94%;
  --sidebar-accent-foreground: 210 10.81% 14.51%;
  --sidebar-ring: 182.75 98.5% 26.08%;
}

/* Navbar: Odoo 19 is white with dark entries and gray hover (o-navbar-*). */
:root:not(.dark) .app-topbar { background: #fff; color: #212529; border-color: #dee2e6; border-bottom: 1px solid #dee2e6; box-shadow: none; }
:root:not(.dark) .app-topbar [data-slot="button"],
:root:not(.dark) .app-topbar .text-muted-foreground { color: #374151; }
:root:not(.dark) .app-topbar button:hover,
:root:not(.dark) .app-topbar button[data-state="open"] { background: #e9ecef; color: #000; }
:root:not(.dark) .app-topbar .bg-primary\/10 { background: #e9ecef; color: #212529; }
:root:not(.dark) .app-topbar :focus-visible { outline-color: hsl(var(--o-action)); --tw-ring-color: hsl(var(--o-action)); }

/* Links and action accents use the Odoo action teal; primary buttons stay brand purple. */
:root:not(.dark) main a:not([data-slot="button"]):not([class*="bg-"]):not(:has(*)) { color: hsl(var(--o-action)); }
:root:not(.dark) .text-primary { color: hsl(var(--o-action)); }
:root:not(.dark) [role="checkbox"][data-state="checked"],
:root:not(.dark) [role="radio"][data-state="checked"],
:root:not(.dark) [role="switch"][data-state="checked"] { background-color: hsl(var(--o-action)); border-color: hsl(var(--o-action)); }
:root:not(.dark) input[type="checkbox"],
:root:not(.dark) input[type="radio"] { accent-color: hsl(var(--o-action)); }

/* List views (o_list_table): bold header on the page background, light row rules, subtle hover, bold footer. */
:root:not(.dark) main table:not(.o-report-root table) > thead th {
  font-weight: 700; color: #111827; background-color: hsl(var(--background)); border-bottom: 1px solid #dee2e6; white-space: nowrap;
}
:root:not(.dark) main table:not(.o-report-root table) > tbody > tr { border-color: #dee2e6; }
:root:not(.dark) main table:not(.o-report-root table) > tbody > tr:hover > td { background-color: rgb(0 0 0 / .035); }
:root:not(.dark) main table:not(.o-report-root table) > tfoot td,
:root:not(.dark) main table:not(.o-report-root table) > tfoot th { font-weight: 600; color: #000; }

/* Sheets and panels: flat white surfaces with a hairline border, like the form sheet and list renderer. */
:root:not(.dark) main [class*="rounded-"][class*="border"][class*="bg-card"] { box-shadow: none; }
