/* ═══════════════════════════════════════════════════════════════════════════
   HUB SKIN, step 2: component skin.  Loaded LAST (after hub-skin-tokens.css).  Look only: sizes, colours, borders, radii, type.
   Same class names as before, no markup change, no function change. Values from the MySolar Hub (public/css/base.css, UI_REDESIGN.md):
   Inter 15/22, controls 40, rows 56, hairlines instead of fills, flat (no shadows), status pills = tint + hairline ring, words in label colour.
   Undo: remove the two <link> tags (hub-skin-tokens.css, hub-skin.css) from index.html.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ---------- page and type ---------- */
html body { background: var(--canvas); color: var(--label); font-family: var(--font); font-size: var(--fs-body); line-height: var(--lh-body); letter-spacing: -.006em; font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
html :focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
html h1 { font-size: var(--fs-h1); line-height: var(--lh-h1); font-weight: 700; letter-spacing: -.02em; }
html h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); font-weight: 700; letter-spacing: -.02em; }
html h3 { font-size: var(--fs-h3); line-height: var(--lh-h3); font-weight: 600; }
.tx-xs { font-size: var(--fs-cap); } .tx-sm { font-size: var(--fs-sub); } .tx-md { font-size: var(--fs-body); }
html .fw6, html .fw7 { font-weight: 600; }
html a { color: var(--accent-t); }
html ::selection { background: color-mix(in srgb, var(--accent) 24%, transparent); }

/* ---------- top bar (navbar) ---------- */
html .o_main_navbar { height: var(--tbh); padding: 0; background: var(--canvas); border-bottom: 1px solid var(--sep); box-shadow: none; }
html .o_menu_toggle, html .o_nav_entry, html .o_navbar_btn { height: 36px; font-size: var(--fs-body); line-height: var(--lh-cell); border-radius: var(--r1); font-weight: 500; color: var(--label); }
html .o_menu_toggle { font-weight: 700; font-size: var(--fs-h3); letter-spacing: -.02em; }
html .o_menu_toggle:hover, html .o_nav_entry:hover, html .o_navbar_btn:hover { background: var(--fill); }
html .o_nav_entry.active, html .o_nav_entry.show, html .o_nav_entry[aria-current="page"], html .o_nav_entry[aria-selected="true"], html .o_menu_toggle.show { background: var(--accent-fill); color: var(--label); font-weight: 600; }
html .o_menu_systray > * { color: var(--label); }
html .o_user_menu_btn { background: color-mix(in srgb, var(--d-blue) 22%, #fff); color: var(--label); font-weight: 600; box-shadow: inset 0 0 0 1.5px var(--d-blue); border-radius: 50%; }
html .o_counter { background: var(--bad-t); color: #fff; }

/* ---------- page header (control panel): hairline, no tinted band ---------- */

/* ---------- buttons: 40 px, radius 10, flat ---------- */
html .btn { min-height: var(--ch); padding: 0 16px; font-size: var(--fs-body); line-height: var(--lh-cell); font-weight: 500; border-radius: var(--r2); gap: 8px; }
html .btn-sm { min-height: var(--ch-sm); padding: 0 12px; font-size: var(--fs-sub); line-height: var(--lh-sub); border-radius: var(--r1); position: relative; }
html .btn-sm::after { content: ""; position: absolute; inset: -4px 0; }
html .btn-primary { background: var(--accent-solid); border-color: var(--accent-solid); color: var(--on-accent); font-weight: 600; }
html .btn-primary:hover, html .btn-primary:focus-visible { background: var(--accent-solid); border-color: var(--accent-solid); filter: brightness(1.08); color: var(--on-accent); }
html .btn-secondary, html .btn-light { background: var(--surface); border-color: var(--ctl-line); color: var(--label); }
html .btn-secondary:hover, html .btn-light:hover { background: var(--fill); border-color: var(--ctl-line); color: var(--label); }
html .btn-outline-primary { background: var(--accent-fill); border-color: transparent; color: var(--accent-t); }
html .btn-outline-primary:hover { background: color-mix(in srgb, var(--d-blue) 22%, #fff); color: var(--accent-t); }
html .btn-link { color: var(--accent-t); }
html .btn-danger { background: var(--surface); border-color: var(--ctl-line); color: var(--bad-t); }
html .btn-danger:hover { background: var(--d-red); border-color: var(--d-red); color: #fff; }
html .btn:disabled, html .btn.disabled { opacity: .45; }
html .btn svg { width: 20px; height: 20px; }
html .btn-group > .btn { min-height: var(--ch); }

/* ---------- fields: 40 px, radius 10, 1px control line, blue focus ring ---------- */
html .form-control, html .form-select, html .o_input, html select.o_input, html textarea.o_input { min-height: var(--ch); padding: 0 12px; background: var(--bg); border: 1px solid var(--ctl-line); border-radius: var(--r2); color: var(--label); font-size: var(--fs-body); line-height: var(--lh-cell); box-shadow: none; }
html textarea.form-control, html textarea.o_input { padding: 9px 12px; min-height: 96px; line-height: var(--lh-body); }
html .form-control:hover:not(:disabled):not([readonly]), html .o_input:hover:not(:disabled):not([readonly]), html .form-select:hover:not(:disabled) { border-color: var(--label2); }
html .form-control:focus, html .form-select:focus, html .o_input:focus { border-color: var(--accent); box-shadow: var(--hub-ring); outline: 0; }
html .form-control:disabled, html .form-control[readonly], html .form-select:disabled, html .o_input[readonly], html .o_input:disabled { background: var(--fill); color: var(--label2); border-color: var(--ctl-line); }
html .form-control::placeholder, html .o_input::placeholder { color: var(--label2); opacity: 1; }
html .is-invalid, html .o_field_invalid .o_input, html .o_field_invalid .form-control, html [aria-invalid="true"] { border-color: var(--d-red); }
html .invalid-feedback, html .o_field_error { color: var(--bad-t); font-size: var(--fs-sub); line-height: var(--lh-sub); }
html .form-label, html .o_form_label, html label { font-size: var(--fs-sub); font-weight: 600; color: var(--label); }
html .form-text, html .form-help { color: var(--label2); font-size: var(--fs-sub); line-height: var(--lh-sub); }
html .form-check-input { width: 22px; height: 22px; border: 1px solid var(--ctl-line); }
html .form-check-input:checked { background-color: var(--accent-solid); border-color: var(--accent-solid); }
html .o_required::after, html .o_required_mark { color: var(--bad-t); }

/* ---------- cards: white, 1px hairline, radius 12, flat ---------- */
html .o_card, html .o_scorecard, html .kpi, html .card, html .o_kpi, html .o_content_card, html .o_form_sheet, html .o_view_nocontent.is-boxed { background: var(--surface); border: 1px solid var(--sep); border-radius: var(--r3); box-shadow: none; }
html .o_scorecard { padding: 16px; min-height: 104px; }
html .o_scorecard:hover { border-color: var(--ctl-line); }
html .o_scorecard_label { color: var(--label2); font-size: var(--fs-cap); line-height: var(--lh-cap); font-weight: 600; }
html .o_scorecard_value { color: var(--label); font-size: var(--fs-kpi); line-height: var(--lh-kpi); font-weight: 700; letter-spacing: -.012em; }
html .o_scorecard_value.is-pos { color: var(--ok-t); } html .o_scorecard_value.is-neg { color: var(--bad-t); }
html .o_scorecard_sub, html .o_chart_note { color: var(--label2); font-size: var(--fs-cap); line-height: var(--lh-cap); }
html .o_dash_title, html .o_card_title { color: var(--label); font-size: var(--fs-h3); line-height: var(--lh-h3); font-weight: 700; border-bottom-color: var(--sep); }
html .prog, html .br-bar, html .progress { background: var(--fill); }
html .prog-fill, html .br-fill, html .progress-bar { background: var(--d-green); }

/* ---------- lists / tables: head 44, rows 56, hairlines ---------- */
html .o_list_table, html table { font-size: var(--fs-body); line-height: var(--lh-cell); }
html .o_list_table thead th { height: var(--rh-th); padding: 0 12px; background: var(--bg); color: var(--label2); font-size: var(--fs-cap); line-height: var(--lh-cap); font-weight: 600; box-shadow: inset 0 -1px 0 var(--sep); }
html .o_list_table tbody tr { height: var(--rh); }
html .o_list_table tbody td { padding: 8px 12px; border-bottom: 1px solid var(--sep); }
html .o_list_table tbody tr:hover, html .o_list_table tbody tr:hover td { background: var(--fill); }
html .o_list_table tbody tr.o_selected_row, html .o_list_table tbody tr.o_data_row.is-selected { background: var(--accent-fill); }
html .o_list_table thead th.o_column_sortable:hover { color: var(--label); }
html .o_list_table tfoot td, html .o_group_header td { font-weight: 600; border-color: var(--sep); }
html th button, html th [role="button"] { font-size: inherit; font-weight: inherit; color: inherit; }
html .num, html .o_list_number, html td.r, html th.r { font-variant-numeric: tabular-nums; }
html .o_data_cell_ref, html .o_list_table .o_data_cell.fw-bold { color: var(--accent-t); font-weight: 600; }
html .o_list_row_actions a, html .o_list_row_actions button, html .o_icon_btn { min-width: var(--ch-sm); min-height: var(--ch-sm); border-radius: var(--r1); color: var(--label2); }
html .o_list_row_actions a:hover, html .o_list_row_actions button:hover, html .o_icon_btn:hover { background: var(--fill); color: var(--label); }

/* ---------- pills / badges / tags: tint + hairline ring, label-colour words ---------- */
html .badge, html .o_tag, html .o_status { height: 26px; padding: 0 10px; font-size: var(--fs-cap); line-height: 1; font-weight: 600; letter-spacing: 0; border-radius: 99px; display: inline-flex; align-items: center; gap: 6px; color: var(--label); }
html .badge-primary, html .text-bg-primary { background: var(--accent-fill); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--d-blue) 55%, transparent); }
html .badge-secondary, html .text-bg-secondary, html .badge-grey, html .text-bg-300 { background: var(--fill); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--d-gray) 55%, transparent); }
html .badge-success, html .text-bg-success { background: var(--ok-bg); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--d-green) 55%, transparent); }
html .badge-info, html .text-bg-info { background: var(--info-bg); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--d-blue) 55%, transparent); }
html .badge-warning, html .text-bg-warning { background: var(--warn-bg); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--d-orange) 55%, transparent); }
html .badge-danger, html .text-bg-danger { background: var(--bad-bg); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--d-red) 55%, transparent); }
html .badge-sm, html .o_tag_sm { height: 22px; padding: 0 8px; }
/* the shape that carries the meaning besides colour (a coloured dot before the word) */
html .badge-primary::before, html .badge-success::before, html .badge-info::before, html .badge-warning::before, html .badge-danger::before,
html .text-bg-primary::before, html .text-bg-success::before, html .text-bg-info::before, html .text-bg-warning::before, html .text-bg-danger::before { content: ""; width: 8px; height: 8px; border-radius: 50%; flex: none; background: currentColor; }
html .badge-primary::before, html .text-bg-primary::before, html .badge-info::before, html .text-bg-info::before { color: var(--d-blue); }
html .badge-success::before, html .text-bg-success::before { color: var(--d-green); }
html .badge-warning::before, html .text-bg-warning::before { color: var(--d-orange); }
html .badge-danger::before, html .text-bg-danger::before { color: var(--d-red); }
html .o_tag[class*="o_tag_color_"] { background: var(--fill); color: var(--label); box-shadow: inset 0 0 0 1px var(--sep); }

/* ---------- search bar, filter chips, switchers ---------- */
html .o_searchview, html .osb, html .osearch { min-height: var(--ch); border: 1px solid var(--ctl-line); border-radius: 99px; background: var(--bg); box-shadow: none; font-size: var(--fs-body); }
html .o_searchview:focus-within { border-color: var(--accent); box-shadow: var(--hub-ring); }
html .o_searchview_input { font-size: var(--fs-body); }
html .o_searchview_facet { background: var(--accent-fill); color: var(--label); border-radius: 99px; }
html .o_switch_view, html .o_pager_btn { min-width: var(--ch-sm); min-height: var(--ch-sm); }
html .o_switch_view.active { background: var(--accent-fill); color: var(--label); }
html .o_search_bar_menu .o_menu_item.selected, html .o_search_panel_value.active { background: var(--accent-fill); color: var(--label); }

/* ---------- menus / dropdowns / popovers ---------- */
html .dropdown-menu, html .o_search_bar_menu, html .o_switch_company_menu { background: var(--surface); border: 0; border-radius: var(--r2); box-shadow: var(--odoo-popover-shadow); padding: 6px; font-size: var(--fs-body); }
html .dropdown-item { min-height: var(--rh-menu); display: flex; align-items: center; padding: 4px 12px; border-radius: var(--r1); font-size: var(--fs-body); font-weight: 500; color: var(--label); }
html .dropdown-item:hover, html .dropdown-item:focus-visible { background: var(--accent-solid); color: var(--on-accent); outline: 0; }
html .dropdown-item.active, html .dropdown-item[aria-checked="true"] { background: var(--accent-fill); color: var(--label); font-weight: 600; }
html .dropdown-item.text-danger { color: var(--bad-t); } html .dropdown-item.text-danger:hover { background: var(--d-red); color: #fff; }
html .dropdown-divider { border-color: var(--sep); } html .dropdown-header { color: var(--label2); font-size: var(--fs-cap); }
html .o_switch_company_item:hover { background: var(--fill); } html .o_switch_company_item.is-current { background: var(--accent-fill); }

/* ---------- dialogs (.mo-bx, .modal-content): radius 14, hairline, flat ---------- */
html .mo-ov, html .modal-backdrop { background: var(--odoo-backdrop); }
html .mo-bx, html .modal-content { background: var(--bg); color: var(--label); border: 0; border-radius: var(--r4); box-shadow: 0 0 0 1px var(--sep), 0 24px 70px rgba(0, 0, 0, .35); overflow: hidden; }
html .mo-h, html .modal-header { padding: 20px 24px 8px; border-bottom: 0; }
html .mo-h h2, html .mo-h h3, html .mo-t, html .modal-title { font-size: var(--fs-h2); line-height: var(--lh-h2); font-weight: 700; letter-spacing: -.02em; color: var(--label); }
html .mo-b, html .modal-body { padding: 8px 24px 16px; font-size: var(--fs-body); }
html .mo-f, html .modal-footer { padding: 16px 24px 24px; border-top: 0; gap: 12px; }
html .btn-close, html .mo-x { min-width: var(--ch-sm); min-height: var(--ch-sm); border-radius: var(--r1); }

/* ---------- alerts, toasts, empty states, notebook tabs, statusbar ---------- */
html .alert { border-radius: var(--r2); font-size: var(--fs-body); color: var(--label); border: 1px solid var(--sep); }
html .alert-info { background: var(--info-bg); } html .alert-success { background: var(--ok-bg); } html .alert-warning { background: var(--warn-bg); } html .alert-danger { background: var(--bad-bg); } html .alert-primary { background: var(--accent-fill); }
html .o_notification { border-radius: var(--r3); box-shadow: var(--odoo-popover-shadow); border: 1px solid var(--sep); background: var(--surface); color: var(--label); }
html .o_view_nocontent_title { font-size: var(--fs-h2); line-height: var(--lh-h2); font-weight: 700; color: var(--label); }
html .o_nocontent_help, html .o_view_nocontent { color: var(--label2); font-size: var(--fs-body); }
html .nav-tabs { border-bottom: 1px solid var(--sep); }
html .nav-link { min-height: var(--ch); font-size: var(--fs-body); font-weight: 500; color: var(--label2); }
html .nav-link:hover { color: var(--label); }
html .nav-link.active { color: var(--label); font-weight: 600; border-bottom: 2px solid var(--accent-solid); background: transparent; }
html .o_arrow_button_current, html .o_arrow_button.current { background: var(--accent-fill); color: var(--label); font-weight: 600; }
html .o_info_btn { color: var(--label2); border-color: var(--ctl-line); }


/* ---------- fixes found in the screen sweep ---------- */
/* programmatic focus on the page body (after a screen change) is not a keyboard stop: no ring */
html [tabindex="-1"]:focus, html [tabindex="-1"]:focus-visible { outline: 0; }
html .mono { white-space: nowrap; }

/* sign-in screen: the "Sign in with MySolar Hub" link-button keeps its text centred in the 40 px height */
html .o_auth_hub .btn { display: flex; align-items: center; justify-content: center; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) { html * { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; } }

/* ============ Sales additions (class names of this app) ============ */
/* page: content stays centred at max 1400 px (app-sales.css) */
html main { padding: 8px 24px 24px; }
html .card-h { background: var(--surface); border-bottom: 1px solid var(--sep); color: var(--label); font-size: var(--fs-h3); line-height: var(--lh-h3); font-weight: 700; letter-spacing: -.02em; }
html .kpi-label { color: var(--label2); font-size: var(--fs-cap); line-height: var(--lh-cap); font-weight: 600; }
html .kpi-val { color: var(--label); font-size: var(--fs-kpi); line-height: var(--lh-kpi); font-weight: 700; letter-spacing: -.012em; }
html .kpi-sub { color: var(--label2); font-size: var(--fs-cap); }
html .pill, html .o-badge, html .chip, html .chip-i, html .sh-badge, html .co-badge { color: var(--label); font-weight: 600; border-radius: 99px; }
html .chip { background: var(--accent-fill); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--d-blue) 55%, transparent); }
html .chip-i { background: var(--info-bg); }
html .sh-tg[aria-pressed="true"] { background: var(--accent-solid); border-color: var(--accent-solid); color: var(--on-accent); }
html .who-av { border-radius: 50%; background: color-mix(in srgb, var(--d-blue) 22%, #fff); color: var(--label); box-shadow: inset 0 0 0 1.5px var(--d-blue); font-weight: 600; }
html .o_main_navbar .o-brand .co-trigger:hover, html .o_main_navbar .o-brand .co-trigger[aria-expanded="true"] { background: var(--fill); }
html .o_main_navbar .o_nav_entry { height: 36px; }
html .o_main_navbar #nv button { font-size: var(--fs-body); font-weight: 500; color: var(--label); }
html .o_main_navbar #nv button.a, html .o_main_navbar #nv button[aria-selected="true"] { background: var(--accent-fill); color: var(--label); font-weight: 600; }
html #save-state.sv-saved { color: var(--ok-t, #1F7A38); } html #save-state.sv-error { color: var(--bad-t); }
html .o_notebook .nav-tabs, html .hub-sub { background: transparent; }
html footer { color: var(--label2); border-top-color: var(--sep); }
html .cal-d { border-radius: var(--r1); background: var(--surface); }

/* ============ Section A: Entry and Masters ============ */
/* HUB SKIN A: Entry (tab 1) and Masters (tab 2). Loaded after hub-skin.css. Look only, screen only. Undo: remove the <link>. */
@media screen {
/* ---- fill zones: flat white, 1px hairline, very faint tint; the 3px stripe is gone ---- */
html .e-zone, html .e3 .e3-field, html .e-line.o-flat, html .e-petty.o-flat { background: color-mix(in srgb, var(--d-blue) 2.5%, #fff); border: 1px solid var(--sep); border-radius: var(--r3); padding: 16px; }
html .e-zone { padding-top: 16px; }
html .e-zh { border-bottom: 1px solid var(--sep); padding-bottom: 8px; margin-bottom: 12px; }
html .e-zt { font-size: var(--fs-body); line-height: var(--lh-body); font-weight: 600; color: var(--label); }
html table.o-flat tbody td:has(.o_input:not([readonly]):not(:disabled)) { background: var(--surface); }
html .e-pd, html .e-pl, html .e-fld > label, html .e-fld .form-label { font-size: var(--fs-sub); line-height: var(--lh-sub); font-weight: 600; color: var(--label); }
html .e-off .e-pl { color: var(--label2); font-weight: 500; }
html .e-cur .e-pl { color: var(--accent-t); font-weight: 700; }
html .e-petty.o-flat { gap: 12px 16px; }

/* ---- editable boxes: obvious 1px control line, white fill, readable value ---- */
html .o_form_sheet .o_input:not([readonly]), html .o-flat .o_input:not([readonly]) { height: var(--ch); min-height: var(--ch); padding: 0 12px; background-color: var(--surface); border: 1px solid var(--ctl-line); border-radius: var(--r2); color: var(--label); font-size: var(--fs-body); line-height: var(--lh-cell); }
html .o_form_sheet textarea.o_input:not([readonly]), html .o-flat textarea.o_input:not([readonly]) { height: auto; min-height: 72px; padding: 9px 12px; line-height: var(--lh-body); }
html .o_form_sheet .o_input:hover:not([readonly]):not(:disabled), html .o-flat .o_input:hover:not([readonly]):not(:disabled) { border-color: var(--label2); background-color: var(--surface); }
html .o_form_sheet .o_input:focus:not([readonly]), html .o-flat .o_input:focus:not([readonly]) { border-color: var(--accent); box-shadow: var(--hub-ring); }
html .o_form_sheet .o_input:disabled:not([readonly]), html .o-flat .o_input:disabled:not([readonly]) { opacity: 1; background-color: var(--fill); border: 1px solid var(--sep); color: var(--label); cursor: not-allowed; }
html .o_form_sheet .o_input.is-invalid, html .o-flat .o_input.is-invalid { border-color: var(--d-red); }
html .o_form_sheet .o_input_select:not([readonly]), html .o-flat .o_input_select:not([readonly]) { padding-right: 30px; background-position: right 10px center; }
html .e-sheet input[type="number"], html .e-line input[type="number"] { padding-right: 12px; text-align: right; }
html .e-petty input[type="number"] { padding-right: 12px; text-align: right; }
html .e-ro, html .e-k { color: var(--label2); font-size: var(--fs-cap); line-height: var(--lh-cap); }
html .e-v { color: var(--label); font-size: var(--fs-h3); line-height: var(--lh-h3); font-weight: 600; }

/* ---- control panel, pager, stat bar, list footer ---- */
html .e-fac { min-height: var(--ch-sm); }
html .e-fac select { font-size: var(--fs-body); color: var(--label); }
html .e-fac:focus-within { border-color: var(--accent); box-shadow: var(--hub-ring); }
html .e-pager .o_pager_btn { min-width: var(--ch); min-height: var(--ch); border: 1px solid var(--ctl-line); border-radius: var(--r2); background: var(--surface); }
html .e-pager .o_pager_btn:hover:not(:disabled) { background: var(--fill); }
html .e-pager .o_pager_btn:disabled { opacity: .4; }
html .e-stat { background: var(--surface); border: 1px solid var(--sep); border-radius: var(--r3); }
html .e-seg { border-left: 1px solid var(--sep); }
html .e-seg-h { background: var(--surface); border-left: 0; }
html .e-foot { height: var(--rh-th); border-top: 1px solid var(--sep); background: var(--surface); font-weight: 600; }

/* ---- invoice table (8 columns): head 44, rows 56, numbers right, status pill + trash stay tappable ---- */
html .e-flush .o_list_table thead th { white-space: nowrap; }
html .e-flush .o_list_table td, html .e-flush .o_list_table th { padding: 8px 12px; }
html .e-flush .o_list_table tbody tr { height: var(--rh); }
html .btn.e-st { min-height: 26px; padding: 0 10px; font-size: var(--fs-cap); line-height: 1; font-weight: 600; color: var(--label); border-radius: 99px; display: inline-flex; align-items: center; gap: 6px; }
html .btn.e-st-ok { background: var(--ok-bg); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--d-green) 55%, transparent); }
html .btn.e-st-wait { background: var(--warn-bg); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--d-orange) 55%, transparent); }
html .btn.e-trash { min-width: var(--ch-sm); min-height: var(--ch-sm); border-radius: var(--r1); color: var(--bad-t); }
html .btn.e-trash:hover { background: var(--bad-bg); color: var(--bad-t); }

/* ---- Masters: chips, kanban cards, group counts, avatars, calendar cells ---- */
html .chip, html .chip-i { min-height: 28px; display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; font-size: var(--fs-sub); }
html .chip small, html .chip .tx-xs { color: var(--label2); font-weight: 500; }
html .m-pc { background: var(--surface); border: 1px solid var(--sep); border-radius: var(--r3); box-shadow: none; padding: 12px 16px; }
html .m-pc:hover { border-color: var(--ctl-line); }
html .m-pl, html .m-help { color: var(--label2); font-size: var(--fs-sub); line-height: var(--lh-sub); }
html .m-gc { background: var(--fill); color: var(--label); font-size: var(--fs-cap); font-weight: 600; }
html .m-av { border-radius: var(--r2); font-weight: 600; color: var(--label); }
html .m-usr, html .usr-once { background: var(--surface); border: 1px solid var(--sep); border-radius: var(--r3); }
html select.m-bsel, html select.m-role-staff, html select.m-role-admin, html select.m-role-manager, html select.m-role-viewer { min-height: var(--ch-sm); border: 1px solid var(--ctl-line); border-radius: var(--r1); color: var(--label); font-weight: 600; }
html table.o-flat tbody tr.o_group_header td { background: var(--fill); color: var(--label); font-weight: 600; }
html .cal-d { border: 1px solid var(--sep); background: var(--surface); color: var(--label); border-radius: var(--r1); }
html .cal-d.off { background: var(--fill); color: var(--label2); }
html .cal-d.wk { background: var(--ok-bg); border-color: var(--d-green); }
html .cal-d.hol { background: var(--bad-bg); border-color: var(--d-red); }
html button.cal-d:hover { border-color: var(--accent); }
html .cal-h { color: var(--label2); font-size: var(--fs-cap); font-weight: 600; }
}

/* ---- phone: 44 px targets, 16 px inputs (no iOS zoom), wide tables scroll with a sticky first column ---- */
@media screen and (max-width: 599px) {
  html .o_form_sheet .o_input:not([readonly]), html .o-flat .o_input:not([readonly]), html .e-fac select, html .o_searchview_input, html select.m-bsel { font-size: 16px; min-height: 44px; }
  html .e-pager .o_pager_btn, html .btn.e-trash, html .m-pc-act .btn, html .m-pc-act .o_icon_btn, html .o_switch_view { min-width: 44px; min-height: 44px; }
  html .btn.e-st, html .chip, html .chip-i { min-height: 44px; }
  html .chip button, html .chip .x { min-width: 44px; min-height: 44px; }
  html button.cal-d, html .cal-d { min-height: 48px; }
  html .e-search { border: 0; border-radius: 0; background: transparent; box-shadow: none; padding: 0; }
  html .e-fac { background: var(--surface); border: 1px solid var(--ctl-line); border-radius: var(--r2); min-height: 44px; box-shadow: none; }
  html .e-fac .o_searchview_facet_label { background: transparent; }
  html .e-zone, html .e3 .e3-field, html .e-line.o-flat, html .e-petty.o-flat { padding: 12px; }
  html main { padding-left: 12px; padding-right: 12px; }
  html .e-flush > .card-b, html .m-view { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  html .e-flush table td:first-child, html .e-flush table th:first-child, html .m-view > table td:first-child, html .m-view > table th:first-child { position: sticky; left: 0; z-index: 1; background: var(--surface); box-shadow: inset -1px 0 0 var(--sep); }
  html .e-flush table thead th:first-child { z-index: 3; }
  html .e-flush table td, html .e-flush table th, html .m-view > table td, html .m-view > table th { white-space: nowrap; }
}

/* ============ Section B: Reports, Analytics, Ratios, Print controls, charts ============ */
/* HUB SKIN, part B: Reports tab (Report / Analytics / Ratios / Print controls). Screen look only, loaded after hub-skin.css.
   Not touched: the print paper (.pr-paper, .pr-doc content), @media print, css/v3-print.css. Undo: remove the <link>. */
@media screen {
@scope (html) to (.pr-paper) {
/* ---------- sub-tab bar (.hub-sub): Hub underline tabs, scrolls sideways when narrow ---------- */
:scope .hub-sub { margin: 0 0 12px; }
:scope .hub-sub .nav-tabs { display: flex; flex-wrap: nowrap; gap: 4px; height: auto; border: 0; box-shadow: inset 0 -1px 0 var(--sep); overflow-x: auto; scrollbar-width: none; padding-right: 160px; }
:scope .hub-sub .nav-tabs::-webkit-scrollbar { display: none; }
:scope .hub-sub .nav-link { flex: none; display: inline-flex; align-items: center; min-height: var(--ch); padding: 0 16px; margin: 0; background: transparent; border: 0; border-bottom: 2px solid transparent; border-radius: var(--r1) var(--r1) 0 0; color: var(--label2); font-size: var(--fs-body); font-weight: 500; white-space: nowrap; }
:scope .hub-sub .nav-link:hover:not(.active) { background: var(--fill); color: var(--label); }
:scope .hub-sub .nav-link.active, :scope .hub-sub .nav-link[aria-selected="true"] { background: transparent; color: var(--label); font-weight: 600; border-bottom-color: var(--accent-solid); }
:scope .hub-sub .nav-link:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; box-shadow: none; }
:scope .hub-sub .hub-act { padding-bottom: 0; align-items: center; }

/* ---------- control panel (title, filter pill, view switch) ---------- */
:scope .rp-cp .o_cp_top, :scope .pr-cp .o_cp_top { gap: 12px 16px; }
:scope .rp-cp h1, :scope .pr-cp h1 { font-size: var(--fs-h2); line-height: var(--lh-h2); }
:scope .rp-sw .o_searchview { padding: 0 14px; gap: 8px; }
:scope .rp-ph { height: var(--lh-cell); font-size: var(--fs-body); line-height: var(--lh-cell); color: var(--label2); }
:scope .rp-mag, :scope .rp-fi { color: var(--label2); }
:scope .rp-info, :scope .rp-note { color: var(--label2); font-size: var(--fs-sub); line-height: var(--lh-sub); }
:scope .rp-cp .o_cp_switch_buttons, :scope .pr-mode { display: inline-flex; padding: 2px; gap: 2px; background: var(--fill); border-radius: var(--r2); }
:scope .rp-cp .o_switch_view, :scope .pr-mode .o_switch_view { min-width: 36px; min-height: 36px; border: 0; border-radius: var(--r1); background: transparent; color: var(--label2); }
:scope .rp-cp .o_switch_view.active, :scope .pr-mode .o_switch_view.active { background: var(--surface); color: var(--label); box-shadow: 0 0 0 1px var(--sep); }
:scope .dropdown-menu.o_search_bar_menu.rp-panel .o-sp-title, :scope .rp-panel .o_menu_item { font-size: var(--fs-body); }
:scope .rp-panel .o_menu_item { min-height: var(--rh-menu); border-radius: var(--r1); }
:scope .pr-day .o_searchview_facet { background: var(--accent-fill); border-radius: 99px; min-height: var(--ch-sm); }
:scope .pr-day select.o_searchview_input { min-height: 32px; font-size: var(--fs-body); border: 0; background: transparent; }

/* ---------- cards: sentence-case title, hairline header, flat body ---------- */
:scope .rp-c, :scope .o_card.card { overflow: hidden; margin-bottom: 16px; }
:scope .card-h { padding: 14px 16px; }
:scope .card-h .o_card_title, :scope .card-h > span:first-child { text-transform: none; letter-spacing: -.02em; font-size: var(--fs-h3); line-height: var(--lh-h3); font-weight: 700; color: var(--label); }
:scope .rp-c .card-b, :scope .card-b:has(> table) { background: var(--surface); }
:scope .o_info_btn { width: 20px; height: 20px; min-width: 20px; padding: 0; border-radius: 50%; font-size: 11px; vertical-align: middle; position: relative; }
:scope .o_info_btn::after { content: ""; position: absolute; inset: -6px; }
:scope .rp-h-r { gap: 4px 12px; }

/* ---------- report tables: right-aligned tabular numbers, sticky head, totals row ---------- */
:scope .card-b > table.o_list_table { border-collapse: separate; border-spacing: 0; width: 100%; }
:scope .o_list_table th.num, :scope .o_list_table td.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
:scope .o_list_table thead th { background: var(--surface); position: sticky; top: 0; z-index: 2; text-transform: none; letter-spacing: 0; }
:scope .o_list_table tbody td { height: auto; vertical-align: middle; }
:scope .o_list_table tbody tr:last-child td { border-bottom-color: transparent; }
:scope .o_list_table tfoot td, :scope .o_list_table tfoot th { background: #F5F5F7; color: var(--label); font-weight: 600; border-top: 1px solid var(--ctl-line); border-bottom: 0; padding: 12px; font-variant-numeric: tabular-nums; }
:scope .o_list_table tfoot b { font-weight: 700; }
:scope .o_list_table tbody tr:hover td { background: var(--fill); }
:scope .o_list_table td a { color: var(--accent-t); font-weight: 500; text-decoration: none; }
:scope .o_list_table td a:hover { text-decoration: underline; }
:scope .o_list_table .badge { vertical-align: middle; }

/* ---------- scorecards and ratio rings ---------- */
:scope .kpi-grid { gap: 12px; margin-bottom: 16px; }
:scope .o_scorecard { padding: 16px; align-items: flex-start; text-align: left; }
:scope .o_scorecard_value, :scope .o_scorecard_sub, :scope .v3r-rv { text-align: left; justify-content: flex-start; }
:scope .v3r-rings .o_scorecard_value { display: flex; align-items: center; gap: 10px; }
:scope .v3r-rv { gap: 10px; }
:scope .v3r-rings .o_scorecard_sub { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 8px; }

/* ---------- chart cards: legend, "Show as table", tooltip, axis text ---------- */
:scope .rp-chart-b, :scope .v3r-ch { padding-top: 4px; }
:scope .rp-chart-b { padding: 16px; }
:scope .v3r-foot { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--sep); font-size: var(--fs-sub); line-height: var(--lh-sub); color: var(--label2); }
:scope .v3r-lg, :scope .rp-key { gap: 8px; }
:scope .rp-key-n { color: var(--label2); font-size: var(--fs-sub); }
:scope .v3r-tick { background: var(--label); }
:scope .v3r-showtbl, :scope .v3r-tbl > summary { display: inline-flex; align-items: center; min-height: var(--ch-sm); padding: 0 8px; margin-right: -8px; border-radius: var(--r1); color: var(--accent-t); font-size: var(--fs-sub); font-weight: 600; text-decoration: none; }
:scope .v3r-showtbl:hover, :scope .v3r-tbl > summary:hover { background: var(--accent-fill); color: var(--accent-t); text-decoration: none; }
:scope .v3r-tbl > summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 0; }
:scope .msc-grid text, :scope .msc-xlabels text, :scope .msc-row text { fill: var(--label2); }
:scope .msc-grid line { stroke: var(--sep); }
:scope .msc-legend text, :scope .msc-lg text { fill: var(--label2); }
:scope .msc-tip { border: 0 !important; border-radius: var(--r2) !important; box-shadow: var(--odoo-popover-shadow) !important; padding: 8px 12px !important; font-size: var(--fs-sub) !important; line-height: var(--lh-sub) !important; color: var(--label) !important; font-family: var(--font) !important; }
:scope .msc-tb { color: var(--label) !important; font-size: var(--fs-sub) !important; }
:scope .rp-bl { border-top-color: var(--sep); } :scope .rp-bl li { border-bottom-color: var(--sep); min-height: var(--rh-menu); }
:scope .rp-bl-n { color: var(--label); font-weight: 500; } :scope .rp-bl-c { color: var(--label2); }

/* ---------- what-if sliders and risk alerts ---------- */
:scope .v3r-ctl input[type=range] { accent-color: var(--accent-solid); height: var(--ch); }
:scope .v3r-ctl input[type=number] { width: 96px; text-align: right; }
:scope .v3r-field .o-label { font-size: var(--fs-sub); font-weight: 600; color: var(--label); }
:scope .v3r-alert { padding: 12px 16px; margin-bottom: 8px; }
}
}

/* ---------- phone <= 599px: 44 px targets, 16 px inputs, tables scroll sideways with the first column fixed ---------- */
@media screen and (max-width: 599px) {
@scope (html) to (.pr-paper) {
  :scope .hub-sub .nav-tabs { padding-right: 0; }
  :scope .hub-sub .nav-link { min-height: 44px; padding: 0 14px; }
  :scope .hub-sub .hub-act { padding-top: 8px; }
  :scope .rp-sw { flex: 1 1 100%; }
  :scope .rp-ph, :scope .pr-day select.o_searchview_input, :scope .v3r-ctl input[type=number], :scope .o_searchview_input { font-size: 16px; line-height: 24px; }
  :scope .rp-ph { height: 24px; }
  :scope .rp-cp .o_switch_view, :scope .pr-mode .o_switch_view, :scope .o_pager_btn { min-width: 44px; min-height: 44px; }
  :scope .rp-cp .o_switch_view, :scope .pr-mode .o_switch_view { min-width: 40px; min-height: 40px; }
  :scope .rp-cp .o_switch_view::after, :scope .pr-mode .o_switch_view::after { content: ""; position: absolute; inset: -2px; }
  :scope .v3r-showtbl, :scope .v3r-tbl > summary, :scope .rp-show { min-height: 44px; }
  :scope .v3r-ctl input[type=range] { height: 44px; }
  :scope .v3r-ctl input[type=number] { min-height: 44px; width: 84px; }
  :scope .rp-panel .o_menu_item, :scope .rp-bl li { min-height: 44px; }
  :scope .o_info_btn::after { inset: -12px; }
  :scope .kpi-grid { gap: 8px; }
  :scope .card-h { padding: 12px; }
  :scope .card-b > table.o_list_table { width: max-content; min-width: 100%; }
  :scope .card-b > table td:first-child, :scope .card-b > table th:first-child { background: var(--surface); box-shadow: inset -1px 0 0 var(--sep); }
  :scope .card-b > table thead th:first-child, :scope .card-b > table.tn thead th:nth-child(2) { background: var(--surface); }
  :scope .card-b > table tfoot td:first-child, :scope .card-b > table tfoot th:first-child { background: #F5F5F7; }
  :scope .card-b > table tbody tr:hover td:first-child { background: var(--surface); }
  :scope .o_list_table tbody td, :scope .o_list_table thead th { padding-left: 10px; padding-right: 10px; }
}
}

/* ============ Section C: Dashboard, Setup, navbar, menus, dialogs, Help, sign-in ============ */
/* HUB SKIN, part C: dashboard scorecards, setup, navbar, menus, dialogs, toasts, help, sign-in, boot splash. Screen only, look only.
   Loaded after hub-skin.css. Undo: remove its <link>. Nothing here touches @media print. */

/* ---------- dashboard: sparkline fill and line in Hub blue (CSS beats the SVG attributes; the grey "no activity" sparkline is kept) ---------- */
html .dc-spark svg path[fill^="rgba(135"] { fill: color-mix(in srgb, var(--d-blue) 12%, transparent); }
html .dc-spark svg path[stroke="#875A7B"] { stroke: var(--d-blue); stroke-width: 1.5px; }
html .dc-spark svg circle[fill="#875A7B"] { fill: var(--d-blue); }
html .o_scorecard, html .kpi { overflow: hidden; }
html .kpi-grid { gap: 12px; }
html .o_info_btn { color: var(--label2); }

/* ---------- setup: flat underline tabs, hairline sheet, users & logins ---------- */
html .nav-tabs { gap: 4px; border-bottom: 1px solid var(--sep); }
html .nav-tabs .nav-link, html .e3 .nav-link, html .hub-sub .nav-link { min-height: var(--ch); padding: 0 14px; margin: 0 0 -1px; background: transparent; border: 0; border-bottom: 2px solid transparent; border-radius: var(--r1) var(--r1) 0 0; color: var(--label2); font-weight: 500; }
html .nav-tabs .nav-link:hover:not(.active), html .e3 .nav-link:hover:not(.active), html .hub-sub .nav-link:hover:not(.active) { background: var(--fill); color: var(--label); }
html .nav-tabs .nav-link.active, html .nav-tabs .nav-link[aria-selected="true"], html .e3 .nav-link.active, html .e3 .nav-link[aria-selected="true"], html .hub-sub .nav-link.active, html .hub-sub .nav-link[aria-selected="true"] { background: transparent; border-bottom-color: var(--accent-solid); color: var(--label); font-weight: 600; }
html .e3 .nav-link:focus-visible, html .hub-sub .nav-link:focus-visible { box-shadow: var(--hub-ring); }
html .e3 .cp-title h1 { font-size: var(--fs-h2); line-height: var(--lh-h2); font-weight: 700; letter-spacing: -.02em; }
html .e3 .e3-field input { min-height: var(--ch); border-radius: var(--r2); }
html .usr-once { background: var(--info-bg); border-color: color-mix(in srgb, var(--d-blue) 35%, #fff); border-radius: var(--r2); }
html .usr-cos { border: 1px solid var(--sep); border-radius: var(--r2); padding: 12px; }
html .usr-cos label { min-height: var(--rh-menu); border-radius: var(--r1); } html .usr-cos label:hover { background: var(--fill); }
html .usr-id small { color: var(--label2); } html .usr-id b { color: var(--label); font-weight: 600; }

/* ---------- navbar: company, period, account ---------- */
html header.o_main_navbar { height: auto; min-height: var(--tbh); align-items: center; background: var(--canvas); border-bottom: 1px solid var(--sep); }
html .hdr-r { gap: 4px; padding-right: 12px; }
html .o_main_navbar .o-brand { margin: 0 4px 0 0; }
html .o_main_navbar .o-brand .co-trigger, html .o_main_navbar .o-brand .co-label, html .o_main_navbar .o_navbar_btn { height: 36px; padding: 0 12px; border-radius: var(--r1); font-size: var(--fs-body); line-height: var(--lh-cell); font-weight: 500; color: var(--label); }
html .o_main_navbar .o-brand .co-trigger:hover, html .o_main_navbar .o_navbar_btn:hover { background: var(--fill); }
html .o_main_navbar .o_navbar_btn[aria-expanded="true"], html .o_main_navbar .o_user_menu_btn[aria-expanded="true"] { background: var(--accent-fill); }
html .o-caret, html .o-brand .co-caret { color: var(--label2); font-size: 10px; }
html #who .o_user_menu_btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 10px 0 4px; background: transparent; box-shadow: none; border: 0; border-radius: 99px; font-size: var(--fs-body); font-weight: 500; }
html #who .o_user_menu_btn:hover { background: var(--fill); }
html #who .who-av { width: 32px; height: 32px; font-size: var(--fs-sub); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--d-blue) 55%, transparent); }
html #who-menu .who-h { padding: 8px 12px; white-space: normal; } html #who-menu .who-h b { font-weight: 600; color: var(--label); }
html #who-menu .who-h .role { font-size: var(--fs-cap); letter-spacing: .02em; color: var(--label2); }
html .per-menu { min-width: 280px; padding: 16px; } html .per-menu label { font-size: var(--fs-sub); font-weight: 600; margin: 12px 0 6px; }
html .per-row { gap: 8px; } html .per-row .btn { min-width: var(--ch); min-height: var(--ch); padding: 0; font-size: 18px; }
html .per-row select { flex: 1; min-width: 0; }
html .o_switch_company_menu, html .co-menu { padding: 6px; } html .co-menu-h { color: var(--label2); font-size: var(--fs-cap); font-weight: 600; border-bottom: 1px solid var(--sep); }
html .o_switch_company_item { min-height: var(--rh-menu); border-radius: var(--r1); font-size: var(--fs-body); }
html .o_switch_company_item.is-current { font-weight: 600; }

/* ---------- dialogs and toasts ---------- */
html #modal .modal-content, html #usr-dlg .modal-content { max-height: calc(100vh - 48px); }
html .modal-header { align-items: flex-start; } html .modal-footer { justify-content: flex-start; }
html .btn-close { background-color: var(--fill); border-radius: 50%; opacity: 1; }
html .btn-close:hover { background-color: var(--sep); }
html .m-pop { padding: 12px; border-radius: var(--r3); }
html .o_notification_manager { top: calc(var(--tbh) + 8px); }
html .o_notification_bar { width: 4px; border-radius: 0; background: var(--d-blue); }
html .o_notification_body { border: 0; padding: 12px 16px 12px 12px; align-items: center; }
html .o_notification_content { font-size: var(--fs-body); line-height: var(--lh-body); font-weight: 500; }
html .o_notification_progress { background: var(--d-blue); height: 2px; opacity: .6; }

/* ---------- help page ---------- */
html .hp-wrap { gap: 24px; } html .hp-lead { color: var(--label2); font-size: var(--fs-body); }
html .hp-toc { top: calc(var(--tbh) + 8px); padding: 8px; } html .hp-card { scroll-margin-top: calc(var(--tbh) + 8px); }
html .hp-toc a { min-height: var(--rh-menu); display: flex; align-items: center; padding: 4px 12px; border-radius: var(--r1); color: var(--label); font-size: var(--fs-body); font-weight: 500; line-height: var(--lh-cell); }
html .hp-toc a:hover { background: var(--fill); color: var(--label); }
html .hp-who { height: 24px; display: inline-flex; align-items: center; padding: 0 10px; background: var(--fill); color: var(--label2); box-shadow: inset 0 0 0 1px var(--sep); font-size: var(--fs-cap); font-weight: 600; }
html .hp-card p, html .hp-list, html .hp-faq dd { font-size: var(--fs-body); line-height: var(--lh-body); }
html .hp-steps li { padding-left: 40px; line-height: var(--lh-body); }
html .hp-steps li::before { width: 28px; height: 28px; background: var(--accent-fill); color: var(--accent-t); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--d-blue) 55%, transparent); }
html .hp-fig { border-radius: var(--r3); border-color: var(--sep); } html .hp-fig figcaption { background: var(--surface); color: var(--label2); font-size: var(--fs-cap); border-top: 1px solid var(--sep); }
html .hp-t th { background: var(--bg); color: var(--label2); font-size: var(--fs-cap); font-weight: 600; border-bottom: 1px solid var(--sep); padding: 10px 12px; }
html .hp-t td { padding: 10px 12px; border-bottom: 1px solid var(--sep); } html .hp-t td:first-child, html .hp-faq dt { font-weight: 600; color: var(--label); }

/* ---------- sign-in gate, boot splash (both sign-in routes share one 48 px, 10 px-radius control shape) ---------- */
html .o_auth { background: var(--canvas); }
html .o_auth_card { max-width: 420px; padding: 32px; border: 1px solid var(--sep); border-radius: var(--r4); box-shadow: none; }
html .o_auth_app { font-size: var(--fs-h2); line-height: var(--lh-h2); font-weight: 600; letter-spacing: -.02em; color: var(--label); }
html .o_auth_title { font-size: var(--fs-h2); line-height: var(--lh-h2); font-weight: 700; color: var(--label); }
html .o_auth_sub, html .o_auth_foot { color: var(--label2); font-size: var(--fs-sub); line-height: var(--lh-sub); }
html .o_auth_card .btn { min-height: var(--ch-lg); width: 100%; border-radius: var(--r2); font-size: var(--fs-body); }
html .o_auth_card .btn-link { min-height: var(--ch); width: auto; }
html .o_auth_links { font-size: var(--fs-sub); margin-top: 8px; }
html .o_auth_eye { width: var(--ch); color: var(--label2); border-radius: var(--r1); } html .o_auth_eye:hover { color: var(--label); background: var(--fill); }
html .o_auth_hub { margin: 16px 0 0; padding: 0; border-top: 0; }
html .o_auth_hub .btn { background: var(--surface); border-color: var(--ctl-line); color: var(--label); font-weight: 500; }
html .o_auth_hub .btn:hover { background: var(--fill); }
html .o_auth .alert { padding: 10px 12px; font-size: var(--fs-sub); line-height: var(--lh-sub); }
html #boot-splash { background: var(--canvas); color: var(--label2); font-size: var(--fs-body); font-weight: 500; }
html .spin, html #boot-splash .spin { border-color: var(--sep); border-top-color: var(--accent-solid); }

/* ---------- phone <= 599px: usable nav, 44 px targets, 16 px fields, menus and dialogs as bottom sheets ---------- */
@media (max-width: 599px) {
  html header.o_main_navbar { padding: 6px 0 0; }
  html header.o_main_navbar #nv { margin: 4px 0 0; padding: 0 8px 6px; gap: 4px; display: flex; overflow-x: auto; }
  html .o_nav_entry, html .o_main_navbar #nv button { min-height: 44px; flex: 0 0 auto; padding: 0 14px; }
  html .hdr-r { padding: 0 8px; gap: 2px; } html .o_main_navbar .o_navbar_btn, html .o_main_navbar .o-brand .co-trigger { min-height: 44px; padding: 0 8px; }
  html #who .o_user_menu_btn { min-height: 44px; min-width: 44px; justify-content: center; padding: 0 6px; }
  html input, html select, html textarea, html .form-control, html .form-select { font-size: 16px; }
  html .dropdown-menu.dropdown-menu-end, html .o_switch_company_menu, html .o_menu_systray .dropdown-menu.co-menu, html .per-menu { position: fixed; min-width: 0; inset: auto 8px 8px 8px; width: auto; max-width: none; max-height: 75vh; overflow-y: auto; transform: none; z-index: 1200; border-radius: var(--r4); padding: 8px; box-shadow: 0 0 0 1px var(--sep), 0 -12px 48px rgba(0, 0, 0, .28); }
  html .dropdown-item { min-height: 48px; } html .dropdown-menu.per-menu { padding: 16px; }
  html .modal { padding: 0; } html .modal-dialog { margin: 0; min-height: 100%; align-items: flex-end; max-width: none; }
  html #modal .modal-content, html #usr-dlg .modal-content { max-height: 92vh; border-radius: var(--r4) var(--r4) 0 0; }
  html .modal-header { padding: 16px 16px 8px; } html .modal-body { padding: 8px 16px 16px; } html .modal-footer { padding: 12px 16px 20px; } html .modal-footer .btn { flex: 1 1 auto; }
  html .btn-close { min-width: 44px; min-height: 44px; }
  html .o_notification_manager { left: 8px; right: 8px; width: auto; min-width: 0; max-width: none; }
  html .hp-wrap { grid-template-columns: minmax(0, 1fr); padding: 0 8px 24px; } html .hp-toc { position: static; max-height: none; }
  html .hp-demo { grid-template-columns: minmax(0, 1fr); } html .hp-lead { margin: 0 8px 12px; }
  html .o_auth { padding: 16px 12px; align-items: start; } html .o_auth_card { padding: 24px 16px; }
  html .nav-tabs { overflow-x: auto; flex-wrap: nowrap; } html .nav-tabs .nav-link { flex: 0 0 auto; min-height: 44px; }
  html main { padding: 8px 12px 24px; }
  html .o_scorecard_grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  html .o_scorecard { padding: 12px; min-height: 96px; } html .dc-spark { margin: 8px -12px -12px; }
  html .o_scorecard_value, html .kpi-val { font-size: 22px; line-height: 28px; white-space: nowrap; }
  html .e3 .card-b { overflow-x: auto; }
}

/* owner request 2026-12-01: no logo on the sign-in page (image stays in the markup; screen only) */
html .o_auth_logo { display: none; }
