.crm-contact-panel { margin: -2px 0 23px; padding-bottom: 20px; border-bottom: 1px solid #2b3e42; }
.crm-contact-panel[hidden], .crm-editor-actions button[hidden], .crm-customer-orders[hidden] { display: none; }
.crm-eyebrow { color: #69aa8e; letter-spacing: .1em; font-size: 10px; }
.crm-editor-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 5px; margin-bottom: 8px; }
.crm-linked-count { color: #8ea9a1; font-size: 10px; font-weight: 400; }
.crm-customer-phone { color: #a8c5b6; font-size: 11px; margin-bottom: 7px; }
.crm-links { color: #7d9894; font-size: 10px; line-height: 1.7; margin-bottom: 12px; }
.crm-link-row { padding: 2px 0; overflow-wrap: anywhere; }
.crm-fields { padding: 0; margin: 0; border: 0; background: transparent; display: grid; gap: 11px; }
.crm-field { display: flex; flex-direction: column; gap: 5px; margin: 0; min-width: 0; font-size: 11px; color: #9fb8b3; }
.crm-field input, .crm-field select, .crm-field textarea { box-sizing: border-box; width: 100%; min-width: 0; margin: 0; padding: 8px 9px; background: #1c3036; border: 1px solid #344c50; border-radius: 6px; color: #deebe4; font-size: 12px; line-height: 1.5; outline: none; }
.crm-field textarea { resize: vertical; min-height: 85px; }
.crm-field input:focus, .crm-field select:focus, .crm-field textarea:focus { border-color: #398768; }
.crm-field input:disabled, .crm-field select:disabled, .crm-field textarea:disabled { opacity: .8; color: #aabeb8; border-color: #293f44; background: #14292f; }
.crm-field input[readonly], .crm-field textarea[readonly] { color: #a4b7ad; background: #182b2f; border-style: dashed; }
.crm-protected-note { margin: 6px 0 12px; color: #c0b18c; font-size: 10px; line-height: 1.8; }
.crm-protected-note[hidden] { display: none; }
.crm-save-state { font-size: 10px; color: #7fa996; line-height: 1.8; margin: 10px 0 7px; }
.crm-save-state.crm-error, .crm-error { color: #d3a48e; }
.crm-save-state.crm-conflict { color: #dfbd7c; }
.crm-editor-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.crm-editor-actions button { padding: 6px 10px; background: #1c4939; border: 1px solid #2d6650; border-radius: 5px; color: #b3d7c4; font-size: 10px; }
.crm-editor-actions .crm-reload { color: #dec38e; border-color: #715f3e; background: #453d2c; }
.crm-editor-actions button:disabled { opacity: .4; cursor: default; }
.crm-metadata { color: #607f7a; font-size: 9px; line-height: 1.8; margin: 10px 0 0; }
.crm-empty { padding: 13px 0; margin: 0; color: #879f9b; font-size: 12px; line-height: 1.8; }
.crm-customer-orders { border-top: 1px solid #334749; margin-top: 18px; padding-top: 8px; }
.crm-customer-orders h4 { color: #b1c8be; font-size: 12px; font-weight: 500; }
.crm-order-row { color: #8fa9a2; font-size: 11px; line-height: 1.7; }
.crm-directory { box-sizing: border-box; padding: 0; width: min(1060px, calc(100vw - 40px)); height: min(790px, calc(100dvh - 50px)); max-width: none; max-height: none; border: 1px solid #344b50; border-radius: 12px; background: #101f26; color: #d9e7df; box-shadow: 0 20px 80px #0008; }
.crm-directory::backdrop { background: #041017ba; }
.crm-directory[open] { display: flex; flex-direction: column; }
.crm-directory-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 23px; background: #1b3037; border-bottom: 1px solid #2c4248; flex-shrink: 0; }
.crm-directory h2 { margin: 5px 0 0; color: #e1eee5; font-size: 20px; font-weight: 500; }
.crm-close { color: #a6c2b6; background: transparent; border: 0; font-size: 27px; padding: 2px 8px; }
.crm-directory-tools { display: flex; gap: 12px; padding: 14px 20px; border-bottom: 1px solid #293e43; flex-shrink: 0; }
.crm-directory-tools input, .crm-directory-tools select { margin: 0; padding: 9px 12px; font-size: 12px; border: 1px solid #354f53; border-radius: 7px; color: #c5d9ce; background: #1c3038; min-width: 0; }
.crm-directory-tools input { flex: 1; }
.crm-directory-body { display: grid; grid-template-columns: 310px minmax(0,1fr); flex: 1; min-height: 0; }
.crm-directory-index { display: flex; flex-direction: column; min-height: 0; min-width: 0; border-right: 1px solid #2d4348; }
.crm-directory-list { flex: 1; overflow: auto; min-height: 0; padding: 10px; }
.crm-directory-pages { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; padding: 10px; border-top: 1px solid #2d4348; flex-shrink: 0; }
.crm-page-range { grid-column: 1 / -1; color: #849f94; font-size: 10px; line-height: 1.6; text-align: center; }
.crm-directory-pages button { margin: 0; padding: 7px 4px; border: 1px solid #34554c; border-radius: 5px; background: #1c3b32; color: #b7d1c2; font-size: 11px; }
.crm-directory-pages button:disabled { opacity: .35; cursor: default; }
.crm-list-count { display: block; padding: 5px 9px 9px; color: #708d84; font-size: 10px; }
.crm-customer-row { display: flex; flex-direction: column; gap: 6px; width: 100%; text-align: left; padding: 13px 11px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: #c4d8cb; }
.crm-customer-row:hover { background: #1e353b; }
.crm-customer-row.active { border-color: #315c4b; background: #1b3d34; }
.crm-customer-row strong { font-size: 13px; font-weight: 500; }
.crm-customer-row span { color: #8eaaa1; font-size: 11px; }
.crm-customer-row small { color: #6f9183; font-size: 10px; }
.crm-customer-row .crm-list-phone { color: #9dbbae; font-variant-numeric: tabular-nums; }
.crm-directory-detail { overflow: auto; min-height: 0; padding: 22px 28px; }
.crm-directory-detail .crm-fields { grid-template-columns: 1fr 1fr; gap: 14px; }
.crm-directory-detail .crm-field:nth-child(6) { grid-column: 1 / -1; }
.crm-directory-detail .crm-editor-heading { margin-bottom: 12px; }
@media(max-width:720px) { .crm-directory { width: calc(100vw - 14px); height: calc(100dvh - 18px); }.crm-directory-head{padding:14px 16px}.crm-directory-tools{padding:11px;gap:8px}.crm-directory-body{grid-template-columns:130px minmax(0,1fr)}.crm-directory-detail{padding:16px 12px}.crm-directory-detail .crm-fields{grid-template-columns:1fr}.crm-directory-detail .crm-field:nth-child(6){grid-column:auto}.crm-customer-row{padding:11px 7px}.crm-customer-row strong{font-size:12px}.crm-customer-row span{font-size:10px} }
