/* Quotation Styling */
.quotation-container {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.quotation-header {
    background: linear-gradient(135deg, #36b9cc 0%, #1a8a98 100%);
    color: white;
    padding: 20px;
    position: relative;
}

.quotation-header h2 {
    margin: 0;
    font-weight: 700;
    font-size: 28px;
    display: flex;
    align-items: center;
}

.quotation-header h2 i {
    margin-right: 10px;
}

.quotation-header .quotation-status {
    position: absolute;
    top: 20px;
    right: 20px;
}

.quotation-header .quotation-meta {
    margin-top: 10px;
    font-size: 14px;
    opacity: 0.9;
}

.quotation-body {
    padding: 30px;
}

.quotation-section {
    margin-bottom: 30px;
}

.quotation-section-title {
    font-size: 18px;
    font-weight: 600;
    color: #36b9cc;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e3e6f0;
    display: flex;
    align-items: center;
}

.quotation-section-title i {
    margin-right: 10px;
}

.info-group {
    background-color: #f8f9fc;
    border-radius: 8px;
    padding: 20px;
    height: 100%;
}

.info-item {
    margin-bottom: 10px;
}

.info-label {
    font-weight: 600;
    color: #5a5c69;
    margin-bottom: 5px;
}

.info-value {
    color: #333;
}

.info-value a {
    color: #36b9cc;
    text-decoration: none;
}

.info-value a:hover {
    text-decoration: underline;
}

.quotation-table {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.quotation-table .table {
    margin-bottom: 0;
}

.quotation-table thead th {
    background-color: #36b9cc;
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    padding: 15px;
    border: none;
}

.quotation-table tbody td {
    padding: 15px;
    vertical-align: middle;
    border-color: #e3e6f0;
}

.quotation-table tbody tr:nth-child(even) {
    background-color: #f8f9fc;
}

.quotation-table .category-row {
    background-color: #eaecf4 !important;
    font-weight: 600;
    color: #5a5c69;
}

.quotation-table .table-total-row {
    background-color: #e2f0f3 !important;
    font-weight: 700;
    color: #36b9cc;
    border-top: 2px solid #36b9cc;
}

.quotation-totals {
    background-color: #f8f9fc;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.totals-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e3e6f0;
}

.totals-row:last-child {
    border-bottom: none;
}

.totals-row.grand-total {
    font-weight: 700;
    font-size: 18px;
    color: #36b9cc;
    border-top: 2px solid #36b9cc;
    margin-top: 10px;
    padding-top: 15px;
}

.quotation-notes {
    background-color: #f8f9fc;
    border-radius: 8px;
    padding: 20px;
    border-left: 4px solid #36b9cc;
}

.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.action-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.action-button i {
    margin-right: 8px;
}

.action-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.action-button.primary {
    background-color: #4e73df;
    color: white;
}

.action-button.success {
    background-color: #1cc88a;
    color: white;
}

.action-button.info {
    background-color: #36b9cc;
    color: white;
}

.action-button.warning {
    background-color: #f6c23e;
    color: white;
}

.action-button.danger {
    background-color: #e74a3b;
    color: white;
}

.action-button.secondary {
    background-color: #858796;
    color: white;
}

.badge-status {
    padding: 8px 15px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
}

.badge-status i {
    margin-right: 5px;
}

.badge-draft {
    background-color: #858796;
    color: white;
}

.badge-sent {
    background-color: #36b9cc;
    color: white;
}

.badge-approved {
    background-color: #1cc88a;
    color: white;
}

.badge-rejected {
    background-color: #e74a3b;
    color: white;
}

.quotation-footer {
    background-color: #f8f9fc;
    border-top: 1px solid #e3e6f0;
    padding: 20px;
}

.quotation-footer .company-slogan {
    background-color: #36b9cc;
    color: white;
    padding: 10px;
    text-align: center;
    border-radius: 5px;
    font-weight: 600;
    margin-bottom: 20px;
}

.quotation-footer .validity-notice {
    font-weight: 600;
    color: #5a5c69;
    margin-bottom: 5px;
}

.quotation-footer .terms-notice {
    color: #858796;
    margin-bottom: 20px;
}

.signature-section {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.signature-box {
    width: 30%;
    text-align: center;
}

.signature-title {
    font-weight: 600;
    color: #5a5c69;
    margin-bottom: 5px;
}

.signature-name {
    color: #333;
}

.signature-line {
    width: 80%;
    margin: 10px auto;
    border-top: 1px solid #e3e6f0;
}

.related-invoice-alert {
    background-color: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.related-invoice-alert a {
    color: #0c5460;
    font-weight: 600;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .quotation-header {
        text-align: center;
    }
    
    .quotation-header .quotation-status {
        position: static;
        margin-top: 15px;
        text-align: center;
    }
    
    .action-buttons {
        justify-content: center;
    }
    
    .signature-section {
        flex-direction: column;
    }
    
    .signature-box {
        width: 100%;
        margin-bottom: 20px;
    }
}
