.order-page {
    font-size: 0.875rem;
}

.order-filters .card-body {
    background: #fff;
}

.order-filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.order-filter-label {
    color: #64748b;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    margin: 0;
    text-transform: uppercase;
}

.order-filter-select {
    border-color: #e2e8f0;
    border-radius: 0.375rem;
    color: #334155;
    font-size: 0.8rem;
    min-width: 7.5rem;
    padding: 0.25rem 1.75rem 0.25rem 0.5rem;
}

.order-filter-check-label {
    color: #475569;
    font-size: 0.8rem;
}

.order-btn-new {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.35rem 0.85rem;
    white-space: nowrap;
}

.order-btn-new__icon {
    font-size: 1rem;
    font-weight: 700;
    margin-right: 0.15rem;
}

.order-card {
    border-radius: 0.625rem !important;
    overflow: hidden;
}

.order-card__id {
    font-size: 0.85rem;
    margin-bottom: 0.1rem;
}

.order-card__title {
    color: #0f172a;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.2;
}

.order-workflow__arrow {
    color: #666666;
    display: inline-flex;
}

.order-workflow__step {
    align-items: center;
    background: #f1f5f9;
    border-radius: 999px;
    color: #777777;
    display: inline-flex;
    font-size: 0.88rem;
    font-weight: 500;
    gap: 0.2rem;
    padding: 0.2rem 0.55rem;
    white-space: nowrap;
}

.order-workflow__step--completed {
    background: #e8f5f0;
    color: #0f766e;
}

.order-workflow__step--active {
    background: #e0f2fe;
    color: #0369a1;
    font-weight: 600;
}

.order-workflow__check {
    flex-shrink: 0;
}

.order-card__info,
.order-card__portions,
.order-card__costs {
    background: #fff;
}

.order-card__info {
    border-color: #f1f5f9 !important;
}

.order-card__portions {
    border-color: #f1f5f9 !important;
}

.order-stat {
    margin-bottom: 0.85rem;
}

.order-stat__label {
    color: #888888;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    margin-bottom: 0.1rem;
}

.order-stat__value {
    color: #1e293b;
    font-size: 0.85rem;
    font-weight: 600;
}

.order-portions-label {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.order-alert {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 0.5rem;
    color: #92400e;
    font-size: 0.8rem;
    margin-bottom: 0.75rem !important;
}

.order-portion__stage {
    color: #0f172a;
    font-size: 0.85rem;
}

.order-portion__sub {
    font-size: 0.75rem;
}

.order-fabric-table {
    font-size: 0.78rem;
}

.order-fabric-table__head {
    font-size: 0.78rem;
    margin-bottom: 0.15rem;
}

.order-fabric-table__row {
    font-weight: 500;
}

.order-badge {
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 500;
    padding: 0.15rem 0.55rem;
    white-space: nowrap;
}

.order-badge--info {
    background: #e0f2fe;
    color: #0369a1;
}

.order-badge--success {
    background: #dcfce7;
    color: #15803d;
}

.order-badge--warning {
    background: #fef3c7;
    color: #b45309;
}

.order-cost-item {
    margin-bottom: 0.75rem;
}

.order-cost-item__label {
    color: #888888;
    font-size: 0.78rem;
    font-weight: 500;
    margin-bottom: 0.1rem;
}

.order-cost-item__value {
    color: #1e293b;
    font-size: 0.85rem;
    font-weight: 600;
}

.order-cost-warning {
    font-size: 0.75rem !important;
}

.order-card__footer {
    background: #fafbfc;
    border-color: #f1f5f9 !important;
}

.order-btn-outline {
    border-color: var(--primary);
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 500;
    padding: 0.3rem 0.65rem;
}

.order-btn-outline:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
}

.order-btn-primary {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.3rem 0.75rem;
}

.order-btn-primary svg {
    vertical-align: -2px;
}

.order-stat-card {
    border-radius: 0.625rem !important;
}

.order-stat-card__value {
    color: #0f172a;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.2;
}

.order-stat-card__value--warning {
    color: #d97706;
}

.order-stat-card__value--danger {
    color: #dc2626;
}

.order-stat-card__label {
    color: #444444;
    font-size: 0.82rem;
    margin-top: 0.15rem;
}

.order-widget {
    border-radius: 0.625rem !important;
}

.order-widget__title {
    color: #0f172a;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.order-progress {
    background: #e2e8f0;
    border-radius: 999px;
    height: 6px;
    overflow: hidden;
}

.order-progress__bar {
    background: var(--primary);
    border-radius: 999px;
    height: 100%;
    transition: width 0.3s ease;
}

.order-widget-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.order-widget-item {
    padding-bottom: 0.75rem;
}

.order-widget-item:not(:last-child) {
    border-bottom: 1px solid #f1f5f9;
}

.order-widget-item__id {
    color: #0f172a;
    font-size: 0.8rem;
}

.order-widget-item__meta {
    line-height: 1.4;
}

.order-delay-badge {
    background: #fef2f2;
    border-radius: 999px;
    color: #dc2626;
    flex-shrink: 0;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    white-space: nowrap;
}

.order-link-btn {
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 500;
    text-decoration: none;
}

.order-link-btn:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.previous-orders-title {
    color: #111827;
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0;
}

.previous-order-filters .order-filter-select {
    min-width: 9rem;
}

.previous-search {
    min-width: 15rem;
}

.previous-search__wrap {
    position: relative;
}

.previous-search__icon {
    color: #64748b;
    left: 0.65rem;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.previous-search__input {
    border-color: #e2e8f0;
    border-radius: 0.375rem;
    color: #334155;
    font-size: 0.8rem;
    padding-left: 2rem;
}

.previous-order-card .order-card__title {
    color: var(--primary);
}

.previous-complete-badge {
    align-items: center;
    background: #edf7e8;
    border-radius: 999px;
    color: #4d7c0f;
    display: inline-flex;
    font-size: 0.72rem;
    font-weight: 600;
    gap: 0.25rem;
    padding: 0.18rem 0.55rem;
}

.previous-completed-portion {
    background: #edf7e8;
    border: 1px solid #95c37c;
    border-radius: 0.45rem;
    padding: 0.75rem;
}

.previous-completed-portion__label {
    color: #475569;
    font-size: 0.72rem;
    font-weight: 700;
}

.previous-summary-list {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.previous-summary-list div {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.previous-summary-list span {
    color: #64748b;
    font-size: 0.78rem;
}

.previous-summary-list strong {
    color: #0f172a;
    font-size: 0.82rem;
}

.previous-design-list {
    display: flex;
    flex-direction: column;
    gap: 0.72rem;
}

.previous-design-item {
    display: grid;
    gap: 0.35rem;
}

.previous-design-item strong {
    color: #0f172a;
    font-size: 0.82rem;
}

.previous-design-item span {
    color: #64748b;
    font-size: 0.72rem;
}

.previous-design-progress {
    background: #e5e7eb;
    border-radius: 999px;
    height: 4px;
    overflow: hidden;
}

.previous-design-progress div {
    background: #3b82c4;
    border-radius: inherit;
    height: 100%;
}

@media (max-width: 767.98px) {
    .order-card__info,
    .order-card__portions {
        border-right: 0 !important;
        border-bottom: 1px solid #f1f5f9 !important;
    }

    .order-workflow {
        width: 100%;
    }

    .order-card__actions {
        width: 100%;
        justify-content: flex-end;
    }
}


.order-create-page {
    max-width: 960px;
}

.order-create-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.65rem;
    padding: 1rem 1.15rem 1.15rem;
}

.order-create-card__title {
    color: #0f172a;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.order-create-field {
    align-items: flex-start;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.order-create-field:last-child {
    border-bottom: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}

.order-create-field__label {
    color: #64748b;
    flex: 0 0 180px;
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0;
    padding-top: 0.35rem;
}

.order-create-chips {
    display: flex;
    flex: 1 1 0;
    flex-wrap: wrap;
    gap: 0.5rem;
    min-width: 0;
}

.order-create-chip {
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    color: #374151;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.2;
    padding: 0.4rem 0.85rem;
    transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.order-create-chip:hover {
    background: #f8fafc;
    border-color: var(--primary);;
}

.order-create-chip.is-selected {
    background: #eff6ff;
    border-color: var(--primary);
    color: var(--primary);;
}

.order-create-field--design-code .order-create-field__label {
    padding-top: 0.55rem;
}

.order-create-design-code-input {
    border-color: #e2e8f0;
    border-radius: 0.375rem;
    flex: 1 1 0;
    font-size: 0.875rem;
    max-width: 100%;
    min-width: 220px;
    padding: 0.5rem 0.75rem;
}

.order-create-quantity {
    align-items: center;
    display: flex;
    flex: 1 1 0;
    gap: 0.5rem;
    min-width: 0;
}

.order-create-quantity__input {
    border-color: #e2e8f0;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    max-width: 120px;
    padding: 0.5rem 0.75rem;
}

.order-create-quantity__unit {
    color: #64748b;
    font-size: 0.875rem;
}

.order-create-yards {
    align-items: baseline;
    display: flex;
    flex: 1 1 0;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    min-width: 0;
}

.order-create-yards__value {
    color: #0f172a;
    font-size: 0.95rem;
    font-weight: 700;
}

.order-create-yards__hint {
    font-size: 0.75rem;
}

.order-create-batch-no {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 0.375rem;
    color: #1d4ed8;
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.35rem 0.75rem;
}

.order-create-batch-hint {
    font-size: 0.75rem;
    margin-top: 0.35rem;
}

.order-create-empty {
    font-size: 0.85rem;
}

.order-fabric-layers__subtitle {
    color: #94a3b8;
    font-size: 0.85rem;
    margin: -0.35rem 0 1rem;
}

.order-fabric-layers__select {
    margin-bottom: 1rem;
}

.order-fabric-layers__select-label {
    color: #94a3b8;
    display: block;
    font-size: 0.82rem;
    font-weight: 500;
    margin-bottom: 0.55rem;
}

.order-fabric-layers__toggles {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.order-fabric-layer-toggle {
    align-items: center;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    color: #475569;
    cursor: pointer;
    display: inline-flex;
    font-size: 0.85rem;
    font-weight: 600;
    gap: 0.35rem;
    line-height: 1;
    padding: 0.45rem 0.85rem;
    transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.order-fabric-layer-toggle__check {
    align-items: center;
    display: none;
    justify-content: center;
}

.order-fabric-layer-toggle.is-selected {
    background: #eff6ff;
    border-color: #3b82f6;
    color: #2563eb;
}

.order-fabric-layer-toggle.is-selected .order-fabric-layer-toggle__check {
    display: inline-flex;
}

.order-fabric-layers__cards {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom: 0.85rem;
}

.order-fabric-layer-card {
    align-items: center;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.55rem;
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(160px, 1.2fr) minmax(110px, 0.7fr) minmax(180px, 1.1fr);
    padding: 0.85rem 1rem;
}

.order-fabric-layer-card__name-wrap {
    align-items: center;
    display: flex;
    gap: 0.5rem;
}

.order-fabric-layer-card__dot {
    border-radius: 50%;
    flex-shrink: 0;
    height: 0.55rem;
    width: 0.55rem;
}

.order-fabric-layer-card__name {
    color: #0f172a;
    font-size: 0.95rem;
    font-weight: 700;
}

.order-fabric-layer-card__yield {
    color: #94a3b8;
    font-size: 0.8rem;
    margin-top: 0.15rem;
    padding-left: 1.05rem;
}

.order-fabric-layer-card__label {
    color: #94a3b8;
    font-size: 0.78rem;
    margin-bottom: 0.15rem;
}

.order-fabric-layer-card__value {
    color: #0f172a;
    font-size: 0.95rem;
    font-weight: 700;
}

.order-fabric-layer-card__value--required {
    color: var(--layer-color, #0f4c5c);
}

.order-fabric-layer-card__required-row {
    align-items: baseline;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.order-fabric-layer-card__calc {
    font-size: 0.75rem;
}

.order-fabric-layers__total {
    align-items: center;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 0.5rem;
    color: #1d4ed8;
    display: flex;
    flex-wrap: wrap;
    font-size: 0.9rem;
    font-weight: 600;
    gap: 0.5rem 1rem;
    justify-content: space-between;
    padding: 0.75rem 1rem;
}

.order-fabric-layers__total strong {
    font-size: 1rem;
    font-weight: 700;
}

.order-inventory-pulled {
    border-top: 1px solid #e5e7eb;
    margin-top: 0.35rem;
    padding-top: 1rem;
}

.order-inventory-pulled__title {
    color: #0f172a;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.order-inventory-pulled__summary {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    color: #334155;
    display: flex;
    flex-wrap: wrap;
    font-size: 0.9rem;
    font-weight: 600;
    gap: 0.5rem 1rem;
    justify-content: space-between;
    margin-top: 0.85rem;
    padding: 0.75rem 1rem;
}

.order-inventory-pulled__summary strong {
    color: #0f172a;
    font-size: 1rem;
    font-weight: 700;
}

.order-inventory-available {
    font-size: 0.8rem;
    font-weight: 400;
}

.order-stages-select .form-select {
    border-color: #d1d5db;
    border-radius: 0.45rem;
    color: #0f172a;
    font-size: 0.9rem;
    max-width: 100%;
}

.order-stages-preview__header {
    align-items: center;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.65rem;
}

.order-stages-preview__label {
    color: #94a3b8;
    font-size: 0.82rem;
    font-weight: 500;
}

.order-stages-preview__link {
    color: #0f766e;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
}

.order-stages-preview__link:hover {
    text-decoration: underline;
}

.order-stages-timeline__list {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
}

.order-stages-timeline__item {
    align-items: center;
    display: flex;
    gap: 0.85rem;
    padding-bottom: 1.1rem;
    position: relative;
}

.order-stages-timeline__item:last-child {
    padding-bottom: 0;
}

.order-stages-timeline__item:not(:last-child)::before {
    background: #bfdbfe;
    bottom: 0;
    content: '';
    left: 0.85rem;
    position: absolute;
    top: 1.7rem;
    transform: translateX(-50%);
    width: 2px;
}

.order-stages-timeline__num {
    align-items: center;
    background: #fff;
    border: 1.5px solid #3b82f6;
    border-radius: 50%;
    color: #2563eb;
    display: inline-flex;
    flex-shrink: 0;
    font-size: 0.75rem;
    font-weight: 700;
    height: 1.7rem;
    justify-content: center;
    position: relative;
    width: 1.7rem;
    z-index: 1;
}

.order-stages-timeline__content {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.65rem;
}

.order-stages-timeline__title {
    color: #0f172a;
    font-size: 0.92rem;
    font-weight: 600;
}

.order-stage-badge {
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1;
    padding: 0.28rem 0.55rem;
}

.order-stage-badge--inhouse {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #047857;
}

.order-stage-badge--sub {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #64748b;
}

.order-create-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: flex-end;
    margin-bottom: 1rem;
}

@media (max-width: 767.98px) {
    .order-fabric-layer-card {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .order-fabric-layer-card__yield {
        padding-left: 1.05rem;
    }
}

@media (max-width: 575.98px) {
    .order-create-field__label {
        flex: 0 0 100%;
        padding-top: 0;
    }
}

/* ── Order Detail Page ── */

.order-detail-page {
    width: 100%;
}

.order-detail-title {
    color: #111827;
    font-size: 1.35rem;
    font-weight: 700;
}

.order-detail-subtitle {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.order-detail-batch {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 0.375rem;
    color: #1d4ed8;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.25rem 0.65rem;
}

.order-detail-complete-badge {
    align-items: center;
    background: #edf7e8;
    border-radius: 999px;
    color: #4d7c0f;
    display: inline-flex;
    font-size: 0.72rem;
    font-weight: 600;
    gap: 0.25rem;
    padding: 0.18rem 0.55rem;
}

.order-detail-card__label {
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 0.15rem;
}

.order-detail-card__value {
    color: #0f172a;
    font-size: 1.1rem;
    font-weight: 700;
}

.order-detail-card__value--primary {
    color: var(--primary, #0f766e);
}

.order-detail-info-bar {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem 2rem;
    padding: 0.85rem 1rem;
}

.order-detail-info-item {
    display: flex;
    flex-direction: column;
}

.order-detail-info-label {
    color: #2563eb;
    font-size: 0.7rem;
    font-weight: 500;
}

.order-detail-info-value {
    color: #1e3a8a;
    font-size: 0.85rem;
    font-weight: 600;
}

.order-detail-section-title {
    color: #0f172a;
    font-size: 1rem;
    font-weight: 700;
}

.order-detail-layers {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.order-detail-layer-item {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.45rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    justify-content: space-between;
    padding: 0.6rem 0.85rem;
}

.order-detail-layer-name {
    color: #0f172a;
    font-size: 0.85rem;
    font-weight: 600;
}

.order-detail-layer-meta {
    color: #64748b;
    font-size: 0.78rem;
}

.order-detail-stage-num {
    align-items: center;
    background: #fff;
    border: 1.5px solid #16a34a;
    border-radius: 50%;
    color: #16a34a;
    display: inline-flex;
    flex-shrink: 0;
    font-size: 0.75rem;
    font-weight: 700;
    height: 1.75rem;
    justify-content: center;
    width: 1.75rem;
}

.order-detail-stage-name {
    color: #0f172a;
    font-size: 1rem;
    font-weight: 700;
}

.order-detail-stage-badge {
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 500;
    padding: 0.15rem 0.5rem;
}

.order-detail-stage-badge--subcontractor {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
}

.order-detail-stage-badge--in_house {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #047857;
}

.order-detail-date-badge {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 500;
    padding: 0.2rem 0.55rem;
    white-space: nowrap;
}

.order-detail-date-badge--received {
    background: #edf7e8;
    border-color: #95c37c;
    color: #4d7c0f;
}

.order-detail-sub-card {
    background: #fafbfc;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1rem;
}

.order-detail-sub-name {
    color: #0f172a;
    font-size: 0.9rem;
    font-weight: 700;
}

.order-detail-sub-contact {
    color: #64748b;
    font-size: 0.75rem;
}

.order-detail-payment-badge {
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    white-space: nowrap;
}

.order-detail-payment-badge--success {
    background: #dcfce7;
    color: #15803d;
}

.order-detail-payment-badge--warning {
    background: #fef3c7;
    color: #b45309;
}

.order-detail-payment-badge--danger {
    background: #fef2f2;
    color: #dc2626;
}

.order-detail-metric {
    padding: 0.35rem 0;
}

.order-detail-metric__label {
    color: #94a3b8;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.order-detail-metric__value {
    color: #0f172a;
    font-size: 0.85rem;
    font-weight: 600;
}

.order-detail-metric__value--success {
    color: #16a34a;
}

.order-detail-metric__value--danger {
    color: #dc2626;
}

.order-detail-metric__value--primary {
    color: var(--primary, #0f766e);
}

.order-detail-notes {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    padding: 0.65rem 0.85rem;
}

.order-detail-note {
    display: flex;
    gap: 0.35rem;
    font-size: 0.78rem;
    line-height: 1.4;
}

.order-detail-note__label {
    color: #64748b;
    font-weight: 600;
    flex-shrink: 0;
}

.order-detail-note__text {
    color: #334155;
}

.order-detail-no-sub {
    font-size: 0.82rem;
    font-style: italic;
}

.order-detail-stage-totals {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 0.45rem;
    padding: 0.75rem 1rem;
    margin-top: 0.5rem;
}

.order-detail-total-item {
    display: flex;
    flex-direction: column;
}

.order-detail-total-item__label {
    color: #475569;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
}

.order-detail-total-item__value {
    color: #0f172a;
    font-size: 0.82rem;
    font-weight: 600;
}

.order-detail-total-item__value--success {
    color: #16a34a;
}

.order-detail-total-item__value--danger {
    color: #dc2626;
}

.order-detail-total-item__value--primary {
    color: var(--primary, #0f766e);
}

.order-detail-accounting {
    border-top: 1px solid #e5e7eb;
    padding-top: 0.75rem;
}

.order-detail-accounting__title {
    color: #475569;
    font-size: 0.82rem;
    font-weight: 600;
}

.order-detail-accounting-table {
    border: 1px solid #e5e7eb;
    border-radius: 0.45rem;
    overflow: hidden;
}

.order-detail-accounting-row {
    display: flex;
    align-items: center;
    padding: 0.55rem 0.85rem;
    font-size: 0.78rem;
}

.order-detail-accounting-row:not(:last-child) {
    border-bottom: 1px solid #f1f5f9;
}

.order-detail-accounting-row--header {
    background: #f8fafc;
    color: #64748b;
    font-weight: 600;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.order-detail-entry-type {
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
}

.order-detail-entry-type--bill {
    background: #eff6ff;
    color: #1d4ed8;
}

.order-detail-entry-type--wastage {
    background: #fef3c7;
    color: #b45309;
}

.order-detail-entry-type--payment {
    background: #dcfce7;
    color: #15803d;
}

.order-detail-entry-status {
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
}

.order-detail-entry-status--success {
    background: #dcfce7;
    color: #15803d;
}

.order-detail-entry-status--warning {
    background: #fef3c7;
    color: #b45309;
}

.order-detail-entry-status--info {
    background: #e0f2fe;
    color: #0369a1;
}

.order-detail-finance-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 1rem;
    text-align: center;
}

.order-detail-finance-card__label {
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.order-detail-finance-card__value {
    color: #0f172a;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.15rem;
}

.order-detail-finance-card__value--warning {
    color: #d97706;
}

.order-detail-finance-card__value--primary {
    color: var(--primary, #0f766e);
}

.order-detail-finance-card__sub {
    color: #94a3b8;
    font-size: 0.72rem;
}

@media (max-width: 767.98px) {
    .order-detail-info-bar {
        gap: 0.75rem 1.25rem;
    }

    .order-detail-stage-num {
        height: 1.5rem;
        width: 1.5rem;
        font-size: 0.7rem;
    }
}

@media (max-width: 575.98px) {
    .order-detail-finance-card {
        text-align: left;
    }
}
