.estimates-page {
   min-height: 100vh;
   margin: 0;
   overflow-x: clip;
   color: var(--pajaro-text, #fff);
   background: var(--pajaro-background, #000);
}
.estimates-app { width: 100%; max-width: 100%; padding: 0 18px 48px; overflow-x: clip; font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.estimates-shell { width: min(1180px, 100%); min-width: 0; margin: 0 auto; padding: 12px; border: 1px solid color-mix(in srgb, var(--pajaro-border, aqua) 68%, transparent); border-radius: 18px; background: color-mix(in srgb, var(--pajaro-text, #fff) 5%, var(--pajaro-background, #000)); box-shadow: 0 18px 54px color-mix(in srgb, var(--pajaro-background, #000) 68%, transparent), 0 0 18px color-mix(in srgb, var(--pajaro-text, #fff) 10%, transparent); }
.estimates-heading { position: relative; display: flex; min-height: 44px; margin: 0 0 12px; padding: 0 !important; align-items: center; gap: 8px; }
.estimates-heading h1 { margin: 0; color: var(--pajaro-text, #fff); font-size: clamp(1.35rem, 4vw, 1.75rem); line-height: 1; }
.estimates-total { position: relative; display: flex; flex: 0 0 auto; width: clamp(158px, 42vw, 210px); height: 44px; margin-left: auto; padding: 0; box-sizing: border-box; align-items: center; justify-content: flex-end; border: 0; border-radius: 0; color: var(--pajaro-accent, aqua); background: transparent; text-align: right; }
.estimates-total output { font-size: .78rem; font-weight: 800; line-height: 1; white-space: nowrap; }
.estimates-total small { position: absolute; top: 3px; right: 0; color: color-mix(in srgb, var(--pajaro-text, #fff) 68%, transparent); font-size: .55rem; font-weight: 700; line-height: 1; white-space: nowrap; }
.estimates-total small[hidden] { display: none; }
.estimates-total.has-pending output { transform: translateY(7px); }
.estimates-heading > .pajaro-stats-menu { position: static; flex: 0 0 44px; width: 44px; margin: 0 !important; }
.estimates-heading > .pajaro-stats-menu > summary { width: 44px; min-height: 44px; padding: 6px; justify-content: center; border-radius: 0; background: transparent; }
.estimates-heading > .pajaro-stats-menu > summary svg { display: block; width: 26px; height: 28px; }
.estimates-heading > .pajaro-stats-menu > summary span,
.estimates-heading > .pajaro-stats-menu > summary::after { display: none; }
.estimates-heading > .pajaro-stats-menu #stats_container.pajaro-stats-card { top: calc(100% + 4px); right: auto; left: 0; width: min(560px, 100%) !important; }
.estimates-eyebrow { margin: 0 0 3px; color: color-mix(in srgb, var(--pajaro-text, #fff) 55%, transparent); font-size: .7rem; font-weight: 750; letter-spacing: .11em; text-transform: uppercase; }
.estimate-groups { display: grid; gap: 12px; }
.estimate-group { display: grid; gap: 8px; min-width: 0; }
.estimate-group-heading { display: flex; min-height: 36px; align-items: center; gap: 8px; }
.estimate-group h2 { margin: 0; color: var(--pajaro-text, #fff); font-size: .78rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.estimate-group-total { position: relative; display: flex; width: clamp(148px, 37vw, 200px); height: 36px; margin-left: auto; align-items: center; justify-content: flex-end; color: var(--pajaro-accent, aqua); text-align: right; }
.estimate-group-total output { font-size: .72rem; font-weight: 800; line-height: 1; white-space: nowrap; }
.estimate-group-total small { position: absolute; top: 1px; right: 0; color: color-mix(in srgb, var(--pajaro-text, #fff) 68%, transparent); font-size: .5rem; font-weight: 700; line-height: 1; white-space: nowrap; }
.estimate-group-total small[hidden] { display: none; }
.estimate-group-total.has-pending output { transform: translateY(6px); }
.estimate-group-divider { width: 100%; height: 0; margin: 2px 0; border: 0; border-top: 1px solid color-mix(in srgb, var(--pajaro-border, aqua) 62%, transparent); }
.estimates-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.contractor-estimates-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.estimate-section { min-width: 0; border: 1px solid color-mix(in srgb, var(--pajaro-border, aqua) 35%, transparent); border-radius: 12px; background: color-mix(in srgb, var(--pajaro-accent, aqua) 3%, transparent); overflow: clip; }
.estimate-section > summary { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; min-height: 58px; padding: 12px 14px; align-items: center; color: var(--pajaro-text, #fff); cursor: pointer; list-style: none; }
.estimate-section > summary::-webkit-details-marker { display: none; }
.estimate-section > summary::after { content: "⌄"; color: var(--pajaro-accent, aqua); font-size: 1.35rem; line-height: 1; transition: transform 160ms ease; }
.estimate-section[open] > summary { border-bottom: 1px solid color-mix(in srgb, var(--pajaro-border, aqua) 26%, transparent); background: color-mix(in srgb, var(--pajaro-accent, aqua) 7%, transparent); }
.estimate-section[open] > summary::after { transform: rotate(180deg); }
.estimate-category { min-width: 0; font-size: 1.05rem; font-weight: 800; }
.estimate-range { color: var(--pajaro-accent, aqua); font-size: .88rem; font-weight: 750; white-space: nowrap; }
.estimate-quotes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 10px; }
.estimate-quote { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; min-width: 0; min-height: 70px; margin: 0; padding: 11px 12px; align-items: center; border: 1px solid color-mix(in srgb, var(--pajaro-border, aqua) 35%, transparent); border-radius: 9px; color: var(--pajaro-text, #fff); background: color-mix(in srgb, var(--pajaro-text, #fff) 4%, transparent); text-align: left; }
button.estimate-quote { width: 100%; cursor: pointer; }
button.estimate-quote:hover, button.estimate-quote:focus-visible { border-color: var(--pajaro-accent, aqua); background: color-mix(in srgb, var(--pajaro-accent, aqua) 10%, transparent); }
.estimate-quote span { min-width: 0; overflow-wrap: anywhere; font-weight: 750; }
.estimate-quote strong { color: var(--pajaro-accent, aqua); white-space: nowrap; }
.estimate-quote small { grid-column: 1 / -1; color: color-mix(in srgb, var(--pajaro-text, #fff) 52%, transparent); }
.estimate-quote.is-pending { opacity: .62; }
.estimate-section-tools { grid-column: 1 / -1; display: flex; justify-content: flex-end; }
.estimate-add { min-height: 34px; padding: 5px 10px; border: 1px solid color-mix(in srgb, var(--pajaro-border, aqua) 48%, transparent); border-radius: 8px; color: var(--pajaro-accent, aqua); background: transparent; font: inherit; font-size: .75rem; font-weight: 800; cursor: pointer; }
.estimate-add:hover, .estimate-add:focus-visible { border-color: var(--pajaro-accent, aqua); background: color-mix(in srgb, var(--pajaro-accent, aqua) 10%, transparent); }
.estimate-card-note { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow-wrap: anywhere; }
.estimate-quote-tools { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 5px; padding-top: 3px; }
.estimate-card-tool { min-height: 29px; padding: 3px 8px; border: 1px solid color-mix(in srgb, var(--pajaro-border, aqua) 36%, transparent); border-radius: 999px; color: color-mix(in srgb, var(--pajaro-text, #fff) 72%, transparent); background: transparent; font: inherit; font-size: .66rem; font-weight: 750; cursor: pointer; }
.estimate-card-tool:hover, .estimate-card-tool:focus-visible, .estimate-card-tool.has-value { border-color: color-mix(in srgb, var(--pajaro-accent, aqua) 72%, transparent); color: var(--pajaro-accent, aqua); background: color-mix(in srgb, var(--pajaro-accent, aqua) 8%, transparent); }
.estimate-section:not(:has(.estimate-quotes > article.estimate-quote:nth-of-type(4))) > .pajaro-section-collapse { display: none; }
.estimate-section > .pajaro-section-collapse { border: 0 !important; background: transparent !important; }
.estimate-section > .pajaro-section-collapse:hover,
.estimate-section > .pajaro-section-collapse:focus-visible { background: color-mix(in srgb, var(--pajaro-accent, aqua) 9%, transparent) !important; }
.estimate-dialog { width: min(1040px, calc(100% - 24px)); max-width: none; height: min(88dvh, 900px); max-height: calc(100dvh - 20px); padding: 0; overflow: hidden; overscroll-behavior: contain; box-sizing: border-box; border: 1px solid var(--pajaro-border, aqua); border-radius: 14px; color: var(--pajaro-text, #fff); background: color-mix(in srgb, var(--pajaro-text, #fff) 5%, var(--pajaro-background, #000)); }
.estimate-dialog::backdrop { background: rgba(0, 0, 0, .78); backdrop-filter: blur(4px); }
.estimate-dialog-card { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; min-width: 0; min-height: 0; height: 100%; max-height: 100%; padding: 12px; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; box-sizing: border-box; scrollbar-gutter: stable; }
.estimate-dialog-card > header { position: static; display: flex; padding: 0 0 10px; align-items: center; justify-content: space-between; }
.estimate-dialog-card h2 { margin: 0; color: var(--pajaro-accent, aqua); }
#estimate-dialog-close { width: 44px; min-height: 44px; margin: 0; padding: 0; border-color: color-mix(in srgb, var(--pajaro-border, aqua) 55%, transparent); color: var(--pajaro-text, #fff); background: transparent; font-size: 1.5rem; cursor: pointer; }
#estimate-document { display: block; width: 100%; max-width: 100%; min-width: 0; height: 100%; min-height: 420px; margin: 0; box-sizing: border-box; border: 0; border-radius: 0; background: #fff; box-shadow: none; }
#estimate-download { display: inline-flex; min-height: 42px; margin-top: 10px; padding: 8px 14px; align-items: center; justify-content: center; border: 1px solid color-mix(in srgb, var(--pajaro-border, aqua) 55%, transparent); border-radius: 9px; color: var(--pajaro-text, #fff); text-decoration: none; }
.estimates-pending-legend { margin: 10px 2px 0; color: color-mix(in srgb, var(--pajaro-text, #fff) 60%, transparent); font-size: .68rem; font-weight: 650; }
.estimates-pending-legend[hidden] { display: none; }
.estimate-editor { width: min(620px, calc(100% - 20px)); max-width: none; padding: 0; overflow: hidden; border: 1px solid var(--pajaro-border, aqua); border-radius: 14px; color: var(--pajaro-text, #fff); background: color-mix(in srgb, var(--pajaro-text, #fff) 5%, var(--pajaro-background, #000)); }
.estimate-editor::backdrop { background: rgba(0, 0, 0, .78); backdrop-filter: blur(4px); }
.estimate-editor form { display: grid; gap: 14px; max-height: calc(100dvh - 20px); padding: 14px; overflow: auto; }
.estimate-editor header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.estimate-editor h2 { margin: 0; color: var(--pajaro-accent, aqua); font-size: 1.25rem; }
#estimate-editor-close { width: 42px; min-height: 42px; padding: 0; border: 1px solid color-mix(in srgb, var(--pajaro-border, aqua) 48%, transparent); border-radius: 8px; color: var(--pajaro-text, #fff); background: transparent; font-size: 1.45rem; cursor: pointer; }
.estimate-editor-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.estimate-editor-grid label { display: grid; min-width: 0; gap: 5px; color: color-mix(in srgb, var(--pajaro-text, #fff) 76%, transparent); font-size: .74rem; font-weight: 750; }
.estimate-editor-grid label > span { padding-left: 2px; }
.estimate-editor-grid input, .estimate-editor-grid select, .estimate-editor-grid textarea { width: 100%; min-width: 0; min-height: 42px; padding: 8px 10px; box-sizing: border-box; border: 1px solid color-mix(in srgb, var(--pajaro-border, aqua) 48%, transparent); border-radius: 8px; color: var(--pajaro-text, #fff); background: color-mix(in srgb, var(--pajaro-text, #fff) 7%, var(--pajaro-background, #000)); font: inherit; }
.estimate-editor-grid textarea { min-height: 96px; resize: vertical; }
.estimate-editor-wide { grid-column: 1 / -1; }
.estimate-editor footer { display: grid; grid-template-columns: auto 1fr auto auto; gap: 8px; align-items: center; }
.estimate-editor footer button { min-height: 40px; padding: 7px 12px; border: 1px solid color-mix(in srgb, var(--pajaro-border, aqua) 58%, transparent); border-radius: 8px; color: var(--pajaro-background, #000); background: var(--pajaro-accent, aqua); font: inherit; font-size: .78rem; font-weight: 800; cursor: pointer; }
.estimate-editor footer .estimate-editor-secondary { color: var(--pajaro-text, #fff); background: transparent; }
.estimate-editor footer .estimate-editor-danger { border-color: color-mix(in srgb, #ff6b6b 70%, transparent); color: #ff8b8b; background: transparent; }
.estimate-editor footer button[hidden] { display: none; }
@media (max-width: 700px) {
   .estimates-app { padding: 0 0 36px; }
   .estimates-shell { padding: 12px 8px; border-radius: 14px; }
   .estimates-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
   .contractor-estimates-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
   .estimate-section > summary { grid-template-columns: minmax(0, 1fr) auto; gap: 5px 10px; }
   .estimate-section > summary::after { grid-column: 2; grid-row: 1 / span 2; }
   .estimate-range { grid-column: 1; font-size: .78rem; }
   .estimate-section[open] > summary { min-height: 66px; }
   .estimate-section .estimate-quotes { grid-template-columns: minmax(0, 1fr); align-content: start; padding: 8px; }
   .estimate-quote { grid-template-columns: minmax(0, 1fr); align-content: center; }
   .estimate-quote strong { white-space: normal; }
   .estimate-quote small { grid-column: 1; }
   .estimate-quote-tools { grid-column: 1; }
   .estimate-dialog { width: calc(100vw - 20px); max-width: none; height: calc(100dvh - 20px); max-height: calc(100dvh - 20px); margin: auto; }
   #estimate-document { min-height: 0; }
   .estimate-editor-grid { grid-template-columns: minmax(0, 1fr); }
   .estimate-editor-wide { grid-column: 1; }
   .estimate-editor footer { grid-template-columns: auto 1fr auto; }
   .estimate-editor footer > span { display: none; }
   .estimate-editor footer button[type="submit"] { grid-column: 1 / -1; grid-row: 2; }
}
