/* ═══════════════════════════════════════════════════════════════════
   SHELL: navbar, menus, systray, home menu, mobile drawer, control panel,
   dialog, toasts, command palette / search, notes panel, login
   Source: odoo-reference ODOO_DESIGN_SYSTEM.md section 4 + catalog/COMPONENTS.md N1-N14, D1, B1.
   ═══════════════════════════════════════════════════════════════════ */

/* ═════════════ NAVBAR (o_main_navbar): 46px, transparent over the page ═════════════ */
.o-nav { height: calc(var(--nav-h) + var(--safe-t)); flex-shrink: 0; display: flex; align-items: center; gap: 0;
         background: var(--o-nav); padding: calc(10px + var(--safe-t)) 8px 10px 8px; position: relative; z-index: 400; user-select: none; }
.o-nav-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 26px; margin: 0 1px; padding: 0 6px;
             color: var(--o-text); border-radius: var(--r); position: relative; transition: background var(--dur); flex-shrink: 0; }
.o-nav-btn:hover, .o-nav-btn.open, .o-nav-btn[aria-expanded="true"] { background: var(--o-hover); }
.o-nav-btn svg { width: 18px; height: 18px; }
.o-home-toggle svg { width: 16px; height: 16px; }
body.o-home-open .o-home-toggle { color: var(--A); }
#nav-toggle { display: none; }
.o-brand { display: inline-flex; align-items: center; height: 26px; margin: 0 1px 0 8px; padding: 0 8px; border-radius: var(--r);
           font-size: var(--odoo-fs-h4); font-weight: 500; line-height: 1.2; color: var(--o-text); cursor: pointer; white-space: nowrap; }
.o-brand:hover { background: var(--o-hover); color: var(--o-text); }
.o-menu { display: flex; align-items: center; height: 26px; min-width: 0; margin-left: 8px; }
.o-menu-item { position: relative; display: flex; align-items: center; height: 26px; }
.o-menu-btn { display: inline-flex; align-items: center; gap: 4px; height: 26px; margin: 0 1px; padding: 0 8px; border-radius: var(--r);
              font-size: 14px; font-weight: 400; line-height: 1.5; color: var(--o-text); white-space: nowrap; transition: background var(--dur); }
.o-menu-btn:hover, .o-menu-item.open > .o-menu-btn { background: var(--o-hover); }
.o-menu-item.active > .o-menu-btn { font-weight: 500; color: var(--o-heading); }
.o-menu-btn .caret { width: 10px; height: 10px; opacity: .6; margin-left: 1px; }
.o-menu-item.open > .o-menu-btn .caret { transform: rotate(180deg); }
body.o-home-open .o-menu, body.o-home-open .o-brand { visibility: hidden; }

/* dropdown panels: white, 1px #DEE2E6, radius 12, shadow, items 3px 20px radius 8 (N1) */
.o-dd, .dd-menu, #recent-dd, #help-menu {
  position: absolute; top: calc(100% + 4px); left: 0; min-width: 160px; padding: 4px; margin: 0;
  background: var(--o-surface); border: 1px solid var(--o-border); border-radius: var(--odoo-radius-xl);
  box-shadow: var(--odoo-popover-shadow); z-index: 600; display: none; }
.o-menu-item.open > .o-dd { display: block; animation: ddIn .1s var(--ease-out); }
.dd-menu, #recent-dd, #help-menu { left: auto; right: 0; min-width: 200px; }
.dd-menu.open, #recent-dd.open, #help-menu.open { display: block; animation: ddIn .1s var(--ease-out); }
#recent-dd { width: 300px; max-width: calc(100vw - 16px); padding: 0; overflow: hidden; }
.o-dd-item, .dd-item { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 27px; padding: 3px 20px; border-radius: var(--r3);
  font-size: 14px; line-height: 21px; font-weight: 400; color: var(--o-text); text-align: left; white-space: nowrap; cursor: pointer; }
.o-dd-item:hover, .dd-item:hover, .o-dd-item:focus-visible, .dd-item:focus-visible { background: var(--o-hover); color: var(--o-text); outline: none; }
.o-dd-item:focus-visible, .dd-item:focus-visible { box-shadow: inset 0 0 0 2px var(--o-action); }
.o-dd-item.active { font-weight: 500; color: var(--o-heading); background: var(--o-action-lt); }
.o-dd-item .kbd { margin-left: auto; padding-left: 16px; font-size: 12px; color: var(--o-text3); }
.dd-item .o-dd-kbd { margin-left: auto; font-size: 12px; line-height: 18px; padding: 0 6px; }
.dd-item svg { width: 16px; height: 16px; color: var(--o-text3); }
.dd-item.danger, .dd-item.danger svg { color: var(--err-text); }
.o-dd-hdr, .dd-label { padding: 8px 20px 2px; font-size: var(--odoo-fs-small); line-height: 1.5; color: var(--o-text3); }
.o-dd-sep, .dd-sep { height: 0; border-top: 1px solid var(--o-border); margin: 8px 0; }
.um-head { display: flex; align-items: center; gap: 12px; padding: 8px 20px 4px; margin-bottom: 4px; }
.um-head .hd-user-avatar { width: 36px; height: 36px; font-size: 14px; }
.um-name { font-weight: 500; color: var(--o-heading); font-size: 14px; line-height: 1.3; }
.um-role { font-size: var(--odoo-fs-small); color: var(--o-text3); text-transform: capitalize; }
.co-dd-item { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 33px; padding: 6px 12px; border-radius: var(--r3); text-align: left;
  font-size: 14px; color: var(--o-text); cursor: pointer; }
.co-dd-item:hover, .co-dd-item:focus-visible { background: var(--o-hover) !important; outline: none; }
.co-dd-item:focus-visible { box-shadow: inset 0 0 0 2px var(--o-action); }
.co-dd-item.on { background: var(--odoo-primary-bg-subtle) !important; color: var(--odoo-primary-text); font-weight: 500; }
.co-dd-item .co-ck { margin-left: auto; color: var(--o-action); }
.co-dd-item .co-nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.co-dd-item .co-role { flex-shrink: 0; padding: 1px 8px; border-radius: 800px; font-size: 11px; font-weight: 500; line-height: 16px; text-transform: capitalize; background: var(--sec-lt); color: var(--sec-dk); }
.co-dd-add { color: var(--o-link); font-weight: 500; }
.recent-hd { padding: 8px 16px; font-size: var(--odoo-fs-small); font-weight: 500; color: var(--o-text3); border-bottom: 1px solid var(--o-border); }
.recent-item { display: flex; align-items: center; gap: 8px; padding: 8px 16px; cursor: pointer; font-size: 14px; color: var(--o-text); }
.recent-item:hover, .recent-item:focus-visible { background: var(--o-hover); outline: none; }
.recent-item span:empty { display: none; }

/* systray (N3) */
.hd-actions { display: flex; align-items: center; height: 26px; margin-left: auto; gap: 0; }
.hd-actions > div { position: relative; display: flex; align-items: center; height: 26px; }
.hd-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 26px; margin: 0 1px; padding: 0 6px;
          color: var(--o-text); border-radius: var(--r); transition: background var(--dur); }
.hd-btn:hover, .hd-btn[aria-expanded="true"] { background: var(--o-hover); }
.hd-btn svg { width: 16px; height: 16px; }
#recent-cnt:not(:empty) { position: absolute; top: -5px; right: -3px; min-width: 16px; height: 16px; padding: 2px 4px; border-radius: 800px;
  background: var(--o-counter); color: #fff; font-size: 9.8px; font-weight: 700; line-height: 12px; text-align: center; pointer-events: none; }
.hd-company-chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; margin: 0 1px; padding: 0 8px; border-radius: var(--r);
                   font-size: 14px; color: var(--o-text); transition: background var(--dur); }
.hd-company-chip:hover, .hd-company-chip[aria-expanded="true"] { background: var(--o-hover); }
.hd-company-chip svg { display: none; width: 16px; height: 16px; }
.hd-company-chip span { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hd-user-chip { display: inline-flex; align-items: center; height: 36px; margin: -5px 4px -5px 1px; padding: 0 4px; border-radius: var(--r); }
.hd-user-chip:hover, .hd-user-chip[aria-expanded="true"] { background: var(--o-hover); }
.hd-user-avatar { width: 26px; height: 26px; border-radius: var(--r); background: var(--o-btn); display: flex; align-items: center; justify-content: center;
                  font-size: 11px; font-weight: 500; color: #fff; flex-shrink: 0; letter-spacing: .02em; }
.hd-user-name, .hd-user-role { display: none; }

/* ═════════════ HOME MENU (o_home_menu): tiles 142x115, icon 70x70 radius 8 ═════════════ */
#o-home { position: fixed; inset: calc(var(--nav-h) + var(--safe-t)) 0 0 0; z-index: 390; overflow-y: auto; display: none; padding: 0 16px;
  background:
    radial-gradient(rgba(33, 37, 41, .09) 1px, transparent 1.4px) 0 0 / 20px 20px,
    radial-gradient(1000px 520px at 6% 0%, rgba(113, 75, 103, .07), transparent 70%),
    radial-gradient(900px 520px at 96% 8%, rgba(1, 126, 132, .07), transparent 70%),
    var(--o-bg); }
[data-theme="dark"] #o-home {
  background:
    radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1.4px) 0 0 / 20px 20px,
    radial-gradient(1000px 520px at 6% 0%, rgba(167, 118, 155, .12), transparent 70%),
    radial-gradient(900px 520px at 96% 8%, rgba(2, 199, 181, .08), transparent 70%),
    var(--o-bg); }
body.o-home-open #o-home { display: block; animation: fadeIn .18s var(--ease-out); }
.o-home-inner { max-width: 850px; margin: 0 auto; padding: 24px 0 64px; }
.o-home-search { display: flex; align-items: center; gap: 8px; width: min(396px, 100%); height: 36.5px; margin: 0 auto 24px; padding: 4px 16px;
  background: var(--o-surface); border: 1px solid var(--o-border-btn); border-radius: 800px; }
.o-home-search:focus-within { border-color: #68A9AF; box-shadow: 0 0 0 2px color-mix(in srgb, var(--o-action) 35%, transparent); }
.o-home-search svg { width: 14px; height: 14px; color: var(--o-text3); }
.o-home-search input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; box-shadow: none; padding: 0; font-size: 14px; line-height: 21px; color: var(--o-text); }
.o-home-search input::placeholder { color: var(--o-text3); opacity: 1; }
.o-apps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0 0; margin-top: 24px; }
.o-app { display: flex; flex-direction: column; align-items: center; height: 115px; padding: 8px; margin-bottom: 16px; border-radius: var(--odoo-radius-xl);
  text-align: center; cursor: pointer; background: none; border: 0; color: var(--o-text); min-width: 0; }
.o-app:hover, .o-app.kb { background: color-mix(in srgb, var(--o-surface) 60%, transparent); }
.o-app:focus-visible { outline: 2px solid var(--o-action); outline-offset: 0; }
.o-app-ico { width: 70px; height: 70px; padding: 10px; border-radius: var(--r3); display: flex; align-items: center; justify-content: center; background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .075), 0 1px 1px -.5px rgba(42, 51, 70, .03), 0 2px 2px -1px rgba(42, 51, 70, .04), 0 3px 3px -1.5px rgba(42, 51, 70, .04),
              0 5px 5px -2.5px rgba(42, 51, 70, .03), 0 10px 10px -5px rgba(42, 51, 70, .03), 0 24px 24px -8px rgba(42, 51, 70, .03); }
[data-theme="dark"] .o-app-ico { background: #323640; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 8px 16px rgba(0, 0, 0, .35); }
.o-app-ico svg { width: 100%; height: 100%; }
.o-app-name { width: 100%; margin-top: 8px; font-size: 14px; font-weight: 500; line-height: 21px; color: var(--o-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.o-apps-empty { grid-column: 1 / -1; text-align: center; color: var(--o-text3); padding: 40px 0; font-size: 14px; }

/* ═════════════ MOBILE APP DRAWER (#side): Odoo small-screen app menu ═════════════ */
#side { display: none; }
#nav-overlay { position: fixed; inset: 0; background: var(--o-overlay); z-index: 499; display: none; }

/* ═════════════ CONTROL PANEL (o_control_panel): bg page, padding 8 16 16, gap 16 ═════════════ */
.tbar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; padding: 8px 16px 0; background: var(--o-bg); flex-shrink: 0; min-height: 40px; }
.tbar[style*="display:none"], .tbar[style*="display: none"] { display: none !important; }
.tbar-acts { display: contents; }
.tbar-acts > .bA { order: -2; }
.tbar-info { order: -1; display: flex; align-items: center; gap: 4px; min-width: 0; }
.tbar::after { content: ''; order: 1; flex: 1 1 0; min-width: 0; }
.tbar-acts > :not(.bA) { order: 2; }
.tbar-acts > :not(.bA) + :not(.bA) { margin-left: -8px; }   /* 8px between secondary buttons (flex gap is 16) */
.tbar-title { font-size: 14px; font-weight: 500; color: var(--o-heading); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 21px; }
.tbar-sub { display: none; }
.breadcrumb { display: none; align-items: center; gap: 4px; font-size: 14px; line-height: 21px; min-width: 0; }
.breadcrumb-item { color: var(--o-link); cursor: pointer; white-space: nowrap; font-size: var(--odoo-fs-small); }
.breadcrumb-item:hover { color: var(--odoo-link-hover); text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb-sep { color: var(--o-text3); font-size: var(--odoo-fs-small); }

/* ═════════════ DIALOG (modal-dialog-centered): radius 8, header 18.2/500, footer primary first ═════════════ */
.mo-ov { position: fixed; inset: 0; background: var(--o-overlay); z-index: 1000; display: none; align-items: center; justify-content: center;
         padding: calc(16px + var(--safe-t)) calc(16px + var(--safe-r)) calc(16px + var(--safe-b)) calc(16px + var(--safe-l)); overflow-y: auto; }
.mo-ov.on { display: flex; animation: moIn .12s var(--ease-out); }
.mo-bx { --mo-px: 16px; background: var(--o-surface); border: 1px solid rgba(0, 0, 0, .176); border-radius: var(--r3); box-shadow: var(--sh-dialog);
         width: 100%; max-width: 620px; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); margin: auto;
         display: flex; flex-direction: column; overflow: hidden; font-size: 14px; animation: moSlide .16s var(--ease-out); }
[data-theme="dark"] .mo-bx { border-color: rgba(255, 255, 255, .12); }
.mo-bx.wide { max-width: 800px; }
.mo-bx.mo-xs { max-width: 420px; }
.mo-bx.mo-sm { max-width: 520px; }
.mo-bx.mo-md { max-width: 640px; }
.mo-bx.mo-lg { max-width: 780px; }
.mo-h { display: flex; align-items: center; gap: 8px; padding: 16px; border-bottom: 1px solid var(--o-border); flex-shrink: 0; }
.mo-h-title { flex: 1; font-size: var(--odoo-fs-h3); font-weight: 500; line-height: 1.5; color: var(--o-heading); }
.mo-close { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--r); color: var(--o-text); opacity: .5; cursor: pointer; margin: -4px -4px -4px 0; }
.mo-close:hover { opacity: .85; background: var(--o-hover); }
.mo-close svg { width: 12px; height: 12px; }
#mo-b { overflow-y: auto; padding: 16px var(--mo-px); flex: 1; min-height: 0; }
.mo-body { padding: 16px var(--mo-px); overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: 12px; }
.mo-f, .mo-foot { display: flex; flex-direction: row-reverse; justify-content: flex-end; align-items: center; gap: 8px; padding: 16px; border-top: 1px solid var(--o-border); flex-shrink: 0; }
@keyframes moIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes moSlide { from { transform: translateY(-12px); opacity: .6; } to { transform: none; opacity: 1; } }
.form-view { display: flex; flex-direction: column; }
.form-view-header { padding: 16px; border-bottom: 1px solid var(--o-border); }
.form-view-header .fvh-title { font-size: var(--odoo-fs-h3); font-weight: 500; } .form-view-header .fvh-sub { font-size: var(--odoo-fs-small); color: var(--o-text3); margin-top: 2px; }
.form-view-body { padding: 16px; display: flex; flex-direction: column; gap: 16px; }
.form-view-footer { padding: 16px; border-top: 1px solid var(--o-border); display: flex; align-items: center; gap: 8px; }

/* ═════════════ COMMAND PALETTE (N8) and GLOBAL SEARCH: 620 wide, radius 8 ═════════════ */
.osearch-overlay, .cmd-ov { position: fixed; inset: 0; background: var(--o-overlay); z-index: 900; display: none; }
.osearch-overlay.open { display: block; }
.cmd-ov { z-index: 1200; align-items: flex-start; justify-content: center; padding: calc(12vh + var(--safe-t)) 16px 0; }
.cmd-ov.open { display: flex; }
.osearch-panel, .cmd-pal { background: var(--o-surface); border: 1px solid rgba(0, 0, 0, .176); border-radius: var(--r3); box-shadow: var(--sh-dialog); overflow: hidden; animation: moSlide .14s var(--ease-out); }
[data-theme="dark"] .osearch-panel, [data-theme="dark"] .cmd-pal { border-color: rgba(255, 255, 255, .12); }
.osearch-panel { position: fixed; top: calc(12vh + var(--safe-t)); left: 50%; transform: translateX(-50%); display: none; width: min(620px, calc(100vw - 32px)); z-index: 901; }
.osearch-panel.open { display: block; }
.cmd-pal { width: 620px; max-width: 100%; display: block; }
.osearch-input-row, .cmd-inp-row { display: flex; align-items: center; gap: 8px; padding: 16px 24px; margin-bottom: 8px; border-bottom: 1px solid var(--o-border); min-height: 56.7px; }
.osearch-input-row svg, .cmd-inp-row svg { width: 14px; height: 14px; color: var(--o-text3); flex-shrink: 0; }
.cmd-inp-row > svg { order: 2; }
.cmd-inp-esc { display: none; }
#osearchInput, #cmd-input { flex: 1; min-width: 0; border: 0 !important; border-radius: 0; box-shadow: none !important; outline: none; font-size: 14px; line-height: 21px; padding: 0; color: var(--o-text); background: transparent; }
#osearchInput::placeholder, #cmd-input::placeholder { color: var(--o-text3); opacity: 1; }
.osearch-input-row:focus-within, .cmd-inp-row:focus-within { box-shadow: inset 0 -2px 0 var(--o-action); }
.osearch-filters { display: flex; gap: 8px; padding: 0 24px 8px; overflow-x: auto; }
.osearch-filters:empty { display: none; }
#osearchResults, #cmd-results { max-height: min(400px, 55vh); overflow-y: auto; padding: 0 0 8px; }
.osearch-result, .osearch-res-item, .cmd-item, .gs-item { display: flex; align-items: center; gap: 12px; padding: 8px 24px; cursor: pointer; border: 0; }
.osearch-result:hover, .osearch-res-item:hover, .cmd-item:hover, .gs-item:hover { background: var(--o-row-hover); }
.osearch-result.active, .osearch-res-item.on, .cmd-item.active, .gs-item.gs-active { background: var(--o-sel); }
.osr-ico, .osearch-res-ico, .cmd-ico2 { width: 24px; height: 24px; border-radius: var(--r); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--o-text3); font-size: 14px; }
.osr-ico svg, .cmd-ico2 svg { width: 16px; height: 16px; color: var(--o-text3); }
.osr-main, .osearch-res-title, .cmd-label, .gs-main { font-size: 14px; font-weight: 400; color: var(--o-text); }
.osr-sub, .osearch-res-sub, .cmd-sub, .gs-sub { font-size: var(--odoo-fs-small); color: var(--o-text3); }
.osearch-res-content { flex: 1; min-width: 0; } .osr-tag { margin-left: auto; }
.osearch-section, .cmd-section, .gs-section { padding: 8px 24px 4px; font-size: var(--odoo-fs-small); font-weight: 500; color: var(--o-text3); }
.osearch-hint { display: flex; gap: 16px; padding: 8px 24px; flex-wrap: wrap; background: var(--odoo-gray-100); border-top: 1px solid var(--o-border); color: var(--o-text3); }
.osearch-hint-item { display: flex; align-items: center; gap: 4px; font-size: var(--odoo-fs-small); color: var(--o-text3); }
.osearch-hint-item b { color: var(--A); font-weight: 500; }
.osearch-hint-try { margin-left: auto; }
kbd, .cmd-kbd { display: inline-block; font-family: var(--ft); font-size: var(--odoo-fs-small); line-height: 19.5px; padding: 0 8px; color: var(--odoo-gray-700); background: var(--odoo-gray-100);
  border: 1px solid var(--odoo-input-border-color); border-radius: var(--odoo-radius-sm);
  box-shadow: 0 1px 1px rgba(0, 0, 0, .2), inset 0 -1px 1px 1px rgba(231, 235, 237, .8), inset 0 2px 0 rgba(255, 255, 255, .8); }
[data-theme="dark"] kbd, [data-theme="dark"] .cmd-kbd { box-shadow: 0 1px 1px rgba(0, 0, 0, .5); }
.cmd-kbd { margin-left: auto; }
.osearch-empty, #cmd-empty, .gs-empty { display: flex; flex-direction: column; align-items: center; padding: 32px; gap: 8px; color: var(--o-text3); font-size: 14px; text-align: center; }
#gsearch-panel { position: absolute; top: 100%; left: 0; right: 0; background: var(--o-surface); border: 1px solid var(--o-border); border-radius: 0 0 var(--r3) var(--r3);
  box-shadow: var(--odoo-popover-shadow); z-index: 500; max-height: 460px; overflow-y: auto; display: none; }
.gs-filter-bar { display: flex; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--o-border); flex-wrap: wrap; }
.gs-ico { font-size: 16px; width: 24px; text-align: center; flex-shrink: 0; }

/* ═════════════ NOTES PANEL (chatter style): closed = not focusable ═════════════ */
#qnotes-pan { position: fixed; right: 0; top: calc(var(--nav-h) + var(--safe-t)); bottom: 0; width: 380px; max-width: 100vw; background: var(--o-surface);
  border-left: 1px solid var(--o-border); z-index: 350; display: flex; flex-direction: column;
  transform: translateX(100%); visibility: hidden; transition: transform .2s var(--ease-out), visibility 0s linear .2s; padding-bottom: var(--safe-b); }
#qnotes-pan.open { transform: none; visibility: visible; transition: transform .2s var(--ease-out), visibility 0s; box-shadow: var(--odoo-popover-shadow); }
.qnotes-hd { display: flex; align-items: center; justify-content: space-between; padding: 8px 16px; border-bottom: 1px solid var(--o-border); flex-shrink: 0; min-height: 52px; }
.qnotes-hd-title { font-size: var(--odoo-fs-h4); font-weight: 500; color: var(--o-heading); }
#qnotes-body { flex: 1; overflow-y: auto; padding: 16px; background: var(--odoo-gray-100); }
.note-item { position: relative; padding: 0 0 16px 40px; margin-bottom: 16px; border-bottom: 1px solid var(--o-border); font-size: 14px; color: var(--o-text); }
.note-item:last-child { border-bottom: 0; }
.note-item::before { content: ''; position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: var(--r);
  background: var(--o-btn) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='white' stroke-width='1.6'%3E%3Ccircle cx='10' cy='7' r='3'/%3E%3Cpath d='M4 17c0-3.3 2.7-5.5 6-5.5s6 2.2 6 5.5' stroke-linecap='round'/%3E%3C/svg%3E") center / 18px no-repeat; }
.note-ts { font-size: 11px; color: var(--o-text3); margin-top: 4px; }
.qnotes-input { padding: 16px; border-top: 1px solid var(--o-border); flex-shrink: 0; background: var(--odoo-gray-100); }
.qnotes-input textarea { width: 100%; resize: none; margin-bottom: 8px; min-height: 64px; }
.qnotes-input .bA { width: auto !important; }

/* ═════════════ NOTIFICATIONS (o_notification): coloured left bar, no icon (B1) ═════════════ */
#toast-container { position: fixed; top: calc(var(--nav-h) + var(--safe-t) + 6px); right: calc(16px + var(--safe-r)); z-index: 1055; display: flex; flex-direction: column; align-items: flex-end; gap: 8px;
  pointer-events: none; width: calc(100vw - 32px); max-width: 600px; }
.o-notif { --nc: var(--ok); position: relative; pointer-events: auto; display: flex; align-items: flex-start; gap: 8px; min-width: 288px; max-width: 100%; width: fit-content;
  padding: 8px 8px 8px 16px; background: var(--o-surface); border: 1px solid var(--o-border); border-left: 0; border-radius: var(--r); box-shadow: var(--sh-toast);
  font-size: 14px; line-height: 21px; color: var(--o-text); cursor: pointer; overflow: hidden; animation: notifIn .2s var(--ease-out); }
.o-notif::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 8px; background: var(--nc); }
.o-notif::after { content: ''; position: absolute; left: 8px; right: 0; bottom: 0; height: 3px; background: var(--nc); opacity: .75; transform-origin: left; animation: notifBar var(--nd, 3200ms) linear forwards; }
.o-notif.sticky::after { display: none; }
.o-notif.paused::after, .o-notif:hover::after, .o-notif:focus-within::after { animation-play-state: paused; }
.o-notif-btns { display: flex; align-items: center; gap: 16px; flex-shrink: 0; align-self: center; }
.o-notif-act { height: 19.5px; padding: 0 8px; border-radius: var(--odoo-radius-sm); background: var(--o-btn); color: #fff; font-size: var(--odoo-fs-small); font-weight: 700; line-height: 19.5px; }
.o-notif-act:hover { background: var(--o-btn-hover); }
.o-notif.out { animation: notifOut .2s var(--ease-in) forwards; }
.o-notif-ico { display: none; }
.o-notif-msg { flex: 1; min-width: 0; word-wrap: break-word; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.o-notif-x { width: 21px; height: 21px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; color: var(--o-text); opacity: .5; border-radius: var(--r); font-size: 16px; line-height: 1; }
.o-notif-x:hover { opacity: .9; background: var(--o-hover); }
@keyframes notifIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes notifOut { to { opacity: 0; transform: translateX(24px); } }
@keyframes notifBar { to { transform: scaleX(0); } }

/* ═════════════ LOGIN (web.login) ═════════════ */
#login-screen { background: var(--o-bg) !important; padding: var(--safe-t) var(--safe-r) var(--safe-b) var(--safe-l); }
.o-login { width: min(380px, calc(100vw - 32px)); background: var(--o-surface); border: 1px solid var(--o-border); border-radius: var(--r3); padding: 32px 32px 24px; }
.o-login-logo { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 24px; }
.o-login-mark { display: block; width: 56px; height: 56px; } .o-login-mark svg { width: 100%; height: 100%; }
.o-login-word { font-size: var(--odoo-fs-h2); font-weight: 500; color: var(--o-heading); line-height: 1.2; }
.o-login-sub { font-size: var(--odoo-fs-small); color: var(--o-text3); }
.o-login-lbl { display: block; font-size: 14px; font-weight: 500; color: var(--o-heading); margin-bottom: 8px; }
#login-users { display: flex; flex-direction: column; gap: 4px; margin-bottom: 16px; }
.lu-card { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 12px; text-align: left; background: var(--o-surface); border: 1px solid var(--o-border); border-radius: var(--r3);
           color: var(--o-text); cursor: pointer; transition: background var(--dur), border-color var(--dur); }
.lu-card:hover { background: var(--odoo-gray-100); border-color: var(--o-border-btn); }
.lu-card.sel { background: var(--o-action-lt); border-color: var(--o-action); }
.lu-av { width: 32px; height: 32px; border-radius: var(--r); background: var(--o-btn); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 500; flex-shrink: 0; }
.lu-name { flex: 1; min-width: 0; font-size: 14px; font-weight: 500; color: var(--o-heading); }
.lu-role { font-size: var(--odoo-fs-small); color: var(--o-text3); text-transform: capitalize; }
#login-pin-section .bA { width: 100%; margin-top: 16px; }
#login-pin { letter-spacing: .3em; }
.o-login-foot { text-align: center; margin-top: 24px; font-size: var(--odoo-fs-small); color: var(--o-text3); }
.o-login-foot b { color: var(--A); font-weight: 500; }

/* ═════════════ SERVER MODE: sign in, loading screen, progress bar (js/session.js, js/store.js) ═════════════ */
.um-mail { font-size: 12px; color: var(--o-text3); overflow-wrap: anywhere; text-transform: none; }
.sl-form .finp { width: 100%; }
.sl-gap { margin-top: 16px; }
.sl-pw { position: relative; }
.sl-pw .finp { padding-right: 64px; }
.sl-eye { position: absolute; right: 0; top: 0; bottom: 0; min-width: 56px; padding: 0 12px; background: transparent; border: 0; color: var(--o-action); font-size: 13px; font-weight: 500; cursor: pointer; }
.sl-eye:hover { text-decoration: underline; }
.sl-caps { margin-top: 6px; font-size: var(--odoo-fs-small); color: var(--o-text3); }
.sl-err { margin-top: 8px; font-size: 13px; color: var(--err); line-height: 1.4; }
.sl-msg { margin-bottom: 16px; padding: 8px 12px; font-size: 13px; line-height: 1.4; color: var(--o-text); background: var(--o-action-lt); border: 1px solid var(--o-border); border-radius: var(--r3); }
.sl-msg.warn { border-color: var(--o-action); }
.sl-go { width: 100%; margin-top: 16px; }
.sl-foot { text-align: center; margin-top: 16px; font-size: 13px; }
.sl-link { color: var(--o-action); text-decoration: none; }
.sl-link:hover { text-decoration: underline; }
[hidden].sl-err, [hidden].sl-caps, [hidden].sl-msg { display: none; }
.sl-title { margin: 0 0 12px; text-align: center; font-size: var(--odoo-fs-h2); font-weight: 500; color: var(--o-heading); line-height: 1.2; }
.sl-note { text-align: center; margin-top: 8px; font-size: 13px; color: var(--o-text-muted, var(--o-text)); }
/* Users page (server mode): one-time password box + small helpers */
.srv-secret { display: block; margin: 8px 0; padding: 10px 12px; font: 600 17px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .04em; word-break: break-all; user-select: all; background: var(--o-action-lt); border: 1px dashed var(--o-action); border-radius: var(--r3); }
.srv-pw-row { display: flex; gap: 6px; align-items: center; }
.srv-pw-row .finp { flex: 1; min-width: 0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.srv-checks { display: flex; flex-direction: column; gap: 6px; }
.srv-checks label { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.srv-hint { font-size: 12.5px; color: var(--o-text-muted, var(--o-text)); margin-top: 4px; }
.srv-acct { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.boot-screen { position: fixed; inset: 0; z-index: 9998; display: flex; align-items: center; justify-content: center; background: var(--o-bg); padding: var(--safe-t) 16px var(--safe-b); }
.boot-card { width: min(380px, 100%); text-align: center; background: var(--o-surface); border: 1px solid var(--o-border); border-radius: var(--r3); padding: 32px; }
.boot-title { margin-top: 12px; font-size: var(--odoo-fs-h2); font-weight: 500; color: var(--o-heading); }
.boot-msg { margin: 8px 0 16px; font-size: 14px; color: var(--o-text3); line-height: 1.4; }
.boot-ico { color: var(--err); display: flex; justify-content: center; }
.boot-spin { display: inline-block; width: 28px; height: 28px; border: 3px solid var(--o-border); border-top-color: var(--o-action); border-radius: 50%; animation: bootSpin .8s linear infinite; }
@keyframes bootSpin { to { transform: rotate(360deg); } }
.st-bar { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 100001; background: var(--o-action); transform: scaleX(0); transform-origin: left center; opacity: 0; pointer-events: none; }
.st-bar.on { opacity: 1; animation: stBar 1.4s ease-in-out infinite; }
@keyframes stBar { 0% { transform: scaleX(.05); transform-origin: left center; } 50% { transform: scaleX(.7); transform-origin: left center; } 100% { transform: scaleX(1); transform-origin: right center; opacity: .3; } }
button.is-busy { opacity: .65; cursor: progress; }
@media (prefers-reduced-motion: reduce) { .boot-spin { animation-duration: 2.4s; } .st-bar.on { animation: none; transform: scaleX(1); } }
@media (max-width: 480px) { .o-login { padding: 24px 20px 20px; } .boot-card { padding: 24px 20px; } }

/* ═════════════ RESPONSIVE SHELL ═════════════ */
@media (max-width: 1199.98px) { .hd-company-chip span { max-width: 140px; } }
@media (max-width: 991.98px) {
  .o-menu { display: none; }
  #nav-toggle { display: inline-flex; }
  .o-apps { grid-template-columns: repeat(6, 1fr); }
  .hd-company-chip svg { display: inline-block; } .hd-company-chip span { display: none; }
  #side { display: flex; position: fixed; inset: 0 auto 0 0; width: 290px; max-width: 86vw; z-index: 500; background: var(--o-surface); flex-direction: column; overflow-y: auto;
    transform: translateX(-102%); visibility: hidden; transition: transform .2s var(--ease-out), visibility 0s linear .2s; padding: var(--safe-t) 0 var(--safe-b) var(--safe-l);
    border-right: 1px solid var(--o-border); border-radius: 0 var(--odoo-radius-xl) var(--odoo-radius-xl) 0; }
  #side.nav-open { transform: none; visibility: visible; transition: transform .2s var(--ease-out), visibility 0s; box-shadow: var(--odoo-popover-shadow); }
  #side .o-side-hd { display: flex; align-items: center; gap: 8px; height: var(--nav-h); padding: 0 16px; font-size: var(--odoo-fs-h4); font-weight: 500; color: var(--o-heading); flex-shrink: 0; }
  #side .ns { padding: 4px 0 8px; }
  #side .nst { padding: 8px 16px 4px; font-size: var(--odoo-fs-small); color: var(--o-text3); }
  /* Odoo settings-tab look: h 40, radius 0 8 8 0, current = teal tint + 2px teal bar */
  #side .ni { display: flex; align-items: center; gap: 8px; width: calc(100% - 8px); height: 40px; padding: 0 16px; border-radius: 0 var(--r3) var(--r3) 0; font-size: 14px; color: var(--o-text); text-align: left; }
  #side .ni:hover { background: var(--o-hover); }
  #side .ni.on { background: var(--o-action-lt); color: var(--o-heading); font-weight: 500; box-shadow: inset 2px 0 0 var(--o-action); }
  #side .nic { width: 20px; display: flex; align-items: center; justify-content: center; color: var(--o-text3); }
  #side .ni.on .nic { color: var(--o-action); }
  #side .nic svg { width: 16px; height: 16px; }
  .o-solar-mark { display: inline-flex; width: 24px; height: 24px; }
  .o-solar-mark svg { width: 24px; height: 24px; }
  #side .ni-badge { margin-left: auto; }
}
@media (min-width: 992px) { #nav-overlay { display: none !important; } }
@media (max-width: 767.98px) {
  .o-apps { grid-template-columns: repeat(4, 1fr); }
  .o-nav { padding-left: calc(4px + var(--safe-l)); padding-right: 4px; }
  .o-brand { font-size: 16px; margin-left: 4px; padding: 0 6px; }
  .hd-btn.o-hide-m, .hd-actions > div.o-hide-m { display: none; }
  .hd-btn, .o-nav-btn { min-width: 36px; }
  .hd-user-chip { margin-right: 0; }
  .tbar { padding: 8px 12px 0; }
  .breadcrumb { display: none !important; }
  .tbar-title { font-size: 16px; }
  .tbar-acts > :not(.bA) { font-size: 0; gap: 0; padding: 0 9px; }
  .tbar-acts > :not(.bA) svg { width: 14px; height: 14px; }
  .tbar-acts > :not(.bA) > span { margin: 0 !important; }
  .mo-ov { padding: 0; align-items: stretch; }
  .mo-bx { max-width: none !important; max-height: none !important; border-radius: 0; border: 0; height: 100% !important; margin: 0; --mo-px: 16px; }
  .mo-h { padding-top: calc(16px + var(--safe-t)); }
  .mo-f { padding-bottom: calc(16px + var(--safe-b)); }
  .cmd-ov { padding-top: calc(8px + var(--safe-t)); }
}
@media (max-width: 575.98px) {
  .o-apps { grid-template-columns: repeat(4, 1fr); }
  .o-app { padding: 8px 2px; } .o-app-name { font-size: 12px; }
  .o-home-inner { padding-top: 8px; }
}
@media (max-width: 400px) {
  /* 375px: brand + home + search + user fit without overflow */
  .o-brand { max-width: 112px; overflow: hidden; text-overflow: ellipsis; }
  .hd-company-chip { display: none; }
}
