:root {
    --sam-green: #0f9f6e;
    --sam-green-deep: #0b7c57;
    --sam-sand: #f6f3eb;
    --sam-navy: #10263f;
    --sam-border: rgba(16, 38, 63, 0.08);
    --sam-text: #1c2a3a;
    --sam-muted: #5f6d7c;
    --sam-white: #ffffff;
}

body {
    font-family: 'Inter', sans-serif;
    background: #f5f7f6;
    color: var(--sam-text);
}

#kt_app_root {
    min-height: 100vh;
}

.landing-modern-shell {
    position: relative;
    overflow-x: hidden;
    background: linear-gradient(180deg, #f7faf8 0%, #f5f7f6 100%);
}

.landing-modern-header {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.78);
    border-bottom: 1px solid var(--sam-border);
}

.landing-modern-container,
.hero-grid,
.footer-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

.landing-modern-header .landing-modern-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 88px;
    gap: 20px;
}

.landing-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.landing-brand img {
    height: 42px;
    width: auto;
}

.landing-brand > div {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--sam-navy);
}

.brand-tag {
    font-size: 0.72rem;
    color: var(--sam-muted);
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.landing-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--sam-border);
}

.landing-nav a {
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 0.94rem;
    font-weight: 600;
    color: var(--sam-muted);
    text-decoration: none;
}

.landing-nav a:hover,
.landing-nav a.active {
    background: rgba(15, 159, 110, 0.08);
    color: var(--sam-green-deep);
}

.landing-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border-radius: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid transparent;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-light-outline {
    background: var(--sam-white);
    color: var(--sam-navy);
    border-color: var(--sam-border);
}

.btn-primary-solid {
    background: linear-gradient(135deg, var(--sam-green) 0%, var(--sam-green-deep) 100%);
    color: #fff;
    box-shadow: 0 14px 28px rgba(15, 159, 110, 0.18);
}

.hero-section {
    padding: 78px 0 52px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 38px;
}

.eyebrow {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(15, 159, 110, 0.08);
    border: 1px solid rgba(15, 159, 110, 0.12);
    color: var(--sam-green-deep);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-copy h1 {
    margin: 18px 0 18px;
    font-size: clamp(2.6rem, 4vw, 4.2rem);
    line-height: 1.05;
    letter-spacing: -0.06em;
    font-weight: 800;
    color: var(--sam-navy);
    max-width: 640px;
}

.hero-copy p {
    max-width: 560px;
    margin: 0 0 24px;
    line-height: 1.8;
    color: var(--sam-muted);
    font-size: 1.05rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 22px;
}

.hero-points {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    color: var(--sam-text);
    font-size: 0.92rem;
    font-weight: 600;
}

.hero-points li {
    position: relative;
    padding-left: 18px;
}

.hero-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--sam-green), #8ad5b3);
}

.info-card {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--sam-border);
    border-radius: 26px;
    padding: 28px 24px;
    box-shadow: 0 22px 54px rgba(16, 38, 63, 0.06);
}

.card-label {
    margin: 0 0 14px;
    color: var(--sam-green-deep);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.system-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.system-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--sam-border);
    border-radius: 16px;
    background: #f8faf9;
    color: var(--sam-text);
    line-height: 1.6;
    font-weight: 600;
}

.system-list span {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--sam-green), var(--sam-green-deep));
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
}

.features-section {
    padding: 22px 0 90px;
}

.section-header {
    margin-bottom: 28px;
}

.section-header span {
    display: block;
    margin-bottom: 10px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--sam-green-deep);
}

.section-header h2 {
    margin: 0;
    font-size: clamp(2rem, 2.5vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.05em;
    color: var(--sam-navy);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--sam-border);
    border-radius: 24px;
    padding: 26px 22px;
    box-shadow: 0 12px 28px rgba(16, 38, 63, 0.03);
}

.icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    margin-bottom: 18px;
    border-radius: 14px;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.icon-box.green {
    background: rgba(15, 159, 110, 0.12);
    color: var(--sam-green-deep);
}

.icon-box.gold {
    background: rgba(244, 201, 93, 0.14);
    color: #a37a00;
}

.icon-box.blue {
    background: rgba(81, 121, 255, 0.12);
    color: #214ed1;
}

.feature-card h3 {
    margin: 0 0 12px;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--sam-navy);
}

.feature-card p {
    margin: 0;
    line-height: 1.8;
    color: var(--sam-muted);
}

.landing-modern-footer {
    padding: 0 0 36px;
}

.footer-wrap {
    padding-top: 18px;
    border-top: 1px solid var(--sam-border);
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    color: var(--sam-muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.footer-brand img {
    height: 26px;
    width: auto;
    opacity: 0.9;
}

@media (max-width: 960px) {
    .landing-modern-header .landing-modern-container {
        flex-wrap: wrap;
        justify-content: center;
        padding-top: 18px;
        padding-bottom: 18px;
    }

    .hero-grid,
    .feature-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .landing-nav,
    .landing-actions {
        width: 100%;
        justify-content: center;
    }

    .landing-nav {
        flex-wrap: wrap;
    }

    .btn {
        width: 100%;
    }

    .hero-copy h1 {
        max-width: 100%;
    }
}

.vendor-registration-page {
    background: linear-gradient(180deg, #f4faf7 0%, #f7f8fa 100%);
    min-height: 100vh;
}

.vendor-registration-shell {
    position: relative;
    padding: 36px 0 60px;
    background:
        radial-gradient(circle at top left, rgba(15, 159, 110, 0.12), transparent 22%),
        linear-gradient(180deg, #f4faf7 0%, #f7f8fa 100%);
}

.vendor-registration-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 22px;
}

.vendor-registration-top a {
    display: inline-block;
    margin-bottom: 14px;
}

.vendor-registration-top img {
    height: 82px;
    width: auto;
}

.vendor-registration-intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.vendor-registration-intro .eyebrow {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(15, 159, 110, 0.08);
    border: 1px solid rgba(15, 159, 110, 0.12);
    color: var(--sam-green-deep);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.vendor-registration-intro h1 {
    margin: 0;
    font-size: clamp(2.1rem, 3vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.06em;
    color: var(--sam-navy);
}

.vendor-registration-card {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--sam-border);
    border-radius: 30px;
    box-shadow: 0 24px 64px rgba(16, 38, 63, 0.08);
}

.vendor-form {
    max-width: 100%;
}

.vendor-form h1,
.vendor-form h3,
.vendor-form h5 {
    color: var(--sam-navy);
}

.vendor-form .alert {
    border-radius: 18px;
    border: 1px solid rgba(15, 159, 110, 0.18) !important;
    background: linear-gradient(180deg, rgba(15, 159, 110, 0.04), rgba(255,255,255,0.9)) !important;
    box-shadow: none;
}

.vendor-form .alert-danger {
    background: #fff5f5 !important;
    border-color: rgba(220, 53, 69, 0.16) !important;
}

.vendor-form .form-control,
.vendor-form .select2-selection,
.vendor-form .form-select {
    border-radius: 14px !important;
    border: 1px solid rgba(16, 38, 63, 0.12) !important;
    background-color: #f9fafb !important;
    min-height: 48px !important;
    padding: 0.8rem 1rem !important;
    color: var(--sam-text) !important;
    box-shadow: none !important;
}

.vendor-form .form-control:focus,
.vendor-form .select2-selection:focus,
.vendor-form .form-select:focus {
    border-color: rgba(15, 159, 110, 0.5) !important;
    box-shadow: 0 0 0 4px rgba(15, 159, 110, 0.08) !important;
    background-color: #fff !important;
}

.vendor-form textarea.form-control {
    min-height: 90px;
}

.vendor-form .separator {
    border-color: rgba(16, 38, 63, 0.08) !important;
}

.vendor-form .section-header,
.vendor-form .required,
.vendor-form label {
    color: var(--sam-navy);
}

.vendor-form .btn {
    border-radius: 14px;
    min-height: 48px;
    padding: 0.8rem 1.4rem;
}

.vendor-form .btn-primary {
    background: linear-gradient(135deg, var(--sam-green) 0%, var(--sam-green-deep) 100%);
    border: none;
    box-shadow: 0 14px 28px rgba(15, 159, 110, 0.18);
}

.vendor-form .btn-light {
    background: #fff;
    border-color: rgba(16, 38, 63, 0.1);
    color: var(--sam-navy);
}

.vendor-form .card {
    border-radius: 18px !important;
    border: 1px solid rgba(16, 38, 63, 0.08) !important;
    box-shadow: none;
}

.vendor-form .card-body {
    background: rgba(246, 250, 249, 0.9);
}

.vendor-form .form-check-input {
    width: 18px;
    height: 18px;
    border-radius: 6px;
    border-color: rgba(16, 38, 63, 0.18);
}

.vendor-form .form-check-input:checked {
    background-color: var(--sam-green);
    border-color: var(--sam-green);
}

@media (max-width: 640px) {
    .vendor-registration-shell {
        padding-top: 24px;
    }

    .vendor-registration-card {
        border-radius: 20px;
        padding: 1.25rem !important;
    }

    .vendor-registration-intro h1 {
        font-size: 2rem;
    }
}

.sam-auth-body {
    margin: 0;
    background: linear-gradient(180deg, #f6faf8 0%, #f5f7fa 100%);
    font-family: 'Inter', sans-serif;
}

.sam-auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
    background:
        radial-gradient(circle at top left, rgba(15, 159, 110, 0.12), transparent 20%),
        radial-gradient(circle at bottom right, rgba(15, 159, 110, 0.08), transparent 25%),
        linear-gradient(180deg, #f4faf7 0%, #f5f7fa 100%);
}

.sam-auth-shell {
    width: min(1100px, 100%);
}

.sam-auth-panel {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    align-items: stretch;
    gap: 0;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(16, 38, 63, 0.08);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 28px 80px rgba(16, 38, 63, 0.08);
    backdrop-filter: blur(8px);
}

.sam-auth-intro {
    padding: 52px 42px;
    background: linear-gradient(180deg, #f3faf6 0%, #edf4f2 100%);
    border-right: 1px solid rgba(16, 38, 63, 0.06);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sam-auth-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 30px;
}

.sam-auth-brand img {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    box-shadow: 0 12px 24px rgba(15, 159, 110, 0.12);
}

.sam-auth-brand .brand-name {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--sam-navy);
}

.sam-auth-brand .brand-tag {
    display: block;
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--sam-muted);
}

.sam-auth-intro .eyebrow {
    display: inline-block;
    width: fit-content;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(15, 159, 110, 0.09);
    border: 1px solid rgba(15, 159, 110, 0.12);
    color: var(--sam-green-deep);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.sam-auth-intro h1 {
    margin: 0 0 14px;
    font-size: clamp(2.1rem, 2.7vw, 3.2rem);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.06em;
    color: var(--sam-navy);
}

.sam-auth-intro p {
    margin: 0;
    max-width: 410px;
    color: var(--sam-muted);
    line-height: 1.8;
    font-size: 1rem;
}

.sam-auth-card {
    background: #ffffff;
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sam-auth-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 24px;
}

.sam-auth-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(15, 159, 110, 0.08);
    color: var(--sam-green-deep);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sam-auth-home-link {
    color: var(--sam-navy);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
}

.sam-auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.sam-auth-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}

.sam-auth-form-group label {
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--sam-navy);
}

.sam-auth-form-group input {
    width: 100%;
    padding: 0.92rem 1rem;
    border: 1px solid rgba(16, 38, 63, 0.12);
    border-radius: 14px;
    background: #f9fbfa;
    color: var(--sam-text);
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.sam-auth-form-group input:focus {
    outline: none;
    border-color: rgba(15, 159, 110, 0.48);
    box-shadow: 0 0 0 4px rgba(15, 159, 110, 0.08);
    background: #fff;
}

.password-wrap input {
    padding-right: 46px;
}

.password-toggle {
    position: absolute;
    right: 14px;
    bottom: 14px;
    cursor: pointer;
    color: var(--sam-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.sam-auth-submit {
    margin-top: 8px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--sam-green) 0%, var(--sam-green-deep) 100%);
    color: #fff;
    padding: 0.95rem 1.2rem;
    font-size: 1rem;
    font-weight: 700;
    box-shadow: 0 18px 28px rgba(15, 159, 110, 0.18);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sam-auth-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 30px rgba(15, 159, 110, 0.22);
}

.sam-auth-form .alert {
    border-radius: 14px;
    border: 1px solid rgba(15, 159, 110, 0.14);
    background: rgba(15, 159, 110, 0.04);
    color: var(--sam-text);
    padding: 12px 14px;
}

.sam-auth-form .alert ul {
    margin: 0;
    padding-left: 18px;
}

.sam-summary-page {
    min-height: 100vh;
    padding: 52px 20px;
    background:
        radial-gradient(circle at top left, rgba(15, 159, 110, 0.12), transparent 18%),
        radial-gradient(circle at bottom right, rgba(15, 159, 110, 0.08), transparent 25%),
        linear-gradient(180deg, #f5faf7 0%, #f4f7f8 100%);
}

.sam-summary-shell {
    max-width: 1200px;
    margin: 0 auto;
}

.sam-summary-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.sam-summary-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.sam-summary-brand img {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    box-shadow: 0 10px 20px rgba(15, 159, 110, 0.12);
}

.sam-summary-brand .brand-name {
    display: block;
    color: var(--sam-navy);
    font-size: 0.96rem;
    font-weight: 700;
}

.sam-summary-brand .brand-tag {
    display: block;
    color: var(--sam-muted);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.sam-summary-status {
    display: flex;
    align-items: center;
}

.sam-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 14px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sam-status-badge.success {
    background: rgba(15, 159, 110, 0.1);
    color: #0b7c57;
}

.sam-status-badge.danger {
    background: rgba(220, 53, 69, 0.1);
    color: #b42318;
}

.sam-status-badge.warning {
    background: rgba(247, 190, 68, 0.18);
    color: #8a6400;
}

.sam-summary-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(16, 38, 63, 0.08);
    border-radius: 28px;
    box-shadow: 0 24px 60px rgba(16, 38, 63, 0.08);
    overflow: hidden;
}

.sam-summary-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 28px 30px 18px;
    border-bottom: 1px solid rgba(16, 38, 63, 0.06);
    background: linear-gradient(180deg, rgba(15, 159, 110, 0.04), rgba(15, 159, 110, 0.01));
}

.sam-summary-kicker {
    margin: 0 0 6px;
    color: var(--sam-green-deep);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 700;
}

.sam-summary-topbar h2 {
    margin: 0;
    color: var(--sam-navy);
    font-size: clamp(1.8rem, 2.5vw, 2.6rem);
    letter-spacing: -0.05em;
    font-weight: 800;
}

.sam-reference-box {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    padding: 12px 16px;
    border-radius: 16px;
    background: #f8faf9;
    border: 1px solid rgba(16, 38, 63, 0.06);
}

.sam-reference-box span {
    color: var(--sam-muted);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sam-reference-box strong {
    color: var(--sam-navy);
    font-size: 1.1rem;
}

.sam-summary-section {
    padding: 28px 30px 0;
}

.sam-summary-section + .sam-summary-section {
    border-top: 1px solid rgba(16, 38, 63, 0.06);
    margin-top: 12px;
    padding-top: 28px;
}

.sam-summary-section h3 {
    margin: 0 0 18px;
    color: var(--sam-navy);
    font-size: 1.1rem;
    font-weight: 800;
}

.sam-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sam-chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(15, 159, 110, 0.08);
    border: 1px solid rgba(15, 159, 110, 0.14);
    color: var(--sam-green-deep);
    font-size: 0.8rem;
    font-weight: 700;
}

.sam-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 24px;
}

.sam-summary-grid-triple {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sam-summary-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 18px;
    border: 1px solid rgba(16, 38, 63, 0.06);
    border-radius: 16px;
    background: #fbfdfc;
}

.sam-summary-field span {
    color: var(--sam-muted);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
}

.sam-summary-field strong {
    color: var(--sam-navy);
    font-size: 0.96rem;
    line-height: 1.6;
    font-weight: 600;
}

.sam-table-wrap {
    overflow-x: auto;
    border: 1px solid rgba(16, 38, 63, 0.06);
    border-radius: 16px;
}

.sam-summary-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.sam-summary-table thead th {
    background: #f5faf7;
    color: var(--sam-navy);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(16, 38, 63, 0.06);
}

.sam-summary-table tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(16, 38, 63, 0.06);
    color: var(--sam-text);
    font-size: 0.92rem;
    vertical-align: top;
}

.sam-summary-table tbody tr:last-child td {
    border-bottom: none;
}

.sam-link-button,
.sam-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    padding: 11px 18px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sam-link-button {
    background: rgba(15, 159, 110, 0.08);
    color: var(--sam-green-deep);
    border: 1px solid rgba(15, 159, 110, 0.14);
}

.sam-link-button:hover,
.sam-btn:hover {
    transform: translateY(-1px);
}

.sam-summary-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 30px 30px;
}

.sam-note {
    color: var(--sam-muted);
    font-size: 0.88rem;
}

.sam-action-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sam-btn {
    border: 1px solid transparent;
    cursor: pointer;
}

.sam-btn-primary {
    background: linear-gradient(135deg, var(--sam-green) 0%, var(--sam-green-deep) 100%);
    color: #fff;
    box-shadow: 0 14px 26px rgba(15, 159, 110, 0.18);
}

.sam-btn-secondary {
    background: #fff;
    border-color: rgba(16, 38, 63, 0.1);
    color: var(--sam-navy);
}

.sam-empty-text,
.sam-empty-cell {
    color: var(--sam-muted);
    font-style: italic;
}

:root {
    --sam-dashboard-bg: #eef5f1;
    --sam-dashboard-panel: rgba(255, 255, 255, 0.9);
    --sam-dashboard-card: #ffffff;
    --sam-dashboard-sidebar: linear-gradient(180deg, #0f1d1b 0%, #132b29 100%);
    --sam-dashboard-sidebar-border: rgba(255, 255, 255, 0.06);
    --sam-dashboard-sidebar-text: rgba(230, 243, 239, 0.82);
    --sam-dashboard-sidebar-text-strong: #ffffff;
    --sam-dashboard-sidebar-item: rgba(125, 215, 177, 0.08);
    --sam-dashboard-sidebar-item-border: rgba(125, 215, 177, 0.18);
    --sam-dashboard-header: rgba(255, 255, 255, 0.9);
    --sam-dashboard-header-shadow: rgba(15, 29, 27, 0.06);
    --sam-dashboard-text: #162b2a;
    --sam-dashboard-muted: #5f726f;
    --sam-dashboard-accent: #1ca778;
    --sam-dashboard-accent-2: #0d6d58;
    --sam-dashboard-border: rgba(18, 43, 40, 0.08);
}

html[data-bs-theme="dark"] {
    --sam-dashboard-bg: #071713;
    --sam-dashboard-panel: rgba(13, 24, 22, 0.9);
    --sam-dashboard-card: #0f1d1c;
    --sam-dashboard-sidebar: linear-gradient(180deg, #0d1716 0%, #101f1d 100%);
    --sam-dashboard-sidebar-border: rgba(255, 255, 255, 0.04);
    --sam-dashboard-sidebar-text: rgba(201, 220, 214, 0.75);
    --sam-dashboard-sidebar-text-strong: #f4f7f6;
    --sam-dashboard-sidebar-item: rgba(115, 209, 177, 0.12);
    --sam-dashboard-sidebar-item-border: rgba(115, 209, 177, 0.22);
    --sam-dashboard-header: rgba(15, 22, 21, 0.88);
    --sam-dashboard-header-shadow: rgba(0, 0, 0, 0.3);
    --sam-dashboard-text: #edf7f4;
    --sam-dashboard-muted: #9fb3af;
    --sam-dashboard-accent: #3ad1a0;
    --sam-dashboard-accent-2: #84e3c3;
    --sam-dashboard-border: rgba(170, 203, 196, 0.08);
}

body.app-default {
    background: var(--sam-dashboard-bg);
    color: var(--sam-dashboard-text);
}

#kt_app_header {
    background: var(--sam-dashboard-header);
    border-bottom: 1px solid var(--sam-dashboard-border);
    backdrop-filter: blur(12px);
    box-shadow: 0 12px 28px var(--sam-dashboard-header-shadow);
}

#kt_app_header .btn,
#kt_app_header .app-navbar-item,
#kt_app_header .app-sidebar-logo,
#kt_app_header .menu-title,
#kt_app_header .menu-item {
    color: var(--sam-dashboard-text);
}

#kt_app_sidebar {
    background: var(--sam-dashboard-sidebar);
    border-right: 1px solid var(--sam-dashboard-sidebar-border);
    box-shadow: 18px 0 36px rgba(0, 0, 0, 0.12);
}

#kt_app_sidebar .app-sidebar-wrapper {
    padding-top: 16px;
}

#kt_app_sidebar .app-sidebar-menu-primary {
    padding: 10px 12px 0;
}

#kt_app_sidebar .app-sidebar-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 8px 14px 18px;
    padding: 12px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--sam-dashboard-sidebar-border);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

#kt_app_sidebar .app-sidebar-logo img {
    height: 34px;
    width: auto;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.18));
}

#kt_app_sidebar .menu-item .menu-link {
    border-radius: 14px;
    margin-bottom: 7px;
    padding: 12px 13px;
    color: #eafaf4;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.2s ease;
    font-weight: 600;
    letter-spacing: 0.01em;
}

#kt_app_sidebar .menu-item .menu-link .menu-icon {
    color: #8fe7c2;
}

#kt_app_sidebar .menu-item .menu-link:hover,
#kt_app_sidebar .menu-item .menu-link.active,
#kt_app_sidebar .menu-item .menu-link[aria-expanded="true"] {
    background: linear-gradient(135deg, rgba(61, 192, 144, 0.18), rgba(15, 159, 110, 0.12));
    border-color: rgba(143, 231, 194, 0.24);
    box-shadow: inset 0 0 0 1px rgba(143, 231, 194, 0.12), 0 10px 20px rgba(0, 0, 0, 0.1);
    color: #ffffff;
}

#kt_app_sidebar .menu-sub .menu-item .menu-link {
    padding-left: 18px;
    margin-left: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.05);
    color: #edf9f4;
}

#kt_app_sidebar .menu-sub .menu-item .menu-link.active {
    background: rgba(61, 192, 144, 0.13);
    border-color: rgba(143, 231, 194, 0.22);
    color: #ffffff;
}

#kt_app_sidebar .menu-title,
#kt_app_sidebar .menu-bullet .bullet {
    font-weight: 700;
}

#kt_app_sidebar .menu-bullet .bullet {
    background-color: #8fe7c2;
    width: 8px;
    height: 8px;
}

html[data-bs-theme="dark"] #kt_app_sidebar .menu-item .menu-link {
    color: #ecfdf5;
    background: rgba(255, 255, 255, 0.015);
    border-color: rgba(255, 255, 255, 0.04);
}

html[data-bs-theme="dark"] #kt_app_sidebar .menu-sub .menu-item .menu-link {
    color: #eefaf5;
}

.sam-admin-home {
    padding-top: 24px;
}

.sam-admin-home-container {
    max-width: 1480px;
}

.sam-admin-home .card {
    background: var(--sam-dashboard-panel) !important;
    border: 1px solid var(--sam-dashboard-border) !important;
    border-radius: 22px !important;
    box-shadow: 0 18px 38px rgba(4, 22, 18, 0.08) !important;
}

.sam-admin-home .card-header {
    padding: 22px 24px 10px !important;
    border-bottom: none !important;
}

.sam-admin-home .card-title {
    color: var(--sam-dashboard-text) !important;
    font-weight: 800 !important;
    letter-spacing: -0.04em;
}

.sam-admin-home .card-body {
    padding: 18px 24px 26px !important;
}

.sam-admin-home .d-flex.border.border-gray-300.border-dashed.rounded {
    border: 1px solid var(--sam-dashboard-border) !important;
    border-radius: 18px !important;
    background: linear-gradient(180deg, var(--sam-dashboard-card) 0%, rgba(255, 255, 255, 0.02) 100%);
    box-shadow: 0 10px 18px rgba(4, 22, 18, 0.03);
    padding: 18px 20px !important;
}

.sam-admin-home .symbol-label {
    background: linear-gradient(135deg, rgba(58, 209, 160, 0.18), rgba(16, 75, 63, 0.1)) !important;
    border-radius: 14px !important;
    border: 1px solid rgba(58, 209, 160, 0.18);
}

.sam-admin-home .text-gray-900.fw-bolder.fs-2x {
    color: var(--sam-dashboard-text) !important;
    font-size: 2rem !important;
}

.sam-admin-home .text-gray-800.fs-6.fw-bold,
.sam-admin-home .text-gray-800.text-hover-primary.fs-6.fw-bold {
    color: var(--sam-dashboard-text) !important;
    font-weight: 700 !important;
}

.sam-admin-home .text-gray-500.fw-bold.d-block.fs-7 {
    color: var(--sam-dashboard-muted) !important;
}

.sam-admin-home .btn-primary {
    background: linear-gradient(135deg, var(--sam-dashboard-accent) 0%, var(--sam-dashboard-accent-2) 100%) !important;
    border: none !important;
    box-shadow: 0 14px 24px rgba(58, 209, 160, 0.18) !important;
}

.sam-admin-home canvas {
    border-radius: 16px;
}

.sam-admin-home {
    padding-top: 22px;
}

.sam-admin-home-container {
    max-width: 1480px;
}

.sam-admin-home .card {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(17, 33, 30, 0.06) !important;
    border-radius: 20px !important;
    box-shadow: 0 18px 40px rgba(17, 31, 28, 0.05) !important;
}

.sam-admin-home .card-header {
    padding: 22px 24px 10px !important;
    border-bottom: none !important;
}

.sam-admin-home .card-title {
    color: #12302d !important;
    font-weight: 800 !important;
    letter-spacing: -0.04em;
}

.sam-admin-home .card-body {
    padding: 18px 24px 26px !important;
}

.sam-admin-home .d-flex.border.border-gray-300.border-dashed.rounded {
    border: 1px solid rgba(37, 101, 82, 0.14) !important;
    border-radius: 16px !important;
    background: linear-gradient(180deg, #ffffff 0%, #f7faf8 100%);
    box-shadow: 0 10px 18px rgba(17, 31, 28, 0.02);
    padding: 18px 20px !important;
}

.sam-admin-home .symbol-label {
    background: linear-gradient(135deg, rgba(102, 187, 146, 0.14), rgba(23, 112, 82, 0.08)) !important;
    border-radius: 14px !important;
    border: 1px solid rgba(23, 112, 82, 0.12);
}

.sam-admin-home .text-gray-900.fw-bolder.fs-2x {
    color: #12302d !important;
    font-size: 2rem !important;
}

.sam-admin-home .text-gray-800.fs-6.fw-bold,
.sam-admin-home .text-gray-800.text-hover-primary.fs-6.fw-bold {
    color: #193e39 !important;
    font-weight: 700 !important;
}

.sam-admin-home .text-gray-500.fw-bold.d-block.fs-7 {
    color: rgba(18, 48, 45, 0.68) !important;
}

.sam-admin-home .btn-primary {
    background: linear-gradient(135deg, #1da778 0%, #0d6d58 100%) !important;
    border: none !important;
    box-shadow: 0 14px 22px rgba(23, 112, 82, 0.18) !important;
}

.sam-admin-home canvas {
    border-radius: 16px;
}

@media (max-width: 900px) {
    .sam-summary-topbar,
    .sam-summary-footer,
    .sam-summary-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .sam-summary-grid,
    .sam-summary-grid-triple {
        grid-template-columns: 1fr;
    }

    .sam-reference-box {
        align-items: flex-start;
    }
}

@media (max-width: 576px) {
    .sam-summary-page {
        padding: 24px 14px;
    }

    .sam-summary-topbar,
    .sam-summary-section,
    .sam-summary-footer {
        padding-left: 18px;
        padding-right: 18px;
    }

    .sam-summary-card {
        border-radius: 20px;
    }

    .sam-action-group {
        width: 100%;
        flex-direction: column;
    }

    .sam-btn,
    .sam-link-button {
        width: 100%;
    }
}

@media (max-width: 900px) {
    .sam-auth-panel {
        grid-template-columns: 1fr;
    }

    .sam-auth-intro {
        padding: 0;
    }
}

@media (max-width: 576px) {
    .sam-auth-panel {
        padding: 18px;
        border-radius: 20px;
    }

    .sam-auth-card {
        padding: 18px 16px;
    }

    .sam-auth-card-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Authenticated portal shell and dashboards */
:root {
    --admin-shell-green: #148661;
    --admin-shell-green-dark: #0a4d3f;
    --admin-shell-ink: #18332d;
    --admin-shell-muted: #71827d;
    --admin-shell-line: #e4ece8;
    --admin-shell-surface: rgba(255, 255, 255, .94);
}

body.app-default {
    background-color: #f2f7f4;
}

.admin-sidebar {
    background: radial-gradient(circle at 20% 0%, rgba(73, 196, 148, .16), transparent 28%), linear-gradient(180deg, #0d2923 0%, #0a201c 100%) !important;
    border-right: 1px solid rgba(141, 226, 190, .1) !important;
    box-shadow: 16px 0 42px rgba(8, 38, 31, .14) !important;
}

.admin-sidebar .app-sidebar-wrapper {
    padding-top: 12px !important;
}

.admin-sidebar-intro {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 6px 10px 18px;
    padding: 15px;
    color: #fff;
    background: rgba(255, 255, 255, .055);
    border: 1px solid rgba(157, 229, 200, .12);
    border-radius: 16px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}

.admin-sidebar-intro__icon {
    display: grid;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    place-items: center;
    color: #8ee7c2;
    background: rgba(102, 219, 172, .12);
    border-radius: 11px;
}

.admin-sidebar-intro__icon i { color: inherit; font-size: 20px; }
.admin-sidebar-intro__copy { min-width: 0; line-height: 1.25; }
.admin-sidebar-intro__copy strong { display: block; overflow: hidden; color: #fff; font-size: 13px; font-weight: 800; letter-spacing: -.01em; text-overflow: ellipsis; white-space: nowrap; }
.admin-sidebar-intro__copy small { display: block; margin-top: 4px; color: #e7f6f0; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

.admin-sidebar #kt_app_sidebar_wrapper {
    margin-inline: 7px !important;
}

.admin-sidebar .app-sidebar-menu-primary {
    padding: 0 6px 24px !important;
}

.admin-sidebar .menu-item > .menu-link {
    min-height: 46px;
    margin-bottom: 5px !important;
    padding: 10px 12px !important;
    color: #fff !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    border-radius: 12px !important;
    box-shadow: none !important;
}

.admin-sidebar .menu-item > .menu-link .menu-icon {
    width: 34px;
    color: #78d7b0 !important;
}

.admin-sidebar .menu-item > .menu-link .menu-icon i { color: inherit; }
.admin-sidebar .menu-item > .menu-link .menu-title { color: #fff !important; font-size: 13px; font-weight: 700 !important; }
.admin-sidebar .menu-item > .menu-link .menu-arrow::after { color: #fff !important; border-color: #fff !important; opacity: .85; }

.admin-sidebar .menu-item > .menu-link:hover,
.admin-sidebar .menu-item > .menu-link[aria-expanded="true"],
.admin-sidebar .menu-item:has(.menu-sub .menu-link.active) > .menu-link {
    color: #fff !important;
    background: rgba(119, 216, 176, .075) !important;
    border-color: rgba(143, 231, 194, .1) !important;
}

.admin-sidebar .menu-sub {
    margin: 2px 0 8px 17px;
    padding-left: 10px;
    border-left: 1px solid rgba(143, 231, 194, .12);
}

.admin-sidebar .menu-sub .menu-item > .menu-link {
    min-height: 38px;
    margin: 2px 0 !important;
    padding: 8px 11px !important;
    color: #f1faf6 !important;
    background: transparent !important;
    border-radius: 10px !important;
}

.admin-sidebar .menu-sub .menu-item > .menu-link .menu-bullet { width: 18px; }
.admin-sidebar .menu-sub .menu-item > .menu-link .menu-title { color: #f1faf6 !important; }
.admin-sidebar .menu-sub .menu-item > .menu-link .bullet { width: 5px !important; height: 5px !important; background: rgba(143, 231, 194, .48) !important; }

.admin-sidebar .menu-sub .menu-item > .menu-link:hover,
.admin-sidebar .menu-sub .menu-item > .menu-link.active {
    color: #fff !important;
    background: linear-gradient(90deg, rgba(55, 186, 135, .22), rgba(55, 186, 135, .08)) !important;
    border-color: rgba(143, 231, 194, .14) !important;
}

.admin-sidebar .menu-sub .menu-item > .menu-link.active .bullet {
    background: #83e1ba !important;
    box-shadow: 0 0 0 4px rgba(131, 225, 186, .1);
}

.admin-topbar {
    background: var(--admin-shell-surface) !important;
    border-bottom: 1px solid var(--admin-shell-line) !important;
    backdrop-filter: blur(18px);
    box-shadow: 0 8px 28px rgba(31, 71, 60, .055) !important;
}

.admin-topbar > .d-flex.flex-stack {
    padding-right: 8px;
}

.admin-topbar .app-header-logo {
    min-width: 250px;
}

.admin-topbar .app-sidebar-toggle,
.admin-topbar #kt_app_sidebar_mobile_toggle,
.admin-topbar .btn-custom {
    color: #63756f !important;
    background: #f3f7f5 !important;
    border: 1px solid #e4ece8 !important;
    border-radius: 11px !important;
}

.admin-topbar .app-sidebar-toggle:hover,
.admin-topbar #kt_app_sidebar_mobile_toggle:hover,
.admin-topbar .btn-custom:hover {
    color: var(--admin-shell-green) !important;
    background: #eaf7f1 !important;
    border-color: #cce9dc !important;
}

.admin-topbar .admin-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
}

.admin-topbar .admin-brand img {
    width: auto;
    max-width: 92px;
    height: 26px !important;
    object-fit: contain;
}

.admin-brand__divider { width: 1px; height: 25px; background: #dde7e2; }
.admin-brand__copy { display: flex; flex-direction: column; line-height: 1.15; }
.admin-brand__copy strong { color: var(--admin-shell-ink); font-size: 12px; font-weight: 800; }
.admin-brand__copy small { margin-top: 3px; color: var(--admin-shell-muted); font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

.admin-user-context {
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 6px 12px 6px 7px;
    background: #f4f8f6;
    border: 1px solid var(--admin-shell-line);
    border-radius: 13px;
}

.admin-user-context__icon {
    display: grid;
    width: 31px;
    height: 31px;
    place-items: center;
    color: var(--admin-shell-green);
    background: #e5f5ed;
    border-radius: 9px;
}

.admin-user-context__icon i { color: inherit; font-size: 17px; }
.admin-user-context__copy { min-width: 0; line-height: 1.15; }
.admin-user-context__copy small { display: block; color: var(--admin-shell-muted); font-size: 9px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.admin-user-context__copy strong { display: block; overflow: hidden; max-width: 170px; margin-top: 3px; color: var(--admin-shell-ink); font-size: 12px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }

.admin-topbar #kt_header_user_menu_toggle .symbol {
    padding: 3px;
    background: #e3f3eb;
    border: 1px solid #cde7dc;
    border-radius: 13px !important;
}

.admin-topbar #kt_header_user_menu_toggle .symbol img { border-radius: 10px !important; }
.admin-topbar .badge-danger { background-color: #e14f61 !important; box-shadow: 0 0 0 3px #fff; }
.admin-notifications-head { background: linear-gradient(135deg, #0a5545, #158863); }

.provider-approval-levels {
    min-width: 0;
    padding-left: 14px;
}

.provider-approval-card {
    color: var(--admin-shell-ink);
    background: #f4f9f6;
    border: 1px solid #dcebe4;
    border-radius: 12px;
    box-shadow: 0 5px 16px rgba(31, 71, 60, .04);
}

.provider-approval-card .ki-user-tick { color: var(--admin-shell-green) !important; }
.provider-approval-card__range { color: var(--admin-shell-ink); font-size: 12px !important; }
.provider-approval-card__label { margin-top: 3px; color: var(--admin-shell-muted); font-size: 9px !important; font-weight: 800 !important; letter-spacing: .06em; text-transform: uppercase; }

.vendor-topbar #kt_header_search {
    padding-left: 14px;
}

.vendor-topbar .select2-container {
    min-width: 250px;
}

.vendor-topbar .select2-container--bootstrap5 .select2-selection,
.vendor-topbar .select2-container--default .select2-selection--single {
    min-height: 42px;
    background: #f4f8f6;
    border: 1px solid var(--admin-shell-line);
    border-radius: 12px;
}

.vendor-topbar .select2-container--default .select2-selection--single .select2-selection__rendered {
    padding-left: 14px;
    color: var(--admin-shell-ink);
    font-size: 12px;
    font-weight: 700;
    line-height: 40px;
}

.impersonation-pill {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 7px 9px 7px 8px;
    color: #fff;
    background: linear-gradient(115deg, #6d28d9 0%, #c026d3 42%, #f43f5e 72%, #f97316 100%);
    background-size: 220% 220%;
    border: 1px solid rgba(255, 255, 255, .38);
    border-radius: 15px;
    box-shadow: 0 10px 26px rgba(192, 38, 211, .26), 0 0 0 3px rgba(244, 63, 94, .08);
    animation: impersonation-heartbeat 1.55s ease-in-out infinite, impersonation-gradient 5s ease infinite;
    transition: filter .2s ease, transform .2s ease, box-shadow .2s ease;
}

.impersonation-pill::before {
    content: '';
    position: absolute;
    z-index: -1;
    top: -60%;
    left: -45%;
    width: 34%;
    height: 220%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .42), transparent);
    transform: rotate(20deg);
    animation: impersonation-shimmer 2.4s ease-in-out infinite;
}

.impersonation-pill:hover {
    color: #fff;
    filter: saturate(1.15) brightness(1.06);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 14px 34px rgba(192, 38, 211, .34), 0 0 0 4px rgba(244, 63, 94, .12);
}

.impersonation-pill__status {
    display: grid;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    place-items: center;
    color: #fff;
    background: rgba(255, 255, 255, .2);
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 10px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22);
}

.impersonation-pill__status i { color: inherit; font-size: 18px; animation: impersonation-icon-beat 1.55s ease-in-out infinite; }
.impersonation-pill__copy { flex-direction: column; min-width: 0; line-height: 1.1; }
.impersonation-pill__copy small { color: rgba(255, 255, 255, .8); font-size: 9px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.impersonation-pill__copy strong { overflow: hidden; max-width: 150px; margin-top: 3px; color: inherit; font-size: 12px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.impersonation-pill__exit { display: grid; width: 29px; height: 29px; place-items: center; color: #fff; background: rgba(37, 13, 52, .22); border: 1px solid rgba(255, 255, 255, .16); border-radius: 9px; }

@keyframes impersonation-heartbeat {
    0%, 34%, 100% { transform: scale(1); }
    10% { transform: scale(1.055); }
    18% { transform: scale(.985); }
    26% { transform: scale(1.035); }
}

@keyframes impersonation-icon-beat {
    0%, 34%, 100% { transform: scale(1); }
    10%, 26% { transform: scale(1.22); }
    18% { transform: scale(.92); }
}

@keyframes impersonation-gradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes impersonation-shimmer {
    0%, 25% { left: -45%; opacity: 0; }
    40% { opacity: 1; }
    65%, 100% { left: 125%; opacity: 0; }
}

html[data-bs-theme="dark"] {
    --admin-shell-ink: #edf8f4;
    --admin-shell-muted: #9bb0aa;
    --admin-shell-line: #29443c;
    --admin-shell-surface: rgba(20, 37, 32, .95);
}

html[data-bs-theme="dark"] body.app-default { background-color: #0d1d19; }
html[data-bs-theme="dark"] .admin-topbar .app-sidebar-toggle,
html[data-bs-theme="dark"] .admin-topbar #kt_app_sidebar_mobile_toggle,
html[data-bs-theme="dark"] .admin-topbar .btn-custom,
html[data-bs-theme="dark"] .admin-user-context { background: #172d27 !important; }
html[data-bs-theme="dark"] .admin-user-context__icon { background: #1a3b31; }
html[data-bs-theme="dark"] .admin-brand__divider { background: #315048; }
html[data-bs-theme="dark"] .admin-topbar .admin-brand .theme-light-show { display: inline-block !important; }
html[data-bs-theme="dark"] .provider-approval-card { background: #172d27; border-color: #29483f; }
html[data-bs-theme="dark"] .impersonation-pill { color: #fff; border-color: rgba(255, 255, 255, .3); }

@media (prefers-reduced-motion: reduce) {
    .impersonation-pill,
    .impersonation-pill::before,
    .impersonation-pill__status i { animation: none; }
}

body[data-kt-app-sidebar-minimize="on"] .admin-sidebar-intro {
    justify-content: center;
    margin-inline: 4px;
    padding-inline: 6px;
}

body[data-kt-app-sidebar-minimize="on"] .admin-sidebar-intro__copy { display: none; }

@media (max-width: 991.98px) {
    .admin-topbar .app-header-logo { min-width: auto; }
    .admin-topbar .admin-brand__divider,
    .admin-topbar .admin-brand__copy { display: none; }
    .admin-sidebar-intro { margin-top: 12px; }
    .provider-approval-levels { display: none !important; }
}

@media (max-width: 575.98px) {
    .admin-topbar .admin-brand img { max-width: 74px; height: 22px !important; }
    .admin-topbar .app-navbar-item { margin-left: 6px !important; }
    .admin-topbar .app-navbar-item.me-lg-6 { margin-right: 4px !important; }
}

/* Admin dashboard */
.sam-admin-home {
    --dashboard-ink: #17332d;
    --dashboard-muted: #6d7f7a;
    --dashboard-green: #148661;
    --dashboard-green-dark: #0b5f4b;
    --dashboard-mint: #e9f7f1;
    --dashboard-line: #e7eeeb;
    --dashboard-surface: #ffffff;
    padding: 28px 0 40px;
}

.sam-admin-home-container { max-width: 1500px; }

.dashboard-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    min-height: 210px;
    margin-bottom: 24px;
    padding: 34px 38px;
    color: #fff;
    background: radial-gradient(circle at 86% 15%, rgba(132, 235, 194, .28), transparent 28%), linear-gradient(135deg, #0a5545 0%, #11775b 58%, #17956c 100%);
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(12, 91, 70, .18);
}

.dashboard-hero::after {
    content: '';
    position: absolute;
    right: -55px;
    bottom: -105px;
    width: 270px;
    height: 270px;
    border: 42px solid rgba(255, 255, 255, .07);
    border-radius: 50%;
}

.dashboard-hero__content, .dashboard-hero__actions { position: relative; z-index: 1; }
.dashboard-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; color: #a9efd2; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.dashboard-eyebrow::before { content: ''; width: 7px; height: 7px; background: #7ce2bb; border-radius: 50%; box-shadow: 0 0 0 5px rgba(124, 226, 187, .12); }
.dashboard-hero h1 { margin: 0 0 10px; color: #fff; font-size: clamp(28px, 3vw, 42px); font-weight: 800; letter-spacing: -.045em; }
.dashboard-hero p { max-width: 680px; margin: 0; color: rgba(255, 255, 255, .76); font-size: 15px; line-height: 1.7; }
.dashboard-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.dashboard-hero .btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding-inline: 18px; border-radius: 12px; font-weight: 700; }
.dashboard-hero .btn-light { color: var(--dashboard-green-dark); background: #fff; }
.dashboard-hero .btn-ghost { color: #fff; border: 1px solid rgba(255, 255, 255, .24); background: rgba(255, 255, 255, .08); }

.dashboard-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.dashboard-kpi, .dashboard-panel { background: var(--dashboard-surface); border: 1px solid var(--dashboard-line); box-shadow: 0 12px 32px rgba(25, 67, 56, .055); }
.dashboard-kpi { position: relative; overflow: hidden; display: flex; align-items: center; gap: 16px; min-height: 126px; padding: 22px; border-radius: 18px; transition: transform .2s ease, box-shadow .2s ease; }
a.dashboard-kpi:hover { transform: translateY(-3px); box-shadow: 0 18px 38px rgba(25, 67, 56, .1); }
.dashboard-kpi__icon { display: grid; flex: 0 0 52px; width: 52px; height: 52px; place-items: center; color: var(--tone, var(--dashboard-green)); background: var(--tone-soft, var(--dashboard-mint)); border-radius: 15px; }
.dashboard-kpi__icon i { color: inherit; font-size: 26px; }
.dashboard-kpi__label { margin-bottom: 4px; color: var(--dashboard-muted); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.dashboard-kpi__value { color: var(--dashboard-ink); font-size: 29px; font-weight: 800; line-height: 1; letter-spacing: -.04em; }
.dashboard-kpi__hint { margin-top: 7px; color: #8a9995; font-size: 12px; }

.dashboard-panel { height: 100%; border-radius: 20px; }
.dashboard-panel__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 24px 26px 10px; }
.dashboard-panel__title { margin: 0 0 5px; color: var(--dashboard-ink); font-size: 18px; font-weight: 800; letter-spacing: -.025em; }
.dashboard-panel__subtitle { margin: 0; color: var(--dashboard-muted); font-size: 13px; }
.dashboard-panel__body { padding: 18px 26px 26px; }
.status-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.status-card { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 84px; padding: 15px 16px; color: var(--dashboard-ink); background: #fbfdfc; border: 1px solid var(--dashboard-line); border-radius: 14px; transition: border-color .2s ease, background .2s ease, transform .2s ease; }
.status-card:hover { color: var(--dashboard-ink); background: var(--status-soft, #f2faf6); border-color: var(--status-tone, #8bcdb4); transform: translateY(-2px); }
.status-card__main { display: flex; align-items: center; min-width: 0; gap: 11px; }
.status-card__dot { flex: 0 0 9px; width: 9px; height: 9px; background: var(--status-tone, var(--dashboard-green)); border-radius: 50%; box-shadow: 0 0 0 5px var(--status-soft, var(--dashboard-mint)); }
.status-card__label { overflow: hidden; color: #536762; font-size: 13px; font-weight: 700; text-overflow: ellipsis; }
.status-card__value { color: var(--dashboard-ink); font-size: 20px; font-weight: 800; }

.dashboard-chart-grid { margin-top: 24px; }
.chart-shell { position: relative; min-height: 320px; }
.chart-shell--wide { min-height: 360px; }
.chart-shell canvas { max-height: 340px; }
.dashboard-filter { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.dashboard-filter .form-control, .dashboard-filter .form-select { min-height: 38px; border-color: var(--dashboard-line); border-radius: 10px; background-color: #f8fbfa; }
.dashboard-filter .btn { min-height: 38px; border-radius: 10px; }
.chart-caption { margin-top: 12px; color: var(--dashboard-muted); font-size: 12px; text-align: center; }

html[data-bs-theme="dark"] .sam-admin-home { --dashboard-ink: #edf8f4; --dashboard-muted: #9ab0aa; --dashboard-line: #28423b; --dashboard-surface: #172a25; }
html[data-bs-theme="dark"] .dashboard-kpi, html[data-bs-theme="dark"] .status-card { background: #172a25; }
html[data-bs-theme="dark"] .status-card__label { color: #b5c8c2; }
html[data-bs-theme="dark"] .dashboard-filter .form-control, html[data-bs-theme="dark"] .dashboard-filter .form-select { color: #e8f5f1; background-color: #10221e; }

@media (max-width: 1199.98px) {
    .dashboard-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .status-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767.98px) {
    .sam-admin-home { padding-top: 18px; }
    .dashboard-hero { align-items: flex-start; flex-direction: column; min-height: auto; padding: 28px 24px; border-radius: 19px; }
    .dashboard-hero__actions { width: 100%; }
    .dashboard-hero__actions .btn { flex: 1 1 auto; justify-content: center; }
    .dashboard-panel__header { flex-direction: column; padding: 21px 20px 8px; }
    .dashboard-panel__body { padding: 16px 20px 22px; }
    .dashboard-filter { width: 100%; justify-content: flex-start; }
}

@media (max-width: 575.98px) {
    .dashboard-kpis, .status-grid { grid-template-columns: 1fr; }
    .dashboard-kpi { min-height: 108px; }
    .dashboard-filter > * { flex: 1 1 100%; width: 100% !important; }
}

/* Provider and vendor dashboards */
.dashboard-hero--provider {
    background: radial-gradient(circle at 86% 15%, rgba(154, 225, 255, .25), transparent 28%), linear-gradient(135deg, #0b4d4d 0%, #116d66 55%, #158b76 100%);
}

.dashboard-hero--vendor {
    background: radial-gradient(circle at 86% 15%, rgba(140, 216, 255, .25), transparent 28%), linear-gradient(135deg, #123e4b 0%, #11635e 52%, #148661 100%);
}

.portal-notice {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    padding: 16px 18px;
    color: #6d4813;
    background: #fff9e9;
    border: 1px solid #f1dbac;
    border-radius: 16px;
}

.portal-notice__icon {
    display: grid;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    place-items: center;
    color: #b97913;
    background: #fff0c8;
    border-radius: 11px;
}

.portal-notice__icon i { color: inherit; font-size: 21px; }
.portal-notice__content { display: flex; flex: 1 1 auto; flex-direction: column; line-height: 1.35; }
.portal-notice__content strong { font-size: 13px; font-weight: 800; }
.portal-notice__content span { margin-top: 3px; color: #8d6d3e; font-size: 12px; }

.portal-task-list,
.portal-action-list { display: flex; flex-direction: column; gap: 10px; }

.portal-task-item,
.portal-action-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    color: var(--dashboard-ink);
    background: #f9fcfa;
    border: 1px solid var(--dashboard-line);
    border-radius: 13px;
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.portal-task-item:hover,
.portal-action-item:hover {
    color: var(--dashboard-ink);
    background: #f1faf6;
    border-color: #b9dfcf;
    transform: translateX(3px);
}

.portal-task-item__icon,
.portal-action-item__icon {
    display: grid;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    place-items: center;
    color: #148661;
    background: #e8f6f0;
    border-radius: 10px;
}

.portal-task-item__icon i,
.portal-action-item__icon i { color: inherit; font-size: 19px; }
.portal-task-item__content,
.portal-action-item > span:nth-child(2) { display: flex; flex: 1 1 auto; min-width: 0; flex-direction: column; }
.portal-task-item__content strong,
.portal-action-item strong { overflow: hidden; color: var(--dashboard-ink); font-size: 13px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.portal-task-item__content small,
.portal-action-item small { margin-top: 4px; color: var(--dashboard-muted); font-size: 11px; }
.portal-task-item__arrow,
.portal-action-item > i { color: #8ca09a; }

.portal-empty-state {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    min-height: 190px;
    padding: 28px;
    color: var(--dashboard-muted);
    text-align: center;
}

.portal-empty-state--large { min-height: 320px; }
.portal-empty-state__icon { display: grid; width: 54px; height: 54px; margin-bottom: 14px; place-items: center; color: #148661; background: #e8f6f0; border-radius: 16px; }
.portal-empty-state__icon i { color: inherit; font-size: 26px; }
.portal-empty-state strong { color: var(--dashboard-ink); font-size: 15px; font-weight: 800; }
.portal-empty-state > span:last-child { max-width: 480px; margin-top: 6px; font-size: 12px; line-height: 1.6; }

.portal-loading-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 150px;
    margin-bottom: 18px;
    color: var(--dashboard-muted);
    background: var(--dashboard-surface);
    border: 1px solid var(--dashboard-line);
    border-radius: 20px;
    box-shadow: 0 12px 32px rgba(25, 67, 56, .055);
    font-size: 12px;
    font-weight: 700;
}

.portal-budget-stack .card {
    margin-bottom: 18px !important;
    background: var(--dashboard-surface) !important;
    border: 1px solid var(--dashboard-line) !important;
    border-radius: 20px !important;
    box-shadow: 0 12px 32px rgba(25, 67, 56, .055) !important;
}

.portal-budget-stack .card-header { padding: 22px 24px 8px; border-bottom: 0; }
.portal-budget-stack .card-body { padding: 18px 24px 24px; }
.status-grid--vendor { grid-template-columns: repeat(2, minmax(0, 1fr)); }

html[data-bs-theme="dark"] .portal-notice { color: #ffe7b6; background: #332a18; border-color: #5f4a22; }
html[data-bs-theme="dark"] .portal-notice__icon { color: #ffd27d; background: #49391d; }
html[data-bs-theme="dark"] .portal-notice__content span { color: #d6ba86; }
html[data-bs-theme="dark"] .portal-task-item,
html[data-bs-theme="dark"] .portal-action-item { background: #172a25; }
html[data-bs-theme="dark"] .portal-task-item:hover,
html[data-bs-theme="dark"] .portal-action-item:hover { background: #1b342d; border-color: #31584b; }

@media (max-width: 767.98px) {
    .portal-notice { align-items: flex-start; flex-wrap: wrap; }
    .portal-notice .btn { width: 100%; }
    .status-grid--vendor { grid-template-columns: 1fr; }
}

/* Admin user management */
.admin-users-page {
    --users-ink: #18352d;
    --users-muted: #6f817b;
    --users-line: #e2ebe7;
    --users-surface: #fff;
    --users-soft: #f4f8f6;
    --users-green: #148661;
    padding-top: 26px;
    padding-bottom: 42px;
    color: var(--users-ink);
}

.users-page-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding: 28px 30px;
    margin-bottom: 20px;
    overflow: hidden;
    background: linear-gradient(125deg, #123f35 0%, #17644f 68%, #1c8061 100%);
    border-radius: 22px;
    box-shadow: 0 14px 36px rgba(20, 91, 70, .15);
}

.users-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, .72);
    font-size: 12px;
    font-weight: 700;
}

.users-breadcrumb:hover { color: #fff; }
.users-breadcrumb i { color: inherit; }
.users-eyebrow { display: block; margin-bottom: 5px; color: #8ee0c3; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.users-page-hero h1 { margin: 0; color: #fff; font-size: clamp(28px, 4vw, 38px); font-weight: 800; letter-spacing: -.035em; }
.users-page-hero p { margin: 7px 0 0; color: rgba(255, 255, 255, .72); font-size: 13px; }

.users-primary-btn,
.users-secondary-btn,
.users-impersonate-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 11px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.users-primary-btn { color: #fff !important; background: var(--users-green) !important; border-color: var(--users-green) !important; }
.users-page-hero .users-primary-btn { color: #145844 !important; background: #fff !important; border-color: #fff !important; }
.users-primary-btn i { color: inherit; }
.users-primary-btn:hover { filter: brightness(.96); transform: translateY(-1px); }
.users-secondary-btn { color: #286352 !important; background: #edf7f3 !important; border: 1px solid #d8ebe4 !important; }
.users-secondary-btn i { color: inherit; }
.users-secondary-btn:hover { background: #e2f1eb !important; }
.users-impersonate-btn { color: #966015 !important; background: #fff5df !important; border: 1px solid #f3ddb1 !important; }
.users-impersonate-btn i { color: inherit; }

.users-panel {
    background: var(--users-surface);
    border: 1px solid var(--users-line);
    border-radius: 20px;
    box-shadow: 0 12px 32px rgba(25, 67, 56, .055);
}

.users-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 24px;
    border-bottom: 1px solid var(--users-line);
}

.users-panel h2,
.users-section-heading h2 { margin: 0; color: var(--users-ink); font-size: 16px; font-weight: 800; }
.users-panel__header p,
.users-section-heading p { margin: 4px 0 0; color: var(--users-muted); font-size: 11px; }
.users-search-form { display: flex; align-items: center; gap: 9px; }
.users-search-input { position: relative; width: min(310px, 32vw); }
.users-search-input i { position: absolute; top: 50%; left: 13px; color: #7c918a; font-size: 18px; transform: translateY(-50%); }
.users-search-input input,
.user-password-form input {
    width: 100%;
    min-height: 40px;
    color: var(--users-ink);
    background: var(--users-soft);
    border: 1px solid transparent;
    border-radius: 11px;
    outline: none;
}
.users-search-input input { padding: 0 14px 0 40px; font-size: 12px; }
.users-search-input input:focus,
.user-password-form input:focus { background: var(--users-surface); border-color: #78c9ad; box-shadow: 0 0 0 3px rgba(20, 134, 97, .09); }
.users-clear-link { padding: 8px 3px; color: var(--users-muted); font-size: 11px; font-weight: 700; }
.users-clear-link:hover { color: var(--users-green); }

.users-table { margin: 0; }
.users-table > :not(caption) > * > * { padding: 15px 24px; border-bottom-color: var(--users-line); vertical-align: middle; }
.users-table thead th { color: #81918c; background: var(--users-soft); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.users-table tbody tr:last-child td { border-bottom: 0; }
.users-table tbody tr { transition: background .15s ease; }
.users-table tbody tr:hover { background: #fbfdfc; }
.users-person { display: flex; align-items: center; gap: 12px; min-width: 270px; }
.users-person img { width: 42px; height: 42px; flex: 0 0 42px; object-fit: cover; background: #e7f1ed; border: 2px solid #fff; border-radius: 13px; box-shadow: 0 0 0 1px #dce8e3; }
.users-person > div { display: flex; min-width: 0; flex-direction: column; }
.users-person a { overflow: hidden; color: var(--users-ink); font-size: 13px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.users-person a:hover { color: var(--users-green); }
.users-person span { margin-top: 2px; color: var(--users-muted); font-size: 11px; }
.users-person small { margin-top: 2px; color: #98a6a1; font-size: 9px; font-weight: 700; }
.users-role { display: inline-flex; align-items: center; padding: 5px 10px; border-radius: 999px; font-size: 10px; font-weight: 800; text-transform: capitalize; }
.users-role--admin { color: #7253a7; background: #f1eafb; }
.users-role--provider { color: #24728a; background: #e8f5f8; }
.users-role--vendor { color: #187254; background: #e6f5ee; }
.users-role--default { color: #66716d; background: #edf1ef; }
.users-date { display: block; color: var(--users-ink); font-size: 11px; font-weight: 750; white-space: nowrap; }
.users-time { display: block; margin-top: 2px; color: var(--users-muted); font-size: 9px; }
.users-view-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 11px; color: var(--users-green); background: #edf7f3; border-radius: 9px; font-size: 10px; font-weight: 800; }
.users-view-btn i { color: inherit; font-size: 13px; }
.users-view-btn:hover { color: #fff; background: var(--users-green); }
.users-pagination { padding: 18px 24px 20px; border-top: 1px solid var(--users-line); }
.users-pagination nav > div:first-child { color: var(--users-muted); font-size: 11px; }

.users-empty { display: flex; align-items: center; justify-content: center; flex-direction: column; min-height: 250px; padding: 32px; text-align: center; }
.users-empty > span { display: grid; width: 52px; height: 52px; margin-bottom: 13px; place-items: center; color: var(--users-green); background: #e9f6f1; border-radius: 16px; }
.users-empty > span i { color: inherit; font-size: 25px; }
.users-empty strong { color: var(--users-ink); font-size: 14px; }
.users-empty p { margin: 5px 0 0; color: var(--users-muted); font-size: 11px; }
.users-empty--compact { min-height: 190px; }

.user-show-topbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.users-back-link { display: inline-flex; align-items: center; gap: 7px; color: var(--users-muted); font-size: 12px; font-weight: 750; }
.users-back-link i { color: inherit; }
.users-back-link:hover { color: var(--users-green); }
.user-show-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.user-profile-hero { display: flex; align-items: center; gap: 20px; padding: 26px 28px; margin-bottom: 18px; background: linear-gradient(135deg, #fff 0%, #f4faf7 100%); border: 1px solid var(--users-line); border-radius: 20px; box-shadow: 0 12px 32px rgba(25, 67, 56, .055); }
.user-profile-avatar { width: 76px; height: 76px; flex: 0 0 76px; object-fit: cover; border: 4px solid #fff; border-radius: 22px; box-shadow: 0 0 0 1px #d7e6e0, 0 8px 20px rgba(30, 91, 72, .12); }
.user-profile-main { flex: 1 1 auto; min-width: 0; }
.user-profile-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.user-profile-title h1 { margin: 0; color: var(--users-ink); font-size: 25px; font-weight: 850; letter-spacing: -.025em; }
.user-profile-main > p { margin: 4px 0 11px; color: var(--users-muted); font-size: 11px; }
.user-profile-meta { display: flex; align-items: center; gap: 8px 18px; flex-wrap: wrap; }
.user-profile-meta span { display: inline-flex; align-items: center; gap: 6px; color: #61766f; font-size: 11px; font-weight: 650; }
.user-profile-meta i { color: #45a183; font-size: 15px; }
.user-profile-since { display: flex; align-items: flex-end; flex-direction: column; padding-left: 24px; border-left: 1px solid var(--users-line); }
.user-profile-since span { color: var(--users-muted); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.user-profile-since strong { margin-top: 4px; color: var(--users-ink); font-size: 13px; }

.user-approval-panel,
.user-detail-panel { margin-bottom: 24px; overflow: hidden; }
.user-approval-panel { padding: 24px; }
.users-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.users-section-heading > div:first-child { display: flex; align-items: center; gap: 11px; }
.users-section-icon { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; color: var(--users-green); background: #e9f6f1; border-radius: 11px; }
.users-section-icon i { color: inherit; font-size: 19px; }
.approval-level-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.approval-level-card { position: relative; display: flex; min-height: 112px; padding: 17px 42px 17px 17px; flex-direction: column; color: var(--users-ink); background: var(--users-soft); border: 1px solid transparent; border-radius: 14px; }
.approval-level-card:hover { color: var(--users-ink); background: #fff; border-color: #b9dfd1; box-shadow: 0 8px 20px rgba(25, 67, 56, .07); transform: translateY(-1px); }
.approval-level-card span { color: var(--users-green); font-size: 10px; font-weight: 850; text-transform: uppercase; }
.approval-level-card strong { margin-top: 7px; font-size: 12px; }
.approval-level-card small { margin-top: 5px; color: var(--users-muted); font-size: 10px; }
.approval-level-card > i { position: absolute; top: 16px; right: 16px; color: #87a198; }
.users-inline-empty { padding: 20px; color: var(--users-muted); background: var(--users-soft); border-radius: 12px; font-size: 11px; text-align: center; }

.user-detail-tabs { gap: 5px; padding: 10px 14px 0; background: var(--users-soft); border-bottom: 1px solid var(--users-line); }
.user-detail-tabs .nav-link { display: inline-flex; align-items: center; gap: 7px; padding: 12px 14px; color: #74867f; border-bottom: 2px solid transparent; font-size: 11px; font-weight: 800; }
.user-detail-tabs .nav-link i { color: inherit; font-size: 16px; }
.user-detail-tabs .nav-link:hover { color: var(--users-green); }
.user-detail-tabs .nav-link.active { color: var(--users-green); background: #fff; border-bottom-color: var(--users-green); border-radius: 10px 10px 0 0; }
.user-detail-content { padding: 26px; }
.users-type-badge { padding: 6px 10px; color: #24728a; background: #e8f5f8; border-radius: 999px; font-size: 10px; font-weight: 800; }
.user-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; overflow: hidden; background: var(--users-line); border: 1px solid var(--users-line); border-radius: 14px; }
.user-detail-item { display: flex; min-height: 78px; padding: 16px 18px; flex-direction: column; background: var(--users-surface); }
.user-detail-item--wide { grid-column: 1 / -1; }
.user-detail-item span { color: var(--users-muted); font-size: 9px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.user-detail-item strong { margin-top: 7px; color: var(--users-ink); font-size: 12px; font-weight: 750; line-height: 1.55; overflow-wrap: anywhere; }
.user-password-form { display: grid; grid-template-columns: 1fr 1fr auto; align-items: end; gap: 12px; max-width: 850px; }
.user-password-form > div { min-width: 0; }
.user-password-form label { display: block; margin-bottom: 7px; color: var(--users-ink); font-size: 10px; font-weight: 800; }
.user-password-form input { padding: 0 13px; font-size: 12px; }
.user-documents-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.user-document-card { display: flex; align-items: center; gap: 12px; padding: 14px; color: var(--users-ink); background: var(--users-soft); border: 1px solid transparent; border-radius: 13px; }
.user-document-card:hover { color: var(--users-ink); background: #fff; border-color: #b9dfd1; }
.user-document-card > span { display: grid; width: 36px; height: 36px; flex: 0 0 36px; place-items: center; color: var(--users-green); background: #e3f3ed; border-radius: 10px; }
.user-document-card > span i { color: inherit; font-size: 18px; }
.user-document-card > div { display: flex; min-width: 0; flex: 1 1 auto; flex-direction: column; }
.user-document-card strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.user-document-card small { margin-top: 3px; color: var(--users-muted); font-size: 9px; }
.user-document-card > i { color: #8ca09a; }

html[data-bs-theme="dark"] .admin-users-page {
    --users-ink: #e8f3ef;
    --users-muted: #91a7a0;
    --users-line: #29453c;
    --users-surface: #14261f;
    --users-soft: #192f27;
}
html[data-bs-theme="dark"] .user-profile-hero { background: linear-gradient(135deg, #14261f, #192f27); }
html[data-bs-theme="dark"] .users-table tbody tr:hover { background: #172b24; }
html[data-bs-theme="dark"] .users-secondary-btn { color: #a8ddca !important; background: #1c3a31 !important; border-color: #31584b !important; }
html[data-bs-theme="dark"] .users-impersonate-btn { color: #f2c87c !important; background: #3b301d !important; border-color: #5a4725 !important; }
html[data-bs-theme="dark"] .user-profile-avatar { border-color: #1a3129; }

@media (max-width: 991.98px) {
    .users-panel__header { align-items: flex-start; flex-direction: column; }
    .users-search-form { width: 100%; }
    .users-search-input { width: auto; flex: 1 1 auto; }
    .approval-level-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .user-password-form { grid-template-columns: 1fr 1fr; }
    .user-password-form .btn { grid-column: 1 / -1; width: max-content; }
}

@media (max-width: 767.98px) {
    .admin-users-page { padding-top: 16px; }
    .users-page-hero { align-items: flex-start; padding: 22px; flex-direction: column; }
    .users-page-hero .users-primary-btn { width: 100%; }
    .users-panel__header { padding: 18px; }
    .users-search-form { align-items: stretch; flex-wrap: wrap; }
    .users-search-input { width: 100%; flex-basis: 100%; }
    .users-table > :not(caption) > * > * { padding-right: 16px; padding-left: 16px; }
    .user-show-topbar { align-items: flex-start; flex-direction: column; }
    .user-show-actions { width: 100%; justify-content: flex-start; }
    .user-profile-hero { align-items: flex-start; padding: 22px; flex-wrap: wrap; }
    .user-profile-since { width: 100%; align-items: flex-start; padding: 16px 0 0; border-top: 1px solid var(--users-line); border-left: 0; }
    .approval-level-grid,
    .user-detail-grid,
    .user-documents-grid,
    .user-password-form { grid-template-columns: 1fr; }
    .user-detail-item--wide { grid-column: auto; }
    .user-detail-tabs { flex-wrap: nowrap; overflow-x: auto; }
    .user-detail-tabs .nav-link { white-space: nowrap; }
    .user-detail-content { padding: 20px 18px; }
    .user-password-form .btn { grid-column: auto; width: 100%; }
}

/* Users module refinements and forms */
.admin-users-page > .app-container { max-width: 1440px; }

.users-level-filter {
    position: relative;
    min-width: 150px;
}

.users-level-filter > i {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 12px;
    color: #7c918a;
    font-size: 16px;
    pointer-events: none;
    transform: translateY(-50%);
}

.users-level-filter select {
    width: 100%;
    min-height: 40px;
    padding: 0 34px 0 36px;
    color: var(--users-ink);
    background-color: var(--users-soft);
    border: 1px solid transparent;
    border-radius: 11px;
    outline: 0;
    font-size: 11px;
    font-weight: 750;
    cursor: pointer;
}

.users-level-filter select:focus {
    background-color: var(--users-surface);
    border-color: #78c9ad;
    box-shadow: 0 0 0 3px rgba(20, 134, 97, .09);
}

.users-avatar {
    position: relative;
    display: inline-grid;
    flex: 0 0 auto;
    place-items: center;
    color: #fff;
    background: #6c8079;
    border: 3px solid var(--users-surface);
    border-radius: 30%;
    box-shadow: 0 0 0 1px var(--users-line), 0 7px 16px rgba(25, 67, 56, .1);
}

.users-avatar--sm { width: 44px; height: 44px; border-width: 2px; border-radius: 13px; }
.users-avatar--md { width: 58px; height: 58px; border-radius: 17px; }
.users-avatar--lg { width: 78px; height: 78px; border-radius: 22px; }
.users-avatar--admin { background: linear-gradient(145deg, #7354a8, #9274c1); }
.users-avatar--provider { background: linear-gradient(145deg, #27768c, #44a1b6); }
.users-avatar--vendor { background: linear-gradient(145deg, #177557, #33a27c); }
.users-avatar__initials { color: #fff !important; font-size: 18px; font-weight: 850; letter-spacing: -.03em; }
.users-avatar--sm .users-avatar__initials { font-size: 13px; }
.users-avatar--lg .users-avatar__initials { font-size: 24px; }

.users-avatar__role {
    position: absolute;
    right: -6px;
    bottom: -6px;
    display: grid;
    width: 23px;
    height: 23px;
    place-items: center;
    color: inherit;
    background: var(--users-surface);
    border: 1px solid var(--users-line);
    border-radius: 8px;
    box-shadow: 0 3px 8px rgba(25, 67, 56, .12);
}

.users-avatar__role i { color: currentColor; font-size: 13px; }
.users-avatar--admin .users-avatar__role { color: #7354a8; }
.users-avatar--provider .users-avatar__role { color: #27768c; }
.users-avatar--vendor .users-avatar__role { color: #177557; }
.users-avatar--sm .users-avatar__role { right: -5px; bottom: -5px; width: 20px; height: 20px; border-radius: 7px; }
.users-avatar--sm .users-avatar__role i { font-size: 11px; }
.users-person > .users-avatar { flex: 0 0 44px; }

.user-form-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 290px;
    align-items: start;
    gap: 18px;
}

.user-form-panel { overflow: hidden; }
.user-form-heading { display: flex; align-items: center; gap: 14px; padding: 25px 28px; background: linear-gradient(135deg, #fbfdfc, #f2f8f5); border-bottom: 1px solid var(--users-line); }
.user-form-heading--profile { gap: 18px; }
.user-form-heading h1 { margin: 0; color: var(--users-ink); font-size: 24px; font-weight: 850; letter-spacing: -.025em; }
.user-form-heading p { margin: 5px 0 0; color: var(--users-muted); font-size: 11px; }
.users-eyebrow--dark { margin-bottom: 3px; color: var(--users-green); font-size: 9px; }
.user-module-form { padding: 0 28px; }

.user-form-section {
    padding: 25px 0;
    border-bottom: 1px solid var(--users-line);
}

.user-form-section__title {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-bottom: 18px;
}

.user-form-section__title > span {
    display: grid;
    width: 25px;
    height: 25px;
    flex: 0 0 25px;
    place-items: center;
    color: var(--users-green);
    background: #e8f5f0;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 850;
}

.user-form-section__title h2 { margin: 0; color: var(--users-ink); font-size: 14px; font-weight: 800; }
.user-form-section__title p { margin: 3px 0 0; color: var(--users-muted); font-size: 10px; }
.user-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.user-form-grid--three { grid-template-columns: .7fr 1fr 1fr; }
.user-field label { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 7px; color: var(--users-ink); font-size: 10px; font-weight: 800; }
.user-field label em { color: #9aaaa4; font-size: 8px; font-style: normal; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }

.user-field__control {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 43px;
    background: var(--users-soft);
    border: 1px solid transparent;
    border-radius: 11px;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.user-field__control:focus-within {
    background: var(--users-surface);
    border-color: #78c9ad;
    box-shadow: 0 0 0 3px rgba(20, 134, 97, .09);
}

.user-field__control > i { margin-left: 13px; color: #789087; font-size: 17px; }
.user-field__control input,
.user-field__control select {
    width: 100%;
    min-width: 0;
    min-height: 41px;
    padding: 0 13px 0 10px;
    color: var(--users-ink);
    background: transparent;
    border: 0;
    outline: 0;
    font-size: 11px;
}

.user-field__control select { cursor: pointer; }
.user-field__control--currency > span { padding-left: 13px; color: var(--users-green); font-size: 10px; font-weight: 850; }
.user-field textarea {
    width: 100%;
    padding: 13px;
    color: var(--users-ink);
    background: var(--users-soft);
    border: 1px solid transparent;
    border-radius: 11px;
    outline: 0;
    resize: vertical;
    font-size: 11px;
    line-height: 1.6;
}
.user-field textarea:focus { background: var(--users-surface); border-color: #78c9ad; box-shadow: 0 0 0 3px rgba(20, 134, 97, .09); }

.user-role-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.user-role-option { position: relative; display: flex; min-height: 108px; padding: 16px; align-items: flex-start; gap: 11px; color: var(--users-ink); background: var(--users-soft); border: 1px solid transparent; border-radius: 14px; cursor: pointer; transition: .15s ease; }
.user-role-option:hover { background: var(--users-surface); border-color: #b9d9ce; transform: translateY(-1px); }
.user-role-option > input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.user-role-option__icon { display: grid; width: 35px; height: 35px; flex: 0 0 35px; place-items: center; border-radius: 10px; }
.user-role-option__icon i { color: inherit; font-size: 18px; }
.user-role-option--admin .user-role-option__icon { color: #7354a8; background: #eee8f8; }
.user-role-option--provider .user-role-option__icon { color: #27768c; background: #e4f3f7; }
.user-role-option--vendor .user-role-option__icon { color: #177557; background: #e3f3ed; }
.user-role-option > span:nth-of-type(2) { display: flex; min-width: 0; flex-direction: column; }
.user-role-option strong { font-size: 12px; font-weight: 800; }
.user-role-option small { margin-top: 4px; color: var(--users-muted); font-size: 9px; line-height: 1.5; }
.user-role-option__check { position: absolute; top: 11px; right: 11px; color: #a8b6b1; font-size: 17px; }
.user-role-option:has(input:checked) { background: #f4fbf8; border-color: #55b492; box-shadow: 0 0 0 2px rgba(20, 134, 97, .07); }
.user-role-option:has(input:checked) .user-role-option__check { color: var(--users-green); }

.user-form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; padding: 20px 0 24px; }
.user-form-aside { position: sticky; top: 90px; padding: 23px; }
.user-form-aside__icon { display: grid; width: 46px; height: 46px; margin-bottom: 16px; place-items: center; color: var(--users-green); background: #e8f5f0; border-radius: 14px; }
.user-form-aside__icon i { color: inherit; font-size: 23px; }
.user-form-aside h2 { margin: 0; font-size: 15px; }
.user-form-aside > p { margin: 8px 0 0; color: var(--users-muted); font-size: 10px; line-height: 1.7; }
.user-form-aside ul { display: grid; gap: 9px; padding: 16px 0 0; margin: 16px 0 0; border-top: 1px solid var(--users-line); list-style: none; }
.user-form-aside li { display: flex; align-items: flex-start; gap: 7px; color: #60766e; font-size: 9px; line-height: 1.5; }
.user-form-aside li i { margin-top: 1px; color: var(--users-green); }

.user-account-summary { text-align: center; }
.user-account-summary > .users-avatar { margin: 0 auto 15px; }
.user-account-summary > .users-role { margin-top: 8px; }
.user-account-summary__details { display: flex; margin-top: 18px; padding: 13px 0; flex-direction: column; border-top: 1px solid var(--users-line); border-bottom: 1px solid var(--users-line); }
.user-account-summary__details span { color: var(--users-muted); font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.user-account-summary__details strong { margin-top: 4px; color: var(--users-ink); font-size: 11px; }

.user-form-errors { display: flex; gap: 10px; padding: 13px 16px; margin: 20px 28px 0; color: #8f3e47; background: #fff1f2; border: 1px solid #f4ced2; border-radius: 12px; font-size: 10px; }
.user-form-errors > i { margin-top: 1px; color: inherit; font-size: 17px; }
.user-form-errors strong { font-size: 11px; }
.user-form-errors ul { padding-left: 16px; margin: 4px 0 0; }

html[data-bs-theme="dark"] .user-form-heading { background: linear-gradient(135deg, #172b24, #192f27); }
html[data-bs-theme="dark"] .user-role-option:has(input:checked) { background: #17362c; border-color: #3d9074; }
html[data-bs-theme="dark"] .user-role-option--admin .user-role-option__icon { background: #302744; }
html[data-bs-theme="dark"] .user-role-option--provider .user-role-option__icon { background: #1c3840; }
html[data-bs-theme="dark"] .user-role-option--vendor .user-role-option__icon,
html[data-bs-theme="dark"] .user-form-section__title > span,
html[data-bs-theme="dark"] .user-form-aside__icon { background: #1c3a31; }
html[data-bs-theme="dark"] .user-form-errors { color: #f0a6ad; background: #3b2226; border-color: #663139; }

@media (max-width: 1199.98px) {
    .user-form-layout { grid-template-columns: minmax(0, 1fr) 250px; }
    .user-role-options { grid-template-columns: 1fr; }
}

@media (max-width: 991.98px) {
    .user-form-layout { grid-template-columns: 1fr; }
    .user-form-aside { position: static; }
    .user-form-grid--three { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767.98px) {
    .users-search-form .users-level-filter { flex: 1 1 calc(60% - 5px); }
    .users-search-form > .users-secondary-btn { flex: 1 1 calc(40% - 5px); }
    .user-form-heading { padding: 21px 19px; }
    .user-module-form { padding: 0 19px; }
    .user-form-grid,
    .user-form-grid--three { grid-template-columns: 1fr; }
    .user-form-errors { margin-right: 19px; margin-left: 19px; }
}

/* Admin vendors module */
.admin-vendors-page {
    --vendors-ink: #18352d;
    --vendors-muted: #70827c;
    --vendors-line: #e1ebe7;
    --vendors-surface: #fff;
    --vendors-soft: #f4f8f6;
    --vendors-green: #148661;
    padding-top: 26px;
    padding-bottom: 42px;
    color: var(--vendors-ink);
}

.admin-vendors-page > .app-container,
.vendor-show-page > .app-container { width: 100%; max-width: 1440px; margin: 0 auto; }
.vendors-page-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 27px 30px; margin-bottom: 18px; background: linear-gradient(125deg, #113e34, #17654f 68%, #1f8062); border-radius: 22px; box-shadow: 0 14px 36px rgba(20, 91, 70, .15); }
.vendors-breadcrumb { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 18px; color: rgba(255,255,255,.72); font-size: 11px; font-weight: 750; }
.vendors-breadcrumb i { color: inherit; }
.vendors-breadcrumb:hover { color: #fff; }
.vendors-eyebrow { display: block; margin-bottom: 4px; color: #8ee0c3; font-size: 9px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.vendors-eyebrow--dark { color: var(--vendors-green); }
.vendors-page-hero h1,
.vendor-rating-hero h1,
.vendor-map-heading h1 { margin: 0; font-weight: 850; letter-spacing: -.035em; }
.vendors-page-hero h1 { color: #fff; font-size: clamp(28px, 4vw, 38px); }
.vendors-page-hero p { margin: 6px 0 0; color: rgba(255,255,255,.72); font-size: 12px; }
.vendors-hero-summary { display: grid; min-width: 130px; padding: 13px 17px; color: #fff; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); border-radius: 15px; backdrop-filter: blur(7px); }
.vendors-hero-summary span { color: #a7d8c8; font-size: 8px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.vendors-hero-summary strong { margin-top: 2px; font-size: 24px; line-height: 1.1; }
.vendors-hero-summary small { margin-top: 2px; color: rgba(255,255,255,.7); font-size: 9px; }

.vendors-panel { overflow: hidden; background: var(--vendors-surface); border: 1px solid var(--vendors-line); border-radius: 20px; box-shadow: 0 12px 32px rgba(25,67,56,.055); }
.vendors-panel__header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 21px 23px; border-bottom: 1px solid var(--vendors-line); }
.vendors-panel__header h2 { margin: 0; color: var(--vendors-ink); font-size: 15px; font-weight: 850; }
.vendors-panel__header p { margin: 4px 0 0; color: var(--vendors-muted); font-size: 10px; }
.vendors-filter-form,
.vendors-rating-search { display: flex; align-items: center; justify-content: flex-end; gap: 7px; flex-wrap: wrap; }
.vendors-search-input { position: relative; width: 245px; }
.vendors-search-input i { position: absolute; top: 50%; left: 12px; color: #7c918a; font-size: 16px; transform: translateY(-50%); }
.vendors-search-input input,
.vendors-filter-form select { min-height: 39px; color: var(--vendors-ink); background: var(--vendors-soft); border: 1px solid transparent; border-radius: 10px; outline: 0; font-size: 10px; }
.vendors-search-input input { width: 100%; padding: 0 12px 0 36px; }
.vendors-filter-form select { max-width: 140px; padding: 0 28px 0 11px; font-weight: 700; }
.vendors-search-input input:focus,
.vendors-filter-form select:focus { background: var(--vendors-surface); border-color: #78c9ad; box-shadow: 0 0 0 3px rgba(20,134,97,.09); }
.vendors-primary-btn,
.vendors-secondary-btn { display: inline-flex; min-height: 39px; padding: 0 14px; align-items: center; justify-content: center; gap: 7px; border-radius: 10px; font-size: 10px; font-weight: 850; white-space: nowrap; }
.vendors-primary-btn { color: #fff !important; background: var(--vendors-green) !important; border-color: var(--vendors-green) !important; }
.vendors-primary-btn i { color: inherit; }
.vendors-secondary-btn { color: #286352 !important; background: #edf7f3 !important; border: 1px solid #d8ebe4 !important; }
.vendors-secondary-btn i { color: inherit; }
.vendors-clear-link { padding: 8px 3px; color: var(--vendors-muted); font-size: 9px; font-weight: 750; }
.vendors-clear-link:hover { color: var(--vendors-green); }

.vendors-table { margin: 0; }
.vendors-table > :not(caption) > * > * { padding: 15px 19px; vertical-align: middle; border-bottom-color: var(--vendors-line); }
.vendors-table thead th { color: #81918c; background: var(--vendors-soft); font-size: 9px; font-weight: 850; letter-spacing: .075em; text-transform: uppercase; white-space: nowrap; }
.vendors-table thead a { color: inherit; }
.vendors-table tbody tr:last-child td { border-bottom: 0; }
.vendors-table tbody tr:hover { background: #fbfdfc; }
.vendors-person { display: flex; align-items: center; gap: 12px; min-width: 235px; }
.vendors-person > div { display: flex; min-width: 0; flex-direction: column; }
.vendors-person a { overflow: hidden; color: var(--vendors-ink); font-size: 12px; font-weight: 850; text-overflow: ellipsis; white-space: nowrap; }
.vendors-person a:hover { color: var(--vendors-green); }
.vendors-person span { margin-top: 2px; color: var(--vendors-muted); font-size: 9px; }
.vendors-person small { margin-top: 2px; color: #9aa8a3; font-size: 8px; }

.vendor-avatar { position: relative; display: inline-grid; flex: 0 0 auto; place-items: center; color: #fff; background: linear-gradient(145deg,#177557,#33a27c); border: 3px solid var(--vendors-surface); border-radius: 30%; box-shadow: 0 0 0 1px var(--vendors-line), 0 7px 16px rgba(25,67,56,.1); }
.vendor-avatar--sm { width: 44px; height: 44px; border-width: 2px; border-radius: 13px; }
.vendor-avatar--md { width: 58px; height: 58px; border-radius: 17px; }
.vendor-avatar--lg { width: 78px; height: 78px; border-radius: 22px; }
.vendor-avatar--hospital { background: linear-gradient(145deg,#a84c5e,#cf6f7e); }
.vendor-avatar--optometry { background: linear-gradient(145deg,#3d6fa2,#6698c9); }
.vendor-avatar--audiology { background: linear-gradient(145deg,#7b5b9f,#9c7abe); }
.vendor-avatar--rehabilitation { background: linear-gradient(145deg,#287c75,#4aa49b); }
.vendor-avatar--wound { background: linear-gradient(145deg,#a05a47,#c77c66); }
.vendor-avatar--service { background: linear-gradient(145deg,#5d5a9c,#817dc1); }
.vendor-avatar--default { background: linear-gradient(145deg,#5d726b,#82958f); }
.vendor-avatar__initials { color: #fff !important; font-size: 18px; font-weight: 850; letter-spacing: -.03em; }
.vendor-avatar--sm .vendor-avatar__initials { font-size: 13px; }
.vendor-avatar--lg .vendor-avatar__initials { font-size: 24px; }
.vendor-avatar__type { position: absolute; right: -6px; bottom: -6px; display: grid; width: 23px; height: 23px; place-items: center; color: var(--vendors-green); background: var(--vendors-surface); border: 1px solid var(--vendors-line); border-radius: 8px; box-shadow: 0 3px 8px rgba(25,67,56,.12); }
.vendor-avatar__type i { color: inherit; font-size: 12px; }
.vendor-avatar--sm .vendor-avatar__type { right: -5px; bottom: -5px; width: 20px; height: 20px; }
.vendor-category-list,
.users-category-list { display: flex; max-width: 360px; align-items: center; gap: 5px; flex-wrap: wrap; }
.vendor-category-pill { display: inline-flex; padding: 5px 8px; color: #24728a; background: #e8f5f8; border-radius: 999px; font-size: 8px; font-weight: 800; line-height: 1.25; }
.vendor-category-more { display: inline-grid; width: 24px; height: 24px; place-items: center; color: var(--vendors-green); background: #e8f5f0; border-radius: 50%; font-size: 8px; font-weight: 850; }
.vendor-category-copy { display: block; color: var(--vendors-muted); font-size: 8px; }
.users-category-list { justify-content: flex-end; }
.vendor-status { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 999px; font-size: 9px; font-weight: 800; }
.vendor-status i { width: 6px; height: 6px; background: currentColor; border-radius: 50%; }
.vendor-status--active { color: #187254; background: #e6f5ee; }
.vendor-status--inactive { color: #a04750; background: #fae9eb; }
.vendor-status--pending { color: #9a681d; background: #fff3dc; }
.vendor-district { display: inline-flex; align-items: center; gap: 5px; color: #5e746c; font-size: 9px; font-weight: 700; white-space: nowrap; }
.vendor-district i { color: #45a183; font-size: 13px; }
.vendor-award-count { display: block; color: var(--vendors-ink); font-size: 12px; }
.vendor-award-label { color: var(--vendors-muted); font-size: 8px; }
.vendor-rating,
.vendor-rating-score { display: inline-flex; align-items: center; gap: 5px; color: #895d18; font-size: 10px; font-weight: 800; white-space: nowrap; }
.vendor-rating i,
.vendor-rating-score i,
.vendor-rating-summary i { color: #e8a928; }
.vendor-no-rating { color: #98a6a1; font-size: 9px; }
.vendors-view-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 11px; color: var(--vendors-green); background: #edf7f3; border-radius: 9px; font-size: 9px; font-weight: 850; white-space: nowrap; }
.vendors-view-btn i { color: inherit; font-size: 12px; }
.vendors-view-btn:hover { color: #fff; background: var(--vendors-green); }
.vendors-pagination { padding: 17px 22px; border-top: 1px solid var(--vendors-line); }
.vendors-empty { display: flex; min-height: 240px; padding: 30px; align-items: center; justify-content: center; flex-direction: column; text-align: center; }
.vendors-empty > span { display: grid; width: 50px; height: 50px; margin-bottom: 12px; place-items: center; color: var(--vendors-green); background: #e8f5f0; border-radius: 15px; }
.vendors-empty > span i { color: inherit; font-size: 23px; }
.vendors-empty strong { color: var(--vendors-ink); font-size: 13px; }
.vendors-empty p { margin: 5px 0 0; color: var(--vendors-muted); font-size: 10px; }

/* Existing vendor profile content, normalized */
.vendor-show-page.app-toolbar { display: block; }
.vendor-show-page > .app-container { display: block !important; padding-right: 30px; padding-left: 30px; }
.vendor-show-page .app-toolbar-wrapper { display: block !important; }
.vendor-show-page .page-title { display: none !important; }
.vendor-show-page #kt_app_content_container { width: 100%; max-width: none; padding: 0; }
.vendor-show-topbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 15px; }
.vendor-show-topbar > span { color: #91a09b; font-size: 9px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.vendors-back-link { display: inline-flex; align-items: center; gap: 7px; color: var(--vendors-muted); font-size: 11px; font-weight: 750; }
.vendors-back-link i { color: inherit; }
.vendors-back-link:hover { color: var(--vendors-green); }
.vendor-profile-card { overflow: hidden; background: linear-gradient(135deg,#fff,#f4faf7) !important; border: 1px solid var(--vendors-line) !important; border-radius: 20px !important; box-shadow: 0 12px 32px rgba(25,67,56,.055) !important; }
.vendor-profile-card > .card-body { padding: 25px 27px 0 !important; }
.vendor-profile-card .d-flex.flex-wrap.flex-sm-nowrap { align-items: center; gap: 20px; }
.vendor-profile-info { min-width: 0; }
.vendor-profile-title { gap: 9px; flex-wrap: wrap; }
.vendor-profile-title h1 { margin: 0; color: var(--vendors-ink); font-size: 24px; font-weight: 850; letter-spacing: -.025em; }
.vendor-profile-info .text-gray-500 { color: var(--vendors-muted) !important; font-size: 10px !important; }
.vendor-profile-info .text-gray-500 i { color: #45a183; }
.vendor-profile-info .text-muted.fs-7 { padding: 9px 11px; color: #856826 !important; background: #fff6e2; border-radius: 9px; }
.vendor-profile-tabs { gap: 4px; margin-top: 12px; flex-wrap: nowrap; overflow-x: auto; }
.vendor-profile-tabs .nav-item { margin-top: 0 !important; }
.vendor-profile-tabs .nav-link { padding: 13px 11px !important; margin: 0 !important; color: #75877f !important; border-bottom: 2px solid transparent !important; font-size: 10px; white-space: nowrap; }
.vendor-profile-tabs .nav-link.active { color: var(--vendors-green) !important; border-bottom-color: var(--vendors-green) !important; }
.vendor-show-page .tab-content > .tab-pane > .card { overflow: hidden; background: var(--vendors-surface); border: 1px solid var(--vendors-line); border-radius: 18px; box-shadow: 0 10px 28px rgba(25,67,56,.05); }
.vendor-show-page .tab-pane > .card > .card-header { min-height: 68px; padding: 0 24px; border-bottom: 1px solid var(--vendors-line); }
.vendor-show-page .tab-pane > .card > .card-header h3 { color: var(--vendors-ink); font-size: 15px; font-weight: 850 !important; }
.vendor-show-page .tab-pane > .card > .card-body { padding: 22px 24px !important; }
.vendor-show-page .tab-pane > .card > .card-body > .row { padding: 13px 0; margin-bottom: 0 !important; border-bottom: 1px solid var(--vendors-line); }
.vendor-show-page .tab-pane > .card > .card-body > .row:last-child { border-bottom: 0; }
.vendor-show-page .tab-pane .row > label { color: var(--vendors-muted) !important; font-size: 10px !important; font-weight: 750 !important; }
.vendor-show-page .tab-pane .row .text-muted { color: var(--vendors-ink) !important; font-size: 11px !important; font-weight: 700 !important; line-height: 1.55; }
.vendor-show-page .tab-pane table { margin-bottom: 0; }
.vendor-show-page .tab-pane table thead th { padding: 11px 13px !important; color: #81918c !important; background: var(--vendors-soft); font-size: 9px !important; letter-spacing: .06em; text-transform: uppercase; }
.vendor-show-page .tab-pane table tbody td { padding: 13px !important; border-bottom-color: var(--vendors-line); font-size: 10px; vertical-align: middle; }
.vendor-show-page #map { width: min(100%, 720px) !important; height: 390px !important; border: 1px solid var(--vendors-line); border-radius: 15px; }
.vendor-show-page .modal-content { overflow: hidden; border: 0; border-radius: 17px; box-shadow: 0 18px 55px rgba(15,45,36,.2); }
.vendor-show-page .modal-header,
.vendor-show-page .modal-footer { padding: 17px 20px; border-color: var(--vendors-line); }
.vendor-show-page .modal-body { padding: 20px; }

/* Vendor location */
.vendor-map-panel { padding-bottom: 0; }
.vendor-map-heading { display: flex; align-items: center; gap: 15px; padding: 24px 27px; background: linear-gradient(135deg,#fbfdfc,#f2f8f5); border-bottom: 1px solid var(--vendors-line); }
.vendor-map-heading h1 { color: var(--vendors-ink); font-size: 22px; }
.vendor-map-heading p { margin: 5px 0 0; color: var(--vendors-muted); font-size: 10px; }
.vendor-map-address { display: flex; align-items: center; gap: 11px; padding: 17px 27px; border-bottom: 1px solid var(--vendors-line); }
.vendor-map-address > span { display: grid; width: 36px; height: 36px; flex: 0 0 36px; place-items: center; color: var(--vendors-green); background: #e8f5f0; border-radius: 10px; }
.vendor-map-address i { color: inherit; }
.vendor-map-address > div { display: flex; flex-direction: column; }
.vendor-map-address small { color: var(--vendors-muted); font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.vendor-map-address strong { margin-top: 3px; color: var(--vendors-ink); font-size: 11px; }
.vendor-map-form { padding: 22px 27px 25px; }
.vendor-map-canvas { width: 100%; height: 480px; overflow: hidden; border: 1px solid var(--vendors-line); border-radius: 16px; }
.vendor-coordinate-row { display: flex; align-items: center; gap: 10px; padding: 14px 0; }
.vendor-coordinate-row > div { display: flex; min-width: 150px; padding: 9px 12px; flex-direction: column; background: var(--vendors-soft); border-radius: 9px; }
.vendor-coordinate-row span { color: var(--vendors-muted); font-size: 8px; text-transform: uppercase; }
.vendor-coordinate-row strong { margin-top: 2px; color: var(--vendors-ink); font-size: 10px; }
.vendor-coordinate-row > a { margin-left: auto; }
.vendor-map-actions { display: flex; justify-content: flex-end; gap: 8px; padding-top: 17px; border-top: 1px solid var(--vendors-line); }
.vendor-map-empty { display: flex; min-height: 320px; padding: 35px; align-items: center; justify-content: center; flex-direction: column; text-align: center; }
.vendor-map-empty > span { display: grid; width: 54px; height: 54px; place-items: center; color: var(--vendors-green); background: #e8f5f0; border-radius: 16px; }
.vendor-map-empty > span i { color: inherit; font-size: 25px; }
.vendor-map-empty h2 { margin: 14px 0 0; color: var(--vendors-ink); font-size: 15px; }
.vendor-map-empty p { max-width: 420px; margin: 6px 0 17px; color: var(--vendors-muted); font-size: 10px; }

/* Vendor ratings */
.vendor-rating-hero { display: flex; align-items: center; gap: 19px; padding: 24px 27px; margin-bottom: 17px; color: #fff; background: linear-gradient(125deg,#113e34,#17654f 68%,#1f8062); border-radius: 20px; box-shadow: 0 14px 36px rgba(20,91,70,.14); }
.vendor-rating-hero > div:nth-child(2) { flex: 1 1 auto; }
.vendor-rating-hero h1 { color: #fff; font-size: 24px; }
.vendor-rating-hero p { margin: 5px 0 0; color: rgba(255,255,255,.7); font-size: 10px; }
.vendor-rating-summary { display: flex; min-width: 150px; padding-left: 23px; flex-direction: column; border-left: 1px solid rgba(255,255,255,.2); }
.vendor-rating-summary span { color: #a7d8c8; font-size: 8px; font-weight: 800; text-transform: uppercase; }
.vendor-rating-summary strong { margin-top: 2px; color: #fff; font-size: 19px; }
.vendor-rating-summary small { margin-top: 2px; color: rgba(255,255,255,.65); font-size: 8px; }
.vendor-order-link { color: var(--vendors-green); font-size: 11px; font-weight: 850; }
.vendor-review-copy { display: flex; min-width: 230px; max-width: 500px; flex-direction: column; }
.vendor-review-copy strong { color: var(--vendors-ink); font-size: 10px; }
.vendor-review-copy span { margin-top: 4px; overflow: hidden; color: var(--vendors-muted); font-size: 9px; line-height: 1.5; text-overflow: ellipsis; white-space: nowrap; }
.vendors-date { display: block; color: var(--vendors-ink); font-size: 10px; font-weight: 750; white-space: nowrap; }
.vendors-time { display: block; margin-top: 2px; color: var(--vendors-muted); font-size: 8px; }

html[data-bs-theme="dark"] .admin-vendors-page {
    --vendors-ink: #e8f3ef;
    --vendors-muted: #91a7a0;
    --vendors-line: #29453c;
    --vendors-surface: #14261f;
    --vendors-soft: #192f27;
}
html[data-bs-theme="dark"] .vendors-table tbody tr:hover { background: #172b24; }
html[data-bs-theme="dark"] .vendor-profile-card,
html[data-bs-theme="dark"] .vendor-map-heading { background: linear-gradient(135deg,#14261f,#192f27) !important; }
html[data-bs-theme="dark"] .vendors-secondary-btn { color: #a8ddca !important; background: #1c3a31 !important; border-color: #31584b !important; }
html[data-bs-theme="dark"] .vendor-profile-info .text-muted.fs-7 { color: #e6c684 !important; background: #332a18; }

@media (max-width: 1199.98px) {
    .vendors-panel__header { align-items: flex-start; flex-direction: column; }
    .vendors-filter-form { width: 100%; justify-content: flex-start; }
}

@media (max-width: 767.98px) {
    .admin-vendors-page { padding-top: 16px; }
    .vendors-page-hero,
    .vendor-rating-hero { align-items: flex-start; padding: 22px; flex-direction: column; }
    .vendors-hero-summary { width: 100%; }
    .vendors-panel__header { padding: 18px; }
    .vendors-filter-form,
    .vendors-rating-search { width: 100%; align-items: stretch; }
    .vendors-search-input { width: 100%; flex: 1 0 100%; }
    .vendors-filter-form select { max-width: none; flex: 1 1 calc(50% - 4px); }
    .vendor-show-page > .app-container { padding-right: 16px; padding-left: 16px; }
    .vendor-profile-card > .card-body { padding: 21px 19px 0 !important; }
    .vendor-profile-card .d-flex.flex-wrap.flex-sm-nowrap { align-items: flex-start; }
    .vendor-profile-info { flex-basis: calc(100% - 100px); }
    .vendor-profile-info .d-flex.justify-content-between { flex-direction: column; }
    .vendor-show-page .tab-pane > .card > .card-body { padding: 18px !important; }
    .vendor-show-page .tab-pane > .card > .card-body > .row { gap: 5px; }
    .vendor-map-heading,
    .vendor-map-address { padding-right: 19px; padding-left: 19px; }
    .vendor-map-form { padding: 18px 19px 22px; }
    .vendor-map-canvas { height: 380px; }
    .vendor-coordinate-row { align-items: stretch; flex-direction: column; }
    .vendor-coordinate-row > a { width: 100%; margin-left: 0; }
    .vendor-map-actions .btn { flex: 1 1 50%; }
    .vendor-rating-summary { width: 100%; padding: 14px 0 0; border-top: 1px solid rgba(255,255,255,.2); border-left: 0; }
}

/* Admin applications module */
.application-module-toolbar,
.admin-applications-page,
.application-report-modal {
    --applications-ink: #18352d;
    --applications-muted: #71837c;
    --applications-line: #e1ebe7;
    --applications-surface: #fff;
    --applications-soft: #f4f8f6;
    --applications-green: #148661;
}

.admin-applications-page { padding-top: 26px; padding-bottom: 42px; color: var(--applications-ink); }
.admin-applications-page > .app-container,
.application-module-toolbar > .app-container { max-width: 1440px; }
.applications-page-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 27px 30px; margin-bottom: 18px; background: linear-gradient(125deg,#113e34,#17654f 68%,#1f8062); border-radius: 22px; box-shadow: 0 14px 36px rgba(20,91,70,.15); }
.applications-breadcrumb { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 18px; color: rgba(255,255,255,.72); font-size: 11px; font-weight: 750; }
.applications-breadcrumb i { color: inherit; }
.applications-breadcrumb:hover { color: #fff; }
.applications-eyebrow { display: block; margin-bottom: 4px; color: #8ee0c3; font-size: 9px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.applications-eyebrow--dark { color: var(--applications-green); }
.applications-page-hero h1 { margin: 0; color: #fff; font-size: clamp(28px,4vw,38px); font-weight: 850; letter-spacing: -.035em; }
.applications-page-hero p { margin: 6px 0 0; color: rgba(255,255,255,.72); font-size: 12px; }
.applications-hero-actions { display: flex; align-items: stretch; gap: 9px; }
.applications-hero-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; color: #fff !important; background: rgba(255,255,255,.11) !important; border: 1px solid rgba(255,255,255,.2) !important; border-radius: 13px; font-size: 10px; font-weight: 800; }
.applications-hero-btn i { color: inherit; }
.applications-hero-summary { display: grid; min-width: 120px; padding: 12px 16px; color: #fff; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); border-radius: 14px; }
.applications-hero-summary span { color: #a7d8c8; font-size: 8px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.applications-hero-summary strong { font-size: 23px; line-height: 1.1; }
.applications-hero-summary small { color: rgba(255,255,255,.7); font-size: 8px; }

.applications-panel { overflow: hidden; background: var(--applications-surface); border: 1px solid var(--applications-line); border-radius: 20px; box-shadow: 0 12px 32px rgba(25,67,56,.055); }
.applications-panel__header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 21px 23px; border-bottom: 1px solid var(--applications-line); }
.applications-panel__header h2 { margin: 0; color: var(--applications-ink); font-size: 15px; font-weight: 850; }
.applications-panel__header p { margin: 4px 0 0; color: var(--applications-muted); font-size: 10px; }
.applications-filter-form { display: flex; align-items: center; justify-content: flex-end; gap: 7px; flex-wrap: wrap; }
.applications-search-input { position: relative; width: 230px; }
.applications-search-input i { position: absolute; top: 50%; left: 12px; color: #7c918a; font-size: 16px; transform: translateY(-50%); }
.applications-search-input input,
.applications-filter-form select { min-height: 39px; color: var(--applications-ink); background: var(--applications-soft); border: 1px solid transparent; border-radius: 10px; outline: 0; font-size: 10px; }
.applications-search-input input { width: 100%; padding: 0 12px 0 36px; }
.applications-filter-form select { width: 150px; padding: 0 28px 0 11px; font-weight: 700; }
.applications-search-input input:focus,
.applications-filter-form select:focus { background: var(--applications-surface); border-color: #78c9ad; box-shadow: 0 0 0 3px rgba(20,134,97,.09); }
.applications-primary-btn,
.applications-secondary-btn { display: inline-flex; min-height: 39px; padding: 0 14px; align-items: center; justify-content: center; gap: 7px; border-radius: 10px; font-size: 10px; font-weight: 850; white-space: nowrap; }
.applications-primary-btn { color: #fff !important; background: var(--applications-green) !important; border-color: var(--applications-green) !important; }
.applications-primary-btn i { color: inherit; }
.applications-secondary-btn { color: #286352 !important; background: #edf7f3 !important; border: 1px solid #d8ebe4 !important; }
.applications-secondary-btn i { color: inherit; }
.applications-clear-link { color: var(--applications-muted); font-size: 9px; font-weight: 750; }
.applications-clear-link:hover { color: var(--applications-green); }

.applications-table { margin: 0; }
.applications-table > :not(caption) > * > * { padding: 15px 19px; vertical-align: middle; border-bottom-color: var(--applications-line); }
.applications-table thead th { color: #81918c; background: var(--applications-soft); font-size: 9px; font-weight: 850; letter-spacing: .075em; text-transform: uppercase; white-space: nowrap; }
.applications-table thead a { color: inherit; }
.applications-table tbody tr:last-child td { border-bottom: 0; }
.applications-table tbody tr:hover { background: #fbfdfc; }
.applications-person { display: flex; align-items: center; gap: 12px; min-width: 175px; }
.applications-person > div { display: flex; min-width: 0; flex-direction: column; }
.applications-person a { color: var(--applications-ink); font-size: 12px; font-weight: 850; }
.applications-person a:hover { color: var(--applications-green); }
.applications-person span { margin-top: 2px; color: var(--applications-muted); font-size: 9px; }
.applications-person small { margin-top: 2px; color: #99a7a2; font-size: 8px; }
.application-avatar { position: relative; display: inline-grid; flex: 0 0 auto; place-items: center; color: #fff; background: linear-gradient(145deg,#177557,#33a27c); border: 3px solid var(--applications-surface); border-radius: 30%; box-shadow: 0 0 0 1px var(--applications-line),0 7px 16px rgba(25,67,56,.1); }
.application-avatar--sm { width: 44px; height: 44px; border-width: 2px; border-radius: 13px; }
.application-avatar--md { width: 58px; height: 58px; border-radius: 17px; }
.application-avatar--lg { width: 78px; height: 78px; border-radius: 22px; }
.application-avatar--dialysis { background: linear-gradient(145deg,#a44e66,#cc7086); }
.application-avatar--vision { background: linear-gradient(145deg,#3e6fa4,#6898c9); }
.application-avatar--mobility { background: linear-gradient(145deg,#86609e,#a881bd); }
.application-avatar--support { background: linear-gradient(145deg,#9a6b24,#c7923f); }
.application-avatar--travel { background: linear-gradient(145deg,#27788a,#4ba3b4); }
.application-avatar--default { background: linear-gradient(145deg,#5d726b,#82958f); }
.application-avatar__initials { color: #fff !important; font-size: 18px; font-weight: 850; }
.application-avatar--sm .application-avatar__initials { font-size: 13px; }
.application-avatar__type { position: absolute; right: -5px; bottom: -5px; display: grid; width: 20px; height: 20px; place-items: center; color: var(--applications-green); background: var(--applications-surface); border: 1px solid var(--applications-line); border-radius: 7px; }
.application-avatar__type i { color: inherit; font-size: 11px; }
.application-party { display: flex; min-width: 185px; flex-direction: column; }
.application-party--patient { padding-top: 6px; margin-top: 6px; border-top: 1px dashed var(--applications-line); }
.application-party strong { overflow: hidden; max-width: 220px; color: var(--applications-ink); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.application-party span { margin-top: 2px; color: var(--applications-muted); font-size: 8px; }
.application-category-pill { display: inline-flex; max-width: 170px; padding: 5px 9px; color: #24728a; background: #e8f5f8; border-radius: 999px; font-size: 8px; font-weight: 800; line-height: 1.3; }
.application-status { display: inline-flex; align-items: center; gap: 6px; max-width: 175px; padding: 5px 9px; border-radius: 999px; font-size: 8px; font-weight: 800; line-height: 1.3; }
.application-status i { width: 6px; height: 6px; flex: 0 0 6px; background: currentColor; border-radius: 50%; }
.application-status--pending { color: #97651b; background: #fff3dc; }
.application-status--progress { color: #24728a; background: #e8f5f8; }
.application-status--closed { color: #a04750; background: #fae9eb; }
.application-status--query { color: #7253a7; background: #f1eafb; }
.applications-date { display: block; color: var(--applications-ink); font-size: 10px; font-weight: 750; white-space: nowrap; }
.applications-time { display: block; margin-top: 2px; color: var(--applications-muted); font-size: 8px; }
.application-assignee { display: inline-flex; align-items: center; gap: 6px; color: #5f746d; font-size: 9px; font-weight: 700; white-space: nowrap; }
.application-assignee i { color: #45a183; font-size: 14px; }
.applications-view-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 11px; color: var(--applications-green); background: #edf7f3; border-radius: 9px; font-size: 9px; font-weight: 850; }
.applications-view-btn i { color: inherit; font-size: 12px; }
.applications-view-btn:hover { color: #fff; background: var(--applications-green); }
.applications-pagination { padding: 17px 22px; border-top: 1px solid var(--applications-line); }
.applications-empty { display: flex; min-height: 240px; padding: 30px; align-items: center; justify-content: center; flex-direction: column; text-align: center; }
.applications-empty > span { display: grid; width: 50px; height: 50px; margin-bottom: 12px; place-items: center; color: var(--applications-green); background: #e8f5f0; border-radius: 15px; }
.applications-empty > span i { color: inherit; font-size: 23px; }
.applications-empty strong { color: var(--applications-ink); font-size: 13px; }
.applications-empty p { margin: 5px 0 0; color: var(--applications-muted); font-size: 10px; }

.application-report-modal .modal-content,
.admin-applications-page .modal-content { overflow: hidden; border: 0; border-radius: 17px; box-shadow: 0 18px 55px rgba(15,45,36,.2); }
.application-report-modal .modal-header { padding: 19px 21px; border-color: var(--applications-line); }
.application-report-modal .modal-header h2 { margin: 0; color: var(--applications-ink); font-size: 16px; font-weight: 850; }
.application-report-modal .modal-body { display: grid; gap: 15px; padding: 21px; }
.application-report-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.application-report-field label { display: block; margin-bottom: 6px; color: var(--applications-ink); font-size: 9px; font-weight: 800; }
.application-report-field input,
.application-report-field select { width: 100%; min-height: 41px; padding: 0 12px; color: var(--applications-ink); background: var(--applications-soft); border: 1px solid transparent; border-radius: 10px; outline: 0; font-size: 10px; }
.application-report-modal .modal-footer { padding: 15px 21px; border-color: var(--applications-line); }

/* Legacy application screens normalized */
.application-module-toolbar { padding-top: 20px !important; padding-bottom: 8px !important; }
.application-module-toolbar .app-toolbar-wrapper { min-height: 86px; padding: 18px 23px; background: linear-gradient(135deg,#fff,#f4faf7); border: 1px solid var(--applications-line); border-radius: 18px; box-shadow: 0 10px 28px rgba(25,67,56,.05); }
.application-module-toolbar .page-heading { color: var(--applications-ink) !important; font-size: 20px !important; letter-spacing: -.02em; }
.application-module-toolbar .breadcrumb { margin-top: 6px !important; }
.application-module-toolbar .breadcrumb-item,
.application-module-toolbar .breadcrumb-item a { color: var(--applications-muted) !important; font-size: 9px; }
.admin-applications-page .card { border: 1px solid var(--applications-line); border-radius: 18px; box-shadow: 0 10px 28px rgba(25,67,56,.05); }
.admin-applications-page .card-header { min-height: 65px; padding-right: 22px; padding-left: 22px; border-bottom-color: var(--applications-line); }
.admin-applications-page .card-header h2,
.admin-applications-page .card-header h3,
.admin-applications-page .card-label { color: var(--applications-ink); font-size: 14px !important; font-weight: 850 !important; }
.admin-applications-page .card-body { color: var(--applications-ink); }
.admin-applications-page .form-label,
.admin-applications-page label { color: var(--applications-ink); font-size: 10px; font-weight: 750; }
.admin-applications-page .form-control,
.admin-applications-page .form-select { min-height: 41px; color: var(--applications-ink); background-color: var(--applications-soft); border-color: transparent; border-radius: 10px; font-size: 10px; }
.admin-applications-page .form-control:focus,
.admin-applications-page .form-select:focus { background-color: var(--applications-surface); border-color: #78c9ad; box-shadow: 0 0 0 3px rgba(20,134,97,.09); }
.admin-applications-page .table thead th { padding: 11px 13px !important; color: #81918c !important; background: var(--applications-soft); font-size: 9px !important; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.admin-applications-page .table tbody td { padding: 13px !important; color: var(--applications-ink); border-bottom-color: var(--applications-line); font-size: 10px; vertical-align: middle; }
.admin-applications-page .table tbody tr:hover { background: #fbfdfc; }
.admin-applications-page .btn { border-radius: 10px; font-size: 10px; font-weight: 750; }
.admin-applications-page .notice { border-radius: 12px !important; }
.admin-applications-page .modal-header,
.admin-applications-page .modal-footer { padding: 16px 19px; border-color: var(--applications-line); }
.admin-applications-page .modal-body { padding: 19px; }

.application-detail-page .stepper,
.application-form-page .stepper { gap: 18px !important; }
.application-detail-page .stepper > .card:first-child,
.application-form-page .stepper > .card:first-child { width: 270px !important; border-radius: 18px; }
.application-detail-page .stepper > .card:first-child .card-body,
.application-form-page .stepper > .card:first-child .card-body { padding: 24px 21px !important; }
.application-detail-page .stepper-item,
.application-form-page .stepper-item { padding-bottom: 6px; }
.application-detail-page .stepper-icon,
.application-form-page .stepper-icon { width: 34px !important; height: 34px !important; background: #e8f5f0 !important; border-radius: 10px !important; }
.application-detail-page .stepper-icon .stepper-number,
.application-form-page .stepper-icon .stepper-number { color: var(--applications-green) !important; font-size: 10px; font-weight: 850; }
.application-detail-page .stepper-title,
.application-form-page .stepper-title { color: var(--applications-ink) !important; font-size: 11px !important; }
.application-detail-page .stepper-desc,
.application-form-page .stepper-desc { color: var(--applications-muted) !important; font-size: 8px !important; line-height: 1.4; }
.application-detail-page .stepper-line,
.application-form-page .stepper-line { border-left-color: var(--applications-line) !important; }
.application-detail-page .stepper > .card:last-child > .card-body,
.application-form-page .stepper > .card:last-child > .card-body { max-width: 850px !important; padding: 29px !important; }
.application-detail-page [data-kt-stepper-element="content"] .row,
.application-form-page [data-kt-stepper-element="content"] .row { padding-bottom: 16px; margin-bottom: 16px !important; border-bottom: 1px solid var(--applications-line); }
.application-detail-page #map,
.application-map-page #map { width: 100% !important; max-width: 760px; height: 430px !important; overflow: hidden; border: 1px solid var(--applications-line); border-radius: 15px; }
.application-page-topbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 15px; }
.application-page-topbar > span { color: #91a09b; font-size: 9px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.applications-back-link { display: inline-flex; align-items: center; gap: 7px; color: var(--applications-muted); font-size: 11px; font-weight: 750; }
.applications-back-link i { color: inherit; }
.applications-back-link:hover { color: var(--applications-green); }
.application-map-heading { display: flex; align-items: center; gap: 15px; padding: 24px 27px; background: linear-gradient(135deg,#fbfdfc,#f2f8f5); border-bottom: 1px solid var(--applications-line); }
.application-map-heading h1 { margin: 0; color: var(--applications-ink); font-size: 22px; font-weight: 850; letter-spacing: -.03em; }
.application-map-heading p { margin: 5px 0 0; color: var(--applications-muted); font-size: 10px; }
.application-map-address { display: flex; align-items: center; gap: 11px; padding: 17px 27px; border-bottom: 1px solid var(--applications-line); }
.application-map-address > span { display: grid; width: 36px; height: 36px; flex: 0 0 36px; place-items: center; color: var(--applications-green); background: #e8f5f0; border-radius: 10px; }
.application-map-address i { color: inherit; }
.application-map-address > div { display: flex; flex-direction: column; }
.application-map-address small { color: var(--applications-muted); font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.application-map-address strong { margin-top: 3px; color: var(--applications-ink); font-size: 11px; }
.application-map-form { padding: 22px 27px 25px; }
.application-map-canvas { max-width: none !important; height: 480px !important; }
.application-coordinate-row { display: flex; align-items: center; gap: 10px; padding: 14px 0; }
.application-coordinate-row > div { display: flex; min-width: 150px; padding: 9px 12px; flex-direction: column; background: var(--applications-soft); border-radius: 9px; }
.application-coordinate-row span { color: var(--applications-muted); font-size: 8px; text-transform: uppercase; }
.application-coordinate-row strong { margin-top: 2px; color: var(--applications-ink); font-size: 10px; }
.application-coordinate-row > a { margin-left: auto; }
.application-map-actions { display: flex; justify-content: flex-end; gap: 8px; padding-top: 17px; border-top: 1px solid var(--applications-line); }
.application-map-empty { min-height: 300px; }

.application-review-page #kt_ecommerce_add_category_form { align-items: flex-start; gap: 18px; }
.application-review-page .scroll-y { position: sticky; top: 90px; max-height: calc(100vh - 110px) !important; margin-right: 0 !important; }
.application-review-page .card-flush { overflow: hidden; }
.application-review-page .card-flush .card-body { padding: 20px 22px; }
.application-review-page .d-flex.flex-stack { gap: 12px; }
.application-review-page .badge.text-wrap { max-width: 260px; padding: 7px 9px; line-height: 1.5; }
.application-dialysis-page .alert { border: 1px solid #cce8dc; border-radius: 14px; }
.application-related-page .card-body,
.application-endorsements-page .card-body,
.application-travel-page .card-body { padding: 18px 20px !important; }
.application-map-page .card-body { padding: 22px !important; }
.application-endorsement-number { display: inline-grid; width: 32px; height: 32px; place-items: center; color: var(--applications-green); background: #e8f5f0; border-radius: 9px; font-size: 10px; font-weight: 850; }
.application-endorsement-data { display: flex; gap: 6px; flex-wrap: wrap; }
.application-endorsement-data > div { display: inline-flex; padding: 6px 9px; align-items: center; gap: 6px; background: var(--applications-soft); border-radius: 8px; }
.application-endorsement-data span { color: var(--applications-muted); font-size: 8px; font-weight: 750; }
.application-endorsement-data strong { color: var(--applications-ink); font-size: 9px; font-weight: 800; }

html[data-bs-theme="dark"] .application-module-toolbar,
html[data-bs-theme="dark"] .admin-applications-page,
html[data-bs-theme="dark"] .application-report-modal {
    --applications-ink: #e8f3ef;
    --applications-muted: #91a7a0;
    --applications-line: #29453c;
    --applications-surface: #14261f;
    --applications-soft: #192f27;
}
html[data-bs-theme="dark"] .application-module-toolbar .app-toolbar-wrapper { background: linear-gradient(135deg,#14261f,#192f27); }
html[data-bs-theme="dark"] .application-map-heading { background: linear-gradient(135deg,#14261f,#192f27); }
html[data-bs-theme="dark"] .applications-table tbody tr:hover,
html[data-bs-theme="dark"] .admin-applications-page .table tbody tr:hover { background: #172b24; }
html[data-bs-theme="dark"] .applications-secondary-btn { color: #a8ddca !important; background: #1c3a31 !important; border-color: #31584b !important; }

@media (max-width: 1199.98px) {
    .applications-panel__header { align-items: flex-start; flex-direction: column; }
    .applications-filter-form { width: 100%; justify-content: flex-start; }
    .application-detail-page .stepper > .card:first-child,
    .application-form-page .stepper > .card:first-child { width: 100% !important; }
    .application-detail-page .stepper-nav,
    .application-form-page .stepper-nav { display: flex; gap: 12px; overflow-x: auto; }
    .application-detail-page .stepper-item,
    .application-form-page .stepper-item { min-width: 155px; }
    .application-detail-page .stepper-line,
    .application-form-page .stepper-line { display: none; }
    .application-review-page #kt_ecommerce_add_category_form { flex-direction: column !important; }
    .application-review-page .scroll-y { position: static; width: 100%; max-height: none !important; }
    .application-review-page .w-lg-500px { width: 100% !important; }
}

@media (max-width: 767.98px) {
    .admin-applications-page { padding-top: 16px; }
    .applications-page-hero { align-items: flex-start; padding: 22px; flex-direction: column; }
    .applications-hero-actions { width: 100%; flex-direction: column; }
    .applications-hero-btn,
    .applications-hero-summary { width: 100%; }
    .applications-panel__header { padding: 18px; }
    .applications-filter-form { align-items: stretch; }
    .applications-search-input { width: 100%; flex: 1 0 100%; }
    .applications-filter-form select { width: auto; flex: 1 1 calc(50% - 4px); }
    .application-report-grid { grid-template-columns: 1fr; }
    .application-module-toolbar .app-toolbar-wrapper { min-height: auto; padding: 16px 18px; }
    .application-module-toolbar .page-heading { font-size: 17px !important; }
    .application-detail-page .stepper > .card:last-child > .card-body,
    .application-form-page .stepper > .card:last-child > .card-body { padding: 20px !important; }
    .application-review-page .card-flush .card-body { padding: 18px; }
    .application-map-heading,
    .application-map-address { padding-right: 19px; padding-left: 19px; }
    .application-map-form { padding: 18px 19px 22px; }
    .application-coordinate-row { align-items: stretch; flex-direction: column; }
    .application-coordinate-row > a { width: 100%; margin-left: 0; }
    .application-map-actions .btn { flex: 1 1 50%; }
}

/* Application show workspace */
.application-show-toolbar { display: none !important; }
.application-detail-page { padding-top: 18px; }
.application-case-hero { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 20px; padding: 25px 27px 0; margin-bottom: 17px; background: linear-gradient(135deg,#fff,#f3f9f6); border: 1px solid var(--applications-line); border-radius: 20px; box-shadow: 0 12px 32px rgba(25,67,56,.055); }
.application-case-identity { display: flex; min-width: 0; align-items: center; gap: 17px; }
.application-case-identity > div { min-width: 0; }
.application-case-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.application-case-title h1 { margin: 0; color: var(--applications-ink); font-size: 24px; font-weight: 850; letter-spacing: -.03em; }
.application-case-identity p { margin: 5px 0 0; color: var(--applications-muted); font-size: 10px; font-weight: 650; }
.application-avatar--lg .application-avatar__initials { font-size: 24px; }
.application-avatar--lg .application-avatar__type { right: -6px; bottom: -6px; width: 24px; height: 24px; border-radius: 8px; }
.application-case-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.application-case-meta { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(4,minmax(0,1fr)); margin: 4px -27px 0; background: rgba(244,248,246,.82); border-top: 1px solid var(--applications-line); border-radius: 0 0 20px 20px; }
.application-case-meta > div { display: flex; min-width: 0; padding: 14px 20px; flex-direction: column; border-right: 1px solid var(--applications-line); }
.application-case-meta > div:last-child { border-right: 0; }
.application-case-meta span { color: var(--applications-muted); font-size: 8px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.application-case-meta strong { overflow: hidden; margin-top: 4px; color: var(--applications-ink); font-size: 11px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.application-case-meta small { margin-top: 2px; color: #94a29d; font-size: 8px; }

.application-detail-page .stepper { display: block !important; }
.application-detail-page .stepper > .card:first-child { width: 100% !important; margin-bottom: 17px; }
.application-detail-page .stepper > .card:first-child .card-body { padding: 12px 16px !important; }
.application-detail-page .stepper-nav { display: grid !important; grid-template-columns: repeat(7,minmax(115px,1fr)); gap: 5px; overflow-x: auto; }
.application-detail-page .stepper-item { min-width: 115px; padding: 0 !important; }
.application-detail-page .stepper-wrapper { display: flex; padding: 9px 10px; align-items: center; gap: 8px; background: var(--applications-soft); border: 1px solid transparent; border-radius: 11px; }
.application-detail-page .stepper-item.current .stepper-wrapper { background: #eef8f4; border-color: #b9dfd1; }
.application-detail-page .stepper-icon { width: 29px !important; height: 29px !important; flex: 0 0 29px; border-radius: 8px !important; }
.application-detail-page .stepper-label { min-width: 0; }
.application-detail-page .stepper-title { overflow: hidden; font-size: 9px !important; text-overflow: ellipsis; white-space: nowrap; }
.application-detail-page .stepper-desc { display: none; }
.application-detail-page .stepper-line { display: none !important; }
.application-detail-page .stepper > .card:last-child { display: block !important; width: 100%; }
.application-detail-page .stepper > .card:last-child > .card-body { width: 100% !important; max-width: none !important; padding: 27px 30px !important; }
.application-detail-page [data-kt-stepper-element="content"] > .w-100 > .pb-10 { display: flex; padding-bottom: 18px !important; margin-bottom: 20px; align-items: flex-end; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--applications-line); }
.application-detail-page [data-kt-stepper-element="content"] > .w-100 > .pb-10 h2 { margin: 0; color: var(--applications-ink) !important; font-size: 17px; font-weight: 850 !important; }
.application-detail-page [data-kt-stepper-element="content"] > .w-100 > .pb-10 .text-muted { font-size: 9px !important; }
.application-detail-page [data-kt-stepper-element="content"] .row { padding-bottom: 15px; margin-bottom: 15px !important; border-bottom: 1px solid var(--applications-line); }
.application-detail-page [data-kt-stepper-element="content"] .row .fv-row { margin-bottom: 0; }
.application-detail-page input.form-control:disabled { min-height: 44px; color: var(--applications-ink); background: var(--applications-soft); border: 1px solid transparent; opacity: 1; font-size: 10px; font-weight: 700; }
.application-detail-page .mb-10.fv-row { padding: 0 0 19px; margin-bottom: 19px !important; border-bottom: 1px solid var(--applications-line); }
.application-detail-page .mb-10.fv-row > .form-label { display: block; margin-bottom: 10px !important; color: var(--applications-muted); font-size: 9px; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.application-detail-page .notice { background: var(--applications-soft) !important; border-color: var(--applications-line) !important; }
.application-detail-page .notice .text-gray-700 { color: var(--applications-ink) !important; font-size: 10px !important; line-height: 1.6; }
.application-detail-page [data-kt-stepper-element="content"] + .d-flex.flex-stack,
.application-detail-page .card-body > .d-flex.flex-stack.pt-8 { padding-top: 20px !important; border-top: 1px solid var(--applications-line); }
.application-detail-page .card-body > .d-flex.flex-stack.pt-8 > div:last-child { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.application-detail-page .card-body > .d-flex.flex-stack.pt-8 .btn-lg { min-height: 40px; padding: 0 15px; font-size: 10px; }
.application-detail-page .btn-info { color: #24728a; background: #e8f5f8; border-color: #d4ebf0; }
.application-detail-page .modal-content { color: var(--applications-ink); background: var(--applications-surface); }
.application-detail-page .textarea-like { min-height: 100px !important; }

html[data-bs-theme="dark"] .application-case-hero { background: linear-gradient(135deg,#14261f,#192f27); }
html[data-bs-theme="dark"] .application-case-meta { background: #192f27; }
html[data-bs-theme="dark"] .application-detail-page .stepper-item.current .stepper-wrapper { background: #1c3a31; border-color: #31584b; }

@media (max-width: 991.98px) {
    .application-case-hero { grid-template-columns: 1fr; }
    .application-case-actions { justify-content: flex-start; }
    .application-case-meta { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .application-case-meta > div:nth-child(2) { border-right: 0; }
    .application-case-meta > div:nth-child(-n+2) { border-bottom: 1px solid var(--applications-line); }
}

@media (max-width: 767.98px) {
    .application-detail-page { padding-top: 14px; }
    .application-case-hero { padding: 20px 18px 0; }
    .application-case-identity { align-items: flex-start; }
    .application-case-title h1 { font-size: 19px; }
    .application-case-actions { display: grid; grid-template-columns: 1fr 1fr; }
    .application-case-meta { margin-right: -18px; margin-left: -18px; grid-template-columns: 1fr; }
    .application-case-meta > div { border-right: 0; border-bottom: 1px solid var(--applications-line); }
    .application-case-meta > div:last-child { border-bottom: 0; }
    .application-detail-page .stepper > .card:last-child > .card-body { padding: 20px 18px !important; }
    .application-detail-page [data-kt-stepper-element="content"] > .w-100 > .pb-10 { align-items: flex-start; flex-direction: column; }
    .application-detail-page .card-body > .d-flex.flex-stack.pt-8 { align-items: stretch; flex-direction: column; gap: 10px; }
    .application-detail-page .card-body > .d-flex.flex-stack.pt-8 > div,
    .application-detail-page .card-body > .d-flex.flex-stack.pt-8 .btn { width: 100%; }
}

/* Admin dispenses module */
.dispense-module-toolbar,
.admin-dispenses-page {
    --dispenses-ink: #18352d;
    --dispenses-muted: #71837c;
    --dispenses-line: #e1ebe7;
    --dispenses-surface: #fff;
    --dispenses-soft: #f4f8f6;
    --dispenses-green: #148661;
}
.admin-dispenses-page { padding-top: 26px; padding-bottom: 42px; color: var(--dispenses-ink); }
.admin-dispenses-page > .app-container,
.dispense-module-toolbar > .app-container { max-width: 1440px; }
.dispenses-page-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 27px 30px; margin-bottom: 18px; background: linear-gradient(125deg,#113e34,#17654f 68%,#1f8062); border-radius: 22px; box-shadow: 0 14px 36px rgba(20,91,70,.15); }
.dispenses-breadcrumb { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 18px; color: rgba(255,255,255,.72); font-size: 11px; font-weight: 750; }
.dispenses-breadcrumb i { color: inherit; }
.dispenses-breadcrumb:hover { color: #fff; }
.dispenses-eyebrow { display: block; margin-bottom: 4px; color: #8ee0c3; font-size: 9px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.dispenses-eyebrow--dark { color: var(--dispenses-green); }
.dispenses-page-hero h1 { margin: 0; color: #fff; font-size: clamp(28px,4vw,38px); font-weight: 850; letter-spacing: -.035em; }
.dispenses-page-hero p { margin: 6px 0 0; color: rgba(255,255,255,.72); font-size: 12px; }
.dispenses-hero-summary { display: grid; min-width: 120px; padding: 12px 16px; color: #fff; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); border-radius: 14px; }
.dispenses-hero-summary span { color: #a7d8c8; font-size: 8px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.dispenses-hero-summary strong { font-size: 23px; line-height: 1.1; }
.dispenses-hero-summary small { color: rgba(255,255,255,.7); font-size: 8px; }

.dispenses-panel { overflow: hidden; background: var(--dispenses-surface); border: 1px solid var(--dispenses-line); border-radius: 20px; box-shadow: 0 12px 32px rgba(25,67,56,.055); }
.dispenses-panel__header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 21px 23px; border-bottom: 1px solid var(--dispenses-line); }
.dispenses-panel__header h2 { margin: 0; color: var(--dispenses-ink); font-size: 15px; font-weight: 850; }
.dispenses-panel__header p { margin: 4px 0 0; color: var(--dispenses-muted); font-size: 10px; }
.dispenses-filter-form { display: flex; align-items: center; justify-content: flex-end; gap: 7px; flex-wrap: wrap; }
.dispenses-search-input { position: relative; width: 250px; }
.dispenses-search-input i { position: absolute; top: 50%; left: 12px; color: #7c918a; font-size: 16px; transform: translateY(-50%); }
.dispenses-search-input input,
.dispenses-filter-form select { min-height: 39px; color: var(--dispenses-ink); background: var(--dispenses-soft); border: 1px solid transparent; border-radius: 10px; outline: 0; font-size: 10px; }
.dispenses-search-input input { width: 100%; padding: 0 12px 0 36px; }
.dispenses-filter-form select { width: 145px; padding: 0 28px 0 11px; font-weight: 700; }
.dispenses-search-input input:focus,
.dispenses-filter-form select:focus { background: var(--dispenses-surface); border-color: #78c9ad; box-shadow: 0 0 0 3px rgba(20,134,97,.09); }
.dispenses-primary-btn,
.dispenses-secondary-btn { display: inline-flex; min-height: 39px; padding: 0 14px; align-items: center; justify-content: center; gap: 7px; border-radius: 10px; font-size: 10px; font-weight: 850; white-space: nowrap; }
.dispenses-primary-btn { color: #fff !important; background: var(--dispenses-green) !important; border-color: var(--dispenses-green) !important; }
.dispenses-primary-btn i { color: inherit; }
.dispenses-secondary-btn { color: #286352 !important; background: #edf7f3 !important; border: 1px solid #d8ebe4 !important; }
.dispenses-secondary-btn i { color: inherit; }
.dispenses-clear-link { color: var(--dispenses-muted); font-size: 9px; font-weight: 750; }
.dispenses-clear-link:hover { color: var(--dispenses-green); }

.dispenses-table { margin: 0; }
.dispenses-table > :not(caption) > * > * { padding: 15px 19px; vertical-align: middle; border-bottom-color: var(--dispenses-line); }
.dispenses-table thead th { color: #81918c; background: var(--dispenses-soft); font-size: 9px; font-weight: 850; letter-spacing: .075em; text-transform: uppercase; white-space: nowrap; }
.dispenses-table tbody tr:last-child td { border-bottom: 0; }
.dispenses-table tbody tr:hover { background: #fbfdfc; }
.dispenses-person { display: flex; align-items: center; gap: 12px; min-width: 160px; }
.dispenses-person > div { display: flex; flex-direction: column; }
.dispenses-person a { color: var(--dispenses-ink); font-size: 12px; font-weight: 850; }
.dispenses-person a:hover { color: var(--dispenses-green); }
.dispenses-person span { margin-top: 2px; color: var(--dispenses-muted); font-size: 8px; }
.dispense-avatar { position: relative; display: inline-grid; flex: 0 0 auto; place-items: center; color: #fff; background: linear-gradient(145deg,#60756e,#859890); border: 3px solid var(--dispenses-surface); border-radius: 30%; box-shadow: 0 0 0 1px var(--dispenses-line),0 7px 16px rgba(25,67,56,.1); }
.dispense-avatar--sm { width: 44px; height: 44px; border-width: 2px; border-radius: 13px; }
.dispense-avatar--md { width: 58px; height: 58px; border-radius: 17px; }
.dispense-avatar--lg { width: 78px; height: 78px; border-radius: 22px; }
.dispense-avatar--pending { background: linear-gradient(145deg,#9a6b24,#c7923f); }
.dispense-avatar--completed { background: linear-gradient(145deg,#177557,#33a27c); }
.dispense-avatar--query { background: linear-gradient(145deg,#7553a0,#9877bc); }
.dispense-avatar--terminated { background: linear-gradient(145deg,#9e4855,#c66c78); }
.dispense-avatar__initials { color: #fff !important; font-size: 18px; font-weight: 850; }
.dispense-avatar--sm .dispense-avatar__initials { font-size: 12px; }
.dispense-avatar--lg .dispense-avatar__initials { font-size: 23px; }
.dispense-avatar__type { position: absolute; right: -5px; bottom: -5px; display: grid; width: 21px; height: 21px; place-items: center; color: var(--dispenses-green); background: var(--dispenses-surface); border: 1px solid var(--dispenses-line); border-radius: 7px; }
.dispense-avatar__type i { color: inherit; font-size: 11px; }
.dispense-order-link { color: var(--dispenses-green); font-size: 10px; font-weight: 850; }
.dispense-status { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 999px; font-size: 8px; font-weight: 800; }
.dispense-status i { width: 6px; height: 6px; flex: 0 0 6px; background: currentColor; border-radius: 50%; }
.dispense-status--pending { color: #97651b; background: #fff3dc; }
.dispense-status--completed { color: #187254; background: #e6f5ee; }
.dispense-status--query { color: #7253a7; background: #f1eafb; }
.dispense-status--terminated { color: #a04750; background: #fae9eb; }
.dispense-status--default { color: #64746e; background: #edf1ef; }
.dispenses-date { display: block; color: var(--dispenses-ink); font-size: 10px; font-weight: 750; white-space: nowrap; }
.dispenses-time { display: block; margin-top: 2px; color: var(--dispenses-muted); font-size: 8px; }
.dispenses-muted { color: #96a59f; font-size: 9px; }
.dispense-claim-list { display: flex; gap: 5px; flex-wrap: wrap; }
.dispense-claim-list a { display: inline-flex; align-items: center; gap: 4px; padding: 5px 7px; color: #24728a; background: #e8f5f8; border-radius: 8px; font-size: 8px; font-weight: 800; }
.dispense-claim-list i { color: inherit; }
.dispenses-view-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 11px; color: var(--dispenses-green); background: #edf7f3; border-radius: 9px; font-size: 9px; font-weight: 850; }
.dispenses-view-btn i { color: inherit; font-size: 12px; }
.dispenses-view-btn:hover { color: #fff; background: var(--dispenses-green); }
.dispenses-pagination { padding: 17px 22px; border-top: 1px solid var(--dispenses-line); }
.dispenses-empty { display: flex; min-height: 240px; padding: 30px; align-items: center; justify-content: center; flex-direction: column; text-align: center; }
.dispenses-empty > span { display: grid; width: 50px; height: 50px; margin-bottom: 12px; place-items: center; color: var(--dispenses-green); background: #e8f5f0; border-radius: 15px; }
.dispenses-empty > span i { color: inherit; font-size: 23px; }
.dispenses-empty strong { color: var(--dispenses-ink); font-size: 13px; }
.dispenses-empty p { margin: 5px 0 0; color: var(--dispenses-muted); font-size: 10px; }

/* Dispense detail workspace */
.dispense-show-toolbar { display: none !important; }
.dispense-detail-page { padding-top: 18px; }
.dispense-page-topbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 15px; }
.dispense-page-topbar > span { color: #91a09b; font-size: 9px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.dispenses-back-link { display: inline-flex; align-items: center; gap: 7px; color: var(--dispenses-muted); font-size: 11px; font-weight: 750; }
.dispenses-back-link i { color: inherit; }
.dispenses-back-link:hover { color: var(--dispenses-green); }
.dispense-case-hero { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 20px; padding: 25px 27px 0; margin-bottom: 17px; background: linear-gradient(135deg,#fff,#f3f9f6); border: 1px solid var(--dispenses-line); border-radius: 20px; box-shadow: 0 12px 32px rgba(25,67,56,.055); }
.dispense-case-identity { display: flex; min-width: 0; align-items: center; gap: 17px; }
.dispense-case-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dispense-case-title h1 { margin: 0; color: var(--dispenses-ink); font-size: 24px; font-weight: 850; letter-spacing: -.03em; }
.dispense-case-identity p { margin: 5px 0 0; color: var(--dispenses-muted); font-size: 10px; font-weight: 650; }
.dispense-case-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.dispense-case-meta { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(4,minmax(0,1fr)); margin: 4px -27px 0; background: rgba(244,248,246,.82); border-top: 1px solid var(--dispenses-line); border-radius: 0 0 20px 20px; }
.dispense-case-meta > div { display: flex; min-width: 0; padding: 14px 20px; flex-direction: column; border-right: 1px solid var(--dispenses-line); }
.dispense-case-meta > div:last-child { border-right: 0; }
.dispense-case-meta span { color: var(--dispenses-muted); font-size: 8px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.dispense-case-meta strong { overflow: hidden; margin-top: 4px; color: var(--dispenses-ink); font-size: 11px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.dispense-case-meta small { margin-top: 2px; color: #94a29d; font-size: 8px; }
.dispense-detail-page .stepper { display: block !important; }
.dispense-detail-page .stepper > .card:first-child { width: 100% !important; margin-bottom: 17px; }
.dispense-detail-page .stepper > .card:first-child .card-body { padding: 12px 16px !important; }
.dispense-detail-page .stepper-nav { display: grid; grid-template-columns: repeat(7,minmax(115px,1fr)); gap: 5px; overflow-x: auto; }
.dispense-detail-page .stepper-item { min-width: 115px; padding: 0 !important; }
.dispense-detail-page .stepper-wrapper { display: flex; padding: 9px 10px; align-items: center; gap: 8px; background: var(--dispenses-soft); border: 1px solid transparent; border-radius: 11px; }
.dispense-detail-page .stepper-item.current .stepper-wrapper { background: #eef8f4; border-color: #b9dfd1; }
.dispense-detail-page .stepper-icon { width: 29px !important; height: 29px !important; flex: 0 0 29px; background: #e8f5f0 !important; border-radius: 8px !important; }
.dispense-detail-page .stepper-number { color: var(--dispenses-green) !important; font-size: 10px; font-weight: 850; }
.dispense-detail-page .stepper-title { overflow: hidden; color: var(--dispenses-ink) !important; font-size: 9px !important; text-overflow: ellipsis; white-space: nowrap; }
.dispense-detail-page .stepper-desc,
.dispense-detail-page .stepper-line { display: none !important; }
.dispense-detail-page .stepper > .card:last-child { display: block !important; width: 100%; }
.dispense-detail-page .stepper > .card:last-child > .card-body { width: 100% !important; max-width: none !important; padding: 27px 30px !important; }
.dispense-detail-page [data-kt-stepper-element="content"] > .w-100 > .pb-10 { padding-bottom: 18px !important; margin-bottom: 20px; border-bottom: 1px solid var(--dispenses-line); }
.dispense-detail-page [data-kt-stepper-element="content"] > .w-100 > .pb-10 h2 { color: var(--dispenses-ink) !important; font-size: 17px; font-weight: 850 !important; }
.dispense-detail-page [data-kt-stepper-element="content"] .card { border: 1px solid var(--dispenses-line); border-radius: 15px; box-shadow: none; }
.dispense-detail-page #kt_user_view_details .pb-5 { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1px; padding: 1px !important; overflow: hidden; background: var(--dispenses-line); border-radius: 12px; }
.dispense-detail-page #kt_user_view_details .fw-bold.mt-5 { padding: 13px 15px 2px; margin: 0 !important; color: var(--dispenses-muted); background: var(--dispenses-surface); font-size: 8px; letter-spacing: .06em; text-transform: uppercase; }
.dispense-detail-page #kt_user_view_details .text-gray-600 { min-height: 40px; padding: 3px 15px 13px; color: var(--dispenses-ink) !important; background: var(--dispenses-surface); font-size: 10px; }
.dispense-detail-page #kt_user_view_details .text-gray-600 a { color: inherit !important; }
.dispense-detail-page .separator + br + .fw-bold { margin-top: 18px !important; color: var(--dispenses-ink); font-size: 12px; }
.dispense-detail-page form[action*="/status"] { max-width: 560px; padding: 18px; margin-top: 10px; background: var(--dispenses-soft); border: 1px solid var(--dispenses-line); border-radius: 13px; }
.dispense-detail-page .form-control { min-height: 41px; color: var(--dispenses-ink); background: var(--dispenses-surface); border-color: var(--dispenses-line); border-radius: 10px; font-size: 10px; }
.dispense-detail-page textarea.form-control { padding: 11px; }

/* Related dispense screens */
.dispense-module-toolbar { padding-top: 20px !important; padding-bottom: 8px !important; }
.dispense-module-toolbar .app-toolbar-wrapper { min-height: 86px; padding: 18px 23px; background: linear-gradient(135deg,#fff,#f4faf7); border: 1px solid var(--dispenses-line); border-radius: 18px; box-shadow: 0 10px 28px rgba(25,67,56,.05); }
.dispense-module-toolbar .page-heading { color: var(--dispenses-ink) !important; font-size: 20px !important; letter-spacing: -.02em; }
.dispense-module-toolbar .breadcrumb-item,
.dispense-module-toolbar .breadcrumb-item a { color: var(--dispenses-muted) !important; font-size: 9px; }
.admin-dispenses-page .card { border: 1px solid var(--dispenses-line); border-radius: 18px; box-shadow: 0 10px 28px rgba(25,67,56,.05); }
.admin-dispenses-page .card-header { min-height: 64px; padding-right: 22px; padding-left: 22px; border-bottom-color: var(--dispenses-line); }
.admin-dispenses-page .card-header h2,
.admin-dispenses-page .card-header h3,
.admin-dispenses-page .card-label { color: var(--dispenses-ink); font-size: 14px !important; font-weight: 850 !important; }
.admin-dispenses-page .form-label,
.admin-dispenses-page label { color: var(--dispenses-ink); font-size: 10px; font-weight: 750; }
.admin-dispenses-page .form-control,
.admin-dispenses-page .form-select { min-height: 41px; color: var(--dispenses-ink); background-color: var(--dispenses-soft); border-color: transparent; border-radius: 10px; font-size: 10px; }
.admin-dispenses-page .table thead th { padding: 11px 13px !important; color: #81918c !important; background: var(--dispenses-soft); font-size: 9px !important; letter-spacing: .06em; text-transform: uppercase; }
.admin-dispenses-page .table tbody td { padding: 13px !important; color: var(--dispenses-ink); border-bottom-color: var(--dispenses-line); font-size: 10px; vertical-align: middle; }
.admin-dispenses-page .btn { border-radius: 10px; font-size: 10px; font-weight: 750; }
.dispense-edit-page .form.d-flex,
.dispense-create-page .stepper { gap: 18px !important; }
.dispense-edit-page .card-flush { overflow: hidden; }
.dispense-create-page .stepper > .card { width: 100%; }
.dispense-system-page .card-body { padding: 20px 22px; }
.dispense-deleted-page .stepper { display: block !important; }
.dispense-deleted-page .stepper > .card:first-child { width: 100% !important; margin-bottom: 17px; }
.dispense-deleted-page .stepper > .card:first-child .card-body { padding: 12px 16px !important; }
.dispense-deleted-page .stepper-nav { display: grid; grid-template-columns: repeat(7,minmax(115px,1fr)); gap: 5px; overflow-x: auto; }
.dispense-deleted-page .stepper-item { min-width: 115px; padding: 0 !important; }
.dispense-deleted-page .stepper-wrapper { display: flex; padding: 9px 10px; align-items: center; gap: 8px; background: var(--dispenses-soft); border-radius: 11px; }
.dispense-deleted-page .stepper-icon { width: 29px !important; height: 29px !important; flex: 0 0 29px; background: #f7e8ea !important; border-radius: 8px !important; }
.dispense-deleted-page .stepper-number { color: #a04750 !important; font-size: 10px; font-weight: 850; }
.dispense-deleted-page .stepper-title { overflow: hidden; color: var(--dispenses-ink) !important; font-size: 9px !important; text-overflow: ellipsis; white-space: nowrap; }
.dispense-deleted-page .stepper-desc,
.dispense-deleted-page .stepper-line { display: none !important; }
.dispense-deleted-page .stepper > .card:last-child { width: 100%; }
.dispense-deleted-page .stepper > .card:last-child > .card-body { width: 100% !important; max-width: none !important; padding: 27px 30px !important; }

html[data-bs-theme="dark"] .dispense-module-toolbar,
html[data-bs-theme="dark"] .admin-dispenses-page {
    --dispenses-ink: #e8f3ef;
    --dispenses-muted: #91a7a0;
    --dispenses-line: #29453c;
    --dispenses-surface: #14261f;
    --dispenses-soft: #192f27;
}
html[data-bs-theme="dark"] .dispense-module-toolbar .app-toolbar-wrapper,
html[data-bs-theme="dark"] .dispense-case-hero { background: linear-gradient(135deg,#14261f,#192f27); }
html[data-bs-theme="dark"] .dispense-case-meta { background: #192f27; }
html[data-bs-theme="dark"] .dispenses-table tbody tr:hover { background: #172b24; }
html[data-bs-theme="dark"] .dispenses-secondary-btn { color: #a8ddca !important; background: #1c3a31 !important; border-color: #31584b !important; }

@media (max-width: 1199.98px) {
    .dispenses-panel__header { align-items: flex-start; flex-direction: column; }
    .dispenses-filter-form { width: 100%; justify-content: flex-start; }
}
@media (max-width: 991.98px) {
    .dispense-case-hero { grid-template-columns: 1fr; }
    .dispense-case-actions { justify-content: flex-start; }
    .dispense-case-meta { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .dispense-case-meta > div:nth-child(2) { border-right: 0; }
    .dispense-case-meta > div:nth-child(-n+2) { border-bottom: 1px solid var(--dispenses-line); }
    .dispense-edit-page .form.d-flex { flex-direction: column !important; }
    .dispense-edit-page .w-lg-400px { width: 100% !important; }
}
@media (max-width: 767.98px) {
    .admin-dispenses-page { padding-top: 16px; }
    .dispenses-page-hero { align-items: flex-start; padding: 22px; flex-direction: column; }
    .dispenses-hero-summary { width: 100%; }
    .dispenses-panel__header { padding: 18px; }
    .dispenses-filter-form { align-items: stretch; }
    .dispenses-search-input { width: 100%; flex: 1 0 100%; }
    .dispenses-filter-form select { width: auto; flex: 1 1 auto; }
    .dispense-case-hero { padding: 20px 18px 0; }
    .dispense-case-title h1 { font-size: 19px; }
    .dispense-case-actions { display: grid; grid-template-columns: 1fr 1fr; }
    .dispense-case-meta { margin-right: -18px; margin-left: -18px; grid-template-columns: 1fr; }
    .dispense-case-meta > div { border-right: 0; border-bottom: 1px solid var(--dispenses-line); }
    .dispense-detail-page .stepper > .card:last-child > .card-body { padding: 20px 18px !important; }
    .dispense-detail-page #kt_user_view_details .pb-5 { grid-template-columns: 1fr; }
    .dispense-module-toolbar .app-toolbar-wrapper { min-height: auto; padding: 16px 18px; }
}

/* End-to-end admin workflow: reviews, tenders, quotations, awards, orders and claims */
.workflow-module-toolbar,
.admin-workflow-page {
    --workflow-ink: #18352d;
    --workflow-muted: #71837c;
    --workflow-line: #e1ebe7;
    --workflow-surface: #fff;
    --workflow-soft: #f4f8f6;
    --workflow-green: #148661;
}

.workflow-module-toolbar { padding-top: 22px !important; padding-bottom: 9px !important; }
.workflow-module-toolbar > .app-container,
.admin-workflow-page > .app-container { width: 100%; max-width: 1440px; }
.workflow-module-toolbar .app-toolbar-wrapper { min-height: 118px; padding: 23px 28px; align-items: flex-end !important; background: linear-gradient(125deg,#113e34,#17654f 68%,#1f8062); border-radius: 21px; box-shadow: 0 14px 36px rgba(20,91,70,.14); }
.workflow-module-toolbar .page-heading { color: #fff !important; font-size: clamp(24px,3vw,32px) !important; font-weight: 850 !important; letter-spacing: -.03em; }
.workflow-module-toolbar .breadcrumb { margin-top: 7px !important; }
.workflow-module-toolbar .breadcrumb-item,
.workflow-module-toolbar .breadcrumb-item a { color: rgba(255,255,255,.7) !important; font-size: 9px; font-weight: 700; }
.workflow-module-toolbar .breadcrumb .bullet { background: rgba(255,255,255,.45) !important; }
.admin-workflow-page { padding-top: 10px; padding-bottom: 42px; color: var(--workflow-ink); }

.admin-workflow-page .card { border: 1px solid var(--workflow-line); border-radius: 18px; box-shadow: 0 10px 28px rgba(25,67,56,.05); }
.admin-workflow-page .card-flush { overflow: hidden; }
.admin-workflow-page .card-header { min-height: 65px; padding-right: 22px; padding-left: 22px; border-bottom-color: var(--workflow-line); }
.admin-workflow-page .card-header.border-0 { border-bottom: 1px solid var(--workflow-line) !important; }
.admin-workflow-page .card-header h2,
.admin-workflow-page .card-header h3,
.admin-workflow-page .card-label { color: var(--workflow-ink); font-size: 14px !important; font-weight: 850 !important; }
.admin-workflow-page .card-header .text-muted { color: var(--workflow-muted) !important; font-size: 9px !important; }
.admin-workflow-page .card-body { color: var(--workflow-ink); }
.admin-workflow-page .card > .card-body.py-3 { padding: 18px 20px !important; }

.admin-workflow-page .table { margin-bottom: 0; }
.admin-workflow-page .table thead th,
.admin-workflow-page .table > thead > tr > th { padding: 11px 13px !important; color: #81918c !important; background: var(--workflow-soft); border-bottom: 1px solid var(--workflow-line); font-size: 9px !important; font-weight: 850 !important; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.admin-workflow-page .table thead a { color: inherit !important; }
.admin-workflow-page .table tbody td { padding: 13px !important; color: var(--workflow-ink); border-bottom-color: var(--workflow-line); font-size: 10px; vertical-align: middle; }
.admin-workflow-page .table tbody tr { transition: background .15s ease; }
.admin-workflow-page .table tbody tr:hover { background: #fbfdfc; }
.admin-workflow-page .table tbody tr:last-child td { border-bottom: 0; }
.admin-workflow-page .table .text-gray-900 { color: var(--workflow-ink) !important; font-size: 10px !important; font-weight: 800 !important; }
.admin-workflow-page .table .text-muted { color: var(--workflow-muted) !important; font-size: 9px !important; }
.admin-workflow-page .table .symbol { display: inline-grid; width: 30px !important; height: 30px !important; place-items: center; color: var(--workflow-green); background: #e8f5f0; border-radius: 9px; font-size: 9px; font-weight: 850; }

.admin-workflow-page .card-header .position-relative.my-1 { margin-top: 12px !important; }
.admin-workflow-page .card-header .position-relative.my-1 > i { z-index: 1; top: 50%; color: #799087; transform: translateY(-50%); }
.admin-workflow-page .card-header input.form-control { width: min(520px,55vw) !important; min-height: 40px; color: var(--workflow-ink); background: var(--workflow-soft); border: 1px solid transparent; border-radius: 10px; font-size: 10px; }
.admin-workflow-page .card-toolbar > .btn-icon { width: 39px; height: 39px; color: var(--workflow-green); background: #edf7f3; border-radius: 10px; }
.admin-workflow-page .menu-sub-dropdown { overflow: hidden; color: var(--workflow-ink); background: var(--workflow-surface); border: 1px solid var(--workflow-line); border-radius: 14px; box-shadow: 0 14px 38px rgba(20,62,49,.14); }
.admin-workflow-page .menu-sub-dropdown .separator { border-color: var(--workflow-line) !important; }

.admin-workflow-page .form-label,
.admin-workflow-page label { color: var(--workflow-ink); font-size: 10px; font-weight: 750; }
.admin-workflow-page .form-control,
.admin-workflow-page .form-select,
.admin-workflow-page .select2-selection { min-height: 41px; color: var(--workflow-ink); background-color: var(--workflow-soft) !important; border: 1px solid transparent !important; border-radius: 10px !important; font-size: 10px; }
.admin-workflow-page textarea.form-control { padding: 11px 13px; line-height: 1.6; }
.admin-workflow-page .form-control:focus,
.admin-workflow-page .form-select:focus { background-color: var(--workflow-surface) !important; border-color: #78c9ad !important; box-shadow: 0 0 0 3px rgba(20,134,97,.09); }
.admin-workflow-page .btn { border-radius: 10px; font-size: 10px; font-weight: 750; }
.admin-workflow-page .btn-primary { background: var(--workflow-green); border-color: var(--workflow-green); }
.admin-workflow-page .btn-light-primary { color: var(--workflow-green); background: #edf7f3; }
.admin-workflow-page .btn-icon { display: inline-grid; place-items: center; }
.admin-workflow-page .badge { padding: 5px 8px; border-radius: 999px; font-size: 8px; font-weight: 800; line-height: 1.3; }
.admin-workflow-page .pagination { margin-top: 17px; }

/* Workflow detail pages */
.admin-workflow-page .stepper { gap: 18px !important; }
.admin-workflow-page .stepper.stepper-column { display: block !important; }
.admin-workflow-page .stepper.stepper-column > .card:first-child { width: 100% !important; margin-bottom: 17px; }
.admin-workflow-page .stepper.stepper-column > .card:first-child .card-body { padding: 12px 16px !important; }
.admin-workflow-page .stepper-nav { display: grid; grid-template-columns: repeat(7,minmax(115px,1fr)); gap: 5px; overflow-x: auto; }
.admin-workflow-page .stepper-item { min-width: 115px; padding: 0 !important; }
.admin-workflow-page .stepper-wrapper { display: flex; padding: 9px 10px; align-items: center; gap: 8px; background: var(--workflow-soft); border: 1px solid transparent; border-radius: 11px; }
.admin-workflow-page .stepper-item.current .stepper-wrapper { background: #eef8f4; border-color: #b9dfd1; }
.admin-workflow-page .stepper-icon { width: 29px !important; height: 29px !important; flex: 0 0 29px; background: #e8f5f0 !important; border-radius: 8px !important; }
.admin-workflow-page .stepper-number { color: var(--workflow-green) !important; font-size: 10px; font-weight: 850; }
.admin-workflow-page .stepper-title { overflow: hidden; color: var(--workflow-ink) !important; font-size: 9px !important; text-overflow: ellipsis; white-space: nowrap; }
.admin-workflow-page .stepper-desc,
.admin-workflow-page .stepper-line { display: none !important; }
.admin-workflow-page .stepper.stepper-column > .card:last-child { display: block !important; width: 100%; }
.admin-workflow-page .stepper.stepper-column > .card:last-child > .card-body { width: 100% !important; max-width: none !important; padding: 27px 30px !important; }
.admin-workflow-page [data-kt-stepper-element="content"] > .w-100 > .pb-10 { padding-bottom: 18px !important; margin-bottom: 20px; border-bottom: 1px solid var(--workflow-line); }
.admin-workflow-page [data-kt-stepper-element="content"] h2 { color: var(--workflow-ink) !important; font-size: 17px; font-weight: 850 !important; }
.admin-workflow-page [data-kt-stepper-element="content"] .row { padding-bottom: 14px; margin-bottom: 14px !important; border-bottom: 1px solid var(--workflow-line); }
.admin-workflow-page [data-kt-stepper-element="content"] .card { box-shadow: none; }
.admin-workflow-page .notice { background: var(--workflow-soft) !important; border-color: var(--workflow-line) !important; border-radius: 12px !important; }
.admin-workflow-page .separator { border-color: var(--workflow-line); }

/* Large edit/create workspaces */
.admin-workflow-page .form.d-flex.flex-column.flex-lg-row { align-items: flex-start; gap: 18px; }
.admin-workflow-page .form.d-flex.flex-column.flex-lg-row > .w-lg-400px,
.admin-workflow-page .form.d-flex.flex-column.flex-lg-row > .w-lg-500px { position: sticky; top: 90px; margin-right: 0 !important; }
.admin-workflow-page .scroll-y { scrollbar-width: thin; scrollbar-color: #b7c9c2 transparent; }
.admin-workflow-page .card-flush.py-4 .card-body { padding: 18px 22px; }
.admin-workflow-page .modal-content { overflow: hidden; color: var(--workflow-ink); background: var(--workflow-surface); border: 0; border-radius: 17px; box-shadow: 0 18px 55px rgba(15,45,36,.2); }
.admin-workflow-page .modal-header,
.admin-workflow-page .modal-footer { padding: 16px 19px; border-color: var(--workflow-line); }
.admin-workflow-page .modal-body { padding: 19px; }

/* Module identity accents */
.workflow-reviews-toolbar .app-toolbar-wrapper::after,
.workflow-tenders-toolbar .app-toolbar-wrapper::after,
.workflow-quotations-toolbar .app-toolbar-wrapper::after,
.workflow-awards-toolbar .app-toolbar-wrapper::after,
.workflow-orders-toolbar .app-toolbar-wrapper::after,
.workflow-claims-toolbar .app-toolbar-wrapper::after { display: inline-grid; width: 48px; height: 48px; margin-left: auto; place-items: center; color: #d7f5e9; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); border-radius: 14px; font-size: 17px; font-weight: 850; }
.workflow-reviews-toolbar .app-toolbar-wrapper::after { content: "R"; }
.workflow-tenders-toolbar .app-toolbar-wrapper::after { content: "T"; }
.workflow-quotations-toolbar .app-toolbar-wrapper::after { content: "Q"; }
.workflow-awards-toolbar .app-toolbar-wrapper::after { content: "A"; }
.workflow-orders-toolbar .app-toolbar-wrapper::after { content: "O"; }
.workflow-claims-toolbar .app-toolbar-wrapper::after { content: "C"; }

html[data-bs-theme="dark"] .workflow-module-toolbar,
html[data-bs-theme="dark"] .admin-workflow-page {
    --workflow-ink: #e8f3ef;
    --workflow-muted: #91a7a0;
    --workflow-line: #29453c;
    --workflow-surface: #14261f;
    --workflow-soft: #192f27;
}
html[data-bs-theme="dark"] .admin-workflow-page .table tbody tr:hover { background: #172b24; }
html[data-bs-theme="dark"] .admin-workflow-page .stepper-item.current .stepper-wrapper { background: #1c3a31; border-color: #31584b; }

@media (max-width: 1199.98px) {
    .admin-workflow-page .form.d-flex.flex-column.flex-lg-row { flex-direction: column !important; }
    .admin-workflow-page .form.d-flex.flex-column.flex-lg-row > .w-lg-400px,
    .admin-workflow-page .form.d-flex.flex-column.flex-lg-row > .w-lg-500px { position: static; width: 100% !important; }
}
@media (max-width: 767.98px) {
    .workflow-module-toolbar { padding-top: 15px !important; }
    .workflow-module-toolbar .app-toolbar-wrapper { min-height: 100px; padding: 19px 20px; }
    .workflow-module-toolbar .page-heading { font-size: 21px !important; }
    .workflow-module-toolbar .app-toolbar-wrapper::after { display: none; }
    .admin-workflow-page { padding-top: 7px; }
    .admin-workflow-page .card-header { align-items: flex-start; padding: 18px; flex-direction: column; }
    .admin-workflow-page .card-header input.form-control { width: 100% !important; }
    .admin-workflow-page .card-toolbar { width: 100%; justify-content: flex-start; }
    .admin-workflow-page .stepper.stepper-column > .card:last-child > .card-body { padding: 20px 18px !important; }
}

/* Simple, clickable application workflow */
.application-detail-page .application-workflow-card { padding: 18px 20px 20px !important; }
.application-workflow-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 13px; }
.application-workflow-heading h2 { margin: 0; color: var(--applications-ink); font-size: 14px; font-weight: 850; }
.application-workflow-heading > span { color: var(--applications-muted); font-size: 8px; font-weight: 750; }
.application-detail-page .application-workflow-nav { display: grid !important; grid-template-columns: repeat(8,minmax(105px,1fr)); gap: 6px; padding: 0; overflow-x: auto; }
.application-detail-page .application-workflow-step { min-width: 105px; color: inherit; text-decoration: none; }
.application-detail-page .application-workflow-step .stepper-wrapper { min-height: 48px; padding: 9px 10px; align-items: center; gap: 8px; background: var(--applications-surface); border: 1px solid var(--applications-line); border-radius: 10px; transition: border-color .15s ease,background .15s ease; }
.application-detail-page a.application-workflow-step:hover .stepper-wrapper { background: #f5faf8; border-color: #8dcbb5; }
.application-detail-page a.application-workflow-step:focus-visible { outline: 0; }
.application-detail-page a.application-workflow-step:focus-visible .stepper-wrapper { border-color: var(--applications-green); box-shadow: 0 0 0 3px rgba(20,134,97,.12); }
.application-detail-page .application-workflow-step.current .stepper-wrapper { background: var(--applications-green); border-color: var(--applications-green); }
.application-detail-page .application-workflow-step .stepper-icon { display: inline-grid; width: 25px !important; height: 25px !important; flex: 0 0 25px; place-items: center; color: var(--applications-green); background: #e8f5f0 !important; border-radius: 50% !important; }
.application-detail-page .application-workflow-step .stepper-icon i { color: inherit; font-size: 11px; }
.application-detail-page .application-workflow-step.current .stepper-icon { color: #fff; background: rgba(255,255,255,.18) !important; }
.application-detail-page .application-workflow-step.current .stepper-number { color: #fff !important; }
.application-detail-page .application-workflow-step .stepper-label { min-width: 0; }
.application-detail-page .application-workflow-step .stepper-title { overflow: hidden; color: var(--applications-ink) !important; font-size: 8px !important; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.application-detail-page .application-workflow-step.current .stepper-title { color: #fff !important; }
.application-detail-page .application-workflow-step.is-locked { cursor: not-allowed; opacity: .5; }
.application-detail-page .application-workflow-step.is-locked .stepper-wrapper { background: var(--applications-soft); }
.application-detail-page .application-workflow-step.is-locked .stepper-icon { color: #879690; background: #e7ecea !important; }

html[data-bs-theme="dark"] .application-detail-page a.application-workflow-step:hover .stepper-wrapper { background: #193128; border-color: #39725f; }
html[data-bs-theme="dark"] .application-detail-page .application-workflow-step.is-locked .stepper-icon { background: #243c34 !important; }

@media (max-width: 1199.98px) {
    .application-detail-page .application-workflow-nav { grid-template-columns: repeat(8,125px); }
}
@media (max-width: 767.98px) {
    .application-detail-page .application-workflow-card { padding: 16px !important; }
    .application-detail-page .application-workflow-nav { grid-template-columns: repeat(8,118px); margin-right: -16px; padding-right: 16px; }
}

/* Application attachments */
.application-attachments-panel { overflow: hidden; background: var(--applications-soft); border: 1px solid var(--applications-line); border-radius: 14px; }
.application-attachments-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; padding: 12px; }
.application-attachment-file { display: flex; min-width: 0; padding: 10px 11px; align-items: center; gap: 9px; color: var(--applications-ink); background: var(--applications-surface); border: 1px solid var(--applications-line); border-radius: 10px; transition: border-color .15s ease,box-shadow .15s ease; }
.application-attachment-file:hover { color: var(--applications-ink); border-color: #8dcbb5; box-shadow: 0 6px 16px rgba(22,93,70,.08); }
.application-attachment-icon { display: grid; width: 31px; height: 31px; flex: 0 0 31px; place-items: center; color: var(--applications-green); background: #e8f5f0; border-radius: 9px; }
.application-attachment-icon i { color: inherit; font-size: 15px; }
.application-attachment-file > span:nth-child(2) { display: flex; min-width: 0; flex: 1; flex-direction: column; }
.application-attachment-file strong { overflow: hidden; color: inherit; font-size: 9px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.application-attachment-file small { margin-top: 2px; color: var(--applications-muted); font-size: 7px; }
.application-attachment-open { color: #8ca098; font-size: 11px; }
.application-attachments-empty { display: flex; min-height: 52px; grid-column: 1 / -1; align-items: center; justify-content: center; gap: 7px; color: var(--applications-muted); font-size: 9px; }
.application-attachments-empty i { color: #9aaba5; font-size: 16px; }
.application-attachment-actions { display: flex; padding: 10px 12px; justify-content: flex-end; gap: 8px; background: var(--applications-surface); border-top: 1px solid var(--applications-line); }
.application-detail-page .application-attachment-move,
.application-detail-page .application-attachment-modal-cancel { color: #41675b; background: #edf5f2; border: 1px solid #dceae5; }
.application-detail-page .application-attachment-upload { color: #fff; background: var(--applications-green); border: 1px solid var(--applications-green); box-shadow: 0 5px 13px rgba(20,134,97,.16); }
.application-detail-page .application-attachment-move:hover,
.application-detail-page .application-attachment-modal-cancel:hover { color: var(--applications-green); background: #e5f2ed; border-color: #beddd1; }
.application-detail-page .application-attachment-upload:hover { color: #fff; background: #107453; border-color: #107453; }
.application-detail-page .application-attachment-move i,
.application-detail-page .application-attachment-upload i { color: inherit; }
.application-attachments-modal-list { display: grid; gap: 7px; margin-top: 7px; }

html[data-bs-theme="dark"] .application-attachment-icon { background: #1c3a31; }
html[data-bs-theme="dark"] .application-detail-page .application-attachment-move,
html[data-bs-theme="dark"] .application-detail-page .application-attachment-modal-cancel { color: #b5d4c8; background: #1b332b; border-color: #31584b; }

@media (max-width: 767.98px) {
    .application-attachments-list { grid-template-columns: 1fr; }
    .application-attachment-actions { align-items: stretch; flex-direction: column-reverse; }
    .application-attachment-actions .btn { width: 100%; }
}

/* Shared workflow navigation on every admin detail page */
.admin-workflow-progress { padding: 18px 20px 20px; margin-bottom: 17px; border: 1px solid var(--workflow-line,var(--applications-line,var(--dispenses-line,#e1ebe7))); border-radius: 16px; box-shadow: 0 8px 24px rgba(25,67,56,.045); }
.admin-workflow-progress .application-workflow-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 13px; }
.admin-workflow-progress .application-workflow-heading h2 { margin: 0; color: var(--workflow-ink,var(--applications-ink,var(--dispenses-ink,#18352d))); font-size: 14px; font-weight: 850; }
.admin-workflow-progress .application-workflow-heading > span { color: var(--workflow-muted,var(--applications-muted,var(--dispenses-muted,#71837c))); font-size: 8px; font-weight: 750; }
.admin-workflow-progress .application-workflow-nav { display: grid; grid-template-columns: repeat(8,minmax(105px,1fr)); gap: 6px; overflow-x: auto; }
.admin-workflow-progress .application-workflow-step { min-width: 105px; color: inherit; text-decoration: none; }
.admin-workflow-progress .application-workflow-step .stepper-wrapper { display: flex; min-height: 48px; padding: 9px 10px; align-items: center; gap: 8px; background: var(--workflow-surface,var(--applications-surface,var(--dispenses-surface,#fff))); border: 1px solid var(--workflow-line,var(--applications-line,var(--dispenses-line,#e1ebe7))); border-radius: 10px; transition: border-color .15s ease,background .15s ease; }
.admin-workflow-progress a.application-workflow-step:hover .stepper-wrapper { background: #f5faf8; border-color: #8dcbb5; }
.admin-workflow-progress a.application-workflow-step:focus-visible { outline: 0; }
.admin-workflow-progress a.application-workflow-step:focus-visible .stepper-wrapper { border-color: #148661; box-shadow: 0 0 0 3px rgba(20,134,97,.12); }
.admin-workflow-progress .application-workflow-step.current .stepper-wrapper { background: #148661; border-color: #148661; }
.admin-workflow-progress .application-workflow-step .stepper-icon { display: inline-grid; width: 25px !important; height: 25px !important; flex: 0 0 25px; place-items: center; color: #148661; background: #e8f5f0 !important; border-radius: 50% !important; }
.admin-workflow-progress .application-workflow-step .stepper-icon i { color: inherit; font-size: 11px; }
.admin-workflow-progress .application-workflow-step .stepper-number { color: #148661 !important; font-size: 9px; font-weight: 850; }
.admin-workflow-progress .application-workflow-step.current .stepper-icon { color: #fff; background: rgba(255,255,255,.18) !important; }
.admin-workflow-progress .application-workflow-step.current .stepper-number { color: #fff !important; }
.admin-workflow-progress .application-workflow-step .stepper-label { min-width: 0; }
.admin-workflow-progress .application-workflow-step .stepper-title { display: block; overflow: hidden; color: var(--workflow-ink,var(--applications-ink,var(--dispenses-ink,#18352d))) !important; font-size: 8px !important; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.admin-workflow-progress .application-workflow-step.current .stepper-title { color: #fff !important; }
.admin-workflow-progress .application-workflow-step.is-locked { cursor: not-allowed; opacity: .5; }
.admin-workflow-progress .application-workflow-step.is-locked .stepper-wrapper { background: var(--workflow-soft,var(--applications-soft,var(--dispenses-soft,#f4f8f6))); }
.admin-workflow-progress .application-workflow-step.is-locked .stepper-icon { color: #879690; background: #e7ecea !important; }

/* The shared component replaces the legacy static navigation card. */
.admin-workflow-progress + .stepper > .card:first-child { display: none !important; }
.admin-workflow-progress + .stepper { display: block !important; }
.admin-workflow-progress + .stepper > .card:last-child { display: block !important; width: 100% !important; }
.admin-workflow-progress + .stepper > .card:last-child > .card-body { width: 100% !important; max-width: none !important; }

html[data-bs-theme="dark"] .admin-workflow-progress a.application-workflow-step:hover .stepper-wrapper { background: #193128; border-color: #39725f; }
html[data-bs-theme="dark"] .admin-workflow-progress .application-workflow-step.is-locked .stepper-icon { background: #243c34 !important; }

@media (max-width: 1199.98px) {
    .admin-workflow-progress .application-workflow-nav { grid-template-columns: repeat(8,125px); }
}
@media (max-width: 767.98px) {
    .admin-workflow-progress { padding: 16px; }
    .admin-workflow-progress .application-workflow-nav { grid-template-columns: repeat(8,118px); margin-right: -16px; padding-right: 16px; }
}

/* Quick-create and request-for-quotation workspaces */
.workflow-form-intro { display: grid; grid-template-columns: auto minmax(0,1fr) auto auto; gap: 15px; padding: 19px 21px; margin-bottom: 16px; align-items: center; background: linear-gradient(135deg,#fff,#f3f9f6); border: 1px solid var(--workflow-line); border-radius: 16px; box-shadow: 0 8px 24px rgba(25,67,56,.045); }
.workflow-form-intro__icon { display: grid; width: 43px; height: 43px; place-items: center; color: var(--workflow-green); background: #e7f5ef; border-radius: 12px; }
.workflow-form-intro__icon i { color: inherit; font-size: 20px; }
.workflow-form-intro > div:nth-child(2) { min-width: 0; }
.workflow-form-intro > div:nth-child(2) > span { color: var(--workflow-green); font-size: 8px; font-weight: 850; letter-spacing: .075em; text-transform: uppercase; }
.workflow-form-intro h2 { margin: 2px 0 0; color: var(--workflow-ink); font-size: 17px; font-weight: 850; letter-spacing: -.02em; }
.workflow-form-intro p { margin: 4px 0 0; color: var(--workflow-muted); font-size: 9px; }
.workflow-form-intro__meta { display: flex; gap: 6px; }
.workflow-form-intro__meta > span { display: flex; padding: 8px 10px; flex-direction: column; color: var(--workflow-muted); background: var(--workflow-soft); border-radius: 9px; font-size: 7px; font-weight: 750; text-transform: uppercase; }
.workflow-form-intro__meta strong { margin-top: 2px; color: var(--workflow-ink); font-size: 9px; }
.workflow-form-back { display: inline-flex; min-height: 36px; padding: 0 12px; align-items: center; gap: 6px; color: #41675b; background: #edf5f2; border: 1px solid #dceae5; border-radius: 9px; font-size: 9px; font-weight: 800; white-space: nowrap; }
.workflow-form-back i { color: inherit; }
.workflow-form-back:hover { color: var(--workflow-green); border-color: #b9dacd; }

.workflow-form-page .workflow-form-stepper { display: block !important; }
.workflow-form-page .workflow-form-stepper > .card:first-child { display: none !important; }
.workflow-form-page .workflow-form-stepper > .card:last-child { display: block !important; width: 100% !important; }
.workflow-form-page .workflow-form-stepper > .card:last-child > .card-body { width: 100% !important; max-width: none !important; padding: 26px 29px !important; }
.workflow-form-page [data-kt-stepper-element="content"] > .w-100 > .pb-10 { padding-bottom: 17px !important; margin-bottom: 20px; border-bottom: 1px solid var(--workflow-line); }
.workflow-form-page [data-kt-stepper-element="content"] > .w-100 > .pb-10 h2 { margin: 0; color: var(--workflow-ink) !important; font-size: 18px; font-weight: 850 !important; }
.workflow-form-page #kt_create_account_form form > .mb-10.fv-row,
.workflow-form-page #kt_create_account_form form > .row.g-9 { padding: 17px 18px; margin-bottom: 13px !important; background: var(--workflow-soft); border: 1px solid var(--workflow-line); border-radius: 12px; }
.workflow-form-page #kt_create_account_form form > .row.g-9 { margin-right: 0; margin-left: 0; }
.workflow-form-page #kt_create_account_form form > .row.g-9 > [class*="col-"]:first-child { padding-left: 0; }
.workflow-form-page #kt_create_account_form form > .row.g-9 > [class*="col-"]:last-child { padding-right: 0; }
.workflow-form-page .form-label { margin-bottom: 7px !important; color: var(--workflow-ink); font-size: 9px; font-weight: 800; }
.workflow-form-page .form-control,
.workflow-form-page .form-select,
.workflow-form-page .select2-selection { min-height: 42px; background: var(--workflow-surface) !important; border: 1px solid var(--workflow-line) !important; }
.workflow-form-page textarea.form-control { min-height: 105px; }
.workflow-form-page .form-check-input { width: 17px; height: 17px; border-color: #b9cec6; }
.workflow-form-page .form-check-input:checked { background-color: var(--workflow-green); border-color: var(--workflow-green); }

.workflow-form-page .table { overflow: hidden; background: var(--workflow-surface); border: 1px solid var(--workflow-line); border-radius: 11px; }
.workflow-form-page .table thead th { padding: 10px 12px !important; background: #edf5f2 !important; }
.workflow-form-page .table tbody td { padding: 11px 12px !important; background: var(--workflow-surface); }
.workflow-form-page #map { height: 360px !important; overflow: hidden; border: 1px solid var(--workflow-line); border-radius: 12px; }
.workflow-form-page .fa-bounce { animation: none !important; }
.workflow-form-page .btn-info { color: #286352; background: #e8f5f0; border-color: #d2e9e0; box-shadow: none; }
.workflow-form-page .btn-info:hover { color: #fff; background: var(--workflow-green); border-color: var(--workflow-green); }
.workflow-form-page .btn-danger.btn-xs { color: #9b4650; background: #faebed; border-color: #f2d7da; }
.workflow-form-page .btn-danger.btn-xs:hover { color: #fff; background: #a94d58; }
.workflow-form-page [data-kt-stepper-action="previous"],
.workflow-form-page [data-kt-stepper-action="submit"] { display: none !important; }
.workflow-form-page .d-flex.flex-stack.pt-8,
.workflow-form-page .d-flex.justify-content-end.gap-3.pt-8 { padding-top: 17px !important; border-top: 1px solid var(--workflow-line); }
.workflow-form-page button[type="submit"].btn-primary { min-height: 41px; padding-right: 17px; padding-left: 17px; background: var(--workflow-green); border-color: var(--workflow-green); }
.workflow-form-page button[type="submit"].btn-primary:hover { background: #107453; border-color: #107453; }

.workflow-form-page .card-body.d-flex.flex-column.mb-9 { padding: 12px !important; margin-bottom: 0 !important; background: var(--workflow-surface); border: 1px solid var(--workflow-line); border-radius: 11px; }
.workflow-form-page .d-flex.align-items-center.position-relative.mb-7 { padding: 11px 12px 11px 17px; margin-bottom: 7px !important; background: var(--workflow-surface); border: 1px solid var(--workflow-line); border-radius: 10px; }
.workflow-form-page .d-flex.align-items-center.position-relative.mb-7:last-child { margin-bottom: 0 !important; }
.workflow-form-page .d-flex.align-items-center.position-relative.mb-7 > .position-absolute { background: #70bda2 !important; }
.workflow-form-page .d-flex.align-items-start.position-relative.mb-6 { border-color: var(--workflow-line) !important; background: var(--workflow-soft) !important; box-shadow: none !important; }
.workflow-form-page .badge { margin-bottom: 2px; }
.tender-rfq-page #kt_user_view_details .pb-5 { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1px; padding: 1px !important; overflow: hidden; background: var(--workflow-line); border-radius: 11px; }
.tender-rfq-page #kt_user_view_details .fw-bold.mt-5,
.tender-rfq-page #kt_user_view_details .text-gray-600 { padding: 10px 12px; margin: 0 !important; background: var(--workflow-surface); }
.tender-rfq-page #kt_user_view_details .fw-bold.mt-5 { padding-bottom: 2px; color: var(--workflow-muted); font-size: 8px; text-transform: uppercase; }
.tender-rfq-page #kt_user_view_details .text-gray-600 { padding-top: 2px; color: var(--workflow-ink) !important; font-size: 9px; }
.workflow-form-page .modal-content { border-radius: 16px; }
.workflow-form-page .modal-body { max-height: 72vh; overflow-y: auto; }

html[data-bs-theme="dark"] .workflow-form-intro { background: linear-gradient(135deg,#14261f,#192f27); }
html[data-bs-theme="dark"] .workflow-form-intro__icon { background: #1c3a31; }
html[data-bs-theme="dark"] .workflow-form-back { color: #b5d4c8; background: #1b332b; border-color: #31584b; }
html[data-bs-theme="dark"] .workflow-form-page .table thead th { background: #1b332b !important; }

@media (max-width: 991.98px) {
    .workflow-form-intro { grid-template-columns: auto minmax(0,1fr) auto; }
    .workflow-form-intro__meta { display: none; }
}
@media (max-width: 767.98px) {
    .workflow-form-intro { grid-template-columns: auto minmax(0,1fr); padding: 16px; }
    .workflow-form-back { grid-column: 1 / -1; justify-content: center; }
    .workflow-form-page .workflow-form-stepper > .card:last-child > .card-body { padding: 20px 17px !important; }
    .workflow-form-page #kt_create_account_form form > .row.g-9 > [class*="col-"] { padding-right: 0; padding-left: 0; }
    .tender-rfq-page #kt_user_view_details .pb-5 { grid-template-columns: 1fr; }
}

/* Reliable quick-create actions with strong button contrast */
.tender-quick-create-page .workflow-form-back { color: #fff; background: #285f50; border-color: #285f50; }
.tender-quick-create-page .workflow-form-back:hover { color: #fff; background: #1f4d41; border-color: #1f4d41; }
.tender-quick-create-page .quick-create-cancel,
.tender-quick-create-page .quick-create-submit { display: inline-flex; min-height: 43px; padding: 0 17px; align-items: center; justify-content: center; gap: 7px; border-radius: 10px; font-size: 10px; font-weight: 850; }
.tender-quick-create-page .quick-create-cancel { color: #fff; background: #385e54; border: 1px solid #385e54; }
.tender-quick-create-page .quick-create-cancel:hover { color: #fff; background: #294c43; border-color: #294c43; }
.tender-quick-create-page .quick-create-submit { color: #fff; background: #087b56; border: 1px solid #087b56; box-shadow: 0 7px 16px rgba(8,123,86,.22); }
.tender-quick-create-page .quick-create-submit:hover { color: #fff; background: #056847; border-color: #056847; }
.tender-quick-create-page .quick-create-submit:disabled { color: #fff; background: #0d6f52; border-color: #0d6f52; opacity: .82; cursor: wait; }
.tender-quick-create-page .quick-create-cancel i,
.tender-quick-create-page .quick-create-submit i { color: inherit; }
.tender-quick-create-page .btn-info { color: #fff; background: #24776f; border-color: #24776f; }
.tender-quick-create-page .btn-info:hover { color: #fff; background: #195f59; border-color: #195f59; }
.tender-quick-create-page .btn-danger.btn-xs { color: #fff; background: #a84651; border-color: #a84651; }
.tender-quick-create-page .btn-danger.btn-xs:hover { color: #fff; background: #8e3540; border-color: #8e3540; }
.tender-quick-create-page #reset { color: #fff; background: #286c80; border-color: #286c80; }
.tender-quick-create-page .btn-clean.btn-icon { color: #fff; background: #237159; border-color: #237159; }
.tender-quick-create-page .btn-clean.btn-icon i { color: inherit; }
.workflow-form-errors,
.workflow-vendor-error { display: flex; padding: 12px 14px; align-items: flex-start; gap: 9px; color: #8d3540; background: #fff1f2; border: 1px solid #f0cdd1; border-radius: 11px; font-size: 9px; }
.workflow-form-errors { margin-bottom: 14px; }
.workflow-form-errors > i { color: inherit; font-size: 17px; }
.workflow-form-errors strong { color: inherit; font-size: 10px; }
.workflow-form-errors ul { padding-left: 17px; margin: 4px 0 0; }
.workflow-vendor-error { margin-bottom: 10px; font-weight: 750; }
.workflow-map-unavailable { display: flex; padding: 25px; align-items: center; justify-content: center; color: var(--workflow-muted); background: var(--workflow-soft); text-align: center; font-size: 10px; }
.workflow-location-warning { display: flex; padding: 13px 15px; margin-bottom: 15px; align-items: center; gap: 10px; color: #75551b; background: #fff7e7; border: 1px solid #eedcae; border-radius: 11px; }
.workflow-location-warning > i { color: #a87520; font-size: 19px; }
.workflow-location-warning > div { display: flex; min-width: 0; flex: 1; flex-direction: column; }
.workflow-location-warning strong { color: inherit; font-size: 10px; }
.workflow-location-warning span { margin-top: 2px; color: #8c754b; font-size: 8px; }
.workflow-location-warning > a { display: inline-flex; min-height: 34px; padding: 0 11px; align-items: center; color: #fff; background: #95681e; border-radius: 8px; font-size: 8px; font-weight: 800; white-space: nowrap; }
.workflow-location-warning > a:hover { color: #fff; background: #7d5617; }

@media (max-width: 575.98px) {
    .tender-quick-create-page .d-flex.flex-stack.pt-8 { align-items: stretch; flex-direction: column-reverse; gap: 8px; }
    .tender-quick-create-page .quick-create-cancel,
    .tender-quick-create-page .quick-create-submit { width: 100%; }
    .workflow-location-warning { align-items: flex-start; flex-wrap: wrap; }
    .workflow-location-warning > a { width: 100%; justify-content: center; }
}

/* Tender quotation comparison workspace */
.tender-quotations-page { --quotation-accent: #148661; --quotation-soft: #eff8f4; }
.quotation-overview { display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 24px; padding: 24px 26px; margin-bottom: 18px; align-items: center; background: linear-gradient(135deg,#fff 20%,#f0f8f5); border: 1px solid var(--workflow-line); border-radius: 18px; box-shadow: 0 10px 28px rgba(25,67,56,.05); }
.quotation-overview__main { min-width: 0; }
.quotation-overview__eyebrow { color: var(--quotation-accent); font-size: 9px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.quotation-overview h2 { overflow: hidden; margin: 3px 0 4px; color: var(--workflow-ink); font-size: 20px; font-weight: 850; letter-spacing: -.02em; text-overflow: ellipsis; white-space: nowrap; }
.quotation-overview p { margin: 0; color: var(--workflow-muted); font-size: 10px; }
.quotation-overview__badges { display: flex; gap: 7px; margin-top: 12px; align-items: center; flex-wrap: wrap; }
.quotation-overview__badges > span { display: inline-flex; padding: 6px 9px; align-items: center; gap: 5px; background: var(--workflow-soft); border-radius: 999px; font-size: 8px; font-weight: 750; }
.quotation-overview__badges i { color: var(--quotation-accent); }
.quotation-overview__stats { display: grid; grid-template-columns: repeat(3,minmax(72px,1fr)); gap: 6px; }
.quotation-overview__stats > div { display: flex; min-height: 61px; padding: 10px 13px; flex-direction: column; justify-content: center; background: rgba(255,255,255,.72); border: 1px solid var(--workflow-line); border-radius: 12px; }
.quotation-overview__stats strong { color: var(--workflow-ink); font-size: 17px; line-height: 1; }
.quotation-overview__stats span { margin-top: 5px; color: var(--workflow-muted); font-size: 7px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.quotation-overview__actions { display: grid; gap: 6px; }
.quotation-overview__actions .btn { min-width: 116px; justify-content: flex-start; }

.quotation-context-card { overflow: hidden; }
.quotation-context-card__toggle { display: flex; width: 100%; padding: 16px 20px; align-items: center; justify-content: space-between; color: var(--workflow-ink); background: var(--workflow-surface); border: 0; text-align: left; }
.quotation-context-card__toggle > span { display: flex; align-items: center; gap: 11px; }
.quotation-context-card__toggle strong,.quotation-context-card__toggle small { display: block; }
.quotation-context-card__toggle strong { font-size: 12px; font-weight: 850; }
.quotation-context-card__toggle small { margin-top: 2px; color: var(--workflow-muted); font-size: 8px; }
.quotation-context-card__toggle[aria-expanded="true"] > i { transform: rotate(180deg); }
.quotation-context-card__toggle > i { color: var(--workflow-muted); transition: transform .2s ease; }
.quotation-section-icon { display: inline-grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; color: var(--quotation-accent); background: #e7f5ef; border-radius: 10px; }
.quotation-section-icon i { color: inherit; font-size: 16px; }
.quotation-context-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1px; padding: 1px; background: var(--workflow-line); border-top: 1px solid var(--workflow-line); }
.quotation-context-item { min-height: 74px; padding: 14px 16px; background: var(--workflow-surface); }
.quotation-context-item > span { display: block; margin-bottom: 6px; color: var(--workflow-muted); font-size: 7px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.quotation-context-item > strong { color: var(--workflow-ink); font-size: 10px; }
.quotation-context-item--wide { grid-column: 1 / -1; min-height: auto; }
.quotation-tag-list,.previous-vendor-list { display: flex; gap: 6px; flex-wrap: wrap; }
.quotation-tag-list span,.previous-vendor-chip { display: inline-flex; padding: 6px 9px; align-items: center; gap: 5px; color: #39695a; background: var(--quotation-soft); border-radius: 8px; font-size: 8px; font-weight: 750; }
.previous-vendor-chip strong { color: var(--workflow-ink); }
.quotation-context-item em { color: var(--workflow-muted); font-size: 9px; font-style: normal; }

.quotation-panel { overflow: hidden; }
.quotation-panel__header { display: flex; min-height: 78px; padding: 16px 20px; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--workflow-line); }
.quotation-panel__header > div { display: flex; min-width: 0; align-items: center; gap: 11px; }
.quotation-panel__header h3 { margin: 0; color: var(--workflow-ink); font-size: 13px; font-weight: 850; }
.quotation-panel__header p { margin: 3px 0 0; color: var(--workflow-muted); font-size: 8px; }
.quotation-panel__count,.quotation-score-status { display: inline-flex; padding: 7px 10px; align-items: center; gap: 5px; color: var(--workflow-muted); background: var(--workflow-soft); border-radius: 999px; font-size: 8px; font-weight: 800; white-space: nowrap; }
.quotation-score-status--saved { color: #147553; background: #e7f6ef; }
.quotation-table-wrap { width: 100%; overflow-x: auto; scrollbar-width: thin; scrollbar-color: #b7c9c2 transparent; }
.tender-quotations-page .quotation-table-wrap .table { width: max-content; min-width: 100%; table-layout: fixed; }
.tender-quotations-page .quotation-table-wrap th,.tender-quotations-page .quotation-table-wrap td { width: 190px; min-width: 190px; }
.tender-quotations-page .quotation-table-wrap .quotation-matrix__label,.tender-quotations-page .quotation-table-wrap tbody td:first-child { position: sticky; z-index: 2; left: 0; width: 215px; min-width: 215px; background: var(--workflow-surface); box-shadow: 8px 0 15px rgba(28,66,54,.035); }
.tender-quotations-page .quotation-table-wrap thead .quotation-matrix__label { z-index: 4; background: var(--workflow-soft) !important; }
.quotation-vendor-column { padding: 0 !important; }
.quotation-vendor-card { display: flex; min-height: 104px; padding: 14px 10px; align-items: center; justify-content: center; flex-direction: column; color: var(--workflow-ink) !important; text-transform: none; }
.quotation-vendor-card:hover { background: #edf8f3; }
.quotation-vendor-card__name { max-width: 165px; margin-bottom: 6px; overflow: hidden; color: var(--workflow-ink); font-size: 10px; font-weight: 850; text-overflow: ellipsis; white-space: nowrap; }
.quotation-vendor-card__meta { display: flex; margin-top: 8px; gap: 10px; color: var(--workflow-muted); font-size: 7px; font-weight: 700; }
.quotation-vendor-card__meta span { display: inline-flex; align-items: center; gap: 3px; }
.quotation-date-row th { padding-top: 8px !important; padding-bottom: 8px !important; background: #fafcfb !important; text-transform: none !important; }
.quotation-date-row strong,.quotation-date-row small { display: block; }
.quotation-date-row strong { color: var(--workflow-ink); font-size: 8px; }
.quotation-date-row small { margin-top: 2px; color: var(--workflow-muted); font-size: 7px; font-weight: 600; }
.quotation-item-cell strong,.quotation-item-cell span { display: block; }
.quotation-item-cell strong { font-size: 10px; }
.quotation-item-cell span { margin-top: 3px; color: var(--workflow-muted); font-size: 8px; }
.quotation-flight-link { display: inline-flex; margin-top: 8px; align-items: center; gap: 4px; color: var(--quotation-accent); font-size: 8px; font-weight: 750; }
.quotation-price-cell > strong,.quotation-price-cell > small { display: block; }
.quotation-price-cell > strong { color: var(--workflow-ink); font-size: 11px; }
.quotation-price-cell > small { margin: 2px 0 7px; color: var(--workflow-muted); font-size: 7px; }
.quotation-price-cell.is-lowest-price { background: #f0faf5; box-shadow: inset 0 0 0 1px #b9e2d2; }
.quotation-price-cell.is-lowest-price > strong::before { content: "Lowest  "; color: #148661; font-size: 7px; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.quotation-empty-value { color: #9aa8a3; font-size: 8px; font-weight: 650; }
.tender-quotations-page .quotation-total-row td { padding-top: 16px !important; padding-bottom: 16px !important; background: #edf5f2; }
.quotation-total-row td:first-child span,.quotation-total-row td:first-child strong { display: block; }
.quotation-total-row td:first-child span { color: var(--workflow-ink); font-size: 10px; font-weight: 850; }
.quotation-total-row td:first-child strong { margin-top: 2px; color: var(--workflow-muted); font-size: 7px; font-weight: 650; }
.quotation-total-row td > strong { color: var(--workflow-ink); font-size: 13px; }
.quotation-total-row td.is-lowest-total { color: #fff !important; background: var(--quotation-accent) !important; }
.quotation-total-row td.is-lowest-total strong { color: #fff; }
.quotation-total-row td.is-lowest-total::before { content: "Best price"; display: block; margin-bottom: 3px; color: rgba(255,255,255,.75); font-size: 7px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.quotation-award-row td { background: #fbfcfc; }

.quotation-score-table thead a { color: var(--workflow-ink) !important; font-size: 9px; font-weight: 850; text-transform: none; }
.quotation-criterion-cell strong,.quotation-criterion-cell span { display: block; }
.quotation-criterion-cell strong { color: var(--workflow-ink); font-size: 9px; }
.quotation-criterion-cell span { margin-top: 3px; color: var(--workflow-muted); font-size: 7px; }
.score-input-wrap { display: inline-flex; width: 78px; align-items: center; background: var(--workflow-soft); border: 1px solid var(--workflow-line); border-radius: 9px; }
.tender-quotations-page .score-input-wrap .form-control { width: 52px; min-height: 36px; padding: 6px; color: var(--workflow-ink); background: transparent !important; border: 0 !important; text-align: center; font-size: 11px; font-weight: 850; box-shadow: none; }
.score-input-wrap span { padding-right: 8px; color: var(--workflow-muted); font-size: 8px; }
.saved-score-value { display: inline-flex; min-width: 48px; min-height: 32px; align-items: baseline; justify-content: center; color: var(--workflow-ink); font-size: 12px; font-weight: 850; }
.saved-score-value small { margin-left: 2px; color: var(--workflow-muted); font-size: 7px; }
.score-value-cell.is-highest-score { background: #ecf8f3; }
.score-value-cell.is-highest-score .saved-score-value { color: var(--quotation-accent); }
.quotation-score-total-row td { background: #f1f7f4; }
.score-total-display { display: inline-flex; align-items: baseline; }
.score-total-display input { width: 55px; padding: 0; color: var(--quotation-accent); background: transparent; border: 0; text-align: right; font-size: 16px; font-weight: 900; }
.score-total-display span { color: var(--quotation-accent); font-size: 9px; font-weight: 800; }
.saved-score-value--total { color: var(--quotation-accent); font-size: 16px; }
.quotation-remark-row textarea { min-height: 70px !important; resize: vertical; }
.quotation-remark-row p { margin: 0; color: var(--workflow-muted); font-size: 8px; font-weight: 600; }
.quotation-score-footer { display: flex; padding: 14px 20px; align-items: center; justify-content: space-between; gap: 16px; background: #fbfdfc; border-top: 1px solid var(--workflow-line); }
.quotation-score-footer p { display: flex; margin: 0; align-items: center; gap: 5px; color: var(--workflow-muted); font-size: 8px; }
.quotation-score-footer .btn { min-height: 38px; }
.quotation-empty-state { display: flex; min-height: 230px; padding: 36px; align-items: center; justify-content: center; flex-direction: column; text-align: center; }
.quotation-empty-state > span { display: grid; width: 52px; height: 52px; place-items: center; color: var(--quotation-accent); background: var(--quotation-soft); border-radius: 15px; }
.quotation-empty-state > span i { color: inherit; font-size: 23px; }
.quotation-empty-state h4 { margin: 13px 0 4px; color: var(--workflow-ink); font-size: 13px; font-weight: 850; }
.quotation-empty-state p { margin: 0; color: var(--workflow-muted); font-size: 9px; }
.quotation-empty-state--compact { min-height: 110px; }

/* Readable type scale for the quotation workspace */
.tender-quotations-page { font-size: 14px; }
.tender-quotations-page .quotation-overview__eyebrow { font-size: 11px; }
.tender-quotations-page .quotation-overview h2 { font-size: 24px; }
.tender-quotations-page .quotation-overview p { font-size: 13px; line-height: 1.55; }
.tender-quotations-page .quotation-overview__badges > span { padding: 7px 11px; font-size: 11px; }
.tender-quotations-page .quotation-overview__stats strong { font-size: 21px; }
.tender-quotations-page .quotation-overview__stats span { font-size: 10px; }
.tender-quotations-page .btn { font-size: 12px; }
.tender-quotations-page .badge { font-size: 10px; }
.tender-quotations-page .quotation-context-card__toggle strong { font-size: 15px; }
.tender-quotations-page .quotation-context-card__toggle small { font-size: 11px; }
.tender-quotations-page .quotation-context-item > span { font-size: 10px; }
.tender-quotations-page .quotation-context-item > strong { font-size: 13px; }
.tender-quotations-page .quotation-tag-list span,
.tender-quotations-page .previous-vendor-chip,
.tender-quotations-page .quotation-context-item em { font-size: 11px; }
.tender-quotations-page .quotation-panel__header h3 { font-size: 16px; }
.tender-quotations-page .quotation-panel__header p { font-size: 11px; line-height: 1.5; }
.tender-quotations-page .quotation-panel__count,
.tender-quotations-page .quotation-score-status { font-size: 10px; }
.admin-workflow-page.tender-quotations-page .table thead th,
.admin-workflow-page.tender-quotations-page .table > thead > tr > th { font-size: 11px !important; }
.admin-workflow-page.tender-quotations-page .table tbody td { font-size: 12px; }
.tender-quotations-page .quotation-vendor-card__name { font-size: 13px; }
.tender-quotations-page .quotation-vendor-card__meta { font-size: 10px; }
.tender-quotations-page .quotation-date-row strong { font-size: 11px; }
.tender-quotations-page .quotation-date-row small { font-size: 10px; }
.tender-quotations-page .quotation-item-cell strong { font-size: 13px; }
.tender-quotations-page .quotation-item-cell span,
.tender-quotations-page .quotation-flight-link { font-size: 11px; }
.tender-quotations-page .quotation-price-cell > strong { font-size: 14px; }
.tender-quotations-page .quotation-price-cell > small,
.tender-quotations-page .quotation-empty-value { font-size: 10px; }
.tender-quotations-page .quotation-price-cell.is-lowest-price > strong::before,
.tender-quotations-page .quotation-total-row td.is-lowest-total::before { font-size: 9px; }
.tender-quotations-page .quotation-total-row td:first-child span { font-size: 13px; }
.tender-quotations-page .quotation-total-row td:first-child strong { font-size: 10px; }
.tender-quotations-page .quotation-total-row td > strong { font-size: 15px; }
.tender-quotations-page .quotation-score-table thead a { font-size: 12px; }
.tender-quotations-page .quotation-criterion-cell strong { font-size: 12px; }
.tender-quotations-page .quotation-criterion-cell span { font-size: 10px; }
.tender-quotations-page .score-input-wrap span,
.tender-quotations-page .saved-score-value small { font-size: 10px; }
.tender-quotations-page .score-input-wrap .form-control { font-size: 13px; }
.tender-quotations-page .quotation-remark-row textarea { font-size: 12px; }
.tender-quotations-page .quotation-remark-row p,
.tender-quotations-page .quotation-score-footer p { font-size: 11px; }
.tender-quotations-page .quotation-empty-state h4 { font-size: 16px; }
.tender-quotations-page .quotation-empty-state p { font-size: 12px; }

html[data-bs-theme="dark"] .quotation-overview { background: linear-gradient(135deg,#14261f,#192f27); }
html[data-bs-theme="dark"] .quotation-overview__stats > div,html[data-bs-theme="dark"] .quotation-date-row th,html[data-bs-theme="dark"] .quotation-award-row td,html[data-bs-theme="dark"] .quotation-score-footer { background: #172b24 !important; }
html[data-bs-theme="dark"] .quotation-section-icon,html[data-bs-theme="dark"] .quotation-tag-list span,html[data-bs-theme="dark"] .previous-vendor-chip { background: #1c3a31; }
html[data-bs-theme="dark"] .quotation-price-cell.is-lowest-price { background: #19372d; box-shadow: inset 0 0 0 1px #315e4e; }
html[data-bs-theme="dark"] .quotation-score-total-row td { background: #1b332b; }
html[data-bs-theme="dark"] .score-value-cell.is-highest-score { background: #1a382e; }

@media (max-width: 991.98px) {
    .quotation-overview { grid-template-columns: minmax(0,1fr) auto; }
    .quotation-overview__actions { grid-column: 1 / -1; display: flex; }
    .quotation-context-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 767.98px) {
    .quotation-overview { grid-template-columns: 1fr; padding: 19px; gap: 16px; }
    .quotation-overview h2 { font-size: 17px; white-space: normal; }
    .quotation-overview__stats { grid-template-columns: repeat(3,1fr); }
    .quotation-overview__actions { grid-column: auto; display: grid; grid-template-columns: 1fr 1fr; }
    .quotation-overview__actions .btn:first-child { grid-column: 1 / -1; }
    .quotation-overview__actions .btn { justify-content: center; }
    .quotation-context-grid { grid-template-columns: 1fr; }
    .quotation-context-item--wide { grid-column: auto; }
    .quotation-panel__header { padding: 15px; align-items: flex-start; }
    .quotation-panel__header > .quotation-panel__count,.quotation-panel__header > .quotation-score-status { display: none; }
    .quotation-panel__header p { line-height: 1.5; }
    .quotation-score-footer { padding: 14px 15px; align-items: stretch; flex-direction: column; }
    .quotation-score-footer .btn { width: 100%; }
}

/* Provider award nomination review */
.provider-nomination-toolbar,
.provider-nomination-page { --nomination-ink: #17352f; --nomination-muted: #6f817b; --nomination-line: #dfe9e5; --nomination-surface: #fff; --nomination-soft: #f3f8f6; --nomination-accent: #167b68; --nomination-blue: #2c7285; }
.provider-nomination-toolbar { padding-top: 22px !important; padding-bottom: 10px !important; }
.provider-nomination-toolbar > .app-container,
.provider-nomination-page > .app-container { width: 100%; max-width: 1440px; }
.provider-nomination-toolbar .app-toolbar-wrapper { min-height: 112px; padding: 22px 27px; align-items: flex-end !important; background: linear-gradient(125deg,#16483f,#167561 68%,#278a72); border-radius: 20px; box-shadow: 0 14px 34px rgba(22,91,75,.16); }
.provider-nomination-toolbar .app-toolbar-wrapper::after { content: "N"; display: inline-grid; width: 48px; height: 48px; margin-left: auto; place-items: center; color: #d9f6ec; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); border-radius: 14px; font-size: 18px; font-weight: 850; }
.provider-nomination-toolbar .page-heading { color: #fff !important; font-size: clamp(24px,3vw,32px) !important; font-weight: 850 !important; letter-spacing: -.03em; }
.provider-nomination-toolbar .breadcrumb { margin-top: 8px !important; }
.provider-nomination-toolbar .breadcrumb-item,
.provider-nomination-toolbar .breadcrumb-item a { color: rgba(255,255,255,.72) !important; font-size: 11px; }
.provider-nomination-toolbar .breadcrumb .bullet { background: rgba(255,255,255,.45) !important; }
.provider-nomination-page { padding-top: 10px; padding-bottom: 48px; color: var(--nomination-ink); font-size: 14px; }

.provider-nomination-hero { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 18px; padding: 25px 27px; margin-bottom: 20px; align-items: center; background: linear-gradient(135deg,#fff,#f0f8f5); border: 1px solid var(--nomination-line); border-radius: 18px; box-shadow: 0 10px 28px rgba(25,67,56,.055); }
.provider-nomination-hero__icon { display: grid; width: 54px; height: 54px; place-items: center; color: var(--nomination-accent); background: #e5f4ee; border-radius: 15px; }
.provider-nomination-hero__icon i { color: inherit; font-size: 25px; }
.provider-nomination-hero__content { min-width: 0; }
.provider-nomination-hero__eyebrow { color: var(--nomination-accent); font-size: 11px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.provider-nomination-hero h1 { margin: 3px 0 4px; color: var(--nomination-ink); font-size: 24px; font-weight: 850; letter-spacing: -.025em; }
.provider-nomination-hero p { margin: 0; color: var(--nomination-muted); font-size: 12px; line-height: 1.55; }
.provider-nomination-hero__status { margin-top: 10px; }
.provider-nomination-hero__status .badge { display: inline-flex !important; padding: 7px 11px; align-items: center; gap: 5px; border-radius: 999px; font-size: 10px; }
.provider-nomination-hero__status i { color: inherit; }
.provider-nomination-hero__meta { display: grid; grid-template-columns: repeat(3,minmax(115px,1fr)); gap: 7px; }
.provider-nomination-hero__meta > div { display: flex; min-height: 65px; padding: 11px 13px; justify-content: center; flex-direction: column; background: rgba(255,255,255,.8); border: 1px solid var(--nomination-line); border-radius: 11px; }
.provider-nomination-hero__meta span { color: var(--nomination-muted); font-size: 9px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.provider-nomination-hero__meta strong { max-width: 170px; margin-top: 4px; overflow: hidden; color: var(--nomination-ink); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }

.provider-nomination-section-heading { display: flex; padding: 16px 19px; margin: 18px 0 12px; align-items: center; gap: 11px; background: var(--nomination-surface); border: 1px solid var(--nomination-line); border-radius: 14px; }
.provider-nomination-section-heading__icon { display: grid; width: 37px; height: 37px; flex: 0 0 37px; place-items: center; color: var(--nomination-accent); background: #e6f4ef; border-radius: 10px; }
.provider-nomination-section-heading__icon i { color: inherit; font-size: 17px; }
.provider-nomination-section-heading h2 { margin: 0; color: var(--nomination-ink); font-size: 16px; font-weight: 850; }
.provider-nomination-section-heading p { margin: 3px 0 0; color: var(--nomination-muted); font-size: 11px; }
.provider-nomination-section-heading--table { margin-top: 24px; }

.provider-nomination-accordion { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-bottom: 18px; }
.provider-nomination-accordion > .mb-5 { margin: 0 !important; overflow: hidden; background: var(--nomination-surface); border: 1px solid var(--nomination-line); border-radius: 15px; box-shadow: 0 7px 20px rgba(25,67,56,.04); }
.provider-nomination-accordion .accordion-header { min-height: 58px; padding: 14px 16px !important; align-items: center; cursor: pointer; background: var(--nomination-surface); border-bottom: 1px solid transparent; transition: background .15s ease,border-color .15s ease; }
.provider-nomination-accordion .accordion-header:hover { background: var(--nomination-soft); }
.provider-nomination-accordion .accordion-header[aria-expanded="true"] { background: #f0f8f5; border-bottom-color: var(--nomination-line); }
.provider-nomination-accordion .accordion-icon { display: grid; width: 31px; height: 31px; flex: 0 0 31px; place-items: center; color: var(--nomination-accent); background: #e4f3ed; border-radius: 9px; }
.provider-nomination-accordion .accordion-icon i { color: inherit; font-size: 13px !important; }
.provider-nomination-accordion .accordion-header h3 { margin-left: 10px !important; color: var(--nomination-ink); font-size: 14px !important; font-weight: 800 !important; }
.provider-nomination-accordion .collapse { padding: 0 !important; }
.provider-nomination-accordion .collapse > .flex-equal { padding: 8px 15px 15px; }
.provider-nomination-accordion .table { margin: 0; }
.provider-nomination-accordion .table td { padding: 10px 8px; color: var(--nomination-ink) !important; border-bottom: 1px solid var(--nomination-line); font-size: 12px; line-height: 1.55; vertical-align: top; }
.provider-nomination-accordion .table tr:last-child td { border-bottom: 0; }
.provider-nomination-accordion .table td:first-child { width: 155px !important; color: var(--nomination-muted) !important; font-size: 11px; font-weight: 750; }
.provider-nomination-accordion .badge { padding: 6px 9px; border-radius: 999px; font-size: 10px; }
.provider-nomination-accordion .btn { border-radius: 9px; font-size: 11px; }
.provider-nomination-accordion .card { border: 1px solid var(--nomination-line) !important; border-radius: 11px !important; box-shadow: none !important; }

.provider-nomination-page > .app-container > .row > [class*="col-"] > .notice { padding: 18px 20px !important; margin: 12px 0 !important; border: 1px solid var(--nomination-line) !important; border-left: 4px solid var(--nomination-accent) !important; border-radius: 14px !important; box-shadow: 0 6px 18px rgba(25,67,56,.035); }
.provider-nomination-page .notice.bg-light-primary { background: #f1f7fb !important; border-left-color: #357c94 !important; }
.provider-nomination-page .notice.bg-light-success { background: #eff9f4 !important; border-left-color: #22815f !important; }
.provider-nomination-page .notice.bg-light-info { background: #f0f7f8 !important; border-left-color: #398594 !important; }
.provider-nomination-page .notice h4 { margin-bottom: 8px; color: var(--nomination-ink) !important; font-size: 15px; font-weight: 850 !important; }
.provider-nomination-page .notice .fs-6 { color: #49645c !important; font-size: 12px !important; line-height: 1.9; }

.provider-nomination-page .table { color: var(--nomination-ink); }
.provider-nomination-page .table thead th,
.provider-nomination-page .table thead td { padding: 12px 13px; color: #637871 !important; background: var(--nomination-soft); border-color: var(--nomination-line); font-size: 11px !important; font-weight: 850 !important; letter-spacing: .035em; }
.provider-nomination-page .table tbody td { padding: 12px 13px; color: var(--nomination-ink) !important; border-bottom-color: var(--nomination-line); font-size: 12px; vertical-align: middle; }
.provider-nomination-page .table tbody tr:hover { background: #fbfdfc; }
.provider-nomination-page .table .text-muted { color: var(--nomination-muted) !important; font-size: 10px !important; }
.provider-nomination-page .table .badge { padding: 6px 9px; border-radius: 999px; font-size: 10px; }
.provider-nomination-comparison,
.provider-nomination-score-table { display: block; width: 100%; overflow-x: auto; white-space: nowrap; scrollbar-width: thin; scrollbar-color: #afc3bc transparent; border: 1px solid var(--nomination-line); border-radius: 14px; }
.provider-nomination-comparison > thead,
.provider-nomination-comparison > tbody,
.provider-nomination-score-table > thead,
.provider-nomination-score-table > tbody { display: table; width: max-content; min-width: 100%; table-layout: fixed; }
.provider-nomination-comparison th,
.provider-nomination-comparison td,
.provider-nomination-score-table th,
.provider-nomination-score-table td { min-width: 175px; }
.provider-nomination-comparison th:first-child,
.provider-nomination-comparison td:first-child,
.provider-nomination-score-table th:first-child,
.provider-nomination-score-table td:first-child { position: sticky; z-index: 2; left: 0; min-width: 215px; background: var(--nomination-surface); box-shadow: 8px 0 14px rgba(25,67,56,.04); }
.provider-nomination-comparison thead th:first-child,
.provider-nomination-score-table thead th:first-child { z-index: 3; background: var(--nomination-soft); }
.provider-nomination-page .modal-content { overflow: hidden; border: 0; border-radius: 17px; box-shadow: 0 18px 55px rgba(15,45,36,.2); }
.provider-nomination-page .modal-header { padding: 17px 20px; background: var(--nomination-soft); border-bottom: 1px solid var(--nomination-line); }
.provider-nomination-page .modal-body { padding: 20px; }

.provider-nomination-decision-form > .card { overflow: hidden; border: 1px solid #bcded2 !important; border-radius: 17px !important; box-shadow: 0 12px 32px rgba(25,91,70,.08) !important; }
.provider-nomination-decision-form .card-header { min-height: 76px; padding: 16px 21px; background: linear-gradient(135deg,#eff8f5,#e7f3ef) !important; border-bottom: 1px solid #d1e7df !important; }
.provider-nomination-decision-form .card-title { color: var(--nomination-accent) !important; font-size: 17px; }
.provider-nomination-decision-form .card-header .text-muted { font-size: 11px !important; }
.provider-nomination-decision-form .card-body { padding: 24px !important; }
.provider-nomination-decision-form .form-label { margin-bottom: 8px !important; color: var(--nomination-ink) !important; font-size: 12px !important; font-weight: 800 !important; }
.provider-nomination-decision-form .form-control,
.provider-nomination-decision-form .form-select { min-height: 44px; color: var(--nomination-ink); background: var(--nomination-soft) !important; border: 1px solid var(--nomination-line) !important; border-radius: 10px; font-size: 12px; }
.provider-nomination-decision-form textarea.form-control { padding: 12px 14px; line-height: 1.55; }
.provider-nomination-decision-form label.border.rounded { min-height: 90px; padding: 17px !important; border-width: 1px !important; border-radius: 12px !important; transition: border-color .15s ease,transform .15s ease,box-shadow .15s ease; }
.provider-nomination-decision-form label.border.rounded:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(25,67,56,.06); }
.provider-nomination-decision-form .form-check-input { width: 19px; height: 19px; border-color: #9db9af; }
.provider-nomination-decision-form .form-check-input:checked { background-color: var(--nomination-accent); border-color: var(--nomination-accent); }
.provider-nomination-decision-form .btn-primary { min-height: 43px; padding-right: 20px !important; padding-left: 20px !important; background: var(--nomination-accent); border-color: var(--nomination-accent); border-radius: 10px; font-size: 12px; font-weight: 800; }
.provider-nomination-decision-form .btn-primary:hover { background: #116b5a; border-color: #116b5a; }

.provider-nomination-page .table-responsive { overflow: hidden; background: var(--nomination-surface); border: 1px solid var(--nomination-line); border-radius: 14px; }
.provider-nomination-page .table-responsive .table { margin-bottom: 0 !important; }
.provider-nomination-page .table-responsive tfoot td { padding: 12px 13px; border-color: var(--nomination-line); font-size: 12px; }
.provider-nomination-page .btn { border-radius: 9px; font-size: 11px; font-weight: 750; }

html[data-bs-theme="dark"] .provider-nomination-page { --nomination-ink: #e7f2ee; --nomination-muted: #92a69f; --nomination-line: #29453c; --nomination-surface: #14261f; --nomination-soft: #192f27; }
html[data-bs-theme="dark"] .provider-nomination-hero { background: linear-gradient(135deg,#14261f,#192f27); }
html[data-bs-theme="dark"] .provider-nomination-hero__icon,
html[data-bs-theme="dark"] .provider-nomination-section-heading__icon,
html[data-bs-theme="dark"] .provider-nomination-accordion .accordion-icon { background: #1c3a31; }
html[data-bs-theme="dark"] .provider-nomination-hero__meta > div { background: #172b24; }
html[data-bs-theme="dark"] .provider-nomination-page .notice.bg-light-primary,
html[data-bs-theme="dark"] .provider-nomination-page .notice.bg-light-success,
html[data-bs-theme="dark"] .provider-nomination-page .notice.bg-light-info { background: #192f27 !important; }
html[data-bs-theme="dark"] .provider-nomination-page .notice .fs-6 { color: #b7cbc4 !important; }
html[data-bs-theme="dark"] .provider-nomination-page .table tbody tr:hover { background: #172b24; }
html[data-bs-theme="dark"] .provider-nomination-decision-form .card-header { background: #1a342b !important; }

@media (max-width: 1199.98px) {
    .provider-nomination-hero { grid-template-columns: auto minmax(0,1fr); }
    .provider-nomination-hero__meta { grid-column: 1 / -1; }
}
@media (max-width: 991.98px) {
    .provider-nomination-accordion { grid-template-columns: 1fr; }
}
@media (max-width: 767.98px) {
    .provider-nomination-toolbar { padding-top: 15px !important; }
    .provider-nomination-toolbar .app-toolbar-wrapper { min-height: 96px; padding: 18px 19px; }
    .provider-nomination-toolbar .app-toolbar-wrapper::after { display: none; }
    .provider-nomination-toolbar .page-heading { font-size: 21px !important; }
    .provider-nomination-hero { grid-template-columns: 1fr; padding: 19px; }
    .provider-nomination-hero__icon { width: 46px; height: 46px; }
    .provider-nomination-hero h1 { font-size: 21px; }
    .provider-nomination-hero__meta { grid-column: auto; grid-template-columns: 1fr; }
    .provider-nomination-hero__meta > div { min-height: 56px; }
    .provider-nomination-section-heading { padding: 14px 15px; }
    .provider-nomination-accordion .table td { display: block; width: 100% !important; padding: 7px 8px; border-bottom: 0; }
    .provider-nomination-accordion .table td:first-child { padding-bottom: 0; }
    .provider-nomination-accordion .table tr { display: block; padding: 6px 0; border-bottom: 1px solid var(--nomination-line); }
    .provider-nomination-decision-form .card-body { padding: 18px !important; }
    .provider-nomination-decision-form .text-end .btn { width: 100%; }
}
