:root {
  --gunmetal:#263238;
  --gunmetal2:#1d272d;
  --blue:#0b5cff;
  --blue2:#2f7cff;
  --green:#75e84f;
  --bg:#f5f7fb;
  --card:#ffffff;
  --border:#dce4ef;
  --text:#10233f;
  --muted:#63728a;
  --red:#d93434;
  --orange:#f3a11b;
  --success:#15803d;
}
*{box-sizing:border-box}
body{margin:0;font-family:'Segoe UI',Arial,sans-serif;background:var(--bg);color:var(--text)}
a{color:inherit}
.layout{display:flex;min-height:100vh}
.sidebar{width:275px;background:linear-gradient(180deg,var(--gunmetal),var(--gunmetal2));color:white;padding:20px 16px;position:fixed;top:0;bottom:0;left:0;overflow:auto}
.logo-wrap{margin-bottom:28px}
.logo-wrap img{width:220px;max-width:100%;background:white;border-radius:8px;padding:8px}
.logo-fallback{font-size:28px;font-weight:900}.logo-fallback span{color:var(--blue2)}
.portal-label{font-size:11px;letter-spacing:1.3px;color:#cfd8df;margin-top:4px}
.user-card{display:flex;gap:12px;align-items:center;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.1);border-radius:14px;padding:14px;margin-bottom:22px}
.user-icon{width:44px;height:44px;border-radius:12px;background:linear-gradient(135deg,var(--blue),var(--green));display:grid;place-items:center;font-weight:900}
.user-card small{color:#d5dde4}
.nav a{display:block;padding:13px 14px;margin:6px 0;text-decoration:none;border-radius:10px;color:#eef3f7;font-weight:700}
.nav a:hover,.nav a.active{background:linear-gradient(90deg,var(--blue),#135eda)}
.main{margin-left:275px;width:calc(100% - 275px)}
.topbar{height:78px;background:white;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:0 32px}
.page{padding:28px 32px 50px}
h1{margin:0 0 6px;font-size:30px;letter-spacing:-.5px}
h2{margin:0 0 14px}
.subtitle{color:var(--muted);margin-bottom:24px}
.card{background:white;border:1px solid var(--border);border-radius:16px;padding:22px;margin-bottom:22px;box-shadow:0 8px 24px rgba(10,31,68,.04)}
.grid{display:grid;gap:18px}.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}.grid-6{grid-template-columns:repeat(6,minmax(0,1fr))}
.kpi{display:flex;gap:14px;align-items:center}.kpi-icon{width:48px;height:48px;border-radius:999px;display:grid;place-items:center;font-size:21px;font-weight:900}.kpi strong{font-size:24px;display:block}.kpi span{color:var(--muted);font-size:13px}.kpi small{color:var(--muted)}
.icon-blue{background:#eaf1ff;color:var(--blue)}.icon-green{background:#e7f7ec;color:var(--success)}.icon-orange{background:#fff2db;color:#9a5b00}.icon-red{background:#fde9e9;color:#a61919}.icon-purple{background:#f0eaff;color:#6b35d9}
label{display:block;font-size:13px;font-weight:800;margin-bottom:6px}
input,select,textarea{width:100%;padding:11px 12px;border:1px solid #cfd8e6;border-radius:10px;font-size:14px;background:white}
textarea{min-height:90px} select[multiple]{min-height:190px}
button,.button{display:inline-block;background:#000080;color:#ffffff;border:none;border-radius:10px;padding:10px 15px;font-family:'Segoe UI',Arial,sans-serif;font-weight:900;text-decoration:none;cursor:pointer;font-size:14px}
.button.secondary,button.secondary{background:#000080;color:#ffffff;border:1px solid #000080}.button.danger{background:var(--red)}.button.success{background:var(--success)}
.table-wrap{overflow-x:auto} table{width:100%;border-collapse:collapse;background:white} th{text-align:left;padding:13px 14px;border-bottom:1px solid var(--border);font-size:13px;background:#fbfcff} td{padding:13px 14px;border-bottom:1px solid #edf1f6;font-size:14px;vertical-align:top}
.badge{display:inline-block;border-radius:999px;padding:6px 10px;font-size:12px;font-weight:900;white-space:nowrap}.badge.new{background:#eaf1ff;color:#0b5cff}.badge.approved{background:#e7f7ec;color:#176b34}.badge.rejected{background:#fde9e9;color:#a61919}.badge.pending{background:#fff2db;color:#9a5b00}
.notice{padding:12px 14px;border-radius:12px;background:#eaf1ff;border:1px solid #cfe0ff;margin-bottom:16px}.actions{display:flex;gap:8px;flex-wrap:wrap}
.thumb{width:56px;height:42px;object-fit:cover;border-radius:7px;border:1px solid #d8e0ea;margin-right:4px;vertical-align:middle}.photo-cell{min-width:160px}
.filters{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:14px}.filters .wide{grid-column:span 2}
.status-form{display:inline-flex;gap:6px;align-items:center}.status-form select{min-width:132px;padding:7px 8px}
.login{max-width:440px;margin:70px auto}
.login-logo{text-align:center;margin-bottom:18px;overflow:hidden}
.login-logo img{display:block;width:100%;max-width:260px;max-height:120px;height:auto;object-fit:contain;margin:0 auto;background:white;border-radius:10px;padding:8px}
.public-shell{max-width:760px;margin:22px auto;padding:0 14px}.public-header{text-align:center;margin-bottom:16px}.public-header img{max-width:300px;width:85%;background:white;border-radius:10px;padding:8px}
.public-card{border-radius:18px;padding:20px}.mobile-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.photo-section{border:1px dashed #b7c7dc;border-radius:14px;padding:14px;background:#fbfdff;margin-bottom:14px}
.conditional{display:none;border-left:4px solid var(--blue);padding-left:14px;margin-top:12px}
@media(max-width:1100px){.grid-6,.filters{grid-template-columns:repeat(2,minmax(0,1fr))}.filters .wide{grid-column:span 2}}
@media(max-width:900px){.sidebar{position:static;width:100%}.layout{display:block}.main{margin-left:0;width:100%}.topbar{height:auto;padding:16px;align-items:flex-start;gap:12px}.page{padding:20px 14px}.grid-2,.grid-3,.grid-4,.grid-6,.filters,.mobile-grid{grid-template-columns:1fr}.filters .wide{grid-column:span 1}.card{padding:16px}.sidebar .logo-wrap img{width:190px}h1{font-size:25px}table{font-size:12px}th,td{padding:10px 8px}}

.action-icon{
  width:30px;height:30px;border-radius:8px;border:1px solid #cfd8e6;background:white;color:#0b5cff;
  display:inline-grid;place-items:center;text-decoration:none;font-size:14px;font-weight:900;cursor:pointer;
}
.action-icon:hover{background:#eaf1ff}
.assignment-delete-icon{border:none!important;background:transparent!important;color:#000!important;font-size:18px!important;font-weight:900!important;padding:0 6px!important;min-width:26px!important;height:30px!important;line-height:30px!important;cursor:pointer!important;box-shadow:none!important;vertical-align:middle!important}
.assignment-delete-icon:hover{background:transparent!important;color:#000!important}
.thumb{width:39px!important;height:29px!important}
.modal{display:none;position:fixed;z-index:9999;left:0;top:0;width:100%;height:100%;background:rgba(0,0,0,.45)}
.modal-content{background:white;margin:7vh auto;padding:0;border-radius:0;width:50vw;max-width:900px;max-height:78vh;overflow:auto;box-shadow:0 20px 60px rgba(0,0,0,.25);border:2px solid #000080}
.modal-content > *:not(h2):not(.modal-close){margin-left:18px;margin-right:18px}
.modal-content > h2:first-of-type{margin:0 0 16px 0;padding:16px 54px 16px 18px;background:#000080;color:#ffffff;font-family:'Segoe UI',Arial,sans-serif;font-weight:900}
.modal-content > .modal-close + h2{margin-top:0}
.modal-content form,.modal-content table,.modal-content .grid,.modal-content .actions,.modal-content p,.modal-content h3{margin-bottom:18px}
.modal-content button,.modal-content .button{background:#000080!important;color:#ffffff!important;font-family:'Segoe UI',Arial,sans-serif!important;font-weight:900!important}
.modal-content .action-icon,.modal-content .icon-button{background:transparent!important;color:#000!important}
.modal-close{float:right;font-size:26px;font-weight:900;cursor:pointer;color:#ffffff;position:relative;z-index:2;padding:10px 14px}
.modal-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.modal-grid img{width:100%;border-radius:10px;border:1px solid #dce4ef}
.status-select{border:0;border-radius:999px;font-weight:900;padding:7px 10px;width:auto;min-width:132px}
.status-select.NEW{background:#eaf1ff;color:#0b5cff}
.status-select.APPROVED{background:#e7f7ec;color:#176b34}
.status-select.PENDING_REVIEW{background:#fff2db;color:#9a5b00}
.status-select.REJECTED{background:#fde9e9;color:#a61919}
@media(max-width:900px){.modal-content{width:92vw}.modal-grid{grid-template-columns:1fr}}


.status-select{
  font-size:11px!important;
  padding:3px 7px!important;
  min-width:88px!important;
  height:25px!important;
}
.action-icons{display:flex!important;gap:8px!important;align-items:center!important;flex-wrap:nowrap!important}
.icon-link,.icon-button{
  border:none!important;background:transparent!important;padding:0!important;margin:0!important;
  width:20px!important;height:20px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;
  cursor:pointer;text-decoration:none!important;
}
.icon-link img,.icon-button img{width:18px!important;height:18px!important;object-fit:contain!important;display:block!important}
.trip-report-preview .report-header{display:flex;align-items:center;gap:16px;border-bottom:1px solid #dce4ef;padding-bottom:12px;margin-bottom:12px}
.trip-report-preview .report-logo{max-width:190px;background:white;border-radius:8px}
.trip-report-preview .report-table{width:100%;border-collapse:collapse;margin:12px 0}
.trip-report-preview .report-table td{border:1px solid #dce4ef;padding:8px}
.trip-report-preview .report-table td:first-child{font-weight:800;background:#eef3f7;width:160px}
.trip-report-preview .report-section-title{font-size:20px;font-weight:900;margin:18px 0 10px}
.trip-report-preview .report-photos{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.trip-report-preview .report-photos img{width:100%;border-radius:10px;border:1px solid #dce4ef}


.status-select{text-align:center!important;text-align-last:center!important;font-size:11px!important;padding:3px 7px!important;min-width:88px!important;height:25px!important}
.action-icons{display:flex!important;gap:7px!important;align-items:center!important;flex-wrap:nowrap!important;min-width:98px!important}
.icon-link,.icon-button{border:none!important;background:transparent!important;padding:0!important;margin:0!important;width:18px!important;height:18px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;cursor:pointer;text-decoration:none!important}
.icon-link img,.icon-button img{width:17px!important;height:17px!important;object-fit:contain!important;display:block!important}
.validation-subnav{margin-top:6px;margin-left:14px;border-left:1px solid rgba(255,255,255,.15);padding-left:8px}
.validation-subnav a{font-size:13px;padding:8px 10px;margin:2px 0;color:#d8e1ea}
.bulk-report-bar{display:none;align-items:center;gap:10px;background:#eaf1ff;border:1px solid #cfe0ff;border-radius:12px;padding:10px 12px;margin-bottom:12px}
.note-entry{border-bottom:1px solid #edf1f6;padding:10px 0}
.note-entry small{color:#63728a}
.note-scroll{max-height:260px;overflow:auto;border:1px solid #dce4ef;border-radius:10px;padding:10px;background:#fbfcff}
.modal-content.notes-modal{max-height:78vh}
.trip-report-preview .report-header{display:flex;align-items:center;gap:16px;border-bottom:1px solid #dce4ef;padding-bottom:12px;margin-bottom:12px}
.trip-report-preview .report-logo{max-width:190px;background:white;border-radius:8px}
.trip-report-preview .report-table{width:100%;border-collapse:collapse;margin:12px 0}
.trip-report-preview .report-table td{border:1px solid #dce4ef;padding:8px}
.trip-report-preview .report-table td:first-child{font-weight:800;background:#eef3f7;width:160px}
.trip-report-preview .report-section-title{font-size:20px;font-weight:900;margin:18px 0 10px}
.trip-report-preview .report-photos{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.trip-report-preview .report-photos img{width:100%;border-radius:10px;border:1px solid #dce4ef}


.validation-table{width:100%!important;min-width:1450px!important;table-layout:fixed!important}
.validation-table th,.validation-table td{font-family:'Segoe UI',Arial,sans-serif!important;font-size:13px!important;font-weight:400!important;line-height:1.25!important;vertical-align:middle!important;padding:9px 8px!important}
.validation-table th{font-weight:700!important;white-space:normal!important}
.validation-table .nowrap{white-space:nowrap!important}
.validation-table .two-line{max-width:none;white-space:normal;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.validation-table .client-site-cell{min-width:120px!important;max-width:130px!important}
.validation-table .service-partner-cell{min-width:150px!important;max-width:160px!important}
.validation-table .service-category-cell{white-space:nowrap!important}
.validation-table .photo-cell{min-width:72px!important;white-space:nowrap!important}
.validation-table .validation-sp-link{font-family:'Segoe UI',Arial,sans-serif!important;font-size:13px!important;font-weight:400!important;line-height:1.25!important;text-decoration:underline!important;color:#111827!important;border:0!important;background:transparent!important;padding:0!important;margin:0!important;width:auto!important;height:auto!important;display:inline!important}
.validation-table th:nth-child(1),.validation-table td:nth-child(1){width:85px!important;white-space:normal!important}
.validation-table th:nth-child(2),.validation-table td:nth-child(2){width:155px!important}
.validation-table th:nth-child(3),.validation-table td:nth-child(3){width:170px!important;white-space:nowrap!important}
.validation-table th:nth-child(4),.validation-table td:nth-child(4){width:125px!important}
.validation-table th:nth-child(5),.validation-table td:nth-child(5){width:155px!important}
.validation-table th:nth-child(6),.validation-table td:nth-child(6){width:175px!important}
.validation-table th:nth-child(7),.validation-table td:nth-child(7){width:130px!important}
.validation-table th:nth-child(8),.validation-table td:nth-child(8){width:92px!important}
.validation-table th:nth-child(9),.validation-table td:nth-child(9){width:118px!important}
.validation-table th:nth-child(10),.validation-table td:nth-child(10){width:118px!important}
.validation-table th:nth-child(11),.validation-table td:nth-child(11){width:125px!important}
.thumb{width:24px!important;height:18px!important;margin-right:2px!important;border-radius:4px!important}
.more-photos{display:inline-grid;place-items:center;width:26px;height:18px;border-radius:4px;background:#e5e7eb;color:#374151;font-size:10px;font-weight:900;vertical-align:middle}
.category-icon{width:17px;height:17px;object-fit:contain;vertical-align:middle;margin-right:5px}
.action-icons{display:flex!important;gap:7px!important;align-items:center!important;flex-wrap:nowrap!important;min-width:98px!important}
.icon-link,.icon-button{border:none!important;background:transparent!important;padding:0!important;margin:0!important;width:18px!important;height:18px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;cursor:pointer;text-decoration:none!important}
.icon-link img,.icon-button img{width:17px!important;height:17px!important;object-fit:contain!important;display:block!important}
.modal-photo-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.modal-photo-grid img{width:100%;border-radius:10px;border:1px solid #dce4ef}


.profile-chip{display:flex;align-items:center;gap:10px}
.profile-avatar{width:42px;height:42px;border-radius:999px;background:#eaf1ff;color:#0b5cff;font-weight:900;display:grid;place-items:center;overflow:hidden;border:1px solid #dce4ef}
.profile-avatar img{width:100%;height:100%;object-fit:cover}
.profile-menu{position:relative}
.profile-dropdown{display:none;position:absolute;right:0;top:52px;background:white;border:1px solid #dce4ef;border-radius:12px;box-shadow:0 12px 35px rgba(10,31,68,.14);min-width:220px;z-index:10000;padding:10px}
.profile-dropdown a{display:block;text-decoration:none;padding:10px;border-radius:8px;color:#10233f}
.profile-dropdown a:hover{background:#f5f7fb}
.user-edit-row{display:none;background:#fbfcff}
.user-edit-row td{border-top:0}


.validation-subnav a.active-subtab{background:#dbeafe!important;color:#0b5cff!important;border-radius:8px;font-weight:900}


.multi-select-wrap{position:relative;width:100%}
.multi-select-display{width:100%;padding:12px;border:1px solid #cfd8e6;border-radius:10px;background:white;text-align:left;cursor:pointer;font-size:14px;color:#10233f}
.multi-select-menu{display:none;position:absolute;left:0;right:0;top:calc(100% + 4px);background:white;border:1px solid #cfd8e6;border-radius:12px;box-shadow:0 12px 35px rgba(10,31,68,.18);z-index:999;max-height:260px;overflow:auto;padding:8px}
.multi-select-menu.open{display:block}
.multi-option{display:flex;align-items:center;gap:10px;padding:10px;border-radius:8px;cursor:pointer}
.multi-option:hover{background:#f5f7fb}
.multi-option input{width:auto}
.multi-option .checkmark{width:18px;height:18px;border-radius:4px;border:1px solid #9aa8bc;display:inline-grid;place-items:center;font-size:13px;color:white;background:white;flex:none}
.multi-option input:checked + .checkmark{background:#0b5cff;border-color:#0b5cff}
.multi-selected-list{font-size:12px;color:#63728a;margin-top:6px;line-height:1.35}


.delete-confirm-actions{display:flex;gap:10px;margin-top:16px}
.error-message{background:#fde9e9;border:1px solid #f4b7b7;color:#a61919;border-radius:10px;padding:10px 12px;margin:10px 0;display:none;font-weight:800}
.table-wrap.no-scroll{overflow:visible!important;width:100%}
table.compact-admin-table{width:100%!important;table-layout:fixed!important;border-collapse:collapse!important;font-size:10.5px!important}
table.compact-admin-table th,table.compact-admin-table td{padding:6px 5px!important;white-space:normal!important;word-break:break-word!important;overflow-wrap:anywhere!important;line-height:1.2!important;vertical-align:top!important}
table.compact-admin-table small{font-size:10px!important;line-height:1.2!important;word-break:break-all!important}
table.compact-admin-table .button{padding:6px 7px!important;font-size:10px!important;white-space:normal!important}
table.compact-admin-table th:nth-child(1){width:7%}table.compact-admin-table th:nth-child(2){width:12%}table.compact-admin-table th:nth-child(3){width:12%}table.compact-admin-table th:nth-child(4){width:7%}table.compact-admin-table th:nth-child(5){width:7%}table.compact-admin-table th:nth-child(6){width:16%}table.compact-admin-table th:nth-child(7){width:16%}table.compact-admin-table th:nth-child(8){width:9%}table.compact-admin-table th:nth-child(9){width:8%}table.compact-admin-table th:nth-child(10){width:6%}

.vendor-dashboard-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:10px}
.vendor-dashboard-header .subtitle{margin-bottom:0}
.vendor-new-validation{white-space:nowrap}
.vendor-logo-avatar img{width:42px;height:42px;object-fit:contain;background:white}
.vendor-profile-logo-preview{max-width:180px;max-height:90px;object-fit:contain;border:1px solid #dce4ef;border-radius:10px;padding:8px;background:white}
.notification-bell{position:relative;border:none!important;background:transparent!important;color:#000!important;font-size:22px;padding:4px 8px;box-shadow:none!important}.bell-badge{position:absolute;top:-4px;right:-2px;background:#dc2626;color:white;border-radius:999px;font-size:11px;line-height:16px;min-width:16px;height:16px;text-align:center;font-weight:700}.public-shell{background:#f4f7fb;min-height:100vh;padding:22px}.public-card{border:4px solid #000080;border-radius:16px;overflow:hidden}.public-card h1{background:#000080;color:#fff;margin:-24px -24px 18px -24px;padding:18px 24px}.multi-select-display{background:#000080!important;color:#fff!important}.multi-option{border-bottom:1px solid #e5e9f2}.multi-option:has(input:checked){background:#edf3ff}
.new-validation-modal{width:82vw!important;max-width:980px!important;height:82vh!important;max-height:82vh!important;padding:12px!important}
.new-validation-modal iframe{width:100%;height:calc(82vh - 64px);border:1px solid #dce4ef;border-radius:12px;background:white}
@media(max-width:900px){
  .vendor-dashboard-header{display:block}
  .vendor-new-validation{width:100%;text-align:center;margin-top:12px}
  .new-validation-modal{width:96vw!important;height:88vh!important;margin:4vh auto!important}
  .new-validation-modal iframe{height:calc(88vh - 64px)}
  .validation-table,.validation-table thead,.validation-table tbody,.validation-table tr,.validation-table th,.validation-table td{display:block;width:100%!important}
  .validation-table tr{border:1px solid #dce4ef;border-radius:14px;margin:0 0 14px;background:white;overflow:hidden}
  .validation-table th{display:none}
  .validation-table td{border-bottom:1px solid #edf1f6!important;padding:10px 12px!important}
  .validation-table td:before{content:attr(data-label);display:block;font-size:11px;font-weight:900;color:#63728a;text-transform:uppercase;margin-bottom:5px}
  .validation-table td:last-child{border-bottom:0!important}
  .action-icons{min-width:0!important;flex-wrap:wrap!important}
  .photo-cell{min-width:0!important}
}


/* OneTeam 365 brand overrides */
body{font-family:'Segoe UI',Arial,sans-serif!important}
h1,h2,h3,h4,h5,h6,th,.portal-title-text{font-family:'Segoe UI',Arial,sans-serif!important;font-weight:700!important}
.sidebar{background:#000080!important}
.logo-wrap img{background:transparent!important;border-radius:0!important;padding:0!important;width:220px!important}
.nav a:hover,.nav a.active{background:#ffffff!important;color:#000080!important}
.validation-subnav a:hover{background:#ffffff!important;color:#000080!important}
.validation-subnav a.active-subtab{background:rgba(124,229,83,.35)!important;color:white!important}
.portal-title-wrap{display:flex;align-items:center;gap:14px}
.portal-title-icon{width:48px;height:48px;object-fit:contain}
.portal-title-text{font-size:32px;color:#000080;letter-spacing:.2px}
.profile-avatar{background:#fff!important;color:#000080!important}
button,.button{background:#000080}
.tile,.stat,.kpi,.card h2.validation-tile-title{font-weight:700!important}
.client-actions{display:flex;justify-content:center;gap:12px}.client-actions .action-icon{border:none!important;background:transparent!important;color:#000!important;font-size:18px}.client-actions .action-icon:hover{background:transparent!important;color:#000!important}.modal-toolbar{display:flex;justify-content:flex-start;align-items:center;gap:16px}.modal-toolbar h2{margin:0}.modal-toolbar button{margin-left:10px}.readonly-field[readonly],.readonly-field:disabled{background:#f5f7fb;color:#10233f}.nested-modal{z-index:10001;background:rgba(0,0,0,.25)}
button:hover,.button:hover{filter:brightness(.96)}

.pending-status-modal .modal-content{max-width:520px;margin:18vh auto}
.sp-actions{display:flex;justify-content:center;gap:12px;align-items:center}
.sp-actions .action-icon{border:none!important;background:transparent!important;color:#000!important;font-size:18px;padding:0}
.sp-actions .action-icon:hover{background:transparent!important;color:#000!important}
.link-disabled-notice{padding:12px 14px;border-radius:12px;background:#fde9e9;border:1px solid #f4b7b7;margin-bottom:16px}
.modal-toolbar{background:#000080!important;color:#ffffff!important;padding:16px 54px 16px 18px!important;margin:0 0 16px 0!important;font-family:'Segoe UI',Arial,sans-serif!important;font-weight:900!important}
.modal-toolbar h2{color:#ffffff!important;font-family:'Segoe UI',Arial,sans-serif!important;font-weight:900!important;margin:0!important}
.compact-admin-table th,.compact-admin-table td{text-align:center!important;vertical-align:middle!important;white-space:nowrap!important}
.compact-admin-table td:nth-child(2),.compact-admin-table th:nth-child(2){min-width:180px;white-space:normal!important}

/* v7 popup/notes refinements */
.modal-content{border:5px solid #000080!important;}
.modal-content > h2:first-of-type{margin:0 0 16px 0!important;padding:16px 54px 16px 18px!important;background:#000080!important;color:#ffffff!important;border-radius:0!important;}
.modal-close{background:#000080!important;color:#ffffff!important;line-height:1;}
.validation-view-close{background:transparent!important;color:#000080!important;}
.notes-feed-modal{height:78vh;display:flex;flex-direction:column;overflow:hidden!important;}
.notes-feed-modal > p{flex:0 0 auto;}
.notes-feed-box{flex:1 1 auto;overflow-y:auto;border:2px solid #cfd8e6;border-radius:10px;background:#fbfcff;padding:12px;margin:0 18px 14px 18px;}
.notes-add-form{flex:0 0 auto;margin:0 18px 18px 18px!important;}
.notes-add-form textarea{min-height:80px;}
/* make client/contact add popups roomier */
#newContactModal .modal-content,.nested-modal .modal-content{width:64vw;max-width:980px;}
.admin-new-validation-modal{width:82vw!important;max-width:1050px!important;max-height:86vh!important;overflow-y:auto!important;}
.admin-new-validation-modal .modal-section-title{font-size:18px;font-weight:900;margin:18px 0 10px;color:#000080;}
.admin-new-validation-modal .service-checkbox-list{min-height:84px;border:1px solid #cfd8e6;border-radius:10px;padding:10px;background:#fbfcff;}
.admin-new-validation-modal .service-checkbox-list label{display:block;font-weight:700;margin:6px 0;}

.link-button{border:0;background:transparent!important;color:#000080!important;text-decoration:underline;padding:0;font:inherit;cursor:pointer}.badge.muted{background:#e5e7eb;color:#374151}
.milestone-check-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 16px;border:1px solid #cfd8e6;border-radius:10px;padding:12px;background:#fbfcff}.milestone-column{display:flex;flex-direction:column;gap:8px}.milestone-program-item{display:flex;align-items:center;justify-content:space-between;gap:6px;min-height:30px;border-bottom:1px solid #e5e9f2;padding-bottom:6px}.milestone-program-item label{font-weight:700;display:flex;align-items:center;gap:6px;margin:0;font-size:12px;line-height:1.1}.milestone-occ-row{display:inline-flex!important;align-items:center;gap:4px;flex:0 0 auto}.milestone-program-item button{padding:4px 6px;font-size:10px;white-space:nowrap;line-height:1;border-radius:6px}.milestone-program-item select.occ-select{width:38px!important;min-width:38px!important;max-width:38px!important;padding:3px 4px!important;font-size:11px!important;border-radius:6px!important}.milestone-program-item input[type=number]{width:38px!important;max-width:38px!important;padding:3px 4px!important;font-size:11px!important}.milestone-check-grid input{width:auto!important}.site-actions{display:flex;justify-content:center;gap:10px}.site-actions .action-icon{border:none!important;background:transparent!important;color:#000!important;font-size:18px;padding:0}.site-actions .action-icon:hover{background:transparent!important;color:#000!important}.tracker-filters{display:grid;grid-template-columns:repeat(6,minmax(130px,1fr));gap:10px;align-items:end}.tracker-filters input,.tracker-filters select{margin:0}.site-profile-modal{width:76vw!important;max-width:1100px!important}@media(max-width:900px){.milestone-check-grid{grid-template-columns:1fr}.tracker-filters{grid-template-columns:1fr}}
.table-wrap{overflow-x:auto!important}

/* OneTeam365 UI Phase 1: visual foundation; backend and data unchanged */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');
:root{--gunmetal:#000080;--gunmetal2:#07074f;--blue:#000080;--blue2:#14148b;--green:#7ce553;--bg:#f6f8fb;--border:#e1e6ee;--text:#17233b;--muted:#65738b}
body{font-family:'Segoe UI',Arial,sans-serif;font-size:13px;letter-spacing:-.01em}
.sidebar{background:linear-gradient(180deg,#000080,#090950);width:240px;padding:16px 12px;display:flex;flex-direction:column;overflow:visible;transition:width .18s ease;z-index:40}
.sidebar .logo-wrap{margin:12px 5px 22px}.sidebar .logo-wrap img{background:transparent;padding:0;width:195px}
.sidebar .nav{overflow-y:auto;overflow-x:hidden;flex:1}
.sidebar .nav a{font-size:12px;font-weight:600;padding:12px 13px;border-radius:9px;white-space:nowrap}
.sidebar .nav a:hover{background:rgba(255,255,255,.13)}.sidebar .nav a.active{background:rgba(124,229,83,.19);box-shadow:inset 3px 0 #7ce553;color:white}
.main{margin-left:240px;width:calc(100% - 240px);transition:margin-left .18s ease,width .18s ease}
.sidebar-collapse{align-self:flex-end;background:transparent!important;border:0!important;color:white!important;font-size:21px;padding:4px 10px!important;cursor:pointer}
.sidebar-bottom{position:relative;margin-top:auto;padding-top:12px;border-top:1px solid rgba(255,255,255,.18)}
.sidebar-settings,.sidebar-user{display:flex;align-items:center;gap:12px;width:100%;padding:10px!important;color:white!important;background:transparent!important;border:0!important;text-decoration:none;font-weight:600;text-align:left}
.sidebar-user .profile-avatar,.sidebar-user img{width:34px!important;height:34px!important;object-fit:cover;border-radius:50%}
.sidebar-settings-menu{position:absolute;bottom:100%;left:10px;background:white;border:1px solid #dce2eb;border-radius:12px;box-shadow:0 14px 36px #101f3d33;min-width:185px;padding:8px;z-index:100;color:#000080}
.sidebar-settings-menu[hidden]{display:none}.sidebar-settings-menu a{display:block;padding:10px;color:#000080;text-decoration:none;border-radius:7px}.sidebar-settings-menu a:hover{background:#f0f5f9}
.ot-sidebar-collapsed .sidebar{width:58px;padding-left:7px;padding-right:7px}.ot-sidebar-collapsed .main{margin-left:58px;width:calc(100% - 58px)}
.ot-sidebar-collapsed .sidebar .logo-wrap,.ot-sidebar-collapsed .sidebar .nav a{font-size:0;overflow:hidden}.ot-sidebar-collapsed .sidebar .logo-wrap{height:12px;margin:4px 0}.ot-sidebar-collapsed .sidebar .logo-wrap img{display:none}.ot-sidebar-collapsed .sidebar .nav a{padding:12px 4px;text-align:center}.ot-sidebar-collapsed .sidebar .nav a::first-letter{font-size:16px}.ot-sidebar-collapsed .sidebar-settings span,.ot-sidebar-collapsed .sidebar-user span{display:none}
.topbar{height:66px;padding:0 24px}.page{padding:24px 26px 48px}.page h1{font-size:25px;letter-spacing:-.035em}
.card{border-radius:13px;box-shadow:0 3px 14px rgba(19,35,64,.045)}
button,.button{border-radius:8px;font-family:'Segoe UI',Arial,sans-serif;font-weight:600}
.validation-table{min-width:1420px;border-collapse:separate;border-spacing:0}.validation-table th{white-space:nowrap;font-size:11px;letter-spacing:.02em;color:#4b5a70;background:#f5f7fa;position:sticky;top:0;z-index:2}
.validation-table td{vertical-align:middle;font-size:12px}.validation-table tbody tr:hover{background:#f9fbfd}
.validation-table th:last-child,.validation-table td:last-child{position:sticky;right:0;background:white;z-index:3;box-shadow:-5px 0 12px #1c2b4410;min-width:140px}
.ot-action-group{display:flex;align-items:stretch;border:1px solid #c9d4e5;border-radius:8px;position:relative;background:#f2f5fa}
.ot-view-btn,.ot-action-dropdown summary{border:0!important;background:transparent!important;color:#000080!important;padding:8px 12px!important;font-size:12px;cursor:pointer}
.ot-action-dropdown{position:relative}.ot-action-dropdown summary{list-style:none;border-left:1px solid #c9d4e5!important;font-size:18px;line-height:16px}.ot-action-dropdown summary::-webkit-details-marker{display:none}
.ot-action-menu{position:absolute;right:0;top:100%;min-width:170px;background:white;border:1px solid #dce3ed;border-radius:10px;box-shadow:0 12px 28px #18253b33;z-index:20;padding:5px}
.ot-action-menu a,.ot-action-menu button{display:block;width:100%;text-align:left;text-decoration:none;background:transparent!important;color:#1b2b47!important;border:0!important;padding:10px!important;font-size:12px;border-radius:6px;cursor:pointer}.ot-action-menu a:hover,.ot-action-menu button:hover{background:#eef3f9!important}.ot-action-menu .ot-danger{color:#b42318!important}
@media(max-width:800px){.sidebar{width:58px}.main{margin-left:58px;width:calc(100% - 58px)}.page{padding:16px}.topbar{padding:0 12px}}


/* Stable navigation and Service History toolbar typography */
.sidebar .nav a,.sidebar .nav a.active,.sidebar .nav a:hover,.sidebar-settings,.sidebar-user{font-family:'Segoe UI',Arial,sans-serif!important;font-size:14px!important;font-weight:650!important;letter-spacing:normal!important;}
.sidebar .nav a.active{font-weight:650!important;}
.ot-filter-chip,.ot-filter-toolbar button,.ot-saved-filters button{font-weight:500!important;font-size:13px!important;letter-spacing:normal!important;}
/* OneTeam365 Service History Phase 2 */
.sidebar .nav a{display:flex;align-items:center;gap:13px;min-height:44px;font-size:13px}
.ot-nav-icon{width:20px;height:20px;flex:none}.ot-nav-label{white-space:nowrap}
.sidebar-collapse{width:32px;height:32px;border:1px solid #ffffff50!important;border-radius:8px!important;display:grid;place-items:center;transition:background .2s}
.sidebar-collapse:hover{background:#ffffff26!important}.ot-chevron{display:block;font-size:16px;line-height:1}
.ot-sidebar-collapsed .ot-chevron{transform:rotate(180deg)}
.ot-sidebar-collapsed .sidebar .nav a{font-size:13px;padding:11px 10px;justify-content:center}
.ot-sidebar-collapsed .ot-nav-label{display:none}.ot-sidebar-collapsed .ot-nav-icon{width:22px;height:22px}
.ot-sidebar-collapsed .sidebar .nav a::first-letter{font-size:inherit}
.ot-sidebar-collapsed .sidebar .logo-wrap{height:18px}
.ot-filter-shell{background:#fff;border:1px solid #e0e7f0;border-radius:14px;padding:14px 16px;margin-bottom:16px;box-shadow:0 3px 12px #142a4909;position:relative;z-index:15}
.ot-filter-top{display:flex;align-items:center;justify-content:space-between;color:#000080;font-size:13px;margin-bottom:10px}
.ot-filter-arrows{display:flex;gap:6px}.ot-filter-arrows button{background:#f6f8fc!important;color:#000080!important;border:1px solid #dce2ec!important;padding:3px 12px!important;font-size:20px!important}
.ot-filter-rail{display:flex;gap:8px;overflow-x:auto;scrollbar-width:thin;padding:3px 0 12px;scroll-behavior:smooth}
.ot-filter-chip-wrap{position:relative;flex:none}.ot-filter-chip{border:1px solid #cbd5e1!important;background:#fff!important;color:#000080!important;font-weight:700!important;padding:10px 14px!important;white-space:nowrap;min-height:39px}
.ot-filter-chip.ot-active{background:rgba(124,229,83,.22)!important;border-color:#7ce553!important}.ot-chip-count{margin-left:4px;color:#000080}
.ot-filter-panel{position:fixed;z-index:100;top:calc(100% + 4px);left:0;background:white;border:1px solid #dce3ed;border-radius:12px;box-shadow:0 16px 40px #14284733;padding:14px;min-width:275px;max-width:340px;color:#182a45}
.ot-filter-panel[hidden]{display:none!important}.ot-filter-panel-title{font-size:15px;font-weight:750;color:#000080;margin-bottom:10px}
.ot-filter-search{width:100%;margin-bottom:10px}.ot-filter-options{max-height:290px;overflow-y:auto}.ot-filter-option{display:flex;align-items:center;gap:9px;padding:9px 4px;font-size:12px;font-weight:500;cursor:pointer}.ot-filter-option[hidden]{display:none}.ot-filter-option:hover{background:#f4f8fc}.ot-filter-option input{width:auto!important;margin:0!important}
.ot-filter-bottom{display:flex;align-items:center;gap:9px;flex-wrap:wrap;padding-top:5px}.ot-filter-bottom>input{flex:1;min-width:200px}.ot-clear-filters,.ot-export-filtered{color:#000080;font-weight:700;text-decoration:none;border:1px solid #d4ddeb;border-radius:8px;padding:10px 12px;white-space:nowrap}.ot-saved-filters{position:relative}.ot-saved-filters .ot-filter-panel{position:absolute;top:100%;left:auto;right:0;min-width:285px}.ot-saved-filters .ot-filter-panel>input{width:100%;margin:8px 0}.ot-saved-filters #otSavedItems button{display:block;background:#f3f7fa;color:#000080;width:100%;text-align:left;margin:4px 0;padding:9px}.ot-share-label{display:flex;align-items:center;gap:7px;font-size:12px}.ot-share-label input{width:auto}
.ot-status-cards{display:grid;grid-template-columns:repeat(5,minmax(110px,1fr));gap:12px;margin:16px 0 20px}.ot-status-card{display:flex;align-items:center;gap:10px;background:#fff;border:1px solid #e0e7f0;border-radius:13px;padding:17px 15px;color:#000080;text-decoration:none;box-shadow:0 2px 12px #1428470a}.ot-status-card:hover,.ot-status-card.ot-selected{border-color:#7ce553;background:#f1fbe9}.ot-status-card-icon{display:grid;place-items:center;border-radius:50%;background:#eef2ff;width:32px;height:32px;flex:none;font-weight:800}.ot-status-card-icon.approved{background:#e4f8de}.ot-status-card-icon.rejected{background:#ffebec}.ot-status-card-icon.pending_review{background:#fff2da}.ot-status-card-label{font-weight:700;font-size:13px}.ot-status-card strong{margin-left:auto;font-size:22px}
.ot-history-card{overflow:visible}.ot-bulk-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#eef7e9;border:1px solid #7ce553;border-radius:9px;padding:10px 13px;margin-bottom:12px}.ot-bulk-bar[hidden]{display:none}.ot-bulk-actions{display:flex;gap:7px;flex-wrap:wrap}.ot-bulk-actions button{font-size:12px;padding:8px 10px}
.ot-check-col{min-width:40px!important;width:40px!important}.ot-check-col input{width:16px!important;height:16px!important}
.validation-table th[data-sort]{cursor:pointer;user-select:none}.validation-table th[data-sort]:hover{background:#e9f4e4;color:#000080}.validation-table th[aria-sort=ascending]::after{content:' ↑'}.validation-table th[aria-sort=descending]::after{content:' ↓'}
.ot-status-button{border:1px solid transparent!important;min-width:95px;border-radius:16px!important;padding:7px 10px!important;font-size:12px!important;font-weight:750!important;cursor:pointer}.ot-status-button.NEW{background:#eaf2ff!important;color:#174ea6!important}.ot-status-button.PENDING_REVIEW{background:#fff1d7!important;color:#8c4e04!important}.ot-status-button.APPROVED{background:#e5f7e9!important;color:#176c35!important}.ot-status-button.REJECTED{background:#ffeaec!important;color:#b42335!important}.ot-status-button:hover{outline:2px solid #7ce553}
.ot-status-dialog{max-width:540px!important;padding:24px!important;border-radius:14px!important}.ot-dialog-head{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #e1e7ee;margin-bottom:20px}.ot-dialog-head h2{font-size:20px}.ot-dialog-head small{font-size:12px;color:#617086}.ot-close{background:transparent!important;color:#b42335!important;font-size:25px!important;padding:0 5px!important}.ot-dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:22px}.ot-status-dialog label{display:block;margin:12px 0 7px;font-weight:700}.ot-status-dialog textarea{width:100%}
.ot-action-dropdown[open] .ot-action-menu{z-index:80}.validation-table th:last-child,.validation-table td:last-child{z-index:5}.validation-table td:last-child:has(details[open]){z-index:30}
@media(max-width:1000px){.ot-status-cards{grid-template-columns:repeat(3,minmax(110px,1fr))}}@media(max-width:650px){.ot-status-cards{grid-template-columns:repeat(2,minmax(110px,1fr))}.ot-bulk-bar{display:block}.ot-bulk-actions{margin-top:10px}}


/* Round 2: typography, elevation, controls and navigation */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');
body,button,input,select,textarea{font-family:'Segoe UI',Arial,sans-serif!important}
body{font-size:15px!important;background:#f4f7fc;color:#17233b}
.topbar[hidden]{display:none!important}
.page{padding:21px 26px 48px!important}
.ot-page-title{display:flex;align-items:center;gap:13px;font-size:34px!important;font-weight:850!important;letter-spacing:-.045em!important;margin:0 0 18px!important;color:#000080}
.ot-page-title svg{width:32px;height:32px;flex:none}
.sidebar{box-shadow:5px 0 26px rgba(8,20,70,.12)}
.sidebar .nav a{font-size:14px!important;font-weight:650!important;min-height:48px}
.sidebar .logo-wrap img{max-width:155px!important;width:155px!important;height:auto!important}
.sidebar .nav a.active{border-radius:11px;background:rgba(124,229,83,.21)!important}
.ot-sidebar-collapsed .sidebar{width:70px!important;padding-left:10px!important;padding-right:10px!important}
.ot-sidebar-collapsed .main{margin-left:70px!important;width:calc(100% - 70px)!important}
.ot-sidebar-collapsed .sidebar .nav a{padding:12px!important;justify-content:center}
.ot-sidebar-collapsed .sidebar .logo-wrap{height:16px!important;margin:5px 0 14px!important}
.sidebar-settings{min-height:48px!important;font-size:14px!important;gap:13px!important;border-radius:10px!important}
.sidebar-settings:hover,.sidebar-user:hover{background:rgba(255,255,255,.13)!important}
.ot-sidebar-collapsed .sidebar-settings{justify-content:center!important;padding:12px!important}
.ot-sidebar-collapsed .sidebar-settings .ot-nav-icon{width:24px!important;height:24px!important}
.ot-sidebar-collapsed .sidebar-user{justify-content:center!important;padding:8px 3px!important}
.ot-sidebar-collapsed .sidebar-user .profile-avatar,.ot-sidebar-collapsed .sidebar-user img{width:38px!important;height:38px!important;min-width:38px!important;flex:none!important}
.ot-profile-wrap{position:relative}.ot-profile-menu{bottom:calc(100% + 8px)!important}
.ot-future-option{display:block;padding:10px;color:#7b8799;font-size:13px}
.sidebar-settings-menu{min-width:220px!important;left:100%!important;bottom:0!important}
.sidebar-settings-menu a{font-size:14px;font-weight:650}
.ot-filter-shell,.card{border-radius:18px!important;box-shadow:0 9px 28px rgba(13,35,85,.065)!important;border:1px solid #e1e7f0!important}
.ot-filter-shell{padding:18px 20px!important}
.ot-filter-top{font-size:16px!important;margin-bottom:12px!important}
.ot-filter-chip{border-radius:12px!important;padding:12px 18px!important;font-size:14px!important;font-weight:800!important;box-shadow:0 3px 8px rgba(0,0,80,.07)!important;transition:transform .16s,box-shadow .16s,border-color .16s}
.ot-filter-chip:hover{transform:translateY(-2px);box-shadow:0 8px 18px rgba(0,0,80,.13)!important;border-color:#7ce553!important}
.ot-filter-chip.ot-active{background:rgba(124,229,83,.26)!important;border-color:#7ce553!important}
.ot-filter-panel{font-size:14px;box-shadow:0 20px 46px #14284733!important}
.ot-filter-option{font-size:14px!important}
.ot-date-label{display:block;margin:10px 0 5px;color:#000080;font-weight:750;font-size:13px}
.ot-date-end[hidden]{display:none!important}
.ot-filter-bottom input{font-size:14px!important}
.ot-status-card{border-radius:16px!important;padding:20px!important;box-shadow:0 7px 18px #14284710!important;transition:transform .16s,box-shadow .16s}
.ot-status-card:hover{transform:translateY(-2px);box-shadow:0 13px 26px #14284718!important}
.ot-status-card-label{font-size:15px!important}.ot-status-card strong{font-size:26px!important}
.validation-table{min-width:1850px!important}
.validation-table th{font-size:13px!important;font-weight:800!important;padding:15px 12px!important}
.validation-table td{font-size:14px!important;line-height:1.45!important;padding:13px 12px!important}
.validation-table th,.validation-table td{width:auto!important;min-width:115px}
.validation-table th:first-child,.validation-table td:first-child{min-width:42px!important;width:42px!important}
.validation-table th:last-child,.validation-table td:last-child{min-width:150px!important;width:150px!important}
.ot-status-button{font-size:13px!important}.ot-view-btn,.ot-action-dropdown summary{font-size:14px!important}
.ot-history-card{padding:20px!important}
@media(max-width:900px){.page{padding:16px!important}.ot-page-title{font-size:27px!important}.ot-sidebar-collapsed .sidebar{width:70px!important}}
/* Round 3: compact history toolbar, full-width work area, crisp columns */
.ot-page-title[hidden]{display:none!important}
.page{padding:12px 14px 40px!important}
.sidebar .logo-wrap{display:flex!important;justify-content:center!important;align-items:center!important;margin-left:0!important;margin-right:0!important}
.sidebar .nav a.active{background:#fff!important;color:#000080!important;box-shadow:inset 4px 0 #7ce553,inset -4px 0 #7ce553,0 6px 16px #00002025!important;font-weight:800!important}
.sidebar .nav a.active .ot-nav-icon{color:#000080!important}
.ot-filter-shell{padding:14px 17px!important;margin-bottom:12px!important}
.ot-filter-top{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:20px!important;margin-bottom:10px!important;flex-wrap:wrap}
.ot-inline-history-title{display:flex;align-items:center;gap:11px;margin:0!important;font-size:30px!important;font-weight:850!important;letter-spacing:-.04em;color:#000080;white-space:nowrap}
.ot-inline-history-title svg{width:30px;height:30px;flex:none}
.ot-filter-toolbar{display:flex;align-items:center;justify-content:flex-end;gap:9px;flex:1;min-width:420px}
.ot-filter-toolbar>input[type=search]{width:225px!important;min-width:130px!important;max-width:270px!important;flex:0 1 225px!important;font-size:13px!important;padding:10px 12px!important;border-radius:10px!important}
.ot-filter-toolbar .ot-clear-filters{color:#c62828!important;border-color:#f2c7c7!important;background:#fff7f7!important}
.ot-filter-toolbar .ot-saved-filters>.ot-filter-chip{padding:10px 12px!important}
.ot-filter-toolbar .ot-new-record{background:#000080!important;color:white!important;border-radius:10px!important;padding:11px 15px!important;font-size:13px!important;font-weight:800!important;white-space:nowrap;box-shadow:0 5px 14px #00008024}
.ot-filter-rail-row{display:flex;align-items:center;gap:8px;min-width:0}
.ot-filter-rail{flex:1;min-width:0;padding:5px 0 8px!important;scrollbar-width:none}
.ot-filter-rail::-webkit-scrollbar{display:none}
.ot-rail-arrow{flex:0 0 33px;min-width:33px!important;width:33px!important;height:39px;padding:0!important;background:#f2f5fa!important;color:#000080!important;border:1px solid #d9e1ed!important;border-radius:9px!important;font-size:25px!important;line-height:1!important}
.ot-rail-arrow:hover{background:#eaf7e6!important;border-color:#7ce553!important}
.ot-history-card{padding:12px!important}
.ot-history-card .table-wrap{overflow-x:auto!important;overflow-y:visible!important;max-width:100%;border-radius:10px}
.validation-table{table-layout:fixed!important;min-width:2200px!important;width:100%!important;border-collapse:separate!important;border-spacing:0!important}
.validation-table th,.validation-table td{box-sizing:border-box!important;white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal!important;vertical-align:middle!important;padding:13px 12px!important;line-height:1.35!important}
.validation-table th{position:sticky!important;top:0!important;z-index:6!important;background:#eef2f9!important;white-space:normal!important}
.validation-table th:last-child{z-index:9!important}
.validation-table td:last-child{z-index:5!important}
.validation-table th:nth-child(1),.validation-table td:nth-child(1){width:48px!important;min-width:48px!important}
.validation-table th:nth-child(2),.validation-table td:nth-child(2){width:120px!important;min-width:120px!important}
.validation-table th:nth-child(3),.validation-table td:nth-child(3){width:155px!important;min-width:155px!important}
.validation-table th:nth-child(4),.validation-table td:nth-child(4){width:150px!important;min-width:150px!important}
.validation-table th:nth-child(5),.validation-table td:nth-child(5){width:155px!important;min-width:155px!important}
.validation-table th:nth-child(6),.validation-table td:nth-child(6){width:150px!important;min-width:150px!important}
.validation-table th:nth-child(7),.validation-table td:nth-child(7){width:190px!important;min-width:190px!important}
.validation-table th:nth-child(8),.validation-table td:nth-child(8){width:165px!important;min-width:165px!important}
.validation-table th:nth-child(9),.validation-table td:nth-child(9){width:170px!important;min-width:170px!important}
.validation-table th:nth-child(10),.validation-table td:nth-child(10){width:205px!important;min-width:205px!important}
.validation-table th:nth-child(11),.validation-table td:nth-child(11){width:155px!important;min-width:155px!important}
.validation-table th:nth-child(12),.validation-table td:nth-child(12),.validation-table th:nth-child(13),.validation-table td:nth-child(13){width:125px!important;min-width:125px!important}
.validation-table th:nth-child(14),.validation-table td:nth-child(14){width:165px!important;min-width:165px!important}
.validation-table th:last-child,.validation-table td:last-child{width:170px!important;min-width:170px!important}
@media(max-width:1150px){.ot-filter-top{align-items:flex-start!important}.ot-filter-toolbar{min-width:0;width:100%;flex-wrap:wrap}.ot-filter-toolbar>input[type=search]{margin-right:auto}}
@media(max-width:650px){.ot-inline-history-title{font-size:25px!important}.ot-filter-toolbar{justify-content:flex-start}.ot-filter-toolbar>input[type=search]{width:100%!important;max-width:none!important;flex:1 1 100%!important}}

/* Service History / Work Orders alignment: compact typography and soft navigation */
body:has(.ot-history-card) .ot-inline-history-title{font-family:'Segoe UI',Arial,sans-serif!important;font-size:23px!important;font-weight:800!important;letter-spacing:-.02em!important;line-height:1.2!important}
body:has(.ot-history-card) .ot-inline-history-title svg{width:25px!important;height:25px!important}
body:has(.ot-history-card) .ot-filter-chip,body:has(.ot-history-card) .ot-filter-toolbar .ot-clear-filters{font-family:'Segoe UI',Arial,sans-serif!important;font-size:13px!important;font-weight:500!important;letter-spacing:normal!important;padding:9px 13px!important;min-height:36px!important}
.sidebar{border-radius:0 16px 16px 0!important;box-shadow:6px 0 22px rgba(0,0,45,.18)!important}
.sidebar .nav a{border-radius:11px!important;box-shadow:0 1px 5px rgba(0,0,30,.08)!important}
.sidebar .nav a:hover{box-shadow:0 4px 12px rgba(0,0,30,.17)!important}
/* Round 4: fixed Service History workspace and accessible action overlays */
body:has(.ot-history-card){overflow:hidden!important}
body:has(.ot-history-card) .main{height:100vh!important;overflow:hidden!important;display:flex!important;flex-direction:column!important}
body:has(.ot-history-card) .page{height:100%!important;min-height:0!important;overflow:hidden!important;display:flex!important;flex-direction:column!important;padding-bottom:10px!important}
body:has(.ot-history-card) .ot-filter-shell,body:has(.ot-history-card) .ot-status-cards{flex-shrink:0!important}
body:has(.ot-history-card) .ot-history-card{flex:1 1 0!important;min-height:0!important;display:flex!important;flex-direction:column!important;overflow:hidden!important}
body:has(.ot-history-card) .ot-history-card .table-wrap{flex:1 1 0!important;min-height:0!important;overflow:auto!important;overscroll-behavior:contain!important;scrollbar-width:auto!important;scrollbar-color:#8b98ae #eef2f7!important;border:1px solid #dfe5ee}
body:has(.ot-history-card) .ot-history-card .table-wrap::-webkit-scrollbar{height:14px;width:12px}
body:has(.ot-history-card) .ot-history-card .table-wrap::-webkit-scrollbar-thumb{background:#91a0b8;border:3px solid #eef2f7;border-radius:10px}
body:has(.ot-history-card) .ot-history-card .table-wrap::-webkit-scrollbar-track{background:#eef2f7}
body:has(.ot-history-card) .validation-table{margin:0!important}
body:has(.ot-history-card) .validation-table th{position:sticky!important;top:0!important;background:#edf2fa!important;color:#000080!important;font-size:14px!important;font-weight:850!important;z-index:10!important;box-shadow:0 2px 0 #c8d3e5}
body:has(.ot-history-card) .validation-table th:last-child{z-index:13!important;background:#edf2fa!important}
body:has(.ot-history-card) .validation-table td:last-child{z-index:7!important}
.ot-action-group{width:100%!important;min-width:138px!important;display:flex!important;align-items:stretch!important}
.ot-view-btn{flex:1 1 auto!important;min-width:0!important;text-align:center!important;display:grid!important;place-items:center!important;font-weight:750!important;padding:9px 6px!important}
.ot-action-dropdown{flex:0 0 32px!important;width:32px!important;min-width:32px!important}
.ot-action-dropdown summary{width:32px!important;height:100%!important;display:grid!important;place-items:center!important;padding:6px 0!important;font-size:21px!important;font-weight:850!important}
.ot-action-menu{z-index:100000!important;min-width:205px!important;max-height:min(380px,70vh)!important;overflow-y:auto!important;box-shadow:0 20px 48px #101b3f55!important}
.ot-action-menu .ot-download-report{font-weight:inherit!important;font-size:inherit!important;font-family:'Segoe UI',Arial,sans-serif!important;letter-spacing:inherit!important}
body:has(.ot-history-card) .validation-table td:last-child:has(.ot-action-dropdown[open]){z-index:70!important;overflow:visible!important}
.ot-status-card-icon{width:43px!important;height:43px!important;border-radius:50%!important;background:#e6edff!important;color:#000080!important}
.ot-status-card-icon svg{width:27px;height:27px}
.ot-status-card-icon.new{background:#e7f0ff!important;color:#1560c6!important}
.ot-status-card-icon.pending_review{background:#fff4c7!important;color:#b88600!important}
.ot-status-card-icon.approved{background:#e2f7e9!important;color:#16853d!important}
.ot-status-card-icon.rejected{background:#ffeaeb!important;color:#d52339!important}
@media(max-width:800px){body:has(.ot-history-card) .page{padding-bottom:8px!important}}

/* Round 5: compact integrated status row, multi-select apply controls */
body:has(.ot-history-card) .ot-filter-shell{padding:10px 14px 8px!important;margin-bottom:5px!important}
body:has(.ot-history-card) .ot-filter-top{margin-bottom:5px!important}
body:has(.ot-history-card) .ot-filter-rail{padding:2px 0 4px!important}
body:has(.ot-history-card) .ot-status-cards{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:7px!important;margin:5px 0 0!important}
body:has(.ot-history-card) .ot-status-card{min-width:0!important;padding:7px 10px!important;border-radius:10px!important;gap:7px!important;box-shadow:none!important;min-height:39px!important}
body:has(.ot-history-card) .ot-status-card-icon{width:23px!important;height:23px!important}
body:has(.ot-history-card) .ot-status-card-icon svg{width:17px!important;height:17px!important}
body:has(.ot-history-card) .ot-status-card-label{font-size:13px!important}
body:has(.ot-history-card) .ot-status-card strong{font-size:15px!important}
body:has(.ot-history-card) .ot-history-card{margin-top:0!important;padding:6px!important}
.ot-facet-footer{display:flex;gap:8px;align-items:center;justify-content:space-between;border-top:1px solid #e5eaf2;padding-top:10px;margin-top:8px}
.ot-facet-footer button{font-weight:800!important;font-size:13px!important;border-radius:9px!important;padding:8px 16px!important}
.ot-facet-clear{background:#f7f9fc!important;color:#b42335!important;border:1px solid #dbe2eb!important}
.ot-facet-apply{background:#000080!important;color:white!important;border:1px solid #000080!important}
.ot-filter-option input[type=checkbox]{accent-color:#000080;width:16px!important;height:16px!important}
.ot-submission-link{background:transparent!important;border:0!important;box-shadow:none!important;color:#000080!important;text-decoration:underline!important;text-underline-offset:3px;font-weight:800!important;font-size:inherit!important;padding:2px 0!important;cursor:pointer}
/* Match the original table cell typography, not global button typography. */
body:has(.ot-history-card) .validation-table td .ot-submission-link{
  font-family:'Segoe UI',Arial,sans-serif!important;
  font-size:13px!important;
  font-weight:600!important;
  line-height:inherit!important;
  letter-spacing:normal!important;
  min-width:0!important;
  width:auto!important;
  height:auto!important;
  margin:0!important;
  padding:0!important;
  vertical-align:baseline!important;
  display:inline!important;
}
.ot-submission-link:hover{color:#2557c7!important}
@media(max-width:850px){body:has(.ot-history-card) .ot-status-card{padding:6px!important}body:has(.ot-history-card) .ot-status-card-label{font-size:11px!important}}

/* Service History polish: compact sticky column headings */
body:has(.ot-history-card) .validation-table{height:auto!important;align-self:flex-start!important}
body:has(.ot-history-card) .validation-table thead{height:auto!important;min-height:0!important}
body:has(.ot-history-card) .validation-table thead tr{height:48px!important;min-height:48px!important;max-height:48px!important}
body:has(.ot-history-card) .validation-table thead th{height:48px!important;min-height:48px!important;max-height:48px!important;padding:9px 12px!important;vertical-align:middle!important;line-height:1.2!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
body:has(.ot-history-card) .ot-history-card .table-wrap{align-items:flex-start!important;align-content:flex-start!important}
/* Consistent, restrained modal presentation across internal modules */
body .modal{background:rgba(12,25,53,.42)!important;backdrop-filter:blur(3px)}
body .modal .modal-content{border:1px solid #dce4ef!important;border-radius:18px!important;background:#fff!important;box-shadow:0 24px 75px rgba(16,33,68,.25)!important;overflow:auto;max-height:88vh}
body .modal .modal-content > h2:first-of-type{background:#fff!important;color:#112c5a!important;border-bottom:1px solid #e5eaf2!important;border-radius:0!important;font-family:'Segoe UI',Arial,sans-serif!important;font-size:21px!important;font-weight:800!important;line-height:1.3!important;margin:0 0 18px!important;padding:20px 58px 17px 22px!important}
body .modal .modal-content > .modal-close{position:absolute;right:15px;top:13px;width:34px;height:34px;display:grid;place-items:center;border-radius:10px!important;background:#f1f5fb!important;color:#27416b!important;font-size:24px;line-height:1!important;z-index:5;cursor:pointer}
body .modal .modal-content{position:relative}
body .modal .modal-content label{color:#263e63;font-weight:700}
body .modal .modal-content input:not([type=checkbox]):not([type=radio]):not([type=file]),body .modal .modal-content select,body .modal .modal-content textarea{border:1px solid #cbd6e7;border-radius:10px;background:#fff;min-height:38px}
body .modal .modal-content input:focus,body .modal .modal-content select:focus,body .modal .modal-content textarea:focus{outline:2px solid rgba(124,229,83,.6);outline-offset:1px;border-color:#4386ad}
body .modal .modal-content button:not(.modal-close):not(.ot-r6-close):not(.secondary):not(.danger){border-radius:10px!important}
body .modal .modal-content .secondary{background:#f1f5fb!important;color:#1e3763!important;border:1px solid #d6dfeb!important;border-radius:10px!important}
/* The record creation form has its own structured header; do not force the old blue banner. */
body .modal .modal-content.ot-r6-create{border:1px solid #dce4ef!important;border-radius:20px!important}
body .modal .modal-content.ot-r6-create > h2:first-of-type{border:0!important;margin:0!important;padding:0 44px 0 0!important;font-size:24px!important}
body .modal .modal-content.ot-r6-create .ot-r6-close{z-index:6}
/* Right-side record inspector */
body:has(.ot-history-card) .ot-r6-preview{border-left:1px solid #dce4ef!important;background:#f7f9fd!important;box-shadow:-16px 0 45px rgba(19,39,78,.18)!important}
.ot-r6-panel-data{font-family:'Segoe UI',Arial,sans-serif}
.ot-r6-preview .ot-r6-panel-heading{background:linear-gradient(125deg,#071b58,#142d78)!important;color:white!important;padding:21px 20px!important;border:0!important;gap:12px}
.ot-r6-preview .ot-r6-panel-heading strong{font-size:19px!important;letter-spacing:.01em;overflow-wrap:anywhere}
.ot-r6-preview .ot-r6-panel-heading button{color:#fff!important;background:rgba(255,255,255,.14)!important;border-radius:10px!important;width:34px;height:34px;flex-shrink:0}
.ot-r6-preview .ot-r6-tabs{background:#fff!important;padding:7px 10px 0!important;gap:5px!important;border-bottom:1px solid #dfe6f0!important}
.ot-r6-preview .ot-r6-tabs button{font-size:13px!important;border-radius:9px 9px 0 0!important}
.ot-r6-preview .ot-r6-tabs button.active{background:#eff9ec!important;border-bottom:3px solid #7ce553!important}
.ot-r6-preview .ot-r6-tab-body{padding:17px 19px!important}
.ot-r6-preview .ot-r6-tab-body dl{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1.3fr)!important;gap:0!important;margin:0!important;background:#fff;border:1px solid #e0e7f0;border-radius:14px;overflow:hidden;box-shadow:0 3px 14px rgba(24,49,92,.04)}
.ot-r6-preview .ot-r6-tab-body dt,.ot-r6-preview .ot-r6-tab-body dd{padding:12px 13px!important;border-bottom:1px solid #edf1f7;font-size:13px!important;line-height:1.5!important}
.ot-r6-preview .ot-r6-tab-body dt{color:#61708a!important;background:#fafcff;font-weight:700!important}
.ot-r6-preview .ot-r6-tab-body dd{color:#132c53!important;font-weight:650!important}
.ot-r6-preview .ot-r6-tab-body dt:last-of-type,.ot-r6-preview .ot-r6-tab-body dd:last-of-type{border-bottom:0}
.ot-r6-preview .ot-r6-tab-body dd button{background:#eaf2ff!important;color:#123e8c!important;border:1px solid #d4e2fb!important;border-radius:8px!important;padding:5px 9px!important;margin-left:6px;font-size:12px!important}
.ot-r6-preview .ot-r6-summary{display:flex;flex-wrap:wrap;gap:7px;padding:14px 18px 0;background:#f7f9fd}
.ot-r6-preview .ot-r6-summary span{background:#fff;border:1px solid #dfe6f0;color:#24436b;border-radius:100px;padding:6px 10px;font-size:11px;font-weight:750}
.ot-r6-preview .ot-r6-section-title{margin:0 0 12px;font-size:13px;letter-spacing:.08em;text-transform:uppercase;color:#687993;font-weight:800}
.ot-r6-preview .ot-r6-note-feed .note-entry{background:white;border:1px solid #e1e8f1;border-radius:12px;padding:13px 15px;margin-bottom:10px;box-shadow:0 2px 10px rgba(24,49,92,.04)}
.ot-r6-preview .modal-photo-grid>div{border:1px solid #e0e7f0;border-radius:12px;overflow:hidden;background:white}
@media(max-width:1050px){.ot-r6-preview{width:65%!important}}
@media(max-width:720px){.ot-r6-preview{width:100%!important}}

/* Revision 5: Service History preview: fixed heading/tabs and per-tab scrolling. */
.ot-r6-preview,.ot-r6-preview .ot-r6-panel-data{height:100%;min-height:0;overflow:hidden!important;display:flex;flex-direction:column}
.ot-r6-preview .ot-r6-panel-heading,.ot-r6-preview .ot-r6-tabs{flex:0 0 auto;position:relative;z-index:2;min-height:0}
.ot-r6-preview .ot-r6-tabs{overflow-x:auto;overflow-y:hidden;scrollbar-width:thin}
.ot-r6-preview .ot-r6-tab-body{flex:1 1 auto;min-height:0;overflow-y:auto!important;overflow-x:hidden;overscroll-behavior:contain;scrollbar-gutter:stable}
.ot-bulk-bar .ot-bulk-clear{background:#f2f5f8!important;color:#000080!important;border:1px solid #c9d4e5!important;border-radius:8px!important;font-weight:600!important}
.ot-bulk-bar .ot-bulk-delete{background:#fff!important;color:#b42318!important;border:1px solid #e7a4a0!important;border-radius:8px!important}
body .modal .modal-content.ot-r6-create{max-height:min(92vh,970px)!important;overflow-y:auto!important;overscroll-behavior:contain!important;scrollbar-gutter:stable}
/* Vendor dashboard reuses admin colors and service history typography. */
.ot-vendor-history-card{min-width:0}
.ot-vendor-table-wrap{width:100%;overflow-x:auto;max-height:calc(100vh - 340px);min-height:320px;border:1px solid #dce4ee;border-radius:10px;scrollbar-gutter:stable}
.ot-vendor-table{border-collapse:separate;border-spacing:0;width:100%;min-width:1110px;color:#0e244e;font:400 13px 'Segoe UI',Arial,sans-serif}
.ot-vendor-table th{position:sticky;top:0;background:#e9eff8;color:#000080;font-size:12px;font-weight:700;text-align:left;padding:11px 10px;white-space:nowrap;border-bottom:1px solid #d2deed}
.ot-vendor-table td{padding:10px;border-bottom:1px solid #e6ebf3;white-space:normal;line-height:1.35;max-width:165px}
.ot-vendor-date{display:flex;flex-direction:column;gap:3px;white-space:nowrap}.ot-vendor-date small{font-size:11px;color:#526788}
.ot-vendor-submission{padding:0!important;color:#000080!important;background:transparent!important;border:0!important;text-decoration:underline;text-underline-offset:2px;white-space:nowrap;font:650 13px 'Segoe UI',sans-serif;cursor:pointer}
.ot-vendor-record-modal{z-index:2147480000!important}
.ot-vendor-record-window{max-width:min(1060px,96vw)!important;width:min(1060px,96vw)!important;height:min(86vh,900px);padding:0!important;display:flex;flex-direction:column;overflow:hidden}
.ot-vendor-record-header{display:flex;align-items:center;justify-content:space-between;padding:14px 18px;background:#f7faff;border-bottom:1px solid #dce4ee;flex-shrink:0;color:#000080}
.ot-vendor-record-header button{background:transparent!important;border:0!important;color:#000080!important;font-size:25px!important}
.ot-vendor-record-scroll{min-height:0;overflow:auto;flex:1;padding:16px 20px}
.ot-vendor-tabs{display:flex;align-items:center;gap:5px;position:sticky;top:-16px;background:#fff;border-bottom:1px solid #dce4ee;padding:6px 0;z-index:4}
.ot-vendor-tabs button{background:#fff!important;color:#000080!important;border:0!important;border-bottom:3px solid transparent!important;border-radius:0!important;padding:10px!important;font:650 13px 'Segoe UI',sans-serif}
.ot-vendor-tabs button.active{background:#eff8ee!important;border-bottom-color:#7ce553!important}
.ot-vendor-tab[hidden]{display:none!important}
.ot-vendor-tab{padding:16px 0}
.ot-vendor-record-dl{display:grid;grid-template-columns:38% 62%;gap:0;border:1px solid #dce4ee;border-radius:10px;overflow:hidden;margin:0}
.ot-vendor-record-dl dt,.ot-vendor-record-dl dd{margin:0;padding:10px;border-bottom:1px solid #e9edf4;font-size:13px}
.ot-vendor-record-dl dt{color:#556781;background:#f9fbfe;font-weight:700}.ot-vendor-record-dl dd{overflow-wrap:anywhere}
.ot-vendor-photo-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:12px}
.ot-vendor-photo-grid a{border:1px solid #dce4ee;border-radius:9px;overflow:hidden;text-decoration:none;color:#274064;font-size:11px;display:grid}
.ot-vendor-photo-grid img{width:100%;height:145px;object-fit:cover}.ot-vendor-photo-grid span{padding:8px}
