/* Odoo redesign: pivot, graph, calendar, reports, module dashboard (work package 2b).
   Numbers come from docs/odoo-reference (ODOO_DESIGN_SYSTEM.md, COLORS_AND_MEANINGS.md, catalog/VIEWS_AND_CHARTS.md 3.5-3.7, 3.13, 3.18, 4).
   Markup lives in index.html between <!-- PIVOT --> and the end of <!-- MODULE DASHBOARD -->; chart HTML is made by chartHtml() in js/app-core.js.
   Everything is scoped under .oc-* so no other screen is touched. */

/* ---------------------------------------------------------------- shared */
.oc-view { font-family: var(--odoo-font); font-size: 14px; line-height: 1.5; color: var(--odoo-body-color); min-width: 0; }
.oc-view *, .oc-view *::before, .oc-view *::after { box-sizing: border-box; }
.oc-view button { font-family: inherit; }
.oc-spacer { flex: 1 1 auto; }
.oc-muted { color: var(--odoo-gray-600); flex: none; }
.oc-note { font-size: 13px; line-height: 19.5px; color: var(--odoo-secondary-color); }
.oc-trunc { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.oc-r { text-align: right; }
.oc-empty { padding: 36px 16px; text-align: center; color: var(--odoo-secondary-color); font-size: 13px; }
.oc-card { background: #fff; border: 1px solid var(--odoo-border-color); border-radius: 8px; box-shadow: none; overflow: hidden; }
.oc-card-h { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--odoo-border-color); min-width: 0; }
.oc-card-h h3, .oc-dashbar h3, .oc-wt h3 { margin: 0; font-size: 15.4px; line-height: 23.1px; font-weight: 500; color: #000; }
.oc-card-b { padding: 16px; display: flex; flex-direction: column; gap: 16px; }
.oc-link { color: var(--odoo-link); }
.oc-link-btn { background: none; border: 0; padding: 0; color: var(--odoo-link); font-size: 13px; font-weight: 500; cursor: pointer; }
.oc-link-btn:hover { color: var(--odoo-link-hover); text-decoration: underline; }

/* buttons: height 32.3, padding 5 10, radius 6, weight 500 */
.oc-btn { display: inline-flex; align-items: center; gap: 6px; height: 32.3px; padding: 5px 10px; border: 1px solid var(--odoo-gray-400); border-radius: 6px;
  background: #fff; color: var(--odoo-body-color); font-size: 14px; line-height: 21px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.oc-btn:hover { background: var(--odoo-input-border-color); }
.oc-btn.oc-on { background: var(--odoo-teal-tint); border-color: var(--odoo-link); color: var(--odoo-link); }
.oc-btn-p { background: var(--odoo-primary); border-color: var(--odoo-primary); color: #fff; }
.oc-btn-p:hover { background: var(--odoo-primary-hover); border-color: var(--odoo-primary-hover); }
.oc-caret { display: inline-block; margin-left: 4px; border-top: .3em solid; border-right: .3em solid transparent; border-left: .3em solid transparent; vertical-align: middle; }
.oc-ib { display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 1px solid var(--odoo-gray-400); border-radius: 6px;
  background: #fff; color: var(--odoo-body-color); cursor: pointer; flex: none; }
.oc-ib:hover { background: var(--odoo-input-border-color); }
.oc-ib:disabled { opacity: .5; cursor: not-allowed; }
.oc-ib.on { background: var(--odoo-teal-tint); border-color: var(--odoo-link); color: var(--odoo-link); }
.oc-ib-p { background: var(--odoo-primary); border-color: var(--odoo-primary); color: #fff; }
.oc-ib-p:hover { background: var(--odoo-primary-hover); border-color: var(--odoo-primary-hover); }
.oc-ib-sm { width: 28px; height: 28px; }
.oc-ib-d { color: var(--odoo-danger-text); }
.oc-ib-d:hover { background: var(--odoo-danger-bg-subtle); border-color: var(--odoo-danger); }
/* joined icon group (flip / export, sort, chart type): bordered, radius 6, 27 x 26 buttons, active = grey */
.oc-grp { display: inline-flex; align-items: center; border: 1px solid var(--odoo-gray-400); border-radius: 6px; background: #fff; padding: 2px; gap: 0; }
.oc-grp .oc-ib { border: 0; width: 27px; height: 26px; margin: 0; border-radius: var(--odoo-radius-sm); background: transparent; }
.oc-grp .oc-ib:hover { background: var(--odoo-gray-100); }
.oc-grp .oc-ib.on { background: var(--odoo-input-border-color); color: var(--odoo-body-color); }
.oc-grp .oc-ib.on:hover { background: var(--odoo-border-color); }
.oc-navgrp { padding: 0; overflow: hidden; }
.oc-navgrp .oc-ib { width: 34.8px; height: 30.3px; border-radius: 0; }
.oc-navgrp .oc-ib + .oc-ib { border-left: 1px solid var(--odoo-gray-400); }
.oc-sel { height: 32.3px; padding: 0 28px 0 10px; border: 1px solid var(--odoo-gray-400); border-radius: 6px; background: #fff
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 12px 12px;
  color: var(--odoo-body-color); font-size: 14px; appearance: none; -webkit-appearance: none; max-width: 100%; cursor: pointer; }
.oc-sel:hover { border-color: var(--odoo-gray-500); }
.oc-full { width: 100%; }
.oc-input { height: 32.3px; padding: 5px 10px; border: 1px solid var(--odoo-input-border-color); border-radius: 6px; background: #fff; color: var(--odoo-body-color); font-size: 14px; min-width: 0; flex: 1 1 auto; }
.oc-input:hover { border-color: var(--odoo-gray-400); }
.oc-input:focus { border-color: var(--odoo-link); outline: none; }
.oc-lab { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--odoo-secondary); font-weight: 500; }
.oc-badge { display: inline-flex; align-items: center; padding: 3px 9.84px; border-radius: 50rem; font-size: 12px; line-height: 1.3; font-weight: 500; white-space: nowrap; }
.oc-b-sec { background: var(--odoo-badge-secondary-bg); color: var(--odoo-secondary); }
.oc-b-pri { background: var(--odoo-badge-primary-bg); color: var(--odoo-primary); }
.oc-b-info { background: var(--odoo-badge-info-bg); color: var(--odoo-badge-info-text); }
.oc-b-warn { background: var(--odoo-badge-warning-bg); color: var(--odoo-badge-warning-text); }
.oc-b-ok { background: var(--odoo-badge-success-bg); color: var(--odoo-badge-success-text); }
.oc-b-bad { background: var(--odoo-badge-danger-bg); color: var(--odoo-danger-text); }

/* dropdown menus: radius 12, border #DEE2E6, shadow 0 8 16 .15 */
.oc-dd { position: relative; display: inline-block; }
.oc-menu { position: absolute; top: calc(100% + 2px); left: 0; z-index: 50; min-width: 180px; max-height: min(340px, 60vh); overflow: auto; padding: 8px 0;
  background: #fff; border: 1px solid var(--odoo-border-color); border-radius: 12px; box-shadow: 0 8px 16px 0 rgba(0, 0, 0, .15); }
.oc-menu.oc-fixed { position: fixed; top: auto; z-index: 1060; }
.oc-menu.oc-right { left: auto; right: 0; }
.oc-menu.oc-menu-wide { width: 380px; max-width: calc(100vw - 32px); max-height: 64vh; padding: 8px 0; }
.oc-mi { position: relative; display: block; width: 100%; padding: 3px 20px 3px 28px; border: 0; background: none; text-align: left; font-size: 14px; line-height: 21px; color: var(--odoo-body-color); cursor: pointer; white-space: nowrap; }
.oc-mi:hover { background: var(--odoo-gray-100); }
.oc-mi.on { font-weight: 500; }
.oc-mi.on::before { content: ""; position: absolute; left: 10px; top: 50%; width: 5px; height: 9px; margin-top: -6px; border: solid var(--odoo-body-color); border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* toolbar under the control panel */
.oc-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 16px; }

/* ---------------------------------------------------------------- pivot */
.oc-pscroll { overflow: auto; max-height: 72vh; max-width: 100%; position: relative; }
.oc-pivot { border-collapse: separate; border-spacing: 0; font-size: 14px; line-height: 21px; color: var(--odoo-body-color); --oc-hr: 2; }
.oc-pivot th, .oc-pivot td { padding: 8px 4.8px; border-right: 1px solid var(--odoo-border-color); border-bottom: 1px solid var(--odoo-border-color); font-weight: 400; background: #fff; }
.oc-pivot thead th { position: sticky; z-index: 3; height: 37.7px; }
.oc-pivot thead tr:nth-child(1) th { top: 0; border-top: 1px solid var(--odoo-border-color); }
.oc-pivot thead tr:nth-child(2) th { top: 37.7px; }
.oc-pivot thead tr:nth-child(3) th { top: calc(37.7px * var(--oc-hr)); }
.oc-pivot .oc-corner { border: 0; background: transparent; left: 0; z-index: 4; min-width: 200px; }
.oc-pivot .oc-ch { background: var(--odoo-gray-100); text-align: left; white-space: nowrap; min-width: 90px; }
.oc-pivot .oc-mh { text-align: center; color: var(--odoo-secondary-color); white-space: nowrap; background: #fff; }
.oc-pivot .oc-rh { position: sticky; left: 0; z-index: 2; text-align: left; border-left: 1px solid var(--odoo-border-color); white-space: nowrap; min-width: 200px; }
.oc-pivot .oc-pc { text-align: right; font-weight: 600; white-space: nowrap; cursor: pointer; font-variant-numeric: tabular-nums; }
.oc-pivot .oc-zero { cursor: default; }
.oc-pivot .oc-tot .oc-pc, .oc-pivot .oc-tot .oc-rh, .oc-pivot .oc-tc { font-weight: 700; }
.oc-pivot .oc-lv1 .oc-ex { margin-left: 16px; }
.oc-pivot .oc-lv2 > span { margin-left: 32px; display: inline-block; }
.oc-pivot .oc-kid .oc-pc { font-weight: 400; }
.oc-pivot .oc-trow:hover > th, .oc-pivot .oc-trow:hover > td { background: var(--odoo-gray-100); }
.oc-pivot .oc-pc:not(.oc-zero):hover { color: var(--odoo-link); }
.oc-ex { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; text-align: left; }
.oc-pm { position: relative; flex: none; width: 14px; height: 14px; border-radius: var(--odoo-radius-sm); background: var(--odoo-body-color); }
.oc-pm::before { content: ""; position: absolute; left: 3px; right: 3px; top: 6px; height: 2px; background: #fff; }
.oc-pm.plus::after { content: ""; position: absolute; top: 3px; bottom: 3px; left: 6px; width: 2px; background: #fff; }

/* ---------------------------------------------------------------- graph */
.oc-canvasbox { background: #fff; border: .67px solid var(--odoo-border-color); border-radius: 8px; padding: 16px; min-width: 0; }
.oc-chart { --oc-h: 300px; --oc-pie: 300px; font-family: var(--odoo-font); font-size: 12px; line-height: 18px; color: var(--odoo-body-color); min-width: 0; }
.oc-chart.oc-sm { --oc-h: 200px; --oc-pie: 200px; }
.oc-chart [data-gk] { cursor: pointer; }
.oc-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; margin: 0 0 12px; font-size: 12px; color: var(--odoo-body-color); }
.oc-legend span, .oc-li { display: inline-flex; align-items: center; gap: 6px; }
.oc-legend i, .oc-li i { display: inline-block; flex: none; width: 30px; height: 12px; border-radius: 6px; }
.oc-plot { display: flex; height: var(--oc-h); margin-top: 8px; }
.oc-y { position: relative; flex: 0 0 56px; color: var(--odoo-secondary); font-size: 12px; }
.oc-y span { position: absolute; right: 8px; transform: translateY(50%); line-height: 1; white-space: nowrap; font-variant-numeric: tabular-nums; }
.oc-cv { position: relative; flex: 1 1 0; min-width: 0; }
.oc-cv > i { position: absolute; left: 0; right: 0; height: 0; border-top: 1px solid rgba(0, 0, 0, .1); }
.oc-cv > i.z { border-top-color: var(--odoo-backdrop); }
.oc-svg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; overflow: visible; }
.oc-cols { position: absolute; inset: 0; display: flex; z-index: 2; }
.oc-slot { position: relative; flex: 1 1 0; min-width: 0; height: 100%; }
.oc-slot:hover { background: rgba(0, 0, 0, .035); }
.oc-bar, .oc-seg { position: absolute; border: 1px solid var(--odoo-chart-bar-border); box-sizing: border-box; }
.oc-bar { left: 14%; width: 72%; }
.oc-seg { left: 14%; width: 72%; }
.oc-slot:hover .oc-bar, .oc-slot:hover .oc-seg { filter: brightness(.96); }
.oc-dot { position: absolute; left: 50%; width: 6px; height: 6px; border-radius: 50%; transform: translate(-50%, 50%); }
.oc-dot.lg { width: 12px; height: 12px; opacity: .9; }
.oc-dot.sum { width: 10px; height: 10px; }
.oc-stick { position: absolute; left: 50%; width: 2px; margin-left: -1px; }
.oc-xrow { display: flex; }
.oc-sp { flex: 0 0 56px; }
.oc-x { display: flex; flex: 1 1 0; min-width: 0; }
.oc-xl { flex: 1 1 0; min-width: 0; padding: 6px 2px 0; text-align: center; color: var(--odoo-secondary); font-size: 12px; }
.oc-xl span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oc-rot .oc-x { height: 92px; }
.oc-rot .oc-xl { position: relative; padding: 0; }
.oc-rot .oc-xl span { position: absolute; right: 50%; top: 8px; max-width: 150px; text-align: right; transform-origin: 100% 0; transform: rotate(-45deg); }
.oc-pie { display: flex; align-items: center; justify-content: center; gap: 48px; flex-wrap: wrap; padding: 8px 0; }
.oc-pie-svg { width: var(--oc-pie); height: var(--oc-pie); max-width: 100%; flex: none; }
.oc-donut-t { font-size: 14px; font-weight: 500; fill: var(--odoo-body-color); }
.oc-plist { display: flex; flex-direction: column; gap: 6px; min-width: 0; max-width: 280px; max-height: 320px; overflow-y: auto; padding-right: 4px; font-size: 12px; }
.oc-sm .oc-plist { max-height: 200px; }
.oc-plist .oc-li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oc-hrows { display: flex; flex-direction: column; gap: 6px; }
.oc-hr { display: grid; grid-template-columns: minmax(80px, 160px) minmax(0, 1fr) auto; gap: 8px; align-items: center; font-size: 12px; }
.oc-hl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; color: var(--odoo-secondary); }
.oc-ht { display: block; height: 16px; border-left: 1px solid var(--odoo-backdrop); }
.oc-ht b { display: block; height: 100%; }
.oc-hv { min-width: 48px; color: var(--odoo-secondary); font-variant-numeric: tabular-nums; }
.oc-hr:hover { background: rgba(0, 0, 0, .035); }
.oc-pr { margin-bottom: 10px; }
.oc-pt { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; margin-bottom: 3px; }
.oc-pt span:first-child { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.oc-pt span:last-child { color: var(--odoo-secondary); flex: none; }
.oc-pb { height: 8px; border-radius: 50rem; background: var(--odoo-input-border-color); overflow: hidden; }
.oc-pb b { display: block; height: 100%; border-radius: 50rem; }
.oc-radar { text-align: center; }
.oc-radar-svg { display: block; margin: 0 auto; max-width: 100%; }
.oc-radar-t { font-size: 11px; fill: var(--odoo-secondary); }
/* Odoo custom tooltip (.o_graph_custom_tooltip.popover): white, border .67 #DEE2E6, radius 12, shadow, padding 4 8, 13 / 19.5 */
#ocTip.o_graph_custom_tooltip { position: fixed; z-index: 1070; display: none; pointer-events: none; padding: 4px 8px; background: #fff; border: .67px solid var(--odoo-border-color);
  border-radius: 12px; box-shadow: 0 8px 16px 0 rgba(0, 0, 0, .15); font: 13px/19.5px var(--odoo-font); color: var(--odoo-body-color); max-width: 380px; width: auto; height: auto; }
#ocTip .oc-tip-h { font-weight: 500; }
#ocTip .oc-tip-r { display: flex; align-items: center; gap: 8px; }
#ocTip .oc-tip-sq { flex: none; width: 16px; height: 16px; }
#ocTip .oc-tip-l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; font-size: 12px; }
#ocTip .oc-tip-r b { font-weight: 700; margin-left: auto; padding-left: 4px; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- calendar */
.oc-calhead { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-bottom: 16px; }
.oc-caltitle { margin-left: 8px; font-weight: 700; font-size: 14px; }
.oc-calsub { margin-left: 4px; font-weight: 700; font-size: 12px; color: var(--odoo-secondary); }
.oc-calhead .oc-lab { margin-right: 4px; }
.oc-calbody { display: flex; align-items: flex-start; gap: 16px; }
.oc-calmain { flex: 1 1 0; min-width: 0; background: #fff; border: 1px solid var(--odoo-border-color); border-radius: 12px; overflow: hidden; }
.oc-calside { flex: 0 0 276px; min-width: 0; padding-right: 0; }
.oc-month { position: relative; }
.oc-month::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 32px; background: var(--odoo-gray-100); border-right: 1px solid var(--odoo-border-color); }
.oc-mhead, .oc-mgrid { position: relative; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); margin-left: 32px; }
.oc-mhead { border-bottom: 1px solid var(--odoo-border-color); }
.oc-dh { padding: 2px 4px; text-align: center; font-size: 12px; line-height: 18px; font-weight: 500; text-transform: uppercase; color: var(--odoo-body-color); }
.oc-cell { position: relative; min-height: 96px; padding: 0 2px 4px; border-right: 1px solid var(--odoo-border-color); border-bottom: 1px solid var(--odoo-border-color); min-width: 0; }
.oc-mgrid .oc-cell:nth-last-child(-n+7) { border-bottom: 0; }
.oc-mgrid .oc-cell:nth-child(7n) { border-right: 0; }
.oc-wk { position: absolute; left: -32px; top: 0; width: 32px; padding: 2px; text-align: center; font-size: 12px; line-height: 18px; color: var(--odoo-secondary-color); }
.oc-dn { display: block; width: 26px; height: 26px; margin: 2px auto; padding: 4px 0; border: 0; border-radius: 50%; background: none; color: var(--odoo-body-color); font-size: 14px; line-height: 18px; text-align: center; cursor: pointer; }
.oc-dn:hover { background: var(--odoo-input-border-color); }
.oc-dn.lg { width: 28px; height: 28px; font-size: 16px; padding: 4px 0; margin: 2px auto 4px; }
.oc-dn.today { background: var(--odoo-danger); color: #fff; }
.oc-cell.out .oc-dn { color: var(--odoo-gray-500); }
.oc-cell.out .oc-dn.today { color: #fff; }
.oc-evs { display: flex; flex-direction: column; gap: 1px; }
.oc-ev { display: block; width: 100%; height: 17.8px; margin: 0; padding: 0 4px; border: 0; border-radius: var(--odoo-radius-sm); background: var(--odoo-tag-0-bg); color: var(--odoo-tag-0-text); text-align: left;
  font-size: 12px; line-height: 17.85px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.oc-ev:hover { filter: brightness(.96); }
.oc-ev.wide { height: auto; min-height: 22px; padding: 2px 6px; margin-bottom: 4px; font-size: 12px; line-height: 18px; }
.oc-more { padding: 2px; border: 0; background: none; color: var(--odoo-link); font-size: 12px; line-height: 17px; text-align: left; cursor: pointer; }
.oc-more:hover { text-decoration: underline; }
.oc-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.oc-week.is-day { grid-template-columns: minmax(0, 1fr); }
.oc-wcol { display: flex; flex-direction: column; min-width: 0; min-height: 380px; border-right: 1px solid var(--odoo-border-color); }
.oc-wcol:last-child { border-right: 0; }
.oc-wcol.we { background: rgba(231, 235, 237, .5); }
.oc-wh { display: flex; flex-direction: column; align-items: center; padding: 2px 4px 4px; border-bottom: 1px solid var(--odoo-border-color); background: #fff; }
.oc-dow { font-size: 12px; line-height: 18px; font-weight: 500; text-transform: uppercase; }
.oc-wb { flex: 1 1 auto; padding: 6px 4px; min-width: 0; }
.oc-none { height: 1px; }
.oc-year { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 24px; padding: 16px; }
.oc-ymt { margin-bottom: 4px; padding: 0; border: 0; background: none; font-size: 14px; font-weight: 500; color: var(--odoo-body-color); cursor: pointer; text-align: left; }
.oc-ymt:hover { color: var(--odoo-link); }
.oc-yg, .oc-minigrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); text-align: center; }
.oc-yl { font-size: 11px; line-height: 20px; font-weight: 500; color: var(--odoo-gray-600); }
.oc-yd { height: 24px; padding: 0; border: 0; border-radius: 50%; background: none; font-size: 12px; color: var(--odoo-body-color); cursor: pointer; }
.oc-yd.we { background: rgba(231, 235, 237, .5); border-radius: 0; }
.oc-yd.out { visibility: hidden; }
.oc-yd.has { background: var(--odoo-teal-tint); color: var(--odoo-link); font-weight: 700; border-radius: 50%; }
.oc-yd.today { background: var(--odoo-danger); color: #fff; font-weight: 700; border-radius: 50%; }
.oc-yd:hover { background: var(--odoo-input-border-color); }
.oc-mini { padding-bottom: 12px; }
.oc-minihead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-size: 12px; font-weight: 500; color: var(--odoo-body-color); }
.oc-mini-nav { display: grid; place-items: center; width: 24px; height: 24px; border: 0; border-radius: 6px; background: none; color: var(--odoo-secondary); cursor: pointer; }
.oc-mini-nav:hover { background: var(--odoo-input-border-color); }
.oc-md { width: 100%; height: 30px; padding: 0; border: 0; background: none; font-size: 12px; color: var(--odoo-body-color); cursor: pointer; border-radius: 50%; position: relative; }
.oc-md:hover { background: var(--odoo-input-border-color); }
.oc-md.out { color: var(--odoo-gray-500); }
.oc-md.has::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--odoo-link); }
.oc-md.sel { box-shadow: 0 0 0 2px rgba(1, 126, 132, .5); }
.oc-md.today { background: var(--odoo-danger); color: #fff; font-weight: 700; }
.oc-md.today.has::after { background: #fff; }
.oc-sidef-t { margin: 8px 0 4px; font-size: 13px; font-weight: 700; color: var(--odoo-body-color); }
.oc-sidef-i { display: flex; align-items: center; gap: 8px; height: 21px; margin-bottom: 2px; font-size: 13px; }
.oc-sidef-i i { flex: none; width: 14px; height: 14px; border-radius: var(--odoo-radius-sm); }
/* the 12 record colours (tag palette: background, dark text of the same hue) */
.oc-ev-0 { background: var(--odoo-tag-0-bg); color: var(--odoo-tag-0-text); }
.oc-ev-1 { background: var(--odoo-tag-1-bg); color: var(--odoo-tag-1-text); }
.oc-ev-2 { background: var(--odoo-tag-2-bg); color: var(--odoo-tag-2-text); }
.oc-ev-3 { background: var(--odoo-tag-3-bg); color: var(--odoo-tag-3-text); }
.oc-ev-4 { background: var(--odoo-tag-4-bg); color: var(--odoo-tag-4-text); }
.oc-ev-5 { background: var(--odoo-tag-5-bg); color: var(--odoo-tag-5-text); }
.oc-ev-6 { background: var(--odoo-tag-6-bg); color: var(--odoo-tag-6-text); }
.oc-ev-7 { background: var(--odoo-tag-7-bg); color: var(--odoo-tag-7-text); }
.oc-ev-8 { background: var(--odoo-tag-8-bg); color: var(--odoo-tag-8-text); }
.oc-ev-9 { background: var(--odoo-tag-9-bg); color: var(--odoo-tag-9-text); }
.oc-ev-10 { background: var(--odoo-tag-10-bg); color: var(--odoo-tag-10-text); }
.oc-ev-11 { background: var(--odoo-tag-11-bg); color: var(--odoo-tag-11-text); }

/* ---------------------------------------------------------------- reports */
.oc-reports { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
.oc-rep-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.oc-rep-main { min-width: 0; }
.oc-docbg { max-height: 76vh; overflow: auto; padding: 16px; background: var(--odoo-input-border-color); }
.oc-flab { display: block; margin: 0 0 8px; font-size: 14px; line-height: 21px; font-weight: 500; color: #000; }
.oc-fgroup { min-width: 0; }
.oc-hint { margin-top: 4px; font-size: 12px; line-height: 18px; color: var(--odoo-secondary-color); }
.oc-pills { display: flex; flex-wrap: wrap; gap: 4px; }
.oc-pill { height: 28px; padding: 0 10px; border: 1px solid var(--odoo-gray-400); border-radius: 6px; background: #fff; color: var(--odoo-body-color); font-size: 13px; font-weight: 500; cursor: pointer; }
.oc-pill:hover { background: var(--odoo-input-border-color); }
.oc-pill.on { background: var(--odoo-teal-tint); border-color: var(--odoo-link); color: var(--odoo-link); }
.oc-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; }
.oc-check { display: flex; align-items: center; gap: 8px; font-size: 14px; line-height: 21px; cursor: pointer; min-width: 0; }
.oc-check input { appearance: none; -webkit-appearance: none; flex: none; width: 14px; height: 14px; margin: 0; border: 1px solid var(--odoo-gray-500); border-radius: 3.5px; background: #fff; cursor: pointer; position: relative; }
.oc-check input:checked { background: var(--odoo-primary); border-color: var(--odoo-primary); }
.oc-check input:checked::after { content: ""; position: absolute; left: 4px; top: 1px; width: 3px; height: 7px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.oc-saverow { display: flex; gap: 8px; align-items: center; }
.oc-saved { display: flex; align-items: center; gap: 8px; padding: 8px 16px; border-bottom: 1px solid var(--odoo-border-color); }
.oc-saved:last-child { border-bottom: 0; }
.oc-saved:hover { background: var(--odoo-gray-100); }
.oc-saved-b { display: block; flex: 1 1 0; min-width: 0; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }
.oc-saved-n { display: block; font-size: 14px; line-height: 21px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oc-saved-s { display: block; font-size: 12px; line-height: 18px; color: var(--odoo-secondary-color); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------------------------------------------------------------- module dashboard */
/* Odoo dashboard figures (spreadsheet scorecard, 09-dashboards): 97 high, radius 6, soft shadow, teal 12 px bold title, big centred value */
.oc-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; margin-bottom: 16px; }
.oc-kpi { position: relative; display: grid; grid-template-rows: auto 1fr auto; justify-items: stretch; gap: 0; min-width: 0; min-height: 97px; padding: 10px 12px; text-align: left;
  background: #fff; border: 0; border-radius: 6px; box-shadow: 0 1px 3px rgba(0, 0, 0, .1), 0 1px 2px rgba(0, 0, 0, .06); cursor: default; color: var(--odoo-body-color); overflow: hidden; }
.oc-kpi.is-drill { cursor: pointer; }
.oc-kpi.is-drill:hover { box-shadow: 0 1px 3px rgba(0, 0, 0, .1), 0 0 0 1px var(--odoo-link); }
.oc-kpi-l { display: flex; align-items: center; gap: 6px; min-width: 0; padding-right: 16px; font-size: 12px; line-height: 18px; font-weight: 700; color: var(--odoo-dash-title); }
.oc-kpi-l > i:first-child, .oc-kpi-l > svg:first-child { display: none; }
.oc-kpi-go { position: absolute; top: 10px; right: 10px; color: var(--odoo-gray-500); }
.oc-kpi-v { align-self: center; justify-self: center; max-width: 100%; font-size: 30px; line-height: 34px; font-weight: 500; color: var(--odoo-heading-color) !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oc-kpi-v.long { font-size: 20px; line-height: 28px; }
.oc-kpi-s { justify-self: center; max-width: 100%; font-size: 11px; line-height: 16px; color: var(--odoo-dash-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oc-kpi-s.oc-badge { margin-top: 2px; }
.oc-dashbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 16px; }
.oc-menu-h { display: flex; align-items: center; gap: 8px; padding: 0 16px 4px; }
.oc-menu-h .oc-flab { flex: 1; margin: 0; }
.oc-wset { margin: 0 12px 8px; padding: 8px; border: 1px solid var(--odoo-border-color); border-radius: 8px; }
.oc-wset-r { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.oc-wset-g { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin-bottom: 4px; }
.oc-wset .oc-sel { height: 28px; padding: 0 22px 0 8px; font-size: 12px; background-position: right 8px center; }
.oc-wset .oc-input { height: 28px; font-size: 12px; }
.oc-addw { display: block; width: calc(100% - 24px); margin: 0 12px; padding: 6px; border: 0; border-radius: 6px; background: none; color: var(--odoo-link); font-size: 14px; font-weight: 500; cursor: pointer; }
.oc-addw:hover { background: var(--odoo-teal-tint); }
.oc-widgets { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.oc-widgets > div { min-width: 0; }
.oc-widget { padding: 16px; height: 100%; border: 0; border-radius: 6px; box-shadow: 0 1px 3px rgba(0, 0, 0, .1), 0 1px 2px rgba(0, 0, 0, .06); }
.oc-wt { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 8px; padding-bottom: 8px; border-bottom: .67px solid var(--odoo-border-color); }
.oc-wt-t { flex: 1 1 0; min-width: 0; }
.oc-wt h3 { font-size: 18.2px; line-height: 24px; font-weight: 700; color: var(--odoo-dash-title); }
.oc-wkpi { text-align: center; padding: 16px 0 8px; }
.oc-wkpi-v { font-size: 30px; line-height: 36px; font-weight: 500; color: #000; }
.oc-wtable { max-height: 240px; overflow: auto; }
.oc-wtable table { width: 100%; font-size: 13px; border-collapse: collapse; }
.oc-wtable td { padding: 6px 4px; border-bottom: 1px solid var(--odoo-border-color); }
.oc-wtable tr { cursor: pointer; }
.oc-wtable tr:hover td { background: var(--odoo-gray-100); }
.oc-wtable td.oc-r { font-weight: 500; }
.oc-emptycard { padding: 48px 16px; text-align: center; }
.oc-empty-t { margin-bottom: 8px; font-size: 14px; font-weight: 500; color: var(--odoo-secondary-color); }

/* ---------------------------------------------------------------- responsive */
@media (min-width: 992px) {
  .oc-widgets { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .oc-w-third { grid-column: span 2; }
  .oc-w-half { grid-column: span 3; }
  .oc-w-full { grid-column: span 6; }
}
@media (min-width: 1200px) {
  .oc-reports { grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr); }
}
@media (max-width: 1199.98px) {
  .oc-year { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 991.98px) {
  .oc-calside, .oc-panelbtn { display: none !important; }
  .oc-calbody { display: block; }
  .oc-pie { gap: 16px; }
}
@media (max-width: 767.98px) {
  .oc-year { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 8px; }
  .oc-week { grid-template-columns: repeat(7, minmax(84px, 1fr)); overflow-x: auto; }
  .oc-week.is-day { grid-template-columns: minmax(0, 1fr); }
  .oc-calmain { overflow-x: auto; }
  .oc-cell { min-height: 72px; }
  .oc-checks { grid-template-columns: 1fr; }
  .oc-hr { grid-template-columns: minmax(60px, 100px) minmax(0, 1fr) auto; }
  .oc-calhead .oc-lab > span { display: none; }
  .oc-menu.oc-menu-wide { position: fixed; left: 16px; right: 16px; top: auto; width: auto; }
}
@media print { #ocTip { display: none !important; } }

/* polish wave: the legend sits below the plot like Odoo (stacked and multi-series charts); a single series has no legend, the measure button says it */
.oc-plotchart { display: flex; flex-direction: column; }
.oc-plotchart > .oc-legend { order: 3; margin: 12px 0 0; }
.oc-legend:has(> span:only-child) { display: none; }
