/* DoorTech brand theme: the navy and red used throughout the DoorTech identity. */
html.theme-doortech {
    color-scheme: light;
    --doortech-blue: #2B2B83;
    --doortech-blue-hover: #24246e;
    --doortech-red: #dc2626;
    --doortech-red-hover: #b91c1c;
    --doortech-pale: #eef2f8;
}

html.theme-doortech body {
    background-color: #f5f7fa;
    color: #17243b;
}

html.theme-doortech .bg-gray-50,
html.theme-doortech .bg-slate-50 {
    background-color: #f5f7fa !important;
}

html.theme-doortech .bg-indigo-700,
html.theme-doortech .bg-indigo-600,
html.theme-doortech .bg-blue-700,
html.theme-doortech .bg-blue-600 {
    background-color: var(--doortech-blue) !important;
}

html.theme-doortech .hover\:bg-indigo-800:hover,
html.theme-doortech .hover\:bg-indigo-700:hover,
html.theme-doortech .hover\:bg-blue-800:hover,
html.theme-doortech .hover\:bg-blue-700:hover {
    background-color: var(--doortech-blue-hover) !important;
}

/* Keep brand red for primary actions; neutral navigation and information stay blue. */
html.theme-doortech :is(button, a).bg-indigo-700,
html.theme-doortech :is(button, a).bg-indigo-600,
html.theme-doortech :is(button, a).bg-blue-700,
html.theme-doortech :is(button, a).bg-blue-600 {
    background-color: var(--doortech-red) !important;
}

html.theme-doortech :is(button, a).hover\:bg-indigo-800:hover,
html.theme-doortech :is(button, a).hover\:bg-indigo-700:hover,
html.theme-doortech :is(button, a).hover\:bg-blue-800:hover,
html.theme-doortech :is(button, a).hover\:bg-blue-700:hover {
    background-color: var(--doortech-red-hover) !important;
}

html.theme-doortech :is(button, a).bg-indigo-700,
html.theme-doortech :is(button, a).bg-indigo-600,
html.theme-doortech :is(button, a).bg-blue-700,
html.theme-doortech :is(button, a).bg-blue-600 {
    box-shadow: 0 2px 8px rgb(220 38 38 / 16%);
}

html.theme-doortech .bg-indigo-50,
html.theme-doortech .bg-blue-50,
html.theme-doortech .bg-blue-100 {
    background-color: var(--doortech-pale) !important;
}

html.theme-doortech .text-indigo-700,
html.theme-doortech .text-indigo-800,
html.theme-doortech .text-blue-700,
html.theme-doortech .text-blue-800 {
    color: var(--doortech-blue) !important;
}

html.theme-doortech .text-indigo-600,
html.theme-doortech .text-blue-600,
html.theme-doortech .text-red-600,
html.theme-doortech .text-red-700 {
    color: var(--doortech-red) !important;
}

html.theme-doortech .border-indigo-200,
html.theme-doortech .border-indigo-300,
html.theme-doortech .border-blue-200,
html.theme-doortech .border-blue-300 {
    border-color: #cbd5e1 !important;
}

html.theme-doortech .border-indigo-500,
html.theme-doortech .border-blue-500,
html.theme-doortech .focus\:border-indigo-500:focus,
html.theme-doortech .focus\:border-blue-500:focus {
    border-color: var(--doortech-red) !important;
}

html.theme-doortech .focus\:ring-indigo-500:focus,
html.theme-doortech .focus\:ring-blue-500:focus {
    --tw-ring-color: rgb(220 38 38 / 22%) !important;
}

html.theme-doortech .\[\&\.active\]\:bg-red-50.active {
    background-color: #fef2f2 !important;
}

html.theme-doortech .\[\&\.active\]\:text-blue-700.active,
html.theme-doortech .\[\&\.active_\*\]\:text-red-600.active,
html.theme-doortech .\[\&\.active\]\:text-red-600.active {
    color: var(--doortech-red) !important;
}

html.theme-doortech .brand-loader-spin {
    border-top-color: var(--doortech-red);
}

/* Keep the brand theme visibly distinct from the neutral light theme. */
html.theme-doortech {
    --doortech-page: #e9eef6;
    --doortech-surface: #f3f6fb;
    --doortech-border: #cbd6e5;
}

html.theme-doortech body,
html.theme-doortech .bg-gray-50,
html.theme-doortech .bg-slate-50 {
    background-color: var(--doortech-page) !important;
}

html.theme-doortech .bg-white {
    background-color: var(--doortech-surface) !important;
}

html.theme-doortech .border-gray-100,
html.theme-doortech .border-gray-200,
html.theme-doortech .border-slate-100,
html.theme-doortech .border-slate-200 {
    border-color: var(--doortech-border) !important;
}

html.theme-doortech .app-header {
    background-color: var(--doortech-blue) !important;
    border-color: #1a3157 !important;
    color: #f8fafc;
}

html.theme-doortech .app-header h1,
html.theme-doortech .app-header .text-gray-500,
html.theme-doortech .app-header .text-slate-600,
html.theme-doortech .app-header .text-slate-700,
html.theme-doortech .app-header .text-slate-900 {
    color: #f8fafc !important;
}

html.theme-doortech .app-header > div:first-child > button {
    background-color: rgb(255 255 255 / 10%) !important;
    border-color: rgb(255 255 255 / 24%) !important;
    color: #fff !important;
}

html.theme-doortech .app-header > div:first-child > button:hover,
html.theme-doortech .app-header .theme-switcher:hover,
html.theme-doortech .app-header .relative > button:hover {
    background-color: rgb(255 255 255 / 16%) !important;
}

html.theme-doortech .app-header .theme-switcher {
    color: #fff !important;
}

html.theme-doortech .app-header > div > button:hover,
html.theme-doortech .app-header > div > div.relative > button:hover,
html.theme-doortech .app-sidebar > div > div:first-child > button:hover {
    background-color: rgb(255 255 255 / 16%) !important;
    color: #fff !important;
}

html.theme-doortech .app-header .notification-menu,
html.theme-doortech .app-header .notification-menu :is(h2, a) {
    color: #17243b !important;
}

html.theme-doortech .app-header .profile-menu-surface {
    background-color: var(--doortech-surface) !important;
    color: #17243b !important;
}

html.theme-doortech .app-header .profile-menu-surface .text-gray-500,
html.theme-doortech .app-header .profile-menu-surface .text-gray-700,
html.theme-doortech .app-header .profile-menu-surface .text-gray-900 {
    color: #26364e !important;
}

html.theme-doortech .app-header .profile-menu-surface .text-white {
    color: #17243b !important;
}

html.theme-doortech .app-sidebar {
    background-color: var(--doortech-blue) !important;
    border-color: #1a3157 !important;
    color: #e8eef8 !important;
}

html.theme-doortech .app-sidebar > div > div,
html.theme-doortech .app-sidebar nav > div > div {
    border-color: rgb(255 255 255 / 16%) !important;
}

html.theme-doortech .app-sidebar nav a,
html.theme-doortech .app-sidebar nav button {
    color: #e8eef8 !important;
}

html.theme-doortech .app-sidebar nav a:hover,
html.theme-doortech .app-sidebar nav button:hover {
    background-color: rgb(255 255 255 / 10%) !important;
    color: #fff !important;
}

html.theme-doortech .app-sidebar nav a.active {
    background-color: rgb(255 255 255 / 14%) !important;
    box-shadow: inset -3px 0 0 var(--doortech-red);
    color: #fff !important;
}

html.theme-doortech .app-sidebar nav svg {
    color: #afc2e0 !important;
}

html.theme-doortech .app-sidebar nav a.active svg {
    color: #ff9a9a !important;
}

html.theme-doortech .app-sidebar .bg-slate-50,
html.theme-doortech .app-sidebar .bg-white {
    background-color: rgb(255 255 255 / 10%) !important;
}

html.theme-doortech .app-sidebar .text-slate-800,
html.theme-doortech .app-sidebar .text-slate-500 {
    color: #d4deed !important;
}

html.theme-doortech .app-sidebar img[src*="doortech-light"] {
    display: none !important;
}

html.theme-doortech .app-sidebar img[src*="doortech-dark"] {
    display: block !important;
}

html.theme-doortech .app-mobile-nav {
    background-color: var(--doortech-blue) !important;
    border-color: #1a3157 !important;
}

html.theme-doortech .app-mobile-nav a {
    color: #cbd6e8 !important;
}

html.theme-doortech .app-mobile-nav a.active {
    color: #fff !important;
}

html.theme-doortech main .border,
html.theme-doortech [role="dialog"] .border {
    border-color: var(--doortech-border);
}

html.theme-doortech .login-page-shell {
    background-color: var(--doortech-blue) !important;
}

html.theme-doortech .initial-app-loader {
    background-color: var(--doortech-blue) !important;
    color: #fff !important;
}

html.theme-doortech .initial-app-loader img.dark\:block {
    display: block !important;
}

html.theme-doortech .initial-app-loader img.dark\:hidden {
    display: none !important;
}

html.theme-doortech .initial-app-loader .brand-loader-spin {
    border-color: rgb(255 255 255 / 35%) !important;
    border-top-color: #fff !important;
}

html.theme-doortech .login-card {
    background-color: var(--doortech-surface) !important;
    border-color: rgb(255 255 255 / 24%) !important;
}

html.theme-doortech .login-brand-footer,
html.theme-doortech .login-brand-footer > div,
html.theme-doortech .login-brand-version,
html.theme-doortech .login-brand-company {
    color: #fff !important;
}

html.theme-doortech .login-brand-separator {
    color: rgb(255 255 255 / 65%) !important;
}

html.theme-doortech .login-page-shell .text-blue-600,
html.theme-doortech .login-page-shell .text-blue-700 {
    color: var(--doortech-blue) !important;
}

html.theme-doortech .login-page-shell .focus\:ring-blue-600:focus,
html.theme-doortech .login-page-shell .focus\:ring-blue-500:focus {
    --tw-ring-color: rgb(43 43 131 / 22%) !important;
}
