/* Order detail page — Express (BS4) */

/* Page title */
.od-page-title {
    font-size: 1.25rem;
    font-weight: 500;
    color: #212529;
}
@media (min-width: 576px) {
    .od-page-title { font-size: 1.5rem; }
}

/* Layout columns */
.od-col-main { flex: 1; min-width: 0; }
.od-col-side { width: 100%; }
@media (min-width: 768px) {
    .od-col-side { width: 16.25rem; flex-shrink: 0; }
}
@media (min-width: 992px) {
    .od-col-side { width: 17.5rem; }
}
.od-sidebar-sticky {
    position: static;
}
@media (min-width: 768px) {
    .od-sidebar-sticky { position: sticky; top: 1.25rem; }
}

/* Card overrides */
.order-detail .card { border-radius: 0.25rem; }
.order-detail .card-header {
    padding: 0.625rem 1rem;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.order-detail .card-body { padding: 1rem; }
@media (min-width: 576px) {
    .order-detail .card-header { padding: 0.75rem 1.25rem; }
    .order-detail .card-body { padding: 1.25rem; }
}

/* Icon circles */
.od-icon-circle {
    width: 2.5rem; height: 2.5rem; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.od-icon-success { background: #d4edda; }
.od-icon-warning { background: #fff3cd; }
.od-icon-awaiting { background: #e2e3e5; }

/* Banner */
.od-banner-heading { font-size: 1rem; font-weight: 500; color: #212529; }
@media (min-width: 576px) { .od-banner-heading { font-size: 1.125rem; } }
.od-banner-sub { font-size: 0.8125rem; color: #6c757d; line-height: 1.5; }
.od-meta-row {
    display: flex; flex-wrap: wrap; gap: 1.25rem;
    font-size: 0.75rem; color: #6c757d;
}
.od-meta-row strong { font-weight: 500; color: #212529; }

/* Status badge */
.od-badge {
    display: inline-block; padding: 0.1875rem 0.625rem; border-radius: 0.1875rem;
    font-size: 0.75rem; font-weight: 500;
}
.od-badge-awaiting   { background: #e2e3e5; color: #383d41; }
.od-badge-received   { background: #fff3cd; color: #856404; }
.od-badge-preparing  { background: #fff3cd; color: #856404; }
.od-badge-production { background: #cce5ff; color: #004085; }
.od-badge-shipped    { background: #d1ecf1; color: #0c5460; }
.od-badge-delivered  { background: #d4edda; color: #155724; }

/* Stepper */
.od-stepper { display: flex; flex-direction: column; }
.od-step { display: flex; }
.od-step-line { display: flex; flex-direction: column; align-items: center; margin-right: 0.75rem; }
.od-step-dot {
    width: 1.25rem; height: 1.25rem; border-radius: 50%; flex-shrink: 0;
    border: 2px solid #dee2e6; background: #fff;
    display: flex; align-items: center; justify-content: center;
    position: relative;
}
.od-step-dot.done { background: #1a3a6b; border-color: #1a3a6b; }
.od-step-dot.active { border-color: #1a3a6b; }
.od-step-dot.active::after {
    content: ''; width: 0.5rem; height: 0.5rem; border-radius: 50%;
    background: #1a3a6b;
}
.od-step-connector { width: 2px; flex: 1; min-height: 1.25rem; background: #dee2e6; }
.od-step-connector.done { background: #1a3a6b; }
.od-step:last-child .od-step-connector { display: none; }
.od-step-content { padding-bottom: 1rem; }
.od-step:last-child .od-step-content { padding-bottom: 0; }
.od-step-label { font-size: 0.8125rem; font-weight: 500; color: #212529; margin: 0; }
.od-step-label.muted { color: #adb5bd; font-weight: 400; }
.od-step-date { font-size: 0.75rem; color: #6c757d; margin: 2px 0 0; }

/* Items table overrides */
#od-items-body .table { font-size: 0.8125rem; margin-bottom: 0; }
#od-items-body .table th,
#od-items-body .table td { padding-left: 1rem; padding-right: 1rem; }
@media (min-width: 576px) {
    #od-items-body .table th,
    #od-items-body .table td { padding-left: 1.25rem; padding-right: 1.25rem; }
}
#od-items-body .table thead th {
    font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.04em;
    color: #6c757d; background: #f8f9fa; border-bottom: 1px solid #dee2e6;
    font-weight: 400;
}

/* Proofs */
.od-proofs-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.od-proof-thumb {
    width: 4.5rem; height: 4.5rem; border-radius: 0.25rem;
    border: 1px solid #dee2e6; object-fit: cover; cursor: pointer;
}
@media (min-width: 576px) { .od-proof-thumb { width: 5rem; height: 5rem; } }
.od-proof-thumb:hover { border-color: #1a3a6b; }
.od-empty-text { font-size: 0.8125rem; color: #adb5bd; font-style: italic; }

/* Tracking links */
.od-tracking-row { display: flex; flex-wrap: wrap; gap: 0.375rem; }
.od-tracking-link {
    display: inline-flex; align-items: center; gap: 0.375rem;
    font-size: 0.8125rem; color: #1a3a6b; text-decoration: none;
    padding: 0.375rem 0.75rem; border: 1px solid #dee2e6; border-radius: 0.25rem; background: #fff;
}
.od-tracking-link:hover { background: #f8f9fa; border-color: #1a3a6b; text-decoration: none; color: #1a3a6b; }
.od-tracking-carrier { font-size: 0.6875rem; color: #6c757d; font-weight: 500; text-transform: uppercase; }

/* Contact grid */
.od-contact-grid { display: grid; gap: 0.75rem; grid-template-columns: 1fr; }
@media (min-width: 576px) { .od-contact-grid { grid-template-columns: 1fr 1fr; } }
.od-contact-label {
    font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.03em;
    color: #6c757d; margin-bottom: 2px;
}
.od-contact-value { font-size: 0.8125rem; color: #212529; }

/* Totals sidebar */
.od-total-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 0.8125rem; margin-bottom: 0.25rem; }
.od-total-row-grand { font-size: 0.9375rem; font-weight: 700; }
.od-free { color: #155724; font-weight: 500; }
.od-badge-exempt {
    display: inline-block; font-size: 0.6875rem; padding: 2px 0.375rem;
    background: #e2e3e5; color: #383d41; border-radius: 0.1875rem; font-weight: 500;
}
.od-payment-section { border-top: 1px solid #dee2e6; padding-top: 0.75rem; margin-top: 1rem; }
.od-payment-row { font-size: 0.8125rem; color: #212529; margin-bottom: 0.25rem; }

/* Print */
@media print {
    #od-header-actions, #od-mobile-actions { display: none !important; }
    .od-col-side { width: 100%; }
    .od-sidebar-sticky { position: static; }
    .card { border: none !important; box-shadow: none !important; }
    .card-header { background: none !important; }
    .od-proof-thumb { width: 3.75rem; height: 3.75rem; }
}
