:root {
    --seidor-sidebar: var(--tenant-sidebar, #0B1628);
    --seidor-sidebar-2: #111F35;
    --seidor-sidebar-text: var(--tenant-sidebar-text, #F8FAFC);
    --seidor-sidebar-muted: var(--tenant-sidebar-muted, #DDE7F6);
    --seidor-sidebar-heading: var(--tenant-sidebar-heading, #F8FAFC);
    --seidor-sidebar-card-bg: var(--tenant-sidebar-card, rgba(0, 0, 0, .18));
    --seidor-sidebar-border-color: var(--tenant-sidebar-border, rgba(255, 255, 255, .14));
    --seidor-sidebar-input-bg: var(--tenant-sidebar-input, rgba(255, 255, 255, .08));
    --seidor-border: #E5E7EB;
    --seidor-main: #F4F6FA;
    --seidor-blue: var(--tenant-primary, #3B82F6);
    --seidor-blue-dark: var(--tenant-primary, #2563EB);
    --seidor-text: #111827;
    --seidor-muted: #6B7280;
    --seidor-danger: #DC2626;
}

body,
.font-sans {
    background: var(--seidor-main);
    font-family: "Plus Jakarta Sans", Inter, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji" !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600 !important;
}

[x-cloak] {
    display: none !important;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):not([type="file"]):not([type="button"]):not([type="submit"]):not([type="reset"]),
select,
textarea {
    min-height: 0 !important;
    padding-top: 12px !important;
    padding-bottom: 12px !important;
    font-size: 15px !important;
    line-height: 1.45 !important;
}

.seidor-logo {
    display: block;
    width: 150px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.seidor-logo--auth {
    width: 190px;
    max-width: 52vw;
}

.seidor-sidebar {
    background: var(--seidor-sidebar) !important;
}

.seidor-sidebar-border {
    border-color: var(--seidor-sidebar-border-color) !important;
}

.seidor-sidebar-card {
    background: var(--seidor-sidebar-card-bg) !important;
}

.seidor-link {
    color: var(--seidor-sidebar-text) !important;
    border-radius: 0 !important;
}

.seidor-link:hover {
    color: var(--seidor-sidebar-text) !important;
    background: color-mix(in srgb, var(--tenant-primary, #3B82F6) 28%, transparent) !important;
}

.seidor-link-active {
    color: var(--seidor-sidebar-text) !important;
    background: color-mix(in srgb, var(--tenant-primary, #3B82F6) 32%, transparent) !important;
}

.seidor-link-active svg {
    color: var(--seidor-sidebar-text);
}

.seidor-sidebar .sidebar-heading {
    color: var(--seidor-sidebar-heading) !important;
}

.seidor-sidebar .sidebar-user-name {
    color: var(--seidor-sidebar-text) !important;
}

.seidor-sidebar .sidebar-user-role,
.seidor-sidebar .sidebar-logout {
    color: var(--seidor-sidebar-muted) !important;
}

.seidor-sidebar .sidebar-logout:hover {
    color: var(--seidor-sidebar-text) !important;
}

.sidebar-mode-exit {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    color: var(--seidor-sidebar-muted);
    transition: color .15s, background .15s;
}

.sidebar-mode-exit:hover {
    color: var(--seidor-sidebar-text);
    background: var(--seidor-sidebar-card-bg);
}

.sidebar-mode-exit[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    right: 50%;
    bottom: calc(100% + 8px);
    transform: translateX(50%) translateY(4px);
    padding: 6px 9px;
    border-radius: 7px;
    background: #111827;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .12s, transform .12s;
    z-index: 70;
}

.sidebar-mode-exit[data-tooltip]:hover::after {
    opacity: 1;
    transform: translateX(50%) translateY(0);
}

.seidor-topbar {
    height: 56px;
    background: #fff;
    border-bottom: 1px solid var(--seidor-border);
    position: sticky;
    top: 0;
    z-index: 15;
}

.seidor-page {
    background: var(--seidor-main);
}

.seidor-avatar {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: var(--seidor-blue);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.seidor-user-menu {
    min-width: 230px;
    border: 1px solid var(--seidor-border);
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .13), 0 2px 8px rgba(0, 0, 0, .07);
    overflow: hidden;
}

.seidor-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 16px;
    font-size: 13px;
    color: var(--seidor-text);
    background: #fff;
}

.seidor-menu-item:hover {
    background: #F7F8FA;
}

.seidor-menu-item--danger {
    color: var(--seidor-danger);
}

.seidor-menu-item--danger:hover {
    background: #FEF2F2;
}

.seidor-auth-body {
    background: #081426;
}

.seidor-auth-hero {
    background: #10233D !important;
    border-color: rgba(148, 163, 184, .18) !important;
}

.seidor-auth-panel {
    background: #081426 !important;
}

.seidor-auth-heading {
    color: #F3F7FF;
}

.seidor-auth-muted {
    color: #9DBCF4;
}

.seidor-input {
    background: #E8F0FC !important;
    color: #071426 !important;
}

.seidor-input:focus {
    border-color: #60A5FA !important;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, .32) !important;
}

.seidor-button {
    background: #66b6ff !important;
}

.seidor-button:hover {
    background: #4ca7f5 !important;
}

.bg-blue-600,
.bg-indigo-600 {
    background-color: var(--tenant-secondary, #3B82F6) !important;
}

.hover\:bg-blue-700:hover,
.hover\:bg-indigo-700:hover {
    background-color: color-mix(in srgb, var(--tenant-secondary, #3B82F6) 86%, #000) !important;
}

.text-blue-600,
.text-indigo-600 {
    color: var(--tenant-primary, #3B82F6) !important;
}

.focus\:ring-blue-500:focus,
.focus\:ring-indigo-500:focus {
    --tw-ring-color: var(--tenant-primary, #3B82F6) !important;
}

.focus\:border-blue-500:focus,
.focus\:border-indigo-500:focus {
    border-color: var(--tenant-primary, #3B82F6) !important;
}

.seidor-card {
    background: #fff;
    border: 1px solid var(--seidor-border);
    border-radius: 14px;
}

.seidor-action {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--seidor-border);
    border-radius: 8px;
    color: #64748B;
    background: #fff;
    transition: color .15s, border-color .15s, background .15s;
}

.seidor-action:hover {
    color: var(--seidor-blue);
    border-color: #BFDBFE;
    background: #EFF6FF;
}

.seidor-action--danger:hover {
    color: var(--seidor-danger);
    border-color: #FECACA;
    background: #FEF2F2;
}

.seidor-action[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    right: 50%;
    bottom: calc(100% + 8px);
    transform: translateX(50%) translateY(4px);
    padding: 5px 8px;
    border-radius: 6px;
    background: #111827;
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .12s, transform .12s;
    z-index: 50;
}

.seidor-action[data-tooltip]:hover::after {
    opacity: 1;
    transform: translateX(50%) translateY(0);
}

.tenant-select-shell {
    border: 1px solid #DBEAFE;
    border-radius: 14px;
    background: linear-gradient(90deg, #EFF6FF, #ECFEFF);
}

.tenant-combobox {
    position: relative;
}

.tenant-combobox__input {
    width: 100%;
    height: 40px;
    padding: 0 36px 0 34px;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, .28);
    background: var(--seidor-sidebar-input-bg);
    color: var(--seidor-sidebar-text);
    font-size: 14px;
    outline: none;
    transition: border-color .15s, box-shadow .15s, background .15s;
}

.tenant-combobox__input::placeholder {
    color: var(--seidor-sidebar-muted);
}

.tenant-combobox__input:focus {
    border-color: #3B82F6;
    background: var(--seidor-sidebar-input-bg);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .16);
}

.tenant-combobox__search {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--seidor-sidebar-muted);
    pointer-events: none;
    z-index: 2;
}

.tenant-combobox__chevron {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    color: var(--seidor-sidebar-muted);
    border-radius: 6px;
    z-index: 2;
}

.tenant-combobox__chevron:hover {
    color: var(--seidor-sidebar-text);
    background: rgba(255, 255, 255, .08);
}

.tenant-combobox__menu {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    z-index: 60;
    max-height: 220px;
    overflow-y: auto;
    padding: 6px;
    border-radius: 10px;
    border: 1px solid #D1D5DB;
    background: #fff;
    box-shadow: 0 16px 32px rgba(15, 23, 42, .24);
}

.tenant-combobox__option {
    width: 100%;
    display: block;
    padding: 9px 10px;
    border-radius: 7px;
    color: #111827;
    font-size: 14px;
    text-align: left;
    line-height: 1.2;
}

.tenant-combobox__option:hover {
    background: #EFF6FF;
    color: #1D4ED8;
}

.tenant-combobox__empty {
    padding: 10px;
    color: #6B7280;
    font-size: 13px;
}

.tenant-config-card {
    padding: 28px 32px;
}

.tenant-back-button,
.tenant-outline-button,
.tenant-save-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 42px;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    transition: background .15s, color .15s, border-color .15s, box-shadow .15s;
}

.tenant-page-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.tenant-page-heading h1 {
    margin: 0;
    color: #06152D;
    font-size: 26px;
    font-weight: 600;
}

.tenant-page-heading p {
    margin-top: 4px;
    color: #53657F;
    font-size: 16px;
}

.tenant-back-button,
.tenant-outline-button {
    border: 1px solid #1C77FF;
    background: #fff;
    color: #0B66FF;
    box-shadow: 0 4px 10px rgba(28, 119, 255, .10);
}

.tenant-back-button:hover,
.tenant-outline-button:hover {
    background: #EFF6FF;
}

.tenant-panel-body > .tenant-outline-button,
.repository-section + .tenant-outline-button {
    margin-top: 18px;
}

.tenant-save-button {
    border: 1px solid var(--tenant-secondary, #1C77FF);
    background: var(--tenant-secondary, #1C77FF);
    color: #fff;
    box-shadow: 0 8px 18px rgba(28, 119, 255, .22);
}

.tenant-save-button:hover {
    background: color-mix(in srgb, var(--tenant-secondary, #1C77FF) 88%, #000);
}

.tenant-tabs {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 56px;
    padding: 7px;
    border: 1px solid #DDE6F3;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .05);
}

.tenant-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 126px;
    height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    color: #42526B;
    font-size: 15px;
    font-weight: 700;
    transition: background .15s, color .15s;
}

.tenant-tab:hover {
    background: #F1F5F9;
}

.tenant-tab--active,
.tenant-tab--active:hover {
    background: #2477FF;
    color: #fff;
}

.tenant-config-panel {
    background: #fff;
    border: 1px solid #DDE6F3;
    border-radius: 18px;
    overflow: hidden;
}

.tenant-panel-header {
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: 108px;
    padding: 24px 30px;
    border-bottom: 1px solid #E7EDF5;
}

.tenant-panel-header h3 {
    margin: 0;
    color: #06152D;
    font-size: 20px;
    font-weight: 600;
}

.tenant-panel-header p {
    margin-top: 4px;
    color: #53657F;
    font-size: 15px;
}

.tenant-panel-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 14px;
}

.tenant-panel-icon--blue {
    background: #DBEAFE;
    color: #2477FF;
}

.tenant-panel-icon--green {
    background: #D1FAE5;
    color: #059669;
}

.tenant-panel-icon--pink {
    background: #FCE7F3;
    color: #DB2777;
}

.tenant-panel-icon--amber {
    background: #FEF3C7;
    color: #D97706;
}

.tenant-panel-icon--violet {
    background: #EDE9FE;
    color: #4F46E5;
}

.tenant-panel-body {
    padding: 32px 30px;
}

.tenant-brand-body {
    padding-top: 28px;
}

.tenant-mail-grid {
    gap: 38px 32px;
}

.tenant-field-label {
    display: block;
    margin-bottom: 12px;
    color: #0F2240;
    font-size: 15px;
    font-weight: 600;
}

.tenant-field {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid #C8D5E6;
    border-radius: 13px;
    background: #fff;
    color: #06152D;
    font-size: 15px;
    line-height: 1.45;
    outline: none;
}

.tenant-field:focus {
    border-color: #2477FF;
    box-shadow: 0 0 0 4px rgba(36, 119, 255, .12);
}

.tenant-field-help {
    margin-top: 12px;
    color: #64748B;
    font-size: 14px;
}

.tenant-repository-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tenant-repository-option {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 42px;
    padding: 9px 14px;
    border: 1px solid #C8D5E6;
    border-radius: 12px;
    background: #fff;
    color: #0F2240;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.tenant-repository-option input {
    width: 16px;
    height: 16px;
    accent-color: #2477FF;
}

.repository-section {
    padding-top: 10px;
}

.repository-section .grid,
.tenant-panel-body .grid {
    row-gap: 34px;
    column-gap: 32px;
}

.tenant-panel-body.grid,
.tenant-mail-grid {
    gap: 34px 32px !important;
}

.repository-section .md\:grid-cols-2,
.tenant-panel-body .md\:grid-cols-2 {
    column-gap: 32px !important;
}

.tenant-form-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    padding-top: 24px;
    border-top: 1px solid #DDE6F3;
}

.tenant-brand-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr);
    gap: 28px;
    align-items: start;
}

.tenant-section-title {
    display: block;
    margin-bottom: 14px;
    color: #374151;
    font-size: 15px;
    font-weight: 700;
}

.tenant-logo-preview {
    min-height: 176px;
    border: 2px dashed #CBD5E1;
    border-radius: 14px;
    background: #F8FAFC;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    overflow: hidden;
}

.tenant-logo-preview__frame {
    width: 112px;
    height: 112px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #0B1628;
    padding: 12px;
}

.tenant-logo-preview__frame--custom {
    background: transparent;
    padding: 0;
}

.tenant-logo-preview__image {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.tenant-logo-preview__caption {
    margin-top: 14px;
    color: #64748B;
    font-size: 13px;
}

.tenant-file-input {
    height: auto;
    min-height: 0 !important;
    padding: 10px 12px !important;
    background: #fff;
    line-height: 1.45;
}

.tenant-file-input::file-selector-button {
    margin-top: 0;
    margin-bottom: 0;
}

.tenant-admin-card {
    padding: 24px 20px;
    border: 1px solid #DDE6F3;
    border-radius: 16px;
    background: #F8FAFC;
}

.tenant-admin-card__title {
    color: #06152D;
    font-size: 16px;
    font-weight: 800;
}

.tenant-admin-card__hint {
    margin-top: 3px;
    color: #53657F;
    font-size: 14px;
}

.tenant-admin-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    color: #DC2626;
    background: #FEF2F2;
    border: 1px solid #FECACA;
}

.tenant-admin-remove:hover {
    background: #FEE2E2;
}

.tenant-platform-switch {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    color: #0F2240;
    font-size: 16px;
    font-weight: 600;
}

.tenant-platform-switch input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.tenant-platform-switch__track {
    position: relative;
    width: 64px;
    height: 32px;
    border-radius: 999px;
    background: #CBD5E1;
    transition: background .15s;
}

.tenant-platform-switch__track::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(15, 23, 42, .20);
    transition: transform .15s;
}

.tenant-platform-switch input[type="checkbox"]:checked + .tenant-platform-switch__track {
    background: #2477FF;
}

.tenant-platform-switch input[type="checkbox"]:checked + .tenant-platform-switch__track::after {
    transform: translateX(32px);
}

.tenant-remove-logo {
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 9px;
    border: 1px solid #FDE68A;
    background: #FFFBEB;
    color: #92400E;
    font-size: 14px;
}

.tenant-color-card {
    padding: 20px;
}

.tenant-color-picker {
    width: 168px;
    margin: 0 auto;
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #CBD5E1;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .08);
}

.tenant-color-picker__swatch {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .9);
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .08);
}

.tenant-color-picker__hex {
    width: 88px;
    min-width: 0;
    padding: 7px 8px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: #F8FAFC;
    color: #334155;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 13px;
    text-align: center;
    text-transform: uppercase;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}

.tenant-color-picker__hex:focus {
    border-color: var(--tenant-primary, #3B82F6);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .14);
}

.tenant-color-picker__hex--invalid {
    border-color: #F87171;
    box-shadow: 0 0 0 3px rgba(248, 113, 113, .12);
}

.tenant-preview-block {
    margin-top: 30px;
}

.tenant-live-preview {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 18px;
}

.tenant-sidebar-preview {
    width: 190px;
    min-height: 150px;
    border-radius: 12px;
    padding: 20px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
}

.tenant-sidebar-preview__logo {
    display: block;
    width: 132px;
    max-height: 58px;
    object-fit: contain;
}

.tenant-sidebar-preview__name,
.sidebar-client-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    padding: 7px 14px;
    border-radius: 9px;
    background: var(--tenant-secondary, #10B981);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
}

.tenant-button-preview {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    align-items: center;
    gap: 12px;
    padding-top: 4px;
}

.sidebar-client-badge {
    max-width: 190px;
    font-size: 12px;
    padding: 6px 12px;
}

.seidor-view-button {
    display: inline-flex;
    min-width: 48px;
    align-items: center;
    justify-content: center;
    padding: 7px 13px;
    border: 1px solid rgba(59, 130, 246, .36);
    border-radius: 8px;
    background: #fff;
    color: var(--tenant-primary, #2563EB) !important;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(37, 99, 235, .08);
    transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.seidor-view-button:hover {
    border-color: rgba(59, 130, 246, .58);
    background: rgba(59, 130, 246, .08);
    box-shadow: 0 8px 20px rgba(37, 99, 235, .12);
    text-decoration: none;
    transform: translateY(-1px);
}

.seidor-view-button:focus-visible {
    outline: 2px solid rgba(59, 130, 246, .35);
    outline-offset: 2px;
}

@media (max-width: 900px) {
    .tenant-page-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .tenant-tabs {
        align-items: stretch;
        gap: 8px;
        border-radius: 18px;
        flex-wrap: wrap;
    }

    .tenant-tab {
        min-width: 0;
        flex: 1 1 150px;
    }

    .tenant-form-footer {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .tenant-config-card {
        padding: 22px;
    }

    .tenant-brand-grid {
        grid-template-columns: 1fr;
    }
}
