/* Outlet switch modal (opened from profile menu) */
.outlet-switch-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s;
}

.outlet-switch-modal.is-open {
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
}

.outlet-switch-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
}

.outlet-switch-modal__dialog {
    position: relative;
    width: 100%;
    max-width: 440px;
    max-height: min(85vh, 560px);
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.18);
    overflow: hidden;
}

.outlet-switch-modal__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 20px 12px;
    border-bottom: 1px solid #eef0f2;
}

.outlet-switch-modal__title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #1f2428;
}

.outlet-switch-modal__sub {
    margin: 4px 0 0;
    font-size: 13px;
    color: #6b7280;
}

.outlet-switch-modal__close {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 10px;
    background: #f3f4f6;
    color: #374151;
    cursor: pointer;
    flex-shrink: 0;
}

.outlet-switch-modal__close:hover {
    background: #e5e7eb;
}

.outlet-switch-modal__list {
    overflow-y: auto;
    padding: 8px;
    flex: 1;
    min-height: 0;
}

.outlet-switch-modal__option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 14px 14px;
    margin-bottom: 4px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: transparent;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.outlet-switch-modal__option:hover {
    background: #f8f9fa;
}

.outlet-switch-modal__option.is-active {
    background: #fffbeb;
    border-color: rgba(245, 194, 26, 0.45);
}

.outlet-switch-modal__option-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.outlet-switch-modal__option strong {
    font-size: 15px;
    color: #111827;
}

.outlet-switch-modal__meta {
    font-size: 12px;
    color: #6b7280;
    margin-top: 2px;
}

.outlet-switch-modal__check {
    color: #d4820a;
    font-size: 16px;
    flex-shrink: 0;
}

.outlet-switch-modal__foot {
    padding: 12px 16px 16px;
    border-top: 1px solid #eef0f2;
}

.outlet-switch-modal__create {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
}

.outlet-switch-modal__create:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .outlet-switch-modal {
        align-items: flex-end;
        padding: 0;
    }

    .outlet-switch-modal__dialog {
        max-width: none;
        max-height: 88vh;
        border-radius: 16px 16px 0 0;
    }

    .outlet-switch-modal__head {
        padding: 16px 16px 10px;
    }

    .outlet-switch-modal__option {
        padding: 16px 14px;
    }
}

.chain-outlets-page .chain-table {
    width: 100%;
    border-collapse: collapse;
}

.chain-outlets-page .chain-table th,
.chain-outlets-page .chain-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #e9ecef;
    text-align: left;
}

.chain-outlets-page .badge-published {
    color: #198754;
}

.chain-outlets-page .badge-unpublished {
    color: #dc3545;
}
