:root{--navy:#071a2f;--blue:#1769e0;--ink:#162235;--muted:#617086;--line:#dfe7f1;--page:#f4f7fb;--radius:16px;--shadow:0 5px 24px rgba(7,26,47,.06)}*{box-sizing:border-box}body{margin:0;background:var(--page);color:var(--ink);font:16px/1.6 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}a{color:var(--blue);text-underline-offset:3px}button,input,textarea,select{font:inherit}button,a,input,textarea,select,summary{touch-action:manipulation}a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #d69b25;outline-offset:3px}h1,h2,h3{line-height:1.2;letter-spacing:-.025em}h1{font-size:clamp(28px,4vw,40px);margin:8px 0 14px}h2{font-size:23px;margin:0 0 18px}h3{font-size:18px;margin-top:24px}.topbar{background:var(--navy);color:white;min-height:76px;padding:16px 32px;display:flex;align-items:center;justify-content:space-between;gap:20px}.topbar a{color:white;text-decoration:none}.brand{display:flex;align-items:center;gap:14px;font-weight:700}.brand-mark{font-size:25px;font-weight:850;border-right:1px solid #52708b;padding-right:16px}.topbar nav,.account,.actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.account{font-size:14px}.text-button{background:none;border:0;color:#c4dcff;cursor:pointer}.shell.authenticated{display:grid;grid-template-columns:235px minmax(0,1fr)}.sidebar{padding:30px 18px;border-right:1px solid var(--line);background:white;min-height:calc(100vh - 76px)}.sidebar nav{display:flex;flex-direction:column;gap:4px}.sidebar a{display:block;text-decoration:none;padding:10px 14px;border-radius:9px;color:var(--ink);font-size:14px;font-weight:600}.sidebar a:hover,.sidebar a[aria-current=page]{background:#eaf3ff;color:var(--blue)}.content{padding:32px;min-width:0;width:100%;max-width:1600px;margin:auto}.guest .content{max-width:1240px}.card{padding:26px;background:white;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);margin-bottom:24px;overflow-wrap:anywhere}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;margin-bottom:24px}.page-heading h2{margin:0}.eyebrow{text-transform:uppercase;font-size:11px;letter-spacing:.13em;font-weight:750;color:var(--muted);margin:0 0 12px}.muted,small{color:var(--muted)}.lead{font-size:20px;color:var(--muted);max-width:540px}.hero{display:grid;grid-template-columns:1.25fr 1fr;gap:60px;align-items:center;padding:45px 0 70px}.hero h1{font-size:clamp(40px,6vw,65px)}.hero-card{background:var(--navy);color:white;padding:38px;border-radius:24px;box-shadow:0 25px 60px #123b6426}.hero-card .muted{color:#b2c8df}.hero-card h2{font-size:30px;margin-top:26px}.feature-list{list-style:none;padding:0}.feature-list li{padding:14px 0;border-bottom:1px solid #ffffff26}.feature-list li:before{content:'✓';color:#8bbcff;margin-right:12px}.button{display:inline-block;background:var(--blue);border:1px solid var(--blue);color:white!important;padding:11px 18px;border-radius:9px;text-decoration:none;font-weight:650;cursor:pointer;text-align:center}.button:hover{background:#105ac2}.button.secondary{background:white;color:var(--blue)!important;border-color:#cad9ee}.button.small{padding:7px 13px;font-size:14px}.button:disabled{opacity:.5;cursor:not-allowed}.stack{display:flex;flex-direction:column;gap:18px}.stack label{font-weight:650;display:flex;flex-direction:column;gap:7px}.stack .check,.check{display:flex;flex-direction:row;align-items:center;gap:10px;font-weight:500}input:not([type=checkbox]),textarea,select{padding:11px 13px;border:1px solid #c8d4e4;border-radius:8px;background:white;color:var(--ink);width:100%;min-width:0}textarea{resize:vertical}input[readonly]{background:var(--page)}input[type=checkbox]{width:18px;height:18px}.auth-card{max-width:500px;margin:35px auto}.auth-links{display:flex;gap:18px;flex-wrap:wrap;margin-top:25px;font-size:14px}.two-column{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.wide-form{max-width:850px}.notice{background:#eaf3ff;color:#123b64;border:1px solid #cadaef;padding:15px 18px;border-radius:10px;margin:0 0 24px}.notice.success{background:#eaf7ee;color:#106b3a;border-color:#c9e8d1}.notice.error{background:#fff1f3;color:#a5253c;border-color:#f1c9d0}.pill{display:inline-block;font-size:12px;font-weight:700;background:#eaf3ff;color:#1769e0;padding:5px 11px;border-radius:50px}.pill.warning{background:#fff3d5;color:#9a6500}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.stat{display:flex;flex-direction:column;border-top:4px solid var(--blue);color:var(--ink);text-decoration:none}.stat strong{font-size:38px;margin:12px 0}.stat small{font-size:13px}.table-toolbar{display:flex;align-items:center;gap:24px;flex-wrap:wrap;margin-bottom:20px}.table-toolbar label{min-width:180px}.table-scroll{overflow-x:auto;max-width:100%}.plain-table,.portal-table{width:100%;border-collapse:collapse;font-size:14px}.plain-table th,.plain-table td{padding:13px 12px;text-align:left;border-bottom:1px solid var(--line)}.plain-table th{color:var(--muted);font-size:12px;text-transform:uppercase;letter-spacing:.03em}.plain-table tr:hover{background:#f8fbff}.dataTables_wrapper,.dt-container{font-size:14px}.dt-search input,.dt-length select{width:auto}.dt-container .dt-layout-row{gap:15px;margin:18px 0}.dt-container table.dataTable th,.dt-container table.dataTable td{padding:13px 12px}.details{display:grid;grid-template-columns:minmax(120px,1fr) 2fr;gap:10px 20px}.details dt{color:var(--muted)}.details dd{margin:0}.timeline{list-style:none;padding:0}.timeline article,.timeline li{border-top:1px solid var(--line);padding:18px 0}.timeline article:first-child,.timeline li:first-child{border-top:0}.timeline p{margin:7px 0}.gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:20px}.gallery figure{margin:0}.gallery img{width:100%;height:180px;object-fit:cover;border-radius:10px}.gallery figcaption{font-size:12px;color:var(--muted);margin-top:8px}.empty{padding:18px;background:var(--page);border-radius:9px;color:var(--muted)}details{padding-top:16px}summary{font-weight:700;color:var(--blue);cursor:pointer;margin-bottom:20px}.product-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.footer{padding:22px 32px;border-top:1px solid var(--line);font-size:13px;color:var(--muted)}.menu-toggle{display:none}.skip-link{position:absolute;top:-100px;background:white;padding:12px;z-index:20}.skip-link:focus{top:5px}.download-link{display:inline-block;margin-left:10px;font-size:12px}.table-error[hidden]{display:none}
@media(max-width:1150px){.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.shell.authenticated{grid-template-columns:205px minmax(0,1fr)}.content{padding:24px}}@media(max-width:760px){.topbar{padding:15px 18px;flex-wrap:wrap}.brand{font-size:13px}.account{width:100%;justify-content:space-between}.shell.authenticated{display:block}.sidebar{display:none;min-height:auto;border-bottom:1px solid var(--line)}.sidebar.open{display:block}.menu-toggle{display:block;background:none;color:white;border:1px solid #58708a;border-radius:7px;padding:7px 12px}.content{padding:20px 14px}.card{padding:20px}.two-column,.hero,.product-grid{grid-template-columns:1fr}.hero{gap:24px;padding:20px 0 40px}.stats{gap:12px}.stat{padding:17px}.details{grid-template-columns:1fr}.details dt{font-size:12px}.details dd{margin-bottom:8px}.page-heading{align-items:flex-start}.hero-card{padding:28px}.footer{padding:20px}.auth-links{font-size:13px;gap:12px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}@media print{.topbar,.sidebar,.footer,.actions,form,.table-toolbar{display:none!important}.shell.authenticated{display:block}.content{padding:0}.card{box-shadow:none;break-inside:avoid}}

.job-record-link{display:inline-flex;align-items:center;gap:8px;white-space:nowrap}.job-record-icon{display:inline-flex;align-items:center;justify-content:center;color:var(--muted);padding:3px;border-radius:4px}.job-record-icon:hover,.job-record-icon:focus-visible{color:var(--blue);background:#eaf1fc}.job-record-icon svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}

.job-file-icons{display:inline-flex;align-items:center;gap:4px;white-space:nowrap}.job-file-slot{display:inline-flex;width:23px;justify-content:center}.job-files-column{width:64px;min-width:64px;white-space:nowrap}.sidebar .nav-group+.nav-group{margin-top:18px;padding-top:20px;border-top:1px solid var(--line)}.sidebar .nav-group-label{padding:0 14px;margin-bottom:8px}

.kpi-period{display:flex;gap:18px;align-items:end;flex-wrap:wrap}.kpi-period label{display:grid;gap:6px}.kpi-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:18px;margin:18px 0}.kpi-stat{background:var(--page);border:1px solid var(--line);border-radius:12px;padding:20px}.kpi-stat strong{font-size:30px}.kpi-definitions li{margin-bottom:14px}@media(max-width:760px){.kpi-period label{width:100%}.kpi-grid{grid-template-columns:1fr}}

.job-contact-visits{min-width:0}.visit-list{list-style:none;padding:0;margin:0 0 20px;display:grid;gap:12px}.visit-card{padding:18px;background:#f4f8ff;border:1px solid var(--line);border-left:4px solid var(--blue);border-radius:10px}.visit-date{font-weight:750;font-size:18px;margin:0 0 12px}.visit-details{display:grid;grid-template-columns:110px minmax(0,1fr);gap:6px 14px;margin:0;font-size:14px}.visit-details dt{color:var(--muted)}.visit-details dd{margin:0}@media(max-width:400px){.visit-details{grid-template-columns:1fr;gap:2px}.visit-details dd+dt{margin-top:8px}}

/* Keep the search focus ring inside its scroll container. */
.dt-container .dt-search input:focus-visible{outline-offset:-3px}
/* Loading feedback sits above the table, outside the scrolling rows. */
.dt-container .dt-processing{display:none!important}
.table-loading{display:flex;align-items:center;justify-content:center;gap:14px;padding:12px 16px;margin:0 0 16px;border:1px solid #cadaef;border-radius:10px;background:#eaf3ff;color:#123b64;font-size:14px}
.table-loading[hidden]{display:none}
.table-loading-dots{display:flex;gap:5px}
.table-loading-dots i{width:7px;height:7px;border-radius:50%;background:var(--blue);animation:portal-loading-pulse 1s ease-in-out infinite}
.table-loading-dots i:nth-child(2){animation-delay:.15s}.table-loading-dots i:nth-child(3){animation-delay:.3s}
@keyframes portal-loading-pulse{0%,100%{opacity:.3}50%{opacity:1}}
@media(prefers-reduced-motion:reduce){.table-loading-dots i{animation:none}}

.visit-action{margin-top:16px}.guest .content:has(.visit-list){max-width:1240px}

.job-address{background:var(--page);border-left:4px solid var(--blue);border-radius:8px;padding:16px 20px;margin-bottom:22px}.job-address .eyebrow{margin:0 0 6px}.job-address p:last-child{font-size:20px;font-weight:650;line-height:1.45;margin:0}

.appointment-dates{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px;margin:18px 0}.appointment-date{padding:16px;border:1px solid #b6d3f5;border-radius:10px;background:#edf5ff;color:var(--blue);font-weight:650;text-align:left;cursor:pointer}.appointment-date:hover{background:#dcecff;border-color:var(--blue)}.appointment-choice{padding:18px;background:var(--page);border-left:4px solid var(--blue);border-radius:8px;font-size:20px;font-weight:650}

.appointment-calendar{margin:20px 0}.appointment-month{margin:0 0 28px}.appointment-month h3{margin:0 0 12px;font-size:20px}.appointment-weekdays,.appointment-month-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px}.appointment-weekdays{margin-bottom:8px;text-align:center;color:var(--muted);font-size:13px;font-weight:650}.appointment-month-grid .appointment-date{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-height:90px;padding:12px 4px;text-align:center;border-radius:10px;line-height:1.3}.appointment-date.is-available{background:#e8f7ed;border-color:#a9d8b7;color:#145b32}.appointment-date.is-available:hover{background:#d3eddd;border-color:#348b53}.appointment-date.is-unavailable,.appointment-date.is-unavailable:hover{background:#fff0f1;border-color:#edced2;color:#89434d;cursor:not-allowed;opacity:1}.appointment-day{font-size:23px;font-weight:750}.appointment-status{font-size:12px;font-weight:500}.appointment-status-sign{display:none}.appointment-legend{display:flex;gap:20px;flex-wrap:wrap;font-size:13px}.appointment-legend span{display:inline-flex;align-items:center;gap:8px}.appointment-legend span:before{content:'';width:14px;height:14px;border-radius:4px;border:1px solid}.appointment-legend .available:before{background:#e8f7ed;border-color:#a9d8b7}.appointment-legend .unavailable:before{background:#fff0f1;border-color:#edced2}@media(max-width:700px){.appointment-weekdays,.appointment-month-grid{gap:5px}.appointment-month-grid .appointment-date{min-height:65px;padding:8px 2px;border-radius:7px}.appointment-day{font-size:19px}.appointment-status{display:none}.appointment-status-sign{display:block;font-size:13px}.appointment-weekdays{font-size:11px}}

/* Keep controls in the card; only the DataTables rows scroll horizontally. */
.table-scroll.datatable-host{overflow:visible;min-width:0;max-width:100%}.datatable-host .dt-container,.datatable-host .dt-layout-row,.datatable-host .dt-layout-cell,.datatable-host .dt-scroll{min-width:0;max-width:100%}.datatable-host .dt-scroll{width:100%}.datatable-host .dt-scroll-body{overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}.datatable-host table.dataTable th,.datatable-host table.dataTable td{overflow-wrap:normal;word-break:normal;white-space:nowrap;vertical-align:top}.datatable-host table.dataTable th{min-width:70px}.datatable-host table.dataTable .table-address-column{min-width:240px;max-width:360px;white-space:normal;line-height:1.5}.table-scroll-hint{display:none}
@media(max-width:760px){.table-scroll-hint{display:block;font-size:13px;color:var(--muted);margin:0 0 12px}.datatable-host div.dt-container div.dt-layout-row:not(.dt-layout-table){display:flex;flex-wrap:wrap;gap:12px;margin:16px 0;align-items:center}.datatable-host div.dt-container div.dt-layout-row:not(.dt-layout-table) div.dt-layout-cell{min-width:0;max-width:100%;margin:0;display:flex;justify-content:flex-start}.datatable-host div.dt-container div.dt-layout-row:not(.dt-layout-table) div.dt-layout-cell.dt-layout-end{flex:1 1 100%;justify-content:flex-start}.datatable-host .dt-search{display:flex;align-items:center;gap:8px;width:100%;min-width:0}.datatable-host .dt-search input{width:100%;min-width:0;flex:1;margin-left:0}.datatable-host .dt-length{display:flex;align-items:center;gap:8px}.datatable-host .dt-length select{width:auto;min-height:42px}.datatable-host .dt-info{font-size:13px;white-space:normal}.datatable-host .dt-paging{width:100%;white-space:normal}.datatable-host .dt-paging nav{display:flex;flex-wrap:wrap;gap:4px;justify-content:flex-start}.datatable-host .dt-paging .dt-paging-button{min-width:40px;min-height:40px;margin:0}.datatable-host .dt-paging .ellipsis{align-self:center}.datatable-host table.dataTable th,.datatable-host table.dataTable td{padding:12px!important;font-size:14px}.table-toolbar label{width:100%;min-width:0}.table-toolbar{gap:12px}.job-record-icon{min-height:34px}.job-file-slot{width:28px}}

/* Parts and Prices: catalogue thumbnails served by the authenticated image route. */
.product-card{display:flex;flex-direction:column}.product-picture{display:flex;align-items:center;justify-content:center;height:224px;margin-bottom:20px;padding:12px;background:#f6f8fc;border:1px solid var(--line);border-radius:10px}.product-image{display:block;flex:none;width:auto;height:auto;max-width:100%;max-height:200px;object-fit:contain}.product-card .button{align-self:center;margin-top:auto;text-align:center}


.dt-container .dt-search{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.dt-container .dt-search input{margin-left:0;max-width:100%}.dt-container .table-search-button{flex-shrink:0}

.catalogue-intro{display:flex;align-items:flex-start;gap:32px}.catalogue-intro-copy{min-width:0;flex:1}.catalogue-product-picture{display:flex;align-items:center;justify-content:center;flex:0 0 230px;padding:18px;background:var(--page);border:1px solid var(--line);border-radius:12px}.catalogue-product-picture img{width:auto;height:auto;max-width:100%;max-height:230px;object-fit:contain}.catalogue-description{margin-bottom:24px}.catalogue-description p:first-child{margin-top:0}.catalogue-intro .button{margin-top:12px}.catalogue-factor{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;margin-bottom:20px}.catalogue-factor label{flex:1;min-width:200px}.catalogue-options-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.catalogue-option{display:flex;flex-direction:column;align-items:center;text-align:center;padding:20px;border:1px solid var(--line);border-radius:12px;background:#fbfcfe;min-width:0}.catalogue-option h3,.catalogue-option-row h3{margin:0 0 16px}.catalogue-option-picture{display:flex;align-items:center;justify-content:center;max-width:100%;min-width:0;min-height:180px}.catalogue-option-picture img{display:block;width:auto;height:auto;max-width:100%;max-height:220px;object-fit:contain}.catalogue-price{font-size:23px;font-weight:750;color:var(--navy);margin:18px 0 0}.catalogue-option .catalogue-price{margin-top:auto;padding-top:18px}.catalogue-option-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(180px,300px);gap:24px;align-items:center;padding:24px 0;border-top:1px solid var(--line)}.catalogue-option-row:first-child{border-top:0;padding-top:0}.catalogue-option-row:last-child{padding-bottom:0}.catalogue-choice-label{display:block;font-weight:650;margin-bottom:8px}.catalogue-choice{max-width:680px}.catalogue-choice-preview{margin-top:24px;max-width:420px}.catalogue-choice-preview[hidden]{display:none}.catalogue-choice-preview .catalogue-option-picture{justify-content:flex-start}#product-enquiry{scroll-margin-top:24px}@media(max-width:1050px){.catalogue-options-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:650px){.catalogue-intro{flex-direction:column;gap:22px}.catalogue-product-picture{flex-basis:auto;width:100%}.catalogue-options-grid{grid-template-columns:minmax(0,1fr)}.catalogue-option-row{grid-template-columns:minmax(0,1fr)}.catalogue-option-row .catalogue-option-picture{justify-content:flex-start}}
