/* /Components/Chat/ChatAssistant.razor.rz.scp.css */
/* ============================================================
   ChatAssistant — scoped styles
   All position/layout uses var(--hb-*) or MudBlazor theme vars
   to ensure dark mode compatibility.
   ============================================================ */

/* ---------- FAB ----------
   Bottom-right is the default and the platform convention. The inline left/right/bottom
   written by hootChat.attachDock overrides these when the user has dragged it elsewhere. */
.chat-fab-container[b-003duk1vbr] {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 1200;
    touch-action: none;   /* let pointermove drive the drag instead of scrolling the page */
    cursor: grab;
    /* Only `left`/`bottom` animate — attachDock always writes both as lengths, never `auto`,
       because a length↔auto transition is not interpolable and strands the snap mid-flight. */
    transition: left 0.18s ease, bottom 0.18s ease;
}

/* Pressed but not yet past the drag threshold. */
.chat-fab-container.chat-dock--grabbing[b-003duk1vbr] {
    cursor: grabbing;
}

/* Actively dragging: kill the snap transition so the FAB tracks the pointer 1:1. */
.chat-fab-container.chat-dock--dragging[b-003duk1vbr] {
    transition: none;
    opacity: 0.9;
}

/* First placement after a render — jump straight to the docked corner, don't slide there. */
.chat-fab-container.chat-dock--no-anim[b-003duk1vbr] {
    transition: none;
}

@media (prefers-reduced-motion: reduce) {
    .chat-fab-container[b-003duk1vbr] {
        transition: none;
    }
}

/* ---------- Panel container ---------- */
.chat-panel-container[b-003duk1vbr] {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 1200;
    width: 380px;
    max-height: 560px;
    display: flex;
    flex-direction: column;
}

.chat-panel[b-003duk1vbr] {
    display: flex;
    flex-direction: column;
    height: 560px;
    border-radius: 12px !important;
    overflow: hidden;
}

/* ---------- Header ---------- */
.chat-header[b-003duk1vbr] {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.5rem 0.5rem 0.75rem;
    /* WingBlue → OwlBlue gradient per spec */
    background: linear-gradient(135deg, var(--hb-wing-blue), var(--hb-owl-blue));
    flex-shrink: 0;
}

.chat-header-avatar[b-003duk1vbr] {
    width: 28px !important;
    height: 28px !important;
    background: rgba(255, 255, 255, 0.2) !important;
}

.chat-header-owl[b-003duk1vbr] {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* ---------- Messages ---------- */
.chat-messages[b-003duk1vbr] {
    flex: 1;
    min-height: 0;          /* critical: without this, flex child won't shrink below content → no scroll */
    overflow-y: auto;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    scroll-behavior: smooth;
}

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .chat-messages[b-003duk1vbr] {
        scroll-behavior: auto;
    }

    .typing-dot[b-003duk1vbr] {
        animation: none !important;
        opacity: 0.6;
    }
}

.chat-empty-state[b-003duk1vbr] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 1.5rem 1rem;
    gap: 0.25rem;
}

.chat-empty-owl[b-003duk1vbr] {
    width: 72px;
    height: 72px;
    object-fit: contain;
    opacity: 0.9;
}

.chat-suggestion-chips[b-003duk1vbr] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: center;
    margin-top: 0.75rem;
}

.chat-chip[b-003duk1vbr] {
    font-size: 0.75rem !important;
    cursor: pointer;
}

/* ---------- Individual message rows ---------- */
.chat-message[b-003duk1vbr] {
    display: flex;
    align-items: flex-end;
    gap: 0.4rem;
    max-width: 100%;
}

.chat-message--user[b-003duk1vbr] {
    flex-direction: row-reverse;
}

.chat-message--assistant[b-003duk1vbr] {
    flex-direction: row;
}

.chat-msg-avatar[b-003duk1vbr] {
    width: 24px !important;
    height: 24px !important;
    flex-shrink: 0;
    background: rgba(74, 144, 217, 0.15) !important;
}

.chat-msg-owl[b-003duk1vbr] {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* ---------- Bubbles ---------- */
.chat-bubble[b-003duk1vbr] {
    padding: 0.5rem 0.75rem;
    border-radius: 16px;
    max-width: 85%;
    min-width: 0;
    overflow: hidden;
    word-break: break-word;
    line-height: 1.4;
}

.chat-bubble--user[b-003duk1vbr] {
    background-color: var(--hb-owl-blue);
    color: #fff;
    border-bottom-right-radius: 4px;
}

/* Assistant bubble uses MudBlazor surface so it auto-adapts to dark mode */
.chat-bubble--assistant[b-003duk1vbr] {
    background-color: var(--mud-palette-action-default-hover);
    border-bottom-left-radius: 4px;
}

.chat-bubble-text[b-003duk1vbr] {
    font-size: 0.875rem !important;
    margin: 0;
}

/* --- Markdown inside assistant bubbles --- */
[b-003duk1vbr] .chat-markdown {
    font-size: 0.875rem;
    line-height: 1.5;
}

[b-003duk1vbr] .chat-markdown p {
    margin: 0 0 0.4rem 0;
}

[b-003duk1vbr] .chat-markdown p:last-child {
    margin-bottom: 0;
}

[b-003duk1vbr] .chat-markdown ul,
[b-003duk1vbr] .chat-markdown ol {
    margin: 0.25rem 0 0.4rem 1.2rem;
    padding: 0;
}

[b-003duk1vbr] .chat-markdown li {
    margin-bottom: 0.15rem;
}

[b-003duk1vbr] .chat-markdown strong {
    font-weight: 600;
}

[b-003duk1vbr] .chat-markdown a {
    color: var(--hb-owl-blue);
    text-decoration: underline;
}

[b-003duk1vbr] .chat-markdown code {
    font-size: 0.8rem;
    background: rgba(0,0,0,0.06);
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
}

[b-003duk1vbr] .chat-markdown pre {
    overflow-x: auto;
    max-width: 100%;
    background: rgba(0,0,0,0.06);
    padding: 0.5rem;
    border-radius: 6px;
    margin: 0.4rem 0;
}

[b-003duk1vbr] .chat-markdown pre code {
    background: none;
    padding: 0;
    font-size: 0.75rem;
    white-space: pre;
}

[b-003duk1vbr] .chat-markdown table {
    border-collapse: collapse;
    margin: 0.4rem 0;
    font-size: 0.8rem;
}

[b-003duk1vbr] .chat-markdown th,
[b-003duk1vbr] .chat-markdown td {
    border: 1px solid rgba(0,0,0,0.12);
    padding: 0.2rem 0.4rem;
}

[b-003duk1vbr] .chat-markdown th {
    font-weight: 600;
    background: rgba(0,0,0,0.04);
}

/* ---------- Typing dots ---------- */
.chat-bubble--typing[b-003duk1vbr] {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0.6rem 0.75rem;
}

.typing-dot[b-003duk1vbr] {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: var(--hb-owl-blue);
    animation: typing-bounce-b-003duk1vbr 1.2s ease-in-out infinite;
    flex-shrink: 0;
}

.typing-dot:nth-child(1)[b-003duk1vbr] { animation-delay: 0s; }
.typing-dot:nth-child(2)[b-003duk1vbr] { animation-delay: 0.2s; }
.typing-dot:nth-child(3)[b-003duk1vbr] { animation-delay: 0.4s; }

@keyframes typing-bounce-b-003duk1vbr {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
    30%            { transform: translateY(-5px); opacity: 1; }
}

/* ---------- Footer ---------- */
.chat-footer[b-003duk1vbr] {
    display: flex;
    align-items: flex-end;
    gap: 0.4rem;
    padding: 0.5rem 0.5rem 0.5rem 0.75rem;
    border-top: 1px solid var(--mud-palette-divider);
    flex-shrink: 0;
}

.chat-input[b-003duk1vbr] {
    flex: 1;
    font-size: 0.875rem;
}

.chat-footer-actions[b-003duk1vbr] {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    padding-bottom: 4px;
}

/* ---------- Minimized bar ---------- */
.chat-minimized-bar[b-003duk1vbr] {
    position: fixed;
    bottom: 0;
    right: 1.5rem;
    z-index: 1200;
    width: 220px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.4rem 0.5rem 0.4rem 0.75rem;
    background: linear-gradient(135deg, var(--hb-wing-blue), var(--hb-owl-blue));
    border-radius: 10px 10px 0 0;
    cursor: pointer;
}

.chat-minimized-owl[b-003duk1vbr] {
    width: 22px;
    height: 22px;
    object-fit: cover;
    border-radius: 50%;
}

/* ---------- Mobile: full-sheet below 600px ---------- */
@media (max-width: 599px) {
    .chat-panel-container[b-003duk1vbr] {
        bottom: 0;
        right: 0;
        left: 0;
        width: 100%;
        max-height: 100dvh;
        border-radius: 0;
    }

    .chat-panel[b-003duk1vbr] {
        height: 100dvh;
        border-radius: 0 !important;
    }

    .chat-fab-container[b-003duk1vbr] {
        bottom: 1rem;
        right: 1rem;
    }

    .chat-minimized-bar[b-003duk1vbr] {
        right: 0;
        left: 0;
        width: 100%;
        border-radius: 0;
    }
}

/* ---------- Dark mode compatibility ----------
   We intentionally avoid hardcoded white/black.
   • Header/minimized bar use CSS vars (--hb-wing-blue/owl-blue) — same in both modes.
   • User bubble uses --hb-owl-blue with white text (readable on both modes).
   • Assistant bubble uses --mud-palette-action-default-hover (MudBlazor theme-aware).
   • All text colors via MudText Color.Secondary or inline theme vars.
   ------------------------------------------------ */
/* /Components/Layout/AppLayout.razor.rz.scp.css */
.hb-account-menu[b-ibgmqe41fr] {
    margin-left: 0.25rem;
}
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-f2tnf56z02],
.components-reconnect-repeated-attempt-visible[b-f2tnf56z02],
.components-reconnect-failed-visible[b-f2tnf56z02],
.components-pause-visible[b-f2tnf56z02],
.components-resume-failed-visible[b-f2tnf56z02],
.components-rejoining-animation[b-f2tnf56z02] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-f2tnf56z02],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-f2tnf56z02],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-f2tnf56z02],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-f2tnf56z02],
#components-reconnect-modal.components-reconnect-retrying[b-f2tnf56z02],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-f2tnf56z02],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-f2tnf56z02],
#components-reconnect-modal.components-reconnect-failed[b-f2tnf56z02],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-f2tnf56z02] {
    display: block;
}


#components-reconnect-modal[b-f2tnf56z02] {
    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-f2tnf56z02 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-f2tnf56z02 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-f2tnf56z02 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-f2tnf56z02]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-f2tnf56z02 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-f2tnf56z02 {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-f2tnf56z02 {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-f2tnf56z02 {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-f2tnf56z02] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-f2tnf56z02] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-f2tnf56z02] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-f2tnf56z02] {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active[b-f2tnf56z02] {
        background-color: #6b9ed2;
    }

.components-rejoining-animation[b-f2tnf56z02] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-f2tnf56z02] {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-f2tnf56z02 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-f2tnf56z02] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-f2tnf56z02 {
    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/App/Expenses/ExpenseList.razor.rz.scp.css */
/* Summary strip above the grid. Theme-aware via MudBlazor palette vars so it reads
   correctly in both light and dark mode. */
.hb-expense-summary[b-bag3zqb3b7] {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1.1rem;
    border: 1px solid var(--mud-palette-divider);
    border-radius: 10px;
    background-color: var(--mud-palette-background-gray);
}

@media (max-width: 599px) {
    .hb-expense-summary[b-bag3zqb3b7] {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
}
/* /Components/Pages/App/Links/LinkList.razor.rz.scp.css */
.hb-link-analytics-shell[b-zwae7nl4q3] {
  border: 1px solid rgba(45, 83, 184, 0.08);
}

.hb-link-analytics-stat[b-zwae7nl4q3] {
  height: 100%;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(66, 103, 210, 0.04) 0%, rgba(66, 103, 210, 0) 100%),
    #fff;
}

.hb-link-chart-shell[b-zwae7nl4q3] {
  height: 260px;
  overflow: hidden;
}

.hb-link-region-card .mud-card-content[b-zwae7nl4q3] {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.hb-link-region-panel[b-zwae7nl4q3] {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 1rem;
}

.hb-link-region-summary[b-zwae7nl4q3] {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.1rem;
  border: 1px solid rgba(66, 103, 210, 0.12);
  border-radius: 16px;
  background:
    radial-gradient(circle at top left, rgba(66, 103, 210, 0.12), transparent 55%),
    linear-gradient(180deg, rgba(248, 250, 255, 1) 0%, rgba(255, 255, 255, 1) 100%);
}

.hb-link-region-header[b-zwae7nl4q3] {
  gap: 0.9rem;
}

.hb-link-region-icon[b-zwae7nl4q3] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: rgba(66, 103, 210, 0.08);
  flex-shrink: 0;
}

.hb-link-region-copy[b-zwae7nl4q3] {
  max-width: 34rem;
}

.hb-link-region-bars[b-zwae7nl4q3] {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 1rem;
  justify-content: flex-start;
}

.hb-link-region-chip-row[b-zwae7nl4q3] {
  flex-wrap: wrap;
}

.hb-link-region-bars--compact[b-zwae7nl4q3] {
  justify-content: center;
}

.hb-link-region-bar[b-zwae7nl4q3] {
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  background: rgba(248, 250, 255, 0.95);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.hb-link-region-bar-head[b-zwae7nl4q3] {
  gap: 0.75rem;
}

.hb-link-breakdown-card .mud-card-content[b-zwae7nl4q3] {
  height: 100%;
}

.hb-link-breakdown-list[b-zwae7nl4q3] {
  gap: 0.85rem;
}

.hb-link-recent-card[b-zwae7nl4q3] {
  background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(250, 251, 255, 1) 100%);
}

@media (max-width: 960px) {
  .hb-link-chart-shell[b-zwae7nl4q3] {
    height: 220px;
  }
}
/* /Components/Shared/InvoiceDocument.razor.rz.scp.css */
.hb-invoice-document[b-wwsysy7b1x] {
    background: #ffffff;
    border: 1px solid rgba(3, 23, 61, 0.08);
    border-radius: 1.25rem;
    box-shadow: 0 1rem 2rem rgba(6, 21, 47, 0.08);
    overflow: hidden;
}

.hb-invoice-document__accent[b-wwsysy7b1x] {
    height: 0.35rem;
    background: linear-gradient(90deg, var(--hb-invoice-primary), var(--hb-invoice-secondary));
}

.hb-invoice-document__actions[b-wwsysy7b1x] {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem 0;
    flex-wrap: wrap;
}

.hb-invoice-document__body[b-wwsysy7b1x] {
    padding: 1.75rem;
}

.hb-invoice-document__header[b-wwsysy7b1x] {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.hb-invoice-document__brand[b-wwsysy7b1x] {
    min-width: 14rem;
}

.hb-invoice-document__logo[b-wwsysy7b1x] {
    display: block;
    max-width: 11rem;
    max-height: 4.5rem;
    object-fit: contain;
    margin-bottom: 0.75rem;
}

.hb-invoice-document__company[b-wwsysy7b1x] {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--hb-invoice-secondary);
}

.hb-invoice-document__title[b-wwsysy7b1x] {
    text-align: right;
}

.hb-invoice-document__eyebrow[b-wwsysy7b1x] {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #53708f;
    font-size: 0.75rem;
    font-weight: 700;
}

.hb-invoice-document__number[b-wwsysy7b1x] {
    font-size: 2rem;
    font-weight: 700;
    color: var(--hb-invoice-primary);
    margin-top: 0.25rem;
}

.hb-invoice-document__message[b-wwsysy7b1x] {
    margin-top: 0.55rem;
    max-width: 28rem;
    color: var(--hb-invoice-secondary);
}

.hb-invoice-document__meta[b-wwsysy7b1x] {
    margin-top: 0.25rem;
    color: #53708f;
}

.hb-invoice-document__status[b-wwsysy7b1x] {
    display: inline-flex;
    margin-top: 0.9rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hb-invoice-document__status--paid[b-wwsysy7b1x] {
    background: rgba(25, 135, 84, 0.12);
    color: #198754;
}

.hb-invoice-document__status--sent[b-wwsysy7b1x] {
    background: color-mix(in srgb, var(--hb-invoice-primary) 12%, white);
    color: var(--hb-invoice-primary);
}

.hb-invoice-document__status--due[b-wwsysy7b1x] {
    background: rgba(220, 53, 69, 0.12);
    color: #dc3545;
}

.hb-invoice-document__status--draft[b-wwsysy7b1x] {
    background: rgba(83, 112, 143, 0.12);
    color: #53708f;
}

.hb-invoice-document__addresses[b-wwsysy7b1x] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.hb-invoice-document__address-card[b-wwsysy7b1x] {
    padding: 1rem;
    border-radius: 1rem;
    background: #f7faff;
    border: 1px solid rgba(3, 23, 61, 0.06);
    line-height: 1.6;
}

.hb-invoice-document__address-label[b-wwsysy7b1x],
.hb-invoice-document__section-title[b-wwsysy7b1x] {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #53708f;
    font-size: 0.74rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.hb-invoice-document__address-name[b-wwsysy7b1x] {
    font-weight: 700;
}

.hb-invoice-document__address-muted[b-wwsysy7b1x] {
    color: #5f7b97;
}

.hb-invoice-document__address-reference[b-wwsysy7b1x] {
    margin-top: 0.75rem;
    font-weight: 700;
    color: var(--hb-invoice-secondary);
}

.hb-invoice-document__table[b-wwsysy7b1x] {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.75rem;
}

.hb-invoice-document__table th[b-wwsysy7b1x] {
    padding: 0.85rem 1rem;
    background: var(--hb-invoice-secondary);
    color: #ffffff;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hb-invoice-document__table td[b-wwsysy7b1x] {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid rgba(15, 39, 70, 0.08);
    vertical-align: top;
}

.hb-invoice-document__table tbody tr:nth-child(even) td[b-wwsysy7b1x] {
    background: rgba(247, 250, 255, 0.75);
}

.hb-invoice-document__table--compact[b-wwsysy7b1x] {
    margin-top: 0.75rem;
}

.hb-invoice-document__totals[b-wwsysy7b1x] {
    margin-left: auto;
    margin-top: 1.5rem;
    max-width: 22rem;
}

.hb-invoice-document__total-row[b-wwsysy7b1x],
.hb-invoice-document__balance[b-wwsysy7b1x] {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.6rem 0;
}

.hb-invoice-document__balance[b-wwsysy7b1x] {
    margin-top: 0.35rem;
    padding: 0.9rem 1rem;
    border-radius: 1rem;
    background: color-mix(in srgb, var(--hb-invoice-primary) 12%, white);
    color: var(--hb-invoice-primary);
}

.hb-invoice-document__paid[b-wwsysy7b1x] {
    color: #198754;
}

.hb-invoice-document__notes[b-wwsysy7b1x] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.hb-invoice-document__note-card[b-wwsysy7b1x] {
    padding: 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(15, 39, 70, 0.08);
    background: #ffffff;
}

.hb-invoice-document__note-text[b-wwsysy7b1x] {
    white-space: pre-wrap;
    color: #29425f;
    line-height: 1.7;
}

.hb-invoice-document__history[b-wwsysy7b1x] {
    margin-top: 1.75rem;
}

.hb-invoice-document__footer-note[b-wwsysy7b1x] {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(15, 39, 70, 0.08);
    color: #5f7b97;
    white-space: pre-wrap;
}

.text-right[b-wwsysy7b1x] {
    text-align: right;
}

@media (max-width: 900px) {
    .hb-invoice-document__body[b-wwsysy7b1x] {
        padding: 1.25rem;
    }

    .hb-invoice-document__header[b-wwsysy7b1x] {
        flex-direction: column;
    }

    .hb-invoice-document__title[b-wwsysy7b1x] {
        text-align: left;
    }

    .hb-invoice-document__addresses[b-wwsysy7b1x] {
        grid-template-columns: 1fr;
    }

    .hb-invoice-document__notes[b-wwsysy7b1x] {
        grid-template-columns: 1fr;
    }

    .hb-invoice-document__table th[b-wwsysy7b1x],
    .hb-invoice-document__table td[b-wwsysy7b1x] {
        padding: 0.75rem;
    }
}

@media print {
    .hb-invoice-document[b-wwsysy7b1x] {
        box-shadow: none;
        border: none;
    }

    .hb-invoice-document__actions[b-wwsysy7b1x] {
        display: none;
    }
}
/* /Components/Shared/ScreenshotAttachments.razor.rz.scp.css */
/* Support-request screenshot picker. Colours come from the MudBlazor palette so the
   drop zone and thumbnails read correctly in both light and dark mode. */

.hb-attach-drop[b-3gvcn59yvq] {
    border-style: dashed !important;
    border-width: 2px !important;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.hb-attach-drop:hover[b-3gvcn59yvq],
.hb-attach-drop--active[b-3gvcn59yvq] {
    border-color: var(--mud-palette-primary) !important;
    background-color: var(--mud-palette-action-default-hover);
}

/* MudFileUpload renders its <input type="file"> over the activator so the same area
   handles both click and native drag-drop. Keep it invisible but still hit-testable. */
[b-3gvcn59yvq] .hb-attach-input {
    cursor: pointer;
}

.hb-attach-grid[b-3gvcn59yvq] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.75rem;
}

.hb-attach-item[b-3gvcn59yvq] {
    position: relative;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.hb-attach-thumb[b-3gvcn59yvq] {
    width: 100%;
    height: 96px;
    object-fit: cover;
    border-radius: 6px;
    background-color: var(--mud-palette-background-gray);
}

.hb-attach-meta[b-3gvcn59yvq] {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* Filenames can be long; keep the tile width stable rather than letting one stretch it. */
.hb-attach-name[b-3gvcn59yvq] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
}

.hb-attach-remove[b-3gvcn59yvq] {
    position: absolute;
    top: 2px;
    right: 2px;
    background-color: var(--mud-palette-surface) !important;
}

@media (prefers-reduced-motion: reduce) {
    .hb-attach-drop[b-3gvcn59yvq] {
        transition: none;
    }
}
