/* Devontra visual system: navy, cyan, emerald. */

:root {
    --dv-navy: #042240;
    --dv-cyan: #01C1F7;
    --dv-blue: #007AC1;
    --dv-emerald: #10B981;
    --dv-ice: #E5F6FE;
    --dv-indigo: #818CF8;
    --dv-muted: #afc6d8;
    --dv-nav: #E5F6FE;
    --dv-side: #042240;
    --dv-page: #0a2e4d;
    --dv-card: #14527a;
}

html, body, .mud-layout, .main-content-area, .auth-shell, .auth-form-panel {
    font-family: Arial, Helvetica, sans-serif;
}

html.mud-dark {
    background: var(--dv-page);
}

html:not(.mud-dark) {
    background: var(--dv-ice);
}

.mud-layout {
    height: auto !important;
    min-height: 100dvh;
}

.main-content-area,
.mud-main-content {
    box-sizing: border-box;
    min-height: 100dvh !important;
    padding-bottom: 0 !important;
}

html:not(.mud-dark) body,
html:not(.mud-dark) .mud-layout,
html:not(.mud-dark) .main-content-area,
html:not(.mud-dark) .mud-main-content {
    background: var(--dv-ice) !important;
}

html.mud-dark body,
html.mud-dark .mud-layout,
html.mud-dark .main-content-area,
html.mud-dark .mud-main-content {
    background: var(--dv-page) !important;
}

.mud-appbar.app-bar-root {
    background: var(--dv-nav) !important;
    color: var(--dv-navy) !important;
    border-bottom: 2px solid var(--dv-cyan) !important;
    box-shadow: none !important;
}

.app-bar-user {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: min(320px, 34vw);
    margin-right: 6px;
    color: var(--dv-navy);
}

.app-bar-user-email {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

html.mud-dark .mud-drawer.drawer-root,
html.mud-dark .drawer-root .mud-drawer-content {
    background: var(--dv-side) !important;
    color: var(--dv-ice) !important;
}

html:not(.mud-dark) .mud-drawer.drawer-root,
html:not(.mud-dark) .drawer-root .mud-drawer-content {
    background: #ffffff !important;
    color: var(--dv-navy) !important;
}

html:not(.mud-dark) .drawer-root .mud-nav-link,
html:not(.mud-dark) .drawer-root .mud-nav-link-text,
html:not(.mud-dark) .drawer-root .mud-nav-link-icon,
html:not(.mud-dark) .drawer-root .mud-expand-icon .mud-icon-root {
    color: var(--dv-navy) !important;
}

html:not(.mud-dark) .nav-link-item.mud-nav-link.active,
html:not(.mud-dark) .nav-link-item.mud-nav-link.active .mud-nav-link-icon,
html:not(.mud-dark) .nav-drop > .mud-nav-link.mud-expanded,
html:not(.mud-dark) .nav-drop > .mud-nav-link.mud-expanded .mud-nav-link-icon {
    color: #007AC1 !important;
}

html:not(.mud-dark) .app-bar-root .mud-icon-button .mud-icon-root,
html:not(.mud-dark) .mud-icon-button-color-default .mud-icon-root,
html:not(.mud-dark) .mud-input-adornment .mud-icon-root,
html:not(.mud-dark) .mud-select .mud-icon-root,
html:not(.mud-dark) .mud-picker .mud-icon-button .mud-icon-root {
    color: var(--dv-navy) !important;
}

html:not(.mud-dark) .mud-input-label {
    color: var(--dv-navy) !important;
    -webkit-text-fill-color: var(--dv-navy);
}

html:not(.mud-dark) .mud-input-label-outlined {
    background-color: #ffffff !important;
}

html:not(.mud-dark) .mud-input-slot::placeholder,
html:not(.mud-dark) .select-placeholder .mud-select-input {
    color: rgba(4, 34, 64, 0.62) !important;
    -webkit-text-fill-color: rgba(4, 34, 64, 0.62);
}

html.mud-dark .mud-input-label {
    color: var(--dv-ice) !important;
    -webkit-text-fill-color: var(--dv-ice);
}

html.mud-dark .mud-input-label-outlined {
    background-color: var(--dv-card) !important;
}

html.mud-dark .mud-input-slot,
html.mud-dark .mud-input input,
html.mud-dark .mud-input textarea,
html.mud-dark .mud-select-input {
    color: var(--dv-ice) !important;
    -webkit-text-fill-color: var(--dv-ice) !important;
    caret-color: var(--dv-cyan);
}

html.mud-dark .mud-input-slot::placeholder,
html.mud-dark .select-placeholder .mud-select-input,
html.mud-dark .select-placeholder-item,
html.mud-dark .select-placeholder-item .mud-list-item-text {
    color: rgba(229, 246, 254, 0.78) !important;
    -webkit-text-fill-color: rgba(229, 246, 254, 0.78);
}

html:not(.mud-dark) .select-placeholder-item,
html:not(.mud-dark) .select-placeholder-item .mud-list-item-text {
    color: rgba(4, 34, 64, 0.62) !important;
    -webkit-text-fill-color: rgba(4, 34, 64, 0.62);
}

html.mud-dark .mud-card,
html.mud-dark .mud-paper {
    background-color: var(--dv-card) !important;
}

.app-bar-logo-ring {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--dv-ice), var(--dv-cyan) 48%, var(--dv-emerald)) !important;
    color: var(--dv-navy) !important;
    box-shadow: 0 8px 22px rgba(1, 193, 247, 0.22);
}

.app-bar-logo-ring .mud-icon-root {
    color: var(--dv-navy) !important;
}

.app-bar-title {
    font-weight: 500;
    letter-spacing: -0.03em;
}

.drawer-root {
    border-right: 1px solid rgba(1, 193, 247, 0.28) !important;
    box-shadow: 10px 0 28px rgba(0, 0, 0, 0.22);
}

.drawer-user-header {
    background: transparent;
}

.nav-drop > .mud-nav-link .mud-nav-link-text {
    letter-spacing: 0.12em;
    font-size: 11px;
    color: var(--mud-palette-text-secondary);
}

.nav-link-item.mud-nav-link.active,
.nav-drop > .mud-nav-link.mud-expanded {
    background: color-mix(in srgb, var(--dv-cyan) 16%, transparent) !important;
    color: var(--dv-cyan) !important;
}

.mud-typography-h1 { font-size: 1.375rem !important; line-height: 1.3 !important; }
.mud-typography-h2 { font-size: 1.25rem !important; line-height: 1.3 !important; }
.mud-typography-h3 { font-size: 1.125rem !important; line-height: 1.35 !important; }
.mud-typography-h4 { font-size: 1.0625rem !important; line-height: 1.35 !important; }
.mud-typography-h5 { font-size: 0.9375rem !important; line-height: 1.4 !important; }
.mud-typography-h6 { font-size: 0.875rem !important; line-height: 1.4 !important; }
.mud-typography-body1,
.mud-typography-subtitle1 { font-size: 0.875rem !important; line-height: 1.45 !important; }
.mud-typography-body2,
.mud-typography-subtitle2 { font-size: 0.8125rem !important; line-height: 1.45 !important; }
.mud-button-root { font-size: 0.8125rem !important; }

.screen-title,
.ds-page-title,
.mud-typography-h3,
.mud-typography-h4,
.mud-typography-h5 {
    font-weight: 600;
    letter-spacing: -0.02em;
}

.screen-header {
    border-bottom-color: var(--mud-palette-lines-default);
}

.screen-title::before,
.ds-page-title::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 10px;
    border-radius: 50%;
    background: var(--dv-cyan);
    box-shadow: 0 0 0 4px rgba(1, 193, 247, 0.18);
    vertical-align: 0.12em;
}

.mud-card,
.tenant-page-card,
.dash-kpi,
.dash-plan-card {
    border-radius: 20px !important;
    border: 1px solid var(--mud-palette-lines-default) !important;
    box-shadow: none !important;
    position: relative;
}

.mud-card::before,
.dash-kpi::before {
    content: "";
    position: absolute;
    top: 0;
    left: 14%;
    right: 14%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--dv-cyan), var(--dv-emerald), transparent);
    opacity: 0.85;
    pointer-events: none;
}

.mud-button-filled.mud-button-filled-primary {
    background: linear-gradient(105deg, #01C1F7 10%, #01C1F7 58%, #818CF8) !important;
    color: var(--dv-navy) !important;
    border: 1px solid #01C1F7 !important;
    font-weight: 600;
    border-radius: 12px !important;
}

.mud-button-filled.mud-button-filled-primary:hover {
    box-shadow: 0 8px 25px rgba(1, 193, 247, 0.28) !important;
}

.mud-button-filled.mud-button-filled-success,
.mud-button-filled.mud-button-filled-secondary {
    background: var(--dv-emerald) !important;
    color: var(--dv-navy) !important;
    border-radius: 12px !important;
}

.mud-chip {
    border-radius: 999px !important;
}

.dash-shortcut {
    border-radius: 999px;
}

.dash-shortcut:hover {
    border-color: rgba(1, 193, 247, 0.55);
    box-shadow: 0 10px 28px rgba(1, 193, 247, 0.14);
}

.dash-kpi-chat .dash-kpi-icon { background: linear-gradient(160deg, #01C1F7, #007AC1); color: var(--dv-navy); }
.dash-kpi-apt .dash-kpi-icon { background: linear-gradient(160deg, #34D399, #10B981); color: var(--dv-navy); }
.dash-kpi-conv .dash-kpi-icon { background: linear-gradient(160deg, #A5B4FC, #818CF8); color: var(--dv-navy); }
.dash-kpi-hand .dash-kpi-icon { background: linear-gradient(160deg, #FBBF24, #D97706); color: var(--dv-navy); }

.dash-fill-web { background: linear-gradient(90deg, #01C1F7, #007AC1); }
.dash-fill-phone { background: linear-gradient(90deg, #34D399, #10B981); }

.dash-op-remind { background: rgba(1, 193, 247, 0.16); color: #007AC1; }
html.mud-dark .dash-op-remind { color: #01C1F7; }
.dash-op-done { background: rgba(16, 185, 129, 0.16); color: #047857; }
html.mud-dark .dash-op-done { color: #10B981; }

.plan-chat { border-top: 4px solid #01C1F7 !important; }
.plan-telefon { border-top: 4px solid #10B981 !important; }
.plan-komplett { border-top: 4px solid #818CF8 !important; }

.auth-hero-column {
    background:
        radial-gradient(ellipse at 20% 20%, rgba(1, 193, 247, 0.22), transparent 55%),
        radial-gradient(ellipse at 90% 80%, rgba(16, 185, 129, 0.16), transparent 50%),
        var(--dv-navy) !important;
    color: var(--dv-ice);
}

.auth-hero-column::before {
    background:
        linear-gradient(115deg, transparent 20%, rgba(1, 193, 247, 0.18), transparent 55%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 700'%3E%3Cpath d='M-100 620C250 620 270 100 650 240S950 680 1300 30' fill='none' stroke='%2301C1F7' stroke-opacity='.35' stroke-width='2'/%3E%3Cpath d='M-100 660C250 660 310 150 690 290S990 730 1340 80' fill='none' stroke='%2310B981' stroke-opacity='.28' stroke-width='2'/%3E%3C/svg%3E");
    background-size: cover;
    opacity: 1;
}

.dv-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    font-size: 12px;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: rgba(229, 246, 254, 0.78);
}

.dv-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--dv-cyan);
    box-shadow: 0 0 0 4px rgba(1, 193, 247, 0.2);
}

.auth-hero-text {
    font-weight: 500 !important;
    letter-spacing: -0.035em;
}

.btn-primary {
    color: var(--dv-navy);
    background-color: var(--dv-cyan);
    border-color: var(--dv-cyan);
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--dv-cyan);
    outline-offset: 3px;
}

.dv-lockup {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;
    flex: 0 0 auto !important;
    margin: 0 10px 0 0 !important;
    text-decoration: none !important;
    color: inherit !important;
}

.dv-lockup-mark {
    display: block !important;
    width: 47px !important;
    height: 29px !important;
    max-width: none !important;
    object-fit: contain !important;
    flex: 0 0 47px !important;
}

.dv-lockup-copy {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    line-height: 1 !important;
}

.dv-lockup-name {
    display: block !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 26px !important;
    font-weight: 600 !important;
    font-style: normal !important;
    line-height: 1.05 !important;
    letter-spacing: -1.3px !important;
    color: #042240 !important;
}

.dv-lockup-devi {
    color: #01C1F7 !important;
    font-style: normal !important;
    font-weight: 600 !important;
    font-family: Arial, Helvetica, sans-serif !important;
}

.auth-hero-column .dv-lockup-name,
html.mud-dark .mud-card .dv-lockup-name,
html.mud-dark .auth-hero-column .dv-lockup-name {
    color: #E5F6FE !important;
}

.app-bar-root .dv-lockup-name {
    color: #042240 !important;
}

.app-bar-root .dv-lockup-by {
    color: #475569 !important;
}

.dv-lockup-by {
    display: block !important;
    margin-top: 4px !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 10px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    letter-spacing: 2px !important;
    color: #afc6d8 !important;
}

html:not(.mud-dark) .mud-card .dv-lockup-by {
    color: #475569 !important;
}

.lp-powered i {
    font-family: Georgia, "Times New Roman", serif;
    font-style: italic;
    color: #007AC1;
}
