/* Ozado web: accessibility, hierarchy and restraint from the supplied apple-design skill.
   Screen UI only; commercial documents and printed reports retain their layout. */
@media screen {
:root {
 --oz-font:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
 --oz-surface:#ffffff;--oz-surface-2:#f4f6f9;--oz-canvas:#f4f6f9;
 --oz-text:#1d2736;--oz-text-2:#526174;--oz-text-3:#526174;
 --oz-accent:#2459ce;--oz-accent-hover:#1947b0;--oz-border:#d6dce5;--oz-hair:#e5e9ef;--oz-hover:#eef3fa;
 --oz-success:#166534;--oz-success-bg:#dcfce7;--oz-warning:#854d0e;--oz-warning-bg:#fef3c7;--oz-danger:#b42318;--oz-danger-bg:#fee4e2;
 --oz-size-title:1.75rem;--oz-size-section:1.125rem;--oz-size-group:.9375rem;--oz-size-body:.875rem;--oz-size-table:.875rem;--oz-size-caption:.75rem;
 --oz-radius-panel:12px;--oz-radius-control:8px;
 --oz-space-section:24px;--oz-space-panel:24px;
 --oz-shadow-card:0 1px 2px rgba(29,39,54,.04);
}
html.oz-oscuro {
 --oz-canvas:#111827;--oz-surface:#1b2535;--oz-surface-2:#253246;--oz-hover:#2c3c53;
 --oz-text:#edf2f8;--oz-text-2:#bac6d6;--oz-text-3:#bac6d6;--oz-border:#53647c;--oz-hair:#3b4a60;
 --oz-accent:#9bbdff;--oz-accent-hover:#bad0ff;
 --oz-success:#a6edb8;--oz-success-bg:#163c2a;--oz-warning:#ffe09a;--oz-warning-bg:#483719;--oz-danger:#ffb4ae;--oz-danger-bg:#502623;
 --oz-shadow-card:none;
}
html {scroll-padding-top:120px;}
body,body :is(input,select,textarea,button) {font-family:var(--oz-font);}
body {font-size:var(--oz-size-body);line-height:1.55;background:var(--oz-canvas);color:var(--oz-text);}
body .app .main {min-width:0;color:var(--oz-text);}
body .app :is(.header,.tasks-header) {gap:16px;flex-wrap:wrap;background:var(--oz-surface);border-bottom:1px solid var(--oz-border);box-shadow:none;}
body .app :is(.header,.tasks-header) h1 {font-size:var(--oz-size-title)!important;line-height:1.25;letter-spacing:-.035em;font-weight:650!important;overflow-wrap:anywhere;}
body .app :is(.header,.tasks-header) :is(p,.subtitle) {color:var(--oz-text-2);font-size:.875rem;line-height:1.5;}
body .app :is(.header-controls,.header-actions,.filters,.tools,.section-header) {flex-wrap:wrap;gap:10px;min-width:0;}
body .app .header-controls {max-width:100%;}
body .app :is(.table-card,.summary-card,.metric-card,.chart-card,.detail-card,.report-card,.emp-card,.service-card,.pj-proj,.cc-control,.mf-card) {border-radius:var(--oz-radius-panel);border-color:var(--oz-border);background:var(--oz-surface);box-shadow:var(--oz-shadow-card);}
body .app :is(.muted,.text-muted,.subtitle,.section-note,.task-meta,.bd-card-meta,.pj-date,.pj-proj-desc,.field-hint,.help-text,.summary-label) {color:var(--oz-text-2)!important;line-height:1.5;}
body .app :is(.pj-proj,.metric-card,.summary-card,.table-card):hover {transform:none!important;}
body .app :is(h2,h3) {text-wrap:balance;}
body .app :is(.metric-value,.kpi-value,.summary-value.money,td.money,.amount) {font-variant-numeric:tabular-nums;}
body :is(.app,.modal,.drawer,.mf-box) :is(.btn,button.icon-btn,.oz-icon-btn,.bd-mini,.pv-flow-copy) {min-height:38px;border-radius:8px;font-size:.8125rem;font-weight:600;line-height:1.4;transition:background-color .12s ease,border-color .12s ease;}
body :is(.app,.modal,.drawer,.mf-box) :is(.icon-btn,.oz-icon-btn,.modal-close,.drawer-close) {min-width:36px;min-height:36px;}
body :is(.app,.modal,.drawer,.mf-box) .btn.primary:not(.danger) {background:#2459ce!important;border-color:#2459ce!important;color:#fff!important;}
body :is(.app,.modal,.drawer,.mf-box) .btn.primary:not(.danger):hover {background:#1947b0!important;border-color:#1947b0!important;}
body :is(button,.btn,[role=button]):not(:disabled):active {filter:brightness(.94);transform:none!important;}
body :is(button,input,select,textarea,a,summary,[tabindex]):focus-visible {outline:3px solid var(--oz-accent)!important;outline-offset:3px;box-shadow:none!important;}
body :is(button,.btn,input,select,textarea):disabled {cursor:not-allowed;opacity:.6;}
body :is(.app,.modal,.drawer,.mf-box) :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=hidden]):not([type=file]),select,textarea) {border:1px solid var(--oz-border);background:var(--oz-surface);color:var(--oz-text);border-radius:8px;min-height:38px;font-size:.875rem;line-height:1.5;}
body :is(input,textarea)::placeholder {color:var(--oz-text-2)!important;opacity:1;}
body :is(.app,.modal,.drawer,.mf-box) :is(.field>span,.form-group>label,.field-label,.filters>label) {font-size:.8125rem;font-weight:600;color:var(--oz-text-2);}
body :is(input,textarea,select)[aria-invalid=true] {border-color:var(--oz-danger)!important;}
body :is(input[type=checkbox],input[type=radio]) {accent-color:#2459ce;}
body .app :is(.data-table,.fact-table,.mf-table,.mov-table,.cc-control table) {font-size:.875rem!important;line-height:1.5;}
body .app :is(.data-table,.fact-table,.mf-table,.mov-table,.cc-control table) th {background:var(--oz-surface-2);color:var(--oz-text-2)!important;font-size:.75rem!important;font-weight:600!important;padding:12px 14px;white-space:normal;}
body .app :is(.data-table,.fact-table,.mf-table,.mov-table,.cc-control table) td {font-size:.875rem!important;padding:14px;vertical-align:middle;}
body .app :is(.data-table,.fact-table,.mf-table,.mov-table) tbody tr:hover>td {background:var(--oz-hover);}
body .app :is(.data-table,.fact-table,.mf-table,.mov-table) tbody tr:has(input[type=checkbox]:checked)>td {background:var(--oz-hover);box-shadow:inset 0 -1px var(--oz-border);}
.oz-hig-table-scroll {max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch;}
.oz-hig-table-scroll>table {width:100%;}
body .app :is(.tabs-nav,.scope-tabs,.rpt-tabs,.ht-tabs,.project-tabs) {max-width:100%;gap:20px;}
body .app :is(.scope-tab-sub,.scope-count,.tab-count) {color:var(--oz-text-2);}
body .app .sidebar :is(a,button):focus-visible {outline-color:#a9c7ff!important;}
body .app .sidebar :is(.nav-item.active,.submenu a.active) {box-shadow:inset 3px 0 #8bb7ff;}
body :is(.modal,.mf-box) {max-height:calc(100dvh - 40px);border-radius:14px!important;box-shadow:0 20px 65px rgba(15,23,42,.22);background:var(--oz-surface);color:var(--oz-text);}
body .modal-backdrop.is-open>.modal {display:flex;flex-direction:column;min-height:0;}
body .modal-backdrop.is-open>.modal>.modal-body {min-height:0;overflow-y:auto;overscroll-behavior:contain;}
body :is(.modal-header,.drawer-header) {background:var(--oz-surface);color:var(--oz-text);}
body:has(.modal-backdrop.is-open) :is(#pending-dock,.quick-tools-bar,.bulk-toolbar) {visibility:hidden;pointer-events:none;}
body .app .empty-state {padding:32px 24px;color:var(--oz-text-2);line-height:1.6;}
body .app .client-work-task.is-finished {background:var(--oz-success-bg)!important;border-left-color:var(--oz-success)!important;}
body .app .client-work-task.is-finished span[style*="border-radius"] {background:var(--oz-success-bg)!important;color:var(--oz-success)!important;}
html.oz-oscuro body .app .client-work-task {border-bottom-color:var(--oz-border)!important;}
html.oz-oscuro body .app .client-work-task.is-active span[style*="border-radius"] {background:#283f63!important;color:#dce8ff!important;}
html.oz-oscuro body .app .pj-proj-title,html.oz-oscuro body .app :is(.summary-value,.task-title,.bd-card-title) {color:var(--oz-text)!important;}
html.oz-oscuro body .app :is(.data-table,.fact-table,.mf-table) td {color:var(--oz-text);}
.oz-hig-skip {position:fixed;left:16px;top:12px;z-index:2147483647;background:var(--oz-surface);color:var(--oz-text);padding:12px 18px;border-radius:8px;border:2px solid var(--oz-accent);transform:translateY(-180%);}
.oz-hig-skip:focus {transform:translateY(0);}
@media(max-width:760px),(pointer:coarse) {
 body :is(.app,.modal,.drawer,.mf-box) :is(.btn,button,.icon-btn,.oz-icon-btn,summary) {min-height:44px;}
 body :is(.app,.modal,.drawer,.mf-box) :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea) {font-size:1rem;min-height:44px;}
 body .app :is(.header,.tasks-header) h1 {font-size:1.5rem!important;}
 body .app :is(.header-controls,.header-actions,.filters) {width:100%;}
 body .app :is(.header-controls,.filters)>:is(label,.field) {min-width:0;flex:1 1 160px;}
 body .app :is(.summary-grid,.stats-grid,.project-summary) {grid-template-columns:1fr!important;}
 body :is(.modal,.mf-box) {max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);}
 body .app :is(.table-card,.detail-card,.summary-card) {border-radius:12px;margin-inline:0;}
 body .app :is(.tabs-nav,.scope-tabs,.rpt-tabs,.ht-tabs,.project-tabs) {gap:16px;overflow-x:auto;flex-wrap:nowrap;}
 body .app :is(.tabs-nav,.scope-tabs,.rpt-tabs,.ht-tabs,.project-tabs)>* {flex-shrink:0;}
}
@media(prefers-reduced-motion:reduce) {
 *,*::before,*::after {animation:none!important;transition:none!important;scroll-behavior:auto!important;}
}
@media(prefers-reduced-transparency:reduce) {
 body :is(.header,.tasks-header,.modal,.drawer,.quick-tools-bar,#pending-dock) {backdrop-filter:none!important;background:var(--oz-surface)!important;}
}
@media(prefers-contrast:more) {
 :root {--oz-text-2:#283548;--oz-border:#65758b;}
 html.oz-oscuro {--oz-text-2:#edf2f8;--oz-border:#a7b6c9;}
 body :is(input,select,textarea,.btn,.summary-card,.table-card) {border-width:2px;}
}
}

@media screen {
body.login-page,body.forbidden-page {padding:24px;min-height:100dvh;background:var(--oz-canvas);font-family:var(--oz-font);}
body :is(.login-card,.forbidden-card) {width:min(100%,440px);padding:32px;border:1px solid var(--oz-border);border-radius:16px;background:var(--oz-surface);box-shadow:0 12px 40px rgba(29,39,54,.06);}
body :is(.login-card,.forbidden-card) h1 {font-size:1.75rem;line-height:1.25;letter-spacing:-.03em;color:var(--oz-text);}
body :is(.login-card,.forbidden-card) p {color:var(--oz-text-2);line-height:1.6;}
body .login-card input {min-height:44px;width:100%;border:1px solid var(--oz-border);padding:10px 12px;border-radius:8px;font-size:1rem;}
body .login-card .field {display:flex;flex-direction:column;gap:8px;margin:20px 0;}
body :is(.login-card,.forbidden-card) .btn {min-height:44px;padding:10px 16px;border-radius:8px;font-size:.875rem;font-weight:600;}
body .login-card .btn.primary {width:100%;background:#2459ce;color:#fff;border:1px solid #2459ce;}
body .login-card .form-error {padding:12px;background:var(--oz-danger-bg);color:var(--oz-danger);border-radius:8px;}
body.oz-hig-standalone main {max-width:1300px;margin:24px auto;padding:24px;}
body.oz-hig-standalone table {background:var(--oz-surface);border:1px solid var(--oz-border);border-radius:12px;}
body.oz-hig-standalone th {padding:16px;text-align:left;background:var(--oz-surface-2);}
body.oz-hig-standalone select {min-height:44px;padding:10px;border:1px solid var(--oz-border);border-radius:8px;}
}

@media screen {
body .oz-qs input {padding-left:36px!important;}
html.oz-oscuro body {background:var(--oz-canvas)!important;color:var(--oz-text)!important;}
html.oz-oscuro body .app :is(.table-card,.summary-card,.metric-card,.chart-card,.detail-card,.pj-proj,.cc-control,.mf-card) {background:var(--oz-surface)!important;color:var(--oz-text)!important;}
html.oz-oscuro body .app :is(.data-table,.fact-table,.mf-table) :is(td,th) {border-left:0!important;border-right:0!important;border-bottom:1px solid var(--oz-hair)!important;}
@media(max-width:760px){body .app :is(.header,.tasks-header)>div:first-child {text-align:left;} }
}

/* Comfortable inner spacing: titles and search text must not touch their frame. */
@media screen {
 body .app :is(.header,.tasks-header) {padding:20px 28px!important;}
 body .app .tasks-header {border:1px solid var(--oz-border);border-radius:12px;}
 body .app .tasks-header .tasks-title {padding:0;min-width:0;}
 body .app .tasks-header .tasks-title p {margin-top:6px;}
 body .app .pj-search {padding:12px 16px!important;gap:12px;min-height:48px;}
 body .app .pj-search>svg {flex:0 0 18px;}
 body .app .pj-search input {border:0!important;background:transparent!important;box-shadow:none!important;padding:2px 4px!important;min-height:24px!important;min-width:0;line-height:1.5;}
 body .app .pj-search:focus-within {outline:3px solid var(--oz-accent);outline-offset:3px;}
 body .app .pj-search input:focus-visible {outline:0!important;}
 body .app :is(.filters,.section-header) {row-gap:14px;}
 body .app :is(.pj-proj,.summary-card) {padding:24px;}
 @media(max-width:760px){
  body .app :is(.header,.tasks-header) {padding:20px!important;}
  body .app .pj-search {padding:12px 16px!important;min-width:0;}
  body .app :is(.pj-proj,.summary-card) {padding:20px;}
 }
}
