/* Quote Page Specific Styles */
.quote-page {
    min-height: 100vh;
    background: var(--grey-50);
    padding-top: var(--header-height);
}

.quote-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

.quote-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.quote-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.quote-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--blue-900);
}

.quote-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
}

.quote-btn-primary {
    background: var(--blue-600);
    color: white;
}

.quote-btn-primary:hover {
    background: var(--blue-700);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.quote-btn-accent {
    background: var(--orange-500);
    color: white;
}

.quote-btn-accent:hover {
    background: var(--orange-600);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.quote-btn-secondary {
    background: var(--grey-100);
    color: var(--text-primary);
    border: 1px solid var(--border-default);
}

.quote-btn-secondary:hover {
    background: var(--grey-200);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.quote-btn svg {
    width: 18px;
    height: 18px;
}

/* PDF Content */
.pdf-content {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    padding: 40px;
}

.quote-document-header {
    text-align: center;
    border-bottom: 2px solid var(--blue-600);
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.quote-document-header h1 {
    font-size: 32px;
    color: var(--blue-900);
    margin-bottom: 8px;
}

.quote-document-header .subtitle {
    font-size: 14px;
    color: var(--text-secondary);
}

/* 计算器弹窗 / 字段 / 滑块 / 按钮样式统一由 calc.css 管理 */

/* Switch Toggle */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-switch .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--grey-300);
    transition: .3s;
    border-radius: 24px;
}

.toggle-switch .slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch input:checked+.slider {
    background-color: var(--blue-500);
}

.toggle-switch input:checked+.slider:before {
    transform: translateX(20px);
}

/* History Modal Specifics */
.history-count {
    font-weight: 600;
    color: var(--blue-600);
}

.history-close-btn {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--grey-400);
    cursor: pointer;
    border-radius: 50%;
    transition: all var(--duration-fast);
}

.history-close-btn:hover {
    background: var(--grey-100);
    color: var(--grey-900);
}

.history-footer {
    text-align: right;
    margin-top: 20px;
    padding-top: 16px;
    font-size: 13px;
    color: var(--grey-500);
    border-top: 1px solid var(--border-default);
}

.history-table th:last-child,
.history-table td:last-child {
    text-align: center;
}

.history-table td:nth-child(2) {
    font-weight: 500;
    color: var(--text-primary);
}

/* Quote Table */
.quote-table-wrapper {
    overflow-x: auto;
    margin-bottom: 30px;
}

.quote-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.quote-table thead {
    background: var(--blue-900);
    color: white;
}

.quote-table th {
    padding: 12px 10px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
}

.quote-table th:first-child {
    width: 60px;
    text-align: center;
}

.quote-table th:nth-child(3),
.quote-table th:nth-child(4),
.quote-table th:nth-child(5),
.quote-table th:nth-child(6) {
    text-align: right;
}

.quote-table tbody tr {
    border-bottom: 1px solid var(--border-default);
}

.quote-table tbody tr:hover {
    background: var(--grey-50);
}

.quote-table td {
    padding: 12px 10px;
}

.quote-table td:first-child {
    text-align: center;
    color: var(--text-secondary);
}

.quote-table td:nth-child(3),
.quote-table td:nth-child(4),
.quote-table td:nth-child(5),
.quote-table td:nth-child(6) {
    text-align: right;
}

/* Summary */
.quote-summary {
    background: var(--grey-50);
    /* border-radius: var(--border-radius); */
    padding: 20px;
    margin-bottom: 30px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 15px;
}

.summary-row.total {
    border-top: 2px solid var(--blue-600);
    margin-top: 8px;
    padding-top: 12px;
    font-size: 18px;
    font-weight: 700;
    color: var(--blue-900);
}

.summary-row .label {
    color: var(--text-secondary);
}

.summary-row .value {
    font-weight: 600;
    color: var(--text-primary);
}

.summary-row.total .value {
    color: var(--orange-600);
}

/* Footer Info */
/* Footer Info */
.quote-footer {
    padding: 30px;
    margin-top: 40px;
    /* border: 1px solid var(--border-default);
    border-radius: 12px; */
    border-left: 4px solid var(--orange-600);
    background-color: var(--grey-50);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
}

.footer-notes {
    flex: 1;
}

.footer-notes-title {
    font-size: 15px;
    color: var(--blue-900);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.footer-icon {
    width: 18px;
    height: 18px;
    color: var(--blue-600);
}

.footer-notes-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 2;
}


/* Quote Info Grid */
.quote-info-grid {
    display: flex;
    gap: 40px;
    margin-top: 24px;
    padding: 24px;
    background: linear-gradient(to right, var(--grey-50), #fff);
    /* border: 1px solid var(--border-default); */
    /* border-radius: 12px; */
    font-size: 14px;
    text-align: left;
}

.quote-info-column {
    flex: 1;
    min-width: 240px;
}

.quote-info-title {
    color: var(--blue-900);
    margin-bottom: 20px;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--border-default);
    padding-bottom: 10px;
}

.quote-info-title::before {
    content: '';
    display: block;
    width: 4px;
    height: 16px;
    background: var(--blue-600);
    border-radius: 2px;
}

.quote-info-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    color: var(--text-secondary);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-icon {
    width: 16px;
    height: 16px;
    color: var(--blue-600);
    opacity: 0.8;
    flex-shrink: 0;
}

.quote-info-label {
    color: var(--text-primary);
    font-weight: 600;
    /* width: 85px; */
    flex-shrink: 0;
}

.info-item span {
    color: var(--text-secondary);
    word-break: break-all;
}

/* Responsive */
@media (max-width: 768px) {
    .quote-container {
        padding: 20px 16px;
    }

    .quote-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .quote-info-grid {
        flex-direction: column;
        gap: 24px;
        padding: 16px;
    }

    .pdf-content {
        padding: 24px 20px;
    }

    .quote-title {
        font-size: 22px;
    }

    .quote-document-header h1 {
        font-size: 24px;
    }

    .calc-grid {
        grid-template-columns: 1fr;
    }

    .quote-table {
        font-size: 12px;
    }

    .quote-table th,
    .quote-table td {
        padding: 8px 6px;
    }

    .quote-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
        padding: 20px;
    }
}

/* Print Styles */
@media print {

    .quote-header,
    .quote-calculator {
        display: none;
    }

    .pdf-content {
        box-shadow: none;
        padding: 20px;
    }
}