/* Shared operational layout; Valentino's identity is selected only after tenant authentication. */
:root{--accent:var(--orange);--accent-soft:#f3ac7212;--accent-line:#f3ac7240}.brand{gap:12px!important}.brand img{width:48px!important;height:48px!important;object-fit:contain;flex:none}.brand>span{min-width:0}.brand strong{font-size:15px;display:block;line-height:1.3;letter-spacing:-.3px}.brand small{font-size:9px!important;letter-spacing:.12em;margin-top:5px}.sidebar nav{gap:4px}.sidebar nav button{min-height:42px;font-size:14px}.sidebar{overflow-y:auto}.powered{font-size:11px;color:#7d899a;margin:auto 20px 14px;padding-top:25px}.sidebar-bottom{margin-top:0!important}.topbar{gap:22px}.breadcrumb{white-space:nowrap}.global-search{position:relative;max-width:390px;flex:1;margin-left:auto}.global-search input{margin:0;font-size:14px;border-radius:10px;padding:10px 14px;background:#ffffff03}.global-results{position:absolute;top:calc(100% + 9px);left:0;right:0;max-height:420px;overflow:auto;background:#171c24;border:1px solid var(--line2);padding:7px;border-radius:12px;box-shadow:0 18px 50px #0008;z-index:80}.search-result{width:100%;padding:11px 12px;background:none;border:0;border-radius:7px;color:var(--text);text-align:left;display:flex;justify-content:space-between;gap:12px}.search-result:hover{background:var(--accent-soft)}.search-result strong{font-size:14px;font-weight:500}.search-result small{font-size:12px;color:var(--muted);white-space:nowrap}.page-heading h1{font-size:30px;letter-spacing:-1px}.page-heading{margin-bottom:24px}.view{max-width:1900px;margin:0 auto}.overview-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:24px}.stat-card{border:1px solid var(--line);background:linear-gradient(140deg,#1b222d,#121821);border-radius:14px;text-align:left;color:var(--text);padding:22px;display:flex;flex-direction:column;min-height:158px;transition:transform .18s,border-color .18s}.stat-card:hover{transform:translateY(-2px);border-color:var(--accent-line)}.stat-card>span{color:#aebaca;font-size:14px}.stat-card>strong{font-size:38px;line-height:1.1;letter-spacing:-1.5px;margin:14px 0 10px;font-weight:600}.stat-card>small{font-size:13px;color:var(--muted)}.overview-layout{display:grid;grid-template-columns:1.15fr 1fr;gap:20px}.overview-layout>.card{min-height:250px}.section-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.section-title h2{margin:0;font-size:16px}.section-title button{font-size:13px;flex:none}.operational-row{display:flex;align-items:center;justify-content:space-between;gap:14px;border-bottom:1px solid var(--line);padding:15px 0}.operational-row:last-child{border:0}.operational-row>div{min-width:0}.operational-row strong{font-size:14px;display:block;font-weight:550}.operational-row small{display:block;font-size:13px;color:var(--muted);margin-top:5px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;max-width:340px}.compact-empty{font-size:14px;line-height:1.8;color:var(--muted);padding:22px 0;margin:0}.sales-counts{display:flex;gap:12px;flex-wrap:wrap;margin-top:22px}.sales-counts span{border:1px solid var(--line);padding:7px 10px;border-radius:7px;font-size:13px;color:#b5c0cf}.activity-entry{padding:12px 0;border-bottom:1px solid var(--line)}.activity-entry:last-child{border:0}.activity-entry p{font-size:14px;margin:0 0 4px}.activity-entry small{font-size:12px;color:var(--muted)}.filter-bar{display:flex;gap:14px;margin-bottom:15px}.filter-bar input{max-width:550px;margin:0}.filter-bar select{max-width:230px;margin:0}.quote-card{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:23px 25px;background:var(--surface);border:1px solid var(--line);border-radius:12px}.quote-meta{display:flex;align-items:center;gap:12px;margin-bottom:14px}.quote-number{font-size:13px;letter-spacing:.06em;font-weight:600;color:var(--muted)}.quote-card h2{font-size:18px;margin:0 0 7px}.quote-card p{font-size:14px;color:#bdc6d3;margin:0 0 5px}.quote-card small{font-size:13px;color:var(--muted)}.quote-actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap;justify-content:flex-end}.quote-actions>strong{flex-basis:100%;text-align:right;font-size:23px;margin-bottom:10px}.template-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.template-card{display:flex;flex-direction:column;align-items:flex-start}.template-card p{white-space:pre-wrap;line-height:1.75;font-size:14px;color:#aebaca;flex:1}.quote-lines{display:grid;gap:14px}.quote-line{display:grid;grid-template-columns:minmax(0,1fr) 75px 115px;gap:9px;border:1px solid var(--line);padding:13px;border-radius:9px}.quote-line>label{font-size:12px}.quote-line>label input{font-size:14px;padding:8px}.quote-line>button{grid-column:1/-1;justify-self:end;padding:0;font-size:12px}.quote-total{padding:16px;background:var(--accent-soft);border:1px solid var(--accent-line);border-radius:9px;margin:0;font-size:18px;font-weight:600}.priority-label{color:var(--accent)!important;font-weight:600}.flag-active{background:var(--accent-soft)!important;border-color:var(--accent-line)!important;color:var(--accent)!important}.reply-form>.reply-tools{flex-wrap:wrap}.reply-tools label{min-width:150px}.conversation-toolbar{flex-wrap:wrap}.conversation-toolbar button{font-size:12px}.summary-strip>div{border-radius:10px}.badge{font-size:12px}.tag{font-size:12px}.contact-panel p,.contact-panel label,.contact-panel textarea{font-size:14px}.contact-panel button{font-size:13px}.note small{font-size:12px}.contact-panel h3{font-size:17px}.eyebrow,.brand-kicker{font-size:12px}.pipeline-heading h2{font-size:14px}.deal p{font-size:13px}.brand small{font-weight:500}#quotePreview{width:min(850px,calc(100vw - 24px));padding:0;max-height:92dvh}#quoteDocument{background:#fff;color:#191919;padding:45px;line-height:1.65}#quoteDocument p{font-size:14px}.proposal-header{display:flex;align-items:center;gap:20px;border-bottom:2px solid #191919;padding-bottom:20px;margin-bottom:28px;font-size:23px;font-weight:650}.proposal-header img{width:80px;height:80px;object-fit:contain;border-radius:50%;background:#111}#quoteDocument h1{font-size:27px;margin:16px 0 20px}#quoteDocument th{color:#333;background:#f2f3f4;font-size:13px}#quoteDocument td{color:#222;border-color:#ddd;font-size:14px}#quoteDocument td,#quoteDocument th{padding:12px}#quoteDocument .proposal-total{text-align:right;margin:24px 0;font-size:24px}.proposal-notes{white-space:pre-wrap}.proposal-business{color:#555;margin:8px 0}#quoteDocument small{display:block;border-top:1px solid #ddd;padding-top:20px;font-size:12px;color:#555;margin-top:24px}.preview-actions{position:sticky;top:0;padding:15px;background:var(--surface2);display:flex;gap:9px;justify-content:flex-end}
:root[data-brand=valentino]{--orange:#ef2431;--accent:#ff4551;--accent-soft:#f2233011;--accent-line:#f2233040;--bg:#0b0b0e;--surface:#131316;--surface2:#1b1b20;--line:#ffffff12;--line2:#ffffff20;--muted:#a5a5b1;--text:#f5f5f8;--font:'Segoe UI',-apple-system,BlinkMacSystemFont,sans-serif}
[data-brand=valentino] .sidebar{background:linear-gradient(180deg,#141417,#0d0d10);border-right:1px solid #ffffff10}[data-brand=valentino] .brand img{width:62px!important;height:62px!important;border-radius:50%;object-fit:cover}[data-brand=valentino] .brand strong{font-size:16px;text-transform:uppercase;letter-spacing:.01em}[data-brand=valentino] .brand small{color:#b1a8a9}[data-brand=valentino] .sidebar nav button.active{background:#ed263217;border-color:#ef243133;box-shadow:inset 3px 0 #ef2431;color:#fff}[data-brand=valentino] .sidebar nav button.active svg{color:#ff4551}[data-brand=valentino] .primary{background:#e8000f;border-color:#ff455166;color:#fff}[data-brand=valentino] .primary:hover{background:#ff1a26}[data-brand=valentino] input,[data-brand=valentino] textarea,[data-brand=valentino] select{background-color:#0d0d11}[data-brand=valentino] .topbar{background:#0e0e11;border-bottom:1px solid var(--line)}[data-brand=valentino] .eyebrow,[data-brand=valentino] .brand-kicker{color:#ff6871}[data-brand=valentino] .stat-card{background:linear-gradient(145deg,#1d1d23,#121215)}[data-brand=valentino] .stat-card:first-child{background:linear-gradient(130deg,#47131b,#191216);border-color:#e8000f33}[data-brand=valentino] .card{background:linear-gradient(135deg,#19191e,#121215)}[data-brand=valentino] .inbox-shell,[data-brand=valentino] .chat-panel,[data-brand=valentino] .inbox-list,[data-brand=valentino] .table-wrap,[data-brand=valentino] .task,[data-brand=valentino] .pipeline-column{background:#131316}[data-brand=valentino] .conversation-entry.selected{background:#ef243112;border-color:#ef243130}[data-brand=valentino] .bubble.team{background:#37151b;border-color:#ef243125}[data-brand=valentino] .bubble{background:#202025}[data-brand=valentino] .deal,[data-brand=valentino] dialog,[data-brand=valentino] .global-results{background:#1a1a20}[data-brand=valentino] .deal small{color:#ff8e96}[data-brand=valentino] .segmented button.selected{background:#ef243112;border-color:#ef243144;color:#ff8e96}[data-brand=valentino] .avatar{background:#282127;color:#ffc4c8}[data-brand=valentino] .notice{background:#ffffff03;border-color:#ffffff18;color:#b7b5be}[data-brand=valentino] .chat-header,[data-brand=valentino] .contact-panel,[data-brand=valentino] .list-title{background:#161619}[data-brand=valentino] th{background:#1b1b20}[data-brand=valentino] .quote-total{color:#ffd5d8}[data-brand=valentino] .service-list article{background:#0d0d1166}[data-brand=valentino] .page-heading h1{font-weight:650;letter-spacing:-1.2px}
@media(min-width:1500px){.inbox-shell{grid-template-columns:300px minmax(350px,1fr) 280px}.chat-messages{min-height:240px}}@media(max-width:1200px){.global-search{max-width:280px}.sync-status{display:none}.overview-stats{gap:12px}.stat-card{padding:18px}.template-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.overview-layout{grid-template-columns:1fr 1fr}.operational-row small{max-width:200px}}@media(max-width:980px){.overview-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.overview-layout{grid-template-columns:1fr}.operational-row small{max-width:420px}.topbar{gap:12px}.breadcrumb>span:first-child{display:none}.global-search{max-width:none}.template-grid{grid-template-columns:1fr}}@media(max-width:760px){.topbar{flex-wrap:wrap;height:auto;min-height:64px;padding:12px 15px}.global-search{order:4;flex-basis:100%;max-width:none}.global-search input{font-size:16px}.breadcrumb{flex:1}.breadcrumb strong{font-size:14px}.overview-stats{gap:10px;margin-bottom:18px}.stat-card{padding:16px;min-height:140px}.stat-card>span{font-size:13px}.stat-card>strong{font-size:32px}.stat-card>small{font-size:12px}.page-heading h1{font-size:26px}.overview-layout{gap:15px}.overview-layout>.card{min-height:0}.operational-row small{max-width:220px}.quote-card{padding:18px;align-items:flex-start;flex-direction:column;gap:18px}.quote-actions{width:100%;justify-content:flex-start}.quote-actions>strong{flex-basis:auto;text-align:left;margin:0 auto 0 0;font-size:20px}.filter-bar{flex-direction:column;gap:10px}.filter-bar input,.filter-bar select{max-width:none}.quote-line{grid-template-columns:1fr 1fr}.quote-line>label:first-child{grid-column:1/-1}.quote-line>label input{font-size:16px}#quoteDocument{padding:24px 18px;overflow-x:auto}.proposal-header{font-size:18px;gap:12px}.proposal-header img{width:60px;height:60px}.sidebar{top:126px}.template-grid{gap:14px}.summary-strip span{font-size:13px}.powered{font-size:12px}.reply-tools label{font-size:13px}.section-title{flex-wrap:wrap}}
@media print{html,body{background:#fff!important;color:#000!important}body>*{display:none!important}body>#quotePreview[open]{display:block!important;position:static!important;width:100%!important;max-width:none!important;max-height:none!important;border:0!important;box-shadow:none!important;background:white!important;margin:0!important;padding:0!important;overflow:visible!important}#quotePreview::backdrop{display:none!important}.preview-actions{display:none!important}#quoteDocument{padding:0!important;overflow:visible!important}#quoteDocument table{page-break-inside:auto}#quoteDocument tr{break-inside:avoid}#quoteDocument .proposal-header{break-inside:avoid}#quoteDocument th,#quoteDocument td{min-width:0!important}a{color:#000!important}}

/* Channel identity stays independent of each business palette. */
.channel-pill,.channel-mark{display:inline-flex;align-items:center;justify-content:center;gap:6px;flex:none;font-size:12px;font-weight:600;line-height:1.35;border-radius:6px;color:#d3dae4;background:#ffffff0a;border:1px solid #ffffff18;padding:4px 7px;white-space:nowrap;vertical-align:middle}.channel-pill svg{width:14px;height:14px;stroke:currentColor;stroke-width:1.7;fill:none}.channel-pill>span{font-size:inherit;color:inherit;overflow:visible}.channel-pill[data-channel=whatsapp]{color:#87edb0;background:#25d36613;border-color:#25d36635}.channel-pill[data-channel=instagram]{color:#ffd2e9;background:linear-gradient(115deg,#f585291a,#dd2a7b24,#8134af29);border-color:#dc6ab449}.channel-avatar{position:relative;overflow:visible!important}.channel-mark{position:absolute;right:-5px;bottom:-5px;width:22px;height:22px;border-radius:8px;padding:3px;border:2px solid #15171d;color:#fff;box-shadow:0 2px 6px #0005}.channel-mark svg{width:14px;height:14px;stroke:currentColor;stroke-width:1.8;fill:none}.channel-mark[data-channel=whatsapp]{background:#128c4a}.channel-mark[data-channel=instagram]{background:linear-gradient(135deg,#f58529,#dd2a7b 52%,#8134af)}.conversation-entry[data-channel]{border-left:3px solid transparent;border-radius:8px;padding-left:10px}.conversation-entry[data-channel=whatsapp]{border-left-color:#25d366}.conversation-entry[data-channel=instagram]{border-left-color:#d65ba9}.conversation-entry[data-channel] .channel-pill{margin-top:8px;font-size:11px;max-width:100%}.conversation-entry[data-channel=whatsapp].selected{background:linear-gradient(110deg,#25d36613,#25d36605)!important;border-color:#25d36638!important;border-left-color:#25d366!important}.conversation-entry[data-channel=instagram].selected{background:linear-gradient(110deg,#dd2a7b18,#8134af0c)!important;border-color:#dc6ab43d!important;border-left-color:#df72b5!important}.conversation-entry[data-channel=whatsapp]:hover{background:#25d36609}.conversation-entry[data-channel=instagram]:hover{background:#dd2a7b0b}.chat-panel[data-channel=whatsapp] .chat-header{box-shadow:inset 0 3px #25d366}.chat-panel[data-channel=instagram] .chat-header{border-image:linear-gradient(90deg,#f58529,#dd2a7b,#8134af) 1;border-top:3px solid}.chat-header #contactChannel{margin:7px 0 0}.chat-header #contactChannel .channel-pill{font-size:12px}.channel-attention{padding-left:12px;border-left:3px solid transparent}.channel-attention[data-channel=whatsapp]{border-left-color:#25d366}.channel-attention[data-channel=instagram]{border-left-color:#d65ba9}.channel-attention .channel-pill{margin-bottom:8px}.channel-attention:not(:last-child){margin-bottom:8px}.conversation-entry.selected .channel-pill[data-channel=whatsapp]{color:#a1f3c0}.conversation-entry.selected .channel-pill[data-channel=instagram]{color:#ffdbed}@media(max-width:760px){.channel-pill{font-size:12px}.conversation-entry[data-channel] .channel-pill{font-size:12px}.channel-mark{width:23px;height:23px}.channel-attention .channel-pill{font-size:12px}}
