/* SXPO India shared component layer. */
.sxpo-toast-container {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1080;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: min(380px,calc(100vw - 40px))
}

.sxpo-toast {
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: 0 14px 34px rgba(16,24,40,.14);
    border-radius: 10px;
    padding: 13px 16px;
    color: var(--text);
    font-size: 13px
}

.sxpo-toast-success {
    border-left: 4px solid var(--ok)
}

.sxpo-toast-warning {
    border-left: 4px solid var(--warn)
}

.sxpo-toast-danger {
    border-left: 4px solid var(--danger)
}

.sxpo-toast-info {
    border-left: 4px solid var(--p)
}

.sxpo-sidebar-backdrop {
    display: none
}

.sxpo-nav-item {
    position: relative;
}

    .sxpo-nav-item.is-active::before {
        content: "";
        position: absolute;
        left: 0;
        top: 8px;
        bottom: 8px;
        width: 3px;
        border-radius: 0 3px 3px 0;
        background: var(--sxpo-primary);
    }

    .sxpo-nav-item.is-active .sxpo-nav-icon {
        color: var(--sxpo-primary);
    }

    .sxpo-nav-item.is-active {
        font-weight: 700;
    }

.sxpo-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 18px;
    margin: 3px 10px;
    border-radius: 9px;
    color: #aeb8c8
}

    .sxpo-nav-link:hover, .sxpo-nav-link.active {
        background: #202b3f;
        color: #fff
    }

.sxpo-nav-icon {
    width: 20px;
    text-align: center;
    font-style: normal
}

.sxpo-nav-link small {
    margin-left: auto;
    color: #7f8a9b;
    font-size: 9px
}

.sxpo-sidebar-footer {
    margin: 18px 14px;
    padding: 13px;
    border: 1px solid #ffffff14;
    border-radius: 10px;
    color: #8f9bad;
    font-size: 11px
}

.sxpo-user-menu {
    position: relative
}

    .sxpo-user-menu button {
        border: 0;
        background: transparent;
        padding: 0;
        cursor: pointer
    }

.sxpo-console-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 9px;
    border-radius: 999px;
    background: #eef4ff;
    color: #155eef;
    font-size: 11px;
    font-weight: 700
}

/* Global exception experience */
.sxpo-error-page {
    min-height: calc(100vh - 120px);
    display: grid;
    place-items: center;
    padding: 48px 24px;
    background: linear-gradient(180deg, #f8fafc 0%, #eef3f9 100%);
}

.sxpo-error-card {
    width: min(640px, 100%);
    padding: 42px;
    text-align: center;
    background: #fff;
    border: 1px solid #e5eaf1;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(15, 23, 42, .10);
}

.sxpo-error-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    background: #fff4e8;
    color: #e77b16;
    font-size: 30px;
}

.sxpo-error-code {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
}

.sxpo-error-card h1 {
    margin: 16px 0 10px;
    color: #0f172a;
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 800;
}

.sxpo-error-card > p {
    max-width: 500px;
    margin: 0 auto 24px;
    color: #64748b;
    line-height: 1.7;
}

.sxpo-error-reference {
    margin: 0 auto 26px;
    padding: 14px 18px;
    border: 1px solid #e5eaf1;
    border-radius: 14px;
    background: #f8fafc;
}

    .sxpo-error-reference span {
        display: block;
        margin-bottom: 5px;
        color: #94a3b8;
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .08em;
    }

    .sxpo-error-reference strong {
        color: #0f3d91;
        font-size: 14px;
        letter-spacing: .04em;
    }

.sxpo-error-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

    .sxpo-error-actions .btn-primary {
        background: #155eef;
        border-color: #155eef;
    }

.sxpo-error-note {
    margin-top: 22px;
    color: #94a3b8;
    font-size: 12px;
}

/* ============================================================
   SXPO Console Page System
   Shared page-header and filter language for all consoles.
   ============================================================ */
.sxpo-page-shell {
    width: 100%;
    padding: 0 0 28px;
}

.sxpo-standard-page-header,
.ts-page-header,
.sa-page-head,
.product-page-header,
.audit-page-head,
.page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--sxpo-border, #e7eaf0);
}

    .sxpo-standard-page-header__content,
    .ts-page-header > div:first-child,
    .sa-page-head > div:first-child,
    .product-page-header > div:first-child,
    .audit-page-head > div:first-child,
    .page-header > div:first-child {
        min-width: 0;
    }

        .sxpo-standard-page-eyebrow,
        .ts-page-eyebrow,
        .sa-page-head > div:first-child > span,
        .sa-page-head > div:first-child > small,
        .audit-page-head .audit-eyebrow {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            margin-bottom: 5px;
            color: var(--sxpo-primary, #155eef);
            font-size: .68rem;
            font-weight: 800;
            letter-spacing: .11em;
            line-height: 1.2;
            text-transform: uppercase;
        }

    .sxpo-standard-page-title,
    .ts-page-title,
    .sa-page-head h1,
    .sa-page-head h2,
    .product-page-title,
    .audit-page-head h1,
    .page-header h1,
    .page-header h2,
    .sxpo-standard-page-header h1 {
        margin: 0;
        color: var(--sxpo-text, #172033);
        font-size: clamp(1.35rem, 1.45rem, 2rem);
        font-weight: 800;
        letter-spacing: -.01em;
        line-height: 1.2;
    }

    .sxpo-standard-page-subtitle,
    .ts-page-subtitle,
    .sa-page-head p,
    .product-page-subtitle,
    .audit-page-head p,
    .page-header p,
    .sxpo-standard-page-header p {
        max-width: 850px;
        margin: 1px 0 0;
        color: var(--sxpo-text-muted, #667085);
        font-size: .88rem;
        line-height: 1.55;
    }

.sxpo-standard-page-actions,
.ts-page-actions,
.product-page-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.sxpo-standard-filter,
.ts-filter-bar,
.sa-filter-card,
.audit-filter-card,
.product-filter-card {
    margin-bottom: 20px !important;
    border: 1px solid var(--sxpo-border, #e2e8f0) !important;
    border-radius: 14px !important;
    background: var(--sxpo-surface, #fff) !important;
    box-shadow: 0 5px 20px rgba(16, 24, 40, .045) !important;
}

    .sxpo-standard-filter .card-body,
    .ts-filter-bar .card-body,
    .sa-filter-card .card-body,
    .audit-filter-card,
    .product-filter-card {
        padding: 16px 18px;
    }

        .sxpo-standard-filter .form-label,
        .ts-filter-bar .form-label,
        .sa-filter-card .form-label,
        .audit-filter-card .audit-filter-label,
        .product-filter-card label {
            color: var(--sxpo-text-muted, #667085);
            font-size: .69rem;
            font-weight: 800;
            letter-spacing: .055em;
            text-transform: uppercase;
        }

        .sxpo-standard-filter .form-control,
        .sxpo-standard-filter .form-select,
        .ts-filter-bar .form-control,
        .ts-filter-bar .form-select,
        .sa-filter-card .form-control,
        .sa-filter-card .form-select,
        .audit-filter-card .form-control,
        .audit-filter-card .form-select,
        .product-filter-card .form-control,
        .product-filter-card .form-select {
            min-height: 40px;
            border-color: #a4b3d1;
            border-radius: 8px;
        }

            .sxpo-standard-filter .form-control:focus,
            .sxpo-standard-filter .form-select:focus,
            .ts-filter-bar .form-control:focus,
            .ts-filter-bar .form-select:focus,
            .sa-filter-card .form-control:focus,
            .sa-filter-card .form-select:focus,
            .audit-filter-card .form-control:focus,
            .audit-filter-card .form-select:focus,
            .product-filter-card .form-control:focus,
            .product-filter-card .form-select:focus {
                border-color: #84adff;
                box-shadow: 0 0 0 3px #e8f0ff;
            }

.sxpo-filter-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

    .sxpo-filter-actions .btn {
        min-height: 40px;
    }

.sxpo-quick-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #edf0f4;
}

.sxpo-quick-filter {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 5px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #fff;
    color: #475467;
    font-size: .75rem;
    font-weight: 650;
    transition: .15s ease;
}

    .sxpo-quick-filter:hover,
    .sxpo-quick-filter.active {
        border-color: #b8d0ff;
        background: var(--sxpo-primary-soft, #eef4ff);
        color: var(--sxpo-primary, #155eef);
    }

@media (max-width: 767.98px) {
    .sxpo-standard-page-header,
    .ts-page-header,
    .sa-page-head,
    .product-page-header,
    .audit-page-head,
    .page-header {
        flex-direction: column;
        align-items: stretch;
        padding-bottom: 14px;
        margin-bottom: 16px;
    }

    .sxpo-standard-page-actions,
    .ts-page-actions,
    .product-page-actions {
        justify-content: flex-start;
    }

        .sxpo-standard-page-actions .btn,
        .ts-page-actions .btn,
        .product-page-actions .btn {
            flex: 1 1 auto;
        }
}

.specification-detail-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f8f9fb;
    white-space: nowrap;
}

.specification-detail-table tbody tr {
    transition: background-color .15s ease;
}

.specification-detail-table tbody tr:hover {
    background: #fbfcfe;
}


/* ============================================================
   Standardized console filter controls and list actions
   ============================================================ */
.sxpo-standard-filter .form-control,
.sxpo-standard-filter .form-select,
.ts-filter-bar .form-control,
.ts-filter-bar .form-select,
.sa-filter-card .form-control,
.sa-filter-card .form-select,
.audit-filter-card .form-control,
.audit-filter-card .form-select,
.product-filter-card .form-control,
.product-filter-card .form-select,
.sxpo-filter-form .form-control,
.sxpo-filter-form .form-select {
    height: 42px;
    min-height: 42px;
    box-sizing: border-box;
}

.sxpo-search-input {
    min-height: 42px;
}

.sxpo-search-input .input-group-text {
    min-width: 42px;
    justify-content: center;
    height: 42px;
    padding: 0 12px;
    color: #667085;
    background: #fff;
    border-color: #a4b3d1;
    border-right: 0;
    border-radius: 8px 0 0 8px;
}

.sxpo-search-input .form-control {
    height: 42px;
    min-height: 42px;
    border-color: #a4b3d1;
    border-radius: 0 8px 8px 0;
}

.sxpo-btn-filter-action,
.sxpo-btn-filter-reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 42px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: .875rem;
    font-weight: 650;
    line-height: 1.2;
    white-space: nowrap;
}

.sxpo-btn-filter-action {
    color: #fff;
    background: var(--sxpo-primary, #155eef);
    border-color: var(--sxpo-primary, #155eef);
}

.sxpo-btn-filter-action:hover,
.sxpo-btn-filter-action:focus-visible {
    color: #fff;
    background: var(--sxpo-primary-hover, #124bc4);
    border-color: var(--sxpo-primary-hover, #124bc4);
}

.sxpo-btn-filter-reset {
    color: #475467;
    background: #fff;
    border: 1px solid #cbd5e1;
    text-decoration: none;
}

.sxpo-btn-filter-reset:hover,
.sxpo-btn-filter-reset:focus-visible {
    color: #344054;
    background: #f8fafc;
    border-color: #98a2b3;
}

.btn-sm-list {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 30px;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: .75rem;
    font-weight: 650;
    line-height: 1.25;
    white-space: nowrap;
    vertical-align: middle;
}

.table td .btn-sm-list + .btn-sm-list {
    margin-left: 4px;
}

@media (max-width: 575.98px) {
    .sxpo-btn-filter-action,
    .sxpo-btn-filter-reset {
        padding-inline: 12px;
    }
}
