html, body, #app {
    height: 100vh;
    overflow: auto;
}

.mud-dialog-title {
    padding: 16px 24px 6px 24px !important;
}

.mud-table-cell .mud-checkbox > .mud-icon-button {
    color: var(--mud-palette-primary) !important;
}

.blur-bg {
    backdrop-filter: blur(2px);
}

#editor {
    border-radius: 4px;
    overflow: hidden;
}

a:hover, a:active {
    color: #0085CA;
}

.mud-button {
    text-transform: none !important;
}

.mud-tab {
    text-transform: none !important;
}

.mud-input {
    font-size: 14px !important;
    background: #fff;
}

.mud-input-label-outlined {
    font-size: 14px !important;
    margin-top: -2px;
}

.mud-list-item-text > p {
    font-size: 14px;
}

.mud-checkbox > p {
    font-size: 14px;
    padding-top: 1px;
}

.mud-input-adornment.mud-input-adornment-end.mud-text > p {
    font-size: 13px;
    font-weight: 500;
}

li.mud-breadcrumb-item.mud-disabled > a {
    color: var(--mud-palette-primary);
}

.mud-table-cell {
    --mud-palette-table-lines: #eee;
}

.highlight {
    background-color: red;
}

.mud-table-pagination-toolbar {
    border-top: 0px !important;
}

.mud-table-sort-label {
    color: #1f2a44 !important;
    font-weight: 600 !important;
}

.mud-table-sort-label:hover,
.mud-table-sort-label.mud-table-sort-label-active {
    color: #0085CA !important;
}

.mud-switch-label-medium {
    font-size: .875rem !important;
}

.mud-input-slot:empty:before {
    content: attr(placeholder);
    color: #ccc;
    pointer-events: none;
}

.highlight {
    background-color: yellow;
    font-weight: bold;
}

.highlight-yellow {
    background-color: yellow;
    font-weight: bold;
}

.highlight-orange {
    background-color: orange;
    font-weight: bold;
}

.highlight-green {
    background-color: lawngreen;
    font-weight: bold;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
}

.dashboard-widget {
    min-width: 0;
}

.dashboard-widget-card {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.dashboard-widget-card .mud-card-content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.dashboard-widget-card .mud-chart,
.dashboard-widget-card .mud-chart canvas,
.dashboard-widget-card .mud-chart svg {
    width: 100% !important;
    height: 100% !important;
}

.dashboard-widget-card .mud-chart,
.dashboard-widget-card .mud-chart svg {
    overflow: visible;
}

.dashboard-chart {
    min-height: 220px;
}

.donut-inner-text {
    fill: #444;
    font-weight: 400;
    font-size: 18px;
}

.donut-inner-value {
    font-size: 32px;
}

.dashboard-fab {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1000;
}

.dashboard-fab-button {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 999px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}


@media (max-width: 900px) {
    .dashboard-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .dashboard-grid {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
}

.auth-shell {
    min-height: 100dvh;
    background:
        radial-gradient(circle at 50% 24%, rgba(255, 255, 255, 0.36), transparent 30%),
        linear-gradient(132deg, #0085ca 0%, #0078ba 45%, #00a1e6 100%);
    position: relative;
    overflow: hidden;
}

.auth-shell::before,
.auth-shell::after {
    content: "";
    position: absolute;
    inset: auto;
    pointer-events: none;
}

.auth-shell::before {
    width: 86vw;
    height: 46vh;
    left: -14vw;
    bottom: -14vh;
    border-top: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 50% 50% 0 0;
    transform: rotate(8deg);
}

.auth-shell::after {
    width: 210px;
    height: 170px;
    right: 10vw;
    top: 11vh;
    opacity: 0.36;
    background-image: radial-gradient(rgba(255, 255, 255, 0.95) 1px, transparent 1px);
    background-size: 16px 16px;
}

.auth-main {
    min-height: 100dvh;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.auth-container {
    min-height: 100dvh;
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: clamp(44px, 13vh, 112px) 20px 48px 20px;
    box-sizing: border-box;
}

.auth-container > form {
    width: min(100%, 520px);
    margin: 0 auto;
}

.auth-container > .auth-card {
    width: min(100%, 520px);
    margin: 0 auto;
}

.auth-card {
    width: 100%;
    border-radius: 20px !important;
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: 0 26px 70px rgba(8, 44, 76, 0.22) !important;
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(14px);
}

.auth-card .mud-card-content {
    padding: 44px 48px 28px 48px;
}

.auth-card .mud-card-actions {
    padding: 0 48px 44px 48px;
}

.auth-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 24px;
}

.auth-logo {
    width: 82px;
    height: 82px;
    border-radius: 999px;
    box-shadow: 0 18px 42px rgba(0, 96, 150, 0.28);
}

.auth-title {
    margin: 0;
    color: #0f1b33;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.14;
    text-align: center;
}

.auth-title--legacy {
    text-align: left;
    font-size: 2rem;
    font-weight: 300;
    line-height: 1.14;
    width: 100%;
}

.auth-title--legacy span {
    display: block;
    color: #0085ca;
    font-weight: 600;
}

.auth-subtitle {
    color: #5d6a7f;
    font-size: 0.92rem;
    text-align: center;
    margin: 10px 0 30px 0;
}

.auth-field-stack {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-field-stack .mud-input-control {
    margin-top: 0;
}

.auth-field-stack .mud-input-helper-text {
    color: #728096;
    font-size: 0.78rem;
}

.auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 10px;
}

.auth-options .mud-checkbox > p,
.auth-code-options .mud-checkbox > p {
    color: #39465d;
}

.auth-action {
    width: 100%;
    height: 48px;
    border-radius: 7px !important;
    box-shadow: none !important;
    font-weight: 600 !important;
}

.auth-secondary-action {
    width: 100%;
    height: 44px;
    border-radius: 7px !important;
}

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

.auth-inline-link {
    font-weight: 600;
    font-size: inherit !important;
    line-height: inherit !important;
}

.auth-options {
    font-size: 0.875rem;
}

.auth-options .auth-inline-link,
.auth-support .auth-inline-link {
    font-size: inherit !important;
}

.auth-status {
    min-height: 22px;
    margin-top: 14px;
    text-align: center;
    font-size: 0.88rem;
}

.auth-support {
    margin-top: 26px;
    padding-top: 18px;
    border-top: 1px solid #e8edf4;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #5d6a7f;
    font-size: 0.84rem;
}

.auth-link-row {
    margin-top: 22px;
    display: flex;
    justify-content: center;
}

.auth-code-options {
    margin-top: 12px;
    display: grid;
    gap: 2px;
}

.auth-success-panel {
    border: 1px solid #c8efd6;
    background: #f4fbf6;
    border-radius: 10px;
    padding: 18px;
    text-align: center;
}

.auth-access-code {
    color: #0085ca;
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    text-align: center;
    margin-bottom: 8px;
}

.auth-error-card .mud-card-content {
    padding-bottom: 20px;
}

.auth-error-card .auth-brand {
    margin-bottom: 22px;
}

.auth-error-card .auth-subtitle {
    max-width: 390px;
    margin: 12px auto 8px auto;
    line-height: 1.55;
}

@media (max-width: 600px) {
    .auth-container {
        padding: 24px 14px;
        align-items: center;
    }

    .auth-card .mud-card-content {
        padding: 32px 24px 22px 24px;
    }

    .auth-card .mud-card-actions {
        padding: 0 24px 32px 24px;
    }

    .auth-title {
        font-size: 1.74rem;
    }

    .auth-options {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }
}
