.crm-toolbar{display:flex;align-items:end;gap:12px;flex-wrap:wrap;padding:18px;background:#fff;border:1px solid #e5e3de;border-radius:16px;margin:12px 0}.crm-toolbar .crm-field:first-child{flex:1;min-width:210px}.crm-toolbar .crm-field{min-width:110px;margin:0}.crm-field{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:600;color:#676862;min-width:0}.crm-field input,.crm-field select,.crm-field textarea{width:100%;box-sizing:border-box;border:1px solid #dedfd9;border-radius:9px;padding:10px 12px;font:inherit;font-size:14px;background:white;color:#252922}.crm-field input[type=checkbox]{width:auto;align-self:start}.crm-field input:disabled,.crm-field textarea:disabled{background:#f4f4f1;color:#656b60}.crm-list-meta{font-size:12px;color:#787d73;margin:14px 2px}.crm-table-wrap{border:1px solid #e5e3de;border-radius:14px;overflow:auto;background:#fff}.crm-table{width:100%;border-collapse:collapse;font-size:13px;min-width:930px}.crm-table th{text-align:left;background:#f7f8f4;color:#71776c;font-size:11px;text-transform:uppercase;letter-spacing:.04em;padding:14px;white-space:nowrap;position:sticky;top:0}.crm-table td{padding:14px;border-top:1px solid #edf0e8;vertical-align:top}.crm-table tr:hover td{background:#fafbf8}.crm-table small{display:block;color:#7a8074;font-size:11px;margin-top:5px}.crm-row-link{border:0;background:none;padding:0;font:inherit;font-weight:750;color:#242c21;cursor:pointer;text-align:left}.crm-row-link:hover{text-decoration:underline}.crm-client-name{display:block;font-size:12px;margin-top:7px;font-weight:500}.crm-product-line{margin:0 0 5px;max-width:220px}.crm-badge{display:inline-block;border-radius:7px;padding:5px 8px;background:#f0f2ed;font-size:11px;font-weight:650;white-space:nowrap}.crm-badge.paid,.crm-badge.received,.crm-badge.delivered{background:#e6f3e9;color:#337043}.crm-badge.partial,.crm-badge.materials{background:#fff2d9;color:#9a6b16}.crm-badge.unpaid,.crm-badge.missing{background:#faeae6;color:#a45d45}.crm-badge.production,.crm-badge.packed{background:#e8edf8;color:#496488}.crm-money{display:block;margin-top:9px;white-space:nowrap;font-size:13px}.crm-pager{display:flex;justify-content:flex-end;gap:10px;margin:14px 0}.crm-empty{text-align:center;padding:40px!important;color:#7d8377}.crm-dialog{width:min(1000px,94vw);max-height:92vh;box-sizing:border-box;padding:0 24px 24px;border:1px solid #dce1d5;border-radius:20px;color:#292e25;background:#fafbf8;box-shadow:0 24px 90px #0003}.crm-dialog::backdrop{background:#1e261c66;backdrop-filter:blur(3px)}.crm-dialog-top{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:20px 0;position:sticky;top:0;background:#fafbf8;z-index:2}.crm-dialog-top h2{font-size:20px;margin:0}.crm-form-section{background:#fff;border:1px solid #e4e7df;border-radius:13px;padding:18px;margin-bottom:16px}.crm-form-section h3{font-size:14px;margin:0 0 16px}.crm-form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.crm-span-all{grid-column:1/-1}.crm-item{background:#fafbf8;border:1px solid #e6e9e0;border-radius:10px;padding:13px}.crm-item .text-button{margin-top:10px}.crm-save-bar{display:flex;gap:10px;padding:12px 0 22px}.crm-inline-actions{display:flex;gap:8px;margin:14px 0;flex-wrap:wrap}.crm-order-link{display:block;width:100%;text-align:left;padding:12px;border:1px solid #e1e5db;background:#fff;border-radius:8px;margin-top:8px;cursor:pointer}.crm-payment-row{display:flex;gap:10px;align-items:center;flex-wrap:wrap;border-bottom:1px solid #ecefe6;padding:10px 0;margin-bottom:10px}.crm-payment-row span{flex:1;min-width:230px;font-size:13px}#mfa-recovery{font-size:13px;line-height:1.6;background:#f3f5ee;padding:12px;border-radius:8px}#mfa-error{color:#b63c33}#mfa-enrollment p{font-size:13px;line-height:1.5}#mfa-enrollment label{font-size:13px}#clients-view[hidden],#orders-view[hidden]{display:none}@media(max-width:750px){.crm-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.crm-dialog{padding:0 12px 16px;width:98vw;max-height:96vh}.crm-toolbar{gap:8px;padding:12px}.crm-toolbar .crm-field{flex:1;min-width:130px}.crm-dialog-top h2{font-size:17px}.crm-form-section{padding:13px}.crm-table{font-size:12px}.crm-table td,.crm-table th{padding:11px}}@media(max-width:440px){.crm-form-grid{grid-template-columns:1fr}}
.crm-dialog-error{background:#fff0e9;color:#8b3929;border:1px solid #e9c2b4;border-radius:10px;padding:12px 16px;margin-bottom:16px;font-size:14px}.crm-field{margin-top:0}.crm-field input,.crm-field select,.crm-field textarea{margin-top:0}#clients-view .crm-table{min-width:710px}.crm-table th:first-child,.crm-table td:first-child{position:sticky;left:0;background:#fff;min-width:155px;z-index:1}.crm-table th:first-child{background:#f7f8f4;z-index:2}@media(max-width:720px){.sidebar{flex-wrap:wrap;gap:10px}.sidebar nav{width:100%;overflow-x:auto;margin-left:0}.sidebar .nav{flex-shrink:0;width:auto;white-space:nowrap}main{padding-top:18px}.crm-table td:first-child{min-width:125px}}
.crm-dialog-header{position:sticky;top:0;z-index:4;background:#fafbf8;padding-bottom:12px}.crm-dialog-header .crm-dialog-top{position:static;padding:18px 0 14px}.crm-order-summary{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;background:#fff;border:1px solid #e4e7df;border-radius:12px;padding:15px;margin:0 0 14px}.crm-order-summary dt{font-size:10px;color:#788174;margin-bottom:7px;text-transform:uppercase;letter-spacing:.04em}.crm-order-summary dd{font-size:14px;font-weight:650;color:#2d382a;margin:0;white-space:normal}.crm-section-nav{display:flex;gap:5px;overflow:auto;padding:3px;background:#edf1e8;border-radius:10px}.crm-section-button{background:transparent;color:#65725c;border-radius:8px;white-space:nowrap;padding:10px 13px;font-size:12px;font-weight:600}.crm-section-button.active{background:#fff;color:#244e39;box-shadow:0 1px 4px #253c2514}.crm-dialog>.crm-save-bar{position:sticky;bottom:-24px;z-index:3;justify-content:flex-end;align-items:center;border-top:1px solid #dfe5d8;background:#fafbf8;padding:14px 0;margin-top:10px}.crm-dialog>.crm-save-bar .primary{order:2;min-width:170px}.crm-dialog>.crm-save-bar .secondary{margin-right:auto}.crm-dialog>.crm-save-bar .primary:focus-visible{outline:3px solid #7da88e}.crm-form-grid{align-items:start}.crm-form-section .hint{margin-top:0}@media(min-width:1100px){main{max-width:none;padding:28px 30px 20px}.crm-dialog{width:min(1320px,94vw);height:90vh;max-height:90vh}.crm-dialog:not([open]){display:none}.crm-dialog>.crm-save-bar{margin-top:22px}.crm-toolbar{gap:10px;padding:14px}.crm-toolbar .crm-field{min-width:105px}.crm-table td,.crm-table th{padding:13px 15px}.crm-table td{line-height:1.4}.crm-dialog-top h2{font-size:22px}}@media(max-width:750px){.crm-order-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;padding:12px}.crm-order-summary dd{font-size:12px}.crm-section-button{padding:9px 11px}.crm-dialog>.crm-save-bar{bottom:-16px}.crm-dialog-header{padding-bottom:8px}}
.crm-order-dialog[open]{display:flex;flex-direction:column;height:90vh;overflow:hidden;padding-bottom:0}.crm-order-dialog .crm-dialog-header{position:static;flex-shrink:0}.crm-dialog-body{min-height:0;flex:1;overflow:auto;padding:1px 2px 12px;scrollbar-gutter:stable}.crm-order-dialog>.crm-save-bar{position:static;flex-shrink:0;margin:0;padding:14px 0;background:#fafbf8}.crm-order-dialog>.crm-dialog-header{padding-bottom:12px}
