/*
 * PLATFMGMT 레이아웃 스타일
 * 컨테이너 · 헤더 · 네비게이션
 */

/* === Admin Layout (Owner Parity) === */
.platfmgmt-portal {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.platfmgmt-header h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
}

.platfmgmt-header .owner-header__subtitle {
    font-size: 13px;
    opacity: 0.85;
}

.platfmgmt-header .owner-header__user {
    font-weight: 600;
}

.platfmgmt-nav {
    position: sticky;
    top: 0;
    z-index: 80;
}

.platfmgmt-nav ul {
    width: 100%;
    margin: 0;
    padding: 0 16px;
    overflow-x: auto;
}

.platfmgmt-nav li a {
    white-space: nowrap;
}

.platfmgmt-container {
    flex: 1 1 auto;
    padding-top: 32px;
    padding-bottom: 48px;
}

/* === Header & Navigation Override (migrated from _head.php) === */
/* Navigation Styles Override */
.platfmgmt-header {
    background: #fff;
    border-bottom: 1px solid #e9ecef;
    padding: 0 20px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}

/* Owner header styles are now in owner.css */
/* Only keep platfmgmt-specific overrides here */

.ezs-badge {
    background: #228be6;
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    margin-right: 8px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Hide subtitle in main admin (platfmgmt) header */
.platfmgmt-header .owner-header__subtitle {
    display: none;
}

.platfmgmt-nav {
    background: #fff;
    border-bottom: 1px solid #e9ecef;
    padding: 0 20px;
}

.platfmgmt-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.platfmgmt-nav li {
    margin: 0;
}

.platfmgmt-nav a {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: #495057;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    border-radius: 4px 4px 0 0;
}

.platfmgmt-nav a:hover {
    color: #228be6;
    background: #f8f9fa;
}

.platfmgmt-nav li.active a {
    color: #228be6;
    border-bottom-color: #228be6;
    font-weight: 600;
}

.platfmgmt-nav i {
    margin-right: 8px;
    font-size: 14px;
    width: 16px;
    text-align: center;
    color: #adb5bd;
}

.platfmgmt-nav li.active i {
    color: #228be6;
}

.platfmgmt-nav a:hover i {
    color: #228be6;
}

/* Owner header user/logout styles moved to owner.css */
/* Only keep platfmgmt-specific overrides if needed */

.platfmgmt-container .container {
    width: 100%;
    display: grid;
    gap: 24px;
    grid-template-columns: 1fr;
    padding: 0 16px;
}

.platfmgmt-container .container > * {
    grid-column: 1 / -1;
}

.platfmgmt-footer {
    background: var(--pm-color-surface);
    border-top: 1px solid var(--pm-color-border);
}

.platfmgmt-switcher {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 0;
    margin-bottom: 24px;
}

.platfmgmt-switcher__items {
    display: flex;
    align-items: stretch;
    gap: 12px;
    flex-wrap: wrap;
    width: 100%;
}

.platfmgmt-switcher__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    text-decoration: none;
    background: var(--pm-color-surface);
    border: 1px solid #dfe4ff;
    border-radius: 12px;
    min-width: 220px;
    color: #2a2f45;
    transition: all 0.2s ease;
    box-shadow: 0 8px 20px rgba(68, 93, 230, 0.08);
}

.platfmgmt-switcher__item:hover {
    transform: translateY(-2px);
    border-color: #445de6;
    box-shadow: 0 12px 28px rgba(68, 93, 230, 0.12);
}

.platfmgmt-switcher__item.is-active {
    background: #445de6;
    color: #fff;
    border-color: #445de6;
    box-shadow: 0 16px 34px rgba(41, 54, 163, 0.2);
}

.platfmgmt-switcher__icon {
    font-size: 22px;
}

.platfmgmt-switcher__label {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 14px;
}

.platfmgmt-switcher__label strong {
    font-weight: 600;
}

.platfmgmt-switcher__label small {
    font-size: 12px;
    color: inherit;
    opacity: 0.75;
}

@media (max-width: 1024px) {
    .platfmgmt-switcher {
        flex-direction: column;
        align-items: stretch;
    }

    .platfmgmt-switcher__items {
        width: 100%;
    }

    .platfmgmt-switcher__item {
        flex: 1 1 auto;
        min-width: unset;
        width: 100%;
    }
}

@media (min-width: 1200px) {
    .platfmgmt-container .container {
        grid-template-columns: repeat(8, minmax(0, 1fr));
        padding: 0 24px;
    }

    .platfmgmt-nav ul {
        padding: 0 24px;
    }
}

@media (min-width: 1400px) {
    .platfmgmt-container .container {
        grid-template-columns: repeat(10, minmax(0, 1fr));
        padding: 0 32px;
    }

    .platfmgmt-nav ul {
        padding: 0 32px;
    }
}

/* === Layout === */
.container {
    width: 100%;
    margin: 0 auto;
    padding: 0 30px;
}

/* === Header === */
.header {
    background: var(--pm-color-surface);
    border-bottom: 1px solid var(--pm-color-border);
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}
.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.header h1 {
    color: var(--pm-color-primary);
    font-size: 22px;
    font-weight: 600;
}
.header .nav {
    margin-top: 0;
}
.header .nav a {
    display: inline-block;
    padding: 8px 15px;
    margin-left: 8px;
    color: var(--pm-color-dark);
    text-decoration: none;
    border-radius: 5px;
    transition:
        background-color 0.2s,
        color 0.2s;
    font-weight: 500;
}
.header .nav a:hover {
    background-color: var(--pm-color-border-soft);
    color: var(--pm-color-primary-hover);
}
.header .nav a.active {
    background-color: var(--pm-color-primary);
    color: white;
}

/* Search Form */
.search-form {
    background: var(--pm-color-surface);
    padding: 20px 25px;
    border-radius: var(--pm-radius-lg);
    margin-bottom: 25px;
    border: 1px solid var(--pm-color-border-soft);
    display: flex;
    align-items: flex-end;
    gap: 15px;
    flex-wrap: wrap;
}
.search-form .form-group {
    margin-bottom: 0;
    flex-grow: 1;
}
.search-form .form-group.search-input-group {
    flex-grow: 2;
}

/* === Header & Card Actions === */
.header-actions,
.card-header-actions {
    float: right;
    display: flex;
    gap: 5px;
}

.inline-form {
    display: inline;
}

.btn-readonly {
    cursor: default;
}

/* === Search Form Flex === */
.search-input-flex {
    display: flex;
}

/* Responsive */
@media (max-width: 992px) {
    .biz-category-row {
        grid-template-columns: 1fr 1fr;
    }
    .biz-category-row .tag-group {
        grid-column: 1 / 3;
    }
}
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    .header .container {
        flex-direction: column;
        align-items: flex-start;
    }
    .header .nav {
        margin-top: 10px;
    }
    .search-form {
        flex-direction: column;
        align-items: stretch;
    }
    .table {
        font-size: 13px;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
