/* TDG_Order — mobile menu & kitchen display */

.tdg-order-customer {
    max-width: 480px;
    margin: 0 auto;
    padding: 0 0 10.5rem;
}

.tdg-order-customer__header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--tvc-bk-surface, #0f172a);
    border-bottom: 1px solid var(--tvc-bk-border, #334155);
    padding: 0.85rem 1rem 1rem;
    margin-bottom: 0.5rem;
}

.tdg-order-customer__brand {
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--tdg-ds-text-primary, #ffffff);
    text-align: center;
    margin: 0 0 0.65rem;
}

.tdg-order-table-banner {
    text-align: center;
    padding: 1rem 1.1rem;
    border-radius: 0.85rem;
    background: linear-gradient(135deg, rgba(20, 83, 45, 0.42) 0%, rgba(113, 63, 18, 0.38) 100%);
    border: 1px solid rgba(251, 191, 36, 0.45);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.tdg-order-table-banner__code {
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.1;
    color: #fde68a;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}

.tdg-order-table-banner__hint {
    margin: 0.45rem 0 0;
    font-size: 0.88rem;
    font-weight: 600;
    color: #bbf7d0;
}

.tdg-order-table-banner__name {
    margin: 0.25rem 0 0;
    font-size: 0.78rem;
    color: #cbd5e1;
}

.tdg-order-category {
    padding: 0 1rem 0.5rem;
}

.tdg-order-category__title {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #93c5fd;
    margin: 1rem 0 0.5rem;
}

.tdg-order-item-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    background: var(--tvc-bk-card, #1e293b);
    border: 1px solid var(--tvc-bk-border, #334155);
    border-radius: 0.65rem;
    padding: 0.85rem 1rem;
    margin-bottom: 0.65rem;
}

.tdg-order-item-card__media {
    flex-shrink: 0;
}

.tdg-order-item-card__image {
    display: block;
    width: 72px;
    height: 72px;
    border-radius: 8px;
    object-fit: cover;
    object-position: center;
}

.tdg-order-item-card__body {
    flex: 1;
    min-width: 0;
}

.tdg-order-item-card__name {
    font-weight: 600;
    margin: 0 0 0.2rem;
    font-size: 1.05rem;
    line-height: 1.35;
    color: #f8fafc;
}

.tdg-order-item-card__price {
    color: #fbbf24;
    font-size: 0.95rem;
    margin: 0;
    font-weight: 600;
}

@media (max-width: 575.98px) {
    .tdg-order-item-card__image {
        width: 64px;
        height: 64px;
    }
}

.tdg-order-qty {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    flex-shrink: 0;
}

.tdg-order-qty__btn {
    width: 2.75rem;
    height: 2.75rem;
    min-width: 44px;
    min-height: 44px;
    border-radius: 50%;
    border: 1px solid var(--tvc-bk-border, #475569);
    background: #0f172a;
    color: #e2e8f0;
    font-size: 1.25rem;
    line-height: 1;
    padding: 0;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.tdg-order-qty__btn:hover {
    background: #334155;
    color: #fff;
}

.tdg-order-qty__value {
    min-width: 1.5rem;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
}

.tdg-order-place-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    padding: 0.85rem 1rem calc(0.85rem + env(safe-area-inset-bottom));
    background: rgba(15, 23, 42, 0.98);
    border-top: 1px solid #334155;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.35);
}

.tdg-order-place-bar__inner {
    max-width: 480px;
    margin: 0 auto;
}

.tdg-order-place-bar__summary {
    margin-bottom: 0.75rem;
}

.tdg-order-place-bar__table {
    display: block;
    text-align: center;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    color: #fde68a;
    margin-bottom: 0.45rem;
}

.tdg-order-place-bar__stats {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
}

.tdg-order-place-bar__items {
    font-size: 0.95rem;
    font-weight: 600;
    color: #e2e8f0;
}

.tdg-order-place-bar__total {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fbbf24;
    text-align: right;
}

.tdg-order-place-bar__stat {
    min-width: 0;
}

.tdg-order-place-bar__stat--total {
    text-align: right;
}

.tdg-order-place-bar__label {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 0.15rem;
}

.tdg-order-place-bar__value {
    display: block;
    font-size: 1rem;
    line-height: 1.2;
    color: #e2e8f0;
}

.tdg-order-place-bar__stat--total .tdg-order-place-bar__value {
    color: #fbbf24;
    font-size: 1.05rem;
}

.tdg-order-place-btn {
    width: 100%;
    display: block;
    border: none;
    border-radius: 10px;
    min-height: 48px;
    padding: 12px 24px;
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.25;
    letter-spacing: 0.03em;
    text-align: center;
    color: #94a3b8;
    background: #334155;
    cursor: not-allowed;
    opacity: 0.9;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease, opacity 0.2s ease;
}

.tdg-order-place-btn:disabled {
    color: #94a3b8;
    background: #334155;
    box-shadow: none;
    transform: none;
}

.tdg-order-place-btn--active {
    color: #ffffff;
    background: #2563eb;
    cursor: pointer;
    opacity: 1;
    box-shadow: 0 8px 28px rgba(37, 99, 235, 0.45);
}

.tdg-order-place-btn--active:hover {
    color: #ffffff;
    background: #1d4ed8;
    box-shadow: 0 10px 32px rgba(29, 78, 216, 0.55);
    transform: translateY(-1px);
}

.tdg-order-place-btn--active:active {
    transform: translateY(0);
    box-shadow: 0 6px 20px rgba(29, 78, 216, 0.4);
}

.tdg-order-place-btn--active:focus-visible {
    outline: 2px solid #93c5fd;
    outline-offset: 2px;
}

.tdg-order-kitchen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.tdg-order-kitchen-card {
    position: relative;
    background: var(--tvc-bk-card, #1e293b);
    border: 1px solid var(--tvc-bk-border, #334155);
    border-left: 5px solid #22c55e;
    border-radius: 0.75rem;
    padding: 1rem 1.1rem 1.05rem;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.tdg-order-kitchen-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.tdg-order-kitchen-card.is-filter-hidden {
    display: none;
}

.tdg-order-kitchen-card--sla-green {
    border-left-color: #22c55e;
}

.tdg-order-kitchen-card--sla-yellow {
    border-left-color: #eab308;
}

.tdg-order-kitchen-card--sla-orange {
    border-left-color: #f97316;
}

.tdg-order-kitchen-card--sla-red {
    border-left-color: #ef4444;
}

.tdg-order-kitchen-card__table-badge {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.15;
    color: #0f172a;
    background: linear-gradient(180deg, #fde68a 0%, #fbbf24 100%);
    border: 2px solid #f59e0b;
    border-radius: 0.65rem;
    padding: 0.65rem 0.75rem;
    margin: 0 0 0.75rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
}

.tdg-order-kitchen-card__lines {
    list-style: none;
    padding: 0;
    margin: 0 0 0.75rem;
    font-size: 0.95rem;
}

.tdg-order-kitchen-card__lines li {
    padding: 0.15rem 0;
}

.tdg-order-kitchen-card__time {
    font-size: 0.8rem;
    color: var(--tvc-bk-muted, #94a3b8);
    margin-bottom: 0.75rem;
}

.tdg-order-kitchen-card__status {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
    margin-bottom: 0.75rem;
}

.tdg-order-kitchen-card__status--new {
    background: #1e3a5f;
    color: #93c5fd;
}

.tdg-order-kitchen-card__status--preparing {
    background: #422006;
    color: #fcd34d;
}

.tdg-order-kitchen-card__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
}

.tdg-order-kitchen-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem 0.75rem;
    margin-bottom: 0.65rem;
}

.tdg-order-kitchen-card__order-no {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #93c5fd;
}

.tdg-order-kitchen-card__created {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #94a3b8;
}

.tdg-order-kitchen-card__wait-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.65rem;
    margin-bottom: 0.65rem;
}

.tdg-order-kitchen-card__wait-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    font-variant-numeric: tabular-nums;
    transition: background 180ms ease, color 180ms ease;
}

.tdg-order-kitchen-card__wait-badge--green {
    background: rgba(34, 197, 94, 0.18);
    color: #4ade80;
}

.tdg-order-kitchen-card__wait-badge--yellow {
    background: rgba(234, 179, 8, 0.2);
    color: #fde047;
}

.tdg-order-kitchen-card__wait-badge--orange {
    background: rgba(249, 115, 22, 0.22);
    color: #fdba74;
}

.tdg-order-kitchen-card__wait-badge--red {
    background: rgba(239, 68, 68, 0.22);
    color: #fca5a5;
}

.tdg-order-kitchen-card__wait-icon {
    font-size: 0.95rem;
}

.tdg-order-kitchen-card__wait-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #94a3b8;
}

.tdg-order-kitchen-card__summary {
    margin-bottom: 0.75rem;
}

.tdg-order-kitchen-card__items {
    display: inline-flex;
    align-items: center;
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #e2e8f0;
    background: rgba(51, 65, 85, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.tdg-kitchen-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.85rem;
    width: 100%;
    padding: 0.55rem 0.65rem;
    border-radius: 0.55rem;
    border: 1px solid transparent;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    line-height: 1.15;
    cursor: pointer;
    transition: transform 120ms ease, opacity 120ms ease, box-shadow 120ms ease;
}

.tdg-kitchen-action-btn:disabled,
.tdg-kitchen-action-btn[aria-disabled="true"] {
    opacity: 0.38;
    cursor: not-allowed;
    box-shadow: none;
}

.tdg-kitchen-action-btn:not(:disabled):hover {
    transform: translateY(-1px);
}

.tdg-kitchen-action-btn--accept {
    background: rgba(59, 130, 246, 0.16);
    border-color: rgba(96, 165, 250, 0.35);
    color: #93c5fd;
}

.tdg-kitchen-action-btn--prepare {
    background: #b45309;
    border-color: #f59e0b;
    color: #fff7ed;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.28);
}

.tdg-kitchen-action-btn--ready {
    background: rgba(109, 40, 217, 0.22);
    border-color: rgba(167, 139, 250, 0.35);
    color: #c4b5fd;
}

.tdg-kitchen-action-btn--complete {
    background: #15803d;
    border-color: #22c55e;
    color: #ecfdf5;
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.28);
}

.tdg-kitchen-status-form {
    display: contents;
}

.tdg-kitchen-app {
    --tdg-kitchen-accent: #fb923c;
}

.tdg-kitchen-toolbar__hint {
    font-size: 0.82rem;
    font-weight: 500;
    color: #94a3b8;
}

.tdg-kitchen-toolbar__mute-label {
    margin-left: 0.35rem;
}

.tdg-kitchen-kpi-summary {
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.92) 0%, rgba(30, 41, 59, 0.88) 100%);
    border-radius: 0.75rem;
    padding: 1rem 1.15rem;
}

.tdg-kitchen-kpi-summary__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 0.75rem;
    margin-bottom: 0.45rem;
}

.tdg-kitchen-kpi-summary__title {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fde68a;
}

.tdg-kitchen-kpi-summary__pulse {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #86efac;
    background: rgba(34, 197, 94, 0.14);
    border: 1px solid rgba(74, 222, 128, 0.28);
}

.tdg-kitchen-kpi-summary__pulse::before {
    content: "";
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.65);
    animation: tdg-kitchen-pulse 1.8s ease-out infinite;
}

.tdg-kitchen-kpi-summary__text {
    font-size: 0.92rem;
    font-weight: 600;
    color: #e2e8f0;
    font-variant-numeric: tabular-nums;
}

.tdg-kitchen-kpi-row .tdg-order-kpi-card__hint {
    margin-top: 0.2rem;
    font-size: 0.68rem;
    line-height: 1.35;
}

.tdg-kitchen-load-card {
    --tdg-kpi-accent: #3b82f6;
}

.tdg-kitchen-load-card--normal {
    --tdg-kpi-accent: #3b82f6;
    border-color: rgba(59, 130, 246, 0.28);
}

.tdg-kitchen-load-card--normal .tdg-kitchen-load-card__items {
    color: #93c5fd;
}

.tdg-kitchen-load-card--medium {
    --tdg-kpi-accent: #f97316;
    border-color: rgba(249, 115, 22, 0.32);
}

.tdg-kitchen-load-card--medium .tdg-kitchen-load-card__items {
    color: #fdba74;
}

.tdg-kitchen-load-card--heavy {
    --tdg-kpi-accent: #ef4444;
    border-color: rgba(239, 68, 68, 0.35);
    box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.12), 0 10px 32px rgba(127, 29, 29, 0.18);
}

.tdg-kitchen-load-card--heavy .tdg-kitchen-load-card__items {
    color: #fca5a5;
}

.tdg-kitchen-load-card__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.08rem;
    margin-top: 0.15rem;
}

.tdg-kitchen-load-card__items {
    font-size: clamp(2rem, 3.8vw, 2.55rem);
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
    transition: color 180ms ease;
}

.tdg-kitchen-load-card__items-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #94a3b8;
}

.tdg-kitchen-load-card__orders {
    margin-top: 0.15rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: #cbd5e1;
    font-variant-numeric: tabular-nums;
}

.tdg-kitchen-kpi-longest .tdg-order-kpi-card__value {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.75rem;
}

.tdg-kitchen-kpi-card--alert {
    border-color: rgba(239, 68, 68, 0.45);
    box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.18), 0 10px 32px rgba(127, 29, 29, 0.22);
}

.tdg-kitchen-kpi-card--alert::before {
    background: #ef4444;
}

@keyframes tdg-kitchen-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55);
    }

    70% {
        box-shadow: 0 0 0 0.45rem rgba(74, 222, 128, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(74, 222, 128, 0);
    }
}

.tdg-kitchen-filters {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.tdg-kitchen-filters__group {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.tdg-kitchen-filters__heading {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
}

.tdg-kitchen-filters__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.tdg-kitchen-filter-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.2rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(15, 23, 42, 0.55);
    color: #cbd5e1;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.tdg-kitchen-filter-chip:hover:not(:disabled) {
    border-color: rgba(96, 165, 250, 0.45);
    color: #e2e8f0;
}

.tdg-kitchen-filter-chip.is-active {
    background: rgba(37, 99, 235, 0.18);
    border-color: rgba(96, 165, 250, 0.45);
    color: #bfdbfe;
}

.tdg-kitchen-filter-chip:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.tdg-kitchen-empty,
.tdg-kitchen-filter-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 8rem;
    padding: 1.5rem 1rem;
    border-radius: 0.75rem;
    border: 1px dashed rgba(148, 163, 184, 0.28);
    background: rgba(15, 23, 42, 0.45);
    text-align: center;
    color: #94a3b8;
}

.tdg-kitchen-empty__icon {
    font-size: 2rem;
    color: #64748b;
}

.tdg-kitchen-empty__text {
    font-size: 0.92rem;
    font-weight: 600;
    color: #cbd5e1;
}

.tdg-kitchen-kpi-longest__table {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #94a3b8;
}

@media (max-width: 767.98px) {
    .tdg-order-kitchen-grid {
        grid-template-columns: 1fr;
    }

    .tdg-kitchen-toolbar__mute-label {
        display: none;
    }

    .tdg-kitchen-filters__group--area .tdg-kitchen-filters__chips {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.15rem;
    }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
    .tdg-order-kitchen-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    }
}

.tdg-order-history-period-tabs {
    width: 100%;
}

.tdg-order-history-period-tabs__track {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    max-width: 100%;
    padding: 0.45rem;
    background: rgba(15, 23, 42, 0.68);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
}

.tdg-order-history-period-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 2.5rem;
    padding: 0.55rem 1.2rem;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.2;
    color: #b8c1d1;
    text-decoration: none;
    white-space: nowrap;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 9px;
    background: transparent;
    transition:
        color 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.15s ease;
}

.tdg-order-history-period-tab i {
    font-size: 0.95rem;
    opacity: 0.88;
    flex-shrink: 0;
}

.tdg-order-history-period-tab:hover,
.tdg-order-history-period-tab:focus-visible {
    color: #fff;
    background: rgba(37, 99, 235, 0.16);
    border-color: rgba(59, 130, 246, 0.38);
    text-decoration: none;
    outline: none;
}

.tdg-order-history-period-tab--active,
.tdg-order-history-period-tab--active:hover,
.tdg-order-history-period-tab--active:focus-visible {
    color: #fff;
    font-weight: 700;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    border-color: rgba(96, 165, 250, 0.55);
    box-shadow:
        0 4px 18px rgba(37, 99, 235, 0.45),
        0 0 0 1px rgba(59, 130, 246, 0.28);
}

.tdg-order-history-period-tab--active i {
    opacity: 1;
}

@media (max-width: 575.98px) {
    .tdg-order-history-period-tabs__track {
        display: flex;
        width: 100%;
        padding: 0.4rem;
        gap: 0.4rem;
    }

    .tdg-order-history-period-tab {
        flex: 1 1 calc(50% - 0.25rem);
        min-width: 0;
        padding: 0.5rem 0.65rem;
        font-size: 0.8125rem;
        white-space: normal;
        text-align: center;
    }

    .tdg-order-history-period-tab i {
        font-size: 0.875rem;
    }
}

.tdg-order-history-time-filters {
    width: 100%;
}

.tdg-order-history-custom-range {
    width: 100%;
}

.tdg-order-history-custom-range__fields {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: rgba(15, 23, 42, 0.68);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
}

.tdg-order-history-custom-range__field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 0 1 auto;
    min-width: 9.5rem;
}

.tdg-order-history-custom-range__label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 0;
}

.tdg-order-history-custom-range__input {
    min-height: 2.5rem;
    padding: 0.45rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 9px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.tdg-order-history-custom-range__input:focus {
    color: #ffffff;
    background: rgba(15, 23, 42, 0.92);
    border-color: rgba(96, 165, 250, 0.65);
    box-shadow: 0 0 0 0.15rem rgba(37, 99, 235, 0.18);
    outline: none;
}

.tdg-order-history-custom-range__input::-webkit-calendar-picker-indicator {
    filter: invert(0.85);
    cursor: pointer;
}

.tdg-order-history-custom-range__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    flex: 0 1 auto;
}

.tdg-order-history-custom-range__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.5rem;
    padding: 0.55rem 1.15rem;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    border-radius: 9px;
    border: 1px solid transparent;
    cursor: pointer;
    transition:
        color 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.15s ease;
}

.tdg-order-history-custom-range__btn--apply {
    color: #ffffff;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-color: rgba(96, 165, 250, 0.45);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.28);
}

.tdg-order-history-custom-range__btn--apply:hover,
.tdg-order-history-custom-range__btn--apply:focus-visible {
    color: #ffffff;
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    border-color: rgba(147, 197, 253, 0.65);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.34);
    outline: none;
}

.tdg-order-history-custom-range__btn--reset {
    color: #cbd5e1;
    background: transparent;
    border-color: rgba(148, 163, 184, 0.35);
}

.tdg-order-history-custom-range__btn--reset:hover,
.tdg-order-history-custom-range__btn--reset:focus-visible {
    color: #ffffff;
    background: rgba(148, 163, 184, 0.12);
    border-color: rgba(148, 163, 184, 0.55);
    text-decoration: none;
    outline: none;
}

@media (max-width: 575.98px) {
    .tdg-order-history-custom-range__field {
        flex: 1 1 calc(50% - 0.375rem);
        min-width: 0;
    }

    .tdg-order-history-custom-range__actions {
        width: 100%;
    }

    .tdg-order-history-custom-range__btn {
        flex: 1 1 calc(50% - 0.25rem);
    }
}

.tdg-order-history-status-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.tdg-order-history-status-pill {
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 999px;
    padding: 0.35rem 0.85rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #cbd5e1;
    background: rgba(15, 23, 42, 0.75);
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.tdg-order-history-status-pill:hover {
    border-color: rgba(59, 130, 246, 0.45);
    color: #e2e8f0;
}

.tdg-order-history-status-pill.active {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

.tdg-order-history-empty {
    text-align: center;
    padding: 2.5rem 1.25rem;
    border-radius: 0.75rem;
    background: rgba(15, 23, 42, 0.45);
    border: 1px dashed rgba(148, 163, 184, 0.28);
}

.tdg-order-history-empty--filtered {
    margin-top: 0.5rem;
    padding: 1.75rem 1rem;
}

.tdg-order-history-empty__icon {
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 0.65rem;
    opacity: 0.85;
}

.tdg-order-history-empty__title {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #e2e8f0;
}

.tdg-order-history-empty__hint {
    margin: 0;
    font-size: 0.82rem;
    color: #94a3b8;
}

.tdg-order-history-row--pending-print > td {
    box-shadow: inset 3px 0 0 rgba(251, 191, 36, 0.55);
}

.tdg-order-history-row--pending-print:hover > td {
    background-color: #172554 !important;
}

.tdg-order-history-print-cell {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
}

.tdg-order-reprint-warning {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #fbbf24;
    white-space: nowrap;
    cursor: help;
}

.tdg-order-history-summary__card {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-height: 4.5rem;
    padding: 0.75rem 0.9rem;
    border-radius: 0.65rem;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-left: 3px solid rgba(59, 130, 246, 0.55);
}

.tdg-order-history-summary__icon {
    font-size: 1rem;
    line-height: 1;
    opacity: 0.9;
}

.tdg-order-history-summary__card--completed {
    border-left-color: rgba(34, 197, 94, 0.65);
}

.tdg-order-history-summary__card--printed {
    border-left-color: rgba(16, 185, 129, 0.65);
}

.tdg-order-history-summary__card--pending {
    border-left-color: rgba(251, 191, 36, 0.65);
}

.tdg-order-history-summary__value {
    font-size: 1.485rem;
    font-weight: 800;
    line-height: 1.1;
    color: #f8fafc;
}

.tdg-order-history-summary__label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #94a3b8;
}

.tdg-order-history-table-wrap {
    max-height: min(70vh, 42rem);
    overflow: auto;
    border-radius: 0.65rem;
    border: 1px solid #1E293B;
    background: #0B1220;
}

.tdg-order-history-table {
    margin-bottom: 0;
    font-size: 0.88rem;
    --bs-table-bg: #0B1220;
    --bs-table-hover-bg: #172554;
    --bs-table-color: #ffffff;
    --bs-table-border-color: #1E293B;
    background-color: #0B1220;
    border-color: #1E293B;
}

.tdg-order-history-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    font-size: 0.72rem;
    color: #F8FAFC !important;
    background: #1E293B !important;
    border-color: #334155 !important;
    border-bottom: 1px solid #334155 !important;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.9);
}

.tdg-order-history-table thead th .tdg-analytics-grid__col-title,
.tdg-order-history-table thead th .tdg-master-grid__primary {
    color: #F8FAFC !important;
}

.tdg-order-history-table thead th .tdg-analytics-grid__col-hint,
.tdg-order-history-table thead th .tdg-master-grid__secondary {
    color: #94A3B8 !important;
}

.tdg-order-history-table thead th.tdg-analytics-grid__col-date {
    white-space: normal;
}

.tdg-order-history-table tbody tr {
    transition: background-color 0.15s ease;
}

.tdg-order-history-table.table-hover > tbody > tr:hover > * {
    --bs-table-bg-state: #172554;
    --bs-table-color-state: #ffffff;
}

.tdg-order-history-table > tbody > tr > td {
    background-color: #0B1220 !important;
    color: #ffffff !important;
    vertical-align: middle;
    border-color: #1E293B !important;
    --bs-table-bg-state: #0B1220;
    box-shadow: none !important;
}

.tdg-order-history-table.table-hover > tbody > tr:not(.tdg-order-master-table__row--current):hover > td {
    background-color: #172554 !important;
}

.tdg-order-history-table tbody tr > td:nth-child(2) .tdg-order-history-order-link {
    color: #ffffff !important;
}

.tdg-order-history-table tbody tr > td:nth-child(2) .tdg-order-history-order-link:hover {
    color: #BFDBFE !important;
}

.tdg-order-history-table tbody tr > td:nth-child(2) .tdg-order-history-order-source {
    color: #C5CED8 !important;
}

.tdg-order-history-table tbody tr > td:nth-child(3) {
    color: #ffffff !important;
}

.tdg-order-history-table tbody tr > td:nth-child(4) {
    color: #C5CED8 !important;
}

.tdg-order-history-table tbody tr > td:nth-child(8) {
    color: #ffffff !important;
}

.tdg-order-history-table td {
    vertical-align: middle;
}

.tdg-order-history-table__actions-col {
    min-width: 13.5rem;
}

.tdg-order-history-edit-hint {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    border: 1px solid rgba(96, 165, 250, 0.28);
    background: rgba(37, 99, 235, 0.08);
    color: #cbd5e1;
    font-size: 0.78rem;
    line-height: 1.45;
}

.tdg-order-history-edit-hint .bi {
    color: #93c5fd;
    font-size: 1rem;
    margin-top: 0.05rem;
    flex-shrink: 0;
}

.tdg-order-history-order-link {
    display: inline-block;
    font-weight: 700;
    color: #93c5fd;
    text-decoration: none;
    line-height: 1.2;
}

.tdg-order-history-order-link:hover {
    color: #bfdbfe;
    text-decoration: underline;
}

.tdg-order-history-order-link--editable {
    color: #bfdbfe;
}

.tdg-order-history-order-link__icon {
    margin-right: 0.25rem;
    font-size: 0.85rem;
    vertical-align: -0.05rem;
}

.tdg-order-history-order-source--action {
    color: #93c5fd;
}

.tdg-order-editable-badge {
    display: inline-flex;
    align-items: center;
    margin-left: 0.35rem;
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fef3c7;
    background: rgba(217, 119, 6, 0.22);
    border: 1px solid rgba(251, 191, 36, 0.35);
    vertical-align: middle;
}

.tdg-order-history-row--editable {
    background: rgba(37, 99, 235, 0.04);
}

.tdg-order-history-actions {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 0.35rem;
}

.tdg-order-history-edit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 38px;
    padding: 0.45rem 0.75rem;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    text-decoration: none;
    color: #e2e8f0 !important;
    background: #334155;
    border: 1px solid #475569;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.tdg-order-history-edit-btn:hover {
    color: #fff !important;
    background: #475569;
    transform: translateY(-1px);
}

.tdg-order-history-edit-btn--primary {
    color: #fff !important;
    background: #d97706;
    border-color: #b45309;
    box-shadow: 0 2px 8px rgba(217, 119, 6, 0.3);
}

.tdg-order-history-edit-btn--primary:hover {
    color: #fff !important;
    background: #b45309;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.25);
}

.tdg-order-history-edit-btn .bi {
    font-size: 0.95rem;
}

.tdg-order-history-status--completed {
    background: #16a34a !important;
    color: #fff !important;
}

.tdg-order-print-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.75rem;
    padding: 0.18rem 0.5rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    line-height: 1.2;
    white-space: nowrap;
}

.tdg-order-print-count--0 {
    background: #475569;
    color: #e2e8f0;
}

.tdg-order-print-count--1 {
    background: #15803d;
    color: #fff;
}

.tdg-order-print-count--2 {
    background: #b45309;
    color: #fff;
}

.tdg-order-print-count--3plus {
    background: #b91c1c;
    color: #fff;
}

.tdg-order-history-print-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 38px;
    padding: 0.45rem 0.85rem;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    color: #fff !important;
    background: #2563eb;
    border: 1px solid #1d4ed8;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.tdg-order-history-print-btn:hover {
    color: #fff !important;
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.tdg-order-history-print-btn .bi {
    font-size: 0.95rem;
}

.tdg-order-history-bulk-form {
    margin-bottom: 0;
}

.tdg-order-history-bulk-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    padding: 0.65rem 0.85rem;
    border: 1px solid rgba(251, 191, 36, 0.28);
    border-radius: 0.65rem;
    background: rgba(15, 23, 42, 0.55);
}

.tdg-order-history-bulk-bar__select-all {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #e2e8f0;
    cursor: pointer;
    user-select: none;
}

.tdg-order-history-bulk-bar__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tdg-order-history-bulk-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 38px;
    padding: 0 1rem;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.tdg-order-history-bulk-btn:hover {
    transform: translateY(-1px);
    color: #fff;
}

.tdg-order-history-bulk-btn--lock {
    background: #dc2626;
}

.tdg-order-history-bulk-btn--lock:hover {
    background: #b91c1c;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.28);
}

.tdg-order-history-bulk-btn--unlock {
    background: #16a34a;
}

.tdg-order-history-bulk-btn--unlock:hover {
    background: #15803d;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.28);
}

.tdg-order-history-bulk-check {
    width: 1rem;
    height: 1rem;
    accent-color: #fbbf24;
    cursor: pointer;
}

.tdg-order-history-table__check-col {
    width: 2.5rem;
    text-align: center;
}

.tdg-order-lock-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.tdg-order-lock-badge--open {
    color: #475569;
    background: #e2e8f0;
    border: 1px solid #cbd5e1;
}

.tdg-order-lock-badge--locked {
    color: #fff;
    background: #dc2626;
    border: 1px solid #b91c1c;
}

.tdg-order-history-row--locked > td {
    box-shadow: inset 3px 0 0 rgba(220, 38, 38, 0.45);
}

.tdg-order-history-row--locked:hover > td {
    background-color: #172554 !important;
}

.tdg-order-locked-banner {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 0.65rem;
    border: 1px solid rgba(220, 38, 38, 0.45);
    background: rgba(220, 38, 38, 0.12);
    color: #fecaca;
}

.tdg-order-locked-banner__icon {
    font-size: 1.35rem;
    line-height: 1;
}

.tdg-order-locked-banner__title {
    display: block;
    color: #fff;
    margin-bottom: 0.15rem;
}

.tdg-order-locked-banner__text {
    color: #fecaca;
    font-size: 0.9rem;
}

.tdg-order-detail-body--locked .card:not(.tdg-order-detail-print) {
    opacity: 0.92;
}

.tdg-order-detail-body--locked .tdg-order-bill__table tbody td,
.tdg-order-detail-body--locked .tdg-order-bill__table thead th {
    color: #64748b;
}

@media (max-width: 767.98px) {
    .tdg-order-history-table-wrap {
        max-height: none;
    }

    .tdg-order-history-print-btn {
        width: 100%;
    }

    .tdg-order-history-table__actions-col,
    .tdg-order-history-table td:last-child {
        min-width: 7.5rem;
    }
}

/* Dashboard */
.tvc-booking-module--viewport {
    --tdg-control-radius: 0.65rem;
    --tdg-control-height: 2.5rem;
    --tdg-control-border: 1px solid rgba(251, 191, 36, 0.42);
}

.tdg-order-dashboard {
    --tdg-control-radius: 0.65rem;
    --tdg-control-height: 2.5rem;
    --tdg-control-border: 1px solid rgba(251, 191, 36, 0.42);
}

.tdg-order-system-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2rem;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #ffffff;
    padding: 0.35rem 0.75rem;
    border-radius: var(--tdg-control-radius, 0.65rem);
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 45%, #d97706 100%);
    border: var(--tdg-control-border, 1px solid rgba(251, 191, 36, 0.42));
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
    white-space: nowrap;
}

.tdg-order-dashboard__topbar {
    padding-top: 0;
    margin-bottom: 0;
}

.tvc-booking-module--tdg {
    padding-top: 0.15rem !important;
}

.tdg-order-subnav {
    margin-bottom: 0.5rem !important;
}

.tdg-order-layout-bar {
    margin-bottom: 0 !important;
}

.tdg-order-dashboard__hero {
    padding: 0;
    margin-bottom: 0.1rem;
}

.tdg-order-dashboard__title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 0.75rem;
    margin-bottom: 0.2rem;
}

.tdg-order-dashboard__title-row .tdg-order-dashboard__brand {
    margin: 0;
    flex: 1 1 auto;
    min-width: 0;
}

.tdg-order-dashboard__eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #93c5fd;
    margin: 0 0 0.25rem;
}

.tdg-order-dashboard__brand {
    font-size: clamp(1.85rem, 4.5vw, 2.65rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: 0.06em;
    color: #fde68a;
    margin: 0 0 0.2rem;
    text-shadow: 0 2px 18px rgba(251, 191, 36, 0.22);
}

.tdg-order-dashboard__title {
    font-size: clamp(1.05rem, 2.2vw, 1.35rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.01em;
    color: #f3f6fb;
    margin: 0 0 0.2rem;
}

.tdg-order-dashboard__subtitle {
    font-size: clamp(0.9rem, 1.5vw, 1.05rem);
    line-height: 1.4;
    color: #dfe7f5;
    margin: 0;
    max-width: 52rem;
}

.tdg-order-dashboard__date-sep {
    color: rgba(223, 231, 245, 0.55);
}

.tdg-order-dashboard__date {
    color: #c9d6ea;
    font-weight: 600;
    white-space: nowrap;
}

.tdg-order-dashboard__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    flex: 0 0 auto;
    justify-content: flex-end;
}

.tdg-order-dashboard__action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 2.25rem;
    padding: 0.45rem 1rem;
    border-radius: var(--tdg-control-radius, 0.65rem);
    border: var(--tdg-control-border, 1px solid rgba(251, 191, 36, 0.42));
    background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    font-size: 0.9375rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.4);
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.tdg-order-dashboard__action-btn--gold {
    background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
    border-color: rgba(253, 230, 138, 0.45);
    box-shadow: 0 8px 22px rgba(217, 119, 6, 0.35);
}

.tdg-order-dashboard__action-btn:hover,
.tdg-order-dashboard__action-btn:focus-visible {
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-1px);
}

.tdg-order-dashboard__action-btn:hover {
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.5);
}

.tdg-order-dashboard__action-btn--gold:hover {
    box-shadow: 0 12px 28px rgba(217, 119, 6, 0.45);
}

.tdg-order-dashboard__action-btn:active {
    transform: translateY(0);
}

.tdg-order-dashboard__action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 0.35rem;
    background: rgba(255, 255, 255, 0.2);
    font-size: 1.1rem;
    line-height: 1;
    font-weight: 700;
}

.tdg-order-kpi-row {
    margin-top: 0.05rem;
}

.tdg-order-dashboard__subtitle--ops {
    letter-spacing: 0.02em;
    color: #cbd5e1;
}

.tdg-order-kpi-row--compact {
    margin-top: 0.35rem;
}

.tdg-order-kpi-card--compact {
    padding: 0.8rem 0.95rem 0.75rem;
    min-height: 7.25rem;
}

.tdg-order-kpi-row--compact .tdg-order-kpi-card__value {
    font-size: clamp(1.85rem, 3.2vw, 2.35rem);
}

.tdg-order-kpi-row--compact .tdg-order-kpi-card__hint {
    margin-top: 0.3rem;
    font-size: 0.75rem;
}

.tdg-order-kpi-card--menu { --tdg-kpi-accent: #38bdf8; }
.tdg-order-kpi-card--kitchen { --tdg-kpi-accent: #fb923c; }

.tdg-order-kpi-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.3rem;
    background: linear-gradient(165deg, rgba(30, 41, 59, 0.98) 0%, rgba(15, 23, 42, 0.95) 100%);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 1rem;
    padding: 1rem 1.1rem 0.95rem;
    height: 100%;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.22);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tdg-order-kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
}

.tdg-order-kpi-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--tdg-kpi-accent, #3b82f6);
}

.tdg-order-kpi-card--orders { --tdg-kpi-accent: #3b82f6; }
.tdg-order-kpi-card--revenue { --tdg-kpi-accent: #f59e0b; }
.tdg-order-kpi-card--avg { --tdg-kpi-accent: #60a5fa; }
.tdg-order-kpi-card--qr { --tdg-kpi-accent: #eab308; }
.tdg-order-kpi-card--open { --tdg-kpi-accent: #fbbf24; }
.tdg-order-kpi-card--completed { --tdg-kpi-accent: #22c55e; }
.tdg-order-kpi-card--locked { --tdg-kpi-accent: #dc2626; }
.tdg-order-kpi-card--unlocked { --tdg-kpi-accent: #16a34a; }
.tdg-order-kpi-card--tables { --tdg-kpi-accent: #a78bfa; }

.tdg-order-kpi-card__icon {
    display: block;
    font-size: 1.35rem;
    line-height: 1;
    margin-bottom: 0;
    opacity: 0.9;
}

.tdg-order-kpi-card__label {
    display: block;
    font-size: 0.8425rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #e2e8f0;
    margin-bottom: 0;
    line-height: 1.25;
}

.tdg-order-kpi-card__value {
    display: block;
    font-size: clamp(2.2rem, 4.4vw, 2.7rem);
    line-height: 1;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
    margin-top: 0.1rem;
}

.tdg-order-kpi-card__value--warn {
    color: #fde047;
}

.tdg-order-kpi-card__value--ok {
    color: #4ade80;
}

.tdg-order-kpi-card__hint {
    display: block;
    margin-top: 0.45rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #94a3b8;
}

.tdg-order-panel {
    border-radius: 1rem !important;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
}

.tdg-order-panel-title {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #f1f5f9;
    margin: 0;
}

.tdg-order-panel-title--sm {
    font-size: 0.92rem;
}

.tdg-order-dashboard-table {
    font-size: 0.9rem;
}

.tdg-order-status-badge {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
}

.tdg-order-status-badge--new {
    background: #7f1d1d;
    color: #fecaca;
}

.tdg-order-status-badge--preparing {
    background: #713f12;
    color: #fde68a;
}

.tdg-order-status-badge--done {
    background: #14532d;
    color: #bbf7d0;
}

.tdg-order-status-badge--available {
    background: #334155;
    color: #cbd5e1;
}

.tdg-order-status-badge--inactive {
    background: #1f2937;
    color: #9ca3af;
}

.tdg-order-dashboard__shortcuts .btn {
    min-width: 7.5rem;
}

@media (max-width: 575.98px) {
    .tdg-order-system-badge {
        font-size: 0.68rem;
        min-height: 1.85rem;
        padding: 0.3rem 0.6rem;
        letter-spacing: 0.05em;
    }

    .tdg-order-dashboard__title-row {
        flex-direction: column;
        align-items: stretch;
    }

    .tdg-order-dashboard__actions {
        justify-content: stretch;
        flex-direction: column;
    }

    .tdg-order-dashboard__action-btn {
        width: 100%;
    }

    .tdg-order-kpi-card {
        padding: 1rem;
    }
}

@media (min-width: 576px) and (max-width: 991.98px) {
    .tdg-order-dashboard__action-btn {
        min-width: 10rem;
        flex: 1 1 auto;
    }
}

.tdg-order-master-toolbar .btn {
    min-width: 7.5rem;
}

.tdg-order-master-table {
    font-size: 0.9rem;
}

.tdg-order-master-table tbody tr {
    transition: background 0.15s ease;
}

.tdg-order-master-table.table-hover > tbody > tr:hover > * {
    background-color: rgba(37, 99, 235, 0.04) !important;
    --bs-table-bg-state: rgba(37, 99, 235, 0.04);
    --bs-table-color-state: inherit;
}

.tdg-order-master-table__actions {
    min-width: 20rem;
    text-align: left;
    vertical-align: middle;
}

.tdg-order-master-table thead .tdg-order-master-table__actions {
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.5px;
}

.tdg-table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
    align-items: center;
}

.tdg-action-btn,
.tdg-table-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 38px;
    min-width: 100px;
    padding: 0.45rem 0.85rem;
    border-radius: 8px;
    border: none;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tdg-action-btn .bi,
.tdg-table-action-btn .bi {
    font-size: 0.95rem;
    line-height: 1;
}

.tdg-action-btn--qr,
.tdg-table-action-btn--qr {
    background: #0ea5e9;
    color: #ffffff;
    min-width: 112px;
    box-shadow: 0 2px 10px rgba(14, 165, 233, 0.35);
}

.tdg-action-btn--qr .bi,
.tdg-table-action-btn--qr .bi {
    font-size: 1.08rem;
}

.tdg-action-btn--qr:hover,
.tdg-action-btn--qr:focus-visible,
.tdg-table-action-btn--qr:hover,
.tdg-table-action-btn--qr:focus-visible {
    background: #0284c7;
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.4);
}

.tdg-action-btn--edit,
.tdg-table-action-btn--edit {
    background: #2563eb;
    color: #ffffff;
}

.tdg-action-btn--edit:hover,
.tdg-action-btn--edit:focus-visible,
.tdg-table-action-btn--edit:hover,
.tdg-table-action-btn--edit:focus-visible {
    background: #1d4ed8;
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.tdg-action-btn--deactivate,
.tdg-table-action-btn--deactivate {
    background: #f59e0b;
    color: #111827;
}

.tdg-action-btn--deactivate:hover,
.tdg-action-btn--deactivate:focus-visible,
.tdg-table-action-btn--deactivate:hover,
.tdg-table-action-btn--deactivate:focus-visible {
    background: #d97706;
    color: #111827;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.tdg-action-btn--primary {
    background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    border: 1px solid rgba(251, 191, 36, 0.35);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.tdg-action-btn--primary:hover,
.tdg-action-btn--primary:focus-visible {
    background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.tdg-action-btn--secondary {
    background: #334155;
    color: #e2e8f0;
    border: 1px solid rgba(148, 163, 184, 0.35);
}

.tdg-action-btn--secondary:hover,
.tdg-action-btn--secondary:focus-visible {
    background: #1e293b;
    color: #f8fafc;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.tdg-action-btn:active,
.tdg-table-action-btn:active {
    transform: translateY(0);
}

.tdg-order-dashboard__action-btn {
    min-height: 38px;
    min-width: 100px;
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: 0.2px;
    transition: all 0.2s ease;
}

.tdg-tables-workflow-banner {
    margin-bottom: 0.85rem;
    padding: 0.75rem 1rem;
    border-radius: 0.65rem;
    border: 1px solid rgba(251, 191, 36, 0.28);
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.55) 0%, rgba(15, 23, 42, 0.72) 100%);
}

.tdg-tables-workflow-banner__eyebrow {
    margin: 0 0 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fde68a;
}

.tdg-tables-workflow-banner__steps {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.45;
    color: #dfe7f5;
}

.tdg-tables-summary__count {
    font-size: 0.9rem;
    font-weight: 600;
    color: #e2e8f0;
}

.tdg-tables-summary__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: rgba(22, 101, 52, 0.22);
    border: 1px solid rgba(74, 222, 128, 0.35);
    font-size: 0.72rem;
    font-weight: 700;
    color: #bbf7d0;
    letter-spacing: 0.02em;
}

.tdg-tables-summary__badge-dot {
    font-size: 0.45rem;
    color: #4ade80;
}

.tdg-tables-toolbar__actions {
    justify-content: flex-end;
}

.tdg-table-code {
    font-size: 0.82rem;
    font-weight: 700;
    color: #8ec5ff;
    background: rgba(15, 23, 42, 0.35);
    padding: 0.15rem 0.4rem;
    border-radius: 0.35rem;
    opacity: 1;
}

/* Management grids — stacked primary / secondary cell lines */
.tdg-master-grid__primary,
.tdg-table-name,
.tdg-analytics-grid__col-title {
    display: block;
    font-weight: 600;
    color: var(--tdg-ds-text-primary, #ffffff);
    opacity: 1;
}

.tdg-master-grid__secondary,
.tdg-table-name__hint,
.tdg-order-history-order-source,
.tdg-analytics-grid__col-hint {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.8125rem;
    font-weight: 400;
    line-height: 1.35;
    color: var(--tdg-ds-text, #e2e8f0);
    opacity: 1;
}

/* Tables master grid — explicit row typography (never inherit muted table cell color) */
.tdg-order-master-table code.tdg-table-code,
.tdg-order-master-table .tdg-table-code {
    font-weight: 700;
    color: #8ec5ff;
    opacity: 1;
}

.tdg-order-master-table .tdg-table-name,
.tdg-order-master-table .tdg-table-name.tdg-master-grid__primary {
    font-weight: 700;
    font-size: 1.08rem;
    color: #ffffff;
    opacity: 1;
}

.tdg-order-master-table .tdg-table-name__hint,
.tdg-order-master-table .tdg-table-name__hint.tdg-master-grid__secondary {
    color: #cbd5e1;
    font-size: 0.92rem;
    opacity: 1;
}

.tdg-analytics-grid__col-head .tdg-analytics-grid__col-title,
.tdg-analytics-grid__col-head .tdg-master-grid__primary {
    font-size: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
}

.tdg-analytics-grid__col-hint,
.tdg-analytics-grid__col-head .tdg-master-grid__secondary {
    margin-top: 0.1rem;
    font-size: 0.6875rem;
    letter-spacing: 0;
    text-transform: none;
}

.tdg-order-history-order-source {
    margin-top: 0.12rem;
}

.tdg-tables-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2.5rem 1.5rem;
    border-radius: 0.75rem;
    border: 1px dashed rgba(148, 163, 184, 0.35);
    background: rgba(15, 23, 42, 0.35);
}

.tdg-tables-empty__icon {
    font-size: 2.5rem;
    color: #64748b;
    margin-bottom: 0.75rem;
}

.tdg-tables-empty__title {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #e2e8f0;
}

.tdg-tables-empty__hint {
    margin: 0 0 1rem;
    font-size: 0.88rem;
    color: #94a3b8;
}

.tdg-order-module-footer {
    margin-top: 1.5rem;
    padding: 1.15rem 0 1.35rem;
    border-top: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(15, 23, 42, 0.55);
}

.tdg-order-module-footer__title {
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #fde68a;
}

.tdg-order-module-footer__stack {
    font-size: 0.78rem;
    font-weight: 600;
    color: #cbd5e1;
}

.tdg-order-module-footer__copy,
.tdg-order-module-footer__portfolio {
    font-size: 0.75rem;
    color: #94a3b8;
}

.tdg-order-module-footer__email a {
    font-size: 0.75rem;
    color: #93c5fd;
    text-decoration: none;
}

.tdg-order-module-footer__email a:hover {
    color: #bfdbfe;
    text-decoration: underline;
}

body.tvc-dash-body--tdg .tvc-dash-footer {
    display: none;
}

@media (max-width: 575.98px) {
    .tdg-order-master-table__actions {
        min-width: 0;
    }

    .tdg-table-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .tdg-action-btn,
    .tdg-table-action-btn {
        width: 100%;
        min-width: 0;
        min-height: 38px;
    }

    .tdg-tables-toolbar__actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .tdg-tables-workflow-banner__steps {
        font-size: 0.76rem;
    }
}

.tdg-order-status-badge--active {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #166534;
    color: #dcfce7;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.68rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.tdg-order-status-badge__live-dot {
    font-size: 0.42rem;
    color: #4ade80;
    line-height: 1;
}

.tdg-order-master-table .tdg-order-status-badge--inactive {
    padding: 6px 12px;
    font-weight: 700;
}

.tdg-order-master-table__row--inactive td {
    color: var(--tdg-ds-text-muted, #94a3b8);
}

.tdg-order-master-table__row--inactive code.tdg-table-code,
.tdg-order-master-table__row--inactive .tdg-table-code {
    color: #8ec5ff;
    opacity: 1;
}

.tdg-order-master-table__row--inactive .tdg-master-grid__primary,
.tdg-order-master-table__row--inactive .tdg-table-name {
    color: #ffffff;
    opacity: 1;
}

.tdg-order-master-table__row--inactive .tdg-master-grid__secondary,
.tdg-order-master-table__row--inactive .tdg-table-name__hint {
    color: #cbd5e1;
    opacity: 1;
}

/* Tables page — dark master grid (scoped; does not affect Items / CompanyUsers) */
.tdg-tables-page .tdg-order-master-table {
    --bs-table-bg: #0B1220;
    --bs-table-striped-bg: #0B1220;
    --bs-table-hover-bg: #172554;
    --bs-table-color: #ffffff;
    --bs-table-border-color: #1E293B;
    background-color: #0B1220;
    border-color: #1E293B;
}

.tdg-tables-page .tdg-order-master-table thead th {
    background-color: #1E293B !important;
    color: #F8FAFC !important;
    border-color: #334155 !important;
}

.tdg-tables-page .tdg-order-master-table > tbody > tr > td {
    background-color: #0B1220 !important;
    color: #ffffff !important;
    border-color: #1E293B !important;
    --bs-table-bg-state: #0B1220;
    --bs-table-color-state: #ffffff;
    box-shadow: none !important;
}

.tdg-tables-page .tdg-order-master-table.table-striped > tbody > tr:nth-of-type(even) > td,
.tdg-tables-page .tdg-order-master-table.table-striped > tbody > tr:nth-of-type(odd) > td {
    background-color: #0B1220 !important;
    --bs-table-bg-type: #0B1220;
    --bs-table-striped-bg: #0B1220;
    box-shadow: none !important;
}

.tdg-tables-page .tdg-order-master-table.table-hover > tbody > tr:hover > * {
    --bs-table-bg-state: #172554;
    --bs-table-color-state: #ffffff;
}

.tdg-tables-page .tdg-order-master-table .tdg-table-name,
.tdg-tables-page .tdg-order-master-table .tdg-table-name.tdg-master-grid__primary {
    font-weight: 700;
    font-size: 1.08rem;
    color: #ffffff !important;
}

.tdg-tables-page .tdg-order-master-table .tdg-table-name__hint,
.tdg-tables-page .tdg-order-master-table .tdg-table-name__hint.tdg-master-grid__secondary {
    color: #C5CED8 !important;
    font-size: 0.92rem;
}

.tdg-tables-page .tdg-order-master-table code.tdg-table-code,
.tdg-tables-page .tdg-order-master-table .tdg-table-code {
    font-weight: 700;
    color: #8ec5ff !important;
    background: rgba(37, 99, 235, 0.22) !important;
}

.tdg-tables-page .tdg-order-master-table.table-hover > tbody > tr:not(.tdg-order-master-table__row--current):not(.tdg-order-master-table__row--inactive):hover > td {
    background-color: #172554 !important;
}

.tdg-tables-page .tdg-order-master-table.table-hover > tbody > tr:not(.tdg-order-master-table__row--current):not(.tdg-order-master-table__row--inactive):hover > td .tdg-table-name,
.tdg-tables-page .tdg-order-master-table.table-hover > tbody > tr:not(.tdg-order-master-table__row--current):not(.tdg-order-master-table__row--inactive):hover > td .tdg-table-name.tdg-master-grid__primary {
    color: #ffffff !important;
}

.tdg-tables-page .tdg-order-master-table.table-hover > tbody > tr:not(.tdg-order-master-table__row--current):not(.tdg-order-master-table__row--inactive):hover > td .tdg-table-name__hint,
.tdg-tables-page .tdg-order-master-table.table-hover > tbody > tr:not(.tdg-order-master-table__row--current):not(.tdg-order-master-table__row--inactive):hover > td .tdg-table-name__hint.tdg-master-grid__secondary {
    color: #C5CED8 !important;
}

.tdg-tables-page .tdg-order-master-table.table-hover > tbody > tr:not(.tdg-order-master-table__row--current):not(.tdg-order-master-table__row--inactive):hover > td code.tdg-table-code,
.tdg-tables-page .tdg-order-master-table.table-hover > tbody > tr:not(.tdg-order-master-table__row--current):not(.tdg-order-master-table__row--inactive):hover > td .tdg-table-code {
    color: #8ec5ff !important;
    background: rgba(37, 99, 235, 0.28) !important;
}

.tdg-tables-page .tdg-order-master-table__row--inactive > td {
    background-color: #070B14 !important;
    color: #94A3B8 !important;
}

.tdg-tables-page .tdg-order-master-table__row--inactive .tdg-table-name,
.tdg-tables-page .tdg-order-master-table__row--inactive .tdg-table-name.tdg-master-grid__primary {
    color: #CBD5E1 !important;
}

.tdg-tables-page .tdg-order-master-table__row--inactive .tdg-table-name__hint,
.tdg-tables-page .tdg-order-master-table__row--inactive .tdg-table-name__hint.tdg-master-grid__secondary {
    color: #64748B !important;
}

.tdg-tables-page .tdg-order-master-table__row--inactive code.tdg-table-code,
.tdg-tables-page .tdg-order-master-table__row--inactive .tdg-table-code {
    color: #8ec5ff !important;
    background: rgba(37, 99, 235, 0.14) !important;
}

/* Tables page — current / active row indicator */
.tdg-tables-page .tdg-order-master-table__row--current:not(.tdg-order-master-table__row--inactive) > td {
    background-color: #1E3A8A !important;
    color: #ffffff !important;
    box-shadow:
        inset 0 0 0 1px rgba(96, 165, 250, 0.45),
        0 0 14px rgba(37, 99, 235, 0.28) !important;
}

.tdg-tables-page .tdg-order-master-table__row--current:not(.tdg-order-master-table__row--inactive) > td:first-child {
    border-left: 4px solid #60A5FA !important;
}

.tdg-tables-page .tdg-order-master-table__row--current:not(.tdg-order-master-table__row--inactive) > td:first-child .tdg-table-code {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.tdg-tables-page .tdg-order-master-table__row--current:not(.tdg-order-master-table__row--inactive) > td:first-child .tdg-table-code::before {
    content: "\25B6";
    color: #BFDBFE;
    font-size: 1.125rem;
    line-height: 1;
    flex-shrink: 0;
}

.tdg-tables-page .tdg-order-master-table__row--current:not(.tdg-order-master-table__row--inactive) .tdg-table-name,
.tdg-tables-page .tdg-order-master-table__row--current:not(.tdg-order-master-table__row--inactive) .tdg-table-name.tdg-master-grid__primary {
    color: #ffffff !important;
}

.tdg-tables-page .tdg-order-master-table__row--current:not(.tdg-order-master-table__row--inactive) .tdg-table-name__hint,
.tdg-tables-page .tdg-order-master-table__row--current:not(.tdg-order-master-table__row--inactive) .tdg-table-name__hint.tdg-master-grid__secondary {
    color: #DBEAFE !important;
}

.tdg-tables-page .tdg-order-master-table__row--current:not(.tdg-order-master-table__row--inactive) code.tdg-table-code,
.tdg-tables-page .tdg-order-master-table__row--current:not(.tdg-order-master-table__row--inactive) .tdg-table-code {
    color: #BFDBFE !important;
    background: rgba(59, 130, 246, 0.35) !important;
}

.tdg-tables-page .tdg-order-master-table.table-hover > tbody > tr.tdg-order-master-table__row--current:not(.tdg-order-master-table__row--inactive):hover > td {
    background-color: #1D4ED8 !important;
    box-shadow:
        inset 0 0 0 1px rgba(147, 197, 253, 0.5),
        0 0 16px rgba(37, 99, 235, 0.38) !important;
}

/* Items page — dark master grid (scoped; matches Tables workspace style) */
.tdg-items-page .tdg-order-master-table {
    --bs-table-bg: #0B1220;
    --bs-table-striped-bg: #0B1220;
    --bs-table-hover-bg: #172554;
    --bs-table-color: #ffffff;
    --bs-table-border-color: #1E293B;
    background-color: #0B1220;
    border-color: #1E293B;
}

.tdg-items-page .tdg-order-master-table thead th {
    background-color: #1E293B !important;
    color: #F8FAFC !important;
    border-color: #334155 !important;
}

.tdg-items-page .tdg-order-master-table > tbody > tr > td {
    background-color: #0B1220 !important;
    color: #ffffff !important;
    border-color: #1E293B !important;
    --bs-table-bg-state: #0B1220;
    --bs-table-color-state: #ffffff;
    box-shadow: none !important;
}

.tdg-items-page .tdg-order-master-table.table-striped > tbody > tr:nth-of-type(even) > td,
.tdg-items-page .tdg-order-master-table.table-striped > tbody > tr:nth-of-type(odd) > td {
    background-color: #0B1220 !important;
    --bs-table-bg-type: #0B1220;
    --bs-table-striped-bg: #0B1220;
    box-shadow: none !important;
}

.tdg-items-page .tdg-order-master-table.table-hover > tbody > tr:hover > * {
    --bs-table-bg-state: #172554;
    --bs-table-color-state: #ffffff;
}

.tdg-items-page .tdg-order-master-table > tbody > tr:not(.tdg-order-master-table__row--inactive) > td:nth-child(1) {
    font-weight: 700;
    color: #8ec5ff !important;
}

.tdg-items-page .tdg-item-image-col,
.tdg-items-page .tdg-item-image-cell {
    width: 72px;
    text-align: center;
    vertical-align: middle;
}

.tdg-items-page .tdg-item-image-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
}

.tdg-items-page .tdg-item-image-trigger--upload {
    min-height: 2rem;
    min-width: 5.5rem;
    padding: 0.35rem 0.65rem;
    border-radius: 8px;
}

.tdg-items-page .tdg-item-image-thumb {
    display: block;
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 0.45rem;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(15, 23, 42, 0.65);
}

.tdg-items-page .tdg-order-master-table > tbody > tr:not(.tdg-order-master-table__row--inactive) > td:nth-child(3) {
    font-weight: 700;
    font-size: 1.02rem;
    color: #ffffff !important;
}

.tdg-items-page .tdg-order-master-table > tbody > tr:not(.tdg-order-master-table__row--inactive) > td:nth-child(4) {
    color: #C5CED8 !important;
}

.tdg-items-page .tdg-order-master-table > tbody > tr:not(.tdg-order-master-table__row--inactive) > td:nth-child(5) {
    font-weight: 600;
    color: #ffffff !important;
}

.tdg-items-page .tdg-order-master-table.table-hover > tbody > tr:not(.tdg-order-master-table__row--current):not(.tdg-order-master-table__row--inactive):hover > td {
    background-color: #172554 !important;
}

.tdg-items-page .tdg-order-master-table.table-hover > tbody > tr:not(.tdg-order-master-table__row--current):not(.tdg-order-master-table__row--inactive):hover > td:nth-child(1) {
    color: #8ec5ff !important;
}

.tdg-items-page .tdg-order-master-table.table-hover > tbody > tr:not(.tdg-order-master-table__row--current):not(.tdg-order-master-table__row--inactive):hover > td:nth-child(3) {
    color: #ffffff !important;
}

.tdg-items-page .tdg-order-master-table.table-hover > tbody > tr:not(.tdg-order-master-table__row--current):not(.tdg-order-master-table__row--inactive):hover > td:nth-child(4) {
    color: #C5CED8 !important;
}

.tdg-items-page .tdg-order-master-table.table-hover > tbody > tr:not(.tdg-order-master-table__row--current):not(.tdg-order-master-table__row--inactive):hover > td:nth-child(5) {
    color: #ffffff !important;
}

.tdg-items-page .tdg-order-master-table__row--inactive > td {
    background-color: #070B14 !important;
    color: #94A3B8 !important;
}

.tdg-items-page .tdg-order-master-table__row--inactive > td:nth-child(1) {
    color: #8ec5ff !important;
}

.tdg-items-page .tdg-order-master-table__row--inactive > td:nth-child(3) {
    color: #CBD5E1 !important;
}

.tdg-items-page .tdg-order-master-table__row--inactive > td:nth-child(4) {
    color: #64748B !important;
}

.tdg-items-page .tdg-order-master-table > tbody > tr > td.text-secondary {
    color: #94A3B8 !important;
}

/* Items page — current / active row indicator */
.tdg-items-page .tdg-order-master-table__row--current:not(.tdg-order-master-table__row--inactive) > td {
    background-color: #1E3A8A !important;
    color: #ffffff !important;
    box-shadow:
        inset 0 0 0 1px rgba(96, 165, 250, 0.45),
        0 0 14px rgba(37, 99, 235, 0.28) !important;
}

.tdg-items-page .tdg-order-master-table__row--current:not(.tdg-order-master-table__row--inactive) > td:first-child {
    border-left: 4px solid #60A5FA !important;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.tdg-items-page .tdg-order-master-table__row--current:not(.tdg-order-master-table__row--inactive) > td:first-child::before {
    content: "\25B6";
    color: #BFDBFE;
    font-size: 1.125rem;
    line-height: 1;
    flex-shrink: 0;
}

.tdg-items-page .tdg-order-master-table__row--current:not(.tdg-order-master-table__row--inactive) > td:nth-child(1) {
    color: #BFDBFE !important;
}

.tdg-items-page .tdg-order-master-table__row--current:not(.tdg-order-master-table__row--inactive) > td:nth-child(3) {
    color: #ffffff !important;
}

.tdg-items-page .tdg-order-master-table__row--current:not(.tdg-order-master-table__row--inactive) > td:nth-child(4) {
    color: #DBEAFE !important;
}

.tdg-items-page .tdg-order-master-table__row--current:not(.tdg-order-master-table__row--inactive) > td:nth-child(5) {
    color: #ffffff !important;
}

.tdg-items-page .tdg-order-master-table.table-hover > tbody > tr.tdg-order-master-table__row--current:not(.tdg-order-master-table__row--inactive):hover > td {
    background-color: #1D4ED8 !important;
    box-shadow:
        inset 0 0 0 1px rgba(147, 197, 253, 0.5),
        0 0 16px rgba(37, 99, 235, 0.38) !important;
}

/* Order History page — dark grid current row (matches Tables selection style) */
.tdg-order-history .tdg-order-history-table tbody tr.tdg-order-master-table__row--current > td {
    background-color: #1E3A8A !important;
    color: #ffffff !important;
    box-shadow:
        inset 0 0 0 1px rgba(96, 165, 250, 0.45),
        0 0 14px rgba(37, 99, 235, 0.28) !important;
}

.tdg-order-history .tdg-order-history-table tbody tr.tdg-order-master-table__row--current > td:first-child {
    border-left: 4px solid #60A5FA !important;
}

.tdg-order-history .tdg-order-history-table tbody tr.tdg-order-master-table__row--current > td:nth-child(2) .tdg-order-history-order-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #ffffff !important;
}

.tdg-order-history .tdg-order-history-table tbody tr.tdg-order-master-table__row--current > td:nth-child(2) .tdg-order-history-order-link::before {
    content: "\25B6";
    color: #BFDBFE;
    font-size: 1.125rem;
    line-height: 1;
    flex-shrink: 0;
}

.tdg-order-history .tdg-order-history-table tbody tr.tdg-order-master-table__row--current > td:nth-child(2) .tdg-order-history-order-source {
    color: #DBEAFE !important;
}

.tdg-order-history .tdg-order-history-table tbody tr.tdg-order-master-table__row--current > td:nth-child(3),
.tdg-order-history .tdg-order-history-table tbody tr.tdg-order-master-table__row--current > td:nth-child(8) {
    color: #ffffff !important;
}

.tdg-order-history .tdg-order-history-table tbody tr.tdg-order-master-table__row--current > td:nth-child(4) {
    color: #DBEAFE !important;
}

.tdg-order-history .tdg-order-history-table.table-hover > tbody > tr.tdg-order-master-table__row--current:hover > td {
    background-color: #1D4ED8 !important;
    box-shadow:
        inset 0 0 0 1px rgba(147, 197, 253, 0.5),
        0 0 16px rgba(37, 99, 235, 0.38) !important;
}

.tdg-order-table-status-card {
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid var(--tvc-bk-border, #334155);
    border-radius: 0.65rem;
    padding: 0.75rem 0.85rem;
    height: 100%;
}

.tdg-order-table-status-card__code {
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 0.06em;
    color: #fde68a;
    line-height: 1.15;
}

.tdg-order-table-status-card__name {
    font-size: 0.78rem;
    color: var(--tvc-bk-muted, #94a3b8);
    margin: 0.15rem 0 0.5rem;
}

.tdg-order-chart-wrap {
    position: relative;
    min-height: 280px;
    height: 280px;
}

.tdg-order-no-link {
    font-weight: 600;
    text-decoration: none;
}

.tdg-order-no-link:hover,
.tdg-order-summary-trigger:hover {
    text-decoration: underline;
}

.tdg-order-bill__label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--tvc-bk-muted, #94a3b8);
    margin-bottom: 0.15rem;
}

.tdg-order-bill__value {
    color: #e2e8f0;
}

.tdg-order-bill__table {
    font-size: 0.9rem;
}

.tdg-order-bill__total-row th {
    background: rgba(37, 99, 235, 0.12);
    color: #e2e8f0;
    font-size: 0.95rem;
}

.tdg-order-revenue-check {
    border-radius: 0.65rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--tvc-bk-border, #334155);
    background: rgba(15, 23, 42, 0.45);
}

.tdg-order-revenue-check--valid {
    border-color: rgba(74, 222, 128, 0.35);
    background: rgba(20, 83, 45, 0.25);
}

.tdg-order-revenue-check--invalid {
    border-color: rgba(248, 113, 113, 0.45);
    background: rgba(127, 29, 29, 0.25);
}

.tdg-order-revenue-check__title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.45rem;
    color: #e2e8f0;
}

.tdg-order-revenue-check__list {
    padding-left: 1.1rem;
    font-size: 0.88rem;
    color: var(--tvc-bk-muted, #cbd5e1);
}

.tdg-order-revenue-check__list li + li {
    margin-top: 0.2rem;
}

#tdgOrderSummaryModal .modal-content {
    border: 1px solid var(--tvc-bk-border, #334155);
}

/* QR codes */
.tdg-order-qr-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.25rem;
    margin-bottom: 1rem;
}

.tdg-order-qr-nav__link {
    display: inline-block;
    padding: 0.25rem 0;
    border: 0;
    border-bottom: 2px solid transparent;
    background: none;
    color: #CBD5E1;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.tdg-order-qr-nav__link:hover,
.tdg-order-qr-nav__link:focus-visible {
    color: #FFFFFF;
    text-decoration: none;
}

.tdg-order-qr-nav__link--active {
    color: #FFFFFF;
    font-weight: 700;
    border-bottom-color: #2563eb;
}

.tdg-order-qr-nav__link--button {
    font-family: inherit;
}

/* QR sheet page — action nav only (not main site nav) */
.tdg-order-qr-sheet-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.25rem;
    margin-bottom: 1rem;
}

.tdg-order-qr-sheet-nav__link {
    display: inline-block;
    padding: 0.25rem 0;
    border: 0;
    background: none;
    color: #CBD5E1;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    opacity: 1;
    cursor: pointer;
    transition: color 0.15s ease;
}

.tdg-order-qr-sheet-nav__link:hover {
    color: #FFFFFF;
    text-decoration: none;
    opacity: 1;
}

.tdg-order-qr-sheet-nav__link:focus,
.tdg-order-qr-sheet-nav__link:focus-visible,
.tdg-order-qr-sheet-nav__link:active {
    color: #FFFFFF;
    font-weight: 700;
    text-decoration: none;
    opacity: 1;
    outline: none;
}

.tdg-order-qr-sheet-nav__link--button {
    font-family: inherit;
}

.tdg-order-qr-preview {
    max-width: 28rem;
    margin: 0 auto;
}

.tdg-order-qr-preview__brand,
.tdg-order-qr-sheet__brand {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--tdg-ds-text-primary, #ffffff);
}

.tdg-order-qr-preview__title {
    color: var(--tdg-ds-text-strong, #f1f5f9);
}

.tdg-order-qr-preview__code {
    margin: 0;
    font-size: 0.875rem;
    color: var(--tdg-ds-text, #e2e8f0);
}

.tdg-order-qr-preview__hint {
    font-size: 0.875rem;
    color: var(--tdg-ds-text, #e2e8f0);
}

.tdg-order-qr-preview__url {
    font-size: 0.875rem;
    color: var(--tdg-ds-text, #e2e8f0);
}

.tdg-order-qr-preview__url-label {
    color: var(--tdg-ds-text-muted, #94a3b8);
}

.tdg-order-qr-preview__powered-by {
    margin-top: 0.65rem;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.35;
    color: var(--tdg-ds-text-muted, #94a3b8);
}

.tdg-order-qr-preview__image {
    width: 240px;
    min-height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    background: #fff;
    border-radius: 0.75rem;
}

.tdg-order-qr-code {
    display: inline-block;
}

.tdg-order-qr-code img,
.tdg-order-qr-code canvas {
    display: block;
}

.tdg-order-qr-sheet__header {
    margin-bottom: 1.5rem;
}

.tdg-order-qr-sheet__subtitle {
    font-size: 0.875rem;
    color: var(--tdg-ds-text-muted, #94a3b8);
}

.tdg-order-qr-sheet__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.tdg-order-qr-sheet__card {
    border: 1px solid var(--tvc-bk-border, #334155);
    border-radius: 0.75rem;
    padding: 1rem 0.75rem 0.85rem;
    text-align: center;
    background: rgba(15, 23, 42, 0.45);
    break-inside: avoid;
    page-break-inside: avoid;
}

.tdg-order-qr-sheet__table-code {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 0.15rem;
    color: #e2e8f0;
}

.tdg-order-qr-sheet__table-name {
    font-size: 0.82rem;
    color: #94a3b8;
    margin: 0 0 0.75rem;
    min-height: 2.4rem;
}

.tdg-order-qr-code--sheet {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 148px;
    padding: 0.35rem;
    background: #fff;
    border-radius: 0.5rem;
}

/* Order success */
.tdg-order-success {
    padding: 0.5rem 0 1rem;
}

.tdg-order-success__hero {
    text-align: center;
    margin-bottom: 1rem;
}

.tdg-order-success__icon {
    width: 3.25rem;
    height: 3.25rem;
    margin: 0 auto 0.75rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #bbf7d0;
    background: rgba(20, 83, 45, 0.45);
    border: 1px solid rgba(74, 222, 128, 0.35);
}

.tdg-order-success__title {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
    color: #bbf7d0;
}

.tdg-order-success__table-banner {
    text-align: center;
    padding: 0.9rem 1rem;
    margin-bottom: 1rem;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, rgba(20, 83, 45, 0.42) 0%, rgba(113, 63, 18, 0.38) 100%);
    border: 1px solid rgba(251, 191, 36, 0.45);
}

.tdg-order-success__table-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 0.2rem;
}

.tdg-order-success__table-code {
    display: block;
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #fde68a;
    line-height: 1.15;
}

.tdg-order-success__table-name {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.82rem;
    color: #cbd5e1;
}

.tdg-order-success__message {
    text-align: center;
    color: #94a3b8;
    margin: 0 0 1rem;
    font-size: 0.95rem;
}

.tdg-order-success__card {
    background: var(--tvc-bk-card, #1e293b);
    border: 1px solid var(--tvc-bk-border, #334155);
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 0.85rem;
}

.tdg-order-success__field {
    margin-bottom: 1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.tdg-order-success__field-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 0.15rem;
}

.tdg-order-success__field-value {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #e2e8f0;
    word-break: break-word;
}

.tdg-order-success__meta {
    display: grid;
    gap: 0.75rem;
    margin: 0 0 1rem;
}

.tdg-order-success__meta dt {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 0.1rem;
}

.tdg-order-success__meta dd {
    margin: 0;
    font-weight: 600;
    color: #e2e8f0;
}

.tdg-order-success__section-title {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #93c5fd;
    margin: 0 0 0.65rem;
}

.tdg-order-success__line {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 0.5rem;
    align-items: baseline;
    padding: 0.35rem 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    font-size: 0.92rem;
}

.tdg-order-success__line:last-child {
    border-bottom: none;
}

.tdg-order-success__line-name {
    color: #e2e8f0;
}

.tdg-order-success__line-qty {
    color: #94a3b8;
    white-space: nowrap;
}

.tdg-order-success__line-total {
    font-weight: 600;
    color: #fbbf24;
    white-space: nowrap;
}

.tdg-order-success__total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    font-size: 0.95rem;
    color: #e2e8f0;
}

.tdg-order-success__total strong {
    color: #fbbf24;
    font-size: 1.05rem;
}

.tdg-order-success__action {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    text-decoration: none;
    color: #fff;
    background: #2563eb;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.tdg-order-success__action:hover {
    color: #fff;
    background: #1d4ed8;
    text-decoration: none;
}

.tvc-booking-module--customer {
    overflow-x: hidden;
    max-width: 100%;
}

.tvc-booking-module--customer .tdg-order-layout-bar {
    padding: 0 0.25rem;
}

.tvc-booking-module--customer .tdg-order-customer {
    width: 100%;
    max-width: 480px;
}

@media (max-width: 480px) {
    .tvc-booking-module--customer {
        padding-left: 0.65rem;
        padding-right: 0.65rem;
    }

    .tdg-order-customer {
        padding-bottom: calc(11.5rem + env(safe-area-inset-bottom));
    }

    .tdg-order-customer__header {
        padding-left: 0.35rem;
        padding-right: 0.35rem;
    }

    .tdg-order-category {
        padding-left: 0.35rem;
        padding-right: 0.35rem;
    }

    .tdg-order-table-banner__code {
        font-size: 1.5rem;
    }

    .tdg-order-table-banner__hint {
        font-size: 0.92rem;
    }

    .tdg-order-category__title {
        font-size: 0.78rem;
    }

    .tdg-order-place-bar {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .tdg-order-place-bar__table {
        font-size: 1rem;
    }

    .tdg-order-place-bar__items,
    .tdg-order-place-bar__total {
        font-size: 1rem;
    }

    .tdg-order-success__title {
        font-size: 1.15rem;
    }

    .tdg-order-success__line {
        font-size: 0.95rem;
    }

    .tdg-order-success__line-name {
        min-width: 0;
        overflow-wrap: anywhere;
    }
}

@media print {
    body {
        background: #fff !important;
        color: #000 !important;
    }

    .tvc-booking-subnav,
    .tdg-order-qr-no-print,
    .tvc-booking-page__head,
    .tvc-booking-readonly-badge,
    nav,
    .btn {
        display: none !important;
    }

    .tvc-booking-module,
    .tvc-booking-layout,
    .tvc-booking-layout__main,
    .container-fluid {
        padding: 0 !important;
        margin: 0 !important;
        max-width: none !important;
    }

    .tdg-order-qr-preview,
    .tdg-order-qr-sheet {
        color: #000 !important;
    }

    .tdg-order-qr-preview .card,
    .tdg-order-qr-sheet__card {
        border: 1px solid #ccc !important;
        background: #fff !important;
        box-shadow: none !important;
        color: #000 !important;
    }

    .tdg-order-qr-preview__brand,
    .tdg-order-qr-preview__title,
    .tdg-order-qr-preview__code,
    .tdg-order-qr-preview__hint,
    .tdg-order-qr-preview__url,
    .tdg-order-qr-preview__powered-by,
    .tdg-order-qr-sheet__brand,
    .tdg-order-qr-sheet__table-code,
    .tdg-order-qr-sheet__table-name {
        color: #000 !important;
    }

    .tdg-order-qr-sheet {
        width: 100%;
    }

    .tdg-order-qr-sheet__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }

    @page {
        size: A4 portrait;
        margin: 12mm;
    }
}

@media (min-width: 768px) {
    .tdg-order-customer {
        padding-bottom: 9rem;
    }
}

/* Case Study */
.tdg-case-study__mobile-panel {
    border-color: rgba(74, 222, 128, 0.28);
    background: rgba(15, 23, 42, 0.45);
}

.tdg-case-study__mobile-panel p {
    font-size: 0.92rem;
    line-height: 1.65;
    color: #dbe4f3;
}

.tdg-mobile-first-card {
    margin-top: 1rem;
    padding: 1rem 1.1rem;
    background: rgba(15, 23, 42, 0.72);
    border-color: rgba(148, 163, 184, 0.22);
    border-left-color: rgba(251, 191, 36, 0.6);
}

.tdg-mobile-first-card .tdg-tech-ops-card__text {
    font-size: 0.88rem;
    line-height: 1.6;
}

.tdg-mobile-first-flow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.35rem;
    margin-top: 1rem;
    padding: 0.75rem 0.85rem;
    border-radius: 0.55rem;
    background: rgba(30, 41, 59, 0.75);
    border: 1px solid rgba(251, 191, 36, 0.22);
}

.tdg-mobile-first-flow__step {
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.3;
    padding: 0.35rem 0.6rem;
    border-radius: 0.4rem;
    color: #fde68a;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.28);
}

.tdg-mobile-first-flow__arrow {
    color: #94a3b8;
    font-weight: 700;
    font-size: 0.85rem;
    line-height: 1;
}

@media (max-width: 480px) {
    .tdg-mobile-first-card {
        padding: 0.9rem 0.85rem;
    }

    .tdg-mobile-first-flow {
        justify-content: center;
        padding: 0.65rem 0.55rem;
    }

    .tdg-mobile-first-flow__step {
        font-size: 0.72rem;
        padding: 0.3rem 0.5rem;
    }
}

/* Case Study — Solution Architecture */
#architecture .tdg-arch-diagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    max-width: 22rem;
    margin: 1.25rem auto 1.75rem;
    padding: 1rem 0.75rem;
    border-radius: 0.75rem;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(251, 191, 36, 0.22);
}

.tdg-arch-diagram__node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    width: 100%;
    max-width: 16rem;
    padding: 0.75rem 0.85rem;
    text-align: center;
    border-radius: 0.55rem;
    background: rgba(30, 41, 59, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.tdg-arch-diagram__node-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.45rem;
    font-size: 1rem;
    color: #fde68a;
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.28);
}

.tdg-arch-diagram__node-title {
    font-size: 0.88rem;
    font-weight: 800;
    color: #f8fafc;
    line-height: 1.3;
}

.tdg-arch-diagram__node-sub {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #93c5fd;
}

.tdg-arch-diagram__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
    padding: 0.35rem 0;
}

.tdg-arch-diagram__link-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 0.02em;
}

.tdg-arch-diagram__link-arrow {
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(251, 191, 36, 0.75);
    line-height: 1;
}

.tdg-arch-grid {
    margin-bottom: 1.25rem;
}

.tdg-arch-card {
    height: 100%;
}

.tdg-arch-card__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tdg-arch-card__list li {
    position: relative;
    padding-left: 0.85rem;
    font-size: 0.82rem;
    line-height: 1.45;
    color: #dfe7f5;
}

.tdg-arch-card__list li + li {
    margin-top: 0.3rem;
}

.tdg-arch-card__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 0.35rem;
    height: 0.35rem;
    border-radius: 50%;
    background: rgba(251, 191, 36, 0.75);
}

.tdg-arch-stack {
    margin-top: 0.5rem;
}

@media (min-width: 768px) {
    #architecture .tdg-arch-diagram {
        max-width: 18rem;
    }
}

@media (max-width: 480px) {
    #architecture .tdg-arch-diagram {
        max-width: 100%;
        padding: 0.85rem 0.55rem;
    }

    .tdg-arch-diagram__node {
        max-width: 100%;
        padding: 0.65rem 0.7rem;
    }

    .tdg-arch-diagram__node-title {
        font-size: 0.82rem;
    }
}

.tdg-case-study {
    max-width: 920px;
    margin: 0 auto;
}

.tdg-case-study__hero {
    text-align: center;
    padding: 1.5rem 1rem 2rem;
    margin-bottom: 1.5rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.55) 0%, rgba(20, 83, 45, 0.35) 50%, rgba(113, 63, 18, 0.3) 100%);
    border: 1px solid rgba(251, 191, 36, 0.25);
}

.tdg-case-study__hero-eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #93c5fd;
    margin: 0 0 0.75rem;
}

.tdg-case-study__hero-title {
    font-size: clamp(1.85rem, 5vw, 2.75rem);
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #fde68a;
    margin: 0 0 0.5rem;
    line-height: 1.1;
}

.tdg-case-study__hero-subtitle {
    font-size: 1rem;
    font-weight: 600;
    color: #bbf7d0;
    margin: 0 0 1rem;
}

.tdg-case-study__hero-lead {
    font-size: 1.02rem;
    line-height: 1.65;
    color: #e2e8f0;
    max-width: 42rem;
    margin: 0 auto;
}

.tdg-case-study__summary {
    margin-bottom: 1.75rem;
    padding: 1.25rem 1.35rem;
    border-radius: 0.85rem;
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.tdg-case-study__summary-lead {
    font-size: 1.05rem;
    font-weight: 600;
    color: #f1f5f9;
    margin: 0 0 0.85rem;
    line-height: 1.55;
}

.tdg-case-study__summary-label {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #94a3b8;
    margin: 0 0 0.5rem;
}

.tdg-case-study__summary-list {
    margin-bottom: 1rem;
}

.tdg-case-study__summary-tdg {
    font-size: 0.98rem;
    line-height: 1.65;
    color: #cbd5e1;
    margin: 0 0 1rem;
}

.tdg-case-study__summary-note {
    font-size: 0.92rem;
    line-height: 1.6;
    color: #cbd5e1;
    margin: 0;
    padding: 0.85rem 1rem;
    border-radius: 0.65rem;
    background: rgba(251, 191, 36, 0.08);
    border: 1px solid rgba(251, 191, 36, 0.22);
}

.tdg-case-study__subsection-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #fde68a;
    margin: 1.75rem 0 1rem;
}

.tdg-case-study__steps--compact .tdg-case-study__step {
    padding: 0.65rem 0;
}

.tdg-case-study__section {
    margin-bottom: 2.5rem;
    scroll-margin-top: 1rem;
}

.tdg-case-study__section-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #f8fafc;
    margin: 0 0 0.85rem;
    padding-bottom: 0.45rem;
    border-bottom: 2px solid rgba(37, 99, 235, 0.45);
}

#smart-ops .tdg-case-study__section-title {
    font-size: clamp(2rem, 3vw, 2.4rem);
    font-weight: 800;
    color: #f8fafc;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
}

.tdg-case-study__lead {
    font-size: 1rem;
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.tdg-case-study__tagline {
    font-size: 1.05rem;
    font-weight: 700;
    font-style: italic;
    color: #fde68a;
    margin: -0.25rem 0 0.85rem;
}

.tdg-case-study__card {
    background: rgba(30, 41, 59, 0.65);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 0.75rem;
    padding: 1.1rem 1.15rem;
    height: 100%;
}

.tdg-case-study__card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #93c5fd;
    margin: 0 0 0.65rem;
}

.tdg-case-study__list {
    margin: 0;
    padding-left: 1.15rem;
    color: #e2e8f0;
    line-height: 1.55;
}

.tdg-case-study__list--compact li {
    margin-bottom: 0.2rem;
}

.tdg-case-study__pill-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.tdg-case-study__pill {
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    background: rgba(20, 83, 45, 0.35);
    border: 1px solid rgba(74, 222, 128, 0.25);
    color: #bbf7d0;
}

.tdg-case-study__values {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.tdg-case-study__values span {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fde68a;
}

.tdg-case-study__feature {
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 0.65rem;
    padding: 0.9rem 1rem;
    height: 100%;
}

.tdg-case-study__feature strong {
    display: block;
    color: #e2e8f0;
    margin-bottom: 0.25rem;
    font-size: 0.92rem;
}

.tdg-case-study__feature span {
    font-size: 0.82rem;
    color: #94a3b8;
    line-height: 1.45;
}

.tdg-case-study__philosophy {
    text-align: center;
    padding: 1rem;
    border-radius: 0.65rem;
    background: rgba(37, 99, 235, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.25);
}

.tdg-case-study__philosophy-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 0.35rem;
}

.tdg-case-study__philosophy-flow {
    font-size: 1.05rem;
    font-weight: 700;
    color: #93c5fd;
    margin: 0;
}

.tdg-case-study__highlight {
    padding: 1.1rem 1.2rem;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, rgba(113, 63, 18, 0.35) 0%, rgba(30, 41, 59, 0.65) 100%);
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.tdg-case-study__highlight-title {
    font-size: 1rem;
    font-weight: 700;
    color: #fde68a;
    margin: 0 0 0.65rem;
}

.tdg-case-study__tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tdg-case-study__tech-stack span {
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.4rem 0.75rem;
    border-radius: 0.45rem;
    background: rgba(37, 99, 235, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.35);
    color: #bfdbfe;
}

.tdg-case-study__steps {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tdg-case-study__step {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

#workflow .tdg-case-study__steps:not(.tdg-case-study__steps--compact) .tdg-case-study__step {
    padding: 1.25rem 0;
}

.tdg-case-study__step:last-child {
    border-bottom: none;
}

.tdg-case-study__step-num {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 800;
    font-size: 0.95rem;
    color: #fff;
    background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
}

.tdg-case-study__step strong {
    display: block;
    color: #f8fafc;
    margin-bottom: 0.25rem;
}

#workflow .tdg-case-study__steps:not(.tdg-case-study__steps--compact) .tdg-case-study__step strong {
    font-size: 1.25rem;
    font-weight: 700;
    color: #f8fafc;
    line-height: 1.4;
    margin-bottom: 0;
}

.tdg-case-study__step p {
    margin: 0;
    color: #94a3b8;
    font-size: 0.92rem;
    line-height: 1.55;
}

#workflow .tdg-case-study__steps:not(.tdg-case-study__steps--compact) .tdg-case-study__step p {
    margin: 0.5rem 0 0;
    max-width: 900px;
    color: #dbe4f3;
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.75;
}

.tdg-case-study__table-chip {
    display: inline-block;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    padding: 0.35rem 0.75rem;
    border-radius: 0.35rem;
    font-size: 0.88rem;
}

.tdg-case-study__code {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.35rem 0.65rem;
    border-radius: 0.35rem;
    background: rgba(37, 99, 235, 0.15);
    border: 1px solid rgba(96, 165, 250, 0.35);
    color: #dbeafe;
    font-size: 0.95rem;
}

.tdg-case-study__status-flow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.tdg-case-study__status-flow span:not(.tdg-case-study__status-arrow) {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    padding: 0.3rem 0.55rem;
    border-radius: 0.35rem;
    background: rgba(30, 41, 59, 0.9);
    color: #e2e8f0;
}

.tdg-case-study__status-arrow {
    color: #64748b;
    font-weight: 700;
}

.tdg-case-study__stat {
    text-align: center;
    padding: 1rem 0.75rem;
    border-radius: 0.75rem;
    background: rgba(30, 41, 59, 0.65);
    border: 1px solid rgba(148, 163, 184, 0.2);
    height: 100%;
}

.tdg-case-study__stat strong {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    color: #fde68a;
    line-height: 1.1;
}

.tdg-case-study__stat span {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #94a3b8;
    line-height: 1.3;
}

.tdg-case-study__section--author {
    padding: 1.25rem 1.35rem;
    border-radius: 0.85rem;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.tdg-case-study__author-body {
    max-width: 42rem;
}

.tdg-case-study__section--author p {
    color: #cbd5e1;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.15rem;
}

.tdg-case-study__section--author p:last-child {
    margin-bottom: 0;
}

@media (max-width: 575.98px) {
    .tdg-case-study__step {
        flex-direction: column;
        gap: 0.65rem;
    }
}

.tdg-order-audit__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
}

.tdg-order-audit__title {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0;
    font-size: 0.95rem;
    font-weight: 800;
    color: #fde68a;
}

.tdg-order-audit__demo-tag {
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.18rem 0.45rem;
    border-radius: 999px;
    color: #cbd5e1;
    background: rgba(71, 85, 105, 0.45);
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.tdg-order-audit-summary {
    margin-bottom: 0.85rem;
    padding: 0.85rem 0.95rem;
    border-radius: 0.55rem;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(59, 130, 246, 0.22);
}

.tdg-order-audit-summary__title {
    margin: 0 0 0.65rem;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #fde68a;
}

.tdg-order-audit-summary__metric {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-height: 2.75rem;
    padding: 0.45rem 0.55rem;
    border-radius: 0.45rem;
    background: rgba(30, 41, 59, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.tdg-order-audit-summary__metric--net {
    border-color: rgba(59, 130, 246, 0.28);
}

.tdg-order-audit-summary__label {
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #94a3b8;
}

.tdg-order-audit-summary__value {
    font-size: 1.05rem;
    font-weight: 800;
    color: #f8fafc;
    line-height: 1.1;
}

.tdg-audit-impact {
    display: inline-block;
    padding: 0.24rem 0.58rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.tdg-audit-impact--positive {
    background: #15803d;
    color: #fff;
}

.tdg-audit-impact--negative {
    background: #b91c1c;
    color: #fff;
}

.tdg-audit-impact--none {
    background: #475569;
    color: #e2e8f0;
}

.tdg-order-audit__note--insight {
    background: rgba(30, 41, 59, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.22);
    color: #cbd5e1;
}

.tdg-order-audit__note--insight .bi {
    color: #fbbf24;
}

.tdg-order-audit__insight-list {
    margin: 0;
    padding-left: 1.1rem;
    font-size: 0.78rem;
    line-height: 1.45;
    color: #94a3b8;
}

.tdg-order-audit__insight-list li + li {
    margin-top: 0.15rem;
}

.tdg-order-audit__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 7rem;
    padding: 1.35rem 1rem;
    border-radius: 0.55rem;
    background: #1f2937;
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.tdg-order-audit__empty-icon {
    font-size: 1.65rem;
    color: #64748b;
}

.tdg-order-audit__empty-text {
    font-size: 0.88rem;
    font-weight: 500;
    color: #cbd5e1;
}

.tdg-order-audit__table-wrap {
    border-radius: 0.55rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    background: #1f2937;
}

.tdg-order-audit__table {
    margin-bottom: 0;
    font-size: 0.84rem;
    font-weight: 500;
    color: #f3f4f6;
    --bs-table-bg: transparent;
    --bs-table-color: #f3f4f6;
    --bs-table-border-color: rgba(255, 255, 255, 0.08);
    --bs-table-striped-bg: #263447;
    --bs-table-hover-bg: rgba(71, 85, 105, 0.55);
}

.tdg-order-audit__table > :not(caption) > * > * {
    border-color: rgba(255, 255, 255, 0.08);
}

.tdg-order-audit__table thead th {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    color: #cbd5e1;
    background: #162233;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    white-space: nowrap;
    vertical-align: middle;
}

.tdg-order-audit__table tbody tr {
    cursor: pointer;
    transition: background 180ms ease;
}

.tdg-order-audit__table tbody tr:nth-child(odd) > * {
    background-color: #1f2937;
    --bs-table-bg-type: #1f2937;
}

.tdg-order-audit__table tbody tr:nth-child(even) > * {
    background-color: #263447;
    --bs-table-bg-type: #263447;
}

.tdg-order-audit__table tbody tr:hover > * {
    background-color: rgba(71, 85, 105, 0.55) !important;
    --bs-table-bg-state: rgba(71, 85, 105, 0.55);
    --bs-table-color-state: #f3f4f6;
}

.tdg-order-audit__table tbody td {
    vertical-align: middle;
    border-color: rgba(255, 255, 255, 0.08);
    color: #f3f4f6;
}

.tdg-audit-cell-time {
    white-space: nowrap;
}

.tdg-audit-cell-time__value {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.92rem;
    font-weight: 600;
    color: #f3f4f6;
    letter-spacing: 0.01em;
}

.tdg-audit-cell-time__icon {
    color: #93c5fd;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.tdg-audit-cell-user__value {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 500;
    color: #cbd5e1;
}

.tdg-audit-cell-user__icon {
    color: #94a3b8;
    font-size: 0.82rem;
    flex-shrink: 0;
}

.tdg-audit-cell-detail {
    font-weight: 600;
    line-height: 1.55;
    color: #f3f4f6;
    white-space: normal;
    word-break: break-word;
    min-width: 12rem;
    max-width: 32rem;
}

.tdg-audit-cell-impact {
    white-space: nowrap;
}

.tdg-audit-badge {
    display: inline-block;
    padding: 0.28rem 0.62rem;
    border-radius: 999px;
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    white-space: nowrap;
}

.tdg-audit-badge--created {
    background: #1d4ed8;
    color: #fff;
}

.tdg-audit-badge--added,
.tdg-audit-badge--completed {
    background: #15803d;
    color: #fff;
}

.tdg-audit-badge--removed {
    background: #b91c1c;
    color: #fff;
}

.tdg-audit-badge--qty {
    background: #b45309;
    color: #fff;
}

.tdg-audit-badge--printed {
    background: #6d28d9;
    color: #fff;
}

.tdg-audit-badge--locked {
    background: #dc2626;
    color: #fff;
}

.tdg-audit-badge--unlocked {
    background: #16a34a;
    color: #fff;
}

.tdg-audit-badge--default {
    background: #475569;
    color: #e2e8f0;
}

.tdg-order-audit__note {
    display: flex;
    gap: 0.55rem;
    align-items: flex-start;
    margin-top: 0.85rem;
    padding: 0.75rem 0.85rem;
    border-radius: 0.55rem;
    font-size: 0.8rem;
    line-height: 1.45;
}

.tdg-order-audit__note .bi {
    flex-shrink: 0;
    margin-top: 0.1rem;
    font-size: 0.95rem;
}

.tdg-order-audit__note--future {
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.25);
    color: #bfdbfe;
}

.tdg-order-audit__note--future .bi {
    color: #60a5fa;
}

.tdg-order-audit__note--price {
    background: rgba(113, 63, 18, 0.15);
    border: 1px solid rgba(251, 191, 36, 0.22);
    color: #fde68a;
}

.tdg-order-audit__note--price .bi {
    color: #fbbf24;
}

.tdg-order-detail-print__hint {
    font-size: 0.78rem;
    color: #94a3b8;
}

.tdg-order-detail-print .tdg-order-history-print-btn {
    min-width: 10rem;
}

@media (max-width: 767.98px) {
    .tdg-order-audit__table-wrap {
        overflow: visible;
    }

    .tdg-order-audit__table thead {
        display: none;
    }

    .tdg-order-audit__table tbody tr {
        display: block;
        padding: 0.75rem 0.65rem;
        margin-bottom: 0.5rem;
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 0.45rem;
        background: #1f2937;
    }

    .tdg-order-audit__table tbody tr:nth-child(even) {
        background: #263447;
    }

    .tdg-order-audit__table tbody tr:nth-child(even) > * {
        background-color: transparent;
    }

    .tdg-order-audit__table tbody tr:nth-child(odd) > * {
        background-color: transparent;
    }

    .tdg-order-audit__table tbody tr:hover > * {
        background-color: transparent !important;
    }

    .tdg-order-audit__table tbody tr:hover {
        background: rgba(71, 85, 105, 0.55);
    }

    .tdg-order-audit__table tbody td {
        display: block;
        border: none;
        padding: 0.35rem 0;
        max-width: none;
    }

    .tdg-order-audit__table tbody td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 0.2rem;
        font-size: 0.62rem;
        font-weight: 600;
        letter-spacing: 0.03em;
        text-transform: uppercase;
        color: #94a3b8;
    }

    .tdg-audit-cell-time__value {
        font-size: 0.95rem;
    }

    .tdg-audit-cell-impact {
        text-align: left !important;
    }

    .tdg-audit-cell-impact .tdg-audit-impact {
        margin-top: 0.1rem;
    }

    .tdg-order-detail-print .tdg-order-history-print-btn {
        width: 100%;
    }
}

/* Print receipt — thermal 80mm */
.tdg-order-print-bill-btn {
    font-weight: 700;
    letter-spacing: 0.03em;
}

.tdg-print-receipt-page {
    margin: 0;
    padding: 1rem;
    background: #e2e8f0;
    min-height: 100vh;
    font-family: "Segoe UI", Arial, sans-serif;
}

.tdg-print-receipt-page--receipt-only {
    padding: 0.35rem 0.25rem 0.5rem;
    background: #e2e8f0;
    min-height: auto;
}

.tdg-print-receipt-page--receipt-only .tdg-thermal-receipt {
    margin-bottom: 0;
}

.tdg-thermal-receipt {
    width: 80mm;
    max-width: 80mm;
    margin: 0 auto 1.5rem;
    padding: 2.5mm 3mm;
    background: #fff;
    color: #000;
    font-size: 10px;
    line-height: 1.25;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

.tdg-thermal-receipt--compact {
    padding: 2mm 2.5mm;
    line-height: 1.2;
}

.tdg-thermal-receipt__header {
    text-align: center;
    margin-bottom: 1.2mm;
    padding-bottom: 1mm;
    border-bottom: 1px dashed #999;
}

.tdg-thermal-receipt--compact .tdg-thermal-receipt__header {
    margin-bottom: 0.8mm;
    padding-bottom: 0.7mm;
}

.tdg-thermal-receipt__merchant {
    margin: 0 0 0.8mm;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.15;
}

.tdg-thermal-receipt__platform {
    margin: 0.4mm 0 0;
    font-size: 7px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #444;
    line-height: 1.15;
}

.tdg-thermal-receipt__platform-sub {
    margin: 0 0 1mm;
    font-size: 7px;
    font-weight: 600;
    color: #555;
    line-height: 1.2;
}

.tdg-thermal-receipt__brand {
    margin: 0;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.tdg-thermal-receipt__title {
    margin: 1mm 0 0;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.tdg-thermal-receipt__meta {
    margin: 0 0 0.8mm;
}

.tdg-thermal-receipt--compact .tdg-thermal-receipt__meta {
    margin-bottom: 0.6mm;
}

.tdg-thermal-receipt__meta-row {
    display: flex;
    justify-content: space-between;
    gap: 2mm;
    padding: 0.2mm 0;
    font-size: 9px;
}

.tdg-thermal-receipt__meta-row dt {
    margin: 0;
    font-weight: 600;
    flex-shrink: 0;
}

.tdg-thermal-receipt__meta-row dd {
    margin: 0;
    text-align: right;
    font-weight: 700;
    word-break: break-word;
}

.tdg-thermal-receipt__divider {
    border-top: 1px dashed #000;
    margin: 0.8mm 0;
}

.tdg-thermal-receipt--compact .tdg-thermal-receipt__divider {
    margin: 0.6mm 0;
}

.tdg-thermal-receipt__items {
    width: 100%;
    border-collapse: collapse;
    font-size: 10px;
}

.tdg-thermal-receipt__items th,
.tdg-thermal-receipt__items td {
    padding: 0.5mm 0;
    vertical-align: top;
    border-bottom: 1px dotted #ccc;
}

.tdg-thermal-receipt--compact .tdg-thermal-receipt__items th,
.tdg-thermal-receipt--compact .tdg-thermal-receipt__items td {
    padding: 0.35mm 0;
}

.tdg-thermal-receipt__items th {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid #000;
}

.tdg-thermal-receipt__items tbody tr:last-child td {
    border-bottom: none;
}

.tdg-thermal-receipt__num {
    text-align: right;
    white-space: nowrap;
    width: 11mm;
}

.tdg-thermal-receipt__total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 2mm;
    font-size: 11px;
    font-weight: 800;
    margin: 0.3mm 0 0;
    padding: 0;
}

.tdg-thermal-receipt__payment-notice {
    text-align: center;
    margin-top: 4px;
    margin-bottom: 8px;
    font-size: 11px;
    line-height: 1.3;
    color: #666;
}

.tdg-thermal-receipt__payment-notice p {
    margin: 0;
}

.tdg-thermal-receipt__payment-notice p + p {
    margin-top: 2px;
}

.tdg-thermal-receipt__footer {
    text-align: center;
    margin-top: 0.8mm;
    padding-top: 0.8mm;
    border-top: 1px dashed #999;
    font-size: 8px;
}

.tdg-thermal-receipt--compact .tdg-thermal-receipt__footer {
    margin-top: 0.6mm;
    padding-top: 0.6mm;
}

.tdg-thermal-receipt__footer p {
    margin: 0;
}

.tdg-thermal-receipt__footer-thanks {
    font-size: 9px;
    font-weight: 700;
    line-height: 1.2;
    color: #111;
    margin-bottom: 0.5mm !important;
}

.tdg-thermal-receipt__footer-brand {
    font-size: 7px;
    font-weight: 600;
    line-height: 1.15;
    color: #444;
}

.tdg-thermal-receipt__footer-line {
    font-size: 8px;
    font-weight: 700;
    line-height: 1.25;
    color: #222;
}

.tdg-thermal-receipt__footer-muted {
    font-size: 7px;
    font-weight: 600;
    line-height: 1.25;
    color: #666;
}

.tdg-thermal-receipt__footer-url {
    margin-bottom: 0 !important;
}

.tdg-thermal-receipt__footer-sub {
    font-size: 8px;
    margin-top: 1mm !important;
    opacity: 0.75;
}

.tdg-thermal-receipt__qr-block {
    text-align: center;
    margin-top: 0.8mm;
    padding-top: 0.8mm;
    border-top: 1px dashed #ccc;
}

.tdg-thermal-receipt--compact .tdg-thermal-receipt__qr-block {
    margin-top: 0.6mm;
    padding-top: 0.6mm;
}

.tdg-thermal-receipt__qr {
    display: inline-block;
    margin: 0 auto 0.5mm;
    width: 88px;
    height: 88px;
}

.tdg-thermal-receipt__qr img,
.tdg-thermal-receipt__qr canvas {
    display: block;
    margin: 0 auto;
}

.tdg-thermal-receipt__qr-caption {
    margin: 0;
    font-size: 7px;
    font-weight: 600;
    line-height: 1.2;
    color: #333;
}

.tdg-print-toolbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: rgba(15, 23, 42, 0.95);
    border-top: 1px solid #334155;
}

.tdg-print-toolbar__btn {
    min-width: 8rem;
    padding: 0.65rem 1.25rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    color: #fff;
    background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

.tdg-print-toolbar__btn:hover {
    background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
}

.tdg-print-toolbar__btn--secondary {
    background: #475569;
    box-shadow: none;
}

@media print {
    .tdg-print-receipt-page {
        padding: 0;
        background: #fff !important;
        min-height: auto;
    }

    .tdg-print-toolbar,
    .tdg-print-no-print,
    .tdg-order-layout-bar,
    .tdg-lang-switcher,
    .tvc-booking-subnav,
    .tvc-booking-layout,
    .tvc-booking-page__head,
    .tdg-order-dashboard,
    .tdg-order-system-badge,
    nav,
    .btn:not(.tdg-thermal-receipt *) {
        display: none !important;
    }

    .tdg-thermal-receipt {
        width: 80mm;
        max-width: 80mm;
        margin: 0;
        padding: 2mm;
        box-shadow: none;
        page-break-inside: avoid;
    }

    @page {
        size: 80mm auto;
        margin: 2mm;
    }

    body.tdg-print-receipt-page {
        width: 80mm;
        margin: 0 auto;
    }

    .tdg-thermal-receipt,
    .tdg-thermal-receipt * {
        color: #000 !important;
        background: transparent !important;
    }

    .tdg-thermal-receipt__footer-muted {
        color: #666 !important;
    }
}

/* Portfolio home — case study, workflow, venue programs */
.tdg-portfolio-home--compact {
    margin-bottom: 0.05rem !important;
}

.tdg-portfolio-home--case-study {
    --tdg-readable: #dfe7f5;
    margin-bottom: 0.2rem;
}

.tdg-portfolio-home--case-study .tdg-portfolio-home__top {
    margin-bottom: 0 !important;
}

.tdg-portfolio-home--case-study .tdg-case-block {
    margin-top: 1.35rem;
    padding-top: 0.15rem;
}

.tdg-portfolio-home--case-study .tdg-case-block--compact {
    margin-top: 0.85rem;
}

.tdg-portfolio-home--case-study .tdg-program-cards {
    margin-top: 1.15rem;
}

/* Phase 7 — language switcher */
.tdg-order-layout-bar {
    width: 100%;
}

.tdg-order-layout-bar--print {
    padding: 0.35rem 0.5rem 0;
}

.tdg-lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem;
    border-radius: var(--tdg-control-radius, 0.65rem);
    background: rgba(15, 23, 42, 0.88);
    border: var(--tdg-control-border, 1px solid rgba(251, 191, 36, 0.42));
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.28);
}

.tdg-lang-switcher__pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 39px;
    padding: 0 1.35rem;
    border-radius: calc(var(--tdg-control-radius, 0.65rem) - 0.1rem);
    font-size: 0.9375rem;
    font-weight: 700;
    color: #dfe7f5;
    text-decoration: none;
    white-space: nowrap;
    border: 1px solid transparent;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.tdg-lang-switcher__pill:hover {
    color: #fde68a;
    background: rgba(251, 191, 36, 0.12);
    text-decoration: none;
}

.tdg-order-layout-bar .tdg-user-menu {
    position: relative;
}

.tdg-order-layout-bar .tdg-user-menu__toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 39px;
    padding: 0.35rem 0.85rem;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(15, 23, 42, 0.88);
    color: #ffffff;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.2;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.28);
    transition:
        color 0.18s ease,
        background 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}

.tdg-order-layout-bar .tdg-user-menu__toggle.dropdown-toggle::after {
    display: none;
}

.tdg-order-layout-bar .tdg-user-menu__toggle:hover,
.tdg-order-layout-bar .tdg-user-menu__toggle:focus-visible,
.tdg-order-layout-bar .tdg-user-menu__toggle.show {
    color: #ffffff;
    background: rgba(37, 99, 235, 0.18);
    border-color: rgba(59, 130, 246, 0.45);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.22);
    outline: none;
}

.tdg-order-layout-bar .tdg-user-menu__icon {
    font-size: 1.05rem;
    color: #93c5fd;
    flex-shrink: 0;
}

.tdg-order-layout-bar .tdg-user-menu__name {
    max-width: 9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tdg-order-layout-bar .tdg-user-menu__chevron {
    font-size: 0.75rem;
    opacity: 0.85;
    flex-shrink: 0;
    transition: transform 0.18s ease;
}

.tdg-order-layout-bar .tdg-user-menu__toggle.show .tdg-user-menu__chevron {
    transform: rotate(180deg);
}

.tdg-order-layout-bar .tdg-user-menu__panel {
    min-width: 220px;
    width: 220px;
    margin-top: 0.45rem !important;
    padding: 0.35rem;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: #111827;
    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.04);
}

.tdg-order-layout-bar .tdg-user-menu__item {
    border-radius: 6px;
    padding: 0.55rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #ffffff;
    transition: background 0.15s ease, color 0.15s ease;
}

.tdg-order-layout-bar .tdg-user-menu__item:hover,
.tdg-order-layout-bar .tdg-user-menu__item:focus-visible {
    color: #ffffff;
    background: #2563eb;
}

.tdg-order-layout-bar .tdg-user-menu__divider {
    margin: 0.35rem 0;
    border-color: rgba(148, 163, 184, 0.22);
    opacity: 1;
}

@media (max-width: 575.98px) {
    .tdg-order-layout-bar .tdg-user-menu__name {
        max-width: 5.5rem;
    }

    .tdg-order-layout-bar .tdg-user-menu__panel {
        min-width: min(220px, calc(100vw - 1.5rem));
        width: min(220px, calc(100vw - 1.5rem));
    }
}

.tdg-lang-switcher__pill--active,
.tdg-lang-switcher__pill--active:hover {
    color: #0f172a;
    font-weight: 800;
    background: linear-gradient(180deg, #fde68a 0%, #fbbf24 100%);
    border-color: rgba(253, 230, 138, 0.75);
    box-shadow: 0 3px 16px rgba(251, 191, 36, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.tdg-readable-muted {
    color: #dfe7f5 !important;
    opacity: 0.85;
}

.tdg-portfolio-case-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    padding: 1.35rem 1.4rem;
    border-radius: 1rem;
    text-decoration: none;
    color: inherit;
    background: linear-gradient(145deg, rgba(30, 58, 95, 0.65) 0%, rgba(20, 83, 45, 0.45) 55%, rgba(113, 63, 18, 0.35) 100%);
    border: 1px solid rgba(251, 191, 36, 0.35);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tdg-portfolio-case-card--compact {
    padding: 0.75rem 1rem 0.7rem;
}

.tdg-portfolio-case-card--compact .tdg-portfolio-case-card__eyebrow {
    margin-bottom: 0.25rem;
}

.tdg-portfolio-case-card--compact .tdg-portfolio-case-card__title {
    margin-bottom: 0.35rem;
}

.tdg-portfolio-case-card--compact .tdg-portfolio-case-card__title-main {
    margin-bottom: 0.2rem;
}

.tdg-portfolio-case-card--compact .tdg-portfolio-case-card__subtitle {
    margin-bottom: 0.4rem;
}

.tdg-portfolio-case-card--compact .tdg-portfolio-case-card__text {
    margin-bottom: 0.45rem;
}

.tdg-portfolio-case-card--case-study {
    background: linear-gradient(145deg, rgba(20, 83, 45, 0.58) 0%, rgba(30, 58, 95, 0.55) 52%, rgba(113, 63, 18, 0.4) 100%);
    border-color: rgba(251, 191, 36, 0.42);
}

.tdg-portfolio-case-card--case-study:hover {
    box-shadow: 0 16px 40px rgba(251, 191, 36, 0.22);
}

.tdg-portfolio-case-card--analysis {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.92) 0%, rgba(37, 99, 235, 0.42) 55%, rgba(30, 58, 95, 0.55) 100%);
    border-color: rgba(96, 165, 250, 0.38);
}

.tdg-portfolio-case-card--analysis:hover {
    box-shadow: 0 16px 40px rgba(37, 99, 235, 0.32);
}

.tdg-portfolio-case-card--bizarch {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.9) 0%, rgba(180, 83, 9, 0.38) 50%, rgba(30, 58, 95, 0.52) 100%);
    border-color: rgba(251, 191, 36, 0.45);
}

.tdg-portfolio-case-card--bizarch:hover {
    box-shadow: 0 16px 40px rgba(180, 83, 9, 0.28);
}

.tdg-portfolio-case-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(37, 99, 235, 0.25);
    color: inherit;
    text-decoration: none;
}

.tdg-portfolio-case-card__eyebrow {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #93c5fd;
    margin-bottom: 0.35rem;
}

.tdg-portfolio-case-card--compact .tdg-portfolio-case-card__eyebrow {
    margin-bottom: 0.4rem;
}

.tdg-portfolio-case-card__title {
    margin: 0 0 0.5rem;
    line-height: 1.05;
}

.tdg-portfolio-case-card__title-main {
    display: block;
    font-size: clamp(1.65rem, 2.9vw, 2rem);
    font-weight: 800;
    letter-spacing: 0.045em;
    color: #fde68a;
    line-height: 1.05;
    margin-bottom: 0.35rem;
}

.tdg-portfolio-case-card__title-tagline {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: #fcd34d;
    line-height: 1.2;
    margin-bottom: 0.2rem;
}

.tdg-portfolio-case-card__subtitle {
    color: #e6edf7;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.45;
    margin: 0 0 0.55rem;
}

.tdg-portfolio-case-card__text {
    flex: 1;
    color: #e6edf7;
    font-size: calc(0.92rem + 1px);
    line-height: 1.55;
    margin: 0 0 0.65rem;
}

.tdg-portfolio-case-card--compact .tdg-portfolio-case-card__text {
    flex: 0 1 auto;
}

.tdg-portfolio-case-card__cta {
    font-weight: 700;
    color: #ffffff;
    font-size: 0.85rem;
    margin-top: auto;
}

.tdg-portfolio-diagram--compact .card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    min-height: 17.5rem;
    padding: 0.85rem 1rem 0.75rem;
}

.tdg-order-panel-title--compact {
    font-size: 0.875rem;
    margin-bottom: 0.15rem;
    color: #dfe7f5;
}

.tdg-portfolio-diagram--compact .tdg-order-panel-title--compact {
    flex-shrink: 0;
    font-size: 1.05rem;
    margin-bottom: 0.35rem;
}

.tdg-order-panel-title--gold {
    color: #fde68a;
}

.tdg-portfolio-diagram--compact .tdg-order-panel-title--gold {
    color: #fde68a;
}

.tdg-partner-workflow-heading {
    margin: 0.65rem 0 0.35rem;
}

.tdg-workflow-diagram {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem 0.25rem;
    padding: 0.5rem 0;
}

.tdg-portfolio-diagram--compact .tdg-workflow-diagram {
    flex: 1 1 auto;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 11.5rem;
    padding: 0.65rem 0.15rem 0.45rem;
    gap: 0.35rem 0.5rem;
}

.tdg-workflow-diagram__step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    min-width: 4.5rem;
    text-align: center;
}

.tdg-portfolio-diagram--compact .tdg-workflow-diagram__step {
    flex: 1 1 0;
    min-width: 0;
    max-width: 7.5rem;
    gap: 0.75rem;
}

.tdg-workflow-diagram__icon {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.85rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(180deg, #3b82f6, #2563eb);
}

.tdg-portfolio-diagram--compact .tdg-workflow-diagram__icon {
    width: 4.25rem;
    height: 4.25rem;
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: linear-gradient(145deg, #60a5fa 0%, #3b82f6 45%, #1d4ed8 100%);
    box-shadow:
        0 10px 28px rgba(37, 99, 235, 0.55),
        0 3px 10px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.tdg-workflow-diagram__note {
    text-align: center;
}

.tdg-workflow-diagram__note--compact {
    font-size: 0.8125rem;
    line-height: 1.45;
    color: #dfe7f5;
    margin-top: 0.35rem !important;
}

.tdg-portfolio-diagram--compact .tdg-workflow-diagram__note--compact {
    flex-shrink: 0;
    font-size: 1.1875rem;
    line-height: 1.5;
    font-weight: 500;
    color: #e8eef8;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
    margin-top: 0.5rem !important;
}

.tdg-partner-workflow-diagram {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.15rem 0.1rem;
    padding: 0.15rem 0 0;
}

.tdg-partner-workflow-diagram__step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    min-width: 3.6rem;
    text-align: center;
}

.tdg-partner-workflow-diagram__num {
    font-size: 0.95rem;
    line-height: 1;
    color: #fde68a;
}

.tdg-partner-workflow-diagram__label {
    font-size: 0.68rem;
    font-weight: 700;
    color: #f3f6fb;
    opacity: 1;
    line-height: 1.2;
    max-width: 4.25rem;
}

.tdg-workflow-diagram__label {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #dfe7f5;
    line-height: 1.25;
    max-width: 5.25rem;
}

.tdg-portfolio-diagram--compact .tdg-workflow-diagram__label {
    font-size: clamp(1.375rem, 1.55vw, 1.625rem);
    font-weight: 700;
    line-height: 1.2;
    max-width: 6.75rem;
    color: #f1f5f9;
    white-space: normal;
    hyphens: auto;
}

.tdg-workflow-diagram__arrow {
    color: #94a3b8;
    font-size: 1rem;
    font-weight: 700;
    padding: 0 0.15rem;
}

.tdg-portfolio-diagram--compact .tdg-workflow-diagram__arrow {
    display: inline-flex;
    align-items: center;
    align-self: center;
    flex: 1 1 0;
    min-width: 1rem;
    max-width: 2.75rem;
    padding: 0;
    font-size: 2rem;
    line-height: 1;
    font-weight: 800;
    color: #93c5fd;
}

.tdg-portfolio-diagram--compact .tdg-workflow-diagram__arrow::before {
    content: "";
    flex: 1 1 auto;
    height: 4px;
    min-width: 0.35rem;
    margin-right: 0.12rem;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(147, 197, 253, 0.35) 0%, rgba(59, 130, 246, 0.95) 100%);
    box-shadow: 0 1px 5px rgba(37, 99, 235, 0.4);
}

/* Phase 6 — venue case study blocks */
.tdg-case-block__title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #fde68a;
    letter-spacing: 0.02em;
    margin: 0 0 0.65rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid rgba(251, 191, 36, 0.25);
}

.tdg-case-block__lead,
.tdg-case-block__label {
    color: #dfe7f5;
    font-size: 0.9rem;
    line-height: 1.55;
    margin: 0 0 0.5rem;
}

.tdg-case-block__label {
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #fcd34d;
    margin-bottom: 0.4rem;
}

.tdg-case-block__list {
    color: #dfe7f5;
    font-size: 0.88rem;
    line-height: 1.55;
    margin: 0 0 1rem;
    padding-left: 1.15rem;
}

.tdg-case-block__list li + li {
    margin-top: 0.25rem;
}

.tdg-stat-card {
    height: 100%;
    padding: 0.75rem 0.85rem;
    border-radius: 0.65rem;
    background: linear-gradient(145deg, rgba(30, 58, 95, 0.5) 0%, rgba(15, 23, 42, 0.85) 100%);
    border: 1px solid rgba(251, 191, 36, 0.22);
    text-align: center;
}

.tdg-stat-card__label {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fcd34d;
    margin-bottom: 0.35rem;
}

.tdg-stat-card__value {
    display: block;
    font-size: 1.05rem;
    font-weight: 800;
    color: #dfe7f5;
    line-height: 1.2;
}

.tdg-stat-card__value--gold {
    color: #fde68a;
}

.tdg-partner-timeline {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.35rem 0;
    padding: 0.85rem 0.65rem;
    border-radius: 0.75rem;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(251, 191, 36, 0.18);
}

.tdg-partner-timeline__step {
    flex: 1 1 8.5rem;
    min-width: 7.5rem;
    max-width: 11rem;
    text-align: center;
    padding: 0.35rem 0.25rem;
}

.tdg-partner-timeline__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    margin-bottom: 0.35rem;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 800;
    color: #0f172a;
    background: linear-gradient(180deg, #fde68a, #f59e0b);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
}

.tdg-partner-timeline__label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: #f3f6fb;
    line-height: 1.4;
}

.tdg-partner-timeline__connector {
    flex: 0 0 1.25rem;
    align-self: center;
    height: 2px;
    margin-top: 0.85rem;
    background: linear-gradient(90deg, rgba(251, 191, 36, 0.15), rgba(251, 191, 36, 0.55), rgba(251, 191, 36, 0.15));
    border-radius: 1px;
}

.tdg-tech-ops-card {
    height: 100%;
    padding: 0.85rem 0.95rem;
    border-radius: 0.65rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-left: 3px solid rgba(251, 191, 36, 0.55);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tdg-tech-ops-card:hover {
    border-color: rgba(251, 191, 36, 0.35);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}

.tdg-tech-ops-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    margin-bottom: 0.45rem;
    border-radius: 0.45rem;
    font-size: 1rem;
    color: #fde68a;
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.28);
}

.tdg-tech-ops-card__title {
    font-size: 0.92rem;
    font-weight: 800;
    color: #fde68a;
    margin: 0 0 0.35rem;
}

.tdg-tech-ops-card__text {
    font-size: 0.82rem;
    line-height: 1.5;
    color: #dfe7f5;
    margin: 0;
}

.tdg-future-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.tdg-future-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.15rem;
}

.tdg-future-card__head .tdg-tech-ops-card__icon {
    margin-bottom: 0;
}

.tdg-future-card__badge {
    flex-shrink: 0;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.22rem 0.45rem;
    border-radius: 999px;
    line-height: 1.2;
}

.tdg-future-card__badge--roadmap {
    color: #fde68a;
    background: rgba(251, 191, 36, 0.18);
    border: 1px solid rgba(251, 191, 36, 0.45);
}

.tdg-future-card__badge--future {
    color: #bfdbfe;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.35);
}

.tdg-future-card__label {
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #fcd34d;
    margin: 0.75rem 0 0.35rem;
}

.tdg-future-card__list {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.82rem;
    line-height: 1.55;
    color: #dfe7f5;
}

.tdg-future-card__list li {
    position: relative;
    padding-left: 0.95rem;
}

.tdg-future-card__list li + li {
    margin-top: 0.2rem;
}

.tdg-future-card__list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #fbbf24;
}

.tdg-future-arch__intro,
.tdg-future-arch__outro,
.tdg-future-arch__reuse-label {
    font-size: 0.88rem;
    line-height: 1.55;
    color: #dfe7f5;
}

.tdg-future-arch__reuse-label {
    font-weight: 600;
    color: #fde68a;
    margin: 0;
}

.tdg-future-arch__list li {
    color: #dfe7f5;
}

.tdg-audit-ctrl-card {
    border-left-color: rgba(59, 130, 246, 0.55);
}

.tdg-audit-ctrl-card .tdg-tech-ops-card__icon {
    color: #93c5fd;
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.28);
}

.tdg-audit-ctrl-card .tdg-tech-ops-card__title {
    color: #bfdbfe;
}

.tdg-audit-ctrl-flow {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    padding: 0.85rem 1rem;
    border-radius: 0.55rem;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(59, 130, 246, 0.22);
}

.tdg-audit-ctrl-flow__step {
    display: inline-block;
    padding: 0.35rem 0.65rem;
    border-radius: 0.4rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: #e2e8f0;
    background: rgba(30, 41, 59, 0.75);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.tdg-audit-ctrl-flow__step--final {
    color: #bfdbfe;
    border-color: rgba(59, 130, 246, 0.35);
    background: rgba(30, 58, 138, 0.35);
}

.tdg-audit-ctrl-flow__arrow {
    align-self: center;
    font-size: 0.85rem;
    line-height: 1;
    color: rgba(147, 197, 253, 0.75);
    padding: 0.05rem 0;
}

.tdg-audit-ctrl-benefits li {
    font-size: 0.88rem;
}

.tdg-audit-ctrl-arch {
    border-color: rgba(59, 130, 246, 0.25);
    background: rgba(15, 23, 42, 0.45);
}

.tdg-audit-ctrl-arch p {
    font-size: 0.84rem;
    line-height: 1.55;
    color: #cbd5e1;
    margin-bottom: 0;
}

.tdg-daily-lock-flow {
    border-color: rgba(220, 38, 38, 0.28);
    background: rgba(30, 41, 59, 0.75);
}

.tdg-daily-lock-flow .tdg-mobile-first-flow__step {
    color: #fecaca;
    background: rgba(220, 38, 38, 0.12);
    border-color: rgba(220, 38, 38, 0.32);
}

.tdg-daily-lock-flow__step--final {
    color: #fff !important;
    background: rgba(220, 38, 38, 0.85) !important;
    border-color: rgba(185, 28, 28, 0.65) !important;
}

.tdg-daily-lock-card {
    background: rgba(220, 38, 38, 0.08);
    border-color: rgba(220, 38, 38, 0.24);
}

.tdg-daily-lock-card .tdg-tech-ops-card__icon {
    color: #fca5a5;
}

.tdg-daily-lock-card .tdg-tech-ops-card__title {
    color: #fecaca;
}

.tdg-daily-lock-benefits li {
    font-size: 0.88rem;
}

.tdg-daily-lock-arch {
    border-color: rgba(220, 38, 38, 0.28);
    background: rgba(220, 38, 38, 0.08);
}

.tdg-daily-lock-arch p {
    font-size: 0.84rem;
    line-height: 1.55;
    color: #fecaca;
    margin-bottom: 0;
}

@media (max-width: 480px) {
    .tdg-daily-lock-flow {
        justify-content: center;
        padding: 0.65rem 0.55rem;
    }
}

.tdg-order-edit-readonly {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    padding: 0.85rem 1rem;
    border-radius: 0.55rem;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(30, 41, 59, 0.55);
    color: #cbd5e1;
    font-size: 0.9rem;
}

.tdg-order-edit-warning {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.65rem 0.85rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(245, 158, 11, 0.35);
    background: rgba(245, 158, 11, 0.12);
    color: #fde68a;
    font-size: 0.85rem;
}

.tdg-order-edit-draft-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #bfdbfe;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.28);
}

.tdg-order-edit-table {
    color: #e2e8f0;
}

.tdg-order-edit-table__qty-col {
    width: 6.5rem;
}

.tdg-order-edit-table__remove-col {
    width: 4.5rem;
}

.tdg-order-edit-qty {
    min-width: 4.5rem;
    max-width: 5.5rem;
    margin-left: auto;
}

.tdg-order-edit-total-row th {
    background: rgba(15, 23, 42, 0.65);
    color: #fde68a;
}

.tdg-order-edit-add-hint {
    font-size: 0.78rem;
    color: #94a3b8;
    padding-top: 1.75rem;
}

.tdg-order-edit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 38px;
    padding: 0 1rem;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tdg-order-edit-btn:hover {
    transform: translateY(-1px);
    color: #fff;
}

.tdg-order-edit-btn--save {
    background: #2563eb;
}

.tdg-order-edit-btn--save:hover {
    background: #1d4ed8;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.28);
}

.tdg-order-edit-btn--cancel {
    background: #475569;
}

.tdg-order-edit-btn--cancel:hover {
    background: #334155;
}

.tdg-order-detail-view-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
}

.tdg-order-edit-btn--enter {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.95), rgba(59, 130, 246, 0.85));
    border-color: rgba(96, 165, 250, 0.55);
    color: #eff6ff;
    min-width: 10rem;
}

.tdg-order-edit-btn--enter:hover {
    background: linear-gradient(135deg, rgba(29, 78, 216, 0.98), rgba(37, 99, 235, 0.92));
    color: #fff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.28);
}

.tdg-order-edit-collapse.collapsing {
    transition: height 0.32s ease;
}

.tdg-order-edit-add-section {
    padding-top: 0.35rem;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.tdg-order-edit-add-collapse {
    margin-top: 0.15rem;
}

.tdg-order-edit-add-collapse.collapsing {
    transition: height 0.28s ease;
}

.tdg-order-edit-add-collapse .tdg-order-edit-add {
    padding: 0.85rem 0.95rem;
    border-radius: 0.55rem;
    border: 1px solid rgba(96, 165, 250, 0.22);
    background: rgba(15, 23, 42, 0.55);
}

.tdg-order-edit-btn--toggle-add {
    background: rgba(30, 41, 59, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.28);
    color: #e2e8f0;
}

.tdg-order-edit-btn--toggle-add:hover {
    background: rgba(51, 65, 85, 0.82);
    border-color: rgba(148, 163, 184, 0.42);
    color: #f8fafc;
}

.tdg-order-edit-btn--add {
    background: rgba(37, 99, 235, 0.18);
    border: 1px solid rgba(96, 165, 250, 0.45);
    color: #dbeafe;
}

.tdg-order-edit-btn--add:hover {
    background: rgba(37, 99, 235, 0.3);
    border-color: rgba(147, 197, 253, 0.55);
    color: #eff6ff;
}

.tdg-order-edit-draft-badge--inline {
    margin-bottom: 0;
}

.tdg-order-edit-draft-badge--edit-mode {
    margin-bottom: 1rem;
}

.tdg-order-summary-card {
    transition: box-shadow 0.18s ease;
}

.tdg-order-edit--focused {
    border-left: 4px solid #3b82f6;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.34);
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.98) 0%, rgba(15, 23, 42, 0.94) 100%);
    transform: translateY(-1px);
    transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.tdg-order-edit__title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #f8fafc;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tdg-order-edit__subtitle {
    margin-top: 0.35rem;
    font-size: 0.8125rem;
    color: #94a3b8;
}

.tdg-order-edit__body {
    padding-bottom: 1.15rem;
}

.tdg-order-edit-table-wrap {
    border-radius: 0.55rem 0.55rem 0 0;
    overflow: hidden;
}

.tdg-order-edit-row.is-removed {
    opacity: 0.45;
}

.tdg-order-edit-row.is-removed .tdg-order-edit-row__name {
    text-decoration: line-through;
}

.tdg-order-edit-row.is-removed .tdg-qty-stepper__input,
.tdg-order-edit-row.is-removed .tdg-qty-stepper__btn {
    pointer-events: none;
    opacity: 0.55;
}

.tdg-qty-stepper {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.25rem;
    min-width: 7.5rem;
}

.tdg-qty-stepper__btn {
    width: 2rem;
    height: 2rem;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 0.45rem;
    background: rgba(15, 23, 42, 0.85);
    color: #e2e8f0;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.tdg-qty-stepper__btn:hover {
    background: rgba(51, 65, 85, 0.95);
    border-color: rgba(96, 165, 250, 0.45);
}

.tdg-qty-stepper__input {
    width: 3.25rem;
    text-align: center;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 0.45rem;
    background: rgba(15, 23, 42, 0.85);
    color: #f8fafc;
    font-weight: 700;
    padding: 0.35rem 0.25rem;
}

.tdg-qty-stepper__input::-webkit-outer-spin-button,
.tdg-qty-stepper__input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.tdg-order-edit-estimated-total {
    position: sticky;
    bottom: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(251, 191, 36, 0.35);
    border-top: 2px solid rgba(251, 191, 36, 0.55);
    border-radius: 0 0 0.55rem 0.55rem;
    background: linear-gradient(90deg, rgba(113, 63, 18, 0.35) 0%, rgba(30, 41, 59, 0.92) 100%);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.22);
}

.tdg-order-edit-estimated-total__label {
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fde68a;
}

.tdg-order-edit-estimated-total__value {
    font-size: 1.25rem;
    font-weight: 800;
    color: #fcd34d;
    white-space: nowrap;
}

.tdg-order-edit-btn--lg {
    min-height: 42px;
    padding: 0 1.15rem;
    font-size: 0.9375rem;
}

.tdg-order-edit-btn--save {
    background: #16a34a;
    border: 1px solid #22c55e;
}

.tdg-order-edit-btn--save:hover {
    background: #15803d;
    box-shadow: 0 4px 14px rgba(22, 163, 74, 0.32);
}

.tdg-order-edit-btn--danger-outline {
    background: transparent;
    border: 1px solid rgba(239, 68, 68, 0.55);
    color: #fca5a5;
    min-height: 34px;
    padding: 0 0.65rem;
    font-size: 0.8125rem;
}

.tdg-order-edit-btn--danger-outline:hover {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(248, 113, 113, 0.75);
    color: #fecaca;
}

.tdg-order-edit-btn--danger-outline[aria-pressed="true"] {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    color: #fff;
}

.tdg-order-toast-host {
    position: fixed;
    top: 5.5rem;
    right: 1rem;
    z-index: 1080;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: none;
}

.tdg-order-toast {
    min-width: 240px;
    max-width: 360px;
    padding: 0.75rem 1rem;
    border-radius: 0.55rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.18s ease, transform 0.18s ease;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.tdg-order-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.tdg-order-toast--success {
    background: linear-gradient(135deg, #15803d, #16a34a);
    border: 1px solid rgba(134, 239, 172, 0.45);
}

.tdg-order-toast--error {
    background: linear-gradient(135deg, #b91c1c, #dc2626);
    border: 1px solid rgba(252, 165, 165, 0.45);
}

@media (max-width: 767.98px) {
    .tdg-order-edit-actions {
        flex-direction: column;
    }

    .tdg-order-edit-actions .tdg-order-edit-btn--lg {
        width: 100%;
    }

    .tdg-order-edit-estimated-total {
        flex-direction: column;
        align-items: flex-start;
    }

    .tdg-qty-stepper {
        min-width: 6.5rem;
    }

    .tdg-order-toast-host {
        left: 1rem;
        right: 1rem;
    }

    .tdg-order-toast {
        max-width: none;
    }
}

.tdg-order-mod-ctrl-grid {
    margin-bottom: 0.75rem;
}

.tdg-order-mod-ctrl-metric {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-height: 100%;
    padding: 0.65rem 0.75rem;
    border-radius: 0.55rem;
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(59, 130, 246, 0.18);
}

.tdg-order-mod-ctrl-metric__label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #94a3b8;
}

.tdg-order-mod-ctrl-metric__value {
    font-size: 0.92rem;
    color: #e2e8f0;
}

.tdg-order-mod-ctrl-note {
    font-size: 0.8rem;
    color: #94a3b8;
}

.tdg-order-flash {
    font-size: 0.88rem;
    border-radius: 0.55rem;
}

.tdg-order-edit-case-flow {
    border-color: rgba(59, 130, 246, 0.28);
    background: rgba(30, 41, 59, 0.75);
}

.tdg-order-edit-case-flow .tdg-audit-ctrl-flow__step {
    color: #bfdbfe;
    border-color: rgba(59, 130, 246, 0.32);
    background: rgba(30, 58, 138, 0.25);
}

.tdg-order-edit-case-why {
    border-color: rgba(59, 130, 246, 0.28);
    background: rgba(37, 99, 235, 0.1);
}

.tdg-order-edit-case-why p {
    font-size: 0.88rem;
    line-height: 1.6;
    color: #cbd5e1;
    margin-bottom: 0;
}

.tdg-order-edit-audit-demo {
    border: 1px solid rgba(59, 130, 246, 0.22);
    border-radius: 0.55rem;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.55);
}

.tdg-order-edit-audit-demo .tdg-order-audit__table thead th {
    background: #162233;
    color: #cbd5e1;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border-color: rgba(255, 255, 255, 0.08);
}

.tdg-order-edit-audit-demo .tdg-order-audit__table tbody td {
    color: #f3f4f6;
    border-color: rgba(255, 255, 255, 0.08);
    vertical-align: middle;
}

@media (min-width: 992px) {
    .tdg-order-edit-case-flow {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.45rem 0.35rem;
    }

    .tdg-order-edit-case-flow .tdg-audit-ctrl-flow__arrow {
        transform: rotate(-90deg);
    }
}

.tdg-order-edit-case-card {
    background: rgba(37, 99, 235, 0.08);
    border-color: rgba(59, 130, 246, 0.24);
}

.tdg-order-edit-case-card .tdg-tech-ops-card__icon {
    color: #93c5fd;
}

.tdg-order-edit-case-card .tdg-tech-ops-card__title {
    color: #bfdbfe;
}

.tdg-order-edit-case-benefits li {
    font-size: 0.88rem;
}

.tdg-order-edit-case-arch {
    border-color: rgba(59, 130, 246, 0.28);
    background: rgba(37, 99, 235, 0.08);
}

.tdg-order-edit-case-arch p {
    font-size: 0.84rem;
    line-height: 1.55;
    color: #cbd5e1;
}

@media (max-width: 767.98px) {
    .tdg-order-edit-add-hint {
        padding-top: 0;
    }

    .tdg-order-edit-btn {
        width: 100%;
    }
}

.tdg-program-card__title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #fde68a;
    margin: 0 0 0.5rem;
}

.tdg-program-card__lead {
    font-size: 0.88rem;
    line-height: 1.55;
    color: #dfe7f5;
    margin: 0 0 0.65rem;
}

.tdg-program-card__label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #fcd34d;
    margin: 0 0 0.35rem;
}

.tdg-program-card__list {
    font-size: 0.86rem;
    line-height: 1.55;
    color: #dfe7f5;
    margin: 0 0 0.75rem;
    padding-left: 1.1rem;
}

.tdg-program-card__list li + li {
    margin-top: 0.2rem;
}

.tdg-program-card__highlight {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.86rem;
    color: #dfe7f5;
    margin: 0;
    padding: 0.55rem 0.65rem;
    border-radius: 0.45rem;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.25);
}

.tdg-program-card__highlight strong {
    color: #fde68a;
}

.tdg-program-card--esc .card-body,
.tdg-program-card--piano .card-body {
    padding: 1rem 1.1rem;
}

/* Phase 6.1 — venue facilities, ecosystem hub, property ops */
.tdg-facility-card {
    height: 100%;
    padding: 0.7rem 0.8rem;
    border-radius: 0.65rem;
    background: linear-gradient(145deg, rgba(30, 58, 95, 0.5) 0%, rgba(15, 23, 42, 0.88) 100%);
    border: 1px solid rgba(251, 191, 36, 0.22);
}

.tdg-facility-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.85rem;
    height: 1.85rem;
    margin-bottom: 0.35rem;
    border-radius: 0.4rem;
    font-size: 0.95rem;
    color: #fde68a;
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.28);
}

.tdg-facility-card__title {
    font-size: 0.9rem;
    font-weight: 800;
    color: #fde68a;
    margin: 0 0 0.2rem;
}

.tdg-facility-card__size {
    font-size: 0.76rem;
    font-weight: 600;
    color: #fcd34d;
    margin: 0 0 0.4rem;
}

.tdg-facility-card__list {
    font-size: 0.78rem;
    line-height: 1.4;
    color: #dfe7f5;
    margin: 0;
    padding-left: 1rem;
}

.tdg-facility-card__list li + li {
    margin-top: 0.15rem;
}

.tdg-ecosystem-hub {
    padding: 0.65rem 0.5rem 0.75rem;
    border-radius: 0.75rem;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(251, 191, 36, 0.18);
}

.tdg-ecosystem-hub__center-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 0.35rem;
}

.tdg-ecosystem-hub__center {
    display: inline-block;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #0f172a;
    background: linear-gradient(180deg, #fde68a, #f59e0b);
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

.tdg-ecosystem-hub__connector {
    display: block;
    width: 2px;
    height: 0.45rem;
    background: rgba(251, 191, 36, 0.45);
    border-radius: 1px;
}

.tdg-ecosystem-hub__connector--down {
    margin: 0 auto;
}

.tdg-ecosystem-node {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    height: 100%;
    padding: 0.45rem 0.55rem;
    border-radius: 0.45rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: #dfe7f5;
    background: rgba(30, 58, 95, 0.45);
    border: 1px solid rgba(148, 163, 184, 0.22);
    line-height: 1.25;
}

.tdg-ecosystem-node i {
    color: #fde68a;
    flex-shrink: 0;
}

.tdg-ecosystem-node--platform {
    justify-content: center;
    font-size: 0.78rem;
    color: #fde68a;
    background: rgba(251, 191, 36, 0.1);
    border-color: rgba(251, 191, 36, 0.35);
}

.tdg-ecosystem-hub__platform {
    margin-top: 0.5rem;
    text-align: center;
}

.tdg-ecosystem-hub__children {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem;
    margin-top: 0.45rem;
}

.tdg-ecosystem-child {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.3rem 0.5rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 600;
    color: #dfe7f5;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.tdg-ecosystem-child i {
    color: #fcd34d;
    font-size: 0.75rem;
}

.tdg-property-ops-card {
    height: 100%;
    padding: 0.65rem 0.75rem;
    border-radius: 0.65rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-top: 2px solid rgba(251, 191, 36, 0.45);
}

.tdg-property-ops-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    margin-bottom: 0.3rem;
    border-radius: 0.4rem;
    font-size: 0.9rem;
    color: #fde68a;
    background: rgba(251, 191, 36, 0.1);
}

.tdg-property-ops-card__title {
    font-size: 0.85rem;
    font-weight: 800;
    color: #fde68a;
    margin: 0 0 0.35rem;
}

.tdg-property-ops-card__list {
    font-size: 0.76rem;
    line-height: 1.4;
    color: #dfe7f5;
    margin: 0;
    padding-left: 1rem;
}

.tdg-property-ops-card__list li + li {
    margin-top: 0.12rem;
}

@media (max-width: 991.98px) {
    .tdg-partner-timeline__connector {
        display: none;
    }

    .tdg-partner-timeline__step {
        flex: 1 1 calc(50% - 0.5rem);
        max-width: none;
    }
}

.tdg-qr-illustration__scene {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    min-height: 11rem;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.45);
    border-radius: 0.75rem;
    border: 1px dashed rgba(148, 163, 184, 0.25);
}

.tdg-qr-illustration__phone {
    width: 7rem;
    background: #0f172a;
    border-radius: 1rem;
    border: 2px solid #475569;
    padding: 0.35rem 0.4rem 0.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.tdg-qr-illustration__phone-notch {
    width: 2rem;
    height: 0.25rem;
    margin: 0 auto 0.35rem;
    border-radius: 999px;
    background: #334155;
}

.tdg-qr-illustration__phone-screen {
    background: #1e293b;
    border-radius: 0.5rem;
    padding: 0.45rem;
}

.tdg-qr-illustration__phone-banner {
    display: block;
    text-align: center;
    font-size: 0.55rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #fde68a;
    background: rgba(20, 83, 45, 0.5);
    border-radius: 0.25rem;
    padding: 0.2rem;
    margin-bottom: 0.35rem;
}

.tdg-qr-illustration__phone-line {
    display: block;
    height: 0.35rem;
    background: #334155;
    border-radius: 0.15rem;
    margin-bottom: 0.25rem;
}

.tdg-qr-illustration__phone-btn {
    display: block;
    text-align: center;
    font-size: 0.5rem;
    font-weight: 800;
    color: #fff;
    background: #2563eb;
    border-radius: 0.25rem;
    padding: 0.25rem;
    margin-top: 0.35rem;
}

.tdg-qr-illustration__table-card {
    text-align: center;
    padding: 0.65rem;
    background: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.tdg-qr-illustration__qr-grid {
    width: 4.5rem;
    height: 4.5rem;
    margin: 0 auto 0.35rem;
    background:
        linear-gradient(90deg, #0f172a 2px, transparent 2px) 0 0 / 8px 8px,
        linear-gradient(#0f172a 2px, transparent 2px) 0 0 / 8px 8px,
        #fff;
    border: 2px solid #0f172a;
}

.tdg-qr-illustration__table-card span {
    font-size: 0.75rem;
    font-weight: 800;
    color: #0f172a;
}

.tdg-qr-illustration__scan-line {
    position: absolute;
    width: 5rem;
    height: 2px;
    background: linear-gradient(90deg, transparent, #22c55e, transparent);
    animation: tdg-scan 2s ease-in-out infinite;
}

@keyframes tdg-scan {
    0%, 100% { top: 30%; opacity: 0.3; }
    50% { top: 65%; opacity: 1; }
}

/* Screenshot gallery */
.tdg-screenshot-gallery {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.tdg-screenshot-gallery__head {
    margin-bottom: 1.25rem;
}

.tdg-screenshot-gallery__title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #f8fafc;
    margin: 0 0 0.35rem;
}

.tdg-screenshot-gallery__subtitle {
    font-size: 0.9rem;
    color: #94a3b8;
    margin: 0;
}

.tdg-screenshot-card {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
    transition: transform 0.2s ease;
}

.tdg-screenshot-card:hover {
    transform: translateY(-4px);
    color: inherit;
    text-decoration: none;
}

.tdg-screenshot-card__frame {
    position: relative;
    aspect-ratio: 16 / 10;
    border-radius: 0.75rem;
    margin-bottom: 0.75rem;
    background: #0f172a;
    border: 1px solid rgba(148, 163, 184, 0.25);
    overflow: hidden;
}

.tdg-screenshot-card__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.tdg-screenshot-card__label {
    display: block;
    font-size: 0.92rem;
    font-weight: 800;
    color: #f8fafc;
    text-align: center;
    line-height: 1.35;
}

.tdg-screenshot-card__desc {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.45;
    color: #94a3b8;
    text-align: center;
}

.tdg-screenshot-gallery__grid {
    margin-bottom: 0;
}

.tdg-case-study .tdg-screenshot-gallery {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.tdg-screenshot-card__mock-kpi {
    height: 1.5rem;
    width: 40%;
    border-radius: 0.25rem;
    background: rgba(59, 130, 246, 0.5);
}

.tdg-screenshot-card__mock-chart {
    flex: 1;
    border-radius: 0.35rem;
    background: repeating-linear-gradient(90deg, rgba(37, 99, 235, 0.4) 0 8%, transparent 8% 16%);
    opacity: 0.7;
}

.tdg-screenshot-card__mock-banner {
    font-size: 0.55rem;
    font-weight: 800;
    text-align: center;
    color: #fde68a;
    background: rgba(20, 83, 45, 0.5);
    border-radius: 0.2rem;
    padding: 0.15rem;
}

.tdg-screenshot-card__mock-line {
    height: 0.45rem;
    border-radius: 0.15rem;
    background: #334155;
}

.tdg-screenshot-card__mock-line--short { width: 70%; }
.tdg-screenshot-card__mock-line--thin { height: 0.3rem; }

.tdg-screenshot-card__mock-badge {
    font-size: 0.6rem;
    font-weight: 800;
    text-align: center;
    color: #0f172a;
    background: #fbbf24;
    border-radius: 0.25rem;
    padding: 0.2rem;
}

.tdg-screenshot-card__mock-row {
    height: 0.5rem;
    border-radius: 0.15rem;
    background: #334155;
}

.tdg-screenshot-card__mock-receipt-logo {
    font-size: 0.65rem;
    font-weight: 800;
    text-align: center;
    color: #14532d;
}

.tdg-screenshot-card__mock-total {
    font-size: 0.55rem;
    font-weight: 800;
    text-align: right;
    color: #000;
    background: #f1f5f9;
    padding: 0.15rem 0.25rem;
    border-radius: 0.15rem;
    margin-top: auto;
}

.tdg-screenshot-card__frame--receipt {
    background: #fff;
    border-color: #cbd5e1;
}

.tdg-screenshot-card__mock-qr {
    width: 3.5rem;
    height: 3.5rem;
    margin: 0 auto;
    background:
        linear-gradient(90deg, #0f172a 2px, transparent 2px) 0 0 / 6px 6px,
        linear-gradient(#0f172a 2px, transparent 2px) 0 0 / 6px 6px,
        #fff;
    border: 2px solid #0f172a;
}

.tdg-screenshot-card__mock-qr-label {
    font-size: 0.65rem;
    font-weight: 800;
    text-align: center;
    color: #e2e8f0;
}

.tdg-case-study__ecosystem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
    gap: 0.75rem;
}

.tdg-case-study__ecosystem-item {
    padding: 0.85rem 1rem;
    border-radius: 0.65rem;
    background: rgba(30, 41, 59, 0.65);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.tdg-case-study__ecosystem-item strong {
    display: block;
    font-size: 0.88rem;
    color: #fde68a;
    margin-bottom: 0.25rem;
}

.tdg-case-study__ecosystem-item span {
    font-size: 0.82rem;
    color: #94a3b8;
    line-height: 1.45;
}

@media (max-width: 991.98px) {
    .tdg-portfolio-diagram--compact .tdg-workflow-diagram {
        flex-wrap: wrap;
        justify-content: center;
        min-height: 0;
        gap: 0.75rem 0.35rem;
    }

    .tdg-portfolio-diagram--compact .tdg-workflow-diagram__step {
        flex: 0 1 28%;
        max-width: none;
    }

    .tdg-portfolio-diagram--compact .tdg-workflow-diagram__arrow {
        display: none;
    }

    .tdg-portfolio-diagram--compact .tdg-workflow-diagram__icon {
        width: 3.25rem;
        height: 3.25rem;
        font-size: 1.35rem;
    }

    .tdg-portfolio-diagram--compact .tdg-workflow-diagram__label {
        font-size: 1.05rem;
        max-width: 5.5rem;
    }

    .tdg-portfolio-diagram--compact .tdg-workflow-diagram__note--compact {
        font-size: 1rem;
    }
}

@media (max-width: 575.98px) {
    .tdg-workflow-diagram__arrow {
        display: none;
    }

    .tdg-workflow-diagram__step {
        min-width: 28%;
    }

    .tdg-portfolio-diagram--compact .card-body {
        min-height: 0;
        padding: 0.65rem 0.75rem 0.55rem;
    }

    .tdg-portfolio-diagram--compact .tdg-workflow-diagram {
        min-height: 0;
        padding: 0.35rem 0;
    }

    .tdg-portfolio-diagram--compact .tdg-workflow-diagram__step {
        flex: 0 1 28%;
        gap: 0.45rem;
    }

    .tdg-portfolio-diagram--compact .tdg-workflow-diagram__icon {
        width: 2.75rem;
        height: 2.75rem;
        font-size: 1.15rem;
    }

    .tdg-portfolio-diagram--compact .tdg-workflow-diagram__label {
        font-size: 0.95rem;
        max-width: 4.75rem;
    }

    .tdg-portfolio-diagram--compact .tdg-workflow-diagram__note--compact {
        font-size: 0.9375rem;
        max-width: 100%;
    }

    .tdg-qr-illustration__scene {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Manager dashboard — /TDG_Order/Dashboard (Business Analytics) */
.tdg-mgr-dashboard {
    margin-bottom: 0.75rem;
}

.tdg-mgr-section {
    margin-top: 1.5rem;
}

.tdg-mgr-flow-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 1rem;
    margin-bottom: 1.5rem;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.14), rgba(15, 23, 42, 0.72));
    border: 1px solid rgba(59, 130, 246, 0.22);
}

.tdg-mgr-flow-banner__label {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #93c5fd;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.2);
}

.tdg-mgr-flow-banner__text {
    font-size: 0.875rem;
    font-weight: 600;
    color: #e2e8f0;
}

.tdg-mgr-kpi {
    height: 100%;
    padding: 1.1rem 1.15rem 1rem;
    border-radius: 0.85rem;
    background: linear-gradient(160deg, rgba(30, 41, 59, 0.92), rgba(15, 23, 42, 0.88));
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.tdg-mgr-kpi:hover {
    transform: translateY(-2px);
    border-color: rgba(59, 130, 246, 0.35);
}

.tdg-mgr-kpi--revenue {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22), 0 0 24px rgba(245, 158, 11, 0.12);
}

.tdg-mgr-kpi--orders {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22), 0 0 24px rgba(59, 130, 246, 0.14);
}

.tdg-mgr-kpi--avg {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22), 0 0 24px rgba(96, 165, 250, 0.12);
}

.tdg-mgr-kpi--open {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22), 0 0 24px rgba(251, 191, 36, 0.12);
}

.tdg-mgr-kpi__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
}

.tdg-mgr-kpi__label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #94a3b8;
}

.tdg-mgr-kpi__trend {
    font-size: 0.72rem;
    font-weight: 800;
    white-space: nowrap;
}

.tdg-mgr-kpi__trend--up { color: #4ade80; }
.tdg-mgr-kpi__trend--down { color: #f87171; }

.tdg-mgr-kpi__value {
    display: block;
    font-size: clamp(2rem, 4.2vw, 3rem);
    font-weight: 800;
    line-height: 1.05;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.tdg-mgr-kpi__value--warn { color: #fde68a; }

.tdg-mgr-kpi__unit {
    font-size: 0.45em;
    font-weight: 700;
    color: #cbd5e1;
}

.tdg-mgr-kpi__subtitle {
    margin: 0.45rem 0 0;
    font-size: 0.8125rem;
    color: #94a3b8;
    line-height: 1.35;
}

.tdg-mgr-kpi__compare {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: #64748b;
}

.tdg-mgr-panel {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.tdg-mgr-panel:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.tdg-mgr-panel__title {
    font-size: 0.98rem;
    font-weight: 800;
    color: #fde68a;
    letter-spacing: 0.02em;
    margin: 0 0 1rem;
}

.tdg-mgr-panel .card-body {
    padding: 1.15rem 1.25rem;
}

.tdg-mgr-empty {
    color: #94a3b8;
    font-size: 0.875rem;
}

.tdg-mgr-mini-insight {
    height: 100%;
    padding: 0.9rem 0.95rem;
    border-radius: 0.75rem;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.16);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.tdg-mgr-mini-insight:hover {
    transform: translateY(-2px);
}

.tdg-mgr-mini-insight--gold { border-color: rgba(251, 191, 36, 0.35); box-shadow: 0 0 18px rgba(251, 191, 36, 0.08); }
.tdg-mgr-mini-insight--orange { border-color: rgba(249, 115, 22, 0.35); box-shadow: 0 0 18px rgba(249, 115, 22, 0.08); }
.tdg-mgr-mini-insight--green { border-color: rgba(34, 197, 94, 0.35); box-shadow: 0 0 18px rgba(34, 197, 94, 0.08); }
.tdg-mgr-mini-insight--blue { border-color: rgba(59, 130, 246, 0.35); box-shadow: 0 0 18px rgba(59, 130, 246, 0.08); }

.tdg-mgr-mini-insight__icon {
    display: inline-flex;
    margin-bottom: 0.45rem;
    font-size: 1.05rem;
    color: #93c5fd;
}

.tdg-mgr-mini-insight--gold .tdg-mgr-mini-insight__icon { color: #fde68a; }
.tdg-mgr-mini-insight--orange .tdg-mgr-mini-insight__icon { color: #fdba74; }
.tdg-mgr-mini-insight--green .tdg-mgr-mini-insight__icon { color: #86efac; }

.tdg-mgr-mini-insight__title {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 0.25rem;
}

.tdg-mgr-mini-insight__value {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
}

.tdg-mgr-chart-wrap {
    position: relative;
    height: 11.5rem;
}

.tdg-mgr-chart-wrap--status {
    height: 12.5rem;
    padding: 0.5rem;
}

.tdg-mgr-chart-wrap--items {
    height: 10rem;
    margin-top: 1rem;
    padding: 0.35rem 0.25rem 0;
}

.tdg-mgr-status-cards {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.tdg-mgr-status-card {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 0.85rem;
    border-radius: 0.65rem;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.18);
    transition: transform 0.15s ease;
}

.tdg-mgr-status-card:hover {
    transform: translateX(2px);
}

.tdg-mgr-status-card__label {
    flex: 1 1 auto;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #cbd5e1;
}

.tdg-mgr-status-card__value {
    font-size: 1.15rem;
    font-weight: 800;
    color: #f8fafc;
    line-height: 1;
}

.tdg-mgr-status-card__pct {
    min-width: 3rem;
    text-align: right;
    font-size: 0.78rem;
    font-weight: 700;
    color: #93c5fd;
}

.tdg-mgr-status-card--new { border-left: 3px solid #3b82f6; }
.tdg-mgr-status-card--preparing { border-left: 3px solid #f59e0b; }
.tdg-mgr-status-card--completed { border-left: 3px solid #22c55e; }

.tdg-mgr-top-items {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.tdg-mgr-top-item {
    padding: 0.65rem 0.75rem;
    border-radius: 0.65rem;
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.tdg-mgr-top-item--leader {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(15, 23, 42, 0.65));
    border-color: rgba(96, 165, 250, 0.45);
    box-shadow: 0 0 22px rgba(37, 99, 235, 0.15);
}

.tdg-mgr-top-item__head {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.65rem;
    align-items: start;
    margin-bottom: 0.55rem;
}

.tdg-mgr-top-item__rank {
    font-size: 0.78rem;
    font-weight: 800;
    color: #93c5fd;
}

.tdg-mgr-top-item--leader .tdg-mgr-top-item__rank {
    color: #fde68a;
}

.tdg-mgr-top-item__name {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.3;
}

.tdg-mgr-top-item__qty {
    display: block;
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 0.1rem;
}

.tdg-mgr-top-item__revenue {
    font-size: 0.84rem;
    font-weight: 700;
    color: #e2e8f0;
    text-align: right;
    white-space: nowrap;
}

.tdg-mgr-top-item__track {
    display: block;
    height: 0.55rem;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.14);
    overflow: hidden;
}

.tdg-mgr-top-item__fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2563eb 0%, #60a5fa 100%);
    box-shadow: 0 0 12px rgba(37, 99, 235, 0.35);
}

.tdg-mgr-top-item--leader .tdg-mgr-top-item__fill {
    background: linear-gradient(90deg, #2563eb 0%, #fde68a 140%);
}

.tdg-mgr-table {
    color: #e2e8f0;
}

.tdg-mgr-table thead th {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #94a3b8;
    border-bottom-color: rgba(148, 163, 184, 0.2);
}

.tdg-mgr-table tbody td {
    border-top-color: rgba(148, 163, 184, 0.12);
    vertical-align: middle;
}

.tdg-mgr-table__rank-col {
    width: 3rem;
}

.tdg-mgr-table__leader {
    background: rgba(37, 99, 235, 0.08);
}

.tdg-mgr-rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    padding: 0.15rem 0.4rem;
    border-radius: 0.4rem;
    font-size: 0.72rem;
    font-weight: 800;
    color: #cbd5e1;
    background: rgba(148, 163, 184, 0.12);
}

.tdg-mgr-rank-badge--top1 {
    color: #fde68a;
    background: rgba(251, 191, 36, 0.18);
}

.tdg-mgr-rank-badge--top2 {
    color: #e2e8f0;
    background: rgba(148, 163, 184, 0.22);
}

.tdg-mgr-rank-badge--top3 {
    color: #fdba74;
    background: rgba(249, 115, 22, 0.16);
}

.tdg-mgr-timeline-scroll {
    max-height: 21rem;
    overflow-y: auto;
    padding-right: 0.35rem;
    flex: 1 1 auto;
}

.tdg-mgr-timeline {
    position: relative;
    padding-left: 1.35rem;
}

.tdg-mgr-timeline::before {
    content: "";
    position: absolute;
    left: 0.28rem;
    top: 0.35rem;
    bottom: 0.35rem;
    width: 2px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.65), rgba(148, 163, 184, 0.2));
}

.tdg-mgr-timeline__item {
    position: relative;
    display: flex;
    gap: 0.75rem;
    padding: 0.65rem 0;
}

.tdg-mgr-timeline__dot {
    position: absolute;
    left: -1.15rem;
    top: 0.85rem;
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: #64748b;
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.95);
}

.tdg-mgr-timeline__item--created .tdg-mgr-timeline__dot { background: #3b82f6; }
.tdg-mgr-timeline__item--preparing .tdg-mgr-timeline__dot { background: #f59e0b; }
.tdg-mgr-timeline__item--completed .tdg-mgr-timeline__dot { background: #22c55e; }
.tdg-mgr-timeline__item--printed .tdg-mgr-timeline__dot { background: #a78bfa; }

.tdg-mgr-timeline__content {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.tdg-mgr-timeline__time {
    font-size: 0.78rem;
    font-weight: 700;
    color: #93c5fd;
}

.tdg-mgr-timeline__text {
    font-size: 0.875rem;
    font-weight: 500;
    color: #f1f5f9;
    line-height: 1.4;
}

@media (max-width: 991.98px) {
    .tdg-mgr-kpi__value {
        font-size: clamp(1.75rem, 5vw, 2.35rem);
    }
}

@media (max-width: 575.98px) {
    .tdg-mgr-section {
        margin-top: 1.15rem;
    }

    .tdg-mgr-flow-banner__text {
        font-size: 0.8125rem;
    }

    .tdg-mgr-top-item__head {
        grid-template-columns: auto 1fr;
    }

    .tdg-mgr-top-item__revenue {
        grid-column: 2;
        text-align: left;
        margin-top: 0.15rem;
    }

    .tdg-mgr-chart-wrap--status,
    .tdg-mgr-chart-wrap--items {
        height: 9rem;
    }
}

.tdg-analytics-toolbar {
    margin-bottom: 0.5rem;
}

.tdg-analytics-toolbar__row {
    gap: 1rem;
}

.tdg-analytics-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
}

.tdg-analytics-filter-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.15rem;
    padding: 0.42rem 0.95rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(15, 23, 42, 0.88);
    color: #94a3b8;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease;
}

.tdg-analytics-filter-chip:hover,
.tdg-analytics-filter-chip:focus-visible {
    color: #ffffff;
    border-color: rgba(96, 165, 250, 0.75);
    background: rgba(30, 41, 59, 0.95);
    transform: translateY(-1px);
    text-decoration: none;
    outline: none;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.16);
}

.tdg-analytics-filter-chip.is-active,
.tdg-analytics-filter-chip.is-active:hover,
.tdg-analytics-filter-chip.is-active:focus-visible {
    color: #ffffff;
    font-weight: 700;
    border-color: rgba(96, 165, 250, 0.55);
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 55%, #1e40af 100%);
    box-shadow:
        0 8px 22px rgba(37, 99, 235, 0.35),
        0 0 0 1px rgba(147, 197, 253, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

.tdg-analytics-toolbar__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
}

.tdg-analytics-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 2.15rem;
    padding: 0.45rem 1rem;
    border-radius: 0.65rem;
    border: 1px solid transparent;
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease;
}

.tdg-analytics-action-btn .bi {
    font-size: 0.95rem;
    line-height: 1;
}

.tdg-analytics-action-btn--refresh {
    color: #ffffff;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-color: rgba(96, 165, 250, 0.45);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.28);
}

.tdg-analytics-action-btn--refresh:hover,
.tdg-analytics-action-btn--refresh:focus-visible {
    color: #ffffff;
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    border-color: rgba(147, 197, 253, 0.65);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.34);
    outline: none;
}

.tdg-analytics-action-btn--export {
    color: #ecfdf5;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border-color: rgba(74, 222, 128, 0.45);
    box-shadow: 0 6px 18px rgba(34, 197, 94, 0.24);
}

.tdg-analytics-action-btn--export:hover,
.tdg-analytics-action-btn--export:focus-visible {
    color: #ffffff;
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
    border-color: rgba(134, 239, 172, 0.65);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(34, 197, 94, 0.32);
    text-decoration: none;
    outline: none;
}

.tdg-analytics-action-btn--apply {
    color: #ffffff;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-color: rgba(96, 165, 250, 0.45);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.28);
}

.tdg-analytics-action-btn--apply:hover,
.tdg-analytics-action-btn--apply:focus-visible {
    color: #ffffff;
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    border-color: rgba(147, 197, 253, 0.65);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.34);
    outline: none;
}

.tdg-analytics-custom-panel {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    margin-bottom: 0;
    pointer-events: none;
    transition:
        max-height 0.35s ease,
        opacity 0.28s ease,
        margin-bottom 0.28s ease;
}

.tdg-analytics-custom-panel.is-open {
    max-height: 12rem;
    opacity: 1;
    margin-bottom: 0.75rem;
    pointer-events: auto;
}

.tdg-analytics-custom {
    transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.tdg-analytics-custom--highlight {
    margin-top: 0.15rem;
    padding: 0.95rem 1rem 1rem;
    border-radius: 0.85rem;
    background: linear-gradient(165deg, rgba(37, 99, 235, 0.12) 0%, rgba(30, 41, 59, 0.92) 100%);
    border: 1px solid rgba(96, 165, 250, 0.28);
    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.tdg-analytics-custom__label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 0.25rem;
}

.tdg-analytics-custom__input {
    background: rgba(15, 23, 42, 0.85);
    border-color: rgba(148, 163, 184, 0.25);
    color: #e2e8f0;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.tdg-analytics-custom--highlight .tdg-analytics-custom__input:focus {
    border-color: rgba(96, 165, 250, 0.65);
    box-shadow: 0 0 0 0.15rem rgba(37, 99, 235, 0.18);
}

.tdg-analytics-period {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #94a3b8;
}

.tdg-analytics-diagnostics {
    padding: 0.85rem 1rem;
    border-radius: 0.65rem;
    border: 1px dashed rgba(251, 191, 36, 0.45);
    background: rgba(251, 191, 36, 0.08);
}

.tdg-analytics-diagnostics__title {
    margin-bottom: 0.65rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fbbf24;
}

.tdg-analytics-diagnostics__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
    gap: 0.65rem 1rem;
}

.tdg-analytics-diagnostics__grid dt {
    margin: 0 0 0.15rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #94a3b8;
}

.tdg-analytics-diagnostics__grid dd {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.35;
    color: #fde68a;
}

.tdg-analytics-diagnostics__arrow {
    color: #94a3b8;
    font-size: 0.75rem;
}

/* ── Executive summary ── */
.tdg-analytics-summary {
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.92) 0%, rgba(30, 41, 59, 0.88) 100%);
    border-radius: 0.75rem;
    padding: 1.25rem 1.35rem;
}

.tdg-analytics-summary__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.tdg-analytics-summary__eyebrow {
    margin: 0 0 0.2rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
}

.tdg-analytics-summary__title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #f1f5f9;
}

.tdg-analytics-summary__period {
    display: inline-flex;
    align-items: center;
    min-height: 1.85rem;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(59, 130, 246, 0.35);
    background: rgba(37, 99, 235, 0.12);
    color: #93c5fd;
    font-size: 0.78rem;
    font-weight: 700;
}

.tdg-analytics-summary__metric {
    height: 100%;
    padding: 0.65rem 0.75rem;
    border-radius: 0.55rem;
    border: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(15, 23, 42, 0.45);
}

.tdg-analytics-summary__label {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #64748b;
}

.tdg-analytics-summary__value {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.25;
    color: #f8fafc;
}

.tdg-analytics-summary__value--text {
    font-size: 0.92rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── KPI cards ── */
.tdg-analytics-kpi-row {
    margin-bottom: 0.25rem;
}

.tdg-analytics-kpi-link {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.tdg-analytics-kpi-link:hover,
.tdg-analytics-kpi-link:focus-visible {
    color: inherit;
    text-decoration: none;
}

.tdg-analytics-kpi {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    height: 100%;
    min-height: 7.25rem;
    padding: 0.95rem 1rem;
    border-radius: 0.65rem;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(15, 23, 42, 0.72);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.tdg-analytics-kpi-link .tdg-analytics-kpi {
    cursor: pointer;
}

.tdg-analytics-kpi:hover,
.tdg-analytics-kpi-link:focus-visible .tdg-analytics-kpi {
    transform: translateY(-3px);
    border-color: rgba(148, 163, 184, 0.28);
    box-shadow: 0 10px 24px rgba(2, 6, 23, 0.35);
}

.tdg-analytics-kpi__icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.55rem;
    font-size: 1.05rem;
    color: #e2e8f0;
    background: rgba(148, 163, 184, 0.12);
}

.tdg-analytics-kpi--revenue .tdg-analytics-kpi__icon { color: #fbbf24; background: rgba(245, 158, 11, 0.14); }
.tdg-analytics-kpi--orders .tdg-analytics-kpi__icon { color: #60a5fa; background: rgba(59, 130, 246, 0.14); }
.tdg-analytics-kpi--avg .tdg-analytics-kpi__icon { color: #a78bfa; background: rgba(167, 139, 250, 0.14); }
.tdg-analytics-kpi--items .tdg-analytics-kpi__icon { color: #34d399; background: rgba(52, 211, 153, 0.14); }
.tdg-analytics-kpi--kitchen .tdg-analytics-kpi__icon { color: #fb923c; background: rgba(251, 146, 60, 0.14); }
.tdg-analytics-kpi--completed .tdg-analytics-kpi__icon { color: #4ade80; background: rgba(74, 222, 128, 0.14); }

.tdg-analytics-kpi__body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.2rem;
}

.tdg-analytics-kpi__label {
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.25;
    color: #94a3b8;
}

.tdg-analytics-kpi__value {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
    color: #f8fafc;
    white-space: nowrap;
}

.tdg-analytics-kpi__value--warn {
    color: #fdba74;
}

.tdg-analytics-kpi__unit {
    font-size: 0.72rem;
    font-weight: 600;
    color: #64748b;
}

.tdg-analytics-kpi__trend {
    font-size: 0.72rem;
    font-weight: 700;
    color: #94a3b8;
}

.tdg-analytics-kpi__trend--up {
    color: #4ade80;
}

.tdg-analytics-kpi__trend--down {
    color: #f87171;
}

/* ── Chart panels ── */
.tdg-analytics-charts {
    margin-bottom: 0.25rem;
}

.tdg-analytics-chart-panel {
    overflow: hidden;
}

.tdg-analytics-chart-panel .card-body {
    padding: 0;
}

.tdg-analytics-chart-panel__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1.1rem 0.65rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.tdg-analytics-chart-panel__title {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 700;
    color: #f1f5f9;
}

.tdg-analytics-chart-panel__subtitle {
    margin: 0.2rem 0 0;
    font-size: 0.76rem;
    font-weight: 500;
    color: #64748b;
}

.tdg-analytics-chart-toolbar {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: auto;
}

.tdg-analytics-chart-tool {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.85rem;
    height: 1.85rem;
    padding: 0;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 0.4rem;
    background: rgba(15, 23, 42, 0.55);
    color: #94a3b8;
    transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.tdg-analytics-chart-tool:hover,
.tdg-analytics-chart-tool:focus-visible {
    color: #e2e8f0;
    border-color: rgba(96, 165, 250, 0.45);
    background: rgba(37, 99, 235, 0.14);
}

.tdg-analytics-chart-panel__body {
    position: relative;
    padding: 0.85rem 1rem 1rem;
    min-height: 16rem;
}

.tdg-analytics-chart-loading {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.55);
}

.tdg-analytics-chart-panel.is-ready .tdg-analytics-chart-loading {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 180ms ease, visibility 180ms ease;
}

.tdg-analytics-chart-loading__spinner {
    width: 1.75rem;
    height: 1.75rem;
    border: 2px solid rgba(148, 163, 184, 0.25);
    border-top-color: #60a5fa;
    border-radius: 50%;
    animation: tdg-analytics-spin 0.8s linear infinite;
}

@keyframes tdg-analytics-spin {
    to { transform: rotate(360deg); }
}

.tdg-analytics-chart-wrap {
    position: relative;
    min-height: 14rem;
}

.tdg-analytics-chart-panel.is-fullscreen {
    position: fixed;
    inset: 0.75rem;
    z-index: 1080;
    height: auto !important;
    box-shadow: 0 24px 64px rgba(2, 6, 23, 0.65);
}

.tdg-analytics-chart-panel.is-fullscreen .tdg-analytics-chart-panel__body {
    min-height: calc(100vh - 7rem);
}

.tdg-analytics-chart-panel.is-fullscreen .tdg-analytics-chart-wrap {
    min-height: calc(100vh - 9rem);
}

/* ── Empty state ── */
.tdg-analytics-empty {
    min-height: 12rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 2rem 1.25rem;
    text-align: center;
}

.tdg-analytics-empty__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    margin-bottom: 0.35rem;
    border-radius: 999px;
    font-size: 1.35rem;
    color: #64748b;
    background: rgba(148, 163, 184, 0.1);
}

.tdg-analytics-empty__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #e2e8f0;
}

.tdg-analytics-empty__hint {
    max-width: 28rem;
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 0.35rem;
}

.tdg-analytics-empty__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.15rem;
    margin-top: 0.35rem;
    padding: 0.42rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(96, 165, 250, 0.45);
    background: rgba(37, 99, 235, 0.14);
    color: #bfdbfe;
    font-size: 0.8125rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.tdg-analytics-empty__action:hover,
.tdg-analytics-empty__action:focus-visible {
    color: #ffffff;
    border-color: rgba(147, 197, 253, 0.75);
    background: rgba(37, 99, 235, 0.28);
    transform: translateY(-1px);
    text-decoration: none;
    outline: none;
}

/* ── Detail grid ── */
.tdg-analytics-grid-section .card-body {
    padding: 1.1rem 1.15rem 1rem;
}

.tdg-analytics-grid-wrap {
    max-height: 28rem;
    overflow: auto;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 0.55rem;
}

.tdg-analytics-grid {
    margin-bottom: 0;
}

.tdg-analytics-grid thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #0f172a;
    box-shadow: 0 1px 0 rgba(148, 163, 184, 0.12);
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #94a3b8;
    white-space: nowrap;
}

.tdg-analytics-grid tbody td {
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
    font-size: 0.86rem;
    vertical-align: middle;
}

.tdg-analytics-grid tbody tr:nth-child(even) {
    background: rgba(148, 163, 184, 0.04);
}

.tdg-analytics-grid__row {
    cursor: pointer;
    transition: background-color 160ms ease;
}

.tdg-analytics-grid__row:hover,
.tdg-analytics-grid__row:focus-visible {
    background: rgba(59, 130, 246, 0.12) !important;
    outline: none;
}

.tdg-analytics-grid th[data-sort] {
    user-select: none;
    cursor: pointer;
}

.tdg-analytics-grid th[data-sort]:hover {
    color: #e2e8f0;
}

.tdg-analytics-grid__col-date {
    white-space: normal;
}

.tdg-analytics-grid__col-head {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
    line-height: 1.15;
}

.tdg-analytics-pager {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 0.25rem;
}

.tdg-analytics-pager__controls {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
}

.tdg-analytics-pager__info {
    color: #94a3b8;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}

.tdg-analytics-pager__btn {
    min-width: 7.5rem;
}

.tdg-analytics-pager__btn:disabled,
.tdg-analytics-pager__btn[disabled] {
    background: #475569;
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.28);
    box-shadow: none;
    cursor: not-allowed;
    opacity: 1;
    transform: none;
}

.tdg-analytics-pager__btn:disabled:hover,
.tdg-analytics-pager__btn:disabled:focus-visible,
.tdg-analytics-pager__btn[disabled]:hover,
.tdg-analytics-pager__btn[disabled]:focus-visible {
    background: #475569;
    color: #94a3b8;
    border-color: rgba(148, 163, 184, 0.28);
    box-shadow: none;
    transform: none;
}

.tdg-analytics-alert {
    border-color: rgba(251, 191, 36, 0.35);
    background: rgba(251, 191, 36, 0.12);
    color: #fde68a;
}

@media (max-width: 991.98px) {
    .tdg-analytics-charts > [class*="col-"] {
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .tdg-analytics-filters {
        gap: 0.45rem;
    }

    .tdg-analytics-filter-chip {
        min-height: 2rem;
        padding: 0.38rem 0.8rem;
        font-size: 0.78rem;
    }

    .tdg-analytics-toolbar__actions {
        width: 100%;
    }

    .tdg-analytics-action-btn--export {
        width: 100%;
    }

    .tdg-analytics-kpi {
        min-height: 6.5rem;
        padding: 0.8rem 0.85rem;
    }

    .tdg-analytics-kpi__value {
        font-size: 1.05rem;
    }

    .tdg-analytics-summary {
        padding: 1rem;
    }

    .tdg-analytics-chart-panel__body {
        min-height: 14rem;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Sprint 1 — Dashboard + Kitchen polish (Phase 1A screen-specific)
   Uses design-system classes; screen layout only (no new global tokens).
   ═══════════════════════════════════════════════════════════════════════════ */

.tdg-order-dashboard--s1 .tdg-order-kpi-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    margin-bottom: 0.1rem;
    font-size: 1rem;
    line-height: 1;
    opacity: 1;
}

.tdg-order-dashboard--s1 .tdg-order-kpi-card__icon .bi {
    color: var(--tdg-kpi-accent, #3b82f6);
    transition: color 180ms ease, transform 180ms ease;
}

.tdg-order-dashboard--s1 .tdg-order-kpi-card:hover .tdg-order-kpi-card__icon .bi {
    transform: scale(1.06);
}

.tdg-order-dashboard--s1 .tdg-order-panel-title {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.tdg-order-panel-title__icon {
    font-size: 1rem;
    color: #93c5fd;
    opacity: 0.9;
}

.tdg-order-dashboard--s1 .tdg-order-dashboard-table tbody tr {
    transition: background 150ms ease;
}

.tdg-order-dashboard--s1 .tdg-order-table-status-card {
    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        border-color 180ms ease;
}

.tdg-order-dashboard--s1 .tdg-order-table-status-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
    border-color: rgba(148, 163, 184, 0.35);
}

.tdg-order-chart-wrap--s1 {
    position: relative;
    min-height: 16rem;
}

.tdg-order-chart-wrap--s1 canvas {
    position: relative;
    z-index: 0;
    width: 100% !important;
    height: 16rem !important;
}

.tdg-kitchen-app--s1 .tdg-order-kpi-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    font-size: 1rem;
    opacity: 1;
}

.tdg-kitchen-app--s1 .tdg-order-kpi-card__icon .bi {
    color: var(--tdg-kpi-accent, #3b82f6);
    transition: color 180ms ease, transform 180ms ease;
}

.tdg-kitchen-app--s1 .tdg-order-kpi-card:hover .tdg-order-kpi-card__icon .bi {
    transform: scale(1.06);
}

.tdg-kitchen-hero__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 0.75rem;
    margin-bottom: 0.35rem;
}

.tdg-kitchen-hero__title {
    margin: 0;
    font-size: clamp(1.35rem, 2.8vw, 1.75rem);
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #f1f5f9;
}

.tdg-kitchen-hero__hint {
    font-size: 0.82rem;
    font-weight: 500;
    color: #94a3b8;
    max-width: 42rem;
}

.tdg-kitchen-queue-shell {
    position: relative;
    min-height: 6rem;
    transition: opacity 180ms ease;
}

.tdg-kitchen-queue-shell.is-loading #tdgKitchenQueueHost {
    opacity: 0.45;
    pointer-events: none;
    transition: opacity 180ms ease;
}

.tdg-kitchen-queue-shell__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 1rem;
    border-radius: 0.75rem;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(2px);
}

.tdg-kitchen-queue-shell__overlay[hidden] {
    display: none !important;
}

.tdg-kitchen-queue-shell__label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #cbd5e1;
}

.tdg-kitchen-app--s1 .tdg-kitchen-filter-chip {
    transition:
        background 180ms ease,
        border-color 180ms ease,
        color 180ms ease,
        transform 150ms ease;
}

.tdg-kitchen-app--s1 .tdg-kitchen-filter-chip:hover:not(:disabled) {
    transform: translateY(-1px);
}

.tdg-kitchen-app--s1 .tdg-kitchen-filter-empty,
.tdg-kitchen-app--s1 .tdg-kitchen-empty {
    min-height: 9rem;
}

.tdg-kitchen-toolbar__refresh-icon {
    transition: transform 180ms ease;
}

#tdgKitchenRefreshBtn.is-loading .tdg-kitchen-toolbar__refresh-icon {
    animation: tdg-ds-spin 0.8s linear infinite;
}

@media (max-width: 767.98px) {
    .tdg-kitchen-hero__hint {
        display: block;
    }
}

/* Business Architecture portfolio page */
.tdg-biz-arch-goals {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.35rem 1rem;
}

@media (min-width: 576px) {
    .tdg-biz-arch-goals {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .tdg-biz-arch-goals {
        grid-template-columns: repeat(3, 1fr);
    }
}

.tdg-biz-arch-flow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    max-width: 22rem;
    margin: 1.25rem auto 0;
    padding: 1rem 0.75rem;
    border-radius: 0.75rem;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(251, 191, 36, 0.22);
}

.tdg-biz-arch-flow__step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    width: 100%;
    padding: 0.85rem 1rem;
    text-align: center;
}

.tdg-biz-arch-flow__step .bi {
    font-size: 1.35rem;
    color: #fde68a;
}

.tdg-biz-arch-flow__step span {
    font-size: 0.9rem;
    font-weight: 700;
    color: #f8fafc;
    line-height: 1.35;
}

.tdg-biz-arch-flow__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0;
    color: rgba(251, 191, 36, 0.75);
    font-size: 1.1rem;
    line-height: 1;
}

@media (min-width: 992px) {
    .tdg-biz-arch-flow {
        max-width: none;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        padding: 1.25rem 1rem;
    }

    .tdg-biz-arch-flow__step {
        width: auto;
        min-width: 7.25rem;
        max-width: 9.5rem;
    }

    .tdg-biz-arch-flow__arrow .bi {
        transform: rotate(-90deg);
    }
}

.tdg-biz-arch-diagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    max-width: 42rem;
    margin: 1.25rem auto 0;
    padding: 1.25rem 1rem;
    border-radius: 0.75rem;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(251, 191, 36, 0.22);
}

.tdg-biz-arch-diagram__center,
.tdg-biz-arch-diagram__node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    width: 100%;
    padding: 0.85rem 1rem;
    text-align: center;
}

.tdg-biz-arch-diagram__center .bi,
.tdg-biz-arch-diagram__node .bi {
    font-size: 1.35rem;
    color: #fde68a;
}

.tdg-biz-arch-diagram__center span,
.tdg-biz-arch-diagram__node span {
    font-size: 0.88rem;
    font-weight: 800;
    color: #f8fafc;
    line-height: 1.3;
}

.tdg-biz-arch-diagram__center {
    max-width: 18rem;
}

.tdg-biz-arch-diagram__node--wide {
    max-width: 18rem;
}

.tdg-biz-arch-diagram__row {
    width: 100%;
}

.tdg-biz-arch-diagram__connector {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0;
    color: rgba(251, 191, 36, 0.75);
    font-size: 1.1rem;
    line-height: 1;
}

.tdg-biz-arch-contrib__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    height: 100%;
    padding: 1rem 0.75rem;
    text-align: center;
}

.tdg-biz-arch-contrib__item .bi {
    font-size: 1.25rem;
    color: #93c5fd;
}

.tdg-biz-arch-contrib__item span {
    font-size: 0.82rem;
    font-weight: 700;
    color: #e2e8f0;
    line-height: 1.35;
}

/* Portfolio Demo Banner */
.tdg-portfolio-demo-banner {
    position: relative;
    padding: 0.85rem 1rem 0.9rem;
    border-color: rgba(59, 130, 246, 0.28);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.92) 0%, rgba(30, 41, 59, 0.88) 100%);
    animation: tdg-ds-fade-in var(--tdg-ds-transition-slow, 180ms ease) both;
    overflow: hidden;
}

.tdg-portfolio-demo-banner::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
    border-radius: var(--tdg-ds-radius-lg, 1rem) 0 0 var(--tdg-ds-radius-lg, 1rem);
}

.tdg-portfolio-demo-banner__badge-wrap {
    position: absolute;
    top: 0.65rem;
    right: 0.75rem;
    z-index: 1;
}

.tdg-portfolio-demo-banner__badge {
    color: #eff6ff;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 55%, #1d4ed8 100%);
    border: 1px solid rgba(147, 197, 253, 0.45);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}

.tdg-portfolio-demo-banner__badge-dot {
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 50%;
    background: #93c5fd;
    animation: tdg-demo-badge-pulse 3.5s ease-out infinite;
}

.tdg-portfolio-demo-banner__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem 1.25rem;
    padding-right: 5.5rem;
}

.tdg-portfolio-demo-banner__main {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    flex: 1 1 18rem;
    min-width: 0;
}

.tdg-portfolio-demo-banner__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: var(--tdg-ds-radius-sm, 0.55rem);
    font-size: 1.15rem;
    color: #93c5fd;
    background: rgba(37, 99, 235, 0.14);
    border: 1px solid rgba(59, 130, 246, 0.28);
}

.tdg-portfolio-demo-banner__title {
    margin: 0 0 0.2rem;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--tdg-ds-text-strong, #f1f5f9);
    line-height: 1.25;
}

.tdg-portfolio-demo-banner__subtitle {
    font-size: 0.84rem;
    font-weight: 500;
    color: var(--tdg-ds-text, #e2e8f0);
    line-height: 1.45;
    max-width: 36rem;
}

.tdg-portfolio-demo-banner__tech {
    margin-top: 0.35rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--tdg-ds-text-muted, #94a3b8);
    line-height: 1.35;
}

.tdg-portfolio-demo-banner__kpis {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0.45rem;
    flex: 0 1 auto;
}

.tdg-portfolio-demo-banner__kpi {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.1rem;
    min-width: 6.5rem;
    padding: 0.45rem 0.65rem;
    border-radius: var(--tdg-ds-radius-sm, 0.55rem);
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid var(--tdg-ds-border, rgba(148, 163, 184, 0.22));
}

.tdg-portfolio-demo-banner__kpi-label {
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--tdg-ds-text-muted, #94a3b8);
    line-height: 1.2;
}

.tdg-portfolio-demo-banner__kpi-value {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--tdg-ds-text-strong, #f1f5f9);
    line-height: 1.2;
}

@keyframes tdg-demo-badge-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(147, 197, 253, 0.55);
    }
    50% {
        box-shadow: 0 0 0 0.35rem rgba(147, 197, 253, 0);
    }
}

@media (max-width: 767.98px) {
    .tdg-portfolio-demo-banner__inner {
        flex-direction: column;
        align-items: stretch;
        padding-right: 0;
        padding-top: 1.75rem;
    }

    .tdg-portfolio-demo-banner__badge-wrap {
        top: 0.55rem;
        right: 0.55rem;
    }

    .tdg-portfolio-demo-banner__kpis {
        width: 100%;
    }

    .tdg-portfolio-demo-banner__kpi {
        flex: 1 1 calc(50% - 0.25rem);
        min-width: 0;
    }
}

@media (max-width: 479.98px) {
    .tdg-portfolio-demo-banner__kpi {
        flex: 1 1 100%;
    }
}

/* -------------------------------------------------------------------------
   TDG_Order Login / SaaS landing — bilingual typography (Sprint 5 UI polish)
   ------------------------------------------------------------------------- */
.tdg-login-page {
    max-width: 100%;
}

.tdg-login-landing__eyebrow {
    color: #60a5fa;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tdg-login-landing__title {
    font-family: "Poppins", "Inter", system-ui, sans-serif;
    font-size: clamp(1.35rem, 2.4vw, 1.75rem);
    font-weight: 600;
    line-height: 1.3;
    color: #f8fafc;
}

.tdg-login-landing__desc {
    color: rgba(255, 255, 255, 0.78);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.65;
    max-width: 34rem;
}

.tdg-bi-en {
    color: inherit;
    font-weight: 600;
}

.tdg-bi-vi {
    color: rgba(255, 255, 255, 0.52);
    font-size: 0.82em;
    font-weight: 400;
    line-height: 1.5;
}

.tdg-bi-block--title .tdg-bi-vi {
    font-size: 0.9rem;
    line-height: 1.55;
    max-width: 34rem;
}

.tdg-login-cta__btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
    text-align: center;
    white-space: normal;
}

.tdg-login-cta__btn .tdg-bi-en {
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.35;
}

.tdg-login-cta__btn .tdg-bi-vi {
    font-size: 0.82rem;
    font-weight: 400;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.72);
}

.tdg-login-cta__btn--primary .tdg-bi-vi {
    color: rgba(255, 255, 255, 0.88);
}

.tdg-login-cta__btn--secondary {
    border-color: rgba(255, 255, 255, 0.28);
    color: #f1f5f9;
}

.tdg-login-cta__btn--secondary:hover,
.tdg-login-cta__btn--secondary:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.42);
    color: #fff;
}

.tdg-login-cta__btn--secondary .tdg-bi-vi {
    color: rgba(255, 255, 255, 0.58);
}

.tdg-login-cta__desc .tdg-bi-en {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.55;
}

.tdg-login-cta__desc .tdg-bi-vi {
    font-size: 0.82rem;
    line-height: 1.55;
}

.tdg-login-signin-card {
    background: rgba(15, 23, 42, 0.72);
}

.tdg-login-signin-card .card-body > h2 {
    color: #f8fafc;
    font-family: "Poppins", "Inter", system-ui, sans-serif;
    font-weight: 600;
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.tdg-login-signin-card .card-body > p.text-muted {
    color: rgba(226, 232, 240, 0.82) !important;
    font-weight: 500;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.tdg-login-signin-card .form-label {
    color: #e8f4fc;
    font-weight: 600;
    letter-spacing: 0.02em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.tdg-login-forgot-password {
    color: #CBD5E1;
    font-weight: 600;
    text-decoration: none;
}

.tdg-login-forgot-password:hover,
.tdg-login-forgot-password:focus-visible {
    color: #FFFFFF;
    text-decoration: none;
}

.forgot-password-modal {
    background: #FFFFFF;
    color: #111827;
}

.forgot-password-modal .modal-header,
.forgot-password-modal .modal-body {
    background: #FFFFFF;
}

.forgot-password-modal h2,
.forgot-password-modal .modal-title {
    color: #1F2937;
    font-weight: 700;
}

.forgot-password-modal label,
.forgot-password-modal .form-label {
    color: #374151;
    font-weight: 600;
}

.forgot-password-modal p,
.forgot-password-modal .form-text {
    color: #4B5563;
}

.forgot-password-modal input.form-control {
    background: #FFFFFF;
    color: #111827;
    border: 1px solid #D1D5DB;
}

.forgot-password-modal input.form-control::placeholder {
    color: #9CA3AF;
    opacity: 1;
}

.forgot-password-modal input.form-control:focus {
    background: #FFFFFF;
    color: #111827;
    border-color: #2563EB;
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.15);
}

.forgot-password-modal .alert-success {
    color: #065F46;
    background-color: #D1FAE5;
    border-color: #A7F3D0;
}

.forgot-password-modal .btn-close {
    filter: none;
    opacity: 0.65;
}

.forgot-password-modal .btn-close:hover,
.forgot-password-modal .btn-close:focus {
    opacity: 1;
}

.tdg-request-workspace-card .card-body > h1 {
    color: #f8fafc;
    font-family: "Poppins", "Inter", system-ui, sans-serif;
    font-size: clamp(1.25rem, 2.2vw, 1.5rem);
    font-weight: 600;
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.tdg-request-workspace-card .tdg-request-workspace__lead {
    color: #f8fafc;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.5;
}

.tdg-request-workspace-card .tdg-request-workspace__intro,
.tdg-request-workspace-card .tdg-request-workspace__copy,
.tdg-request-workspace-card .tdg-request-workspace__cta {
    color: rgba(226, 232, 240, 0.88);
    font-weight: 500;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.tdg-request-workspace-card .tdg-request-workspace__section-title {
    color: #e8f4fc;
    font-family: "Poppins", "Inter", system-ui, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    margin-bottom: 0.75rem;
}

.tdg-request-workspace-card .tdg-request-workspace__benefits {
    color: rgba(226, 232, 240, 0.9);
    font-weight: 500;
    line-height: 1.65;
    margin-bottom: 0;
    padding-left: 1.25rem;
}

.tdg-request-workspace-card .tdg-request-workspace__benefits li + li {
    margin-top: 0.45rem;
}

.tdg-request-workspace-card .tdg-request-workspace__plan-name {
    color: #f8fafc;
}

.tdg-request-workspace-card .tdg-request-workspace__plan-price {
    color: #93c5fd;
    font-weight: 700;
}

.tdg-request-workspace-card .tdg-request-workspace__footer {
    color: rgba(203, 213, 225, 0.82) !important;
}

.tdg-request-workspace-card .tdg-request-workspace__footer a {
    color: #93c5fd;
    font-weight: 600;
    text-decoration: none;
}

.tdg-request-workspace-card .tdg-request-workspace__footer a:hover,
.tdg-request-workspace-card .tdg-request-workspace__footer a:focus {
    color: #bfdbfe;
    text-decoration: underline;
}

.tdg-request-workspace-card .tdg-request-workspace__promise {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(148, 163, 184, 0.22);
}

.tdg-request-workspace-card .tdg-request-workspace__promise-block + .tdg-request-workspace__promise-block {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.tdg-request-workspace-card .tdg-request-workspace__promise-block--vi .tdg-request-workspace__section-title {
    color: rgba(232, 244, 252, 0.88);
}

.tdg-request-workspace-card .tdg-request-workspace__promise-block--vi .tdg-request-workspace__copy {
    color: rgba(203, 213, 225, 0.78);
    font-size: 0.94rem;
}

.tdg-workspace-requests__title {
    color: #f8fafc;
    font-family: "Poppins", "Inter", system-ui, sans-serif;
    font-weight: 600;
}

.tdg-workspace-requests__subtitle {
    color: rgba(226, 232, 240, 0.82);
    font-size: 0.92rem;
}

.tdg-workspace-requests__section-title {
    color: #e8f4fc;
    font-weight: 600;
}

.tdg-workspace-requests__badge--pending {
    background: rgba(251, 191, 36, 0.18);
    color: #fde68a;
}

.tdg-workspace-requests__badge--approved {
    background: rgba(34, 197, 94, 0.18);
    color: #86efac;
}

.tdg-workspace-requests__badge--rejected {
    background: rgba(239, 68, 68, 0.18);
    color: #fca5a5;
}

.tdg-workspace-requests__empty {
    color: rgba(203, 213, 225, 0.78);
    padding: 1rem 1.1rem;
    border: 1px dashed rgba(148, 163, 184, 0.28);
    border-radius: 0.65rem;
    background: rgba(15, 23, 42, 0.35);
}

.tdg-workspace-requests__table {
    color: #e2e8f0;
}

.tdg-workspace-requests__table thead th {
    color: #cbd5e1;
    border-color: rgba(148, 163, 184, 0.22);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.tdg-workspace-requests__table tbody td {
    border-color: rgba(148, 163, 184, 0.16);
    vertical-align: top;
}

.tdg-workspace-requests__table a {
    color: #93c5fd;
    text-decoration: none;
}

.tdg-workspace-requests__notes {
    max-width: 18rem;
    white-space: pre-wrap;
    word-break: break-word;
}

.tdg-workspace-requests__actions {
    min-width: 10rem;
    white-space: nowrap;
}

.tdg-workspace-requests__action-link {
    color: #93c5fd;
    font-weight: 600;
    text-decoration: none;
    border: 0;
    background: transparent;
}

.tdg-workspace-requests__action-link:hover,
.tdg-workspace-requests__action-link:focus {
    color: #bfdbfe;
    text-decoration: underline;
}

.tdg-workspace-requests__action-link--approve {
    color: #86efac;
}

.tdg-workspace-requests__action-link--approve:hover,
.tdg-workspace-requests__action-link--approve:focus {
    color: #bbf7d0;
}

.tdg-workspace-requests__action-link--reject {
    color: #fca5a5;
}

.tdg-workspace-requests__action-link--reject:hover,
.tdg-workspace-requests__action-link--reject:focus {
    color: #fecaca;
}

.tdg-workspace-requests__action-sep {
    color: rgba(148, 163, 184, 0.55);
    margin: 0 0.35rem;
}

.tdg-workspace-request-details__panel,
.tdg-workspace-request-details__review-panel {
    padding: 1.25rem 1.35rem;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 0.75rem;
    background: rgba(15, 23, 42, 0.42);
}

.tdg-workspace-request-details__list dt {
    color: #cbd5e1;
    font-size: 0.82rem;
    font-weight: 600;
}

.tdg-workspace-request-details__list dd {
    color: #e2e8f0;
}

.tdg-workspace-request-details__multiline {
    white-space: pre-wrap;
    word-break: break-word;
}

.tdg-workspace-request-details__label {
    color: #e8f4fc;
    font-weight: 600;
}

.tdg-workspace-request-details__textarea {
    background: rgba(248, 250, 252, 0.96);
}

.tdg-workspace-request-details__readonly-note {
    color: rgba(203, 213, 225, 0.82);
    padding: 0.9rem 1rem;
    border: 1px dashed rgba(148, 163, 184, 0.28);
    border-radius: 0.65rem;
    background: rgba(15, 23, 42, 0.28);
}

.tdg-workspace-provision-preview__warnings {
    padding: 1rem 1.1rem;
    border: 1px solid rgba(251, 191, 36, 0.35);
    border-radius: 0.75rem;
    background: rgba(120, 53, 15, 0.22);
    color: #fde68a;
}

.tdg-workspace-provision-preview__warnings-title {
    color: #fcd34d;
    font-weight: 600;
}

.tdg-workspace-provision-preview__code {
    color: #bfdbfe;
    background: rgba(15, 23, 42, 0.55);
    padding: 0.15rem 0.45rem;
    border-radius: 0.35rem;
}

.tdg-workspace-provision-preview__hint,
.tdg-workspace-provision-preview__phase-note {
    color: rgba(203, 213, 225, 0.78);
    font-size: 0.92rem;
}

.tdg-workspace-provision-preview__steps {
    color: #e2e8f0;
    padding-left: 1.25rem;
    line-height: 1.7;
    list-style: none;
}

.tdg-workspace-provision-preview__steps li + li {
    margin-top: 0.35rem;
}

.tdg-workspace-provision-preview__actions .btn-primary[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
}

.tdg-workspace-requests__action-muted {
    color: rgba(203, 213, 225, 0.72);
    font-size: 0.88rem;
}

.tdg-workspace-provision-success__eyebrow {
    color: #86efac;
    font-weight: 600;
}

.tdg-workspace-provision-success__password {
    font-size: 1.05rem;
    letter-spacing: 0.04em;
}

.tdg-workspace-provision-success__muted {
    color: rgba(203, 213, 225, 0.72);
}

@media print {
    .tdg-order-layout-bar,
    .tvc-booking-subnav,
    .tvc-dash-footer,
    .tdg-workspace-provision-success__actions,
    .tvc-booking-page__head {
        display: none !important;
    }

    .tdg-workspace-provision-success {
        color: #111827;
    }

    .tdg-workspace-request-details__panel {
        border-color: #cbd5e1;
        background: #fff;
    }

    .tdg-workspace-request-details__list dt,
    .tdg-workspace-request-details__list dd,
    .tdg-workspace-requests__title,
    .tdg-workspace-requests__subtitle {
        color: #111827 !important;
    }

    .tdg-workspace-provision-preview__code {
        color: #111827;
        background: #f8fafc;
    }
}

@media (max-width: 767.98px) {
    .tdg-login-landing {
        text-align: left;
    }

    .tdg-login-landing__title,
    .tdg-login-landing__desc,
    .tdg-bi-block--title .tdg-bi-vi,
    .tdg-login-cta__desc .tdg-bi-en,
    .tdg-login-cta__desc .tdg-bi-vi {
        max-width: none;
    }

    .tdg-login-cta__btn .tdg-bi-en {
        font-size: 1rem;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .tdg-login-landing__title {
        font-size: 1.45rem;
    }
}

/* Phase 2F — First login & onboarding */
.tdg-change-password-page .tdg-first-login__title {
    color: #ffffff;
}

.tdg-change-password-page .tdg-first-login__desc {
    color: #cbd5e1;
}

.tdg-change-password-banner {
    padding: 0.85rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(251, 191, 36, 0.45);
    background: rgba(251, 191, 36, 0.1);
    color: #fde68a;
    font-size: 0.875rem;
    line-height: 1.55;
}

.tdg-change-password-submit {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-color: rgba(96, 165, 250, 0.45);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.28);
}

.tdg-change-password-submit:hover,
.tdg-change-password-submit:focus-visible {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    border-color: rgba(147, 197, 253, 0.65);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.34);
}

.tdg-first-login__eyebrow {
    color: #60a5fa;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
}

.tdg-first-login__steps {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
}

.tdg-first-login__step {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #334155;
    color: #94a3b8;
    font-size: 0.875rem;
    font-weight: 600;
}

.tdg-first-login__step.active {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

.tdg-first-login__step.done {
    background: #14532d;
    border-color: #166534;
    color: #bbf7d0;
}

.tdg-first-login__summary dt {
    color: #94a3b8;
}

.tdg-first-login__summary dd {
    color: #f8fafc;
}

.tdg-first-login__choices {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
}

.tdg-first-login__choice {
    display: block;
    margin: 0;
    padding: 0.875rem 1rem;
    border: 1px solid #334155;
    border-radius: 0.75rem;
    background: #0f172a;
    cursor: pointer;
}

.tdg-first-login__choice input {
    margin-right: 0.5rem;
}

.tdg-first-login__choice span {
    color: #e2e8f0;
    font-weight: 500;
}

.tdg-first-login__setup-block {
    padding: 1rem;
    border: 1px solid #1e293b;
    border-radius: 0.75rem;
    background: rgba(15, 23, 42, 0.65);
    margin-bottom: 0.75rem;
}

/* Customer workspace layout (authenticated non-demo tenants) */
.tdg-customer-workspace-banner {
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(15, 23, 42, 0.72);
    padding: 1rem 1.15rem;
}

.tdg-customer-workspace-banner__inner {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.tdg-customer-workspace-banner__title {
    font-size: 1.15rem;
    margin: 0;
}

.tdg-customer-workspace-banner__meta {
    display: grid;
    gap: 0.35rem;
}

.tdg-customer-workspace-banner__row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.5rem;
}

.tdg-customer-workspace-banner__row dt {
    margin: 0;
    color: rgba(203, 213, 225, 0.82);
    font-size: 0.82rem;
    font-weight: 600;
}

.tdg-customer-workspace-banner__row dd {
    margin: 0;
    color: #e2e8f0;
    font-size: 0.92rem;
}

.tdg-customer-workspace-banner__row code {
    color: #f8fafc;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.24);
    padding: 0.1rem 0.4rem;
    border-radius: 0.35rem;
}

/* Workspace Card — shared TDG_Order management header */
.tdg-workspace-card {
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(15, 23, 42, 0.72);
    padding: 0.65rem 1.15rem;
}

.tdg-workspace-card__inner {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.tdg-workspace-card__title {
    color: #ffffff;
    font-family: "Poppins", "Inter", system-ui, sans-serif;
    font-size: 1.9375rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.01em;
    text-transform: none;
}

.tdg-workspace-card__badges {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.tdg-workspace-card__pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.75rem;
    color: #f8fafc;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.24);
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.35;
}

.tdg-order-subnav--customer .tdg-order-subnav__platform-group {
    margin-top: 0.55rem;
    padding-top: 0.55rem;
    border-top: 1px dashed rgba(100, 116, 139, 0.28);
}

.tvc-booking-module--tdg .tdg-order-subnav--customer .tdg-order-subnav__platform-group .tvc-booking-subnav__link--platform {
    color: rgba(100, 116, 139, 0.78) !important;
    opacity: 0.58 !important;
    font-weight: 400 !important;
    font-size: 0.8rem !important;
    background: transparent !important;
    box-shadow: none !important;
    cursor: pointer;
}

.tvc-booking-module--tdg .tdg-order-subnav--customer .tdg-order-subnav__platform-group .tvc-booking-subnav__link--platform .tdg-order-subnav__platform-icon {
    font-size: 0.68rem;
    opacity: 0.75;
    margin-right: 0.2rem;
    color: rgba(100, 116, 139, 0.85);
}

.tvc-booking-module--tdg .tdg-order-subnav--customer .tdg-order-subnav__platform-group .tvc-booking-subnav__link--platform:hover,
.tvc-booking-module--tdg .tdg-order-subnav--customer .tdg-order-subnav__platform-group .tvc-booking-subnav__link--platform:focus,
.tvc-booking-module--tdg .tdg-order-subnav--customer .tdg-order-subnav__platform-group .tvc-booking-subnav__link--platform:active,
.tvc-booking-module--tdg .tdg-order-subnav--customer .tdg-order-subnav__platform-group .tvc-booking-subnav__link--platform.active {
    color: rgba(100, 116, 139, 0.78) !important;
    opacity: 0.58 !important;
    background: transparent !important;
    box-shadow: none !important;
    font-weight: 400 !important;
    text-decoration: none;
}

/* Company user management — dark theme (Windows Explorer selection) */
.tvc-booking-module--tdg:has(.tdg-company-users-page) .tvc-booking-subnav {
    background: #0B1220 !important;
    border-color: #334155 !important;
}

.tvc-booking-module--tdg:has(.tdg-company-users-page) .tvc-booking-subnav__link.active {
    background: #2F6FED !important;
    color: #FFFFFF !important;
    font-weight: 600;
}

.tvc-booking-module--tdg:has(.tdg-company-users-page) .tvc-booking-subnav__link:hover:not(.active) {
    background: #1E293B !important;
    color: #FFFFFF !important;
}

.tdg-company-users-page {
    background: #0B1220;
    color: #FFFFFF;
    padding: 0.25rem;
    border-radius: 0.5rem;
}

.tdg-company-users-page .text-secondary {
    color: #CBD5E1 !important;
}

.tdg-company-users-page__table-wrap {
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid #334155;
}

.tdg-company-users-page .tdg-order-master-table {
    --bs-table-bg: #0F172A;
    --bs-table-striped-bg: #0F172A;
    --bs-table-hover-bg: #1E293B;
    --bs-table-color: #FFFFFF;
    --bs-table-border-color: #334155;
    background-color: #0F172A;
    border-color: #334155;
    margin-bottom: 0;
}

.tdg-company-users-page .tdg-order-master-table thead th {
    background-color: #23272F !important;
    color: #FFFFFF !important;
    border-color: #334155 !important;
}

.tdg-company-users-page .tdg-order-master-table > tbody > tr > td {
    background-color: #0F172A !important;
    color: #FFFFFF !important;
    border-color: #334155 !important;
    --bs-table-bg-state: #0F172A;
    --bs-table-color-state: #FFFFFF;
    box-shadow: none !important;
}

.tdg-company-users-page .tdg-order-master-table.table-striped > tbody > tr:nth-of-type(even) > td,
.tdg-company-users-page .tdg-order-master-table.table-striped > tbody > tr:nth-of-type(odd) > td {
    background-color: #0F172A !important;
    --bs-table-bg-type: #0F172A;
    --bs-table-striped-bg: #0F172A;
    box-shadow: none !important;
}

.tdg-company-users-page .tdg-order-master-table.table-hover > tbody > tr:not(.tdg-order-master-table__row--current):not(.tdg-order-master-table__row--inactive):hover > td {
    background-color: #1E293B !important;
    color: #FFFFFF !important;
}

.tdg-company-users-page .tdg-order-master-table__row--inactive > td {
    background-color: #0F172A !important;
    color: #64748B !important;
}

.tdg-company-users-page .tdg-order-master-table__row--inactive code.tdg-table-code {
    color: #64748B !important;
    background: rgba(100, 116, 139, 0.18) !important;
}

.tdg-company-users-page .tdg-order-master-table code.tdg-table-code {
    color: #FFFFFF !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

.tdg-company-users-page .tdg-order-master-table__row--current:not(.tdg-order-master-table__row--inactive) > td {
    background-color: #2F6FED !important;
    color: #FFFFFF !important;
    box-shadow: none !important;
}

.tdg-company-users-page .tdg-order-master-table__row--current:not(.tdg-order-master-table__row--inactive) code.tdg-table-code {
    color: #FFFFFF !important;
    background: rgba(255, 255, 255, 0.16) !important;
}

.tdg-company-users-page .tdg-order-master-table__row--current:not(.tdg-order-master-table__row--inactive) .tdg-company-user-last-login {
    color: #FFFFFF !important;
}

.tdg-company-users-page .tdg-order-master-table__row--current:not(.tdg-order-master-table__row--inactive) .tdg-company-user-badge {
    background: rgba(255, 255, 255, 0.18) !important;
    color: #FFFFFF !important;
    border-color: rgba(255, 255, 255, 0.32) !important;
}

.tdg-company-users-page .tdg-order-master-table.table-hover > tbody > tr.tdg-order-master-table__row--current:not(.tdg-order-master-table__row--inactive):hover > td {
    background-color: #3778EE !important;
    color: #FFFFFF !important;
    box-shadow: none !important;
}

.tdg-company-users-table td,
.tdg-company-users-table th {
    vertical-align: middle;
}

.tdg-company-users-table__actions {
    justify-content: flex-end;
    gap: 0.35rem;
}

.tdg-company-user-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.tdg-company-user-badge__dot {
    font-size: 0.72rem;
    line-height: 1;
}

.tdg-company-user-badge--active {
    background: rgba(22, 101, 52, 0.18);
    color: #166534;
    border: 1px solid rgba(22, 101, 52, 0.28);
}

.tdg-company-user-badge--locked {
    background: rgba(185, 28, 28, 0.14);
    color: #991b1b;
    border: 1px solid rgba(185, 28, 28, 0.24);
}

.tdg-company-user-badge--password-reset {
    background: rgba(202, 138, 4, 0.16);
    color: #92400e;
    border: 1px solid rgba(202, 138, 4, 0.28);
}

.tdg-company-user-badge--never-logged-in {
    background: rgba(148, 163, 184, 0.16);
    color: #475569;
    border: 1px solid rgba(148, 163, 184, 0.28);
}

.tdg-company-users-page .tdg-company-user-last-login {
    min-width: 8.5rem;
    color: #CBD5E1;
    font-size: 0.92rem;
}

.tdg-company-user-last-login {
    min-width: 8.5rem;
    color: #334155;
    font-size: 0.92rem;
}

.tdg-company-user-form-page {
    display: flex;
    justify-content: center;
    padding: 0.25rem 0 1rem;
}

.tdg-company-user-form-page__inner {
    width: 100%;
    max-width: 42rem;
}

.tdg-company-user-form .card-body {
    padding: 1.5rem 1.5rem 1.25rem;
}

.tdg-company-user-form__intro {
    line-height: 1.5;
}

.tdg-company-user-form__footer {
    border-top: 1px solid rgba(148, 163, 184, 0.22);
}

.tdg-company-user-password-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: stretch;
}

.tdg-company-user-password-tools__input {
    flex: 1 1 14rem;
    min-width: 0;
}

.tdg-company-user-password-tools__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.tdg-company-user-form__copy-success {
    min-height: 1.25rem;
}

@media (max-width: 575.98px) {
    .tdg-company-users-table__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .tdg-company-users-table__actions .tdg-action-btn {
        width: 100%;
        justify-content: center;
    }

    .tdg-company-user-password-tools__actions {
        width: 100%;
    }

    .tdg-company-user-password-tools__actions .tdg-action-btn {
        flex: 1 1 calc(50% - 0.25rem);
        justify-content: center;
    }

    .tdg-company-user-form .card-body {
        padding: 1.15rem;
    }
}

/* RBAC administration */
.tdg-rbac-admin-page {
    color: #e2e8f0;
}

.tdg-rbac-admin-page__mode {
    color: #93c5fd;
}

.tdg-rbac-admin-page__role-card {
    background: #0f172a;
    border-color: #334155;
}

.tdg-rbac-admin-page__role-card .card-header {
    background: #23272f;
    border-bottom-color: #334155;
    color: #ffffff;
}

.tdg-rbac-admin-page__role-code {
    color: #bfdbfe;
}

.tdg-rbac-admin-page__count {
    background: rgba(59, 130, 246, 0.2);
    color: #bfdbfe;
}

.tdg-rbac-admin-page__permission-check {
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid #334155;
    border-radius: 0.5rem;
    padding: 0.55rem 0.65rem;
    height: 100%;
}

.tdg-rbac-admin-page__permission-name {
    font-weight: 600;
    color: #f8fafc;
}

.tdg-rbac-admin-page__table-wrap {
    border: 1px solid #334155;
    border-radius: 0.75rem;
    overflow: hidden;
}

.tdg-rbac-admin-page__sort-link {
    color: inherit;
    text-decoration: none;
}

.tdg-rbac-admin-page__sort-link:hover {
    color: #93c5fd;
}

.tdg-rbac-admin-page__form-card {
    background: #0f172a;
    border-color: #334155;
    max-width: 42rem;
}

.tdg-rbac-admin-page__form-card .card-footer {
    background: #0b1220;
    border-top-color: #334155;
}

.tdg-rbac-admin-table thead th {
    background: #23272f !important;
    color: #ffffff !important;
}

.tdg-rbac-admin-table > tbody > tr > td {
    vertical-align: middle;
}

.tdg-rbac-admin-page__type-summary-item {
    border: 1px solid #334155;
    border-radius: 0.65rem;
    background: rgba(15, 23, 42, 0.85);
    padding: 0.75rem 0.85rem;
    min-height: 4.5rem;
}

.tdg-rbac-admin-page__type-summary-label {
    color: #cbd5e1;
    font-size: 0.78rem;
    line-height: 1.35;
    margin-bottom: 0.25rem;
}

.tdg-rbac-admin-page__type-summary-value {
    color: #ffffff;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.1;
}

.tdg-permission-source-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
}

.tdg-permission-source-badge--controller {
    color: #93c5fd;
    border-color: rgba(59, 130, 246, 0.45);
    background: rgba(30, 58, 138, 0.35);
}

.tdg-permission-source-badge--resource {
    color: #86efac;
    border-color: rgba(34, 197, 94, 0.45);
    background: rgba(20, 83, 45, 0.35);
}

.tdg-permission-source-badge--platform {
    color: #c4b5fd;
    border-color: rgba(139, 92, 246, 0.45);
    background: rgba(76, 29, 149, 0.35);
}

.tdg-permission-source-badge--manual {
    color: #fdba74;
    border-color: rgba(249, 115, 22, 0.45);
    background: rgba(124, 45, 18, 0.35);
}

.tdg-permission-source-badge--legacy {
    color: #cbd5e1;
    border-color: rgba(100, 116, 139, 0.55);
    background: rgba(30, 41, 59, 0.75);
}

.tdg-rbac-admin-table > tbody > tr > td {
    background: #0f172a !important;
    color: #ffffff !important;
    border-color: #334155 !important;
}

.tdg-rbac-admin-table.table-hover > tbody > tr:hover > td {
    background: #1e293b !important;
}

/* Authorization Explorer */
.tdg-auth-diag-page {
    color: #ffffff;
}

.tdg-auth-diag-page__section {
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 0.75rem;
    overflow: hidden;
}

.tdg-auth-diag-page__section .card-header {
    background: #23272f;
    border-bottom: 1px solid #334155;
    color: #ffffff;
    padding: 0.85rem 1.15rem;
}

.tdg-auth-diag-page__section .card-header strong {
    color: #ffffff;
    font-weight: 600;
}

.tdg-auth-diag-page__section .card-body {
    background: #0f172a;
    color: #ffffff;
    padding: 1.15rem;
}

.tdg-auth-diag__page-title,
.tdg-auth-diag-page h1,
.tdg-auth-diag-page h2,
.tdg-auth-diag-page .h4,
.tdg-auth-diag-page .h5,
.tdg-auth-diag-page .h6,
.tdg-auth-diag-page .modal-title {
    color: #ffffff;
}

.tdg-auth-diag__desc {
    color: #cbd5e1;
    font-size: 0.875rem;
    line-height: 1.5;
}

.tdg-auth-diag__value {
    color: #ffffff;
    font-weight: 500;
}

.tdg-auth-diag__field {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-height: 100%;
}

.tdg-auth-diag__code {
    color: #e0f2fe;
    background: rgba(30, 58, 138, 0.35);
    border: 1px solid rgba(96, 165, 250, 0.28);
    padding: 0.12rem 0.4rem;
    border-radius: 0.3rem;
    font-size: 0.84rem;
}

.tdg-auth-diag__code--block {
    display: inline-block;
    max-width: 100%;
    white-space: normal;
    word-break: break-word;
}

.tdg-auth-diag__alert {
    background: rgba(51, 65, 85, 0.55);
    border: 1px solid #475569;
    color: #f8fafc;
    border-radius: 0.65rem;
    padding: 0.85rem 1rem;
}

.tdg-auth-diag-page .form-label {
    color: #cbd5e1;
    font-weight: 500;
    margin-bottom: 0.35rem;
}

.tdg-auth-diag-page .form-select,
.tdg-auth-diag-page .form-control {
    background: #0b1220;
    border: 1px solid #475569;
    color: #ffffff;
}

.tdg-auth-diag-page .form-select:focus,
.tdg-auth-diag-page .form-control:focus {
    background: #0b1220;
    border-color: #60a5fa;
    color: #ffffff;
    box-shadow: 0 0 0 0.2rem rgba(96, 165, 250, 0.22);
}

.tdg-auth-diag-page .form-select option {
    background: #0b1220;
    color: #ffffff;
}

.tdg-auth-diag__mode-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #ffffff;
}

.tdg-auth-diag__mode-badge--legacy {
    background: #2563eb;
}

.tdg-auth-diag__mode-badge--rbac {
    background: #16a34a;
}

.tdg-auth-diag__label {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #cbd5e1;
    margin-bottom: 0.15rem;
    font-weight: 600;
}

.tdg-auth-diag__section-title {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.tdg-auth-diag__chain {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1rem;
    border-radius: 0.65rem;
    border: 1px solid #334155;
    background: rgba(15, 23, 42, 0.85);
}

.tdg-auth-diag__chain--active span:not(.tdg-auth-diag__chain-arrow) {
    background: #2563eb;
    color: #ffffff;
    padding: 0.35rem 0.65rem;
    border-radius: 0.4rem;
    font-weight: 600;
}

.tdg-auth-diag__chain-arrow {
    color: #bfdbfe;
    font-weight: 700;
}

.tdg-auth-diag__table-wrap {
    border: 1px solid #334155;
    border-radius: 0.65rem;
    overflow: hidden;
}

.tdg-auth-diag-table thead th {
    background: #23272f !important;
    color: #ffffff !important;
    border-color: #334155 !important;
    font-weight: 600;
    white-space: nowrap;
}

.tdg-auth-diag-table > tbody > tr > td {
    background: #0f172a !important;
    color: #ffffff !important;
    border-color: #334155 !important;
    vertical-align: middle;
}

.tdg-auth-diag-table.table-hover > tbody > tr:hover > td {
    background: #1e293b !important;
}

.tdg-auth-diag__badge {
    font-size: 0.72rem;
    font-weight: 700;
}

.tdg-auth-diag__badge--ok {
    background: rgba(22, 163, 74, 0.28);
    color: #bbf7d0;
    border: 1px solid rgba(134, 239, 172, 0.35);
}

.tdg-auth-diag__badge--deny {
    background: rgba(220, 38, 38, 0.24);
    color: #fecaca;
    border: 1px solid rgba(252, 165, 165, 0.35);
}

.tdg-auth-diag__result {
    font-weight: 700;
    font-size: 1rem;
}

.tdg-auth-diag__result--ok {
    color: #86efac;
}

.tdg-auth-diag__result--deny {
    color: #fca5a5;
}

.tdg-auth-diag__menu-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    border: 1px solid #334155;
    border-radius: 0.55rem;
    background: rgba(15, 23, 42, 0.85);
    color: #ffffff;
}

.tdg-auth-diag__health-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border: 1px solid #334155;
    border-radius: 0.65rem;
    background: rgba(15, 23, 42, 0.75);
    height: 100%;
}

.tdg-auth-diag__health-title {
    color: #ffffff;
    display: block;
    margin-bottom: 0.2rem;
}

.tdg-auth-diag__health-detail {
    color: #ffffff;
    font-size: 0.875rem;
    line-height: 1.45;
}

.tdg-auth-diag__health-ok {
    color: #4ade80;
    font-size: 1.15rem;
    line-height: 1;
    margin-top: 0.1rem;
}

.tdg-auth-diag__health-bad {
    color: #f87171;
    font-size: 1.15rem;
    line-height: 1;
    margin-top: 0.1rem;
}

.tdg-auth-diag__stats-grid {
    --bs-gutter-x: 0.85rem;
    --bs-gutter-y: 0.85rem;
}

.tdg-auth-diag__stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.25rem;
    min-height: 5.5rem;
    padding: 0.85rem 0.65rem;
    border: 1px solid #334155;
    border-radius: 0.65rem;
    background: rgba(15, 23, 42, 0.85);
}

.tdg-auth-diag__stat-value {
    font-size: 1.55rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.1;
}

.tdg-auth-diag__stat-label {
    font-size: 0.78rem;
    color: #cbd5e1;
    line-height: 1.35;
}

.tdg-auth-diag-page .dataTables_wrapper {
    color: #ffffff;
}

.tdg-auth-diag-page .dataTables_wrapper .dataTables_info,
.tdg-auth-diag-page .dataTables_wrapper .dataTables_length label,
.tdg-auth-diag-page .dataTables_wrapper .dataTables_filter label {
    color: #cbd5e1 !important;
}

.tdg-auth-diag-page .dataTables_wrapper .dataTables_filter input,
.tdg-auth-diag-page .dataTables_wrapper .dataTables_length select {
    background: #0b1220;
    border: 1px solid #475569;
    color: #ffffff;
}

.tdg-auth-diag-page .dataTables_wrapper .dataTables_paginate .paginate_button {
    color: #e2e8f0 !important;
    border-color: #475569 !important;
}

.tdg-auth-diag-page .dataTables_wrapper .dataTables_paginate .paginate_button.current,
.tdg-auth-diag-page .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: #2563eb !important;
    border-color: #2563eb !important;
    color: #ffffff !important;
}

.tdg-auth-diag-page .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #1e293b !important;
    border-color: #60a5fa !important;
    color: #ffffff !important;
}

.tdg-auth-diag-page .dataTables_wrapper .dataTables_processing {
    background: rgba(15, 23, 42, 0.95);
    color: #ffffff;
    border: 1px solid #334155;
}

.tdg-auth-diag__effective-list {
    list-style: none;
    padding-left: 0;
    max-height: 18rem;
    overflow: auto;
    margin-bottom: 0;
}

.tdg-auth-diag__effective-list li {
    padding: 0.35rem 0;
    border-bottom: 1px solid rgba(51, 65, 85, 0.55);
    color: #ffffff;
}

.tdg-auth-diag__effective-name {
    color: #cbd5e1;
}

.tdg-auth-diag__effective-mark--ok {
    color: #86efac;
}

.tdg-auth-diag__effective-mark--deny {
    color: #fca5a5;
}

.tdg-auth-diag__menu-row--clickable {
    cursor: pointer;
    border: 1px solid #334155;
    background: rgba(15, 23, 42, 0.85);
    border-radius: 0.55rem;
    padding: 0.65rem 0.85rem;
    color: #ffffff;
}

.tdg-auth-diag__menu-row--clickable span:first-child {
    color: #ffffff;
    font-weight: 500;
}

.tdg-auth-diag__menu-row--clickable:hover {
    border-color: #60a5fa;
    background: rgba(37, 99, 235, 0.18);
}

.tdg-auth-diag__trace-vertical {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.tdg-auth-diag__trace-step {
    padding: 0.45rem 0.65rem;
    border-radius: 0.45rem;
    background: rgba(37, 99, 235, 0.18);
    border: 1px solid rgba(96, 165, 250, 0.35);
    color: #ffffff;
    font-weight: 600;
}

.tdg-auth-diag__trace-step--arrow {
    background: transparent;
    border: none;
    color: #bfdbfe;
    text-align: center;
    font-size: 1.1rem;
    padding: 0;
}

.tdg-auth-diag-page .modal-content {
    background: #0f172a;
    border: 1px solid #334155;
    color: #ffffff;
}

.tdg-auth-diag-page .modal-header {
    border-bottom: 1px solid #334155;
    background: #23272f;
}

.tdg-auth-diag-page .modal-body {
    color: #ffffff;
}

.tdg-auth-diag-page .text-secondary,
.tdg-auth-diag-page .text-muted {
    color: #cbd5e1 !important;
}

.tdg-auth-diag-page table.dataTable tbody tr {
    background-color: #0f172a !important;
}

.tdg-auth-diag-page table.dataTable.stripe > tbody > tr.odd > *,
.tdg-auth-diag-page table.dataTable.display > tbody > tr.odd > * {
    box-shadow: inset 0 0 0 9999px rgba(15, 23, 42, 0.35);
}

.tdg-auth-diag-page table.dataTable.hover > tbody > tr:hover > *,
.tdg-auth-diag-page table.dataTable.display > tbody > tr:hover > * {
    box-shadow: inset 0 0 0 9999px rgba(30, 41, 59, 0.65);
}

.tdg-auth-diag-page .dataTables_empty {
    color: #ffffff !important;
}

.tdg-auth-diag__stat--wide {
    align-items: flex-start;
    text-align: left;
    min-height: 5.5rem;
}

.tdg-auth-diag__sync-panel {
    border: 1px solid #334155;
    border-radius: 0.65rem;
    background: rgba(15, 23, 42, 0.85);
    padding: 1rem 1.1rem;
}

.tdg-auth-diag__sync-summary {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.tdg-auth-diag__sync-summary li {
    padding: 0.3rem 0;
    color: #ffffff;
}

.tdg-auth-diag__sync-status {
    border: 1px solid #334155;
    border-radius: 0.65rem;
    background: rgba(15, 23, 42, 0.85);
    padding: 1rem 1.1rem;
}

.tdg-auth-diag__sync-status-badge {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.35;
    margin-bottom: 0.35rem;
}

.tdg-auth-diag__sync-status-detail {
    color: #cbd5e1;
    font-size: 0.875rem;
    line-height: 1.45;
}

.tdg-auth-diag__sync-status--ok {
    border-color: rgba(74, 222, 128, 0.45);
    background: rgba(20, 83, 45, 0.28);
}

.tdg-auth-diag__sync-status--ok .tdg-auth-diag__sync-status-badge {
    color: #86efac;
}

.tdg-auth-diag__sync-status--required {
    border-color: rgba(251, 191, 36, 0.45);
    background: rgba(120, 53, 15, 0.28);
}

.tdg-auth-diag__sync-status--required .tdg-auth-diag__sync-status-badge {
    color: #fcd34d;
}

.tdg-auth-diag__sync-status--review {
    border-color: rgba(251, 146, 60, 0.5);
    background: rgba(154, 52, 18, 0.24);
}

.tdg-auth-diag__sync-status--review .tdg-auth-diag__sync-status-badge {
    color: #fdba74;
}

.tdg-auth-diag__sync-help {
    color: #cbd5e1;
    font-size: 0.875rem;
    line-height: 1.45;
    margin-bottom: 0;
}

.tdg-auth-diag__sync-help--ok {
    color: #86efac;
}

.tdg-auth-diag__sync-last-note {
    color: #86efac;
    font-size: 0.8125rem;
    line-height: 1.4;
    margin-top: 0.35rem;
}

.tdg-auth-diag__sync-info-list {
    list-style: disc;
    padding-left: 1.25rem;
    margin-bottom: 0;
    color: #cbd5e1;
    font-size: 0.875rem;
    line-height: 1.5;
}

.tdg-auth-diag__sync-info-list li {
    margin-bottom: 0.2rem;
}

.tdg-auth-diag__stat[title] {
    cursor: help;
}

.tdg-auth-diag__sync-empty--ok {
    color: #86efac;
}

.tdg-auth-diag__sync-review-note {
    color: #fcd34d;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.35rem;
}

.tdg-auth-diag__sync-success {
    color: #86efac;
    font-weight: 600;
    margin-bottom: 0;
}

.tdg-auth-diag__alert--info {
    border-color: rgba(96, 165, 250, 0.45);
    background: rgba(30, 58, 138, 0.35);
    color: #dbeafe;
}

.tdg-auth-diag-page .tdg-action-btn:disabled,
.tdg-auth-diag-page .tdg-action-btn[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
}

.tdg-auth-diag__alert--error {
    border-color: rgba(248, 113, 113, 0.45);
    background: rgba(127, 29, 29, 0.35);
}

.tdg-auth-diag__sim-stat {
    color: #cbd5e1;
    font-size: 0.875rem;
    line-height: 1.5;
}

