html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: #010621;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* --- REVENUE PAGE --- */

.text-net-sales   { color: #00ff88; }
.text-tax         { color: #ffc107; }
.text-gross-sales { color: #4facfe; }

.vps-hint {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
}

.revenue-table {
    border-collapse: collapse;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.875rem;
}

.revenue-table th {
    padding: 0.6rem 1.25rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    white-space: nowrap;
}

.revenue-table td {
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    white-space: nowrap;
}

.revenue-table tbody tr:hover td {
    background: rgba(255, 255, 255, 0.03);
}

.revenue-table tbody tr:last-child td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.totals-row td {
    background: rgba(255, 255, 255, 0.04);
    padding: 0.85rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.combined-row td {
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.combined-row.expandable {
    cursor: pointer;
}

.combined-row.expandable:hover td {
    background: rgba(255, 255, 255, 0.04);
}

.site-row td {
    background: rgba(255, 255, 255, 0.025);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    font-size: 0.82rem;
}

.site-row:last-of-type td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.month-cell {
    color: rgba(255, 255, 255, 0.9);
}

.expand-chevron {
    display: inline-block;
    margin-right: 6px;
    font-size: 1rem;
    line-height: 1;
    color: rgba(255, 255, 255, 0.35);
    transition: transform 0.2s ease;
    transform: rotate(0deg);
}

.expand-chevron.expanded {
    transform: rotate(90deg);
}

.month-input {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.85);
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    outline: none;
    color-scheme: dark;
}

.month-input:focus {
    border-color: rgba(13, 110, 253, 0.5);
    background: rgba(255, 255, 255, 0.09);
}

.pct-input {
    width: 5rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    color: #fff;
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    text-align: center;
    outline: none;
}

.pct-input:focus {
    border-color: rgba(13, 110, 253, 0.5);
    background: rgba(255, 255, 255, 0.09);
}

@media (max-width: 575px) {
    .revenue-table th,
    .revenue-table td {
        padding: 0.5rem 0.6rem;
        font-size: 0.75rem;
    }

    .hero-card h3 { font-size: 1.1rem; }
    .hero-card p  { font-size: 0.6rem; }
}

/* --- GLOBAL HERO DESIGN SYSTEM --- */

.hero-card {
    /*    background: rgba(13, 110, 253, 0.06);*/
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: rgba(255, 255, 255, 0.7);
    background: #020b3a;
}

.hero-card:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.hero-card h3 {
    font-size: 1.75rem;
    letter-spacing: -0.5px;
}

/* Background Glowing Orbs */
.orb {
    position: absolute;
    filter: blur(60px);
    border-radius: 50%;
    z-index: 0;
    opacity: 0.4;
    pointer-events: none;
}

.orb-1 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, #0d6efd, transparent);
    top: -50px;
    right: -30px;
}

.orb-2 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, #6610f2, transparent);
    bottom: -40px;
    left: -40px;
}

/* Global Typography Helpers */
.fw-black {
    font-weight: 900 !important;
}

.ls-wide {
    letter-spacing: 1px;
}

/* Global Stats Badge (The little blue/red pills) */
.stats-badge {
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.7rem;
    color: #4facfe;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(79, 172, 254, 0.2);
    white-space: nowrap;
}

.pulse-dot {
    width: 7px;
    height: 7px;
    background: currentColor;
    border-radius: 50%;
    flex-shrink: 0;
    animation: simplePulse 2s infinite;
}

@keyframes simplePulse {
    0%   { transform: scale(0.9); opacity: 0.6; box-shadow: 0 0 0 0 currentColor; }
    50%  { transform: scale(1.2); opacity: 1;   box-shadow: 0 0 8px currentColor; }
    100% { transform: scale(0.9); opacity: 0.6; box-shadow: 0 0 0 0 currentColor; }
}

.stats-badge-action {
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

    .stats-badge-action:hover {
        background: rgba(79, 172, 254, 0.15);
        border-color: rgba(79, 172, 254, 0.5);
    }

/* Shared counter text used in multiple hero/mini-cards */
.counter-text {
    font-weight: 900;
    background: linear-gradient(to bottom, #fff 0%, #f9e6e6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Shared entrance animation used by several components */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

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

.animate-in {
    animation: fadeIn 0.3s ease-in;
}

.hero-header-blue {
    background: rgba(13, 110, 253, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-sidebar-blue {
    background: rgb(13 110 253 / 18%);
}

.hero-badge-green,
.hero-badge-yellow,
.hero-badge-red,
.hero-badge-blue {
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
}

.hero-badge-green {
    background: rgba(0, 255, 136, 0.1);
    color: #00ff88;
    border: 1px solid rgba(0, 255, 136, 0.2);
}

.hero-badge-yellow {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.2);
}

.hero-badge-red {
    background: rgba(255, 77, 77, 0.12);
    color: #ff4d4d;
    border: 1px solid rgba(255, 77, 77, 0.2);
}

.badge-sm {
    padding: 2px 8px !important;
    font-size: 0.65rem !important;
}

.hero-badge-blue {
    background: rgba(13, 202, 240, 0.1);
    color: rgb(13, 202, 240);
    border: 1px solid rgba(13, 202, 240, 0.2);
}

/* --- TRELLO BOARD PAGE --- */

.board-scroll {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    align-items: flex-start;
    min-height: 60vh;
}

.board-scroll::-webkit-scrollbar { height: 6px; }
.board-scroll::-webkit-scrollbar-track { background: transparent; }
.board-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 3px; }

.board-column {
    flex: 0 0 280px;
    min-width: 280px;
    max-height: calc(100vh - 180px);
    display: flex;
    flex-direction: column;
}

.board-column-pair {
    flex: 0 0 280px;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: calc(100vh - 180px);
}

.board-column-half {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.column-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.column-body {
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.12) transparent;
}

.trello-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 8px;
    padding: 0.6rem 0.75rem;
    margin-top: 0.5rem;
    transition: background 0.15s;
    cursor: pointer;
}

.trello-card:hover {
    background: rgba(255,255,255,0.09);
}

.card-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    line-height: 1.35;
    margin: 0;
}

.card-desc {
    font-size: 0.75rem;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.trello-label {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #fff;
}

.card-due {
    margin-top: 0.4rem;
    font-size: 0.7rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    border-radius: 4px;
}

.due-complete  { background: rgba(0,255,136,0.15); color: #00ff88; }
.due-overdue   { background: rgba(220,53,69,0.2);  color: #ff6b7a; }
.due-upcoming  { background: rgba(255,193,7,0.15); color: #ffc107; }

/* Card modal */
.trello-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.trello-modal {
    position: relative;
    width: 100%;
    max-width: 520px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 1.5rem;
    animation: pageFadeIn 0.2s ease-out;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.15) transparent;
}

.trello-modal::-webkit-scrollbar { width: 4px; }
.trello-modal::-webkit-scrollbar-track { background: transparent; }
.trello-modal::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 2px; }

.modal-desc {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 0.75rem 1rem;
}

/* Checklists */
.checklist-progress {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checklist-bar {
    flex: 1;
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    overflow: hidden;
}

.checklist-bar-fill {
    height: 100%;
    background: rgba(255,255,255,0.35);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.checklist-bar-fill.complete { background: #00ff88; }

.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.25rem 0;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.checklist-item.checked {
    color: rgba(255,255,255,0.35);
    text-decoration: line-through;
}

.check-box {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    margin-top: 1px;
    color: #00ff88;
}

.checklist-item.checked .check-box {
    background: rgba(0,255,136,0.15);
    border-color: rgba(0,255,136,0.4);
}

/* Trello label colours */
.trello-label-green  { background: #519839; }
.trello-label-yellow { background: #d9b51c; color: #1a1a2e; }
.trello-label-orange { background: #d29034; }
.trello-label-red    { background: #b04632; }
.trello-label-purple { background: #89609e; }
.trello-label-blue   { background: #0079bf; }
.trello-label-sky    { background: #00aecc; }
.trello-label-lime   { background: #4bbf6b; }
.trello-label-pink   { background: #e091c0; color: #1a1a2e; }
.trello-label-black  { background: #344563; }

/* --- SUPPLIERS HUB --- */
.supplier-selector-sticky {
    position: sticky;
    top: 3.5rem;
    z-index: 100;
    background: #010621;
    padding: 1rem 0;
    margin-bottom: 1rem;
}

@media (min-width: 641px) {
    .supplier-selector-sticky {
        top: 0;
    }
}

.supplier-selector-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.6);
    user-select: none;
}

    .supplier-selector-card:hover {
        background: rgba(79, 172, 254, 0.08);
        border-color: rgba(79, 172, 254, 0.25);
        color: #fff;
        transform: translateY(-2px);
    }

    .supplier-selector-card.active {
        background: rgba(79, 172, 254, 0.12);
        border-color: rgba(79, 172, 254, 0.5);
        color: #4facfe;
        box-shadow: 0 0 20px rgba(79, 172, 254, 0.1);
    }

.supplier-selector-initial {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    flex-shrink: 0;
}

.supplier-selector-card.active .supplier-selector-initial {
    background: rgba(79, 172, 254, 0.2);
}

.supplier-selector-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.supplier-selector-count {
    font-size: 0.7rem;
    opacity: 0.6;
    font-weight: 400;
}

@media (max-width: 640px) {
    .supplier-selector-card {
        padding: 10px 8px;
        gap: 8px;
        border-radius: 12px;
    }

    .supplier-selector-initial {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
        border-radius: 8px;
    }

    .supplier-selector-name {
        font-size: 0.75rem;
    }

    .supplier-selector-chevron {
        display: none;
    }
}

.supplier-selector-chevron {
    margin-left: auto;
    font-size: 0.75rem;
    opacity: 0.7;
}

/* --- QUICK LINKS PAGE --- */
.quick-link-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: all 0.2s ease;
    margin: 0 4px 2px;
}

    .quick-link-row:hover {
        background: rgba(79, 172, 254, 0.12);
        color: #4facfe;
    }

.quick-link-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
    width: 1.4rem;
    text-align: center;
}

.quick-link-arrow {
    font-size: 0.7rem;
    margin-left: auto;
    opacity: 0.4;
    flex-shrink: 0;
}

    .quick-link-row:hover .quick-link-arrow {
        opacity: 1;
    }

/* --- GLASS BUTTONS (shared across pages) --- */
.btn-compact-glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    height: 40px;
    text-decoration: none;
}

.btn-compact-glass:hover:not(:disabled) {
    background: rgba(79, 172, 254, 0.2);
    border-color: #4facfe;
    color: #4facfe;
    transform: translateY(-2px);
    text-decoration: none;
}

.btn-compact-glass:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.trello-label-default { background: rgba(255,255,255,0.2); }