.quote-studio {
    --quote-ink: #173550;
    --quote-muted: #7d8da0;
    --quote-line: #e7edf3;
    min-height: 100vh;
    display: flex;
    background: #f4f7fb;
    color: var(--quote-ink);
}

.quote-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 10;
    display: flex;
    width: 244px;
    flex-direction: column;
    padding: 22px 15px 16px;
    border-right: 1px solid #e4eaf1;
    background: #fff;
}

.quote-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    margin: 0 7px 35px;
    color: #17426c;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
}

.quote-brand img { width: 98px; max-height: 42px; object-fit: contain; object-position: left; }
.quote-brand span { padding-left: 10px; border-left: 1px solid #dfe8f1; }
.quote-brand small { display: block; margin-top: 4px; color: #8798aa; font-size: 9px; font-weight: 500; letter-spacing: 0; }
.quote-side-label { padding: 0 10px 9px; color: #9aa7b6; font-size: 9px; font-weight: 800; letter-spacing: .13em; }
.quote-side-link { display: flex; align-items: center; gap: 11px; min-height: 42px; padding: 0 11px; border-radius: 9px; color: #667b91; font-size: 11px; }
.quote-side-link:hover { background: #f3f7fc; color: #275e91; }
.quote-side-link.active { background: #eaf3ff; color: #1766b5; font-weight: 750; }
.quote-side-link > span { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 7px; background: #f0f5fb; color: #4a7bad; }
.quote-sidebar-foot { display: flex; gap: 10px; margin-top: auto; padding: 15px 7px 4px; border-top: 1px solid #edf1f5; }
.quote-secure-dot { width: 8px; height: 8px; margin-top: 3px; border-radius: 50%; background: #34aa7a; box-shadow: 0 0 0 3px #e5f5ee; }
.quote-sidebar-foot b,.quote-sidebar-foot small { display: block; }
.quote-sidebar-foot b { font-size: 10px; }
.quote-sidebar-foot small { margin-top: 4px; color: #8b99a8; font-size: 9px; }
.quote-main { min-width: 0; width: calc(100% - 244px); margin-left: 244px; }
.quote-topbar { position: sticky; top: 0; z-index: 5; display: flex; height: 62px; align-items: center; justify-content: space-between; padding: 0 36px; border-bottom: 1px solid #e6ecf3; background: rgba(255,255,255,.92); backdrop-filter: blur(14px); }
.quote-topbar > a { color: #688099; font-size: 11px; }
.quote-topbar > a:hover { color: #1769d2; }
.quote-top-status { display: flex; align-items: center; gap: 7px; color: #73869a; font-size: 9px; font-weight: 800; letter-spacing: .1em; }
.quote-top-status i { width: 7px; height: 7px; border-radius: 50%; background: #2fac7c; }
.quote-content { max-width: 1550px; margin: 0 auto; padding: 34px clamp(20px, 3.2vw, 48px) 40px; }
.quote-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 1px 0 24px; }
.quote-eyebrow { margin: 0 0 8px; color: #4b88bd; font-size: 9px; font-weight: 800; letter-spacing: .14em; }
.quote-page-head h1 { margin: 0; color: #163653; font: 750 30px/1.1 Manrope,'DM Sans',sans-serif; letter-spacing: -.045em; }
.quote-page-head p:not(.quote-eyebrow) { margin: 9px 0 0; color: #798b9e; font-size: 12px; }
.quote-create-button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; gap: 8px; padding: 0 16px; border: 1px solid #155cb1; border-radius: 9px; background: linear-gradient(135deg,#267ee0,#145db9); box-shadow: 0 5px 12px #1769d222; color: white; font-size: 12px; font-weight: 750; }
.quote-create-button:hover { background: linear-gradient(135deg,#328ced,#1767c7); transform: translateY(-1px); }
.quote-create-button:disabled { opacity: .6; cursor: wait; transform: none; }
.quote-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 13px; margin-bottom: 18px; }
.quote-metrics article { display: flex; min-height: 112px; align-items: flex-start; gap: 12px; padding: 17px 16px; border: 1px solid #e8edf3; border-radius: 13px; background: #fff; box-shadow: 0 3px 12px #193a5707; }
.quote-metric-icon { display: grid; width: 34px; height: 34px; flex: none; place-items: center; border-radius: 10px; font-size: 15px; }
.quote-metric-icon.blue { background: #eaf3ff; color: #377bc0; }.quote-metric-icon.amber { background: #fff5e4; color: #be8730; }.quote-metric-icon.green { background: #eaf7f0; color: #33936c; }.quote-metric-icon.violet { background: #f1eeff; color: #7662c3; }
.quote-metrics article > div { display: grid; min-width: 0; gap: 5px; }
.quote-metrics small { color: #74869a; font-size: 10px; font-weight: 650; }
.quote-metrics b { color: #1d3b58; font: 750 21px Manrope,'DM Sans',sans-serif; letter-spacing: -.03em; overflow-wrap: anywhere; }
.quote-metrics article > div > span { color: #91a0ae; font-size: 9px; line-height: 1.4; }
.quote-pipeline-card { overflow: hidden; border: 1px solid #e6ebf1; border-radius: 14px; background: #fff; box-shadow: 0 5px 22px #193a5708; }
.quote-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 20px 22px 16px; }
.quote-toolbar h2 { margin: 0; color: #264663; font: 700 15px Manrope,'DM Sans',sans-serif; }
.quote-toolbar p { margin: 5px 0 0; color: #8795a4; font-size: 10px; }
.quote-refresh,.quote-button-secondary { display: inline-flex; min-height: 35px; align-items: center; justify-content: center; gap: 7px; padding: 0 12px; border: 1px solid #dfe9f3; border-radius: 8px; background: #f8fbfe; color: #3e6c98; font-size: 10px; font-weight: 700; }
.quote-refresh:hover,.quote-button-secondary:hover { background: #edf5fd; }
.quote-filters { display: flex; align-items: center; gap: 10px; padding: 0 22px 15px; }
.quote-search { display: flex; height: 37px; flex: 1; align-items: center; gap: 9px; padding: 0 11px; border: 1px solid #e3eaf1; border-radius: 8px; background: #fff; color: #8294a8; }
.quote-search input { width: 100%; border: 0; outline: 0; color: #365471; font: 11px 'DM Sans',sans-serif; }
.quote-search input::placeholder { color: #9ca9b7; }
.quote-filters select,.quote-form-grid select,.quote-form-grid input,.quote-form-grid textarea,.quote-line input,.quote-line select,.quote-tax input { min-height: 37px; padding: 0 10px; border: 1px solid #e1e8f0; border-radius: 8px; background: #fff; color: #385672; font: 11px 'DM Sans',sans-serif; }
.quote-filters select { min-width: 150px; }
.quote-count { color: #91a0ae; font-size: 10px; white-space: nowrap; }
.quote-table-wrap { overflow-x: auto; border-top: 1px solid #edf1f5; }
.quote-table { width: 100%; min-width: 900px; border-collapse: collapse; text-align: left; }
.quote-table th { padding: 11px 15px; background: #fafbfd; color: #8b99a8; font-size: 9px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.quote-table td { padding: 13px 15px; border-top: 1px solid #eff2f6; color: #63798f; font-size: 10px; white-space: nowrap; }
.quote-table tbody tr:hover { background: #f9fbfe; }
.quote-table td b,.quote-table td small { display: block; }.quote-table td b { max-width: 245px; overflow: hidden; color: #34536f; font-size: 10px; text-overflow: ellipsis; }.quote-table td small { margin-top: 4px; color: #98a4b1; font-size: 9px; }
.quote-status { display: inline-flex; padding: 5px 8px; border-radius: 20px; background: #f1f4f7; color: #697d91; font-size: 9px; font-weight: 750; }
.quote-status.draft { background: #f1f4f7; color: #718295; }.quote-status.sent { background: #fff4df; color: #98702a; }.quote-status.revision_requested { background: #f2efff; color: #6c5ab4; }.quote-status.accepted { background: #e9f7ef; color: #2f8d64; }.quote-status.declined,.quote-status.expired,.quote-status.cancelled { background: #fff0ef; color: #ab5a56; }
.quote-row-action { width: 29px; height: 29px; border: 1px solid #e6edf4; border-radius: 8px; background: #fff; color: #3d78b1; font-size: 15px; }.quote-row-action:hover { background: #edf5ff; }
.quote-empty { display: grid; min-height: 230px; justify-items: center; align-content: center; padding: 20px; text-align: center; }.quote-empty > span { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 13px; background: #eef5fd; color: #5184b5; font-size: 19px; }.quote-empty b { margin-top: 12px; color: #35536e; font-size: 12px; }.quote-empty p { max-width: 450px; margin: 6px 0 13px; color: #8796a5; font-size: 10px; line-height: 1.6; }
.quote-footnote { display: flex; gap: 9px; margin-top: 13px; padding: 11px 13px; border: 1px solid #e4edf6; border-radius: 9px; background: #f7faff; color: #56738e; }.quote-footnote > span { color: #4d8ac3; }.quote-footnote p { margin: 0; font-size: 10px; line-height: 1.5; }
.quote-loading { display: grid; min-height: 300px; place-content: center; justify-items: center; color: #8393a5; font-size: 11px; }.quote-loading > span { width: 26px; height: 26px; border: 3px solid #e3ebf3; border-top-color: #2778c5; border-radius: 50%; animation: spin .7s linear infinite; }.quote-loading p { margin-top: 11px; }
.quote-alert { margin: -9px 0 17px; padding: 11px 13px; border: 1px solid #cfe9da; border-radius: 8px; background: #f0faf4; color: #327859; font-size: 11px; }.quote-alert.error { border-color: #f2d5d2; background: #fff5f4; color: #a24d48; }
.quote-gate { max-width: 550px; margin: 12vh auto; padding: 42px; border: 1px solid #e6edf4; border-radius: 18px; background: #fff; box-shadow: 0 18px 55px #18344d0b; text-align: center; }.quote-gate-icon { display: grid; width: 52px; height: 52px; margin: 0 auto 17px; place-items: center; border-radius: 16px; background: #edf5ff; color: #2f77bb; font-size: 24px; }.quote-gate h1 { margin: 0; color: #1b3a58; font: 750 23px Manrope,'DM Sans',sans-serif; }.quote-gate > p:not(.quote-eyebrow) { color: #77899d; font-size: 12px; line-height: 1.7; }.quote-gate .quote-button-secondary { margin-top: 10px; }
.quote-modal-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(14,34,55,.38); backdrop-filter: blur(3px); }
.quote-composer,.quote-detail-modal { width: min(980px,100%); max-height: min(92vh,1000px); overflow: auto; padding: 23px; border: 1px solid #e3eaf1; border-radius: 17px; background: #fff; box-shadow: 0 25px 80px #0f294344; }
.quote-composer > header,.quote-detail-modal > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; padding-bottom: 17px; border-bottom: 1px solid #edf1f5; }.quote-composer h2,.quote-detail-modal h2 { margin: 0; color: #203f5d; font: 750 20px Manrope,'DM Sans',sans-serif; }.quote-composer header p:not(.quote-eyebrow),.quote-detail-modal header p:not(.quote-eyebrow) { margin: 6px 0 0; color: #8694a3; font-size: 10px; }.quote-close { width: 32px; height: 32px; border: 1px solid #e7edf3; border-radius: 9px; background: #fff; color: #72869a; font-size: 19px; }
.quote-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-top: 16px; }.quote-form-grid label,.quote-lines label,.quote-tax { display: grid; gap: 6px; color: #627990; font-size: 10px; font-weight: 700; }.quote-form-grid .wide { grid-column: 1/-1; }.quote-form-grid input,.quote-form-grid select,.quote-form-grid textarea { width: 100%; }.quote-form-grid textarea { min-height: 57px; padding: 9px 10px; resize: vertical; }.quote-lines-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 21px 0 10px; }.quote-lines-head h3 { margin: 0; color: #34546f; font-size: 12px; }.quote-lines-head p { margin: 4px 0 0; color: #8b99a7; font-size: 9px; }.quote-add-line { min-height: 32px; padding: 0 10px; border: 1px solid #dce8f3; border-radius: 8px; background: #f6faff; color: #3275b2; font-size: 10px; font-weight: 700; }
.quote-lines { display: grid; gap: 10px; }.quote-line { display: grid; grid-template-columns: 120px minmax(160px,1fr) 70px 130px 95px 30px; align-items: end; gap: 8px; padding: 10px; border: 1px solid #e9eef3; border-radius: 10px; background: #fbfcfe; }.quote-line label { min-width: 0; }.quote-line input,.quote-line select { width: 100%; min-width: 0; padding: 0 7px; font-size: 10px; }.quote-remove-line { width: 28px; height: 34px; border: 1px solid #eadfdf; border-radius: 8px; background: #fff; color: #a75a56; font-size: 18px; }.quote-remove-line:disabled { opacity: .35; cursor: not-allowed; }.quote-line-description { margin: -5px 0 3px; }.quote-line-description input { width: 100%; }
.quote-tax { grid-template-columns: 1fr 160px; align-items: center; margin-top: 13px; }.quote-tax input { width: 100%; }.quote-composer-total { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding: 13px 14px; border-radius: 9px; background: #f4f8fd; color: #678097; font-size: 11px; }.quote-composer-total b { color: #1d5e9f; font: 750 18px Manrope,'DM Sans',sans-serif; }.quote-composer footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 16px; }.quote-composer footer > span { color: #8896a4; font-size: 9px; }
.quote-detail-modal { width: min(780px,100%); }.quote-detail-meta { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 18px; margin: 14px 0; }.quote-detail-meta > div { padding: 9px 0; border-bottom: 1px solid #eff2f5; }.quote-detail-meta dt { color: #8695a4; font-size: 9px; }.quote-detail-meta dd { margin: 4px 0 0; color: #3a5976; font-size: 10px; overflow-wrap: anywhere; }.quote-detail-lines > div { display: flex; justify-content: space-between; gap: 15px; padding: 12px 0; border-bottom: 1px solid #eff2f5; color: #47627b; font-size: 10px; }.quote-detail-lines b,.quote-detail-lines small { display: block; }.quote-detail-lines small { margin-top: 4px; color: #8796a5; font-size: 9px; }.quote-detail-total { display: grid; grid-template-columns: 1fr auto; gap: 9px 18px; max-width: 340px; margin: 15px 0 0 auto; color: #7c8c9d; font-size: 10px; }.quote-detail-total b { color: #405f7a; text-align: right; }.quote-detail-total strong { padding-top: 9px; border-top: 1px solid #e8edf2; color: #1b5f9d; font-size: 13px; }.quote-detail-actions { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 17px; padding: 13px; border: 1px solid #dceafa; border-radius: 10px; background: #f6faff; }.quote-detail-actions p { margin: 0; color: #6e8398; font-size: 9px; line-height: 1.5; }.quote-timeline-title { margin: 20px 0 8px; color: #355571; font-size: 12px; }.quote-timeline > div { display: flex; gap: 9px; padding: 8px 0; }.quote-timeline i { width: 7px; height: 7px; flex: none; margin-top: 4px; border-radius: 50%; background: #4b8ac2; }.quote-timeline b,.quote-timeline small { display: block; }.quote-timeline b { color: #4b657d; font-size: 10px; }.quote-timeline small,.quote-timeline p { margin: 3px 0 0; color: #8a98a6; font-size: 9px; }.quote-timeline p { color: #637b91; white-space: pre-wrap; }
.quote-client-intro { display: flex; align-items: center; gap: 11px; margin: 0 0 17px; padding: 15px 17px; border: 1px solid #e5edf5; border-radius: 11px; background: linear-gradient(110deg,#f7fbff,#fff); }.quote-client-intro h2 { margin: 0; color: #294a68; font: 700 14px Manrope,'DM Sans',sans-serif; }.quote-client-intro p { margin: 4px 0 0; color: #8493a2; font-size: 10px; }.client-quote-detail { margin-top: 17px; }.quote-client-message { margin: 14px 0; padding: 12px; border-left: 3px solid #5d9ad1; background: #f5f9fe; color: #546f88; font-size: 11px; line-height: 1.6; white-space: pre-wrap; }.quote-client-total { display: grid; gap: 8px; max-width: 280px; margin: 12px 0 0 auto; }.quote-client-total > div { display: flex; justify-content: space-between; color: #71859a; font-size: 10px; }.quote-client-total > div:last-child { padding-top: 9px; border-top: 1px solid #e8edf2; color: #1b5f9d; font-size: 13px; font-weight: 750; }.quote-client-total dd { margin: 0; }.client-quote-actions { display: flex; align-items: end; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 17px; padding-top: 14px; border-top: 1px solid #edf1f5; }.client-quote-actions label { display: grid; flex: 1 1 100%; gap: 6px; color: #647b92; font-size: 10px; font-weight: 700; }.client-quote-actions input { min-height: 38px; padding: 0 10px; border: 1px solid #e0e8f0; border-radius: 8px; font: 11px 'DM Sans',sans-serif; }.quote-accept-note { margin: 8px 0 0; color: #8794a2; font-size: 9px; line-height: 1.5; }

@media (max-width: 1100px) { .quote-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }.quote-content { padding-inline: 25px; } }
@media (max-width: 760px) { .quote-sidebar { width: 65px; align-items: center; padding: 12px 7px; }.quote-brand { justify-content: center; margin: 0 0 25px; }.quote-brand img { width: 43px; }.quote-brand span,.quote-side-label,.quote-sidebar-foot span:not(.quote-secure-dot),.quote-side-link:not(.active) { display: none; }.quote-side-link { width: 44px; justify-content: center; padding: 0; font-size: 0; }.quote-main { width: calc(100% - 65px); margin-left: 65px; }.quote-topbar { height: 55px; padding: 0 16px; }.quote-content { padding: 23px 13px 30px; }.quote-page-head { align-items: flex-start; }.quote-page-head h1 { font-size: 24px; }.quote-page-head p:not(.quote-eyebrow) { max-width: 300px; font-size: 10px; line-height: 1.5; }.quote-create-button { min-height: 38px; padding: 0 10px; font-size: 10px; white-space: nowrap; }.quote-create-button > span { display: none; }.quote-metrics { gap: 8px; }.quote-metrics article { min-height: 98px; gap: 8px; padding: 12px 9px; }.quote-metric-icon { width: 28px; height: 28px; }.quote-metrics b { font-size: 17px; }.quote-metrics article > div > span { font-size: 8px; }.quote-toolbar { align-items: flex-start; padding: 15px 13px 12px; }.quote-filters { flex-wrap: wrap; padding: 0 13px 12px; }.quote-search { flex: 1 1 100%; }.quote-filters select { flex: 1; }.quote-count { margin-left: auto; }.quote-gate { margin: 8vh 10px; padding: 28px 18px; }.quote-composer,.quote-detail-modal { padding: 16px; }.quote-form-grid { grid-template-columns: 1fr; }.quote-form-grid .wide { grid-column: auto; }.quote-line { grid-template-columns: 1fr 1fr 1fr; }.quote-line label:nth-child(2) { grid-column: span 2; }.quote-line label:nth-child(4) { grid-column: span 2; }.quote-line-description { margin-top: -6px; }.quote-composer footer,.quote-detail-actions { align-items: stretch; flex-direction: column; }.quote-composer footer .quote-create-button { width: 100%; }.quote-composer footer .quote-create-button > span { display: inline; }.quote-detail-meta { grid-template-columns: 1fr; }.quote-client-actions { align-items: stretch; }.quote-client-actions button { flex: 1 1 30%; }.quote-client-actions .button-primary { order: -1; flex-basis: 100%; }.quote-table { min-width: 740px; } }
