/* LocFlow: assets locais, sem compilação no navegador. */
:root { --lf-green:#152238; --lf-gold:#c7ad82; --lf-rose:#d9b8b5; --lf-ink:#252936; --lf-muted:#777b85; --lf-line:#e9e5df; --lf-surface:#fff; --lf-canvas:#f7f4ee; --lf-hero-bg:#152238; --lf-hero-on:#fff; --lf-gold-on:#111; }
body { background:var(--lf-canvas); }
.fi-main { max-width:1600px; }
.fi-sidebar { background:var(--lf-surface); border-right:1px solid var(--lf-line); }
.fi-sidebar .fi-sidebar-header { background:var(--lf-surface); border-bottom:1px solid var(--lf-line); }
.fi-sidebar .fi-logo { color:var(--lf-ink); letter-spacing:.01em; }
.fi-sidebar .fi-sidebar-group-label { color:var(--lf-muted); font-size:.72rem; text-transform:uppercase; letter-spacing:.08em; }
.fi-sidebar .fi-sidebar-item-btn { color:var(--lf-muted); border-radius:8px; }
.fi-sidebar .fi-sidebar-item-label,.fi-sidebar .fi-sidebar-item-icon { color:inherit; }
.fi-sidebar .fi-sidebar-item-btn:hover { background:#8c98a510; }
.fi-sidebar .fi-sidebar-item.fi-active > .fi-sidebar-item-btn { background:#8395aa18; color:var(--lf-ink); }
.fi-topbar { border-bottom:1px solid var(--lf-line); }
.lf-workspace { color:var(--lf-ink); display:grid; gap:24px; min-width:0; }
.lf-workspace * { box-sizing:border-box; }
.lf-workspace svg { width:20px; height:20px; flex-shrink:0; }
.lf-workspace a,.lf-workspace button { -webkit-tap-highlight-color:transparent; }
.lf-workspace a { text-decoration:none; }
.lf-workspace :is(a,button,input,select):focus-visible { outline:3px solid #b38d47; outline-offset:4px; }
.lf-workspace button:disabled { opacity:.5; cursor:wait; }
.lf-hero { background:#eff2f6; color:var(--lf-ink); border:1px solid var(--lf-line); border-radius:16px; padding:32px; display:flex; align-items:center; justify-content:space-between; gap:32px; overflow:hidden; position:relative; }
.lf-hero:after { content:''; position:absolute; border:1px solid #cfb37b28; border-radius:50%; width:300px; height:300px; right:-100px; top:-130px; pointer-events:none; }
.lf-hero h2 { font-size:clamp(1.65rem,2.5vw,2.25rem); font-weight:650; letter-spacing:-.04em; margin:8px 0 10px; line-height:1.2; }
.lf-hero p:not(.lf-eyebrow) { color:var(--lf-muted); font-size:.9rem; max-width:550px; line-height:1.7; }
.lf-eyebrow { color:#8a733d; font-size:10px; font-weight:700; letter-spacing:.16em; line-height:1.5; }
.lf-hero .lf-eyebrow { color:var(--lf-muted); }
.lf-hero .lf-actions { margin-top:24px; }
.lf-hero-date { border-left:1px solid var(--lf-line); padding:10px 30px; display:grid; gap:8px; white-space:nowrap; }
.lf-hero-date svg { color:#d5b77e; width:26px; height:26px; margin-bottom:6px; }
.lf-hero-date strong { font-size:1.35rem; font-weight:600; }
.lf-hero-date span { color:var(--lf-muted); font-size:.8rem; text-transform:capitalize; }
.lf-actions { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.lf-button { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:42px; padding:10px 16px; border-radius:9px; font-size:.8rem; font-weight:600; border:1px solid transparent; cursor:pointer; line-height:1.4; transition:background .15s; }
.lf-button svg { width:17px; height:17px; }
.lf-button-gold { background:#596a7e; color:#fff; }
.lf-button-gold:hover { background:#4e5e72; }
.lf-button-glass { background:var(--lf-surface); border-color:var(--lf-line); color:var(--lf-ink); }
.lf-button-glass:hover { background:#8c98a514; }
.lf-button-light { background:var(--lf-surface); border-color:var(--lf-line); color:var(--lf-green); }
.lf-button-light:hover { background:#edf3ee; }
.lf-button-green { background:var(--lf-green); color:white; }
.lf-card { background:var(--lf-surface); border:1px solid var(--lf-line); border-radius:16px; min-width:0; box-shadow:0 3px 12px #14352a03; }
.lf-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; }
.lf-metric { padding:21px; display:flex; flex-direction:column; align-items:flex-start; gap:8px; color:inherit; }
a.lf-metric { transition:box-shadow .15s,border-color .15s; }
a.lf-metric:hover { border-color:#9ab4a4; box-shadow:0 4px 16px #14352a09; }
.lf-metric-label { display:flex; width:100%; justify-content:space-between; align-items:center; gap:8px; font-size:.78rem; font-weight:500; color:var(--lf-muted); }
.lf-metric-label svg { padding:7px; width:34px; height:34px; box-sizing:content-box; background:#f4f4ec; border-radius:10px; color:#8d784b; padding:8px; width:18px; height:18px; }
.lf-metric > strong { font-size:clamp(1.45rem,2vw,1.85rem); font-weight:650; letter-spacing:-.045em; line-height:1.3; }
.lf-metric small { font-size:.9rem; font-weight:400; color:var(--lf-muted); letter-spacing:0; }
.lf-muted { color:var(--lf-muted); font-size:.76rem; line-height:1.6; }
.lf-metric-note { color:#637568; font-size:.71rem; border-top:1px solid var(--lf-line); width:100%; padding-top:12px; margin-top:7px; }
.lf-metric-alert > strong,.lf-danger { color:#a14249; }
.lf-notice { display:flex; align-items:flex-start; gap:12px; padding:16px 20px; background:#f9f4e8; border:1px solid #e8dcc0; border-radius:12px; font-size:.78rem; line-height:1.7; color:#75603b; }
.lf-notice svg { margin-top:2px; }
.lf-notice strong { font-weight:650; }
.lf-dashboard-grid { display:grid; grid-template-columns:minmax(0,1.35fr) minmax(0,1fr); gap:24px; }
.lf-section-heading { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:24px; flex-wrap:wrap; }
.lf-section-heading h2 { font-size:1.04rem; font-weight:650; letter-spacing:-.025em; margin-top:4px; }
.lf-text-link { display:inline-flex; align-items:center; gap:7px; color:var(--lf-green); font-size:.75rem; font-weight:600; min-height:36px; }
.lf-text-link svg { width:15px; height:15px; }
.lf-text-link:hover { text-decoration:underline; }
.lf-badge { display:inline-flex; align-items:center; border-radius:6px; font-size:.66rem; font-weight:600; padding:5px 8px; line-height:1.4; white-space:nowrap; }
.lf-badge-green { background:#eaf2ec; color:#2a6143; }
.lf-badge-gold { background:#f5eedf; color:#82682f; }
.lf-badge-danger { background:#fae9e9; color:#a14249; }
.lf-badge-neutral { background:#edf0ed; color:#607066; }
.lf-chart { display:flex; align-items:flex-end; gap:12px; padding:8px 28px 20px; }
.lf-chart-day { flex:1; min-width:0; display:flex; flex-direction:column; align-items:center; gap:8px; color:var(--lf-muted); }
.lf-chart-day > strong { font-size:.8rem; font-weight:600; }
.lf-chart-track { height:150px; width:100%; max-width:36px; background:#f1f4ef; border-radius:6px; display:flex; align-items:flex-end; overflow:hidden; }
.lf-chart-bar { background:#b5cbbd; width:100%; border-radius:6px; }
.lf-chart-today .lf-chart-bar { background:#bc9f66; }
.lf-chart-today > strong { color:#82682f; }
.lf-chart-day > span { text-transform:capitalize; font-size:.7rem; }
.lf-chart-day small { font-size:.62rem; }
.lf-footnote { border-top:1px solid var(--lf-line); color:var(--lf-muted); font-size:.7rem; padding:14px 24px; line-height:1.6; }
.lf-appointments { padding:0 24px 16px; }
.lf-appointment { display:flex; align-items:center; gap:14px; padding:14px 0; color:inherit; border-bottom:1px solid var(--lf-line); }
.lf-appointment:last-child { border-bottom:0; }
.lf-appointment > svg { width:16px; height:16px; color:#9daa9f; }
.lf-appointment-time { display:grid; gap:4px; padding:8px; border-radius:8px; background:#f2f5ef; text-align:center; min-width:58px; }
.lf-appointment-time strong { font-size:.78rem; }
.lf-appointment-time span { font-size:.62rem; color:var(--lf-muted); }
.lf-appointment-details { flex:1; min-width:0; display:grid; gap:5px; }
.lf-appointment-details strong { font-size:.78rem; overflow-wrap:anywhere; }
.lf-appointment-details span { font-size:.7rem; color:var(--lf-muted); }
.lf-empty { display:flex; flex-direction:column; align-items:center; text-align:center; gap:10px; padding:30px 18px; }
.lf-empty > svg { width:38px; height:38px; color:#8ba38f; margin-bottom:6px; }
.lf-empty h3 { font-size:.95rem; font-weight:600; }
.lf-empty p { color:var(--lf-muted); font-size:.78rem; max-width:420px; line-height:1.7; }
.lf-empty-wide { padding:40px 24px; }
.lf-table-scroll { width:100%; overflow-x:auto; }
.lf-table { width:100%; border-collapse:collapse; text-align:left; font-size:.76rem; }
.lf-table thead { background:#f7f9f5; }
.lf-table th { padding:12px 20px; color:var(--lf-muted); font-weight:500; white-space:nowrap; border-block:1px solid var(--lf-line); }
.lf-table td { padding:16px 20px; border-bottom:1px solid var(--lf-line); vertical-align:middle; }
.lf-table tr:last-child td { border-bottom:0; }
.lf-table td > strong { display:block; font-size:.76rem; font-weight:500; min-width:100px; }
.lf-table td > span:not(.lf-badge) { display:block; color:var(--lf-muted); font-size:.68rem; margin-top:4px; }
.lf-sr-only { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }
.lf-hero-compact { padding:28px; }
.lf-hero-compact h2 { font-size:1.8rem; }
.lf-hero-compact > .lf-button { white-space:nowrap; }
.lf-agenda-controls { display:flex; justify-content:space-between; gap:16px; padding:16px 20px; flex-wrap:wrap; }
.lf-icon-button { display:inline-flex; align-items:center; justify-content:center; background:var(--lf-surface); border:1px solid var(--lf-line); border-radius:8px; width:42px; height:42px; color:var(--lf-green); cursor:pointer; }
.lf-icon-button:hover { background:#edf3ee; }
.lf-field { display:flex; flex-direction:column; gap:4px; color:var(--lf-muted); font-size:.66rem; }
.lf-field input,.lf-field select { color:var(--lf-ink); background:var(--lf-surface); border:1px solid var(--lf-line); border-radius:8px; padding:9px 10px; min-height:42px; font-family:inherit; font-size:.78rem; }
.lf-segmented { display:flex; padding:4px; background:#edf1eb; border-radius:10px; gap:3px; }
.lf-segmented button { min-height:36px; padding:8px 13px; border:0; border-radius:7px; font-size:.76rem; color:var(--lf-muted); cursor:pointer; }
.lf-segmented button.is-active { background:var(--lf-surface); color:var(--lf-green); box-shadow:0 1px 5px #123f3510; font-weight:650; }
.lf-timeline { padding:0 24px 16px; }
.lf-timeline-row { display:flex; gap:24px; padding:24px 0; border-top:1px solid var(--lf-line); }
.lf-timeline-time { min-width:60px; display:flex; flex-direction:column; gap:6px; padding-top:4px; }
.lf-timeline-time strong { color:var(--lf-green); font-size:1rem; font-weight:600; }
.lf-timeline-time span { color:var(--lf-muted); font-size:.72rem; }
.lf-timeline-main { flex:1; border-left:2px solid #d6e2d8; padding-left:22px; min-width:0; display:grid; gap:10px; }
.lf-timeline-title { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.lf-timeline-title h3 { font-size:.98rem; font-weight:600; overflow-wrap:anywhere; }
.lf-timeline-main > p { font-size:.78rem; line-height:1.7; overflow-wrap:anywhere; }
.lf-timeline-main .lf-actions { margin-top:5px; }
.lf-is-loading { opacity:.5; transition:opacity .1s; }
/* Compatibilidade com as miniaturas do formulário de contrato. */
.lf-product-photo { width:64px; height:80px; border:1px solid var(--lf-line); border-radius:10px; overflow:hidden; display:flex; align-items:center; justify-content:center; background:#f4f6f2; }
.lf-product-photo img { width:100%; height:100%; object-fit:cover; }
.lf-product-photo-empty { font-size:11px; color:#738074; text-align:center; }
.dark { --lf-ink:#dfe3e9; --lf-muted:#a6aeb9; --lf-line:#363b44; --lf-surface:#22262d; --lf-canvas:#191c22; --lf-green:#b6c2d2; }
.dark .lf-metric-label svg,.dark .lf-appointment-time,.dark .lf-chart-track,.dark .lf-segmented,.dark .lf-table thead { background:#2b3038; }
.dark .lf-button-light:hover,.dark .lf-icon-button:hover { background:#303640; }
.dark .lf-notice { background:#3b3422; border-color:#5c4d2f; color:#e0c88d; }
.dark .lf-metric-note { color:#a9b9a9; }
.dark .lf-button-green { background:#596a7e; }
.dark .lf-hero { background:#252b33; }
@media (max-width:1100px) { .lf-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); } .lf-dashboard-grid { grid-template-columns:minmax(0,1fr); } }
@media (max-width:640px) { .lf-workspace { gap:16px; } .lf-hero { padding:24px; align-items:flex-start; flex-direction:column; gap:20px; } .lf-hero-date { border-left:0; border-top:1px solid #ffffff26; padding:16px 0 0; width:100%; display:flex; align-items:center; flex-wrap:wrap; gap:10px; } .lf-hero-date svg { width:20px; height:20px; margin:0; } .lf-hero-date strong { font-size:.9rem; } .lf-hero-date span { font-size:.75rem; } .lf-metrics { gap:10px; } .lf-metric { padding:16px; } .lf-metric > strong { font-size:1.4rem; } .lf-metric-label { font-size:.7rem; } .lf-metric-label svg { display:none; } .lf-metric-note { font-size:.65rem; } .lf-muted { font-size:.7rem; } .lf-section-heading { padding:20px; } .lf-timeline { padding-inline:16px; } .lf-timeline-row { gap:12px; } .lf-timeline-time { min-width:45px; } .lf-timeline-main { padding-left:12px; } .lf-agenda-controls { padding:16px; } .lf-agenda-controls .lf-actions { gap:8px; } .lf-chart { gap:6px; padding-inline:20px; } }
@media (prefers-reduced-motion:reduce) { .lf-workspace * { transition:none!important; scroll-behavior:auto!important; } }

.lf-contract-table { width:100%; font-size:.78rem; border-collapse:collapse; }
.lf-contract-table th,.lf-contract-table td { padding:10px 8px; text-align:left; }
.lf-product-history { display:grid; gap:16px; font-size:.8rem; overflow-x:auto; }
/* Resumo e relatórios: superfícies neutras, cores de estado apenas nos detalhes. */
.lf-contract-total { display:flex; justify-content:space-between; gap:24px; padding:10px 0; border-bottom:1px solid var(--lf-line); color:var(--lf-ink); font-size:.86rem; }
.lf-contract-total:first-of-type { margin-top:10px; }
.lf-contract-paid strong { color:#587465; }
.lf-contract-pending strong { color:#94724d; }
.dark .lf-contract-paid strong { color:#a7bdb0; }
.dark .lf-contract-pending strong { color:#c5b295; }
.lf-report-heading { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:20px; }
.lf-report-heading h2 { margin:6px 0; font-size:1.45rem; font-weight:650; letter-spacing:-.025em; }
.lf-report-heading .lf-muted { max-width:620px; }
.lf-report-filters { padding:20px; display:grid; gap:18px; }
.lf-report-filter-grid { display:grid; grid-template-columns:minmax(170px,1.4fr) repeat(3,minmax(120px,1fr)) minmax(160px,1.4fr); gap:14px; }
.lf-report-filter-grid .lf-field { font-size:.73rem; gap:7px; min-width:0; }
.lf-report-filter-grid input,.lf-report-filter-grid select { width:100%; min-width:0; }
.lf-report-secondary { grid-template-columns:repeat(3,minmax(160px,1fr)); }
.lf-report-secondary:empty { display:none; }
.lf-report-totals { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:16px; }
.lf-number { text-align:right; white-space:nowrap; font-variant-numeric:tabular-nums; }
.lf-reports .lf-table th button { font:inherit; color:inherit; cursor:pointer; text-align:inherit; min-height:30px; }
.lf-report-pagination { display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap:wrap; padding:18px 20px; }
.lf-report-pagination button:disabled { opacity:.4; cursor:default; }
.lf-report-errors { color:#9d525a; font-size:.8rem; line-height:1.5; }
@media(max-width:1200px) { .lf-report-filter-grid { grid-template-columns:repeat(3,minmax(130px,1fr)); } }
@media(max-width:680px) { .lf-report-filter-grid,.lf-report-secondary { grid-template-columns:repeat(2,minmax(0,1fr)); } .lf-report-filter-grid > :first-child { grid-column:1/-1; } .lf-report-heading h2 { font-size:1.25rem; } .lf-report-totals { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; } .lf-report-filters { padding:16px; } }

/* Marca configuravel e menu compacto. */
.lf-panel-brand{display:flex;align-items:center;gap:9px;min-width:0;max-width:100%;height:100%}
.lf-brand-image{width:34px;height:34px;object-fit:contain;flex-shrink:0}
.lf-brand-name{font-size:13px;font-weight:650;line-height:1.25;max-width:160px;white-space:normal;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.fi-sidebar .fi-sidebar-item-label{font-size:.8rem;line-height:1.35;white-space:normal;text-overflow:clip}
.fi-sidebar .fi-sidebar-group-label{font-size:.65rem;letter-spacing:.06em}
.fi-sidebar .fi-sidebar-item.fi-active>.fi-sidebar-item-btn{background:color-mix(in srgb,var(--lf-green) 12%,transparent)}
.lf-button-green,.lf-button-gold,.dark .lf-button-green{background:var(--lf-green);color:var(--lf-brand-on,#fff)}
.lf-button-gold:hover,.lf-button-green:hover{background:color-mix(in srgb,var(--lf-green) 86%,#000)}
.lf-metric-alert>strong,.lf-danger{color:var(--lf-brand-danger,#a6666c)}
.lf-contract-paid strong{color:var(--lf-brand-success,#5d796c)}
.lf-contract-pending strong{color:var(--lf-brand-warning,#a28a5b)}
.lf-chart-bar{background:color-mix(in srgb,var(--lf-green) 40%,#fff)}
.lf-chart-today .lf-chart-bar{background:var(--lf-gold)}
.lf-brand-preview{display:grid;grid-template-columns:170px minmax(0,1fr);border:1px solid #dfe3e7;border-radius:12px;overflow:hidden;min-height:200px}
.lf-brand-preview-menu{padding:20px 16px;display:flex;flex-direction:column;gap:15px;font-size:12px}
.lf-brand-preview-menu strong{font-size:14px;overflow-wrap:anywhere;line-height:1.4}
.lf-brand-preview-content{padding:22px;display:flex;align-items:flex-start;flex-direction:column;gap:15px;color:#303740}
.lf-brand-preview-content>strong{font-size:18px;line-height:1.3}
.lf-brand-preview-label{font-size:11px;color:#69727e;background:#fff;border-radius:5px;padding:4px 7px}
.lf-brand-preview-button{padding:9px 14px;border-radius:7px;font-size:12px;font-weight:600}
.lf-brand-preview-status{display:flex;gap:16px;flex-wrap:wrap;font-size:12px;background:#fff;padding:10px;border-radius:7px}
@media(max-width:640px){.lf-brand-preview{grid-template-columns:115px minmax(0,1fr)}.lf-brand-preview-content{padding:16px}.lf-brand-preview-menu{padding:16px 10px;font-size:11px}}

.lf-variable-help{padding:18px 20px;background:var(--lf-surface);border:1px solid var(--lf-line);border-radius:10px;font-size:13px;line-height:1.6;color:var(--lf-ink)}
.lf-variable-help p{margin:8px 0;color:var(--lf-muted)}
.lf-variable-help code{font-size:12px;background:#8999ab13;border:1px solid var(--lf-line);padding:2px 5px;border-radius:4px;color:var(--lf-ink)}
.lf-variable-help summary{cursor:pointer;font-weight:600;margin-top:12px}
.lf-variable-catalog{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 20px;margin-top:14px}
.lf-variable-catalog>div{display:flex;flex-direction:column;align-items:flex-start;gap:3px}
.lf-variable-catalog span{font-size:11px;color:var(--lf-muted)}
@media(max-width:640px){.lf-variable-catalog{grid-template-columns:1fr}}

/* Peça indisponível: aviso no item e modal de liberação pelo administrador */
.lf-indisp { border:1px solid #fecaca; background:#fef2f2; color:#991b1b; border-radius:10px; padding:10px 12px; line-height:1.5; }
.lf-indisp-ok { border-color:#bbf7d0; background:#f0fdf4; color:#166534; }
/* Reserva com conflito: aviso e autorização. */
.lf-indisp-modal { display:flex; flex-direction:column; gap:18px; color:var(--lf-text,#26333c); }
.lf-indisp-icon { width:22px; height:22px; flex-shrink:0; }
.lf-indisp-banner { display:flex; gap:12px; align-items:flex-start; padding:14px 16px; background:#fffbeb; border:1px solid #f1dfaf; border-radius:14px; color:#805b17; }
.lf-indisp-banner strong,.lf-indisp-approval strong { font-size:14px; font-weight:650; }
.lf-indisp-banner p,.lf-indisp-approval p,.lf-indisp-status p { font-size:12px; line-height:1.6; margin:4px 0 0; }
.lf-indisp-peca { display:flex; gap:14px; align-items:center; padding:14px; border:1px solid var(--lf-line,#e5e7eb); border-radius:14px; }
.lf-indisp-peca .lf-product-photo { width:64px; height:76px; min-height:0; flex-shrink:0; display:flex; align-items:center; justify-content:center; background:#f3f4f6; border-radius:10px; overflow:hidden; }
.lf-indisp-photo-icon { width:28px; height:28px; color:#8d979e; }
.lf-indisp-product-text { flex:1; min-width:0; }
.lf-indisp-codigo { font-size:10px; font-weight:700; letter-spacing:.1em; color:#75818b; }
.lf-indisp-nome { font-size:15px; font-weight:650; line-height:1.45; margin:3px 0; }
.lf-indisp-muted { font-size:12px; color:#76818a; line-height:1.5; }
.lf-indisp-badge { font-size:10px; font-weight:600; padding:5px 9px; background:#fef3d5; color:#805b17; border-radius:999px; }
.lf-indisp-dates { display:grid; grid-template-columns:1fr 1fr .65fr; gap:10px; }
.lf-indisp-dates > div { background:#f6f8fa; border:1px solid #eef0f2; border-radius:10px; padding:12px; }
.lf-indisp-dates span { display:block; color:#76818a; font-size:11px; margin-bottom:5px; }
.lf-indisp-dates strong { font-size:14px; font-weight:600; }
.lf-indisp-titulo { font-size:12px; font-weight:650; margin-bottom:9px; }
.lf-indisp-lista { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:8px; max-height:220px; overflow-y:auto; }
.lf-indisp-lista li { display:flex; gap:12px; border:1px solid #eceff2; border-radius:10px; padding:12px; }
.lf-indisp-lista li > .lf-indisp-icon { color:#8a959e; margin-top:2px; }
.lf-indisp-lista strong { font-size:13px; font-weight:600; }
.lf-indisp-periodo { font-size:12px; margin-top:5px; color:#56636d; }
.lf-indisp-buffer { margin-top:8px; }
.lf-indisp-approval { display:flex; gap:12px; padding:14px; background:#f1f6f7; border:1px solid #e2ebed; border-radius:12px; color:#425c65; }
.lf-indisp-status { display:flex; gap:10px; align-items:flex-start; padding:12px 14px; border:1px solid; border-radius:12px; }
.lf-indisp-status strong { font-size:13px; font-weight:600; }
.lf-indisp-status-ok { background:#f1f8f4; border-color:#d5e8dc; color:#397055; }
.lf-indisp-status-warning { background:#fffbef; border-color:#f1dfaf; color:#805b17; }
.dark .lf-indisp-modal { color:#e5e7eb; }
.dark .lf-indisp-banner,.dark .lf-indisp-status-warning,.dark .lf-indisp-badge { background:#302c20; border-color:#5a4d2d; color:#e5cb8a; }
.dark .lf-indisp-dates > div,.dark .lf-indisp-peca .lf-product-photo { background:#232c36; border-color:#35414b; }
.dark .lf-indisp-peca,.dark .lf-indisp-lista li { border-color:#35414b; }
.dark .lf-indisp-muted,.dark .lf-indisp-dates span,.dark .lf-indisp-codigo,.dark .lf-indisp-periodo { color:#a6b0ba; }
.dark .lf-indisp-approval { background:#233238; border-color:#354a52; color:#b1ced3; }
.dark .lf-indisp-status-ok { background:#20352b; border-color:#385846; color:#b0d5be; }
@media(max-width:520px) { .lf-indisp-peca { flex-wrap:wrap; }.lf-indisp-badge { margin-left:78px; }.lf-indisp-dates { grid-template-columns:1fr 1fr; }.lf-indisp-dates > div:last-child { grid-column:1/-1; } }


/* Identidade do ateliê: marinho, marfim e detalhes champagne. */
.fi-body,.fi-main-ctn{background:var(--lf-canvas)}
:root:not(.dark) :is(.fi-section,.fi-ta-ctn,.fi-modal-window,.fi-input-wrp,.fi-topbar){background:var(--lf-surface)}
.fi-sidebar .fi-sidebar-item-btn:hover{background:color-mix(in srgb,var(--lf-menu-text) 9%,transparent)}
.fi-sidebar .fi-sidebar-item.fi-active>.fi-sidebar-item-btn{background:color-mix(in srgb,var(--lf-menu-text) 12%,transparent);color:var(--lf-menu-text);box-shadow:inset 3px 0 var(--lf-gold)}
.fi-sidebar .fi-sidebar-group-label{opacity:.65}
.lf-card{box-shadow:0 4px 24px #15223804}
.lf-metric-note{color:var(--lf-muted)}
.lf-chart-track,.lf-appointment-time,.lf-table thead{background:color-mix(in srgb,var(--lf-canvas) 85%,var(--lf-surface))}
.lf-chart-bar{background:color-mix(in srgb,var(--lf-green) 28%,var(--lf-surface))}
.lf-chart-today .lf-chart-bar{background:var(--lf-gold)}
.lf-metric-label>svg{background:color-mix(in srgb,var(--lf-gold) 15%,var(--lf-surface));color:var(--lf-green)}
.lf-hero.lf-hero-atelier{padding:36px 40px;background:var(--lf-hero-bg);color:var(--lf-hero-on);border:0;min-height:290px;border-radius:20px;isolation:isolate;gap:24px}
.lf-hero-atelier:after{width:460px;height:460px;border-color:color-mix(in srgb,var(--lf-gold) 20%,transparent);right:-130px;top:-210px;z-index:-1}
.lf-hero-atelier:before{content:'';position:absolute;width:360px;height:360px;right:-150px;bottom:-280px;background:var(--lf-rose);opacity:.09;border-radius:50%;z-index:-1;pointer-events:none}
.lf-hero-atelier .lf-hero-copy{max-width:680px;min-width:0}
.lf-hero-atelier .lf-eyebrow{color:var(--lf-hero-on);opacity:.78;font-size:9px;letter-spacing:.16em;overflow-wrap:anywhere}
.lf-hero-atelier .lf-eyebrow span{color:var(--lf-gold);padding:0 7px}
.lf-hero-atelier h2{font-family:Georgia,'Times New Roman',serif;font-size:clamp(1.9rem,3vw,2.8rem);line-height:1.15;letter-spacing:-.025em;font-weight:400;margin:18px 0 14px}
.lf-hero-atelier h2 em{font-weight:400}
.lf-hero-atelier p:not(.lf-eyebrow){color:var(--lf-hero-on);opacity:.76;max-width:490px;font-size:.82rem}
.lf-hero-atelier .lf-actions{margin-top:24px}
.lf-hero-atelier .lf-button-gold{background:var(--lf-gold);color:var(--lf-gold-on)}
.lf-hero-atelier .lf-button-gold:hover{filter:brightness(.94)}
.lf-hero-atelier .lf-button-glass{background:transparent;color:var(--lf-hero-on);border-color:color-mix(in srgb,var(--lf-hero-on) 28%,transparent)}
.lf-hero-atelier .lf-button-glass:hover{background:color-mix(in srgb,var(--lf-hero-on) 8%,transparent)}
.lf-hero-aside{width:240px;flex-shrink:0;display:grid;justify-items:center;gap:4px}
.lf-couture-art{color:var(--lf-gold);width:210px;height:160px}
.lf-couture-art svg{width:100%;height:100%}
.lf-hero-atelier .lf-hero-date{border-left:0;border-top:1px solid color-mix(in srgb,var(--lf-gold) 28%,transparent);padding:15px 10px 0;display:flex;gap:12px;align-items:center}
.lf-hero-atelier .lf-hero-date svg{width:20px;height:20px;color:var(--lf-gold);margin:0}
.lf-hero-date>div{display:grid;gap:4px}
.lf-hero-atelier .lf-hero-date strong{font-size:.95rem;font-weight:500}
.lf-hero-atelier .lf-hero-date span{font-size:.65rem;color:var(--lf-hero-on);opacity:.7}
.lf-privacy-toggle{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;border:1px solid var(--lf-line);border-radius:50%;color:var(--lf-green);background:transparent;cursor:pointer}
.lf-privacy-toggle svg{background:transparent!important;padding:0!important;width:18px!important;height:18px!important;display:block!important;color:inherit!important}
.lf-privacy-toggle:hover{background:var(--lf-canvas)}
.lf-privacy-toggle:focus-visible,.lf-palette-option:focus-visible{outline:3px solid var(--lf-gold);outline-offset:3px}
.lf-metric-finance>strong{font-variant-numeric:tabular-nums}
.lf-metric-finance .lf-text-link{font-size:.68rem;min-height:24px}
.lf-value-mask{letter-spacing:.06em;color:var(--lf-muted);white-space:nowrap}
.lf-personalization-intro{margin-bottom:24px}
.lf-personalization-intro h2{font-family:Georgia,'Times New Roman',serif;font-size:1.8rem;margin:8px 0;line-height:1.2}
.lf-palette-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.lf-palette-option{display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding:22px;border:1px solid var(--lf-line);border-radius:14px;background:var(--lf-surface);text-align:left;cursor:pointer;color:var(--lf-ink)}
.lf-palette-option:hover{border-color:var(--lf-gold);box-shadow:0 4px 20px #15223808}
.lf-palette-option>strong{font-size:.9rem;font-weight:600}
.lf-palette-option>span:not(.lf-palette-swatches){font-size:.75rem;color:var(--lf-muted)}
.lf-palette-swatches{display:flex;margin-bottom:5px}
.lf-palette-swatches i{width:32px;height:32px;border-radius:50%;border:2px solid var(--lf-surface);box-shadow:0 0 0 1px var(--lf-line);margin-right:-5px}
.lf-palette-option .lf-palette-apply{display:flex;align-items:center;gap:8px;margin-top:6px;color:var(--lf-green)!important;font-weight:600}
.lf-palette-apply svg{width:15px;height:15px}
.lf-personalization-save{position:sticky;bottom:16px;z-index:5;margin-top:24px;background:var(--lf-surface);border:1px solid var(--lf-line);border-radius:12px;padding:16px 20px;display:flex;justify-content:space-between;align-items:center;gap:16px;box-shadow:0 8px 30px #15223810}
.lf-personalization-save>span{font-size:.75rem;color:var(--lf-muted)}
.lf-brand-preview-banner{border-radius:9px;padding:18px;width:100%;font-family:Georgia,'Times New Roman',serif;font-size:20px;line-height:1.3}
@media(max-width:900px){.lf-hero.lf-hero-atelier{padding:30px}.lf-hero-aside{width:180px}.lf-couture-art{width:170px}}
@media(max-width:640px){.lf-hero.lf-hero-atelier{padding:26px 22px;gap:22px}.lf-hero-aside{width:100%;justify-items:start}.lf-couture-art{display:none}.lf-hero-atelier .lf-hero-date{width:100%;padding:14px 0 0}.lf-hero-date>div{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.lf-hero-atelier .lf-button{min-height:44px}.lf-palette-options{grid-template-columns:1fr}.lf-personalization-save{flex-wrap:wrap;bottom:8px;padding:14px}.lf-personalization-save>span{display:none}.lf-personalization-save>button{width:100%}.lf-metric-finance .lf-metric-label{align-items:center}.lf-privacy-toggle{min-width:44px;min-height:44px}}
@media print{.lf-private-value{visibility:hidden}.lf-privacy-toggle{display:none}}

/* Contrato com muitas peças: cabeçalho compacto e informativo no repeater. */
.lf-item-summary{display:flex;align-items:center;gap:8px 14px;flex-wrap:wrap;min-width:0;padding:2px 0;font-style:normal}
.lf-item-summary strong{font-size:.76rem;font-weight:650;color:var(--lf-ink);overflow-wrap:anywhere}
.lf-item-summary>span{font-size:.68rem;font-weight:500;color:var(--lf-muted);white-space:nowrap}
.lf-item-summary em{font-size:.62rem;font-style:normal;font-weight:650;color:var(--lf-green);background:color-mix(in srgb,var(--lf-green) 10%,var(--lf-surface));border-radius:999px;padding:4px 8px;white-space:nowrap}
@media(max-width:760px){.lf-item-summary{align-items:flex-start;flex-direction:column;gap:3px}.lf-item-summary>span{white-space:normal}.lf-item-summary em{margin-top:2px}}

/* Seleção independente de etiquetas de prova. */
.lf-label-controls{padding:18px 20px;display:flex;align-items:end;justify-content:space-between;gap:18px;flex-wrap:wrap}.lf-label-controls .lf-field{min-width:190px}.lf-label-counts{display:flex;gap:10px 20px;flex-wrap:wrap;color:var(--lf-muted);font-size:.75rem}.lf-label-counts strong{color:var(--lf-ink);font-size:1rem}.lf-label-list{display:grid}.lf-label-row{display:grid;grid-template-columns:auto auto minmax(0,1fr) auto;gap:14px;align-items:center;padding:15px 20px;border-top:1px solid var(--lf-line);cursor:pointer}.lf-label-row:hover{background:color-mix(in srgb,var(--lf-green) 4%,var(--lf-surface))}.lf-label-row>input{width:18px;height:18px;accent-color:var(--lf-green)}.lf-label-model{font-size:.62rem;font-weight:700;border-radius:999px;padding:5px 9px;white-space:nowrap}.lf-label-model-vestido{background:#f5edf0;color:#875f70}.lf-label-model-terno{background:#e9eef3;color:#485f78}.lf-label-main{display:grid;gap:3px;min-width:0}.lf-label-main strong{font-size:.82rem;overflow-wrap:anywhere}.lf-label-main small,.lf-label-date small{font-size:.68rem;color:var(--lf-muted);overflow-wrap:anywhere}.lf-label-date{display:grid;gap:3px;text-align:right}.lf-label-date strong{font-size:.8rem}.lf-button-disabled{opacity:.45;cursor:not-allowed}@media(max-width:700px){.lf-label-controls{align-items:stretch}.lf-label-controls>*{width:100%}.lf-label-controls .lf-actions .lf-button{flex:1}.lf-label-row{grid-template-columns:auto minmax(0,1fr);gap:8px 12px}.lf-label-model{justify-self:start}.lf-label-main{grid-column:2}.lf-label-date{grid-column:2;text-align:left;display:flex;gap:10px;align-items:center}}
.lf-health{--health-ink:#12221f;--health-green:#0f766e;--health-gold:#d49b38;--health-soft:#f1f6f4}.lf-health-hero{position:relative;overflow:hidden;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:30px;border-radius:24px;background:linear-gradient(135deg,#102720 0%,#174b3f 62%,#bf9146 160%);color:#fff;box-shadow:0 18px 45px rgba(13,50,42,.18)}.lf-health-hero:after{content:"";position:absolute;width:260px;height:260px;right:-80px;top:-130px;border:1px solid rgba(255,255,255,.18);border-radius:50%;box-shadow:0 0 0 45px rgba(255,255,255,.04),0 0 0 90px rgba(255,255,255,.025)}.lf-health-hero>div{position:relative;z-index:1}.lf-health-hero h2{margin:4px 0 7px;font-size:clamp(24px,3vw,38px);font-weight:800;letter-spacing:-.035em}.lf-health-hero p{margin:0;max-width:720px;color:rgba(255,255,255,.78)}.lf-health-period{display:grid;grid-template-columns:24px 1fr;min-width:245px;padding:15px 18px;border:1px solid rgba(255,255,255,.2);border-radius:16px;background:rgba(255,255,255,.1);backdrop-filter:blur(8px)}.lf-health-period svg{grid-row:1/3;width:21px;margin-top:4px}.lf-health-period span{font-size:11px;text-transform:uppercase;letter-spacing:.12em;color:rgba(255,255,255,.68)}.lf-health-period strong{font-size:14px}.lf-health-filters{display:flex;align-items:end;justify-content:space-between;gap:18px;padding:18px 20px}.lf-health-presets{display:flex;flex-wrap:wrap;gap:8px}.lf-health-presets button{padding:9px 13px;border:1px solid var(--gray-200);border-radius:10px;background:#fff;color:#42514d;font-size:12px;font-weight:750;transition:.2s}.lf-health-presets button:hover{border-color:var(--health-green);color:var(--health-green);transform:translateY(-1px)}.lf-health-date-fields{display:flex;align-items:end;gap:10px}.lf-health-date-fields .lf-field{min-width:145px}.lf-health-date-fields .lf-button svg{width:17px}.lf-health-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.lf-health-kpi{position:relative;display:flex;align-items:flex-start;gap:13px;min-height:128px;padding:19px;border:1px solid #e4ebe8;border-radius:18px;background:#fff;box-shadow:0 8px 24px rgba(22,51,44,.055);transition:transform .2s,box-shadow .2s}.lf-health-kpi:hover{transform:translateY(-2px);box-shadow:0 13px 30px rgba(22,51,44,.09)}.lf-health-kpi-primary{background:linear-gradient(145deg,#f1faf7,#fff)}.lf-health-kpi-icon{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;border-radius:13px;background:#d8f2ea;color:#08715f}.lf-health-kpi-icon svg{width:21px}.lf-health-kpi-icon.lf-icon-green{background:#dcfce7;color:#15803d}.lf-health-kpi-icon.lf-icon-red{background:#fee2e2;color:#dc2626}.lf-health-kpi-icon.lf-icon-blue{background:#dbeafe;color:#2563eb}.lf-health-kpi-icon.lf-icon-gold{background:#fef3c7;color:#b7791f}.lf-health-kpi-icon.lf-icon-purple{background:#ede9fe;color:#7c3aed}.lf-health-kpi div{min-width:0}.lf-health-kpi small{display:block;color:#6a7773;font-size:11px;font-weight:750;text-transform:uppercase;letter-spacing:.06em}.lf-health-kpi strong{display:block;margin:5px 0 2px;color:var(--health-ink);font-size:clamp(20px,2vw,28px);line-height:1.1;letter-spacing:-.03em}.lf-health-kpi p{margin:0;color:#7a8783;font-size:12px}.lf-health-compare{display:grid;grid-template-columns:1fr 1fr;gap:14px}.lf-health-compare>article{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:15px;padding:18px 20px}.lf-health-compare-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:15px;background:#d8f2ea;color:#08715f}.lf-health-compare-icon.is-year{background:#fef3c7;color:#a86f10}.lf-health-compare-icon svg{width:24px}.lf-health-compare small,.lf-health-compare span{display:block;font-size:11px;color:#74817d}.lf-health-compare strong{display:block;font-size:22px;color:var(--health-ink)}.lf-health-compare span{font-weight:800}.lf-health-compare .is-up{color:#15803d}.lf-health-compare .is-down{color:#dc2626}.lf-health-compare p{margin:0;color:#7a8783;font-size:12px;text-align:right}.lf-health-chart-card{padding:22px}.lf-health .lf-section-heading>svg{width:25px;color:#798783}.lf-health-legend{display:flex;gap:15px;font-size:12px;color:#5f6f69}.lf-health-legend span{display:flex;align-items:center;gap:6px}.lf-health-legend i{width:20px;height:3px;border-radius:3px}.lf-health-legend .is-billed{background:#0f766e}.lf-health-legend .is-received{background:#d49b38}.lf-health-chart-wrap{overflow:hidden}.lf-health-line-chart{display:block;width:100%;height:280px;overflow:visible}.lf-health-grid-line{stroke:#e5ebe8;stroke-width:1;stroke-dasharray:4 6}.lf-health-line{fill:none;stroke-width:4;stroke-linecap:round;stroke-linejoin:round}.lf-health-line.is-billed{stroke:#0f766e}.lf-health-line.is-received{stroke:#d49b38}.lf-health-dot{stroke:#fff;stroke-width:2}.lf-health-dot.is-billed{fill:#0f766e}.lf-health-dot.is-received{fill:#d49b38}.lf-health-months{display:grid;grid-template-columns:repeat(var(--months),minmax(58px,1fr));gap:2px;overflow-x:auto;color:#7b8783;font-size:10px;text-align:center}.lf-health-grid-2{display:grid;grid-template-columns:1fr 1fr;gap:14px}.lf-health-grid-2>.lf-card{padding:22px;min-width:0}.lf-health-bars{display:grid;gap:14px}.lf-health-bar-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 10px}.lf-health-bar-row div{min-width:0}.lf-health-bar-row strong,.lf-health-bar-row span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.lf-health-bar-row strong{font-size:13px;color:#263a34}.lf-health-bar-row span{font-size:10px;color:#84908c}.lf-health-bar-row em{font-style:normal;font-weight:750;font-size:12px;color:#40524c}.lf-health-bar-row>i{grid-column:1/3;height:6px;border-radius:9px;background:#eaf0ee;overflow:hidden}.lf-health-bar-row>i b,.lf-health-product-list i b,.lf-health-seller i b{display:block;width:var(--bar);height:100%;border-radius:inherit;background:linear-gradient(90deg,#0f766e,#57b89f);animation:lf-grow-bar .65s ease both}.lf-health-category-layout{display:grid;grid-template-columns:180px 1fr;align-items:center;gap:24px}.lf-health-donut{position:relative;width:170px;aspect-ratio:1;border-radius:50%;box-shadow:inset 0 0 0 1px rgba(0,0,0,.04)}.lf-health-donut:after{content:"";position:absolute;inset:31px;border-radius:50%;background:#fff;box-shadow:0 5px 20px rgba(18,45,38,.09)}.lf-health-donut span{position:absolute;z-index:1;inset:0;display:grid;place-content:center;text-align:center}.lf-health-donut strong{font-size:27px;color:#193a31}.lf-health-donut small{font-size:10px;text-transform:uppercase;letter-spacing:.12em;color:#78847f}.lf-health-category-list{display:grid;gap:10px}.lf-health-category-list>div{display:grid;grid-template-columns:9px minmax(0,1fr) auto;align-items:center;gap:9px}.lf-health-category-list i{width:9px;height:9px;border-radius:50%;background:var(--dot)}.lf-health-category-list strong,.lf-health-category-list small{display:block}.lf-health-category-list strong{font-size:12px;color:#31443e}.lf-health-category-list small{font-size:10px;color:#89938f}.lf-health-category-list em{font-size:11px;font-style:normal;font-weight:700;color:#4a5b55}.lf-health-product-list{display:grid}.lf-health-product-list article{display:grid;grid-template-columns:30px minmax(0,1fr) auto;align-items:center;gap:11px;padding:10px 0;border-bottom:1px solid #edf1ef}.lf-health-rank{display:grid;place-items:center;width:27px;height:27px;border-radius:9px;background:#edf4f1;color:#426158;font-size:11px;font-weight:850}.lf-health-product-list strong,.lf-health-product-list small{display:block}.lf-health-product-list strong{font-size:12px;color:#283d36}.lf-health-product-list small{font-size:10px;color:#87918e}.lf-health-product-list i,.lf-health-seller i{display:block;height:5px;margin-top:6px;border-radius:5px;background:#edf1ef;overflow:hidden}.lf-health-product-list em{font-style:normal;font-weight:850;font-size:16px;color:#174b3f;text-align:right}.lf-health-product-list em small{font-weight:600}.lf-health-table td strong,.lf-health-table td small{display:block}.lf-health-table td small{font-size:10px;color:#84908c}.lf-health-ranking-card{padding:22px}.lf-health-ranking{display:grid;grid-template-columns:1fr 1fr;gap:10px}.lf-health-ranking>article{display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:12px;padding:13px;border:1px solid #e7ecea;border-radius:15px;background:#fff}.lf-health-ranking>article.is-podium{background:linear-gradient(145deg,#f5fbf8,#fff)}.lf-health-ranking>article.is-1{border-color:#d7bd78;box-shadow:0 7px 20px rgba(190,145,56,.12)}.lf-health-ranking>article.is-1 .lf-health-rank{background:#f5d98d;color:#73510d}.lf-health-ranking>article.is-2 .lf-health-rank{background:#e5e7eb;color:#4b5563}.lf-health-ranking>article.is-3 .lf-health-rank{background:#fed7aa;color:#9a4b13}.lf-health-seller strong,.lf-health-seller small,.lf-health-seller-total strong,.lf-health-seller-total small{display:block}.lf-health-seller strong{font-size:13px;color:#293e37}.lf-health-seller small,.lf-health-seller-total small{font-size:10px;color:#83908b}.lf-health-seller-total{text-align:right}.lf-health-seller-total strong{font-size:14px;color:#174b3f}.lf-health-month-leaders{margin-top:20px;padding-top:18px;border-top:1px solid #e8eeeb}.lf-health-month-leaders h3{margin:0 0 10px;font-size:13px;color:#344841}.lf-health-month-leaders>div{display:flex;gap:9px;overflow-x:auto;padding-bottom:4px}.lf-health-month-leaders article{flex:0 0 145px;padding:11px;border-radius:12px;background:#f3f7f5}.lf-health-month-leaders span,.lf-health-month-leaders strong,.lf-health-month-leaders small{display:block}.lf-health-month-leaders span{font-size:9px;text-transform:uppercase;color:#7a8883}.lf-health-month-leaders strong{font-size:11px;color:#2f443d;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.lf-health-month-leaders small{font-size:10px;color:#0f766e;font-weight:750}.lf-health-notes{display:flex;gap:12px;padding:17px 19px;border:1px solid #dce9e4;border-radius:16px;background:#f2f8f5;color:#496159}.lf-health-notes>svg{flex:0 0 23px;width:23px;color:#0f766e}.lf-health-notes strong{display:block;color:#244239}.lf-health-notes p{margin:3px 0 0;font-size:12px;line-height:1.55}.lf-health-notes b{color:#1f463b}@keyframes lf-grow-bar{from{width:0}}@media(max-width:1100px){.lf-health-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.lf-health-grid-2{grid-template-columns:1fr}.lf-health-category-layout{grid-template-columns:170px 1fr}}@media(max-width:760px){.lf-health-hero{align-items:flex-start;flex-direction:column;padding:22px}.lf-health-period{width:100%}.lf-health-filters{align-items:stretch;flex-direction:column}.lf-health-date-fields{align-items:stretch;flex-wrap:wrap}.lf-health-date-fields .lf-field{flex:1}.lf-health-date-fields .lf-button{width:100%}.lf-health-kpis,.lf-health-compare,.lf-health-ranking{grid-template-columns:1fr}.lf-health-compare>article{grid-template-columns:auto 1fr}.lf-health-compare p{grid-column:2;text-align:left}.lf-health-category-layout{grid-template-columns:1fr;justify-items:center}.lf-health-category-list{width:100%}.lf-health-line-chart{min-width:620px}.lf-health-chart-wrap{overflow-x:auto}.lf-health-ranking>article{grid-template-columns:31px minmax(0,1fr)}.lf-health-seller-total{grid-column:2;text-align:left}.lf-health-kpis{gap:10px}}
.lf-workspace svg.lf-health-line-chart{display:block;width:100%;height:280px;overflow:visible;flex-shrink:1}
.lf-label-period{display:grid;grid-template-columns:minmax(145px,1fr) auto minmax(145px,1fr);align-items:end;gap:9px}.lf-label-period small{grid-column:1/4;color:var(--lf-muted);font-size:.68rem;font-weight:700}.lf-period-separator{padding-bottom:10px;color:var(--lf-muted);font-size:.76rem;font-weight:800}.lf-period-presets{display:flex;flex-wrap:wrap;gap:7px}.lf-period-presets button{padding:8px 11px;border:1px solid var(--lf-line);border-radius:10px;background:var(--lf-surface);color:var(--lf-ink);font-size:.7rem;font-weight:750;transition:.18s}.lf-period-presets button:hover{border-color:var(--lf-green);color:var(--lf-green);transform:translateY(-1px)}@media(max-width:700px){.lf-label-period{width:100%;grid-template-columns:1fr auto 1fr}.lf-label-period .lf-field{min-width:0}.lf-period-presets{width:100%}.lf-period-presets button{flex:1 1 42%}}
.lf-alert-center{position:relative;margin-inline:6px 12px}.lf-alert-trigger{position:relative;display:grid;place-items:center;width:38px;height:38px;border:1px solid var(--lf-line);border-radius:12px;background:var(--lf-surface);color:var(--lf-ink);transition:.18s}.lf-alert-trigger:hover{border-color:var(--lf-green);color:var(--lf-green);transform:translateY(-1px)}.lf-alert-trigger svg{width:20px}.lf-alert-trigger span{position:absolute;right:-5px;top:-6px;display:grid;place-items:center;min-width:19px;height:19px;padding:0 5px;border:2px solid #fff;border-radius:20px;background:#dc2626;color:#fff;font-size:9px;font-weight:850}.lf-alert-popover{position:absolute;z-index:80;right:0;top:48px;width:min(430px,calc(100vw - 24px));overflow:hidden;border:1px solid #dfe7e4;border-radius:18px;background:#fff;box-shadow:0 24px 60px rgba(16,38,33,.22)}.lf-alert-popover>header{display:flex;align-items:center;justify-content:space-between;padding:17px 18px;border-bottom:1px solid #e7ecea;background:linear-gradient(145deg,#f2f8f5,#fff)}.lf-alert-popover header small{display:block;color:#0f766e;font-size:9px;font-weight:850;letter-spacing:.12em}.lf-alert-popover header h2{display:flex;align-items:center;gap:8px;margin:2px 0 0;color:#18352e;font-size:17px}.lf-alert-popover header h2 span{display:grid;place-items:center;min-width:22px;height:22px;border-radius:20px;background:#dc2626;color:#fff;font-size:10px}.lf-alert-popover header>button{display:grid;place-items:center;width:31px;height:31px;border-radius:9px;color:#71807b}.lf-alert-popover header>button:hover{background:#e8efec;color:#18352e}.lf-alert-popover header svg{width:18px}.lf-alert-list{max-height:420px;overflow-y:auto}.lf-alert-item{display:grid;grid-template-columns:45px minmax(0,1fr) auto;align-items:start;gap:12px;padding:15px 16px;border-bottom:1px solid #edf1ef;background:#fff}.lf-alert-item:hover{background:#fbfcfc}.lf-alert-icon{display:grid;place-items:center;width:43px;height:43px;border-radius:13px;background:#e4f4ef;color:#0f766e}.lf-alert-icon svg{width:22px}.lf-alert-item.is-urgente .lf-alert-icon{background:#fff0e7;color:#ea580c}.lf-alert-item.is-retirada .lf-alert-icon{background:#eef2ff;color:#4f46e5}.lf-alert-item.is-prova .lf-alert-icon{background:#f5edff;color:#7e22ce}.lf-alert-copy{min-width:0}.lf-alert-copy>div{display:flex;justify-content:space-between;gap:8px}.lf-alert-copy a{color:#176b9b;font-size:12px;font-weight:850}.lf-alert-copy strong{flex:0 0 auto;color:#1f352f;font-size:11px}.lf-alert-copy p{margin:3px 0;color:#485954;font-size:11px;line-height:1.4}.lf-alert-copy small{display:block;color:#8a9692;font-size:9px;font-style:italic}.lf-alert-item>button{align-self:center;padding:6px 8px;border-radius:8px;background:#176b9b;color:#fff;font-size:10px;font-weight:850}.lf-alert-item>button:hover{background:#0f5277}.lf-alert-empty{display:grid;justify-items:center;padding:36px 20px;text-align:center}.lf-alert-empty svg{width:40px;color:#16a36a}.lf-alert-empty strong{margin-top:8px;color:#203b33}.lf-alert-empty p{margin:3px 0;color:#7a8883;font-size:11px}.lf-alert-popover>footer{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 16px;background:#f7f9f8;color:#78847f;font-size:9px}.lf-alert-popover>footer button{color:#0f766e;font-weight:800}@media(max-width:640px){.lf-alert-center{margin-inline:2px 7px}.lf-alert-popover{position:fixed;top:66px;right:12px;left:12px;width:auto}.lf-alert-copy>div{display:grid}.lf-alert-item{grid-template-columns:40px minmax(0,1fr) auto;padding:13px 12px}.lf-alert-icon{width:38px;height:38px}}

/* Listas principais: largura integral em monitores comuns, sem rolagem horizontal. */
@media (min-width:1024px){
    :is(.fi-resource-contratos,.fi-resource-produtos).fi-resource-list-records-page .fi-ta-table{width:100%;table-layout:fixed;font-size:.78rem}
    :is(.fi-resource-contratos,.fi-resource-produtos).fi-resource-list-records-page .fi-ta-table :is(th,td){min-width:0;padding-inline:.55rem}
    :is(.fi-resource-contratos,.fi-resource-produtos).fi-resource-list-records-page .fi-ta-table td :is(.fi-ta-text,.fi-ta-text-item){max-width:100%;overflow:hidden;text-overflow:ellipsis}
    :is(.fi-resource-contratos,.fi-resource-produtos).fi-resource-list-records-page .fi-ta-table thead th:last-child{width:20rem}
    .fi-resource-contratos.fi-resource-list-records-page .fi-ta-table thead th:last-child{width:9rem}
    :is(.fi-resource-contratos,.fi-resource-produtos).fi-resource-list-records-page .fi-ta-table td:has(>.fi-ta-actions){padding-block:.55rem;overflow:visible}
    :is(.fi-resource-contratos,.fi-resource-produtos).fi-resource-list-records-page .fi-ta-table .fi-ta-actions{gap:.35rem;flex-wrap:nowrap;justify-content:flex-end}
    :is(.fi-resource-contratos,.fi-resource-produtos).fi-resource-list-records-page .fi-ta-table .fi-ta-actions .fi-btn{white-space:nowrap;border-radius:.65rem;font-size:.72rem;padding:.5rem .6rem;box-shadow:0 1px 2px #16233814}
    .fi-resource-contratos.fi-resource-list-records-page .fi-ta-table .fi-ta-actions{gap:.5rem}
    .fi-resource-contratos.fi-resource-list-records-page .fi-ta-table .fi-ta-actions .fi-icon-btn{margin:0;border-radius:.5rem;width:2.25rem;height:2.25rem;box-shadow:inset 0 0 0 1px currentColor}
    .fi-resource-contratos.fi-resource-list-records-page .fi-ta-table .fi-ta-actions .fi-icon-btn .fi-icon{width:1.05rem;height:1.05rem}
    .fi-resource-contratos.fi-resource-list-records-page .fi-ta-table .fi-ta-actions .fi-icon-btn:not(.fi-color){background:#eef2f8;color:#334b71}
    .fi-resource-contratos.fi-resource-list-records-page .fi-ta-table .fi-ta-actions .fi-icon-btn.fi-color-success{background:#e5f5ee;color:#087b56}
    .fi-resource-contratos.fi-resource-list-records-page .fi-ta-table .fi-ta-actions .fi-icon-btn.fi-color-primary{background:#f8f0e3;color:#946221}
    .fi-resource-produtos.fi-resource-list-records-page .fi-ta-table .fi-ta-header-cell-foto{width:5rem}
    .fi-resource-produtos.fi-resource-list-records-page .fi-ta-table .fi-ta-header-cell-codigo{width:7rem}
    .fi-resource-produtos.fi-resource-list-records-page .fi-ta-table .fi-ta-header-cell-estoque{width:5.5rem}
    .fi-resource-produtos.fi-resource-list-records-page .fi-ta-table .fi-ta-header-cell-itens-contrato-count{width:7rem}
}
.lf-label-model-especial{background:#f8eee7;color:#865c46}
.lf-atelier-measures,.lf-atelier-notes{display:block;margin-top:.3rem;font-size:.74rem;line-height:1.4;white-space:normal;overflow-wrap:anywhere}

/* Operação no celular: preservar dados e ações sem comprimir colunas. */
.lf-report-mobile-sort{display:none}
@media screen and (max-width:639px){
    .fi-ta-table-stacked-on-mobile > tbody > .fi-ta-row:not(.fi-ta-group-header-row){padding-block:14px}
    .fi-ta-table-stacked-on-mobile > tbody > .fi-ta-row > .fi-ta-cell:not(.fi-ta-selection-cell){min-width:0;padding-inline:16px}
    .fi-ta-table-stacked-on-mobile .fi-ta-cell-label{font-size:.75rem;line-height:1.3;padding-top:10px}
    .fi-ta-table-stacked-on-mobile .fi-ta-cell-content{overflow-wrap:anywhere}
    .fi-ta-table-stacked-on-mobile .fi-ta-actions{gap:8px;justify-content:flex-start}
    .fi-ta-table-stacked-on-mobile .fi-ta-actions :is(.fi-btn,.fi-icon-btn){min-height:44px;min-width:44px}
    .fi-ta-table-stacked-on-mobile .fi-ta-actions .fi-btn{white-space:normal}
    .fi-main,.fi-main-content,.fi-section,.fi-ta-ctn{min-width:0}
    .fi-main :is(input:not([type=checkbox]):not([type=radio]),select,textarea){font-size:16px;max-width:100%;min-width:0}
    .fi-form-actions .fi-btn{min-height:44px}
    .lf-workspace :is(input,select,textarea){font-size:16px;max-width:100%;min-width:0}
    .lf-workspace :is(.lf-button,.lf-icon-button){min-height:44px}
    .lf-report-mobile-sort{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;padding:0 16px 14px}
    .lf-report-mobile-sort select{width:100%}
    .lf-reports .lf-table-scroll{overflow-x:visible}
    .lf-reports .lf-table,.lf-reports .lf-table tbody,.lf-reports .lf-table tbody tr,.lf-reports .lf-table tbody td{display:block;width:100%}
    .lf-reports .lf-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);clip-path:inset(50%)}
    .lf-reports .lf-table tbody tr{padding:14px 16px;border-top:1px solid var(--lf-line)}
    .lf-reports .lf-table tbody td{padding:5px 0;border:0;text-align:left;white-space:normal;overflow-wrap:anywhere}
    .lf-reports .lf-table tbody td[data-label]{display:grid;grid-template-columns:minmax(95px,38%) minmax(0,1fr);gap:10px}
    .lf-reports .lf-table tbody td[data-label]::before{content:attr(data-label);color:var(--lf-muted);font-weight:600}
    .lf-reports .lf-table .lf-report-row-action{padding-top:8px}
    .lf-reports .lf-table .lf-report-row-action a{min-height:44px}
    .lf-report-pagination{padding:12px 16px}
}

/* Listas compactas e navegação direta do cadastro em telas pequenas. */
@media screen and (max-width:639px){
    :is(.fi-resource-contratos,.fi-resource-produtos,.fi-resource-clientes,.fi-resource-vendas,.fi-resource-eventos) .fi-ta-table-stacked-on-mobile > tbody > tr.fi-ta-row:not(.fi-ta-group-header-row):not(.fi-ta-summary-row){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 12px;padding:14px 16px}
    :is(.fi-resource-contratos,.fi-resource-produtos,.fi-resource-clientes,.fi-resource-vendas,.fi-resource-eventos) .fi-ta-table-stacked-on-mobile > tbody > tr.fi-ta-row > .fi-ta-cell:not(.fi-ta-selection-cell){min-width:0;padding:0}
    :is(.fi-resource-contratos,.fi-resource-produtos,.fi-resource-clientes,.fi-resource-vendas,.fi-resource-eventos) .fi-ta-table-stacked-on-mobile .fi-ta-cell-label{padding-top:2px;font-size:.7rem;line-height:1.25}
    :is(.fi-resource-contratos,.fi-resource-produtos,.fi-resource-clientes,.fi-resource-vendas,.fi-resource-eventos) .fi-ta-table-stacked-on-mobile .fi-ta-cell-content{font-size:.85rem;line-height:1.35;overflow-wrap:anywhere}
    :is(.fi-resource-contratos,.fi-resource-produtos,.fi-resource-clientes,.fi-resource-vendas,.fi-resource-eventos) .fi-ta-table-stacked-on-mobile :is(.fi-ta-cell-descricao,.fi-ta-cell-nome,[class~="fi-ta-cell-cliente.nome"],.fi-ta-cell:has(>.fi-ta-actions)){grid-column:1/-1}
    :is(.fi-resource-contratos,.fi-resource-produtos,.fi-resource-clientes,.fi-resource-vendas,.fi-resource-eventos) .fi-ta-table-stacked-on-mobile .fi-ta-cell:has(>.fi-ta-actions){padding-top:6px}
    .fi-resource-contratos .fi-ta-table-stacked-on-mobile .fi-ta-actions .fi-icon-btn[aria-label]{display:inline-flex;width:auto;min-height:44px;padding:0 9px;gap:5px;border:1px solid currentColor;border-radius:8px;font-size:.72rem;white-space:nowrap}
    .fi-resource-contratos .fi-ta-table-stacked-on-mobile .fi-ta-actions .fi-icon-btn[aria-label]::after{content:attr(aria-label)}
    .fi-resource-contratos .fi-sc-wizard-header{grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;padding:8px}
    .fi-resource-contratos .fi-sc-wizard-header .fi-sc-wizard-header-step:not(.fi-active){display:flex}
    .fi-resource-contratos .fi-sc-wizard-header .fi-sc-wizard-header-step-btn{width:100%;min-height:44px;padding:6px;gap:6px;border-radius:8px}
    .fi-resource-contratos .fi-sc-wizard-header .fi-sc-wizard-header-step-icon-ctn{width:28px;height:28px}
    .fi-resource-contratos .fi-sc-wizard-header .fi-sc-wizard-header-step-icon-ctn .fi-icon{width:16px;height:16px}
    .fi-resource-contratos .fi-sc-wizard-header .fi-sc-wizard-header-step-label{font-size:.72rem;line-height:1.25}
    .fi-resource-contratos .fi-sc-wizard-header .fi-sc-wizard-header-step.fi-active .fi-sc-wizard-header-step-btn{background:color-mix(in srgb,var(--lf-green) 8%,var(--lf-surface))}
    .fi-resource-contratos .fi-sc-wizard.fi-contained .fi-sc-wizard-step.fi-active{padding:16px}
    .fi-resource-contratos .fi-sc-wizard.fi-contained .fi-sc-wizard-footer{padding:0 16px 16px}
    .fi-resource-contratos .fi-sc-wizard-step table{display:block;max-width:100%;overflow-x:auto}
    .fi-resource-produtos.fi-resource-edit-record-page .fi-section-content{padding:16px}
}

/* O cabeçalho dos itens precisa acomodar os botões sem cortar o nome. */
@media screen and (max-width:639px){
    .fi-resource-contratos .fi-fo-repeater-item-header{flex-wrap:wrap;overflow:visible;gap:6px 10px}
    .fi-resource-contratos .fi-fo-repeater-item-header-label{min-width:0;flex:1 1 130px;overflow-wrap:anywhere}
    .fi-resource-contratos .fi-fo-repeater-item-header-end-actions{flex-wrap:wrap;gap:4px 8px}
    .fi-resource-contratos .fi-fo-repeater-item-header-end-actions :is(button,a){min-width:44px;min-height:44px}
    .fi-resource-contratos .fi-fo-repeater-item-content{min-width:0}
}
@media screen and (min-width:360px) and (max-width:639px){
    .fi-resource-contratos .fi-sc-wizard-header{grid-template-columns:repeat(4,minmax(0,1fr))}
    .fi-resource-contratos .fi-sc-wizard-header .fi-sc-wizard-header-step-btn{flex-direction:column;justify-content:flex-start;align-items:center;text-align:center;gap:3px;padding:5px 2px}
    .fi-resource-contratos .fi-sc-wizard-header .fi-sc-wizard-header-step-text{justify-items:center}
    .fi-resource-contratos .fi-sc-wizard-header .fi-sc-wizard-header-step-label{text-align:center;font-size:.66rem;line-height:1.2;overflow-wrap:anywhere}
}
.lf-atelier-measures{color:#315e56}.lf-atelier-notes{color:#655b50}

/* Nas listagens, a trilha de navegação já identifica a página. */
.fi-resource-list-records-page .fi-header-heading{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.lf-client-contracts{display:grid;gap:.6rem}
.lf-client-contract{display:flex;align-items:center;justify-content:space-between;gap:.75rem;flex-wrap:wrap;padding:.85rem 1rem;border:1px solid var(--lf-line,#e5e7eb);border-radius:.75rem;background:var(--lf-surface,#fff)}
.lf-client-contract-main{display:grid;gap:.2rem;min-width:0}.lf-client-contract-main strong{color:var(--lf-ink,#152238)}
.lf-client-contract-main span,.lf-client-contract-empty,.lf-client-contract-more{font-size:.8rem;color:var(--lf-muted,#64748b)}
.lf-client-contract-meta{display:flex;align-items:center;gap:.65rem;flex-wrap:wrap}
.lf-client-contract-status{font-size:.75rem;font-weight:600;border-radius:999px;padding:.25rem .6rem;background:#eef2f6;color:#43556d}
.lf-client-contract-link{font-size:.8rem;font-weight:650;color:#16705c;text-decoration:none}.lf-client-contract-link:hover{text-decoration:underline}
