/* STRICT TWO-COLOR SYSTEM: Universal Input Focus */
input:focus,
select:focus,
textarea:focus,
.form-control:focus,
.odoo-form-input:focus,
.odoo-form-select:focus {
    border-color: #714b67 !important;
    outline: none !important;
}

/* ========================================================
   STRICT CONTRAST & TYPOGRAPHY SYSTEM:
   1. Wherever background is white/light: Font MUST be black (#0f172a)
   2. Wherever background is rgb(113, 75, 103): Font MUST be crisp white (#ffffff)
   ======================================================== */

/* 1. All inputs, textareas, selects on white surfaces have crisp black font */
input,
select,
textarea,
.form-control,
.odoo-form-input,
.odoo-form-select {
    color: #0f172a !important;
    background-color: #ffffff !important;
}

input::placeholder,
textarea::placeholder,
.form-control::placeholder {
    color: #94a3b8 !important;
    font-weight: 400;
}

/* 2. All form labels, headings, titles, and table headers on white have bold black font */
label,
.form-group label,
.form-label {
    color: #0f172a !important;
    font-weight: 700 !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
.brand-logo-text,
.view-title,
.odoo-form-title,
.odoo-form-title-text {
    color: #0f172a !important;
}

.odoo-table th {
    color: #0f172a !important;
    font-weight: 800 !important;
}

.odoo-table td {
    color: #0f172a;
}

/* 3. Wherever background is rgb(113, 75, 103) (#714B67), font is pure white */
.btn-primary,
.btn-odoo-save,
.btn-odoo-action-new,
.topbar-submenu-link.active,
.chevron-step.is-active,
.user-avatar-badge-wrap,
.odoo-smart-btn.active,
.btn-plum {
    background-color: #714b67 !important;
    color: #ffffff !important;
}

.btn-primary *,
.btn-odoo-save *,
.btn-odoo-action-new *,
.topbar-submenu-link.active *,
.chevron-step.is-active * {
    color: #ffffff !important;
}

/* 4. Secondary / Default buttons on white background have black text */
.btn-default,
.btn-secondary {
    background-color: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #cbd5e1 !important;
}

.btn-default:hover,
.btn-secondary:hover {
    background-color: rgba(113, 75, 103, 0.08) !important;
    color: #0f172a !important;
    border-color: #714b67 !important;
}

/* ========================================================
   AXENOR ERP — ALL-IN-ONE CONSTRUCTION ERP
   STYLING: MODERN INDUSTRIAL, MOBILE-FIRST & DESKTOP
   ======================================================== */

:root {
    /* --- STRICT TWO-COLOR SYSTEM: rgb(113, 75, 103) & WHITE --- */
    --theme-plum: rgb(113, 75, 103);
    /* #714b67 */
    --theme-plum-dark: #5a3851;
    --theme-plum-light: rgba(113, 75, 103, 0.08);
    --theme-plum-subtle: rgba(113, 75, 103, 0.04);
    --theme-white: #ffffff;

    --blue-darkest: #714b67;
    --blue-dark: #5a3851;
    --blue-primary: #714b67;
    --blue-mid: #8a5f80;
    --blue-light: rgba(113, 75, 103, 0.12);

    --primary: #714b67;
    --primary-light: #5a3851;
    --brand-amber: #714b67;
    --brand-amber-dark: #5a3851;
    --brand-teal: #714b67;
    --brand-teal-light: rgba(113, 75, 103, 0.12);
    --brand-blue: #714b67;

    --bg-main: #ffffff;
    --bg-card: #ffffff;
    --border-color: rgba(113, 75, 103, 0.2);
    --border-light: rgba(113, 75, 103, 0.08);

    --text-primary: #0f172a;
    /* Sharp Black for White Backgrounds */
    --text-secondary: #334155;
    /* Dark Charcoal */
    --text-muted: #64748b;
    /* Readable Muted */

    --nav-bg: #ffffff;
    --topbar-bg: #714b67;
    --table-header-bg: rgba(113, 75, 103, 0.06);

    --success-bg: rgba(113, 75, 103, 0.08);
    --success-text: #714b67;
    --warning-bg: rgba(113, 75, 103, 0.08);
    --warning-text: #714b67;
    --danger-bg: rgba(113, 75, 103, 0.08);
    --danger-text: #714b67;
    --info-bg: rgba(113, 75, 103, 0.08);
    --info-text: #714b67;

    --font-main: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --shadow-sm: 0 1px 3px rgba(113, 75, 103, 0.08);
    --shadow-md: 0 4px 8px -1px rgba(113, 75, 103, 0.12), 0 2px 4px -2px rgba(113, 75, 103, 0.06);
    --shadow-lg: 0 12px 20px -3px rgba(113, 75, 103, 0.16), 0 4px 6px -4px rgba(113, 75, 103, 0.08);
    --shadow-modal: 0 25px 50px -12px rgba(113, 75, 103, 0.35);

    --radius-sm: 4px;
    --radius-md: 4px;
    --radius-lg: 8px;
    --radius-full: 9999px;
}

/* 1. Light Mode */
[data-theme="white"] {
    --bg-main: #ffffff;
    --bg-card: #ffffff;
    --border-color: rgba(113, 75, 103, 0.2);
    --border-light: rgba(113, 75, 103, 0.08);
    --text-primary: #0f172a;
    /* Sharp Black for White Backgrounds */
    --text-secondary: #334155;
    /* Dark Charcoal */
    --text-muted: #64748b;
    /* Readable Muted */
    --nav-bg: #ffffff;
    --topbar-bg: #714b67;
    --table-header-bg: rgba(113, 75, 103, 0.06);
}

/* 2. Dark Mode (Plum Contrast) */
[data-theme="dark"] {
    --primary: #714b67;
    --primary-light: #5a3851;
    --brand-amber: #714b67;
    --brand-amber-dark: #5a3851;
    --bg-main: #331f2f;
    --bg-card: #452b3f;
    --border-color: rgba(255, 255, 255, 0.2);
    --border-light: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.85);
    --text-muted: rgba(255, 255, 255, 0.6);
    --nav-bg: #452b3f;
    --topbar-bg: #291825;
    --table-header-bg: rgba(255, 255, 255, 0.08);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.6);
}

/* 3. Plum Theme Mode */
[data-theme="blue"] {
    --primary: #714b67;
    --primary-light: #5a3851;
    --brand-amber: #714b67;
    --brand-amber-dark: #5a3851;
    --bg-main: #ffffff;
    --bg-card: #ffffff;
    --border-color: rgba(113, 75, 103, 0.2);
    --border-light: rgba(113, 75, 103, 0.08);
    --text-primary: #0f172a;
    /* Sharp Black for White Backgrounds */
    --text-secondary: #334155;
    /* Dark Charcoal */
    --text-muted: #64748b;
    /* Readable Muted */
    --nav-bg: #ffffff;
    --topbar-bg: #714b67;
    --table-header-bg: rgba(113, 75, 103, 0.06);
    --shadow-sm: 0 1px 3px rgba(113, 75, 103, 0.08);
    --shadow-md: 0 4px 8px rgba(113, 75, 103, 0.12);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* --- APP WRAPPER & MODE SELECTOR --- */
.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Top Universal Bar */
.top-universal-bar {
    background: var(--blue-darkest);
    color: #ffffff;
    padding: 0 10px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.12);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 14px rgba(113, 75, 103, 0.18);
    transition: all 0.2s ease;
}

.top-universal-bar.app-mode {
    background: #ffffff;
    color: var(--blue-darkest);
    border-bottom: 1px solid var(--border-color);
    padding: 0 10px;
    height: 50px;
    box-shadow: 0 1px 3px rgba(0, 51, 102, 0.05);
}

.top-universal-bar.app-mode .btn-app-launcher {
    background: transparent;
    border: none;
    color: var(--blue-dark);
    font-size: 1.15rem;
    padding: 6px 8px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.top-universal-bar.app-mode .btn-app-launcher:hover {
    background: var(--blue-light);
    color: var(--blue-darkest);
}

.top-universal-bar.app-mode .odoo-site-pill-btn {
    background: #ffffff;
    border: 1px solid rgba(113, 75, 103, 0.25);
    color: #714b67 !important;
}

.top-universal-bar.app-mode .odoo-site-pill-btn span {
    color: #714b67 !important;
}

.top-universal-bar.app-mode .user-profile-trigger {
    background: transparent;
    border-color: transparent;
}

.top-universal-bar.app-mode .user-trigger-name {
    color: #714b67 !important;
    font-weight: 700 !important;
}

.top-universal-bar.app-mode .user-trigger-arrow {
    color: #714b67 !important;
}

.brand-section {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 2px;
}

.brand-title {
    font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    font-size: 1.20rem;
    font-weight: 800;
    letter-spacing: -0.2px;
    line-height: 1.15;
    color: #ffffff !important;
    display: flex;
    align-items: center;
    gap: 7px;
}

.brand-title span,
.brand-title .erp-badge {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    background: #ffffff !important;
    color: #714b67 !important;
    padding: 2px 7px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.1;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    text-transform: uppercase;
}

.brand-subtitle {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.72rem;
    color: #ffffff !important;
    opacity: 0.95;
    letter-spacing: 0.4px;
    font-weight: 600;
    margin-top: 1px;
    text-transform: lowercase;
}

.top-bar-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.odoo-company-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(0, 80, 158, 0.65);
    border: 1px solid rgba(204, 224, 255, 0.22);
    padding: 5px 13px;
    border-radius: var(--radius-full);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    color: #ffffff;
    transition: all 0.15s ease;
}

.odoo-company-pill:hover {
    background: rgba(0, 122, 204, 0.5);
    border-color: rgba(204, 224, 255, 0.4);
}

.odoo-company-pill i {
    color: var(--blue-mid);
    font-size: 0.76rem;
}

/* Auto-Converted App Top Menu Bar (Matches Picture 2) */
.top-universal-bar.app-mode {
    background: var(--bg-card);
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 0 18px;
    height: 48px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.topbar-app-left {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 100%;
}

.topbar-app-branding {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 15px;
    color: var(--text-primary);
    padding-right: 14px;
    border-right: 1px solid var(--border-color);
    cursor: pointer;
    user-select: none;
}

.topbar-app-branding:hover {
    opacity: 0.85;
}

.topbar-app-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.topbar-submenus-list {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 100%;
}

.topbar-submenu-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13.5px;
    font-weight: 600;
    color: #334155;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
    text-decoration: none;
}

.topbar-submenu-link:hover {
    background: rgba(113, 75, 103, 0.08);
    color: #0f172a;
}

.topbar-submenu-link.active {
    color: #ffffff !important;
    font-weight: 700;
    background: #714b67 !important;
}

/* Mobile submenu container hidden on desktop */
.topbar-mobile-submenu-container {
    display: none;
}

.top-universal-bar.app-mode .btn-app-launcher {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.15rem;
    padding: 6px 8px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.top-universal-bar.app-mode .btn-app-launcher:hover {
    background: var(--border-light);
    color: var(--text-primary);
}

.top-universal-bar.app-mode .odoo-company-pill {
    background: var(--border-light);
    border-color: var(--border-color);
    color: var(--text-primary);
}

.top-universal-bar.app-mode .user-profile-trigger {
    background: var(--border-light);
    border-color: var(--border-color);
}

.top-universal-bar.app-mode .user-trigger-name {
    color: var(--text-primary);
}


.brand-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--brand-amber), #ea580c);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(113, 75, 103, 0.35);
}

.top-bar-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

/* Odoo-style Top Right Icons & Company Pill */
.odoo-top-icon-btn {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-md);
    background: transparent;
    border: none;
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.odoo-top-icon-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}

.odoo-company-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    padding: 5px 12px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 700;
    color: #f1f5f9;
}

.odoo-company-pill i {
    color: var(--brand-amber);
}

/* User Profile Trigger Button */
.user-profile-trigger {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 4px 10px 4px 6px;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.18s ease;
    outline: none;
}

.user-profile-trigger:hover,
.user-profile-trigger.active {
    background: rgba(255, 255, 255, 0.18);
    border-color: var(--brand-amber);
}

.user-avatar-badge-wrap {
    position: relative;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    background: #714b67 !important;
    border: 1px solid rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    color: #ffffff !important;
}

.user-online-dot {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 8px;
    height: 8px;
    background: #ffffff !important;
    border: 1.5px solid #714b67 !important;
    border-radius: 50%;
    box-shadow: none !important;
}

.user-trigger-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}

.user-trigger-arrow {
    font-size: 0.68rem;
    color: #94a3b8;
    transition: transform 0.2s ease;
}

.user-profile-trigger.active .user-trigger-arrow {
    transform: rotate(180deg);
}

/* Dropdown Menu Container */
.odoo-user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 320px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
    z-index: 1000;
    overflow: hidden;
    animation: dropdownFadeIn 0.18s ease;
    text-align: left;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.odoo-dropdown-header {
    padding: 14px 16px;
    background: var(--border-light);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.odoo-dropdown-avatar {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.odoo-dropdown-user-info {
    flex: 1;
    min-width: 0;
}

.odoo-dropdown-name {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.odoo-dropdown-role {
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--brand-amber-dark);
}

.odoo-dropdown-email {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.odoo-dropdown-body {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 420px;
    overflow-y: auto;
}

.odoo-dropdown-section-label {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 5px;
}

.odoo-dropdown-select {
    width: 100%;
    background: var(--border-light);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 7px 10px;
    border-radius: var(--radius-md);
    cursor: pointer;
    outline: none;
}

.odoo-dropdown-select:focus {
    border-color: var(--brand-amber);
}

.odoo-pref-pill-group {
    display: flex;
    gap: 4px;
    background: var(--border-light);
    padding: 3px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.odoo-pref-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 6px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: all 0.15s ease;
}

.odoo-pref-btn.active {
    background: var(--bg-card);
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
}

.odoo-dropdown-footer {
    padding: 10px 14px;
    background: var(--border-light);
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.odoo-dropdown-action-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: var(--radius-md);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-primary);
    transition: all 0.15s ease;
}

.odoo-dropdown-action-btn:hover {
    background: var(--border-light);
    border-color: var(--blue-mid);
}

/* ========================================================
   ODOO-STYLE SITE / COMPANY SELECTION WITH CHECKBOXES (PICTURE 2)
   ======================================================== */
.odoo-site-selector-container {
    position: relative;
    display: inline-block;
}

.odoo-site-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 80, 158, 0.65);
    border: 1px solid rgba(204, 224, 255, 0.28);
    padding: 5px 14px;
    border-radius: var(--radius-full);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
}

.odoo-site-pill-btn:hover,
.odoo-site-pill-btn.active {
    background: rgba(0, 122, 204, 0.7);
    border-color: rgba(204, 224, 255, 0.5);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.top-universal-bar.app-mode .odoo-site-pill-btn {
    background: var(--blue-light);
    border-color: var(--border-color);
    color: var(--blue-darkest);
}

.top-universal-bar.app-mode .odoo-site-pill-btn:hover,
.top-universal-bar.app-mode .odoo-site-pill-btn.active {
    background: var(--border-color);
    border-color: var(--blue-mid);
}

.odoo-site-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 290px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 14px 34px -4px rgba(15, 23, 42, 0.15), 0 4px 12px rgba(15, 23, 42, 0.08);
    z-index: 1200;
    padding: 8px;
    animation: dropdownFadeIn 0.16s ease;
    text-align: left;
}

.odoo-site-search-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0 8px 0;
    margin-bottom: 4px;
    border-bottom: 1px solid #f1f5f9;
}

.odoo-site-select-all-btn {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: #008784;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    font-size: 0.75rem;
    flex-shrink: 0;
    transition: opacity 0.15s ease;
}

.odoo-site-select-all-btn:hover {
    opacity: 0.9;
}

.odoo-site-search-box {
    display: flex;
    align-items: center;
    gap: 7px;
    flex: 1;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 5px 10px;
}

.odoo-site-search-box i {
    color: #94a3b8;
    font-size: 0.8rem;
}

.odoo-site-search-input {
    width: 100%;
    border: none;
    outline: none;
    font-size: 0.82rem;
    font-family: inherit;
    color: #1e293b;
    background: transparent;
}

.odoo-site-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-height: 250px;
    overflow-y: auto;
}

.odoo-site-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s ease;
    user-select: none;
    font-size: 0.86rem;
    font-weight: 600;
    color: #1e293b;
}

.odoo-site-item:hover {
    background: #f8fafc;
}

.odoo-site-item.selected {
    background: #f1eaed;
    color: #0f172a;
    font-weight: 700;
}

.odoo-site-checkbox {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 1.8px solid #94a3b8;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.odoo-site-checkbox.checked {
    background: #008784;
    border-color: #008784;
    color: #ffffff;
    font-size: 0.7rem;
}

/* ========================================================
   ODOO-STYLE PROFILE DROPDOWN (PICTURE 3)
   ======================================================== */
.odoo-profile-menu-popover {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 220px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 16px 36px -4px rgba(15, 23, 42, 0.18), 0 4px 12px rgba(15, 23, 42, 0.08);
    z-index: 1200;
    padding: 8px 0;
    animation: dropdownFadeIn 0.16s ease;
    text-align: left;
}

.odoo-menu-link-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 8px 18px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #1e293b;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background 0.12s ease, color 0.12s ease;
}

.odoo-menu-link-item:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.odoo-menu-link-shortcut {
    font-size: 0.76rem;
    font-weight: 800;
    color: #64748b;
    letter-spacing: -0.2px;
}

.odoo-menu-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 6px 0;
}

.odoo-status-indicator-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #714b67;
    display: inline-block;
}

background: var(--border-color);
}

.odoo-dropdown-action-btn.logout-danger {
    background: #fef2f2;
    color: #dc2626;
    border-color: #fecaca;
}

.odoo-dropdown-action-btn.logout-danger:hover {
    background: #fee2e2;
    border-color: #f87171;
}

[data-theme="dark"] .odoo-dropdown-action-btn.logout-danger {
    background: rgba(220, 38, 38, 0.15);
    color: #f87171;
    border-color: rgba(220, 38, 38, 0.3);
}

[data-theme="blue"] .odoo-dropdown-action-btn.logout-danger {
    background: rgba(220, 38, 38, 0.15);
    color: #f87171;
    border-color: rgba(220, 38, 38, 0.3);
}

/* --- DESKTOP NAVIGATION --- */
.desktop-nav-bar {
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.desktop-nav-tabs {
    display: flex;
    gap: 2px;
}

.nav-tab-item {
    background: none;
    border: none;
    padding: 14px 18px;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-bottom: 3px solid transparent;
    transition: all 0.15s ease;
}

.nav-tab-item:hover {
    color: var(--primary);
    background: #f8fafc;
}

.nav-tab-item.active {
    color: var(--brand-amber-dark);
    border-bottom-color: var(--brand-amber);
}

.nav-tab-badge {
    background: #f1f5f9;
    color: #475569;
    padding: 2px 7px;
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 800;
}

.nav-tab-badge.danger {
    background: #fee2e2;
    color: #dc2626;
}

.quick-action-btn {
    background: linear-gradient(135deg, var(--brand-amber), var(--brand-amber-dark));
    color: #0f172a;
    border: none;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-size: 0.84rem;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.25);
    transition: all 0.2s ease;
}

.quick-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}

/* --- MAIN CONTENT LAYOUT --- */
.main-content-layout {
    flex: 1;
    margin: 0 auto;
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
}

/* ========================================================
   MODULE 1: DASHBOARD & PROJECT OVERVIEW
   ======================================================== */
.kpi-grid-4col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.kpi-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.kpi-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.kpi-icon-wrap.allocated {
    background: #e0f2fe;
    color: #714b67;
}

.kpi-icon-wrap.spent {
    background: #fef3c7;
    color: #d97706;
}

.kpi-icon-wrap.remaining {
    background: #ccfbf1;
    color: #0d9488;
}

.kpi-icon-wrap.approvals {
    background: #fee2e2;
    color: #dc2626;
}

.kpi-info {
    flex: 1;
}

.kpi-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kpi-value {
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--text-primary);
    font-family: var(--font-mono);
    line-height: 1.2;
    margin: 3px 0;
}

.kpi-subtext {
    font-size: 0.74rem;
    color: var(--text-muted);
}

/* Site & Supervisor Financial Matrix Cards */
.section-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.section-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.sites-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.site-financial-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.site-card-badge {
    position: absolute;
    top: 16px;
    right: 18px;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: var(--radius-full);
}

.site-name-header {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.site-supervisor-sub {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
}

.site-budget-bar-container {
    margin-bottom: 16px;
}

.budget-bar-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.progress-track {
    height: 10px;
    background: #f1f5f9;
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: var(--radius-full);
    transition: width 0.4s ease;
}

.site-stats-3col {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    background: #f8fafc;
    padding: 12px;
    border-radius: var(--radius-md);
    text-align: center;
}

.stat-box-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-weight: 700;
    text-transform: uppercase;
}

.stat-box-val {
    font-size: 0.95rem;
    font-weight: 800;
    font-family: var(--font-mono);
    color: var(--text-primary);
    margin-top: 2px;
}

.site-card-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.btn-card-action {
    flex: 1;
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.15s ease;
}

.btn-card-action:hover {
    background: #f1f5f9;
    color: var(--text-primary);
}

.btn-card-action.primary {
    background: var(--brand-amber);
    color: #0f172a;
    border-color: var(--brand-amber);
}

/* ========================================================
   MODULE 4: MOBILE-FIRST FIELD APP (SUPERVISOR PHONE VIEW)
   ======================================================== */
.mobile-view-wrapper {
    display: flex;
    justify-content: center;
    padding: 20px 0 40px 0;
}

.phone-mockup-frame {
    width: 410px;
    max-width: 100%;
    background: #0f172a;
    border-radius: 42px;
    padding: 14px;
    box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
    position: relative;
}

.phone-notch-bar {
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.phone-screen-content {
    background: #f8fafc;
    border-radius: 32px;
    overflow: hidden;
    min-height: 720px;
    display: flex;
    flex-direction: column;
}

.phone-header-banner {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #ffffff;
    padding: 22px 18px;
    border-bottom: 3px solid var(--brand-amber);
}

.phone-site-badge-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.phone-site-tag {
    background: rgba(245, 158, 11, 0.2);
    color: var(--brand-amber);
    border: 1px solid rgba(245, 158, 11, 0.4);
    font-size: 0.72rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: var(--radius-full);
}

.phone-main-site-title {
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.2;
}

.phone-supervisor-name {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 3px;
}

/* Supervisor Budget Metric Card */
.phone-budget-card {
    background: #ffffff;
    margin: -16px 14px 16px 14px;
    border-radius: var(--radius-lg);
    padding: 16px 18px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.phone-budget-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.phone-metric-sublabel {
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-weight: 700;
    text-transform: uppercase;
}

.phone-metric-huge-val {
    font-size: 1.35rem;
    font-weight: 800;
    font-family: var(--font-mono);
    color: var(--text-primary);
}

.phone-metric-huge-val.allocated {
    color: var(--brand-blue);
}

.phone-metric-huge-val.spent {
    color: var(--brand-amber-dark);
}

.phone-utilization-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.phone-remaining-alert {
    background: #ccfbf1;
    color: #0f766e;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
}

/* 4 Big Fast-Action Cards for Mobile Field Worker */
.phone-quick-actions-grid {
    padding: 0 14px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 18px;
}

.phone-action-card-btn {
    background: #ffffff;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 18px 14px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.phone-action-card-btn:active {
    transform: scale(0.97);
}

.phone-action-card-btn.labour {
    border-top: 4px solid #714b67;
}

.phone-action-card-btn.material {
    border-top: 4px solid var(--brand-amber);
}

.phone-action-card-btn.expense {
    border-top: 4px solid #714b67;
}

.phone-action-card-btn.ledger {
    border-top: 4px solid #8b5cf6;
}

.phone-action-icon-circle {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.phone-action-title {
    font-size: 0.96rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
}

.phone-action-desc {
    font-size: 0.74rem;
    color: var(--text-secondary);
}

/* Mobile Recent Activity List */
.phone-recent-section {
    padding: 0 14px;
    flex: 1;
}

.phone-recent-header {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
}

.phone-recent-item-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ========================================================
   MODULE 5: DRILL-DOWN LEDGER & DETAILED AUDIT TRAIL
   ======================================================== */
.ledger-header-panel {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    margin-bottom: 20px;
}

.ledger-filters-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr auto;
    gap: 12px;
    margin-top: 14px;
    align-items: center;
}

.filter-input-wrap {
    position: relative;
}

.filter-search-input {
    width: 100%;
    padding: 9px 12px 9px 36px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.86rem;
    outline: none;
    font-family: inherit;
}

.filter-search-input:focus {
    border-color: var(--brand-amber);
}

.filter-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.filter-select {
    width: 100%;
    padding: 9px 12px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.86rem;
    background: #ffffff;
    outline: none;
    font-family: inherit;
    font-weight: 600;
}

.btn-export-excel {
    background: #107c41;
    /* Excel Green */
    color: #ffffff;
    border: none;
    padding: 9px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
}

.btn-export-excel:hover {
    background: #0b6a37;
}

/* Ledger Table */
.ledger-table-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.ledger-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.86rem;
    text-align: left;
}

.ledger-table th {
    background: #fafafa;
    color: var(--text-secondary);
    font-weight: 800;
    font-size: 0.74rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 12px 16px;
    border-bottom: 2px solid var(--border-color);
}

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

.ledger-table tr.clickable-row {
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.ledger-table tr.clickable-row:hover {
    background-color: #f8fafc;
}

.entry-id-badge {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--brand-blue);
    background: var(--info-bg);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.78rem;
    display: inline-block;
}

.status-badge {
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-transform: uppercase;
}

.status-badge.approved {
    background: var(--success-bg);
    color: var(--success-text);
}

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

.status-badge.draft {
    background: #f1f5f9;
    color: #475569;
}

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

.amount-mono-val {
    font-family: var(--font-mono);
    font-weight: 800;
    font-size: 0.94rem;
}

/* ========================================================
   MODALS & FAST RECORDING DIALOGS
   ======================================================== */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-dialog {
    background: #ffffff;
    width: 100%;
    max-width: 650px;
    max-height: 90vh;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-modal);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: modalPop 0.2s ease-out;
}

@keyframes modalPop {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-header {
    background: #f8fafc;
    border-bottom: 1px solid var(--border-color);
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title-wrap h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
}

.modal-title-wrap p {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

.btn-close-icon {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
}

.btn-close-icon:hover {
    color: var(--text-primary);
}

.modal-body-scroll {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.form-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.form-grid-3col {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

/* Standard Enterprise Form Groups & Controls (Clean Bootstrap Style) */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    box-sizing: border-box;
}

.form-group label {
    font-size: 0.88rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 2px;
    display: inline-block;
}

.form-group label .required-star {
    color: #ef4444;
    margin-left: 2px;
    font-weight: 800;
}

.form-control {
    display: block;
    width: 100%;
    height: 38px;
    padding: 7px 12px;
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.5;
    color: #1e293b;
    background-color: #ffffff !important;
    background-image: none;
    border: 1px solid #ced4da;
    border-radius: 5px;
    box-shadow: none;
    outline: none;
    box-sizing: border-box;
    font-family: inherit;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    border-color: #714b67 !important;
    background-color: #ffffff !important;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(113, 75, 103, 0.2) !important;
}

.form-control::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.form-control:disabled,
.form-control[readonly] {
    background-color: #f8fafc !important;
    color: #475569;
    cursor: not-allowed;
    border-color: #e2e8f0;
}

select.form-control {
    cursor: pointer;
}

/* 2x2 Grid Layout for Form Sections */
.form-section-2x2,
.form-grid-2x2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 24px;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 768px) {

    .form-section-2x2,
    .form-grid-2x2 {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

.checkbox {
    display: flex;
    align-items: center;
    margin-top: 6px;
    margin-bottom: 12px;
}

.checkbox label {
    font-size: 0.88rem;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.btn-default {
    background-color: #ffffff;
    color: #334155;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    padding: 7px 16px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-default:hover {
    background-color: #f1f5f9;
    border-color: #94a3b8;
    color: #0f172a;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    outline: none;
    font-family: inherit;
    transition: border-color 0.15s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--brand-amber);
}

/* Evidence / Bill Upload Simulator */
.evidence-dropzone {
    border: 2px dashed #cbd5e1;
    border-radius: var(--radius-md);
    padding: 18px;
    text-align: center;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.2s ease;
}

.evidence-dropzone:hover {
    border-color: var(--brand-amber);
    background: #fffbeb;
}

.modal-footer {
    background: #f8fafc;
    border-top: 1px solid var(--border-color);
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.btn-secondary {
    background: #ffffff;
    border: 1.5px solid var(--border-color);
    color: var(--text-secondary);
    padding: 9px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
}

.btn-primary {
    background: var(--brand-amber);
    border: none;
    color: #0f172a;
    padding: 9px 22px;
    border-radius: var(--radius-sm);
    font-size: 0.86rem;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3);
}

.btn-primary:hover {
    background: var(--brand-amber-dark);
}

/* Material Stock Summary Cards */
.material-stock-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.material-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px 18px;
}

.material-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.mat-stock-metric-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    background: #f8fafc;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .ledger-filters-grid {
        grid-template-columns: 1fr;
    }

    .desktop-nav-tabs {
        overflow-x: auto;
    }

    .form-grid-2col,
    .form-grid-3col {
        grid-template-columns: 1fr;
    }
}

/* ========================================================
   THEME ADAPTATION OVERRIDES FOR ALL CARDS & PANELS
   ======================================================== */
.desktop-nav-bar {
    background: var(--nav-bg) !important;
    border-bottom: 1px solid var(--border-color);
}

.site-financial-card,
.ledger-header-panel,
.ledger-table-card,
.material-card,
.phone-budget-card,
.phone-recent-item-card,
.modal-dialog {
    background: var(--bg-card) !important;
    border-color: var(--border-color) !important;
    color: var(--text-primary);
}

.ledger-table th {
    background: var(--table-header-bg) !important;
    color: var(--text-secondary);
    border-bottom: 2px solid var(--border-color);
}

.ledger-table td {
    border-bottom: 1px solid var(--border-light);
    color: var(--text-primary);
}

[data-theme="dark"] .ledger-table tr.clickable-row:hover,
[data-theme="blue"] .ledger-table tr.clickable-row:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.modal-header,
.modal-footer {
    background: var(--border-light) !important;
    border-color: var(--border-color) !important;
}

.form-input,
.form-select,
.form-textarea,
.filter-select,
.filter-search-input {
    background: var(--bg-card);
    color: var(--text-primary);
    border-color: var(--border-color);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus,
.filter-search-input:focus {
    border-color: var(--brand-amber);
}

.phone-action-card-btn {
    background: var(--bg-card);
    border-color: var(--border-color);
}

.phone-action-title {
    color: var(--text-primary);
}

.site-stats-3col,
.mat-stock-metric-row {
    background: var(--border-light) !important;
}

.stat-box-val {
    color: var(--text-primary);
}

.btn-card-action {
    background: var(--bg-card);
    border-color: var(--border-color);
    color: var(--text-secondary);
}

.btn-card-action:hover {
    background: var(--border-light);
    color: var(--text-primary);
}

.btn-secondary {
    background: var(--bg-card);
    border-color: var(--border-color);
    color: var(--text-secondary);
}

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

/* ========================================================
   THEME SWITCHER CAPSULE (White / Dark / Blue Light)
   ======================================================== */
.theme-switcher-capsule {
    display: inline-flex;
    background: rgba(15, 23, 42, 0.6);
    padding: 3px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.15);
    gap: 2px;
}

.theme-pill-btn {
    background: none;
    border: none;
    color: #94a3b8;
    width: 32px;
    height: 30px;
    padding: 0;
    border-radius: var(--radius-full);
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.theme-pill-btn:hover {
    color: #ffffff;
}

.theme-pill-btn.active {
    background: var(--brand-amber);
    color: #0f172a;
    font-weight: 800;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* User Profile Capsule in Top Bar */
.user-profile-capsule {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.08);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.user-avatar-badge {
    font-size: 1.15rem;
}

.user-name-title {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.user-name-title strong {
    font-size: 0.8rem;
    color: #ffffff;
}

.user-name-title span {
    font-size: 0.68rem;
    color: #94a3b8;
}

.btn-logout {
    background: rgba(239, 68, 68, 0.18);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fca5a5;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    font-size: 0.76rem;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.15s ease;
}

.btn-logout:hover {
    background: #ef4444;
    color: #ffffff;
    border-color: #ef4444;
}

/* ========================================================
   MANDATORY LOGIN PORTAL (BEFORE LOGIN CAN'T ACCESS)
   ======================================================== */
/* ========================================================
   MANDATORY LOGIN PORTAL (EXECUTIVE 2-COLUMN SPLIT LAYOUT)
   ======================================================== */
.login-page-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 24px;
    background: var(--bg-main);
    position: relative;
    background-image: radial-gradient(circle at 10% 20%, rgba(245, 158, 11, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(2, 132, 199, 0.05) 0%, transparent 40%);
}

[data-theme="dark"] .login-page-container {
    background: #070a13;
    background-image: radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(13, 148, 136, 0.08) 0%, transparent 50%);
}

[data-theme="blue"] .login-page-container {
    background: #051329;
    background-image: radial-gradient(circle at 20% 20%, rgba(56, 189, 248, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(14, 165, 233, 0.08) 0%, transparent 50%);
}

.login-split-card {
    width: 100%;
    max-width: 1140px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 22px;
    box-shadow: 0 25px 65px -15px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.05);
    display: grid;
    grid-template-columns: 420px 1fr;
    overflow: hidden;
    position: relative;
}

/* Left Hero Branding Showcase Panel */
.login-hero-showcase {
    background: linear-gradient(145deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    padding: 44px 36px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="blue"] .login-hero-showcase {
    background: linear-gradient(145deg, #06152b 0%, #0d264f 100%);
}

.login-hero-showcase::after {
    content: '';
    position: absolute;
    bottom: -60px;
    right: -60px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.login-brand-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.login-hero-logo {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--brand-amber), #ea580c);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
    flex-shrink: 0;
}

.login-hero-title {
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.4px;
    line-height: 1.15;
}

.login-hero-title span {
    color: var(--brand-amber);
}

.login-hero-corp {
    font-size: 0.76rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-weight: 600;
}

.login-hero-tagline {
    font-size: 1.1rem;
    font-weight: 700;
    color: #f8fafc;
    line-height: 1.4;
    margin-bottom: 12px;
}

.login-hero-desc {
    font-size: 0.82rem;
    color: #94a3b8;
    line-height: 1.55;
    margin-bottom: 28px;
}

/* Feature Checklist in Left Panel */
.login-feature-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 30px;
}

.login-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.login-feature-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    color: var(--brand-amber);
    flex-shrink: 0;
}

.login-feature-text strong {
    font-size: 0.86rem;
    color: #ffffff;
    display: block;
    line-height: 1.25;
}

.login-feature-text span {
    font-size: 0.74rem;
    color: #94a3b8;
    line-height: 1.35;
    display: block;
    margin-top: 2px;
}

/* System Status Footer in Left Panel */
.login-system-status {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.status-dot-pulse {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #714b67;
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0 0 8px rgba(113, 75, 103, 0.4);
}

/* Right Interactive Authentication Panel */
.login-auth-card {
    padding: 36px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.login-auth-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.login-auth-heading h2 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
}

.login-auth-heading p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 3px;
}

/* Segmented Tab Switcher */
.login-tab-switcher {
    display: flex;
    background: var(--border-light);
    padding: 4px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.login-tab-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 9px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.login-tab-btn.active {
    background: var(--bg-card);
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
}

/* Persona Cards 2-Col Grid */
.persona-login-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    max-height: 380px;
    overflow-y: auto;
    padding-right: 4px;
}

.persona-login-card {
    background: var(--border-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.18s ease;
    position: relative;
}

.persona-login-card:hover {
    transform: translateY(-2px);
    border-color: var(--brand-amber);
    background: var(--bg-card);
    box-shadow: var(--shadow-md);
}

.persona-avatar-wrap {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.persona-info-wrap {
    flex: 1;
    min-width: 0;
}

.persona-name-text {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.persona-role-text {
    font-size: 0.74rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.persona-site-text {
    font-size: 0.68rem;
    font-weight: 700;
    margin-top: 1px;
}

.persona-login-arrow {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.persona-login-card:hover .persona-login-arrow {
    color: var(--brand-amber);
    transform: translateX(3px);
}

/* Direct Credentials Form */
.login-form-wrapper {
    max-width: 480px;
    margin: 8px auto 0 auto;
    width: 100%;
}

.quick-demo-pills-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.demo-chip-btn {
    background: var(--border-light);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}

.demo-chip-btn:hover {
    background: var(--brand-amber);
    color: #0f172a;
    border-color: var(--brand-amber);
}

.login-submit-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--brand-amber), var(--brand-amber-dark));
    color: #0f172a;
    border: none;
    padding: 12px 18px;
    border-radius: var(--radius-md);
    font-size: 0.94rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
    transition: all 0.2s ease;
    margin-top: 14px;
}

.login-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.45);
}

.login-portal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 18px;
    border-top: 1px solid var(--border-color);
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* Responsive adjustment for Mobile screens */
@media (max-width: 960px) {
    .login-split-card {
        grid-template-columns: 1fr;
        max-width: 540px;
    }

    .login-hero-showcase {
        padding: 30px 24px;
    }

    .login-auth-card {
        padding: 28px 24px;
    }

    .persona-login-grid {
        grid-template-columns: 1fr;
        max-height: 320px;
    }
}

/* ========================================================
   ODOO-STYLE APP LAUNCHER / LAUNCHPAD MENU
   ======================================================== */
.launchpad-container {
    min-height: calc(100vh - 60px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 56px 24px;
    position: relative;
    background-color: var(--bg-main);
    background-image: radial-gradient(#cbd5e1 1.2px, transparent 1.2px);
    background-size: 24px 24px;
}

[data-theme="white"] .launchpad-container {
    background-color: #f1f4f8;
    background-image: radial-gradient(#cbd5e1 1.2px, transparent 1.2px);
    background-size: 24px 24px;
}

[data-theme="dark"] .launchpad-container {
    background-color: #1e262f;
    background-image: radial-gradient(#3a4755 1.2px, transparent 1.2px);
    background-size: 24px 24px;
}

[data-theme="blue"] .launchpad-container {
    background-color: #242e38;
    background-image: radial-gradient(#3a4755 1.2px, transparent 1.2px);
    background-size: 24px 24px;
}

.launchpad-header-row {
    text-align: center;
    margin-bottom: 40px;
}

.launchpad-header-row h1 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.launchpad-header-row p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

.launchpad-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px 24px;
    max-width: 880px;
    margin: 0 auto;
}

.launchpad-app-item {
    width: 135px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    background: none;
    border: none;
    outline: none;
    padding: 8px;
    transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.launchpad-app-item:hover {
    transform: translateY(-6px) scale(1.04);
}

/* --- WHITE CARD ICON BOX (5px Border + Soft Ambient Blue Shadow + Animation) --- */
.launchpad-icon-box {
    width: 86px;
    height: 86px;
    background: #ffffff;
    border-radius: 24px;
    border: 5px solid #ffffff;
    outline: 1.5px solid var(--blue-light);
    box-shadow: 0 4px 14px rgba(0, 51, 102, 0.08), 0 1px 3px rgba(0, 51, 102, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--blue-darkest);
    margin-bottom: 12px;
    position: relative;
    transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.launchpad-icon-box i {
    color: var(--blue-darkest);
    transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.2s ease;
}

.launchpad-icon-box img {
    transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Hover Animation: border highlights in electric blue #007acc, elevates, and icon pulses */
.launchpad-app-item:hover .launchpad-icon-box {
    border-color: #ffffff;
    outline: 2.5px solid var(--blue-primary);
    box-shadow: 0 16px 32px -4px rgba(0, 122, 204, 0.25), 0 4px 8px rgba(0, 51, 102, 0.08);
    transform: scale(1.04);
}

.launchpad-app-item:hover .launchpad-icon-box i {
    transform: scale(1.12);
    color: var(--blue-primary);
}

.launchpad-app-item:hover .launchpad-icon-box img {
    transform: scale(1.12);
}

.launchpad-icon-box.project,
.launchpad-icon-box.sale,
.launchpad-icon-box.purchase,
.launchpad-icon-box.expance,
.launchpad-icon-box.labour,
.launchpad-icon-box.ledger,
.launchpad-icon-box.materials,
.launchpad-icon-box.cockpit,
.launchpad-icon-box.settings {
    background: #ffffff;
}

.launchpad-app-label {
    font-family: 'Plus Jakarta Sans', 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--blue-darkest);
    letter-spacing: -0.15px;
    margin-top: 6px;
    line-height: 1.3;
    transition: all 0.2s ease;
}

.launchpad-app-item:hover .launchpad-app-label {
    color: var(--blue-primary);
    transform: translateY(1px);
}

.launchpad-app-sub {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* App Launcher Button in Universal Top Bar (Modern Squircle style) */
.btn-app-launcher {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.15rem;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    margin: 0;
}

.btn-app-launcher img {
    width: 17px;
    height: 17px;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.btn-app-launcher:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.45);
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.btn-app-launcher:hover img {
    transform: rotate(90deg);
}

.app-breadcrumb-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 700;
    color: #ffffff;
}

.app-breadcrumb-pill span {
    color: var(--brand-amber);
    font-weight: 800;
}

@media (max-width: 900px) {
    .launchpad-grid {
        grid-template-columns: repeat(3, 110px);
        gap: 24px 16px;
    }
}

@media (max-width: 500px) {
    .launchpad-grid {
        grid-template-columns: repeat(2, 110px);
        gap: 20px 14px;
    }
}

/* ========================================================
   MULTI-LEVEL NESTED SUBMENU (MENU > SUBMENU > SUB-SUBMENU)
   ======================================================== */
.nav-dropdown-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 230px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
    padding: 6px 0;
    z-index: 1200;
    display: none;
    animation: fadeInDropdown 0.16s ease;
    text-align: left;
}

.nav-dropdown-wrapper:hover>.nav-dropdown-menu,
.nav-dropdown-wrapper.open>.nav-dropdown-menu {
    display: block;
}

.nav-dropdown-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 16px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}

.nav-dropdown-item:hover {
    background: var(--border-light);
    color: var(--brand-amber-dark);
}

.nav-dropdown-item-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-dropdown-item .sub-arrow {
    font-size: 0.68rem;
    color: var(--text-muted);
    transition: transform 0.15s ease;
}

.nav-dropdown-item:hover .sub-arrow {
    transform: translateX(3px);
    color: var(--brand-amber);
}

/* Level 2 Sub-submenu (Flyout) */
.nav-sub-dropdown-menu {
    position: absolute;
    top: -6px;
    left: 100%;
    min-width: 230px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
    padding: 6px 0;
    display: none;
    z-index: 1210;
}

.nav-dropdown-item:hover>.nav-sub-dropdown-menu {
    display: block;
}

.nav-sub-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.15s ease;
}

.nav-sub-dropdown-item:hover {
    background: var(--border-light);
    color: var(--brand-amber-dark);
}

/* ========================================================
   PROJECT KANBAN VIEW & CONTROLS
   ======================================================== */
.project-kanban-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.btn-create-project {
    background: linear-gradient(135deg, var(--brand-amber) 0%, #ea580c 100%);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-md);
    padding: 9px 18px;
    font-size: 0.88rem;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
    transition: all 0.18s ease;
}

.btn-create-project:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.45);
}

.project-search-input {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 8px 14px;
    font-size: 0.84rem;
    color: var(--text-primary);
    outline: none;
    min-width: 260px;
}

.project-search-input:focus {
    border-color: var(--brand-amber);
}

.view-toggle-capsule {
    display: inline-flex;
    background: var(--border-light);
    border: 1px solid var(--border-color);
    padding: 3px;
    border-radius: var(--radius-md);
}

.view-toggle-btn {
    background: none;
    border: none;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
}

.view-toggle-btn.active {
    background: var(--bg-card);
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
}

/* Kanban Board Columns */
.kanban-board-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    align-items: start;
}

.kanban-column {
    background: var(--border-light);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 480px;
}

.kanban-column-header {
    padding: 14px 18px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.kanban-column-title {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.kanban-column-badge {
    background: var(--border-light);
    color: var(--text-secondary);
    font-size: 0.72rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: var(--radius-full);
}

.kanban-column-cards {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1;
}

.kanban-project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 16px;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.kanban-project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.2);
    border-color: var(--brand-amber);
}

.kanban-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.kanban-project-name {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.3;
}

.kanban-project-loc {
    font-size: 0.76rem;
    color: var(--text-muted);
    margin-top: 3px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.kanban-progress-box {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.kanban-progress-track {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--border-color);
    overflow: hidden;
}

.kanban-progress-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, #714b67 0%, #5a3851 100%);
    transition: width 0.3s ease;
}

.kanban-budget-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.kanban-sites-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.kanban-site-chip {
    background: var(--border-light);
    border: 1px solid var(--border-color);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.15s ease;
}

.kanban-site-chip:hover {
    background: var(--brand-amber);
    color: #0f172a;
    border-color: var(--brand-amber);
}

/* ========================================================
   ODOO 17/18 FORM VIEW & RIGHT-SIDE/BOTTOM CHATTER
   ======================================================== */
.odoo-form-view-container,
.axenor-form-view-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
}

.odoo-form-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px !important;
    padding: 10px 18px;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.odoo-form-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.92rem;
    font-weight: 700;
}

.odoo-breadcrumb-root {
    color: var(--brand-amber-dark);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.odoo-breadcrumb-sep {
    color: var(--text-muted);
}

.odoo-breadcrumb-current {
    color: var(--text-primary);
    font-weight: 800;
}

.odoo-smart-buttons-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.odoo-smart-btn {
    background: var(--border-light);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.76rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s ease;
}

.odoo-smart-btn:hover {
    background: var(--bg-primary);
    border-color: var(--brand-amber);
    color: var(--text-primary);
}

.odoo-smart-btn i {
    font-size: 0.92rem;
    color: var(--brand-amber-dark);
}

.odoo-smart-btn-val {
    font-weight: 800;
    font-family: monospace;
    color: var(--text-primary);
    display: block;
}

/* Main Split: Form Sheet (Left) + Chatter (Right/Bottom) */
.odoo-form-main-layout {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    width: 100%;
}

@media (max-width: 1180px) {
    .odoo-form-main-layout {
        flex-direction: column;
    }
}

.odoo-form-sheet,
.odoo-sheet {
    flex: 1;
    min-width: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px !important;
    padding: 20px 24px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 0px;
    margin: 0;
}

.odoo-form-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.odoo-form-title-text {
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.25;
    letter-spacing: -0.02em;
    flex: 1;
}

.odoo-form-title-input {
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--text-primary);
    background: transparent;
    border: 1px dashed var(--border-color);
    border-radius: 6px;
    padding: 4px 8px;
    width: 100%;
    transition: all 0.2s ease;
    outline: none;
    font-family: inherit;
}

.odoo-form-title-input:hover,
.odoo-form-title-input:focus {
    border-color: #714b67;
    background: var(--bg-primary);
    box-shadow: 0 0 0 2px rgba(113, 75, 103, 0.15);
}

.odoo-form-input {
    background: #ffffff !important;
    border: 1px solid #ced4da;
    border-radius: 5px;
    padding: 7px 12px;
    font-size: 0.88rem;
    color: #1e293b;
    width: 100%;
    outline: none;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.odoo-form-input:focus {
    border-color: #714b67 !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(113, 75, 103, 0.2) !important;
}

.odoo-form-select {
    background: #ffffff !important;
    border: 1px solid #ced4da;
    border-radius: 5px;
    padding: 7px 12px;
    font-size: 0.88rem;
    color: #1e293b;
    width: 100%;
    outline: none;
    cursor: pointer;
    font-family: inherit;
    box-sizing: border-box;
}

.odoo-form-select:focus {
    border-color: #714b67 !important;
}

.btn-odoo-save {
    background: #714b67;
    color: #ffffff;
    border: 1px solid #5a3851;
    border-radius: 6px;
    padding: 6px 16px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.btn-odoo-save:hover {
    background: #5d3b53;
}

.btn-odoo-discard {
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
}

.btn-odoo-discard:hover {
    background: var(--border-light);
    color: var(--text-primary);
}

.btn-odoo-back {
    background: var(--border-light);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
}

.btn-odoo-back:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.odoo-form-star-btn {
    background: none;
    border: none;
    font-size: 1.4rem;
    color: #cbd5e1;
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 4px;
}

.odoo-form-star-btn.active {
    color: #eab308;
}

.odoo-form-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    padding: 0;
    background: transparent !important;
    border-radius: 0;
    border: none !important;
}

.odoo-form-meta-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.84rem;
}

.odoo-form-meta-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.odoo-form-meta-label {
    width: 140px;
    color: #1e293b;
    font-weight: 700;
    font-size: 0.88rem;
    flex-shrink: 0;
}

.odoo-form-meta-val {
    color: var(--text-primary);
    font-weight: 800;
}

/* Tabs inside form sheet */
.odoo-form-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid var(--border-color);
    margin-top: 10px;
}

.odoo-form-tab-btn {
    background: none;
    border: none;
    padding: 10px 16px;
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.15s ease;
}

.odoo-form-tab-btn:hover {
    color: var(--text-primary);
}

.odoo-form-tab-btn.active {
    color: var(--brand-amber-dark);
    border-bottom-color: var(--brand-amber);
    background: rgba(245, 158, 11, 0.05);
}

.odoo-form-tab-content {
    padding-top: 10px;
}

.odoo-form-section-title {
    font-size: 0.95rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ========================================================
   RIGHT-SIDE / BOTTOM ODOO CHATTER COMPONENT
   ======================================================== */
.odoo-chatter-panel {
    width: 440px;
    flex-shrink: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 18px;
    box-sizing: border-box;
}

@media (max-width: 1180px) {
    .odoo-chatter-panel {
        width: 100%;
    }
}

.odoo-chatter-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-color);
}

.odoo-chatter-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-chatter-send {
    background: #714b67;
    /* Iconic Odoo Berry */
    color: #ffffff;
    border: none;
    padding: 7px 14px;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-chatter-send:hover {
    background: #5b3d53;
}

.btn-chatter-note {
    background: var(--border-light);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 7px 14px;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-chatter-note:hover {
    background: var(--border-color);
}

.btn-chatter-activity {
    background: none;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 7px 12px;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-chatter-activity:hover {
    background: var(--border-light);
    color: var(--text-primary);
}

.odoo-chatter-tools {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.odoo-chatter-tool-icon {
    cursor: pointer;
    transition: color 0.15s ease;
}

.odoo-chatter-tool-icon:hover {
    color: var(--text-primary);
}

/* Chatter Composer */
.odoo-chatter-composer {
    background: var(--border-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    animation: fadeIn 0.15s ease;
}

.odoo-chatter-textarea {
    width: 100%;
    min-height: 72px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 10px;
    font-size: 0.84rem;
    font-family: inherit;
    color: var(--text-primary);
    resize: vertical;
}

.odoo-chatter-composer-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

/* Planned Activities Widget */
.odoo-chatter-activities-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.odoo-chatter-activities-title {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.odoo-activity-card {
    background: var(--border-light);
    border-left: 4px solid #ef4444;
    /* Red overdue bar */
    border-radius: 6px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.odoo-activity-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.odoo-activity-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fee2e2;
    color: #ef4444;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.odoo-activity-text {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

.odoo-activity-overdue-tag {
    color: #ef4444;
    font-weight: 800;
    margin-right: 4px;
}

.odoo-activity-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 4px;
    font-size: 0.78rem;
    font-weight: 700;
}

.odoo-activity-action-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.15s ease;
    padding: 0;
}

.odoo-activity-action-btn:hover {
    color: var(--brand-amber-dark);
}

.odoo-activity-action-btn.done:hover {
    color: #714b67;
}

/* Date Divider */
.odoo-chatter-date-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 8px 0;
    color: var(--text-muted);
    font-size: 0.74rem;
    font-weight: 700;
}

.odoo-chatter-date-divider::before,
.odoo-chatter-date-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.odoo-chatter-date-divider span {
    padding: 0 10px;
}

/* Messages List */
.odoo-chatter-messages-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.odoo-chatter-msg {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.odoo-chatter-msg-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #714b67;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.odoo-chatter-msg-avatar.bot {
    background: #06b6d4;
}

.odoo-chatter-msg-content {
    flex: 1;
    min-width: 0;
}

.odoo-chatter-msg-header {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 2px;
}

.odoo-chatter-msg-author {
    font-size: 0.84rem;
    font-weight: 800;
    color: var(--text-primary);
}

.odoo-chatter-msg-date {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.odoo-chatter-msg-body {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.38;
    background: var(--border-light);
    padding: 8px 12px;
    border-radius: 8px;
    margin-top: 4px;
    border: 1px solid var(--border-color);
}

/* ========================================================
   ODOO CONTROL PANEL & KANBAN GRID SPECIFICATION
   ======================================================== */
.odoo-control-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
    background: var(--bg-card);
    padding: 10px 16px;
    border-radius: 10px !important;
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.odoo-new-btn {
    background: #714B67;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    padding: 7px 16px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
}

.odoo-new-btn:hover {
    background: #5d3d54;
    transform: translateY(-1px);
}

.odoo-control-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 6px;
}

.odoo-search-pill-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    padding: 6px 16px;
    min-width: 340px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
    transition: border-color 0.15s ease;
}

.odoo-search-pill-wrap:focus-within {
    border-color: #714B67;
}

.odoo-search-pill-input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.88rem;
    color: var(--text-primary);
    width: 100%;
}

.odoo-pager-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.odoo-pager-btn {
    background: var(--border-light);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-primary);
    font-size: 0.76rem;
    transition: all 0.15s ease;
}

.odoo-pager-btn:hover {
    background: var(--border-color);
}

.odoo-view-switchers {
    display: inline-flex;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
}

.odoo-view-btn {
    background: var(--bg-card);
    border: none;
    padding: 6px 12px;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.odoo-view-btn.active {
    background: var(--border-light);
    color: var(--text-primary);
    font-weight: 800;
}

/* Odoo Kanban Grid & Card Styling */
.odoo-kanban-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
}

.odoo-kanban-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    cursor: pointer;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.odoo-kanban-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e1;
}

.odoo-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.odoo-card-star {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    color: #cbd5e1;
    padding: 0;
    display: inline-flex;
    align-items: center;
}

.odoo-card-star .starred {
    color: #eab308;
}

.odoo-card-title {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.odoo-card-row {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.78rem;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.odoo-card-icon {
    width: 14px;
    color: var(--text-muted);
    font-size: 0.76rem;
    text-align: center;
    flex-shrink: 0;
}

.odoo-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 2px;
}

.odoo-tag-pill {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 999px;
}

.tag-architecture {
    background: #dcfce7;
    color: #15803d;
}

.tag-construction {
    background: #ffedd5;
    color: #c2410c;
}

.tag-design {
    background: #fce7f3;
    color: #be185d;
}

.tag-interior {
    background: #e0f2fe;
    color: #0369a1;
}

.tag-external {
    background: #ede9fe;
    color: #6d28d9;
}

.tag-experiment {
    background: #e0e7ff;
    color: #4338ca;
}

.tag-internal {
    background: #fee2e2;
    color: #b91c1c;
}

.odoo-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
    padding-top: 6px;
    border-top: 1px solid var(--border-light);
}

.odoo-card-activities {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
}

.odoo-card-user {
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
}

.odoo-avatar-mini {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    overflow: hidden;
}

.odoo-user-status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: 1px solid #ffffff;
}

.status-green {
    background: #22c55e;
}

.status-purple {
    background: #a855f7;
}

.status-red {
    background: #ef4444;
}

.status-orange {
    background: #f97316;
}

.status-cyan {
    background: #06b6d4;
}

.status-gray {
    background: #94a3b8;
}

/* ==========================================================================
   AXENOR STAGE-BASED PROJECT KANBAN BOARD
   ========================================================================== */
.kanban-stage-board {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    align-items: flex-start;
    padding: 10px 4px 28px;
    min-height: auto;
}

.kanban-stage-column {
    flex: 1 1 310px;
    min-width: 295px;
    max-width: 380px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.kanban-stage-column.drag-over {
    background: #f1f5f9;
    border: 2px dashed #714B67;
    box-shadow: 0 4px 14px rgba(113, 75, 103, 0.15);
}

.kanban-stage-header {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 12px 14px 10px;
    border-radius: 9px 9px 0 0;
}

.kanban-stage-header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.kanban-stage-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.kanban-stage-icon-pill {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    flex-shrink: 0;
}

.kanban-stage-title {
    font-size: 0.92rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.01em;
}

.kanban-stage-count-badge {
    font-size: 0.72rem;
    font-weight: 800;
    padding: 1px 7px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #cbd5e1;
}

.kanban-stage-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.kanban-stage-add-btn {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #714B67;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.76rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.kanban-stage-add-btn:hover {
    background: #714B67;
    color: #ffffff;
    border-color: #714B67;
}

.kanban-stage-subbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 6px;
    font-size: 0.72rem;
    color: #64748b;
}

.kanban-stage-desc {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 200px;
}

.kanban-stage-budget {
    font-weight: 800;
    color: #0f172a;
    background: #f1f5f9;
    padding: 1px 6px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}

.kanban-stage-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    overflow-y: auto;
}

.kanban-empty-dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    border: 1.5px dashed #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    gap: 8px;
    text-align: center;
}

.kanban-dropzone-add-btn {
    background: transparent;
    border: 1px solid #cbd5e1;
    color: #714B67;
    font-weight: 700;
    font-size: 0.76rem;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 4px;
    transition: all 0.15s ease;
}

.kanban-dropzone-add-btn:hover {
    background: #714B67;
    color: #ffffff;
    border-color: #714B67;
}

.project-stage-card {
    cursor: grab;
    background: #ffffff !important;
}

.project-stage-card:active {
    cursor: grabbing;
}

.project-code-tag {
    font-family: monospace;
    font-size: 0.7rem;
    font-weight: 800;
    background: #f1f5f9;
    color: #0f172a;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}

.project-stage-mover-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 4px;
    padding-top: 4px;
    border-top: 1px dashed #f1f5f9;
}

.project-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 999px;
}

.stage-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.project-stage-quick-select {
    font-size: 0.7rem;
    font-weight: 700;
    color: #0f172a;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    padding: 2px 6px;
    cursor: pointer;
    max-width: 140px;
}

.project-stage-quick-select:hover {
    border-color: #714B67;
    color: #714B67;
}

.stage-summary-pills-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 12px;
    overflow-x: auto;
}

.stage-summary-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #475569;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.stage-summary-pill:hover {
    border-color: #714B67;
    color: #714B67;
}

.stage-summary-pill.active {
    background: #714B67;
    color: #ffffff;
    border-color: #714B67;
}

.stage-summary-pill.active .stage-count-tag {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

.stage-count-tag {
    font-size: 0.68rem;
    padding: 1px 6px;
    border-radius: 999px;
    background: #e2e8f0;
    color: #0f172a;
    font-weight: 800;
}

/* Odoo Form Read-Only styles */
.btn-odoo-edit {
    background: #714B67;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    padding: 6px 16px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
}

.btn-odoo-edit:hover {
    background: #5d3d54;
}

.btn-odoo-new {
    background: var(--border-light);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 6px 14px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
}

.btn-odoo-new:hover {
    background: var(--border-color);
}

.odoo-readonly-val {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
    padding: 6px 0;
    min-height: 32px;
    display: flex;
    align-items: center;
    word-break: break-word;
}

.odoo-stage-pill {
    background: var(--border-light);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
}

/* Security Badge Button & Pulse Dot */
.odoo-security-badge-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--blue-dark);
    border: 1px solid rgba(204, 224, 255, 0.25);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.odoo-security-badge-btn:hover {
    background: var(--blue-primary);
    border-color: #ffffff;
    transform: translateY(-1px);
}

.security-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--blue-mid);
    box-shadow: 0 0 6px var(--blue-mid);
    animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(0.85);
    }
}

/* Red Highlight Validation Box for Required Fields */
.input-field-error {
    border: 2px solid #ef4444 !important;
    background: #fff1f2 !important;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.2) !important;
    color: #b91c1c !important;
    animation: shakeError 0.35s ease-in-out;
}

@keyframes shakeError {

    0%,
    100% {
        transform: translateX(0);
    }

    20%,
    60% {
        transform: translateX(-4px);
    }

    40%,
    80% {
        transform: translateX(4px);
    }
}

/* ========================================================
   AXENOR REUSABLE LIST VIEW & ODOO ENTERPRISE TABLE SYSTEM
   ======================================================== */

.axenor-list-view-root {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.axenor-control-panel-enhanced {
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 10;
}

.axenor-batch-actions-banner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 135, 132, 0.1);
    border: 1px solid rgba(0, 135, 132, 0.3);
    padding: 3px 8px;
    border-radius: 6px;
    animation: fadeIn 0.15s ease;
}

.axenor-batch-count {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--brand-teal, #008784);
}

.axenor-batch-buttons {
    display: flex;
    align-items: center;
    gap: 4px;
}

.axenor-batch-btn {
    background: var(--brand-teal, #008784);
    color: #ffffff;
    border: none;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.74rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}

.axenor-batch-btn:hover {
    background: #006d6a;
}

.axenor-batch-btn.discard {
    background: transparent;
    color: var(--text-muted);
}

.axenor-batch-btn.discard:hover {
    color: #ef4444;
}

.axenor-list-table-container {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow-x: auto;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.axenor-list-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-main);
    text-align: left;
}

.axenor-list-table thead tr {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
}

.axenor-th {
    padding: 10px 14px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-secondary);
    white-space: nowrap;
    user-select: none;
}

.axenor-th.sortable:hover {
    color: var(--text-primary);
}

.axenor-th-inner {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.axenor-sort-icon {
    font-size: 0.76rem;
    color: var(--text-muted);
}

.axenor-th.sorted .axenor-sort-icon {
    color: var(--brand-teal, #008784);
}

.axenor-th-checkbox,
.axenor-td-checkbox {
    width: 38px;
    padding: 8px 10px 8px 14px;
    text-align: center;
}

.axenor-checkbox {
    width: 15px;
    height: 15px;
    accent-color: var(--brand-teal, #008784);
    cursor: pointer;
    border-radius: 3px;
    vertical-align: middle;
}

.axenor-th-cog,
.axenor-td-cog {
    width: 36px;
    padding: 8px 14px 8px 6px;
    text-align: right;
}

.axenor-cog-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: color 0.15s ease;
}

.axenor-cog-btn:hover {
    color: var(--text-primary);
}

/* Row Styling */
.axenor-table-row {
    border-bottom: 1px solid var(--border-light);
    transition: background-color 0.1s ease;
    cursor: pointer;
}

.axenor-table-row:hover {
    background-color: var(--border-light);
}

.axenor-table-row.row-selected {
    background-color: rgba(0, 135, 132, 0.05);
}

.axenor-td {
    padding: 10px 14px;
    font-size: 0.84rem;
    color: var(--text-primary);
    vertical-align: middle;
}

/* Specific Cell Component Styles matching user screenshot */
.axenor-cell-primary {
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
    transition: color 0.15s ease;
}

.axenor-cell-primary:hover {
    color: var(--brand-teal, #008784);
    text-decoration: underline;
}

.axenor-avatar-cell {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.axenor-avatar-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e0f2fe;
    border: 1px solid #bae6fd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
}

.axenor-avatar-name {
    font-size: 0.83rem;
    font-weight: 600;
    color: var(--text-primary);
}

.axenor-status-dot-cell {
    display: flex;
    align-items: center;
    justify-content: center;
}

.axenor-status-dot {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1.5px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
    transition: transform 0.15s ease;
}

.axenor-status-dot:hover {
    transform: scale(1.15);
}

.axenor-link-action {
    background: transparent;
    border: none;
    color: var(--brand-teal, #008784);
    font-weight: 700;
    font-size: 0.84rem;
    cursor: pointer;
    text-decoration: none;
    padding: 4px 6px;
    border-radius: 4px;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.axenor-link-action:hover {
    text-decoration: underline;
    color: #006d6a;
}

.axenor-currency-cell {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--text-primary);
}

.axenor-date-cell {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.axenor-empty-cell {
    padding: 48px 16px;
    text-align: center;
}

.axenor-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
}

.axenor-empty-state > i,
.axenor-empty-state > .fa-folder-open {
    font-size: 2.5rem;
    opacity: 0.45;
    margin-bottom: 4px;
}

.axenor-empty-text {
    font-size: 0.92rem;
    font-weight: 600;
}

.axenor-empty-create-btn {
    margin-top: 10px;
    background: #714B67;
    color: #ffffff;
    border: none;
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    line-height: 1 !important;
    vertical-align: middle !important;
    box-shadow: 0 2px 6px rgba(113, 75, 103, 0.25);
    transition: all 0.15s ease;
}

.axenor-empty-create-btn:hover {
    background: #5a3a52;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(113, 75, 103, 0.35);
}

.axenor-empty-create-btn i,
.axenor-empty-create-btn .fa-plus {
    font-size: 0.82rem !important;
    opacity: 1 !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    vertical-align: middle !important;
}

/* ========================================================
   UNIVERSAL PERFECT INLINE BUTTON & ICON SYSTEM
   Flawlessly aligns icons (+, pen, trash, check, etc.) with 
   button labels on all desktop and mobile views.
   ======================================================== */
.odoo-new-btn,
.btn-odoo-new,
.btn-odoo-edit,
.btn-odoo-save,
.btn-odoo-back,
.axenor-empty-create-btn,
.kanban-dropzone-add-btn,
.kanban-stage-add-btn,
.btn-card-action {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    vertical-align: middle !important;
    line-height: 1 !important;
    text-decoration: none !important;
}

.odoo-new-btn i,
.btn-odoo-new i,
.btn-odoo-edit i,
.btn-odoo-save i,
.btn-odoo-back i,
.axenor-empty-create-btn i,
.kanban-dropzone-add-btn i,
.kanban-stage-add-btn i,
.btn-card-action i {
    font-size: 0.85em !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    vertical-align: middle !important;
}

.odoo-new-btn i.fa-plus,
.btn-odoo-new i.fa-plus,
.axenor-empty-create-btn i.fa-plus,
.kanban-dropzone-add-btn i.fa-plus {
    font-size: 0.82em !important;
    opacity: 1 !important;
    transform: none !important;
}

/* ========================================================
   ARROW CHEVRON STATUSBAR PIPELINE (100% EXACT MATCH TO USER PHOTO)
   Geometry: Interlocking continuous arrow ribbon with left indent notch and right point
   Palette: Step 1 (Gold/Yellow #f5a623) -> Step 2 (Orange #f7931e) -> Step 3 (Red #d92525) -> Step 4 (Purple #550073)
   ======================================================== */
.chevron-statusbar {
    display: inline-flex;
    align-items: center;
    gap: 0;
    padding: 0;
    background: transparent;
    user-select: none;
    vertical-align: middle;
}

.chevron-step {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 30px;
    padding: 0 16px 0 24px;
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #ffffff;
    cursor: pointer;
    white-space: nowrap;
    transition: filter 0.15s ease, opacity 0.15s ease;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%, 10px 50%);
    box-shadow: none;
    box-sizing: border-box;
}

.chevron-step:not(:first-child) {
    margin-left: -8px;
}

.chevron-step {
    background-color: rgba(113, 75, 103, 0.08);
    color: #0f172a;
}

.chevron-step:hover {
    background-color: #714b67 !important;
    color: #ffffff !important;
    filter: none;
    z-index: 10;
}

.chevron-step.step-color-0,
.chevron-step.step-yellow,
.chevron-step.step-color-1,
.chevron-step.step-orange,
.chevron-step.step-color-2,
.chevron-step.step-red,
.chevron-step.step-color-3,
.chevron-step.step-purple,
.chevron-step.step-color-4,
.chevron-step.step-blue {
    background-color: rgba(113, 75, 103, 0.08);
    color: #0f172a;
}

.chevron-step.is-active {
    background-color: #714b67 !important;
    color: #ffffff !important;
    font-weight: 900;
    z-index: 5;
    opacity: 1 !important;
}

.chevron-step .chevron-active-mark {
    display: inline-block;
    margin-left: 4px;
    font-size: 0.75rem;
    font-weight: 900;
    color: #ffffff;
    vertical-align: middle;
}

.chevron-step.is-future {
    background-color: rgba(113, 75, 103, 0.08) !important;
    color: #0f172a !important;
    opacity: 0.9;
}

.chevron-step.is-future:hover {
    background-color: #714b67 !important;
    color: #ffffff !important;
    opacity: 1;
}

.chevron-step.is-passed {
    background-color: rgba(113, 75, 103, 0.72) !important;
    color: #ffffff !important;
    opacity: 0.95;
}

/* ==========================================================================
   AXENOR MOBILE APP OPTIMIZATION ENGINE (RESPONSIVE LIST & FORM VIEWS)
   ========================================================================== */

/* --- Desktop Defaults for Mobile-specific elements --- */
.axenor-mobile-cards-wrap {
    display: none;
}

.axenor-mobile-view-toggle {
    display: none;
}

.axenor-mobile-fab {
    display: none;
}

.mobile-bottom-nav {
    display: none;
}

.mobile-nav-drawer {
    display: none;
}

.mobile-drawer-backdrop {
    display: none;
}

/* --- Mobile Breakpoint (<= 768px): Smartphones & Phablets --- */
@media (max-width: 768px) {

    /* Global mobile container padding for bottom navigation bar */
    .app-container,
    .desktop-command-center,
    .command-center-workspace {
        padding-bottom: 84px !important;
        -webkit-tap-highlight-color: transparent;
    }

    /* 1. Universal Topbar App Header */
    .top-universal-bar.app-mode {
        padding: 0 12px;
        height: 54px;
        position: sticky;
        top: 0;
        z-index: 990;
        background: rgba(255, 255, 255, 0.96) !important;
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-bottom: 1px solid rgba(226, 232, 240, 0.9);
        box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
        overflow: visible !important;
    }

    .topbar-app-left {
        overflow: visible !important;
        white-space: nowrap;
        gap: 8px;
        align-items: center;
        flex: 1;
        min-width: 0;
    }

    .topbar-app-left::-webkit-scrollbar {
        display: none;
    }

    .topbar-app-branding {
        padding-right: 8px;
        font-size: 14.5px;
        font-weight: 800;
        gap: 7px;
        flex-shrink: 0;
    }

    /* Hide desktop horizontal submenu bar on mobile */
    .topbar-submenus-list,
    .topbar-submenus-list.desktop-only {
        display: none !important;
    }

    /* Mobile Submenu Dropdown Container & Controls */
    .topbar-mobile-submenu-container {
        display: inline-flex !important;
        position: relative;
        align-items: center;
        flex-shrink: 0;
    }

    .topbar-mobile-submenu-trigger {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        background: #714b67;
        color: #ffffff;
        border: none;
        outline: none;
        padding: 5px 12px;
        border-radius: 20px;
        font-size: 13px;
        font-weight: 700;
        cursor: pointer;
        box-shadow: 0 2px 6px rgba(113, 75, 103, 0.28);
        transition: all 0.15s ease;
        max-width: 175px;
        white-space: nowrap;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
    }

    .topbar-mobile-submenu-trigger:active,
    .topbar-mobile-submenu-trigger.active {
        background: #5b3c53;
        transform: scale(0.97);
    }

    .topbar-mobile-sub-icon {
        width: 14px;
        height: 14px;
        object-fit: contain;
        flex-shrink: 0;
    }

    .topbar-mobile-sub-label {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: 115px;
    }

    .topbar-mobile-sub-chevron {
        font-size: 10px;
        margin-left: 2px;
        transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
        opacity: 0.9;
        flex-shrink: 0;
    }

    .topbar-mobile-sub-chevron.rotated {
        transform: rotate(180deg);
    }

    /* Backdrop overlay for smooth outside tap dismiss */
    .topbar-mobile-submenu-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1040;
        background: rgba(15, 23, 42, 0.18);
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
    }

    /* Dropdown floating popup */
    .topbar-mobile-submenu-dropdown {
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        min-width: 220px;
        max-width: 280px;
        background: #ffffff;
        border-radius: 14px;
        border: 1px solid #e2e8f0;
        box-shadow: 0 16px 36px rgba(15, 23, 42, 0.22), 0 3px 8px rgba(0, 0, 0, 0.06);
        padding: 6px;
        z-index: 1050;
        animation: mobileSubmenuFadeIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    }

    @keyframes mobileSubmenuFadeIn {
        from {
            opacity: 0;
            transform: translateY(-6px) scale(0.97);
        }

        to {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }

    .topbar-mobile-submenu-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 6px 10px 8px;
        font-size: 11px;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: #94a3b8;
        border-bottom: 1px solid #f1f5f9;
        margin-bottom: 4px;
    }

    .topbar-mobile-sub-close {
        background: none;
        border: none;
        color: #94a3b8;
        font-size: 13px;
        cursor: pointer;
        padding: 2px 6px;
        border-radius: 4px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .topbar-mobile-submenu-items {
        display: flex;
        flex-direction: column;
        gap: 3px;
    }

    .topbar-mobile-sub-item {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 10px 12px;
        border: none;
        background: transparent;
        border-radius: 9px;
        font-size: 13.5px;
        font-weight: 600;
        color: #334155;
        text-align: left;
        cursor: pointer;
        transition: background 0.15s ease, color 0.15s ease;
        -webkit-tap-highlight-color: transparent;
    }

    .topbar-mobile-sub-item:active,
    .topbar-mobile-sub-item:hover {
        background: #f8fafc;
    }

    .topbar-mobile-sub-item.active {
        background: rgba(113, 75, 103, 0.1);
        color: #714b67;
        font-weight: 700;
    }

    .topbar-mobile-sub-item-content {
        display: flex;
        align-items: center;
        gap: 9px;
        overflow: hidden;
    }

    .topbar-mobile-sub-item-icon {
        width: 16px;
        height: 16px;
        object-fit: contain;
        flex-shrink: 0;
    }

    .topbar-mobile-sub-item-dot {
        font-size: 8px;
        color: #714b67;
        width: 16px;
        text-align: center;
        flex-shrink: 0;
    }

    .topbar-mobile-sub-item-title {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .topbar-mobile-sub-item-check {
        color: #714b67;
        font-size: 13px;
        margin-left: 8px;
        flex-shrink: 0;
    }

    .topbar-mobile-sub-label {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: 115px;
    }

    .topbar-mobile-sub-chevron {
        font-size: 10px;
        margin-left: 2px;
        transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
        opacity: 0.9;
        flex-shrink: 0;
    }

    .topbar-mobile-sub-chevron.rotated {
        transform: rotate(180deg);
    }

    /* Backdrop overlay for smooth outside tap dismiss */
    .topbar-mobile-submenu-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1040;
        background: rgba(15, 23, 42, 0.18);
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
    }

    /* Dropdown floating popup */
    .topbar-mobile-submenu-dropdown {
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        min-width: 220px;
        max-width: 280px;
        background: #ffffff;
        border-radius: 14px;
        border: 1px solid #e2e8f0;
        box-shadow: 0 16px 36px rgba(15, 23, 42, 0.22), 0 3px 8px rgba(0, 0, 0, 0.06);
        padding: 6px;
        z-index: 1050;
        animation: mobileSubmenuFadeIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    }

    @keyframes mobileSubmenuFadeIn {
        from {
            opacity: 0;
            transform: translateY(-6px) scale(0.97);
        }

        to {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }

    .topbar-mobile-submenu-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 6px 10px 8px;
        font-size: 11px;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: #94a3b8;
        border-bottom: 1px solid #f1f5f9;
        margin-bottom: 4px;
    }

    .topbar-mobile-sub-close {
        background: none;
        border: none;
        color: #94a3b8;
        font-size: 13px;
        cursor: pointer;
        padding: 2px 6px;
        border-radius: 4px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .topbar-mobile-submenu-items {
        display: flex;
        flex-direction: column;
        gap: 3px;
    }

    .topbar-mobile-sub-item {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 10px 12px;
        border: none;
        background: transparent;
        border-radius: 9px;
        font-size: 13.5px;
        font-weight: 600;
        color: #334155;
        text-align: left;
        cursor: pointer;
        transition: background 0.15s ease, color 0.15s ease;
        -webkit-tap-highlight-color: transparent;
    }

    .topbar-mobile-sub-item:active,
    .topbar-mobile-sub-item:hover {
        background: #f8fafc;
    }

    .topbar-mobile-sub-item.active {
        background: rgba(113, 75, 103, 0.1);
        color: #714b67;
        font-weight: 700;
    }

    .topbar-mobile-sub-item-content {
        display: flex;
        align-items: center;
        gap: 9px;
        overflow: hidden;
    }

    .topbar-mobile-sub-item-icon {
        width: 16px;
        height: 16px;
        object-fit: contain;
        flex-shrink: 0;
    }

    .topbar-mobile-sub-item-dot {
        font-size: 8px;
        color: #714b67;
        width: 16px;
        text-align: center;
        flex-shrink: 0;
    }

    .topbar-mobile-sub-item-title {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .topbar-mobile-sub-item-check {
        color: #714b67;
        font-size: 13px;
        margin-left: 8px;
        flex-shrink: 0;
    }

    .user-trigger-name {
        display: none !important;
    }

    .user-profile-trigger {
        padding: 4px !important;
    }

    /* 2. Modern Native App Control Panel on Mobile */
    .odoo-control-panel {
        padding: 12px 14px !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
        border-radius: 16px !important;
        background: #ffffff !important;
        border: 1px solid #e2e8f0 !important;
        box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03) !important;
    }

    .axenor-cp-top-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        gap: 10px;
    }

    .odoo-control-title {
        font-size: 1.05rem !important;
        font-weight: 800 !important;
        display: flex;
        align-items: center;
        gap: 6px;
        min-width: 0;
        overflow: hidden;
    }

    .odoo-title-main {
        color: #0f172a;
        font-weight: 800;
        white-space: nowrap;
    }

    .odoo-title-sub {
        color: #64748b;
        font-size: 0.85rem;
        font-weight: 600;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .odoo-new-btn {
        background: #714b67 !important;
        color: #ffffff !important;
        border: none !important;
        padding: 7px 15px !important;
        border-radius: 10px !important;
        font-weight: 700 !important;
        font-size: 0.85rem !important;
        cursor: pointer;
        display: inline-flex !important;
        align-items: center !important;
        gap: 4px;
        box-shadow: 0 2px 8px rgba(113, 75, 103, 0.3) !important;
        flex-shrink: 0;
        transition: transform 0.12s ease;
    }

    .odoo-new-btn:active {
        transform: scale(0.96);
    }

    .odoo-search-pill-wrap {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
        box-sizing: border-box;
        height: 42px !important;
        background: #f1f5f9 !important;
        border: 1.5px solid transparent !important;
        border-radius: 12px !important;
        padding: 0 14px !important;
        display: flex;
        align-items: center;
        gap: 10px;
        transition: all 0.15s ease;
    }

    .odoo-search-pill-wrap:focus-within {
        background: #ffffff !important;
        border-color: #714b67 !important;
        box-shadow: 0 2px 10px rgba(113, 75, 103, 0.12) !important;
    }

    .odoo-search-pill-input {
        font-size: 15px !important;
        color: #0f172a !important;
        background: transparent !important;
        border: none !important;
        outline: none !important;
        width: 100%;
    }

    .axenor-cp-bottom-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        gap: 8px;
    }

    /* Mobile Segmented Toggle (Cards vs Table) */
    .axenor-mobile-view-toggle {
        display: inline-flex !important;
        align-items: center;
        background: #f1f5f9;
        border-radius: 10px;
        padding: 3px;
        border: 1px solid #e2e8f0;
    }

    .axenor-mtoggle-btn {
        background: transparent;
        border: none;
        font-size: 0.76rem;
        font-weight: 700;
        color: #64748b;
        padding: 5px 10px;
        border-radius: 7px;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        gap: 5px;
        transition: all 0.15s ease;
    }

    .axenor-mtoggle-btn.active {
        background: #ffffff;
        color: #714b67;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
        font-weight: 800;
    }

    .odoo-pager-wrap {
        font-size: 0.8rem;
        font-weight: 700;
        color: #64748b;
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .odoo-pager-btn {
        width: 30px;
        height: 30px;
        border-radius: 8px;
        border: 1px solid #e2e8f0;
        background: #ffffff;
        color: #475569;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }

    /* 3. Native Mobile Cards Feed View */
    .axenor-mobile-cards-wrap.active-mode {
        display: flex !important;
        flex-direction: column;
        gap: 14px;
        width: 100%;
        margin-top: 6px;
        padding-bottom: 84px;
        /* Space for Bottom Nav & FAB */
    }

    .axenor-mobile-cards-wrap:not(.active-mode) {
        display: none !important;
    }

    /* Ultra-Refined Native Mobile Card */
    .axenor-mobile-card {
        background: #ffffff;
        border: 1px solid rgba(226, 232, 240, 0.9);
        border-radius: 16px;
        padding: 13px 16px;
        box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.02);
        display: flex;
        flex-direction: column;
        gap: 8px;
        cursor: pointer;
        transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
        position: relative;
        overflow: hidden;
        border-left: none;
        -webkit-tap-highlight-color: transparent;
    }

    /* Left Purple Pill Indicator matching user photo */
    .axenor-mobile-card::before {
        content: "";
        position: absolute;
        left: 0;
        top: 12px;
        bottom: 12px;
        width: 5px;
        border-radius: 0 4px 4px 0;
        background: #714b67;
    }

    .axenor-mobile-card:active {
        transform: scale(0.985);
        background: #fdfafc;
        box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
    }

    .axenor-mobile-card.row-selected {
        background: #fcf6fa;
        border-color: #714b67;
    }

    .axenor-mcard-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    .axenor-mcard-title {
        font-size: 1.05rem;
        font-weight: 800;
        color: #714b67;
        display: flex;
        align-items: center;
        gap: 8px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        flex: 1;
        min-width: 0;
    }

    .axenor-mcard-amount-block {
        font-weight: 800;
        font-size: 1.35rem;
        color: #0f172a;
        font-family: -apple-system, BlinkMacSystemFont, 'Plus Jakarta Sans', sans-serif;
        letter-spacing: -0.02em;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .axenor-mcard-avatar-fallback {
        width: 30px;
        height: 30px;
        border-radius: 50%;
        background: rgba(113, 75, 103, 0.1);
        color: #714b67;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.82rem;
        flex-shrink: 0;
    }

    .axenor-mcard-status {
        flex-shrink: 0;
    }

    .axenor-mcard-status .axenor-badge,
    .axenor-mcard-status span {
        border-radius: 999px !important;
        padding: 4px 10px !important;
        font-size: 0.72rem !important;
        font-weight: 800 !important;
        letter-spacing: 0.5px !important;
        text-transform: uppercase !important;
        box-shadow: 0 2px 6px rgba(113, 75, 103, 0.2) !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 5px !important;
    }

    .axenor-mcard-bottom {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        font-size: 0.82rem;
        color: #64748b;
        padding-top: 2px;
        border-top: none;
    }

    .axenor-mcard-desc {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: 65%;
        color: #475569;
        font-weight: 500;
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .axenor-mcard-category-badge {
        background: #e8edf5 !important;
        color: #1e293b !important;
        font-size: 0.8rem !important;
        font-weight: 700 !important;
        padding: 4px 10px !important;
        border-radius: 6px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 65% !important;
        display: inline-block !important;
    }

    .axenor-mcard-date {
        white-space: nowrap;
        font-size: 0.86rem;
        color: #0f172a;
        font-weight: 800;
        background: transparent;
        padding: 0;
        border: none;
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }
    .axenor-mcard-date i {
        color: #334155;
        font-size: 0.86rem;
    }

    /* 4. Mobile Table View (When Table Toggle selected on Mobile) */
    .axenor-list-table-container.active-mode {
        display: block !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 16px;
        border: 1px solid #e2e8f0;
        background: #ffffff;
        box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
        margin-top: 6px;
        padding-bottom: 84px;
    }

    .axenor-list-table-container:not(.active-mode) {
        display: none !important;
    }

    .axenor-list-table {
        min-width: 680px;
    }

    /* 5. Mobile Floating Action Button (FAB) */
    .axenor-mobile-fab {
        display: flex !important;
        align-items: center;
        justify-content: center;
        position: fixed;
        bottom: 78px !important;
        /* Floats above bottom navigation bar */
        right: 18px !important;
        width: 54px;
        height: 54px;
        border-radius: 50%;
        background: linear-gradient(135deg, #714b67 0%, #52344a 100%) !important;
        color: #ffffff !important;
        border: none;
        box-shadow: 0 6px 20px rgba(113, 75, 103, 0.45), 0 2px 6px rgba(0, 0, 0, 0.15);
        font-size: 1.4rem;
        cursor: pointer;
        z-index: 998;
        transition: transform 0.15s ease, box-shadow 0.15s ease;
    }

    .axenor-mobile-fab:active {
        transform: scale(0.90);
        box-shadow: 0 2px 8px rgba(113, 75, 103, 0.3);
    }

    /* =========================================================
       6. NATIVE MOBILE APP FIXED BOTTOM NAVIGATION BAR
       ========================================================= */
    .mobile-bottom-nav {
        display: flex !important;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 64px;
        background: rgba(255, 255, 255, 0.96) !important;
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-top: 1px solid #e2e8f0;
        justify-content: space-around;
        align-items: center;
        z-index: 1000;
        box-shadow: 0 -2px 14px rgba(15, 23, 42, 0.06);
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }

    .mobile-bnav-item {
        background: transparent;
        border: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        flex: 1;
        height: 100%;
        cursor: pointer;
        color: #64748b;
        font-family: -apple-system, BlinkMacSystemFont, 'Plus Jakarta Sans', sans-serif;
        transition: transform 0.12s ease;
        -webkit-tap-highlight-color: transparent;
    }

    .mobile-bnav-item:active {
        transform: scale(0.92);
    }

    .mobile-bnav-icon-wrap {
        width: 32px;
        height: 28px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 12px;
        transition: all 0.15s ease;
    }

    .mobile-bnav-item.active .mobile-bnav-icon-wrap {
        background: rgba(113, 75, 103, 0.12);
    }

    .mobile-bnav-label {
        font-size: 0.72rem;
        font-weight: 700;
        line-height: 1;
        letter-spacing: -0.1px;
    }

    .mobile-bnav-item.active .mobile-bnav-label {
        color: #714b67;
        font-weight: 800;
    }

    .mobile-bnav-item.active img {
        filter: none !important;
    }

    /* =========================================================
       7. NATIVE MOBILE APP SLIDE-OUT NAVIGATION DRAWER
       ========================================================= */
    .mobile-drawer-backdrop {
        display: block !important;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(15, 23, 42, 0.55);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        z-index: 1050;
        animation: fadeIn 0.2s ease;
    }

    .mobile-nav-drawer {
        display: flex !important;
        flex-direction: column;
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        width: 82%;
        max-width: 330px;
        background: #ffffff;
        z-index: 1060;
        box-shadow: 4px 0 25px rgba(0, 0, 0, 0.2);
        transform: translateX(-100%);
        transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }

    .mobile-nav-drawer.open {
        transform: translateX(0);
    }

    .mobile-drawer-header {
        padding: 20px 18px 16px;
        background: linear-gradient(135deg, #714b67 0%, #4a2842 100%);
        color: #ffffff;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .mobile-drawer-user-info {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .mobile-drawer-avatar {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.2);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.3rem;
        border: 2px solid rgba(255, 255, 255, 0.4);
    }

    .mobile-drawer-user-name {
        font-weight: 800;
        font-size: 1rem;
        line-height: 1.2;
    }

    .mobile-drawer-user-role {
        font-size: 0.76rem;
        opacity: 0.85;
        margin-top: 2px;
    }

    .mobile-drawer-close-btn {
        background: rgba(255, 255, 255, 0.15);
        border: none;
        color: #ffffff;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        font-size: 1rem;
    }

    .mobile-drawer-site-bar {
        padding: 10px 16px;
        background: #f8fafc;
        border-bottom: 1px solid #e2e8f0;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .mobile-drawer-site-label {
        font-size: 0.78rem;
        font-weight: 700;
        color: #64748b;
    }

    .mobile-drawer-site-select {
        flex: 1;
        padding: 6px 10px;
        border-radius: 8px;
        border: 1px solid #cbd5e1;
        font-size: 0.82rem;
        font-weight: 600;
        color: #0f172a;
        background: #ffffff;
    }

    .mobile-drawer-body {
        flex: 1;
        overflow-y: auto;
        padding: 14px 12px;
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .mobile-drawer-section-title {
        font-size: 0.74rem;
        font-weight: 800;
        text-transform: uppercase;
        color: #94a3b8;
        letter-spacing: 0.8px;
        padding: 6px 10px 4px;
    }

    .mobile-drawer-links {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .mobile-drawer-item {
        background: transparent;
        border: none;
        padding: 10px 12px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        gap: 12px;
        cursor: pointer;
        text-align: left;
        width: 100%;
        transition: all 0.12s ease;
    }

    .mobile-drawer-item:active {
        background: #f1f5f9;
    }

    .mobile-drawer-item.active {
        background: #fdf4f9;
    }

    .mobile-drawer-icon-wrap {
        width: 34px;
        height: 34px;
        border-radius: 8px;
        background: #f1f5f9;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .mobile-drawer-item.active .mobile-drawer-icon-wrap {
        background: rgba(113, 75, 103, 0.15);
    }

    .mobile-drawer-item-label {
        font-size: 0.92rem;
        font-weight: 700;
        color: #1e293b;
        flex: 1;
    }

    .mobile-drawer-item.active .mobile-drawer-item-label {
        color: #714b67;
        font-weight: 800;
    }

    .mobile-drawer-active-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #714b67;
    }

    .mobile-drawer-footer {
        padding: 14px 16px;
        border-top: 1px solid #e2e8f0;
        background: #f8fafc;
        display: flex;
        gap: 10px;
    }

    .mobile-drawer-footer-btn {
        flex: 1;
        padding: 9px 12px;
        border-radius: 10px;
        border: 1px solid #cbd5e1;
        background: #ffffff;
        color: #334155;
        font-weight: 700;
        font-size: 0.8rem;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
    }

    .mobile-drawer-footer-btn.logout {
        border-color: #fee2e2;
        color: #dc2626;
        background: #fef2f2;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
        }

        to {
            opacity: 1;
        }
    }

    /* 6. Mobile Form View Enhancements */
    .odoo-form-view-container {
        padding: 0 2px 60px;
    }

    .odoo-form-main-layout {
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100% !important;
        gap: 14px !important;
    }

    .odoo-form-sheet {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 16px 14px !important;
        align-self: stretch !important;
    }

    .odoo-chatter-panel {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 14px 12px !important;
    }

    /* ========================================================
       ENTERPRISE ODOO FORM HEADER & VOUCHER REFERENCE (MOBILE)
       ======================================================== */
    .odoo-form-header-bar {
        padding: 6px 10px !important;
        border-radius: 8px !important;
        gap: 4px 8px !important;
        margin-bottom: 8px !important;
        display: grid !important;
        grid-template-columns: 1fr auto !important;
        grid-template-rows: auto auto !important;
        align-items: center !important;
    }

    .odoo-form-header-bar .odoo-header-left {
        display: contents !important;
    }

    .odoo-form-header-bar .odoo-header-right {
        display: contents !important;
    }

    /* Fallback for un-nested form headers */
    .odoo-form-header-bar > div:first-child:not(.odoo-header-left) {
        flex-direction: row !important;
        align-items: center !important;
        flex-wrap: wrap !important;
        gap: 4px !important;
        width: 100% !important;
    }

    /* Row 1, Left: Action buttons (Back, Save, Discard / Edit, New) */
    .odoo-form-header-bar .odoo-header-actions {
        grid-column: 1 !important;
        grid-row: 1 !important;
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        justify-content: flex-start !important;
        flex-wrap: nowrap !important;
    }

    /* Row 1, Right: Pager (e.g. 2/6 < >) */
    .odoo-form-header-bar .odoo-header-pager-wrap {
        grid-column: 2 !important;
        grid-row: 1 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 4px !important;
    }

    /* Row 2, Left: Breadcrumbs */
    .odoo-form-header-bar .odoo-form-breadcrumbs {
        grid-column: 1 !important;
        grid-row: 2 !important;
        display: flex !important;
        align-items: center !important;
        font-size: 0.78rem !important;
        margin: 0 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 100% !important;
    }

    /* Row 2, Right: Chevron Pipeline */
    .odoo-form-header-bar .odoo-header-chevron-wrap {
        grid-column: 2 !important;
        grid-row: 2 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
    }

    /* Compact Buttons in Mobile Header */
    .odoo-form-header-bar .btn-odoo-back,
    .odoo-form-header-bar .btn-odoo-save,
    .odoo-form-header-bar .btn-odoo-discard,
    .odoo-form-header-bar .btn-odoo-edit,
    .odoo-form-header-bar .btn-odoo-new {
        display: inline-flex !important;
        align-items: center !important;
        width: auto !important;
        flex: 0 0 auto !important;
        min-height: 26px !important;
        height: 26px !important;
        padding: 2px 8px !important;
        font-size: 0.74rem !important;
        font-weight: 700 !important;
        border-radius: 6px !important;
        gap: 4px !important;
        white-space: nowrap !important;
    }

    .odoo-form-header-bar .chevron-statusbar {
        display: inline-flex !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        flex-shrink: 0 !important;
    }

    .odoo-form-header-bar .chevron-step {
        height: 22px !important;
        padding: 0 6px 0 12px !important;
        font-size: 0.62rem !important;
        font-weight: 700 !important;
        letter-spacing: 0.2px !important;
    }

    .odoo-form-header-bar .chevron-step:first-child {
        padding-left: 6px !important;
    }

    .odoo-form-header-bar .odoo-pager-btn {
        width: 22px !important;
        height: 22px !important;
        font-size: 0.68rem !important;
        padding: 0 !important;
    }

    /* Strictly Inline Voucher Reference Card on Mobile */
    .voucher-ref-card,
    .odoo-form-sheet > .voucher-ref-card {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        padding: 5px 10px !important;
        margin-bottom: 8px !important;
        min-height: 36px !important;
        gap: 8px !important;
        background: rgba(113, 75, 103, 0.03) !important;
        border-radius: 8px !important;
        border: 1px solid var(--border-color) !important;
    }

    .voucher-ref-card .voucher-ref-actions {
        display: inline-flex !important;
        align-items: center !important;
        gap: 6px !important;
        flex-shrink: 0 !important;
        flex-wrap: nowrap !important;
    }

    .odoo-smart-buttons-wrap {
        width: auto !important;
        display: inline-flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 6px !important;
    }

    .odoo-smart-btn,
    .btn-odoo-submit {
        width: auto !important;
        min-height: 26px !important;
        height: 26px !important;
        padding: 2px 8px !important;
        font-size: 0.74rem !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 4px !important;
        border-radius: 6px !important;
        white-space: nowrap !important;
    }

    /* Form Sheet Mobile Padding */
    .odoo-form-sheet {
        padding: 10px 10px !important;
        margin-top: 0 !important;
        border-radius: 8px !important;
    }

    .odoo-form-main-layout {
        margin-top: 4px !important;
        gap: 8px !important;
    }

    /* Stage Summary Pills Bar on Mobile */
    .stage-summary-pills-bar {
        padding: 6px 8px !important;
        gap: 6px !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
    }

    .stage-summary-pills-bar::-webkit-scrollbar {
        display: none !important;
    }

    /* 7. Kanban Board Mobile Layout - Clean Vertical Flow */
    .kanban-stage-board {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
        padding: 8px 0 24px !important;
        overflow-x: visible !important;
        min-height: auto !important;
        scroll-snap-type: none !important;
    }

    .kanban-stage-board::-webkit-scrollbar {
        display: none !important;
    }

    .kanban-stage-column {
        min-width: 100% !important;
        max-width: 100% !important;
        flex: 1 1 auto !important;
        border-radius: 12px !important;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05) !important;
    }

    .kanban-empty-dropzone {
        padding: 14px 14px !important;
        gap: 6px !important;
    }

    .odoo-stages-bar {
        width: 100% !important;
        display: flex !important;
        border-radius: 8px !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .odoo-stages-bar>div {
        flex: 1 !important;
        text-align: center !important;
        justify-content: center !important;
        min-height: 38px !important;
        font-size: 0.78rem !important;
        padding: 6px 10px !important;
        white-space: nowrap !important;
    }

    /* Form Grids collapse cleanly to 1 column */
    .form-section-2x2,
    .form-grid-2x2,
    .odoo-form-meta-grid,
    .form-row-pair {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }

    .form-group {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .form-group label,
    .form-label {
        font-size: 0.88rem !important;
        font-weight: 700 !important;
        color: #0f172a !important;
        margin-bottom: 2px;
    }

    /* Touch-optimized inputs (16px font prevents iOS auto-zoom) */
    .form-control,
    .form-input,
    .form-select,
    .form-textarea {
        min-height: 44px !important;
        font-size: 16px !important;
        padding: 10px 14px !important;
        border-radius: 8px !important;
        border: 1.5px solid #cbd5e1 !important;
        width: 100% !important;
        box-sizing: border-box !important;
        background: #ffffff !important;
        color: #0f172a !important;
    }

    .form-control:focus,
    .form-input:focus,
    .form-select:focus,
    .form-textarea:focus {
        border-color: #714b67 !important;
        outline: none !important;
        box-shadow: 0 0 0 3px rgba(113, 75, 103, 0.15) !important;
    }

    /* Form Tabs: Horizontal swipe with smooth momentum */
    .odoo-form-tabs-header,
    .nav-tabs,
    .form-tabs {
        display: flex !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        gap: 8px !important;
        padding: 4px 2px !important;
        border-bottom: 1.5px solid #e2e8f0 !important;
    }

    .odoo-form-tabs-header::-webkit-scrollbar,
    .nav-tabs::-webkit-scrollbar {
        display: none !important;
    }

    .odoo-tab-btn,
    .nav-tab-btn {
        padding: 8px 14px !important;
        font-size: 0.88rem !important;
        border-radius: 8px !important;
        min-height: 40px !important;
    }
}

/* =========================================================
   7. ULTRA-SMOOTH VIEW TRANSITION LOADER (1 SECOND LOADER)
   ========================================================= */
.axenor-view-progress-bar {
    position: fixed;
    top: 54px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #714b67 0%, #a855f7 50%, #714b67 100%);
    z-index: 2500;
    animation: axenorProgressBarSlide 0.9s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes axenorProgressBarSlide {
    0% {
        transform: scaleX(0.1) translateX(-100%);
    }

    50% {
        transform: scaleX(0.7) translateX(30%);
    }

    100% {
        transform: scaleX(1) translateX(120%);
    }
}

.axenor-view-loader-overlay {
    position: fixed;
    top: 54px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 2400;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: axenorLoaderFadeIn 0.18s ease forwards;
    pointer-events: auto;
}

@keyframes axenorLoaderFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.axenor-view-loader-card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.95);
    padding: 12px 20px;
    border-radius: 999px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12), 0 2px 6px rgba(0, 0, 0, 0.04);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    animation: axenorLoaderPop 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes axenorLoaderPop {
    from {
        transform: scale(0.92);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.axenor-view-spinner {
    width: 20px;
    height: 20px;
    border: 2.5px solid rgba(113, 75, 103, 0.2);
    border-top-color: #714b67;
    border-radius: 50%;
    animation: axenorSpinnerRotate 0.75s linear infinite;
}

@keyframes axenorSpinnerRotate {
    to {
        transform: rotate(360deg);
    }
}

.axenor-view-loader-text {
    font-size: 0.86rem;
    font-weight: 700;
    color: #1e293b;
    font-family: -apple-system, BlinkMacSystemFont, 'Plus Jakarta Sans', sans-serif;
    letter-spacing: -0.1px;
}

/* Admin Cancel Button & Cancelled Badges */
.btn-odoo-cancel-record:hover {
    background: #fecaca !important;
    border-color: #f87171 !important;
    color: #b91c1c !important;
    box-shadow: 0 1px 3px rgba(220, 38, 38, 0.2);
}

.axenor-badge.cancelled,
.badge-cancelled {
    background: #fee2e2 !important;
    color: #dc2626 !important;
    border: 1px solid #fecaca !important;
    font-weight: 700 !important;
}
/* Print optimization for P&L Statement */
@media print {
    .no-print,
    .odoo-form-header-bar,
    .odoo-form-tabs,
    .odoo-smart-buttons-bar,
    .odoo-form-top-strip,
    .sidebar,
    .odoo-sidebar,
    .odoo-modal-backdrop button {
        display: none !important;
    }
    body, html {
        background: #ffffff !important;
    }
    .odoo-modal-backdrop {
        position: static !important;
        background: transparent !important;
        padding: 0 !important;
    }
}
