/* OneTeam 365 Design System v1.0 — SINGLE authoritative final layer.
   Reusable ot-standard-* classes are the public contract for new modules.
   No module-specific typography exceptions. Preserve functional HTML/JS. */
:root { --ot-ds-navy:#000080; --ot-ds-line:#D9E4F2; --ot-ds-green:#7CE553;
 --ot-ds-active:#EFFBE9; --ot-ds-red:#D32929; --ot-ds-border:#DCE3ED;
 --ot-ds-font:"Segoe UI",Arial,sans-serif; }
html,body,body *,button,input,select,textarea,option {font-family:'Segoe UI',Arial,sans-serif!important;}
/* Shared heading contract */
.ot-standard-heading,.ot-standard-heading *:not(svg):not(path) {font-size:24px!important;font-weight:750!important;color:var(--ot-ds-navy)!important;letter-spacing:normal!important;line-height:1.2!important;}
/* Shared quick-filter contract */
.ot-standard-quick-filter {box-sizing:border-box!important;min-height:39px!important;font-size:13px!important;font-weight:700!important;color:var(--ot-ds-navy)!important;}
.ot-standard-quick-filter :is(span,b,strong):not(.ot-sites-quick-icon):not(.ot-status-card-icon){font-size:13px!important;font-weight:700!important;color:var(--ot-ds-navy)!important;}
/* Shared column filter contract */
.ot-standard-column-filter,#otSitesModule .ot-standard-filter-wrap>summary {box-sizing:border-box!important;min-height:36px!important;padding:9px 13px!important;border-radius:12px!important;box-shadow:0 3px 10px rgba(0,0,128,.07)!important;font-size:14px!important;font-weight:500!important;color:var(--ot-ds-navy)!important;transition:transform .15s ease,box-shadow .15s ease,background .15s ease!important;}
.ot-standard-column-filter:hover,#otSitesModule .ot-standard-filter-wrap>summary:hover{transform:translateY(-2px)!important;box-shadow:0 4px 12px rgba(0,0,128,.13)!important;}
.ot-standard-column-filter.ot-active,#otSitesModule .ot-standard-filter-wrap[open]>summary,#otSitesModule .ot-standard-filter-wrap.is-filtered>summary{background:var(--ot-ds-active)!important;border-color:var(--ot-ds-green)!important;}
.ot-filter-panel :is(.ot-filter-panel-title,.ot-filter-option,.ot-filter-option span,select,input,label),#otSitesModule .ot-sites-filter-popup :is(label,select,input,option){font-size:14px!important;color:var(--ot-ds-navy)!important;font-weight:500!important;}
.ot-filter-panel .ot-filter-panel-title{font-weight:750!important;}
/* Shared toolbar: explicit selectors cover each module's existing markup. */
.ot-filter-toolbar>input[type=search],#otSitesModule .ot-sites-work-actions>input[type=search]{box-sizing:border-box!important;width:225px!important;height:36px!important;min-height:36px!important;border-radius:10px!important;}
.ot-standard-clear{box-sizing:border-box!important;width:auto!important;height:36px!important;min-height:36px!important;padding:9px!important;font-size:13px!important;font-weight:500!important;color:var(--ot-ds-red)!important;}
.ot-standard-saved,.ot-saved-filters>.ot-filter-chip,#otSitesModule .ot-sites-work-actions>.ot-sites-btn-outline:not(.ot-standard-saved){box-sizing:border-box!important;height:36px!important;min-height:36px!important;padding:9px!important;font-size:13px!important;font-weight:500!important;color:var(--ot-ds-navy)!important;}
.ot-standard-primary{box-sizing:border-box!important;height:36px!important;min-height:36px!important;background:var(--ot-ds-navy)!important;color:white!important;font-size:14px!important;}
/* Explicit table selectors and descendant resets defeat old inline component typography. */
.ot-history-card .validation-table thead tr,#otSitesModule .ot-standard-table thead tr{height:50px!important;}
.ot-history-card .validation-table thead th,#otSitesModule .ot-standard-table thead th{box-sizing:border-box!important;height:50px!important;min-height:50px!important;padding:8px 12px!important;font-size:14px!important;font-weight:650!important;color:var(--ot-ds-navy)!important;vertical-align:middle!important;border-bottom:1px solid var(--ot-ds-line)!important;}
.ot-history-card .validation-table thead th :is(span,a,button),#otSitesModule .ot-standard-table thead th :is(span,a,button){font-size:14px!important;font-weight:650!important;color:var(--ot-ds-navy)!important;}
.ot-history-card .validation-table tbody tr,#otSitesModule .ot-standard-table tbody tr{height:50px!important;}
.ot-history-card .validation-table tbody td,#otSitesModule .ot-standard-table tbody td{box-sizing:border-box!important;height:50px!important;min-height:50px!important;padding:7px 12px!important;line-height:1.3!important;vertical-align:middle!important;font-size:13px!important;font-weight:400!important;color:var(--ot-ds-navy)!important;border-bottom:1px solid var(--ot-ds-line)!important;}
.ot-history-card .validation-table tbody td :is(a,span,div,button,small),#otSitesModule .ot-standard-table tbody td :is(a,span,div,button,small){font-family:'Segoe UI',Arial,sans-serif!important;}
/* Ordinary cell text inherits approved weight, but purpose-built badges/actions retain semantic emphasis. */
.ot-history-card .validation-table tbody td :is(.ot-submission-link,.ot-r6-followup-link),#otSitesModule .ot-standard-table tbody td :is(.ot-sites-client,.ot-sites-id){font-size:13px!important;font-weight:400!important;color:var(--ot-ds-navy)!important;}
/* Joined View/actions contract */
.ot-standard-actions{box-sizing:border-box!important;display:inline-flex!important;align-items:stretch!important;min-width:138px!important;width:auto!important;max-width:none!important;}
.ot-standard-actions>.ot-standard-view{box-sizing:border-box!important;flex:1 1 auto!important;min-width:0!important;width:auto!important;font-size:14px!important;color:var(--ot-ds-navy)!important;}
.ot-standard-actions>.ot-standard-action-menu{position:relative!important;flex:0 0 32px!important;width:32px!important;margin:0!important;}
.ot-standard-action-menu>summary{box-sizing:border-box!important;display:flex!important;align-items:center!important;justify-content:center!important;width:32px!important;min-width:32px!important;height:100%!important;min-height:32px!important;padding:0!important;font-size:21px!important;font-weight:500!important;line-height:1!important;color:var(--ot-ds-navy)!important;background:#F2F5F8!important;border-left:1px solid #C9D4E5!important;border-radius:0 8px 8px 0!important;transform:none!important;}
.ot-standard-action-menu>summary:hover{background:var(--ot-ds-active)!important;transform:none!important;border-left:1px solid #C9D4E5!important;box-shadow:none!important;}
.ot-standard-action-menu>.ot-standard-menu-items{box-sizing:border-box!important;position:absolute!important;top:100%!important;right:0!important;left:auto!important;min-width:205px!important;width:max-content!important;max-width:min(320px,90vw)!important;height:auto!important;max-height:min(380px,70vh)!important;overflow-y:auto!important;overflow-x:hidden!important;z-index:100000!important;background:#fff!important;border:1px solid #DCE3ED!important;border-radius:10px!important;box-shadow:0 20px 48px #101B3F55!important;padding:5px!important;}
.ot-standard-menu-items :is(a,button){box-sizing:border-box!important;display:block!important;width:100%!important;text-align:left!important;padding:10px!important;border-radius:6px!important;font-size:13px!important;font-weight:500!important;color:var(--ot-ds-navy)!important;background:#fff!important;white-space:normal!important;transform:none!important;}
.ot-standard-menu-items :is(a,button):hover{background:#EEF3F9!important;transform:none!important;}
/* The sticky Actions cell and its menu must not be masked by neighboring rows. */
#otSitesModule .ot-sites-actions-cell:has(.ot-standard-action-menu[open]){z-index:90!important;overflow:visible!important;}
#otSitesModule .ot-sites-table-scroller{overflow:auto!important;max-height:calc(100vh - 252px)!important;}
@media(max-width:700px){.ot-filter-toolbar>input[type=search],#otSitesModule .ot-sites-work-actions>input[type=search]{width:100%!important;}}
@media(prefers-reduced-motion:reduce){.ot-standard-column-filter,#otSitesModule .ot-standard-filter-wrap>summary{transition:none!important;}}

/* Approved popup baseline (also authoritative for future module popups). */
/* OneTeam 365 — approved global modal standards, 2026-11-21.
   Intentional scoped overrides preserve specialized Service Partner profile layout. */
:root{--ot-popup-navy:#000080;--ot-popup-border:#DCE4EF;--ot-popup-muted:#F1F5FB}
/* Entire portal typography, including native form controls and buttons. */
html,body,button,input,select,textarea,option{font-family:'Segoe UI',Arial,sans-serif!important}
/* Standard Service History popup surface, not profile-specific or special wide dialogs. */
.modal:not(#spProfileDynamic)>.modal-content:not(.ot-sp-profile):not(.site-profile-modal){
 background:#fff;border:1px solid var(--ot-popup-border);border-radius:18px;
 box-shadow:0 24px 75px rgba(16,33,68,.25);box-sizing:border-box;
}
/* Standard heading; exclude the partner profile's already-approved header. */
.modal:not(#spProfileDynamic) .modal-content h2,
.modal:not(#spProfileDynamic) .ot-dialog-head h2{
 font-family:'Segoe UI',Arial,sans-serif!important;font-size:16px!important;
 font-weight:600!important;color:#000080!important;
}
/* Popup X: current global glyph size and colors; shell supplies header placement. */
.modal:not(#spProfileDynamic) .modal-content>.ot-r6-close,
.modal:not(#spProfileDynamic) .modal-content>.ot-sp-x,
.modal:not(#spProfileDynamic) .modal-content>.modal-close,
.modal:not(#spProfileDynamic) .modal-content .ot-dialog-head>.ot-close{
 box-sizing:border-box!important;width:34px!important;height:34px!important;
 min-width:34px!important;min-height:34px!important;
 display:inline-flex!important;align-items:center!important;justify-content:center!important;
 font-family:'Segoe UI',Arial,sans-serif!important;font-size:14px!important;
 font-weight:500!important;color:#000080!important;background:transparent!important;
 border-radius:0!important;border:0!important;box-shadow:none!important;cursor:pointer;
}
/* Selection typography within all standard popup dropdowns. */
.modal select,.modal select option{font-size:14px!important;font-weight:500!important}
/* Compact task dialogs: status, follow-up, and ETA, with consistent action controls. */
#otStatusModal .ot-dialog-actions button,
#otR6FollowupModal .ot-r6-footer button,
#otSpStatusModal form button,
.modal[id*="Eta"] .ot-dialog-actions button,
.modal[id*="ETA"] .ot-dialog-actions button,
.modal[id*="Eta"] .ot-r6-footer button,
.modal[id*="ETA"] .ot-r6-footer button,
.modal[id*="Eta"] .modal-footer button,
.modal[id*="ETA"] .modal-footer button{
 box-sizing:border-box!important;height:36px!important;min-height:36px!important;
 width:auto!important;min-width:0!important;padding:9px!important;
 font-family:'Segoe UI',Arial,sans-serif!important;font-size:14px!important;
 font-weight:600!important;line-height:16px!important;
 background:#000080!important;color:#fff!important;
 border:1px solid #000080!important;border-radius:10px!important;
 transition:transform .16s ease,box-shadow .16s ease,background-color .16s ease!important;
}
#otStatusModal .ot-dialog-actions button.secondary,
#otR6FollowupModal .ot-r6-footer button.secondary,
#otSpStatusModal form button.secondary,
.modal[id*="Eta"] .ot-dialog-actions button.secondary,
.modal[id*="ETA"] .ot-dialog-actions button.secondary,
.modal[id*="Eta"] .ot-r6-footer button.secondary,
.modal[id*="ETA"] .ot-r6-footer button.secondary,
.modal[id*="Eta"] .modal-footer button.secondary,
.modal[id*="ETA"] .modal-footer button.secondary{
 background:#fff!important;color:#000080!important;border:1px solid #D6DFEB!important;
}
#otStatusModal .ot-dialog-actions button:hover,
#otR6FollowupModal .ot-r6-footer button:hover,
#otSpStatusModal form button:hover,
.modal[id*="Eta"] .ot-dialog-actions button:hover,
.modal[id*="ETA"] .ot-dialog-actions button:hover,
.modal[id*="Eta"] .ot-r6-footer button:hover,
.modal[id*="ETA"] .ot-r6-footer button:hover,
.modal[id*="Eta"] .modal-footer button:hover,
.modal[id*="ETA"] .modal-footer button:hover{
 transform:translateY(-2px)!important;box-shadow:0 5px 14px rgba(0,0,128,.13)!important;
}
/* Preserve partner profile's styling, but freeze its header while its content scrolls. */
#spProfileDynamic .ot-sp-profile .ot-sp-profile-header{
 position:sticky!important;top:0!important;z-index:12!important;
 background:#fff;isolation:isolate;
}
/* Ensure the header remains sticky in the existing scrolling modal content. */
#spProfileDynamic .ot-sp-profile{overflow-y:auto;max-height:88vh}
@media(prefers-reduced-motion:reduce){
 #otStatusModal .ot-dialog-actions button,#otR6FollowupModal .ot-r6-footer button{transition:none!important}
}

/* Approved column-filter typography: 14px; excludes five large quick filters. */
.ot-filter-shell .ot-filter-chip,#otSitesModule .ot-sites-filter summary,
.ot-filter-shell .ot-date-label,#otSitesModule .ot-sites-filter-popup label:has(input[type=date]),
.ot-filter-shell .ot-filter-panel select,.ot-filter-shell .ot-filter-panel input[type=date],
#otSitesModule .ot-sites-filter-popup select,#otSitesModule .ot-sites-filter-popup input[type=date]{font-size:14px!important}

/* v2: canonical shared HTML component rules, not module-specific patches. */
.ot-admin-page .ot-page-title:not([hidden]) {
  font-family:'Segoe UI',Arial,sans-serif!important;font-size:24px!important;
  font-weight:750!important;color:var(--ot-ds-navy)!important;
  line-height:1.2!important;margin:0 0 12px!important;
}
.ot-admin-page .ot-page-title[hidden]{display:none!important}
/* Both modules now render exactly the same quick-filter child structure. */
.ot-admin-page .ot-ui-quick-filter,
#otSitesModule .ot-ui-quick-filter,
.ot-status-cards .ot-ui-quick-filter {
  display:flex!important;flex:1 1 0!important;align-items:center!important;
  justify-content:space-between!important;gap:8px!important;min-width:0!important;
  min-height:39px!important;box-sizing:border-box!important;
  padding:8px 12px!important;border:1px solid #D9E4F2!important;
  border-radius:10px!important;background:#fff!important;
  color:#000080!important;font:700 13px/1.25 "Segoe UI",Arial,sans-serif!important;
  text-decoration:none!important;white-space:nowrap!important;cursor:pointer!important;
}
.ot-admin-page .ot-ui-quick-filter .ot-ui-quick-label,
.ot-admin-page .ot-ui-quick-filter .ot-ui-quick-text,
.ot-admin-page .ot-ui-quick-filter .ot-ui-quick-count {
  display:inline-flex!important;align-items:center!important;min-width:0!important;
  opacity:1!important;visibility:visible!important;
  color:#000080!important;font:700 13px/1.25 "Segoe UI",Arial,sans-serif!important;
}
.ot-admin-page .ot-ui-quick-filter .ot-ui-quick-label{gap:9px!important}
.ot-admin-page .ot-ui-quick-filter .ot-ui-quick-count{margin-left:auto!important}
.ot-admin-page .ot-ui-quick-filter .ot-ui-quick-icon {
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  flex:0 0 20px!important;width:20px!important;height:20px!important;
  color:#000080!important;font-size:15px!important;
}
.ot-admin-page .ot-ui-quick-filter .ot-ui-quick-icon svg{width:16px;height:16px}
.ot-admin-page .ot-ui-quick-filter:is(.is-selected,.ot-selected){
  background:#EFFBE9!important;border-color:#7CE553!important;
}
.ot-admin-page .ot-ui-quick-filter:hover{
  background:#EFFBE9!important;border-color:#7CE553!important;
  transform:translateY(-2px)!important;
}
.ot-admin-page .ot-ui-status-row,.ot-admin-page .ot-status-cards{
  display:flex!important;gap:7px!important;align-items:stretch!important;
}
/* One shared typography and row contract for administrative data tables. */
.ot-admin-page :is(.card,.ot-history-card,.ot-sites-table-wrap) table:not(.calendar) thead th{
  font-family:'Segoe UI',Arial,sans-serif!important;font-size:14px!important;
  font-weight:650!important;color:#000080!important;
  height:50px;box-sizing:border-box;border-bottom:1px solid #D9E4F2;
}
.ot-admin-page :is(.card,.ot-history-card,.ot-sites-table-wrap) table:not(.calendar) tbody td{
  font-family:'Segoe UI',Arial,sans-serif!important;font-size:13px!important;
  font-weight:400;color:#000080;min-height:50px;
  border-bottom:1px solid #D9E4F2;
}
/* Generic form/popup typography shared by the full admin shell. */
.ot-admin-page :is(.modal,.ot-dialog) :is(h2,.ot-dialog-title){
  font:600 16px/1.3 "Segoe UI",Arial,sans-serif!important;color:#000080!important;
}
.ot-admin-page :is(.modal,.ot-dialog) :is(select,option){
  font:500 14px "Segoe UI",Arial,sans-serif!important;
}
@media(max-width:850px){
 .ot-admin-page .ot-ui-status-row,.ot-admin-page .ot-status-cards{overflow-x:auto!important}
 .ot-admin-page .ot-ui-quick-filter{min-width:145px!important}
}

/* Phase 2: shared component primitives; opt-in selectors avoid legacy behavior changes. */
.ot-component-page-header[hidden]{display:none!important}
.ot-component-page-header .ot-page-title{margin:0;font-size:24px;font-weight:750;color:#000080}
.ot-component-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.ot-component-table-scroller{width:100%;overflow:auto}
.ot-component-table{width:100%;border-collapse:separate;border-spacing:0}
.ot-component-table thead th{height:50px;padding:8px 12px;font-size:14px;font-weight:650;color:#000080;border-bottom:1px solid #D9E4F2}
.ot-component-table tbody td{height:50px;padding:7px 12px;font-size:13px;font-weight:400;color:#000080;border-bottom:1px solid #D9E4F2}
.ot-component-modal .ot-component-modal-header h2{font-size:16px;font-weight:600;color:#000080}
.ot-component-modal-footer{display:flex;align-items:center;justify-content:flex-end;gap:8px}
.ot-component-modal-footer button{min-height:36px;padding:9px;font-size:14px;font-weight:600}
