/** @format */

.estimate-public {
    margin: 0;
    background: #f3f6f7;
}
.estimate-workspace {
    --ink: #193341;
    --muted: #60727d;
    --line: #d9e2e7;
    --blue: #165575;
    --pale: #eef5f8;
    color: var(--ink);
    font:
        15px/1.5 -apple-system,
        BlinkMacSystemFont,
        'Segoe UI',
        sans-serif;
    max-width: 1600px;
    margin: 0 auto;
    padding: 30px 24px 60px;
}
.estimate-workspace * {
    box-sizing: border-box;
}
.estimate-workspace h1 {
    font-size: 32px;
    letter-spacing: -0.03em;
    margin: 0 0 10px;
}
.estimate-workspace h2 {
    font-size: 20px;
    margin: 0 0 12px;
}
.estimate-workspace h3 {
    font-size: 16px;
    margin: 0 0 10px;
}
.estimate-workspace p {
    margin: 0 0 12px;
}
.estimate-kicker {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 11px;
    color: var(--muted);
    font-weight: 750;
}
.estimate-heading {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: start;
    margin-bottom: 20px;
}
.estimate-toolbar {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin: 14px 0;
}
.estimate-workspace button,
.estimate-button {
    font: inherit;
    border: 1px solid var(--line);
    background: white;
    color: var(--blue);
    border-radius: 7px;
    padding: 8px 12px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    line-height: 1.4;
}
.estimate-workspace button:hover,
.estimate-button:hover {
    background: var(--pale);
}
.estimate-workspace button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.estimate-workspace .estimate-primary {
    background: var(--blue);
    border-color: var(--blue);
    color: white;
}
.estimate-workspace a {
    color: var(--blue);
}
.estimate-workspace input:not([type='checkbox']),
.estimate-workspace textarea,
.estimate-workspace select {
    font: inherit;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: white;
    padding: 7px 9px;
    max-width: 100%;
    color: var(--ink);
}
.estimate-workspace input[type='checkbox'] {
    accent-color: var(--blue);
    width: 17px;
    height: 17px;
    vertical-align: middle;
    margin-right: 7px;
}
.estimate-workspace label {
    display: block;
    font-size: 13px;
}
.estimate-workspace label input:not([type='checkbox']),
.estimate-workspace label select,
.estimate-workspace label textarea {
    display: block;
    width: 100%;
    margin-top: 4px;
}
.estimate-status {
    display: inline-block;
    font-size: 12px;
    border-radius: 30px;
    background: #e5f0f5;
    color: #22546a;
    padding: 4px 10px;
}
.estimate-muted {
    color: var(--muted);
    font-size: 13px;
}
.estimate-card {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: white;
    padding: 20px;
    margin-bottom: 16px;
    min-width: 0;
}
.estimate-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(360px, 1fr);
    gap: 20px;
    align-items: start;
}
.estimate-source-panel {
    position: sticky;
    top: 15px;
}
.estimate-scroll {
    overflow: auto;
}
.estimate-table {
    border-collapse: collapse;
    width: 100%;
    font-size: 14px;
}
.estimate-table th,
.estimate-table td {
    text-align: left;
    border-bottom: 1px solid var(--line);
    padding: 11px 9px;
    vertical-align: top;
}
.estimate-table th {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
    white-space: nowrap;
}
.estimate-table tr.estimate-subtotal {
    background: #f0f4f5;
    font-weight: 650;
}
.estimate-table tr.estimate-note {
    color: var(--muted);
}
.estimate-table .estimate-number {
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.estimate-table button {
    padding: 4px 7px;
    font-size: 12px;
}
.estimate-empty {
    padding: 20px;
    color: var(--muted);
}
.estimate-alert {
    border-left: 4px solid #a36413;
    background: #fff3dd;
    border-radius: 6px;
    padding: 13px 16px;
    margin: 14px 0;
    font-size: 14px;
}
.estimate-alert[data-kind='error'] {
    background: #fff0ed;
    border-color: #b44331;
}
.estimate-alert[data-kind='success'] {
    background: #e7f4ed;
    border-color: #367653;
}
.estimate-row-editor {
    border-top: 1px solid var(--line);
    margin-top: 16px;
    padding-top: 16px;
}
.estimate-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.estimate-fields .estimate-wide {
    grid-column: 1/-1;
}
.estimate-fields textarea {
    min-height: 80px;
}
.estimate-source-canvas {
    display: block;
    width: 100%;
    height: auto;
    background: white;
    border: 1px solid var(--line);
    touch-action: pan-y;
}
.estimate-source-preview {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--line);
}
.estimate-issue {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 7px;
    margin-bottom: 10px;
    font-size: 13px;
}
.estimate-issue[data-blocking='true'] {
    border-color: #e3b0a8;
    background: #fff5f2;
}
.estimate-issue textarea {
    width: 100%;
    min-height: 60px;
    margin-top: 8px;
}
.estimate-revision {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}
.estimate-revision label {
    align-self: center;
}
.estimate-totals {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
    margin: 18px 0;
}
.estimate-totals span {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    color: var(--muted);
}
.estimate-totals strong {
    font-size: 19px;
    font-variant-numeric: tabular-nums;
}
.estimate-check {
    margin: 12px 0;
}
.estimate-tabs button[aria-pressed='true'] {
    background: var(--blue);
    color: white;
}
.estimate-source-frame {
    width: 100%;
    height: 80vh;
    border: 1px solid var(--line);
    background: white;
}
.estimate-screen-reader {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}
@media (max-width: 1000px) {
    .estimate-grid {
        grid-template-columns: 1fr;
    }
    .estimate-source-panel {
        position: static;
    }
    .estimate-heading {
        display: block;
    }
}
@media (max-width: 600px) {
    .estimate-workspace {
        padding: 20px 12px 40px;
    }
    .estimate-workspace h1 {
        font-size: 27px;
    }
    .estimate-card {
        padding: 14px;
    }
    .estimate-fields {
        grid-template-columns: 1fr;
    }
    .estimate-fields .estimate-wide {
        grid-column: auto;
    }
    .estimate-revision {
        grid-template-columns: 1fr;
    }
    .estimate-table {
        min-width: 620px;
    }
    .estimate-toolbar input {
        width: 100%;
    }
}
@media print {
    .estimate-toolbar,
    .estimate-tabs,
    .estimate-source-frame {
        display: none;
    }
    .estimate-workspace {
        padding: 0;
    }
    .estimate-card {
        border: 0;
        padding: 0;
    }
    .estimate-table {
        font-size: 11px;
        min-width: 0;
    }
    .estimate-table tr {
        break-inside: avoid;
    }
    .estimate-public {
        background: white;
    }
}
.estimate-toolbar input[type='search'] {
    width: min(100%, 380px);
}
.estimate-word-list {
    max-height: 360px;
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 10px;
    margin-top: 10px;
}
