/* Leads */
.lead-summary { display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:20px 0 27px; }
.lead-stat { min-height:72px;padding:18px 14px;border:1px solid var(--line);border-radius:9px;background:var(--surface-soft);color:var(--ink);text-align:left;font-size:14px;font-weight:800; }
.lead-stat.new { background:var(--green-soft);border-color:var(--line-strong);color:var(--green); }
.lead-stat:hover { border-color:var(--green); }
.crm-filters { display:grid;grid-template-columns:1fr 220px;gap:20px; }
.leads-list { display:flex;flex-direction:column;gap:13px; }
.lead-row { display:flex;justify-content:space-between;align-items:center;gap:24px;border:1px solid var(--line);border-radius:10px;padding:23px;background:var(--surface); }
.lead-row h3 { font-size:21px;margin:12px 0 8px; }
.lead-row p { font-size:13px;color:var(--muted);margin-top:9px; }
.lead-row>div>a { font-size:17px;color:var(--green);font-weight:800;font-variant-numeric:tabular-nums; }
.lead-row .button { flex-shrink:0;min-height:42px;font-size:13px;padding:10px 14px; }
.status-pill { display:inline-flex;align-items:center;min-height:27px;font-size:11px;font-weight:800;padding:4px 9px;border-radius:5px;line-height:1.5;background:var(--surface-soft);color:var(--muted); }
.status-pill.new { background:var(--green-soft);color:var(--green); }
.status-pill.contacted { background:var(--warning-bg);color:var(--warning); }
.status-pill.booked { background:var(--green);color:var(--on-green); }
.status-pill.closed { border:1px solid var(--line); }
.lead-meta { color:var(--muted);font-size:12px;margin-left:10px; }
.lead-row .follow-up { color:var(--warning);font-size:13px; }
.crm-pagination { display:flex;justify-content:space-between;align-items:center;gap:14px;margin-top:24px;font-size:13px; }
.crm-pagination .button { min-height:40px;padding:8px 13px;font-size:13px; }
.crm-pagination .button:disabled { cursor:default; }
.panel-feedback { color:var(--warning);font-size:14px;line-height:1.7;margin:15px 0; }
.panel-feedback:empty { display:none; }
.admin-empty { padding:45px 25px;border:1px dashed var(--line-strong);border-radius:10px;background:var(--surface-soft);color:var(--muted);text-align:center;font-size:15px; }
.lead-dialog { width:min(680px,calc(100% - 28px));max-height:calc(100dvh - 28px);padding:38px;border:1px solid var(--line);border-radius:16px;background:var(--surface);color:var(--ink);box-shadow:0 30px 90px #0005; }
.lead-dialog::backdrop { background:#06190f99;backdrop-filter:blur(5px); }
.dialog-x { position:absolute;top:13px;right:13px;display:grid;place-items:center;border:1px solid var(--line);border-radius:50%;width:40px;height:40px;background:var(--surface-soft);color:var(--ink);font-size:25px;padding:0; }
.lead-dialog h2 { font-size:30px;margin:16px 0;padding-right:25px; }
.crm-phone { font-size:25px;font-weight:800;color:var(--green); }
.lead-facts { margin:24px 0;padding:20px;background:var(--surface-soft);border:1px solid var(--line);border-radius:10px; }
.lead-facts p { font-size:14px;color:var(--muted);margin:6px 0; }
.lead-facts b { color:var(--ink); }
.lead-dialog textarea { min-height:135px; }
.lead-history { font-size:14px;margin-top:22px;color:var(--muted); }
.lead-history summary { min-height:40px;cursor:pointer; }
.lead-history p { font-size:13px;margin-top:12px; }
.lead-history small { color:var(--muted); }
/* Schedule and editorial controls */
.venue-admin-address { padding:22px;border:1px solid var(--line);border-radius:9px;margin-bottom:24px;background:var(--surface-soft);font-size:14px; }
.venue-admin-address summary { cursor:pointer;font-size:15px;font-weight:800;min-height:30px; }
.venue-admin-address label:first-of-type { margin-top:24px; }
.editor-columns { display:flex;flex-wrap:wrap;gap:16px; }
.editor-columns>label { flex:1;min-width:140px; }
.editor-heading { display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:25px; }
.editor-heading h3 { font-size:22px; }
.editor-heading .text-button { font-size:12px;color:var(--danger); }
.admin-check { display:flex;align-items:center;gap:10px;font-size:14px;font-weight:600;margin:17px 0; }
.admin-check input { appearance:auto;width:18px;height:18px;min-height:0;padding:0;margin:0;flex-shrink:0; }
.slot-editor { border:1px solid var(--line);border-radius:8px;background:var(--surface);padding:20px;margin:17px 0; }
.weekday-editor { display:flex;flex-wrap:wrap;gap:15px;margin:0;padding:0;border:0; }
.weekday-editor legend { font-size:13px;color:var(--muted);margin-bottom:5px; }
.weekday-editor .admin-check { gap:7px;margin:10px 0;font-size:13px; }
.slot-hours { display:flex;align-items:end;flex-wrap:wrap;gap:15px;margin-top:10px; }
.slot-hours label { flex:1;min-width:110px;margin-bottom:0; }
.slot-hours .text-button { color:var(--danger);font-size:12px;min-height:52px; }
.exceptions-editor { margin-top:38px;padding-top:28px;border-top:1px solid var(--line); }
.exceptions-editor>h3 { font-size:23px; }
.exceptions-editor>p { color:var(--muted);font-size:14px;margin:12px 0 25px; }
.news-editor-image { display:block;width:240px;max-width:100%;aspect-ratio:4/3;height:auto;object-fit:contain;border-radius:8px;margin:20px 0; }
.news-editor-card textarea { min-height:170px; }
.news-editor-card input[type=file],.material-files input[type=file] { font-size:13px; }
.material-tabs { display:flex;flex-wrap:wrap;gap:8px;margin:22px 0 27px; }
.gyp-tab { min-height:44px;padding:10px 14px;border:1px solid var(--line);border-radius:7px;background:var(--surface-soft);color:var(--muted);font-size:14px;font-weight:800; }
.gyp-tab.active { background:var(--green);border-color:var(--green);color:var(--on-green); }
#materials-editor>h3 { font-size:27px;margin-bottom:12px; }
#materials-editor>p { font-size:14px;color:var(--muted);margin-bottom:25px; }
#materials-editor textarea { min-height:155px; }
.material-link-list,.material-files { border-top:1px solid var(--line);padding-top:25px;margin:27px 0; }
.material-link-list h4,.material-files h4 { font-size:19px;margin-bottom:22px; }
.file-row { display:flex;align-items:center;justify-content:space-between;gap:20px;padding:14px 0;border-bottom:1px solid var(--line);margin-bottom:12px;font-size:14px; }
.file-row a { color:var(--green);text-decoration:underline;text-underline-offset:4px;overflow-wrap:anywhere; }
.file-row button { flex-shrink:0;min-height:36px; }
.parent-row { display:grid;grid-template-columns:1fr 225px;gap:15px 25px;border:1px solid var(--line);border-radius:10px;padding:24px;background:var(--surface);margin-bottom:16px; }
.parent-row h3 { font-size:20px; }
.parent-row p { font-size:14px;color:var(--muted);margin-top:9px;overflow-wrap:anywhere; }
.parent-row small { display:block;font-size:12px;color:var(--muted);margin-top:10px; }
.parent-row>.panel-feedback { grid-column:1/-1;margin:0; }
@media(max-width:1100px) { .lead-summary { grid-template-columns:1fr 1fr; }.crm-filters { grid-template-columns:1fr;gap:0; }.lead-row { align-items:start;flex-direction:column;gap:18px; }.parent-row { grid-template-columns:1fr;gap:18px; }.parent-row label { margin:0; }.slot-hours .text-button { flex-basis:100%;min-height:36px;text-align:left; } }
@media(max-width:640px) { .lead-summary { gap:10px; }.lead-stat { font-size:13px;padding:17px 12px;min-height:65px; }.lead-row { padding:21px 17px;align-items:stretch; }.lead-row .button { width:100%; }.lead-meta { display:block;margin:7px 0 0;font-size:11px; }.crm-pagination { font-size:12px;gap:8px; }.crm-pagination .button { padding:8px 10px;font-size:12px; }.lead-dialog { padding:30px 23px; }.lead-dialog h2 { font-size:27px; }.crm-phone { font-size:23px; }.lead-facts { padding:17px; }.editor-heading { display:block;margin-bottom:20px; }.editor-heading .text-button { margin-top:9px; }.slot-editor { padding:16px 13px; }.weekday-editor { gap:11px; }.weekday-editor .admin-check { font-size:13px; }.slot-hours { gap:13px; }.slot-hours label { min-width:90px; }.editor-columns { gap:0; }.editor-columns>label { flex-basis:100%; }.gyp-tab { padding:10px 12px;font-size:13px; }.material-tabs { gap:7px; }.parent-row { padding:20px; }.venue-admin-address { padding:19px 16px; } }
