.crm-nav { margin: 0 0 12px; }
.fx[hidden], #fefcoPanel > div[hidden] { display: none !important; }
.crm-panel { background:var(--panel); border:1px solid var(--border); border-radius:var(--radius); padding:20px; color:var(--text); box-shadow:var(--shadow); }
.crm-heading h2 { margin:0; font-size:19px; }
.crm-heading p { color:var(--muted); margin:6px 0 12px; font-size:13px; }
.crm-panel input:not([type=checkbox]), .crm-panel select, .crm-panel textarea { width:100%; max-width:100%; box-sizing:border-box; padding:8px 10px; color:var(--text); background:var(--panel); border:1px solid var(--border); border-radius:var(--radius-sm); font:inherit; }
.crm-panel #crm-search { width:260px; }
.crm-panel form { border-top:1px solid var(--border); padding-top:16px; max-width:650px; }
.crm-panel form label { display:grid; gap:5px; font-size:13px; color:var(--muted2); }
.crm-panel form label:has(input[type=checkbox]) { display:flex; align-items:center; }
.crm-panel form h3 { margin:0; }
.crm-panel form button { justify-self:start; }
.crm-panel input:focus-visible, .crm-panel select:focus-visible, .crm-panel textarea:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
@media(max-width:600px) { .crm-panel { padding:14px; } .crm-panel #crm-search { width:100%; } }

/* CRM: экранная плотность и состояния используют общие цвета приложения. */
.crm-panel { min-width:0; }
.crm-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.crm-source,.crm-origin { color:var(--muted); font-size:12px; }
.crm-kpis { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin:14px 0; }
.crm-kpi { display:grid; gap:3px; min-width:0; padding:12px 14px; background:var(--panel); border:1px solid var(--border); border-radius:var(--radius); }
.crm-kpi span,.crm-kpi small { color:var(--muted); font-size:12px; }
.crm-kpi b { font-size:22px; line-height:1.2; color:var(--text); }
.crm-kind { margin:10px 0; }
.crm-kind button span { margin-left:4px; color:var(--muted); font-size:11px; }
.crm-toolbar { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin:12px 0; }
.crm-toolbar select { min-width:160px; width:auto; }
.crm-grow { flex:1; }
.crm-layout { display:flex; gap:2px; padding:3px; background:var(--bg,#f4f6fa); border:1px solid var(--border); border-radius:var(--radius-sm); }
.crm-layout button { border:0; border-radius:var(--radius-sm); padding:6px 9px; background:transparent; color:var(--muted2); cursor:pointer; font:inherit; font-size:12px; }
.crm-layout button.active { color:var(--accent); background:var(--panel); box-shadow:var(--shadow); }
.crm-table-wrap { width:100%; overflow:auto; border:1px solid var(--border); border-radius:var(--radius); }
.crm-table { width:100%; min-width:850px; margin:0; }
.crm-table td small { display:block; color:var(--muted); margin-top:3px; }
.crm-link { border:0; background:none; color:var(--text); cursor:pointer; padding:0; text-align:left; font:inherit; }
.crm-link:hover { color:var(--accent); }
.crm-code { display:inline-flex; padding:3px 7px; color:var(--accent); background:color-mix(in srgb,var(--accent) 9%,var(--panel)); border-radius:999px; font-weight:600; }
.crm-status { display:inline-flex; align-items:center; white-space:nowrap; padding:4px 8px; border-radius:999px; background:var(--bg,#f4f6fa); color:var(--muted2); font-size:11px; }
.crm-status.st-0 { color:#946200; background:rgba(245,158,11,.12); }
.crm-status.st-1,.crm-status.st-2 { color:#245ec7; background:rgba(37,99,235,.1); }
.crm-status.st-3 { color:#7c3aed; background:rgba(124,58,237,.1); }
.crm-status.st-4,.crm-status.st-5 { color:#17814d; background:rgba(34,160,107,.12); }
.crm-board { display:grid; grid-auto-columns:minmax(220px,1fr); grid-auto-flow:column; gap:10px; overflow-x:auto; padding:2px 2px 10px; }
.crm-lane { min-height:150px; padding:10px; background:var(--bg,#f4f6fa); border:1px solid var(--border); border-radius:var(--radius); }
.crm-lane header { display:flex; justify-content:space-between; align-items:center; padding:2px 2px 9px; font-size:13px; }
.crm-lane header span { color:var(--muted); }
.crm-order-card { display:grid; gap:6px; width:100%; margin-bottom:8px; padding:11px; text-align:left; color:var(--text); background:var(--panel); border:1px solid var(--border); border-radius:var(--radius-sm); cursor:pointer; font:inherit; }
.crm-order-card:hover,.crm-client-card:hover,.crm-test-link:hover { border-color:var(--accent); box-shadow:var(--shadow); }
.crm-card-top { display:flex; align-items:flex-start; justify-content:space-between; gap:8px; }
.crm-card-meta { color:var(--muted2); font-size:12px; overflow-wrap:anywhere; }
.crm-lane-empty { padding:12px 2px; color:var(--muted); font-size:12px; }
.crm-client-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(230px,1fr)); gap:10px; }
.crm-client-card { display:grid; gap:8px; min-width:0; padding:13px; text-align:left; color:var(--text); background:var(--panel); border:1px solid var(--border); border-radius:var(--radius); cursor:pointer; font:inherit; }
.crm-client-stats { display:flex; flex-wrap:wrap; gap:12px; color:var(--muted); font-size:12px; }
.crm-client-stats b { color:var(--text); }
.crm-empty { display:grid; justify-items:start; gap:6px; padding:22px 16px; background:var(--panel); border:1px dashed var(--border); border-radius:var(--radius); }
.crm-empty span,.crm-muted,.crm-footnote { color:var(--muted); font-size:12px; }
.crm-footnote { margin:7px 2px 0; }
.crm-editor { margin-top:16px; padding:16px; border:1px solid var(--border); border-radius:var(--radius); background:var(--panel); }
.crm-editor-head { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.crm-editor-head h3 { margin:0; font-size:16px; }
.crm-panel form.crm-form { max-width:none; border:0; padding:12px 0 0; }
.crm-form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; align-items:start; }
.crm-form-grid label { min-width:0; }
.crm-form-grid label small { color:var(--muted); font-size:11px; }
.crm-form-grid .crm-notes,.crm-construction,.crm-related,.crm-inline-client { grid-column:1/-1; }
.crm-construction,.crm-related,.crm-inline-client { display:grid; gap:8px; padding:12px; border:1px solid var(--border); border-radius:var(--radius-sm); background:var(--bg,#f4f6fa); }
.crm-check { display:flex!important; align-items:center; gap:8px!important; }
.crm-inline-toggle { justify-self:start; align-self:end; }
.crm-inline-client[hidden] { display:none; }
.crm-inline-client { grid-template-columns:repeat(3,minmax(0,1fr)); align-items:end; }
.crm-inline-client>b,.crm-inline-client button,.crm-inline-error { grid-column:1/-1; }
.crm-inline-error,.crm-error { color:var(--bad,#c62828); font-size:12px; }
.crm-related-list { display:flex; flex-wrap:wrap; gap:8px; }
.crm-test-link { display:grid; gap:4px; max-width:300px; padding:8px 10px; text-align:left; color:var(--text); background:var(--panel); border:1px solid var(--border); border-radius:var(--radius-sm); cursor:pointer; }
.crm-test-link span { color:var(--muted); font-size:11px; }
.crm-form-actions { grid-column:1/-1; display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
@media(max-width:760px) { .crm-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); } .crm-heading { align-items:flex-start; flex-direction:column; } }
@media(max-width:560px) { .crm-form-grid { grid-template-columns:1fr; } .crm-form-grid .crm-notes,.crm-construction,.crm-related,.crm-inline-client,.crm-form-actions { grid-column:1; } .crm-inline-client { grid-template-columns:1fr; } .crm-toolbar #crm-search { min-width:0; } .crm-toolbar select { flex:1; } }

/* CRM board concept: production pipeline cards inspired by the selected layout. */
.crm-panel { padding: 20px; }
.crm-heading { align-items: flex-start; }
.crm-heading h2 { font-size: 22px; letter-spacing: -.25px; }
.crm-heading p { margin-top: 4px; }
.crm-kpis { gap: 12px; margin: 18px 0; }
.crm-kpi { min-height: 88px; align-content: center; background: linear-gradient(180deg, var(--panel), color-mix(in srgb, var(--panel) 92%, var(--accent))); }
.crm-kind { margin: 14px 0 10px; }
.crm-toolbar { padding: 10px; border: 1px solid var(--border); border-radius: var(--radius); background: color-mix(in srgb, var(--bg,#f4f6fa) 75%, var(--panel)); }
.crm-toolbar #crm-search { width: min(320px, 28vw); height: 38px; }
.crm-toolbar select { height: 38px; }
.crm-layout { margin-left: 2px; }
.crm-board { grid-auto-columns: minmax(224px, 1fr); gap: 12px; padding: 4px 2px 14px; scroll-snap-type: x proximity; }
.crm-lane { display: flex; flex-direction: column; min-height: 390px; padding: 12px; border-radius: 12px; background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 5%, var(--panel)), var(--bg,#f4f6fa) 120px); scroll-snap-align: start; }
.crm-lane header { gap: 10px; align-items: flex-start; padding: 2px 1px 11px; border-bottom: 1px solid var(--border); margin-bottom: 10px; }
.crm-lane-heading { display: grid; gap: 3px; min-width: 0; }
.crm-lane-heading b { color: var(--text); font-size: 13px; }
.crm-lane-heading small { color: var(--muted); font-size: 10px; line-height: 1.3; }
.crm-lane-count { min-width: 24px; height: 24px; display: grid; place-items: center; border-radius: 999px; background: color-mix(in srgb, var(--accent) 10%, var(--panel)); color: var(--accent); font-size: 11px; font-weight: 700; }
.crm-lane-cards { display: grid; align-content: start; gap: 9px; }
.crm-order-card { gap: 8px; margin: 0; padding: 11px; border-radius: 10px; box-shadow: 0 1px 2px rgba(19,39,75,.04); transition: border-color .15s, box-shadow .15s, transform .15s; }
.crm-order-card:hover { transform: translateY(-1px); border-color: var(--accent); box-shadow: 0 5px 14px rgba(22,61,120,.10); }
.crm-order-top { display: flex; align-items: center; justify-content: space-between; gap: 7px; color: var(--muted2); font-size: 11px; }
.crm-priority { flex: 0 0 auto; padding: 3px 7px; border-radius: 999px; font-size: 10px; font-weight: 650; }
.crm-priority.is-normal { color: #52627a; background: #eef2f7; }
.crm-priority.is-urgent { color: #a15b00; background: #fff1d6; }
.crm-priority.is-late { color: #b42318; background: #ffe4e1; }
.crm-order-product { display: grid; grid-template-columns: 42px minmax(0,1fr); gap: 9px; align-items: center; min-height: 48px; }
.crm-box-icon { width: 42px; height: 40px; display: grid; place-items: center; border-radius: 8px; background: #f7f2e8; }
.crm-box-icon svg { width: 32px; height: 28px; fill: #e9c99b; stroke: #b99362; stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: round; }
.crm-product-copy { display: grid; gap: 4px; min-width: 0; }
.crm-product-copy b { font-size: 12px; line-height: 1.35; }
.crm-product-copy small { width: fit-content; color: var(--accent); font-size: 10px; font-weight: 650; }
.crm-order-client { overflow: hidden; color: var(--muted2); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.crm-order-stats { display: flex; justify-content: space-between; gap: 8px; padding-top: 7px; border-top: 1px solid var(--border2); }
.crm-order-stats > span { display: grid; gap: 2px; min-width: 0; }
.crm-order-stats small { color: var(--muted); font-size: 10px; }
.crm-order-stats b { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.crm-order-deadline { display: flex; align-items: center; gap: 6px; color: var(--muted2); font-size: 10px; }
.crm-calendar-dot { color: var(--accent); font-size: 15px; line-height: 1; }
.crm-order-deadline.is-urgent { color: #a15b00; }
.crm-order-deadline.is-late { color: #b42318; font-weight: 650; }
.crm-progress { height: 6px; overflow: hidden; border-radius: 99px; background: #e8edf4; }
.crm-progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #72a7ff, var(--accent)); }
.crm-progress-caption { color: var(--muted); font-size: 9px; text-align: right; }
.crm-lane-empty { flex: 1; display: grid; place-items: center; min-height: 130px; border: 1px dashed var(--border); border-radius: 9px; background: color-mix(in srgb, var(--panel) 60%, transparent); }
@media(max-width:900px) { .crm-kpis { grid-template-columns: repeat(2,minmax(0,1fr)); } .crm-toolbar #crm-search { width: 100%; } .crm-board { grid-auto-columns: minmax(245px, 82vw); } }
@media(max-width:560px) { .crm-panel { padding: 12px; } .crm-kpis { gap: 8px; } .crm-kpi { min-height: 72px; padding: 9px; } .crm-toolbar { align-items: stretch; } .crm-toolbar #crm-search,.crm-toolbar select { width: 100%; min-width: 0; } .crm-grow { display: none; } .crm-layout { justify-content: center; } }
.crm-root:not([hidden]) {
  --crm-bg:var(--panel,#fff); --crm-line:var(--border2,#e7ebf1); --crm-muted:var(--muted2,#526079);
  --crm-soft:var(--panel2,#f5f7fb); --crm-blue:var(--accent,#0648ed); --crm-tint:color-mix(in srgb,var(--crm-blue) 10%,var(--crm-bg));
  display:block; min-width:0; border:1px solid var(--crm-line); border-radius:10px;
  background:var(--crm-bg); color:var(--text,#0c172c); font-size:14px;
}
.crm-root *, .crm-root *::before, .crm-root *::after { box-sizing:border-box; }
.crm-root [hidden] { display:none!important; }
.crm-root button { font-family:inherit; cursor:pointer; }
.crm-root button:disabled { cursor:default; }
.crm-root :focus-visible { outline:2px solid var(--crm-blue); outline-offset:2px; }
.crm-icon { width:19px; height:19px; flex:none; vertical-align:middle; }
.crm-workspace { min-width:0; }
.crm-loading { grid-column:1/-1; margin:24px; }
.crm-top { display:flex; align-items:center; justify-content:space-between; gap:clamp(14px,3vw,52px); padding:12px clamp(12px,1.5vw,25px); min-height:68px; border-bottom:1px solid var(--crm-line); }
.crm-search { flex:1; min-width:150px; min-height:40px; display:flex; align-items:center; gap:11px; border:1px solid var(--border); background:var(--crm-soft); color:var(--crm-muted); padding:0 12px; border-radius:6px; }
.crm-search input { min-width:0; width:100%; border:0; background:none; outline:0; padding:8px 0; color:var(--text); font:inherit; }
.crm-search:focus-within { border-color:var(--crm-blue); }
.crm-search kbd { flex:none; font:inherit; font-size:12px; padding:3px 6px; border-radius:4px; background:var(--crm-line); }
.crm-top-actions { display:flex; align-items:center; gap:10px; flex:none; }
.crm-button, .crm-pagination button { display:inline-flex; justify-content:center; align-items:center; gap:8px; border:1px solid var(--border); border-radius:6px; color:var(--text); background:var(--crm-bg); padding:0 13px; min-height:40px; font-size:14px; font-weight:600; }
.crm-button.primary, .crm-pagination button[aria-current] { background:var(--crm-blue); border-color:var(--crm-blue); color:white; }
.crm-button:not(.primary):hover,.crm-icon-button:hover,.crm-pagination button:hover:not([aria-current]):not(:disabled) { background:var(--crm-soft); }
.crm-icon-button,.crm-avatar,.crm-row-check,.crm-text-button { display:inline-flex; justify-content:center; align-items:center; vertical-align:middle; gap:6px; padding:0; border:0; background:none; color:inherit; }
.crm-icon-button { width:32px; height:32px; border-radius:6px; }
.crm-text-button { color:var(--crm-blue); font-size:inherit; text-align:left; }
.crm-avatar { background:var(--crm-tint); color:var(--crm-blue); width:36px; height:36px; border-radius:50%; font-weight:700; }
.crm-content { display:grid; grid-template-columns:minmax(0,1fr) minmax(314px,32.5%); gap:14px; padding:7px 8px 18px 20px; align-items:start; }
.crm-content:has(.crm-details[hidden]) { grid-template-columns:minmax(0,1fr); }
.crm-main { min-width:0; }
.crm-title { display:grid; grid-template-columns:minmax(0,1fr) 180px; gap:8px 12px; align-items:center; padding:20px 8px 0 20px; }
.crm-title-group { display:flex; flex-wrap:wrap; align-items:center; gap:8px 20px; min-width:0; }
.crm-title h2 { margin:0; font-size:clamp(25px,2.15vw,35px); letter-spacing:-.65px; line-height:1.22; }
.crm-root .crm-layout { margin:0; background:var(--crm-soft); flex:none; justify-self:end; }
.crm-layout button { display:flex; align-items:center; gap:5px; }
.crm-layout button[aria-pressed=true] { color:var(--crm-blue); background:var(--crm-bg); box-shadow:var(--shadow); }
.crm-layout .crm-icon { width:15px; height:15px; }
.crm-stage-tabs { display:flex; gap:4px; border-bottom:1px solid var(--border); overflow-x:auto; }
.crm-stage-tabs button { white-space:nowrap; border:0; border-bottom:3px solid transparent; background:none; color:var(--text); padding:12px clamp(9px,1vw,16px) 13px; font-size:14px; }
.crm-stage-tabs button.active { border-bottom-color:var(--crm-blue); color:var(--crm-blue); font-weight:700; }
.crm-stage-tabs button span { margin-left:5px; border-radius:20px; padding:2px 7px; background:var(--crm-soft); font-size:12px; }
.crm-stage-tabs button.active span { background:var(--crm-tint); }
.crm-filters { display:grid; grid-template-columns:1.14fr repeat(3,minmax(88px,1fr)) auto; gap:clamp(6px,1.15vw,18px); align-items:center; padding:16px 0 21px; }
.crm-filter { display:flex; align-items:center; min-width:0; border:1px solid var(--border); border-radius:7px; background:var(--crm-bg); }
.crm-filter .crm-icon { width:16px; height:16px; margin-inline:10px 0; }
.crm-filter:focus-within { border-color:var(--accent); box-shadow:0 0 0 3px var(--accent-soft); }
#fefcoPanel .crm-filter select {
  flex:1; min-width:0; width:100%; height:34px; color:inherit; border:0 !important;
  border-radius:inherit; padding:0 27px 0 10px; background-color:transparent;
  font:inherit; font-size:13px; text-overflow:ellipsis; outline:0; box-shadow:none !important;
}
.crm-reset { white-space:nowrap; }
.crm-reset .crm-icon { width:15px; height:15px; }
.crm-root .crm-table-wrap { border:0; border-radius:0; }
.crm-orders-table { width:100%; border-collapse:separate; border-spacing:0; min-width:655px; font-size:13px; }
.crm-orders-table th, .crm-orders-table td { text-align:left; padding:0 8px; border-bottom:1px solid var(--crm-line); }
.crm-orders-table th { background:var(--crm-soft); height:46px; white-space:nowrap; font-weight:500; border-top:1px solid var(--crm-line); }
.crm-orders-table th:first-child { border-top-left-radius:7px; }
.crm-orders-table th:last-child { border-top-right-radius:7px; }
.crm-orders-table th button { padding:0; border:0; background:none; font:inherit; color:inherit; }
.crm-orders-table th button span { color:var(--crm-muted); }
.crm-orders-table td { height:55px; background:var(--crm-bg); }
.crm-orders-table tbody tr[data-select] { cursor:pointer; }
.crm-orders-table tbody tr:hover td, .crm-orders-table tr.selected td { background:var(--crm-tint); }
.crm-orders-table td:last-child { padding:0 3px; }
.crm-orders-table .crm-icon-button { width:25px; }
.crm-row-check { width:18px; height:25px; }
.crm-check-square { display:inline-grid; width:16px; height:16px; place-items:center; border:1px solid color-mix(in srgb,var(--crm-muted) 55%,transparent); border-radius:4px; }
.selected .crm-check-square { background:var(--crm-blue); color:#fff; border-color:var(--crm-blue); font-size:11px; }
.crm-order-number,.crm-nowrap,.crm-date { white-space:nowrap; }
.crm-date { display:inline-flex; gap:6px; align-items:center; }
.crm-date .crm-icon { width:16px; height:16px; color:var(--crm-muted); }
.crm-table-product { display:flex; align-items:center; gap:10px; }
.crm-table-product small { display:block; color:var(--crm-muted); margin-top:3px; }
.crm-root .crm-status { border-radius:6px; padding:5px 9px; font-size:12px; font-weight:600; }
.crm-root .crm-status.st-0 { background:#e8ecf2; color:#26344b; }
.crm-root .crm-status.st-1 { background:#efe0ff; color:#4a2d91; }
.crm-root .crm-status.st-2 { background:#fff1d6; color:#855305; }
.crm-root .crm-status.st-3 { background:#d9ebff; color:#0441b9; }
.crm-root .crm-status.st-4,.crm-root .crm-status.st-5 { background:#d7f5e1; color:#15653a; }
.crm-pagination { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:8px; color:var(--crm-muted); margin-top:15px; padding-top:6px; border-top:1px solid var(--crm-line); }
.crm-pagination nav { display:flex; flex-wrap:wrap; align-items:center; gap:5px; }
.crm-pagination button { min-height:34px; min-width:34px; padding:0 6px; }
.crm-pagination button:disabled { opacity:.45; }
.crm-orders-table .crm-no-rows { text-align:center; color:var(--crm-muted); }
.crm-sr-only { position:absolute; width:1px; height:1px; clip-path:inset(50%); overflow:hidden; }
.crm-details { position:sticky; top:8px; max-height:calc(100dvh - 16px); overflow:auto; padding:19px clamp(12px,1.45vw,23px) 16px; border:1px solid var(--crm-line); border-radius:10px; background:var(--crm-bg); }
.crm-details h3,.crm-details h4,.crm-package-card p { margin:0; }
.crm-details h4 { font-size:14px; }
.crm-details-top,.crm-details-title,.crm-files header { display:flex; justify-content:space-between; align-items:center; gap:8px; }
.crm-details-top > span,.crm-party small { color:var(--crm-muted); }
.crm-details-top .crm-icon-button { width:28px; height:28px; }
.crm-details-title { justify-content:flex-start; flex-wrap:wrap; gap:10px 22px; padding-bottom:14px; }
.crm-details-title h3 { font-size:28px; line-height:1.15; overflow-wrap:anywhere; }
.crm-party { display:grid; grid-template-columns:minmax(0,1.55fr) minmax(0,1fr); gap:8px; padding:12px 0; border-block:1px solid var(--crm-line); }
.crm-party small,.crm-party button { display:block; overflow-wrap:anywhere; }
.crm-party small { margin-bottom:5px; font-size:13px; }
.crm-party button { font-weight:700; }
.crm-party span { display:flex; gap:7px; align-items:center; overflow-wrap:anywhere; }
.crm-party .crm-icon { width:16px; height:16px; }
.crm-package-card { display:grid; align-items:center; grid-template-columns:minmax(84px,35%) minmax(0,1fr); gap:12px; margin:11px 0 9px; min-height:127px; padding:11px; border:1px solid var(--border); border-radius:7px; background:color-mix(in srgb,var(--crm-soft) 45%,var(--crm-bg)); }
.crm-package-card h4 { font-size:17px; overflow-wrap:anywhere; }
.crm-package-card p { color:var(--crm-muted); margin-top:3px; overflow-wrap:anywhere; }
.crm-package-card dl { display:grid; grid-template-columns:auto minmax(0,1fr); gap:3px 10px; margin:8px 0 0; padding-top:7px; border-top:1px solid var(--crm-line); font-size:13px; }
.crm-package-card dt { color:var(--crm-muted); }
.crm-package-card dd { margin:0; overflow-wrap:anywhere; }
.crm-package,.crm-box-placeholder { position:relative; display:inline-block; width:56px; aspect-ratio:1.35; flex:none; }
.crm-package-card .crm-package,.crm-package-card .crm-box-placeholder { width:100%; max-width:140px; }
.crm-box-placeholder { display:grid; place-items:center; color:var(--crm-muted); }
.crm-package i { position:absolute; inset:0; }
.crm-package i:nth-child(1) { background:linear-gradient(120deg,#e3bc80,#af793e); clip-path:polygon(11% 36%,48% 51%,48% 97%,11% 79%); }
.crm-package i:nth-child(2) { background:linear-gradient(125deg,#edc792,#d4a76b); clip-path:polygon(48% 51%,88% 32%,88% 77%,48% 97%); }
.crm-package i:nth-child(3) { background:linear-gradient(145deg,#e3c08b,#a67642); clip-path:polygon(11% 36%,53% 14%,88% 32%,48% 54%); }
.crm-package i:nth-child(4) { background:#edd0a3; clip-path:polygon(11% 36%,3% 23%,40% 4%,53% 14%); }
.crm-package i:nth-child(5) { background:#c7995f; clip-path:polygon(53% 14%,60% 1%,97% 17%,88% 32%); }
.crm-package i:nth-child(6) { background:linear-gradient(135deg,#f2d8af,#d0a271); clip-path:polygon(48% 51%,88% 32%,99% 44%,60% 64%,48% 51%,11% 36%,3% 44%,42% 64%,48% 51%); }
.crm-package.tray { transform:scaleY(.63); }
.crm-package.tray i:nth-child(n+4),.crm-package.handle i:nth-child(n+4) { display:none; }
.crm-package.tray i:nth-child(3) { background:linear-gradient(160deg,#f4d8ae,#e8bd85); }
.crm-package.handle i:nth-child(3) { background:#ebc691; }
.crm-package.handle i:nth-child(4) { display:block; background:#b68650; clip-path:polygon(40% 25%,40% 10%,62% 5%,62% 21%,58% 23%,58% 11%,44% 14%,44% 27%); }
.crm-package.divider { transform:scaleY(.78); }
.crm-package.divider i:nth-child(4) { background:#bd8e53; clip-path:polygon(25% 29%,60% 47%,58% 50%,23% 31%,33% 23%,69% 41%,67% 44%,31% 25%,42% 19%,78% 36%,76% 39%,40% 21%); }
.crm-facts > div { display:grid; grid-template-columns:19px minmax(0,1fr) minmax(85px,38%); gap:8px; align-items:center; padding:7px 2px; border-top:1px solid var(--crm-line); font-size:13px; }
.crm-facts span,.crm-facts .crm-icon { color:var(--crm-muted); }
.crm-facts b { overflow-wrap:anywhere; }
.crm-milestones,.crm-note,.crm-files,.crm-details-actions { border-top:1px solid var(--crm-line); padding-top:13px; margin-top:7px; }
.crm-milestones ol { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); margin:11px 0 6px; padding:0; list-style:none; text-align:center; }
.crm-milestones li { position:relative; display:grid; justify-items:center; gap:3px; font-size:10px; color:var(--crm-muted); }
.crm-milestones li:not(:last-child)::after { content:''; position:absolute; top:10px; left:50%; width:100%; height:2px; background:var(--border); }
.crm-milestones li.done::after { background:var(--crm-blue); }
.crm-milestones li i { display:grid; place-items:center; z-index:1; font-style:normal; width:22px; height:22px; border:1px solid var(--border); background:var(--crm-bg); border-radius:50%; margin-bottom:4px; }
.crm-milestones li.done i { color:white; background:var(--crm-blue); border-color:var(--crm-blue); }
.crm-milestones li.current i { border:2px solid var(--crm-blue); background:radial-gradient(circle,var(--crm-blue) 44%,var(--crm-bg) 48%); }
.crm-milestones li.current b { color:var(--text); }
.crm-note button { display:flex; width:100%; text-align:left; justify-content:space-between; align-items:flex-start; gap:7px; background:var(--crm-soft); border:1px solid var(--border); color:inherit; border-radius:6px; margin-top:6px; padding:8px 10px; }
.crm-note button span { white-space:pre-wrap; overflow-wrap:anywhere; min-width:0; }
.crm-note .crm-icon,.crm-files header .crm-icon,.crm-file .crm-icon { width:15px; height:15px; color:var(--crm-muted); }
.crm-file-list { display:grid; grid-template-columns:repeat(auto-fit,minmax(133px,1fr)); gap:7px; margin-top:9px; }
.crm-file { display:grid; grid-template-columns:29px minmax(0,1fr) 15px; align-items:center; gap:5px; min-height:47px; color:inherit; text-decoration:none; border:1px solid var(--border); background:var(--crm-soft); border-radius:6px; padding:5px 6px; font-size:11px; }
.crm-file:hover { border-color:var(--crm-blue); }
.crm-file b { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; display:block; }
.crm-file small { display:block; color:var(--crm-muted); }
.crm-extension { display:grid; place-items:center; min-height:27px; font-size:9px; border-radius:4px; color:#fff; background:#cf4d32; }
.crm-details-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:17px; }
.crm-details-actions .crm-button { flex:1; white-space:nowrap; }
.crm-details-actions .crm-button.primary { flex:1.4; }
.crm-root .crm-board { grid-auto-columns:minmax(170px,1fr); gap:9px; padding:3px 2px 14px; }
.crm-root .crm-lane { min-height:340px; padding:0; background:var(--crm-soft); border-radius:8px; }
.crm-root .crm-lane header { margin:0; padding:10px; border-radius:7px 7px 0 0; background:var(--crm-line); align-items:center; }
.crm-root .crm-lane.st-1 header,.crm-root .crm-lane.st-3 header { background:var(--crm-tint); }
.crm-root .crm-lane.st-2 header { background:color-mix(in srgb,#eba637 18%,var(--crm-bg)); }
.crm-root .crm-lane.st-4 header,.crm-root .crm-lane.st-5 header { background:color-mix(in srgb,#36bb64 18%,var(--crm-bg)); }
.crm-root .crm-lane header span { border-radius:12px; padding:2px 6px; background:var(--crm-bg); }
.crm-root .crm-lane-cards { padding:6px; }
.crm-root .crm-order-card { color:inherit; background:var(--crm-bg); }
.crm-root .crm-order-card.selected,.crm-root .crm-lane.is-drop { border-color:var(--crm-blue); }
.crm-root .crm-order-product { grid-template-columns:48px minmax(0,1fr); }
.crm-root .crm-order-product .crm-package { width:48px; }
.crm-root .crm-order-stats { padding-top:5px; font-size:11px; }
.crm-root .crm-order-stats > span { display:flex; gap:3px; align-items:center; }
.crm-order-stats .crm-icon { width:13px; height:13px; }
.crm-root .crm-progress { display:flex; gap:2px; background:none; }
.crm-root .crm-progress i { flex:1; background:var(--crm-line); }
.crm-root .crm-progress i.filled { background:var(--crm-blue); }
.crm-root .crm-lane-empty { text-align:center; padding:8px; }
.crm-root .crm-error:empty { display:none; }
.crm-root .crm-help,.crm-root .crm-editor { margin:auto; color:var(--text); background:var(--crm-bg); border:1px solid var(--border); border-radius:12px; max-height:90dvh; }
.crm-root .crm-editor { width:min(680px,calc(100vw - 24px)); overflow:auto; }
.crm-root .crm-help { width:min(420px,calc(100vw - 24px)); }
.crm-root dialog::backdrop { background:#17253a65; }
.crm-root .crm-form { padding-top:12px; }
.crm-root .crm-form label { display:grid; gap:5px; color:var(--crm-muted); }
.crm-root .crm-form input:not([type=checkbox]),.crm-root .crm-form select,.crm-root .crm-form textarea { width:100%; min-width:0; border:1px solid var(--border); border-radius:6px; padding:8px; font:inherit; color:var(--text); background:var(--crm-bg); }
.crm-root .crm-related,.crm-form-actions { margin-top:12px; }
@media(max-width:1300px) { .crm-root .crm-layout button { padding:5px; } .crm-stage-tabs button { padding-inline:8px; } }
@media(max-width:1120px) { .crm-content { grid-template-columns:minmax(0,1fr); } .crm-details { position:static; max-height:none; } .crm-search kbd { display:none; } .crm-details-actions .crm-button { flex:0 1 auto; } }
@media(max-width:830px) { .crm-content,.crm-title { padding-inline:12px; } .crm-title { grid-template-columns:minmax(0,1fr); } .crm-title .crm-layout { justify-self:start; } }
@media(max-width:600px) { .crm-top { flex-wrap:wrap; gap:8px; } .crm-search { flex:1 0 100%; } .crm-top-actions { gap:4px; } .crm-button { padding-inline:8px; font-size:12px; } .crm-filters { grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; } .crm-reset { justify-self:start; } .crm-root .crm-board { grid-auto-columns:minmax(165px,65vw); } }

#fefcoPanel > .crm-root .crm-kind-tabs { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); inline-size:min(242px,100%); gap:4px; padding:4px; border:1px solid var(--crm-line); border-radius:9px; background:var(--crm-soft); }
#fefcoPanel > .crm-root .crm-kind-tabs button { display:flex; align-items:center; justify-content:center; gap:6px; min-width:0; padding:7px 6px; border:1px solid transparent; border-radius:7px; color:inherit; background:transparent; }
#fefcoPanel > .crm-root .crm-kind-tabs button.active { color:var(--crm-blue); background:var(--crm-bg); border-color:var(--crm-line); font-weight:650; box-shadow:0 1px 2px #14233b12; }
#fefcoPanel > .crm-root .crm-kind-tabs span { padding:1px 6px; border-radius:99px; background:var(--crm-soft); font-size:12px; }
#fefcoPanel > .crm-root .crm-button.danger { color:#b42318; border-color:#efc5c1; background:#fff7f6; }
#fefcoPanel > .crm-root .crm-file-row { display:flex; gap:5px; align-items:stretch; }
#fefcoPanel > .crm-root .crm-file-row .crm-file { flex:1; min-width:0; }
#fefcoPanel > .crm-root .crm-file-delete { width:34px; border:1px solid #efc5c1; border-radius:7px; color:#b42318; background:#fff7f6; font-size:19px; }
.crm-root .crm-details-title select.crm-status {
  width:auto;
  max-width:100%;
  min-height:32px;
  padding:4px 28px 4px 9px;
  border:1px solid var(--crm-line);
  cursor:pointer;
}
.crm-root .crm-status-dialog { width:min(360px,calc(100vw - 24px)); }
.crm-client-picker > div { display:grid; grid-template-columns:minmax(0,1fr) 38px; align-items:end; gap:6px; }
.crm-root .crm-client-picker button { min-height:35px; padding:0; font-size:20px; }

#fefcoPanel .fx-crm-link {
  background:var(--panel);
  border:1px solid var(--border);
  border-left:3px solid var(--accent);
  border-radius:8px;
  padding:12px 14px;
  margin-bottom:8px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:8px 16px;
}
#fefcoPanel .fx-crm-link small {
  display:block;
  margin-top:4px;
  color:var(--muted);
  overflow-wrap:anywhere;
}
#fefcoPanel .fx-crm-link-actions, #fefcoPanel .fx-crm-drafts .tl-acts { display:flex; flex-wrap:wrap; gap:6px; }
#fefcoPanel .fx-crm-link-error { margin:0; flex-basis:100%; color:var(--bad,#c62828); }
#fefcoPanel .fx-crm-link-error:empty { display:none; }
#fefcoPanel .fx-crm-drafts { margin:0 0 12px; }
#fefcoPanel .fx-crm-drafts > summary { width:fit-content; cursor:pointer; padding:4px 0; color:var(--muted); }
#fefcoPanel .fx-crm-drafts > summary small { padding-inline:5px; }
#fefcoPanel .fx-crm-drafts .tl-acts { justify-content:flex-start; margin-top:6px; }
.crm-root .crm-calculation { margin-top:10px; padding:10px; background:var(--crm-soft); border:1px solid var(--crm-line); border-radius:8px; }
.crm-root .crm-calculation small { color:var(--crm-muted); }
.crm-root .crm-calculation dl { display:grid; grid-template-columns:auto minmax(0,1fr); gap:4px 10px; margin:8px 0 0; }
.crm-root .crm-calculation dt { color:var(--crm-muted); }
.crm-root .crm-calculation dd { margin:0; overflow-wrap:anywhere; }
#fefcoPanel .fx-free-dimensions { grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
#fefcoPanel .fx-free-dimensions input {
  width:100%;
  min-width:0;
  box-sizing:border-box;
  min-height:32px;
  padding-inline:8px;
}
#fefcoPanel .fx-free-dimensions input[aria-invalid] { border-color:var(--bad,#c62828); }
#fefcoPanel #fxTools[hidden] { display:none; }

.crm-filters { grid-template-columns:repeat(4,minmax(0,1fr)) auto auto; }
.crm-root .crm-overdue-filter { min-height:36px; font-size:12px; white-space:nowrap; }
.crm-overdue-filter span { font-variant-numeric:tabular-nums; }
.crm-root .crm-overdue-filter[aria-pressed="true"] { color:#a42320; background:#fde9e7; border-color:#f5bdb9; }
.crm-root .crm-late,.crm-root .crm-late-label { color:var(--bad,#b42318); }
.crm-late-label { display:block; margin:3px 0 0 20px; font-size:10px; }
.crm-detail-tabs { display:flex; flex-wrap:wrap; gap:4px; margin:12px 0; padding-bottom:4px; border-bottom:1px solid var(--crm-line); }
.crm-detail-tabs button { padding:7px 10px; border:1px solid transparent; border-radius:6px; background:transparent; color:inherit; }
.crm-detail-tabs button[aria-pressed="true"] { background:var(--crm-tint); border-color:var(--crm-line); color:var(--crm-blue); font-weight:650; }
.crm-detail-section > header { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px; }
.crm-detail-section p { font-size:13px; color:var(--crm-muted); }
.crm-access-list { display:grid; grid-template-columns:minmax(90px,auto) minmax(0,1fr); gap:6px 12px; margin:10px 0; }
.crm-access-list dt { color:var(--crm-muted); }
.crm-access-list dd { margin:0; overflow-wrap:anywhere; }
.crm-history,.crm-revisions { list-style:none; padding:0; margin:8px 0; display:grid; gap:6px; }
.crm-history li,.crm-revision { display:flex; align-items:start; justify-content:space-between; gap:8px; min-width:0; border:1px solid var(--crm-line); border-radius:7px; background:var(--crm-soft); padding:9px; }
.crm-history li > div,.crm-revision > div:first-child { min-width:0; overflow-wrap:anywhere; }
.crm-history li > small { text-align:right; flex:0 1 130px; }
.crm-history small,.crm-revision small { display:block; margin-block-start:3px; color:var(--crm-muted); }
.crm-revision.approved { border-color:#7eb895; }
.crm-revision.pending { border-color:var(--crm-blue); }
.crm-revision-actions { display:flex; flex-wrap:wrap; gap:5px; }
.crm-root .crm-preview-dialog { width:min(960px,calc(100vw - 24px)); }
.crm-preview img { display:block; margin:0 auto; max-width:100%; max-height:65dvh; background:white; }
@media(max-width:1300px) { .crm-filters { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-width:600px) { .crm-filters { grid-template-columns:repeat(2,minmax(0,1fr)); } }

.crm-root .crm-workspace { background:var(--crm-soft); }
.crm-root .crm-content { grid-template-columns:minmax(0,1fr) minmax(340px,36%); gap:8px; padding:8px; }
.crm-root .crm-content:has(.crm-details[hidden]) { grid-template-columns:minmax(0,1fr); }
.crm-root .crm-main { container-type:inline-size; display:flex; flex-direction:column; gap:12px; min-height:min(720px,calc(100dvh - 126px)); padding:18px 12px 12px; border:1px solid var(--crm-line); border-radius:10px; background:var(--crm-bg); }
.crm-root .crm-title { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; padding:0; gap:8px 12px; }
.crm-root .crm-title-group { gap:8px 14px; }
.crm-root .crm-title h2 { font-size:clamp(21px,1.65vw,29px); }
.crm-root .crm-kind-tabs { width:auto; grid-template-columns:repeat(2,minmax(90px,1fr)); }
.crm-root .crm-top-actions .crm-button { min-height:32px; padding-inline:8px; font-size:12px; }
.crm-root .crm-kpis { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:8px; }
.crm-root .crm-kpi { display:flex; align-items:flex-start; gap:10px; min-height:64px; min-width:0; padding:9px; text-align:left; border:1px solid var(--crm-line); border-radius:8px; background:var(--crm-tint); color:var(--text); font-size:12px; }
.crm-root .crm-kpi .crm-icon { color:var(--crm-blue); width:22px; height:22px; flex:none; }
.crm-root .crm-kpi strong { display:block; font-size:23px; line-height:1.16; margin-top:3px; }
.crm-root .crm-kpi.late { background:color-mix(in srgb,#e52c41 8%,var(--crm-bg)); border-color:color-mix(in srgb,#e52c41 22%,var(--crm-line)); color:var(--bad,#bb2026); }
.crm-root .crm-kpi.today { background:color-mix(in srgb,#e4a217 9%,var(--crm-bg)); border-color:color-mix(in srgb,#e4a217 20%,var(--crm-line)); }
.crm-root .crm-kpi.shipping { background:color-mix(in srgb,#2eaf4b 9%,var(--crm-bg)); border-color:color-mix(in srgb,#2eaf4b 20%,var(--crm-line)); }
.crm-root .crm-kpi.late .crm-icon { color:var(--bad,#bb2026); }
.crm-root .crm-kpi.today .crm-icon { color:#b47300; }
.crm-root .crm-kpi.shipping .crm-icon { color:#158139; }
.crm-root .crm-kpi[aria-pressed=true] { border-color:var(--crm-blue); }
.crm-root .crm-search-panel { padding:9px; background:var(--crm-soft); border:1px solid var(--crm-line); border-radius:8px; }
.crm-root .crm-top { padding:0; border:0; background:transparent; gap:8px; }
.crm-root .crm-search { min-width:120px; }
.crm-root .crm-expand { min-height:32px; padding-inline:7px; }
.crm-root .crm-filters { grid-template-columns:repeat(5,minmax(0,1fr)); gap:7px; padding:9px 0 0; }
.crm-root .crm-filter select { font-size:12px; }
.crm-root .crm-reset { white-space:nowrap; justify-self:start; font-size:12px; }
.crm-root .crm-overdue-filter { justify-content:space-between; min-height:32px; width:max-content; max-width:100%; gap:6px; padding-inline:7px; }
.crm-root .crm-overdue-filter[aria-pressed=true] { color:var(--crm-blue); background:var(--crm-tint); border-color:var(--crm-line); }
.crm-root .crm-switch { display:inline-flex; align-items:center; width:25px; height:14px; flex:none; border-radius:12px; padding:2px; background:var(--crm-muted); }
.crm-root .crm-switch::before { content:""; width:10px; height:10px; border-radius:50%; background:white; }
.crm-root [aria-pressed=true] .crm-switch { background:var(--crm-blue); justify-content:end; }
.crm-root .crm-stage-tabs { margin:0; gap:2px; justify-content:flex-start; }
.crm-root .crm-stage-tabs button { padding-inline:10px; }
.crm-root #crm-list { flex:1; display:flex; flex-direction:column; }
.crm-root .crm-orders-table { min-width:795px; font-size:11px; }
.crm-root .crm-orders-table th,.crm-root .crm-orders-table td { padding-inline:5px; }
.crm-root .crm-orders-table th { height:38px; }
.crm-root .crm-orders-table td { height:43px; }
.crm-root .crm-orders-table .crm-icon { width:13px; height:13px; }
.crm-root .crm-orders-table input[type=checkbox] { margin:0 3px; width:14px; height:14px; accent-color:var(--crm-blue); }
.crm-root .crm-table-product { gap:5px; min-width:110px; }
.crm-root .crm-manager-cell { display:inline-flex; align-items:center; gap:4px; white-space:nowrap; }
.crm-root .crm-stage-label { display:inline-block; white-space:nowrap; border:1px solid var(--crm-line); border-radius:5px; padding:2px 4px; }
.crm-root .crm-stage-label::before { content:""; display:inline-block; margin-right:4px; width:6px; height:6px; border-radius:50%; background:var(--crm-blue); vertical-align:1px; }
.crm-root .crm-order-priority { white-space:nowrap; font-weight:600; }
.crm-root .crm-order-priority.high { color:var(--bad,#be2531); }
.crm-root .crm-order-priority.low { color:var(--crm-muted); }
.crm-root .crm-pagination { gap:8px; flex-wrap:wrap; margin-top:auto; padding:12px 0 0; }
.crm-root .crm-bulk { display:flex; align-items:center; flex-wrap:wrap; flex:1; gap:5px; }
.crm-root .crm-bulk>span { margin-right:3px; white-space:nowrap; }
.crm-root .crm-bulk .crm-button { min-height:29px; padding-inline:6px; font-size:11px; }
.crm-root .crm-page-size { display:flex; gap:5px; align-items:center; font-size:11px; white-space:nowrap; }
.crm-root .crm-page-size select { max-width:58px; min-height:29px; }
.crm-root .crm-details { container-type:inline-size; max-height:calc(100dvh - 25px); padding:12px; }
.crm-root .crm-details-title { margin:0; padding-bottom:4px; gap:12px; }
.crm-root .crm-detail-tabs { gap:1px; margin:5px 0 12px; padding:0; }
.crm-root .crm-detail-tabs button { font-size:11px; padding:8px 6px; border-radius:0; white-space:nowrap; }
.crm-root .crm-detail-tabs button[aria-pressed=true] { background:transparent; border-color:transparent transparent var(--crm-blue); }
.crm-root .crm-summary-grid { display:grid; grid-template-columns:minmax(0,1.22fr) minmax(0,1fr); gap:10px; align-items:start; }
.crm-root .crm-summary-side { display:grid; gap:8px; min-width:0; }
.crm-root .crm-summary-box,.crm-root .crm-reminder { padding:8px; border:1px solid var(--crm-line); border-radius:7px; background:var(--crm-soft); overflow-wrap:anywhere; }
.crm-root .crm-summary-box h4,.crm-root .crm-summary-panels h4 { font-size:12px; margin:0; }
.crm-root .crm-summary-box h4 { margin-bottom:5px; }
.crm-root .crm-contacts { display:grid; gap:4px; font-size:11px; margin-top:7px; padding-top:7px; border-top:1px solid var(--crm-line); }
.crm-root .crm-summary-side .crm-note { margin:0; padding:8px; border:1px solid var(--crm-line); }
.crm-root .crm-summary-side .crm-note button { padding:0; border:0; background:transparent; }
.crm-root .crm-summary-grid .crm-package-card { padding:8px; gap:8px; }
.crm-root .crm-summary-grid .crm-package-card>.crm-package { width:64px; flex:0 0 64px; }
.crm-root .crm-summary-grid .crm-package-card h4 { font-size:13px; }
.crm-root .crm-summary-grid .crm-facts>div { grid-template-columns:16px minmax(0,1fr) minmax(0,.8fr); gap:5px; min-height:26px; font-size:11px; }
.crm-root .crm-summary-panels { padding:10px 0; border-top:1px solid var(--crm-line); }
.crm-root .crm-summary-panels>section>header { min-height:25px; display:flex; gap:4px; align-items:center; justify-content:space-between; }
.crm-root .crm-summary-panels small,.crm-root .crm-recent small { display:block; font-size:10px; margin-top:3px; color:var(--crm-muted); }
.crm-root .crm-reminder { display:flex; gap:5px; align-items:flex-start; font-size:11px; margin-bottom:4px; }
.crm-root .crm-reminder .crm-icon { width:14px; height:14px; color:#b47300; }
.crm-root .crm-reminder .crm-icon-button { margin-left:auto; }
.crm-root .crm-reminder.late { color:var(--bad,#bb2026); background:color-mix(in srgb,#e52c41 7%,var(--crm-bg)); }
.crm-root .crm-reminder.late .crm-icon { color:inherit; }
.crm-root .crm-current-revision { display:flex; gap:6px; font-size:11px; }
.crm-root .crm-current-revision>.crm-icon { width:22px; height:22px; }
.crm-root .crm-version-thumb { display:grid; place-items:center; background:white; color:#62728a; border:1px solid var(--crm-line); border-radius:5px; width:62px; height:60px; padding:3px; flex:none; }
.crm-root .crm-version-thumb img { width:100%; height:100%; object-fit:contain; }
.crm-root .crm-revision-tag { color:var(--crm-blue); }
.crm-root .crm-revision-tag.approved { color:#187b3a; }
.crm-root .crm-upload-version { margin-top:6px; display:flex; width:100%; align-items:center; justify-content:center; gap:6px; padding:7px 4px; border:1px dashed var(--crm-blue); background:var(--crm-tint); color:var(--crm-blue); font-size:11px; border-radius:7px; }
.crm-root .crm-summary-box dl { display:grid; grid-template-columns:1fr auto; gap:4px 5px; font-size:11px; margin:6px 0 0; }
.crm-root .crm-summary-box dd { margin:0; text-align:right; }
.crm-root .crm-recent,.crm-root .crm-comments { margin:0; padding:0; list-style:none; }
.crm-root .crm-recent li { border-left:2px solid var(--crm-blue); padding:3px 6px; margin-bottom:6px; font-size:11px; }
.crm-root .crm-comment-form label { display:grid; gap:4px; margin:8px 0; }
.crm-root .crm-comment-form textarea { width:100%; resize:vertical; }
.crm-root .crm-comments li { padding:8px 0; border-bottom:1px solid var(--crm-line); }
.crm-root .crm-comments time { margin-left:7px; color:var(--crm-muted); font-size:11px; }
.crm-root .crm-comments p { white-space:pre-wrap; overflow-wrap:anywhere; }
.crm-root .crm-plan-fields { grid-column:1/-1; }
.crm-root .crm-plan-fields>summary { cursor:pointer; }
.crm-root .crm-plan-fields>div,.crm-root .crm-quick-list { display:flex; flex-wrap:wrap; gap:8px; margin-top:8px; }
.crm-root .crm-plan-fields label { flex:1 1 125px; }
.crm-root .crm-milestones ol { grid-template-columns:repeat(5,minmax(0,1fr)); }
.crm-root .crm-milestones li b { font-size:10px; overflow-wrap:anywhere; }
@container (max-width:750px) { .crm-root .crm-filters { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@container (max-width:440px) {
  .crm-root .crm-filters,.crm-root .crm-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .crm-root .crm-summary-grid { grid-template-columns:minmax(0,1fr); }
}
@media(max-width:1120px) {
  .crm-root .crm-content { grid-template-columns:minmax(0,1fr); }
  .crm-root .crm-details { max-height:none; }
}

.crm-root .crm-page-nav { display:flex; align-items:center; justify-content:flex-end; gap:6px; min-height:30px; margin-top:4px; font-size:11px; }
.crm-root .crm-page-nav button,.crm-root .crm-summary-switch button { border:1px solid var(--crm-line); border-radius:5px; color:inherit; background:var(--crm-bg); padding:3px 9px; }
.crm-root .crm-summary-switch { display:flex; gap:5px; margin-bottom:7px; }
.crm-root .crm-summary-switch [aria-pressed=true] { color:var(--crm-blue); background:var(--crm-tint); }
.crm-root .crm-comment-full { white-space:pre-wrap; overflow-wrap:anywhere; }
.crm-root .crm-calculation-toggle { margin-top:3px; }
.crm-root .crm-client-grid + .crm-page-nav { margin-top:auto; }
@media screen and (min-width:901px) and (min-height:620px) {
  body:has(#dashboard:not(.hidden) > .tab-panel.active[data-tab=fefco] .crm-root:not([hidden])) { height:100dvh; overflow:hidden; }
  body:has(#dashboard:not(.hidden) > .tab-panel.active[data-tab=fefco] .crm-root:not([hidden])) .app { display:flex; flex-direction:column; height:100dvh; min-height:0; max-width:none; padding:8px 10px; }
  body:has(#dashboard:not(.hidden) > .tab-panel.active[data-tab=fefco] .crm-root:not([hidden])) .app-header { display:none; }
  #dashboard:has(> .tab-panel.active[data-tab=fefco] .crm-root:not([hidden])),
  #dashboard > .tab-panel.active[data-tab=fefco]:has(.crm-root:not([hidden])),
  #fefcoPanel:has(> .crm-root:not([hidden])) { display:flex; flex:1; flex-direction:column; min-height:0; }
  #fefcoPanel:has(> .crm-root:not([hidden])) > .crm-nav { align-self:flex-start; flex:none; margin:0 0 6px; }
  #fefcoPanel > .crm-root:not([hidden]) { display:flex; flex:1; flex-direction:column; min-height:0; }
  .crm-root .crm-workspace,.crm-root .crm-content { height:100%; min-height:0; }
  .crm-root .crm-content { align-items:stretch; gap:6px; padding:6px; }
  .crm-root .crm-main { min-height:0; padding:12px 10px 8px; gap:8px; }
  .crm-root .crm-title,.crm-root .crm-kpis,.crm-root .crm-stage-tabs,.crm-root .crm-search-panel { flex:none; }
  .crm-root .crm-top { min-height:0; }
  .crm-root .crm-search { min-height:34px; }
  .crm-root .crm-kpi { min-height:49px; padding:6px 8px; }
  .crm-root .crm-kpi strong { font-size:20px; margin-top:1px; }
  .crm-root .crm-stage-tabs { flex-wrap:wrap; overflow:visible; }
  .crm-root .crm-stage-tabs button { font-size:12px; padding:7px 7px 6px; }
  .crm-root .crm-top-actions { flex-wrap:wrap; gap:6px; }
  .crm-root #crm-list { min-height:0; }
  .crm-root .crm-table-wrap { overflow:visible; }
  .crm-root .crm-orders-table { min-width:0; table-layout:fixed; }
  .crm-root .crm-orders-table th { height:34px; }
  .crm-root .crm-orders-table td { height:40px; }
  .crm-root .crm-orders-table th,.crm-root .crm-orders-table td { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .crm-root .crm-orders-table th:first-child,.crm-root .crm-orders-table th:last-child { width:28px; }
  .crm-root .crm-orders-table th:nth-child(4) { width:22%; }
  .crm-root .crm-table-product { min-width:0; }
  .crm-root .crm-table-product>span:last-child,.crm-root .crm-table-product small { overflow:hidden; text-overflow:ellipsis; }
  .crm-root .crm-table-product .crm-package { width:42px; flex:0 0 42px; }
  .crm-root .crm-late-label { margin-top:1px; }
  .crm-root .crm-pagination { padding-top:5px; }
  .crm-root .crm-board { display:grid; grid-template-columns:repeat(var(--crm-board-columns),minmax(0,1fr)); grid-auto-flow:row; overflow:visible; gap:8px; }
  .crm-root .crm-lane { min-height:0; min-width:0; }
  .crm-root .crm-lane header { padding:5px; }
  .crm-root .crm-lane-cards { min-height:0; padding:4px; gap:4px; }
  .crm-root .crm-order-card { height:102px; gap:2px; padding:4px; overflow:hidden; }
  .crm-root .crm-lane-empty { min-height:0; }
  .crm-root .crm-order-client,.crm-root .crm-order-product b,.crm-root .crm-order-product small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .crm-root .crm-order-stats { padding-top:0; }
  .crm-root .crm-client-grid { grid-template-columns:repeat(auto-fill,minmax(214px,1fr)); gap:8px; }
  .crm-root .crm-client-card { height:102px; padding:8px; gap:4px; overflow:hidden; }
  .crm-root .crm-client-card span,.crm-root .crm-client-card b { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .crm-root .crm-details { position:static; display:flex; flex-direction:column; max-height:none; min-height:0; overflow:clip; padding:9px 10px; }
  .crm-root .crm-details-top,.crm-root .crm-details-title,.crm-root .crm-detail-tabs,.crm-root .crm-details-actions { flex:none; }
  .crm-root .crm-details-title { padding-bottom:0; }
  .crm-root .crm-details-title h3 { font-size:24px; }
  .crm-root .crm-detail-tabs { margin:4px 0 7px; }
  .crm-root .crm-detail-tabs button { padding-block:5px; }
  .crm-root .crm-summary-body { flex:1; min-height:0; }
  .crm-root .crm-summary-grid { grid-template-columns:minmax(0,1.17fr) minmax(0,1fr); gap:7px; }
  .crm-root .crm-summary-side { gap:5px; }
  .crm-root .crm-summary-grid .crm-package-card { margin:0 0 5px; min-height:78px; grid-template-columns:48px minmax(0,1fr); gap:6px; padding:6px; }
  .crm-root .crm-summary-grid .crm-package-card>.crm-package { width:48px; }
  .crm-root .crm-package-card h4,.crm-root .crm-package-card p,.crm-root .crm-contacts span,.crm-root .crm-facts b,.crm-root .crm-current-revision small,.crm-root .crm-summary-box dd,.crm-root .crm-recent b { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .crm-root .crm-summary-side .crm-note span { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; }
  .crm-root .crm-summary-side .crm-note button,.crm-root .crm-summary-side .crm-note h4 { margin:0; }
  .crm-root .crm-summary-grid .crm-facts>div { min-height:22px; padding-block:2px; }
  .crm-root .crm-milestones,.crm-root .crm-summary-panels { margin-top:5px; padding:6px 0 0; }
  .crm-root .crm-milestones ol { margin:6px 0; }
  .crm-root .crm-milestones li i { margin-bottom:1px; }
  .crm-root .crm-summary-panels>section>header { min-height:19px; }
  .crm-root .crm-summary-box,.crm-root .crm-reminder { padding:5px; }
  .crm-root .crm-version-thumb { width:44px; height:44px; }
  .crm-root .crm-upload-version { padding:4px; margin-top:4px; }
  .crm-root .crm-details-actions { margin-top:auto; padding-top:6px; gap:4px; }
  .crm-root .crm-details-actions .crm-button { min-height:30px; padding:4px 6px; font-size:11px; }
  .crm-root .crm-files { padding:0; margin:0; }
  .crm-root .crm-file b { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .crm-root .crm-file-list { grid-template-columns:minmax(0,1fr); gap:3px; }
  .crm-root .crm-revisions,.crm-root .crm-history { gap:3px; }
  .crm-root .crm-revision,.crm-root .crm-history li { padding:5px; }
  .crm-root .crm-revision small,.crm-root .crm-history li > div small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .crm-root .crm-comments li { padding:3px 0; }
  .crm-root .crm-comments p { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; margin:0; }
  .crm-root .crm-comment-form textarea { max-height:86px; }
  @container (max-width:850px) {
    .crm-root .crm-orders-table :is(th,td):nth-child(8) { display:none; }
  }
  @container (max-width:675px) {
    .crm-root .crm-orders-table :is(th,td):is(:nth-child(7),:nth-child(9)) { display:none; }
  }
}
@media screen and (min-width:901px) and (max-width:1120px) and (min-height:620px) {
  .crm-root .crm-main.crm-detail-only { display:none; }
}

