.crm-nav{display:flex;flex-wrap:wrap;gap:1.4rem;align-items:center;padding:1rem 2rem;background:#303238;color:#fff;font:15px system-ui}.crm-nav a{color:#fff;text-decoration:none}.crm-nav span{margin-left:auto}.crm-nav form{margin:0}.crm-main{max-width:1100px;margin:2rem auto;padding:1.5rem;font:16px/1.6 system-ui;color:#303238;background:#fff;border-radius:14px}.crm-heading,.crm-actions{display:flex;justify-content:space-between;align-items:center;gap:1rem}.crm-main a{color:#b84709}.crm-main button,.crm-button,.crm-nav button{display:inline-block;background:#b84709;color:white!important;border:0;border-radius:6px;padding:.65rem 1rem;cursor:pointer;text-decoration:none;font:inherit}.crm-main input,.crm-main textarea,.crm-main select{box-sizing:border-box;border:1px solid #c9cdd2;border-radius:6px;padding:.65rem;font:inherit;width:100%;background:white;color:#303238}.crm-form{display:grid;gap:.6rem;max-width:720px}.crm-form label{font-weight:600;margin-top:.5rem}.crm-search{display:flex;gap:.7rem;align-items:center;margin:1rem 0}.crm-search input{max-width:400px}.crm-table{overflow-x:auto}.crm-table table{width:100%;border-collapse:collapse}.crm-table td,.crm-table th{padding:.8rem;text-align:left;border-bottom:1px solid #e2e4e8}.crm-details{display:grid;grid-template-columns:150px 1fr;gap:.8rem}.crm-details dt{font-weight:600}.crm-details dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.crm-errors{padding:1rem;background:#fff0ec;color:#8b2c16;border-radius:6px}.crm-preview-note{margin:1rem 2rem;font:14px system-ui;color:#5b6068}@media(max-width:650px){.crm-main{margin:.5rem}.crm-search{flex-wrap:wrap}.crm-nav{gap:.8rem;padding:1rem}.crm-details{grid-template-columns:1fr}.crm-heading{flex-wrap:wrap}}

input::placeholder { color: #737b87; opacity: 1; }
#company-suggestions { padding: 0.75rem; border: 1px solid #c9ced6; border-radius: 0.4rem; }
#company-suggestions ul { margin: 0.4rem 0; padding-left: 1.5rem; }
#company-suggestions a { display: inline-block; padding: 0.35rem 0; }

.crm-workspace-heading { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:24px; }
.crm-workspace-heading h1 { font-size:32px; letter-spacing:-1px; margin:0 0 8px; }
.crm-workspace-heading .eyebrow { margin-bottom:8px; }
.crm-workspace-heading .crm-button { white-space:nowrap; }
.crm-subtitle { margin:0; color:#66707b; font-size:14px; }
.crm-section-tabs { display:flex; gap:24px; border-bottom:1px solid #d9dde2; margin-bottom:20px; }
.crm-section-tabs a { padding:10px 0; text-decoration:none; color:#59636e; }
.crm-section-tabs a[aria-current="page"] { color:var(--brand-grey); border-bottom:3px solid var(--brand-orange); font-weight:700; }
.crm-search-panel { display:flex; flex-wrap:wrap; align-items:end; gap:12px; padding:16px; border:1px solid #e0e4e8; border-radius:8px; background:#f8f9fa; }
.crm-search-panel label { display:block; font-size:12px; font-weight:600; margin-bottom:6px; }
.crm-search-query { flex:1; min-width:160px; }
.crm-search-panel > button, .crm-search-panel > a { margin-bottom:2px; }
.crm-search-panel #search-help { width:100%; margin:0; color:#66707b; font-size:12px; }
.crm-search-panel #company-suggestions { width:100%; }
.crm-results-bar { display:flex; justify-content:space-between; align-items:center; gap:12px; margin:20px 0; }
.crm-results-bar p { margin:0; font-size:13px; color:#66707b; }
.crm-view-switch { display:flex; gap:2px; padding:3px; border:1px solid #d9dde2; border-radius:6px; }
.crm-view-switch a { padding:5px 12px; font-size:13px; text-decoration:none; color:var(--brand-grey); border-radius:4px; }
.crm-view-switch a[aria-current="page"] { background:var(--brand-grey); color:white; }
.crm-record-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr)); gap:16px; }
.crm-record-card { display:flex; gap:14px; border:1px solid #d9dde2; border-radius:8px; padding:20px; min-width:0; }
.crm-record-card:hover { border-color:var(--brand-grey); }
.crm-record-avatar { display:grid; place-items:center; flex-shrink:0; width:42px; height:42px; border-radius:8px; background:#f0f2f4; color:var(--brand-grey); font-weight:700; font-size:22px; }
.crm-record-body { min-width:0; overflow-wrap:anywhere; }
.crm-record-body h2 { margin:0 0 8px; font-size:17px; line-height:1.4; }
.crm-record-body h2 a { color:var(--brand-grey); text-decoration:none; }
.crm-record-body h2 a:hover { text-decoration:underline; }
.crm-record-body p { margin:5px 0; font-size:13px; color:#59636e; }
.crm-type-badge { display:inline-block; padding:2px 8px; background:#f0f2f4; border-radius:4px; font-size:12px; text-transform:capitalize; }
.crm-table th { background:#f8f9fa; font-size:13px; color:#59636e; }
.crm-table tbody tr:hover { background:#fafbfc; }
.crm-empty { padding:40px 20px; text-align:center; border:1px dashed #d9dde2; border-radius:8px; }
.crm-empty h2 { font-size:22px; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
@media(max-width:650px) { .crm-workspace-heading { flex-wrap:wrap; } .crm-search-panel > div { width:100%; } .crm-results-bar { flex-wrap:wrap; } }

.settings-heading { border-bottom:1px solid #d9dde2; padding-bottom:20px; margin-bottom:24px; }
.settings-heading h1 { font-size:32px; margin:0 0 8px; letter-spacing:-1px; }
.settings-heading .eyebrow { margin-bottom:8px; }
.settings-heading p:last-child { margin:0; color:#66707b; font-size:14px; }
.settings-workspace { display:grid; grid-template-columns:190px minmax(0,1fr); gap:28px; align-items:start; }
.settings-categories { display:flex; flex-direction:column; align-items:stretch; gap:4px; }
.settings-categories a { display:block; padding:12px; border-radius:5px; text-decoration:none; font-size:14px; color:var(--brand-grey); }
.settings-categories a:hover { background:#f0f2f4; }
.settings-categories a[aria-current="page"] { background:#fff0e3; border-left:3px solid var(--brand-orange); font-weight:700; }
.settings-panel { min-width:0; border-left:1px solid #d9dde2; padding-left:28px; }
.settings-panel .settings-section-title { font-size:23px; margin:0 0 8px; }
.settings-description { font-size:13px; color:#66707b; margin:0 0 16px; }
.settings-panel .branding-form { max-width:none; }
.settings-panel .branding-form h2 { font-size:17px; border-bottom:1px solid #e0e4e8; padding-bottom:10px; margin:24px 0 8px; }
.settings-panel .branding-preview img { max-height:160px; }
.settings-actions { display:flex; flex-wrap:wrap; gap:18px; align-items:center; margin-top:20px; border-top:1px solid #d9dde2; padding:16px 0; }
.settings-actions a { font-size:14px; }
.settings-info { border:1px solid #e0e4e8; border-radius:6px; padding:18px; margin:20px 0; }
.settings-info h3 { font-size:16px; margin:0 0 8px; }
.settings-info p { font-size:14px; }
@media(max-width:1100px) { .settings-workspace { grid-template-columns:minmax(0,1fr); gap:20px; } .settings-categories { flex-direction:row; flex-wrap:wrap; } .settings-panel { border-left:0; padding-left:0; } }

.chart-gifi-table table { min-width:1100px; }
.chart-gifi-table td { vertical-align:top; }
.chart-gifi-table [data-gifi-input] { min-width:190px; }
.chart-gifi-table [data-gifi-definition] { min-width:260px; max-width:420px; overflow-wrap:anywhere; }
.chart-gifi-table [data-gifi-definition] p { white-space:pre-line; font-size:14px; }
.account-card-toolbar { display:flex; gap:1.5rem; align-items:center; color:#657180; font-size:14px; flex-wrap:wrap; }
.account-card-paging { display:flex; gap:1rem; margin-left:auto; }
.account-card h1 { font-size:34px; font-weight:400; margin:1.25rem 0; }
.account-card-layout { display:grid; grid-template-columns:minmax(0,2fr) minmax(250px,1fr); gap:1.5rem; align-items:start; }
.account-card h2 { font-size:18px; padding-bottom:.5rem; border-bottom:1px solid #c9cdd2; margin-top:0; }
.account-card-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem 1.5rem; }
.account-card-field { display:grid; gap:.3rem; align-content:start; }
.account-card-field label { font-size:14px; color:#47535f; }
.account-card-field input[readonly] { background:#f3f5f6; }
.account-card-save { grid-column:1/-1; }
.account-card-save p,.account-card-note { font-size:13px; color:#657180; }
.account-card-summary { display:grid; gap:1rem; }
.account-card-summary section { padding:1rem; border:1px solid #dfe3e7; border-radius:8px; }
.account-card-summary form { display:grid; gap:.5rem; }
.account-card-balance { font-size:26px; margin:.4rem 0 1rem; font-variant-numeric:tabular-nums; }
.account-card-summary [data-gifi-definition] p { white-space:pre-line; font-size:14px; }
.account-card-saved { color:#22674a; background:#edf8f2; padding:.6rem 1rem; border-radius:6px; }
@media(max-width:1000px) { .account-card-layout { grid-template-columns:1fr; } }
@media(max-width:600px) { .account-card-fields { grid-template-columns:1fr; } .account-card h1 { font-size:27px; } }

.chart-gifi-table table { min-width:1600px; }
.chart-gifi-table .account-amount { text-align:right; white-space:nowrap; font-variant-numeric:tabular-nums; }
.accounting-account-list .account-amount { text-align:right; white-space:nowrap; font-variant-numeric:tabular-nums; }
.accounting-account-list td { vertical-align:top; }
