#dr-root .dee-quote {
    margin-top: 1.5rem;
    padding: 0;
    overflow: hidden;
    color: #21323a;
    background: #fff;
    border: 1px solid #cbdadd;
    border-radius: 1rem;
}

.dee-quote > summary {
    position: relative;
    display: block;
    margin: 0;
    padding: 1.15rem clamp(1rem, 3vw, 1.65rem);
    cursor: pointer;
    list-style: none;
    background: linear-gradient(115deg, #fff, #edf7f7);
}
.dee-quote > summary::-webkit-details-marker { display: none; }
.dee-quote > summary::before {
    content: '';
    position: absolute;
    top: 1.05rem;
    right: clamp(1rem, 3vw, 1.65rem);
    width: 2.15rem;
    height: 2.15rem;
    border: 1px solid #bcced0;
    border-radius: 50%;
    background: #fff;
}
.dee-quote > summary::after {
    content: '';
    position: absolute;
    top: 1.75rem;
    right: calc(clamp(1rem, 3vw, 1.65rem) + .8rem);
    width: .5rem;
    height: .5rem;
    border-right: 2px solid #087680;
    border-bottom: 2px solid #087680;
    transform: rotate(45deg);
}
.dee-quote[open] > summary { border-bottom: 1px solid #cbdadd; }
.dee-quote[open] > summary::after { transform: translateY(.22rem) rotate(225deg); }
.dee-quote > summary:focus-visible { outline: 2px solid #087680; outline-offset: -4px; }
.dee-quote-summary-head { display: grid; gap: .25rem; padding-right: 2.75rem; }
.dee-quote-summary-head strong { color: #18444a; font-size: clamp(1.2rem, 2.5vw, 1.55rem); line-height: 1.2; }
.dee-quote-summary-head small { color: #0b6873; font-size: .85rem; }
.dee-quote-summary-totals {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid #cbdadd;
    margin: .85rem 0 .68rem;
    padding-top: .75rem;
}
.dee-quote-summary-totals > span { display: grid; gap: .25rem; line-height: 1.25; }
.dee-quote-summary-totals > span + span { border-left: 1px solid #cbdadd; padding-left: clamp(.65rem, 2.5vw, 1.4rem); }
.dee-quote-summary-totals > span > span { font-size: .88rem; }
.dee-quote-summary-totals strong {
    color: #086673;
    font-size: clamp(1.08rem, 4.6vw, 2rem);
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}
.dee-quote-summary-totals > span:first-child { padding-right: .55rem; }
.dee-quote-summary-terms { color: #406568; font-size: .85rem; line-height: 1.4; display: block; }
.dee-quote-content { padding: clamp(0.85rem, 3vw, 1.5rem); }
.dee-quote [hidden] { display: none !important; }
.dee-quote-fields {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 0.85rem 1rem;
}
.dee-quote-settings {
    margin-top: 1rem;
    border-top: 1px solid #deeaeb;
    border-bottom: 1px solid #deeaeb;
}
.dee-quote-settings > summary {
    padding: 0.65rem 0;
    color: #0b6873;
    cursor: pointer;
    font-size: 0.9rem;
}
.dee-quote-settings > summary:focus-visible { outline: 2px solid #087680; outline-offset: 2px; }
.dee-quote-settings > .dee-quote-fields { padding: 0.15rem 0 0.9rem; }
.dee-quote-custom-glass { grid-column: 1 / -1; max-width: 18rem; }
.dee-quote label { display: block; min-width: 0; color: #21323a; font-size: 0.9rem; }
.dee-quote :is(input, select) {
    display: block;
    box-sizing: border-box;
    width: 100%;
    min-height: 44px;
    margin-top: 0.25rem;
    padding: 0.55rem 0.65rem;
    color: #21323a;
    background: #fff;
    border: 1px solid #bcced0;
    border-radius: 0.5rem;
    font: inherit;
    font-size: 1rem;
    color-scheme: light;
}
.dee-quote :is(input, select):focus-visible { outline: 2px solid #087680; outline-offset: 2px; }
.dee-quote label small,
.dee-quote-note {
    display: block;
    color: #406568;
    font-size: 0.83rem;
    line-height: 1.45;
}
.dee-quote label small { margin-top: 0.25rem; }
.dee-quote-note { margin: 0.75rem 0 0; }
.dee-quote-results { display: grid; gap: 0.4rem; margin: 1rem 0 0; }
.dee-quote-results > div { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.dee-quote-results dt, .dee-quote-results dd { margin: 0; font-size: 0.9rem; }
.dee-quote-results dd { min-width: 5rem; font-weight: 650; text-align: right; overflow-wrap: anywhere; }
.dee-quote-results > .dee-quote-total {
    margin-top: 0.35rem;
    padding: 0.6rem 0.7rem;
    color: #18444a;
    background: #eaf6f6;
    border-radius: 0.55rem;
}
.dee-quote-total dd { font-size: 1.1rem; }
.dee-quote-actions { display: flex; flex-wrap: wrap; gap: 0.65rem; align-items: end; margin-top: 1rem; }
.dee-quote-form .dee-quote-actions { align-items: center; }
.dee-quote-form .dee-quote-actions .dee-quote-note { margin: 0; }
.dee-quote-actions button { min-height: 44px; cursor: pointer; font-size: 0.94rem; }
.dee-quote-preview { margin-top: 1.25rem; }
.dee-quote-preview > .dee-quote-actions { align-items: start; }
.dee-quote-pdf-options > summary {
    cursor: pointer;
    list-style: none;
    min-height: 44px;
}
.dee-quote-pdf-options > summary::-webkit-details-marker { display: none; }
.dee-quote-pdf-options > summary::after { content: '+'; }
.dee-quote-pdf-options[open] > summary::after { content: '−'; }
.dee-quote-pdf-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}
.dee-quote-pdf-buttons button:disabled { opacity: 0.65; cursor: wait; }
.dee-quote-preview [data-quote-status] { flex-basis: 100%; }
.dee-quote-preview [data-quote-status]:empty { display: none; }
.dee-quote-paper { max-width: 43rem; padding: clamp(1rem, 3vw, 1.5rem); border: 1px solid #cbdadd; border-radius: 0.85rem; }
#dr-root .dee-quote-paper header :is(h2, p) { margin: 0 0 0.3rem; }
#dr-root .dee-quote-paper header h2 { font-size: 1.35rem; line-height: 1.2; }
.dee-quote-paper header p { color: #406568; }
.dee-quote-photo {
    margin: 1rem 0;
    border-radius: 0.55rem;
    overflow: hidden;
    background: #edf7f7;
}
.dee-quote-photo img {
    display: block;
    width: 100%;
    max-height: 24rem;
    object-fit: contain;
}
.dee-quote-print-sheet { display: none; }

@media (max-width: 700px) {
    .dee-quote-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 360px) {
    .dee-quote-fields { grid-template-columns: 1fr; }
}
@media print {
    @page { margin: 15mm; }
    body.dee-quote-printing > :not(.dee-quote-print-sheet) { display: none !important; }
    body.dee-quote-printing { background: white !important; }
    body.dee-quote-printing > .dee-quote-print-sheet {
        display: block;
        max-width: none;
        padding: 0;
        border: 0;
        color: #182420;
        background: white;
        font: 11pt/1.3 system-ui, sans-serif;
    }
    .dee-quote-print-sheet .dee-quote-results { gap: 0.22rem; }
    .dee-quote-print-sheet .dee-quote-results > div { break-inside: avoid; }
    .dee-quote-print-sheet .dee-quote-total { border: 1px solid #9eb8af; }
    .dee-quote-print-sheet :is(.dee-quote-note, .dee-quote-total, header p) { color: #182420; }
}
