.comm-ticket{margin-top:16px}.comm-ticket>p{font-size:13px;line-height:1.5}.comm-messages{display:grid;gap:10px;margin:14px 0}.comm-message{border:1px solid #dce2e8;border-radius:8px;padding:12px;background:#fff;font-size:13px}.comm-internal{background:#f8fafc;border-left:3px solid #6b7280}.comm-inbound{border-left:3px solid #1f6feb}.comm-outbound{border-left:3px solid #16a34a}.comm-message h3{font-size:14px;margin:8px 0}.comm-body{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.5}.comm-actions{display:grid;grid-template-columns:1fr 1fr;gap:16px}.comm-actions form{border-top:1px solid #e5e7eb;padding-top:12px}.comm-actions form>p{font-size:12px;color:#596579}.comm-actions textarea{min-height:90px}@media(max-width:800px){.comm-actions{grid-template-columns:1fr}}
.comm-actions form{min-width:0}.comm-actions label{display:block;margin-bottom:10px}.comm-actions input:not([type=hidden]),.comm-actions select,.comm-actions textarea{display:block;width:100%;box-sizing:border-box;margin-top:5px}.comm-actions textarea{min-height:90px;resize:vertical}
.ticket-detail-tabs{display:flex;gap:4px;border-bottom:1px solid var(--border);margin:18px 0 0;overflow:auto}.ticket-detail-tabs button{border:0;border-bottom:3px solid transparent;background:transparent;padding:12px 16px;color:#52657d;font-weight:700;white-space:nowrap}.ticket-detail-tabs button[aria-current=page]{border-bottom-color:var(--accent);color:var(--accent)}.ticket-tab-panel{margin-top:0!important;border-top:0;border-top-left-radius:0;border-top-right-radius:0}.ticket-tab-panel[hidden]{display:none!important}.ticket-fields label[hidden]{display:none}.ticket-billing-top{margin:0 0 16px!important;padding:15px 18px}.ticket-billing-top h2{font-size:15px}.ticket-billing-top p{display:none}.ticket-billing-top form{display:flex;align-items:end;gap:10px;flex-wrap:wrap}.ticket-billing-top form label{max-width:260px;flex:1 1 220px}.ticket-billing-top form select{width:100%}
.comm-ticket{padding:18px}.comm-compose-first{display:grid;grid-template-columns:minmax(0,2fr) minmax(260px,1fr);gap:16px}.comm-compose-first>form{border:1px solid var(--border);background:#fafcff;border-radius:9px;padding:16px;min-width:0}.comm-compose-first label{display:block;margin:10px 0;font-size:12px;font-weight:650}.comm-compose-first input:not([type=hidden]),.comm-compose-first select,.comm-compose-first textarea{display:block;width:100%;margin-top:5px}.comm-compose-first input[data-mail-files][hidden]{display:none!important}.comm-compose-first textarea{min-height:170px;resize:vertical}.comm-compose-first .comm-new-note textarea{min-height:120px}.comm-compose-first label small{display:block;color:#64748b;font-size:11px;margin-top:4px}.comm-compose-head,.comm-recipient-row,.comm-compose-foot,.comm-message-head,.comm-note-edit-actions{display:flex;align-items:center;justify-content:space-between;gap:10px}.comm-compose-head h2{margin:0;font-size:17px}.comm-compose-head span,.comm-editor-hint{font-size:11px;color:#64748b}.comm-recipient-row label{flex:1}.comm-recipient-actions{display:flex;gap:5px;align-self:end;padding-bottom:1px}.comm-editor-toolbar{display:flex;gap:3px;margin:13px 0 2px}.comm-editor-toolbar button{background:#fff;border:1px solid var(--border);border-radius:5px;min-width:30px;height:30px;color:#315779}.comm-editor-toolbar button:hover{background:#eaf2ff}.comm-file-list{font-size:12px;color:#35506e;overflow-wrap:anywhere}.comm-compose-foot{justify-content:flex-start;margin-top:12px}.comm-compose-foot p{font-size:12px;color:#7b3340}.comm-history{margin-top:20px}.comm-history h2{font-size:16px;margin:0 0 12px}.comm-messages{display:grid;gap:10px}.comm-message-head{align-items:flex-start}.comm-message-head span{min-width:0}.comm-rich-body p{margin:5px 0;white-space:pre-wrap;overflow-wrap:anywhere}.comm-rich-body h4{font-size:18px;margin:10px 0 4px}.comm-attachments{margin:8px 0}.comm-attachments ul{margin:4px 0;padding-left:20px}.comm-message form[data-note-edit]{border-top:1px solid var(--border);margin-top:10px;padding-top:10px}.comm-message form[data-note-edit][hidden],[data-recipient-row][hidden]{display:none}.comm-message form[data-note-edit] textarea{width:100%;min-height:110px}.comm-note-edit-actions{justify-content:flex-start;margin-top:7px}@media(max-width:1000px){.comm-compose-first{grid-template-columns:1fr}}@media(max-width:600px){.comm-recipient-row,.comm-compose-head,.comm-message-head{align-items:flex-start;flex-direction:column}.comm-recipient-row label{width:100%}.ticket-detail-tabs button{padding:11px}}
.comm-ticket{padding:18px}.comm-compose-first{display:grid;grid-template-columns:minmax(0,2fr) minmax(260px,1fr);gap:16px}.comm-compose-first>form{border:1px solid var(--border);background:#fafcff;border-radius:9px;padding:16px;min-width:0}.comm-compose-first label{display:block;margin:10px 0;font-size:12px;font-weight:650}.comm-compose-first input:not([type=hidden]),.comm-compose-first select,.comm-compose-first textarea{display:block;width:100%;margin-top:5px}.comm-compose-first textarea{min-height:170px;resize:vertical}.comm-compose-first .comm-new-note textarea{min-height:120px}.comm-compose-first label small{display:block;color:#64748b;font-size:11px;margin-top:4px}.comm-compose-head,.comm-recipient-row,.comm-compose-foot,.comm-message-head,.comm-note-edit-actions{display:flex;align-items:center;justify-content:space-between;gap:10px}.comm-compose-head h2{margin:0;font-size:17px}.comm-compose-head span,.comm-editor-hint{font-size:11px;color:#64748b}.comm-recipient-row label{flex:1}.comm-recipient-actions{display:flex;gap:5px;align-self:end;padding-bottom:1px}.comm-editor-toolbar{display:flex;gap:3px;margin:13px 0 2px}.comm-editor-toolbar button{background:#fff;border:1px solid var(--border);border-radius:5px;min-width:30px;height:30px;color:#315779}.comm-editor-toolbar button:hover{background:#eaf2ff}.comm-file-list{font-size:12px;color:#35506e;overflow-wrap:anywhere}.comm-compose-foot{justify-content:flex-start;margin-top:12px}.comm-compose-foot p{font-size:12px;color:#7b3340}.comm-history{margin-top:20px}.comm-history h2{font-size:16px;margin:0 0 12px}.comm-messages{display:grid;gap:10px}.comm-message-head{align-items:flex-start}.comm-message-head span{min-width:0}.comm-rich-body p{margin:5px 0;white-space:pre-wrap;overflow-wrap:anywhere}.comm-rich-body h4{font-size:18px;margin:10px 0 4px}.comm-attachments{margin:8px 0}.comm-attachments ul{margin:4px 0;padding-left:20px}.comm-message form[data-note-edit]{border-top:1px solid var(--border);margin-top:10px;padding-top:10px}.comm-message form[data-note-edit][hidden],[data-recipient-row][hidden]{display:none}.comm-message form[data-note-edit] textarea{width:100%;min-height:110px}.comm-note-edit-actions{justify-content:flex-start;margin-top:7px}@media(max-width:1000px){.comm-compose-first{grid-template-columns:1fr}}@media(max-width:600px){.comm-recipient-row,.comm-compose-head,.comm-message-head{align-items:flex-start;flex-direction:column}.comm-recipient-row label{width:100%}.ticket-detail-tabs button{padding:11px}}
.ticket-tab-panel[data-ticket-tab-panel=materials]>h2,.ticket-tab-panel[data-ticket-tab-panel=materials]>p:first-of-type,.ticket-tab-panel[data-ticket-tab-panel=tasks]>.section-head h2,.ticket-tab-panel[data-ticket-tab-panel=log]>h2{display:none}.ticket-task-create{margin:0 0 10px}.ticket-task-create summary{display:inline-flex;list-style:none;cursor:pointer}.ticket-task-create form{padding:12px 0}.ticket-task-item{border-top:1px solid var(--border);padding:12px 0}.ticket-task-summary{display:flex;align-items:flex-start;gap:10px}.ticket-task-summary>div{flex:1}.ticket-task-summary small{display:block;color:#64748b;font-size:11px}.ticket-task-summary details[open]{width:min(100%,600px)}.ticket-task-summary details>form{margin-top:8px;padding:10px;border:1px solid var(--border);border-radius:8px;background:#fafcff}.ticket-task-summary details[open] .form-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.ticket-task-summary details[open] summary{margin-left:auto}.ticket-task-summary details form+form{border:0;background:transparent;padding:4px 10px}.ticket-task-time{display:flex;align-items:end;gap:8px;margin:9px 0 0 42px}.ticket-task-time label{max-width:180px}.ticket-task-time input{width:110px}@media(max-width:800px){.ticket-task-summary{flex-wrap:wrap}.ticket-task-summary details[open]{width:100%}.ticket-task-time{margin-left:0;flex-wrap:wrap}}@media(max-width:600px){.ticket-task-summary details[open] .form-row{grid-template-columns:1fr}}
.ticket-tab-panel[data-ticket-tab-panel=materials]>h2,.ticket-tab-panel[data-ticket-tab-panel=materials]>p:first-of-type,.ticket-tab-panel[data-ticket-tab-panel=tasks]>.section-head h2,.ticket-tab-panel[data-ticket-tab-panel=log]>h2{display:none}.ticket-task-create{margin:0 0 10px}.ticket-task-create summary{display:inline-flex;list-style:none;cursor:pointer}.ticket-task-create form{padding:12px 0}.ticket-task-item{border-top:1px solid var(--border);padding:12px 0}.ticket-task-summary{display:flex;align-items:flex-start;gap:10px}.ticket-task-summary>div{flex:1}.ticket-task-summary small{display:block;color:#64748b;font-size:11px}.ticket-task-summary details[open]{width:min(100%,600px)}.ticket-task-summary details>form{margin-top:8px;padding:10px;border:1px solid var(--border);border-radius:8px;background:#fafcff}.ticket-task-summary details[open] .form-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.ticket-task-summary details[open] summary{margin-left:auto}.ticket-task-summary details form+form{border:0;background:transparent;padding:4px 10px}.ticket-task-time{display:flex;align-items:end;gap:8px;margin:9px 0 0 42px}.ticket-task-time label{max-width:180px}.ticket-task-time input{width:110px}@media(max-width:800px){.ticket-task-summary{flex-wrap:wrap}.ticket-task-summary details[open]{width:100%}.ticket-task-time{margin-left:0;flex-wrap:wrap}}@media(max-width:600px){.ticket-task-summary details[open] .form-row{grid-template-columns:1fr}}
.comm-rich-editor{margin-top:5px;width:100%;min-height:190px;padding:10px;border:1px solid #cbd5e1;border-radius:7px;background:#fff;color:var(--text);font-size:13px;line-height:1.5;overflow-wrap:anywhere;outline:none}.comm-rich-editor:focus{border-color:#6799e6;box-shadow:0 0 0 2px #dbeafe}.comm-rich-editor:empty::before{content:attr(data-placeholder);color:#8996a8;pointer-events:none}.comm-rich-editor[contenteditable=false]{background:#f2f4f7;color:#64748b}.comm-rich-editor h2{font-size:20px;margin:8px 0}.comm-rich-editor a{color:var(--accent);text-decoration:underline}.comm-compose-first textarea[data-rich-message][hidden]{display:none}
.comm-rich-editor{font-weight:400}
.comm-rich-editor img,.comm-rich-body img{display:block;max-width:min(100%,520px);max-height:360px;object-fit:contain;margin:8px 0;border-radius:6px}
/* The live ticket dossier follows the approved ticket-detail preview. */
.ticket-detail-live .ticket-page-head{align-items:flex-start;margin:0 0 18px}.ticket-detail-live .ticket-page-head h1{font-size:26px;margin:0 0 4px}.ticket-detail-live .ticket-page-head .subtitle{font-size:12px;color:#66758b}.ticket-page-actions{display:flex;gap:10px;flex-wrap:wrap}.ticket-detail-live .ticket-detail-grid{display:block}.ticket-detail-live .ticket-core-card{padding:19px}.ticket-core-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:16px}.ticket-core-head h2{font-size:17px;margin:0 0 4px}.ticket-core-head p{font-size:12px;color:#66758b;margin:0}.ticket-status-badge{border-radius:999px;background:#eaf2ff;color:#155bc1;padding:5px 9px;font-size:11px;font-weight:750;white-space:nowrap}.ticket-detail-live .ticket-fields .form-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px 14px}.ticket-detail-live .ticket-fields .form-row>label{margin:0;min-width:0}.ticket-detail-live .ticket-fields .form-row>.ticket-description-field{grid-column:span 3}.ticket-extra-info{margin-top:16px;font-size:12px;color:#52657d}.ticket-extra-info summary{cursor:pointer;font-weight:650}.ticket-extra-info>.card{margin:10px 0 0;box-shadow:none}.ticket-detail-live .ticket-detail-grid>aside:empty{display:none}
.ticket-workspace{padding:0;overflow:visible;margin-top:16px}.ticket-workspace .ticket-detail-tabs{margin:0;gap:0}.ticket-workspace .ticket-detail-tabs button{padding:14px 19px}.ticket-workspace .ticket-tab-panel{border:0;border-radius:0;box-shadow:none;margin:0!important;padding:22px}.ticket-workspace .ticket-tab-panel[hidden]{display:none!important}.ticket-workspace .comm-ticket{padding:22px}.ticket-workspace .comm-compose-first{display:block;border:1px solid #dce4ed;border-radius:10px;background:#fafcff;padding:16px}.ticket-workspace .comm-compose-first>form{border:0;background:transparent;padding:0}.ticket-workspace .comm-compose-first>form[hidden]{display:none}.comm-compose-mode-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.comm-compose-mode-head h2{font-size:15px;margin:0}.comm-mode-actions{display:flex;gap:5px}.comm-mode-actions button{border:1px solid #dce4ed;border-radius:6px;background:#fff;padding:6px 9px;color:#315779;font-size:12px;font-weight:650}.comm-mode-actions button.selected{background:#eaf2ff;border-color:#80aae1;color:#1259c4}.ticket-workspace .comm-history{margin-top:20px}.ticket-workspace .comm-messages{gap:11px}.ticket-workspace .comm-message{border-left-width:4px;padding:13px 15px}.ticket-workspace .comm-inbound{border-left-color:#93b6e9;background:#fff}.ticket-workspace .comm-internal{border-left-color:#eabf62;background:#fffaf0}.ticket-workspace .comm-outbound{border-left-color:#4c8cdc;background:#f8fbff}.ticket-workspace .comm-new-note textarea{min-height:150px}.ticket-workspace .ticket-task-create summary{background:var(--accent);border-color:var(--accent);color:#fff}
@media(max-width:1150px){.ticket-detail-live .ticket-fields .form-row{grid-template-columns:repeat(3,minmax(0,1fr))}.ticket-detail-live .ticket-fields .form-row>.ticket-description-field{grid-column:span 2}}@media(max-width:850px){.ticket-detail-live .ticket-fields .form-row{grid-template-columns:repeat(2,minmax(0,1fr))}.ticket-detail-live .ticket-fields .form-row>.ticket-description-field{grid-column:span 2}}@media(max-width:580px){.ticket-detail-live .ticket-fields .form-row{grid-template-columns:1fr}.ticket-detail-live .ticket-fields .form-row>.ticket-description-field{grid-column:auto}.ticket-detail-live .ticket-page-head,.comm-compose-mode-head{align-items:flex-start;flex-direction:column}.ticket-page-actions{width:100%}.ticket-workspace .ticket-tab-panel{padding:14px}}
/* Compact inline ticket task, matching the approved one-row concept. */
.ticket-task-row{display:grid;grid-template-columns:28px minmax(195px,2.2fr) minmax(145px,1.35fr) 92px minmax(135px,1.35fr) 88px auto;gap:10px;align-items:end;border-top:1px solid var(--border);padding:14px 2px;min-height:80px}.ticket-task-row>form{display:none}.ticket-task-row>label{display:grid;gap:5px;color:#42536a;font-size:11px;font-weight:700;min-width:0;margin:0}.ticket-task-row input:not([type=checkbox]),.ticket-task-row select{height:35px;width:100%;min-width:0;padding:6px 8px;border:1px solid #cbd5e1;border-radius:6px;background:#fff;color:var(--text);font-size:12px}.ticket-task-row input:disabled,.ticket-task-row select:disabled{background:#f6f7f9;color:#52657d}.ticket-task-row .ticket-task-check{height:35px;display:grid;place-items:center}.ticket-task-check input{width:17px;height:17px;margin:0;accent-color:var(--accent)}.ticket-task-actions{height:35px;display:flex;align-items:center;gap:5px;white-space:nowrap}.ticket-task-actions button{height:35px;border-radius:6px;font-size:12px;font-weight:700}.ticket-task-actions button[hidden]{display:none}.ticket-task-add-time{background:#eef5ff;border-color:#bad4fa;color:#155bc1}.ticket-task-save{background:#eaf7ef;border-color:#a9dcc0;color:#17643c}.ticket-task-remove{width:35px;padding:0;font-size:17px!important;color:#a03737}.ticket-tasks-card>.section-head{margin-bottom:6px}
.ticket-task-row:not(:has(.ticket-task-service)){grid-template-columns:28px minmax(195px,2.2fr) minmax(145px,1.35fr) 92px 88px auto}.ticket-task-row:not(:has(.ticket-task-service)) .ticket-task-minutes{grid-column:5}.ticket-task-row:not(:has(.ticket-task-service)) .ticket-task-actions{grid-column:6}
@media(max-width:1070px){.ticket-task-row,.ticket-task-row:not(:has(.ticket-task-service)){grid-template-columns:28px minmax(170px,2fr) minmax(140px,1.5fr) 90px}.ticket-task-row .ticket-task-service{grid-column:2}.ticket-task-row .ticket-task-minutes{grid-column:3}.ticket-task-row .ticket-task-actions{grid-column:4;align-self:end}}
@media(max-width:650px){.ticket-task-row,.ticket-task-row:not(:has(.ticket-task-service)){grid-template-columns:28px minmax(0,1fr) minmax(0,1fr);gap:9px}.ticket-task-row .ticket-task-title{grid-column:2/4}.ticket-task-row .ticket-task-employee{grid-column:2}.ticket-task-row .ticket-task-estimate{grid-column:3}.ticket-task-row .ticket-task-service{grid-column:2}.ticket-task-row .ticket-task-minutes{grid-column:3!important}.ticket-task-row .ticket-task-actions{grid-column:2/4!important;justify-content:flex-end}}
/* Planned slot and recorded-time summary stay visible; individual entries open on demand. */
.ticket-task-facts{display:flex;align-items:center;gap:12px 24px;flex-wrap:wrap;margin:0 2px 11px 40px;padding:8px 11px;background:#f7f9fc;border:1px solid #e5ebf2;border-radius:7px;font-size:12px}.ticket-task-plan,.ticket-task-total{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.ticket-task-badge{background:#eaf2ff;color:#155bc1;border-radius:999px;padding:3px 8px;font-size:11px;font-weight:750;white-space:nowrap}.ticket-task-badge.neutral{background:#eef2f7;color:#52657d}.ticket-task-plan a{color:#1758b8;text-decoration:none;font-weight:650}.ticket-task-plan a:hover{text-decoration:underline}.ticket-task-total strong{white-space:nowrap}.ticket-task-track{height:7px;width:96px;background:#e2e8f0;border-radius:99px;overflow:hidden}.ticket-task-track>span{display:block;height:100%;background:var(--accent);border-radius:99px}.ticket-task-track>span.over{background:#d98b19}.ticket-task-over{color:#9a6512;font-weight:700}.ticket-task-entries,.ticket-task-appointment-list{margin:0 2px 14px 40px;border:1px solid var(--border);border-radius:7px;overflow:hidden}.ticket-task-entries summary,.ticket-task-appointment-list summary{padding:9px 12px;cursor:pointer;color:#315779;font-weight:650;font-size:12px}.ticket-task-entries[open] summary,.ticket-task-appointment-list[open] summary{border-bottom:1px solid var(--border);background:#fafcff}.ticket-task-entries table{width:100%;border-collapse:collapse;font-size:12px}.ticket-task-entries th,.ticket-task-entries td{text-align:left;padding:9px 12px;border-bottom:1px solid #edf1f5}.ticket-task-entries th{background:#f8fafc;color:#52657d;font-size:11px}.ticket-task-entries th:last-child,.ticket-task-entries td:last-child{text-align:right}.ticket-task-entries tbody tr:last-child td{border-bottom:0}.ticket-task-entries>p{padding:10px 12px;margin:0}.ticket-task-appointment-list ul{padding:5px 12px 8px 28px;margin:0}.ticket-task-appointment-list li{padding:3px 0;font-size:12px}
@media(max-width:1070px){.ticket-task-facts,.ticket-task-entries,.ticket-task-appointment-list{margin-left:2px}}@media(max-width:650px){.ticket-task-facts{align-items:flex-start;flex-direction:column;gap:9px}.ticket-task-entries table{min-width:450px}}
.ticket-contact-create{grid-column:1/-1;align-self:end;margin:0}.ticket-contact-create summary{cursor:pointer;color:#155bc1;font-size:12px;font-weight:700}.ticket-contact-create>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) auto;gap:8px;align-items:end;margin-top:9px;padding:12px;border:1px solid #dce4ed;border-radius:8px;background:#fafcff}.ticket-contact-create label{margin:0}.ticket-contact-create input{width:100%}.ticket-contact-create [data-ticket-contact-message]{grid-column:1/-1;margin:0;font-size:12px;color:#315779}@media(max-width:850px){.ticket-contact-create{grid-column:1/-1}.ticket-contact-create>div{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:580px){.ticket-contact-create>div{grid-template-columns:1fr}}
.ticket-log-changes ul{padding-left:18px;margin:8px 0}.ticket-log-changes li{margin:5px 0;display:grid;grid-template-columns:minmax(110px,150px) minmax(0,1fr);gap:8px}.ticket-log-changes li span{overflow-wrap:anywhere}.ticket-log-summary{color:#64748b;font-size:12px;margin:7px 0}
.ticket-page-actions{margin-left:auto}.ticket-back-button{white-space:nowrap}.ticket-customer-field{position:relative;min-width:0}.ticket-customer-field>label{display:block;color:#42536a;font-size:11px;font-weight:700;margin-bottom:5px}.ticket-customer-field select,.ticket-customer-field input{width:100%}.ticket-customer-field [data-customer-search]{display:none}.ticket-customer-search-ready [data-customer-search]{display:block}.ticket-customer-search-ready select{display:none}.ticket-customer-suggestions{display:none;position:absolute;top:100%;left:0;right:0;z-index:30;max-height:240px;overflow:auto;background:#fff;border:1px solid #bfcbd9;border-radius:7px;box-shadow:0 12px 24px #10223a25;margin-top:3px}.ticket-customer-search-ready .ticket-customer-suggestions:not([hidden]){display:grid}.ticket-customer-suggestions button{border:0;border-bottom:1px solid #edf1f5;background:#fff;color:var(--text);text-align:left;padding:9px 11px;font:inherit;cursor:pointer}.ticket-customer-suggestions button:hover,.ticket-customer-suggestions button:focus{background:#eaf2ff}.ticket-customer-suggestions p{margin:0;padding:10px;color:#64748b;font-size:12px}
.ticket-workspace .comm-compose-first{padding:14px}.ticket-workspace .comm-compose-first .comm-compose-head h2{font-size:15px}.ticket-workspace .comm-recipient-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:8px}.ticket-workspace .comm-recipient-row>label{margin:0}.ticket-workspace .comm-recipient-actions{align-self:end;padding:0 0 1px}.ticket-workspace .comm-editor-toolbar{align-items:center;flex-wrap:wrap;margin-top:10px}.ticket-workspace .comm-editor-toolbar button[data-attach]{padding:0 9px}.ticket-workspace .comm-editor-toolbar input[data-mail-files][hidden]{display:none!important}.ticket-workspace .comm-rich-editor{min-height:125px}.ticket-workspace .comm-compose-foot{flex-wrap:wrap}.ticket-workspace .comm-compose-foot small{flex-basis:100%;color:#64748b}.ticket-workspace .comm-compose-first>form[hidden]{display:none!important}
.ticket-material-add{margin-top:14px}.ticket-material-add-row{display:grid;grid-template-columns:minmax(260px,1fr) 100px 160px auto;align-items:end;gap:10px}.ticket-material-add-row>label,.ticket-material-picker>label{display:block;margin:0;font-size:12px;font-weight:650;color:#42536a}.ticket-material-add-row input,.ticket-material-add-row select{width:100%;margin-top:5px}.ticket-material-add-row>.btn{white-space:nowrap;min-height:36px}.ticket-material-picker{position:relative;min-width:0}.ticket-material-picker [data-material-search]{display:none}.ticket-material-search-ready [data-material-search]{display:block}.ticket-material-search-ready select[name=catalog_id]{display:none}.ticket-material-suggestions{position:absolute;top:100%;left:0;right:0;z-index:35;max-height:260px;overflow:auto;background:#fff;border:1px solid #bfcbd9;border-radius:7px;box-shadow:0 12px 24px #10223a25;margin-top:3px}.ticket-material-suggestions[hidden]{display:none}.ticket-material-suggestions button{display:block;width:100%;border:0;border-bottom:1px solid #edf1f5;background:#fff;color:var(--text);text-align:left;padding:9px 11px;font:inherit;cursor:pointer}.ticket-material-suggestions button:hover,.ticket-material-suggestions button:focus{background:#eaf2ff}.ticket-material-suggestions p{margin:0;padding:10px;color:#64748b;font-size:12px}@media(max-width:900px){.ticket-material-add-row{grid-template-columns:minmax(220px,1fr) 90px 155px}.ticket-material-add-row>.btn{grid-column:3}}@media(max-width:650px){.ticket-material-add-row{grid-template-columns:minmax(0,1fr) 100px}.ticket-material-picker{grid-column:1/-1}.ticket-material-add-row>.btn{grid-column:2}}
.ticket-detail-frame{width:100%;max-width:1500px;margin:0 auto;min-width:0}.ticket-detail-frame .ticket-page-head{align-items:center;margin-bottom:12px}.ticket-detail-frame .ticket-page-head h1{font-size:24px;margin:0}.ticket-detail-frame .ticket-recordline{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin:0 0 14px;padding:10px 13px;border:1px solid var(--border);border-radius:9px;background:#fff;color:#52657d;font-size:12px}.ticket-recordline>strong,.ticket-recordline b{color:var(--text);font-size:13px}.ticket-recordline .ticket-status-badge{margin-left:auto}.ticket-detail-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(360px,390px);gap:16px;align-items:start}.ticket-detail-main,.ticket-detail-side{min-width:0}.ticket-detail-side>#ticket-edit-form{display:contents}.ticket-detail-side .ticket-detail-grid{display:block}.ticket-detail-side .ticket-core-card{padding:16px}.ticket-detail-side .ticket-core-head{margin-bottom:10px}.ticket-detail-side .ticket-core-head h2{font-size:16px}.ticket-detail-side .ticket-core-head p,.ticket-detail-side .ticket-core-head>.ticket-status-badge{display:none}.ticket-detail-side .ticket-fields{padding:0}.ticket-detail-side .ticket-fields .form-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.ticket-detail-side .ticket-fields .form-row>label,.ticket-detail-side .ticket-fields .form-row>.ticket-customer-field{min-width:0;margin:0}.ticket-detail-side .ticket-fields .form-row>.ticket-description-field{grid-column:span 2}.ticket-detail-main .ticket-workspace{margin-top:0}.ticket-detail-side .ticket-billing-top{margin-top:12px!important}@media(max-width:1050px){.ticket-detail-layout{grid-template-columns:minmax(0,1fr)}.ticket-detail-side .ticket-fields .form-row{grid-template-columns:repeat(3,minmax(0,1fr))}.ticket-detail-side .ticket-fields .form-row>.ticket-description-field{grid-column:span 2}}@media(max-width:600px){.ticket-detail-frame .ticket-page-head{align-items:flex-start}.ticket-detail-frame .ticket-page-actions{width:100%}.ticket-detail-frame .ticket-recordline{gap:6px;padding:9px}.ticket-recordline .ticket-status-badge{margin-left:0}.ticket-detail-side .ticket-fields .form-row{grid-template-columns:repeat(2,minmax(0,1fr))}.ticket-detail-side .ticket-fields .form-row>.ticket-description-field{grid-column:span 2}.ticket-detail-layout{gap:12px}}
.ticket-detail-side .ticket-field-section{grid-column:1/-1;margin:8px 0 0;padding:3px 0 7px;border-bottom:1px solid #e5eaf0;color:#728198;font-size:11px;font-weight:750;letter-spacing:.04em;text-transform:uppercase}.ticket-detail-side .ticket-fields .form-row>label,.ticket-detail-side .ticket-fields .form-row>.ticket-customer-field{font-size:12px}.ticket-detail-side .ticket-fields .form-row input:not([type=hidden]),.ticket-detail-side .ticket-fields .form-row select{min-height:38px;padding:8px 10px}.ticket-detail-side .ticket-fields .form-row small{display:block;margin-top:4px;color:#64748b;font-size:11px}.comm-compose-first>form .comm-compose-mode-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}.comm-compose-first>form .comm-compose-mode-head h2{font-size:14px;margin:0}.comm-compose-first>form .comm-compose-mode-head span,.comm-subject-help,.comm-history-head>span{color:#64748b;font-size:11px}.comm-compose-first>form .comm-recipient-row{display:block}.comm-compose-first>form .comm-recipient-row label{display:block;margin:8px 0}.comm-compose-first>form .comm-recipient-actions{display:flex;gap:6px;margin:3px 0 8px;padding:0;align-self:auto}.comm-compose-first>form .comm-subject-field{display:block;margin:9px 0 4px}.comm-subject-field>span,.comm-message-label>span{display:block;color:#4b5563;font-size:12px;font-weight:650;margin-bottom:5px}.comm-compose-first>form .comm-subject-field input{width:100%;min-height:38px;padding:9px 10px;background:#f7f9fc;color:#526178}.comm-subject-help{display:flex;justify-content:space-between;gap:10px;margin:0 0 10px}.comm-compose-first>form .comm-editor-toolbar{display:flex;gap:5px;margin:10px 0 4px}.comm-compose-first>form .comm-message-label{display:block;margin:10px 0 0}.comm-compose-first>form .comm-rich-editor{min-height:160px;padding:12px;line-height:1.5}.comm-attachments-row{display:flex;align-items:center;gap:9px;margin-top:10px}.comm-attachments-row .comm-file-list{flex:1}.comm-compose-first>form .comm-compose-foot{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-top:12px}.comm-compose-first>form .comm-compose-foot small{flex-basis:100%;order:2;color:#64748b;font-size:11px}.comm-compose-first>form .comm-compose-foot p{flex-basis:100%;order:3}.comm-history-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.ticket-workspace .comm-history-head h2{margin:0;font-size:15px}
.comm-compose-first input[data-mail-files][hidden]{display:none!important}
.comm-attachments-row{flex-wrap:wrap}
.ticket-contact-info{grid-column:1/-1;font-size:12px;line-height:1.6;color:#42536a;overflow-wrap:anywhere;margin:0 0 6px}
.ticket-contact-info:empty{display:none}
.ticket-contact-info span{color:#64748b}
.ticket-contact-info a{color:var(--accent);text-decoration:none}
.ticket-contact-info a:hover,.ticket-contact-info a:focus-visible{text-decoration:underline}
.comm-attachments-row [data-send-message]{margin-left:auto}
.comm-attachments-row .comm-file-list{order:1;flex:1 0 100%}
.comm-attachments-row .comm-file-list:empty{display:none}
.ticket-detail-side .ticket-contact-create>div{grid-template-columns:minmax(0,1fr)}
.ticket-detail-side .ticket-contact-create label{min-width:0}
.comm-compose-first>form .comm-recipient-value{background:#f1f3f5;color:#526178;cursor:default;opacity:1}
.ticket-direct-time{display:grid;gap:12px;margin-bottom:16px;padding-bottom:14px;border-bottom:1px solid var(--border)}.ticket-direct-time .ticket-task-create{margin:0}.ticket-direct-time-fields{display:flex;gap:10px;align-items:end;flex-wrap:wrap}.ticket-direct-time-fields label{display:grid;gap:5px;margin:0;flex:1 1 140px;font-size:12px}.ticket-direct-time-fields input,.ticket-direct-time-fields select{width:100%;min-width:0}.ticket-direct-time-fields label:nth-child(4){flex:0 1 85px}.ticket-direct-entries summary{cursor:pointer;margin-bottom:8px;font-weight:650}.ticket-direct-entries table{width:100%;font-size:12px}
.ticket-material-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.ticket-material-actions form{display:flex;align-items:center;gap:5px;margin:0;flex-wrap:wrap}.ticket-material-actions input[type=number]{width:58px;min-width:0}
