/* Sidebar pages (Settings, Reports), form pages, tables in dialogs, tracking widget preview. */

.with-sidebar { flex: 1; min-height: 0; display: flex; }
.sidebar { flex: none; width: 269px; border-right: 1px solid var(--sidebar-line); overflow: auto; padding: 13px 0 20px; background: #fff; }
.side-h { font-size: 20px; font-weight: 400; color: var(--text-strong); padding: 0 6px 0 8px; margin: 0 0 12px; line-height: 26px; }
.sidebar .side-item + .side-h { margin-top: 29px; }
.side-item { display: flex; align-items: center; min-height: 43px; padding: 0 14px 0 16px; color: var(--muted); text-decoration: none; font-size: 14px; position: relative; line-height: 1.2; }
.side-item:hover { color: var(--text); background: #FAFBFD; }
.side-item.active { color: var(--blue); }
.side-item.active::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--blue); }
.side-item:focus-visible { box-shadow: inset 0 0 0 2px var(--blue); }
.side-content { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; }

/* form pages */
.formpage { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.form-scroll { flex: 1; min-height: 0; overflow: auto; }
.form-body { padding: 18px 20px; }
.form-inner { max-width: 900px; }
.form-inner.wide { max-width: 1100px; }
.form-footer { justify-content: flex-end; }
.srow { display: flex; align-items: center; min-height: 40px; margin-bottom: 4px; }
.slabel { flex: 0 0 300px; color: var(--text); padding-right: 12px; }
.scontrol { display: flex; align-items: center; gap: 10px; min-width: 0; }
/* a group heading with its rule running to the right (Maxoptra form pages) */
.sgroup { display: flex; align-items: center; gap: 14px; font-weight: 700; color: var(--text-strong); margin: 22px 0 10px; }
.sgroup::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.form-inner > .sgroup:first-child { margin-top: 0; }
.srow.top { align-items: flex-start; } .srow.top .slabel { padding-top: 10px; }
.radio-col { display: flex; flex-direction: column; gap: 10px; padding: 8px 0; }
.usual-wrap { margin: 6px 0 4px 300px; max-width: 640px; }
/* Speed zones: the calibration panel is filled in after the page loads and starts with a group heading of its own */
.cal-panel > div > .sgroup:first-child { margin-top: 18px; }
.dtable.cal-table td, .dtable.cal-table th { white-space: nowrap; vertical-align: top; }
.cal-sub { font-size: 12px; font-weight: 400; }
.dtable.cal-rules td { white-space: normal; vertical-align: top; }
.dtable.cal-rules td:first-child { width: 300px; }
.row-gap { display: flex; align-items: center; gap: 8px; }
.info-i { width: 17px; height: 17px; border-radius: 50%; border: 1.5px solid var(--blue); color: var(--blue); font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; cursor: help; font-family: Georgia, serif; font-style: italic; }
.notused { flex: 1; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 16px; padding: 80px 0; }
.notused-p { color: var(--muted); font-size: 16px; padding: 30px 0; }
.colour-input { width: 60px; height: 30px; padding: 2px; border: 1px solid #CED2DA; border-radius: 3px; background: #fff; cursor: pointer; }
.colour-input.wide { width: 80px; }
.cell-swatch { display: inline-flex; align-items: center; gap: 8px; } .cell-swatch i { width: 14px; height: 14px; border-radius: 3px; display: inline-block; }
.reasons { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 4px; max-width: 540px; }
.reason-row { display: flex; align-items: center; justify-content: space-between; padding: 6px 10px 6px 14px; border-bottom: 1px solid #F0F0F2; min-height: 36px; }
.reason-row:last-child { border-bottom: 0; }
.msg-table { table-layout: fixed; width: 100%; }
.dtable.msg-table td, .dtable.msg-table th { white-space: normal; vertical-align: middle; }
.dtable.msg-table th:nth-child(1) { width: auto; }
.dtable.msg-table td.ctr, .dtable.msg-table th.ctr { text-align: center; width: 110px; }
.dtable.msg-table th:last-child, .dtable.msg-table td:last-child { width: 90px; }
.bad { color: var(--danger); }

/* dialog tables */
.table-scroll { overflow: auto; border: 1px solid var(--line); border-radius: 4px; }
.dtable { width: 100%; border-collapse: collapse; font-size: 13px; }
.dtable th { background: var(--grid-head); text-align: left; font-weight: 400; color: var(--muted-2); padding: 7px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; position: sticky; top: 0; }
.dtable td { padding: 6px 10px; border-bottom: 1px solid #F0F0F2; white-space: nowrap; }
.dtable td.num, .dtable th.num { text-align: right; }
.dtable tr:last-child td { border-bottom: 0; }
.total-row td { font-weight: 700; background: var(--grid-head); border-top: 1px solid var(--line); }
.help-text p { margin-bottom: 10px; line-height: 1.5; }

/* order dialog (reference 24, 25: 882 px wide, 12 px type, labels with a colon on the left, grey boxed controls) */
.dlg-order { font-size: 12px; max-height: min(760px, 94vh); }
.dlg-order .dlg-body { padding: 14px 16px 12px; font-size: 12px; }
.od-host { min-height: 600px; }
.od-header { padding: 0 14px 0 12px; align-items: center; height: 42px; border-bottom: 1px solid #EEE; gap: 10px; }
.od-badge { width: 18px; height: 18px; font-size: 11px; margin: 0; border-radius: 3px; }
.od-tabs { display: flex; gap: 2px; align-items: center; }
.od-tabs .dtab { margin: 0; top: 0; padding: 0 9px; height: 26px; background: #F6F6F6; border: 0; border-radius: 3px; color: #111; font-size: 12px; }
.od-tabs .dtab:hover { background: #EEE; }
.od-tabs .dtab[aria-selected=true] { background: #fff; color: var(--blue-link); font-weight: 400; }
.od-hicons { display: flex; gap: 8px; align-items: center; color: #111; }
.od-hicons .icon-btn { color: #111; padding: 3px; }
.od-header > .spacer { flex: 1; }
.od-footer { align-items: center; justify-content: flex-start; padding: 10px 16px; gap: 8px; }
.od-footer .spacer { flex: 1; }
.od-footer .btn { min-height: 30px; font-size: 12px; min-width: 0; }
.od-footer .btn[hidden] { display: none; }
.od-footer .od-clone, .od-footer .od-print { padding: 0 14px; }
.dlg-order .frow { min-height: 36px; margin-bottom: 0; gap: 10px; }
.dlg-order .flabel { flex: 0 0 142px; color: #111; font-size: 12px; line-height: 1.15; }
.dlg-order .fgroup { margin: 10px 0 2px; font-size: 12px; }
.dlg-order .cols2 { gap: 0 30px; }
.od-box { height: 28px; font-size: 12px; background-color: #F5F5F5; border-color: #E8E8E8; color: #9A9A9A; width: 100%; }
.mx-input.od-box:disabled { background-color: #F5F5F5; color: #9A9A9A; }
textarea.od-box { height: 58px; padding: 6px 8px; }
.mx-input.od-box.od-select, .mx-input.od-box.od-select:disabled, .od-prio { appearance: none; -webkit-appearance: none; padding-right: 26px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23354052' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 9px center; }
.od-prio { display: inline-flex; align-items: center; gap: 7px; padding: 0 26px 0 9px; line-height: 26px; border: 1px solid #E8E8E8; border-radius: 3px; background-color: #F5F5F5; color: #9A9A9A; }
.od-prio i { width: 12px; height: 12px; border-radius: 2px; background: #1E9E3A; display: inline-block; }
.od-units { width: 120px; height: 28px; font-size: 12px; }
.od-time { width: 92px; height: 28px; font-size: 12px; }
.od-opwrow { margin-top: 4px; }
.od-opw { display: flex; align-items: center; gap: 8px; }
.od-date { width: 120px; height: 28px; }
.od-plus { font-weight: 700; margin-left: 2px; }
.od-dur { display: flex; gap: 10px; width: 100%; } .od-dur .od-box:first-child { width: 70px; flex: none; }
.od-locwrap { width: 100%; display: flex; flex-direction: column; gap: 6px; }
.od-locl { color: var(--blue-link); text-decoration: none; } .od-locl:hover { text-decoration: underline; }
.od-terr-note { font-size: 12px; color: var(--muted); margin-top: 4px; line-height: 1.4; }
.od-terr-back { background: none; border: 0; padding: 0; font: inherit; color: var(--blue-link); cursor: pointer; } .od-terr-back:hover { text-decoration: underline; }
.loc-box { border: 1px solid #E8E8E8; border-radius: 3px; padding: 6px 9px; width: 100%; min-height: 48px; background: #F5F5F5; line-height: 1.4; color: #9A9A9A; display: flex; gap: 8px; align-items: flex-start; }
.loc-box > .ic { flex: none; margin-top: 2px; }
.loc-warn { color: var(--danger); display: flex; align-items: center; gap: 6px; margin-top: 3px; }
.notif { display: flex; gap: 20px; }
.dlg-order .ro-value { min-height: 28px; }
.od-tablewrap { overflow: auto; border: 1px solid var(--line); border-radius: 3px; max-height: 420px; flex: 1; }
.od-items { display: flex; flex-direction: column; min-height: 560px; }
.od-items .od-tablewrap { max-height: none; }
.od-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.od-table th { background: #FAFAFA; text-align: left; font-weight: 400; color: #111; padding: 0 8px; height: 30px; border-bottom: 1px solid #EDEDED; white-space: nowrap; position: sticky; top: 0; cursor: pointer; user-select: none; }
.od-table th .od-sort { display: inline-block; margin-left: 5px; color: #B5B5B5; vertical-align: -2px; }
.od-table td { padding: 0 8px; height: 25px; border-bottom: 1px solid #F3F3F3; white-space: nowrap; max-width: 170px; overflow: hidden; text-overflow: ellipsis; color: #111; }
.od-table .num { text-align: right; } .od-table th.od-chk, .od-table td.od-chk { width: 28px; padding: 0 0 0 10px; cursor: default; }
.od-none { text-align: center; padding: 26px 0 !important; }
.od-itembar { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.od-itembar .spacer { flex: 1; } .od-totals { display: flex; gap: 18px; color: #111; }
.od-total { margin-top: 8px; }
.od-note { margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.od-notelink { display: inline-flex; align-items: center; gap: 6px; color: var(--blue-link); text-decoration: none; font-weight: 700; } .od-notelink:hover { text-decoration: underline; }
.att-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.att { margin: 0; width: 200px; } .att figcaption { color: var(--muted); font-size: 12px; margin-top: 4px; }
.att-btn { padding: 0; border: 1px solid var(--line); border-radius: 4px; background: #fff; display: block; width: 100%; }
.att-btn img { width: 100%; height: 130px; object-fit: contain; display: block; }
.zoom img { max-width: 100%; max-height: 70vh; display: block; margin: 0 auto; }
.pod-head { display: flex; gap: 12px; margin-bottom: 12px; } .pod-box { flex: 1; border: 1px solid var(--line); border-radius: 4px; padding: 8px 10px; }
.sigbox { border: 1px dashed var(--line-strong); border-radius: 4px; min-height: 110px; display: flex; align-items: center; justify-content: center; background: var(--grid-head); margin-bottom: 8px; }
.sigbox img { max-height: 140px; max-width: 100%; }
.err-list { margin: 8px 0 0 18px; color: var(--danger); }
.import-out { margin-top: 12px; }

/* reports */
.report-content { padding: 6px; background: #fff; }
.report-panel { flex: 1; min-height: 0; overflow: auto; border: 1px solid var(--line); border-radius: 4px; padding: 58px 40px 36px; background: #fff; }
.report-h { font-size: 32px; font-weight: 700; color: var(--text-strong); margin: 4px 0 34px; line-height: 1.2; }
.report-p { max-width: 640px; line-height: 1.6; margin-bottom: 24px; font-size: 16px; }
.report-btns { display: flex; gap: 20px; margin: 4px 0 8px; }
.report-btns .btn-lg { width: 296px; min-height: 43px; font-size: 16px; }
.report-controls { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.report-controls label { color: var(--muted-2); }
.report-controls .btn { min-height: 36px; padding: 0 18px; }
.report-table { max-height: calc(100vh - 380px); }

/* tracking widget settings */
.widget-settings { display: grid; grid-template-columns: minmax(520px, 1.25fr) minmax(440px, 1fr); gap: 48px; padding: 10px 8px; }
.formpage .form-body:has(.widget-settings) { padding: 6px 4px; }
.ws-left h3, .ws-right h3 { font-size: 14px; font-weight: 700; margin-bottom: 8px; color: var(--text-strong); }
.ws-block { margin-bottom: 16px; } .ws-lab { color: var(--muted-2); margin-bottom: 6px; font-size: 13px; }
.ws-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px 14px; align-items: center; }
.wp-tabs { display: flex; margin: 10px 0 0; border-bottom: 1px solid var(--line); }
.wp-tab { background: #fff; border: 1px solid var(--line); border-bottom: 0; padding: 5px 10px; font-size: 13px; color: var(--text); margin-right: 2px; border-radius: 3px 3px 0 0; }
.wp-tab.on { color: var(--blue); }
.wp-frame { background: #F0F1F5; padding: 22px 56px 40px; min-height: 612px; position: relative; font-family: system-ui, "Segoe UI", Arial, sans-serif; font-size: 17px; }
.wp-title { font-size: 28px; color: #1d1d1d; margin: 6px 0 44px; }
.wp-logo { position: absolute; right: 56px; top: 54px; height: 46px; }
.wp-cols { display: grid; grid-template-columns: 1.15fr 1fr; gap: 14px; align-items: start; }
.wp-card { background: #fff; border-radius: 12px; padding: 18px 20px; margin-bottom: 10px; color: #1d1d1d; }
.wp-left .wp-card:last-child { background: #F8F8F9; font-weight: 700; }
.wp-muted { color: #8c8f99; margin-bottom: 4px; }
.wp-row { display: flex; align-items: center; justify-content: space-between; }
.wp-h { font-weight: 700; margin-bottom: 14px; }
.wp-step { display: flex; align-items: center; gap: 10px; font-weight: 700; margin: 8px 0; position: relative; color: #1d1d1d; }
.wp-step i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #1d1d1d; background: #fff; display: inline-flex; align-items: center; justify-content: center; color: #fff; position: relative; z-index: 1; }
.wp-step:not(:last-child)::after { content: ""; position: absolute; left: 8px; top: 18px; width: 2px; height: 22px; background: #1d1d1d; }
.wp-step.done:not(:last-child)::after { background: currentColor; }
.wp-footer { margin-top: 18px; color: #8c8f99; }

.clickable { cursor: pointer; } .clickable:hover td { background: var(--grid-hover); }

/* radio rows (planning mode, usual driver weight) */
.radio-row { gap: 16px; flex-wrap: wrap; }
.dtable td.wrap-cell { white-space: normal; min-width: 220px; }

/* ------------------------------------------------------------------ resource dialogs (Maxoptra: labels above the fields) */
.fgrid { display: grid; gap: 14px 14px; margin-bottom: 14px; align-items: end; }
.fgrid > .tg { align-self: center; }
.sf { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.sf-label { font-size: 12px; color: var(--text); display: flex; align-items: center; gap: 6px; line-height: 1.2; }
.sf-hint { font-size: 12px; color: var(--muted); }
.sf-sub { color: var(--text-strong); margin: 2px 0 10px; }
.sf-rule { border: 0; border-top: 1px solid var(--line); margin: 6px 0 14px; }
.sfx { position: relative; display: flex; align-items: center; width: 100%; min-width: 0; }
.sfx .mx-input { padding-right: 54px; }
.sfx-suffix { position: absolute; right: 10px; color: var(--muted-2); font-size: 12px; pointer-events: none; }
.sfx-limit { gap: 8px; height: 30px; padding: 0 10px 0 8px; border: 1px solid #CED2DA; border-radius: 3px; background: #fff; }
.sfx-limit .mx-input { border: 0; height: 26px; padding: 0 2px; background: transparent; flex: 1; min-width: 0; }
.sfx-limit .sfx-suffix { position: static; }
.sfx-limit.is-disabled { background: #EEF0F4; }
.colourfield { display: flex; gap: 8px; width: 100%; }
.colourfield .colour-input { flex: 0 0 52%; width: auto; height: 30px; }
.colourfield .mx-input { flex: 1; }
.colour-input.colour-bar { width: 100%; height: 24px; padding: 0; border: 0; border-radius: 12px; background: none; }
.colour-input.colour-bar::-webkit-color-swatch-wrapper { padding: 0; } .colour-input.colour-bar::-webkit-color-swatch { border: 0; border-radius: 12px; }
.tg { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; position: relative; }
.tg-input { position: absolute; opacity: 0; width: 0; height: 0; }
.tg-track { width: 34px; height: 18px; border-radius: 9px; background: #9A9EAE; position: relative; flex: none; transition: background .15s; }
.tg-track i { position: absolute; left: 2px; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: left .15s; }
.tg-input:checked + .tg-track { background: var(--blue); } .tg-input:checked + .tg-track i { left: 18px; }
.tg-input:focus-visible + .tg-track { box-shadow: var(--focus-ring); }
.tg.is-disabled { cursor: not-allowed; opacity: .6; }
.dlg-help { color: var(--text-strong); } .dlg-help-text { font-size: 13px; line-height: 1.5; }
.dlg-footer .dlg-left { margin-right: auto; }
.grid tbody tr.row-open { cursor: pointer; }
.pager .page-size { width: 104px; margin-left: 10px; height: 28px; font-size: 13px; }

/* accordion sections */
.acc { display: flex; flex-direction: column; gap: 12px; }
.acc-item { border-radius: 6px; background: #EEEEEE; }
.acc-head { width: 100%; display: flex; align-items: center; justify-content: space-between; background: none; border: 0; padding: 12px 14px; font-size: 16px; color: var(--text-strong); text-align: left; }
.acc-head:focus-visible { box-shadow: var(--focus-ring); border-radius: 6px; }
.acc-chev { transition: transform .15s; }
.acc-body { display: none; padding: 6px 14px 4px; }
.acc-item.open { background: #fff; border: 1px solid var(--line-soft); }
.acc-item.open .acc-body { display: block; } .acc-item.open .acc-chev { transform: rotate(180deg); }

/* multi-select: chips in a box, a list with a filter */
.fms { display: flex; align-items: center; gap: 4px; min-height: 30px; padding: 2px 6px; border: 1px solid #CED2DA; border-radius: 3px; background: #fff; cursor: pointer; overflow: hidden; min-width: 0; width: 100%; }
.fms:hover:not(.is-disabled) { border-color: #AEB3BF; }
.fms:focus-visible { box-shadow: 0 0 0 2px rgba(15,58,39,.18); border-color: var(--blue); }
.fms.is-disabled { background: #EEF0F4; cursor: not-allowed; }
.fms-ph { color: #B0B3BF; padding-left: 3px; }
.fms-chip { flex: none; display: inline-flex; align-items: center; gap: 4px; max-width: 70%; height: 22px; padding: 0 4px 0 8px; background: var(--toolbar); border-radius: 11px; font-size: 12px; }
.fms.is-disabled .fms-chip { padding-right: 8px; }
.fms-chip[hidden] { display: none; }
.fms-chip-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fms-x { border: 0; background: none; padding: 2px; color: var(--muted-2); display: inline-flex; cursor: pointer; border-radius: 50%; }
.fms-x:hover { background: rgba(0,0,0,.08); }
.fms-more { flex: none; font-size: 12px; color: var(--muted-2); padding: 0 4px; }
.fms-pop { min-width: 220px; }
.fms-filter { margin: 8px; width: calc(100% - 16px); }
.fms-list { list-style: none; margin: 0; padding: 0 0 6px; max-height: 240px; overflow: auto; }
.fms-opt { display: flex; align-items: center; gap: 8px; padding: 6px 12px; cursor: pointer; }
.fms-opt.active, .fms-opt:hover { background: var(--panel); }
.fms-tick { width: 16px; height: 16px; border: 1px solid #C4C7D1; border-radius: 3px; display: inline-flex; align-items: center; justify-content: center; flex: none; background: #fff; }
.fms-opt.on .fms-tick { background: var(--blue); border-color: var(--blue); color: #fff; }
.fms-none { padding: 10px 12px; color: var(--muted); }

/* SETTINGS > Territories (the map page) */
.terr-page .terr-body { flex: 1; min-height: 0; display: flex; }
.terr-page .list-title .info-i { margin-left: 4px; }
.terr-side { flex: none; width: 340px; display: flex; flex-direction: column; border-right: 1px solid var(--line); min-height: 0; background: #fff; }
.terr-dc { padding: 6px 8px 6px 0; border-bottom: 1px solid var(--line); }
.terr-dc .mx-select { border-radius: 0; border-left: 0; border-right: 0; }
.terr-head { display: flex; align-items: center; gap: 12px; padding: 0 12px; height: 34px; border-bottom: 1px solid var(--line); color: var(--muted-2); }
.terr-list { flex: 1; overflow: auto; }
.terr-group { display: flex; align-items: center; padding: 8px 6px 4px 12px; font-size: 13px; color: var(--text-strong); }
.terr-empty { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--muted); padding: 14px 0 22px; font-size: 12px; }
.terr-row { display: flex; align-items: center; gap: 12px; height: 38px; padding: 0 12px; cursor: pointer; border-bottom: 1px solid #F0F0F2; }
.terr-row:hover { background: var(--grid-hover); }
.terr-item.open > .terr-row { background: var(--blue-tint); border-bottom-color: var(--line); }
.terr-chk-gap { width: 15px; flex: none; }
.terr-sq { width: 14px; height: 14px; border-radius: 3px; flex: none; display: inline-block; }
.terr-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.terr-form { padding: 14px 12px 8px; background: #fff; border-bottom: 1px solid var(--line); }
.terr-form .flabel { flex-basis: 138px; }
.terr-form .frow { margin-bottom: 10px; }
.terr-actions { display: flex; gap: 8px; margin: 12px 0 10px 150px; }
.terr-x { font-size: 12px; color: var(--muted); margin-top: 4px; line-height: 1.4; }
.terr-hint { font-size: 12px; margin-top: 4px; }
.terr-result { margin-top: 6px; color: var(--text-strong); min-height: 18px; }
.terr-map { flex: 1; min-width: 0; position: relative; z-index: 0; }
.terr-toolbar { gap: 8px; padding: 0 6px; }
.terr-gap { flex: 0 0 22px; }
.terr-note { font-size: 12px; margin-left: 8px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.terr-cover { margin-top: 8px; font-size: 12.5px; line-height: 1.4; max-width: 560px; }
.terr-cover[hidden] { display: none; }
.tm-label { background: rgba(255,255,255,.88); border: 0; box-shadow: none; color: var(--text-strong); font-weight: 700; padding: 1px 6px; border-radius: 3px; }
.tm-label::before { display: none; }
.tm-vertex-wrap { background: none; border: 0; }
.tm-vertex { display: block; width: 100%; height: 100%; background: #fff; border: 2px solid #354052; box-sizing: border-box; border-radius: 1px; }
.tm-vertex.first { background: #E5334B; border-color: #E5334B; }
.leaflet-container.is-drawing, .is-drawing .leaflet-interactive { cursor: crosshair; }
.tm-drawbar { position: absolute; left: 52px; top: 10px; z-index: 1000; display: flex; align-items: center; gap: 10px; }
.tm-cancel { height: 28px; padding: 0 16px; background: #6E6E6E; color: #fff; border: 0; border-radius: 3px; }
.tm-cancel:hover { background: #555; }
.tm-hint { background: rgba(255,255,255,.92); padding: 4px 10px; border-radius: 3px; font-size: 12px; color: var(--text-strong); box-shadow: 0 1px 4px rgba(0,0,0,.2); }

/* a stop that breaks a hard rule (territory, preferred driver, vehicle requirement): shown red on the timeline, with a "!" on its van */
.gb-order.has-violation { background: #FDE0E4; border-color: var(--danger); box-shadow: inset 0 0 0 1px var(--danger); }
.gb-order.has-violation:hover, .gb-order.has-violation.sel { background: #FBCFD6; }
.pin .pin-req { position: absolute; left: 100%; top: -7px; margin-left: -5px; background: #fff; border: 1px solid var(--line-strong); color: var(--text-strong); font-size: 9px; font-weight: 700; line-height: 12px; padding: 0 3px; border-radius: 2px; }
.viol-banner { background: #F2194F; color: #fff; font-weight: 700; padding: 7px 10px; border-radius: 3px; margin: 0 0 10px; line-height: 1.35; }
.viol-mark { display: inline-flex; align-items: center; justify-content: center; width: 14px; height: 14px; border-radius: 50%; background: var(--danger); color: #fff; font-size: 10px; font-weight: 700; margin-left: 4px; }
.req-badge { display: inline-block; padding: 0 5px; border-radius: 3px; background: var(--toolbar); color: var(--text-strong); font-size: 10px; font-weight: 700; margin-left: 4px; vertical-align: middle; }

/* Distribution centre hours, driver operating hours, customer location windows */
.hrs { display: flex; flex-direction: column; gap: 6px; }
.hr-row { display: flex; align-items: center; gap: 12px; min-height: 34px; }
.hr-row > .tg { flex: 0 0 150px; }
.hr-times { display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 4px; border: 1px solid #CED2DA; border-radius: 3px; background: #fff; }
.hr-times .mx-input { border: 0; height: 26px; width: 58px; padding: 0 2px; background: transparent; text-align: center; }
.hr-times .mx-input::-webkit-calendar-picker-indicator { display: none; }
.hr-times.is-disabled { background: #EEF0F4; }
.hr-time { width: 104px; }
.hr-dash { color: var(--muted-2); }
.dh { display: flex; flex-direction: column; gap: 6px; overflow-x: auto; }
.dh-note { margin: 0 0 8px; font-size: 12px; line-height: 1.4; }
.dh-head, .dh-row { display: grid; grid-template-columns: 124px 190px 8px 190px 158px 52px 26px; align-items: center; gap: 6px; min-width: 780px; }
.dh-head { font-size: 12px; color: var(--muted-2); align-items: end; }
.dh-head .dh-start, .dh-row .dh-start { text-align: center; line-height: 1.15; }
.dh-pair { display: flex; gap: 4px; align-items: center; }
.dh-pair .mx-select { width: 98px; flex: none; padding-left: 6px; }
.dh-pair .hr-time { width: 84px; padding: 0 4px; }
.dh-break { display: flex; gap: 3px; align-items: center; }
.dh-break .hr-time { width: 76px; padding: 0 4px; }
.dh-start { display: flex; justify-content: center; }
.dh-reset { margin-left: 8px; }
.seg { display: inline-flex; align-self: flex-start; margin-bottom: 12px; border: 1px solid #CED2DA; border-radius: 3px; overflow: hidden; }
.seg-b { height: 28px; padding: 0 16px; border: 0; background: #fff; color: var(--text); cursor: pointer; font-size: 13px; }
.seg-b + .seg-b { border-left: 1px solid #CED2DA; }
.seg-b.on { background: var(--blue); color: #fff; }
.seg-b:disabled { cursor: not-allowed; opacity: .55; }
.lw-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.lw-day { width: 104px; flex: none; color: var(--text); }
.lw-row .hr-time { width: 96px; }
.loc-cols { align-items: start; }
.loc-cols .frow { margin-bottom: 10px; }
.pager .pg-gap { padding: 0 4px; color: var(--muted-2); }
.ur-row { display: flex; align-items: center; gap: 10px; margin: 6px 0; }
.ur-row::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.role-filter { margin-right: 14px; }
.role-filter .mx-select { height: 28px; }

/* SETTINGS > Speed zones (list of zones and the map) */
.sz-side { width: 400px; }
.sz-controls { padding: 12px 14px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.sz-default { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sz-default label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.sz-chev { width: 16px; flex: none; display: inline-flex; color: var(--muted-2); }
.sz-detail { padding-top: 8px; }
.sz-factors { margin-top: 6px; }
.sz-factor { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; font-size: 13px; border-bottom: 1px solid #F0F0F2; }
.sz-factor.sz-head { color: var(--muted); font-size: 12px; }
.sz-learned { padding: 6px 14px 16px; font-size: 13px; line-height: 1.4; }
.sz-h { font-weight: 700; margin: 16px 0 6px; color: var(--text-strong); }
.sz-rule { margin-bottom: 7px; }
.sz-page .terr-row { height: 40px; }

/* SMS & E-mail messages: the Update dialog and the e-mail source row under the list */
.msg-area { width: 100%; min-height: 70px; resize: vertical; font-family: inherit; line-height: 1.4; }
.msg-sep { border-top: 1px solid var(--line); margin: 8px 0 12px; }
.msg-source { padding: 12px 16px 6px; border-top: 1px solid var(--line); background: #fff; }
.msg-source .srow { margin-bottom: 0; }

.sz-label { background: rgba(255,255,255,.9); border-radius: 3px; padding: 1px 7px; font-weight: 700; white-space: nowrap; color: var(--text-strong); transform: translate(-50%, -50%); width: auto !important; height: auto !important; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.fg5 .sfx .mx-input { padding-right: 30px; }
.fg5 .sfx-suffix { right: 7px; }

.about-logo { height: 38px; width: auto; display: block; }
