/* Milestone 3: actual Sites interface redesign. Scoped to Sites only. */
#otSitesModule{font-family:'Segoe UI',Arial,sans-serif;color:#172747;--site-navy:#000080;--site-line:#e3e9f1;--site-muted:#64748b}
#otSitesModule .ot-sites-topline{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 20px}
#otSitesModule .ot-sites-eyebrow{font-size:11px;font-weight:800;letter-spacing:.14em;color:#526d9d;margin-bottom:6px}
#otSitesModule h2{font-size:25px;letter-spacing:-.035em;margin:0 0 5px;font-weight:800;color:#091b43}
#otSitesModule p{margin:0;color:var(--site-muted);font-size:13px}
#otSitesModule .ot-sites-top-actions{display:flex;gap:9px;flex-wrap:wrap}
#otSitesModule .ot-sites-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:9px;padding:10px 15px;min-height:39px;font-size:13px;font-weight:700;text-decoration:none;cursor:pointer;white-space:nowrap}
#otSitesModule .ot-sites-btn-primary{background:var(--site-navy);color:white;border:1px solid var(--site-navy)}
#otSitesModule .ot-sites-btn-outline{background:white;color:var(--site-navy);border:1px solid #cbd5e1}
#otSitesModule .ot-sites-btn:hover{filter:brightness(.96)}
#otSitesModule .ot-sites-import{background:#fff;border:1px solid var(--site-line);border-radius:13px;margin-bottom:16px;box-shadow:0 3px 14px rgba(17,36,78,.035)}
#otSitesModule .ot-sites-import summary{cursor:pointer;padding:14px 18px;font-size:13px;font-weight:750;list-style:none}
#otSitesModule .ot-sites-import summary:before{content:'+';display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;margin-right:9px;border-radius:7px;background:#eef2fb;color:var(--site-navy)}
#otSitesModule .ot-sites-import[open] summary:before{content:'−'}
#otSitesModule .ot-sites-import summary span{font-weight:400;color:var(--site-muted);margin-left:8px}
#otSitesModule .ot-sites-import form{padding:0 18px 18px}
#otSitesModule .ot-sites-import form label{display:block;margin:4px 0 8px}
#otSitesModule .ot-sites-import-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
#otSitesModule .ot-sites-import-row input{flex:1;min-width:230px}
#otSitesModule .ot-sites-panel{border:1px solid var(--site-line);border-radius:15px;background:#fff;box-shadow:0 7px 22px rgba(17,36,78,.045);padding:20px 20px 12px;min-width:0}
#otSitesModule .ot-sites-panel-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:18px}
#otSitesModule h3{margin:0 0 5px;font-size:18px;color:#091b43;letter-spacing:-.025em}
#otSitesModule .ot-sites-count{font-size:11px;color:#334e7c;background:#eff3fb;border-radius:99px;padding:4px 8px;vertical-align:middle;margin-left:5px}
#otSitesModule .ot-sites-filterbar{display:flex;gap:9px;align-items:center;flex-wrap:wrap;margin-bottom:16px}
#otSitesModule .ot-sites-filterbar .ot-sites-search{display:flex;align-items:center;gap:8px;flex:1 1 270px;min-width:210px;border:1px solid #d3dce9;border-radius:9px;padding:0 11px;height:42px;color:#64748b}
#otSitesModule .ot-sites-search span{font-size:22px}
#otSitesModule .ot-sites-search input{border:0!important;box-shadow:none!important;outline:0!important;background:transparent;min-width:0;width:100%;padding:0;font-size:13px}
#otSitesModule .ot-sites-filterbar select{width:auto;min-width:130px;max-width:210px;height:42px;border:1px solid #d3dce9;border-radius:9px;background:#fff;color:#253858;font-size:12px;font-weight:650;padding:0 11px}
#otSitesModule .ot-sites-table-scroller{max-width:100%;overflow-x:auto;overflow-y:visible;border:1px solid #e5ebf3;border-radius:10px}
#otSitesModule .ot-sites-table{width:100%;min-width:1200px;border-collapse:collapse;font-size:12px}
#otSitesModule .ot-sites-table thead{background:#f4f7fb}
#otSitesModule .ot-sites-table th{text-align:left;font-size:11px;letter-spacing:.02em;font-weight:800;color:#53657e;padding:14px 12px;white-space:nowrap;border-bottom:1px solid #dfe6f0}
#otSitesModule .ot-sites-table td{padding:14px 12px;vertical-align:middle;border-bottom:1px solid #edf0f5;color:#23334e;line-height:1.45}
#otSitesModule .ot-sites-table tr:last-child td{border-bottom:0}
#otSitesModule .ot-sites-table tbody tr:hover{background:#f8fbff}
#otSitesModule .ot-sites-table tr[hidden]{display:none}
#otSitesModule .ot-sites-table td strong{display:block;font-size:12px;color:#142449;font-weight:750}
#otSitesModule .ot-sites-table td small{display:block;font-size:11px;color:#7a889d;margin-top:3px;max-width:210px}
#otSitesModule .ot-sites-client{font-weight:700}
#otSitesModule .ot-sites-id{color:#000080;font-weight:700;white-space:nowrap}
#otSitesModule .ot-sites-pill{display:inline-flex;padding:5px 9px;border-radius:99px;font-size:11px;font-weight:750;white-space:nowrap}
#otSitesModule .ot-sites-pill.is-active{color:#176642;background:#e6f7ec}
#otSitesModule .ot-sites-pill.is-inactive{color:#69788c;background:#f0f2f6}
#otSitesModule .ot-sites-actions-cell{white-space:nowrap;min-width:120px}
#otSitesModule .ot-sites-view{background:#f1f4ff;border:1px solid #dce3f8;color:#000080;border-radius:7px;font-size:12px;font-weight:750;padding:7px 11px;cursor:pointer}
#otSitesModule .ot-sites-row-menu{display:inline-block;position:relative;margin-left:5px;vertical-align:middle}
#otSitesModule .ot-sites-row-menu summary{list-style:none;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;width:31px;height:31px;border:1px solid #dce3f0;border-radius:7px;font-size:20px;line-height:1;color:#152d56}
#otSitesModule .ot-sites-row-menu summary::-webkit-details-marker{display:none}
#otSitesModule .ot-sites-row-menu-items{position:absolute;right:0;top:34px;z-index:100;min-width:150px;background:#fff;border:1px solid #dce3f0;border-radius:9px;box-shadow:0 10px 25px rgba(10,30,70,.16);padding:5px}
#otSitesModule .ot-sites-row-menu-items :is(a,button){display:block;width:100%;box-sizing:border-box;text-align:left;border:0;background:white;padding:9px 10px;font-size:12px;color:#1b2d4d;text-decoration:none;cursor:pointer;border-radius:5px}
#otSitesModule .ot-sites-row-menu-items :is(a,button):hover{background:#eff4ff}
#otSitesModule .ot-sites-empty{text-align:center;color:#64748b;padding:25px}
#otSitesModule .ot-sites-empty[hidden]{display:none}
@media(max-width:800px){#otSitesModule .ot-sites-topline,#otSitesModule .ot-sites-panel-heading{align-items:flex-start;flex-direction:column}#otSitesModule .ot-sites-panel{padding:15px}#otSitesModule .ot-sites-filterbar select{flex:1 1 140px;max-width:none}}

/* Milestone 3 compact layout: one working surface, no introductory cards */
#otSitesModule{margin-top:0!important}
#otSitesModule .ot-sites-panel{padding:14px 16px 12px;border-radius:13px}
#otSitesModule .ot-sites-compact-heading{margin-bottom:12px;flex-direction:row;align-items:center}
#otSitesModule .ot-sites-compact-heading h2{font-size:20px;margin:0}
#otSitesModule .ot-sites-top-actions{align-items:center}
#otSitesModule .ot-sites-btn{min-height:35px;padding:7px 12px}
#otSitesModule .ot-sites-import{margin:0 0 12px;box-shadow:none}
#otSitesModule .ot-sites-import:not([open]){display:none}
#otSitesModule .ot-sites-filterbar{margin-bottom:12px}
#otSitesModule .ot-sites-filterbar .ot-sites-search,#otSitesModule .ot-sites-filterbar select{height:37px}
#otSitesModule .ot-sites-clear{flex:0 0 auto}
@media(max-width:800px){#otSitesModule .ot-sites-compact-heading{flex-wrap:wrap;gap:10px}}

/* M3 Sites toolbar: match Work Orders / Service History page structure */
#otSitesModule .ot-sites-panel{padding:12px 14px 10px;border-radius:12px;overflow:visible}
#otSitesModule .ot-sites-work-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0 0 10px}
#otSitesModule .ot-sites-work-title{margin:0;font-size:19px;font-weight:750;white-space:nowrap;color:#000080}
#otSitesModule .ot-sites-work-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}
#otSitesModule .ot-sites-work-actions input{width:185px;height:35px;padding:6px 10px;border:1px solid #cbd6e8;border-radius:8px;font-size:12px}
#otSitesModule .ot-sites-work-actions .ot-sites-btn{min-height:35px;padding:7px 11px;font-size:12px}
#otSitesModule .ot-sites-filter-strip{display:flex;align-items:center;gap:7px;margin:0 0 10px;min-width:0}
#otSitesModule .ot-sites-filter-track{display:flex;align-items:center;gap:7px;flex:1;min-width:0;overflow-x:auto;scrollbar-width:none;padding:2px 0;scroll-behavior:smooth}
#otSitesModule .ot-sites-filter-track::-webkit-scrollbar{display:none}
#otSitesModule .ot-sites-scroll-arrow{flex:none;width:27px;height:35px;background:#f6f8fd;border:1px solid #d1dced;border-radius:8px;color:#000080;font-size:20px;cursor:pointer}
#otSitesModule .ot-sites-filter{position:relative;flex:none}
#otSitesModule .ot-sites-filter summary{list-style:none;cursor:pointer;white-space:nowrap;border:1px solid #cbd6e8;background:white;border-radius:8px;color:#000080;font-size:12px;font-weight:650;padding:9px 13px}
#otSitesModule .ot-sites-filter summary::-webkit-details-marker{display:none}
#otSitesModule .ot-sites-filter.is-filtered summary{background:rgba(124,229,83,.23);border-color:#7ce553}
#otSitesModule .ot-sites-filter-popup{position:absolute;top:38px;left:0;z-index:200;background:white;padding:12px;min-width:190px;border:1px solid #d1dced;box-shadow:0 8px 20px #10234b22;border-radius:8px}
#otSitesModule .ot-sites-filter-popup label{display:block;font-size:12px;font-weight:600;color:#000080}
#otSitesModule .ot-sites-filter-popup select{display:block;width:100%;height:35px;margin-top:6px;border:1px solid #cbd6e8;border-radius:6px;background:white}
#otSitesModule .ot-sites-export-link{flex:none;font-size:12px;font-weight:650;color:#000080;text-decoration:none;border:1px solid #cbd6e8;padding:9px 11px;border-radius:8px}
#otSitesModule .ot-sites-import:not([open]){display:none}
#otSitesModule .ot-sites-import[open]{display:block;margin:0 0 10px}
#otSitesModule .ot-sites-table-scroller{margin-top:0}
@media(max-width:980px){#otSitesModule .ot-sites-work-toolbar{align-items:flex-start;flex-direction:column}#otSitesModule .ot-sites-work-actions{justify-content:flex-start;width:100%}#otSitesModule .ot-sites-filter-strip{width:100%}}

/* Service History parity overrides: scoped to Sites */
#otSitesModule{font-family:'Segoe UI',Arial,sans-serif}
#otSitesModule .ot-sites-work-title{font-size:21px!important;font-weight:750;color:#000080;display:flex;align-items:center;gap:10px}
#otSitesModule .ot-sites-heading-icon{font-size:23px;line-height:1;color:#000080}
#otSitesModule .ot-sites-count{display:none!important}
#otSitesModule .ot-sites-work-actions .ot-sites-btn{min-height:37px;font-size:13px;font-weight:650;padding:8px 13px}
#otSitesModule .ot-sites-work-actions .ot-sites-btn-primary{font-size:14px;font-weight:800;padding:9px 16px;min-height:39px;box-shadow:0 3px 8px #10105020}
#otSitesModule .ot-sites-work-actions input{width:202px;height:37px;font-size:13px}
#otSitesModule .ot-sites-btn-clear{color:#d32929!important;background:#fff5f5!important;border:1px solid #ffc5c5!important}
#otSitesModule .ot-sites-filter summary{font-weight:500!important;font-size:13px;padding:9px 12px}
#otSitesModule .ot-sites-filter.is-filtered summary{background:#effbe9;border-color:#7ce553}
#otSitesModule .ot-sites-quick-label{display:inline-flex;align-items:center;gap:9px}
#otSitesModule .ot-sites-quick-icon{display:inline-flex;align-items:center;justify-content:center;width:21px;height:21px;border-radius:50%;background:#edf2ff;color:#000080;font-size:14px;flex:none}
#otSitesModule .ot-sites-quick-active{background:#e2f7e8;color:#148342;border:1px solid #a9dfb9}
#otSitesModule .ot-sites-quick-inactive{background:#fff0f1;color:#d9283e;border:1px solid #ffc4cb}
#otSitesModule .ot-sites-quick-landscape{background:#eaf8df;color:#2a8a3e}
#otSitesModule .ot-sites-quick-snow{background:#e7f3ff;color:#1476c5}
#otSitesModule .ot-sites-table thead{background:#eaf0f9!important}
#otSitesModule .ot-sites-table th{font-size:13px!important;font-weight:750!important;color:#000080!important;padding:12px 13px!important;border-bottom:2px solid #c3d1e5!important;height:47px}
#otSitesModule .ot-sites-table td{font-size:13px!important;padding:13px!important;color:#071d53!important;height:58px}
#otSitesModule .ot-sites-table td strong{font-size:13px!important}
#otSitesModule .ot-sites-table td small{font-size:11px}
#otSitesModule .ot-sites-pill{font-size:12px!important;min-width:80px;min-height:29px;padding:5px 12px}
#otSitesModule .ot-sites-actions-cell{display:flex;align-items:center;gap:0;min-height:58px}
#otSitesModule .ot-sites-view{font-size:13px!important;font-weight:700!important;min-width:100px;height:37px;background:#f2f5fb;border:1px solid #cbd6e8;border-radius:8px 0 0 8px;padding:7px 15px}
#otSitesModule .ot-sites-row-menu{margin:0}
#otSitesModule .ot-sites-row-menu summary{height:37px;width:32px;border-radius:0 8px 8px 0;border-left:0;background:#f2f5fb;border-color:#cbd6e8;color:#000080}
#otSitesModule .ot-sites-export-actions{display:flex;justify-content:flex-end;margin:0 0 5px}
#otSitesModule .ot-sites-export-menu{position:relative;font-size:12px;color:#000080}
#otSitesModule .ot-sites-export-menu>summary{cursor:pointer;list-style:none;padding:5px 8px;border:1px solid #d1dced;border-radius:7px}
#otSitesModule .ot-sites-export-menu>div{position:absolute;right:0;top:29px;background:#fff;border:1px solid #d1dced;border-radius:8px;box-shadow:0 8px 20px #14244b30;z-index:20;min-width:215px;padding:5px}
#otSitesModule .ot-sites-export-menu :is(a,button){display:block;width:100%;text-align:left;border:0;background:#fff;padding:9px;color:#000080;font-size:12px;text-decoration:none;cursor:pointer}
#otSitesModule .ot-sites-export-menu :is(a,button):hover{background:#f2f6fd}
#otSitesModule .ot-sites-saved-panel{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:10px;margin:5px 0;background:#f7faff;border:1px solid #d1dced;border-radius:8px}
#otSitesModule .ot-sites-saved-panel[hidden]{display:none}
#otSitesModule .ot-sites-saved-panel :is(input,select){height:35px;border:1px solid #cbd6e8;border-radius:7px;padding:6px;font-size:12px}
#otSitesModule .ot-sites-table-scroller{max-height:calc(100vh - 252px);overflow:auto}

/* M3 shared Service History visual parity: reusable tokens and Sites bindings */
:root{--ot-control-hover:#effbe9;--ot-control-green:#7ce553;--ot-table-header:#e9eff8;--ot-table-line:#d9e4f2;--ot-navy:#000080}
#otSitesModule .ot-sites-work-title{font-size:22px!important;font-weight:750!important}
#otSitesModule .ot-sites-heading-icon{display:inline-flex;align-items:center;color:var(--ot-navy)}
#otSitesModule .ot-sites-filter summary,#otSitesModule .ot-sites-scroll-arrow,#otSitesModule .ot-sites-saved-button,#otSitesModule .ot-sites-quick-label,#otSitesModule .ot-sites-row-menu summary,#otSitesModule .ot-sites-view{transition:transform .15s ease,background .15s ease,border-color .15s ease,box-shadow .15s ease}
#otSitesModule .ot-sites-filter summary:hover,#otSitesModule .ot-sites-scroll-arrow:hover,#otSitesModule .ot-sites-saved-button:hover,#otSitesModule .ot-ui-status:hover,#otSitesModule .ot-sites-view:hover,#otSitesModule .ot-sites-row-menu summary:hover{transform:translateY(-2px);background:var(--ot-control-hover)!important;border-color:var(--ot-control-green)!important;box-shadow:0 3px 8px #256a2615}
#otSitesModule .ot-sites-filter.is-filtered summary,#otSitesModule .ot-ui-status.is-selected{background:var(--ot-control-hover)!important;border-color:var(--ot-control-green)!important}
#otSitesModule .ot-sites-table{border-collapse:separate;border-spacing:0;min-width:1700px}
#otSitesModule .ot-sites-table thead th{background:var(--ot-table-header)!important;color:var(--ot-navy)!important;font-weight:800!important;font-size:13px!important;height:49px;border-bottom:2px solid #bdcde3!important}
#otSitesModule .ot-sites-table tbody td{border-bottom:1px solid var(--ot-table-line)!important;font-size:13px!important}
#otSitesModule .ot-sites-table thead th:last-child,#otSitesModule .ot-sites-table tbody td:last-child{position:sticky;right:0;z-index:4;min-width:147px;box-shadow:-5px 0 8px #0a1e4410}
#otSitesModule .ot-sites-table thead th:last-child{z-index:6;background:var(--ot-table-header)!important}
#otSitesModule .ot-sites-table tbody td:last-child{background:white!important}
#otSitesModule .ot-sites-actions-cell{display:table-cell!important;vertical-align:middle!important;white-space:nowrap}
#otSitesModule .ot-sites-action-group{display:flex;align-items:center;width:132px}
#otSitesModule .ot-sites-view{width:100px;min-width:100px;height:37px;font-weight:750!important;font-size:13px!important;border-radius:8px 0 0 8px}
#otSitesModule .ot-sites-row-menu summary{height:37px;width:32px;font-weight:800}
#otSitesModule .ot-sites-bulkbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:8px 0;padding:8px 12px;border:1px solid var(--ot-control-green);background:#f0fbea;border-radius:9px;color:var(--ot-navy);font-size:13px}
#otSitesModule .ot-sites-bulkbar[hidden]{display:none!important}
#otSitesModule .ot-sites-bulk-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:7px}
#otSitesModule .ot-sites-bulk-btn{display:inline-flex;align-items:center;justify-content:center;min-height:32px;padding:6px 11px;border:1px solid var(--ot-navy);border-radius:7px;background:var(--ot-navy);color:white;text-decoration:none;font-size:12px;font-weight:650;cursor:pointer}
#otSitesModule .ot-sites-bulk-btn:hover{filter:brightness(1.12)}
#otSitesModule .ot-sites-filter-popup input[type=date]{display:block;width:100%;height:34px;border:1px solid #cbd6e8;border-radius:6px;padding:4px;margin:5px 0 8px}
#otSitesModule .ot-sites-filter-popup{min-width:220px}
#otSitesModule .ot-sites-table-scroller{position:relative;overflow:auto}

/* Sites functional controls: make filter popovers visible beyond horizontal strip */
#otSitesModule .ot-sites-filter-popup.ot-sites-floating-popup{position:fixed!important;z-index:2147483000!important;max-height:65vh;overflow-y:auto;box-shadow:0 12px 32px #0b225133}
#otSitesModule .ot-sites-filter summary,#otSitesModule .ot-ui-status,#otSitesModule .ot-sites-select,#otSitesModule #otSitesSelectAll{pointer-events:auto!important;cursor:pointer}
#otSitesModule .ot-sites-bulkbar:not([hidden]){display:flex!important}
/* M3: Service History two-card layout and filter interaction parity. */
#otSitesModule{display:flex;flex-direction:column;gap:7px;width:100%;min-width:0}
#otSitesModule .ot-sites-panel{padding:11px 13px 9px!important;margin:0!important}
#otSitesModule .ot-sites-table-panel{padding:5px!important;min-width:0;border:1px solid #d7e1f0;border-radius:14px;background:white;box-shadow:0 4px 14px #0b22510a}
#otSitesModule .ot-sites-table-scroller{margin:0!important;max-height:calc(100vh - 235px);border:1px solid #d1dced;border-radius:9px}
#otSitesModule .ot-sites-filter summary{border-radius:11px!important;box-shadow:0 2px 5px #172c4a14!important;font-weight:500!important;white-space:nowrap}
#otSitesModule .ot-sites-filter-popup{min-width:270px;max-width:min(350px,95vw);padding:13px!important;background:white;border:1px solid #cbd8ec;border-radius:12px;box-shadow:0 10px 28px #0b22512b}
#otSitesModule .ot-sites-filter-popup.ot-sites-floating-popup{position:fixed!important;z-index:2147483000!important;max-height:min(480px,75vh);overflow:auto}
#otSitesModule .ot-sites-facet-title{font-size:13px;font-weight:750;color:#000080;margin-bottom:10px}
#otSitesModule .ot-sites-facet-search{width:100%;height:34px;border:1px solid #cbd8ec;border-radius:7px;padding:7px 9px;font-size:12px;margin-bottom:8px}
#otSitesModule .ot-sites-facet-options{max-height:220px;overflow:auto;border:1px solid #e2e9f3;border-radius:7px;padding:5px}
#otSitesModule .ot-sites-facet-option{display:flex;align-items:center;gap:9px;padding:7px 5px;font-size:12px;color:#10265b;cursor:pointer}
#otSitesModule .ot-sites-facet-option:hover{background:#f0fbea}
#otSitesModule .ot-sites-facet-option[hidden]{display:none}
#otSitesModule .ot-sites-facet-option input{width:15px;height:15px;accent-color:#000080}
#otSitesModule .ot-sites-facet-footer{display:flex;justify-content:flex-end;gap:8px;margin-top:11px}
#otSitesModule .ot-sites-facet-footer button{min-width:68px;padding:8px 11px;border-radius:7px;font-size:12px;cursor:pointer}
#otSitesModule .ot-sites-facet-clear{background:#fff;color:#000080;border:1px solid #cbd8ec}
#otSitesModule .ot-sites-facet-apply{background:#000080;color:white;border:1px solid #000080}
#otSitesModule .ot-sites-filter-popup label{display:block;font-size:12px;color:#10265b;margin:8px 0}
#otSitesModule .ot-sites-filter-popup label select,#otSitesModule .ot-sites-filter-popup label input[type=date]{display:block;width:100%;height:35px;border:1px solid #cbd8ec;border-radius:7px;margin-top:5px;padding:6px;background:white;color:#10265b}
#otSitesModule .ot-sites-filter-popup [hidden]{display:none!important}
#otSitesModule .ot-sites-facet-count:not(:empty){font-size:10px;color:#000080;background:#eaf7e5;padding:2px 5px;border-radius:9px;margin-left:4px}
#otSitesModule .ot-sites-table tbody td,#otSitesModule .ot-sites-table tbody td strong,#otSitesModule .ot-sites-table .ot-sites-client,#otSitesModule .ot-sites-table .ot-sites-id{font-weight:400!important}
#otSitesModule .ot-sites-quick-all{border:1px solid #d3dced}
