/* Collection and record layouts shared by the CRM's workspaces. */
.eyebrow { margin:0 0 7px;color:#9c92c5;text-transform:uppercase;letter-spacing:.13em;font-size:.62rem;font-weight:650; }
.breadcrumbs { min-width:0;max-width:100%; }.breadcrumbs a { flex-shrink:0; }.breadcrumb-current { overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:420px; }
.sidebar-frame { flex:0 0 236px;width:236px;height:100vh;position:sticky;top:0;align-self:flex-start;z-index:10;transition:flex-basis .15s ease,width .15s ease; }
.sidebar-collapsed .sidebar-frame { flex-basis:68px;width:68px; }
.sidebar-frame > .sidebar { width:100%;height:100%;position:relative; }
.sidebar-edge-form { position:absolute;top:24px;right:-14px;margin:0;z-index:11; }
.sidebar-edge-toggle { display:flex;align-items:center;justify-content:center;width:28px;height:28px;padding:4px;border:2px solid var(--bg);border-radius:50%;background:#6f5dde;color:#fff;cursor:pointer;box-shadow:0 2px 7px #0003; }
.sidebar-edge-toggle:hover { background:#8571ef; }
.sidebar-edge-toggle:focus-visible { outline:2px solid #c5bbff;outline-offset:3px; }
.sidebar-edge-toggle svg { display:block;width:16px;height:16px; }
@media(max-width:680px) { .sidebar-frame,.sidebar-collapsed .sidebar-frame { flex-basis:56px;width:56px;transition:none; }.sidebar-frame > .sidebar { transition:none; }.sidebar-edge-form { display:none; } }
.page-header .page-description { margin:5px 0 0;max-width:620px; }
.page-header > .btn { flex-shrink:0; }
.collection-toolbar { display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:18px;padding:17px 0 20px; }
.collection-toolbar .filter-pills { gap:6px;display:flex;flex-wrap:wrap; }
.collection-toolbar .client-search { margin:0;display:flex;gap:8px;flex:0 1 auto; }
.client-search input[type="search"] { width:270px;max-width:100%; }
.filter-pill { font:inherit;font-size:.76rem;cursor:pointer;white-space:nowrap; }
button.filter-pill { background:transparent;line-height:1.4; }
button.filter-pill.active { background:var(--primary-soft);color:#c5bcff;border-color:var(--primary-border); }
.filter-pill.active { color:#c5bcff; }
.btn-ghost { background:transparent;border:1px solid transparent;color:var(--text-muted); }
.btn-ghost:hover { background:#ffffff07;border-color:var(--border);color:var(--text); }
.btn[aria-disabled="true"] { opacity:.35;cursor:default;pointer-events:none; }
.view-switch { margin-bottom:18px; }
.view-switch-option { font-size:.76rem;padding:8px 17px; }
.list-footer { display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;border-top:1px solid var(--border);padding-top:16px;margin-top:12px; }
.list-count { margin:0;color:var(--text-muted);font-size:.75rem; }
.pagination { display:flex;align-items:center;gap:5px;flex-wrap:wrap; }
.page-number { display:inline-flex;align-items:center;justify-content:center;min-width:32px;height:32px;border-radius:7px;font-size:.76rem;color:var(--text-muted);border:1px solid transparent; }
.page-number:hover { background:var(--surface-hover);color:var(--text); }
.page-number.active { background:var(--primary-soft);color:#c8beff;border-color:var(--primary-border); }
.collection-empty { text-align:center;padding:40px 20px 44px;max-width:480px;margin:auto; }
.collection-empty .empty-icon { display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;background:#8b71ed12;color:#a798ec;border:1px solid #8b71ed25;border-radius:12px;margin-bottom:16px; }
.collection-empty h2 { margin:0 0 10px;font-size:1rem; }
.collection-empty p { color:var(--text-muted);font-size:.83rem;line-height:1.7;margin:0 0 18px; }
table { font-size:.81rem; }
table th { font-size:.65rem;letter-spacing:.045em;text-transform:uppercase;white-space:nowrap;padding-top:13px;padding-bottom:13px;color:#989eb3; }
table td { padding-top:16px;padding-bottom:16px;line-height:1.6; }
table tbody tr:last-child td { border-bottom:0; }
table tbody tr:hover { background:#8b71ed05; }
table td:first-child > a,.record-link { font-weight:550;color:#d9d2fb; }
table td.text-right { font-variant-numeric:tabular-nums;white-space:nowrap; }
.table-scroll:focus-visible { outline:2px solid var(--primary);outline-offset:3px; }
.table-hint { display:none;font-size:.64rem;color:var(--text-muted);margin:9px 0 0; }
.table-scroll .inline-form[open] { min-width:270px; }
.section-nav { display:flex;align-items:center;gap:5px;overflow-x:auto;max-width:100%;padding:7px 0 13px;margin:0 0 18px;border-bottom:1px solid var(--border);scrollbar-width:thin; }
.section-nav a { display:inline-flex;align-items:center;gap:8px;white-space:nowrap;font-size:.77rem;color:var(--text-muted);padding:8px 12px;border-radius:7px; }
.section-nav a:hover,.section-nav a:focus-visible { color:#ded7ff;background:var(--primary-soft); }
.section-nav a span { color:#b8aecf;background:#ffffff08;min-width:20px;padding:1px 5px;text-align:center;border-radius:5px;font-size:.63rem; }
.record-section { scroll-margin-top:20px; }
.record-section:target { border-color:#7b68d9;box-shadow:0 0 0 2px #8b71ed10; }
.record-summary { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:0 0 20px;border:1px solid var(--border);border-radius:12px;background:linear-gradient(100deg,#8b71ed0b,transparent),var(--surface); }
.record-summary > div { min-width:0;padding:21px 23px;border-right:1px solid var(--border); }
.record-summary > div:last-child { border-right:0; }
.record-summary dt { color:var(--text-muted);font-size:.73rem; }
.record-summary dd { margin:8px 0 7px;font-size:1.35rem;line-height:1.4;letter-spacing:-.02em;font-weight:650;overflow-wrap:anywhere;font-variant-numeric:tabular-nums; }
.record-summary small { display:block;font-size:.69rem;line-height:1.7;color:#8f96ab; }
.record-summary .summary-success dd { color:#6bd5ad; }
.record-summary .summary-warning dd { color:#e8bb68; }
.contact-card,.document-overview { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 30px; }
.contact-card > h2,.document-overview > h2 { grid-column:1/-1;margin:0; }
.contact-card > p,.document-overview > p { margin:0;overflow-wrap:anywhere;line-height:1.7;font-size:.83rem; }
.contact-card > p > strong,.document-overview > p > strong { display:block;font-size:.69rem;font-weight:500;color:var(--text-muted);margin-bottom:4px; }
.document-context { color:#a6adc2;font-size:.8rem;line-height:1.8;max-width:800px;margin:0 0 20px; }
.document-amount { display:flex;align-items:baseline;flex-wrap:wrap;gap:8px 15px;margin:0 0 20px;padding:22px 25px;border:1px solid #8b71ed30;background:#8b71ed0b;border-radius:12px; }
.document-amount > span { flex-basis:100%;color:#a6adc2;font-size:.72rem; }
.document-amount > strong { font-size:1.9rem;letter-spacing:-.03em;overflow-wrap:anywhere;line-height:1.4; }
.document-amount > small { color:#9a90bf;font-size:.73rem; }
.task-toolbar { display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin:20px 0 0; }
.task-toolbar .filter-pills { display:flex;flex-wrap:wrap;gap:6px;margin:0; }
.task-toolbar input { width:250px;max-width:100%;font-size:.78rem; }
.task-edit-form { padding:14px;background:#ffffff03;border:1px solid var(--border);border-radius:9px; }
.task-item .task-title { font-size:.84rem; }
.task-list > [id]:target,table [id]:target { outline:1px solid #8b71ed80;outline-offset:3px;scroll-margin-top:24px;background:#8b71ed0b; }
.action-disclosure { position:relative; }
.action-disclosure > summary { list-style:none; }
.action-disclosure > summary::-webkit-details-marker { display:none; }
.action-disclosure[open] > summary { background:#f8717109;color:#f299a1; }
.action-disclosure-panel { position:absolute;top:calc(100% + 8px);right:0;width:230px;max-width:calc(100vw - 100px);padding:15px;border:1px solid #59353f;border-radius:10px;background:#20212c;box-shadow:0 12px 30px #0005;z-index:20; }
.action-disclosure-panel p { margin:0 0 12px;font-size:.75rem;color:var(--text-muted); }
.action-disclosure-panel .btn { width:100%; }
.action-disclosure-panel form { margin:0; }
.form-card { max-width:860px; }
.form-card h1 { font-size:1.4rem;margin-bottom:8px; }
.required-note { font-size:.71rem;color:#8f96ab;margin:0 0 22px; }
.required-note span { color:#baaeef; }
fieldset.form-section { min-width:0;margin:0 0 22px;padding:20px 0 0;border:0;border-top:1px solid var(--border); }
.form-section legend { padding:0 12px 0 0;font-size:.86rem;font-weight:600;color:#d2cee4; }
.form-section .form-row { gap:20px; }
.form-section .form-row > div { min-width:0; }
.form-actions { border-top:1px solid var(--border);padding-top:20px;margin-top:24px; }
.form-card .form-actions { position:sticky;bottom:0;background:var(--surface);padding-bottom:12px;z-index:3; }
.form-card .stacked label { font-size:.77rem; }
.form-card .stacked textarea { min-height:110px;resize:vertical; }
.form-card .stacked input,.form-card .stacked select,.form-card .select-trigger { font-size:.85rem; }
.form-card .stacked input:required { border-left-color:#8472ce; }
.payment-context { border-bottom:1px solid var(--border);padding-bottom:16px;margin-bottom:22px; }
.payment-context h2 { margin:12px 0 5px;font-size:1.05rem; }
.payment-context > p { font-size:.79rem;margin:0 0 8px; }
.payment-context .field-help { font-size:.74rem; }
.selection-summary { padding:13px 16px;border:1px solid #8b71ed30;background:#8b71ed0b;border-radius:8px;margin:16px 0;color:#d4cbee;font-size:.8rem; }
.selection-summary.is-error { border-color:var(--danger-border);color:#f299a1;background:#f8717109; }
.password-field { display:flex;align-items:center;gap:6px; }
.password-field input { flex:1;min-width:0; }
.password-field .btn { flex-shrink:0;font-size:.7rem;padding:8px;min-height:40px; }
.notification-row { display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px 20px; }
.notification-row .task-meta { grid-column:1; }
.notification-row form { grid-column:2;grid-row:1/4;align-self:center; }
.notification-row .task-title { min-width:0; }
.notification-row.attention-row { border-left:2px solid #8b71ed;padding-left:16px; }
.kanban { gap:14px;align-items:start; }
.kanban-col { min-width:0;padding:14px;border-radius:11px;background:#ffffff02; }
.kanban-col h3 { font-size:.8rem;font-weight:550;color:#b2b5c7; }
.kanban-card { border-radius:9px;box-shadow:none; }
.kanban-card .kc-name { font-size:.82rem;color:#d9d2fb; }
.kanban-card .kc-meta { font-size:.7rem; }
@media(max-width:1100px) { .record-summary > div { padding:18px; }.record-summary dd { font-size:1.15rem; }.kanban { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:760px) { .collection-toolbar { gap:14px;padding-top:5px; }.collection-toolbar .client-search { width:100%;flex-wrap:wrap; }.record-summary { grid-template-columns:1fr; }.record-summary > div { border-right:0;border-bottom:1px solid var(--border);display:grid;grid-template-columns:1fr auto;gap:6px 12px;padding:15px 17px; }.record-summary > div:last-child { border-bottom:0; }.record-summary dt { grid-column:1;align-self:center; }.record-summary dd { grid-column:2;grid-row:1/3;margin:0;align-self:center;text-align:right;max-width:180px; }.record-summary small { grid-column:1; }.contact-card,.document-overview { grid-template-columns:1fr;gap:18px; }.section-nav { margin-top:4px; }.section-nav a { padding:8px 10px; }.list-footer { align-items:flex-start; }.form-section .form-row { gap:12px; }.task-toolbar input { width:100%; }.action-disclosure-panel { right:auto;left:0; }.form-card .form-actions { bottom:-1px; }.notification-row { grid-template-columns:1fr; }.notification-row form { grid-column:1;grid-row:auto;justify-self:start; }.document-amount { padding:18px; }.document-amount > strong { font-size:1.5rem; }.workspace-role { display:none; } }
@media(max-width:480px) { .pagination { gap:2px; }.pagination .btn { font-size:.68rem;padding:6px 8px; }.page-number { min-width:25px;font-size:.7rem; }.record-summary dd { max-width:135px;font-size:.95rem; }.record-summary small { font-size:.62rem; }.record-summary dt { font-size:.68rem; }.task-toolbar .filter-pill { padding:7px 8px;font-size:.68rem; }.form-card .form-actions .btn { flex:1; }.kanban { grid-template-columns:1fr; }.collection-empty { padding:28px 5px; }.record-section { scroll-margin-top:10px; } }
@media(max-width:760px) { .table-hint { display:block; } }
