﻿@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --primary-light: #818cf8;
    --accent: #06b6d4;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --bg: #f1f5f9;
    --bg-card: #ffffff;
    --text: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --sidebar-bg: #0f172a;
    --sidebar-hover: #1e293b;
    --sidebar-active: #4f46e5;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
    --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.12);
    --radius: 14px;
    --radius-sm: 10px;
    --transition: 0.2s ease;
}

* {
    box-sizing: border-box;
}

html {
    font-size: 15px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text);
    background: var(--bg);
    min-height: 100vh;
    margin: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

/* ===== AUTH LAYOUT ===== */
.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.auth-shell:has(.auth-card-wide) {
    grid-template-columns: minmax(240px, 0.55fr) minmax(0, 1.45fr);
}

.auth-brand {
    background: linear-gradient(135deg, #312e81 0%, #4f46e5 45%, #06b6d4 100%);
    color: #fff;
    padding: 1.15rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.auth-brand::before,
.auth-brand::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.auth-brand::before {
    width: 320px;
    height: 320px;
    top: -80px;
    right: -80px;
}

.auth-brand::after {
    width: 200px;
    height: 200px;
    bottom: -40px;
    left: -40px;
}

.auth-brand-content {
    position: relative;
    z-index: 1;
    max-width: 420px;
}

.auth-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.auth-logo i {
    font-size: 2rem;
}

.auth-brand h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.auth-brand p {
    font-size: 1.05rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.auth-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.85rem;
}

.auth-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
}

.auth-features i {
    color: #a5f3fc;
}

.auth-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 1rem;
    background: var(--bg);
}

.auth-form-stack {
    width: 100%;
    max-width: 440px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-form-stack .auth-card {
    max-width: none;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2.5rem;
    border: 1px solid var(--border);
}

.auth-card-wide {
    max-width: 100%;
}

.auth-pricing-grid {
    margin-top: 0.5rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 0;
    align-items: stretch;
}

.auth-pricing-top-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    margin: 0 0 1rem;
    font-size: 0.92rem;
    color: var(--text-muted);
}

.auth-pricing-top-nav a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.auth-pricing-top-nav a:hover {
    text-decoration: underline;
}

.auth-pricing-top-nav-sep {
    color: var(--text-muted);
    opacity: 0.7;
}

.auth-pricing-grid .pricing-card {
    padding: 1.1rem 0.95rem;
    height: 100%;
}

.auth-pricing-grid .pricing-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.auth-pricing-grid .pricing-amount {
    margin-bottom: 0.65rem;
}

.auth-pricing-grid .pricing-amount .price {
    font-size: 1.55rem;
}

.auth-pricing-grid .pricing-desc {
    font-size: 0.82rem;
    margin-bottom: 0.75rem;
}

.auth-pricing-grid .pricing-features {
    margin-bottom: 0.85rem;
}

.auth-pricing-grid .pricing-features li {
    padding: 0.25rem 0;
    font-size: 0.82rem;
}

.auth-pricing-grid .btn-app {
    width: 100%;
    margin-top: auto;
}

.auth-card-wide .pricing-helpline-note {
    margin-top: 1rem;
    padding: 0.65rem 0.85rem;
}

.auth-card-wide .subtitle {
    margin-bottom: 1.15rem;
}

@media (max-width: 1100px) {
    .auth-shell:has(.auth-card-wide) {
        grid-template-columns: 1fr;
    }

    .auth-shell:has(.auth-card-wide) .auth-brand {
        display: none;
    }
}

@media (max-width: 768px) {
    .auth-pricing-grid {
        grid-template-columns: 1fr;
    }
}

.auth-card h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.auth-card .subtitle {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.auth-footer-link {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-muted);
}

.auth-legal-note {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.82rem;
    line-height: 1.45;
    color: var(--text-muted);
}

.auth-legal-note a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.auth-legal-card .auth-legal-body {
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.55;
}

.auth-legal-card .auth-legal-body h3 {
    font-size: 1.05rem;
    margin: 1.25rem 0 0.5rem;
}

.auth-legal-card .auth-legal-body ul {
    padding-left: 1.15rem;
    margin-bottom: 0.75rem;
}

.auth-legal-card .auth-legal-body li {
    margin-bottom: 0.35rem;
}

/* Floating WhatsApp on login */
.auth-whatsapp-float {
    position: fixed;
    right: 1.25rem;
    bottom: 1.5rem;
    z-index: 1040;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    font-size: 1.75rem;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.auth-whatsapp-float:hover,
.auth-whatsapp-float:focus-visible {
    color: #fff;
    background: #1ebe57;
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 10px 28px rgba(37, 211, 102, 0.55);
    outline: none;
}

.auth-whatsapp-float:focus-visible {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9), 0 10px 28px rgba(37, 211, 102, 0.55);
}

@media (max-width: 576px) {
    .auth-whatsapp-float {
        right: 1rem;
        bottom: 1rem;
        width: 3.15rem;
        height: 3.15rem;
        font-size: 1.55rem;
    }
}

/* ===== LOGIN: industry category tiles ===== */
.auth-shell-rich .auth-brand-content {
    max-width: 100%;
}

.auth-brand-login .auth-logo-enter,
.auth-brand-login .auth-headline-enter,
.auth-brand-login .auth-lead-enter,
.auth-brand-login .auth-industry-tiles {
    animation: authFadeUp 0.55s ease both;
}

.auth-brand-login .auth-headline-enter { animation-delay: 0.08s; }
.auth-brand-login .auth-lead-enter { animation-delay: 0.16s; }
.auth-brand-login .auth-industry-tiles { animation-delay: 0.24s; }

@keyframes authFadeUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-brand-login h1 {
    font-size: clamp(1.45rem, 3vw, 2rem);
    margin-bottom: 0.55rem;
}

.auth-brand-login > p,
.auth-brand-login .auth-lead-enter {
    margin-bottom: 1rem;
    max-width: 42ch;
    opacity: 0.92;
}

.auth-industry-tiles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    align-items: start;
}

.auth-industry-tile {
    --tile-accent: #a5f3fc;
    position: relative;
    isolation: isolate;
    min-height: 5.75rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05));
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
    overflow: visible;
    cursor: default;
    outline: none;
    transition:
        transform 0.28s ease,
        border-color 0.28s ease,
        box-shadow 0.28s ease,
        background 0.28s ease;
}

.auth-industry-tile::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at 18% 20%, color-mix(in srgb, var(--tile-accent) 35%, transparent), transparent 55%);
    opacity: 0.55;
    pointer-events: none;
    z-index: 0;
}

.auth-industry-tile-face,
.auth-industry-tile-desc {
    position: relative;
    z-index: 1;
}

.auth-industry-tile-face {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 0.55rem;
    min-height: 5.75rem;
    padding: 0.95rem 1rem;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.auth-industry-tile-icon {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--tile-accent);
    font-size: 1.15rem;
    transition: transform 0.28s ease, background 0.28s ease;
}

.auth-industry-tile-name {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.auth-industry-tile-desc {
    display: none;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.45rem;
    padding: 1rem 1.05rem 1.1rem;
    border-radius: inherit;
    background: linear-gradient(160deg, rgba(15, 23, 42, 0.92), rgba(30, 27, 75, 0.94));
}

.auth-industry-tile-desc strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
}

.auth-industry-tile-desc p {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.92);
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
}

.auth-industry-tile:hover,
.auth-industry-tile:focus-visible,
.auth-industry-tile:focus-within {
    z-index: 4;
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--tile-accent) 55%, #fff);
    box-shadow:
        0 16px 36px rgba(15, 23, 42, 0.28),
        0 0 0 1px color-mix(in srgb, var(--tile-accent) 35%, transparent);
}

.auth-industry-tile:hover .auth-industry-tile-face,
.auth-industry-tile:focus-visible .auth-industry-tile-face,
.auth-industry-tile:focus-within .auth-industry-tile-face {
    display: none;
}

.auth-industry-tile:hover .auth-industry-tile-desc,
.auth-industry-tile:focus-visible .auth-industry-tile-desc,
.auth-industry-tile:focus-within .auth-industry-tile-desc {
    display: flex;
}

.auth-industry-tile:hover .auth-industry-tile-icon,
.auth-industry-tile:focus-visible .auth-industry-tile-icon {
    transform: scale(1.08);
    background: rgba(15, 23, 42, 0.35);
}

.auth-card-login {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(79, 70, 229, 0.12);
    box-shadow:
        0 18px 48px rgba(15, 23, 42, 0.1),
        0 1px 0 rgba(255, 255, 255, 0.7) inset;
}

.auth-card-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4f46e5, #06b6d4, #34d399);
}

.auth-card-login-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.85rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: #eef2ff;
    color: #3730a3;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.auth-card-login h2 {
    margin-bottom: 0.35rem;
}

.auth-card-login .subtitle {
    margin-bottom: 1.35rem;
}

.auth-login-form .form-group {
    margin-bottom: 1.05rem;
}

.auth-login-submit {
    width: 100%;
    margin-top: 0.25rem;
    box-shadow: 0 10px 24px rgba(79, 70, 229, 0.28);
}

.auth-login-submit:hover {
    box-shadow: 0 12px 28px rgba(79, 70, 229, 0.36);
}

/* ===== LOGIN: Contact us full-width band below login + info ===== */
.auth-shell:has(+ .auth-contact-band) {
    min-height: auto;
}

.auth-contact-band {
    width: 100%;
    background: #fff;
    border-top: 1px solid var(--border);
}

.auth-contact-band-inner {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    padding: 1.75rem 1.25rem 2rem;
}

.auth-contact-panel.auth-demo-card {
    width: 100%;
    padding: 0;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.07);
    /* Keep visible so industry dropdown / searchable list is not clipped */
    overflow: visible;
    position: relative;
}

.auth-demo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: 18px 18px 0 0;
    background: linear-gradient(90deg, #4f46e5, #06b6d4, #10b981);
    z-index: 1;
    pointer-events: none;
}

.auth-demo-card-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
    gap: 0;
}

.auth-demo-card-intro {
    padding: 1.6rem 1.5rem 1.5rem;
    background:
        radial-gradient(circle at 12% 18%, rgba(79, 70, 229, 0.08), transparent 45%),
        radial-gradient(circle at 88% 80%, rgba(6, 182, 212, 0.1), transparent 42%),
        #f8fafc;
    border-right: 1px solid #e2e8f0;
    border-radius: 18px 0 0 18px;
}

.auth-demo-card-form {
    padding: 1.5rem 1.4rem 1.45rem;
    background: #fff;
    border-radius: 0 18px 18px 0;
}

.auth-contact-heading {
    margin-bottom: 0.85rem;
}

.auth-contact-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.55rem;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    color: #4338ca;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.auth-demo-card-intro h2 {
    margin: 0 0 0.4rem;
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
}

.auth-demo-card-intro > p {
    margin: 0 0 1rem;
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--text-muted);
}

.auth-demo-benefits {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    display: grid;
    gap: 0.45rem;
}

.auth-demo-benefits li {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: #1e293b;
}

.auth-demo-benefits i {
    color: #10b981;
    font-size: 0.95rem;
}

.auth-demo-helpline {
    margin: 0;
    font-size: 0.84rem;
    color: var(--text-muted);
}

.auth-demo-helpline a {
    font-weight: 700;
    color: #4f46e5;
}

.auth-contact-errors {
    margin-bottom: 0.55rem;
    font-size: 0.85rem;
}

.auth-contact-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
    margin-bottom: 0.95rem;
}

.auth-contact-mini-card {
    padding: 0.75rem 0.85rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-contact-mini-card:focus-within {
    border-color: #a5b4fc;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
    background: #fff;
}

.auth-contact-mini-card-wide,
.auth-contact-mini-card-industry {
    grid-column: 1 / -1;
}

.auth-contact-label {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #475569;
}

.auth-contact-field {
    position: relative;
}

.auth-contact-field > i {
    position: absolute;
    left: 0.65rem;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 0.9rem;
    pointer-events: none;
    z-index: 1;
}

.auth-contact-mini-card .form-control,
.auth-contact-mini-card .form-select {
    min-height: 2.35rem;
    padding: 0.4rem 0.65rem;
    font-size: 0.92rem;
    border-radius: 9px;
    border-color: #cbd5e1;
    background: #fff;
    color: var(--text);
}

.auth-contact-field .form-control,
.auth-contact-field .form-select,
.auth-contact-field .searchable-select-input {
    padding-left: 2.15rem;
}

.auth-contact-field .form-select {
    /* Room for left icon + native chevron; keep long names on one line */
    padding-right: 2.25rem;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 12px 12px;
}

.auth-contact-field .searchable-select {
    width: 100%;
    min-width: 0;
}

.auth-contact-field .searchable-select-list {
    z-index: 1300;
}

.auth-contact-mini-card .form-control::placeholder {
    color: #94a3b8;
}

.auth-contact-mini-card .form-select {
    color: var(--text);
}

.auth-contact-mini-card .form-select option {
    color: var(--text);
    background: #fff;
    white-space: normal;
}

.auth-contact-mini-card .form-control:focus,
.auth-contact-mini-card .form-select:focus {
    border-color: #818cf8;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.14);
    background: #fff;
    color: var(--text);
}

.auth-contact-mini-card .field-validation-error {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: #dc2626;
}

.auth-contact-submit {
    width: 100%;
    min-height: 2.55rem;
    font-size: 0.95rem;
    font-weight: 700;
    box-shadow: 0 10px 22px rgba(79, 70, 229, 0.25);
}

.auth-contact-submit:hover {
    box-shadow: 0 12px 26px rgba(79, 70, 229, 0.32);
}

@media (max-width: 860px) {
    .auth-demo-card-grid {
        grid-template-columns: 1fr;
    }

    .auth-demo-card-intro {
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
        padding: 1.35rem 1.2rem 1.2rem;
        border-radius: 18px 18px 0 0;
    }

    .auth-demo-card-form {
        padding: 1.25rem 1.15rem 1.3rem;
        border-radius: 0 0 18px 18px;
    }
}

@media (max-width: 576px) {
    .auth-contact-cards {
        grid-template-columns: 1fr;
    }

    .auth-contact-band-inner {
        padding: 1.25rem 1rem 1.5rem;
    }
}

@media (min-width: 1100px) {
    .auth-industry-tiles {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .auth-industry-tile:last-child:nth-child(odd) {
        grid-column: span 1;
    }
}

@media (max-width: 991px) {
    .auth-shell-rich .auth-brand {
        padding: 1rem 0.85rem;
    }

    .auth-industry-tiles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .auth-shell-rich {
        grid-template-columns: 1fr;
    }

    .auth-shell-rich .auth-brand {
        min-height: auto;
        padding: 1rem 0.85rem;
    }

    .auth-brand-login h1 {
        font-size: 1.45rem;
    }

    .auth-brand-login > p {
        font-size: 0.92rem;
        margin-bottom: 1rem;
    }

    .auth-industry-tiles {
        grid-template-columns: 1fr 1fr;
        gap: 0.6rem;
    }

    .auth-industry-tile,
    .auth-industry-tile-face {
        min-height: 5.25rem;
    }

    .auth-industry-tile-desc strong {
        font-size: 0.9rem;
    }

    .auth-industry-tile-desc p {
        font-size: 0.8rem;
        line-height: 1.45;
    }
}

@media (hover: none) {
    .auth-industry-tile:focus-within .auth-industry-tile-face {
        display: none;
    }

    .auth-industry-tile:focus-within .auth-industry-tile-desc {
        display: flex;
    }
}

/* ===== APP SHELL ===== */
.app-shell {
    display: flex;
    min-height: 100vh;
}

.app-sidebar {
    width: 260px;
    background: var(--sidebar-bg);
    color: #cbd5e1;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1040;
    transition: transform var(--transition);
}

.sidebar-brand {
    padding: 1.5rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
}

.sidebar-brand i {
    font-size: 1.5rem;
    color: var(--primary-light);
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0.75rem;
    overflow-y: auto;
}

.nav-section-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
    padding: 0.75rem 0.75rem 0.35rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0.85rem;
    border-radius: var(--radius-sm);
    color: #cbd5e1;
    font-weight: 500;
    font-size: 0.92rem;
    transition: all var(--transition);
    margin-bottom: 0.15rem;
}

.sidebar-link:hover {
    background: var(--sidebar-hover);
    color: #fff;
}

.sidebar-link.active {
    background: var(--sidebar-active);
    color: #fff;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.4);
}

.sidebar-link i {
    font-size: 1.15rem;
    width: 1.25rem;
    text-align: center;
}

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.user-chip {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
    margin-bottom: 0.5rem;
}

.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.user-info {
    min-width: 0;
}

.user-info .name {
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-info .role {
    font-size: 0.75rem;
    color: #94a3b8;
}

.app-main {
    flex: 1;
    min-width: 0;
    margin-left: 260px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.app-topbar {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 0.85rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1020;
}

.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.topbar-user {
    font-weight: 600;
    color: var(--text-muted, #6b7280);
    font-size: 0.9rem;
}

.sidebar-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.4rem 0.6rem;
    color: var(--text);
    cursor: pointer;
}

.app-content {
    flex: 1;
    padding: 1.5rem;
    max-width: 1400px;
    width: 100%;
}

.app-footer {
    padding: 1rem 1.5rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-top: 1px solid var(--border);
    background: var(--bg-card);
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    z-index: 1035;
}

/* ===== PAGE COMPONENTS ===== */
.page-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.page-header h1 {
    font-size: 1.65rem;
    font-weight: 700;
    margin: 0;
    color: var(--text);
}

.page-header .breadcrumb-text {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.2rem;
}

.page-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
}

.page-card + .page-card {
    margin-top: 1.25rem;
}

.card-section-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-section-title i {
    color: var(--primary);
}

/* ===== BUTTONS ===== */
.btn-app {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1.15rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    line-height: 1.4;
}

.btn-app-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}

.btn-app-primary:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.45);
}

.btn-app-secondary {
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-app-secondary:hover {
    background: #e2e8f0;
    color: var(--text);
}

.btn-app-danger {
    background: var(--danger);
    color: #fff;
}

.btn-app-danger:hover {
    color: #fff;
    background: #dc2626;
}

.btn-app-outline {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-app-outline:hover {
    background: rgba(79, 70, 229, 0.08);
    color: var(--primary-dark);
}

.btn-app-sm {
    padding: 0.4rem 0.75rem;
    font-size: 0.82rem;
}

.btn-app-xs {
    padding: 0.28rem 0.5rem;
    font-size: 0.72rem;
    gap: 0.25rem;
}

.btn-app-xs i {
    font-size: 0.85em;
}

.btn-app-lg {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    width: 100%;
}

/* ===== FORMS ===== */
.report-filter-form .form-control,
.report-filter-form .btn-app {
    height: 44px;
}

.report-filter-form .btn-app {
    padding-top: 0;
    padding-bottom: 0;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-weight: 600;
    font-size: 0.88rem;
    margin-bottom: 0.45rem;
    color: var(--text);
}

.form-control,
.form-select {
    width: 100%;
    padding: 0.7rem 0.95rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: inherit;
    background: #fff;
    color: var(--text);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-control:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.searchable-select {
    position: relative;
    width: 100%;
}

.searchable-select-native {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.searchable-select-input {
    width: 100%;
    padding-right: 2rem;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 12px 12px;
}

.searchable-select-list {
    display: none;
    position: absolute;
    z-index: 1200;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    max-height: 240px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
}

.searchable-select.is-open-up .searchable-select-list {
    top: auto;
    bottom: calc(100% + 4px);
}

.searchable-select.is-open .searchable-select-list {
    display: block;
}

/* Keep dropdown visible above table row overflow/clipping.
   Menus are portaled to body, so keep overflow-x for sticky Actions. */
.table-wrap:has(.searchable-select.is-open),
.line-items-table:has(.searchable-select.is-open) {
    overflow: visible !important;
}

.table-wrap .dropdown-menu,
.table-wrap .dropdown-menu.show {
    z-index: 2000;
}

/* Portaled out of sticky table cells so options stay clickable */
.dropdown-menu.table-dropdown-portal {
    z-index: 3000 !important;
    position: fixed !important;
}

.data-table .col-actions.is-dropdown-open,
.data-table td:has(.is-dropdown-open),
.data-table .btn-group.is-dropdown-open {
    z-index: 50;
}

.searchable-select-option {
    display: block;
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
    padding: 0.55rem 0.85rem;
    font: inherit;
    color: var(--text);
    cursor: pointer;
}

.searchable-select-option:hover,
.searchable-select-option:focus {
    background: #eef2ff;
    outline: none;
}

.searchable-select-option.is-selected {
    background: #e0e7ff;
    font-weight: 600;
}

.searchable-select-empty {
    padding: 0.75rem 0.85rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.input-icon-wrap {
    position: relative;
}

.input-icon-wrap i {
    position: absolute;
    left: 0.95rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.input-icon-wrap .form-control,
.input-icon-wrap .form-select {
    padding-left: 2.6rem;
}

.input-icon-wrap .form-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16'%3E%3Cpath fill='%2364748b' d='M4.5 6l3.5 3.5L11.5 6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.95rem center;
    background-color: #fff;
    padding-right: 2.4rem;
}

.form-hint {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
}

.field-validation-error,
.text-danger {
    color: var(--danger) !important;
    font-size: 0.82rem;
    margin-top: 0.35rem;
    display: block;
}

.form-control.input-validation-error,
.form-control.is-invalid,
.form-select.input-validation-error,
.form-select.is-invalid {
    border-color: var(--danger) !important;
    box-shadow: 0 0 0 0.15rem rgba(220, 38, 38, 0.12);
}

.form-control.input-validation-error:focus,
.form-control.is-invalid:focus,
.form-select.input-validation-error:focus,
.form-select.is-invalid:focus {
    border-color: var(--danger) !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 38, 38, 0.18);
}

.validation-summary-errors ul {
    margin: 0;
    padding-left: 1.2rem;
}

/* ===== TABLES ===== */
.table-wrap {
    overflow-x: auto;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

/* Keep listing as a real table with horizontal scroll (no mobile card stack) */
.table-wrap.table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-wrap.table-scroll .data-table {
    width: max-content;
    min-width: 100%;
}

.table-wrap.table-scroll .data-table th,
.table-wrap.table-scroll .data-table td {
    white-space: nowrap;
}

.table-wrap.table-scroll .quotation-status-select {
    min-width: 140px;
    width: auto;
}

.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.92rem;
}

.data-table thead {
    background: #f8fafc;
}

.data-table th {
    padding: 0.85rem 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.data-table td {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.data-table tbody tr:hover {
    background: #f8fafc;
}

.product-thumb {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid var(--border);
}

.product-thumb-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
}

.action-btns {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    align-items: center;
}

.action-btns-compact {
    flex-wrap: nowrap;
    flex-direction: row;
    gap: 0.3rem;
    max-width: none;
}

.action-btns-compact .btn-app {
    white-space: nowrap;
    flex: 0 0 auto;
}

.data-table .col-actions,
.data-table th.col-actions,
.data-table td.col-actions,
.data-table td:has(> .action-btns-compact) {
    width: 1%;
    white-space: nowrap;
    vertical-align: middle;
    position: sticky;
    right: 0;
    background: var(--bg-card);
    z-index: 3;
    box-shadow: -6px 0 8px -6px rgba(15, 23, 42, 0.18);
}

.data-table th.col-actions {
    z-index: 4;
    background: #f8fafc;
}

.data-table .col-actions .action-btns,
.data-table td:has(.action-btns-compact) .action-btns {
    flex-wrap: nowrap;
    flex-direction: row;
    white-space: nowrap;
    justify-content: flex-end;
    max-width: none;
    margin-left: auto;
}

.data-table tbody tr:hover > .col-actions,
.data-table tbody tr:hover > td:has(> .action-btns-compact) {
    background: #f8fafc;
}

.badge-amount {
    font-weight: 700;
    color: var(--primary-dark);
}

.quotation-status-select {
    width: auto;
    min-width: 170px;
    padding: 0.5rem 0.8rem;
    font-size: 0.9rem;
    cursor: pointer;
}

.quotation-status-select.is-valid {
    border-color: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15);
}

.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 3rem;
    color: #cbd5e1;
    margin-bottom: 1rem;
    display: block;
}

/* ===== DASHBOARD ===== */
.dashboard-hero {
    background: linear-gradient(135deg, #312e81 0%, #4f46e5 50%, #6366f1 100%);
    border-radius: var(--radius);
    padding: 2.5rem;
    color: #fff;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.dashboard-hero::after {
    content: '';
    position: absolute;
    width: 250px;
    height: 250px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    top: -60px;
    right: -60px;
}

.dashboard-hero h1 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    position: relative;
}

.dashboard-hero p {
    opacity: 0.9;
    margin: 0;
    position: relative;
    max-width: 520px;
}

.dashboard-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.dashboard-metric-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.35rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}

.dashboard-metric-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    color: inherit;
}

.metric-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.metric-icon.blue { background: #e0f2fe; color: #0284c7; }
.metric-icon.orange { background: #ffedd5; color: #ea580c; }
.metric-icon.purple { background: #ede9fe; color: #7c3aed; }
.metric-icon.green { background: #dcfce7; color: #16a34a; }
.metric-icon.red { background: #fee2e2; color: #dc2626; }

.metric-value {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--text);
}

.metric-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

.metric-sub {
    font-size: 0.8rem;
    color: #dc2626;
    font-weight: 600;
    margin-top: 0.2rem;
}

.dashboard-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.dashboard-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: inherit;
    transition: border-color var(--transition), background var(--transition);
}

.dashboard-list-item:hover {
    border-color: var(--primary-light);
    background: rgba(79, 70, 229, 0.04);
    color: inherit;
}

.dashboard-list-item strong {
    font-size: 0.9rem;
    display: block;
}

.list-filter-card {
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.25rem;
}

/* Accordion filter card (quotation/order) â€” not the master search bar */
.list-filter-card:has(.list-filter-toggle) {
    padding: 0;
}

.master-search-row {
    display: flex;
    align-items: end;
    gap: 0.75rem 1rem;
    flex-wrap: wrap;
}

.master-search-field {
    flex: 1 1 220px;
    min-width: 0;
}

.master-search-card .list-filter-buttons {
    flex: 0 0 auto;
    padding-bottom: 1px;
}

@media (max-width: 575px) {
    .master-search-card .list-filter-buttons {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .master-search-card .list-filter-buttons .btn-app {
        width: 100%;
        justify-content: center;
    }
}

.list-filter-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.9rem 1.15rem;
    border: 0;
    background: transparent;
    color: var(--text);
    font-weight: 600;
    font-size: 0.95rem;
    text-align: left;
    cursor: pointer;
}

.list-filter-toggle:hover {
    background: #f8fafc;
}

.list-filter-toggle-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.list-filter-toggle-label > i {
    color: var(--primary);
}

.list-filter-active-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: #eef2ff;
    color: var(--primary-dark);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.list-filter-chevron {
    color: var(--text-muted);
    transition: transform 0.28s ease;
}

.list-filter-card.is-open .list-filter-chevron {
    transform: rotate(180deg);
}

/* Smooth accordion via grid (no Bootstrap height measuring) */
.list-filter-panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.28s ease;
}

.list-filter-card.is-open .list-filter-panel {
    grid-template-rows: 1fr;
}

.list-filter-panel-inner {
    overflow: hidden;
    min-height: 0;
}

.list-filter-body {
    border-top: 1px solid var(--border);
    padding: 1rem 1.15rem 1.15rem;
}

.list-filter-grid {
    display: grid;
    grid-template-columns: minmax(180px, 2fr) repeat(5, minmax(110px, 1fr)) auto;
    gap: 0.75rem 1rem;
    align-items: end;
}

.list-filter-field .form-label {
    margin-bottom: 0.35rem;
    font-size: 0.82rem;
    white-space: nowrap;
}

.list-filter-field .form-control,
.list-filter-field .form-select {
    min-width: 0;
}

.list-filter-field-amount {
    min-width: 100px;
}

.list-filter-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: nowrap;
    padding-bottom: 1px;
}

.list-filter-buttons .btn-app {
    white-space: nowrap;
}

@media (max-width: 1400px) {
    .list-filter-grid {
        grid-template-columns: repeat(4, minmax(140px, 1fr));
    }

    .list-filter-field-wide {
        grid-column: 1 / -1;
    }

    .list-filter-buttons {
        grid-column: 1 / -1;
        justify-content: flex-start;
        margin-top: 0.25rem;
    }
}

@media (max-width: 768px) {
    .list-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .list-filter-field-wide {
        grid-column: 1 / -1;
    }

    .list-filter-buttons {
        grid-column: 1 / -1;
    }
}

@media (max-width: 575px) {
    .list-filter-grid {
        grid-template-columns: 1fr;
    }

    .list-filter-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .list-filter-buttons .btn-app {
        width: 100%;
        justify-content: center;
    }
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.35rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: transform var(--transition), box-shadow var(--transition);
    text-decoration: none;
    color: inherit;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    color: inherit;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.stat-icon.purple { background: #ede9fe; color: #7c3aed; }
.stat-icon.blue { background: #e0f2fe; color: #0284c7; }
.stat-icon.green { background: #d1fae5; color: #059669; }
.stat-icon.orange { background: #ffedd5; color: #ea580c; }

.report-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
}

.report-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.1rem 1.25rem;
    box-shadow: var(--shadow-sm);
}

.report-stat-card.highlight {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border-color: #a7f3d0;
}

.report-stat-card .label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.35rem;
}

.report-stat-card .value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
}

.report-stat-card .sub {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.stat-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 0.25rem;
}

.stat-card p {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin: 0;
}

/* ===== QUOTATION ===== */
.totals-panel {
    background: linear-gradient(180deg, #f8fafc, #fff);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
}

.totals-row {
    display: flex;
    justify-content: space-between;
    padding: 0.55rem 0;
    font-size: 0.92rem;
}

.totals-row.final {
    border-top: 2px solid var(--border);
    margin-top: 0.5rem;
    padding-top: 0.85rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.totals-row .value {
    font-weight: 600;
}

.line-items-table .form-control {
    padding: 0.5rem 0.65rem;
    font-size: 0.88rem;
}

.quotation-line-items-grid {
    min-height: 420px;
}

/* ===== ALERTS (inline banners, e.g. license status) ===== */
.alert-app {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.15rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.25rem;
    font-size: 0.92rem;
    font-weight: 500;
}

.alert-app.success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-app.danger {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-app.is-hiding {
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}

.alert-app .btn-close-custom {
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.6;
    font-size: 1.1rem;
    padding: 0;
    line-height: 1;
}

/* ===== TOASTER ===== */
.app-toast-host {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 2100;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    width: min(360px, calc(100vw - 2rem));
    pointer-events: none;
}

.app-toast {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.16);
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.4;
    pointer-events: auto;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.app-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.app-toast.is-hiding {
    opacity: 0;
    transform: translateY(-8px);
}

.app-toast-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.app-toast-error,
.app-toast-danger {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.app-toast-info {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.app-toast-icon {
    flex-shrink: 0;
    font-size: 1.1rem;
    line-height: 1.35;
}

.app-toast-message {
    flex: 1;
    min-width: 0;
}

.app-toast-close {
    flex-shrink: 0;
    margin: -0.15rem -0.2rem -0.15rem 0;
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.55;
    font-size: 1.15rem;
    line-height: 1;
    color: inherit;
    padding: 0.15rem 0.35rem;
}

.app-toast-close:hover {
    opacity: 0.9;
}

@media (max-width: 576px) {
    .app-toast-host {
        top: 0.75rem;
        right: 0.75rem;
        left: 0.75rem;
        width: auto;
    }
}

/* ===== DELETE CONFIRM ===== */
.delete-card {
    max-width: 480px;
    text-align: center;
}

.delete-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #fef2f2;
    color: var(--danger);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin: 0 auto 1.25rem;
}

.image-preview-grid {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.image-preview-grid img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--border);
}

.product-picker {
    position: relative;
    min-width: 220px;
}

.product-picker-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 30;
    max-height: 240px;
    overflow-y: auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
}

.product-picker-item {
    display: block;
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
    padding: 0.65rem 0.85rem;
    font-size: 0.92rem;
    color: var(--text);
    cursor: pointer;
}

.product-picker-item:hover,
.product-picker-item:focus,
.product-picker-item.is-active {
    background: #f1f5f9;
    outline: none;
}

.product-picker-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.product-picker-item .ppi-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.product-picker-item .ppi-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-picker-item .ppi-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-picker-item .ppi-rate {
    flex: 0 0 auto;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    white-space: nowrap;
}

.product-picker-create {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    width: 100%;
    border: 0;
    border-top: 1px solid var(--border);
    background: #f8fafc;
    text-align: left;
    padding: 0.7rem 0.85rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
}

.product-picker-create:hover {
    background: #eef2ff;
}

.quick-product-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2200;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.quick-product-modal.is-open {
    display: flex;
}

.quick-product-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
}

.quick-product-panel {
    position: relative;
    width: min(560px, 100%);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    max-height: calc(100vh - 2rem);
    overflow: auto;
}

.quick-product-header,
.quick-product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.9rem 1.1rem;
    border-bottom: 1px solid var(--border);
}

.quick-product-footer {
    border-bottom: 0;
    border-top: 1px solid var(--border);
    justify-content: flex-end;
}

.quick-product-header h3 {
    margin: 0;
    font-size: 1.05rem;
}

.quick-product-close {
    border: 0;
    background: transparent;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--text-muted);
    cursor: pointer;
}

.quick-product-body {
    padding: 1rem 1.1rem;
}

.product-picker-empty {
    padding: 0.75rem 0.85rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.product-images-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    max-width: 180px;
}

.product-image-thumb {
    cursor: zoom-in;
    transition: transform var(--transition), box-shadow var(--transition);
}

.product-image-thumb:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-sm);
}

.line-items-table .product-images-cell {
    min-width: 120px;
}

.image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.image-lightbox.active {
    display: flex;
}

.image-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.82);
}

.image-lightbox-panel {
    position: relative;
    z-index: 1;
    max-width: min(92vw, 900px);
    max-height: 90vh;
}

.image-lightbox-panel img {
    display: block;
    max-width: 100%;
    max-height: 90vh;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    background: #fff;
}

.image-lightbox-close {
    position: absolute;
    top: -0.5rem;
    right: -0.5rem;
    width: 2.25rem;
    height: 2.25rem;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: var(--text);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: var(--shadow);
}

.form-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

.menu-assign-card {
    max-width: 640px;
}

.menu-assign-list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.menu-assign-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin: 0;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fff;
    cursor: pointer;
    transition: border-color var(--transition), background var(--transition);
}

.menu-assign-item:hover {
    border-color: var(--primary-light);
    background: #f8fafc;
}

.menu-assign-item.is-locked {
    background: #f8fafc;
    cursor: default;
}

.menu-assign-item .form-check-input {
    width: 1.2rem;
    height: 1.2rem;
    margin: 0;
    flex-shrink: 0;
    cursor: pointer;
}

.menu-assign-item-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.menu-assign-item-name {
    font-weight: 600;
    color: var(--text);
}

.menu-assign-item-hint {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ===== PAGINATION ===== */
.pagination-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

.pagination-info {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.pagination-list {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 0.65rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    transition: all var(--transition);
}

.page-link:hover:not(.disabled):not(.active) {
    border-color: var(--primary-light);
    color: var(--primary);
    background: #f8fafc;
}

.page-link.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.page-link.disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* ===== LICENSE & PRICING ===== */
.license-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1.15rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.license-banner-text {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.license-trial {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}

.license-active {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.license-expired {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.license-alert-expired {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    align-items: stretch;
}

@media (max-width: 992px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem 1.75rem;
    box-shadow: var(--shadow-sm);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pricing-card-featured {
    border-color: var(--primary-light);
    box-shadow: 0 12px 40px rgba(79, 70, 229, 0.15);
}

.pricing-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.3rem 0.65rem;
    border-radius: 20px;
    background: #f1f5f9;
    color: var(--text-muted);
}

.pricing-badge.popular {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
}

.pricing-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.pricing-amount {
    margin-bottom: 1rem;
}

.pricing-amount .price {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--primary-dark);
}

.pricing-amount .period {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.pricing-desc {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-bottom: 1.25rem;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    flex: 1;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 0;
    font-size: 0.9rem;
}

.pricing-features i {
    color: var(--success);
}

.pricing-status {
    text-align: center;
    padding: 0.65rem;
    border-radius: 8px;
    background: #f8fafc;
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.pricing-status.active-plan {
    background: #ecfdf5;
    color: #065f46;
}

.pricing-status.expired-plan {
    background: #fef2f2;
    color: #991b1b;
}

.pricing-trial-end,
.pricing-note {
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.pricing-contact-box {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: var(--radius-sm);
    background: #f8fafc;
    border: 1px solid var(--border);
    text-align: center;
}

.pricing-card .razorpay-pay-btn,
.pricing-card > .btn-app,
.pricing-card > a.btn-app {
    width: 100%;
    margin-top: auto;
    justify-content: center;
}

.pricing-card > .pricing-status {
    margin-top: auto;
}

.pricing-card > .pricing-status ~ .btn-app,
.pricing-card > .pricing-status ~ .pricing-trial-end ~ .btn-app,
.pricing-card > .pricing-trial-end ~ .btn-app {
    margin-top: 0.75rem;
}

.pricing-helpline {
    margin-top: 0.85rem;
    text-align: center;
    font-size: 0.85rem;
    line-height: 1.35;
    color: var(--text-muted);
}

.pricing-helpline-note {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem 0.75rem;
    margin: 0.25rem 0 0.5rem;
    padding: 0.85rem 1rem;
    text-align: center;
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--text-muted);
    background: #f8fafc;
    border: 1px dashed var(--border);
    border-radius: var(--radius-sm);
}

.pricing-helpline-note .pricing-helpline-label {
    width: 100%;
    margin-bottom: 0.1rem;
}

.pricing-helpline-note .pricing-helpline-name {
    margin-top: 0;
}

.pricing-helpline-note .pricing-helpline-phone {
    margin-top: 0;
}

.pricing-helpline-label {
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--text-muted);
}

.pricing-helpline-name {
    color: var(--text);
    font-weight: 600;
    margin-top: 0.15rem;
}

.pricing-helpline-phone {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.2rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.pricing-helpline-phone:hover {
    text-decoration: underline;
}

.pricing-contact-box p {
    margin-bottom: 0.35rem;
    color: var(--text);
    font-size: 0.92rem;
}

.pricing-contact-phone {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.5rem;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    background: var(--primary);
    color: #fff !important;
    font-weight: 600;
    text-decoration: none;
}

.pricing-contact-phone:hover {
    background: var(--primary-dark);
    color: #fff !important;
}

.quotation-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
}

.quotation-status-progress {
    background: #dbeafe;
    color: #1d4ed8;
}

.quotation-status-confirmed {
    background: #dcfce7;
    color: #15803d;
}

.quotation-status-materials {
    background: #fef3c7;
    color: #b45309;
}

.quotation-status-booked {
    background: #ede9fe;
    color: #6d28d9;
}

.quotation-status-cancel {
    background: #fee2e2;
    color: #b91c1c;
}

.order-status-pending {
    background: #dbeafe;
    color: #1d4ed8;
}

.order-status-production {
    background: #ffedd5;
    color: #c2410c;
}

.order-status-ready {
    background: #fef9c3;
    color: #a16207;
}

.order-status-dispatched {
    background: #e0e7ff;
    color: #4338ca;
}

.order-status-transit {
    background: #cffafe;
    color: #0e7490;
}

.order-status-delivered {
    background: #dcfce7;
    color: #15803d;
}

.order-status-cancelled {
    background: #fee2e2;
    color: #b91c1c;
}

.product-crop-panel {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px;
    background: #f8fafc;
}

.product-crop-wrap {
    width: 100%;
    height: 360px;
    overflow: hidden;
    background: #111827;
    border-radius: 6px;
    position: relative;
}

.product-crop-image {
    display: block;
    max-width: 100%;
}

.product-crop-thumb {
    position: relative;
    display: inline-block;
}

.product-crop-thumb img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--border);
}

.product-crop-thumb .btn-app {
    position: absolute;
    top: 2px;
    right: 2px;
}

.w-100 { width: 100%; }

/* ===== Common quotation particular autocomplete ===== */
.particular-suggest {
    position: relative;
}

/* Fixed so the list is never clipped by the line-items table overflow */
.particular-suggest-dropdown {
    position: fixed;
    left: 0;
    top: 0;
    width: 240px;
    z-index: 1080;
    max-height: 220px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
}

.particular-suggest-dropdown[hidden] {
    display: none;
}

.particular-suggest-item {
    display: block;
    width: 100%;
    text-align: left;
    border: 0;
    background: transparent;
    padding: 0.55rem 0.75rem;
    font-size: 0.88rem;
    color: var(--text);
    cursor: pointer;
}

.particular-suggest-item:hover,
.particular-suggest-item.is-active {
    background: #f1f5f9;
    outline: none;
}

.particular-suggest-source {
    display: inline-block;
    margin-right: 0.35rem;
    padding: 0.05rem 0.35rem;
    border-radius: 4px;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #475569;
    background: #e2e8f0;
    vertical-align: middle;
}

/* ===== JQUERY UI AUTOCOMPLETE ===== */
.ui-autocomplete {
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-sm) !important;
    box-shadow: var(--shadow) !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 0.9rem !important;
    max-height: 220px;
    overflow-y: auto;
    z-index: 2000 !important;
}

.ui-menu-item-wrapper {
    padding: 0.6rem 0.85rem !important;
}

.ui-state-active {
    background: rgba(79, 70, 229, 0.1) !important;
    border-color: transparent !important;
    color: var(--primary-dark) !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-brand {
        padding: 1rem 0.85rem;
        min-height: auto;
    }

    .auth-brand h1 {
        font-size: 1.5rem;
    }

    .auth-features {
        display: none;
    }

    .app-sidebar {
        transform: translateX(-100%);
    }

    .app-sidebar.open {
        transform: translateX(0);
    }

    .sidebar-overlay.show {
        display: block;
    }

    .app-main {
        margin-left: 0;
    }

    .sidebar-toggle {
        display: inline-flex;
    }

    .app-content {
        padding: 1rem;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .data-table th,
    .data-table td {
        padding: 0.7rem 0.75rem;
    }
}

@media (max-width: 575px) {
    .auth-card {
        padding: 1.75rem 1.25rem;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn-app {
        width: 100%;
    }

    .action-btns:not(.action-btns-compact) {
        flex-direction: column;
    }

    .action-btns-compact {
        flex-direction: row;
        flex-wrap: nowrap;
    }

    .action-btns:not(.action-btns-compact) .btn-app {
        width: 100%;
    }

    .action-btns-compact .btn-app {
        width: auto;
    }

    .data-table .action-btns,
    .data-table .action-btns-compact {
        flex-direction: row;
        flex-wrap: nowrap;
        max-width: none;
        justify-content: flex-end;
    }

    .data-table .action-btns .btn-app,
    .data-table .action-btns-compact .btn-app {
        width: auto;
    }

    .dashboard-metrics {
        grid-template-columns: 1fr;
    }

    .dashboard-list-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .dashboard-list-item .text-end {
        text-align: left !important;
        width: 100%;
    }
}

/* ===== DATA-ENTRY UX (quotation / order forms) ===== */
.btn-inline-toggle {
    background: none;
    border: 0;
    padding: 0.25rem 0;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-inline-toggle:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.qty-stepper {
    display: flex;
    align-items: stretch;
    gap: 0;
    min-width: 120px;
}

.qty-stepper .qty-input {
    text-align: center;
    border-radius: 0;
    min-width: 56px;
}

.qty-stepper .qty-step {
    flex: 0 0 32px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    user-select: none;
}

.qty-stepper .qty-step:first-child {
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    border-right: 0;
}

.qty-stepper .qty-step:last-child {
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    border-left: 0;
}

.qty-stepper .qty-step:hover {
    background: #e2e8f0;
}

/* Form action / save bar (inline at end of form — not sticky) */
.form-sticky-bar {
    position: static;
    z-index: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: none;
    padding: 0.85rem 1.25rem;
    margin-top: 1rem;
}

.form-has-sticky-bar {
    padding-bottom: 0;
}

form:has(> .form-sticky-bar),
form:has(.form-sticky-bar) {
    padding-bottom: 0;
}

.form-has-sticky-bar .common-terms-card {
    margin-bottom: 1.25rem;
}

.common-terms-editor {
    position: relative;
    z-index: 1;
    margin-bottom: 0.75rem;
    max-height: 220px;
}

.common-terms-editor .ql-toolbar {
    z-index: 1;
    padding: 0.35rem 0.5rem;
}

.common-terms-editor .ql-toolbar .ql-formats {
    margin-right: 0.5rem;
}

.common-terms-editor .ql-container {
    z-index: 1;
    height: auto;
    max-height: 160px;
    overflow-y: auto;
    font-size: 0.9rem;
}

.common-terms-editor .ql-editor {
    min-height: 100px;
    max-height: 160px;
    overflow-y: auto;
    font-size: 0.9rem;
    line-height: 1.45;
    padding: 0.65rem 0.75rem;
}

.form-sticky-total {
    font-size: 1rem;
    color: var(--text-muted);
}

.form-sticky-total strong {
    color: var(--text);
    font-size: 1.15rem;
    margin-left: 0.35rem;
}

.form-sticky-actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.form-quick-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

/* Mobile: render line-item / payment table rows as stacked cards */
@media (max-width: 768px) {
    .line-items-table table,
    .line-items-table tbody,
    .line-items-table tr,
    .line-items-table td {
        display: block;
        width: 100%;
    }

    .line-items-table thead {
        display: none;
    }

    .line-items-table tr {
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        padding: 0.5rem 0.75rem;
        margin-bottom: 0.85rem;
        background: #fff;
    }

    .line-items-table td {
        border: 0;
        padding: 0.35rem 0;
    }

    .line-items-table td::before {
        content: attr(data-label);
        display: block;
        font-weight: 600;
        font-size: 0.78rem;
        color: var(--text-muted);
        margin-bottom: 0.25rem;
    }

    .line-items-table td[data-label=""]::before {
        display: none;
    }

    .line-items-table .product-picker {
        min-width: 0;
    }

    .line-items-table td.line-total {
        text-align: left;
    }

    .quotation-line-items-grid {
        min-height: 0;
    }

    .line-items-table {
        margin-bottom: 0.75rem;
        padding-bottom: 0.25rem;
    }

    .line-items-table tr:last-child {
        margin-bottom: 0.35rem;
    }

    .form-sticky-bar {
        position: static;
        flex-wrap: wrap;
        gap: 0.65rem;
        padding: 0.75rem 0.85rem;
        margin-top: 0.85rem;
        box-shadow: none;
    }

    .form-sticky-total {
        font-size: 0.85rem;
        line-height: 1.2;
        white-space: nowrap;
        min-width: 0;
        flex: 1 1 auto;
    }

    .form-sticky-total .form-sticky-label {
        display: inline;
        text-transform: none;
        letter-spacing: normal;
        margin-right: 0.25rem;
    }

    .form-sticky-total strong {
        font-size: 1.05rem;
        margin-left: 0;
    }

    .form-sticky-actions {
        width: 100%;
        flex: 1 1 auto;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 0.4rem;
        min-width: 0;
    }

    .form-sticky-actions .btn-app,
    .form-sticky-actions .btn-group > .btn-app {
        min-height: 40px;
        padding: 0.5rem 0.7rem;
        font-size: 0.82rem;
        white-space: nowrap;
    }

    .form-quick-actions {
        position: sticky;
        top: 0.75rem;
        z-index: 1010;
        justify-content: stretch;
        padding: 0.65rem 0.75rem;
        border: 1px solid var(--border);
        border-radius: var(--radius);
        background: rgba(255, 255, 255, 0.96);
        box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
        backdrop-filter: blur(8px);
    }

    .form-quick-actions .btn-app,
    .form-quick-actions .btn-group > .btn-app {
        flex: 1 1 auto;
        justify-content: center;
    }
}

.form-sticky-fab {
    display: none;
}

.form-sticky-backdrop {
    display: none;
}

/* Smaller phones: keep actions visible but icon-first to save space */
@media (max-width: 575px) {
    .form-sticky-actions .btn-app .btn-text {
        display: none;
    }

    .form-sticky-actions .btn-app {
        padding: 0.5rem 0.85rem;
    }
}

/* ===== MOBILE: app-like listing screens ===== */
@media (max-width: 768px) {
    /* Inputs at >=16px stop mobile browsers from auto-zooming on focus.
       More specific selectors needed so line-item / filter rules don't win. */
    .form-control,
    .form-select,
    .searchable-select-input,
    .line-items-table .form-control,
    .line-items-table .form-select,
    .list-filter-field .form-control,
    .list-filter-field .form-select,
    .product-search,
    .qty-input,
    .rate-input,
    .payment-amount,
    .payment-remark,
    .payment-mop {
        font-size: 16px !important;
    }

    /* Listing tables become stacked cards (labels injected via site.js) */
    .table-wrap:not(.line-items-table) {
        border: 0;
        overflow: visible;
        background: transparent;
    }

    .table-wrap:not(.line-items-table) .data-table thead {
        display: none;
    }

    .table-wrap:not(.line-items-table) .data-table,
    .table-wrap:not(.line-items-table) .data-table tbody,
    .table-wrap:not(.line-items-table) .data-table tr,
    .table-wrap:not(.line-items-table) .data-table td {
        display: block;
        width: 100%;
    }

    .table-wrap:not(.line-items-table) .data-table tr {
        border: 1px solid var(--border);
        border-radius: var(--radius);
        padding: 0.35rem 0.9rem;
        margin-bottom: 0.85rem;
        background: var(--bg-card);
        box-shadow: var(--shadow-sm);
    }

    .table-wrap:not(.line-items-table) .data-table tbody tr:hover {
        background: var(--bg-card);
    }

    .table-wrap:not(.line-items-table) .data-table td {
        border: 0;
        border-bottom: 1px solid #f1f5f9;
        padding: 0.6rem 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        text-align: right;
        min-height: 42px;
    }

    .table-wrap:not(.line-items-table) .data-table tr td:last-child {
        border-bottom: 0;
    }

    .table-wrap:not(.line-items-table) .data-table td::before {
        content: attr(data-label);
        flex: 0 0 36%;
        text-align: left;
        font-weight: 600;
        font-size: 0.72rem;
        text-transform: uppercase;
        letter-spacing: 0.03em;
        color: var(--text-muted);
    }

    .table-wrap:not(.line-items-table) .data-table td[data-label=""]::before {
        display: none;
    }

    .table-wrap:not(.line-items-table) .data-table td[data-label=""] {
        justify-content: flex-end;
        min-height: 0;
    }

    /* Cells with buttons or a status dropdown: label on top, full-width content */
    .table-wrap:not(.line-items-table) .data-table td:has(.action-btns),
    .table-wrap:not(.line-items-table) .data-table td:has(.action-btns-compact),
    .table-wrap:not(.line-items-table) .data-table td:has(.quotation-status-select) {
        flex-direction: column;
        align-items: stretch;
        text-align: left;
        gap: 0.4rem;
    }

    .table-wrap:not(.line-items-table) .data-table td:has(.action-btns)::before,
    .table-wrap:not(.line-items-table) .data-table td:has(.action-btns-compact)::before,
    .table-wrap:not(.line-items-table) .data-table td:has(.quotation-status-select)::before {
        flex: none;
    }

    .table-wrap:not(.line-items-table) .data-table .action-btns,
    .table-wrap:not(.line-items-table) .data-table .action-btns-compact {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 0.35rem;
        width: auto;
        max-width: none;
        justify-content: flex-start;
        overflow-x: auto;
    }

    .table-wrap:not(.line-items-table) .data-table .action-btns .btn-app,
    .table-wrap:not(.line-items-table) .data-table .action-btns-compact .btn-app,
    .table-wrap:not(.line-items-table) .data-table .btn-group {
        flex: 0 0 auto;
    }

    .table-wrap:not(.line-items-table) .quotation-status-select {
        width: 100%;
        min-width: 0;
    }

    /* App-like header + touch targets */
    .app-topbar {
        padding: 0.65rem 1rem;
    }

    .page-header {
        margin-bottom: 1rem;
    }

    .page-header h1 {
        font-size: 1.35rem;
    }

    .page-card {
        padding: 1.1rem;
    }

    .btn-app {
        min-height: 42px;
    }
}

/* ===== Quotation Kanban Board ===== */
.kanban-page {
    width: 100%;
    max-width: none;
}

.app-content:has(.kanban-page) {
    max-width: none;
    width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
}

.kanban-hint-mobile {
    display: none;
}

.kanban-mobile-tabs {
    display: none;
}

.kanban-empty {
    padding: 1.25rem 0.75rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.kanban-board {
    display: flex;
    gap: 0.85rem;
    align-items: stretch;
    width: 100%;
    padding-bottom: 0.75rem;
}

.kanban-column {
    flex: 1 1 0;
    min-width: 0;
    background: #f1f5f9;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    min-height: 420px;
    max-height: calc(100vh - 180px);
}

.kanban-column-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.75rem 0.85rem;
    border-bottom: 1px solid var(--border);
    background: #fff;
    border-radius: var(--radius) var(--radius) 0 0;
    position: sticky;
    top: 0;
    z-index: 1;
}

.kanban-count {
    min-width: 1.6rem;
    height: 1.6rem;
    padding: 0 0.4rem;
    border-radius: 999px;
    background: #e2e8f0;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.kanban-cards {
    flex: 1;
    overflow-y: auto;
    padding: 0.65rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    min-height: 120px;
    transition: background 0.15s ease;
    -webkit-overflow-scrolling: touch;
}

.kanban-cards.is-over {
    background: rgba(13, 110, 110, 0.08);
}

.kanban-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.7rem 0.8rem;
    box-shadow: var(--shadow-sm);
    cursor: grab;
    -webkit-user-select: none;
    user-select: none;
    touch-action: manipulation;
    -webkit-touch-callout: none;
}

.kanban-card:active {
    cursor: grabbing;
}

.kanban-card.is-dragging {
    opacity: 0.45;
}

.kanban-card-placeholder {
    min-height: 56px;
    border: 2px dashed #94a3b8;
    border-radius: var(--radius-sm);
    background: rgba(148, 163, 184, 0.15);
    pointer-events: none;
}

.kanban-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.kanban-card-client {
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--text);
    margin-bottom: 0.2rem;
    word-break: break-word;
}

.kanban-card-mobile {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.kanban-card-work {
    font-size: 0.78rem;
    line-height: 1.35;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.kanban-card-balance {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.badge-balance {
    display: inline-block;
    font-weight: 700;
    font-size: 0.82rem;
    color: #b45309;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 6px;
    padding: 0.15rem 0.45rem;
    white-space: nowrap;
}

.kanban-card-ref {
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.35rem;
}

.kanban-card-meta {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.45rem;
}

.kanban-card-status-row {
    display: none;
    flex-direction: column;
    gap: 0.3rem;
    margin-bottom: 0.55rem;
}

.kanban-status-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    margin: 0;
}

.kanban-status-select {
    width: 100%;
    min-height: 44px;
    font-size: 16px; /* prevents iOS zoom on focus */
}

.kanban-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.kanban-card-actions a {
    cursor: pointer;
}

/* Phone + tablet: CSS-first (works before JS â€” critical for iOS Safari) */
@media (max-width: 991px) {
    body:has(.kanban-page) .app-content {
        max-width: none;
        width: 100%;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
        padding-bottom: 2rem;
        overflow: visible;
    }

    .kanban-hint-desktop {
        display: none;
    }

    .kanban-hint-mobile {
        display: block;
    }

    .kanban-page-header {
        margin-bottom: 0.75rem;
        gap: 0.65rem;
    }

    .kanban-page-header h1 {
        font-size: 1.25rem;
    }

    .kanban-page-actions .btn-app {
        min-height: 44px;
    }

    .kanban-mobile-tabs {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.4rem;
        margin-bottom: 0.75rem;
        /* Avoid position:sticky here â€” iOS Safari + app topbar causes scroll lock */
        background: var(--bg);
        padding: 0.15rem 0 0.55rem;
    }

    .kanban-mobile-tab {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.2rem;
        min-height: 52px;
        padding: 0.45rem 0.3rem;
        border: 1px solid var(--border);
        border-radius: 10px;
        background: #fff;
        color: var(--text-muted);
        font-size: 0.72rem;
        font-weight: 600;
        line-height: 1.2;
        text-align: center;
        cursor: pointer;
        -webkit-appearance: none;
        appearance: none;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }

    .kanban-mobile-tab.is-active {
        background: #0d6e6e;
        border-color: #0d6e6e;
        color: #fff;
        box-shadow: 0 4px 12px rgba(13, 110, 110, 0.22);
    }

    .kanban-mobile-tab-count {
        min-width: 1.4rem;
        padding: 0.05rem 0.4rem;
        border-radius: 999px;
        background: rgba(15, 23, 42, 0.08);
        font-size: 0.7rem;
        font-weight: 700;
    }

    .kanban-mobile-tab.is-active .kanban-mobile-tab-count {
        background: rgba(255, 255, 255, 0.22);
        color: #fff;
    }

    .kanban-board {
        display: block;
        overflow: visible;
        padding-bottom: 0;
    }

    /* Hide inactive columns via CSS only â€” no JS class required on board */
    .kanban-column {
        display: none !important;
        flex: none;
        width: 100%;
        min-width: 0;
        min-height: 0;
        max-height: none !important;
        margin-bottom: 0;
        border: none;
        background: transparent;
    }

    .kanban-column.is-mobile-active {
        display: flex !important;
    }

    .kanban-column-header {
        display: none;
    }

    .kanban-cards {
        max-height: none !important;
        min-height: 0;
        overflow: visible !important;
        padding: 0;
        gap: 0.7rem;
        background: transparent;
    }

    .kanban-card {
        cursor: default;
        -webkit-user-select: text;
        user-select: text;
        touch-action: manipulation;
        padding: 0.9rem;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }

    .kanban-card-status-row {
        display: flex;
    }

    .kanban-card-actions .btn-app {
        min-width: 44px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .kanban-card-actions {
        gap: 0.5rem;
    }
}

@media (max-width: 420px) {
    .kanban-mobile-tab-label {
        font-size: 0.66rem;
    }

    .kanban-page-actions .btn-text {
        display: none;
    }
}

/* Advocate quotation */
.advocate-subject-editor {
    min-height: 120px;
    background: #fff;
    border-radius: 0 0 0.5rem 0.5rem;
}

.advocate-subject-editor .ql-editor {
    min-height: 100px;
    font-size: 1rem;
}

.desc-picker {
    position: relative;
    min-width: 220px;
}

.desc-picker-dropdown-float {
    position: fixed;
    z-index: 2000;
    max-height: 260px;
    overflow-x: hidden;
    overflow-y: auto;
    background: #fff;
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 0.5rem;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18);
    padding: 0.25rem 0;
}

.desc-picker-dropdown-float[hidden] {
    display: none !important;
}

.desc-picker-option {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
    padding: 0.65rem 0.85rem;
    font-size: 0.9rem;
    cursor: pointer;
    color: var(--text, #111827);
}

.desc-picker-option-text {
    flex: 1;
    min-width: 0;
    white-space: normal;
    line-height: 1.35;
}

.desc-picker-option:hover,
.desc-picker-option.is-active {
    background: #f1f5f9;
}

.desc-picker-option small {
    flex: 0 0 auto;
    color: var(--primary, #2563eb);
    font-weight: 600;
    white-space: nowrap;
}

/* â€”â€” Public marketing / SEO landing pages â€”â€” */
.mkt-body {
    background: #f8fafc;
}

.mkt-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1.25rem;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.mkt-nav-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: var(--text);
}

.mkt-nav-brand i {
    color: var(--primary);
    font-size: 1.25rem;
}

.mkt-nav-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.85rem 1rem;
    font-size: 0.92rem;
}

.mkt-nav-links a {
    color: var(--text-muted);
}

.mkt-nav-links a:hover {
    color: var(--primary);
}

.mkt-nav-login {
    font-weight: 600;
}

.mkt-nav-cta {
    padding: 0.45rem 0.9rem !important;
    color: #fff !important;
}

.mkt-nav-cta:hover,
.mkt-nav-cta:focus {
    color: #fff !important;
}

.mkt-hero {
    padding: 3.5rem 1.25rem 3rem;
    background:
        radial-gradient(ellipse 80% 60% at 10% 0%, rgba(79, 70, 229, 0.12), transparent 55%),
        radial-gradient(ellipse 70% 50% at 90% 20%, rgba(6, 182, 212, 0.1), transparent 50%),
        linear-gradient(180deg, #eef2ff 0%, #f8fafc 100%);
}

.mkt-hero-inner,
.mkt-section-inner,
.mkt-footer-inner {
    max-width: 980px;
    margin: 0 auto;
}

.mkt-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0 0 0.85rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary-dark);
    font-size: 0.85rem;
    font-weight: 600;
}

.mkt-hero h1 {
    margin: 0 0 1rem;
    font-size: clamp(1.85rem, 4vw, 2.65rem);
    line-height: 1.15;
    font-weight: 750;
    letter-spacing: -0.02em;
    color: var(--text);
}

.mkt-hero-lead {
    max-width: 40rem;
    margin: 0 0 1.5rem;
    font-size: 1.08rem;
    color: var(--text-muted);
}

.mkt-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.mkt-hero-points {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1.25rem;
    margin: 0;
    padding: 0;
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 500;
}

.mkt-hero-points i {
    color: var(--success);
    margin-right: 0.35rem;
}

.mkt-section {
    padding: 3rem 1.25rem;
}

.mkt-section-alt {
    background: #fff;
    border-block: 1px solid var(--border);
}

.mkt-section h2,
.mkt-cta-band h2 {
    margin: 0 0 0.5rem;
    font-size: clamp(1.4rem, 2.5vw, 1.85rem);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.mkt-section-lead {
    margin: 0 0 1.75rem;
    color: var(--text-muted);
    max-width: 36rem;
}

.mkt-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.mkt-feature {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.mkt-section-alt .mkt-feature {
    background: var(--bg);
}

.mkt-feature > i {
    display: inline-flex;
    width: 2.25rem;
    height: 2.25rem;
    align-items: center;
    justify-content: center;
    border-radius: 0.65rem;
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.mkt-feature h3 {
    margin: 0 0 0.4rem;
    font-size: 1.05rem;
}

.mkt-feature p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.mkt-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1rem;
}

.mkt-steps li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem 1.15rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.mkt-step-num {
    flex: 0 0 auto;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
}

.mkt-steps h3 {
    margin: 0 0 0.25rem;
    font-size: 1.05rem;
}

.mkt-steps p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.mkt-faq details {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fff;
    padding: 0.9rem 1rem;
    margin-bottom: 0.65rem;
}

.mkt-faq summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--text);
}

.mkt-faq details p {
    margin: 0.65rem 0 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.mkt-cta-band {
    padding: 3rem 1.25rem;
    background: linear-gradient(135deg, #312e81 0%, #4f46e5 55%, #0891b2 100%);
    color: #fff;
    text-align: center;
}

.mkt-cta-band p {
    margin: 0 0 1.25rem;
    opacity: 0.92;
}

.mkt-cta-band .btn-app-outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.55);
}

.mkt-cta-band .btn-app-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.mkt-footer {
    padding: 1.25rem;
    background: #0f172a;
    color: #94a3b8;
    font-size: 0.88rem;
}

.mkt-footer-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    justify-content: space-between;
    align-items: center;
}

.mkt-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
}

.mkt-footer a {
    color: #cbd5e1;
}

.mkt-footer a:hover {
    color: #fff;
}

a.auth-industry-tile {
    color: inherit;
    text-decoration: none;
}

@media (max-width: 768px) {
    .mkt-nav-links a:not(.mkt-nav-cta):not(.mkt-nav-login) {
        display: none;
    }

    .mkt-hero {
        padding-top: 2.25rem;
    }
}
