/**
 * Platform Admin Dashboard shell layout (uses portal design tokens).
 */

/* Hide long horizontal module nav — sidebar owns Platform Admin navigation. */
body.dl-pa-shell-page .dl-portal-header__nav {
    display: none;
}

body.dl-pa-shell-page .dl-portal-header__nav-wrap {
    justify-content: flex-end;
}

body.dl-pa-shell-page .dl-portal-page__container--wide {
    max-width: none;
}

body.dl-pa-shell-page .dl-portal-page__inner {
    padding-top: 0;
}

/* Flush header to shell — portal header margin-bottom creates a visible gap above the sidebar. */
body.dl-pa-shell-page .dl-portal-header {
    margin-bottom: 0;
}

body.dl-pa-shell-page .dl-portal-page {
    padding-top: 0;
    padding-bottom: 0;
}

/* App-style shell: page body fixed; main content column scrolls independently. */
body.dl-pa-shell-page {
    --dl-pa-header-offset: 4rem;
    overflow: hidden;
    height: 100vh;
}

body.dl-pa-shell-page .dl-portal-page {
    display: flex;
    flex-direction: column;
    height: calc(100vh - var(--dl-pa-header-offset));
    min-height: 0;
    overflow: hidden;
}

body.dl-pa-shell-page .dl-portal-page__container,
body.dl-pa-shell-page .dl-portal-page__container--wide {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

body.dl-pa-shell-page .dl-portal-page__inner {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

/* Shell layout — real two-column grid (sidebar reserves space; never overlays content). */
body.dl-pa-shell-page {
    --dl-pa-sidebar-width: 17rem;
}

.dl-platform-admin.dl-pa-shell {
    display: grid;
    grid-template-columns: var(--dl-pa-sidebar-width, 17rem) minmax(0, 1fr);
    align-items: stretch;
    gap: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

.dl-pa-shell__sidebar {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    min-width: 0;
    height: 100%;
    min-height: 0;
    box-sizing: border-box;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    margin: 0;
    padding: 0 0.65rem 1.15rem;
    background: var(--diyarlist-card-bg-solid, #fff);
    border-right: 1px solid var(--diyarlist-border-soft, #e8ddd4);
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.65);
    display: flex;
    flex-direction: column;
}

.dl-pa-shell__sidebar::after {
    content: "";
    display: block;
    height: 1px;
    margin-top: 0.85rem;
    background: linear-gradient(
        90deg,
        rgba(15, 23, 42, 0) 0%,
        rgba(15, 23, 42, 0.1) 20%,
        rgba(15, 23, 42, 0.1) 80%,
        rgba(15, 23, 42, 0) 100%
    );
    pointer-events: none;
}

.dl-pa-shell__sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
    padding: 0.75rem 0.35rem 0.65rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    flex-shrink: 0;
}

.dl-pa-shell__sidebar-title {
    margin: 0;
    min-width: 0;
    flex: 1 1 auto;
}

.dl-pa-shell__sidebar-logo {
    display: block;
    height: 1.85rem;
    width: auto;
    max-width: 100%;
    margin-bottom: 0.4rem;
}

.dl-pa-shell__sidebar-title-text {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--diyarlist-muted, #64748b);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dl-pa-shell__sidebar-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 1.85rem;
    height: 1.85rem;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.03);
    color: var(--diyarlist-muted, #64748b);
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.dl-pa-shell__sidebar-toggle:hover,
.dl-pa-shell__sidebar-toggle:focus-visible {
    background: rgba(15, 23, 42, 0.06);
    border-color: rgba(15, 23, 42, 0.16);
    color: var(--dl-text, #1f2933);
    outline: none;
}

.dl-pa-shell__sidebar-toggle-icon {
    display: block;
    width: 0.95rem;
    height: 0.95rem;
    transition: transform 0.15s ease;
}

body.dl-pa-shell--sidebar-collapsed .dl-pa-shell__sidebar-toggle-icon,
.dl-pa-shell--sidebar-collapsed .dl-pa-shell__sidebar-toggle-icon {
    transform: rotate(180deg);
}

body.dl-pa-shell--sidebar-collapsed,
.dl-pa-shell--sidebar-collapsed {
    --dl-pa-sidebar-width: 4.5rem;
}

body.dl-pa-shell--sidebar-collapsed .dl-pa-shell__sidebar-title-text,
.dl-pa-shell--sidebar-collapsed .dl-pa-shell__sidebar-title-text,
body.dl-pa-shell--sidebar-collapsed .dl-pa-shell__nav-label,
.dl-pa-shell--sidebar-collapsed .dl-pa-shell__nav-label,
body.dl-pa-shell--sidebar-collapsed .dl-pa-shell__nav-sub,
.dl-pa-shell--sidebar-collapsed .dl-pa-shell__nav-sub,
body.dl-pa-shell--sidebar-collapsed .dl-pa-shell__nav-caret,
.dl-pa-shell--sidebar-collapsed .dl-pa-shell__nav-caret {
    display: none;
}

body.dl-pa-shell--sidebar-collapsed .dl-pa-shell__nav-group--open,
.dl-pa-shell--sidebar-collapsed .dl-pa-shell__nav-group--open {
    /* Sub-nav stays hidden when whole sidebar is collapsed. */
}

body.dl-pa-shell--sidebar-collapsed .dl-pa-shell__nav-item,
.dl-pa-shell--sidebar-collapsed .dl-pa-shell__nav-item {
    justify-content: center;
    padding-left: 0.45rem;
    padding-right: 0.45rem;
}

body.dl-pa-shell--sidebar-collapsed .dl-pa-shell__nav-item-row,
.dl-pa-shell--sidebar-collapsed .dl-pa-shell__nav-item-row {
    justify-content: center;
}

body.dl-pa-shell--sidebar-collapsed .dl-pa-shell__sidebar-head,
.dl-pa-shell--sidebar-collapsed .dl-pa-shell__sidebar-head {
    justify-content: center;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
}

body.dl-pa-shell--sidebar-collapsed .dl-pa-shell__sidebar-title,
.dl-pa-shell--sidebar-collapsed .dl-pa-shell__sidebar-title {
    display: none;
}

.dl-pa-shell__nav {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 0.15rem;
    min-height: 0;
}

.dl-pa-shell__nav-group {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.dl-pa-shell__nav-sub {
    display: none;
    flex-direction: column;
    gap: 0.05rem;
    margin: 0;
    padding: 0;
    border-left: 0;
    overflow: hidden;
}

.dl-pa-shell__nav-group--open .dl-pa-shell__nav-sub {
    display: flex;
    margin: 0.05rem 0 0.35rem;
    padding: 0 0 0 2.35rem;
    border-left: 1px solid rgba(15, 23, 42, 0.08);
    margin-left: 0.95rem;
}

.dl-pa-shell__nav-sub-item {
    display: block;
    padding: 0.32rem 0.55rem;
    border-radius: 8px;
    border: 1px solid transparent;
    color: var(--diyarlist-muted, #64748b);
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.25;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.dl-pa-shell__nav-sub-item:hover,
.dl-pa-shell__nav-sub-item:focus-visible {
    background: rgba(15, 23, 42, 0.04);
    color: var(--dl-text, #1f2933);
    outline: none;
}

.dl-pa-shell__nav-sub-item--active {
    background: rgba(255, 121, 0, 0.08);
    border-color: rgba(255, 121, 0, 0.16);
    color: var(--dl-text, #1f2933);
}

.dl-pa-shell__sidebar-foot {
    margin-top: auto;
    padding: 0.85rem 0.35rem 0.15rem;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.dl-pa-shell__social-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.dl-pa-shell__social-link {
    color: var(--diyarlist-muted, #64748b);
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.35;
    text-decoration: none;
}

.dl-pa-shell__social-link:hover,
.dl-pa-shell__social-link:focus-visible {
    color: var(--dl-text, #1f2933);
    outline: none;
    text-decoration: underline;
}

.dl-pa-platform-social-settings {
    margin-top: 1rem;
}

.dl-pa-shell__nav-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 2.35rem;
    padding: 0.45rem 0.65rem;
    border-radius: 10px;
    border: 1px solid transparent;
    color: var(--dl-text, #1f2933);
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.25;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.dl-pa-shell__nav-item--has-sub .dl-pa-shell__nav-label {
    flex: 1 1 auto;
}

.dl-pa-shell__nav-item-row {
    display: flex;
    align-items: stretch;
    gap: 0.1rem;
}

.dl-pa-shell__nav-item-row > .dl-pa-shell__nav-item {
    flex: 1 1 auto;
    min-width: 0;
}

.dl-pa-shell__nav-caret {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 1.65rem;
    min-height: 2.35rem;
    margin: 0;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: var(--diyarlist-muted, #64748b);
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.dl-pa-shell__nav-caret:hover,
.dl-pa-shell__nav-caret:focus-visible {
    background: rgba(15, 23, 42, 0.04);
    border-color: rgba(15, 23, 42, 0.08);
    color: var(--dl-text, #1f2933);
    outline: none;
}

.dl-pa-shell__nav-chevron {
    display: block;
    width: 0.85rem;
    height: 0.85rem;
    transition: transform 0.15s ease;
}

.dl-pa-shell__nav-group--open > .dl-pa-shell__nav-item-row .dl-pa-shell__nav-chevron {
    transform: rotate(180deg);
}

.dl-pa-shell__nav-item:hover,
.dl-pa-shell__nav-item:focus-visible {
    background: rgba(15, 23, 42, 0.04);
    color: var(--dl-text, #1f2933);
    outline: none;
}

.dl-pa-shell__nav-item--active {
    background: rgba(255, 121, 0, 0.1);
    border-color: rgba(255, 121, 0, 0.22);
    color: var(--dl-text, #1f2933);
}

.dl-pa-shell__nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.05);
    color: var(--dl-muted, #64748b);
    line-height: 0;
}

.dl-pa-shell__nav-icon svg {
    display: block;
    width: 1.05rem;
    height: 1.05rem;
}

.dl-pa-shell__nav-item:hover .dl-pa-shell__nav-icon,
.dl-pa-shell__nav-item:focus-visible .dl-pa-shell__nav-icon {
    color: var(--dl-text, #1f2933);
}

.dl-pa-shell__nav-item--active .dl-pa-shell__nav-icon {
    background: rgba(255, 121, 0, 0.16);
    color: #c2410c;
}

.dl-pa-shell__nav-label {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dl-pa-shell__content {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0.85rem 1.35rem clamp(18rem, 35vh, 36rem) 1.15rem;
    -webkit-overflow-scrolling: touch;
}

.dl-platform-admin:not(.dl-pa-shell) {
    display: block;
    width: 100%;
}

.dl-platform-admin__main {
    min-width: 0;
    width: 100%;
}

.dl-platform-admin__module-intro {
    margin-bottom: 1rem;
}

.dl-platform-admin__module-intro-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 0.35rem;
}

.dl-platform-admin__legacy-link {
    font-size: 0.875rem;
    margin: 0.5rem 0 0;
}

.dl-platform-admin__title {
    margin: 0 0 0.25rem;
}

.dl-platform-admin-access-denied {
    background: var(--diyarlist-card-bg-solid, #fff);
    border: 1px solid var(--diyarlist-border-soft, #e8ddd4);
    border-radius: var(--diyarlist-radius-card, 16px);
    box-shadow: var(--diyarlist-card-shadow, 0 6px 24px rgba(31, 41, 51, 0.07));
    padding: 1.35rem 1.5rem;
}

.dl-platform-admin-access-denied__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0 0;
}

.dl-platform-admin__vc-embed {
    margin-top: 1rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 12px;
    overflow: hidden;
}

/* Operations overview — staff task dashboard */
.dl-pa-ops-overview {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.dl-pa-ops-section {
    margin-bottom: 0;
    padding: 1.15rem 1.25rem 1.25rem;
}

.dl-pa-ops-section__header {
    margin-bottom: 1rem;
}

.dl-pa-ops-section__title {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
}

.dl-pa-ops-section__desc {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.45;
}

.dl-pa-ops-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr));
    gap: 0.75rem;
}

.dl-pa-ops-card {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-height: 6.5rem;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    background: rgba(15, 23, 42, 0.02);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.dl-pa-ops-card:hover,
.dl-pa-ops-card:focus-visible {
    border-color: rgba(255, 121, 0, 0.35);
    background: rgba(255, 121, 0, 0.04);
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
    outline: none;
}

.dl-pa-ops-card--active .dl-pa-ops-card__count {
    color: var(--diyarlist-primary, #ff7900);
}

.dl-pa-ops-card__count {
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1.1;
}

.dl-pa-ops-card__label {
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--dl-text, #1f2933);
}

.dl-pa-ops-card__meta {
    font-size: 0.75rem;
    line-height: 1.35;
}

.dl-pa-ops-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
    gap: 1rem;
}

.dl-pa-ops-list-panel {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 12px;
    padding: 0.85rem 0.95rem 0.75rem;
    background: rgba(255, 255, 255, 0.65);
}

.dl-pa-ops-list-panel__title {
    margin: 0 0 0.65rem;
    font-size: 0.875rem;
    font-weight: 700;
}

.dl-pa-ops-list-panel__empty {
    margin: 0;
    font-size: 0.8125rem;
}

.dl-pa-ops-list-panel__footer {
    margin: 0.55rem 0 0;
    font-size: 0.8125rem;
}

.dl-pa-ops-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.dl-pa-ops-list__item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.35rem 0.75rem;
    align-items: center;
    padding-bottom: 0.55rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.dl-pa-ops-list__item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.dl-pa-ops-list__main {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    min-width: 0;
}

.dl-pa-ops-list__name {
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.3;
}

.dl-pa-ops-list__badge {
    display: inline-flex;
    align-items: center;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--diyarlist-muted, #64748b);
    background: rgba(15, 23, 42, 0.05);
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.dl-pa-ops-list__date {
    grid-column: 1;
    font-size: 0.75rem;
}

.dl-pa-ops-list__action {
    grid-column: 2;
    grid-row: 1 / span 2;
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .dl-pa-ops-list__item {
        grid-template-columns: 1fr;
    }

    .dl-pa-ops-list__action {
        grid-column: 1;
        grid-row: auto;
    }
}

/* Overview module cards — equal height, bottom-aligned actions */
.dl-platform-admin-module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: stretch;
}

.dl-platform-admin-module-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 11.5rem;
    margin-bottom: 0;
    padding: 0;
    overflow: hidden;
}

.dl-platform-admin-module-card__body {
    flex: 1 1 auto;
    padding: 1.25rem 1.35rem 0.75rem;
    display: flex;
    flex-direction: column;
}

.dl-platform-admin-module-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    line-height: 1.3;
}

.dl-platform-admin-module-card__desc {
    flex: 1 1 auto;
    margin: 0;
    line-height: 1.45;
}

.dl-platform-admin-module-card__footer {
    flex: 0 0 auto;
    padding: 0.75rem 1.35rem 1.25rem;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    margin-top: auto;
}

.dl-platform-admin-module-card__footer .dl-vc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 5.5rem;
}

.dl-platform-admin-settings-panel {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 12px;
    padding: 1.25rem 1.35rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.dl-platform-admin-settings-panel__title {
    margin: 0 0 0.75rem;
    font-size: 1.05rem;
    font-weight: 700;
}

.dl-portal-role-list {
    margin: 0.5rem 0 1rem;
    padding-left: 1.25rem;
}

@media (max-width: 768px) {
    body.dl-pa-shell-page {
        overflow: auto;
        height: auto;
    }

    body.dl-pa-shell-page .dl-portal-page,
    body.dl-pa-shell-page .dl-portal-page__container,
    body.dl-pa-shell-page .dl-portal-page__inner {
        display: block;
        height: auto;
        overflow: visible;
    }

    .dl-platform-admin-module-card {
        min-height: 0;
    }

    .dl-platform-admin.dl-pa-shell {
        grid-template-columns: 1fr;
        height: auto;
        min-height: 0;
        overflow: visible;
    }

    .dl-pa-shell__sidebar {
        grid-column: 1;
        grid-row: 1;
        position: static;
        width: 100%;
        height: auto;
        min-height: 0;
        max-height: none;
        overflow: visible;
        border-right: none;
        border-bottom: 1px solid var(--diyarlist-border-soft, #e8ddd4);
        padding-bottom: 0.75rem;
        box-shadow: none;
    }

    .dl-pa-shell__sidebar::after {
        display: none;
    }

    .dl-pa-shell__content {
        grid-column: 1;
        grid-row: 2;
        height: auto;
        overflow: visible;
        padding: 0.75rem 0 clamp(18rem, 35vh, 36rem);
    }

    .dl-pa-shell__nav {
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 0.15rem;
        -webkit-overflow-scrolling: touch;
    }

    .dl-pa-shell__nav-item {
        flex: 0 0 auto;
    }

    .dl-pa-shell__nav-group--open .dl-pa-shell__nav-sub {
        display: flex;
    }
}

/* Platform Admin → Promotions (UI Kit table/card polish) */
.dl-pa-promotions {
    --dl-pa-promo-border: var(--diyarlist-border-soft, #e8ddd4);
    --dl-pa-promo-bg: var(--diyarlist-card-bg-solid, #fff);
    --dl-pa-promo-text: var(--dl-text, #1f2933);
    --dl-pa-promo-muted: var(--diyarlist-muted, #64748b);
    --dl-pa-promo-shadow: var(--diyarlist-card-shadow, 0 6px 24px rgba(31, 41, 51, 0.07));
}

/* Match the Leads metrics row: flex-wrap so the compact stat cards size to
   content instead of stretching across the shared grid's track. Scoped to
   .dl-pa-promotions — Wallet's shared .dl-pa-wallet__metrics-grid stays a grid. */
.dl-pa-promotions .dl-pa-wallet__metrics-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: stretch;
}

/* 20px between the (shared) header card and the main tab row. Scoped to
   .dl-pa-promotions so the shared dl-pa-wallet__header-card base is untouched
   (Wallet/Staff headers unchanged). */
.dl-pa-promotions .dl-ui-subtabs {
    margin-top: 1.25rem;
}

.dl-pa-promotions__queue-card {
    padding: 1.25rem 1.35rem;
}

.dl-pa-promotions__queue-card .dl-pa-promotions-queue {
    margin: 0;
}

.dl-pa-promotions-queue__title,
.dl-pa-promotions__card-title {
    margin: 0 0 1rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--dl-pa-promo-text);
    line-height: 1.35;
}

.dl-pa-promotions-empty {
    margin: 0;
    padding: 1.15rem 1.25rem;
    border: 1px dashed var(--dl-pa-promo-border);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.02);
    color: var(--dl-pa-promo-muted);
    font-size: 0.875rem;
    line-height: 1.45;
    text-align: center;
}

.dl-pa-promotions-table-wrap {
    overflow-x: visible;
    margin: 0;
    border: 1px solid var(--dl-pa-promo-border);
    border-radius: 12px;
    background: var(--dl-pa-promo-bg);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 991px) {
    .dl-pa-promotions-table-wrap.dl-promo-admin-table-wrap {
        overflow-x: auto;
    }
}

.dl-pa-promotions-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--dl-pa-promo-bg);
    font-size: 0.8125rem;
    line-height: 1.35;
    table-layout: fixed;
}

.dl-pa-promotions-table thead th {
    padding: 0.45rem 0.4rem;
    text-align: left;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--dl-pa-promo-muted);
    background: rgba(15, 23, 42, 0.04);
    border-bottom: 1px solid var(--dl-pa-promo-border);
    white-space: normal;
    vertical-align: top;
}

.dl-pa-promotions-table tbody td {
    padding: 0.45rem 0.4rem;
    border-bottom: 1px solid var(--dl-pa-promo-border);
    vertical-align: top;
    color: var(--dl-pa-promo-text);
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.dl-pa-promotions-table tbody tr {
    transition: background 0.15s ease;
}

.dl-pa-promotions-table tbody tr:hover,
.dl-pa-promotions-table tbody tr:hover td {
    background: rgba(255, 121, 0, 0.04);
}

.dl-pa-promotions-table tbody tr:last-child td {
    border-bottom: none;
}

.dl-pa-promotions-table .dl-promo-ledger-row--manual td {
    background: rgba(255, 121, 0, 0.03);
}

.dl-pa-promotions-table .dl-promo-ledger-row--manual:hover td {
    background: rgba(255, 121, 0, 0.06);
}

.dl-pa-promotions-table .dl-portal-muted {
    font-size: 0.8125rem;
}

.dl-pa-promotions-table .dl-promo-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    border: 1px solid transparent;
}

.dl-pa-promotions-table .dl-promo-actions-cell {
    min-width: 0;
    width: 8.75rem;
    white-space: normal;
}

.dl-pa-promotions .dl-promo-inline-form {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.3rem;
    margin: 0 0 0.45rem;
}

.dl-pa-promotions .dl-promo-inline-form:last-child {
    margin-bottom: 0;
}

.dl-pa-promotions .dl-promo-inline-form .regular-text {
    flex: none;
    width: 100%;
    min-width: 0;
    max-width: none;
    min-height: 2rem;
    padding: 0.28rem 0.4rem;
    border: 1px solid var(--dl-pa-promo-border);
    border-radius: 10px;
    font-size: 0.75rem;
    box-sizing: border-box;
}

.dl-pa-promotions .dl-promo-inline-form .dl-vc-btn {
    flex: none;
    width: 100%;
    justify-content: center;
}

.dl-pa-promotions .dl-promo-pagination {
    margin-top: 1rem;
    font-size: 0.8125rem;
    color: var(--dl-pa-promo-muted);
}

.dl-pa-promotions .dl-promo-pagination__links a {
    margin-right: 0.35rem;
}

.dl-pa-promotions__info-card,
.dl-pa-promotions__packages-card {
    margin-top: 0.25rem;
}

/* Promotions content cards migrated from .dl-pa-wallet__card to the kit .dl-ui-card
   (identical chrome). Preserve the inner heading/paragraph styling the shared
   .dl-pa-wallet__card h3/p descendant rules used to provide (Wallet keeps its own),
   so card contents render unchanged. */
.dl-pa-promotions__info-card h3,
.dl-pa-promotions__queue-card h3,
.dl-pa-promotions__packages-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.65rem;
}

.dl-pa-promotions__info-card p,
.dl-pa-promotions__queue-card p,
.dl-pa-promotions__packages-card p {
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0 0 0.65rem;
}

.dl-pa-promotions__packages-card .dl-vc-btn {
    margin-top: 0.75rem;
}

@media (max-width: 900px) {
    .dl-pa-promotions__queue-card {
        padding: 1rem 1.05rem;
    }

    .dl-pa-promotions-table thead th,
    .dl-pa-promotions-table tbody td {
        padding: 0.4rem 0.35rem;
    }
}

/* Platform Admin login — UI Kit card */
.dl-platform-admin-login-wrap {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    min-height: 50vh;
    padding: 2.5rem 1rem 3rem;
    box-sizing: border-box;
}

.dl-platform-admin-login {
    width: 100%;
    max-width: 420px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: var(--diyarlist-card-bg-solid, #fff);
    border: 1px solid var(--diyarlist-border-soft, #e8ddd4);
    border-radius: var(--diyarlist-radius-card, 16px);
    box-shadow: var(--diyarlist-card-shadow, 0 6px 24px rgba(31, 41, 51, 0.07));
}

.dl-platform-admin-login__header {
    padding: 1.5rem 1.5rem 0.75rem;
    border-bottom: 1px solid var(--diyarlist-border-soft, #e8ddd4);
}

.dl-platform-admin-login__brand {
    display: flex;
    justify-content: center;
    margin-bottom: 0.9rem;
}

.dl-platform-admin-login__logo {
    display: block;
    height: 2.75rem;
    width: auto;
    max-width: 200px;
}

.dl-platform-admin-login__title {
    margin: 0 0 0.35rem;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--dl-text, #1f2933);
}

.dl-platform-admin-login__subtitle {
    margin: 0;
    font-size: 0.9375rem;
}

.dl-platform-admin-login__body {
    padding: 1.25rem 1.5rem 0.5rem;
}

.dl-platform-admin-login__footer {
    padding: 0.75rem 1.5rem 1.35rem;
}

.dl-platform-admin-login__footer p {
    margin: 0;
    font-size: 0.8125rem;
}

#dl-platform-admin-loginform {
    display: grid;
    gap: 0.85rem;
    margin: 0;
}

#dl-platform-admin-loginform label {
    display: grid;
    gap: 0.35rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--dl-text, #1f2933);
}

#dl-platform-admin-loginform .input,
#dl-platform-admin-loginform input[type="text"],
#dl-platform-admin-loginform input[type="password"] {
    width: 100%;
    min-height: 42px;
    padding: 0.55rem 0.75rem;
    border: 1.5px solid var(--diyarlist-border-soft, #e8ddd4);
    border-radius: var(--diyarlist-radius, 10px);
    box-sizing: border-box;
    font-size: 0.9375rem;
}

#dl-platform-admin-loginform .input:focus,
#dl-platform-admin-loginform input[type="text"]:focus,
#dl-platform-admin-loginform input[type="password"]:focus {
    outline: none;
    border-color: var(--diyarlist-primary, #ff7900);
    box-shadow: 0 0 0 3px rgba(255, 121, 0, 0.12);
}

#dl-platform-admin-loginform .login-remember {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 500;
    font-size: 0.875rem;
}

#dl-platform-admin-loginform .login-submit {
    margin: 0.25rem 0 0;
}

#dl-platform-admin-loginform .button-primary,
#dl-platform-admin-loginform input[type="submit"] {
    width: 100%;
    min-height: 44px;
    border: none;
    border-radius: 999px;
    background: var(--diyarlist-primary, #ff7900);
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease;
}

#dl-platform-admin-loginform .button-primary:hover,
#dl-platform-admin-loginform input[type="submit"]:hover {
    background: var(--diyarlist-primary-hover, #e56a00);
}

/* ------------------------------------------------------------------ */
/* Overview ZONE 1 — stats strip (2026-07-19 redesign)                 */
/* ------------------------------------------------------------------ */
.dl-pa-ops-stats {
    display: flex;
    flex-wrap: wrap;
    gap: var(--dl-ui-space-2, 0.75rem);
    padding: var(--dl-ui-card-pad-y, 1.35rem) var(--dl-ui-card-pad-x, 1.5rem);
    margin-bottom: var(--dl-ui-space-3, 1rem);
}
.dl-pa-ops-stats__item {
    display: flex;
    flex-direction: column;
    min-width: 9rem;
    padding: 0.4rem 0.9rem;
    border-inline-start: 3px solid var(--dl-ui-border, #e5e7eb);
    text-decoration: none;
    color: inherit;
}
a.dl-pa-ops-stats__item:hover .dl-pa-ops-stats__count {
    color: var(--dl-ui-primary, #0f766e);
}
.dl-pa-ops-stats__item--static {
    cursor: default;
}
.dl-pa-ops-stats__count {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.2;
}
.dl-pa-ops-stats__label {
    font-size: 0.78rem;
    color: var(--dl-ui-muted, #6b7280);
}
