.workorder-shell{padding:20px;max-width:none;margin:auto}.wo-layout{display:grid;grid-template-columns:260px minmax(0,1fr);gap:18px}.wo-layout>section,.dashboard-section{min-width:0}.wo-ticket{display:block;text-align:left;width:100%;white-space:normal;margin:8px 0}.wo-ticket.active{background:#e8f3ff;border-color:#5e9ddd}.wo-ticket small{display:block;overflow-wrap:anywhere}.dashboard-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.dashboard-cards>div{border:1px solid #dce8ee;border-radius:10px;padding:16px;background:#f0fbf5;overflow-wrap:anywhere}.dashboard-cards>div:nth-child(2){background:#fff8ed}.dashboard-cards>div:nth-child(3){background:#fff1f2}.dashboard-counters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:14px 0}.dashboard-counters>div{background:#f6f8ff;padding:12px;border-radius:8px;border:1px solid #dee5fa}.dashboard-actions{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.dashboard-actions input,.dashboard-actions select{min-width:0;max-width:200px}.dashboard-account-table{width:100%;table-layout:fixed;font-size:12px}.dashboard-account-table td,.dashboard-account-table th{padding:9px 5px;overflow-wrap:anywhere;white-space:normal}.dashboard-account-table .avatar{width:32px;height:32px;object-fit:cover}.dashboard-account-table button{white-space:normal;padding:4px;font-size:11px;margin:2px}.dashboard-account-table small{display:block}.dashboard-section{margin:12px 0;padding:16px;border:1px solid #e0e7ee;border-radius:12px;background:#fff}.dashboard-leads{table-layout:fixed}.dashboard-leads td{overflow-wrap:anywhere}.wo-layout aside input{width:100%}.dashboard-filter label{display:inline-block;font-size:12px}.dashboard-error{color:#bd3446}.dashboard-label{font-size:12px;color:#687888}.dashboard-dialog{width:600px;max-height:90vh;overflow:auto}.dashboard-dialog label{margin:12px 0}.dashboard-dialog pre{white-space:pre-wrap;overflow-wrap:anywhere}#wo-status{position:fixed;bottom:15px;right:15px;max-width:80vw;background:#233e34;color:white;border-radius:8px;padding:10px;z-index:20}#wo-status:empty{display:none}.client-workorder-dashboard{margin-top:15px}@media(max-width:1300px){.dashboard-account-table thead{display:none}.dashboard-account-table tbody,.dashboard-account-table tr{display:block}.dashboard-account-table tr{border:1px solid #e0e7ee;border-radius:9px;margin:10px 0;padding:10px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.dashboard-account-table td{display:block;border:0}.dashboard-account-table td:before{content:attr(data-label);display:block;color:#8a97a3;font-size:11px}}@media(max-width:850px){.wo-layout{grid-template-columns:1fr}.dashboard-cards{grid-template-columns:1fr}.dashboard-counters{grid-template-columns:repeat(2,minmax(0,1fr))}.workorder-shell{padding:10px}.dashboard-account-table tr{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-actions input{max-width:100%}}

.dashboard-upgraded #account-status-panel,.dashboard-upgraded #statistics,.dashboard-upgraded #activity-panel{display:none!important}.dashboard-leads img{max-width:32px;max-height:32px}@media(max-width:850px){.dashboard-leads thead{display:none}.dashboard-leads tbody{display:block}.dashboard-leads tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border:1px solid #e0e7ee;margin:8px 0}.dashboard-leads td{display:block;border:0}.dashboard-leads td:before{content:attr(data-label);display:block;color:#8a97a3}}

.avatar-wrap{position:relative;display:inline-flex}.repeat-dot{position:absolute;top:-2px;right:-2px;width:12px;height:12px;min-width:0;padding:0!important;border:2px solid white;border-radius:50%;background:#ef3456;cursor:pointer}
/* Compact report workspace: account cards, on-demand reports, bounded dialogs. */
.dashboard-overview{display:grid;grid-template-columns:2fr repeat(3,minmax(100px,1fr));gap:20px;background:#fff;border:1px solid #e2e8f0;border-radius:16px;padding:24px;align-items:center}.dashboard-overview h2{margin:6px 0}.dashboard-overview strong{display:block;font-size:28px;font-variant-numeric:tabular-nums;color:#233d58}.dashboard-overview small{color:#8492a3;font-size:12px}.dashboard-toolbar{display:flex;gap:8px;flex-wrap:wrap;padding:14px 0}.dashboard-toolbar button,.dashboard-account button{background:white;color:#285070;border:1px solid #dce5ee;border-radius:8px;padding:9px 13px;cursor:pointer}.dashboard-toolbar button:hover,.dashboard-account button:hover{background:#edf5ff}.dashboard-section-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px}.dashboard-section-heading h2{margin:0}.dashboard-account-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,420px),1fr));gap:16px}.dashboard-account{border:1px solid #e2e8f0;border-radius:14px;background:#fff;padding:18px;min-width:0}.dashboard-account-heading{display:flex;align-items:center;gap:12px;padding-bottom:16px;border-bottom:1px solid #edf1f5}.dashboard-account-heading>div{flex:1;min-width:0}.dashboard-account-heading small{display:block;color:#8a97a3}.dashboard-account-heading .avatar{width:40px;height:40px;object-fit:cover;border-radius:50%;display:inline-grid;place-items:center;background:#eef5fc}.dashboard-account dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:16px 0}.dashboard-account dl>div{min-width:0}.dashboard-account dt{font-size:12px;color:#8492a3;margin-bottom:5px}.dashboard-account dd{margin:0;overflow-wrap:anywhere;font-size:13px;line-height:1.5;font-variant-numeric:tabular-nums}.dashboard-account footer{display:flex;gap:6px;flex-wrap:wrap;padding-top:12px;border-top:1px solid #edf1f5}.dashboard-account footer button{font-size:12px;padding:7px 10px}.dashboard-dialog{width:min(1100px,94vw);max-width:94vw;max-height:88dvh;overflow-y:auto;overscroll-behavior:contain;border:1px solid #dce5ef;border-radius:16px;padding:0;box-shadow:0 24px 80px #14283c33;color:#1e293b}.dashboard-dialog::backdrop{background:#14283c66}.dashboard-dialog>header{position:sticky;top:0;background:#fff;border-bottom:1px solid #edf1f5;display:flex;align-items:center;justify-content:space-between;padding:18px 22px;z-index:2}.dashboard-dialog>header h2{font-size:18px;margin:0}.dashboard-dialog>header button{background:#f2f5f8;color:#475569;border:0;font-size:22px;padding:4px 12px}.dashboard-dialog>[data-dash=dialog-body]{padding:22px}.dashboard-dialog>[data-dash=dialog-error]{color:#c24152;margin:0 22px 16px}.dashboard-dialog[data-kind=note],.dashboard-dialog[data-kind=remove],.dashboard-dialog[data-kind=logs]{width:min(620px,94vw)}.dashboard-table-wrap{max-width:100%;overflow:auto}.dashboard-leads{width:100%;border-collapse:collapse;table-layout:fixed;font-size:12px}.dashboard-leads td,.dashboard-leads th{white-space:normal;overflow-wrap:anywhere;padding:12px 6px;border-bottom:1px solid #edf1f5}.dashboard-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:24px}.dashboard-stats>div{border:1px solid #e3eaf2;border-radius:10px;padding:16px;background:#f8fafc}.dashboard-stats span{font-size:12px;color:#8492a3}.dashboard-stats strong{display:block;font-size:26px;margin-top:10px}.dashboard-filter{display:flex;gap:12px;flex-wrap:wrap;align-items:end}.dashboard-filter label{display:flex;flex-direction:column;gap:7px}.dashboard-note-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.dashboard-note-form label{display:flex;flex-direction:column}.dashboard-note-form input,.dashboard-note-form select{width:100%;margin:0}.dashboard-note-form button{grid-column:1/-1;background:#1769aa;color:white}.dashboard-log-list article{display:flex;gap:14px;padding:18px 0;border-bottom:1px solid #edf1f5}.dashboard-log-list p{color:#8492a3;margin:5px 0}.dashboard-log-list time{font-size:12px;color:#94a3b8}.dashboard-log-dot{flex:0 0 9px;height:9px;background:#2eae77;border-radius:50%;margin-top:7px}.dashboard-upgraded #session-quota{display:none}.dashboard-upgraded header.panel{padding:18px 24px}.dashboard-upgraded #connector-download{display:grid;grid-template-columns:1fr auto;gap:8px 20px;align-items:center}.dashboard-upgraded #connector-download h3,.dashboard-upgraded #connector-download p{margin:0}.dashboard-upgraded #connector-download a{grid-column:2;grid-row:1/3}.dashboard-upgraded #connector-download p:last-child{grid-column:1/-1;font-size:12px;margin-top:6px}@media(max-width:700px){.dashboard-overview{grid-template-columns:repeat(2,minmax(0,1fr));padding:18px;gap:16px}.dashboard-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-note-form{grid-template-columns:1fr}.dashboard-upgraded #connector-download{display:block}.dashboard-upgraded #connector-download a{margin:12px 0}.dashboard-dialog>[data-dash=dialog-body]{padding:16px}.dashboard-section-heading{align-items:start;flex-direction:column}}
/* Lantu 6.30: horizontal account rows, reference pastel summaries, colored live state. */
.dashboard-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:16px 0 12px}.dashboard-cards>.summary-card{min-width:0;border-radius:11px;padding:18px;border:1px solid}.summary-card.info{background:#effbf4;border-color:#abe7c5}.summary-card.info h3{color:#0ba253}.summary-card.reset{background:#fff8ed;border-color:#ffd394}.summary-card.reset h3{color:#df8300}.summary-card.leads{background:#fff1f2;border-color:#ffbdc5}.summary-card.leads h3{color:#ee334e}.summary-card h3{font-size:14px;display:flex;align-items:center;justify-content:space-between;margin:0 0 12px}.summary-card h3 button{font-size:11px;background:#3c82f6;color:white;border:0;border-radius:5px;padding:4px 9px}.summary-pairs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 18px;font-size:12px;color:#718098}.summary-pairs p{margin:0;overflow-wrap:anywhere}.summary-pairs b{font-weight:500;color:#152c49;font-variant-numeric:tabular-nums}.dashboard-counters{margin:10px 0}.dashboard-counters>div{display:flex;align-items:center;gap:8px;font-size:12px;padding:12px;color:#34486c;background:#f6f8ff;border-color:#cfdbff}.dashboard-counters>div>span{display:inline-grid;place-items:center;flex:0 0 22px;width:22px;height:22px;border-radius:50%;background:#3b82f6;color:white;font-weight:600}.dashboard-counters b{color:#0ca45a}.dashboard-toolbar-panel{background:white;border-radius:12px;padding:16px;border:1px solid #e9edf4;margin:14px 0}.dashboard-search{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.dashboard-search input,.dashboard-search select{border:1px solid #d7dfe9;border-radius:7px;padding:9px 11px;background:white;color:#263e5b;font:inherit;font-size:12px;width:auto;margin:0;max-width:180px}.dashboard-search button{padding:8px 16px;font-size:12px;background:#edf0f5;color:#506078}.dashboard-search .search-button{background:#3b82f6;color:white}.dashboard-search>span{font-size:12px;color:#78849a}.dashboard-toolbar{padding:0;margin:14px 0 0}.dashboard-toolbar button{font-size:12px;border-radius:7px;color:#367bff;background:#f5f8ff;border-color:#c7d8ff;padding:8px 12px}.dashboard-toolbar [data-action=logs]{color:#dc8500;background:#fff8ed;border-color:#ffdc9c}.dashboard-toolbar [data-action=pause]{color:#12a960;background:#f0fcf4;border-color:#a6e6c0}.dashboard-toolbar-panel>[role=status]{font-size:11px;margin:10px 0 0;color:#8491a7}.dashboard-section{padding:16px}.dashboard-section-heading{margin-bottom:14px}.dashboard-section-heading h2{font-size:18px}.dashboard-account-table{border-collapse:collapse;width:100%;table-layout:fixed;font-size:12px;background:white}.dashboard-account-table thead th{background:#f7f8fb;font-weight:500;color:#59687c}.dashboard-account-table th,.dashboard-account-table td{border:1px solid #edf0f5;padding:12px 7px;white-space:normal;overflow-wrap:anywhere;vertical-align:middle;text-align:center}.dashboard-account-table th:first-child{width:12%}.dashboard-account-table th:nth-child(2){width:6%}.dashboard-account-table th:nth-child(3){width:11%}.dashboard-account-table th:nth-child(7){width:7%}.dashboard-account-table th:nth-child(8){width:12%}.dashboard-account-table th:last-child{width:10%}.dashboard-account-table tbody tr:nth-child(even){background:#fbfcff}.dashboard-account-table .account-person{display:flex;align-items:center;gap:9px;text-align:left;min-width:0}.account-person>div{min-width:0}.account-person b{display:block;font-size:12px;overflow-wrap:anywhere}.account-person small{display:block;color:#8b98a9;font-size:11px}.account-avatar-state{position:relative;display:inline-flex;padding-bottom:4px;flex:0 0 auto}.account-avatar-state .avatar{width:38px;height:38px;border-radius:50%;object-fit:cover;display:inline-grid;place-items:center;background:#edf3ff}.account-presence{position:absolute;bottom:-1px;left:50%;transform:translateX(-50%);width:11px;height:11px;border:2px solid white;border-radius:50%}.account-presence.is-online{background:#14bc66}.account-presence.is-offline{background:#f04c62}.account-status{display:inline-block;padding:4px 7px;border-radius:5px;font-size:12px;white-space:normal}.account-status.is-online{color:#09984c;background:#eafbf0}.account-status.is-offline{color:#e83d56;background:#fff0f2}.account-number{display:inline-block;padding:3px 6px;border-radius:4px;color:#347eff;background:#eef4ff;font-size:11px;font-variant-numeric:tabular-nums}.dashboard-account-table button{padding:5px 7px;margin:3px;border-radius:6px;border:1px solid #cfddff;background:#f6f9ff;color:#347aff;font-size:11px}.dashboard-account-table [data-action=remove-account]{color:#e64b61;background:#fff4f5;border-color:#ffd0d8}.route-state{color:#8491a5;font-size:11px}.dashboard-account-scroll{min-width:0;width:100%;overflow:visible}html[data-theme=dark] .summary-pairs b{color:#e0eafb}html[data-theme=dark] .dashboard-account-table,html[data-theme=dark] .dashboard-account-table tbody tr:nth-child(even){background:#182338}html[data-theme=dark] .dashboard-account-table button{background:#1e3459;color:#8ab6ff;border-color:#3b5780}html[data-theme=dark] .account-status.is-online{background:#123f2f;color:#5bdc98}html[data-theme=dark] .account-status.is-offline{background:#4b2532;color:#ff899b}html[data-theme=dark] .account-number{background:#20395e;color:#a2c4ff}
@media(min-width:801px){.dashboard-account-table thead{display:table-header-group}.dashboard-account-table tbody{display:table-row-group}.dashboard-account-table tr{display:table-row;border-radius:0;padding:0;margin:0}.dashboard-account-table td,.dashboard-account-table th{display:table-cell}.dashboard-account-table td:before{display:none}.dashboard-cards{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:1100px) and (min-width:801px){.summary-pairs{grid-template-columns:1fr}.dashboard-account-table{font-size:11px}.dashboard-account-table th,.dashboard-account-table td{padding:9px 4px}.dashboard-account-table .account-person{flex-direction:column;align-items:center;text-align:center}.dashboard-account-table button{padding:4px}}@media(max-width:800px){.dashboard-cards{grid-template-columns:1fr}.dashboard-account-table thead{display:none}.dashboard-account-table tbody{display:block}.dashboard-account-table tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:10px;margin:10px 0;border:1px solid #e1e8f1;border-radius:9px}.dashboard-account-table td{display:block;border:0;text-align:left}.dashboard-account-table td:before{display:block;content:attr(data-label);font-size:11px;color:#8997ac;margin-bottom:5px}.dashboard-account-table td:first-child,.dashboard-account-table td:last-child{grid-column:1/-1}.dashboard-account-table td:first-child:before{display:none}.dashboard-counters{grid-template-columns:1fr}.dashboard-search input{max-width:100%}}

/* Shared root/manager ticket editor and table skin. */
.workorder-editor-dialog{width:min(1050px,94vw);max-height:90vh;overflow:auto;padding:24px;border:1px solid #dce5f2;border-radius:16px;background:#fff;color:#17314c}.workorder-editor-dialog::backdrop{background:#10223880}.workorder-editor-dialog>header{display:flex;justify-content:space-between;align-items:center;position:sticky;top:-24px;padding:12px 0;background:inherit;z-index:2}.workorder-editor-dialog .editor-wide{grid-column:1/-1}.workorder-editor-dialog details{margin:18px 0;padding:16px;border:1px solid #dce5f2;border-radius:12px}.workorder-editor-dialog summary{cursor:pointer;color:#347cff;font-weight:600}.editor-link{display:grid;grid-template-columns:1fr 150px;gap:10px;padding:16px 0;border-bottom:1px solid #e9edf5}.editor-link>input[readonly],.editor-link>.actions{grid-column:1/-1}.editor-share textarea{width:100%;resize:vertical;padding:14px;border:1px solid #dce5f2;border-radius:8px}html[data-theme=dark] .workorder-editor-dialog{background:#152338;color:#e4ebf5;border-color:#334862}#ticket-detail:has(#root-ticket-dashboard){padding:20px;min-width:0}.ticket-layout{grid-template-columns:280px minmax(0,1fr)}@media(max-width:800px){.ticket-layout{grid-template-columns:1fr}.editor-link{grid-template-columns:1fr}.workorder-editor-dialog{padding:16px}}

.app-options>div{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:12px 0}.app-option{padding:12px;border:1px solid #397cff;border-radius:8px;background:#f5f8ff;display:flex!important;align-items:center;gap:8px}.app-option.disabled{border-color:#dce3ec;color:#8b96a6;background:#f6f7fa}html[data-theme=dark] .app-option{background:#1a304e}html[data-theme=dark] .app-option.disabled{background:#182334}@media(max-width:800px){.app-options>div{grid-template-columns:repeat(2,minmax(0,1fr))}}

#workorder-editor-dialog[open]{display:flex;flex-direction:column;overflow:hidden}#workorder-editor-dialog>[data-edit=content]{flex:1;min-height:0;overflow:auto;padding-right:8px}.editor-footer{display:flex;justify-content:flex-end;gap:12px;padding:16px 0 0;border-top:1px solid #dce5f2;margin-top:16px;flex-shrink:0}

.app-picker{width:100%;display:grid;gap:14px}.app-select-all{display:flex!important;align-items:center;gap:8px}.app-select-all input{width:auto!important}.app-group{border:1px solid #d5dff4;border-radius:12px;padding:16px;background:transparent}.app-group>p{margin:0 0 12px;color:#7c8ba2;font-size:13px}.app-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px 16px}.app-choice{display:flex!important;align-items:center;gap:9px;margin:0!important;border:1px solid #d5dff4;border-radius:9px;padding:9px 10px;background:#f5f8ff;min-width:0;cursor:pointer}.app-choice:has(input:checked){border-color:#397cff;color:#276cff;background:#f0f5ff}.app-choice input{width:16px!important;height:16px;margin:0!important;flex:none;accent-color:#397cff}.app-choice img{width:24px;height:24px;object-fit:contain;flex:none}.app-choice b{font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.app-choice:has(input:disabled){opacity:.6;cursor:default}html[data-theme=dark] .app-choice{background:#172a45;color:#d5e4ff;border-color:#355274}html[data-theme=dark] .app-choice:has(input:checked){background:#223d64;border-color:#6b9dff}@media(max-width:900px){.app-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:480px){.app-grid{grid-template-columns:1fr}}

.workorder-editor-dialog .app-choice,.workorder-editor-dialog .app-select-all{flex-direction:row!important;justify-content:flex-start;align-items:center}.workorder-editor-dialog .app-choice{min-height:44px}.workorder-editor-dialog .app-choice input{margin:0!important;align-self:center}

/* Consistent list, dashboard and editor layout. */
.workorder-shell{padding:26px 24px 32px;max-width:1920px}.workorder-shell>#wo-who,.workorder-shell #wo-who{display:none}.workorder-shell>.section-heading{min-height:42px;margin:0 0 22px}.wo-layout{grid-template-columns:260px minmax(0,1fr);gap:20px;align-items:start}.wo-layout>aside.card{position:sticky;top:18px;padding:18px;border-radius:14px;min-height:0;max-height:calc(100vh - 112px);overflow:auto}.wo-layout>section{min-width:0}
#wo-tools>.actions{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px 8px;margin:0 0 16px;align-items:end}#wo-tools label{font-size:12px;color:var(--muted);gap:7px;min-width:0;margin:0}#wo-tools select{width:100%;min-width:0;margin:0}#wo-tools [data-tool=new]{height:40px;min-height:40px;padding:8px 11px;font-size:12px}#wo-tools [data-tool=bank]{grid-column:1/-1;min-height:36px;justify-self:stretch;background:var(--light);font-size:12px}#wo-search{margin:0 0 14px;width:100%;font-size:12px;height:40px}
#wo-list{display:grid;gap:9px}.wo-ticket{margin:0;padding:13px 14px;border-radius:10px;border-color:var(--border);background:var(--card);line-height:1.6;min-height:84px}.wo-ticket b{display:block;font-size:14px;font-weight:650;margin-bottom:4px}.wo-ticket small{font-size:11px;color:var(--muted);line-height:1.7}.wo-ticket small:last-child{margin-top:5px}.wo-ticket.active{background:#edf5ff;border-color:#84b3f5;box-shadow:inset 3px 0 #2677ed}.wo-ticket.active b{color:#1c5cab}.wo-ticket.active small{color:#6685ac}
.dashboard-cards{gap:14px}.dashboard-cards>div{padding:18px;border-radius:13px;box-shadow:none}.dashboard-cards h3{font-size:14px;margin:0 0 13px}.summary-pairs{gap:5px 16px}.summary-pairs p{font-size:12px;line-height:1.7;margin:0;min-width:0}.summary-pairs b{font-weight:500}.dashboard-counters{gap:12px;margin:14px 0 12px}.dashboard-counters>div{font-size:12px;padding:12px 14px;border-radius:10px;line-height:1.7}.dashboard-toolbar-panel,.dashboard-section{border:1px solid var(--border);border-radius:13px;padding:18px;background:var(--card);box-shadow:none;margin:16px 0}.dashboard-search{gap:10px;align-items:center}.dashboard-search input,.dashboard-search select{font-size:12px;min-height:36px;height:36px}.dashboard-search input[type=datetime-local]{max-width:210px}.dashboard-search button,.dashboard-toolbar button{min-height:34px;font-size:12px;padding:7px 11px;border-radius:8px}.dashboard-toolbar{gap:8px;margin-top:14px}.dashboard-section-heading{display:flex;justify-content:space-between;align-items:center;gap:14px;margin:0 0 14px}.dashboard-section-heading h2{font-size:17px;margin:0}.dashboard-section-heading>span{font-size:11px}
.dashboard-account-scroll,.dashboard-table-wrap{border:1px solid var(--border);border-radius:10px;overflow:auto}.dashboard-account-table,.dashboard-leads{border-collapse:collapse;width:100%;min-width:1350px;table-layout:fixed;font-size:12px}.dashboard-account-table thead,.dashboard-leads thead{display:table-header-group}.dashboard-account-table tbody,.dashboard-leads tbody{display:table-row-group}.dashboard-account-table tr,.dashboard-leads tr{display:table-row;border:0;border-radius:0;margin:0;padding:0}.dashboard-account-table th,.dashboard-account-table td,.dashboard-leads th,.dashboard-leads td{display:table-cell;border-bottom:1px solid var(--border);padding:12px 8px;line-height:1.6;vertical-align:middle}.dashboard-account-table th,.dashboard-leads th{background:var(--light);color:#71839c;font-size:11px;font-weight:500;white-space:normal}.dashboard-account-table td:before,.dashboard-leads td:before{display:none}.dashboard-account-table tbody tr:nth-child(even),.dashboard-leads tbody tr:nth-child(even){background:#fafcff}.dashboard-account-table tbody tr:hover,.dashboard-leads tbody tr:hover{background:#f2f7ff}.dashboard-account-table button{font-size:11px;padding:4px 7px;min-height:28px;margin:3px 2px;border-radius:7px}.dashboard-account-table small{font-size:10px;line-height:1.6}
.dashboard-dialog,.workorder-editor-dialog{border:1px solid var(--border);border-radius:16px;padding:24px;background:var(--card);color:var(--ink);box-sizing:border-box}.workorder-editor-dialog>header{padding:0 0 18px;top:auto;border-bottom:1px solid var(--border);margin:0 0 18px;position:static}.workorder-editor-dialog>header h2{font-size:19px;margin:0;line-height:1.4}.workorder-editor-dialog>header button,.dashboard-dialog>header>button{min-height:32px;height:32px;min-width:32px;padding:4px;border:0;background:var(--light);color:var(--muted);border-radius:9px}.workorder-editor-dialog .form-grid{gap:18px 20px}.workorder-editor-dialog label{font-size:13px}.workorder-editor-dialog details{border-radius:11px;padding:15px;margin:18px 0}.editor-footer{padding-top:18px;margin-top:18px;border-color:var(--border)}.editor-footer button{min-width:88px;height:40px}.app-group{padding:14px;border-color:var(--border)}.app-grid{gap:10px}.workorder-editor-dialog .app-choice{min-height:46px;padding:10px;gap:8px;flex-direction:row!important}.app-choice img{width:22px;height:22px}.app-choice b{font-size:12px;line-height:1.4;white-space:normal;overflow:visible}.app-select-all{font-size:12px}.editor-wide>b{display:block;margin:4px 0 12px;font-size:14px}
html[data-theme=dark] .wo-ticket{background:#18263a;border-color:var(--border)}html[data-theme=dark] .wo-ticket.active{background:#203e65;border-color:#658fce}html[data-theme=dark] .wo-ticket.active b{color:#c4dcff}html[data-theme=dark] .wo-ticket.active small{color:#a2bcdf}html[data-theme=dark] .dashboard-account-table tbody tr:nth-child(even),html[data-theme=dark] .dashboard-leads tbody tr:nth-child(even){background:#1a2b42}html[data-theme=dark] .dashboard-account-table tbody tr:hover,html[data-theme=dark] .dashboard-leads tbody tr:hover{background:#243b59}html[data-theme=dark] .dashboard-account-table th,html[data-theme=dark] .dashboard-leads th{background:#22334c;color:#a8b9cf}
@media(max-width:1100px){.wo-layout{grid-template-columns:230px minmax(0,1fr);gap:16px}.wo-layout>aside.card{padding:15px}.dashboard-cards{grid-template-columns:1fr}.dashboard-counters{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:850px){.workorder-shell{padding:18px 14px}.wo-layout{grid-template-columns:1fr;gap:16px}.wo-layout>aside.card{position:static;max-height:none;padding:16px}#wo-tools>.actions{grid-template-columns:minmax(0,1fr) auto auto;gap:10px}#wo-tools [data-tool=bank]{grid-column:auto;min-height:40px}#wo-list{display:flex;overflow-x:auto;gap:10px;padding-bottom:2px;scroll-snap-type:x proximity}.wo-ticket{flex:0 0 220px;scroll-snap-align:start;min-width:0}#wo-search{margin-bottom:12px}.dashboard-cards{grid-template-columns:1fr}.dashboard-section,.dashboard-toolbar-panel{padding:15px}.dashboard-section-heading{align-items:flex-start;flex-wrap:wrap}.workorder-editor-dialog{padding:18px;max-width:96vw}.workorder-editor-dialog>header h2{font-size:17px}.workorder-editor-dialog .form-grid{grid-template-columns:1fr}.dashboard-search input[type=datetime-local]{max-width:none}.app-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){#wo-tools>.actions{grid-template-columns:minmax(0,1fr) auto}#wo-tools [data-tool=bank]{grid-column:1/-1}.dashboard-counters{gap:8px}.dashboard-counters>div{padding:10px;font-size:11px}.dashboard-search>*{max-width:100%}.app-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.workorder-editor-dialog .app-choice{padding:9px 7px;gap:6px}.app-choice img{width:19px;height:19px}.app-choice b{font-size:11px}}

/* Ticket card edit action anchored at the top-right of each left ticket card. */
.wo-ticket-wrap{position:relative;display:block;border:1px solid var(--border);border-radius:12px;padding:0;margin:0 0 10px;background:var(--card);min-width:0}.wo-ticket-wrap.active{border-color:var(--accent,#347cff)}.wo-ticket-wrap .wo-ticket-select{display:flex;width:100%;min-height:88px;flex-direction:column;align-items:flex-start;text-align:left;border:0;background:transparent;padding:14px 72px 14px 14px;color:inherit;gap:5px}.wo-ticket-wrap .wo-ticket-edit{position:absolute;right:9px;top:9px;z-index:1;min-height:28px;padding:4px 9px;border:1px solid var(--border);border-radius:7px;background:var(--card);color:var(--ink);font-size:12px}.wo-ticket-wrap .wo-ticket-edit:hover{border-color:var(--accent,#347cff);color:var(--accent,#347cff)}

/* Customer pages do not load the administrator root color variables. */
.dashboard-dialog{background:var(--card,#fff);color:var(--ink,#1e293b);border-color:var(--border,#dce5ef);max-width:calc(100vw - 32px);isolation:isolate}
.dashboard-dialog>[data-dash=dialog-body]{background:var(--card,#fff);color:var(--ink,#1e293b);min-width:0}
.dashboard-dialog>header{background:var(--card,#fff);color:var(--ink,#1e293b)}
.dashboard-dialog[data-kind=leads]{padding:0;width:min(1120px,calc(100vw - 32px));overflow:hidden;max-height:88dvh}
.dashboard-dialog[data-kind=leads][open]{display:flex;flex-direction:column}
.dashboard-dialog[data-kind=leads]>header{flex:none;padding:18px 22px}
.dashboard-dialog[data-kind=leads]>[data-dash=dialog-body]{overflow:auto;min-height:0;padding:20px;flex:1}
.dashboard-dialog[data-kind=leads] .dashboard-filter{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));align-items:end;gap:12px}
.dashboard-dialog[data-kind=leads] .dashboard-filter label{display:flex;flex-direction:column;gap:7px;min-width:0;margin:0}
.dashboard-dialog[data-kind=leads] .dashboard-filter input,.dashboard-dialog[data-kind=leads] .dashboard-filter select{box-sizing:border-box;width:100%;min-width:0;min-height:40px;border:1px solid var(--border,#dce5ef);border-radius:8px;background:var(--card,#fff);color:var(--ink,#1e293b);padding:8px}
.dashboard-dialog[data-kind=leads] .dashboard-table-wrap{max-width:100%;overflow:auto;border:1px solid var(--border,#dce5ef);border-radius:10px;background:var(--card,#fff)}
.dashboard-dialog[data-kind=leads] .dashboard-leads{min-width:1000px;background:var(--card,#fff);color:var(--ink,#1e293b)}
.dashboard-dialog[data-kind=leads] .dashboard-leads th{background:var(--light,#f4f7fb)}
.dashboard-dialog[data-kind=leads] .dashboard-leads th,.dashboard-dialog[data-kind=leads] .dashboard-leads td{border-color:var(--border,#e3eaf3)}
html[data-theme=dark] .dashboard-dialog[data-kind=leads],html[data-theme=dark] .dashboard-dialog[data-kind=leads]>[data-dash=dialog-body],html[data-theme=dark] .dashboard-dialog[data-kind=leads] .dashboard-leads{background:#182338;color:#dbe7f8}
html[data-theme=dark] .dashboard-dialog[data-kind=leads] .dashboard-filter input,html[data-theme=dark] .dashboard-dialog[data-kind=leads] .dashboard-filter select{background:#152035;color:#dbe7f8;border-color:#33455e}

/* LANTU account log v1 */
.dashboard-dialog:has(.lantu-account-log){width:480px;max-width:calc(100vw - 32px);padding:18px 20px;border-radius:16px;background:#fff;color:#252525}.lantu-account-log h3{font-size:15px;margin:0 0 16px}.lantu-log-scroll{max-height:480px;overflow:auto}.lantu-log-row{border-top:1px solid #f0f0f0;padding:15px 0 12px}.lantu-log-row>div{display:flex;align-items:center;gap:8px}.lantu-log-row b{font-size:14px;font-weight:400}.lantu-log-row time{margin-left:auto;color:#999;font-size:12px}.lantu-log-row p{margin:5px 0 0 16px;color:#999;font-size:12px;line-height:1.6}.lantu-log-dot{width:8px;height:8px;border-radius:50%;display:inline-block;flex:0 0 8px}.lantu-log-dot.is-online{background:#20c568}.lantu-log-dot.is-offline{background:#fa454c}.lantu-log-dot.is-info{background:#999}
