html, body {
    height: 100%;
    margin: 0;
    overflow: hidden;
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

body {
    --ecore-page-text: #173322;
    --ecore-page-bg: #f7fbf5;
    --ecore-page-bg-alt: #f3f8f2;
    --ecore-surface: #ffffff;
    --ecore-surface-soft: rgba(255, 255, 255, 0.88);
    --ecore-surface-muted: #eef7e8;
    --ecore-border-soft: rgba(12, 107, 45, 0.14);
    --ecore-border-strong: rgba(12, 107, 45, 0.22);
    --ecore-shadow-color: rgba(18, 53, 31, 0.12);
    --ecore-overlay: rgba(17, 24, 39, 0.38);
    --ecore-focus-ring: rgba(134, 199, 59, 0.45);
    --ecore-focus-border: rgba(134, 199, 59, 0.85);
    --ecore-sidebar-start: #0c6b2d;
    --ecore-sidebar-mid: #0a5627;
    --ecore-sidebar-end: #083f21;
    --ecore-sidebar-top-start: rgba(8, 69, 33, 0.98);
    --ecore-sidebar-top-end: rgba(12, 107, 45, 0.96);
    --ecore-sidebar-highlight: rgba(168, 224, 79, 0.3);
    --ecore-sidebar-border: rgba(214, 242, 181, 0.12);
    --ecore-sidebar-text: rgba(242, 249, 242, 0.84);
    --ecore-sidebar-hover: rgba(255, 255, 255, 0.08);
    --ecore-sidebar-accent-soft: rgba(134, 199, 59, 0.12);
    --ecore-sidebar-accent: rgba(134, 199, 59, 0.2);
    --ecore-sidebar-accent-strong: rgba(134, 199, 59, 0.28);
    --ecore-sidebar-accent-border: rgba(173, 223, 95, 0.2);
    --ecore-sidebar-accent-border-soft: rgba(173, 223, 95, 0.08);
    --ecore-topbar-bg: rgba(247, 251, 245, 0.92);
    --ecore-topbar-border: rgba(12, 107, 45, 0.12);
    --ecore-accent-border: rgba(11, 106, 45, 0.18);
    --ecore-accent-border-strong: rgba(11, 106, 45, 0.24);
    --ecore-accent-shadow: rgba(11, 106, 45, 0.16);
    --ecore-accent-gradient: linear-gradient(180deg, rgba(19, 123, 50, 0.96) 0%, rgba(11, 106, 45, 1) 100%);
    --ecore-accent-gradient-hover: linear-gradient(180deg, rgba(18, 115, 47, 0.98) 0%, rgba(9, 90, 38, 1) 100%);
    --ecore-list-row-hover: rgba(235, 244, 237, 0.82);
    --ecore-list-row-active: rgba(235, 244, 237, 0.82);
    --ecore-list-focus: rgba(231, 242, 234, 0.92);
    --ecore-list-outline: rgba(44, 94, 66, 0.34);
    --ecore-card-gradient: linear-gradient(180deg, rgba(248, 252, 249, 0.98) 0%, rgba(241, 247, 242, 0.98) 100%);
    --ecore-card-gradient-soft: linear-gradient(180deg, rgba(245, 250, 247, 0.98) 0%, rgba(237, 246, 240, 0.9) 100%);
    --ecore-surface-tint: rgba(255, 255, 255, 0.58);
    --ecore-surface-tint-strong: rgba(255, 255, 255, 0.74);
    --ecore-dashboard-eyebrow: #538164;
    --ecore-dashboard-badge-bg: rgba(49, 118, 73, 0.12);
    --ecore-dashboard-badge-text: #24553a;
    --ecore-dashboard-track: rgba(84, 125, 100, 0.16);
    --ecore-dashboard-progress: linear-gradient(90deg, #4f8a66 0%, #8fc1a2 100%);
    --ecore-dashboard-sales: linear-gradient(90deg, #2f7a58 0%, #8ed0af 100%);
    --ecore-dashboard-purchases: linear-gradient(90deg, #7fb393 0%, #badcc8 100%);
    --ecore-chart-bar-start: rgba(78, 149, 99, 0.96);
    --ecore-chart-bar-end: rgba(26, 99, 52, 0.98);
    --ecore-action-gradient: linear-gradient(180deg, rgba(250, 252, 250, 0.98) 0%, rgba(236, 244, 238, 0.96) 100%);
    --ecore-action-gradient-hover: linear-gradient(180deg, rgba(243, 249, 244, 1) 0%, rgba(226, 239, 229, 1) 100%);
    --ecore-action-hover-bg: rgba(223, 237, 226, 0.82);
    --ecore-action-text: #183726;
    --ecore-action-text-strong: #173728;
    --ecore-action-text-soft: #335a45;
    --ecore-action-hover-text: #0f2c1d;
    --ecore-modal-border: rgba(33, 77, 54, 0.16);
    --ecore-modal-divider: rgba(33, 77, 54, 0.08);
    --ecore-modal-accent: #5d9b72;
    --ecore-modal-header-bg: linear-gradient(90deg, rgba(223, 242, 228, 0.95) 0%, rgba(244, 250, 245, 0.9) 38%, rgba(255, 255, 255, 0.98) 72%);
    --ecore-sheet-bg: linear-gradient(180deg, #f8fbf6 0%, #ffffff 7rem);
    --ecore-sheet-border: rgba(11, 106, 45, 0.12);
    --ecore-sheet-shadow: rgba(11, 106, 45, 0.08);
    --ecore-sheet-banner-bg: linear-gradient(180deg, #eef7e8 0%, #f8fbf6 100%);
    --ecore-sheet-banner-strip: var(--ecore-green-800);
    --ecore-sheet-section-bg: #ffffff;
    --ecore-sheet-section-alt: #f1f8ec;
    --ecore-sheet-soft-block: #f7fbf5;
    --ecore-sheet-tint: #edf7e7;
    --ecore-details-panel-bg: linear-gradient(180deg, rgba(237, 247, 231, 0.62) 0%, rgba(248, 251, 246, 0.94) 100%);
    --ecore-details-panel-border: rgba(38, 96, 64, 0.28);
    --ecore-details-panel-head: rgba(228, 241, 226, 0.92);
    --ecore-details-panel-table-hover: rgba(237, 247, 231, 0.5);
    --ecore-green-900: #0b6a2d;
    --ecore-green-800: #137b32;
    --ecore-green-700: #3b9d2f;
    --ecore-green-500: #86c73b;
    --ecore-green-100: #edf7e7;
    --ecore-muted-700: #5d6d62;
    --ecore-danger: #b32121;
    --ecore-danger-text: #ffffff;
    --ecore-warning: #ffe500;
    --bs-body-color: var(--ecore-page-text);
    --bs-body-bg: var(--ecore-page-bg);
    --bs-border-color: var(--ecore-border-soft);
    --bs-primary: var(--ecore-green-800);
    --bs-primary-rgb: 19, 123, 50;
    --bs-link-color: var(--ecore-green-800);
    --bs-link-hover-color: var(--ecore-green-900);
    color: var(--ecore-page-text);
    background-color: var(--ecore-page-bg);
}

body[data-theme="NordicBlue"] {
    --ecore-page-text: #183047;
    --ecore-page-bg: #f4f8fc;
    --ecore-page-bg-alt: #edf4fb;
    --ecore-surface: #ffffff;
    --ecore-surface-soft: rgba(255, 255, 255, 0.9);
    --ecore-surface-muted: #e6f0fb;
    --ecore-border-soft: rgba(32, 84, 134, 0.16);
    --ecore-border-strong: rgba(32, 84, 134, 0.28);
    --ecore-shadow-color: rgba(17, 40, 77, 0.14);
    --ecore-overlay: rgba(15, 23, 42, 0.42);
    --ecore-focus-ring: rgba(61, 149, 255, 0.35);
    --ecore-focus-border: rgba(61, 149, 255, 0.72);
    --ecore-sidebar-start: #15395d;
    --ecore-sidebar-mid: #0f2f4f;
    --ecore-sidebar-end: #0a243d;
    --ecore-sidebar-top-start: rgba(10, 36, 61, 0.98);
    --ecore-sidebar-top-end: rgba(21, 57, 93, 0.96);
    --ecore-sidebar-highlight: rgba(84, 183, 255, 0.24);
    --ecore-sidebar-border: rgba(170, 218, 255, 0.14);
    --ecore-sidebar-text: rgba(237, 245, 255, 0.86);
    --ecore-sidebar-hover: rgba(255, 255, 255, 0.09);
    --ecore-sidebar-accent-soft: rgba(84, 183, 255, 0.12);
    --ecore-sidebar-accent: rgba(84, 183, 255, 0.18);
    --ecore-sidebar-accent-strong: rgba(84, 183, 255, 0.28);
    --ecore-sidebar-accent-border: rgba(150, 214, 255, 0.24);
    --ecore-sidebar-accent-border-soft: rgba(150, 214, 255, 0.1);
    --ecore-topbar-bg: rgba(244, 248, 252, 0.92);
    --ecore-topbar-border: rgba(32, 84, 134, 0.14);
    --ecore-accent-border: rgba(40, 118, 186, 0.2);
    --ecore-accent-border-strong: rgba(40, 118, 186, 0.3);
    --ecore-accent-shadow: rgba(40, 118, 186, 0.18);
    --ecore-accent-gradient: linear-gradient(180deg, rgba(40, 118, 186, 0.96) 0%, rgba(29, 93, 150, 1) 100%);
    --ecore-accent-gradient-hover: linear-gradient(180deg, rgba(36, 106, 169, 0.98) 0%, rgba(23, 75, 122, 1) 100%);
    --ecore-list-row-hover: rgba(230, 240, 251, 0.86);
    --ecore-list-row-active: rgba(230, 240, 251, 0.86);
    --ecore-list-focus: rgba(218, 233, 249, 0.95);
    --ecore-list-outline: rgba(32, 84, 134, 0.34);
    --ecore-card-gradient: linear-gradient(180deg, rgba(248, 251, 255, 0.98) 0%, rgba(239, 246, 252, 0.98) 100%);
    --ecore-card-gradient-soft: linear-gradient(180deg, rgba(245, 249, 254, 0.98) 0%, rgba(234, 242, 251, 0.9) 100%);
    --ecore-surface-tint: rgba(255, 255, 255, 0.62);
    --ecore-surface-tint-strong: rgba(255, 255, 255, 0.78);
    --ecore-dashboard-eyebrow: #51779b;
    --ecore-dashboard-badge-bg: rgba(40, 118, 186, 0.14);
    --ecore-dashboard-badge-text: #1d4f7f;
    --ecore-dashboard-track: rgba(92, 132, 176, 0.18);
    --ecore-dashboard-progress: linear-gradient(90deg, #2f73b1 0%, #8ac3f2 100%);
    --ecore-dashboard-sales: linear-gradient(90deg, #1f639f 0%, #7ec0f0 100%);
    --ecore-dashboard-purchases: linear-gradient(90deg, #6aa6d8 0%, #bfdcf5 100%);
    --ecore-chart-bar-start: rgba(91, 171, 236, 0.96);
    --ecore-chart-bar-end: rgba(29, 93, 150, 0.98);
    --ecore-action-gradient: linear-gradient(180deg, rgba(250, 252, 255, 0.98) 0%, rgba(233, 242, 251, 0.96) 100%);
    --ecore-action-gradient-hover: linear-gradient(180deg, rgba(243, 248, 255, 1) 0%, rgba(224, 237, 250, 1) 100%);
    --ecore-action-hover-bg: rgba(221, 235, 250, 0.84);
    --ecore-action-text: #20415f;
    --ecore-action-text-strong: #183047;
    --ecore-action-text-soft: #365b7d;
    --ecore-action-hover-text: #12283d;
    --ecore-modal-border: rgba(32, 84, 134, 0.18);
    --ecore-modal-divider: rgba(32, 84, 134, 0.08);
    --ecore-modal-accent: #5a8fbc;
    --ecore-modal-header-bg: linear-gradient(90deg, rgba(226, 239, 251, 0.96) 0%, rgba(241, 247, 253, 0.92) 38%, rgba(255, 255, 255, 0.98) 72%);
    --ecore-sheet-bg: linear-gradient(180deg, #f5f9fd 0%, #ffffff 7rem);
    --ecore-sheet-border: rgba(32, 84, 134, 0.14);
    --ecore-sheet-shadow: rgba(32, 84, 134, 0.1);
    --ecore-sheet-banner-bg: linear-gradient(180deg, #e8f3ff 0%, #f5f9fd 100%);
    --ecore-sheet-banner-strip: var(--ecore-green-800);
    --ecore-sheet-section-bg: #ffffff;
    --ecore-sheet-section-alt: #eef6ff;
    --ecore-sheet-soft-block: #f5f9fd;
    --ecore-sheet-tint: #e8f4ff;
    --ecore-details-panel-bg: linear-gradient(180deg, rgba(232, 242, 252, 0.72) 0%, rgba(247, 250, 254, 0.96) 100%);
    --ecore-details-panel-border: rgba(32, 84, 134, 0.3);
    --ecore-details-panel-head: rgba(221, 236, 250, 0.94);
    --ecore-details-panel-table-hover: rgba(232, 242, 252, 0.56);
    --ecore-green-900: #1d5d96;
    --ecore-green-800: #2876ba;
    --ecore-green-700: #4d9be0;
    --ecore-green-500: #7ec2ff;
    --ecore-green-100: #e8f4ff;
    --ecore-muted-700: #58708a;
    --bs-primary-rgb: 40, 118, 186;
}

a, .btn-link {
    color: var(--ecore-green-800);
}

.btn-primary {
    color: #fff;
    background-color: var(--ecore-green-800);
    border-color: var(--ecore-green-900);
}

.btn-primary:hover {
    color: #fff;
    background-color: var(--ecore-green-900);
    border-color: var(--ecore-green-900);
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus,
.form-select:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem var(--ecore-focus-ring);
}

.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,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveG1sinksb3c9ImhpZGRlbiI+PGRlZnM+PGNsaXBQYXRoIGlkPSJjbGlwMCI+PHJlY3QgeD0iMjM1IiB5PSI1M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LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, var(--ecore-danger);
    padding: 1rem 1rem 1rem 3.7rem;
    color: var(--ecore-danger-text);
}

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

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

.form-control:focus,
.form-select:focus {
    border-color: var(--ecore-focus-border);
}

.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;
}
