/* Tasks directory, matched to the compact operations layout. */
.content.tasks-page{grid-template-columns:minmax(0,1fr);gap:20px;padding:30px 32px 60px;background:#f7f9fc}
.tasks-page .task-create-button{min-height:36px;flex:none;margin-left:8px;border-radius:9px;padding:8px 14px;font-size:12px;box-shadow:none}
.tasks-page .task-filter-bar{display:flex;flex-wrap:wrap;min-width:0;min-height:65px;align-items:center;gap:8px;border:1px solid #ebeff5;border-radius:16px;background:#fff;padding:12px;box-shadow:0 1px 3px #20334d08}
.tasks-page .task-search{width:300px;min-width:180px;min-height:36px;flex:0 1 300px;border:1px solid #dfe5ed;border-radius:10px;background:#f8fafc;padding:0 12px;box-shadow:none}
.tasks-page .task-search:before{width:15px;height:15px}
.tasks-page .task-search input{min-width:0;background:transparent;color:#34435c;font-size:12px}
.tasks-page .task-search input:focus{border:0;outline:none;box-shadow:none!important}
.tasks-page .task-search:focus-within{border-color:#4d74ff;box-shadow:0 0 0 2px #4d74ff33}
.tasks-page .task-search input::placeholder{color:#9ba8bb}
.tasks-page .task-filter-bar>.modern-native-select{width:auto;min-width:114px;flex:0 0 auto}
.tasks-page .task-filter-bar>#task-sort+.modern-native-select{min-width:146px}
.tasks-page #task-type-filter+.modern-native-select{max-width:200px}
.tasks-page #task-type-filter+.modern-native-select .modern-native-select-trigger>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tasks-page .task-filter-bar>.modern-native-select .modern-native-select-trigger{min-height:36px;border:1px solid #dfe5ed;border-radius:9px;background:#fff;padding:0 12px;color:#27364c;font-size:12px;box-shadow:none}
.tasks-page .task-filter-bar>.modern-native-select .modern-native-select-trigger:before{display:none!important}
.tasks-page .task-filter-bar>.modern-native-select .modern-native-select-trigger svg{width:15px;height:15px}
.tasks-page .task-view-switch{height:39px;flex:none;gap:2px;margin-left:auto;border:0;border-radius:10px;background:#f7f9fc;padding:3px}
.tasks-page .task-view-switch button{display:grid;width:32px;height:33px;place-items:center;border:0;border-radius:8px;background:transparent;padding:0;color:#929eae}
.tasks-page .task-view-switch button.active{background:#fff;color:#4e5d73;box-shadow:0 1px 4px #1a29471a}
.tasks-page .task-view-switch button svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.tasks-page .task-type-tabs{width:max-content;max-width:100%;min-height:38px;justify-self:start;justify-content:flex-start;gap:4px;overflow-x:auto;border-radius:13px;background:#f0f3f8;padding:3px}
.tasks-page .task-type-tabs button{display:inline-flex;min-height:31px;align-items:center;gap:10px;border-radius:10px;padding:5px 14px;color:#58708f;font-size:12px;font-weight:600}
.tasks-page .task-type-tabs button.active{color:#15243b;font-weight:700;box-shadow:0 1px 4px #1b2b4712}
.tasks-page .task-type-tabs button span{min-width:23px;border-radius:999px;background:#f8fafc;padding:3px 6px;color:#5a7cb8;font-size:11px;line-height:1;text-align:center}
.tasks-page .task-type-tabs button.active span{background:#f0f2f5;color:#243a62}
.tasks-page .tasks-table-wrap{overflow:auto;border:1px solid #e8edf3;border-radius:16px;background:#fff;box-shadow:0 1px 2px #17203308}
.tasks-page .tasks-table{width:100%;min-width:1490px;table-layout:fixed}
.tasks-page .tasks-table th{height:41px;border:0;background:#f8fafc;padding:10px 14px;color:#9aa8bf;font-size:10px;font-weight:750;letter-spacing:.09em;text-transform:uppercase;white-space:nowrap}
.tasks-page .tasks-table td{height:65px;border-top:1px solid #f2f4f7;padding:10px 14px;color:#26364f;font-size:12px;vertical-align:middle}
.tasks-page .tasks-table tr:hover td{background:#fbfcff}
.tasks-page .tasks-table th:nth-child(1){width:15%}
.tasks-page .tasks-table th:nth-child(2){width:8%}
.tasks-page .tasks-table th:nth-child(3){width:8%}
.tasks-page .tasks-table th:nth-child(4){width:8%}
.tasks-page .tasks-table th:nth-child(5){width:8%}
.tasks-page .tasks-table th:nth-child(6){width:12%}
.tasks-page .tasks-table th:nth-child(7){width:6%}
.tasks-page .tasks-table th:nth-child(8){width:8%}
.tasks-page .tasks-table th:nth-child(9){width:9%}
.tasks-page .tasks-table th:nth-child(10){width:10%}
.tasks-page .tasks-table th:nth-child(11){width:8%}
.tasks-page .tasks-table td:first-child strong{display:block;max-width:100%;overflow:hidden;color:#13213a;font-size:12px;font-weight:600;text-overflow:ellipsis;white-space:nowrap}
.tasks-page .tasks-table td:first-child small{display:block;margin-top:4px;color:#a1adc1;font-size:10px}
.tasks-page .tasks-table td:nth-child(2),.tasks-page .tasks-table .task-location{color:#657794}
.tasks-page .tasks-table td:not(:first-child){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tasks-page .task-area-badge{display:inline-flex;max-width:100%;gap:4px;overflow:hidden;border:0;border-radius:999px;background:#fff2c8;padding:5px 9px;color:#a94a00;font-size:10px;font-weight:500;text-overflow:ellipsis;white-space:nowrap}
.tasks-page .task-area-badge svg{width:12px;height:12px;flex:none}
.tasks-page .task-technician{display:flex;min-width:0;align-items:center;gap:7px}
.tasks-page .task-technician i{display:grid;width:24px;height:24px;flex:none;place-items:center;border-radius:50%;background:#f0f3f8;color:#182943;font-size:10px;font-style:normal;font-weight:700}
.tasks-page .task-technician>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tasks-page .task-unassigned{color:#9aa8bb}
.tasks-page .tasks-table .priority,.tasks-page .tasks-table .status{border:0;border-radius:999px;padding:5px 10px;font-size:10px;font-weight:500;white-space:nowrap}
.tasks-page :is(.tasks-table,.task-list-card) .priority.low{background:#eef2f7;color:#475569}
.tasks-page :is(.tasks-table,.task-list-card) .priority.normal{background:#eaf0ff;color:#315cc6}
.tasks-page :is(.tasks-table,.task-list-card) .priority.high{background:#fff1d6;color:#9a5800}
.tasks-page :is(.tasks-table,.task-list-card) .priority.urgent{background:#fde8e8;color:#b42318}
.tasks-page :is(.tasks-table,.task-list-card) .status.new,.tasks-page :is(.tasks-table,.task-list-card) .status.assigned{background:#eef2f7;color:#475569}
.tasks-page :is(.tasks-table,.task-list-card) .status.travelling,.tasks-page :is(.tasks-table,.task-list-card) .status.arrived{background:#e8f0ff;color:#2458c5}
.tasks-page :is(.tasks-table,.task-list-card) .status.in_progress{border:1px solid #c4a7ff;background:#f0e8ff;color:#6d28d9;font-weight:700}
.tasks-page :is(.tasks-table,.task-list-card) .status.completed{background:#ddf7e7;color:#167347}
.tasks-page :is(.tasks-table,.task-list-card) .status.cancelled{background:#eef2f7;color:#475569}
.tasks-page .task-row-actions{gap:4px;justify-content:flex-end}
.tasks-page .task-row-actions button,.tasks-page .task-row-actions button.delete{width:27px;height:27px;color:#7d8a9e}
.tasks-page .task-row-actions button:hover,.tasks-page .task-row-actions button.delete:hover{background:#edf3ff;color:#315fdf}
.tasks-page .task-row-actions svg{width:15px;height:15px;stroke-width:1.65}
@media(max-width:1450px){.tasks-page .task-filter-bar{flex-wrap:wrap}.tasks-page .task-view-switch{margin-left:auto}}
@media(max-width:760px){.content.tasks-page{gap:15px;padding:18px 12px 90px}.tasks-page .task-filter-bar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:10px}.tasks-page .task-search{width:100%;max-width:none;grid-column:1/-1}.tasks-page .task-filter-bar>.modern-native-select,.tasks-page .task-filter-bar>#task-sort+.modern-native-select{width:100%;min-width:0}.tasks-page .task-view-switch{grid-column:1/-1;margin-left:0}.tasks-page .task-create-button{grid-column:1/-1;margin-left:0}.tasks-page .task-type-tabs{width:100%}}

/* One centered details dialog for every task status. */
.task-detail-modal{width:min(420px,calc(100vw - 28px));max-height:min(90vh,800px);border-radius:18px;background:#fff;box-shadow:0 24px 70px #10213c36}
.task-detail-modal>header{min-height:108px;align-items:flex-start;gap:12px;border-bottom:1px solid #edf0f5;padding:30px 23px 22px}
.task-detail-modal>header>div{min-width:0;flex:1}
.task-detail-modal>header small{display:block;margin-bottom:8px;color:#a1adbf;font-size:11px;font-weight:750;letter-spacing:.08em}
.task-detail-modal>header h2{overflow:hidden;color:#202c40;font-size:18px;font-weight:700;line-height:1.3;text-overflow:ellipsis;white-space:nowrap}
.task-detail-modal>header .icon{width:32px;height:32px;flex:none;border-radius:11px;background:#f8fafc;color:#25354d;font-size:20px}
.task-detail-modal>header .icon:hover{background:#eef3fa}
.task-detail-body{padding:24px 23px 22px}
.task-detail-summary-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 16px}
.task-detail-summary-grid>div{display:grid;min-height:65px;align-content:center;gap:5px;border-radius:12px;background:#f8fafc;padding:10px 12px}
.task-detail-summary-grid span{color:#9aa7b9;font-size:11px}
.task-detail-summary-grid strong{display:flex;min-width:0;align-items:center;gap:5px;overflow:hidden;color:#29364c;font-size:13px;font-weight:500;text-overflow:ellipsis;white-space:nowrap}
.task-detail-summary-grid strong svg{width:14px;height:14px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7}
.task-detail-facts{display:grid;gap:0;margin:14px 0 0}
.task-detail-facts>div{display:grid;grid-template-columns:105px minmax(0,1fr);align-items:center;gap:8px;min-height:31px}
.task-detail-facts dt{color:#7a879b;font-size:13px}
.task-detail-facts dd{overflow:hidden;margin:0;color:#29364c;font-size:13px;text-align:right;text-overflow:ellipsis;white-space:nowrap}
.task-detail-facts>div:last-child dd{font-size:11px;letter-spacing:.05em}
.task-detail-description{margin:13px 0 0;color:#61718a;font-size:12px;line-height:1.5;white-space:pre-wrap}
.task-detail-actions{display:flex;gap:8px;margin-top:24px}
.task-detail-actions .primary{display:flex;min-height:40px;flex:1;align-items:center;justify-content:center;gap:8px;border-radius:10px;font-size:13px;box-shadow:none}
.task-detail-actions .secondary{display:grid;width:48px;min-height:40px;flex:none;place-items:center;border-radius:10px}
.task-detail-actions svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.task-detail-more{margin-top:14px;border-top:1px solid #edf0f5;padding-top:12px}
.task-detail-more summary{color:#637895;font-size:12px;font-weight:650;cursor:pointer}
.task-detail-more[open] summary{margin-bottom:12px}
.task-detail-more>div{display:grid;gap:12px}
.task-detail-extra{display:grid;gap:9px;margin:0;border-radius:11px;background:#f8fafc;padding:12px}
.task-detail-extra h3{margin:0;color:#29364c;font-size:12px}
.task-detail-extra p{margin:0;color:#61718a;font-size:12px;line-height:1.4}
.task-detail-extra textarea,.task-detail-extra input,.task-detail-extra select{min-width:0;background:#fff}
.task-detail-extra .primary{justify-self:start}
.task-detail-control-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.task-detail-control-row>.modern-native-select{flex:1;min-width:130px}
.task-detail-control-row>input[type="file"]{flex:1;min-width:160px}
.task-detail-photos{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.task-detail-photos a{overflow:hidden;border-radius:8px}
.task-detail-photos img{display:block;width:100%;aspect-ratio:1;object-fit:cover}
@media(max-width:480px){.task-detail-modal{width:calc(100vw - 20px)}.task-detail-modal>header{padding:24px 18px 18px}.task-detail-body{padding:18px}.task-detail-facts>div{grid-template-columns:94px minmax(0,1fr)}}

:is(.task-editor-modal,.tech-job-modal) .task-map-layer-control{position:relative;margin:10px 10px 0 0}
:is(.task-editor-modal,.tech-job-modal) .task-map-layer-toggle{display:grid;width:40px;height:40px;place-items:center;border:1px solid #e6ebf2;border-radius:10px;background:#fff;color:#326df4;box-shadow:0 3px 12px #18274426;cursor:pointer}
:is(.task-editor-modal,.tech-job-modal) .task-map-layer-toggle svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linejoin:round}
:is(.task-editor-modal,.tech-job-modal) .task-map-layer-toggle:focus-visible,:is(.task-editor-modal,.tech-job-modal) .task-map-layer-menu button:focus-visible{outline:2px solid #326df4;outline-offset:2px}
:is(.task-editor-modal,.tech-job-modal) .task-map-layer-menu{position:absolute;top:49px;right:0;display:grid;gap:0;width:190px;padding:7px 0;border:1px solid #e1e7ef;border-radius:12px;background:#fff;box-shadow:0 10px 26px #17243a29}
:is(.task-editor-modal,.tech-job-modal) .task-map-layer-menu[hidden]{display:none}
:is(.task-editor-modal,.tech-job-modal) .task-map-layer-menu button{display:flex;width:100%;min-height:38px;align-items:center;gap:9px;border:0;background:transparent;padding:0 14px;color:#31415d;text-align:left;font:600 11px Inter,Arial,sans-serif;cursor:pointer}
:is(.task-editor-modal,.tech-job-modal) .task-map-layer-menu button:hover{background:#f2f6fc}
:is(.task-editor-modal,.tech-job-modal) .task-map-radio{display:block;width:12px;height:12px;flex:none;border:1px solid #a8b7cb;border-radius:50%;background:#fff}
:is(.task-editor-modal,.tech-job-modal) .task-map-layer-menu button[aria-checked="true"] .task-map-radio{border:3px solid #3473f5}
