/* /Components/Layout/MainLayout.razor.rz.scp.css */
/* ══════════════════════════════════════════════════════════════
   MainLayout.razor.css
   Blazor CSS isolation — these rules are scoped to MainLayout
   automatically by the build pipeline.
   Sidebar width constants must match Sidebar.razor:
     closed  →  66px   (--sb-w-closed)
     open    →  230px  (--sb-w-open)
     timing  →  0.26s cubic-bezier(.4,0,.2,1)
   ══════════════════════════════════════════════════════════════ */

/* ══ Shell ══ */
.ml-shell[b-7xj0fltxfc] {
    display: flex;
    min-height: 100vh;
    background: #f1f5f9;
    font-family: system-ui, -apple-system, sans-serif;
}

/* ══ Main area — offset for the fixed sidebar ══ */
.ml-main[b-7xj0fltxfc] {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    margin-left: 66px; /* sidebar closed width */
    transition: margin-left 0.26s cubic-bezier(.4,0,.2,1);
    overflow-x: hidden;
}

/* Sidebar is pinned/hovered open */
.ml-main-expanded[b-7xj0fltxfc] {
    margin-left: 230px; /* sidebar open width */
}

/* ══ Topbar ══ */
.ml-topbar[b-7xj0fltxfc] {
    position: sticky;
    top: 0;
    z-index: 450;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    gap: 12px;
    flex-shrink: 0;
    /* Same dark gradient as sidebar header — creates a unified chrome */
    background: linear-gradient(90deg, #0a1628 0%, #0d2344 55%, #1a3a6b 100%);
    border-bottom: 1px solid rgba(255,255,255,.07);
    box-shadow: 0 1px 12px rgba(0,0,0,.25);
}

.ml-topbar-left[b-7xj0fltxfc] {
    display: flex;
    align-items: center;
    gap: 14px;
}

.ml-topbar-right[b-7xj0fltxfc] {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ══ Mobile hamburger ══ */
.ml-hamburger[b-7xj0fltxfc] {
    display: none; /* hidden on desktop */
    width: 34px;
    height: 34px;
    border-radius: 9px;
    border: 1px solid rgba(255,255,255,.15);
    background: rgba(255,255,255,.07);
    color: rgba(255,255,255,.75);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: background .15s, color .15s;
    flex-shrink: 0;
}

    .ml-hamburger:hover[b-7xj0fltxfc] {
        background: rgba(255,255,255,.14);
        color: #fff;
    }

/* ══ Company name ══ */
.ml-company[b-7xj0fltxfc] {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ml-company-dot[b-7xj0fltxfc] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3b82f6;
    box-shadow: 0 0 8px rgba(59,130,246,.6);
    animation: mlPulse-b-7xj0fltxfc 2.4s ease infinite;
    flex-shrink: 0;
}

@keyframes mlPulse-b-7xj0fltxfc {
    0%, 100% {
        box-shadow: 0 0 6px rgba(59,130,246,.6);
    }

    50% {
        box-shadow: 0 0 14px rgba(59,130,246,.9);
    }
}

.ml-company-name[b-7xj0fltxfc] {
    display: inline-block;
    font-size: .9375rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -.01em;
    white-space: nowrap;
}

/* ══ Icon buttons (bell, settings) ══ */
.ml-icon-btn[b-7xj0fltxfc] {
    position: relative;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.06);
    color: rgba(255,255,255,.65);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background .15s, color .15s, border-color .15s;
    flex-shrink: 0;
}

    .ml-icon-btn:hover[b-7xj0fltxfc] {
        background: rgba(255,255,255,.13);
        color: #fff;
        border-color: rgba(255,255,255,.20);
    }

/* Notification indicator */
.ml-notif-dot[b-7xj0fltxfc] {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #f97316;
    border: 1.5px solid #0d2344;
    pointer-events: none;
}

/* Vertical separator */
.ml-sep[b-7xj0fltxfc] {
    width: 1px;
    height: 22px;
    background: rgba(255,255,255,.10);
    margin: 0 4px;
    flex-shrink: 0;
}

/* ══ User button ══ */
.ml-user-wrap[b-7xj0fltxfc] {
    position: relative;
}

.ml-user-btn[b-7xj0fltxfc] {
    display: flex;
    align-items: center;
    gap: 9px;
    height: 36px;
    padding: 0 10px 0 5px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.07);
    color: rgba(255,255,255,.85);
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    transition: background .15s, border-color .15s;
}

    .ml-user-btn:hover[b-7xj0fltxfc],
    .ml-user-btn-open[b-7xj0fltxfc] {
        background: rgba(255,255,255,.13);
        border-color: rgba(255,255,255,.22);
    }

/* Avatar */
.ml-avatar[b-7xj0fltxfc] {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #1e3a6e 0%, #2563b0 100%);
    border: 1.5px solid rgba(59,130,246,.50);
    color: #b6c0d1;
    font-size: .72rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(59,130,246,.20);
}

/* Name + email stack */
.ml-user-meta[b-7xj0fltxfc] {
    display: flex;
    flex-direction: column;
    gap: 0;
    line-height: 1.2;
}

.ml-user-name[b-7xj0fltxfc] {
    font-size: .8rem;
    font-weight: 700;
    color: #fff;
}

.ml-user-email[b-7xj0fltxfc] {
    font-size: .67rem;
    color: rgba(255,255,255,.45);
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Animated chevron */
.ml-chevron[b-7xj0fltxfc] {
    color: rgba(255,255,255,.40);
    transition: transform 0.2s cubic-bezier(.4,0,.2,1), color .15s;
    flex-shrink: 0;
}

.ml-chevron-open[b-7xj0fltxfc] {
    transform: rotate(180deg);
    color: rgba(255,255,255,.70);
}

/* ══ Dropdown ══ */
.ml-dropdown[b-7xj0fltxfc] {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 222px;
    background: #0f264d;
    border: 1px solid #2c2c2e;
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(0,0,0,.16), 0 0 0 1px rgba(0,0,0,.04);
    overflow: hidden;
    z-index: 500;
    animation: mlDdIn-b-7xj0fltxfc .18s cubic-bezier(.34,1.4,.64,1) both;
}

@keyframes mlDdIn-b-7xj0fltxfc {
    from {
        opacity: 0;
        transform: translateY(-6px) scale(.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Dropdown header block */
.ml-dd-header[b-7xj0fltxfc] {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px 12px;
    background: #0f264d;
    border-bottom: 1px solid #f1f5f9;
}

.ml-dd-avatar[b-7xj0fltxfc] {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #1e3a6e 0%, #2563b0 100%);
    border: 1.5px solid rgba(37,99,176,.3);
    color: #b6c0d1;
    font-size: .8rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ml-dd-name[b-7xj0fltxfc] {
    font-size: .8125rem;
    font-weight: 800;
    color: #b6c0d1;
}

.ml-dd-email[b-7xj0fltxfc] {
    font-size: .72rem;
    color: #94a3b8;
    margin-top: 1px;
}

.ml-dd-divider[b-7xj0fltxfc] {
    height: 1px;
    background: #b6c0d1;
    margin: 4px 0;
}

/* Dropdown items */
.ml-dd-item[b-7xj0fltxfc] {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 16px;
    font-size: .8375rem;
    font-weight: 600;
    color: #b6c0d1;
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-family: inherit;
    text-align: left;
    transition: background .1s, color .1s;
}

    .ml-dd-item:hover[b-7xj0fltxfc] {
        background: #f0f6ff;
        color: #b6c0d1;
    }

/* Icon container inside each item */
.ml-dd-icon[b-7xj0fltxfc] {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    flex-shrink: 0;
    transition: background .1s, color .1s;
}

.ml-dd-item:hover .ml-dd-icon[b-7xj0fltxfc] {
    background: #dde8f5;
    color: #2563b0;
}

/* Danger (sign out) item */
.ml-dd-item-danger[b-7xj0fltxfc] {
    color: #dc2626;
}

    .ml-dd-item-danger:hover[b-7xj0fltxfc] {
        background: #fef2f2;
        color: #b91c1c;
    }

    .ml-dd-item-danger .ml-dd-icon[b-7xj0fltxfc] {
        color: #dc2626;
    }

    .ml-dd-item-danger:hover .ml-dd-icon[b-7xj0fltxfc] {
        background: #fecaca;
        color: #b91c1c;
    }

/* ══ Backdrops ══ */
.ml-backdrop[b-7xj0fltxfc] {
    position: fixed;
    inset: 0;
    z-index: 400;
    background: transparent;
}

.ml-sidebar-backdrop[b-7xj0fltxfc] {
    position: fixed;
    inset: 0;
    z-index: 150;
    background: rgba(7,17,31,.45);
    backdrop-filter: blur(2px);
    animation: mlFadeIn-b-7xj0fltxfc .2s ease;
}

@keyframes mlFadeIn-b-7xj0fltxfc {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ══ Page content area ══ */
.ml-content[b-7xj0fltxfc] {
    flex: 1;
    min-width: 0;
    width: 100%;
    background: #f1f5f9;
    overflow-x: hidden;
}

/* ══ Blazor error UI ══ */
#blazor-error-ui[b-7xj0fltxfc] {
    display: none;
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
}

.ml-err-inner[b-7xj0fltxfc] {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #0f172a;
    color: #f8fafc;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: .875rem;
    font-weight: 500;
    box-shadow: 0 8px 30px rgba(0,0,0,.35);
    border: 1px solid rgba(255,255,255,.10);
    white-space: nowrap;
}

.ml-err-reload[b-7xj0fltxfc] {
    color: #60a5fa;
    font-weight: 700;
    text-decoration: none;
    margin-left: 4px;
}

    .ml-err-reload:hover[b-7xj0fltxfc] {
        color: #93c5fd;
    }

.ml-err-dismiss[b-7xj0fltxfc] {
    background: none;
    border: none;
    color: rgba(255,255,255,.45);
    cursor: pointer;
    font-size: .875rem;
    padding: 0 0 0 6px;
    line-height: 1;
    transition: color .15s;
}

    .ml-err-dismiss:hover[b-7xj0fltxfc] {
        color: #fff;
    }

/* ══ Responsive ══ */
@media (max-width: 768px) {
    .ml-main[b-7xj0fltxfc] {
        margin-left: 0 !important;
    }

    .ml-hamburger[b-7xj0fltxfc] {
        display: flex;
    }

    .ml-user-email[b-7xj0fltxfc] {
        display: none;
    }
}

@media (max-width: 640px) {
    .ml-topbar[b-7xj0fltxfc] {
        padding: 0 14px;
    }

    .ml-user-meta[b-7xj0fltxfc] {
        display: none;
    }

    .ml-user-btn[b-7xj0fltxfc] {
        padding: 0 6px;
    }

    .ml-company-name[b-7xj0fltxfc] {
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}
/* /Components/Layout/NavMenu.razor.rz.scp.css */
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-8q4aokuz1j],
.components-reconnect-repeated-attempt-visible[b-8q4aokuz1j],
.components-reconnect-failed-visible[b-8q4aokuz1j],
.components-pause-visible[b-8q4aokuz1j],
.components-resume-failed-visible[b-8q4aokuz1j],
.components-rejoining-animation[b-8q4aokuz1j] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-8q4aokuz1j],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-8q4aokuz1j],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-8q4aokuz1j],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-8q4aokuz1j],
#components-reconnect-modal.components-reconnect-retrying[b-8q4aokuz1j],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-8q4aokuz1j],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-8q4aokuz1j],
#components-reconnect-modal.components-reconnect-failed[b-8q4aokuz1j],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-8q4aokuz1j] {
    display: block;
}


#components-reconnect-modal[b-8q4aokuz1j] {
    background-color: white;
    width: 20rem;
    margin: 20vh auto;
    padding: 2rem;
    border: 0;
    border-radius: 0.5rem;
    box-shadow: 0 3px 6px 2px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity-b-8q4aokuz1j 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-8q4aokuz1j 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-8q4aokuz1j 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-8q4aokuz1j]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-8q4aokuz1j 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-8q4aokuz1j {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-8q4aokuz1j {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-8q4aokuz1j {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-8q4aokuz1j] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-8q4aokuz1j] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-8q4aokuz1j] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-8q4aokuz1j] {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active[b-8q4aokuz1j] {
        background-color: #6b9ed2;
    }

.components-rejoining-animation[b-8q4aokuz1j] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-8q4aokuz1j] {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-8q4aokuz1j 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-8q4aokuz1j] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-8q4aokuz1j {
    0% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    4.9% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    5% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 0px;
        left: 0px;
        width: 80px;
        height: 80px;
        opacity: 0;
    }
}
/* /Components/Pages/Invoices/InvoiceCreate.razor.rz.scp.css */
.invoice-create-page .section-card[b-zw6xfzapg7] {
    border: 0;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.07);
}

.invoice-create-page .form-label[b-zw6xfzapg7] {
    font-weight: 600;
    color: #334155;
}

.invoice-create-page .client-card[b-zw6xfzapg7] {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 14px;
    background: #f8fafc;
}

.invoice-create-page .invoice-lines-table td[b-zw6xfzapg7],
.invoice-create-page .invoice-lines-table th[b-zw6xfzapg7] {
    vertical-align: top;
}

.invoice-create-page .invoice-lines-table .form-control[b-zw6xfzapg7],
.invoice-create-page .invoice-lines-table .form-select[b-zw6xfzapg7] {
    border-radius: 8px;
}

.invoice-create-page .stock-warning[b-zw6xfzapg7] {
    color: #8a6d1f;
    font-size: 0.76rem;
    background: #fff9db;
    border: 1px solid #f9e2a4;
    border-radius: 6px;
    padding: 2px 6px;
    display: inline-block;
}

.invoice-create-page .totals-card[b-zw6xfzapg7] {
    position: sticky;
    top: 90px;
}

.invoice-create-page .total-ttc[b-zw6xfzapg7] {
    font-size: 1.1rem;
    color: #0f172a;
}

.invoice-create-page .autocomplete-menu[b-zw6xfzapg7] {
    position: absolute;
    z-index: 20;
    left: 0;
    right: 0;
    margin-top: 4px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    max-height: 220px;
    overflow-y: auto;
}

.invoice-create-page .autocomplete-item[b-zw6xfzapg7] {
    border: 0;
    width: 100%;
    text-align: left;
    background: transparent;
    padding: 8px 10px;
}

.invoice-create-page .autocomplete-item:hover[b-zw6xfzapg7] {
    background: #f1f5f9;
}
/* /Components/Pages/Invoices/InvoiceEdit.razor.rz.scp.css */
