﻿/* --------------------------------------------------------------------------- */
/* TYPOGRAPHY SYSTEM - Standardized fonts and sizes                            */
/* --------------------------------------------------------------------------- */
:root {
    /* Font Families - Cross-platform system fonts */
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'SF Mono', 'Consolas', 'Liberation Mono', 'Menlo', 'Monaco', 'Courier New', monospace;
    /* Font Sizes - Using rem for accessibility (increased) */
    --text-xs: 0.8125rem; /* 13px (was 12px) */
    --text-sm: 0.875rem; /* 14px (was 13px) */
    --text-base: 0.9375rem; /* 15px (was 14px) */
    --text-md: 1rem; /* 16px (was 15px) */
    --text-lg: 1.125rem; /* 18px (was 17px) */
    --text-xl: 1.25rem; /* 20px (was 19px) */
    --text-2xl: 1.625rem; /* 26px (was 24px) */
    --text-3xl: 1.875rem; /* 30px (was 28px) */
    /* Font Weights */
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    /* Line Heights */
    --leading-tight: 1.25;
    --leading-normal: 1.5;
    --leading-relaxed: 1.75;
    /* ===== Sidebar / Top Bar Dimensions ===== */
    --sidebar-height: 24px;
    --sidebar-padding-x: 10px;
    --sidebar-brand-gap: 5px;
    --sidebar-brand-divider-height: 16px;
    --sidebar-bg: linear-gradient(135deg, #0d6b63 0%, #127a35 50%, #14582d 100%);
    --sidebar-text-color: rgba(255, 255, 255, 0.9);
    --sidebar-divider-color: rgba(255, 255, 255, 0.15);
    /* Override Radzen primary color to match theme */
    --rz-primary: #4a90a4;
    /*--rz-primary-lighter: rgba(15, 118, 110, 0.2);*/
}

/* ===== Base Reset ===== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    font-weight: var(--font-normal);
    line-height: var(--leading-normal);
    margin: 0;
    padding: 0;
    text-rendering: optimizeLegibility;
    font-feature-settings: 'kern' 1;
    font-kerning: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== Full Height Layout ===== */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

#app, #blazor-app, .blazor-web-app {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* ===== Global Page Minimum Dimensions ===== */
.page {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 100vh;
    min-width: 1024px;
}

main {
    flex: 1;
}

/* ===== Spacing Utilities ===== */
.ps-3 {
    padding-left: 1rem;
}

.px-3 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.px-4 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mt-3 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.pad_t3 {
    padding-top: 3px;
}

.pad_b3 {
    padding-bottom: 3px;
}

.pad_t5 {
    padding-top: 5px;
}

.pad_b5 {
    padding-bottom: 5px;
}

.pad_b2 {
    padding-bottom: 2px;
}

.pad_r3 {
    padding-right: 3px;
}

.pad_l10 {
    padding-left: 10px;
}

.pad_r10 {
    padding-right: 10px;
}

/* ===== Width Utilities ===== */
.w-100 {
    width: 100%;
}

.min_w200 {
    min-width: 200px;
}

.w30 {
    width: 30px !important;
}

.w40 {
    width: 40px !important;
}

.w50 {
    width: 50px !important;
}

.w60 {
    width: 60px !important;
}

.w70 {
    width: 70px !important;
}

.w80 {
    width: 80px !important;
}

.w90 {
    width: 90px !important;
}

.w100 {
    width: 100px !important;
}

.w120 {
    width: 120px !important;
}

.w130 {
    width: 130px !important;
}

.w140 {
    width: 140px !important;
}

.w150 {
    width: 150px !important;
}

.w180 {
    width: 180px !important;
}

/* ===== Flexbox Utilities ===== */
.flex-column {
    display: flex;
    flex-direction: column;
}

/* ===== Text Utilities - Updated ===== */
.text-xs {
    font-size: var(--text-xs);
}

.text-sm {
    font-size: var(--text-sm);
}

.text-base {
    font-size: var(--text-base);
}

.text-md {
    font-size: var(--text-md);
}

.text-lg {
    font-size: var(--text-lg);
}

.text-xl {
    font-size: var(--text-xl);
}

.text-danger {
    color: #dc3545;
}

.text-warning {
    color: #ffc107;
}

.text-success {
    color: #198754;
}

.text-info {
    color: #0dcaf0;
}

.text-muted {
    color: #6c757d;
}

.text_b12 {
    font-size: var(--text-sm);
    color: #000;
}

.text_c11 {
    font-size: var(--text-xs);
    color: #333;
}

.text_c12 {
    font-size: var(--text-sm);
    color: #0066cc;
    cursor: pointer;
}

.text_w12 {
    font-size: var(--text-sm);
    color: #333;
    font-weight: var(--font-normal);
}

.req {
    color: #dc2626;
}

/* ===== Alignment Utilities ===== */
.ali_r {
    text-align: right;
}

.ali_c {
    text-align: center;
}

.item_c {
    text-align: center;
    vertical-align: top;
}

.item_r {
    text-align: right;
    vertical-align: top;
}

.item_l {
    text-align: left;
    vertical-align: top;
}

/* ===== Grid System ===== */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -0.75rem;
    margin-right: -0.75rem;
}

    .row > * {
        flex-shrink: 0;
        width: 100%;
        max-width: 100%;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

.col-md-4 {
    flex: 0 0 auto;
    width: 100%;
}

.col-md-12 {
    flex: 0 0 100%;
    max-width: 100%;
}

.col-lg-3 {
    flex: 0 0 auto;
    width: 100%;
}

.col-lg-9 {
    flex: 0 0 auto;
    width: 100%;
}

.col-xl-6 {
    flex: 0 0 auto;
    width: 100%;
}

@media (min-width: 768px) {
    .col-md-4 {
        width: 33.333333%;
    }
}

@media (min-width: 992px) {
    .col-lg-3 {
        width: 25%;
    }

    .col-lg-9 {
        width: 75%;
    }
}

@media (min-width: 1200px) {
    .col-xl-6 {
        width: 50%;
    }
}

/* ===== Grid Span Utilities ===== */
.span-2 {
    grid-column: span 2;
}

.span-3 {
    grid-column: span 3;
}

.span-4 {
    grid-column: span 4;
}

.span-5 {
    grid-column: span 5;
}

.span-6 {
    grid-column: span 6;
}

.span-7 {
    grid-column: span 7;
}

.span-8 {
    grid-column: span 8;
}

.span-full {
    grid-column: 1 / -1;
}

/* ===== Navbar Styles ===== */
.navbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;
}

.navbar-dark {
    background-color: transparent;
}

.navbar-brand {
    color: #fff;
    text-decoration: none;
    font-size: 1.25rem;
    white-space: nowrap;
}

    .navbar-brand:hover {
        color: #fff;
    }

.container-fluid {
    width: 100%;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    margin-left: auto;
    margin-right: auto;
}

/* ===== Nav Styles ===== */
.nav {
    display: flex;
    flex-wrap: wrap;
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
}

.nav-link {
    display: block;
    padding: 0.5rem 1rem;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    transition: color 0.15s ease-in-out;
}

    .nav-link:hover,
    .nav-link:focus {
        color: rgba(255, 255, 255, 0.75);
    }

/* ===== Admin Title Bar - Compact elegant ===== */
.admin_title {
    height: 32px;
    line-height: 32px;
    background: var(--sidebar-bg);
    padding: 0 12px;
    font-family: var(--font-primary);
    font-size: var(--text-sm);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: var(--sidebar-height);
    z-index: 99;
}

.admin_left {
    display: flex;
    align-items: center;
    height: 100%;
    flex-shrink: 0;
}

.admin_right {
    display: flex;
    align-items: center;
    height: 100%;
    gap: 8px;
    margin-left: auto;
    flex-shrink: 0;
}

.page-title {
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    letter-spacing: 0.01em;
}

/* ===== Admin Form Controls - Whiter for better readability ===== */
.tbox_22 {
    height: 24px;
    line-height: 22px;
    font-size: var(--text-sm);
    font-family: var(--font-primary);
    padding: 0 8px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.9);
    color: #1a1a1a;
    border-radius: 2px;
    vertical-align: middle;
    box-sizing: border-box;
}

    .tbox_22::placeholder {
        color: #666;
    }

    .tbox_22:focus {
        outline: none;
        border-color: #fff;
        background: #fff;
    }

    /* Date input - dark text on white background */
    .tbox_22[type="date"] {
        color: #1a1a1a;
        background: rgba(255, 255, 255, 0.9);
    }

        .tbox_22[type="date"]::-webkit-calendar-picker-indicator {
            filter: none;
            cursor: pointer;
        }

.drop_22 {
    height: 24px;
    line-height: 22px;
    font-size: var(--text-sm);
    font-family: var(--font-primary);
    padding: 0 8px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.9);
    color: #1a1a1a;
    border-radius: 2px;
    vertical-align: middle;
    box-sizing: border-box;
    cursor: pointer;
}

    .drop_22 option {
        background: #fff;
        color: #1a1a1a;
    }

    .drop_22:focus {
        outline: none;
        border-color: #fff;
        background: #fff;
    }

/* Override for inputs in admin_right */
.admin_right input,
.admin_right select {
    color: #1a1a1a;
    background: rgba(255, 255, 255, 0.9);
}

    .admin_right input::placeholder {
        color: #666;
    }

    .admin_right input:focus,
    .admin_right select:focus {
        background: #fff;
    }

/* ===== Admin Buttons - Compact ===== */
.cmd_01 {
    height: 24px;
    line-height: 22px;
    font-size: var(--text-sm);
    font-family: var(--font-primary);
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 3px;
    vertical-align: middle;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    cursor: pointer;
    white-space: nowrap;
}

    .cmd_01:hover:not([disabled]) {
        background: rgba(255, 255, 255, 0.2);
    }

    .cmd_01[disabled] {
        opacity: 0.5;
        cursor: default;
    }

.cmd_00 {
    height: 24px;
    line-height: 22px;
    font-size: var(--text-sm);
    font-family: var(--font-primary);
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 3px;
    vertical-align: middle;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.15);
    color: rgba(255, 255, 255, 0.5);
    cursor: default;
    white-space: nowrap;
}

    .cmd_00:not([disabled]) {
        background: rgba(255, 255, 255, 0.85);
        color: #14582d;
        cursor: pointer;
    }

        .cmd_00:not([disabled]):hover {
            background: #fff;
        }

/* ===== Content Form Controls - Updated ===== */
.tbox {
    height: 21px;
    font-size: var(--text-sm);
    font-family: var(--font-primary);
    border: 1px solid #9ca3af;
    padding: 1px 4px;
    box-sizing: border-box;
    width: 100%;
    border-radius: 2px;
}

    .tbox:focus {
        border-color: #0f766e;
        outline: none;
        box-shadow: 0 0 0 1px rgba(15, 118, 110, 0.2);
    }

    .tbox.disabled,
    .tbox:disabled {
        background: #f3f4f6;
    }

/* ===== Content Buttons ===== */
.btn-green {
    background: linear-gradient(to bottom, #15803d 0%, #166534 100%);
    color: #fff;
    border: 1px solid #14532d;
    padding: 1px 8px;
    height: 21px;
    font-size: 12px;
    font-family: inherit;
    cursor: pointer;
    border-radius: 2px;
    white-space: nowrap;
}

    .btn-green:hover:not(:disabled):not(.disabled) {
        background: linear-gradient(to bottom, #16a34a 0%, #15803d 100%);
    }

    .btn-green:disabled,
    .btn-green.disabled {
        background: linear-gradient(to bottom, #9ca3af 0%, #6b7280 100%);
        border-color: #6b7280;
        color: rgba(255, 255, 255, 0.7);
        cursor: default;
        opacity: 0.65;
    }

.btn-gray {
    background: linear-gradient(to bottom, #f9fafb 0%, #e5e7eb 100%);
    color: #374151;
    border: 1px solid #9ca3af;
    padding: 1px 8px;
    height: 21px;
    font-size: 12px;
    font-family: inherit;
    cursor: pointer;
    border-radius: 2px;
    white-space: nowrap;
}

    .btn-gray:hover:not(:disabled):not(.disabled) {
        background: linear-gradient(to bottom, #f3f4f6 0%, #d1d5db 100%);
    }

    .btn-gray:disabled,
    .btn-gray.disabled {
        background: #e5e7eb;
        border-color: #d1d5db;
        color: #9ca3af;
        cursor: default;
        opacity: 0.65;
    }

/* ===== Form Labels ===== */
.lbl {
    text-align: right;
    padding-right: 4px;
    white-space: nowrap;
    color: #374151;
    font-size: 12px;
    font-family: Tahoma, Arial, sans-serif;
}

.ilbl {
    padding: 0 3px;
    white-space: nowrap;
    color: #374151;
    font-size: 12px;
    font-family: Tahoma, Arial, sans-serif;
}

/* ===== Inline Group ===== */
.inline-group {
    display: flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
}

    .inline-group .ilbl,
    .inline-group .lbl {
        flex-shrink: 0;
    }

    .inline-group .tbox:not([class*="w"]) {
        flex: 1;
        min-width: 0;
    }

    .inline-group .tbox[class*="w"] {
        flex: none;
    }

/* ===== Admin Link Styles ===== */
a.b12 {
    font-size: 12px;
    color: #0066cc;
    text-decoration: none;
}

    a.b12:hover {
        text-decoration: underline;
    }

a.f60 {
    color: #ff6600;
    text-decoration: none;
}

a.b {
    color: #000;
    text-decoration: none;
}

a.w {
    color: #fff;
    text-decoration: none;
}

/* ===== Table Styles ===== */
.table {
    width: 100%;
    margin-bottom: 1rem;
    color: inherit;
    border-collapse: collapse;
}

    .table th,
    .table td {
        padding: 0.5rem;
        vertical-align: top;
        border-bottom: 1px solid #dee2e6;
    }

    .table tbody tr:hover {
        background-color: rgba(0, 0, 0, 0.075);
    }

/* Admin table row styles */
tr.header {
    background-color: #c0c0c0 !important;
}

    tr.header td {
        font-weight: bold;
        border-bottom: 1px solid #999;
        white-space: nowrap;
    }

.alt-row {
    background-color: #eaeaea;
}

/* ===== Form Labels - Updated ===== */
.lbl, .ilbl {
    font-size: var(--text-sm);
    font-family: var(--font-primary);
    color: #374151;
}

/* ===== Admin Content Area - Updated ===== */
.admin-content {
    font-family: var(--font-primary);
    font-size: var(--text-sm);
    color: #374151;
}

/* ===== Data Table - Updated ===== */
.data-table {
    font-size: var(--text-xs);
    font-family: var(--font-primary);
}

/* ===== Data Table (Green header) - Complete ===== */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-xs);
    font-family: var(--font-primary);
}

    .data-table thead tr {
        background: linear-gradient(135deg, #0f766e 0%, #15803d 50%, #166534 100%);
        color: #fff;
    }

    .data-table th {
        border: 1px solid #14532d;
        padding: 4px 2px;
        text-align: center;
        font-weight: bold;
    }

    .data-table td {
        border: 1px solid #d1d5db;
        padding: 3px;
        vertical-align: top;
        background: #fff;
    }

    .data-table tbody tr:hover {
        background: #f0fdf4;
    }

        .data-table tbody tr:hover td {
            background: #f0fdf4;
        }

/* ===== Button Styles ===== */
.btn {
    display: inline-block;
    font-weight: 400;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.25rem;
    border: 1px solid transparent;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

.btn-lg {
    padding: 0.5rem 1rem;
    font-size: 1.25rem;
    border-radius: 0.3rem;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    border-radius: 0.2rem;
}

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

    .btn-primary:hover {
        background-color: #155a9c;
        border-color: #14508a;
    }

.btn-secondary {
    color: #fff;
    background-color: #6c757d;
    border-color: #6c757d;
}

    .btn-secondary:hover {
        background-color: #5c636a;
        border-color: #565e64;
    }

.btn-danger {
    color: #fff;
    background-color: #dc3545;
    border-color: #dc3545;
}

    .btn-danger:hover {
        background-color: #bb2d3b;
        border-color: #b02a37;
    }

.btn-link {
    font-weight: 400;
    color: #006bb7;
    text-decoration: underline;
    background-color: transparent;
    border-color: transparent;
}

    .btn-link:hover {
        color: #004a80;
    }

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

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

/* ===== Alert Styles ===== */
.alert {
    position: relative;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.25rem;
}

.alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeeba;
}

.alert-danger {
    color: #842029;
    background-color: #f8d7da;
    border-color: #f5c2c7;
}

.alert-info {
    color: #055160;
    background-color: #cff4fc;
    border-color: #b6effb;
}

.alert-success {
    color: #0f5132;
    background-color: #d1e7dd;
    border-color: #badbcc;
}

/* ===== Form Styles ===== */
.form-label {
    display: inline-block;
    margin-bottom: 0.5rem;
}

.form-control {
    display: block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    appearance: none;
}

    .form-control:focus {
        color: #212529;
        background-color: #fff;
        border-color: #86b7fe;
        outline: 0;
        box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    }

    .form-control::placeholder {
        color: #6c757d;
        opacity: 1;
    }

/* Form Floating */
.form-floating {
    position: relative;
}

    .form-floating > .form-control {
        height: calc(3.5rem + 2px);
        padding: 1rem 0.75rem;
    }

        .form-floating > .form-control::placeholder {
            color: transparent;
        }

        .form-floating > .form-control:focus,
        .form-floating > .form-control:not(:placeholder-shown) {
            padding-top: 1.625rem;
            padding-bottom: 0.625rem;
        }

    .form-floating > .form-label {
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        padding: 1rem 0.75rem;
        pointer-events: none;
        border: 1px solid transparent;
        transform-origin: 0 0;
        transition: opacity 0.1s ease-in-out, transform 0.1s ease-in-out;
        color: #6c757d;
    }

    .form-floating > .form-control:focus ~ .form-label,
    .form-floating > .form-control:not(:placeholder-shown) ~ .form-label {
        opacity: 0.65;
        transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
    }

/* Checkbox styles */
.checkbox {
    display: block;
    margin-bottom: 0.5rem;
}

.form-check {
    display: block;
    min-height: 1.5rem;
    padding-left: 1.5em;
    margin-bottom: 0.125rem;
}

.form-check-input {
    width: 1em;
    height: 1em;
    margin-top: 0.25em;
    vertical-align: top;
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.25);
    border-radius: 0.25em;
    appearance: none;
}

    .form-check-input:checked {
        background-color: #0d6efd;
        border-color: #0d6efd;
    }

        .form-check-input:checked[type="checkbox"] {
            background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
            background-repeat: no-repeat;
            background-position: center;
            background-size: contain;
        }

.form-check-label {
    cursor: pointer;
}

/* ===== Radio & Checkbox (Admin Style) ===== */
input[type="radio"],
input[type="checkbox"] {
    margin: 0 2px;
    vertical-align: middle;
    accent-color: #0f766e;
}

    input[type="radio"] + label,
    input[type="checkbox"] + label {
        vertical-align: middle;
        cursor: pointer;
        margin-right: 6px;
        color: #374151;
    }

/* ===== Glyphicon Placeholder ===== */
.glyphicon {
    display: inline-block;
    font-style: normal;
}

.glyphicon-warning-sign::before {
    content: "??";
}

/* ===== Horizontal Rule ===== */
hr {
    margin: 1rem 0;
    color: inherit;
    border: 0;
    border-top: 1px solid;
    opacity: 0.25;
}

/* ===== Custom Styles ===== */
.content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

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+PHBhdGggZD0iTTI26My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA9NC4wODE1IDI5MSA9NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjAuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDg2IDYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) 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, #6c757d);
    text-align: end;
}

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

/* Recovery code styling */
.recovery-code {
    font-family: monospace;
    font-size: 1rem;
    padding: 0.25rem 0.5rem;
    background-color: #f8f9fa;
    border-radius: 0.25rem;
}

/* ===== Default Avatar ===== */
.default-avatar {
    width: 32px;
    height: 32px;
    border-radius: 5%;
    background-color: #d9d9d9;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23a0a0a0'%3E%3Cpath d='M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 20px 20px;
    display: inline-block;
}

/* ===== No Data Message ===== */
.no-data-message,
.no-data {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    text-align: center;
    padding: 20px;
    color: #666;
    font-size: 14px;
}

/* ===== Breadcrumb Link (blue hyperlink in admin title) ===== */
.breadcrumb-link {
    color: #7dd3fc;
    text-decoration: none;
    transition: color 0.15s ease;
}

    .breadcrumb-link:hover {
        color: #bae6fd;
        text-decoration: underline;
    }

/* ===== Dropdown ===== */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    position: absolute;
    right: 0;
    top: 100%;
    background: #fff;
    border: 1px solid #9ca3af;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    min-width: 160px;
    border-radius: 4px;
}

    .dropdown-menu a {
        display: block;
        padding: 6px 10px;
        color: #374151;
        text-decoration: none;
        border-bottom: 1px solid #e5e7eb;
    }

        .dropdown-menu a:hover {
            background: #f0fdf4;
            color: #166534;
        }

        .dropdown-menu a:last-child {
            border-bottom: none;
        }

/* ===== Auth Pages (Login/Register) ===== */
.auth-container-background {
    background: linear-gradient(135deg, #0f766e 0%, #15803d 50%, #166534 100%);
    height: 100%;
}
.auth-container {
    display: flex;
    flex: 1;
    width: 100%;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #0f766e 0%, #15803d 50%, #166534 100%);
    padding: 24px;
}

.auth-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    padding: 40px;
    gap: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

    /* Login card - standard size */
    .auth-card.login-card {
        width: 420px;
        max-width: 95vw;
    }

    /* Register card - bigger, no scroll */
    .auth-card.register-card {
        width: 520px;
        max-width: 95vw;
        padding: 32px 48px;
        gap: 12px;
    }

        /* Compact fields for register */
        .auth-card.register-card .auth-field {
            margin-bottom: 10px;
        }

        .auth-card.register-card .auth-input {
            padding: 10px 12px;
        }

        .auth-card.register-card .auth-label {
            margin-bottom: 4px;
            font-size: var(--text-sm);
        }

.auth-header {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    text-align: center;
}

.auth-title {
    font-size: var(--text-3xl);
    font-family: var(--font-primary);
    font-weight: var(--font-semibold);
    line-height: 1.3;
    background: linear-gradient(135deg, #0f766e 0%, #15803d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 8px 0;
}

.auth-subtitle {
    font-size: var(--text-md);
    font-family: var(--font-primary);
    font-weight: var(--font-normal);
    line-height: 1.5;
    color: #64748b;
    margin: 0;
}

.auth-error {
    min-height: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    color: #dc2626;
    font-size: 13px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    width: 100%;
    gap: 4px;
}

.auth-field {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 16px;
}

.auth-field-sm {
    margin-bottom: 8px;
}

.auth-label {
    font-size: var(--text-base);
    font-family: var(--font-primary);
    font-weight: var(--font-medium);
    color: #1e293b;
    margin-bottom: 6px;
}

.auth-input {
    font-size: var(--text-md);
    font-family: var(--font-primary);
    font-weight: var(--font-normal);
    color: #1e293b;
    padding: 12px 14px;
    border: 1px solid #d1fae5;
    border-radius: 8px;
    background: #fff;
    transition: all 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

    .auth-input::placeholder {
        color: #94a3b8;
    }

    .auth-input:focus {
        outline: none;
        border-color: #0f766e;
        box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
    }

.auth-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.auth-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

    .auth-checkbox input[type="checkbox"] {
        width: 16px;
        height: 16px;
        accent-color: #0f766e;
        cursor: pointer;
    }

    .auth-checkbox label {
        font-size: 13px;
        font-family: 'Segoe UI', -apple-system, sans-serif;
        font-weight: 400;
        color: #475569;
        cursor: pointer;
    }

.auth-button {
    font-size: var(--text-md);
    font-family: var(--font-primary);
    font-weight: var(--font-semibold);
    color: #fff;
    width: 100%;
    background: linear-gradient(135deg, #0f766e 0%, #15803d 100%);
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px -1px rgba(15, 118, 110, 0.3);
}

    .auth-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 12px -2px rgba(15, 118, 110, 0.4);
    }

    .auth-button:active {
        transform: translateY(0);
    }

.auth-divider {
    display: flex;
    align-items: center;
    width: 100%;
    margin: 20px 0;
    gap: 16px;
}

.auth-divider-line {
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.auth-divider-text {
    font-size: 12px;
    font-family: 'Segoe UI', -apple-system, sans-serif;
    font-weight: 500;
    color: #94a3b8;
}

.auth-link {
    font-size: 12px;
    font-family: 'Segoe UI', -apple-system, sans-serif;
    font-weight: 500;
    color: #0f766e;
    text-decoration: none;
    transition: color 0.2s ease;
}

    .auth-link:hover {
        color: #15803d;
        text-decoration: underline;
    }

.auth-link-bold {
    font-weight: 600;
}

.auth-social {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    width: 100%;
}

.auth-social-row {
    display: flex;
    flex-direction: row;
    gap: 12px;
    width: 100%;
}

.auth-social-button {
    font-size: 13px;
    font-family: 'Segoe UI', -apple-system, sans-serif;
    font-weight: 500;
    color: #1e293b;
    flex: 1;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

    .auth-social-button:hover {
        background: #f0fdf4;
        border-color: #d1fae5;
    }

.auth-social-icon {
    width: 20px;
    height: 20px;
}

.auth-footer {
    font-size: 14px;
    font-family: 'Segoe UI', -apple-system, sans-serif;
    font-weight: 400;
    color: #475569;
    text-align: center;
    margin: 0;
}

/* ===== Content Padded (below admin_title) ===== */
.content-padded {
    padding-left: 5px;
    padding-right: 5px;
    padding-top: 5px;
    padding-bottom: 5px;
}

/* ===== Admin Title Input Widths ===== */
.search-input {
    width: 230px;
}

.search-input-sm {
    width: 150px;
}

.date-input {
    width: 130px;
}

.employee-select {
    width: 200px;
}

/* ===== Breadcrumb Customer Code ===== */
.customer-code {
    color: #fff;
    font-weight: bold;
}

.new-treatment {
    color: #fff;
    font-weight: bold;
}

.current-page {
    color: #fff;
    font-weight: bold;
}

/* ===== Action Icons (Edit/Delete in tables) ===== */
.action-icons {
    float: left;
    width: 68px;
    text-align: right;
}

.action-icon {
    font-size: 14px;
    cursor: pointer;
    padding: 2px;
    transition: opacity 0.15s ease;
}

    .action-icon:hover {
        opacity: 0.7;
    }

    .action-icon.disabled {
        opacity: 0.4;
        pointer-events: none;
        cursor: default;
        color: #6b7280 !important;
    }

/* ===== Clearfix Utility ===== */
.clear {
    clear: both;
}

/* ===== Loading Message ===== */
.loading-message {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
    font-size: var(--text-md);
}

    .loading-message p {
        margin: 0;
    }

/* ===== No Users Message ===== */
.no-users-message {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
    font-size: var(--text-md);
    background: #f9fafb;
    border: 1px dashed #d1d5db;
    border-radius: 4px;
}

    .no-users-message p {
        margin: 0;
    }

/* ===== Permission Table Stack ===== */
.permission-table-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ===== Gear Icon (Advanced settings link) ===== */
.gear-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%236b7280'%3E%3Cpath d='M19.14 12.94c.04-.31.06-.63.06-.94 0-.31-.02-.63-.06-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c.04.31.06.63.06.94s-.02.63-.06.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61l-2.01-1.58zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.15s ease;
}

    .gear-icon:hover {
        opacity: 1;
    }

/* ===== Error UI ===== */
.errorUI {
    color: #dc2626;
    background: #fef2f2;
    border: 1px solid #fecaca;
    padding: 12px 16px;
    border-radius: 4px;
    font-size: var(--text-sm);
}

/* ===== Pagination Row ===== */
.pagination-row {
    text-align: right;
    padding: 10px;
    font-size: var(--text-sm);
    color: #6b7280;
}

/* ===== For error input ===== */
.input-error {
    border-color: #d9534f !important;
}

/* Dropdown overlaps grid */
.dropdown-list {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 100%;
    max-height: 150px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 9999; /* High z-index to overlap grid */
}

.dropdown-item {
    padding: 8px 12px;
    cursor: pointer;
    white-space: nowrap;
}

    .dropdown-item:hover {
        background: #0078d4;
        color: #fff;
    }

/* ===== Radzen DatePicker – match .tbox styling ===== */
.rz-date-scope {
    /*width: 130px !important;*/
}

    .rz-date-scope .rz-inputtext {
        /*height: 21px !important;*/
        border: 1px solid #9ca3af !important;
        padding: 1px 4px !important;
        border-radius: 2px !important;
        box-sizing: border-box !important;
        font-size: var(--text-sm) !important;
        font-family: var(--font-primary) !important;
        background: #fff !important;
        color: #374151 !important;
        box-shadow: none !important;
        outline: none !important;
        transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
    }

        .rz-date-scope .rz-inputtext:hover {
            border-color: #6b7280 !important;
        }

        .rz-date-scope .rz-inputtext:focus {
            border-color: #0f766e !important;
            box-shadow: 0 0 0 1px rgba(15, 118, 110, 0.2) !important;
        }

        .rz-date-scope .rz-inputtext:disabled {
            background: #f3f4f6 !important;
            color: #9ca3af !important;
            cursor: default !important;
        }

        .rz-date-scope .rz-inputtext::placeholder {
            color: #9ca3af !important;
        }

        .rz-date-scope .rz-inputtext::selection {
            background: #0f766e !important;
            color: #fff !important;
        }

/* Validation error – propagate input-error to inner input */
.rz-custom-input-error {}
    .rz-date-scope.rz-custom-input-error .rz-inputtext,
    .rz-date-scope.rz-custom-input-error input.rz-inputtext {
        border-color: red !important;
    }

/* Common style for the sidebar */
.admin_right .rz-date-scope {
    width: 130px;
}

    .admin_right .rz-date-scope .rz-inputtext {
        height: 24px;
        border: 1px solid rgba(255, 255, 255, 0.5) !important;
        background: rgba(255, 255, 255, 0.9) !important;
        color: #1a1a1a !important;
        border-radius: 2px !important;
    }

        .admin_right .rz-date-scope .rz-inputtext::placeholder {
            color: #666 !important;
        }

        .admin_right .rz-date-scope .rz-inputtext:focus {
            outline: none !important;
            border-color: #fff !important;
            background: #fff !important;
        }

/* ===== Radzen DropDown – match .tbox styling (mirrors rz-date-scope) ===== */
.rz-dropdown-scope {
    width: 100% !important;
    /*height: 30px !important;
    padding: 2px 15px !important;*/
}

    /* Main dropdown container */
    .rz-dropdown-scope .rz-dropdown {
        width: 100% !important;
        border: 1px solid #9ca3af !important;
        border-radius: 2px !important;
        box-sizing: border-box !important;
        background: #fff !important;
        box-shadow: none !important;
        outline: none !important;
        font-size: var(--text-sm) !important;
        font-family: var(--font-primary) !important;
        transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
    }

        .rz-dropdown-scope .rz-dropdown:hover {
            border-color: #6b7280 !important;
        }

        /* Focus / open state */
        .rz-dropdown-scope .rz-dropdown.rz-state-focused,
        .rz-dropdown-scope .rz-dropdown:focus-within {
            border-color: #0f766e !important;
            box-shadow: 0 0 0 1px rgba(15, 118, 110, 0.2) !important;
        }

        /* Active / pressed state */
        .rz-dropdown-scope .rz-dropdown:active {
            border-color: #0f766e !important;
            box-shadow: 0 0 0 1px rgba(15, 118, 110, 0.2) !important;
        }

        /* Disabled */
        .rz-dropdown-scope .rz-dropdown.rz-state-disabled {
            background: #f3f4f6 !important;
            color: #9ca3af !important;
            cursor: default !important;
        }

    /* Selected text & label */
    .rz-dropdown-scope .rz-inputtext,
    .rz-dropdown-scope .rz-dropdown-label {
        font-size: var(--text-sm) !important;
        font-family: var(--font-primary) !important;
        color: #374151 !important;
        background: transparent !important;
        padding: 1px 0px !important;
        min-height: unset !important;
        line-height: normal !important;
    }

        /* Kill focus ring on inner elements */
        .rz-dropdown-scope .rz-inputtext:focus,
        .rz-dropdown-scope .rz-inputtext:focus-visible,
        .rz-dropdown-scope .rz-inputtext:active {
            outline: none !important;
            box-shadow: none !important;
            border: none !important;
        }

    /* Placeholder */
    .rz-dropdown-scope .rz-placeholder {
        color: #9ca3af !important;
    }

    /* Text selection */
    .rz-dropdown-scope .rz-inputtext::selection {
        background: #0f766e !important;
        color: #fff !important;
    }

    /* Chevron trigger */
    .rz-dropdown-scope .rz-dropdown-trigger {
        width: 20px !important;
        background: transparent !important;
        color: #6b7280 !important;
    }

    /* Hidden accessibility element */
    .rz-dropdown-scope .rz-helper-hidden-accessible {
        height: 0 !important;
        overflow: hidden !important;
        position: absolute !important;
    }

/* Validation error*/
.rz-dropdown.rz-dropdown-scope.rz-custom-input-error {
    border-color: red !important;
}

/* ===== Radzen DropDown Panel (portal) – uses page-level variable ===== */
:root {
    --rz-panel-font-size: var(--text-sm);
    --rz-panel-font-family: var(--font-primary);
}

.rz-dropdown-panel .rz-dropdown-item {
    font-size: var(--rz-panel-font-size) !important;
    font-family: var(--rz-panel-font-family) !important;
}

.rz-dropdown-panel .rz-dropdown-filter {
    font-size: var(--rz-panel-font-size) !important;
    font-family: var(--rz-panel-font-family) !important;
}