﻿/* =========================================
   RS PORTAL — CLEANED / DEDUPED
   Notes:
   - Tabs are now fully scoped:
       .rs-tab-row .rs-tab  (pill tabs)
       .rs-tabs    .rs-tab  (job edit strip tabs)
   - .rs-table defined once (with compact + grid modifiers preserved)
   - .rs-chip defined once (+ variants)
   - Checklist styles merged into one coherent set
   ========================================= */

/* =====================================================================
   TOKENS
   ===================================================================== */

:root {
    --rs-accent-cyan: #61e4ff;
    --rs-accent: #22d3ee;
    --rs-bg-0: #020617;
    --rs-bg-1: #050816;
    --rs-bg-2: #0b1120;
    --rs-surface: rgba(15, 23, 42, 0.96);
    --rs-border-soft: rgba(148, 163, 184, 0.25);
    --rs-border-mid: rgba(148, 163, 184, 0.35);
    --rs-border-strong: rgba(96, 165, 250, 0.7);
    --rs-text: #e5f2ff;
    --rs-text-strong: #ffffff;
    --rs-text-muted: rgba(148, 163, 184, 0.9);
    --rs-input-bg: #071728;
    --rs-input-border: rgba(97, 228, 255, 0.28);
    --rs-input-border-fg: rgba(97, 228, 255, 0.75);
}

/* =====================================================================
   PORTAL SHELL / LAYOUT
   ===================================================================== */

.rs-portal {
    background: radial-gradient(circle at 15% 0%, #141b2f 0, #050816 40%, #020617 80%);
    min-height: 100vh;
    padding: 1.5rem 0 3rem;
    color: var(--rs-text);
    font-size: 0.95rem;
}

    .rs-portal h2,
    .rs-portal h4 {
        color: var(--rs-text);
    }

.rs-portal-wrapper {
    max-width: 1660px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 3rem;
}

.rs-portal-copy,
.rs-panel .rs-long-text {
    max-width: 70ch;
}

/* Main grid under hero */
.rs-portal-grid {
    margin-top: 1.75rem;
    align-items: flex-start;
}

/* Header block */
.rs-portal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 1.75rem;
}

.rs-portal-kicker {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(148, 163, 184, 0.9);
    margin-bottom: 0.15rem;
}

.rs-portal-header h1 {
    font-size: 1.8rem;
    margin: 0 0 0.25rem;
    color: #f9fafb;
}

.rs-portal-header p {
    margin: 0;
    color: #c7d2fe;
    font-size: 0.95rem;
}

/* Legacy tiles wrapper (if still used) */
.rs-portal-tiles {
    margin-bottom: 1.5rem;
}

/* Admin toolbar row under hero */
.rs-portal-admin-row {
    margin-bottom: 2rem;
}

/* =====================================================================
   ALERTS
   ===================================================================== */

.rs-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    box-shadow: 0 14px 30px rgba(0,0,0,0.55);
}

.rs-alert-icon {
    flex-shrink: 0;
    margin-top: 2px;
    font-size: 1.1rem;
}

/* warning / heads-up */
.rs-alert-warning {
    background: radial-gradient(circle at 0% 0%, rgba(251,191,36,0.22), rgba(15,23,42,0.96));
    border: 1px solid rgba(251,191,36,0.8);
    color: #fef3c7;
}

.rs-alert-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    opacity: 0.85;
    margin-bottom: 0.15rem;
}

.rs-alert-body {
    color: #fefce8;
}

/* small status alerts */
.rs-alert-success {
    background: rgba(34, 197, 94, 0.1);
    color: #bbf7d0;
    font-weight: 500;
}

.rs-alert-error {
    background: rgba(239, 68, 68, 0.1);
    color: #fecaca;
}

.rs-alert-info {
    background: rgba(59, 130, 246, 0.08);
    color: #bfdbfe;
}

/* =====================================================================
   GENERIC CARDS (MAIN + SIDE + GUIDES)
   ===================================================================== */

.rs-portal-card,
.rs-portal-side-card,
.rs-portal-guides-card {
    border-radius: 1.5rem;
    padding: 1.75rem 1.75rem 1.5rem;
    margin-bottom: 1.75rem;
}

.rs-portal-card {
    background: radial-gradient(circle at 0% 0%, rgba(56,189,248,0.16), rgba(15,23,42,0.96));
    border: 1px solid rgba(30,64,175,0.9);
    box-shadow: 0 22px 55px rgba(15,23,42,0.9);
}

.rs-portal-side-card {
    background: radial-gradient(circle at 0% 0%, rgba(56,189,248,0.18), rgba(15,23,42,0.98));
    border: 1px solid rgba(30,64,175,0.85);
    box-shadow: 0 16px 40px rgba(15,23,42,0.95);
}

.rs-portal-side-card--logo {
    text-align: center;
}

.rs-portal-right-column .rs-portal-side-card:first-of-type {
    margin-top: 0;
}

/* =====================================================================
   PANELS INSIDE CARDS (Estimates / Jobs / Tasks)
   ===================================================================== */

.rs-panel {
    margin-top: 1.3rem;
    padding: 1.1rem 1.1rem 1.25rem;
    border-radius: 1.4rem;
    background: rgba(15,23,42,0.96);
    border: 1px solid rgba(30,64,175,0.85);
    box-shadow: 0 18px 40px rgba(0,0,0,0.65);
}

.rs-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.9rem;
}

.rs-panel-header--top {
    margin-bottom: 1.3rem;
}

.rs-panel-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    font-weight: 500;
    color: #e5f0ff;
}

.rs-panel-icon {
    width: 55px;
    height: 55px;
    object-fit: contain;
    color: var(--rs-accent-cyan);
}

.rs-panel-sub {
    font-size: 0.8rem;
    color: rgba(148,163,184,0.9);
    margin-top: 0.1rem;
}

.rs-panel select {
    background: #020617;
    color: #e5f2ff;
    border-radius: 999px;
    border: 1px solid rgba(75,85,99,0.9);
    padding: 0.47rem 0.8rem;
    font-size: 0.85rem;
}

.rs-panel-footer {
    margin-top: 15px;
}

/* Stack the Job estimate panel under the Job information panel */
.panel-stage .panel-flat {
    float: none;
    display: block;
    width: 100%;
    margin-top: 1rem;
}

    .panel-stage .panel-flat h4 {
        margin-bottom: 0.75rem;
    }

    .panel-stage .panel-flat .form-group {
        margin-bottom: 0.5rem;
    }

/* =====================================================================
   FILTER BAR (search + status dropdown)
   ===================================================================== */

.rs-portal-filters {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 1.1rem;
    border-radius: 999px;
    background: radial-gradient(circle at 0% 0%, rgba(56,189,248,0.08), rgba(15,23,42,0.98));
    border: 1px solid rgba(148,163,184,0.3);
}

.rs-filter-input,
.rs-filter-select {
    background: rgba(15,23,42,0.9);
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,0.35);
    color: #e5f0ff;
    font-size: 0.9rem;
}

    .rs-filter-input::placeholder {
        color: rgba(148,163,184,0.8);
    }

.rs-filter-select-wrap {
    margin: 0;
}

.rs-filter-select {
    min-width: 120px;
}

/* =====================================================================
   ROW / LIST ITEMS
   ===================================================================== */

.rs-table-header {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(148,163,184,0.95);
    border-bottom: 1px solid rgba(55,65,81,0.9);
    padding-bottom: 0.4rem;
    margin: 0.3rem 0 0.6rem;
}

.rs-row-link {
    display: block;
    padding: 0.55rem 0.7rem 0.75rem;
    border-radius: 1rem;
    margin-bottom: 0.35rem;
    background: rgba(15,23,42,0.9);
    border: 1px solid rgba(30,64,175,0.65);
    transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease, background 0.15s ease;
    color: inherit;
    text-decoration: none;
}

    .rs-row-link:hover {
        transform: translateY(-1px);
        box-shadow: 0 15px 35px rgba(15,23,42,0.9);
        border-color: rgba(56,189,248,0.9);
        background: rgba(15,23,42,0.95);
        text-decoration: none;
    }

.rs-row-meta {
    font-size: 0.8rem;
    color: rgba(148,163,184,0.9);
    margin-top: 0.1rem;
}

.rs-logo-thumb {
    width: 120px;
    object-fit: contain;
    border-radius: 0.5rem;
    background: #020617;
}
/* =========================================
   JOB INDEX — filters + list
   ========================================= */

.rs-job-filters {
    row-gap: 0.75rem;
}

.rs-job-search {
    background-color: rgba(15, 23, 42, 0.8);
    border-color: rgba(148, 163, 184, 0.4);
    color: #e5f2ff;
}

    .rs-job-search::placeholder {
        color: rgba(148, 163, 184, 0.7);
    }

.rs-job-filter-select {
    background-color: rgba(15, 23, 42, 0.8);
    border-color: rgba(148, 163, 184, 0.4);
    color: #e5f2ff;
}

    .rs-job-filter-select option {
        color: #0f172a;
    }

/* Job list shell */
.rs-joblist {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Clickable card wrapper */
.rs-job-card-link {
    text-decoration: none;
    color: inherit;
}

/* Card */
.rs-job-card {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1rem;
    border-radius: 0.85rem;
    background: radial-gradient(circle at 0 0, rgba(148, 163, 184, 0.12), rgba(15, 23, 42, 0.95));
    border: 1px solid rgba(148, 163, 184, 0.18);
    transition: border-color 0.12s ease, background-color 0.12s ease, transform 0.08s ease;
}

    .rs-job-card:hover {
        border-color: rgba(96, 165, 250, 0.8);
        background: radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.16), rgba(15, 23, 42, 0.98));
        transform: translateY(-1px);
    }

/* Main content (logo + body) */
.rs-job-card-main {
    display: flex;
    align-items: stretch;
    gap: 0.9rem;
    flex: 1 1 auto;
}

/* Logo */
.rs-job-logo-shell {
    flex: 0 0 52px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rs-job-logo {
    width: 52px;
    height: 52px;
    border-radius: 0.75rem;
    object-fit: cover;
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: #020617;
}

/* Body */
.rs-job-card-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

/* Title + small meta */
.rs-job-title-row {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.rs-job-title-main {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.rs-job-title {
    font-weight: 600;
    color: #e5f2ff;
}

.rs-job-meta-small {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    font-size: 0.8rem;
    color: #94a3b8;
}

/* Type / size chips */
.rs-job-badge {
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: rgba(15, 23, 42, 0.8);
}

/* Dates + progress */
.rs-job-dates {
    font-size: 0.8rem;
    color: #9ca3af;
}

.rs-job-progress {
    margin-top: 0.3rem;
    background-color: rgba(15, 23, 42, 0.85);
}

/* Status column */
.rs-job-status-col {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

/* Chip variants reused from other views; add if missing */
.rs-chip-safe {
    border-color: rgba(52, 211, 153, 0.8);
    color: #bbf7d0;
}

.rs-chip-warn {
    border-color: rgba(248, 113, 113, 0.9);
    color: #fecaca;
}

.rs-chip-outline {
    background: transparent;
}
/* Job filter select — improve dropdown readability */
.rs-job-filter-select {
    background-color: rgba(15, 23, 42, 0.95);
    border-color: rgba(96, 165, 250, 0.7);
    color: #e5f2ff;
}

    /* The actual dropdown options */
    .rs-job-filter-select option {
        background-color: #020617; /* very dark navy */
        color: #e5f2ff; /* light text */
    }

        /* Optional: slightly lighter when hovering / focused (Chromium & Firefox honour this) */
        .rs-job-filter-select option:checked,
        .rs-job-filter-select option:hover {
            background-color: #0b1120;
            color: #ffffff;
        }

.rs-job-logo {
    
    width: 110px;
    height:110px;
    object-fit: contain;
    border-radius: 0.5rem;
    background: #020617;
}


/* =========================================
   Stripe payment button
   ========================================= */

.rs-stripe-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.55rem 1.3rem;
    border-radius: 999px;
    border: none;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    cursor: pointer;
    text-decoration: none;
    /* Stripe-ish colours */
    background: linear-gradient(135deg, #635bff, #3a2fd7);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(99, 91, 255, 0.45), 0 0 0 1px rgba(15, 23, 42, 0.8);
    transition: transform 0.08s ease, box-shadow 0.08s ease, background 0.12s ease;
}

    .rs-stripe-btn:hover {
        transform: translateY(-1px);
        background: linear-gradient(135deg, #746dff, #4b40f0);
        box-shadow: 0 10px 24px rgba(99, 91, 255, 0.6), 0 0 0 1px rgba(15, 23, 42, 0.9);
        text-decoration: none;
        color: #ffffff;
    }

    .rs-stripe-btn:active {
        transform: translateY(0);
        box-shadow: 0 4px 12px rgba(99, 91, 255, 0.4), 0 0 0 1px rgba(15, 23, 42, 0.9);
    }

    .rs-stripe-btn:focus-visible {
        outline: 2px solid #61e4ff;
        outline-offset: 2px;
    }

/* Small "stripe" chip inside the button */
.rs-stripe-wordmark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.45rem;
    border-radius: 999px;
    background: rgba(10, 18, 40, 0.65);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: lowercase;
}

/* Optional helper text under the button */
.rs-stripe-caption {
    margin-top: 0.35rem;
    font-size: 0.75rem;
    color: #9fb7d9;
}










/* =====================================================================
   FIELDSET
   ===================================================================== */



.rs-fieldset {
    margin-top: 32px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.rs-fieldset-label {
    font-size: 0.8rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--rs-accent-cyan, #27c2ff);
    margin-bottom: 12px;
}
.rs-label-inline {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    opacity: 0.8;
    color: #e5f2ff;
}

.rs-label-value {
    font-weight: 500;
    color: #ffffff;
}



/* =====================================================================
   PROGRESS BARS
   ===================================================================== */
.rs-progress {
    height: 18px;
    border-radius: 999px;
    background: rgba(15,23,42,1);
    overflow: hidden;
    margin-top: 0.25rem;
}

.rs-progress-bar {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #fb923c, #f97373);
    box-shadow: 0 0 12px rgba(248,113,113,0.6);
    font-size: 0.75rem;
    line-height: 18px;
    text-align: center;
    font-weight: 500;
    color: #111827;
    white-space: nowrap;
}

.rs-progress-bar-danger {
    background: linear-gradient(90deg, #f97373, #ef4444);
    color: #1f0a0a;
}

/* Jobs list: Bootstrap progress shell */
.rs-progress-bar-shell {
    background: rgba(15,23,42,1);
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid rgba(30,64,175,0.7);
}

    .rs-progress-bar-shell .progress-bar {
        background: linear-gradient(90deg, #fb923c, #f97373);
        font-size: 0.75rem;
        font-weight: 500;
        color: #111827;
    }

/* =====================================================================
   CHIPS / BADGES
   ===================================================================== */

.rs-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.1rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: 1px solid rgba(148, 163, 184, 0.4);
    color: #e5f2ff;
    background: linear-gradient(120deg, rgba(15, 23, 42, 0.9), rgba(30, 64, 175, 0.7));
}

.rs-chip-small {
    font-size: 0.7rem;
    padding: 2px 8px;
}

.rs-chip-pill {
    padding-inline: 0.75rem;
}

.rs-chip-role {
    margin: 0 0.18rem 0.18rem 0;
    border-color: rgba(56, 189, 248, 0.55);
    background: rgba(15, 23, 42, 0.95);
    color: #e0f2fe;
}

.rs-chip-success {
    border-color: #27e39a;
    color: #27e39a;
    background: rgba(15, 23, 42, 0.85);
}

.rs-chip-danger {
    border-color: rgba(248, 113, 113, 0.8);
    background: rgba(127, 29, 29, 0.9);
    color: #fee2e2;
}

.rs-chip-safe {
    border-color: rgba(52, 211, 153, 0.8);
    color: #bbf7d0;
    background: rgba(15, 23, 42, 0.85);
}

.rs-chip-warn {
    border-color: rgba(248, 113, 113, 0.9);
    color: #fecaca;
    background: rgba(15, 23, 42, 0.85);
}

.rs-chip-outline {
    background: transparent;
}

.rs-chip-muted {
    opacity: 0.7;
    background-color: rgba(148, 163, 184, 0.12);
    color: #9ca3af;
}

.rs-badge-kpi {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    background: linear-gradient(90deg,#00d8ff,#27e39a);
    color: #02101e;
}

/* small order/option chips (kept) */
.rs-chip-order {
    display: inline-block;
    min-width: 28px;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    background: rgba(5, 120, 255, 0.12);
    color: #61e4ff;
    border: 1px solid rgba(97, 228, 255, 0.5);
}

.rs-chip-option {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: #0b2236;
    color: #9fe7ff;
    border: 1px solid #1f4a66;
}




/*Is closed shell*/


.rs-flag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 12px;
}


.rs-flag-card {
    display: inline-block;
    position: relative;
    flex: 1 1 260px;
    cursor: pointer;
}


.rs-flag-card--wide {
    flex: 1 1 100%;
}

.rs-flag-shell {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 20px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: radial-gradient(circle at 0 0, rgba(39, 194, 255, 0.18), rgba(4, 10, 25, 0.95));
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.9), 0 0 25px rgba(0, 0, 0, 0.8);
    transition: box-shadow 0.18s ease, background 0.18s ease, transform 0.18s ease;
}


.rs-flag-checkbox {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.rs-flag-check {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    border: 2px solid var(--rs-accent-cyan, #27c2ff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: transparent;
    background: rgba(1, 8, 18, 0.9);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.9);
    flex-shrink: 0;
    transition: background 0.18s ease, box-shadow 0.18s ease, color 0.18s ease, transform 0.12s ease;
}

.rs-flag-body {
    display: flex;
    flex-direction: column;
}

.rs-flag-title {
    font-weight: 600;
    color: #ffffff;
}

.rs-flag-sub {
    font-size: 0.86rem;
    color: rgba(255, 255, 255, 0.72);
}

.rs-color-swatch {
    width: 44px;
    height: 18px;
    border-radius: 999px;
    box-shadow: 0 0 10px rgba(0,0,0,0.55);
    border: 1px solid rgba(0,0,0,0.6);
}



/* =====================================================================
   BUTTONS / PILL BUTTONS
   ===================================================================== */

.rs-pill-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 1.2rem;
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,0.6);
    background: radial-gradient(circle at 0% 0%, rgba(56,189,248,0.5), rgba(15,23,42,0.96));
    box-shadow: 0 0 14px rgba(56,189,248,0.65);
    font-size: 0.85rem;
    color: #e5f2ff;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease, color 0.15s ease;
}

    .rs-pill-btn:hover {
        text-decoration: none;
        box-shadow: 0 0 20px rgba(56,189,248,0.9);
        transform: translateY(-1px);
        color: #ffffff;
    }

.rs-pill-btn-sm {
    padding: 0.3rem 1.0rem;
    white-space: normal;
    line-height: 1.25;
}

.rs-pill-btn-xs {
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    line-height: 1.2;
}

.rs-pill-btn-danger {
    border-radius: 999px;
    border: 1px solid rgba(248,113,113,0.75);
    background: radial-gradient(circle at 0% 0%, rgba(248,113,113,0.3), rgba(127,29,29,0.95));
    color: #fee2e2;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 0 18px rgba(248,113,113,0.6);
    white-space: nowrap;
    transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

    .rs-pill-btn-danger:hover {
        text-decoration: none;
        background: radial-gradient(circle at 0% 0%, rgba(248,113,113,0.45), rgba(153,27,27,0.98));
        box-shadow: 0 0 24px rgba(248,113,113,0.9);
        transform: translateY(-1px);
        color: #fff;
    }

.rs-pill-btn-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Side-card grid */
.rs-side-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 18px;
    row-gap: 12px;
}









/* =====================================================================
   GUIDES & QUICK-LINK TILES
   ===================================================================== */

.rs-portal-guides-card {
    background: radial-gradient(circle at 0% 0%, rgba(56,189,248,0.16), rgba(15,23,42,0.96));
    border: 1px solid rgba(30,64,175,0.9);
}

.rs-portal-guides-grid,
.rs-portal-quick-links {
    margin-top: 1.1rem;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.rs-quick-link {
    position: relative;
    display: block;
    border-radius: 1.25rem;
    background: radial-gradient(circle at top, #020617, #020617);
    border: 1px solid rgba(148, 163, 184, 0.3);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.rs-quick-link-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.rs-quick-link-title {
    position: absolute;
    left: 0.75rem;
    bottom: 0.75rem;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.6);
}

/* =====================================================================
   COMMENTS PANEL (Job edit)
   ===================================================================== */

.rs-panel-comment {
    margin-bottom: 0.75rem;
    padding: 0.75rem 1rem;
}

    .rs-panel-comment:last-child {
        margin-bottom: 0;
    }

.rs-comment-body,
.rs-comment-body span {
    font-size: 0.9rem;
    color: #e5f2ff !important;
}

.rs-comment-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: rgba(148,163,184,0.9);
    gap: 0.75rem;
    flex-wrap: wrap;
}

.rs-comment-meta {
    white-space: nowrap;
}

.rs-comment-actions {
    display: flex;
    gap: 0.75rem;
}

.rs-comment-link {
    color: rgba(148,163,184,0.9);
    text-decoration: none;
    border: 0;
    padding: 0;
    background: none;
    cursor: pointer;
}

    .rs-comment-link:hover {
        color: #e5f2ff;
        text-decoration: underline;
    }

.rs-comment-link-danger {
    color: #ff6b7b;
}

/* =====================================================================
   FILE UPLOAD
   ===================================================================== */

.rs-file-header {
    padding: 0.6rem 1.1rem;
    border-radius: 999px;
    margin-bottom: 1.2rem;
    background: radial-gradient(circle at 0% 0%, rgba(56,189,248,0.18), rgba(15,23,42,0.98));
    border: 1px solid rgba(30,64,175,0.8);
}

.rs-file-header-col {
    display: flex;
    flex-direction: column;
}

    .rs-file-header-col h3 {
        margin: 0;
        font-size: 0.95rem;
        color: #e5f2ff;
    }

.rs-file-header-col-right {
    text-align: right;
}

.rs-file-upload-form {
    max-width: 420px;
}

    .rs-file-upload-form .rs-input-label {
        font-size: 0.78rem;
        text-transform: uppercase;
        letter-spacing: 0.12em;
        color: rgba(148,163,184,0.9);
        margin-bottom: 0.25rem;
    }

    .rs-file-upload-form .rs-input-control {
        background: rgba(15,23,42,0.95);
        border-radius: 999px;
        border: 1px solid rgba(148,163,184,0.4);
        color: #e5f2ff;
        font-size: 0.9rem;
    }

        .rs-file-upload-form .rs-input-control:focus {
            border-color: rgba(56,189,248,0.9);
            box-shadow: 0 0 0 1px rgba(56,189,248,0.6);
        }

.rs-upload-message {
    font-size: 0.8rem;
    color: rgba(148,163,184,0.9);
}

.rs-file-upload-status {
    text-align: center;
    margin-top: 20px;
}

.rs-file-input {
    background: rgba(3, 12, 32, 0.96);
    border-color: rgba(129, 199, 255, 0.7);
    color: #e5f2ff;
    font-size: 0.85rem;
}

/* =====================================================================
   VIEWER
   ===================================================================== */

.rs-viewer-shell {
    border-radius: 1.2rem;
    padding: 0.75rem;
    background: radial-gradient(circle at 0% 0%, rgba(56,189,248,0.12), rgba(15,23,42,0.98));
    border: 1px solid rgba(30,64,175,0.85);
    box-shadow: 0 16px 40px rgba(15,23,42,0.9);
}

.rs-viewer-frame {
    width: 100%;
    min-height: 360px;
    border-radius: 0.9rem;
    overflow: hidden;
    background: #020617;
    box-shadow: 0 18px 45px rgba(0,0,0,0.85);
}

    .rs-viewer-frame iframe {
        width: 100%;
        height: 100%;
        border: 0;
    }

.rs-viewer-shell--empty {
    border-style: dashed;
    border-width: 1px;
    border-color: rgba(148,163,184,0.5);
    text-align: left;
    background: radial-gradient(circle at 0% 0%, rgba(15,23,42,0.96), rgba(15,23,42,1));
}

/* =====================================================================
   BREADCRUMB
   ===================================================================== */

.rs-breadcrumb {
    margin-bottom: 1.5rem;
    color: #9fa8c3;
}

.rs-breadcrumb-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 0.55rem 1.25rem;
    border-radius: 999px;
    background: radial-gradient(circle at top left, #12263f 0, #050915 55%, #02040a 100%);
    box-shadow: 0 0 0 1px rgba(0, 216, 255, 0.14), 0 18px 45px rgba(0, 0, 0, 0.7);
}

.rs-breadcrumb-kicker {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: rgba(255, 255, 255, 0.45);
    margin-right: 0.75rem;
    white-space: nowrap;
}

.rs-breadcrumb-list {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
}

.rs-breadcrumb-item {
    display: inline-flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.55);
}

    .rs-breadcrumb-item + .rs-breadcrumb-item::before {
        content: "/";
        margin: 0 0.35rem;
        color: rgba(255, 255, 255, 0.28);
    }

    .rs-breadcrumb-item a {
        color: #1ca8ff;
        text-decoration: none;
        font-weight: 700;
    }

        .rs-breadcrumb-item a:hover {
            color: #55d8ff;
            text-shadow: 0 0 8px rgba(0, 216, 255, 0.5);
        }

.rs-breadcrumb-current {
    color: rgba(255, 255, 255, 0.4);
    font-weight: 500;
}

.rs-breadcrumb-context {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.55);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 45%;
    text-align: right;
}

/* =====================================================================
   TABLES (single source of truth)
   ===================================================================== */

.rs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    color: #e5f2ff;
}

    .rs-table thead th {
        font-size: 0.8rem;
        font-weight: 700;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        color: rgba(229, 242, 255, 0.85);
        border-bottom: 1px solid rgba(229, 242, 255, 0.18);
        padding: 0.75rem 1rem;
        background: radial-gradient(circle at 0 0, rgba(0, 198, 255, 0.14), rgba(5, 8, 22, 0.95));
    }

    .rs-table tbody td {
        padding: 0.65rem 1rem;
        color: rgba(229, 242, 255, 0.9);
        border-bottom: 1px solid rgba(229, 242, 255, 0.06);
        vertical-align: middle;
    }

    .rs-table tbody tr:last-child td {
        border-bottom-color: rgba(229, 242, 255, 0.12);
    }

    .rs-table tbody tr:hover {
        background: radial-gradient(circle at 0 50%, rgba(0, 198, 255, 0.14), rgba(5, 8, 22, 0.98));
    }

    .rs-table .rs-comment-link {
        color: rgba(229, 242, 255, 0.9);
        font-weight: 600;
    }

        .rs-table .rs-comment-link.text-danger {
            color: #ff6161;
        }

    /* compact variants */
    .rs-table.rs-table-compact td,
    .rs-table.rs-table-compact th {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }

.rs-table-sm th,
.rs-table-sm td {
    padding: 0.4rem 0.5rem;
}

/* zebra/grid variant */
.rs-table-grid tbody tr:nth-child(odd) {
    background: rgba(15, 23, 42, 0.4);
}

.rs-table-grid tbody tr:nth-child(even) {
    background: rgba(15, 23, 42, 0.7);
}

.rs-table-grid tbody tr:hover {
    background: rgba(30, 64, 175, 0.45);
}

/* actions */
.rs-table-actions-col {
    text-align: right;
    width: 1%;
    white-space: nowrap;
}

.rs-table-actions {
    text-align: right;
    white-space: nowrap;
    padding-right: 1rem;
}

.rs-action-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: #30b6ff;
    text-decoration: none;
    transition: color 0.15s ease, text-shadow 0.15s ease;
}

    .rs-action-link:hover {
        color: #6fd5ff;
        text-shadow: 0 0 6px rgba(111, 213, 255, 0.7);
    }

.rs-action-danger {
    color: #ff6b81;
}

    .rs-action-danger:hover {
        color: #ff8fa0;
        text-shadow: 0 0 6px rgba(255, 107, 129, 0.8);
    }

.rs-action-sep {
    margin: 0 0.4rem;
    color: rgba(255, 255, 255, 0.25);
    font-weight: 300;
}

/* current row highlight */
.rs-table tr.rs-table-row-current td,
.rs-portal-table-row.rs-table-row-current {
    background: radial-gradient(circle at 0 0, rgba(97, 228, 255, 0.15), transparent 55%);
    border-color: rgba(97, 228, 255, 0.5);
}

.rs-table tr.rs-table-row-current td {
    border-left: 2px solid var(--rs-accent-cyan);
}

/* =====================================================================
   INPUT THEME (portal + auth)
   ===================================================================== */

.rs-auth-input,
.rs-auth-card .form-control,
.rs-portal .form-control,
.rs-portal .rs-datetime {
    background-color: var(--rs-input-bg);
    border-color: var(--rs-input-border);
    color: #e5f2ff;
}

    .rs-auth-input:focus,
    .rs-auth-card .form-control:focus,
    .rs-portal .form-control:focus,
    .rs-portal .rs-datetime:focus {
        background-color: var(--rs-input-bg);
        border-color: var(--rs-input-border-fg);
        box-shadow: 0 0 0 1px var(--rs-input-border-fg);
        color: #ffffff;
    }

    .rs-auth-input::placeholder,
    .rs-auth-card .form-control::placeholder,
    .rs-portal .form-control::placeholder {
        color: rgba(229, 242, 255, 0.55);
    }

    .rs-auth-input:-webkit-autofill,
    .rs-auth-card .form-control:-webkit-autofill,
    .rs-portal .form-control:-webkit-autofill {
        -webkit-box-shadow: 0 0 0 1000px var(--rs-input-bg) inset !important;
        -webkit-text-fill-color: #e5f2ff !important;
        caret-color: #e5f2ff !important;
    }

/* datetime picker icon visibility */
.rs-portal input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    filter: invert(1) brightness(1.4);
    opacity: 0.9;
    cursor: pointer;
}

.rs-portal input[type="datetime-local"] {
    padding-right: 2.5rem;
}


.rs-panel-fields .form-control, .rs-panel .form-control {
    background: #041327;
    border-radius: 10px;
    border: 1px solid #153458;
    color: #ffffff;
}




/* =====================================================================
   CHECKLIST (single unified set)
   ===================================================================== */

.rs-checklist-category {
    margin-bottom: 1.75rem;
}

.rs-checklist-category-title {
    letter-spacing: 0.08em;
    font-weight: 700;
}

.rs-checklist-group {
    margin-bottom: 1.5rem;
}

.rs-checklist-group-header {
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(214, 234, 255, 0.65);
    margin-bottom: 0.4rem;
}

.rs-checklist-group-items {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.45rem 0.6rem 0.6rem;
    border-radius: 18px;
    background: rgba(5, 16, 35, 0.85);
    border: 1px solid rgba(122, 209, 255, 0.08);
}

.rs-checklist-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 999px;
    padding: 0.35rem 0.6rem;
    background: radial-gradient(circle at 0 0, rgba(148, 163, 184, 0.20), rgba(15, 23, 42, 0.90) );
    border: 1px solid var(--rs-border-subtle, rgba(148, 163, 184, 0.25));
    transition: background 120ms ease-out, border-color 120ms ease-out;
}

    .rs-checklist-row:hover {
        background: rgba(255, 255, 255, 0.02);
        border-color: rgba(148, 163, 184, 0.18);
    }

.rs-checklist-row-main {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
}

.rs-checklist-order {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    border: 1px solid rgba(97, 228, 255, 0.9);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    color: rgba(228, 243, 255, 0.9);
    flex-shrink: 0;
}

.rs-checklist-desc {
    font-size: 0.9rem;
    color: rgba(230, 241, 255, 0.92);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rs-checklist-row-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}


.rs-flag-checkbox:checked ~ .rs-flag-shell .rs-flag-check {
    background: var(--rs-accent-cyan, #27c2ff);
    color: #01111f;
    box-shadow: 0 0 14px rgba(39, 194, 255, 0.9), 0 0 0 1px rgba(0, 0, 0, 0.9);
}

/* =====================================================================
   JOB EDIT — LINK HEIGHTS
   ===================================================================== */

.rs-job-main-row > [class*="col-"] {
    display: flex;
    flex-direction: column;
}

    .rs-job-main-row > [class*="col-"] > .rs-portal-card {
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
    }

.rs-job-main-row .rs-job-actions {
    margin-top: auto;
}

/* pricing option cards */
.rs-option-card {
    position: relative;
    border-radius: 12px;
    border: 1px solid var(--rs-border-soft);
    background: rgba(255,255,255,0.02);
    padding: 0.75rem 0.9rem 0.9rem;
}

    .rs-option-card::before {
        content: "";
        position: absolute;
        inset-block: 0.5rem;
        inset-inline-start: 0;
        width: 4px;
        border-radius: 999px;
        background: var(--rs-accent-cyan, #22d3ee);
    }

.rs-option-card-header {
    border-bottom: 1px dashed rgba(255,255,255,0.1);
    padding-bottom: 0.4rem;
    margin-bottom: 0.6rem;
}

.rs-option-chip,
.rs-option-header-total-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
    color: rgba(255,255,255,0.6);
}

.rs-option-template-name {
    font-size: 0.95rem;
    font-weight: 600;
}

.rs-option-header-total-value {
    font-size: 1.05rem;
    font-weight: 700;
}

/* =========================================
   Stages / timeline
   ========================================= */

.rs-stages-card {
    /* inherits rs-portal-card */
}

/* Stage card */
.rs-stage-card {
    border-radius: 24px;
    border: 1px solid rgba(0, 255, 255, 0.15);
    box-shadow: 0 0 0 1px rgba(0, 255, 255, 0.05);
}

/* Left meta column */
.rs-stage-meta {
    background: radial-gradient(circle at top left, rgba(0, 255, 255, 0.08), rgba(4, 18, 40, 0.95));
    border-radius: 18px;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.rs-stage-chip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    opacity: 0.8;
}

.rs-stage-title {
    font-size: 1.1rem;
    margin: 6px 0 10px;
}

    .rs-stage-title a {
        color: #ffffff;
        text-decoration: none;
    }

        .rs-stage-title a:hover {
            text-decoration: underline;
        }

.rs-stage-meta-list {
    font-size: 0.85rem;
    line-height: 1.35;
    opacity: 0.9;
}

/* Small chips */
.rs-chip-small {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 999px;
}

/* Task list */
.rs-stage-tasks,
.rs-stage-details {
    padding: 10px 4px;
}

.rs-section-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    opacity: 0.75;
}

.rs-task-pill {
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.25);
    padding: 8px 10px;
    margin-bottom: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.rs-task-pill-done {
    border-color: rgba(0, 255, 170, 0.6);
}

.rs-task-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.rs-task-name a {
    color: #ffffff;
    text-decoration: none;
}

    .rs-task-name a:hover {
        text-decoration: underline;
    }

.rs-task-sub {
    font-size: 0.78rem;
    opacity: 0.8;
}

/* Detail block */
.rs-stage-detail-block {
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 8px 10px;
}

.rs-stage-detail-header {
    font-weight: 600;
    margin-bottom: 4px;
}

.rs-stage-detail-body {
    font-size: 0.86rem;
}

/* Timeline */
.rs-stage-timeline {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    margin-top: 16px;
    padding-top: 10px;
}

.rs-timeline-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.78rem;
}

.rs-timeline-label {
    padding: 4px 6px;
    text-align: left;
}

.rs-timeline-label-stage {
    font-weight: 600;
}

.rs-timeline-cell,
.rs-timeline-cell-closed {
    min-width: 26px;
    height: 22px;
    text-align: center;
    border-radius: 6px;
}

.rs-timeline-cell {
    border: 1px solid transparent;
}

.rs-timeline-cell-past {
    background-color: rgba(0, 255, 255, 0.40);
}

.rs-timeline-cell-future {
    border-color: rgba(0, 255, 255, 0.25);
}

.rs-timeline-cell-stage-past {
    background-color: rgba(0, 255, 255, 0.55);
}

.rs-timeline-cell-stage-future {
    border-color: rgba(0, 255, 255, 0.35);
}

.rs-timeline-cell-today {
    background-color: #ffca28;
}

.rs-timeline-cell-closed {
    background-color: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.rs-timeline-date {
    padding-top: 2px;
    opacity: 0.75;
}


/* =====================================================================
   ORG FILTERS / EDIT
   ===================================================================== */

.rs-org-toolbar {
    margin-bottom: 1.25rem;
}

.rs-org-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 1rem 1.5rem;
}

.rs-org-filter-group {
    min-width: 230px;
}

    .rs-org-filter-group .rs-form-label {
        margin-bottom: 0.25rem;
    }

    .rs-org-filter-group .form-control-sm {
        background: rgba(3, 12, 32, 0.95);
        border-color: rgba(129, 199, 255, 0.5);
        color: #e5f2ff;
    }

        .rs-org-filter-group .form-control-sm::placeholder {
            color: rgba(229, 242, 255, 0.5);
        }

.rs-org-filter-actions {
    margin-left: auto;
}

.rs-org-edit .rs-panel {
    padding-top: 1.25rem;
}

.rs-org-layout {
    align-items: flex-start;
}

.rs-org-header-meta .rs-chip {
    background: radial-gradient(circle at 0 0, rgba(0, 198, 255, 0.32), rgba(5, 8, 22, 0.96));
}

/* stage/job type pill toggles */
.rs-org-jobtypes-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.rs-org-stage-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(129, 199, 255, 0.45);
    background: radial-gradient(circle at 0 0, rgba(0, 198, 255, 0.05), rgba(3, 10, 28, 0.95));
    cursor: pointer;
    font-size: 0.85rem;
    color: rgba(229, 242, 255, 0.9);
    gap: 0.4rem;
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

    .rs-org-stage-pill:hover {
        border-color: rgba(0, 198, 255, 0.9);
        box-shadow: 0 0 12px rgba(0, 198, 255, 0.45);
    }

.rs-org-stage-checkbox {
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 999px;
    border: 1px solid rgba(129, 199, 255, 0.9);
    background: rgba(4, 12, 32, 0.95);
    display: inline-block;
    position: relative;
}

    .rs-org-stage-checkbox:checked {
        background: #00c6ff;
        border-color: #00c6ff;
    }

        .rs-org-stage-checkbox:checked::after {
            content: "";
            position: absolute;
            inset: 3px;
            border-radius: 999px;
            background: #020617;
        }

.rs-org-stage-label {
    white-space: nowrap;
}

/* logo block */
.rs-org-logo-block {
    display: flex;
    flex-direction: column;
}

.rs-org-logo-preview-shell {
    max-width: 100%;
}

.rs-org-logo-preview {
    width: 100%;
    max-width: 420px;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    border-radius: 1rem;
    background: radial-gradient(circle at 10% 0%, rgba(0, 198, 255, 0.14), rgba(3, 6, 22, 0.98));
    box-shadow: 0 0 0 1px rgba(129, 199, 255, 0.35), 0 20px 45px rgba(0, 0, 0, 0.75);
    padding: 0.75rem;
}

.rs-org-logo-preview--empty {
    opacity: 0.35;
}

/* actions row */
.rs-org-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* vertical job types list */
.rs-org-jobtypes-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.rs-org-jobtype-row {
    display: flex;
    align-items: center;
    padding: 0.3rem 0.5rem;
    border-radius: 0.6rem;
    background: radial-gradient(circle at 0 0, rgba(0, 198, 255, 0.05), rgba(3, 10, 28, 0.95));
    border: 1px solid rgba(129, 199, 255, 0.35);
    font-size: 0.85rem;
    color: rgba(229, 242, 255, 0.9);
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

    .rs-org-jobtype-row:hover {
        border-color: rgba(0, 198, 255, 0.9);
        box-shadow: 0 0 10px rgba(0, 198, 255, 0.35);
    }

.rs-org-jobtype-checkbox {
    margin-right: 0.5rem;
    flex-shrink: 0;
}

.rs-org-jobtype-label {
    white-space: normal;
}

/* =====================================================================
   AUTH / LOGIN (two layouts kept; no duplicates)
   ===================================================================== */

/* Fancy two-column login */
.rs-auth-wrapper {
    min-height: calc(100vh - 250px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    background: radial-gradient(circle at 20% -20%, #18ffff20, transparent 60%), radial-gradient(circle at 80% 120%, #00ff9530, transparent 60%), linear-gradient(135deg, #020617, #020617 40%, #020617);
    color: #e5e7eb;
}

.rs-auth-logo{
    height:60px;
}

.rs-auth-tagline{
font-size: 0.78rem;
letter-spacing: 0.16em;
text-transform: uppercase;
color: #9ca3af;}

.rs-auth-location {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #6b7280;
    margin-bottom: 1.25rem;
}


.rs-auth-layout {
    width: 100%;
    max-width: 1120px;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
    gap: 3rem;
}

.rs-auth-hero {
    position: relative;
    padding: 2.5rem 2.25rem;
    border-radius: 1.75rem;
    background: radial-gradient(circle at top left, #0ea5e970, #020617);
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 32px 80px rgba(15, 23, 42, 0.9), 0 0 0 1px rgba(15, 23, 42, 0.8);
    overflow: hidden;
}

.rs-auth-hero-title {
    font-size: 2.1rem;
    line-height: 1.1;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

    .rs-auth-hero-title span {
        color: #22d3ee;
    }


.rs-auth-hero-sub {
    font-size: 0.95rem;
    color: #9ca3af;
    max-width: 26rem;
    margin-bottom: 1.5rem;
}

.rs-auth-hero-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    display: grid;
    gap: 0.4rem;
    font-size: 0.9rem;
    color: #d1d5db;
}

    .rs-auth-hero-list li::before {
        content: "•";
        color: #22d3ee;
        margin-right: 0.5rem;
    }

.rs-auth-card {
    background: radial-gradient(circle at top, #0b1220, #020617 60%);
    border-radius: 1.5rem;
    padding: 2.25rem 2rem 2.5rem;
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: 0 28px 60px rgba(15, 23, 42, 0.9), 0 0 0 1px rgba(15, 23, 42, 0.9);
}


.rs-auth-hero-frame {
    position: relative;
    border-radius: 1.5rem;
    padding: 0.35rem;
    background: radial-gradient(circle at 10% 0, #22d3ee, #22c55e);
    box-shadow: 0 0 40px rgba(34, 211, 238, 0.55);
    max-width: 360px;
}

.rs-auth-hero-image {
    display: block;
    width: 100%;
    border-radius: 1.25rem;
}

.rs-auth-hero-chip {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
    font-size: 0.75rem;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(148, 163, 184, 0.5);
    background: rgba(15, 23, 42, 0.75);
    color: #e5e7eb;
}

.rs-auth-help {
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: #9ca3af;
}

/* “true-centre” single panel auth (kept) */
.rs-auth-shell {
    min-height: calc(100vh - 80px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem 1.5rem 5rem;
}

.rs-auth-panel {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    border-radius: 26px;
    padding: 2.75rem 3rem;
    background: radial-gradient(circle at 0 0, #1c2845 0, #050816 50%, #020617 100%);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.75);
}

.rs-auth-panel-inner {
    display: grid;
    grid-template-columns: minmax(0, 430px) minmax(0, 380px);
    gap: 3rem;
    align-items: flex-start;
}

/* single-card layout helper */
.rs-auth-layout--single {
    display: grid;
    grid-template-columns: minmax(0, 520px);
    justify-content: center;
}

    .rs-auth-layout--single .rs-auth-card {
        max-width: 520px;
    }

/* =====================================================================
   HERO BAND (dashboard)
   ===================================================================== */

.rs-portal-hero {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    align-items: stretch;
    margin-bottom: 2.5rem;
    padding: 2.25rem 2.25rem;
    border-radius: 1.75rem;
    background: radial-gradient(circle at 15% 0, #0ea5e950, #020617 55%), radial-gradient(circle at 85% 120%, #22c55e30, transparent 60%);
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.9), 0 0 0 1px rgba(15, 23, 42, 0.7);
}

.rs-portal-hero-main {
    flex: 1 1 280px;
    min-width: 0;
}

.rs-portal-sub {
    margin-top: 0.25rem;
    color: #9ca3af;
    max-width: 28rem;
}

.rs-portal-hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.4rem;
}

.rs-portal-hero-media {
    flex: 0 0 380px;
    min-width: 320px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
}

.rs-portal-hero-video-frame {
    position: relative;
    width: 100%;
    border-radius: 1.5rem;
    padding: 0.35rem;
    background: radial-gradient(circle at 10% 0, #22d3ee, #22c55e);
    box-shadow: 0 0 40px rgba(34, 211, 238, 0.55);
}

.rs-portal-hero-video {
    display: block;
    width: 100%;
    border-radius: 1.2rem;
}

.rs-hero-chip {
    position: absolute;
    border-radius: 999px;
    padding: 0.3rem 0.9rem;
    font-size: 0.75rem;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: rgba(15, 23, 42, 0.85);
    color: #e5e7eb;
}

.rs-hero-chip-main {
    top: 0.9rem;
    left: 1rem;
}

.rs-hero-chip-sub {
    top: 0.9rem;
    right: 1rem;
}

.rs-hero-media-caption {
    font-size: 0.85rem;
    color: #9ca3af;
    max-width: 320px;
}

/* =====================================================================
   TABS
   ===================================================================== */

/* ---- Pill tab row (legacy / general) ---- */
.rs-tab-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    margin: 0 0 1rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.35);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

    .rs-tab-row::-webkit-scrollbar {
        display: none;
    }

.rs-tab-row {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

    .rs-tab-row .rs-tab {
        flex: 0 0 auto;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0.35rem 0.9rem;
        border-radius: 999px;
        font-size: 0.875rem;
        line-height: 1.2;
        font-weight: 600;
        text-decoration: none;
        white-space: nowrap;
        background: rgba(15, 23, 42, 0.9);
        color: #e5f2ff;
        border: 1px solid rgba(148, 163, 184, 0.6);
        transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.12s ease;
    }

        .rs-tab-row .rs-tab:hover {
            background: rgba(15, 23, 42, 1);
            border-color: rgba(148, 163, 184, 0.9);
            color: #ffffff;
            transform: translateY(-1px);
        }

    .rs-tab-row .rs-tab--active {
        background: var(--rs-accent, #22d3ee);
        border-color: var(--rs-accent, #22d3ee);
        color: #0b1120;
        box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.5), 0 0 18px rgba(56, 189, 248, 0.45);
    }

    .rs-tab-row .rs-tab--disabled {
        opacity: 0.55;
        cursor: default;
        pointer-events: none;
    }

/* ---- Job edit “real tabs” strip ---- */
.rs-tabs {
    display: flex;
    gap: 0.4rem;
    padding: 0 0.75rem 0;
    margin-bottom: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

    .rs-tabs .rs-tab {
        position: relative;
        top: 1px;
        padding: 0.55rem 1.35rem;
        border-radius: 12px 12px 0 0;
        cursor: pointer;
        outline: none;
        border: 1px solid rgba(148, 163, 184, 0.35);
        border-bottom: none;
        background: rgba(15, 23, 42, 0.7);
        color: rgba(229, 242, 255, 0.65);
        font-size: 0.9rem;
        font-weight: 600;
        text-decoration: none;
        transition: color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease, border-color 0.18s ease;
    }

        .rs-tabs .rs-tab:hover {
            color: #e5f2ff;
            background: radial-gradient(circle at 50% 0%, rgba(97, 228, 255, 0.16), rgba(15, 23, 42, 0.9));
            border-color: rgba(148, 163, 184, 0.65);
        }

        .rs-tabs .rs-tab.rs-tab--active {
            color: #ffffff;
            background: radial-gradient(circle at 50% 0%, rgba(97, 228, 255, 0.24), rgba(15, 23, 42, 0.95));
            box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.35), 0 10px 25px rgba(15, 23, 42, 0.8);
            border-color: rgba(148, 163, 184, 0.6);
            transform: translateY(1px);
        }

            .rs-tabs .rs-tab.rs-tab--active::after {
                content: "";
                position: absolute;
                left: 18%;
                right: 18%;
                bottom: -1px;
                height: 2px;
                border-radius: 999px;
                background: linear-gradient(90deg, #61e4ff, #38bdf8);
            }

.rs-tab-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    padding: 0 0.45rem;
    margin-left: 0.5rem;
    border-radius: 999px;
    font-size: 0.75rem;
    line-height: 1.2;
    background: rgba(97, 228, 255, 0.12);
    color: var(--rs-accent-cyan);
    border: 1px solid rgba(97, 228, 255, 0.35);
    box-shadow: 0 0 0.4rem rgba(97, 228, 255, 0.4);
    pointer-events: none;
}

.rs-tab:focus-visible {
    outline: 2px solid var(--rs-accent-cyan);
    outline-offset: 2px;
}

/* tab panels */
.rs-tab-panel {
    display: none;
}

    .rs-tab-panel.rs-tab-panel--active {
        display: block;
    }


.rs-template-parent-card {
    /* just a little separation from other cards */
    margin-bottom: 1rem;
}

.rs-template-child-pip {
    width: 4px;
    border-radius: 999px;
    margin-right: 0.5rem;
    background: rgba(148, 163, 184, 0.6);
}






/* =========================================================
   Job edit – global action bar
   ========================================================= */
.rs-job-footer {
    margin-top: 1.25rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(148, 163, 184, 0.3);
}

.rs-job-footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    padding: 0.75rem 1.25rem;
    border-radius: 16px;
    background: radial-gradient(circle at 0 0, rgba(97, 228, 255, 0.18), rgba(15, 23, 42, 0.96));
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.85);
}

.rs-job-footer-main {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

    .rs-job-footer-main .rs-pill-btn,
    .rs-job-footer-main .rs-pill-btn-danger {
        min-width: 160px;
    }

.rs-job-footer-meta {
    font-size: 0.8rem;
    opacity: 0.85;
}

/* Optional: make it “sticky” at the bottom of the viewport */
@media (min-width: 768px) {
    .rs-job-footer {
        position: sticky;
        bottom: 0;
        z-index: 30;
        background: linear-gradient( to top, rgba(5, 8, 22, 0.98), rgba(5, 8, 22, 0.0) );
        padding-bottom: 0.5rem;
    }
}

/* Unsaved changes indicator */
.rs-unsaved {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    font-weight: 500;
}

.rs-unsaved-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #22c55e; /* clean = green */
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.7);
}

.rs-unsaved-text {
    opacity: 0.85;
}

.rs-unsaved--dirty .rs-unsaved-dot {
    background: #f97316; /* dirty = amber */
    box-shadow: 0 0 6px rgba(249, 115, 22, 0.8);
}

.rs-unsaved--dirty .rs-unsaved-text {
    color: #fed7aa;
    opacity: 1;
}

.rs-job-footer-hint {
    margin-left: 0.75rem;
    font-size: 0.78rem;
    opacity: 0.8;
}



/* =====================================================================
   SPINNER
   ===================================================================== */

.rs-btn-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border-radius: 999px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: rgba(255,255,255,0.9);
    animation: rs-spin 0.6s linear infinite;
    margin-right: 0.5rem;
    vertical-align: text-bottom;
}

@keyframes rs-spin {
    to {
        transform: rotate(360deg);
    }
}

/* =====================================================================
   MOBILE HEADER / NAV (kept, de-nested)
   ===================================================================== */

.rs-header .navbar {
    background: radial-gradient(circle at 15% 0%, #141b2f 0, #050816 40%, #020617 80%);
}

@media (max-width: 575.98px) {
    .rs-header .navbar {
        padding-top: 0.35rem;
        padding-bottom: 0.35rem;
    }

    .rs-logo-img {
        height: 32px;
    }

    .rs-logo-text {
        margin-left: 0.5rem;
    }

    .rs-logo-name {
        font-size: 0.8rem;
        letter-spacing: 0.04em;
    }

    .rs-logo-tagline {
        font-size: 0.65rem;
        opacity: 0.85;
    }

    #mainNav .navbar-nav {
        width: 100%;
        margin-top: 0.75rem;
        align-items: stretch;
    }

        #mainNav .navbar-nav .nav-item {
            width: 100%;
            text-align: center;
        }

        #mainNav .navbar-nav .rs-nav-link {
            display: block;
            padding: 0.35rem 0;
        }

    #mainNav {
        width: 100%;
        margin-top: 0.5rem;
    }

    .cart-btn-div {
        width: 100%;
        margin-left: 0 !important;
        text-align: center;
    }

    .rs-nav-pill-portal,
    .rs-nav-pill-cart {
        display: flex;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        padding: 0.55rem 0.9rem;
        margin: 0 0 0.5rem 0;
        text-align: center;
    }

        .rs-nav-pill-portal .rs-nav-pill-dot {
            margin-right: 0;
        }

    .cart-count {
        min-width: 1.45rem;
        height: 1.45rem;
        line-height: 1.45rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 767.98px) {
    .rs-header {
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
    }

    .rs-main {
        padding-top: 0.75rem;
    }
}

/* =====================================================================
   RESPONSIVE TWEAKS
   ===================================================================== */

@media (max-width: 992px) {
    .rs-portal-wrapper {
        padding: 2rem 1.25rem 2.5rem;
    }

    .rs-portal-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
    }

        .rs-portal-header h1 {
            font-size: 1.6rem;
        }

    .rs-portal-side-card {
        margin-top: 1rem;
    }

    .rs-portal-grid .col-sm-9,
    .rs-portal-grid .col-sm-3 {
        width: 100%;
    }

    .rs-portal-hero {
        padding: 1.75rem 1.5rem;
        flex-direction: column;
    }

    .rs-portal-hero-media {
        align-items: flex-start;
        flex: 1 1 auto;
        min-width: 0;
    }

    .rs-org-actions {
        flex-direction: column;
    }

        .rs-org-actions .rs-pill-btn,
        .rs-org-actions .rs-pill-btn-ghost {
            width: 100%;
            text-align: center;
        }

    .rs-portal-guides-grid,
    .rs-portal-quick-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rs-portal-admin-row .rs-side-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .rs-auth-layout {
        grid-template-columns: minmax(0, 1fr);
        max-width: 640px;
    }

    .rs-auth-hero {
        order: -1;
        padding: 1.75rem 1.5rem;
    }

    .rs-auth-hero-frame {
        max-width: 100%;
    }

    .rs-auth-shell {
        align-items: flex-start;
        padding-top: 3rem;
    }

    .rs-auth-panel {
        padding: 2rem 1.75rem;
    }

    .rs-auth-panel-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .rs-portal-wrapper {
        padding: 1.75rem 1rem 2.25rem;
    }

    .rs-portal-header h1 {
        font-size: 1.4rem;
    }

    .rs-portal-header p {
        font-size: 0.9rem;
    }

    .rs-portal-card,
    .rs-portal-side-card,
    .rs-portal-guides-card {
        border-radius: 1.2rem;
        padding: 1.1rem 1.1rem 1.3rem;
    }

    .rs-panel {
        padding: 0.9rem 0.9rem 1.1rem;
    }

    .rs-side-grid {
        grid-template-columns: 1fr;
        row-gap: 10px;
    }

    .rs-pill-btn-sm {
        width: 100%;
    }

    .rs-file-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
    }

    .rs-file-header-col-right {
        text-align: left;
    }
}
