/**
 * AURIDO DESIGN SYSTEM
 * PT. Karya Manaru Energi
 * Standardized CSS Tokens & Reusable UI Classes
 * REBRANDING: RED (#FF0000) + NAVY (#0B1736) + LIGHT GRAY (#F4F6FA) + WHITE (#FFFFFF)
 */

:root {
    /* Brand Colors - Primary Red */
    --aurido-primary: #FF0000;
    --aurido-primary-hover: #CC0000;
    --aurido-primary-light: #FFF1F1;
    --aurido-primary-border: #FF0000;

    /* Header & Footer */
    --aurido-header: #FFFFFF;
    --aurido-header-border: #E2E8F0;
    --aurido-footer: #0B1736;
    --aurido-footer-text: #FFFFFF;
    --aurido-footer-secondary: #CBD5E1;
    --aurido-footer-hover: #FF0000;

    /* Navy / Dark */
    --aurido-navy: #0B1736;
    --aurido-navy-light: #162654;
    --aurido-navy-hover: #162654;
    --aurido-navy-surface: #0E1F47;

    --aurido-blue: #1e40af;
    --aurido-blue-light: #eff6ff;
    --aurido-blue-border: #bfdbfe;

    /* Accessible Link Token */
    --aurido-link: #1E40AF;
    --aurido-link-hover: #1D4ED8;

    /* Neutrals & Surfaces */
    --aurido-bg: #F4F6FA;
    --aurido-surface: #FFFFFF;
    --aurido-card-bg: #FFFFFF;
    --aurido-border: #E2E8F0;
    --aurido-border-light: #F1F5F9;
    --aurido-pale-gray: #F8FAFC;
    --aurido-table-header: #F1F5F9;

    /* Typography */
    --aurido-text: #0B1736;
    --aurido-text-secondary: #475569;
    --aurido-muted: #64748B;

    /* Brand primary alias for backward compatibility */
    --aurido-brand-primary: #0B1736;
    --aurido-brand-primary-hover: #162654;
    --aurido-red: #FF0000;
    --aurido-red-dark: #CC0000;

    /* Semantic Status Colors (Only success uses green) */
    --aurido-success: #166534;
    --aurido-success-bg: #DCFCE7;
    --aurido-success-text: #166534;
    --aurido-success-border: #86EFAC;

    --aurido-warning: #92400E;
    --aurido-warning-bg: #FEF3C7;
    --aurido-warning-text: #92400E;
    --aurido-warning-border: #FCD34D;

    --aurido-info: #1E40AF;
    --aurido-info-bg: #DBEAFE;
    --aurido-info-text: #1E40AF;
    --aurido-info-border: #93C5FD;

    --aurido-danger: #DC2626;
    --aurido-danger-bg: #FEE2E2;
    --aurido-danger-text: #991B1B;
    --aurido-danger-border: #FCA5A5;

    --aurido-neutral-bg: #f1f5f9;
    --aurido-neutral-text: #475569;
    --aurido-neutral-border: #cbd5e1;

    /* Radii */
    --radius-sm: 4px;
    --radius-md: 7px;
    --radius-lg: 10px;
    --radius-pill: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);

    /* Mobile Foundation Tokens (Batch 1) */
    --aurido-mobile-input-size: 16px;
    --aurido-mobile-tap-min: 44px;
    --aurido-mobile-btn-height: 44px;
}

/* ==========================================================================
   STATUS BADGES (SEMANTIC)
   ========================================================================== */

.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 11px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
    border-radius: var(--radius-pill);
    letter-spacing: 0.3px;
    white-space: nowrap;
    border: 1px solid transparent;
}

/* Semantic Badges */
.badge-status.badge-success {
    background: var(--aurido-success-bg);
    color: var(--aurido-success-text);
    border-color: var(--aurido-success-border);
}

.badge-status.badge-warning {
    background: var(--aurido-warning-bg);
    color: var(--aurido-warning-text);
    border-color: var(--aurido-warning-border);
}

.badge-status.badge-info {
    background: var(--aurido-info-bg);
    color: var(--aurido-info-text);
    border-color: var(--aurido-info-border);
}

.badge-status.badge-danger {
    background: var(--aurido-danger-bg);
    color: var(--aurido-danger-text);
    border-color: var(--aurido-danger-border);
}

.badge-status.badge-neutral,
.badge-status.badge-draft,
.badge-status.badge-inactive {
    background: var(--aurido-neutral-bg);
    color: var(--aurido-neutral-text);
    border-color: var(--aurido-neutral-border);
}

.badge-status.badge-pending,
.badge-status.badge-submitted,
.badge-status.badge-under_review,
.badge-status.badge-in_progress {
    background: var(--aurido-warning-bg);
    color: var(--aurido-warning-text);
    border-color: var(--aurido-warning-border);
}

.badge-status.badge-quoted,
.badge-status.badge-approved,
.badge-status.badge-accepted,
.badge-status.badge-converted,
.badge-status.badge-active {
    background: var(--aurido-success-bg);
    color: var(--aurido-success-text);
    border-color: var(--aurido-success-border);
}

.badge-status.badge-rejected,
.badge-status.badge-cancelled,
.badge-status.badge-revised,
.badge-status.badge-revision_requested {
    background: var(--aurido-danger-bg);
    color: var(--aurido-danger-text);
    border-color: var(--aurido-danger-border);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn-aurido,
.btn-aurido-primary,
.btn-aurido-navy,
.btn-aurido-secondary,
.btn-aurido-outline,
.btn-aurido-neutral,
.btn-aurido-outline-red {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 700;
    border-radius: var(--radius-md);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s ease-in-out;
    border: 1px solid transparent;
    line-height: 1.4;
}

.btn-aurido-primary {
    background: var(--aurido-primary);
    color: #ffffff;
    border-color: var(--aurido-primary);
}
.btn-aurido-primary:hover {
    background: var(--aurido-primary-hover);
    border-color: var(--aurido-primary-hover);
    color: #ffffff;
}

.btn-aurido-navy {
    background: var(--aurido-navy);
    color: #ffffff;
    border-color: var(--aurido-navy);
}
.btn-aurido-navy:hover {
    background: var(--aurido-navy-light);
    border-color: var(--aurido-navy-light);
    color: #ffffff;
}

.btn-aurido:focus-visible {
    outline: 2px solid var(--aurido-primary);
    outline-offset: 2px;
}

.btn-aurido-navy:focus-visible {
    outline: 2px solid var(--aurido-navy-light);
    outline-offset: 2px;
}

.btn-aurido-secondary {
    background: #ffffff;
    color: var(--aurido-navy);
    border-color: var(--aurido-navy);
}
.btn-aurido-secondary:hover {
    background: var(--aurido-bg);
    border-color: var(--aurido-navy);
    color: var(--aurido-navy);
}

.btn-aurido-outline,
.btn-aurido-neutral {
    background: #ffffff;
    color: var(--aurido-navy);
    border-color: var(--aurido-border, #E2E8F0);
}
.btn-aurido-outline:hover,
.btn-aurido-neutral:hover {
    background: var(--aurido-bg, #F4F6FA);
    border-color: #cbd5e1;
    color: var(--aurido-navy);
}

.btn-aurido-outline-red,
.btn-see-all {
    background: #ffffff;
    color: var(--aurido-primary);
    border-color: var(--aurido-primary);
}
.btn-aurido-outline-red:hover,
.btn-see-all:hover {
    background: var(--aurido-primary-light);
    border-color: var(--aurido-primary-hover);
    color: var(--aurido-primary-hover);
}

.btn-aurido-sm {
    padding: 6px 12px;
    font-size: 11px;
}

/* ==========================================================================
   CARDS & CONTAINERS
   ========================================================================== */

.aurido-card {
    background: var(--aurido-surface);
    border: 1px solid var(--aurido-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.aurido-metric-card {
    background: var(--aurido-surface);
    border: 1px solid var(--aurido-border);
    border-radius: var(--radius-lg);
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.aurido-metric-card:hover {
    box-shadow: var(--shadow-md);
}

.aurido-metric-num {
    font-size: 28px;
    font-weight: 800;
    color: var(--aurido-navy);
    line-height: 1.2;
    margin-top: 6px;
}

.aurido-metric-label {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--aurido-muted);
    letter-spacing: 0.5px;
}

/* ==========================================================================
   ALERTS / FLASH MESSAGES
   ========================================================================== */

.aurido-alert {
    position: relative;
    padding: 12px 18px;
    border-radius: var(--radius-md, 8px);
    margin-bottom: 20px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border: 1px solid transparent;
    transition: opacity 0.25s ease-out, transform 0.25s ease-out, max-height 0.25s ease-out, margin 0.25s ease-out, padding 0.25s ease-out;
    box-sizing: border-box;
}

.aurido-alert.auriva-alert-closing {
    opacity: 0 !important;
    transform: translateY(-6px) scale(0.98);
    max-height: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    border-top-width: 0 !important;
    border-bottom-width: 0 !important;
    pointer-events: none;
    overflow: hidden;
}

.aurido-alert-icon {
    font-weight: 900;
    font-size: 15px;
    line-height: 1.2;
    flex-shrink: 0;
    margin-top: 1px;
    pointer-events: none;
    user-select: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.aurido-alert-icon svg {
    display: block;
    width: 18px;
    height: 18px;
    pointer-events: none;
}

.aurido-alert-content {
    flex: 1 1 auto;
    min-width: 0;
}

.aurido-alert-content ul {
    margin-top: 6px;
    padding-left: 18px;
}

.aurido-alert-content li {
    margin-bottom: 2px;
}

.aurido-alert-close {
    flex-shrink: 0;
    margin-left: auto;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 2px 6px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    color: currentColor;
    opacity: 0.65;
    border-radius: 4px;
    transition: opacity 0.15s ease, background-color 0.15s ease, transform 0.1s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.aurido-alert-close:hover {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.08);
}

.aurido-alert-close:active {
    transform: scale(0.95);
}

.aurido-alert-close:focus-visible {
    opacity: 1;
    outline: 2px solid currentColor;
    outline-offset: 1px;
}

.aurido-alert-success {
    background: var(--aurido-success-bg, #DCFCE7);
    color: var(--aurido-success-text, #166534);
    border-color: var(--aurido-success-border, #86EFAC);
}

.aurido-alert-info {
    background: var(--aurido-info-bg, #f0f9ff);
    color: var(--aurido-info-text, #0369a1);
    border-color: var(--aurido-info-border, #bae6fd);
}

.aurido-alert-warning {
    background: var(--aurido-warning-bg, #FFFBEB);
    color: var(--aurido-warning-text, #92400E);
    border-color: var(--aurido-warning-border, #FDE68A);
}

.aurido-alert-danger {
    background: var(--aurido-danger-bg, #FEE2E2);
    color: var(--aurido-danger-text, #991B1B);
    border-color: var(--aurido-danger-border, #FCA5A5);
}

/* ==========================================================================
   TABLES
   ========================================================================== */

.aurido-table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-lg);
    border: 1px solid var(--aurido-border);
    background: #ffffff;
}

.aurido-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 13px;
}

.aurido-table th {
    background: var(--aurido-table-header, #F1F5F9);
    color: var(--aurido-navy);
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--aurido-border);
}

.aurido-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--aurido-border-light);
    color: var(--aurido-text);
    vertical-align: middle;
}

.aurido-table tr:last-child td {
    border-bottom: none;
}

.aurido-table tr:hover td {
    background: #FFF1F1;
}

/* Accessible Links Token & Table Links */
a.aurido-link,
.aurido-link,
.aurido-table td a:not(.btn-aurido):not(.badge-status):not(.aurido-action-icon) {
    color: var(--aurido-link, #1E40AF);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.15s ease;
}

a.aurido-link:hover,
.aurido-link:hover,
.aurido-table td a:not(.btn-aurido):not(.badge-status):not(.aurido-action-icon):hover {
    color: var(--aurido-link-hover, #1D4ED8);
    text-decoration: underline;
}

/* ==========================================================================
   PRODUCT CARD & ACTION BUTTONS (TASK 13.1 ALIGNMENT PRESERVED)
   ========================================================================== */

.product-card {
    background: #ffffff;
    border: 1px solid var(--aurido-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.product-card-body,
.product-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-pricing {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px dashed var(--aurido-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.product-footer,
.product-card-actions {
    display: flex;
    gap: 8px;
    align-items: stretch;
    width: 100%;
    margin-top: 0;
}

.product-footer .details,
.product-footer .add-rfq {
    flex: 1;
    height: 36px;
    min-height: 36px;
    max-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
    white-space: nowrap;
    padding: 0 10px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.product-footer .details {
    background: #ffffff;
    border: 1px solid var(--aurido-navy);
    color: var(--aurido-navy);
}

.product-footer .details:hover {
    background: var(--aurido-bg);
    border-color: var(--aurido-navy);
    color: var(--aurido-navy);
}

.product-footer .add-rfq {
    background: var(--aurido-primary);
    border: 1px solid var(--aurido-primary);
    color: #ffffff;
}

.product-footer .add-rfq:hover {
    background: var(--aurido-primary-hover);
    border-color: var(--aurido-primary-hover);
    color: #ffffff;
}

/* ==========================================================================
   INTERACTIVE MODAL ("REQUEST A QUOTE" & DIALOGS)
   ========================================================================== */

.aurido-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(8, 21, 52, 0.65);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 16px;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
}

.aurido-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.aurido-modal-card {
    background: #ffffff;
    border: 1px solid var(--aurido-border);
    border-radius: 12px;
    width: 100%;
    max-width: 480px;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 32px 28px;
    box-shadow: 0 20px 25px -5px rgba(8, 21, 52, 0.2), 0 10px 10px -5px rgba(8, 21, 52, 0.08);
    position: relative;
    transform: translateY(12px) scale(0.98);
    transition: transform 0.2s ease-in-out;
    box-sizing: border-box;
    margin: auto;
}

.aurido-modal-overlay.active .aurido-modal-card {
    transform: translateY(0) scale(1);
}

.aurido-modal-close-btn {
    position: absolute;
    top: 18px;
    right: 18px;
    background: transparent;
    border: none;
    font-size: 22px;
    line-height: 1;
    color: var(--aurido-muted);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.15s ease;
}

.aurido-modal-close-btn:hover {
    color: var(--aurido-navy);
    background: var(--aurido-bg);
}

.aurido-modal-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #FFF1F1;
    color: var(--aurido-primary, #FF0000);
    border: 1px solid #FFE2E2;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.aurido-modal-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--aurido-navy, #0B1736);
    margin-bottom: 6px;
    line-height: 1.3;
    letter-spacing: -0.2px;
}

.aurido-modal-desc {
    font-size: 13px;
    color: var(--aurido-muted, #475569);
    line-height: 1.5;
    margin-bottom: 18px;
}

.aurido-modal-product-preview {
    background: #F8FAFC;
    border: 1px solid var(--aurido-border, #E2E8F0);
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-sizing: border-box;
}

.aurido-modal-product-preview .preview-badge {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    color: #64748B;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.aurido-modal-product-preview .preview-brand {
    font-size: 10px;
    font-weight: 800;
    color: var(--aurido-primary, #FF0000);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.aurido-modal-product-preview .preview-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--aurido-navy, #0B1736);
    line-height: 1.35;
    word-break: break-word;
}

.aurido-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.aurido-modal-cta-block,
.aurido-modal-signin-block {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.aurido-modal-cta-hint,
.aurido-modal-signin-hint {
    font-size: 11px;
    font-weight: 600;
    color: var(--aurido-muted, #64748B);
    margin-bottom: 6px;
    text-align: left;
    letter-spacing: 0.2px;
}

/* Primary CTA - Create Account */
.aurido-modal-btn-create,
.aurido-modal-btn-register {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 44px;
    background: var(--aurido-primary, #FF0000);
    border: 1px solid var(--aurido-primary, #FF0000);
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.3px;
    padding: 0 18px;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(255, 0, 0, 0.22);
    transition: all 0.15s ease;
    box-sizing: border-box;
    cursor: pointer;
}

.aurido-modal-btn-create:hover,
.aurido-modal-btn-register:hover {
    background: var(--aurido-primary-hover, #CC0000);
    border-color: var(--aurido-primary-hover, #CC0000);
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(255, 0, 0, 0.3);
}

/* Secondary CTA - Sign In */
.aurido-modal-btn-signin,
.aurido-modal-btn-login {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    min-height: 42px;
    background: #ffffff;
    border: 1px solid var(--aurido-navy, #0B1736);
    color: var(--aurido-navy, #0B1736) !important;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.2px;
    padding: 0 16px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.15s ease;
    box-sizing: border-box;
    cursor: pointer;
}

.aurido-modal-btn-signin:hover,
.aurido-modal-btn-login:hover {
    background: #F8FAFC;
    border-color: #162654;
    color: #162654 !important;
}

/* Tertiary Link - Continue Browsing */
.aurido-modal-btn-cancel {
    display: block;
    width: 100%;
    text-align: center;
    background: transparent;
    border: none;
    color: var(--aurido-muted, #64748B);
    font-size: 12px;
    font-weight: 600;
    padding: 8px 12px;
    cursor: pointer;
    text-decoration: none;
    margin-top: 2px;
    transition: color 0.15s ease;
    font-family: inherit;
}

.aurido-modal-btn-cancel:hover {
    color: var(--aurido-navy, #0B1736);
    text-decoration: underline;
}

@media (max-height: 600px), (max-width: 480px) {
    .aurido-modal-overlay {
        padding: 12px;
    }

    .aurido-modal-card {
        padding: 20px 16px 16px;
        max-height: calc(100vh - 24px);
        max-height: calc(100dvh - 24px);
        border-radius: 10px;
    }

    .aurido-modal-close-btn {
        top: 12px;
        right: 12px;
        width: 28px;
        height: 28px;
        font-size: 20px;
    }

    .aurido-modal-icon {
        width: 36px;
        height: 36px;
        margin-bottom: 10px;
    }

    .aurido-modal-title {
        font-size: 18px;
        margin-bottom: 4px;
        padding-right: 28px;
    }

    .aurido-modal-desc {
        font-size: 12px;
        line-height: 1.45;
        margin-bottom: 12px;
    }

    .aurido-modal-product-preview {
        padding: 8px 10px;
        margin-bottom: 14px;
        gap: 8px;
    }

    .aurido-modal-product-preview .preview-badge {
        width: 28px;
        height: 28px;
    }

    .aurido-modal-product-preview .preview-name {
        font-size: 12px;
    }

    .aurido-modal-actions {
        gap: 10px;
    }

    .aurido-modal-cta-hint,
    .aurido-modal-signin-hint {
        font-size: 10.5px;
        margin-bottom: 4px;
    }

    .aurido-modal-btn-create,
    .aurido-modal-btn-register {
        min-height: 42px;
        font-size: 13px;
    }

    .aurido-modal-btn-signin,
    .aurido-modal-btn-login {
        min-height: 40px;
        font-size: 12.5px;
    }

    .aurido-modal-btn-cancel {
        padding: 6px 10px;
        font-size: 11.5px;
    }
}
}

/* ==========================================================================
   ADMIN & SALES STANDARDIZED PERSISTENT APPLICATION SHELL (WHITE REBRANDING)
   ========================================================================== */

.aurido-shell {
    display: flex;
    min-height: 100vh;
    background: var(--aurido-bg);
}

.aurido-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 220px;
    min-width: 220px;
    max-width: 220px;
    height: 100vh;
    background: #FFFFFF;
    color: var(--aurido-navy);
    border-right: 1px solid var(--aurido-border);
    padding: 16px 8px 24px;
    overflow-y: auto;
    z-index: 100;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.aurido-sidebar-brand {
    padding: 6px 0 14px;
    border-bottom: 1px solid var(--aurido-border);
    margin-bottom: 14px;
    background: #FFFFFF;
    text-align: center;
}

.aurido-sidebar-brand .auriva-wordmark {
    display: block !important;
    width: 100% !important;
    text-decoration: none;
    margin-bottom: 8px;
    line-height: 0;
}

.aurido-sidebar-brand .auriva-logo-img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.aurido-sidebar-brand h1 {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--aurido-navy);
    line-height: 1.2;
}

.aurido-sidebar-brand span {
    display: block;
    margin-top: 4px;
    font-size: 9px;
    color: var(--aurido-muted);
    letter-spacing: 0.8px;
    font-weight: 600;
    text-align: center;
}

.aurido-sidebar-section {
    padding: 0 10px;
    margin-bottom: 8px;
    color: var(--aurido-muted);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.aurido-sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.aurido-sidebar-menu a,
.aurido-sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    padding: 0 12px;
    border-radius: var(--radius-md);
    color: var(--aurido-navy);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.15s ease, color 0.15s ease;
    box-sizing: border-box;
}

.aurido-sidebar-menu a:hover,
.aurido-sidebar-link:hover {
    background: #F1F5F9;
    color: var(--aurido-navy);
}

.aurido-sidebar-menu a.active,
.aurido-sidebar-link.active {
    background: var(--aurido-primary, #FF0000) !important;
    color: #ffffff !important;
    font-weight: 700;
    border-left: none !important;
}

.aurido-sidebar-menu a.active:hover,
.aurido-sidebar-link.active:hover {
    background: var(--aurido-primary-hover, #CC0000) !important;
    color: #ffffff !important;
}

.aurido-sidebar-menu a.active .aurido-sidebar-icon,
.aurido-sidebar-link.active .aurido-sidebar-icon,
.aurido-sidebar-menu a.active svg,
.aurido-sidebar-link.active svg {
    color: #ffffff !important;
    fill: currentColor;
}

.aurido-sidebar-icon {
    width: 20px;
    text-align: center;
    font-size: 14px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.aurido-sidebar-footer {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--aurido-border);
}

.aurido-sidebar-footer button,
.aurido-sidebar-logout-btn {
    width: 100%;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: var(--aurido-muted);
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    text-align: left;
    box-sizing: border-box;
}

.aurido-sidebar-footer button:hover,
.aurido-sidebar-logout-btn:hover {
    background: #FEE2E2;
    color: #DC2626;
}

.aurido-content {
    margin-left: 220px;
    width: calc(100% - 220px);
    min-height: 100vh;
    background: var(--aurido-bg);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.aurido-topbar {
    height: 64px;
    min-height: 64px;
    background: #ffffff;
    border-bottom: 1px solid var(--aurido-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 28px;
    position: sticky;
    top: 0;
    z-index: 50;
    box-sizing: border-box;
}

.aurido-topbar-left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.aurido-topbar-heading {
    display: flex;
    flex-direction: column;
    border-left: 4px solid var(--aurido-primary);
    padding-left: 12px;
    border-radius: 2px;
}

.aurido-topbar-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--aurido-navy);
    line-height: 1.2;
    margin: 0;
    letter-spacing: -0.2px;
}

.aurido-topbar-subtitle {
    font-size: 12px;
    color: var(--aurido-muted);
    margin-top: 2px;
    line-height: 1.3;
}

.aurido-topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.aurido-mobile-toggle {
    display: none;
    background: #ffffff;
    border: 1px solid var(--aurido-border);
    padding: 7px 11px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    color: var(--aurido-navy);
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.aurido-mobile-toggle:hover {
    background: var(--aurido-primary-light);
    color: var(--aurido-primary);
    border-color: var(--aurido-primary);
}

.aurido-drawer-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(8, 21, 52, 0.45);
    backdrop-filter: blur(2px);
    z-index: 95;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.aurido-drawer-backdrop.active {
    display: block;
    opacity: 1;
}

.aurido-main {
    padding: 24px 28px;
    flex: 1;
    box-sizing: border-box;
    width: 100%;
}

.aurido-container {
    max-width: 1380px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

.aurido-sidebar-role-badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    border-radius: var(--radius-pill);
    margin-top: 6px;
}

.aurido-sidebar-role-badge.badge-admin {
    background: var(--aurido-navy, #0B1736);
    color: #ffffff;
}

.aurido-sidebar-role-badge.badge-sales {
    background: #1e40af;
    color: #ffffff;
}

.aurido-sidebar-role-badge.badge-customer {
    background: #0284c7;
    color: #ffffff;
}

.aurido-user-badge {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 4px 12px;
    background: #ffffff;
    border: 1px solid var(--aurido-border);
    border-radius: var(--radius-pill);
    text-decoration: none;
    transition: all 0.15s ease;
}

.aurido-user-badge:hover {
    border-color: var(--aurido-navy);
    background: var(--aurido-bg);
}

.aurido-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--aurido-navy);
    color: #ffffff;
    font-weight: 800;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.aurido-avatar-admin {
    background: var(--aurido-navy, #0B1736);
}

.aurido-avatar-sales {
    background: #1e40af;
}

.aurido-avatar-customer {
    background: #0284c7;
}

.aurido-user-meta strong {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--aurido-navy);
    line-height: 1.2;
}

.aurido-user-meta small {
    display: block;
    font-size: 10px;
    color: var(--aurido-muted);
    line-height: 1.2;
}

.aurido-icon-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid var(--aurido-border);
    color: var(--aurido-navy);
    text-decoration: none;
    font-size: 15px;
    transition: all 0.15s ease;
    cursor: pointer;
}

.aurido-icon-btn:hover {
    border-color: var(--aurido-primary);
    color: var(--aurido-primary);
    background: var(--aurido-primary-light);
}

.aurido-icon-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--aurido-primary);
    color: #ffffff;
    border-radius: var(--radius-pill);
    font-size: 10px;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    line-height: 1;
    border: 2px solid #ffffff;
}

/* ==========================================================================
   BREADCRUMBS & ACTION BARS
   ========================================================================== */

.aurido-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--aurido-muted);
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.aurido-breadcrumb a {
    color: var(--aurido-muted);
    text-decoration: none;
    transition: color 0.15s ease;
}

.aurido-breadcrumb a:hover {
    color: var(--aurido-primary);
}

.aurido-breadcrumb-separator {
    color: #94a3b8;
    font-size: 10px;
}

.aurido-breadcrumb-current {
    color: var(--aurido-navy);
    font-weight: 700;
}

.aurido-action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

/* ==========================================================================
   FORM CONTROLS & INPUTS
   ========================================================================== */

.aurido-form-group {
    margin-bottom: 18px;
}

.aurido-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--aurido-navy);
    margin-bottom: 6px;
    letter-spacing: 0.2px;
}

.aurido-label .required {
    color: var(--aurido-primary);
}

.aurido-input,
.aurido-select,
.aurido-textarea {
    width: 100%;
    padding: 9px 13px;
    font-size: 13px;
    font-family: inherit;
    color: var(--aurido-navy);
    background: #ffffff;
    border: 1px solid var(--aurido-border);
    border-radius: var(--radius-md);
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    box-sizing: border-box;
}

.aurido-input:focus,
.aurido-select:focus,
.aurido-textarea:focus {
    border-color: var(--aurido-primary);
    box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.1);
}

.aurido-input::placeholder,
.aurido-textarea::placeholder {
    color: #94a3b8;
}

.aurido-input[readonly],
.aurido-input[disabled],
.aurido-select[disabled],
.aurido-textarea[disabled] {
    background: var(--aurido-neutral-bg);
    cursor: not-allowed;
    color: #64748b;
}

.aurido-textarea {
    resize: vertical;
    min-height: 80px;
}

.aurido-help-text {
    font-size: 11px;
    color: var(--aurido-muted);
    margin-top: 4px;
}

.aurido-form-error {
    font-size: 11px;
    color: var(--aurido-danger-text);
    margin-top: 4px;
    font-weight: 600;
}

/* ==========================================================================
   STATS & KPI GRID
   ========================================================================== */

.aurido-stats-grid,
.aurido-kpi-grid,
.aurido-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 24px;
}

.aurido-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 24px;
}

@media (max-width: 1100px) {
    .aurido-stats-grid,
    .aurido-kpi-grid,
    .aurido-grid-4,
    .aurido-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .aurido-stats-grid,
    .aurido-kpi-grid,
    .aurido-grid-4,
    .aurido-grid-3,
    .summary-cards-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .aurido-stat-card,
    .aurido-kpi-card,
    .stat-card,
    .metric-card {
        padding: 12px 14px !important;
    }

    .aurido-stat-value,
    .aurido-kpi-value,
    .stat-value,
    .metric-val {
        font-size: 22px !important;
        line-height: 1.2 !important;
    }

    .aurido-stat-label,
    .aurido-kpi-label,
    .stat-label,
    .metric-label {
        font-size: 10px !important;
    }

    .aurido-stat-sub,
    .aurido-kpi-sub,
    .stat-sub,
    .metric-sub {
        font-size: 10px !important;
        line-height: 1.3 !important;
    }
}

@media (max-width: 360px) {
    .aurido-stats-grid,
    .aurido-kpi-grid,
    .aurido-grid-4,
    .aurido-grid-3,
    .summary-cards-grid {
        gap: 8px !important;
    }

    .aurido-stat-card,
    .aurido-kpi-card,
    .stat-card,
    .metric-card {
        padding: 10px 8px !important;
    }

    .aurido-stat-value,
    .aurido-kpi-value,
    .stat-value,
    .metric-val {
        font-size: 20px !important;
    }
}

.aurido-stat-card,
.aurido-kpi-card,
.stat-card {
    background: #ffffff;
    border: 1px solid var(--aurido-border);
    border-radius: var(--radius-lg);
    padding: 20px 22px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    box-sizing: border-box;
}

a.aurido-stat-card,
a.aurido-kpi-card,
a.metric-card,
a.stat-card {
    text-decoration: none !important;
    color: inherit !important;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.aurido-stat-card:hover,
.aurido-kpi-card:hover,
.stat-card:hover,
a.aurido-stat-card:hover,
a.aurido-kpi-card:hover,
a.metric-card:hover,
a.stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.aurido-stat-label,
.aurido-kpi-label,
.stat-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--aurido-muted);
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    display: block;
}

.aurido-stat-value,
.aurido-kpi-value,
.stat-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--aurido-navy);
    line-height: 1.2;
    margin-bottom: 4px;
}

.aurido-stat-value.stat-value-warning,
.aurido-kpi-value.stat-value-warning,
.stat-value.stat-value-warning {
    color: #d97706;
}

.aurido-stat-value.stat-value-info,
.aurido-kpi-value.stat-value-info,
.stat-value.stat-value-info {
    color: #2563eb;
}

.aurido-stat-value.stat-value-success,
.aurido-kpi-value.stat-value-success,
.stat-value.stat-value-success {
    color: #16a34a;
}

.aurido-stat-sub,
.aurido-kpi-trend,
.stat-sub {
    font-size: 11px;
    color: var(--aurido-muted);
    display: inline-block;
}

.aurido-topbar-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* ==========================================================================
   STANDARDIZED WORKSPACE FOOTER
   ========================================================================== */

.aurido-workspace-footer {
    background: var(--aurido-footer, #0B1736);
    color: var(--aurido-footer-text, #FFFFFF);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 22px 28px;
    margin-top: auto;
}

.aurido-workspace-footer-inner {
    max-width: 1380px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 12px;
    color: var(--aurido-footer-secondary, #CBD5E1);
}

.aurido-workspace-footer-links {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.aurido-workspace-footer-links a {
    color: var(--aurido-footer-secondary, #CBD5E1);
    text-decoration: none;
    transition: color 0.15s ease;
}

.aurido-workspace-footer-links a:hover {
    color: #FFFFFF;
}

/* ==========================================================================
   RESPONSIVE DRAWER & BREAKPOINTS (TABLET & MOBILE)
   ========================================================================== */

@media (max-width: 900px) {
    .aurido-sidebar {
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        max-width: min(280px, 85vw);
    }

    .aurido-sidebar.open {
        transform: translateX(0);
        box-shadow: 4px 0 24px rgba(8, 21, 52, 0.15);
    }

    .aurido-content {
        margin-left: 0 !important;
        width: 100% !important;
    }

    .aurido-topbar {
        padding: 0 16px;
    }

    .aurido-topbar-left {
        min-width: 0;
        flex: 1;
        overflow: hidden;
    }

    .aurido-topbar-heading {
        min-width: 0;
    }

    .aurido-topbar-title {
        font-size: 16px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .aurido-topbar-subtitle {
        display: none !important;
    }

    .aurido-mobile-toggle {
        display: inline-flex;
    }

    .aurido-main {
        padding: 20px 16px;
    }

    .aurido-user-meta small {
        display: none;
    }

    .aurido-workspace-footer {
        padding: 18px 16px;
    }
}

@media (max-width: 768px) {
    .aurido-topbar {
        height: 56px !important;
        min-height: 56px !important;
        padding: 0 12px !important;
        gap: 8px !important;
    }

    .aurido-topbar-actions {
        display: none !important;
    }

    .aurido-user-meta {
        display: none !important;
    }

    .aurido-topbar-logout,
    .aurido-topbar-right form,
    .customer-topbar-logout,
    .topbar-logout-btn {
        display: none !important;
    }

    .aurido-user-badge {
        padding: 2px !important;
        border-radius: 50% !important;
        gap: 0 !important;
        border: none !important;
        background: transparent !important;
    }

    .aurido-topbar-left {
        min-width: 0 !important;
        flex: 1 !important;
        overflow: hidden !important;
    }

    .aurido-topbar-title {
        font-size: 15px !important;
        max-width: 170px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .aurido-topbar-right {
        gap: 8px !important;
        flex-shrink: 0 !important;
    }
}

@media (max-width: 600px) {
    .aurido-topbar {
        padding: 0 10px !important;
        gap: 6px !important;
    }

    .aurido-topbar-title {
        font-size: 14px !important;
        max-width: 150px !important;
    }

    .aurido-topbar-right {
        gap: 6px !important;
    }

    .aurido-topbar-right .btn-aurido {
        display: none !important;
    }
}

@media (max-width: 360px) {
    .aurido-topbar {
        padding: 0 8px !important;
        gap: 4px !important;
    }

    .aurido-topbar-title {
        font-size: 13px !important;
        max-width: 125px !important;
    }

    .aurido-topbar-right {
        gap: 4px !important;
    }
}

@media (max-width: 768px) {
    .card-header,
    .aurido-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .card-header > div:last-child,
    .aurido-card-header > div:last-child {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .card-header > div:last-child .rfq-search-container,
    .card-header > div:last-child input,
    .card-header > div:last-child select,
    .card-header > div:last-child .btn-aurido {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }
}

/* ==========================================================================
   LARGE DISPLAY SCALING (1400px+ LAPTOP/DESKTOP & 1921px+ 2K/QHD MONITORS)
   Standardizes viewing so the layout fills wide screens naturally at 100% scale
   ========================================================================== */

@media (min-width: 1400px) {
    .aurido-container,
    .aurido-workspace-footer-inner {
        max-width: 1480px;
    }

    header.public-header .header-inner {
        width: min(1400px, 92%);
    }
}

@media (min-width: 1600px) {
    .aurido-container,
    .aurido-workspace-footer-inner {
        max-width: 1560px;
    }
}

@media (min-width: 1921px) {
    .aurido-container,
    .aurido-workspace-footer-inner {
        max-width: 1720px;
    }

    header.public-header .header-inner {
        width: min(1680px, 92%);
    }
}

/* ==========================================================================
   AURIVA WORDMARK & LOGO CLASSES
   ========================================================================== */

.auriva-logo-img {
    height: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
}

.auriva-logo-box {
    background: #ffffff;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.auriva-wordmark {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 26px;
    font-weight: 900;
    letter-spacing: 0.5px;
    color: var(--aurido-navy, #0B1736);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.auriva-wordmark .dot {
    color: var(--aurido-primary, #FF0000);
}

.auriva-wordmark-light {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 0.5px;
    color: #FFFFFF;
    text-decoration: none;
    display: inline-flex;
    align-items: baseline;
    line-height: 1;
}

.auriva-wordmark-light .dot {
    color: var(--aurido-primary, #FF0000);
}

/* ==========================================================================
   STANDARDIZED SHARED ADMIN & SALES UI COMPONENTS
   ========================================================================== */

.table-card,
.aurido-table-card {
    background: #ffffff;
    border: 1px solid var(--aurido-border);
    border-radius: var(--radius-lg);
    padding: 22px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}

.card-header,
.aurido-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 12px;
}

.card-header h3,
.aurido-card-header h3 {
    font-size: 17px;
    font-weight: 800;
    color: var(--aurido-navy);
    margin: 0 0 4px 0;
    line-height: 1.2;
}

.card-header p,
.aurido-card-header p {
    font-size: 12px;
    color: var(--aurido-muted);
    margin: 0;
}

.table-responsive,
.aurido-table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Dual-Mode Responsive Data Views */
.desktop-table-view {
    display: block;
}

.mobile-card-list {
    display: none;
}

.mobile-table-scroll-hint {
    display: none;
}

@media (max-width: 768px) {
    .desktop-table-view {
        display: none !important;
        visibility: hidden !important;
        overflow: hidden !important;
        width: 0 !important;
        max-width: 0 !important;
        height: 0 !important;
    }

    .mobile-card-list {
        display: flex !important;
        flex-direction: column;
        gap: 12px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .mobile-table-scroll-hint {
        display: block !important;
        padding: 6px 12px;
        background: #EFF6FF;
        border-bottom: 1px solid #BFDBFE;
        color: #1D4ED8;
        font-size: 11px;
        font-weight: 600;
        text-align: center;
        border-radius: var(--radius-sm, 6px) var(--radius-sm, 6px) 0 0;
    }

    .calc-input.price-input,
    .calc-input.discount-input,
    .calc-input {
        font-size: 16px !important;
        min-width: 130px !important;
        height: 42px !important;
    }

    .aurido-mobile-card {
        background: #ffffff;
        border: 1px solid var(--aurido-border, #E2E8F0);
        border-radius: var(--radius-md, 8px);
        padding: 14px;
        box-shadow: 0 1px 3px rgba(11, 23, 54, 0.05);
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .aurido-mobile-card-header {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 8px;
        padding-bottom: 8px;
        border-bottom: 1px solid #F1F5F9;
    }

    .aurido-mobile-card-body {
        display: flex;
        flex-direction: column;
        gap: 6px;
        font-size: 12px;
    }

    .aurido-mobile-card-row {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 8px;
    }

    .aurido-mobile-card-label {
        color: #64748B;
        font-size: 11px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.3px;
        flex-shrink: 0;
    }

    .aurido-mobile-card-value {
        color: #0B1736;
        font-size: 12px;
        font-weight: 500;
        text-align: right;
        word-break: break-word;
    }

    .aurido-mobile-card-actions {
        margin-top: 4px;
        padding-top: 8px;
        border-top: 1px solid #F1F5F9;
        display: flex;
        flex-direction: column;
        gap: 8px;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .aurido-mobile-card-actions .btn-aurido,
    .aurido-mobile-card-actions .btn-action-primary,
    .aurido-mobile-card-actions .action-btn {
        width: 100% !important;
        min-height: 42px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        font-size: 12px !important;
        font-weight: 700 !important;
        padding: 8px 12px !important;
        border-radius: 6px !important;
        box-sizing: border-box !important;
    }
}

@media (max-width: 480px) {
    .sales-dashboard-cards-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
}

.rfq-code {
    font-family: monospace;
    font-weight: 700;
    color: var(--aurido-navy);
    font-size: 12px;
}

.btn-view,
.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    background: #ffffff;
    color: var(--aurido-navy);
    border: 1px solid var(--aurido-navy);
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.btn-view:hover,
.btn-action:hover {
    background: var(--aurido-bg);
    color: var(--aurido-navy);
}

.btn-action-primary {
    background: var(--aurido-primary);
    color: #ffffff;
    border-color: var(--aurido-primary);
}

.btn-action-primary:hover {
    background: var(--aurido-primary-hover);
    color: #ffffff;
    border-color: var(--aurido-primary-hover);
}

.btn-view.btn-action-primary,
.btn-action.btn-action-primary {
    background: var(--aurido-primary) !important;
    color: #ffffff !important;
    border-color: var(--aurido-primary) !important;
}

.btn-view.btn-action-primary:hover,
.btn-action.btn-action-primary:hover {
    background: var(--aurido-primary-hover) !important;
    color: #ffffff !important;
    border-color: var(--aurido-primary-hover) !important;
}

.btn-view-red,
.btn-view-action,
.btn-view.btn-view-red,
.btn-action.btn-view-red,
.workspace-table td a.btn-aurido-secondary[href^="/rfq/"],
.workspace-table td a.btn-aurido-secondary[href^="/customer-request/"] {
    background: var(--aurido-primary, #FF0000) !important;
    color: #ffffff !important;
    border-color: var(--aurido-primary, #FF0000) !important;
}

.btn-view-red:hover,
.btn-view-action:hover,
.btn-view-red:focus,
.btn-view-action:focus,
.btn-view.btn-view-red:hover,
.btn-action.btn-view-red:hover,
.btn-view.btn-view-red:focus,
.btn-action.btn-view-red:focus,
.workspace-table td a.btn-aurido-secondary[href^="/rfq/"]:hover,
.workspace-table td a.btn-aurido-secondary[href^="/customer-request/"]:hover,
.workspace-table td a.btn-aurido-secondary[href^="/rfq/"]:focus,
.workspace-table td a.btn-aurido-secondary[href^="/customer-request/"]:focus {
    background: var(--aurido-primary-hover, #CC0000) !important;
    color: #ffffff !important;
    border-color: var(--aurido-primary-hover, #CC0000) !important;
}

.btn-view.btn-action-outline-red,
.btn-action.btn-action-outline-red,
.btn-view.btn-see-all,
.btn-action.btn-see-all {
    background: #ffffff !important;
    color: var(--aurido-primary) !important;
    border-color: var(--aurido-primary) !important;
}

.btn-view.btn-action-outline-red:hover,
.btn-action.btn-action-outline-red:hover,
.btn-view.btn-see-all:hover,
.btn-action.btn-see-all:hover {
    background: var(--aurido-primary-light) !important;
    color: var(--aurido-primary-hover) !important;
    border-color: var(--aurido-primary-hover) !important;
}

.empty-state,
.aurido-empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--aurido-muted);
}

.empty-state h3,
.aurido-empty-state h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--aurido-navy);
    margin-bottom: 6px;
}

.empty-state p,
.aurido-empty-state p {
    font-size: 13px;
    color: var(--aurido-muted);
    margin: 0;
}

/* Info Grids & Details Cards */
.aurido-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.aurido-info-item {
    background: #ffffff;
    border: 1px solid var(--aurido-border);
    border-radius: var(--radius-md);
    padding: 14px 16px;
}

.aurido-info-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--aurido-muted);
    margin-bottom: 4px;
}

.aurido-info-value {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--aurido-navy);
    word-break: break-word;
}

/* Process Step Indicator */
.aurido-process-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border: 1px solid var(--aurido-border, #E2E8F0);
    border-radius: var(--radius-lg, 8px);
    padding: 18px 24px;
    margin-bottom: 24px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 12px;
}

.aurido-process-step {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.aurido-process-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-weight: 800;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.aurido-process-check-svg {
    width: 16px;
    height: 16px;
    stroke-width: 3;
    display: block;
}

/* State A: Completed (Light green background, green checkmark icon, navy label) */
.aurido-process-step.completed .aurido-process-circle {
    background: #DCFCE7;
    border: 1px solid #BBF7D0;
    color: #16A34A;
}

.aurido-process-step.completed .aurido-process-label {
    color: var(--aurido-navy, #0B1736);
    font-weight: 700;
}

/* State B: Current / In Progress (Red #FF0000 background, white number, navy label) */
.aurido-process-step.active:not(.completed) .aurido-process-circle {
    background: #FF0000;
    border: 1px solid #FF0000;
    color: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.15);
}

.aurido-process-step.active .aurido-process-label {
    color: var(--aurido-navy, #0B1736);
    font-weight: 800;
}

/* State C: Pending / Upcoming (Light gray background, muted gray text and label) */
.aurido-process-step.pending .aurido-process-circle,
.aurido-process-step:not(.completed):not(.active) .aurido-process-circle {
    background: #F1F5F9;
    border: 1px solid #E2E8F0;
    color: #94A3B8;
}

.aurido-process-step.pending .aurido-process-label,
.aurido-process-step:not(.completed):not(.active) .aurido-process-label {
    color: #94A3B8;
    font-weight: 600;
}

.aurido-process-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    transition: color 0.2s ease;
}

/* Connector Lines */
.aurido-process-line {
    flex: 1;
    height: 3px;
    background: #E2E8F0;
    min-width: 24px;
    border-radius: 2px;
    transition: background-color 0.2s ease;
}

.aurido-process-line.completed {
    background: #22C55E;
}

@media (max-width: 768px) {
    .aurido-process-steps {
        padding: 14px 16px;
        gap: 8px;
    }
    .aurido-process-step {
        gap: 7px;
    }
    .aurido-process-circle {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    .aurido-process-check-svg {
        width: 14px;
        height: 14px;
    }
    .aurido-process-label {
        font-size: 11px;
    }
    .aurido-process-line {
        min-width: 16px;
        height: 2px;
    }
}

@media (max-width: 480px) {
    .aurido-process-steps {
        padding: 12px 14px;
        gap: 6px;
    }
    .aurido-process-step {
        gap: 5px;
    }
    .aurido-process-circle {
        width: 26px;
        height: 26px;
        font-size: 11px;
    }
    .aurido-process-check-svg {
        width: 13px;
        height: 13px;
    }
    .aurido-process-label {
        font-size: 10px;
    }
    .aurido-process-line {
        min-width: 12px;
    }
}

/* Process Step Aliases for Consistency */
.aurido-step {
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0.5;
    flex-shrink: 0;
}

.aurido-step.active,
.aurido-step.completed {
    opacity: 1;
}

.aurido-step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--aurido-neutral-bg, #F1F5F9);
    color: var(--aurido-muted, #64748B);
    font-weight: 800;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.aurido-step.completed .aurido-step-num {
    background: #DCFCE7;
    color: #166534;
}

.aurido-step.active .aurido-step-num {
    background: var(--aurido-primary, #FF0000);
    color: #ffffff;
}

.aurido-step-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--aurido-navy, #0B1736);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.aurido-step-line {
    flex: 1;
    height: 2px;
    background: var(--aurido-border, #E2E8F0);
    min-width: 24px;
}

.aurido-step-line.completed {
    background: #86EFAC;
}

.aurido-info-card {
    background: #ffffff;
    border: 1px solid var(--aurido-border, #E2E8F0);
    border-radius: var(--radius-md, 8px);
    padding: 14px 16px;
}

/* Filter Card */
.aurido-filter-card {
    background: #ffffff;
    border: 1px solid var(--aurido-border);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    margin-bottom: 24px;
}

.aurido-filter-form {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.aurido-form-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.aurido-form-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

@media (max-width: 768px) {
    .aurido-form-grid-2,
    .aurido-form-grid-3 {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   AURIVA STANDARDIZED PAGE HEADER COMPONENT (SOFT INDUSTRIAL ABSTRACT)
   Standard reference: Customer Dashboard Welcome Banner (.dashboard-welcome)
   ========================================================================== */

.auriva-page-header {
    position: relative;
    overflow: hidden;
    background-color: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-left: 5px solid #FF0000;
    border-radius: 10px;
    padding: 24px 28px;
    margin-bottom: 24px;
    box-shadow: 0 2px 10px rgba(11, 23, 54, 0.035);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    box-sizing: border-box;
}

/* Layer 1: Translucent Industrial Facility Background (Pipes, Valves, Equipment) */
.auriva-page-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('/images/hero/industrial-hero-bg.jpg');
    background-size: cover;
    background-position: right 30%;
    background-repeat: no-repeat;
    opacity: 0.16;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, transparent 26%, rgba(0, 0, 0, 0.22) 48%, rgba(0, 0, 0, 0.8) 78%, #000000 100%);
    mask-image: linear-gradient(to right, transparent 0%, transparent 26%, rgba(0, 0, 0, 0.22) 48%, rgba(0, 0, 0, 0.8) 78%, #000000 100%);
    pointer-events: none;
    z-index: 1;
}

/* Layer 2: Geometric Pattern, Technical Lines & Soft Directional White Fade */
.auriva-page-header::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        url('/images/patterns/industrial-geometric-abstract.svg'),
        linear-gradient(to right, #FFFFFF 0%, #FFFFFF 34%, rgba(255, 255, 255, 0.88) 54%, rgba(255, 255, 255, 0.35) 80%, transparent 100%);
    background-position: right center, 0 0;
    background-repeat: no-repeat, no-repeat;
    background-size: auto 100%, 100% 100%;
    pointer-events: none;
    z-index: 2;
}

/* Context Variants for Geometric Pattern & Image Focal Point */
.auriva-page-header.auriva-header-variant-dashboard::before {
    background-position: right 45%;
    opacity: 0.18;
}
.auriva-page-header.auriva-header-variant-dashboard::after {
    background-image:
        url('/images/patterns/header-abstract-dashboard.svg'),
        linear-gradient(to right, #FFFFFF 0%, #FFFFFF 34%, rgba(255, 255, 255, 0.88) 54%, rgba(255, 255, 255, 0.35) 80%, transparent 100%);
}

.auriva-page-header.auriva-header-variant-products::before {
    background-position: right 35%;
    opacity: 0.17;
}
.auriva-page-header.auriva-header-variant-products::after {
    background-image:
        url('/images/patterns/header-abstract-products.svg'),
        linear-gradient(to right, #FFFFFF 0%, #FFFFFF 34%, rgba(255, 255, 255, 0.88) 54%, rgba(255, 255, 255, 0.35) 80%, transparent 100%);
}

.auriva-page-header.auriva-header-variant-commercial::before {
    background-position: right 20%;
    opacity: 0.18;
}
.auriva-page-header.auriva-header-variant-commercial::after {
    background-image:
        url('/images/patterns/header-abstract-commercial.svg'),
        linear-gradient(to right, #FFFFFF 0%, #FFFFFF 34%, rgba(255, 255, 255, 0.88) 54%, rgba(255, 255, 255, 0.35) 80%, transparent 100%);
}

.auriva-page-header.auriva-header-variant-operations::before {
    background-position: right 60%;
    opacity: 0.16;
}
.auriva-page-header.auriva-header-variant-operations::after {
    background-image:
        url('/images/patterns/header-abstract-operations.svg'),
        linear-gradient(to right, #FFFFFF 0%, #FFFFFF 34%, rgba(255, 255, 255, 0.88) 54%, rgba(255, 255, 255, 0.35) 80%, transparent 100%);
}

.auriva-page-header-body {
    flex: 1;
    min-width: 260px;
    position: relative;
    z-index: 3;
}

.auriva-page-header-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #64748B;
    margin-bottom: 8px;
    flex-wrap: wrap;
    word-break: break-word;
}

.auriva-page-header-breadcrumb a {
    color: #64748B;
    text-decoration: none;
    transition: color 0.15s ease;
}

.auriva-page-header-breadcrumb a:hover {
    color: var(--aurido-primary, #FF0000);
}

.auriva-page-header-breadcrumb .sep,
.auriva-page-header-breadcrumb span {
    color: #CBD5E1;
}

.auriva-page-header-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.auriva-page-header-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--aurido-navy, #0B1736);
    line-height: 1.25;
    margin: 0;
    letter-spacing: -0.3px;
    word-break: break-word;
}

.auriva-page-header-desc {
    color: #475569;
    font-size: 13px;
    line-height: 1.5;
    margin-top: 6px;
    margin-bottom: 0;
    max-width: 720px;
    word-break: break-word;
}

.auriva-page-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    position: relative;
    z-index: 3;
}

@media (max-width: 900px) {
    .auriva-page-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 18px 18px;
        gap: 14px;
    }

    .auriva-page-header::before {
        opacity: 0.10;
        -webkit-mask-image: linear-gradient(to right, transparent 0%, transparent 45%, rgba(0, 0, 0, 0.5) 100%);
        mask-image: linear-gradient(to right, transparent 0%, transparent 45%, rgba(0, 0, 0, 0.5) 100%);
    }

    .auriva-page-header::after {
        background-size: auto 75%, 100% 100%;
        background-position: right top, 0 0;
    }

    .auriva-page-header-actions {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .auriva-page-header-actions > * {
        width: 100%;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        font-size: 13px;
        font-weight: 700;
        box-sizing: border-box;
    }

    .auriva-page-header-title {
        font-size: 20px;
    }
}

@media (max-width: 600px) {
    .auriva-page-header {
        padding: 14px 12px !important;
        gap: 10px !important;
    }

    .auriva-page-header-title {
        font-size: 18px !important;
    }

    .auriva-page-header-desc {
        font-size: 12px !important;
    }
}

/* ==========================================================================
   STANDARDIZED PUBLIC NAVIGATION HEADER (OPTION A - CLEAN & MINIMAL)
   ========================================================================== */
header.public-header {
    height: 76px;
    background: #FFFFFF !important;
    border: none !important;
    box-shadow: 0 1px 3px rgba(11, 23, 54, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header.public-header .header-inner {
    width: min(1200px, 92%);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    height: 100%;
}

header.public-header .brand.auriva-wordmark {
    display: inline-flex;
    align-items: center;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 26px;
    font-weight: 900;
    letter-spacing: 0.5px;
    color: var(--aurido-navy, #0B1736);
    text-decoration: none;
    line-height: 1;
    flex-shrink: 0;
    padding-right: 24px;
    border-right: 1px solid #E2E8F0;
    margin-right: 6px;
}

header.public-header .brand.auriva-wordmark .auriva-logo-img,
header.public-header .header-logo {
    height: 42px;
    width: auto;
    max-height: 46px;
    max-width: 150px;
    object-fit: contain;
    display: block;
}

header.public-header .brand.auriva-wordmark .dot {
    color: var(--aurido-primary, #FF0000);
}

header.public-header nav {
    display: flex !important;
    align-items: center;
    gap: 28px;
    font-size: 16px;
    font-weight: 600;
}

header.public-header nav a {
    color: var(--aurido-navy, #0B1736);
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-block;
}

header.public-header nav a:hover {
    color: var(--aurido-primary, #FF0000);
}

header.public-header .header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

header.public-header .header-actions .login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    background: #FFFFFF;
    color: var(--aurido-navy, #0B1736);
    border: 1px solid var(--aurido-border, #E2E8F0);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

header.public-header .header-actions .login-btn:hover {
    background: var(--aurido-canvas, #F4F6FA);
    border-color: #CBD5E1;
    color: var(--aurido-navy, #0B1736);
}

header.public-header .header-actions .register-btn,
header.public-header .header-actions .rfq-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    background: var(--aurido-primary, #FF0000);
    color: #FFFFFF !important;
    border: 1px solid var(--aurido-primary, #FF0000);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(255, 0, 0, 0.25);
}

header.public-header .header-actions .register-btn:hover,
header.public-header .header-actions .rfq-btn:hover {
    background: var(--aurido-primary-hover, #CC0000) !important;
    border-color: var(--aurido-primary-hover, #CC0000) !important;
    color: #FFFFFF !important;
}

/* ==========================================================================
   PUBLIC MOBILE NAVIGATION & DRAWER
   ========================================================================== */
.public-mobile-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    background: #FFFFFF;
    border: 1px solid var(--aurido-border, #E2E8F0);
    border-radius: 8px;
    cursor: pointer;
    padding: 0;
    transition: all 0.2s ease;
    flex-shrink: 0;
    box-sizing: border-box;
}

.public-mobile-toggle:hover,
.public-mobile-toggle:focus-visible {
    border-color: var(--aurido-navy, #0B1736);
    background: var(--aurido-canvas, #F4F6FA);
    outline: none;
}

.public-mobile-toggle.active {
    background: var(--aurido-navy, #0B1736);
    border-color: var(--aurido-navy, #0B1736);
}

.public-mobile-toggle-bar {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--aurido-navy, #0B1736);
    border-radius: 2px;
    transition: all 0.2s ease;
}

.public-mobile-toggle.active .public-mobile-toggle-bar {
    background: #FFFFFF;
}

.public-mobile-toggle.active .public-mobile-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.public-mobile-toggle.active .public-mobile-toggle-bar:nth-child(2) {
    opacity: 0;
}

.public-mobile-toggle.active .public-mobile-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.public-mobile-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(11, 23, 54, 0.55);
    backdrop-filter: blur(3px);
    z-index: 10001;
    display: none;
    opacity: 0;
    transition: opacity 0.25s ease-in-out;
}

.public-mobile-backdrop.active {
    display: block;
    opacity: 1;
}

.public-mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(340px, 86vw);
    height: 100vh;
    height: 100dvh;
    background: #FFFFFF;
    box-shadow: -6px 0 28px rgba(11, 23, 54, 0.16);
    z-index: 10002;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.25s ease-in-out;
    box-sizing: border-box;
}

.public-mobile-drawer[hidden] {
    display: none !important;
}

.public-mobile-drawer.active {
    transform: translateX(0);
}

.public-mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--aurido-border, #E2E8F0);
    background: #FFFFFF;
}

.public-mobile-drawer-close {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid var(--aurido-border, #E2E8F0);
    background: #FFFFFF;
    color: var(--aurido-navy, #0B1736);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.public-mobile-drawer-close:hover,
.public-mobile-drawer-close:focus-visible {
    background: var(--aurido-canvas, #F4F6FA);
    color: var(--aurido-primary, #FF0000);
    outline: none;
}

.public-mobile-drawer-body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.public-mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.public-mobile-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 8px;
    color: var(--aurido-navy, #0B1736);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.15s ease;
}

.public-mobile-nav a:hover {
    background: var(--aurido-canvas, #F4F6FA);
    color: var(--aurido-primary, #FF0000);
}

.public-mobile-nav a.active {
    background: #FFF1F1;
    color: var(--aurido-primary, #FF0000);
}

.public-mobile-nav .mobile-nav-icon {
    font-size: 18px;
    width: 22px;
    text-align: center;
}

.public-mobile-divider {
    height: 1px;
    background: var(--aurido-border, #E2E8F0);
    margin: 4px 0;
}

.public-mobile-section-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--aurido-muted, #64748B);
    margin-bottom: 10px;
}

.public-mobile-lang-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.mobile-lang-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 10px;
    background: #FFFFFF;
    border: 1px solid var(--aurido-border, #E2E8F0);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--aurido-navy, #0B1736);
    text-decoration: none;
    transition: all 0.15s ease;
}

.mobile-lang-item:hover {
    border-color: #CBD5E1;
    background: var(--aurido-canvas, #F4F6FA);
}

.mobile-lang-item.active {
    background: #FFF1F1;
    border-color: #FFCDD2;
    color: var(--aurido-primary, #FF0000);
}

.mobile-lang-item .lang-active-check {
    color: var(--aurido-primary, #FF0000);
    font-weight: 900;
    font-size: 11px;
}

.public-mobile-auth-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
    padding-top: 10px;
}

.mobile-auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.15s ease;
    box-sizing: border-box;
}

.mobile-auth-login,
.mobile-auth-dashboard {
    background: #FFFFFF;
    border: 1px solid var(--aurido-border, #E2E8F0);
    color: var(--aurido-navy, #0B1736);
}

.mobile-auth-login:hover,
.mobile-auth-dashboard:hover {
    background: var(--aurido-canvas, #F4F6FA);
    border-color: var(--aurido-navy, #0B1736);
}

.mobile-auth-register,
.mobile-auth-rfq {
    background: var(--aurido-primary, #FF0000);
    border: 1px solid var(--aurido-primary, #FF0000);
    color: #FFFFFF !important;
    box-shadow: 0 1px 3px rgba(255, 0, 0, 0.25);
}

.mobile-auth-register:hover,
.mobile-auth-rfq:hover {
    background: var(--aurido-primary-hover, #CC0000) !important;
}

body.public-mobile-menu-open {
    overflow: hidden !important;
}

@media (max-width: 950px) {
    header.public-header {
        height: 64px !important;
    }

    header.public-header .header-inner {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 16px !important;
        gap: 8px !important;
        overflow: visible !important;
    }

    header.public-header .brand.auriva-wordmark {
        border-right: none !important;
        padding-right: 0 !important;
        margin-right: 0 !important;
        max-width: 65% !important;
        flex-shrink: 1 !important;
    }

    header.public-header .brand.auriva-wordmark .auriva-logo-img,
    header.public-header .header-logo {
        height: 34px !important;
        max-height: 34px !important;
        width: auto !important;
        max-width: 125px !important;
        object-fit: contain !important;
        display: block !important;
    }

    header.public-header nav {
        display: none !important;
    }

    header.public-header .header-actions {
        display: none !important;
    }

    .public-mobile-toggle {
        display: inline-flex !important;
        margin-left: auto !important;
    }
}

@media (max-width: 600px) {
    header.public-header .header-inner {
        gap: 8px !important;
    }

    header.public-header .brand.auriva-wordmark .auriva-logo-img,
    header.public-header .header-logo {
        height: 34px !important;
        max-height: 34px !important;
        max-width: 120px !important;
    }
}

@media (max-width: 480px) {
    header.public-header {
        height: 64px !important;
    }

    header.public-header .header-inner {
        gap: 8px !important;
        width: 100% !important;
        padding: 0 14px !important;
    }

    header.public-header .brand.auriva-wordmark .auriva-logo-img,
    header.public-header .header-logo {
        height: 32px !important;
        max-height: 32px !important;
        max-width: 115px !important;
    }

    header.public-header .header-actions {
        display: none !important;
    }
}

@media (max-width: 360px) {
    header.public-header .header-inner {
        padding: 0 10px !important;
        gap: 6px !important;
    }

    header.public-header .brand.auriva-wordmark .auriva-logo-img,
    header.public-header .header-logo {
        height: 30px !important;
        max-height: 30px !important;
        max-width: 100px !important;
    }

    .public-mobile-toggle {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        min-height: 40px !important;
    }
}

/* ==========================================================================
   MOBILE FOUNDATION RESPONSIVE RULES (BATCH 1 - MOBILE UI ONLY)
   Strictly scoped to <= 768px and <= 360px to preserve desktop 100%.
   ========================================================================== */
@media (max-width: 768px) {
    /* Prevent iOS Safari auto-zoom penalty on form focus */
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="search"],
    input[type="tel"],
    input[type="number"],
    select,
    textarea {
        font-size: 16px !important;
    }

    /* Container fluid padding strategy */
    .container,
    .aurido-container {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
        box-sizing: border-box !important;
    }

    /* Zero horizontal overflow constraint on mobile */
    html, body {
        max-width: 100%;
        overflow-x: hidden;
    }
}

@media (max-width: 360px) {
    .container,
    .aurido-container {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
}




