@import url('/vendor/inter.css');

body.estimates-page { --estimate-line:#e8e8eb; --estimate-muted:#71717a; --estimate-ink:#18181b; --estimate-paper:#fff; --estimate-soft:#f5f6f7; background:var(--estimate-paper); color:var(--estimate-ink); letter-spacing:0; }
.dark body.estimates-page { --estimate-line:#303033; --estimate-muted:#a4a4aa; --estimate-ink:#f4f4f5; --estimate-paper:#141414; --estimate-soft:#202022; background:var(--estimate-paper); color:var(--estimate-ink); }
.estimates-page * { box-sizing:border-box; }
.estimates-page svg { flex-shrink:0; vertical-align:middle; }
.estimates-page > header { background:var(--estimate-paper); border-color:var(--estimate-line); box-shadow:none!important; }
.estimates-page > header > div { max-width:720px; padding:10px 16px; }
.estimates-page h1 { font-size:20px; line-height:1.25; color:var(--estimate-ink); }
.estimates-page #user-name { font-size:11px; color:var(--estimate-muted); }
.estimates-page #user-avatar { background:var(--estimate-soft)!important; color:var(--estimate-ink)!important; }
.estimates-page #dashboard-header-actions button { color:var(--estimate-muted); }
.estimates-page > main { width:100%; max-width:720px; padding:16px 16px 24px; }
.estimates-page .manager-picker { margin:0 0 12px; border-color:var(--estimate-line); background:var(--estimate-paper); border-radius:6px; }
.estimates-page .manager-picker summary { min-height:44px; }
.estimates-page .manager-picker-panel { border-color:var(--estimate-line); }
.estimates-page .manager-option input { accent-color:var(--estimate-ink); }
.estimates-page .manager-option-count,.estimates-page #manager-selection-count { color:var(--estimate-muted); }
.estimates-page #manager-selection-label { color:var(--estimate-ink); font-weight:600; }
.estimate-search { margin:0 0 12px; }
.estimates-page #estimate-address-search { border-color:var(--estimate-line); border-radius:6px; color:var(--estimate-ink); background:var(--estimate-paper); }
.estimates-page .estimate-folders { gap:24px; margin:0; border-bottom:1px solid var(--estimate-line); }
.estimates-page .estimate-folders button { padding:0; min-height:44px; border-radius:0; background:transparent; color:var(--estimate-muted); border-bottom:2px solid transparent; }
.estimates-page .estimate-folders button[aria-pressed=true] { background:transparent; color:var(--estimate-ink); border-bottom-color:var(--estimate-ink); font-weight:650; }
.estimate-item { border-bottom:1px solid var(--estimate-line); background:transparent; }
.estimate-item.is-expanded { background:var(--estimate-soft); border-radius:6px; margin:0 -10px; padding:0 10px 10px; }
.estimates-page .estimate-row { display:grid; grid-template-columns:minmax(0,1fr) auto 44px; align-items:center; gap:8px; padding:12px 0; }
.estimates-page .estimate-info { display:block; min-width:0; }
.estimates-page .estimate-address { white-space:normal; overflow-wrap:anywhere; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:3; font-size:13px; line-height:18px; font-weight:650; color:var(--estimate-ink); }
.estimate-item.is-expanded .estimate-address { display:block; }
.estimates-page .estimate-date { color:var(--estimate-muted); font-size:11px; line-height:16px; white-space:normal; overflow:visible; margin-top:3px; }
.estimates-page .estimate-contact { color:var(--estimate-ink); font-size:12px; gap:8px; }
.estimates-page .estimate-contact:has(.estimate-phone-line:empty) { display:none; }
.estimates-page .estimate-phone-line { min-width:0; }
.estimates-page .estimate-phone-line a { min-height:32px; line-height:16px; }
.estimates-page .estimate-more { min-height:32px; color:var(--estimate-muted); text-decoration:none; flex:none; }
.estimates-page .estimate-more:hover { text-decoration:underline; }
.estimate-value { display:flex; flex-direction:column; align-items:flex-end; justify-content:center; min-width:0; }
.estimate-total { font-size:13px; line-height:18px; color:var(--estimate-ink); font-weight:650; font-variant-numeric:tabular-nums; white-space:nowrap; }
.estimate-total span { font-size:10px; font-weight:500; }
.estimates-page .estimate-open { display:flex; align-items:center; justify-content:flex-end; gap:4px; padding:0; min-height:44px; border:0; background:transparent; color:var(--estimate-muted); font-size:11px; font-weight:500; }
.estimates-page .estimate-open-label { display:inline; }
.estimates-page .estimate-open:hover { color:var(--estimate-ink); }
.estimates-page .estimate-open svg { width:16px; height:16px; }
.estimates-page .estimate-toggle { width:44px; height:44px; padding:0; border-radius:6px; color:var(--estimate-muted); }
.estimates-page .estimate-toggle svg { width:18px; height:18px; display:block; }
.estimates-page .estimate-toggle:hover { background:var(--estimate-soft); }
.estimates-page .estimate-details { border:0; padding:0; color:var(--estimate-ink); }
.estimate-facts { margin:0; padding:4px 12px; background:var(--estimate-paper); }
.estimate-facts > div { display:grid; grid-template-columns:80px minmax(0,1fr); gap:12px; padding:7px 0; font-size:12px; line-height:18px; }
.estimate-facts dt { color:var(--estimate-muted); }
.estimate-facts dd { min-width:0; overflow-wrap:anywhere; }
.estimate-note { display:flex; align-items:flex-start; gap:12px; padding:10px 12px; border-top:1px solid var(--estimate-line); background:var(--estimate-paper); font-size:12px; line-height:18px; }
.estimate-note svg { color:var(--estimate-muted); margin-top:1px; }
.estimate-note span { min-width:0; overflow-wrap:anywhere; white-space:pre-wrap; }
.estimate-assignment { display:block; padding:10px 12px; border-top:1px solid var(--estimate-line); background:var(--estimate-paper); font-size:12px; line-height:18px; overflow-wrap:anywhere; color:var(--estimate-ink); }
.estimate-assignment > span { display:block; color:var(--estimate-muted); font-size:11px; margin-bottom:3px; }
.estimate-assignment[href]:hover { text-decoration:underline; }
.estimate-detail-actions { display:flex; flex-wrap:wrap; gap:8px; padding-top:10px; }
.estimate-detail-actions button { color:var(--estimate-ink)!important; border:1px solid var(--estimate-line); background:var(--estimate-paper); border-radius:6px; padding:8px 12px; min-height:44px; font-size:12px; }
.estimate-detail-actions button:first-child:not([title]) { flex:1; text-align:center; }
.estimates-page .estimate-sync-note { padding:8px 0; border:0; font-size:11px; color:var(--estimate-muted); }
.estimates-page .trash-row { border-color:var(--estimate-line); }
.estimates-page .trash-row h3 { font-size:13px; }
.estimates-page #empty-state { border:0; box-shadow:none; border-radius:0; background:transparent; padding:40px 8px; }
.estimate-empty-icon { display:flex; justify-content:center; color:var(--estimate-muted); margin-bottom:12px; }
.estimate-empty-icon svg { width:28px; height:28px; }
.estimates-page #empty-state h3 { font-size:14px; }
.estimates-page button:focus-visible,.estimates-page a:focus-visible { outline:2px solid var(--estimate-ink); outline-offset:2px; }
@media(min-width:768px) {
    .estimates-page > main { padding:16px 24px 24px; }
    .estimates-page > header > div { padding:12px 24px; }
    .estimates-page .estimate-row { min-height:74px; gap:14px; }
    .estimates-page .estimate-address { font-size:15px; line-height:21px; }
    .estimate-total { font-size:15px; }
    .estimate-total span { font-size:11px; }
}
@media(max-width:350px) {
    .estimates-page .estimate-row { gap:4px; }
    .estimates-page .estimate-contact { gap:5px; font-size:11px; }
    .estimate-total { font-size:12px; }
}
@media(prefers-reduced-motion:reduce) { .estimates-page .estimate-toggle svg { transition:none; } }
