/* ══════════════════════════════════════════
   Tenant Select (Phase 1 멀티테넌트)
   ══════════════════════════════════════════ */
.tenant-select-head,
.tenant-select-list,
.tenant-card,
.tenant-cancel-btn {
    position: relative;
    z-index: 1;
}

.tenant-select-head {
    margin-bottom: 20px;
    text-align: center;
}
.tenant-select-head h2 {
    margin-bottom: 6px;
    font-size: 17px;
    font-weight: 700;
    color: rgba(255,255,255,.92);
    letter-spacing: .2px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.tenant-select-head h2 .fa { font-size: 15px; opacity: .85; }
.tenant-select-head p {
    font-size: 12px;
    color: var(--lc-muted);
    letter-spacing: .3px;
}

.tenant-select-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
    max-height: 360px;
    overflow-y: auto;
    padding-right: 2px;
}
.tenant-select-list::-webkit-scrollbar { width: 6px; }
.tenant-select-list::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,.18);
    border-radius: 6px;
}

.tenant-card {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.18);
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.92);
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.10);
}
.tenant-card:hover {
    transform: translateY(-1px);
    background: rgba(255,255,255,.14);
    border-color: rgba(255,255,255,.30);
    box-shadow:
        0 10px 24px rgba(0,0,0,.22),
        inset 0 1px 0 rgba(255,255,255,.14);
}
.tenant-card:focus-visible {
    outline: 2px solid rgba(140,160,255,.75);
    outline-offset: 2px;
}
.tenant-card[aria-selected="true"] {
    border-color: rgba(140,160,255,.55);
    background: rgba(92,108,255,.18);
}
.tenant-card.is-loading {
    opacity: .55;
    pointer-events: none;
}

/* 본사 카드 특수 처리 */
.tenant-card.is-hq {
    border-color: rgba(154,174,255,.45);
    background: linear-gradient(
        135deg,
        rgba(92,108,255,.20) 0%,
        rgba(154,174,255,.10) 100%);
}
.tenant-card.is-hq:hover {
    background: linear-gradient(
        135deg,
        rgba(92,108,255,.30) 0%,
        rgba(154,174,255,.18) 100%);
}

.tenant-logo,
.tenant-logo-default {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 11px;
    object-fit: cover;
}
.tenant-logo-default {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -.2px;
    color: #fff;
    background: linear-gradient(135deg, var(--lc-primary) 0%, var(--lc-primary2) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.35),
        0 4px 10px rgba(0,0,0,.18);
    text-shadow: 0 1px 2px rgba(0,0,0,.18);
}
.tenant-logo-default.is-seeded {
    background:
        linear-gradient(
            135deg,
            hsl(var(--tenant-hue, 220), 72%, 62%) 0%,
            hsl(var(--tenant-hue, 220), 72%, 48%) 100%);
}

.tenant-meta {
    flex: 1;
    min-width: 0;
}
.tenant-name {
    margin-bottom: 2px;
    font-size: 14px;
    font-weight: 700;
    color: rgba(255,255,255,.95);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
}
.tenant-name .tenant-hq-badge {
    flex-shrink: 0;
    padding: 1px 7px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .3px;
    color: #c9d4ff;
    background: rgba(92,108,255,.28);
    border: 1px solid rgba(154,174,255,.40);
}
.tenant-sub {
    font-size: 11px;
    color: var(--lc-muted);
    letter-spacing: .2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tenant-arrow {
    color: rgba(255,255,255,.38);
    font-size: 12px;
    transition: transform .15s ease, color .15s ease;
}
.tenant-card:hover .tenant-arrow {
    color: rgba(255,255,255,.75);
    transform: translateX(2px);
}

.tenant-cancel-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 11px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.18);
    background: rgba(255,255,255,.06);
    color: rgba(255,255,255,.70);
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .3px;
    cursor: pointer;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.tenant-cancel-btn:hover {
    background: rgba(255,255,255,.12);
    border-color: rgba(255,255,255,.28);
    color: rgba(255,255,255,.92);
}
.tenant-cancel-btn .fa { font-size: 11px; opacity: .85; }

@media (max-width: 768px) {
    .tenant-card { padding: 10px 12px; gap: 10px; }
    .tenant-logo,
    .tenant-logo-default { width: 38px; height: 38px; font-size: 14px; }
    .tenant-name { font-size: 13px; }
    .tenant-select-head h2 { font-size: 16px; }
}
