/* Options React CSS - synced with Figma node 8:62 */

#screenSettings {
    position: relative !important;
    inset: auto;
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    background: #f8fafc;
    color: #101828;
    display: none;
    flex: 1;
}

#screenSettings.active {
    padding: 0 !important;
    align-items: stretch !important;
    display: flex !important;
    flex-direction: column !important;
}

.or-app.or-app-single {
    min-height: 100%;
    background: #f8fafc;
}

.or-content.or-content-single {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 32px;
}

.or-page-head {
    margin-bottom: 32px;
}

.or-page-title {
    margin: 0;
    font-size: 30px;
    line-height: 36px;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: #101828;
}

.or-options-stack {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.or-stack-item {
    min-width: 0;
}

.or-stack-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.or-block {
    border: 0.8px solid #e5e7eb;
    border-radius: 14px;
    background: #ffffff;
    overflow: hidden;
}

.or-block-head {
    padding: 24.8px 24.8px 0;
}

.or-block-title {
    margin: 0;
    font-size: 20px;
    line-height: 30px;
    font-weight: 500;
    color: #101828;
}

.or-block-subtitle {
    margin-top: 4px;
    font-size: 14px;
    line-height: 20px;
    font-weight: 400;
    color: #6a7282;
}

.or-list {
    padding: 40px 24.8px 24.8px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.or-item {
    min-height: 65.6px;
    border: 0.8px solid #e5e7eb;
    border-radius: 10px;
    background: #ffffff;
    padding: 0.8px 16.8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.or-item-profile {
    border: none;
    background: #f9fafb;
    min-height: 80px;
    padding: 0 16px;
}

.or-item-wrap {
    flex-wrap: wrap;
}

.or-item-info {
    min-width: 0;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
}

.or-item-label {
    font-size: 14px;
    line-height: 20px;
    font-weight: 400;
    color: #101828;
}

.or-item-icon {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.or-item-icon-profile {
    background: #155dfc;
    color: #ffffff;
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
}

.or-profile-meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.or-profile-name {
    font-size: 14px;
    line-height: 20px;
    font-weight: 400;
    color: #101828;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.or-profile-sub {
    font-size: 12px;
    line-height: 16px;
    font-weight: 400;
    color: #6a7282;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn.ghost {
    height: 32px;
    min-width: 88px;
    border-radius: 10px;
    padding: 0 12.8px;
    border: 0.8px solid rgba(0, 0, 0, 0.1);
    background: #ffffff;
    color: #0a0a0a;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease;
    white-space: nowrap;
}

.btn.ghost:hover {
    background: #f9fafb;
}

.or-btn-neutral {
    border-color: rgba(0, 0, 0, 0.1);
    color: #0a0a0a;
}

.or-btn-primary {
    border-color: #bedbff;
    color: #155dfc;
}

.or-btn-main {
    min-width: 108px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 32px;
    height: 18.4px;
    flex-shrink: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: #cbced4;
    transition: background-color .2s ease;
}

.slider:before {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    left: 0.8px;
    top: 1.2px;
    border-radius: 999px;
    background: #ffffff;
    transition: transform .2s ease;
}

.switch input:checked + .slider {
    background: #155dfc;
}

.switch input:checked + .slider:before {
    transform: translateX(14.4px);
}

.or-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    flex-shrink: 0;
    position: relative;
    background: var(--dot-color, #00c950);
}

.or-conn-status {
    font-size: 14px;
    line-height: 20px;
    font-weight: 400;
    color: #101828;
}

.pulse-ring {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: var(--dot-color, #00c950);
    opacity: 0.45;
    animation: pulse-ring 1.8s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.8);
        opacity: 0.8;
    }

    70% {
        transform: scale(2.4);
        opacity: 0;
    }

    100% {
        transform: scale(0.8);
        opacity: 0;
    }
}

.or-super-block {
    overflow: visible;
}

.or-item-super-login {
    border: none;
    background: transparent;
    min-height: 0;
    padding: 0;
    align-items: stretch;
}

.or-super-login-wrap {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.or-super-label {
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    color: #364153;
}

.or-super-login-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.or-super-input {
    width: 100%;
    height: 36px;
    border-radius: 10px;
    border: 0.8px solid #e5e7eb;
    background: #f9fafb;
    color: #101828;
    font-size: 14px;
    line-height: 20px;
    font-weight: 400;
    padding: 4px 12px;
    outline: none;
}

.or-super-input::placeholder {
    color: #717182;
}

.or-super-input:focus {
    border-color: #bedbff;
    background: #ffffff;
}

.or-super-login-row .or-super-input {
    flex: 1;
}

.or-super-login-row .or-btn-primary {
    min-width: 89px;
}

.or-super-pill {
    border-radius: 999px;
    background: #eef2ff;
    color: #155dfc;
    padding: 4px 10px;
    font-size: 12px;
    line-height: 16px;
    font-weight: 500;
}

.or-super-create {
    margin: 0 24.8px 16px;
    border: 0.8px solid #e5e7eb;
    border-radius: 10px;
    background: #f9fafb;
    padding: 12px;
}

.or-super-create-title {
    margin-bottom: 8px;
    font-size: 13px;
    line-height: 18px;
    font-weight: 500;
    color: #364153;
}

.or-super-help {
    margin-bottom: 8px;
    font-size: 12px;
    line-height: 16px;
    color: #6a7282;
}

.or-super-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.or-super-upload-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.or-super-file {
    flex: 1;
    min-width: 220px;
    height: 36px;
    border-radius: 10px;
    border: 0.8px solid #e5e7eb;
    background: #ffffff;
    color: #6a7282;
    font-size: 12px;
    padding: 6px 10px;
}

.or-super-inline-status {
    margin-top: 8px;
    min-height: 16px;
    font-size: 12px;
    line-height: 16px;
    color: #364153;
    font-weight: 500;
}

.or-super-tenants {
    margin: 0 24.8px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: min(56vh, 640px);
    overflow-y: auto;
}

.or-super-tenant {
    border: 0.8px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px;
    background: #ffffff;
}

.or-super-tenant-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.or-super-tenant-name {
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    color: #101828;
}

.or-super-badge {
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 11px;
    line-height: 14px;
    font-weight: 500;
}

.or-super-badge.active {
    color: #0f766e;
    background: rgba(16, 185, 129, 0.14);
}

.or-super-badge.disabled {
    color: #b91c1c;
    background: rgba(239, 68, 68, 0.14);
}

.or-super-meta {
    margin-top: 6px;
    font-size: 12px;
    line-height: 16px;
    color: #6a7282;
}

.or-super-row {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.or-super-row .or-super-input {
    flex: 1;
}

.or-super-actions {
    margin-top: 10px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.or-super-status {
    margin: 0 24.8px 24px;
    border: 0.8px solid #e5e7eb;
    border-radius: 10px;
    background: #f9fafb;
    padding: 10px 12px;
    font-size: 12px;
    line-height: 16px;
    color: #364153;
    font-weight: 500;
}

.or-empty-line {
    border: 0.8px dashed #d0d5dd;
    border-radius: 10px;
    padding: 12px;
    text-align: center;
    font-size: 12px;
    line-height: 16px;
    color: #6a7282;
}

@media (max-width: 980px) {
    .or-content.or-content-single {
        max-width: 100%;
        padding: 16px 12px 20px;
    }

    .or-page-head {
        margin-bottom: 16px;
    }

    .or-page-title {
        font-size: 32px;
    }

    .or-options-stack,
    .or-stack-row {
        gap: 12px;
    }

    .or-stack-row {
        grid-template-columns: 1fr;
    }

    .or-block {
        border-radius: 12px;
    }

    .or-block-head {
        padding: 18px 14px 0;
    }

    .or-block-title {
        font-size: 30px;
    }

    .or-block-subtitle {
        font-size: 16px;
    }

    .or-list {
        padding: 20px 14px 14px;
        gap: 10px;
    }

    .or-item {
        min-height: 56px;
        padding: 0 12px;
    }

    .or-item-profile {
        min-height: 74px;
    }

    .or-profile-sub {
        white-space: normal;
    }

    .or-super-login-row,
    .or-super-row {
        flex-direction: column;
        align-items: stretch;
    }

    .or-super-create,
    .or-super-tenants,
    .or-super-status {
        margin-left: 14px;
        margin-right: 14px;
    }

    .or-super-grid {
        grid-template-columns: 1fr;
    }
}

body.dark #screenSettings,
body.dark .or-app.or-app-single {
    background: #111827;
    color: #f3f4f6;
}

body.dark .or-block,
body.dark .or-item,
body.dark .or-super-tenant,
body.dark .or-super-file,
body.dark .or-super-status,
body.dark .or-super-create {
    background: #1f2937;
    border-color: #374151;
}

body.dark .or-item-profile,
body.dark .or-item-super-login {
    background: #111827;
}

body.dark .or-page-title,
body.dark .or-block-title,
body.dark .or-item-label,
body.dark .or-profile-name,
body.dark .or-conn-status,
body.dark .or-super-tenant-name,
body.dark .or-super-label {
    color: #f3f4f6;
}

body.dark .or-block-subtitle,
body.dark .or-profile-sub,
body.dark .or-super-meta,
body.dark .or-super-help,
body.dark .or-super-inline-status,
body.dark .or-empty-line {
    color: #9ca3af;
}

body.dark .btn.ghost {
    background: #1f2937;
    border-color: #4b5563;
    color: #f3f4f6;
}

body.dark .or-btn-primary {
    border-color: #60a5fa;
    color: #93c5fd;
}

body.dark .or-super-input {
    background: #111827;
    border-color: #4b5563;
    color: #f3f4f6;
}
