﻿/* ===== Main Layout and Structure ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* ===== Breadcrumbs ===== */
.breadcrumbs {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 14px;
}

    .breadcrumbs a {
        color: #4a89dc;
        text-decoration: none;
    }

        .breadcrumbs a:hover {
            text-decoration: underline;
        }

    .breadcrumbs .separator {
        margin: 0 8px;
        color: #8c8c8c;
    }

    .breadcrumbs .current {
        color: #333;
        font-weight: 600;
    }

/* ===== Progress Steps ===== */
.progress-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    position: relative;
}

    .progress-steps::before {
        content: '';
        position: absolute;
        top: 20px;
        left: 0;
        right: 0;
        height: 2px;
        background-color: #e0e0e0;
        z-index: 0;
    }

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    flex: 1;
}

.step-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 10px;
    transition: all 0.2s ease;
}

.step-label {
    font-size: 14px;
    color: #666;
    text-align: center;
    transition: all 0.2s ease;
}

.step-completed .step-icon {
    background-color: #4caf50;
    color: white;
}

.step-completed .step-label {
    color: #4caf50;
    font-weight: 600;
}

.step-active .step-icon {
    background-color: #4a89dc;
    color: white;
    box-shadow: 0 2px 6px rgba(74, 137, 220, 0.3);
    transform: scale(1.1);
}

.step-active .step-label {
    color: #4a89dc;
    font-weight: 600;
}

/* ===== Page Header ===== */
.page-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

    .header-main h1 {
        margin: 0;
        font-size: 28px;
        color: #333;
    }

.close-button {
    font-size: 28px;
    color: #8c8c8c;
    text-decoration: none;
    line-height: 1;
    padding: 5px;
}

    .close-button:hover {
        color: #333;
    }

/* ===== Alerts ===== */
.alert {
    display: flex;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.alert-success {
    background-color: #e6f7e9;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.alert-info {
    background-color: #e3f2fd;
    border: 1px solid #b3e5fc;
    color: #0c5460;
}

.alert-icon {
    font-size: 18px;
    margin-right: 12px;
    margin-top: 2px;
}

/* ===== Tab Navigation ===== */
.review-tabs {
    display: flex;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 25px;
}

.tab {
    padding: 12px 20px;
    font-size: 16px;
    color: #666;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

    .tab:hover {
        color: #4a89dc;
        background-color: #f5f9ff;
    }

.tab-active {
    color: #4a89dc;
    font-weight: 600;
    border-bottom-color: #4a89dc;
}

.tab i {
    font-size: 14px;
}

/* ===== Workflow Description ===== */
.workflow-description {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    background-color: #f7f9fc;
    border-radius: 8px;
    padding: 20px;
}

.workflow-step {
    display: flex;
    align-items: flex-start;
    padding: 12px 15px;
    border-radius: 6px;
    flex: 1;
}

.workflow-step-active {
    background-color: #f0f7ff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.workflow-step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: #4a89dc;
    color: white;
    border-radius: 50%;
    font-weight: bold;
    margin-right: 15px;
    flex-shrink: 0;
}

.workflow-step-details h3 {
    margin: 0 0 5px;
    font-size: 18px;
    color: #333;
}

.workflow-step-details p {
    margin: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

.workflow-arrow {
    font-size: 24px;
    color: #8c8c8c;
    margin: 0 15px;
}

/* ===== Content Sections ===== */
.content-section {
    margin-bottom: 30px;
    transition: opacity 0.3s ease;
}

.section-hidden {
    display: none;
    opacity: 0;
}

/* ===== Cards ===== */
.card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    margin-bottom: 20px;
    overflow: hidden;
}

.card-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

    .card-header h2,
    .card-header h3 {
        margin: 0;
        font-size: 18px;
        color: #333;
    }

.card-body {
    padding: 20px;
}

/* ===== Stats Grid ===== */
.stats-grid {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

.stat-card {
    background-color: #f9f9f9;
    border-radius: 6px;
    padding: 15px;
    text-align: center;
    flex: 1;
    margin: 0 5px;
}

.stat-value {
    display: block;
    font-size: 28px;
    font-weight: bold;
    color: #4a89dc;
    margin-bottom: 5px;
}

.stat-label {
    display: block;
    font-size: 14px;
    color: #666;
}

/* ===== Batch Actions ===== */
.batch-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.batch-button {
    padding: 8px 15px;
    background-color: #f0f7ff;
    border: 1px solid #d0e6ff;
    border-radius: 4px;
    color: #4a89dc;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .batch-button:hover {
        background-color: #e0f0ff;
        transform: translateY(-1px);
    }

/* ===== Tables ===== */
.table-responsive {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

    .data-table th {
        background-color: #f5f5f5;
        color: #333;
        font-weight: 600;
        text-align: left;
        padding: 12px 15px;
        border-bottom: 2px solid #e0e0e0;
    }

    .data-table td {
        padding: 12px 15px;
        border-bottom: 1px solid #eee;
        vertical-align: top;
    }

    .data-table tbody tr:hover {
        background-color: #f9f9f9;
    }

.table-column-narrow {
    width: 15%;
}

.table-column-wide {
    width: 40%;
}

.highlight-row {
    background-color: #f0f7ff !important;
}

.selected {
    background-color: #f0f7ff !important;
}

.updated-row {
    animation: highlight-row 2s ease;
}

@keyframes highlight-row {
    0% {
        background-color: #e0f0ff;
    }

    100% {
        background-color: transparent;
    }
}

.empty-table-message {
    text-align: center;
    padding: 30px;
    color: #666;
}

    .empty-table-message i {
        font-size: 24px;
        color: #4caf50;
        margin-bottom: 10px;
    }

/* ===== Input Groups ===== */
.input-group {
    display: flex;
    flex-direction: column;
}

.form-input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    min-width: 120px;
}

.suggestion-container {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 8px;
}

.suggestion-chip {
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 15px;
    padding: 4px 10px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .suggestion-chip:hover {
        background-color: #e0e0e0;
    }

    .suggestion-chip.active {
        background-color: #4a89dc;
        color: white;
        border-color: #4a89dc;
    }

/* ===== Product List ===== */
.product-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-item {
    padding: 8px;
    border-radius: 4px;
    background-color: #f9f9f9;
}

.product-name {
    font-weight: 600;
    margin-bottom: 3px;
    font-size: 14px;
}

.product-price {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #666;
}

.price-current {
    color: #777;
}

.price-arrow {
    margin: 0 8px;
    color: #999;
}

.price-normalized {
    color: #4a89dc;
    font-weight: 600;
}

.badge {
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 12px;
    margin-left: 6px;
    display: inline-block;
    vertical-align: middle;
}

.badge-new {
    background-color: #ffecb3;
    color: #e65100;
}

/* ===== Workflow Actions ===== */
.workflow-actions-container {
    margin-top: 30px;
    margin-bottom: 40px;
}

.workflow-actions {
    display: flex;
    align-items: center;
    background-color: #f7f9fc;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
}

.workflow-action-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

.action-step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background-color: #4a89dc;
    color: white;
    border-radius: 50%;
    font-weight: bold;
    margin-bottom: 10px;
}

.action-step-description {
    font-size: 13px;
    color: #666;
    margin-top: 10px;
}

.workflow-action-arrow {
    font-size: 24px;
    color: #8c8c8c;
    margin: 0 20px;
}

.workflow-secondary-actions {
    display: flex;
    justify-content: flex-end;
}

/* ===== Buttons ===== */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-size: 15px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .button i {
        margin-right: 8px;
    }

.primary-button {
    background-color: #4a89dc;
    color: white;
}

    .primary-button:hover {
        background-color: #3976c7;
        transform: translateY(-1px);
    }

.success-button {
    background-color: #4caf50;
    color: white;
}

    .success-button:hover {
        background-color: #3d8b40;
        transform: translateY(-1px);
    }

.secondary-button {
    background-color: #f0f0f0;
    color: #555;
    border: 1px solid #ddd;
}

    .secondary-button:hover {
        background-color: #e0e0e0;
    }

.danger-button {
    background-color: #f44336;
    color: white;
}

    .danger-button:hover {
        background-color: #d32f2f;
    }

.btn-small {
    padding: 6px 12px;
    font-size: 13px;
}

/* ===== Pricing Section ===== */
.pricing-stats-container {
    margin-bottom: 20px;
}

.pricing-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.pricing-stat {
    text-align: center;
    padding: 15px;
    background-color: #f5f9ff;
    border-radius: 6px;
    flex: 1;
    margin: 0 5px;
}

.pricing-stat-number {
    font-size: 28px;
    font-weight: bold;
    color: #4a89dc;
    margin-bottom: 5px;
}

.pricing-stat-label {
    font-size: 14px;
    color: #666;
}

.pricing-progress {
    background-color: #f5f5f5;
    border-radius: 6px;
    padding: 15px;
}

.pricing-progress-label {
    font-size: 14px;
    margin-bottom: 8px;
    color: #555;
}

.pricing-progress-bar {
    height: 12px;
    background-color: #e0e0e0;
    border-radius: 6px;
    position: relative;
    margin-bottom: 8px;
}

.pricing-progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-color: #4caf50;
    border-radius: 6px;
    transition: width 0.8s ease;
}

.pricing-progress-percentage {
    text-align: right;
    font-size: 14px;
    font-weight: 600;
    color: #4caf50;
}

.pricing-benefits {
    margin-top: 25px;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 15px 0 0;
}

    .benefits-list li {
        display: flex;
        align-items: flex-start;
        margin-bottom: 12px;
    }

    .benefits-list i {
        color: #4caf50;
        margin-right: 10px;
        margin-top: 3px;
    }

    .benefits-list strong {
        display: block;
        margin-bottom: 3px;
    }

    .benefits-list span {
        font-size: 14px;
        color: #666;
    }

.pricing-action-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 30px 0;
}

.pricing-calculate-button {
    padding: 12px 30px;
    font-size: 16px;
}

.pricing-calculation-note {
    margin-top: 12px;
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
}

    .pricing-calculation-note i {
        margin-right: 8px;
        color: #4a89dc;
    }

.pricing-examples-container {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    gap: 20px;
}

.pricing-example {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    flex: 1;
}

.pricing-example-header {
    background-color: #f0f7ff;
    padding: 12px 15px;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #e0e0e0;
}

.pricing-example-content {
    display: flex;
    padding: 15px;
    align-items: center;
}

.pricing-example-before,
.pricing-example-after {
    flex: 1;
    text-align: center;
}

.pricing-example-label {
    font-size: 13px;
    color: #666;
    margin-bottom: 5px;
}

.pricing-example-value {
    font-weight: 600;
    color: #333;
}

.pricing-example-arrow {
    margin: 0 15px;
    color: #999;
    font-size: 18px;
}

/* ===== Overrides Section ===== */
.overrides-description {
    display: flex;
    align-items: flex-start;
    background-color: #f5f9ff;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 25px;
}

.overrides-icon {
    font-size: 28px;
    color: #4a89dc;
    margin-right: 20px;
    padding-top: 5px;
}

.overrides-text h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 18px;
}

.overrides-text p {
    margin-top: 0;
    margin-bottom: 12px;
}

.overrides-text ul {
    margin: 0;
    padding-left: 20px;
}

.overrides-text li {
    margin-bottom: 5px;
}

.add-override-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.empty-overrides-message {
    text-align: center;
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    margin-top: 20px;
}

    .empty-overrides-message i {
        font-size: 24px;
        color: #4a89dc;
        margin-bottom: 10px;
    }

    .empty-overrides-message p {
        margin: 0;
        color: #666;
    }

/* ===== Modal ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-width: 700px;
    width: 90%;
    animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

    .modal-header h2 {
        margin: 0;
        font-size: 20px;
        color: #333;
    }

.modal-close {
    font-size: 24px;
    color: #999;
    cursor: pointer;
}

    .modal-close:hover {
        color: #333;
    }

.modal-body {
    padding: 20px;
}

.form-group {
    margin-bottom: 20px;
}

    .form-group label {
        display: block;
        margin-bottom: 8px;
        font-weight: 600;
        color: #555;
    }

.form-row {
    display: flex;
    margin-left: -10px;
    margin-right: -10px;
}

.col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    padding-left: 10px;
    padding-right: 10px;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.impact-override {
    margin-top: 20px;
}

.pricing-preview {
    display: flex;
    align-items: center;
    background-color: #f9f9f9;
    border-radius: 6px;
    padding: 15px;
}

.pricing-before,
.pricing-after {
    flex: 1;
    padding: 10px;
}

.pricing-arrow {
    margin: 0 15px;
    color: #999;
    font-size: 18px;
}

.significant-impact {
    color: #f44336;
    font-weight: bold;
}

/* ===== Inline Form ===== */
.inline-form {
    display: inline-block;
}

/* ===== Toast Notifications ===== */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1050;
}

.toast {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background-color: white;
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
    min-width: 280px;
    max-width: 350px;
    animation: toastFadeIn 0.3s;
}

.toast--success {
    border-left: 4px solid #4caf50;
}

.toast--warning {
    border-left: 4px solid #ff9800;
}

.toast--error {
    border-left: 4px solid #f44336;
}

.toast-icon {
    margin-right: 10px;
    font-size: 16px;
}

.toast--success .toast-icon {
    color: #4caf50;
}

.toast--hiding {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.3s ease;
}

@keyframes toastFadeIn {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== Field Changed Highlight ===== */
.field-changed {
    border-color: #4a89dc;
    background-color: #f0f7ff;
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 992px) {
    .workflow-actions {
        flex-direction: column;
        gap: 20px;
    }

    .workflow-action-arrow {
        transform: rotate(90deg);
    }

    .workflow-description {
        flex-direction: column;
    }

    .workflow-arrow {
        transform: rotate(90deg);
        margin: 10px 0;
    }

    .form-row {
        flex-direction: column;
    }

    .col-md-4 {
        max-width: 100%;
        flex: 0 0 100%;
        margin-bottom: 15px;
    }

    .pricing-examples-container {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .pricing-stats {
        flex-direction: column;
        gap: 10px;
    }

    .pricing-stat {
        margin: 0;
    }

    .review-tabs {
        overflow-x: auto;
        white-space: nowrap;
    }

    .tab {
        padding: 10px 15px;
        font-size: 14px;
    }

    .table-responsive {
        margin: 0 -20px;
        padding: 0 20px;
    }
}
