.ca-workspace{min-width:0;color:#18324f}
.ca-workspace [hidden],.ca-modal [hidden]{display:none!important}
.ca-modal [data-business-back]{display:none!important}
.ca-workspace button,.ca-modal button{width:auto;margin:0;min-height:32px;line-height:1.4}
.ca-workspace button.secondary,.ca-modal button.secondary{background:#fff;color:#31577b;border:1px solid #cbd9e7;box-shadow:none;font-weight:400}
.ca-workspace button.secondary:hover,.ca-modal button.secondary:hover{background:#f0f6fc;border-color:#9bb7d2}
.ca-workspace button:disabled,.ca-modal button:disabled{opacity:.45;cursor:default}
.ca-workspace button:focus-visible,.ca-modal button:focus-visible,.ca-workspace summary:focus-visible{outline:2px solid #397bc4;outline-offset:3px}
.ca-workspace [data-ca-message]:not(:empty){padding:10px 12px;margin-bottom:12px;border-radius:6px;background:#f0f8f4;color:#216449;font-size:13px}
.ca-error{color:#b42318!important}
.ca-header,.ca-actions,.ca-group-head,.ca-list-summary,.ca-list-tools{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.ca-header{margin-bottom:18px}.ca-header h2{margin:0;font-size:23px;line-height:1.4}.ca-header p{margin:6px 0 0}
.ca-actions{justify-content:flex-start;gap:8px}.ca-header .ca-actions button{padding:7px 13px;font-size:13px}
.ca-filters{display:grid;grid-template-columns:minmax(200px,1.7fr) minmax(140px,1fr) minmax(180px,1.4fr) minmax(100px,.7fr);gap:10px;align-items:end}
.ca-filters>*,.ca-filter-options>*{min-width:0}
.ca-filters label,.ca-filter-options label,.ca-date-filters label,.ca-detail-controls label{display:flex;flex-direction:column;gap:5px;color:#64748b;font-size:12px;min-width:0;margin:0}
.ca-filters input,.ca-filters select,.ca-filter-options select,.ca-date-filters input,.ca-detail-controls input,.ca-detail-controls select{width:100%;box-sizing:border-box;min-width:0;height:35px;margin:0;font-size:13px;border:1px solid #d4dfeb;border-radius:6px;padding:6px 10px;background:#fff;color:#18324f}
.ca-filter-options{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;padding:12px 0 14px;border-bottom:1px solid #e7edf4}
.ca-filter-options label{min-width:165px}.ca-filter-options button{padding:6px 10px;font-size:12px}
.ca-filter-options [data-ca-action="clear"]{margin-left:auto;border-color:transparent;background:transparent;color:#54718e}
.ca-filter-options [data-ca-action="more-filters"]{min-height:35px}
.ca-filter-options [data-ca-action="more-filters"][aria-expanded="true"]{background:#eff5fc;border-color:#a8bfdc;color:#1f568b}
.ca-date-filters{display:grid;grid-template-columns:repeat(2,minmax(0,260px));gap:12px;padding:12px 0;border-bottom:1px solid #e7edf4}
.ca-list-summary{padding:12px 0;gap:10px}.ca-summary{font-size:13px;color:#586779;margin:0;line-height:1.6}
.ca-list-tools{justify-content:flex-end;gap:2px}.ca-list-tools button{border:0!important;min-height:28px;padding:4px 8px;font-size:12px;background:transparent!important;color:#436483}
.ca-group{border:1px solid #dde5ee;border-radius:8px;margin:0 0 12px;overflow:hidden;background:#fff}
.ca-group-head{padding:12px 14px;background:#f5f8fc;gap:10px}.ca-group-head>div{min-width:0}
.ca-group-head h3{font-size:15px;line-height:1.4;margin:0 0 4px;overflow-wrap:anywhere}.ca-group-head small{font-size:12px;color:#708197}
.ca-group-head button{font-size:12px;padding:4px 10px;min-height:28px}
.ca-catalog-row .ca-group-head{background:#fff;padding:15px 16px;gap:20px}
.ca-catalog-row .ca-group-head>div:first-child{flex:1}
.ca-catalog-row .ca-group-head .ca-catalog-link{display:inline;border:0;background:transparent;color:#193e66;padding:0;min-height:0;font-size:15px;font-weight:600;text-align:left;white-space:normal;overflow-wrap:anywhere;box-shadow:none}
.ca-catalog-row .ca-catalog-link:hover{text-decoration:underline;color:#155eb4}
.ca-catalog-count{font-size:13px;color:#64748b;flex-shrink:0}.ca-catalog-count strong{color:#18324f}.ca-catalog-count span{margin-left:4px}
.ca-catalog-row .ca-catalog-summary{display:flex;align-items:center;justify-content:flex-end;gap:18px;flex-wrap:wrap;flex:0 1 auto}
.ca-catalog-reminders{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.ca-workspace .ca-catalog-alert{border:1px solid transparent;border-radius:5px;padding:4px 8px;min-height:28px;font-size:12px;font-weight:400;white-space:nowrap;box-shadow:none}
.ca-workspace .ca-catalog-alert-overdue{background:#fff0ee;color:#b3382d}.ca-workspace .ca-catalog-alert-due{background:#fff5e5;color:#946015}.ca-workspace .ca-catalog-alert-unknown{background:#f1f4f7;color:#687b8f}
.ca-workspace .ca-catalog-alert:hover{border-color:currentColor}.ca-catalog-no-alert{color:#7b8a9a;font-size:12px;white-space:nowrap}
.ca-project-page .ca-header p{font-size:13px;color:#708197}
.ca-project-page .ca-filters{grid-template-columns:minmax(0,1fr) minmax(140px,220px)}
.ca-history summary{cursor:pointer;font-size:12px;color:#496c91}
.ca-table{width:100%;table-layout:fixed;min-width:0!important;margin:0!important;border-collapse:collapse;font-size:13px;border:0!important}
.ca-table th,.ca-table td{white-space:normal!important;overflow-wrap:anywhere;padding:10px 12px;vertical-align:middle;border:0!important;border-bottom:1px solid #e8edf4!important;text-align:left;line-height:1.55}
.ca-table th{padding-top:9px;padding-bottom:9px;background:#fafbfd;color:#6a7d91;font-weight:400;font-size:12px}
.ca-table th:nth-child(1){width:30%}.ca-table th:nth-child(2){width:19%}.ca-table th:nth-child(3){width:14%}.ca-table th:nth-child(4){width:14%}.ca-table th:nth-child(5){width:9%}.ca-table th:nth-child(6){width:14%}
.ca-table tbody tr:last-child td{border-bottom:0!important}.ca-table tbody tr:hover{background:#f8fbff}
.ca-table small{display:block;color:#78889a;margin-top:3px;font-size:12px;line-height:1.45}
.ca-table .ca-name-link{display:inline;padding:0;min-height:0;border:0;background:transparent;color:#193e66;font-size:13px;font-weight:600;text-align:left;white-space:normal;overflow-wrap:anywhere;line-height:1.55;border-radius:2px;box-shadow:none}
.ca-table .ca-name-link:hover{color:#155eb4;text-decoration:underline;background:transparent}
.ca-row-actions{display:flex;flex-wrap:wrap;gap:5px}.ca-row-actions button{padding:4px 7px;font-size:12px;min-height:28px;font-weight:400}
.ca-distribution-table .ca-row-actions{gap:8px}.ca-distribution-table .ca-row-actions button{padding:4px 0;border:0!important;background:transparent!important;box-shadow:none;min-width:0}.ca-workspace button.ca-delete-action{color:#b42318}.ca-workspace button.ca-delete-action:hover{color:#921d15;background:#fff4f2!important}
.ca-workspace [data-ca-message]>button{margin-left:12px;padding:3px 8px;min-height:28px;font-size:12px}
.ca-status{display:inline-block;padding:2px 6px;border-radius:4px;background:#f1f5f9;font-size:12px;font-weight:400;white-space:nowrap;color:#596f84}
.ca-active{color:#277260;background:#edf7f3}.ca-repairing{color:#9a620a;background:#fff5e5}.ca-disabled,.ca-archived{color:#718096;background:#f1f3f6}
.ca-table tr.ca-highlight{background:#edf7ff}.ca-table .ca-missing-label{color:#945400}
.ca-summary-table th:nth-child(1){width:24%}.ca-summary-table th:nth-child(2){width:22%}.ca-summary-table th:nth-child(3){width:11%}.ca-summary-table th:nth-child(4){width:24%}.ca-summary-table th:nth-child(5){width:9%}.ca-summary-table th:nth-child(6){width:10%}
.ca-summary-table .ca-quantity{font-size:17px;color:#1a5865;font-variant-numeric:tabular-nums}.ca-summary-table td:last-child button{padding:5px 10px;font-size:12px;font-weight:400}
.ca-summary-table td[data-label="数量"] small{white-space:nowrap}
.ca-brand-preview{min-width:0}.ca-brand-preview-line{display:flex;align-items:baseline;gap:6px;min-width:0}.ca-brand-preview-line+.ca-brand-preview-line{margin-top:3px;font-size:12px;line-height:1.45;color:#78889a}.ca-brand-preview-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.ca-brand-preview-more{white-space:nowrap;flex-shrink:0;color:#78889a;font-size:12px}
.ca-building-summary{min-width:0}.ca-building-count{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ca-building-preview{display:flex;align-items:baseline;gap:4px;min-width:0;margin-top:3px;color:#78889a;font-size:12px;line-height:1.45;white-space:nowrap}
.ca-building-items{display:flex;align-items:baseline;gap:4px;min-width:0;flex:0 1 auto}.ca-building-item{display:flex;gap:4px;min-width:0;flex:0 1 auto}.ca-building-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.ca-building-quantity,.ca-building-separator,.ca-building-more{flex-shrink:0;white-space:nowrap}
.ca-status-set{display:flex;gap:4px;flex-wrap:wrap}.ca-table .ca-legacy-name,.ca-legacy-name{display:inline-block;font-size:11px;font-weight:400;color:#8a682f;background:#faf3e6;border-radius:4px;padding:1px 5px;margin-top:4px}
.ca-distribution-table th:nth-child(1){width:9%}.ca-distribution-table th:nth-child(2){width:13%}.ca-distribution-table th:nth-child(3){width:11%}.ca-distribution-table th:nth-child(4){width:11%}.ca-distribution-table th:nth-child(5){width:17%}.ca-distribution-table th:nth-child(6){width:8%}.ca-distribution-table th:nth-child(7){width:13%}.ca-distribution-table th:nth-child(8){width:6%}.ca-distribution-table th:nth-child(9){width:12%}
.ca-distribution-table th,.ca-distribution-table td{padding:8px}.ca-distribution-table td{vertical-align:middle}.ca-distribution-table .ca-info-label{color:#708197;font-size:12px;font-weight:400}.ca-distribution-table .ca-point-count{display:flex;flex-wrap:wrap;column-gap:4px}.ca-point-count>span{white-space:nowrap}.ca-distribution-table .ca-row-actions{flex-wrap:nowrap}.ca-distribution-table .ca-row-actions button{white-space:nowrap;flex-shrink:0}
.ca-brand-model{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:4px 7px;align-items:baseline}.ca-brand-model>span{min-width:0;overflow-wrap:anywhere}
.ca-date-fact{display:flex;gap:7px;flex-wrap:wrap}.ca-date-fact+.ca-date-fact{margin-top:4px}.ca-date-fact>span:last-child{font-variant-numeric:tabular-nums;white-space:nowrap}
.ca-distribution-table .ca-has-notes td{padding-bottom:6px;border-bottom:0!important}.ca-distribution-table .ca-distribution-note-row td{padding-top:0;font-size:12px;color:#526b84}
.ca-note-full{white-space:pre-wrap;overflow-wrap:anywhere}.ca-distribution-note{margin:0}.ca-distribution-note summary{display:flex;align-items:baseline;gap:8px;cursor:pointer;list-style:none}.ca-distribution-note summary::-webkit-details-marker{display:none}
.ca-note-preview{min-width:0;flex:1}.ca-note-open,.ca-note-close{color:#2867a5;flex-shrink:0}.ca-note-close{display:none}.ca-distribution-note[open] .ca-note-open{display:none}.ca-distribution-note[open] .ca-note-close{display:inline}.ca-distribution-note[open] .ca-note-full{margin-top:5px}
.ca-empty{padding:20px 14px;margin:0;font-size:13px;color:#708197}.ca-distribution-page .ca-summary{color:#355975}.ca-distribution-page .ca-header .ca-legacy-name{margin-left:5px}
.ca-pagination{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 14px;color:#708197;font-size:12px;border-top:1px solid #e8edf4}
.ca-pagination>div{display:flex;align-items:center;gap:10px}.ca-pagination button{padding:4px 9px;min-height:28px;font-size:12px;font-weight:400}
/* 设备资料直接显示，按可用宽度排列。 */
[data-ca-create]:not(:empty){background:#f8fafc;border:1px solid #dae5ef;border-radius:8px;padding:15px 16px;margin:0 0 18px}
.ca-create-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;grid-column:1/-1;margin:0 0 2px}
.ca-create-heading h3{font-size:16px;margin:0;line-height:1.5}.ca-create-heading button{font-size:12px;min-height:28px;padding:4px 10px}
.ca-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 14px;padding:12px 0 0}
.ca-form label,.ca-dialog form>label{display:flex;flex-direction:column;gap:5px;font-size:12px;color:#566d84;min-width:0;margin:0}
.ca-form input,.ca-form select,.ca-form textarea,.ca-dialog input,.ca-dialog select,.ca-dialog textarea{box-sizing:border-box;width:100%;min-width:0;margin:0;font-size:13px}
.ca-form input,.ca-form select{min-height:35px}.ca-wide{grid-column:1/-1}.ca-form textarea{min-height:65px}
.ca-form>.ca-actions{padding-top:4px;gap:8px;justify-content:flex-end}.ca-form>.ca-actions>.muted{font-size:12px;margin-right:auto;color:#7b8a99}.ca-form button{font-size:13px;padding:7px 13px}
.ca-context-note{margin:0;padding:8px 10px;background:#fff7e8;color:#8c600d;font-size:12px;border-radius:5px;overflow-wrap:anywhere}.ca-context-note:empty{display:none}
.ca-project-picker{display:flex;flex-direction:column;gap:5px;min-width:0;font-size:12px;color:#566d84;position:relative;align-self:start}
.ca-project-picker>label{min-height:18px}.ca-project-picker input{width:100%;box-sizing:border-box;min-width:0}.ca-project-picker select[hidden]{display:none!important}
.ca-project-control{position:relative}.ca-project-control>input{padding-right:56px}.ca-project-control>button{position:absolute;top:1px;bottom:1px;min-height:0;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;color:#6f8297!important;font-size:16px!important;width:25px}.ca-project-control>.ca-project-toggle{right:3px}.ca-project-control>.ca-project-clear{right:28px;font-size:18px!important}.ca-project-control>button:hover{color:#1c5d99!important}
.ca-project-suggestions{position:absolute;z-index:13;left:0;right:0;top:calc(100% + 4px);min-width:0;max-height:290px;overflow:auto;border:1px solid #bfcfdf;border-radius:7px;background:#fff;box-shadow:0 6px 20px #19385220;padding:4px}
.ca-project-suggestions>[role=option]{display:block;width:100%;text-align:left;border:0!important;background:transparent!important;color:#244b6a!important;padding:8px!important;border-radius:4px;box-shadow:none!important;line-height:1.4;white-space:normal}
.ca-project-suggestions>[role=option]:hover,.ca-project-suggestions>[role=option][aria-selected=true]{background:#eaf5f5!important}.ca-project-suggestions strong{font-size:13px;font-weight:500;overflow-wrap:anywhere}.ca-project-suggestions small{display:block;color:#7a889a;font-size:11px;margin-top:2px}.ca-project-suggestion-note{padding:7px 8px;font-size:11px;color:#708197;border-top:1px solid #edf1f5;line-height:1.5}
.ca-extra-fields{border-top:1px solid #e2e9f1;padding-top:10px;margin:0}.ca-extra-fields>h4{font-size:12px;font-weight:500;color:#507090;line-height:1.8;margin:0}
.ca-extra-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:10px}
.ca-modal{position:fixed;inset:0;z-index:150;background:rgba(15,23,42,.4);display:flex;align-items:center;justify-content:center;padding:20px}
.ca-dialog{width:min(960px,94vw);max-height:90vh;overflow:auto;background:#fff;border-radius:10px;box-shadow:0 18px 60px #0003;padding:0 22px 20px;box-sizing:border-box}
.ca-dialog>header{display:flex;justify-content:space-between;align-items:center;position:sticky;top:0;background:#fff;z-index:1;padding:14px 0;border-bottom:1px solid #e2e8f0;gap:12px}
.ca-dialog>header h3{margin:0;font-size:18px}.ca-dialog>header button{font-size:12px;min-height:28px;padding:5px 10px}
.ca-dialog-body{min-width:0}.ca-dialog-body>p{font-size:13px;line-height:1.6;margin:12px 0}
.ca-modal-message{white-space:pre-line;font-size:13px;line-height:1.6}.ca-modal-message:empty{display:none}
.ca-create-modal .ca-dialog{width:min(1720px,calc(100vw - 64px));max-width:none;max-height:calc(100dvh - 48px)}
.ca-create-modal .ca-dialog>header{z-index:20}
.ca-create-modal .ca-entry-create{margin:16px 0 0}
.ca-create-modal .ca-modal-message:not(:empty):not(.ca-error){padding:9px 12px;border-radius:5px;background:#f0f8f4;color:#216449;margin:12px 0 0}
.ca-create-modal .ca-entry-create>.ca-actions{position:sticky;bottom:-20px;z-index:10;background:#fff;padding-bottom:12px;margin-bottom:-8px}
@media(max-width:768px){.ca-create-modal .ca-dialog{width:100%;max-width:100%;max-height:calc(100dvh - 16px)}.ca-create-modal .ca-entry-create>.ca-actions{bottom:-16px}}
.ca-lifecycle-summary{display:grid;grid-template-columns:minmax(0,1fr) max-content;gap:10px 20px;margin:16px 0}.ca-lifecycle-summary>div:nth-child(-n+2){grid-column:1/-1}.ca-lifecycle-summary dt{font-size:12px;color:#708197;margin-bottom:4px}.ca-lifecycle-summary dd{margin:0;font-size:13px;line-height:1.5;overflow-wrap:anywhere}.ca-lifecycle-note{font-size:13px;line-height:1.7;color:#5b7087}.ca-lifecycle-form{display:grid;gap:12px}.ca-lifecycle-form label{display:grid;gap:5px;font-size:12px}.ca-lifecycle-form .ca-actions{justify-content:flex-end}.ca-lifecycle-form button{padding:7px 12px;font-size:13px}.ca-lifecycle-form .ca-confirm-delete{background:#b42318;border-color:#b42318;color:#fff}.ca-dialog:has(.ca-lifecycle-summary){max-width:560px}
.ca-dialog details{margin:8px 0}.ca-dialog [data-ca-form="archive"] button,.ca-dialog [data-ca-form="restore"] button{margin-top:12px}
.ca-dialog [data-ca-form="archive"] label,.ca-dialog [data-ca-form="restore"] label{margin:12px 0}
.ca-import-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.ca-file-button{position:relative;display:inline-flex!important;align-items:center;justify-content:center;padding:7px 12px;border:1px solid #cbd5e1;border-radius:6px;background:#fff;color:#245ca2!important;cursor:pointer;font-size:13px;min-height:34px;box-sizing:border-box;overflow:hidden}
.ca-file-button input{position:absolute;inset:0;opacity:0;cursor:pointer}.ca-import-actions>span{font-size:12px;color:#64748b;overflow-wrap:anywhere}
.ca-import-help{font-size:12px;color:#64748b}.ca-import-help summary{cursor:pointer}
.ca-preview-list{max-height:250px;overflow:auto;border:1px solid #e1e7ee;border-radius:6px;padding:6px;margin-bottom:12px}
.ca-preview-list>div{padding:8px;border-bottom:1px solid #edf1f5;font-size:13px;overflow-wrap:anywhere}.ca-preview-list p{font-size:12px;color:#65758b;margin:5px 0;line-height:1.5}
/* 设备详情：基本资料、设备明细和履历分清层次。 */
.ca-detail-back{margin-bottom:12px}.ca-workspace .ca-detail-back button{border:0;padding:0;min-height:24px;background:transparent;color:#56718d;font-size:13px}
.ca-detail-head,.ca-section-head,.ca-activity-head,.ca-activity-foot{display:flex;justify-content:space-between;align-items:center;gap:12px}
.ca-detail-head{align-items:flex-start}.ca-detail-head>div:first-child{min-width:0}.ca-detail-head h2{margin:0;font-size:22px;line-height:1.4;overflow-wrap:anywhere}
.ca-detail-head p{margin:7px 0;color:#708197;font-size:13px;line-height:1.5}.ca-detail-head .ca-actions{flex-wrap:nowrap;flex-shrink:0}.ca-detail-head .ca-actions button{font-size:13px;padding:6px 11px}
.ca-detail-summary{display:flex;align-items:center;gap:14px;margin:10px 0 18px;padding-bottom:14px;border-bottom:1px solid #e5ebf2;font-size:13px}
.ca-detail-page .ca-detail-summary{align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:8px 16px;margin:8px 0 18px}
.ca-detail-page .ca-detail-range{min-width:0;font-size:18px;font-weight:500;line-height:1.7;overflow-wrap:anywhere;color:#173d5b}.ca-detail-page .ca-detail-range strong{white-space:nowrap;color:#0c797d}
.ca-detail-page .ca-detail-body{min-width:0}.ca-detail-page .ca-detail-body>.ca-detail-section{padding-top:16px;border-top:1px solid #e5ebf2;margin:0 0 18px}.ca-detail-page .ca-detail-body>.ca-detail-section:first-child{padding-top:0;border-top:0}
.ca-detail-page .ca-facts{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px 20px;padding:12px 16px}.ca-detail-page .ca-facts dd{font-size:13px}
.ca-detail-page .ca-detail-count{font-size:13px;line-height:1.6;margin:0 0 10px;color:#31516e}
.ca-detail-page .ca-detail-results>.muted,.ca-detail-page .ca-point-list>.muted,.ca-detail-page .ca-detail-tasks>.muted{font-size:13px;line-height:1.6;margin:8px 0}
.ca-detail-page .ca-detail-controls{max-width:650px}.ca-detail-page .ca-detail-controls label{font-size:12px;color:#708197}.ca-detail-page .ca-detail-controls input,.ca-detail-page .ca-detail-controls select{margin-top:4px}
.ca-detail-page .ca-related{display:flex;align-items:center;justify-content:space-between;gap:12px}.ca-detail-page .ca-related>strong{min-width:0;font-weight:500}.ca-detail-page .ca-related>div{flex-shrink:0;gap:12px;margin:0}
.ca-detail-page .ca-detail-tasks-empty{display:flex;align-items:baseline;gap:16px;flex-wrap:wrap}.ca-detail-page .ca-detail-tasks-empty>h3,.ca-detail-page .ca-detail-tasks-empty>.muted{margin:0}
.ca-detail-page .ca-history>summary{font-size:15px;line-height:1.5;cursor:pointer}
@media(min-width:1600px){.ca-detail-page .ca-facts{grid-template-columns:repeat(7,minmax(0,1fr))}}
@media(max-width:768px){.ca-detail-page .ca-facts{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:12px}.ca-detail-page .ca-detail-range{font-size:16px}.ca-detail-page .ca-related{align-items:flex-start}}
.ca-detail-layout{display:grid;grid-template-columns:minmax(0,2.6fr) minmax(235px,1fr);gap:24px}.ca-detail-layout>div,.ca-detail-layout>aside{min-width:0}.ca-detail-layout>aside{border-left:1px solid #e6edf5;padding-left:20px}
.ca-detail-section{margin:0 0 22px}.ca-detail-section h3{font-size:15px;margin:0 0 12px;line-height:1.5}
.ca-section-head{margin-bottom:10px;flex-wrap:wrap}.ca-section-head h3{margin:0}.ca-section-head small{font-size:12px;font-weight:400;color:#708197}
.ca-section-head button,.ca-detail-section button{font-size:12px;padding:5px 9px;min-height:28px}
.ca-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px 18px;padding:14px 16px;margin:0;background:#f7f9fc;border-radius:7px}
.ca-facts>div{min-width:0}.ca-facts dt{font-size:12px;color:#708197;line-height:1.5}.ca-facts dd{margin:4px 0 0;font-size:14px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}
.ca-detail-note{white-space:pre-wrap;font-size:13px;color:#62748a;margin:10px 0;line-height:1.6}
.ca-detail-more{position:relative;margin:0;align-self:stretch}
.ca-detail-more>summary{display:flex;align-items:center;justify-content:center;height:100%;min-height:32px;box-sizing:border-box;cursor:pointer;padding:6px 10px;border:1px solid #cbd9e7;border-radius:6px;font-size:13px;color:#31577b;list-style:none}
.ca-detail-more>summary::-webkit-details-marker{display:none}.ca-detail-more>summary:after{content:'⌄';margin-left:8px;font-size:11px;color:#708197}
.ca-detail-more>div{position:absolute;right:0;top:calc(100% + 5px);min-width:120px;padding:6px;background:#fff;box-shadow:0 5px 18px #16324f22;border:1px solid #e0e7ef;border-radius:7px;z-index:4}
.ca-detail-more>div button{width:100%;white-space:nowrap;border:0!important;text-align:left}
.ca-detail-more>button{position:absolute;right:0;top:calc(100% + 5px);min-width:120px;background:#fff!important;box-shadow:0 5px 18px #16324f22!important;z-index:4}
.ca-group:has(.ca-row-more[open]){overflow:visible}.ca-asset-more[open]{z-index:5}.ca-asset-more.ca-menu-up>div{top:auto;bottom:calc(100% + 5px)}
.ca-row-more{align-self:center;flex-shrink:0}.ca-row-more>summary{min-height:28px;height:auto;padding:4px 0;border:0;border-radius:2px;font-size:12px;line-height:1.4}.ca-row-more>summary:after{display:none}.ca-row-more>summary:hover{color:#155eb4;text-decoration:underline}
.ca-distribution-table .ca-row-more>div button{width:100%;padding:7px 10px;min-height:32px;text-align:left;border-radius:4px}
.ca-detail-controls{display:flex;align-items:end;gap:8px;margin:0 0 10px;flex-wrap:wrap}
.ca-detail-controls label{flex:1 1 150px}.ca-detail-controls label:last-child{flex:0 1 150px}.ca-detail-controls>input{flex:1 1 180px}.ca-detail-controls>select{flex:0 1 150px}
.ca-detail-controls input,.ca-detail-controls select{height:32px;font-size:12px}.ca-detail-results .ca-pagination{padding:9px 0}
.ca-point-list>div{padding:10px 0;border-bottom:1px solid #e8edf4;font-size:13px;line-height:1.5}
.ca-point-main{display:flex;align-items:center;justify-content:space-between;gap:12px}.ca-point-main span{min-width:0;overflow-wrap:anywhere}.ca-point-main button{flex-shrink:0}
.ca-point-history{font-size:12px;overflow-wrap:anywhere;margin-top:5px}.ca-point-history summary{color:#708197;cursor:pointer}.ca-point-history>div{padding:6px 10px;border-left:2px solid #dce3ec;margin:8px 0}.ca-point-history p{margin:4px 0}
.ca-activity{padding:11px 0;border-bottom:1px solid #e8edf4}.ca-activity-head{align-items:flex-start;font-size:13px}
.ca-activity-head span,.ca-activity-foot small{font-size:12px;color:#7a8b9d;line-height:1.5}.ca-activity-head span{flex-shrink:0}
.ca-activity p{font-size:13px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere;margin:6px 0}.ca-activity-foot{align-items:center}.ca-activity-foot button{flex-shrink:0}
.ca-activity.ca-superseded{color:#7a8b9d}.ca-activity.ca-superseded .ca-activity-head strong{font-weight:400}
.ca-related{padding:10px 0;border-bottom:1px solid #e8edf4;font-size:13px;overflow-wrap:anywhere;line-height:1.6}.ca-related:first-of-type{padding-top:0}
.ca-related>div{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:6px}.ca-related small{color:#7a8b9d;font-size:12px}
.ca-detail-section>details>summary{cursor:pointer;font-size:12px;color:#507090;margin:10px 0}
.ca-history.ca-detail-section{margin-top:20px}.ca-history.ca-detail-section summary{font-weight:500}
.ca-history>div{border-bottom:1px solid #e8edf4;padding:10px 0;font-size:12px;line-height:1.6;overflow-wrap:anywhere}.ca-history p{margin:5px 0}
.ca-record{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid #edf1f5;font-size:13px}
/* 同一条分布内按位置分配数量，日常作业按次记录。 */
.ca-allocation-heading{display:flex;align-items:baseline;gap:18px;flex-wrap:wrap}.ca-allocation-heading>span,.ca-section-note{font-size:12px;line-height:1.6;color:#708197}.ca-section-note{margin:6px 0}.ca-allocation-heading strong{color:#245873;font-weight:600}
.ca-detail-table-wrap{max-width:100%;overflow:auto}.ca-detail-table-wrap:has(.ca-asset-more[open]){overflow:visible}
.ca-detail-table{width:100%;table-layout:fixed;border-collapse:collapse!important;margin:0!important;font-size:13px}.ca-detail-table th,.ca-detail-table td{text-align:left;padding:9px 10px;border:0!important;border-bottom:1px solid #e5ebf2!important;vertical-align:top;line-height:1.55;overflow-wrap:anywhere;white-space:normal!important}.ca-detail-table th{font-size:12px;font-weight:400;background:#f7f9fc;color:#708197}.ca-detail-table small{display:block;font-size:12px;color:#708197;margin-top:3px}.ca-detail-table strong{font-weight:600}
.ca-allocation-table th:nth-child(1){width:22%}.ca-allocation-table th:nth-child(2){width:38%}.ca-allocation-table th:nth-child(3){width:18%}.ca-allocation-table th:nth-child(4){width:22%}
.ca-optional-points>summary{font-size:14px;font-weight:500;color:#345672;cursor:pointer;line-height:1.6}.ca-optional-points[open]>summary{margin-bottom:10px}.ca-optional-points .ca-section-head{margin-bottom:8px}.ca-optional-points .ca-section-head>.ca-section-note{margin:0}.ca-detail-page .ca-optional-points .ca-detail-controls{max-width:800px}
.ca-work-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px;flex-wrap:wrap}.ca-work-toolbar>.ca-section-note{margin:0}.ca-work-toolbar>label{display:flex;align-items:center;gap:8px;white-space:nowrap;font-size:12px;color:#708197;margin:0}.ca-work-toolbar select{font-size:12px;width:130px;height:31px;margin:0;padding:4px 8px;border:1px solid #cbd9e7;border-radius:6px;background:#fff;color:#31577b}
.ca-work-table th:nth-child(1){width:12%}.ca-work-table th:nth-child(2){width:14%}.ca-work-table th:nth-child(3){width:21%}.ca-work-table th:nth-child(4){width:11%}.ca-work-table th:nth-child(5){width:8%}.ca-work-table th:nth-child(6){width:25%}.ca-work-table th:nth-child(7){width:9%}.ca-work-table td:last-child{white-space:nowrap!important}.ca-work-table td:last-child button{font-size:12px;padding:4px 7px;white-space:nowrap}.ca-work-table .ca-work-muted{color:#7b8da0}.ca-work-target,.ca-work-note{white-space:pre-wrap;overflow-wrap:anywhere}.ca-work-history{font-size:12px;margin:5px 0 0}.ca-work-history>summary{cursor:pointer;color:#708197}.ca-work-history>div{padding:8px 0;border-top:1px solid #e5ebf2}.ca-work-history p{margin:4px 0}.ca-work-table .ca-detail-more{display:inline-block}
.ca-dialog:has([data-ca-form="allocations"]){max-width:850px}.ca-allocation-edit-head,.ca-allocation-edit-row{display:grid;grid-template-columns:minmax(110px,1fr) minmax(150px,1.5fr) 110px 58px;align-items:center;gap:10px}.ca-allocation-edit-head{font-size:12px;color:#708197;margin:16px 0 7px}.ca-allocation-edit-row{margin-bottom:8px}.ca-allocation-edit-row input{width:100%;box-sizing:border-box;min-width:0;margin:0;font-size:13px;height:35px;padding:6px 9px;border:1px solid #cbd9e7;border-radius:6px}.ca-allocation-edit-row button{font-size:12px;padding:5px 8px;min-height:30px!important}.ca-allocation-footer{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:12px 0 20px;font-size:13px;color:#31577b}.ca-allocation-footer button{font-size:12px;padding:6px 10px}
.ca-dialog:has([data-ca-form="work-record"]){max-width:1050px}.ca-form.ca-work-form{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.ca-work-form>.ca-work-location{grid-column:span 2}.ca-work-form>.ca-section-note{margin:0}.ca-work-form label>small{font-size:12px;font-weight:400;color:#708197;line-height:1.5}.ca-work-point-head{display:flex;align-items:end;justify-content:space-between;gap:15px;margin-bottom:8px}.ca-work-point-head>label{max-width:360px;flex:1}.ca-work-point-head>span{font-size:12px;color:#708197;white-space:nowrap;padding-bottom:9px}.ca-work-point-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;max-height:230px;overflow:auto}.ca-work-point-choices>label{display:flex;align-items:flex-start;flex-direction:row;gap:8px;padding:8px 10px;background:#f7f9fc;border-radius:5px;margin:0;min-width:0}.ca-work-point-choices input[type="checkbox"]{flex:none;width:16px!important;height:16px!important;padding:0!important;margin:2px 0 0!important;min-height:0!important}.ca-work-point-choices span{min-width:0;overflow-wrap:anywhere}.ca-work-point-choices strong{font-size:13px;font-weight:500}.ca-work-point-choices small{display:block;font-size:12px;color:#708197;margin-top:3px}.ca-work-point-choices>p{grid-column:1/-1}
@media(max-width:1100px){.ca-work-table{min-width:760px!important}.ca-work-point-choices{grid-template-columns:repeat(2,minmax(0,1fr))}.ca-form.ca-work-form{grid-template-columns:repeat(2,minmax(0,1fr))}}
.ca-form.ca-work-form.ca-work-allocation-mode>.ca-work-location{grid-column:auto}
.ca-detail-page .ca-allocation-search{max-width:300px}.ca-detail-page .ca-allocation-search>label{flex:1 1 auto}
.ca-work-expand{margin:0;font-size:13px}.ca-work-expand>summary{cursor:pointer;list-style:none}.ca-work-expand>summary::-webkit-details-marker{display:none}.ca-work-preview{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;white-space:pre-wrap;overflow-wrap:anywhere}.ca-work-expand-label,.ca-work-collapse-label{font-size:12px;color:#426e9b;line-height:1.5}.ca-work-collapse-label{display:none}.ca-work-expand[open]>summary>.ca-work-preview,.ca-work-expand[open] .ca-work-expand-label{display:none}.ca-work-expand[open] .ca-work-collapse-label{display:inline}.ca-work-full-text{white-space:pre-wrap;overflow-wrap:anywhere;margin-top:5px}
@media(max-width:600px){.ca-allocation-edit-head,.ca-allocation-edit-row{grid-template-columns:minmax(65px,1fr) minmax(90px,1.3fr) 65px 45px;gap:6px}.ca-allocation-edit-row input{padding:5px;font-size:12px}.ca-allocation-edit-row button{padding:4px;font-size:11px}.ca-work-point-choices{grid-template-columns:minmax(0,1fr)}.ca-allocation-heading{gap:8px}.ca-allocation-table{min-width:450px!important}.ca-allocation-footer{flex-wrap:wrap}}
.ca-name-field{position:relative;min-width:0;align-self:start}
.ca-work-owner-field{position:relative;min-width:0;align-self:start}
.ca-work-owner-field>.ca-name-suggestions{top:calc(100% + 3px);min-width:0}
.ca-name-label{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:5px;min-height:18px}
.ca-name-label>label{margin:0!important}.ca-name-label>button{padding:0!important;border:0!important;background:transparent!important;color:#17628c!important;font-size:12px!important;line-height:18px!important;min-height:0;box-shadow:none!important}
.ca-name-field>input:not([type=hidden]){width:100%;box-sizing:border-box}.ca-name-feedback{display:block;font-size:11px;color:#547887;line-height:1.5;margin-top:3px}.ca-name-feedback:empty{display:none}
.ca-name-suggestions{position:absolute;z-index:12;top:58px;left:0;right:0;min-width:220px;max-height:320px;overflow:auto;border:1px solid #bfcfdf;border-radius:7px;background:#fff;box-shadow:0 6px 20px #19385220;padding:4px}
.ca-name-suggestions[hidden]{display:none}.ca-name-suggestions>[role=option]{display:block;width:100%;text-align:left;border:0!important;background:transparent!important;color:#244b6a!important;padding:8px!important;border-radius:4px;box-shadow:none!important;line-height:1.4;white-space:normal}
.ca-name-suggestions>[role=option]:hover,.ca-name-suggestions>[role=option][aria-selected=true]{background:#eaf5f5!important}.ca-name-suggestions strong{font-size:13px;font-weight:500;overflow-wrap:anywhere}.ca-name-suggestions small{display:block;color:#7a889a;font-size:11px;margin-top:2px}
.ca-name-suggestion-note{padding:8px;font-size:11px;color:#708197;border-top:1px solid #edf1f5;line-height:1.6}.ca-name-suggestion-note button{font-size:11px!important;background:none!important;color:#17628c!important;padding:0!important;border:0!important;box-shadow:none!important}
.ca-name-add,.ca-batch-name{padding:12px;background:#f6f9fc;border:1px solid #d6e3ec;border-radius:7px;min-width:0}.ca-name-add-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px;font-size:13px}.ca-name-add-heading button{padding:3px 8px!important;font-size:12px!important}
.ca-name-add-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:10px}.ca-name-add label{display:flex;flex-direction:column;gap:5px;font-size:12px}.ca-name-add input,.ca-name-add select{width:100%;min-width:0;box-sizing:border-box}.ca-name-add>.ca-actions{justify-content:flex-start}.ca-name-add .muted{font-size:12px}.ca-name-add [role=status]{margin:6px 0 0;font-size:12px}.ca-name-add [role=status]:empty{display:none}
.ca-batch-name>.ca-name-field{max-width:480px;margin:10px 0}.ca-batch-name>.ca-name-add{margin:10px 0}.ca-batch-name>strong{font-size:13px}.ca-batch-name>p{margin:5px 0;font-size:12px}
.ca-name-unresolved{padding:10px;background:#fff8ed;border:1px solid #efd7b2;border-radius:6px;font-size:12px;margin-bottom:10px}.ca-name-unresolved>div{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:8px}.ca-name-unresolved span{overflow-wrap:anywhere}.ca-name-unresolved button{flex-shrink:0;font-size:12px!important;padding:4px 8px!important}.ca-name-unmatched{font-size:11px;color:#9b5419;background:#fff0da;border-radius:4px;padding:2px 5px;margin-left:6px}
@media(max-width:768px){.ca-name-add-fields{grid-template-columns:minmax(0,1fr)}.ca-name-suggestions{min-width:0;max-height:280px}.ca-name-add .ca-actions{flex-wrap:wrap}.ca-name-field{grid-column:1/-1}.ca-name-add .muted{width:100%}}
@media(min-width:1200px){.ca-form,.ca-extra-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(min-width:769px){
 .ca-filter-toolbar{display:flex;align-items:flex-end;flex-wrap:wrap;gap:10px;padding-bottom:14px;border-bottom:1px solid #e7edf4}
 .ca-filter-toolbar .ca-filters,.ca-filter-toolbar .ca-filter-options{display:contents}
 .ca-filter-toolbar .ca-filters>label,.ca-filter-toolbar .ca-filter-options>label{flex:0 0 125px;min-width:0}
 .ca-filter-toolbar .ca-filters>label:first-child{flex:1 1 220px;max-width:420px}
 .ca-workspace:not(.ca-project-page) .ca-filter-toolbar .ca-filters>label:nth-child(2){flex:1 1 170px;max-width:220px}
 .ca-workspace:not(.ca-project-page) .ca-filter-toolbar .ca-filters>label:nth-child(3){flex:1 1 190px;max-width:260px}
 .ca-filter-toolbar .ca-filter-options>button{flex:none;margin-left:0;min-height:35px;padding:6px 10px;white-space:nowrap}
 .ca-form[data-ca-form="batch"]>.ca-import-actions{grid-column:2/-1;align-self:end;min-height:35px;margin:0;flex-wrap:wrap}
}
@media(min-width:769px) and (max-width:1399px){
 .ca-distribution-table .ca-brand-model{grid-template-columns:minmax(0,1fr);row-gap:4px}
 .ca-distribution-table .ca-brand-model>.ca-info-label{display:none}
}
@media(min-width:769px) and (max-width:1199px){
 .ca-filters{grid-template-columns:minmax(0,1.3fr) minmax(0,1fr)}
 .ca-table th,.ca-table td{padding:9px 8px}.ca-table th:nth-child(1){width:27%}.ca-table th:nth-child(6){width:17%}
 .ca-summary-table th:nth-child(1){width:22%}.ca-summary-table th:nth-child(2){width:21%}.ca-summary-table th:nth-child(3){width:13%}.ca-summary-table th:nth-child(4){width:24%}.ca-summary-table th:nth-child(5){width:9%}.ca-summary-table th:nth-child(6){width:11%}
 .ca-distribution-table th:nth-child(1){width:9%}.ca-distribution-table th:nth-child(2){width:12%}.ca-distribution-table th:nth-child(3){width:10%}.ca-distribution-table th:nth-child(4){width:10%}.ca-distribution-table th:nth-child(6){width:9%}.ca-distribution-table th:nth-child(7){width:14%}.ca-distribution-table th:nth-child(9){width:13%}
 .ca-distribution-table .ca-date-fact>.ca-info-label{display:none}.ca-distribution-table .ca-point-count{font-size:11px}
 .ca-detail-layout{grid-template-columns:minmax(0,1fr);gap:0}.ca-detail-layout>aside{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;border-left:0;padding-left:0;border-top:1px solid #e6edf5;padding-top:18px}
 .ca-detail-layout>aside .ca-history{margin-top:0}.ca-detail-head{flex-wrap:wrap}
}
@media(max-width:768px){
 .ca-workspace,.ca-group,.ca-modal,.ca-dialog,.ca-dialog-body{min-width:0;max-width:100%;box-sizing:border-box}
 .ca-workspace{padding:14px;overflow:hidden}.ca-header{margin-bottom:14px;align-items:flex-start}.ca-header h2{font-size:21px}
 .ca-header .ca-actions{width:100%;gap:6px}.ca-header .ca-actions button{flex:1 1 auto;padding:6px 8px;font-size:12px}
 .ca-filters{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.ca-filters label:first-child{grid-column:1/-1}.ca-filters label:nth-child(3){grid-column:auto}
 .ca-filter-options{gap:8px}.ca-filter-options label{min-width:0;flex:1 1 42%}.ca-filter-options button{margin-left:auto}
 .ca-list-summary{align-items:flex-start}.ca-summary{font-size:12px}.ca-list-tools{margin-left:auto}
 .ca-group-head{padding:10px 12px}.ca-group-head>div{flex:1}.ca-group-head h3{font-size:14px}.ca-group-head button{flex-shrink:0}
 .ca-catalog-row .ca-group-head{flex-wrap:wrap;gap:10px;padding:12px}.ca-catalog-row .ca-group-head>div:first-child{flex-basis:100%}.ca-catalog-count{font-size:12px}.ca-catalog-row .ca-group-head>button{margin-left:auto}
 .ca-project-page .ca-filters{grid-template-columns:minmax(0,1fr) minmax(110px,.6fr)}.ca-project-page .ca-filters label:first-child{grid-column:auto}
 .ca-date-filters,.ca-form,.ca-extra-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .ca-form .ca-project-picker{grid-column:1/-1}.ca-form>*{min-width:0}.ca-wide{grid-column:1/-1!important}
 .ca-form[data-ca-form="batch"]>.ca-import-actions{grid-column:1/-1}
 .ca-form>.ca-actions>.muted{width:100%;font-size:12px}.ca-form>.ca-actions{justify-content:flex-start}
 [data-ca-create]:not(:empty){padding:12px;margin-bottom:14px}
 .ca-group [data-ca-results]{width:100%;max-width:100%;overflow:visible}
 .ca-table{width:100%!important;min-width:0!important;display:block}.ca-table thead{display:none}.ca-table tbody{display:block}
 .ca-table tr[data-ca-row]{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);border-bottom:1px solid #e2e9f1;padding:12px;gap:8px}
 .ca-table tr[data-ca-row]>td{display:block;border:0!important;padding:0!important;min-width:0;width:auto!important}
 .ca-table tr[data-ca-row]>td:first-child{grid-column:1/-1}.ca-table tr[data-ca-row]>td:nth-child(5){display:flex;align-items:center}.ca-table tr[data-ca-row]>td:last-child{display:flex;justify-content:flex-end;align-items:center}
 .ca-table td[data-label]:before{content:attr(data-label)'：';font-size:12px;color:#708197}.ca-table td:nth-child(5):before{display:none}
 .ca-summary-table tr[data-ca-summary-row]{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);border-bottom:1px solid #e2e9f1;padding:12px;gap:9px}
 .ca-summary-table tr[data-ca-summary-row]>td{display:block;border:0!important;padding:0!important;width:auto!important;min-width:0}.ca-summary-table tr[data-ca-summary-row]>td:first-child{grid-column:1/-1}.ca-summary-table tr[data-ca-summary-row]>td:last-child{justify-self:end;align-self:center}
 .ca-summary-table td:nth-child(5):before{display:inline}.ca-summary-table td:last-child:before{display:none}.ca-summary-table .ca-quantity{font-size:16px}.ca-distribution-table tr[data-ca-row]>td:first-child{font-size:14px}
 .ca-distribution-table tr[data-ca-row]>td:nth-child(5){display:block}.ca-distribution-table td:nth-child(5):before{display:inline}.ca-distribution-table .ca-distribution-note-row{display:block;padding:0 12px 12px;border-bottom:1px solid #e2e9f1}.ca-distribution-table .ca-distribution-note-row td{display:block;padding:0!important}.ca-distribution-table tr.ca-has-notes{border-bottom:0;padding-bottom:6px}
 .ca-row-actions{flex-wrap:nowrap}.ca-pagination{flex-wrap:wrap;padding:9px 12px;gap:8px}.ca-pagination>div{margin-left:auto}
 .ca-modal{align-items:flex-end;padding:8px}.ca-dialog{width:100%;max-height:calc(100dvh - 16px);border-radius:10px 10px 0 0;padding:0 14px 16px}.ca-dialog>header{padding:12px 0}
 .ca-detail-head{flex-wrap:wrap}.ca-detail-head h2{font-size:20px}.ca-detail-head .ca-actions{flex-wrap:wrap}.ca-detail-summary{flex-wrap:wrap;gap:10px;margin-bottom:16px}
 .ca-detail-layout{display:block}.ca-detail-layout>aside{display:block;border-left:0;padding-left:0;border-top:1px solid #e6edf5;padding-top:16px}
 .ca-facts{grid-template-columns:repeat(2,minmax(0,1fr));padding:12px;gap:12px}.ca-facts dd{font-size:13px}
 .ca-detail-controls label{flex-basis:130px}.ca-detail-controls label:last-child{flex-basis:125px}
 .ca-activity-head,.ca-activity-foot{flex-wrap:wrap;gap:6px}.ca-activity-foot button{margin-left:auto}
 .ca-record{align-items:flex-start;flex-direction:column}.ca-preview-list{max-height:220px}
}

/* Unified one-entry checks, repairs and periodic services. */
.ca-dialog:has([data-ca-form="work-record"]){max-width:1140px}.ca-work-lifecycle{min-width:0}.ca-work-lifecycle[hidden],[data-ca-work-result][hidden],[data-ca-work-document][hidden],[data-ca-work-legacy-target][hidden],.ca-work-scope-add[hidden],.ca-work-scope-main>[hidden]{display:none!important}.ca-work-scope-add{display:flex;align-items:end;gap:10px;margin-bottom:10px}.ca-work-scope-add>label{flex:1;min-width:0}.ca-work-scope-add button{flex:none;font-size:12px;min-height:35px}.ca-work-scope-row{padding:10px 12px;border:1px solid #dce5ef;border-radius:6px;margin-bottom:8px;background:#f9fbfd}.ca-work-scope-main{display:grid;grid-template-columns:minmax(150px,1fr) 130px 175px auto;gap:10px;align-items:end}.ca-work-scope-main>div{min-width:0;align-self:center}.ca-work-scope-main strong{font-size:13px;display:block;overflow-wrap:anywhere}.ca-work-scope-main small{display:block;color:#71859a;font-size:11px;line-height:1.5;margin-top:3px}.ca-work-scope-main button{font-size:12px;padding:5px 8px;min-height:32px}.ca-work-scope-row label{font-size:12px}.ca-work-scope-row input{height:32px;font-size:12px;margin:0}.ca-work-scope-note{margin-top:8px!important}.ca-work-scope-points{margin-top:8px}.ca-work-scope-points summary{font-size:12px;color:#456d8e;cursor:pointer}.ca-work-scope-points .ca-work-point-choices{margin-top:8px;max-height:170px}.ca-work-effect{display:block;font-size:11px;color:#71859a;margin-top:7px;line-height:1.6}.ca-work-lifecycle>.ca-section-note{margin:6px 0 0}.ca-work-form [data-ca-work-limit][hidden],.ca-work-form .ca-work-location[hidden],.ca-work-form [data-ca-work-target][hidden],.ca-work-form [data-ca-work-count][hidden]{display:none!important}.ca-work-form input[readonly]{background:#f2f5f8;color:#71859a}
@media(max-width:768px){.ca-work-scope-main{grid-template-columns:minmax(0,1fr) 95px}.ca-work-scope-main>[data-ca-work-next]{grid-column:1/2}.ca-work-scope-main>button{justify-self:end}.ca-work-scope-add{flex-wrap:wrap}.ca-work-scope-add>label{flex-basis:100%}.ca-work-scope-row{padding:9px}.ca-form.ca-work-form{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Creation keeps supporting facts compact; dates live with reminder settings. */
.ca-extra-create textarea[name="notes"]{min-height:35px;height:35px;resize:vertical;line-height:1.5}
@media(min-width:1200px){.ca-extra-create>.ca-extra-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.ca-extra-create>.ca-extra-grid>label.ca-wide{grid-column:span 2}}

/* Several specifications share one creation form; existing asset edits stay unchanged. */
.ca-extra-spec-create h4{display:flex;align-items:baseline;gap:10px}.ca-extra-spec-create h4 small{font-size:11px;font-weight:400;color:#77899b}.ca-specs{min-width:0;border:1px solid #dce5ef;border-radius:6px;overflow:hidden}.ca-spec-heading{display:flex;align-items:center;gap:12px;padding:9px 12px;background:#f6f9fc}.ca-spec-heading strong{font-size:13px;font-weight:500}.ca-spec-heading>span{font-size:12px;color:#5d758a}.ca-spec-heading>button{margin-left:auto;padding:4px 9px;font-size:12px;min-height:29px}.ca-spec-head,.ca-spec-row{display:grid;grid-template-columns:minmax(135px,1.15fr) 90px minmax(130px,1fr) minmax(150px,1.25fr) 176px;gap:10px;align-items:center;padding:8px 12px}.ca-spec-head{font-size:11px;color:#71859a;border-bottom:1px solid #e6edf4}.ca-spec-row+.ca-spec-row{border-top:1px solid #e6edf4}.ca-spec-row>label{min-width:0;margin:0}.ca-spec-row>label>span{display:none}.ca-spec-row input{height:33px!important;font-size:12px!important;margin:0!important;min-width:0;width:100%}.ca-spec-row>small{font-size:11px;color:#71859a;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;min-width:0}.ca-spec-actions{display:flex;gap:6px;align-items:center;justify-content:flex-end}.ca-spec-actions button{padding:4px 7px;min-height:29px;font-size:11px;white-space:nowrap}.ca-spec-actions button:disabled{opacity:.45;cursor:default}.ca-dialog:has([data-ca-form="spec-settings"]){max-width:1120px}.ca-spec-settings>.ca-spec-custom-toggle{display:flex;flex-direction:row;align-items:center;align-self:end;gap:7px;height:35px;grid-column:span 2}.ca-spec-custom-toggle>input{width:auto;height:auto;margin:0}.ca-spec-settings>[hidden]{display:none!important}
@media(max-width:1199px) and (min-width:769px){.ca-spec-head,.ca-spec-row{grid-template-columns:minmax(110px,1fr) 75px minmax(100px,1fr) minmax(115px,1fr) 160px;gap:8px;padding:8px 10px}.ca-spec-actions{gap:4px}.ca-spec-actions button{padding:4px 5px;font-size:11px}}
@media(max-width:768px){.ca-spec-heading{padding:9px;gap:8px;flex-wrap:wrap}.ca-spec-heading>span{font-size:11px}.ca-spec-head{display:none}.ca-spec-row{grid-template-columns:minmax(0,1fr) 90px;gap:8px;padding:10px}.ca-spec-row>label>span{display:block;font-size:11px;color:#71859a;margin-bottom:4px}.ca-spec-row>label:nth-child(3){grid-column:1/2}.ca-spec-row>small{grid-column:1/-1;grid-row:3}.ca-spec-actions{grid-column:2;grid-row:2;align-self:end;flex-direction:column;gap:4px}.ca-spec-actions button{width:100%}.ca-extra-spec-create h4{flex-wrap:wrap;gap:4px}.ca-spec-settings>.ca-spec-custom-toggle{grid-column:1/-1}.ca-spec-settings>.ca-actions{flex-wrap:wrap}}

/* One continuous entry block; manufacturing dates belong to each detail row. */
.ca-workspace [data-ca-create]:has(.ca-entry-create){padding:10px 12px;margin-bottom:14px}
.ca-form.ca-entry-create{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px 12px;padding:0}
.ca-entry-create>.ca-create-heading{margin:0;gap:8px}
.ca-entry-create>.ca-create-heading h3{font-size:15px}
.ca-entry-create>.ca-create-heading button{padding:4px 8px;min-height:28px}
.ca-entry-create label,.ca-entry-create>.ca-project-picker{gap:3px}
.ca-entry-create .ca-name-label{margin-bottom:3px}
.ca-entry-create input,.ca-entry-create select{height:32px;min-height:32px}
.ca-entry-create>.ca-entry-notes textarea{height:32px;min-height:32px;resize:vertical;line-height:1.4;padding:5px 9px}
.ca-entry-create>.ca-specs{border:0;border-top:1px solid #dce5ef;border-bottom:1px solid #dce5ef;border-radius:0;padding:6px 0 3px;overflow:visible}
.ca-entry-create .ca-spec-heading{padding:0 0 5px;background:transparent;gap:10px}
.ca-entry-create .ca-spec-heading strong{font-size:12px;font-weight:600}
.ca-entry-create .ca-spec-heading>span{font-size:12px}
.ca-entry-create .ca-spec-heading>button{min-height:27px;padding:3px 8px}
.ca-entry-create .ca-spec-head,.ca-entry-create .ca-spec-row{grid-template-columns:minmax(110px,1.2fr) 64px minmax(110px,1fr) 140px minmax(115px,1fr) 148px;gap:8px;padding:4px 6px}
.ca-entry-create .ca-spec-head{font-size:11px;background:#f0f4f8;padding-top:5px;padding-bottom:5px}
.ca-entry-create .ca-spec-row{min-height:40px;box-sizing:border-box}
.ca-entry-create .ca-spec-row input{height:32px!important;min-height:32px!important;padding:5px 8px}
.ca-entry-create .ca-spec-actions{gap:4px}
.ca-entry-create .ca-spec-actions button{padding:3px 6px;min-height:27px;font-size:11px}
.ca-entry-create>.cal-entry-selector{border:0;border-radius:0;padding:0;background:transparent}
.ca-entry-create .cal-entry-heading{margin-bottom:5px;gap:10px}
.ca-entry-create .cal-entry-heading>strong{font-size:12px;font-weight:600}
.ca-entry-create .cal-entry-controls input,.ca-entry-create .cal-entry-controls select{height:32px!important;min-height:32px!important}
.ca-entry-create .cal-rule-settings{min-height:32px}
.ca-entry-create .cal-entry-hint{margin:4px 0 0}
.ca-entry-create>.ca-actions{padding-top:0;gap:7px;justify-content:flex-start}
.ca-entry-create>.ca-actions button{min-height:31px;padding:5px 10px}
.ca-entry-create>.ca-actions>.muted{font-size:11px;margin:0}
.cal-entry-without-manufacture .cal-entry-controls{grid-template-columns:minmax(125px,.8fr) minmax(400px,4fr) minmax(110px,.8fr)}
@media(min-width:769px){.cal-entry-without-manufacture .cal-entry-panels,.cal-entry-without-manufacture .cal-entry-remind{grid-column:auto;grid-row:auto}}
@media(max-width:1100px) and (min-width:769px){.ca-form.ca-entry-create{grid-template-columns:repeat(2,minmax(0,1fr))}.ca-entry-create .ca-spec-table{overflow-x:auto}.ca-entry-create .ca-spec-head,.ca-entry-create .ca-spec-row{min-width:765px}.cal-entry-without-manufacture .cal-entry-controls{grid-template-columns:minmax(125px,1fr) minmax(125px,1fr)}.cal-entry-without-manufacture .cal-entry-panels{grid-column:1/-1;grid-row:2}.cal-entry-without-manufacture .cal-entry-remind{grid-column:2;grid-row:1}}
@media(max-width:768px){.ca-form.ca-entry-create{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.ca-entry-create .ca-spec-row{grid-template-columns:minmax(0,1fr) minmax(90px,.65fr);gap:6px;padding:7px 0}.ca-entry-create .ca-spec-head{display:none}.ca-entry-create .ca-spec-row>label:nth-child(3){grid-column:1}.ca-entry-create .ca-spec-row>label:nth-child(4){grid-column:2}.ca-entry-create .ca-spec-row>small{grid-column:1/-1;grid-row:3}.ca-entry-create .ca-spec-actions{grid-column:1/-1;grid-row:4;flex-direction:row}.ca-entry-create .ca-spec-actions button{width:auto}.ca-entry-create>.ca-actions>.muted{width:100%}.cal-entry-without-manufacture .cal-entry-controls{grid-template-columns:repeat(2,minmax(0,1fr))}.cal-entry-without-manufacture .cal-entry-panels{grid-column:1/-1;grid-row:2}.cal-entry-without-manufacture .cal-entry-remind{grid-column:2;grid-row:1;max-width:none}}

/* The distribution editor includes its existing dates and reminder settings. */
.ca-dialog:has(.ca-entry-edit){width:min(1160px,96vw);max-width:1160px}
.ca-form.ca-entry-edit{grid-template-columns:repeat(4,minmax(0,1fr));gap:9px 12px;padding-top:5px}
.ca-entry-edit label,.ca-entry-edit>.ca-project-picker{gap:4px}
.ca-entry-edit input,.ca-entry-edit select{height:34px;min-height:34px}
.ca-entry-edit .ca-extra-fields{padding-top:7px}
.ca-entry-edit .ca-extra-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px 12px;margin-top:5px}
.ca-entry-edit .ca-extra-grid>label.ca-wide{grid-column:span 2}
.ca-entry-edit textarea[name="notes"]{min-height:34px;height:34px;resize:vertical;padding:6px 9px;line-height:1.4}
.ca-edit-lifecycle{min-width:0;border-top:1px solid #e2e9f1;padding-top:8px}
.ca-edit-lifecycle-toolbar{display:flex;align-items:center;gap:8px 14px;flex-wrap:wrap;margin-bottom:7px}
.ca-edit-lifecycle-toolbar>strong{font-size:13px;font-weight:600}
.ca-edit-lifecycle-toolbar>label{display:flex;flex-direction:row;align-items:center;gap:8px;flex:0 1 580px}
.ca-edit-lifecycle-toolbar>label>select{flex:1;min-width:160px}
.ca-edit-lifecycle-toolbar>span,.ca-edit-lifecycle-toolbar>small{font-size:12px;color:#708197}
.ca-edit-lifecycle .cal-entry-selector{padding:8px 10px}
.ca-edit-lifecycle .cal-entry-heading{margin-bottom:6px;gap:10px}
.ca-edit-lifecycle .cal-entry-hint{margin-top:5px}
.ca-edit-lifecycle>.ca-section-note{margin:5px 0 0;font-size:11px}
.ca-entry-edit>.ca-actions{padding-top:1px}
@media(min-width:1200px){.ca-edit-lifecycle .cal-entry-controls{grid-template-columns:140px 130px minmax(410px,1fr) 115px;gap:8px}.ca-edit-lifecycle .cal-entry-kind{grid-template-columns:140px 150px minmax(140px,1fr);gap:8px}.ca-edit-lifecycle .cal-entry-kind[data-cal-kind-panel="retirement"]{grid-template-columns:160px minmax(220px,1fr)}}
@media(max-width:768px){.ca-dialog:has(.ca-entry-edit){width:100%;max-width:100%}.ca-form.ca-entry-edit,.ca-entry-edit .ca-extra-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ca-edit-lifecycle-toolbar>label{flex-basis:100%;align-items:stretch;flex-direction:column}.ca-edit-lifecycle-toolbar>label>select{min-width:0}.ca-entry-edit>.ca-actions{flex-wrap:wrap}}

/* Manufacturing and repair dates are fixed equipment facts. */
.ca-entry-create .ca-spec-head,.ca-entry-create .ca-spec-row{grid-template-columns:minmax(95px,1.2fr) 55px minmax(95px,.85fr) 130px 130px minmax(85px,.85fr) 140px;gap:7px}
.cal-entry-fixed-repair .cal-entry-controls{grid-template-columns:140px 140px 125px minmax(330px,1fr) 110px;gap:8px}
.cal-entry-kind[data-cal-kind-panel="maintenance"]{grid-template-columns:minmax(130px,1fr) minmax(190px,2fr)}
.cal-entry-fixed-repair .cal-entry-kind[data-cal-kind-panel="inspection"]{grid-template-columns:130px minmax(130px,1fr) minmax(150px,1.2fr);gap:8px}
.ca-edit-lifecycle .cal-entry-fixed-repair .cal-entry-controls{grid-template-columns:140px 140px 125px minmax(340px,1fr) 110px}
.ca-edit-lifecycle .cal-entry-kind[data-cal-kind-panel="maintenance"]{grid-template-columns:150px minmax(185px,1fr)}
.ca-edit-lifecycle .cal-entry-fixed-repair .cal-entry-kind[data-cal-kind-panel="inspection"]{grid-template-columns:130px 130px minmax(150px,1fr)}
@media(min-width:1200px){.cal-entry-fixed-repair .cal-entry-panels,.cal-entry-fixed-repair .cal-entry-remind{grid-column:auto;grid-row:auto}.cal-entry-fixed-repair:has([data-cal-kind-panel="inspection"]:not([hidden])) .cal-entry-controls{grid-template-columns:130px 130px 125px minmax(420px,1fr) 105px}}
@media(max-width:1199px) and (min-width:769px){.cal-entry-fixed-repair .cal-entry-controls,.ca-edit-lifecycle .cal-entry-fixed-repair .cal-entry-controls{grid-template-columns:repeat(3,minmax(130px,1fr)) minmax(110px,.8fr)}.cal-entry-fixed-repair .cal-entry-panels{grid-column:1/-1;grid-row:2}.cal-entry-fixed-repair .cal-entry-remind{grid-column:4;grid-row:1}.cal-entry-fixed-repair .cal-entry-kind[data-cal-kind-panel="inspection"],.ca-edit-lifecycle .cal-entry-fixed-repair .cal-entry-kind[data-cal-kind-panel="inspection"]{grid-template-columns:140px 160px minmax(180px,1fr)}}
@media(max-width:1100px) and (min-width:769px){.ca-entry-create .ca-spec-head,.ca-entry-create .ca-spec-row{min-width:850px}}
@media(max-width:768px){.ca-entry-create .ca-spec-row{grid-template-columns:minmax(0,1fr) minmax(90px,.65fr);gap:6px}.ca-entry-create .ca-spec-row>label:nth-child(5){grid-column:1;grid-row:3}.ca-entry-create .ca-spec-row>small{grid-column:2;grid-row:3;align-self:end;padding-bottom:8px}.cal-entry-fixed-repair .cal-entry-controls,.ca-edit-lifecycle .cal-entry-fixed-repair .cal-entry-controls{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.cal-entry-fixed-repair .cal-entry-remind{grid-column:2;grid-row:2;max-width:none}.cal-entry-fixed-repair .cal-entry-panels{grid-column:1/-1;grid-row:3}.cal-entry-fixed-repair .cal-entry-kind[data-cal-kind-panel="inspection"],.ca-edit-lifecycle .cal-entry-fixed-repair .cal-entry-kind[data-cal-kind-panel="inspection"],.ca-edit-lifecycle .cal-entry-kind[data-cal-kind-panel="maintenance"]{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Clear, aligned creation fields; existing detail and edit screens keep their layout. */
.ca-workspace [data-ca-create]:has(.ca-entry-create){padding:12px;background:#f8fafc}
.ca-form.ca-entry-create{gap:10px 12px}
.ca-entry-create>.ca-create-heading h3{font-size:17px}
.ca-entry-create label,.ca-entry-create .ca-name-label>label{font-size:13px;line-height:19px;color:#40566e;gap:4px}
.ca-entry-create input,.ca-entry-create select,.ca-entry-create textarea,.ca-entry-create>.ca-entry-notes textarea{height:35px;min-height:35px;font-size:14px;border-radius:4px}
.ca-entry-create button.secondary{border-radius:4px;font-size:13px;min-height:32px;padding:5px 10px}
.ca-entry-create .ca-name-label{min-height:19px;margin-bottom:4px}
.ca-entry-create .ca-name-label>button{font-size:13px!important;min-height:19px!important;line-height:19px!important}
.ca-entry-create .ca-name-feedback{font-size:13px}
.ca-entry-create>.ca-specs{border:0;padding:0;overflow:visible}
.ca-entry-create .ca-spec-heading{padding:0 0 7px;gap:12px}
.ca-entry-create .ca-spec-heading strong,.ca-entry-create .cal-entry-heading>strong{font-size:15px;font-weight:600}
.ca-entry-create .ca-spec-heading>span{font-size:13px;color:#63748a}
.ca-entry-create .ca-spec-heading>button{border-color:#8aaed2;color:#175fa7;background:#f0f6ff;font-weight:500}
.ca-entry-create .ca-spec-table{border:1px solid #d5dfeb;border-radius:5px;background:#fff;overflow:auto}
.ca-entry-create .ca-spec-head,.ca-entry-create .ca-spec-row{grid-template-columns:minmax(150px,1.4fr) 72px minmax(125px,1fr) minmax(145px,.8fr) minmax(145px,.8fr) 172px;gap:10px;padding:6px 10px}
.ca-entry-create .ca-spec-head{font-size:13px;color:#435c75;background:#eaf0f7;padding-top:8px;padding-bottom:8px}
.ca-entry-create .ca-spec-row{min-height:47px}
.ca-entry-create .ca-spec-row input{font-size:14px!important;height:35px!important;min-height:35px!important;border-radius:4px;padding:6px 8px}
.ca-entry-create .ca-spec-actions{gap:7px;justify-content:flex-start}
.ca-entry-create .ca-spec-actions button{font-size:13px;min-height:33px;padding:5px 9px;border-radius:4px}
.ca-entry-create .ca-spec-actions [data-ca-action="remove-spec"]{border-color:transparent;color:#687b90;background:transparent;padding-left:3px;padding-right:3px}
.ca-entry-create>.cal-entry-clean{padding:0;background:transparent}
.ca-entry-create .cal-entry-clean .cal-entry-heading{margin:0 0 8px;gap:12px}
.ca-entry-create .cal-entry-clean .cal-entry-summaries{display:none}
.ca-entry-create [data-cal-rule-count]{font-size:13px;color:#63748a}
.ca-entry-create .cal-entry-clean .cal-entry-controls{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.ca-entry-create .cal-entry-clean .cal-entry-panels,.ca-entry-create .cal-entry-clean .cal-entry-kind,.ca-entry-create .cal-entry-clean .cal-rule-settings{display:contents}
.ca-entry-create .cal-entry-clean .cal-rule-row label{font-size:13px!important}
.ca-entry-create .cal-entry-clean .cal-entry-controls input,.ca-entry-create .cal-entry-clean .cal-entry-controls select{height:35px!important;min-height:35px!important;font-size:14px!important}
.ca-entry-create .cal-entry-clean [data-cal-rule-unknown],.ca-entry-create .cal-entry-clean [data-cal-rule-none]{display:none!important}
.ca-entry-create .cal-entry-clean .cal-entry-remind{grid-column:auto;grid-row:auto;max-width:none}
.ca-entry-create .cal-entry-clean .cal-entry-hint{font-size:13px;line-height:1.5;margin-top:7px;color:#63748a}
.ca-entry-create .cal-entry-clean:has([data-cal-kind-panel]:not([hidden]) [data-cal-rule-date]:not([hidden])) .cal-entry-controls,
.ca-entry-create .cal-entry-clean[data-selected-kind="inspection"] .cal-entry-controls,
.ca-entry-create .cal-entry-clean[data-selected-kind="retirement"]:has([data-cal-rule="retirement"] [data-cal-rule-cycle]:not([hidden])) .cal-entry-controls{grid-template-columns:repeat(4,minmax(0,1fr))}
.ca-entry-create .cal-entry-clean[data-selected-kind="maintenance"]:has([data-cal-rule="maintenance"] [data-cal-rule-cycle]:not([hidden])) .cal-entry-controls,
.ca-entry-create .cal-entry-clean[data-selected-kind="inspection"]:has([data-cal-rule="inspection"] [data-cal-rule-date]:not([hidden])) .cal-entry-controls{grid-template-columns:repeat(5,minmax(0,1fr))}
.ca-entry-create .cal-entry-clean[data-selected-kind="inspection"]:has([data-cal-rule="inspection"] [data-cal-rule-cycle]:not([hidden])) .cal-entry-controls{grid-template-columns:repeat(6,minmax(0,1fr))}
.ca-entry-create>.ca-actions{border-top:1px solid #dce5ef;padding-top:10px;gap:10px}
.ca-entry-create>.ca-actions button{font-size:14px;min-height:35px;padding:6px 12px;border-radius:4px}
.ca-entry-create>.ca-actions>.muted{font-size:13px;color:#63748a}
@media(min-width:769px){.ca-entry-create .ca-spec-head,.ca-entry-create .ca-spec-row{min-width:880px}}
@media(max-width:1100px) and (min-width:769px){.ca-entry-create .cal-entry-clean .cal-entry-controls{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:768px){.ca-entry-create .cal-entry-clean .cal-entry-controls{grid-template-columns:repeat(2,minmax(0,1fr))!important}.ca-entry-create .ca-spec-row{grid-template-columns:minmax(0,1fr) minmax(90px,.65fr);padding:10px;gap:8px}.ca-entry-create .ca-spec-actions{grid-column:1/-1;grid-row:4}.ca-entry-create .ca-spec-row>label>span{font-size:13px}.ca-entry-create .ca-spec-heading{flex-wrap:wrap}.ca-entry-create .ca-spec-heading>button{margin-left:auto}}

/* Brand and installation position are entered once, alongside each device. */
.ca-entry-create>.ca-entry-notes{grid-column:span 3}
.ca-entry-create .ca-spec-head,.ca-entry-create .ca-spec-row{grid-template-columns:minmax(90px,.9fr) minmax(105px,1fr) minmax(120px,1.3fr) 58px minmax(92px,.8fr) 134px 134px 46px;gap:8px;min-width:870px}
.ca-entry-create .ca-spec-actions{justify-content:center}
@media(max-width:1100px) and (min-width:769px){.ca-entry-create>.ca-entry-notes{grid-column:span 1}}
@media(max-width:768px){.ca-entry-create>.ca-entry-notes{grid-column:span 1}.ca-entry-create .ca-spec-row{min-width:0;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.ca-entry-create .ca-spec-row>label:nth-child(n){grid-column:auto;grid-row:auto}.ca-entry-create .ca-spec-actions{grid-column:2;grid-row:4;justify-content:flex-end;align-self:end}.ca-entry-create .ca-spec-head{min-width:0}}

/* Aligned labels and content-sized reminder fields within each detail. */
.ca-reminder-progress{font-size:13px;color:#52677f;min-width:0}
.ca-entry-create .ca-actions .ca-reminder-continue,.ca-entry-edit .ca-actions .ca-reminder-continue{font-size:13px;line-height:20px;min-height:35px;padding:6px 10px;background:#fff;border-color:#c7d8eb;white-space:normal}
.ca-entry-create [data-cal-rule-picker-label],.ca-entry-edit [data-cal-rule-picker-label]{white-space:nowrap}
.ca-entry-create .ca-spec-head{display:none}
.ca-entry-create .ca-spec-row{grid-template-columns:minmax(110px,.9fr) minmax(140px,1.2fr) minmax(150px,1.45fr) 100px minmax(95px,.85fr) 138px 138px 42px;min-width:0;gap:8px;padding:10px;align-items:start}
.ca-entry-create .ca-spec-row+.ca-spec-row{border-top:1px solid #cddaea}
.ca-entry-create .ca-spec-row:nth-child(even){background:#f8fafc}
.ca-entry-create .ca-spec-row>label,.ca-entry-create .ca-spec-reminders label{display:flex;flex-direction:column;gap:4px!important;line-height:20px!important;font-size:13px!important;font-weight:400!important;white-space:nowrap;margin:0;min-width:0}
.ca-entry-create .ca-spec-row>label>span{display:block;font-size:13px;line-height:20px;font-weight:400;color:#40566e;margin:0}
.ca-entry-create .ca-spec-row>.ca-spec-actions{grid-column:8;grid-row:1;align-self:start;padding-top:24px;justify-content:center}
.ca-entry-create .ca-spec-actions button{height:35px;min-height:35px}
.ca-entry-create .ca-spec-reminders{grid-column:1/-1;grid-row:2;min-width:0;padding:0;border:0}
.ca-entry-create .ca-spec-reminders>.cal-entry-clean{border:0;border-radius:0;background:transparent;padding:0}
.ca-entry-create .ca-spec-reminders .cal-entry-heading,.ca-entry-create .ca-spec-reminders .cal-entry-hint{display:none}
.ca-entry-create .ca-spec-reminders .cal-entry-clean .cal-entry-controls{display:flex!important;flex-wrap:wrap;gap:8px;align-items:start;justify-content:flex-start}
.ca-entry-create .ca-spec-reminders .cal-entry-controls label{flex:0 0 130px;max-width:100%}
.ca-entry-create .ca-spec-reminders .cal-entry-controls label:has(select[name$="Mode"]){flex-basis:165px}
.ca-entry-create .ca-spec-reminders .cal-entry-controls label:has(input[type="date"]){flex-basis:138px}
.ca-entry-create .ca-spec-reminders .cal-entry-controls label:has(input[type="number"]){flex-basis:120px}
.ca-entry-create .ca-spec-reminders .cal-entry-controls .cal-entry-remind{flex-basis:115px}
@media(min-width:1900px){
 .ca-entry-create .ca-spec-table{--ca-reminder-width:426px}
 .ca-entry-create .ca-spec-table:has(.cal-entry-clean[data-selected-kind="inspection"],[data-cal-kind-panel]:not([hidden]) [data-cal-rule-date]:not([hidden]),[data-cal-kind-panel="retirement"]:not([hidden]) [data-cal-rule-cycle]:not([hidden])){--ca-reminder-width:560px}
 .ca-entry-create .ca-spec-table:has([data-cal-kind-panel="maintenance"]:not([hidden]) [data-cal-rule-cycle]:not([hidden]),[data-cal-kind-panel="inspection"]:not([hidden]) [data-cal-rule-date]:not([hidden])){--ca-reminder-width:660px}
 .ca-entry-create .ca-spec-table:has([data-cal-kind-panel="inspection"]:not([hidden]) [data-cal-rule-cycle]:not([hidden])){--ca-reminder-width:706px}
 .ca-entry-create .ca-spec-row{grid-template-columns:minmax(90px,.9fr) minmax(105px,1.2fr) minmax(110px,1.5fr) 100px minmax(70px,.8fr) 122px 122px var(--ca-reminder-width) 42px}
 .ca-entry-create .ca-spec-row>.ca-spec-reminders{grid-column:8;grid-row:1}
 .ca-entry-create .ca-spec-row>.ca-spec-actions{grid-column:9;grid-row:1}
 .ca-entry-create .ca-spec-reminders .cal-entry-controls{flex-wrap:nowrap!important}
 .ca-entry-create .ca-spec-reminders .cal-entry-controls label{flex:1 1 0!important}
 .ca-entry-create .ca-spec-reminders .cal-entry-controls label:has(select[name$="Mode"]){flex:1.3 1 0!important}
 .ca-entry-create .ca-spec-reminders .cal-entry-controls label:has(input[type="date"]){flex:0 0 124px!important}
 .ca-entry-create .ca-spec-reminders .cal-entry-clean:not([data-selected-kind="inspection"]):not(:has([data-cal-kind-panel]:not([hidden]) [data-cal-rule-date]:not([hidden]),[data-cal-kind-panel]:not([hidden]) [data-cal-rule-cycle]:not([hidden]))) .cal-entry-controls{max-width:426px}
}
@media(max-width:1399px) and (min-width:769px){
 .ca-entry-create .ca-spec-row{grid-template-columns:minmax(105px,.95fr) minmax(120px,1.15fr) minmax(115px,1.3fr) 100px minmax(80px,.8fr) 134px 134px 38px;min-width:902px}
}
@media(max-width:768px){
 .ca-entry-create .ca-spec-row{grid-template-columns:repeat(2,minmax(0,1fr));min-width:0;padding:10px;gap:8px}
 .ca-entry-create .ca-spec-row>label:nth-child(n){grid-column:auto;grid-row:auto}
 .ca-entry-create .ca-spec-row>.ca-spec-actions{grid-column:2;grid-row:4;padding-top:24px;align-self:start}
 .ca-entry-create .ca-spec-row>.ca-spec-reminders{grid-column:1/-1;grid-row:5}
 .ca-entry-create .ca-spec-reminders .cal-entry-controls label{flex:1 1 130px}
}

/* Work evidence stays in the same compact form and record history. */
.ca-work-attachments{display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px;min-width:0}
.ca-work-attachments>[data-ca-work-attachment-label]{font-size:13px;color:#40566e;white-space:nowrap}
.ca-work-attachments>[data-ca-action="work-attachment-pick"]{min-height:32px;padding:5px 10px;font-size:13px}
.ca-work-attachment-list{display:flex;align-items:center;flex-wrap:wrap;gap:5px 10px;min-width:0;margin:3px 0}
.ca-work-attachment-item{display:inline-flex;align-items:center;gap:5px;max-width:100%;min-width:0}
.ca-work-attachment-item .ca-work-file{display:inline-block;max-width:260px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;line-height:20px}
.ca-work-attachment-item button.ca-work-file{border:0;background:transparent;color:#1763a7;padding:0;min-height:20px;text-align:left}
.ca-work-attachment-item [data-ca-action="work-attachment-remove"]{border:0;background:transparent;color:#6b7b8d;min-height:24px;padding:2px 4px;font-size:12px}
.ca-work-attachment-status,.ca-work-legacy-document{font-size:12px;color:#687d92;overflow-wrap:anywhere}
.ca-work-table .ca-work-attachment-list,.ca-work-history .ca-work-attachment-list{margin-top:5px}

/* New ledger reminders stay visible in compact horizontal groups. */
.ca-entry-create .ca-spec-row:has(.cal-entry-expanded)>.ca-spec-reminders{grid-column:1/-1;grid-row:2;padding-top:2px}
.ca-entry-create .ca-spec-row:has(.cal-entry-expanded)>.ca-spec-actions{grid-column:8;grid-row:1}
.ca-entry-create .ca-spec-reminders .cal-entry-clean.cal-entry-expanded .cal-entry-controls{display:flex!important;flex-wrap:wrap!important;gap:10px 14px;align-items:start;max-width:none!important}
.ca-entry-create .ca-spec-reminders .cal-entry-expanded .cal-entry-panels{display:contents}
.ca-entry-create .ca-spec-reminders .cal-entry-expanded .cal-entry-kind{display:flex;flex:0 1 auto;flex-wrap:wrap;gap:8px;align-items:start;min-width:0;max-width:100%;padding-left:14px;border-left:1px solid #dce5ef}
.ca-entry-create .ca-spec-reminders .cal-entry-expanded .cal-entry-kind:first-child{padding-left:0;border-left:0}
.ca-entry-create .ca-spec-reminders .cal-entry-expanded .cal-rule-settings{display:contents}
.ca-entry-create .ca-spec-reminders .cal-entry-expanded .cal-entry-controls label{min-width:0;max-width:100%;flex:0 0 auto!important}
.ca-entry-create .ca-spec-reminders .cal-entry-expanded .cal-entry-controls .cal-rule-row>label{width:170px;flex:0 0 170px!important}
.ca-entry-create .ca-spec-reminders .cal-entry-expanded .cal-rule-settings>label{width:110px;flex:0 0 110px!important}
.ca-entry-create .ca-spec-reminders .cal-entry-expanded .cal-rule-settings>label:has(input[type="date"]){width:138px;flex:0 0 138px!important}
.ca-entry-create .ca-spec-reminders .cal-entry-expanded .cal-rule-settings>label:has([data-cal-actual-date]){width:155px;flex:0 0 155px!important}
.ca-entry-create .ca-spec-reminders .cal-entry-expanded .cal-rule-settings>label:has(select){width:150px;flex:0 0 150px!important}
.ca-entry-create .ca-spec-reminders .cal-entry-expanded .cal-entry-controls .cal-entry-remind{width:140px;flex:0 0 140px!important;max-width:100%}
@media(min-width:1900px){.ca-entry-create .ca-spec-row:has(.cal-entry-expanded){grid-template-columns:minmax(110px,.9fr) minmax(140px,1.2fr) minmax(150px,1.45fr) 100px minmax(95px,.85fr) 138px 138px 42px}}
@media(max-width:768px){
 .ca-entry-create .ca-spec-row:has(.cal-entry-expanded)>.ca-spec-reminders{grid-row:5}
 .ca-entry-create .ca-spec-row:has(.cal-entry-expanded)>.ca-spec-actions{grid-column:2;grid-row:4}
 .ca-entry-create .ca-spec-reminders .cal-entry-expanded .cal-entry-kind{width:100%;padding:8px 0 0;border-left:0;border-top:1px solid #e5ebf2}
 .ca-entry-create .ca-spec-reminders .cal-entry-expanded .cal-entry-kind:first-child{padding-top:0;border-top:0}
}

/* Name-library classification is selected once when the name is added. */
.ca-name-add [data-ca-new-system-name][hidden]{display:none}
.ca-name-add [data-ca-new-system-name]{margin-top:6px}
.ca-form input[name="systemCategory"][readonly]{background:#f4f7fa;color:#47627f}

/* One service date beside manufacture date, shared by repair and inspection setup. */
@media(min-width:769px){
 .ca-project-page .ca-filter-toolbar .ca-filters>label:first-child{flex-basis:160px}
 .ca-entry-create .ca-spec-row:has(.cal-entry-expanded){grid-template-columns:minmax(90px,.9fr) minmax(105px,1.2fr) minmax(115px,1.3fr) 100px minmax(80px,.8fr) 134px 160px 38px;min-width:0}
 .ca-edit-lifecycle .cal-entry-fixed-repair .cal-entry-controls{grid-template-columns:140px 160px 125px minmax(290px,1fr) 110px}
 .ca-edit-lifecycle .cal-entry-fixed-repair .cal-entry-kind[data-cal-kind-panel="inspection"]{grid-template-columns:150px minmax(185px,1fr)}
}
@media(min-width:769px) and (max-width:1199px){.ca-edit-lifecycle .cal-entry-fixed-repair .cal-entry-controls{grid-template-columns:140px 160px minmax(125px,1fr) 110px}}

/* Keep the direct due-work action visible on distribution rows. */
.ca-distribution-table .ca-row-actions:has([data-ca-action="due-work"]){flex-wrap:wrap;gap:4px 8px}

/* 182: distribution-first detail dialog and readable totals */
.ca-detail-overlay:not([hidden]){position:fixed;inset:0;z-index:1050;background:rgba(15,28,48,.42);display:flex;align-items:center;justify-content:center;padding:24px;overscroll-behavior:contain}
.ca-detail-overlay>.ca-detail-page{background:#fff;border-radius:12px;box-shadow:0 20px 70px #18294340;width:min(1540px,96vw);max-height:92vh;overflow:auto;padding:22px 26px;font-size:15px;line-height:1.5;overscroll-behavior:contain}
.ca-detail-overlay .ca-detail-back{float:right;margin:0 0 8px 20px}.ca-detail-overlay .ca-detail-head{clear:both;margin-bottom:12px}.ca-detail-overlay h2{font-size:23px}.ca-detail-overlay h3{font-size:18px}.ca-detail-overlay .ca-detail-summary{font-size:17px;padding:12px 0}.ca-detail-overlay .ca-detail-table{font-size:15px}.ca-detail-overlay .ca-detail-table th{font-size:14px;font-weight:600}.ca-detail-overlay .ca-detail-table td{padding:13px 10px}.ca-detail-overlay .cal-position-table td:nth-child(2){font-size:20px;color:#123b64}.ca-detail-overlay small,.ca-detail-overlay .ca-section-note,.ca-detail-overlay .cal-badge{font-size:13px}.ca-detail-overlay .ca-detail-section{margin-top:16px;padding-top:16px}.ca-detail-overlay details.ca-detail-section>summary{font-size:15px;font-weight:600;cursor:pointer}.ca-detail-overlay .ca-original-info .ca-facts{margin-top:12px}.ca-detail-overlay .ca-detail-tasks-empty{display:none}.ca-workspace .ca-table tfoot td,.cal-position-table tfoot td{background:#eef5fc;border-top:1px solid #cbdbea;padding:12px;font-size:15px}.ca-table tfoot strong,.ca-summary>strong{font-size:16px;color:#123b64;margin:0 6px}.ca-list-summary .ca-summary{font-size:14px;margin:0}.ca-summary span,.ca-table tfoot span{font-size:14px;color:#526b87}.ca-filter-toolbar{flex-wrap:wrap}.ca-filters{flex-wrap:wrap}.ca-filters>label:has([data-ca-filter="systemCategory"]){min-width:165px}.ca-detail-overlay .ca-work-table{min-width:900px}.ca-detail-overlay .cal-position-table{min-width:1080px}.ca-modal{z-index:1100}

.ca-detail-overlay .ca-detail-table td{font-size:15px}.ca-detail-overlay .cal-position-table td:first-child>strong{font-size:16px}.ca-detail-overlay .cal-position-table td:nth-child(2){font-size:20px}.ca-detail-overlay .ca-detail-head p{font-size:14px}.ca-detail-overlay .cal-position-table .cal-actions button{font-size:13px}.ca-detail-overlay .ca-detail-back{display:none}.task-asset-completion{grid-column:1/-1;border:1px solid #c9daeb;border-radius:7px;padding:12px 16px;background:#f7faff;min-width:0}.task-asset-completion legend{font-size:16px;font-weight:600}.task-asset-completion>.grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.task-asset-completion label{font-size:14px}.task-asset-completion p{margin:5px 0 12px}.task-asset-completion input{margin-top:5px}.ca-dispatch-existing{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}

/* 183: keep totals subordinate to the device distribution. */
.ca-detail-overlay .cal-position-table tfoot td:nth-child(2){font-size:16px}

/* 184: fold projects beyond the initial viewport; totals stay by filters. */
.ca-catalog-list{display:flex;flex-direction:column;gap:12px}.ca-catalog-list>.ca-catalog-row{margin:0;flex-shrink:0}.ca-catalog-scroll{min-width:0}.ca-catalog-row[hidden]{display:none!important}
/* Desktop ledger: keep controls and totals in view; only the current list scrolls. */
.ca-workspace:not(.ca-fixed-workspace) .ca-distribution-scroll{display:contents}
@media(min-width:769px){
  body.pc-ui-preview .ca-workspace.ca-fixed-workspace{height:var(--ca-workspace-height);min-height:0;box-sizing:border-box;display:flex;flex-direction:column;overflow:hidden;margin-bottom:0}
  .ca-fixed-workspace>[data-ca-message]{flex:none;max-height:60px;overflow:auto}
  .ca-fixed-workspace>[data-ca-message]:empty{display:none}
  .ca-fixed-workspace>[data-ca-list]{display:flex;flex-direction:column;flex:1;min-height:0;min-width:0}
  .ca-fixed-workspace>[data-ca-list]>:not([data-ca-groups]){flex:none}
  .ca-fixed-workspace [data-ca-groups]{display:flex;flex-direction:column;flex:1;min-height:0;min-width:0;overflow:hidden}
  .ca-fixed-workspace [data-ca-groups]>.ca-group:not(.ca-catalog-row),
  .ca-fixed-workspace [data-ca-group-body],.ca-fixed-workspace [data-ca-results]{display:flex;flex-direction:column;flex:1;min-height:0;min-width:0}
  .ca-fixed-workspace [data-ca-groups]>.ca-group{margin-bottom:0;overflow:hidden}
  .ca-fixed-workspace [data-ca-groups]>.customer-fixed-list{padding:0}
  body.pc-ui-preview .ca-fixed-workspace [data-ca-list-scroll]{flex:1;min-height:0!important;height:auto!important;max-height:none;overflow:auto!important;overscroll-behavior:contain;scrollbar-gutter:stable;scroll-padding-top:48px;box-sizing:border-box}
  .ca-fixed-workspace [data-ca-list-scroll] table{margin:0!important}
  .ca-fixed-workspace [data-ca-list-scroll] thead th{position:sticky;top:0;z-index:2;background:#f5f8fc}
  .ca-fixed-workspace [data-ca-list-scroll] :is(button,summary){scroll-margin-block:48px 12px}
  .ca-fixed-workspace :is(.ca-pagination,.customer-fixed-pagination){flex:none;margin-top:0;padding:7px 10px;border-top:1px solid #e0e7ef;background:#fff}
  .ca-fixed-workspace .ca-group-head{flex:none;padding:8px 12px}
  .ca-fixed-workspace .ca-catalog-row .ca-group-head{padding:12px 14px}
  .ca-fixed-workspace .ca-header{margin-bottom:10px}
  .ca-fixed-workspace .ca-detail-back{margin-bottom:8px}
  .ca-fixed-workspace .ca-list-summary{padding:8px 0}
  .ca-fixed-workspace .ca-distribution-scroll>.ca-distribution-table{min-width:1200px!important}
  .ca-fixed-workspace .ca-distribution-scroll thead th{white-space:nowrap!important}
  .ca-fixed-workspace .cal-alert-table{min-width:900px!important}
  .ca-fixed-workspace .ca-row-more>div[data-ca-fixed-menu]{position:fixed!important;top:var(--ca-menu-top)!important;left:var(--ca-menu-left)!important;bottom:auto!important;right:auto!important;z-index:1200;max-height:180px;overflow:auto;min-width:120px}
}
@media(min-width:769px) and (max-height:700px){
  body.pc-ui-preview .ca-workspace.ca-fixed-workspace{padding:10px 14px}
  .ca-fixed-workspace .ca-header{margin-bottom:6px;gap:8px}
  .ca-fixed-workspace .ca-header h2{font-size:20px;line-height:1.35}
  .ca-fixed-workspace .ca-header p{margin-top:3px}
  .ca-fixed-workspace .ca-detail-back{margin-bottom:5px}
  .ca-fixed-workspace .ca-filter-toolbar{gap:6px 8px;padding-bottom:7px}
  .ca-fixed-workspace .ca-filter-toolbar label{gap:3px;font-size:12px}
  .ca-fixed-workspace .ca-filter-toolbar .ca-filters>label,.ca-fixed-workspace .ca-filter-toolbar .ca-filter-options>label{flex:0 0 105px;min-width:0;max-width:none}
  .ca-fixed-workspace .ca-filter-toolbar .ca-filters>label:first-child{flex:1 1 150px;max-width:260px}
  .ca-fixed-workspace .ca-filter-toolbar label:has([data-ca-filter="systemCategory"]){flex-basis:140px;min-width:140px}
  .ca-fixed-workspace .ca-filter-toolbar label:has([data-ca-lifecycle-filter]){flex-basis:130px}
  .ca-fixed-workspace .ca-filter-toolbar :is(input,select){min-height:30px;height:30px}
  .ca-fixed-workspace .ca-date-filters{padding:7px 0;gap:12px;grid-template-columns:repeat(2,minmax(0,320px))}
  .ca-fixed-workspace .ca-date-filters label{flex-direction:row;align-items:center;gap:8px;font-size:12px;white-space:nowrap}
  .ca-fixed-workspace .ca-date-filters input{height:30px;min-height:30px}
  .ca-fixed-workspace .cal-strip{padding:3px 0;gap:5px 8px}
  .ca-fixed-workspace .ca-list-summary{padding:3px 0}
  .ca-fixed-workspace .ca-group-head{padding:4px 10px}
  .ca-fixed-workspace .ca-group-head h3{margin-bottom:0}
  .ca-fixed-workspace .ca-pagination{padding-block:5px}
}
