#crm{max-width:1050px;margin:auto;padding:24px}#crm section,#crm details{background:white;border:1px solid #dae1df;padding:18px;border-radius:12px;margin:12px 0}#crm summary{cursor:pointer;font-weight:bold}#crm nav{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0}#crm nav button[aria-current=true]{background:#155e52;color:white}#crm label{display:grid;gap:5px;margin:10px 0}#crm textarea{min-height:5em}#crm p{white-space:pre-line;overflow-wrap:anywhere}#crm .line{border-top:1px solid #ddd;padding:12px 0}#crm form{max-width:680px}#crm h1{font-size:1.7rem}header a{color:inherit}
#crm .cf-editor{background:#f5f8f7;border-color:#bbd4cd}#crm .cf-editor>small{color:#236358}#crm .cf-editor form{max-width:100%}#crm .cf-editor fieldset{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 22px;padding:20px;margin:18px 0;border:1px solid #d3e0da;border-radius:14px;background:white}#crm .cf-editor legend{font-weight:bold;color:#155b50;padding:0 8px}#crm .cf-editor fieldset>p,#crm .cf-editor output{grid-column:1/-1}#crm .cf-editor input,#crm .cf-editor select,#crm .cf-editor textarea{width:100%}#crm .cf-editor output{color:#20665b}#crm .cf-preview{border-inline-start:4px solid #267565;line-height:1.9}.cf-date{position:relative;margin-block:6px}.cf-date>button{width:100%;text-align:start;background:#e7f1ee;color:#19483f}.cf-picker{max-width:340px;background:#fff;border:1px solid #aac9bf;border-radius:12px;padding:12px;margin-top:6px}.cf-picker-head{display:flex;gap:5px}.cf-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:2px;text-align:center;margin:8px 0}#crm .cf-days button{background:#eff5f3;color:#133f35;padding:6px 1px}.cf-days button[aria-pressed=true]{outline:2px solid #266756}#crm input[type=hidden]{display:none}@media(max-width:620px){#crm .cf-editor fieldset{grid-template-columns:1fr;padding:12px}}
#crm .profile-form{max-width:none}#crm .profile-form fieldset{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 20px;border:1px solid #d4e2dd;border-radius:12px;padding:16px;margin:16px 0;background:#fafcfb}#crm .profile-form legend{font-weight:bold;color:#17594f;padding-inline:8px}#crm .profile-form input,#crm .profile-form select,#crm .profile-form textarea{width:100%;box-sizing:border-box}#crm .profile-save{position:sticky;bottom:8px;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 16px;background:white;border:1px solid #c5d6d0;border-radius:12px;box-shadow:0 4px 16px #173f3914}#crm .profile-save button:disabled{opacity:.55}@media(max-width:600px){#crm .profile-form fieldset{grid-template-columns:1fr}}
#crm .ticket-topics{display:grid;grid-template-columns:repeat(auto-fit,minmax(165px,1fr));gap:10px}#crm .ticket-topics button{background:#eff5f2;color:#173f38;text-align:start;padding:14px;border:1px solid #bfcec6}#crm .ticket-topics button[aria-pressed=true]{background:#155b50;color:white}#crm .ticket-topics small{display:block;font-weight:normal;margin-top:5px}.ticket-msg{border-inline-start:3px solid #bbcec7;padding:8px 16px;margin:14px 0;background:#f8faf9}.ticket-msg.staff{border-color:#177665;background:#edf6f4}#crm .cf-editor>textarea{width:100%;min-height:18em;line-height:1.9}
.crm-print-sheet{display:none}@media print{@page{size:A4;margin:18mm}body:has(>.crm-print-sheet)>:not(.crm-print-sheet){display:none!important}body:has(>.crm-print-sheet){display:block!important;background:white!important}.crm-print-sheet{display:block;color:#111;direction:rtl;text-align:right;font:12pt/1.85 Tahoma,sans-serif}.crm-print-sheet header{display:block;background:none;color:#17493e;padding:0}.crm-print-sheet h1{font-size:18pt}.crm-print-sheet p{white-space:pre-wrap;overflow-wrap:anywhere;margin:.3em 0;orphans:2;widows:2}}
