@tailwind base;
@tailwind components;
@tailwind utilities;
:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#163a38;background:#f3f7f6;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,a,input{touch-action:manipulation}button:disabled{opacity:.5;cursor:not-allowed}button,a{transition:background .18s,box-shadow .18s,transform .18s}a{color:#087e74}h1{font-size:clamp(28px,3.1vw,44px);font-weight:750;line-height:1.12;letter-spacing:-.035em;margin:18px 0}h2{font-size:23px;font-weight:700;letter-spacing:-.025em;margin:12px 0}h3{font-size:18px;font-weight:650}p{line-height:1.7;margin:12px 0}.muted{color:#637c79}.eyebrow{font-size:11px;letter-spacing:.13em;font-weight:750}.brand{display:inline-flex;gap:12px;align-items:center;font-size:21px;letter-spacing:.04em;font-weight:800}.brand-mark{display:grid;place-items:center;width:43px;height:43px;border-radius:14px;background:#b9ef9a;color:#164d44;font-size:32px}.brand-caption{display:block;font-size:9px;letter-spacing:.07em;font-weight:500;margin-top:3px}.auth-shell{min-height:100dvh;display:grid;grid-template-columns:1fr 1fr}.auth-story{position:relative;overflow:hidden;background:#0b4944;color:#fff;display:flex;flex-direction:column;justify-content:space-between;padding:54px 9%;min-height:100dvh}.auth-story>div:not(.orbit),.auth-story>small,.auth-story>.brand{position:relative;z-index:1}.auth-story h1{font-size:clamp(38px,4.5vw,66px);max-width:620px}.auth-story p{max-width:470px;color:#bed9d3}.auth-story .eyebrow{color:#b9ef9a}.journey{display:flex;gap:9px;margin-top:30px;flex-wrap:wrap}.journey span{padding:12px 18px;border:1px solid #ffffff35;border-radius:99px;font-size:13px}.orbit{position:absolute;width:600px;height:600px;border:85px solid #ffffff05;border-radius:50%;right:-320px;bottom:-200px;pointer-events:none}.auth-form{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:55px 28px;gap:42px}.auth-card{width:100%;max-width:420px}.auth-card>.brand{display:none}.auth-form>small{color:#7b918d;font-size:11px}.form-stack{display:grid;gap:21px;margin-top:28px}.label{display:block;font-size:13px;font-weight:650;margin-bottom:9px}.required,.error{color:#b43e48}.error{font-size:13px;margin:7px 0}.field{display:block;width:100%;min-height:52px;border:1px solid #d6e3df!important;border-radius:13px!important;background:#fff;padding:13px 16px;font-size:16px;color:#173b38}.field:focus{outline:3px solid #b9e8de;outline-offset:2px;border-color:#087e74!important;box-shadow:none!important}.field::placeholder{color:#8b9e99}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:50px;border:1px solid transparent;border-radius:13px;padding:12px 21px;background:#087e74;color:white;font-size:14px;font-weight:650;cursor:pointer;text-decoration:none}.button:hover:not(:disabled){background:#09695f;box-shadow:0 6px 18px #0a756c22}.secondary{background:#edf5f1;color:#1a6157;border-color:#d8e6df}.secondary:hover:not(:disabled){background:#dcece5}.danger{background:#a33d49}.full{width:100%}.password-wrap{position:relative}.password-wrap input{padding-right:88px}.password-wrap button{position:absolute;right:5px;top:5px;min-height:42px;padding:0 12px;font-size:12px;color:#087e74;border-radius:9px}.remember-row{display:flex;justify-content:space-between;align-items:center;gap:14px;font-size:12px;flex-wrap:wrap}.remember-row label{display:flex;align-items:center;gap:9px;min-height:44px}.remember-row input{width:20px;height:20px;accent-color:#087e74;border-radius:5px}.remember-row a{padding:12px 0}.auth-help{font-size:12px;color:#748985;text-align:center;margin-top:24px}.notice{background:#e8f7ed;border-radius:12px;padding:13px 16px;color:#256547;font-size:13px}.back-link{display:inline-block;margin-top:24px;padding:12px 0;font-size:14px}.app-shell{display:flex;min-height:100dvh}.sidebar{width:260px;flex-shrink:0;background:#fff;border-right:1px solid #e0ebe5;padding:30px 23px;display:flex;flex-direction:column;position:sticky;top:0;height:100dvh}.nav-caption{font-size:10px;letter-spacing:.12em;color:#81968f;margin:50px 10px 15px}.sidebar nav{display:grid;gap:8px}.sidebar nav a{display:flex;align-items:center;gap:13px;padding:15px;border-radius:13px;color:#617c74;font-size:14px;font-weight:600;min-height:52px}.sidebar nav a.active{background:#e6f4eb;color:#146451}.sidebar nav span{font-size:21px}.sidebar-bottom{margin-top:auto;border-top:1px solid #e6eee9;padding-top:22px}.sidebar-bottom p{font-weight:650;font-size:13px}.role-chip{display:inline-block;border-radius:8px;background:#eef5f0;color:#477762;font-size:11px;padding:7px 10px}.workspace{flex:1;min-width:0}.topbar{display:flex;gap:18px;align-items:center;min-height:104px;padding:22px 40px;border-bottom:1px solid #e0eae4;background:#ffffffc9}.topbar h2{margin:5px 0 0}.topbar .eyebrow{color:#7c958b;font-size:9px}.avatar{margin-left:auto;display:grid;place-items:center;min-width:46px;height:46px;background:#dbeee2;border-radius:50%;font-weight:750}.page-content{padding:32px 40px;max-width:1440px;margin:auto}.welcome-banner{background:#0b4944;color:white;border-radius:24px;padding:32px 38px;display:flex;justify-content:space-between;align-items:center;overflow:hidden}.welcome-banner .eyebrow{color:#b9ef9a}.welcome-banner p{color:#bed9d3}.banner-art{font-size:110px;color:#b9ef9a;line-height:1;padding:0 25px}.dashboard-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-top:25px}.panel{background:white;border:1px solid #e1ebe4;border-radius:21px;padding:30px}.panel>.eyebrow{color:#648f77}.steps{display:grid;gap:20px;margin-top:26px}.steps li{display:flex;gap:15px;align-items:center;font-size:14px;font-weight:600}.steps li span{display:grid;place-items:center;width:35px;height:35px;border-radius:11px;background:#edf5ef;color:#347451}.empty-icon{font-size:60px;color:#88b59b;margin:22px 0 12px}.panel .button{margin-top:10px}.modal-content{padding:30px}.modal-content p{color:#637c79}.actions{display:flex;justify-content:flex-end;gap:10px;margin-top:26px}.option-grid{display:flex;gap:12px;flex-wrap:wrap}.option-card{padding:15px 22px;min-height:52px;border:1px solid #dbe7df;border-radius:13px;background:white}.option-card.selected{background:#e6f4eb;border-color:#087e74;color:#087e74}.error-page{min-height:100dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:32px;padding:24px}.error-page .panel{max-width:600px;text-align:center}.error-code{font-size:68px;font-weight:800;color:#087e74}.menu-button,.mobile-close{display:none}.sidebar-backdrop{position:fixed;inset:0;background:#102c2699;z-index:40}.button:focus-visible,a:focus-visible,button:focus-visible{outline:3px solid #73c5ad;outline-offset:3px}
@media(max-width:1000px){.sidebar{width:225px;padding:25px 18px}.page-content{padding:25px}.topbar{padding:20px 25px}.dashboard-grid{gap:18px}.panel{padding:24px}}
@media(max-width:760px){.auth-shell{grid-template-columns:1fr}.auth-story{display:none}.auth-form{min-height:100dvh;padding:32px 24px}.auth-card>.brand{display:inline-flex;margin-bottom:35px}.auth-card h1{font-size:35px}.sidebar{position:fixed;left:0;top:0;width:285px;z-index:50;transform:translateX(-100%);transition:transform .2s}.sidebar.open{transform:translateX(0)}.mobile-close{display:inline-flex;margin-top:25px}.menu-button{display:grid;place-items:center;width:46px;height:46px;background:#edf5f0;border-radius:12px;font-size:24px;flex-shrink:0}.topbar{padding:17px;min-height:90px}.topbar .eyebrow{display:none}.page-content{padding:18px}.welcome-banner{padding:25px;border-radius:19px}.banner-art{font-size:64px;padding:0 0 0 10px}.welcome-banner h1{font-size:29px}.dashboard-grid{grid-template-columns:1fr;gap:18px;margin-top:18px}.panel{padding:24px}.nav-caption{margin-top:25px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}

.module-caption{display:block;margin:25px 15px 10px}.module-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:25px}.module-heading h1{margin:9px 0}.module-heading p{margin:6px 0}.module-heading .actions{margin-top:0}.filter-panel{padding:22px;margin-bottom:25px}.filter-search{display:flex;gap:12px;align-items:center;margin-bottom:17px}.filter-search>input{flex:1;min-width:150px}.filter-search .search-select{flex:1;min-width:180px}.record-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.record-card{display:flex;flex-direction:column;align-items:flex-start;min-width:0}.record-card h2{font-size:20px;overflow-wrap:anywhere}.record-company{font-size:13px;font-weight:600}.record-card p{font-size:13px;overflow-wrap:anywhere}.record-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:auto;padding-top:12px}.record-actions .button{min-height:46px;padding:10px 14px;font-size:12px}.archive-link{min-height:46px;padding:10px;color:#a53f4a;font-size:12px}.status-badge{display:inline-flex;padding:6px 10px;border-radius:99px;background:#e5f6e9;color:#246346;font-size:11px;font-weight:700}.status-badge.inactive{background:#eff1ef;color:#727e77}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin-top:25px}.span-all{grid-column:1/-1}.field-hint{font-size:12px;color:#768e83;line-height:1.5;margin:9px 0 0}.editor-sections{display:grid;gap:24px}.form-actions{display:flex;justify-content:space-between;gap:15px;margin:25px 0;padding:18px;background:#edf5ef;border-radius:16px}.error-summary{padding:16px;border-radius:12px;background:#fff0f0;color:#a43c46;margin-bottom:20px}.select-trigger,.time-trigger{display:flex;justify-content:space-between;align-items:center;text-align:left;font-size:14px}.search-select{position:relative}.search-select>.select-trigger{padding-right:76px}.clear-select{position:absolute;right:35px;top:5px;width:40px;height:42px;color:#607f73;font-size:25px}.search-options{margin-top:17px;display:grid;gap:8px;max-height:45dvh;overflow:auto}.search-options button{padding:15px;text-align:left;border:1px solid #e0eae4;border-radius:12px;min-height:51px;display:flex;justify-content:space-between;gap:12px}.search-options button:hover,.search-options button.selected{background:#e7f5ec;color:#256b4a}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:15px}.section-heading h2,.section-heading h3{margin:0}.weekday-cards{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:10px;margin:22px 0}.weekday-cards button,.time-grid button{min-height:48px;border:1px solid #d7e6dc;border-radius:12px;background:white;font-size:13px;font-weight:600}.weekday-cards button.selected,.time-grid button.selected{background:#0b7e70;color:#fff;border-color:#0b7e70}.day-windows{margin:15px 0;border:1px solid #dfeae3;border-radius:16px;padding:18px;background:#f9fcfa}.window-row{display:grid;grid-template-columns:1fr 1fr auto;gap:12px;align-items:start;margin-top:14px}.window-row>button{margin-top:28px}.compact{min-height:44px;font-size:12px;padding:10px 14px}.time-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:9px;margin-top:14px}.minute-grid{max-height:230px;overflow:auto;padding:3px}.pagination{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-top:25px;flex-wrap:wrap}.pagination p{font-size:12px}.pagination nav{display:flex;gap:7px;flex-wrap:wrap}.page-link{display:grid;place-items:center;min-height:44px;min-width:44px;padding:9px 13px;border-radius:10px;background:white;border:1px solid #deebe2;font-size:12px;color:#47775e}.page-link.current{background:#0a7e70;color:#fff}.page-link.disabled{opacity:.5}.empty-state{text-align:center;padding:45px}.detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:25px;margin-top:20px}.detail-grid dt{font-size:12px;color:#708a7c;margin-bottom:7px}.detail-grid dd{font-size:14px;line-height:1.6;overflow-wrap:anywhere;white-space:pre-wrap}.linked-points{display:grid;gap:10px;margin-top:20px}.linked-points>a{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:16px;border:1px solid #e0ebe3;border-radius:13px;color:#295d46}.linked-points p{font-size:12px;margin:5px 0}.schedule-display{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;padding:14px 0;border-bottom:1px solid #edf3ee;font-size:13px}.time-chip{display:inline-block;padding:7px 9px;margin:3px;background:#edf6f0;border-radius:9px;color:#377254;font-size:12px}.audit-panel{margin-top:25px}.audit-list details{border-bottom:1px solid #e6eee8;padding:13px 0}.audit-list summary{cursor:pointer;min-height:44px;font-size:13px}.audit-list summary strong{margin-right:12px}.audit-list summary span{color:#789082;font-size:12px}.audit-change{padding:12px;background:#f6faf7;border-radius:12px;margin:10px 0;font-size:12px;overflow-wrap:anywhere}.audit-change p{margin:5px 0}.audit-change pre{white-space:pre-wrap}.audit-list summary:focus-visible{outline:3px solid #73c5ad;outline-offset:3px}
@media(max-width:1100px){.record-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.filter-search{flex-wrap:wrap}.filter-search>input{flex-basis:50%}}
@media(max-width:760px){.module-heading{align-items:flex-start;flex-direction:column}.module-heading h1{font-size:28px}.module-heading .actions{flex-wrap:wrap}.form-grid,.detail-grid,.record-grid{grid-template-columns:1fr}.span-all{grid-column:auto}.filter-search{display:grid;grid-template-columns:1fr 1fr}.filter-search>input,.filter-search>.search-select{grid-column:1/-1}.weekday-cards{gap:5px}.weekday-cards button{font-size:11px}.window-row{grid-template-columns:1fr 1fr}.window-row>button{grid-column:1/-1;margin-top:0;justify-self:end}.section-heading{flex-wrap:wrap}.form-actions{padding:14px}.form-actions .button{padding:12px 15px}.time-grid{gap:6px}.linked-points>a{align-items:flex-start;flex-direction:column}.audit-list summary span{display:block;margin-top:5px}.filter-panel{padding:18px}}

.sidebar{overflow-y:auto}

.date-input{position:relative}.date-trigger{display:flex;justify-content:space-between;align-items:center;text-align:left;padding-right:75px;font-size:14px}.calendar-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:20px 0}.calendar-arrow{width:44px;min-height:44px;border-radius:12px;background:#edf5ef;font-size:25px}.calendar-title{min-height:44px;padding:8px 12px;border-radius:10px;font-weight:650;color:#22684d}.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}.calendar-grid button{min-height:44px;border-radius:12px;background:#f4f8f5;font-size:14px}.calendar-grid button:hover{background:#dbeee2}.calendar-grid button.selected,.calendar-options button.selected{background:#087e74;color:white}.calendar-grid button:disabled{opacity:.3}.calendar-day-label{text-align:center;font-size:11px;font-weight:700;color:#6e897a;padding:9px 0}.calendar-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.calendar-options button{min-height:48px;border-radius:12px;background:#eff7f1;font-size:13px}.unit-input{position:relative}.unit-input input{padding-right:50px}.unit-input>span{position:absolute;right:15px;top:15px;font-size:13px;color:#799180}.filter-card-rows{display:grid;gap:13px}.document-badge{display:inline-block;padding:8px 11px;border-radius:10px;font-size:11px;font-weight:650;margin:7px 0;background:#edf6ef;color:#34734a}.document-badge.expired{background:#fff0f0;color:#a43b46}.document-badge.missing,.document-badge.soon{background:#fff5df;color:#8b691b}.document-badge.inactive{background:#eff2f0;color:#718176}.temporary-access{margin-bottom:25px;border-color:#92cdb0;background:#f5fcf6}.temporary-password{font-family:ui-monospace,monospace;font-size:20px;font-weight:700;padding:15px;border-radius:12px;background:#e9f4ec;overflow-wrap:anywhere}.form-stack>fieldset.form-stack{margin-top:0}
@media(max-width:760px){.calendar-grid{gap:4px}.calendar-grid button{min-height:44px}.calendar-title{padding:8px}.calendar-toolbar{gap:4px}}

/* Shared editor navigation and employee photo upload. */
.editor-toolbar{display:flex;align-items:center;justify-content:flex-start;margin-bottom:1rem}
.employee-photo-editor{display:flex;align-items:center;gap:1.25rem;flex-wrap:wrap;margin:.5rem 0 1.5rem}
.employee-photo,.employee-photo-placeholder{width:104px;height:104px;border-radius:1rem;object-fit:cover;border:2px solid #d7ebe3;background:#f0f8f4}
.employee-photo-placeholder{display:grid;place-items:center;color:#52746a;font-weight:600}
.module-heading .employee-photo{margin-bottom:.75rem}

/* Routes: inherited location and ordered address editor. */
.inherited-field{padding:.85rem 1rem;border:1px solid #d8e8e1;border-radius:.75rem;background:#f4f8f6;color:#325a4d;min-height:48px}
.address-editor-row{padding:1rem;margin-top:1rem;border:1px solid #d8e8e1;border-radius:1rem;background:#f8fbf9}
.address-fields{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:1rem}
.empty-addresses{padding:1.5rem;border:1px dashed #c7ded2;border-radius:1rem;color:#52746a}
.route-address-list{list-style:none;padding:0;margin:1rem 0 0}
.route-address-list li{display:flex;gap:1rem;padding:1rem 0;border-bottom:1px solid #e6efe9}
.route-position{display:grid;place-items:center;align-self:flex-start;min-width:2rem;height:2rem;background:#e5f3eb;border-radius:50%;color:#23583f;font-weight:700}
@media(max-width:640px){.address-fields{grid-template-columns:1fr}.address-editor>.section-heading{align-items:flex-start;flex-direction:column}}

.sidebar nav{flex:1;min-height:0;overflow-y:auto;align-content:start}
.sidebar>.brand,.sidebar-bottom{flex-shrink:0}
.sidebar-bottom{margin-top:1rem}

/* Operational point lists share existing route styles. */
.point-row-content{flex:1;min-width:0}.route-address-list .actions{flex-wrap:wrap}.route-address-list li{align-items:flex-start}@media(max-width:640px){.route-address-list li{flex-wrap:wrap}.route-address-list li>.actions{width:100%;justify-content:flex-end}}

/* Shared operational calendar: month, week and day, with horizontal scroll on narrow screens. */
.collection-calendar-panel{padding:1.25rem}.calendar-toolbar-main{display:flex;gap:1rem;align-items:center;justify-content:space-between;flex-wrap:wrap;margin-bottom:1rem}.calendar-period-title{text-transform:capitalize;margin:0}.calendar-view-controls{display:flex;gap:.75rem;align-items:center;flex-wrap:wrap}.calendar-view-controls .date-input{min-width:180px}.calendar-legend{display:flex;flex-wrap:wrap;gap:1rem;margin-bottom:1rem;font-size:.85rem}.calendar-legend span{display:flex;gap:.4rem;align-items:center}.calendar-legend i{width:.7rem;height:.7rem;border-radius:50%}.legend-scheduled{background:#087f71}.legend-cancelled{background:#94a3b8}.collection-calendar-scroll{overflow-x:auto}.collection-calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));min-width:840px;border-left:1px solid #e2e8f0;border-top:1px solid #e2e8f0}.collection-calendar-weekday{padding:.6rem;text-align:center;background:#f0f8f6;border-right:1px solid #e2e8f0;border-bottom:1px solid #e2e8f0;font-weight:700}.collection-calendar-cell{padding:.45rem;min-height:140px;border-right:1px solid #e2e8f0;border-bottom:1px solid #e2e8f0;min-width:0;background:#fff}.collection-calendar-cell.outside-month{background:#f8fafc}.collection-calendar-cell.calendar-today{background:#eefbf6}.collection-calendar-cell header{display:flex;align-items:center;justify-content:space-between;margin-bottom:.5rem;gap:.25rem}.calendar-date-button{font-weight:700;text-align:left;color:#334155;border-radius:.4rem;padding:.25rem}.calendar-date-button:hover{background:#d7f2e6}.calendar-today .calendar-date-button{background:#087f71;color:#fff}.calendar-add{color:#087f71;font-weight:700;font-size:1.15rem;padding:.2rem}.calendar-events{display:flex;flex-direction:column;gap:.4rem}.collection-calendar-event{display:flex;flex-direction:column;gap:.18rem;width:100%;text-align:left;padding:.5rem;border-radius:.55rem;border:1px solid #b9ddd4;border-left:4px solid #087f71;background:#edf8f3;color:#174e43;overflow-wrap:anywhere;font-size:.75rem;line-height:1.35}.collection-calendar-event:hover{background:#d6efe4}.collection-calendar-event:focus-visible,.calendar-date-button:focus-visible,.calendar-add:focus-visible{outline:3px solid #14b8a6;outline-offset:2px}.collection-calendar-event strong{font-size:.8rem}.calendar-event-time{font-weight:700}.calendar-event-time>span{display:block;font-size:.65rem;font-weight:500}.collection-calendar-event.event-cancelled{border-color:#cbd5e1;border-left-color:#94a3b8;background:#f1f5f9;color:#475569}.calendar-view-week .collection-calendar-cell{min-height:300px}.calendar-view-day{grid-template-columns:1fr;min-width:0}.calendar-view-day .collection-calendar-cell{min-height:200px}.calendar-view-day .collection-calendar-event{font-size:.9rem;padding:.8rem}.calendar-view-day .collection-calendar-event strong{font-size:1rem}.calendar-empty-day{font-size:.8rem;padding:.6rem 0}.calendar-detail .detail-grid{margin-top:1rem}@media(max-width:640px){.collection-calendar-panel{padding:.75rem}.calendar-view-controls{width:100%}.calendar-period-title{font-size:1.15rem}.calendar-legend{gap:.6rem}.calendar-detail .actions{flex-wrap:wrap}}

/* Field collection evidence and signature controls. */
.signature-pad svg{width:100%;height:180px;display:block;border:1px solid #b9ddd4;border-radius:.6rem;background:#fbfefd;touch-action:none;cursor:crosshair}.signature-pad svg.signature-readonly{cursor:default;touch-action:auto}.signature-controls{display:flex;align-items:center;justify-content:space-between;gap:.5rem;margin-top:.4rem}.collection-photo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:.8rem;margin-top:.8rem}.collection-photo-grid img{width:100%;height:160px;object-fit:cover;border-radius:.6rem}.collection-photo-grid figcaption{overflow-wrap:anywhere;font-size:.8rem}.collection-material-row{padding:1rem 0;border-bottom:1px solid #e2e8f0}.collection-material-row:last-child{border-bottom:0}
