:root{font-family:Inter,"Segoe UI",Arial,sans-serif;color:#243348;background:#f4f6f9;font-size:13px;font-synthesis:none}*{box-sizing:border-box}body{margin:0;line-height:1.45}a{color:inherit;text-decoration:none}a:hover{text-decoration:none}button,input,select,textarea{font:inherit}button{cursor:pointer}input,select,textarea{outline:none}input:focus,select:focus,textarea:focus{border-color:#c97d39!important;box-shadow:0 0 0 3px rgba(235,144,61,.12)}h1,h2,h3,p{margin-top:0}.app-shell{display:flex;min-height:100vh}.sidebar{width:218px;flex:0 0 218px;background:#17263a;color:#d5dfeb;min-height:100vh;position:sticky;top:0;height:100vh;display:flex;flex-direction:column;padding:24px 14px 16px}.brand{display:flex;gap:11px;align-items:center;padding:1px 9px 29px;color:white;letter-spacing:1.3px;font-weight:850;font-size:20px}.brand-mark{height:36px;width:36px;border-radius:10px;background:#e68a3f;display:inline-flex;align-items:center;justify-content:center;font-size:25px;font-weight:900;color:#152338;flex:none}.brand small{display:block;color:#91a2b8;font-size:10px;font-weight:600;letter-spacing:1.1px;margin-top:-3px}.nav-caption{padding:3px 13px 11px;font-size:9px;color:#8395ad;letter-spacing:1.4px;font-weight:750}.side-nav{display:flex;flex-direction:column;gap:4px}.side-nav a{display:flex;align-items:center;gap:12px;padding:11px 12px;border-radius:8px;color:#c5d0dc;font-weight:600;font-size:12px}.side-nav a span{font-size:18px;color:#95a6ba;width:20px;text-align:center;line-height:1}.side-nav a:hover{background:#243650}.side-nav a.selected{background:#304056;color:#fff;box-shadow:inset 3px 0 #ed9242}.side-nav a.selected span{color:#ef9d51}.sidebar-bottom{margin-top:auto;border-top:1px solid #38465a;padding-top:17px}.identity{display:flex;gap:9px;align-items:center;padding:0 6px 13px}.avatar{width:34px;height:34px;border-radius:50%;background:#51637c;color:white;display:grid;place-items:center;font-weight:800}.identity-detail{min-width:0}.identity strong,.identity small{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.identity strong{color:#f8fafc;font-size:12px}.identity small{color:#a6b3c5;font-size:10px}.logout{border:0;background:transparent;color:#d2dbe7;padding:8px 9px;font-weight:600;text-align:left;width:100%;border-radius:6px}.logout:hover{background:#2a3a50}.main{min-width:0;flex:1}.top-bar{background:white;height:56px;border-bottom:1px solid #e7eaef;display:flex;align-items:center;justify-content:space-between;padding:0 28px}.crumb{color:#6b798c;font-weight:650;font-size:12px}.crumb span{color:#b3bac4;margin:0 9px}.top-date{font-size:11px;color:#8290a1;display:flex;align-items:center;gap:9px}.server-indicator{height:7px;width:7px;border-radius:50%;background:#43ae7e}.content{padding:27px 28px 50px;max-width:1650px;margin:auto}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:22px}.eyebrow{letter-spacing:1.5px;font-size:10px;font-weight:800;color:#c47b41;margin-bottom:4px}h1{font-size:25px;line-height:1.25;letter-spacing:-.5px;margin-bottom:4px;color:#1e3047}h2{font-size:15px;letter-spacing:-.1px;color:#25374e;margin-bottom:0}h3{font-size:15px;color:#24354b}.subheading,.muted{color:#8290a2;margin:0;font-size:12px}.btn{border:1px solid transparent;display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:9px 14px;border-radius:7px;font-weight:750;font-size:12px;white-space:nowrap;min-height:35px}.btn.primary{background:#d88137;border-color:#ce7633;color:white}.btn.primary:hover{background:#c46e26}.btn.dark{background:#263950;color:white}.btn.ghost{background:#fff;border-color:#dfe4eb;color:#546378}.btn.subtle{background:#f4f8fb;border-color:#dfe5ec;color:#466078}.btn.small{padding:6px 9px;min-height:29px;font-size:11px}.btn.full{width:100%}.btn.danger-outline{color:#b14444;border-color:#e9cbcb;background:#fff}.btn:hover{filter:brightness(.97)}.metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:22px}.metric-card,.panel{background:#fff;border:1px solid #e7eaf0;border-radius:10px;box-shadow:0 2px 8px rgba(24,43,66,.025)}.metric-card{padding:19px 19px 16px;border-top:3px solid #dfebf1}.metric-card span,.metric-card small{display:block;color:#8794a5}.metric-card span{font-size:12px;font-weight:600}.metric-card strong{display:block;font-size:30px;line-height:1.6;color:#24374d;font-weight:800}.metric-card small{font-size:10px}.metric-card.danger-metric{border-top-color:#d74b47}.metric-card.danger-metric strong{color:#c8413c}.panel-heading{padding:20px 20px 16px;display:flex;justify-content:space-between;align-items:center;gap:15px}.panel-heading .muted{margin-top:3px}.link{font-size:12px;color:#c97b38;font-weight:750}.table-wrap{overflow-x:auto}table{border-collapse:collapse;width:100%;text-align:left;font-size:12px}thead{background:#f8fafc}th{color:#8290a2;font-size:10px;letter-spacing:.25px;text-transform:uppercase;font-weight:800;white-space:nowrap}th,td{padding:12px 15px;border-top:1px solid #edf0f4;vertical-align:middle}td{color:#4b596d}tr:hover td{background:#fbfcfe}.table-panel table{min-width:920px}.entity-link{color:#243a55;font-weight:800}.entity-link:hover{color:#bd7032}.cell-secondary{display:block;color:#9aa6b6;font-size:10px;margin-top:2px}.nowrap{white-space:nowrap}.col-industry{max-width:240px}.count-pill{display:inline-flex;align-items:center;vertical-align:middle;background:#f0f3f6;color:#8a96a5;border-radius:15px;padding:3px 9px;font-size:11px;font-weight:700}.status-badge{border-radius:6px;display:inline-flex;padding:4px 8px;white-space:nowrap;font-size:10px;font-weight:750}.status-open{background:#e9f1fa;color:#54799c}.status-won{background:#e6f6ee;color:#27855c}.status-dead{background:#f0f2f5;color:#7d8898}.due{white-space:nowrap}.due.overdue{color:#bb423b;background:#fff0ef;padding:4px 7px;border-radius:5px;font-weight:800}.due.due-today{color:#ad731f;background:#fff7e4;padding:4px 7px;border-radius:5px;font-weight:800}.align-right{text-align:right}.empty{text-align:center!important;color:#8998a9;padding:34px 16px!important}.table-foot{padding:12px 19px;border-top:1px solid #edf0f4;font-size:10px;color:#98a5b6}.filters-panel{padding:17px 17px;margin-bottom:17px}.filter-form{display:flex;align-items:end;gap:10px;flex-wrap:wrap}.filter-form label{display:flex;flex-direction:column;gap:6px;min-width:150px;flex:1}.filter-form .search-field{flex:3;min-width:250px}.filter-label{font-size:10px;color:#718198;font-weight:750}.filter-form input,.filter-form select,.edit-form input,.edit-form select,.edit-form textarea,.task-add-form input,.reset-form input,.login-card input{border:1px solid #dce2e9;background:white;padding:9px 10px;border-radius:6px;width:100%;min-width:0;min-height:36px;color:#304258}.filter-form input::placeholder,.edit-form input::placeholder{color:#afb9c5}.row-open{font-size:19px;color:#9aa9b8;font-weight:800}.content-split{display:grid;grid-template-columns:minmax(0,1fr) 250px;gap:19px;align-items:start}.form-panel{padding-bottom:20px}.edit-form{padding:0 20px}.field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px 17px}.field-grid label,.task-add-form label,.form-stack label{display:flex;flex-direction:column;gap:6px;color:#596a80;font-weight:750;font-size:11px}.field-grid label.wide{grid-column:span 2}.edit-form textarea{resize:vertical}.required{color:#db7350}.form-actions{display:flex;gap:10px;margin-top:21px;border-top:1px solid #ecf0f4;padding-top:20px}.side-tip{padding:20px;background:#fefcf8;border:1px solid #f1e5d6;border-radius:10px;color:#667487;font-size:12px}.side-tip h3{margin-bottom:10px}.side-tip p{margin-bottom:13px}.side-tip strong{color:#344a63}.tip-icon{height:38px;width:38px;display:grid;place-items:center;border-radius:10px;background:#fbebdb;color:#c98648;font-size:25px;margin-bottom:13px}.tip-divider{height:1px;background:#eddfcf;margin:15px 0}.task-panel{margin-top:19px}.task-add-form{display:flex;align-items:end;gap:13px;padding:0 20px 18px}.task-add-form label:first-of-type{flex:3}.task-add-form label:nth-of-type(2){flex:1}.tab-strip{display:flex;gap:4px;margin-bottom:14px;border-bottom:1px solid #dde3eb}.tab-strip a{padding:11px 15px;color:#708096;font-weight:750}.tab-strip a.active{border-bottom:2px solid #d88137;color:#cb7834}.reset-form{display:flex;gap:6px;min-width:210px}.reset-form input{width:140px;padding:5px 8px;min-height:30px;font-size:11px}.error-panel{padding:32px}.alerts{margin-bottom:15px;display:grid;gap:8px}.alert{padding:12px 14px;background:#f0f7ff;color:#3a668a;border-radius:7px;font-weight:650}.alert.error{background:#fff0ed;color:#ac4b40}.alert.ok{background:#e9f9f0;color:#297c53}.guest-shell{min-height:100vh;background:radial-gradient(circle at 20% 20%,#273e57,#15253a 60%);display:flex;flex-direction:column;align-items:center;justify-content:center;padding:20px}.guest-brand{display:flex;align-items:center;gap:10px;margin-bottom:26px;color:#fff;font-weight:900;font-size:23px;letter-spacing:1.8px}.guest-brand span:last-child{font-weight:450;font-size:17px;color:#9aabba}.guest-shell .alerts{width:100%;max-width:388px}.login-card{background:#fff;width:100%;max-width:388px;border-radius:13px;padding:33px;box-shadow:0 20px 60px rgba(0,0,0,.14)}.login-badge{font-size:10px;letter-spacing:1.5px;color:#d48a4e;font-weight:900;margin-bottom:7px}.login-card h1{font-size:26px}.login-card .muted{margin-bottom:23px}.form-stack{display:grid;gap:17px}.form-stack label{font-size:12px}.form-stack input{padding:12px 10px;margin-top:2px}.login-foot{margin:18px 0 0;text-align:center;color:#a8b1bd;font-size:10px}
@media(max-width:1100px){.sidebar{width:185px;flex-basis:185px}.top-bar{padding:0 19px}.content{padding:23px 18px}.metric-grid{gap:10px}.metric-card{padding:14px}.content-split{grid-template-columns:minmax(0,1fr) 220px}}@media(max-width:760px){.app-shell{display:block}.sidebar{width:100%;height:auto;min-height:auto;position:static;padding:13px;display:block}.brand{padding:0 0 13px}.nav-caption,.sidebar-bottom{display:none}.side-nav{flex-direction:row;overflow-x:auto}.side-nav a{white-space:nowrap;padding:9px}.main{width:100%}.top-date{display:none}.top-bar{height:42px}.content{padding:18px 12px}.page-heading{align-items:flex-start}.page-heading h1{font-size:21px}.page-heading .btn{font-size:11px}.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.content-split{grid-template-columns:1fr}.side-tip{display:none}.field-grid{grid-template-columns:1fr}.field-grid label.wide{grid-column:auto}.task-add-form{display:grid;grid-template-columns:1fr}.task-add-form label:first-of-type,.task-add-form label:nth-of-type(2){flex:none}.filter-form{display:grid;grid-template-columns:1fr 1fr}.filter-form .search-field{grid-column:span 2;min-width:0}.filter-form label{min-width:0}.top-bar{padding:0 12px}}

.reschedule-form{display:flex;align-items:center;gap:5px;white-space:nowrap}.reschedule-form input[type=date]{border:1px solid #dce2e9;background:#fff;border-radius:6px;padding:6px 5px;font-size:11px;color:#53657a;max-width:122px;min-height:29px}.reschedule-form button{padding:5px 7px;min-width:28px}

/* Ferrum 0.2: denser workspace, pipeline, reminders and timeline. */
.heading-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.pipeline{display:grid;grid-template-columns:repeat(6,minmax(180px,1fr));gap:12px;align-items:start;overflow-x:auto;padding:1px 0 20px}
.pipeline-col{background:#e9edf3;border:1px solid #e1e7ee;border-radius:10px;min-height:220px;padding:10px;min-width:180px}
.pipeline-title{display:flex;align-items:center;justify-content:space-between;gap:5px;font-size:11px;font-weight:800;color:#33465d;margin:0 1px 10px}
.deal-card{border-radius:8px;background:#fff;border:1px solid #dde4ec;padding:11px 10px;margin-bottom:9px;box-shadow:0 2px 4px #1a2e4610;overflow-wrap:anywhere}
.deal-card h3{font-size:12px;line-height:1.4;margin:6px 0}
.deal-client{font-size:11px;line-height:1.4}
.deal-amount{font-size:15px;font-weight:850;color:#1c3956;margin-bottom:6px}
.deal-desc{font-size:11px;margin:6px 0;white-space:pre-line;word-break:break-word}
.deal-stage-form{display:grid;gap:7px;margin-top:10px;border-top:1px solid #edf1f5;padding-top:10px}
.deal-stage-form label{display:grid;gap:5px}
.deal-stage-form select,.activity-form select,.activity-form textarea,.reschedule-form select{width:100%;min-width:0;background:#fff;border:1px solid #dce2e9;border-radius:6px;padding:7px;color:#304258;font-size:11px}
.pipeline-empty{text-align:center;font-size:11px;color:#9eabba;padding:25px 8px}
.narrow-panel{max-width:860px}
.reminder-bar{background:#fff;border:1px solid #e7eaf0;border-radius:10px;margin:-4px 0 19px;padding:12px 15px;display:flex;align-items:center;gap:13px;flex-wrap:wrap}
.reminder-bar>div{margin-right:auto;display:grid;gap:2px}.reminder-bar strong{color:#26374d}.reminder-bar span{color:#8b98a8;font-size:10px}
.reminder-link{border-radius:7px;border:1px solid #e6ebf1;background:#f8fafc;color:#53667e;padding:8px 11px;font-size:11px;display:flex;gap:8px;align-items:center}
.reminder-link strong{font-size:15px}.reminder-link.danger{background:#fff1ef;border-color:#f9dbd8;color:#ae4e46}
.quick-filter{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin-bottom:14px}
.quick-filter a{border-radius:7px;background:#fff;border:1px solid #e0e5ea;font-size:11px;color:#66778c;padding:8px 12px;font-weight:700}
.quick-filter a.selected{background:#283c56;color:#fff}
.import-metrics{display:flex;gap:30px;padding:16px 20px;border-top:1px solid #edf0f4;flex-wrap:wrap}
.import-metrics>div{display:flex;gap:5px;flex-direction:column}.import-metrics strong{font-size:23px;color:#263a52}.import-metrics span{font-size:11px;color:#8190a1}
.import-errors{background:#fff3ed;border-radius:7px;margin:0 20px 14px;padding:12px;color:#ad5944;font-size:11px}
.import-errors p{margin:7px 0 0}.import-confirm{padding:17px 20px;border-top:1px solid #e6eaf1;display:flex;justify-content:space-between;gap:15px;align-items:center;flex-wrap:wrap}.import-confirm p{font-size:11px;color:#66788e;max-width:600px}
.metric-card strong.money-metric{font-size:23px;white-space:nowrap;line-height:2.05}
.activity-form{padding:0 20px 18px;display:flex;gap:10px;align-items:end;flex-wrap:wrap}
.activity-form label{display:grid;gap:6px;font-size:11px;font-weight:700;color:#53677c}.activity-form .activity-message{flex:1;min-width:240px}.activity-form textarea{resize:vertical;min-height:56px}
.timeline{padding:0 20px 18px}.timeline-item{padding:13px 12px;margin-bottom:8px;border-left:3px solid #e3a172;background:#fafbfd;border-radius:0 7px 7px 0}.timeline-meta{font-size:10px;color:#8190a3;margin-bottom:6px}.timeline-meta strong{color:#53647c}.history-kind{display:inline-block;color:#ad6427;background:#fff1e6;border-radius:4px;padding:3px 6px;margin-right:5px;font-weight:700}.timeline-text{font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere;color:#40546a}
@media(max-width:1100px){.pipeline{grid-template-columns:repeat(6,minmax(220px,1fr))}}
@media(max-width:760px){.reminder-bar{align-items:stretch}.reminder-bar>div{width:100%}.reminder-link{flex:1;justify-content:center}.pipeline{grid-template-columns:repeat(6,minmax(200px,1fr))}.activity-form .activity-message{min-width:100%}}

/* Ferrum CRM 0.2.2 — compact sales pipeline + detailed manager analytics */
.deals-filter-grid{display:grid;grid-template-columns:minmax(190px,1.45fr) repeat(5,minmax(120px,1fr));gap:12px;align-items:end}
.deals-filter-grid label:not(.deals-checkbox),.report-date-filter label,.manager-deal-filter label:not(.deals-checkbox){min-width:0;display:flex;flex-direction:column;gap:5px}
.deals-filter-grid input,.deals-filter-grid select,.report-date-filter input,.manager-deal-filter select{height:36px;width:100%;min-width:0;border:1px solid #dfe5ed;border-radius:7px;background:#fff;padding:7px 9px;color:#283c53}
.deals-checkbox{display:inline-flex;align-items:center;gap:8px;color:#4d627a;font-size:12px;font-weight:600;min-height:36px;white-space:normal}
.deals-checkbox input{width:15px;height:15px;accent-color:#d88137;flex:none}
.deals-filter-actions{display:flex;gap:8px;align-items:center;justify-content:flex-end;grid-column:span 2}
.deals-summary-line{display:flex;align-items:center;flex-wrap:wrap;gap:16px;background:#fff;border:1px solid #e6ebf0;padding:11px 15px;border-radius:9px;margin:14px 0 10px;color:#52647b;font-size:12px}
.deals-summary-line strong{color:#1c324b;font-size:13px}.deals-summary-line .muted{margin-left:auto;font-size:11px}
.pipeline-scroll{overflow-x:auto;overflow-y:hidden;padding-bottom:13px;scrollbar-color:#aebacc #e7ebf1;scrollbar-width:thin;outline-offset:3px}
.pipeline-compact{display:flex;gap:11px;align-items:flex-start;width:max-content;min-width:100%}
.pipeline-column-v2{width:270px;min-width:270px;border:1px solid #e0e7ef;border-radius:12px;background:#eaf0f6;display:flex;flex-direction:column;max-height:660px;min-height:200px;overflow:hidden}
.pipeline-head-v2{position:relative;z-index:1;background:#eaf0f6;border-bottom:1px solid #dce5ed;padding:13px 12px 10px}
.pipeline-head-top{display:flex;justify-content:space-between;align-items:center;gap:5px}.pipeline-head-top h2{font-size:13px;font-weight:800;margin:0;line-height:1.3}
.pipeline-head-sum{color:#60758c;font-size:12px;font-weight:800;margin-top:5px}
.pipeline-items-v2{min-height:75px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#b6c3d0 #eaf0f6;padding:9px;display:flex;flex-direction:column;gap:8px}
.deal-tile-v2{flex:none;border:1px solid #dce4ec;border-radius:10px;background:#fff;padding:11px 11px 10px;box-shadow:0 2px 5px rgba(31,54,77,.035);overflow-wrap:anywhere}
.deal-tile-top{display:flex;gap:7px;align-items:start;justify-content:space-between}.deal-company-v2{font-weight:800;color:#18364f;font-size:12px;line-height:1.35}.deal-company-v2:hover,.deal-actions-v2 a:hover{color:#be6b25;text-decoration:underline}
.deal-mini-id{color:#9aabb9;font-size:10px;white-space:nowrap}.deal-product-v2{color:#465c73;font-size:12px;line-height:1.35;margin:5px 0 7px;max-height:36px;overflow:hidden}
.deal-price-v2{color:#172f48;font-size:18px;font-weight:900;line-height:1.25}.deal-meta-v2{display:flex;flex-wrap:wrap;justify-content:space-between;gap:3px;color:#8090a2;font-size:10px;padding:8px 0;border-bottom:1px solid #ebeff4}
.deal-actions-v2{display:flex;align-items:flex-start;gap:12px;justify-content:space-between;padding-top:8px;font-size:11px;font-weight:750}.deal-actions-v2>a{color:#cd7835;padding-top:2px}.deal-stage-details{position:relative;color:#344e69;min-width:0}.deal-stage-details summary{cursor:pointer;list-style:none;white-space:nowrap}.deal-stage-details summary:after{content:'⌄';font-size:15px;margin-left:4px}.deal-stage-details summary::-webkit-details-marker{display:none}
.deal-stage-details[open]{flex-basis:100%;width:100%}.deal-stage-details form{margin-top:9px;display:grid;gap:6px}.deal-stage-details select{width:100%;padding:7px 8px;background:#fff;border:1px solid #d8e2ec;border-radius:6px;font-size:11px}.deal-stage-details .btn{width:100%}.deal-tile-note{font-size:11px;line-height:1.5;color:#65778c;border-top:1px solid #e8edf2;margin:10px 0 0;padding-top:8px;white-space:pre-wrap}
.pipeline-empty-v2{text-align:center;color:#91a0ae;padding:24px 8px;font-size:11px}.empty-state-v2{text-align:center;padding:45px 16px}.empty-actions{display:flex;justify-content:center;gap:10px;margin-top:15px}
.report-date-filter,.manager-deal-filter{display:flex;gap:12px;flex-wrap:wrap;align-items:end}.report-date-filter label{width:200px}.report-date-filter .btn,.manager-deal-filter .btn{align-self:flex-end}
.report-metrics-v2 .metric-card strong{font-size:27px;line-height:1.5}.report-metrics-v2 .metric-card .money-metric{font-size:21px}
.manager-report-table td,.manager-report-table th{white-space:nowrap}.manager-report-table td:first-child,.manager-report-table th:first-child{white-space:normal;min-width:120px}.manager-report-table td:last-child{white-space:normal}
.report-footnote{font-size:11px;color:#77899e;line-height:1.7;margin-top:15px}.report-panels-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:18px}.report-stage-panel{overflow:hidden;padding:0 0 18px}.report-stage-panel .panel-heading{margin-bottom:5px}
.stage-breakdown{padding:12px 18px 6px;display:grid;gap:13px}.stage-breakdown-label{display:flex;align-items:baseline;justify-content:space-between;gap:8px;font-size:12px}.stage-breakdown-label strong{font-size:12px}.stage-breakdown-label span{font-size:11px;color:#738398;text-align:right}.stage-track{height:7px;border-radius:5px;background:#ecf0f4;overflow:hidden;margin-top:6px}.stage-fill{height:100%;background:#db8a48;border-radius:5px}
.manager-outcome-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:15px 18px}.manager-outcome-grid>div{background:#f4f7fa;padding:13px;border-radius:8px}.manager-outcome-grid span{display:block;font-size:11px;color:#7a8ca0}.manager-outcome-grid strong{font-size:25px;color:#253c54}.manager-outcome-note{padding:0 18px}.manager-deal-filter{padding:13px 17px;border-top:1px solid #e6ecf2}.manager-deal-filter label:not(.deals-checkbox){min-width:200px}.manager-deal-filter .deals-checkbox{align-self:flex-end}
.manager-pages{border-top:1px solid #e7edf2;padding:12px 17px;display:flex;justify-content:space-between;align-items:center;gap:10px;color:#70849a;font-size:12px}.manager-pages>div{display:flex;gap:7px}.nowrap{white-space:nowrap}.report-bottom-grid .table-panel{min-width:0}
@media(max-width:1400px){.deals-filter-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.deals-filter-grid .deals-search{grid-column:span 2}.deals-filter-actions{grid-column:span 1}.pipeline-column-v2{width:264px;min-width:264px}}
@media(max-width:980px){.report-panels-grid{grid-template-columns:1fr}.deals-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.deals-filter-actions{grid-column:span 1}.deals-summary-line .muted{margin-left:0}}
@media(max-width:620px){.deals-filter-grid{grid-template-columns:1fr}.deals-filter-grid .deals-search,.deals-filter-actions{grid-column:auto}.report-date-filter label{width:100%}.pipeline-column-v2{width:240px;min-width:240px}.manager-deal-filter label:not(.deals-checkbox){width:100%;min-width:0}.manager-pages{flex-wrap:wrap}.report-metrics-v2 .metric-card strong{font-size:21px}}

.stage-meter{width:100%;height:10px;display:block;accent-color:#db8a48;margin-top:6px}.stage-meter::-webkit-meter-bar{background:#ebeff4;border:0;border-radius:5px}.stage-meter::-webkit-meter-optimum-value{background:#db8a48;border-radius:5px}.stage-meter::-moz-meter-bar{background:#db8a48;border-radius:5px}

/* Ferrum CRM 0.2.3 — client analysis, simple/recurring type */
.client-type{display:inline-block;border:1px solid #dce6ef;color:#687b90;background:#f4f7fa;border-radius:6px;padding:4px 7px;font-size:11px;font-weight:700;white-space:nowrap}
.type-recurring{background:#e8f6ef;color:#267151;border-color:#cee8da}.type-oneoff{background:#fff2e7;color:#ad682e;border-color:#f4d9c2}
.client-health-overview{margin-bottom:18px}.metric-link{color:inherit;text-decoration:none;transition:border-color .15s,box-shadow .15s}.metric-link:hover{border-color:#d58843;box-shadow:0 4px 15px #c9d6e440}.metric-card.danger-border{border-left:3px solid #df8470}
.report-toolbar{display:flex;gap:9px;align-items:center;flex-wrap:wrap;margin-bottom:14px}.report-toolbar .btn{font-size:11px}
.health-link{font-weight:800;color:#4d647c;display:inline-block;min-width:22px;text-align:center}.health-link:hover{text-decoration:underline}.health-danger{color:#c25148}.health-warn{color:#c07a38}
.client-health-note{padding:13px 18px;margin-bottom:16px;background:#fffdf9;border:1px solid #eee2d1;display:grid;gap:6px}.client-health-note strong{font-size:12px;color:#3b5068}.client-health-note p{margin:0;line-height:1.55;font-size:11px;color:#68798b}
.client-health-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:11px;margin-bottom:15px}
.manager-health-tile{background:#fff;border:1px solid #e0e6ef;padding:13px 15px;border-radius:9px;display:grid;gap:6px;color:#50637a;font-size:11px}.manager-health-tile:hover{border-color:#d88744;box-shadow:0 3px 12px #dce5ee55}.manager-health-tile strong{font-size:13px;color:#1d354f}.manager-health-tile b{color:#263f56}.manager-health-tile b.warn-number{color:#b45142}
.client-health-filters{display:grid;grid-template-columns:repeat(4,minmax(140px,1fr)) auto auto;gap:10px;align-items:end}.client-health-filters label{display:flex;flex-direction:column;min-width:0;gap:6px}.client-health-filters select{width:100%;height:36px;border:1px solid #dfe5ed;border-radius:7px;background:#fff;color:#2a3c52;padding:7px 8px}.client-health-filters .btn{white-space:nowrap}
.health-table td{max-width:220px}.health-table td:last-child{white-space:nowrap}.health-table .health-incomplete{white-space:normal;line-height:1.4;background:#fff3e8;color:#a4622a}.health-alert{color:#bb5246}
.status-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:9px;padding:13px 17px 17px}.status-tile{padding:11px 12px;border:1px solid #e2e8ef;background:#f8fafc;border-radius:8px;display:flex;align-items:center;justify-content:space-between;gap:9px;font-size:11px;color:#536780}.status-tile strong{font-size:17px;color:#1d344f}.status-tile:hover{border-color:#d58947}
@media(max-width:1200px){.client-health-filters{grid-template-columns:repeat(2,minmax(0,1fr)) auto auto}}@media(max-width:720px){.client-health-filters{grid-template-columns:1fr 1fr}.client-health-filters .btn{width:100%}}

.health-activity-text{min-width:230px;max-width:600px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.55}

/* Ferrum CRM 0.2.4: legal entity lookup */
.inn-lookup{padding:15px 17px;border:1px solid #d7e5f3;border-radius:9px;background:#f3f8fd;margin:0 0 18px}
.inn-lookup-title{display:flex;flex-wrap:wrap;align-items:baseline;gap:10px;margin-bottom:12px}
.inn-lookup-title strong{color:#254766;font-size:14px}.inn-lookup-title span{color:#75879a;font-size:11px}
.inn-lookup-row{display:flex;align-items:end;gap:10px;flex-wrap:wrap}
.inn-lookup-row label{flex:1;min-width:210px}.inn-lookup-row input{letter-spacing:.05em;font-variant-numeric:tabular-nums}
.inn-lookup-row button{height:38px;white-space:nowrap}.inn-lookup-message{font-size:11px;line-height:1.5;color:#64788f;margin-top:9px}
.inn-lookup-message.inn-error{color:#ae4f40}.inn-lookup-message.inn-success{color:#287a53}
.inn-lookup-extra{background:#fff;border-radius:7px;padding:11px;margin-top:8px;border:1px solid #dce8f2;color:#496077;line-height:1.6;font-size:11px}
.inn-duplicate{color:#ad6035;margin:8px 0 0;font-weight:700}
.legal-fields{border:1px solid #e4eaf1;border-radius:8px;padding:13px 15px;margin:3px 0;background:#fbfcfe}
.legal-fields-heading{font-size:12px;font-weight:800;color:#38536e;margin-bottom:12px}.legal-fields-heading span{font-size:10px;font-weight:400;color:#8b9aab;margin-left:6px}
.legal-fields .field-grid{margin-bottom:0}.inn-settings{max-width:850px}.inn-settings p{font-size:12px;line-height:1.65}.inn-key-delete{margin-top:12px}

/* Ferrum CRM 0.2.5 — corporate contacts */
#single-contact-fields[hidden],#person-contact-fields[hidden],#contact-people-section[hidden]{display:none!important}
.contact-people-section{border:1px solid #dce6ed;background:#f8fafc;border-radius:9px;padding:16px;margin-top:2px}
.contacts-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:13px}
.contacts-heading h3{font-size:14px;margin:0 0 3px;color:#233d57}
.contact-person-card{border:1px solid #e1e8ef;background:#fff;border-radius:8px;padding:13px;margin-bottom:10px}
.contact-person-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:11px;color:#4b6077;font-size:12px}
.contact-person-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 13px}
.contact-person-fields label{min-width:0}
.contact-person-fields input,.contact-person-fields select{width:100%}
.contact-helper{font-size:11px;color:#8190a0;margin:5px 0 0;display:block}
#contacts-empty-note{padding:9px 0 2px}
@media(max-width:690px){.contact-person-fields{grid-template-columns:1fr}.contacts-heading{align-items:stretch}}

#contacts-empty-note[hidden]{display:none!important}

/* Ferrum CRM 0.2.6 — separate, compact business-information page */
.company-profile-entry{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;padding:13px 17px;margin:0 0 15px;border:1px solid #dce8f0;background:#f3f8fc;border-radius:10px}
.company-profile-entry strong{font-size:13px;color:#263e58}.company-profile-entry p{font-size:11px;margin:4px 0 0}.company-profile-top{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 20px;margin-bottom:15px;flex-wrap:wrap}
.company-profile-top>div{flex:1;min-width:250px}.company-profile-top strong{font-size:15px;color:#223b54}.company-profile-top p{margin:5px 0;font-size:11px;line-height:1.6}.company-date{font-size:11px;color:#5f7791}
.company-profile-top form{flex:none}.company-profile-top button[disabled]{opacity:.45;cursor:not-allowed}.company-warn{border:1px solid #f1d09c;background:#fff7e8;color:#805523;padding:11px 14px;margin-bottom:13px;border-radius:8px;font-size:12px}
.company-kpi-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px;margin-bottom:15px}.company-kpi{background:#fff;border:1px solid #e4e9ef;padding:15px;border-radius:10px;min-width:0}
.company-kpi span{font-size:11px;color:#8190a2;display:block;margin-bottom:7px}.company-kpi strong{font-size:16px;color:#263c55;line-height:1.4;overflow-wrap:anywhere}
.company-tabs{display:flex;gap:7px;margin:4px 0 13px;flex-wrap:wrap}.company-tab{border:1px solid #e0e7ef;background:#fff;border-radius:8px;padding:10px 16px;color:#50667e;font-weight:750;cursor:pointer;font-size:12px}
.company-tab.active,.company-tab[aria-selected="true"]{background:#273d56;color:#fff;border-color:#273d56}.company-profile-panel{padding:0 0 20px;overflow:hidden}
.company-profile-panel[hidden]{display:none!important}.company-dl{padding:8px 20px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 20px}
.company-dl>div{padding:11px 0;border-bottom:1px solid #edf0f4;display:flex;flex-direction:column;gap:5px;min-width:0}.company-dl span{font-size:11px;color:#8090a1}.company-dl strong{font-size:12px;color:#2b425b;font-weight:750;line-height:1.5;overflow-wrap:anywhere}
.company-subsection{padding:12px 20px 6px}.company-subsection h3{font-size:13px;color:#29415a;margin:0 0 8px}.company-subsection p{font-size:11px}.company-tags{display:flex;gap:7px;flex-wrap:wrap}.company-tags span{background:#f1f5f8;border-radius:6px;padding:7px 10px;color:#53667b;font-size:11px}
.company-lists{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.company-lists>div{background:#f7f9fb;padding:12px;border-radius:7px;overflow-wrap:anywhere}.company-lists b{font-size:11px}.company-lists p{font-size:11px;margin:6px 0;color:#50647d}
.company-hint{font-size:11px;line-height:1.7;color:#71849b;padding:13px 20px 0}.company-empty{text-align:center;padding:42px 18px;color:#657990}.company-empty h2{color:#2c435a;font-size:17px;margin:0 0 7px}.company-empty p{font-size:12px}
.company-footer-note{font-size:11px;color:#7d90a4;margin:13px 0 20px}.company-footer-note a{color:#c27734;text-decoration:underline}
@media(max-width:1000px){.company-kpi-row{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.company-dl{grid-template-columns:1fr}.company-lists{grid-template-columns:1fr}.company-kpi-row{grid-template-columns:1fr 1fr}.company-profile-top form,.company-profile-top form button{width:100%}}

/* 0.2.7: single dedicated public company intelligence workspace */
.client-data-search{padding:19px 20px;margin-bottom:14px}
.client-data-form label{display:block;font-size:11px;color:#697d94;font-weight:800;margin-bottom:8px}
.client-data-input{display:flex;gap:10px;align-items:center;max-width:640px}
.client-data-input input{flex:1;min-width:0;height:43px;border:1px solid #d8e0e9;border-radius:8px;padding:10px 13px;font-size:17px;letter-spacing:1px;color:#273c54}
.client-data-form .muted{margin-top:10px;max-width:950px;line-height:1.55}
.client-data-secondary{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:13px}
.client-data-source-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;margin:0 0 18px}
.client-data-provider{background:#fff;padding:13px 14px;border:1px solid #e1e8ee;border-radius:9px;display:flex;align-items:center;gap:9px;min-width:0;flex-wrap:wrap}
.client-data-provider strong{font-size:13px}.client-data-provider small{font-size:10px;color:#8190a2;margin-left:auto}
.client-data-status{height:9px;width:9px;border-radius:50%;background:#c7ced5;flex:none}.client-data-status.ready{background:#3bad7d}
.client-data-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 20px 9px;border-top:1px solid #edf0f4;background:#fcfdfd}
.client-data-section-head strong{font-size:12px;color:#2b4a69}.client-data-section-head span{font-size:11px;color:#8795a4}
.client-data-empty-inline{padding:14px 20px;color:#8895a6;font-size:12px}
.client-data-refresh{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin:14px 0 19px}
.client-data-refresh strong{font-size:11px;color:#6c7f93}
.client-data-official{margin-top:19px;overflow:hidden}.client-data-official-links{padding:0 20px 12px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.client-data-official-links a{padding:13px 15px;border:1px solid #e2e9ef;border-radius:8px;background:#f9fbfd;min-width:0}
.client-data-official-links a:hover{border-color:#dda16c;background:#fff8f1}
.client-data-official-links b{font-size:12px;display:block;color:#344e69}.client-data-official-links span{font-size:10px;color:#8190a3;display:block;margin-top:4px}
@media(max-width:900px){.client-data-official-links{grid-template-columns:repeat(2,minmax(0,1fr))}.client-data-source-row{grid-template-columns:1fr}}
@media(max-width:600px){.client-data-input{flex-direction:column;align-items:stretch}.client-data-official-links{grid-template-columns:1fr}}
