﻿.processing-list-detail-page {
    padding-bottom: 1.5rem;
}

.processing-list-detail-page .card {
    border: 1px solid var(--bs-border-color);
    border-radius: 0.75rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.processing-list-detail-page .card-header {
    background: color-mix(in srgb, var(--bs-secondary-bg) 70%, #ffffff 30%);
    border-bottom: 1px solid var(--bs-border-color);
    font-weight: 600;
}

.processing-list-detail-page .table {
    --bs-table-bg: transparent;
    --bs-table-striped-bg: color-mix(in srgb, var(--bs-body-bg) 85%, #eef4ff 15%);
    --bs-table-hover-bg: color-mix(in srgb, var(--bs-body-bg) 75%, #dbeafe 25%);
}

.processing-list-detail-page .table th {
    font-size: 0.74rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    white-space: nowrap;
    background: color-mix(in srgb, var(--bs-secondary-bg) 80%, #f8fbff 20%);
}

.processing-list-detail-page .table td {
    vertical-align: middle;
}

.processing-list-detail-page .badge {
    font-weight: 600;
}

.processing-list-detail-page .btn {
    border-radius: 0.55rem;
}

.processing-list-detail-page .bi {
    line-height: 1;
}

.processing-list-detail-page .summary-item,
.processing-list-detail-page .order-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.processing-sidebar-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(15, 23, 42, 0.46);
    z-index: 1040;
}

.processing-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: min(760px, 96vw);
    height: 100%;
    background: var(--bs-body-bg);
    box-shadow: -8px 0 36px rgba(0, 0, 0, 0.25);
    z-index: 1050;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #1f3c88 0%, #2f6adf 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-header h4 {
    margin: 0;
    color: #ffffff;
    font-size: 1.15rem;
}

.sidebar-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.1rem;
}

.sidebar-footer {
    padding: 1rem 1.1rem;
    border-top: 1px solid var(--bs-border-color);
    background: color-mix(in srgb, var(--bs-body-bg) 85%, #eef3ff 15%);
}

.info-section {
    margin-bottom: 1rem;
    padding: 0.95rem;
    border: 1px solid #c9d6ea;
    border-radius: 0.7rem;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(30, 55, 90, 0.08);
}

.info-sections-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.8rem;
}

.info-sections-grid .info-section {
    margin-bottom: 0;
}

.info-section h6 {
    margin-bottom: 0.85rem;
    font-weight: 700;
    color: var(--bs-emphasis-color);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.info-item label {
    font-size: 0.74rem;
    color: var(--bs-secondary-color);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.info-item span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    gap: 0.25rem;
    margin-bottom: 0.65rem;
}

.progress-steps::before {
    content: "";
    position: absolute;
    left: 1.1rem;
    right: 1.1rem;
    top: 1.15rem;
    height: 3px;
    background: #c7d6ec;
    border-radius: 999px;
    z-index: 0;
}

.step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    position: relative;
    z-index: 1;
}

.step-circle {
    width: 2.3rem;
    height: 2.3rem;
    border-radius: 999px;
    border: 2px solid var(--bs-border-color);
    background: var(--bs-body-bg);
    color: var(--bs-secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.step-label {
    font-size: 0.68rem;
    text-align: center;
    color: var(--bs-secondary-color);
    max-width: 6rem;
}

.step.completed .step-circle {
    border-color: #198754;
    background: #198754;
    color: #fff;
}

.step.active .step-circle {
    border-color: #0d6efd;
    background: #0d6efd;
    color: #fff;
    box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.4);
    animation: processing-step-pulse 1.8s ease-in-out infinite;
}

.step.completed .step-label,
.step.active .step-label {
    color: var(--bs-emphasis-color);
    font-weight: 600;
}

@keyframes processing-step-pulse {
    0% { box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.45); }
    70% { box-shadow: 0 0 0 12px rgba(13, 110, 253, 0); }
    100% { box-shadow: 0 0 0 0 rgba(13, 110, 253, 0); }
}

.processing-list-detail-page .input-group-text {
    min-width: 5.8rem;
    justify-content: center;
    font-weight: 600;
}

.processing-list-detail-page input.form-control.is-valid {
    border-color: #198754;
    background-image: none;
}

.processing-list-detail-page .modal .table th {
    position: sticky;
    top: 0;
    z-index: 1;
}

.customer-email {
    display: inline-block;
    max-width: 16rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: bottom;
}

@media (max-width: 1200px) {
    .processing-list-detail-page .table {
        font-size: 0.92rem;
    }
}

@media (max-width: 991px) {
    .info-grid {
        grid-template-columns: 1fr;
    }

    .processing-sidebar {
        width: 100vw;
    }

    .step-label {
        max-width: 4.8rem;
    }
}

@media (min-width: 992px) {
    .info-sections-grid.two-column {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }
}

@media (max-width: 767px) {
    .processing-list-detail-page {
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }

    .processing-list-detail-page .d-flex.justify-content-between.align-items-center.py-3 {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.9rem;
    }

    .processing-list-detail-page .d-flex.flex-column.align-items-end.gap-2 {
        align-items: flex-start !important;
        width: 100%;
    }

    .processing-list-detail-page .d-flex.align-items-center.gap-2.flex-wrap.justify-content-end {
        justify-content: flex-start !important;
    }

    .processing-list-detail-page .card-body {
        padding: 0.85rem;
    }

    .processing-list-detail-page .input-group {
        flex-wrap: nowrap;
    }
}

[data-theme="dark"] .processing-sidebar {
    box-shadow: -8px 0 36px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .sidebar-header {
    background: linear-gradient(135deg, #1b3165 0%, #2a4f96 100%);
}

[data-theme="dark"] .step-circle {
    background: #111827;
}

[data-theme="dark"] .info-section {
    background: color-mix(in srgb, var(--bs-body-bg) 84%, #1b2e4e 16%);
}
