/*
 * PLATFMGMT 특수 목적 스타일
 * 모듈 전용 · 데이터 뷰 · 통계
 */

/* === Accessibility: Screen Reader Only === */
.sound_only {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

/* === Misc & Specifics === */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

@media (min-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

.stat-card {
    background: var(--pm-color-surface);
    padding: 25px;
    border-radius: var(--pm-radius-lg);
    border: 1px solid var(--pm-color-border-soft);
    text-align: center;
}

.stat-number {
    font-size: 32px;
    font-weight: bold;
    color: var(--pm-color-primary);
}

.stat-label {
    color: var(--pm-color-muted);
    font-size: 14px;
    margin-top: 5px;
}

.empty-table {
    text-align: center;
    padding: 50px;
    color: var(--pm-color-muted);
}

/* Dashboard Summary */
.pm-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 20px;
    padding: 20px;
    background: var(--pm-color-surface);
    border-radius: var(--pm-radius-lg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    flex-wrap: wrap;
}

.pm-summary__stats {
    flex: 1 1 320px;
    min-width: 280px;
}

.pm-summary__title {
    margin: 0 0 10px;
    font-size: 18px;
    color: var(--pm-color-dark);
}

.pm-summary__items {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.pm-summary__item {
    min-width: 140px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pm-summary__label {
    font-size: 13px;
    color: var(--pm-color-muted);
}

.pm-summary__value {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    font-size: 24px;
    font-weight: 700;
    color: var(--pm-color-dark);
}

.pm-summary__value--lg {
    font-size: 20px;
}

.pm-summary__note {
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--pm-color-muted);
}

.pm-summary__actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    color: var(--pm-color-muted);
}

@media (max-width: 768px) {
    .pm-summary {
        flex-direction: column;
        align-items: stretch;
    }

    .pm-summary__actions {
        justify-content: flex-start;
    }
}

/* Business Category Mapping */
.pm-progress-bar {
    width: 0%;
    transition: width 0.3s ease;
}

.pm-progress-bar.is-complete {
    width: 100%;
}

.pm-pre-wrap {
    white-space: pre-wrap;
    word-break: break-all;
}

.pm-pre-scroll {
    max-height: 400px;
    overflow-y: auto;
}

.pm-btn-column {
    display: inline-flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    width: 100%;
}

.pm-btn-column .btn {
    width: 100%;
}

.pm-btn-column-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 100%;
}

.pm-grid-two {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
}

.pm-note {
    font-size: 12px;
    color: var(--pm-color-muted);
}

.pm-preview-box {
    font-size: 12px;
    color: var(--pm-color-muted);
    line-height: 1.4;
    max-height: 40px;
    overflow: hidden;
}

.pm-preview-empty {
    color: var(--pm-color-muted-light);
}

.pm-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
    background: var(--pm-color-border-soft);
    color: var(--pm-color-dark);
    white-space: nowrap;
}

.pm-filter-inline {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.pm-filter-inline .form-group,
.pm-filter-inline .form-field {
    flex: 1 1 200px;
}

.pm-header-actions {
    margin-left: auto;
    display: flex;
    gap: 8px;
    align-items: center;
}

.pm-grid-three {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
}

.pm-grid-auto {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.pm-owner-search-grid {
    display: grid;
    grid-template-columns: 1fr 200px 100px;
    gap: 10px;
}

.pm-grid-gap-8 {
    display: grid;
    gap: 8px;
}

.pm-simple-grid {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.pm-simple-card {
    flex: 1 1 150px;
    min-width: 150px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 12px;
    background: #f8f9fa;
    text-align: center;
}

.pm-simple-card--md {
    padding: 15px;
    min-width: 200px;
}

.pm-simple-card__title {
    margin-bottom: 8px;
    font-size: 12px;
    color: var(--pm-color-muted);
}

.pm-simple-card__value {
    margin: 0;
    font-weight: 600;
}

.pm-alert-outline {
    border: 1px solid #d1d5db;
}

.pm-alert-detail {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border: 1px solid #d1d5db;
}

.pm-section-divider {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.pm-card-header-gradient {
    background: var(--pm-color-surface);
    color: var(--pm-color-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.pm-section-title {
    border-bottom: 2px solid var(--pm-color-accent);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.pm-section-title--green {
    border-bottom-color: var(--pm-color-success);
    margin: 30px 0 20px;
}

.pm-section-title--yellow {
    border-bottom-color: var(--pm-color-warning);
    margin: 30px 0 20px;
}

.pm-card-meta {
    font-size: 0.9em;
    line-height: 1.4;
    color: var(--pm-color-muted);
}

/* View Page */
.tbl_view th {
    width: 180px;
}

.form-section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--pm-color-primary);
    margin-top: 40px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--pm-color-primary);
}

.view-content {
    padding: 20px;
    border: 1px solid var(--pm-color-border-soft);
    border-radius: var(--pm-radius-sm);
    background: var(--pm-color-surface);
    line-height: 1.7;
}

.view-content img,
.view-content iframe {
    max-width: 100%;
    height: auto;
}

/* Tag Styles */
.tag {
    display: inline-block;
    background-color: var(--pm-color-border-soft);
    color: var(--pm-color-dark);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.9em;
    margin: 0 5px 5px 0;
}

/* Business Category UI */
.biz-category-row {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr auto;
    gap: 15px;
    align-items: flex-end;
    padding: 15px;
    border: 1px solid var(--pm-color-border-soft);
    border-radius: var(--pm-radius-sm);
    margin-bottom: 10px;
    background-color: var(--pm-color-surface);
}

.biz-category-row .form-group {
    margin-bottom: 0;
}

.tag-checkbox-container {
    border: 1px solid var(--pm-color-border-strong);
    border-radius: var(--pm-radius-sm);
    padding: 10px;
    height: 120px;
    overflow-y: auto;
    background-color: var(--pm-color-surface);
}

.tag-checkbox-container label {
    display: block;
    margin-bottom: 5px;
    font-weight: normal;
    cursor: pointer;
}

.tag-checkbox-container label input {
    margin-right: 8px;
}

.biz-category-view-list {
    list-style-type: none;
    padding: 0;
}

.biz-category-view-list li {
    padding: 10px;
    border-bottom: 1px solid var(--pm-color-border-soft);
}

.biz-category-view-list li:last-child {
    border-bottom: none;
}

.biz-category-view-list .tags-list {
    margin-top: 8px;
    padding-left: 10px;
}

/* List Page Category Row */
.table .category-row td {
    background-color: var(--pm-color-surface-alt);
    font-size: 0.9em;
    color: var(--pm-color-dark);
    border-bottom: 2px solid var(--pm-color-border);
    padding: 8px 15px;
}

.card-header--warning {
    background-color: var(--pm-color-warning-soft);
    border-color: var(--pm-color-warning);
    color: var(--pm-color-warning-dark);
}

.table-warning-row {
    background-color: var(--pm-color-warning-soft-2);
}

.leave-warning-box {
    margin-top: 15px;
    padding: 10px;
    background-color: var(--pm-color-danger-soft);
    border: 1px solid var(--pm-color-danger-border);
    border-radius: 5px;
}

.category-label {
    font-weight: 600;
    color: var(--pm-color-primary);
    margin-right: 8px;
}

.tag-label {
    font-weight: 600;
    color: var(--pm-color-info);
    margin-right: 8px;
}

.tag-item {
    display: inline-block;
    background-color: #e3f2fd;
    color: #1976d2;
    padding: 2px 8px;
    margin: 0 3px 3px 0;
    border-radius: 12px;
    font-size: 0.85em;
    border: 1px solid #bbdefb;
    font-weight: 500;
}

/* Postcode Layer */
#postcode_layer {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    width: 400px;
    height: 500px;
    border: 2px solid #000;
    background: #fff;
    transform: translate(-50%, -50%);
    z-index: 1000;
    padding: 10px;
}

#postcode_layer.is-visible {
    display: block;
}

#btn_close_postcode {
    position: absolute;
    top: 5px;
    right: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    background: #333;
    color: #fff;
    border: none;
    padding: 2px 8px;
    border-radius: 50%;
}

/* === Address Detail Styles === */
.addr-detail-box {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    font-size: 13px;
}

.addr-detail-title {
    margin-bottom: 8px;
    color: #555;
    font-weight: 600;
}

.addr-detail-table {
    width: 100%;
    border-collapse: collapse;
}

.addr-detail-table td {
    padding: 5px 10px;
}

.addr-detail-table .addr-label {
    width: 120px;
    color: #666;
    font-weight: 500;
}

.addr-detail-footer {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #dee2e6;
    color: #666;
    font-size: 12px;
}

.addr-coord-badge {
    background: var(--pm-color-info-soft);
    padding: 2px 8px;
    border-radius: 3px;
    margin-right: 5px;
}

.addr-map-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--pm-color-border);
}

.addr-map-title {
    margin-bottom: 8px;
    color: var(--pm-color-neutral-600);
    font-weight: 600;
}

/* === Platform & Category Badges === */
.platform-cat-badge {
    display: inline-block;
    margin-right: 15px;
    padding: 2px 6px;
    background-color: var(--pm-color-border-soft);
    border-radius: 3px;
    font-size: 12px;
}

.cat-none-text {
    color: var(--pm-color-muted);
}

.cat-center-text {
    text-align: center;
    color: var(--pm-color-neutral-400);
}

/* === Image Display Styles === */
.img-info-wrapper {
    margin-bottom: 3px;
}

.img-url-box {
    padding: 10px;
    border-radius: 5px;
}

.img-url-box.url-type {
    background-color: var(--pm-color-primary-soft);
    border: 1px solid var(--pm-color-info-border);
}

.img-url-box.local-type {
    background-color: var(--pm-color-info-soft);
    border: 1px solid var(--pm-color-info-border);
}

.img-url-label {
    font-weight: 500;
}

.img-url-label.url {
    color: var(--pm-color-primary);
}

.img-url-label.local {
    color: var(--pm-color-info);
}

.img-url-path {
    color: var(--pm-color-dark);
    word-break: break-all;
}

.img-preview {
    margin-bottom: 2px;
}

.img-preview img {
    max-width: 600px;
    height: auto;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

.img-preview-sm img {
    max-width: 150px;
}

.img-preview-md img {
    max-width: 400px;
}

.user-upload-badge {
    background-color: #28a745;
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.85em;
    margin-left: 8px;
}

/* === Form & Upload Styles === */
.form-section-wrapper {
    margin-bottom: 40px;
    padding: 20px;
    background: var(--pm-color-surface-alt);
    border-radius: var(--pm-radius-lg);
}

.form-label-block {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
}

.form-input-mb {
    margin-bottom: 15px;
}

.upload-area {
    margin-top: 15px;
    padding: 20px;
    background: var(--pm-color-surface);
    border: 2px dashed var(--pm-color-border);
    border-radius: var(--pm-radius-lg);
    text-align: center;
    transition: all 0.3s;
}

.upload-area:hover {
    border-color: var(--pm-color-primary);
    background-color: var(--pm-color-primary-soft);
}

.upload-area.hover-success:hover {
    border-color: var(--pm-color-success);
    background-color: var(--pm-color-success-soft);
}

.upload-area.hover-info:hover {
    border-color: var(--pm-color-info);
    background-color: var(--pm-color-info-soft);
}

.upload-area.hover-warning:hover {
    border-color: var(--pm-color-warning);
    background-color: var(--pm-color-warning-soft-2);
}

.upload-icon {
    font-size: 2em;
    margin-bottom: 10px;
    color: var(--pm-color-muted);
}

.upload-title {
    font-weight: 600;
    margin-bottom: 5px;
}

.upload-title.primary {
    color: var(--pm-color-primary);
}

.upload-title.success {
    color: var(--pm-color-success);
}

.upload-title.info {
    color: var(--pm-color-info);
}

.upload-title.warning {
    color: var(--pm-color-warning);
}

.upload-desc {
    font-size: 0.85em;
    color: var(--pm-color-muted);
}

.upload-format {
    font-size: 0.75em;
    color: var(--pm-color-muted-light);
    margin-top: 8px;
}

.upload-label {
    cursor: pointer;
    display: block;
    margin: 0;
}

/* === Address Input Styles === */
.addr-input-group {
    display: flex;
    gap: 5px;
    margin-bottom: 5px;
}

.addr-input-mb {
    margin-bottom: 5px;
}

/* === SNS Row Styles === */
.sns-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    align-items: center;
}

.sns-row .form-group {
    margin-bottom: 0;
}

.sns-type-group {
    flex: 0 0 120px;
}

.sns-url-group {
    flex: 1;
}

/* === Platform Category Section === */
.platform-category-section {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    background-color: #f8f9fa;
}

.platform-category-title {
    margin-bottom: 15px;
    color: #495057;
    font-weight: 600;
}

/* === Platform Checkbox Container === */
.platform-checkbox-container {
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 10px;
    background-color: #fff;
}

.platform-checkbox-container label {
    display: block;
    margin-bottom: 8px;
    font-weight: normal;
    cursor: pointer;
}

.platform-checkbox-status {
    margin-top: 5px;
    font-size: 12px;
    color: #6c757d;
}

.platform-italic-text {
    color: #6c757d;
    font-style: italic;
}

/* === List Page Styles === */
.td-flex-actions {
    display: flex;
    gap: 5px;
}

.quick-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.cat-row-section {
    margin-bottom: 5px;
}

.platform-category-label {
    font-weight: 600;
    color: #17a2b8;
    margin-right: 8px;
}

/* List Page - Pending Approval */
.pm-pending-approval {
    background-color: #fffbe6 !important;
}

.pm-pending-approval td {
    font-weight: 500;
}

/* === Tag Autocomplete Styles === */
.tag-suggestions {
    position: absolute;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    width: 200px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.tag-suggestion-item {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.tag-suggestion-item:hover {
    background-color: #f8f9fa;
}

.tag-suggestion-item:last-child {
    border-bottom: none;
}

.tag-suggestion-name {
    font-weight: 500;
}

.tag-suggestion-count {
    color: #6c757d;
    font-size: 12px;
    margin-left: 8px;
}

.pm-tooltip {
    padding: 5px 10px;
    font-size: 12px;
    white-space: nowrap;
}

/* Revenue Report */
.revenue-report-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
}

.report-alert {
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
    color: #0c5460;
}

.report-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.report-table th,
.report-table td {
    padding: 12px;
    text-align: center;
    border: 1px solid #ddd;
}

.report-table thead th {
    background-color: #ffc107;
    color: #212529;
    font-weight: bold;
}

.report-table tbody tr:hover {
    background-color: #f5f5f5;
}

.progress {
    width: 100%;
    height: 20px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: #ffc107;
    text-align: center;
    line-height: 20px;
    color: #212529;
    font-weight: bold;
    font-size: 12px;
}

.report-total-row {
    background-color: #f8f9fa;
    font-weight: 600;
}

/* === Terms Policy Manager === */
.pm-terms-container {
    max-width: 1200px;
    margin: 0 auto 60px;
}

.pm-terms-container .pm-terms-header h2 {
    margin: 10px 0 4px;
    font-size: 26px;
    font-weight: 700;
    color: var(--pm-color-dark);
}

.pm-terms-container .pm-terms-header p {
    margin: 0;
    color: var(--pm-color-muted);
    line-height: 1.6;
}

.pm-terms-container .pm-terms-tabs {
    display: inline-flex;
    border-radius: var(--pm-radius-lg);
    background: var(--pm-color-border-soft);
    padding: 4px;
    margin: 28px 0;
    border: 1px solid var(--pm-color-border);
}

.pm-terms-container .pm-terms-tab {
    border: none;
    background: transparent;
    color: var(--pm-color-muted);
    padding: 10px 24px;
    border-radius: var(--pm-radius-md);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

.pm-terms-container .pm-terms-tab:hover {
    background: var(--pm-color-surface);
    color: var(--pm-color-dark);
}

.pm-terms-container .pm-terms-tab.is-active {
    background: var(--pm-color-primary);
    color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.pm-terms-container .pm-terms-panel {
    display: none;
}

.pm-terms-container .pm-terms-panel.is-active {
    display: block;
}

.pm-terms-container .pm-terms-card {
    background: var(--pm-color-surface);
    border-radius: var(--pm-radius-lg);
    padding: 28px 32px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--pm-color-border-soft);
    margin-bottom: 28px;
}

.pm-terms-container .pm-terms-card h3 {
    margin: 0 0 16px;
    font-size: 20px;
    color: var(--pm-color-dark);
    font-weight: 700;
}

.pm-terms-container .pm-terms-card .pm-card-desc {
    margin: 0 0 22px;
    color: var(--pm-color-muted);
    line-height: 1.6;
}

.pm-terms-container .pm-terms-form-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 24px;
}

.pm-terms-container .pm-terms-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.pm-terms-container .pm-form-group label {
    display: block;
    font-weight: 600;
    color: var(--pm-color-dark);
    margin-bottom: 10px;
}

.pm-terms-container .pm-form-group input[type="text"],
.pm-terms-container .pm-form-group select {
    width: 100%;
    padding: 11px 14px;
    border-radius: var(--pm-radius-md);
    border: 1px solid var(--pm-color-border-strong);
    background: var(--pm-color-surface);
    transition: border-color 0.2s ease;
}

.pm-terms-container .pm-form-group textarea,
.pm-terms-container .pm-form-group .note-editor,
.pm-terms-container .pm-form-group .note-editable {
    width: 100%;
    min-height: 400px;
}

.pm-terms-container .pm-form-group input:focus,
.pm-terms-container .pm-form-group select:focus {
    border-color: var(--pm-color-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.pm-terms-container .pm-terms-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.pm-terms-container .pm-terms-history {
    margin-top: var(--pm-space-7);
}

.pm-terms-container .pm-terms-history h3 {
    margin: 0 0 var(--pm-space-4);
    font-size: 18px;
    font-weight: 700;
    color: var(--pm-color-dark);
}

.pm-terms-container .pm-terms-history table {
    width: 100%;
    border-collapse: collapse;
    background: var(--pm-color-surface);
    border: 1px solid var(--pm-color-border-soft);
    border-radius: var(--pm-radius-md);
    overflow: hidden;
}

.pm-terms-container .pm-terms-history th,
.pm-terms-container .pm-terms-history td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--pm-color-border-soft);
    text-align: left;
    font-size: 14px;
    vertical-align: top;
}

.pm-terms-container .pm-terms-history th {
    background: var(--pm-color-surface-alt);
    font-weight: 600;
    color: var(--pm-color-dark);
    border-bottom: 2px solid var(--pm-color-border);
}

.pm-terms-container .pm-terms-toolbar {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.pm-terms-container .pm-terms-toolbar .pm-form-group {
    margin: 0;
}

.pm-terms-container .pm-terms-toolbar select {
    min-width: 220px;
}

.pm-terms-container .pm-terms-summary {
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: var(--pm-color-primary-soft);
    border-radius: var(--pm-radius-md);
    padding: 18px;
    border: 1px solid var(--pm-color-border-soft);
}

.pm-terms-container .pm-terms-summary h4 {
    margin: 0;
    font-size: 16px;
    color: var(--pm-color-dark);
    font-weight: 600;
}

.pm-terms-container .pm-terms-summary p {
    margin: 0;
    color: var(--pm-color-muted);
    font-size: 13px;
    line-height: 1.6;
}

.pm-terms-container .pm-terms-summary strong {
    color: var(--pm-color-dark);
    font-weight: 600;
}

.pm-terms-container .pm-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.pm-terms-container .pm-badge.success {
    background: rgba(37, 194, 160, 0.15);
    color: #1ba987;
}

.pm-terms-container .pm-badge.secondary {
    background: rgba(108, 117, 125, 0.15);
    color: #6c757d;
}

.pm-terms-container .pm-btn {
    border-radius: var(--pm-radius-md);
    padding: 10px 18px;
    gap: 6px;
    border: 1px solid transparent;
    font-weight: 600;
}

.pm-terms-container .pm-btn-primary {
    background: var(--pm-color-primary);
    border-color: var(--pm-color-primary);
    color: #fff;
}

.pm-terms-container .pm-btn-primary:hover {
    background: var(--pm-color-primary-hover);
    border-color: var(--pm-color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.pm-terms-container .pm-btn-secondary {
    background: var(--pm-color-secondary);
    border-color: var(--pm-color-secondary);
    color: #fff;
}

.pm-terms-container .pm-btn-secondary:hover {
    background: var(--pm-color-secondary-hover);
    border-color: var(--pm-color-secondary-hover);
    transform: translateY(-2px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.pm-terms-container .pm-btn-danger {
    background: var(--pm-color-danger);
    border-color: var(--pm-color-danger);
    color: #fff;
}

.pm-terms-container .pm-btn-danger:hover {
    background: var(--pm-color-danger-hover);
    border-color: var(--pm-color-danger-hover);
    transform: translateY(-2px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.storage-guide-list {
    margin: 0;
    padding-left: 20px;
    color: #495057;
    line-height: 1.6;
}

.storage-info-box {
    margin-top: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
}

.storage-dropzone {
    border: 2px dashed #007bff;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    background: #f8f9fa;
    margin-bottom: 20px;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.storage-dropzone.is-active {
    border-color: #0056b3;
    background: #e7f3ff;
}

.storage-dropzone__icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.storage-dropzone__title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.storage-dropzone__desc {
    color: #666;
    font-size: 14px;
}

.storage-selected-files {
    margin-bottom: 20px;
}

.storage-file-list {
    max-height: 300px;
    overflow-y: auto;
}

.storage-file-actions {
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.storage-file-item {
    padding: 10px;
    margin-bottom: 8px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.storage-file-item__meta {
    flex: 1 1 auto;
}

.storage-file-item__name {
    font-weight: 600;
    word-break: break-all;
}

.storage-file-item__size {
    font-size: 12px;
    color: #666;
}

.storage-progress {
    margin-top: 20px;
}

.storage-progress-list {
    margin: 0;
}

.storage-progress-item {
    padding: 8px;
    margin-bottom: 5px;
    background: #f8f9fa;
    border-radius: 4px;
    font-size: 13px;
    transition: background 0.2s ease;
}

.storage-progress-item__header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.storage-progress-item.is-success {
    background: #d4edda;
}

.storage-progress-item.is-fail {
    background: #f8d7da;
}

.storage-progress-bar {
    background: #e9ecef;
    height: 25px;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 10px;
}

.storage-progress-bar__fill {
    background: linear-gradient(to right, #007bff, #0056b3);
    height: 100%;
    width: 0;
    transition: width 0.3s ease;
    color: #fff;
    text-align: center;
    line-height: 25px;
    font-weight: 600;
    font-size: 12px;
}

.storage-warning {
    margin-top: 15px;
    padding: 10px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    font-size: 13px;
}

#storage-form .form-group {
    margin-bottom: 20px;
}

#storage-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

#storage-form label.required::after {
    content: ' *';
    color: #dc3545;
}

#storage-form .form-control,
#storage-form .frm_input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

#storage-form .form-control:focus,
#storage-form .frm_input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

#storage-form .form-text {
    display: block;
    margin-top: 5px;
    color: #6c757d;
    font-size: 12px;
}

#storage-form .radio-group,
#storage-form .checkbox-group {
    margin-top: 5px;
}

#storage-form .radio-inline,
#storage-form .checkbox-inline {
    display: inline-flex;
    align-items: center;
    margin-right: 20px;
    font-weight: 400;
    cursor: pointer;
    gap: 5px;
}

#storage-form .form-actions {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
    text-align: center;
}

#storage-form .form-actions .pm-btn {
    margin: 0 5px;
}

.storage-manager-form .form-group {
    margin-bottom: 20px;
}

.storage-manager-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.storage-manager-form .form-control,
.storage-manager-form .frm_input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.storage-manager-form .form-control:focus,
.storage-manager-form .frm_input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.storage-manager-form .form-text {
    display: block;
    margin-top: 5px;
    color: #6c757d;
    font-size: 12px;
}

.storage-manager-form .checkbox-inline {
    display: inline-flex;
    align-items: center;
    margin-right: 20px;
    font-weight: 400;
    cursor: pointer;
    gap: 5px;
}

.storage-manager-form .form-actions {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

/* === Address Converter === */
.address-action-group {
    margin-top: 20px;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.address-summary-grid {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.address-summary-card {
    flex: 1 1 150px;
    min-width: 150px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    background: #f8f9fa;
}

.address-summary-card h6 {
    margin-bottom: 8px;
    color: #6c757d;
    font-size: 12px;
}

.address-summary-card h5 {
    margin: 0;
    color: #007bff;
}

.address-summary-card--info h5 {
    color: #17a2b8;
}

.address-summary-card--success {
    border-color: #28a745;
    background: #d4edda;
}

.address-summary-card--success h6 {
    color: #155724;
}

.address-summary-card--success h5 {
    color: #155724;
}

.address-summary-card--danger h5 {
    color: #dc3545;
}

.address-divider {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.address-preview-card {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    background: #f8f9fa;
}

.address-preview-card h6 {
    margin-bottom: 10px;
    color: #495057;
}

.address-preview-text {
    margin-bottom: 10px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    background: #fff;
    padding: 8px;
    border-radius: 4px;
}

.address-error-log {
    white-space: pre-wrap;
    word-break: break-all;
    margin-top: 10px;
    padding: 12px;
    background: #1f2933;
    color: #f8f9fa;
    border-radius: 6px;
    font-size: 13px;
}

/* === 플랫폼 상세 뷰 === */
.primary-platform-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.additional-platform-card {
    margin-bottom: 30px;
}

.platform-mini-card {
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 15px;
    background: #fff;
    min-height: 100%;
}

.platform-mini-card h6 {
    margin-bottom: 10px;
}

.platform-mini-meta {
    margin-bottom: 10px;
}

.map-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #999;
    background: #f8f9fa;
    text-align: center;
    padding: 20px;
}

.map-info-window {
    width: 150px;
    text-align: center;
    padding: 6px 0;
    font-size: 12px;
}

@media (max-width: 1080px) {
    .pm-terms-container .pm-terms-form-grid {
        grid-template-columns: 1fr;
    }
}

.back-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #6c757d;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.back-button:hover {
    background-color: #5a6268;
}

/* API Example */
.api-container {
    display: flex;
    height: calc(100vh - 60px);
    margin: 0;
}

.left-panel {
    width: 45%;
    background: #f8f9fa;
    overflow-y: auto;
    border-right: 2px solid #dee2e6;
}

.right-panel {
    width: 55%;
    background: #fff;
    overflow-y: auto;
    padding: 20px;
}

.header-bar {
    background: linear-gradient(135deg, var(--pm-color-accent) 0%, #764ba2 100%);
    color: #fff;
    padding: 15px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-bar h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.header-bar .api-info {
    font-size: 13px;
    margin-top: 5px;
    opacity: 0.9;
}

.api-info--small {
    font-size: 12px;
}

.api-info--highlight {
    font-size: 11px;
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 10px;
    border-radius: 3px;
    display: inline-block;
}

.api-category {
    margin: 0;
    border-bottom: 1px solid #dee2e6;
}

.category-header {
    background: #343a40;
    color: #fff;
    padding: 12px 20px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-header:hover {
    background: #495057;
}

.category-content {
    display: block;
}

.category-content.collapsed {
    display: none;
}

.api-item {
    padding: 15px 20px;
    border-bottom: 1px solid #e9ecef;
    cursor: pointer;
    transition: all 0.2s;
}

.api-item:hover {
    background: #e7f3ff;
}

.api-item.active {
    background: #cfe2ff;
    border-left: 4px solid #0d6efd;
}

.api-method {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    margin-right: 8px;
}

.method-get {
    background: #28a745;
    color: #fff;
}

.method-post {
    background: #007bff;
    color: #fff;
}

.api-title {
    font-weight: 600;
    font-size: 14px;
    color: #212529;
    margin-bottom: 5px;
}

.api-endpoint {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #6c757d;
    background: #f1f3f5;
    padding: 4px 8px;
    border-radius: 3px;
    margin-top: 5px;
}

.api-desc {
    font-size: 13px;
    color: #6c757d;
    margin-top: 5px;
    line-height: 1.6;
}

.param-badge {
    display: inline-block;
    background: #e9ecef;
    color: #495057;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    margin-right: 5px;
    margin-top: 5px;
}

.param-required {
    background: #dc3545;
    color: #fff;
}

.api-callout {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 15px;
    border-left: 4px solid transparent;
}

.api-callout--hint {
    background: #e7f3ff;
    border-left-color: #0d6efd;
}

.api-callout--info {
    background: #cfe2ff;
    border-left-color: #0d6efd;
}

.api-callout--warning {
    background: #fff3cd;
    border-left-color: #ffc107;
}

.api-callout--success {
    background: #d1e7dd;
    border-left-color: #198754;
}

.api-chip {
    background: #fff;
    padding: 3px 8px;
    border-radius: 3px;
    margin: 2px;
    display: inline-block;
    font-size: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.api-code-inline {
    display: inline-block;
    background: #f1f3f5;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 13px;
}

.api-code-inline--compact {
    padding: 5px;
    border-radius: 3px;
    font-size: 11px;
}

.result-container {
    background: #fff;
}

.result-header {
    border-bottom: 2px solid #dee2e6;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.result-header h2 {
    margin: 0 0 10px 0;
    font-size: 20px;
    color: #212529;
}

.result-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
}

.result-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 12px;
}

.status-success {
    background: #d1e7dd;
    color: #0f5132;
}

.status-error {
    background: #f8d7da;
    color: #842029;
}

.test-button {
    background: #0d6efd;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
    margin-top: 15px;
}

.test-button:hover {
    background: #0b5ed7;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.test-button:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
}

.params-section,
.response-section {
    margin-top: 20px;
}

.section-title {
    font-weight: 600;
    font-size: 15px;
    color: #495057;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid #dee2e6;
}

.param-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-top: 10px;
}

.param-table th {
    background: #f8f9fa;
    padding: 8px;
    text-align: left;
    font-weight: 600;
    border: 1px solid #dee2e6;
}

.param-table td {
    padding: 8px;
    border: 1px solid #dee2e6;
}

.param-input {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 13px;
}

.param-input:focus {
    outline: none;
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

.code-block {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 15px;
    margin-top: 10px;
    overflow-x: auto;
}

.code-block pre {
    margin: 0;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-all;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--pm-color-muted);
}

.empty-state .icon {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.3;
}

.loading {
    text-align: center;
    padding: 40px;
    color: var(--pm-color-muted);
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--pm-color-info-contrast);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* === Kakao Map === */
.kakao-map {
    width: 100%;
    height: 350px;
    margin-top: 10px;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

.kakao-map-write {
    width: 100%;
    height: 350px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

/* v1.0.251015c: 플랫폼별 회원 구분 고도화 스타일
   ========================================== */

/* 정산 플랫폼 섹션 */
.primary-platform-section {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(245, 87, 108, 0.3);
}

.primary-platform-section .section-title {
    color: white;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.revenue-info {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: #333;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.revenue-info .fa-coins {
    color: #ffc107;
}

/* 정산 플랫폼 알림 */
.revenue-platform-alert {
    background-color: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
}

.revenue-platform-alert h5 {
    color: #856404;
}

/* 플랫폼 라디오 그룹 */
.platform-radio-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.platform-radio-label {
    display: block;
    background: white;
    color: #333;
    padding: 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    position: relative;
}

.platform-radio-label:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.platform-radio-label input[type="radio"] {
    margin-right: 10px;
    transform: scale(1.3);
}

.platform-radio-label input[type="radio"]:checked+.platform-radio-text {
    font-weight: bold;
}

.platform-radio-label:has(input[type="radio"]:checked) {
    border-color: #ffc107;
    background: #fffbf0;
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.3);
}

.platform-radio-label .badge-warning {
    position: absolute;
    top: 10px;
    right: 10px;
}

/* 정산 플랫폼 카드 */
.primary-platform-card {
    border: 2px solid #ffc107;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.2);
    margin-bottom: 30px;
}

.primary-platform-card .card-header {
    background: var(--pm-color-surface);
    color: var(--pm-color-dark);
    border-bottom: 2px solid var(--pm-color-border);
}

/* 추가 플랫폼 섹션 */
.additional-platforms-section {
    border: 2px dashed #dee2e6;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    background: #f8f9fa;
}

.platform-checkbox-item {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.platform-checkbox-item:hover {
    border-color: #6c757d;
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.15);
}

.platform-checkbox-item:has(input[type="checkbox"]:checked) {
    background: #e7f3ff;
    border-color: #007bff;
}

.additional-membership-info {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 배지 스타일 */
.badge-lg {
    font-size: 1.1em;
    padding: 8px 12px;
}

.badge-warning {
    background-color: #ffc107;
    color: #212529;
}

/* 폼 레이블 */
.form-label-sm {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-control-sm {
    font-size: 0.9rem;
    padding: 6px 10px;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .platform-radio-group {
        grid-template-columns: 1fr;
    }

    .primary-platform-section {
        padding: 20px;
    }

    .revenue-platform-alert {
        padding: 15px;
    }
}

/* === Config Settings === */
.pm-config-container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 28px 0 64px;
}

.pm-config-header {
    margin-bottom: 26px;
}

.pm-config-subtitle {
    margin: 12px 0 0;
    color: #64738b;
    line-height: 1.7;
}

.pm-config-grid {
    display: grid;
    grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr);
    gap: 26px;
}

.pm-config-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 24px 48px rgba(20, 40, 80, 0.08);
    padding: 32px;
}

.pm-config-card h3 {
    margin: 0 0 16px;
    font-size: 20px;
    color: #16253d;
    font-weight: 700;
}

.pm-config-card .pm-card-desc {
    margin: 0 0 28px;
    color: #6b7a90;
    line-height: 1.7;
}

.pm-config-card .pm-form-group {
    margin-bottom: 28px;
}

.pm-config-card .pm-form-label {
    display: block;
    font-weight: 600;
    color: #1f3659;
    margin-bottom: 12px;
}

.pm-config-divider {
    height: 1px;
    margin: 26px 0 32px;
    background: linear-gradient(90deg, rgba(92, 116, 245, 0.32) 0%, rgba(211, 218, 242, 0.8) 100%);
    border: none;
}

.pm-form-textarea.pm-config-textarea {
    width: 100%;
    min-height: 160px;
    border-radius: 12px;
    border: 1px solid #d5ddee;
    padding: 14px 16px;
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
    background: #fbfcff;
}

.pm-form-textarea.pm-config-textarea:focus {
    border-color: #4a6cf7;
    box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.16);
    outline: none;
}

.pm-btn-block {
    width: 100%;
    padding: 14px 0;
    font-size: 16px;
    border-radius: 12px;
}

/* Settings Menu (Flat Design) */
.pm-settings-menu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--pm-space-5);
    margin-bottom: var(--pm-space-8);
}

.pm-settings-menu-item {
    background: var(--pm-color-surface);
    border: 1px solid var(--pm-color-border-soft);
    border-radius: var(--pm-radius-lg);
    padding: var(--pm-space-6);
    text-decoration: none;
    color: var(--pm-color-text);
    transition: all 0.2s ease;
    display: block;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.pm-settings-menu-item:hover {
    border-color: var(--pm-color-primary);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    text-decoration: none;
    color: var(--pm-color-text);
    transform: translateY(-2px);
}

.pm-settings-menu-item-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--pm-radius-md);
    background: var(--pm-color-primary-soft);
    color: var(--pm-color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: var(--pm-space-4);
}

.pm-settings-menu-item h3 {
    margin: 0 0 var(--pm-space-2) 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--pm-color-dark);
}

.pm-settings-menu-item p {
    margin: 0;
    font-size: 14px;
    color: var(--pm-color-muted);
    line-height: 1.6;
}

/* Cache Stats (Flat Design) */
.pm-cache-stats {
    background: var(--pm-color-gray-100);
    border-radius: var(--pm-radius-lg);
    padding: var(--pm-space-5);
    margin-bottom: var(--pm-space-6);
    border: 1px solid var(--pm-color-border-soft);
}

.pm-cache-stats-title {
    margin: 0 0 var(--pm-space-4) 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--pm-color-dark);
    display: flex;
    align-items: center;
    gap: var(--pm-space-2);
}

.pm-cache-stats-title i {
    color: var(--pm-color-primary);
}

.pm-cache-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--pm-space-4);
}

.pm-cache-stat-item {
    display: flex;
    flex-direction: column;
}

.pm-cache-stat-label {
    font-size: 12px;
    color: var(--pm-color-muted);
    margin-bottom: 4px;
}

.pm-cache-stat-value {
    font-size: 18px;
    font-weight: 600;
}

.pm-cache-stat-value--success {
    color: var(--pm-color-success);
}

.pm-cache-stat-value--danger {
    color: var(--pm-color-danger);
}

.pm-cache-stat-value--accent {
    color: var(--pm-color-accent);
}

.pm-cache-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--pm-space-3);
    margin-bottom: var(--pm-space-4);
}

.pm-cache-action-form {
    margin: 0;
}

.pm-cache-action-btn {
    width: 100%;
}

.pm-config-guide {
    background: linear-gradient(135deg, rgba(74, 108, 247, 0.12) 0%, rgba(139, 92, 246, 0.09) 100%);
    border: 1px solid rgba(74, 108, 247, 0.2);
    box-shadow: none;
    padding: 32px 28px;
}

.pm-config-guide ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pm-config-guide li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 15px;
    color: #384964;
    line-height: 1.7;
}

.pm-config-guide li::before {
    content: '•';
    position: absolute;
    left: 0;
    top: 0;
    color: #4a6cf7;
    font-size: 18px;
    line-height: 1;
}

.alert+.pm-config-grid {
    margin-top: 18px;
}

@media (max-width: 1024px) {
    .pm-config-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* === Biz Category Admin === */
.admin-info-box {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-left: 5px solid #6c757d;
    padding: 1.25rem;
    margin-bottom: 2rem;
    border-radius: 0.25rem;
}

.add-l-category-section {
    margin-bottom: 2.5rem !important;
}

.category-section {
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    margin-bottom: 2rem !important;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.category-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    font-weight: 600;
    font-size: 1.2rem;
    background-color: #f7f7f7;
    border-bottom: 1px solid #dee2e6;
}

.category-section-body {
    padding: 1.5rem;
}

.list-group-item-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.25rem;
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.list-group-item-title strong {
    font-size: 1.05rem;
}

.list-group-item-content {
    padding: 1.25rem;
}

/* ===== 통계 배지 스타일 (Material UI Design) ===== */
.stat-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.15rem 0.45rem;
    margin-left: 0.5rem;
    border-radius: 4px;
    font-size: 0.825rem;
    font-weight: 500;
    line-height: 1.5;
    vertical-align: middle;
    transition: background-color 0.2s ease;
    cursor: default;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.stat-badge i {
    font-size: 0.78rem;
    opacity: 0.87;
}

.stat-badge span {
    font-size: 0.825rem;
    font-weight: 500;
}

/* Material UI 색상 변형 - 플랫 디자인 */
.stat-badge-info {
    background-color: #e3f2fd;
    color: #1976d2;
}

.stat-badge-success {
    background-color: #e8f5e9;
    color: #388e3c;
}

.stat-badge-warning {
    background-color: #fff3e0;
    color: #f57c00;
}

.stat-badge:hover {
    background-color: rgba(0, 0, 0, 0.04);
}

.stat-badge-info:hover {
    background-color: #bbdefb;
}

.stat-badge-success:hover {
    background-color: #c8e6c9;
}

.stat-badge-warning:hover {
    background-color: #ffe0b2;
}

/* 제목 영역에서 통계 배지 간격 조정 */

/* ===== 접근성 개선 ===== */

/* visually-hidden: 스크린 리더용 텍스트 (화면에는 숨김) */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* 포커스 스타일 개선 (키보드 네비게이션) */
.category-section-header:focus {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.category-section-header:focus:not(:focus-visible) {
    outline: none;
    box-shadow: none;
}

/* 버튼 포커스 스타일 */
button:focus-visible,
a.pm-btn:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
}

/* 체크박스 포커스 스타일 */
.bulk-checkbox:focus-visible {
    outline: 2px solid #0d6efd;
    outline-offset: 3px;
}

/* 검색 입력 포커스 강조 */
#category-search:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
}

/* 일괄 작업 진행률 표시 */
.bulk-progress-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bulk-progress-content {
    background: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    min-width: 300px;
    text-align: center;
}

.bulk-progress-bar {
    width: 100%;
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin: 1rem 0;
}

.bulk-progress-bar-fill {
    height: 100%;
    background-color: #0d6efd;
    transition: width 0.3s ease;
}

.bulk-progress-text {
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: 0.5rem;
}

.title .stat-badge:first-of-type {
    margin-left: 0.75rem;
}

/* 중분류 제목에서도 동일하게 적용 */
.list-group-item-title .stat-badge:first-of-type {
    margin-left: 0.75rem;
}

/* ===== 일괄 작업 고정 바 스타일 (Material Design) ===== */
.bulk-actions-fixed-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #ffffff;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.12), 0 -4px 16px rgba(0, 0, 0, 0.08);
    z-index: 1050;
    padding: 1rem 0;
    border-top: 1px solid #e0e0e0;
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.bulk-actions-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.bulk-actions-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #212121;
    font-weight: 500;
}

.bulk-actions-info i {
    font-size: 1.5rem;
    color: #1976d2;
}

.bulk-actions-count {
    font-size: 1rem;
    color: #424242;
}

.bulk-actions-buttons {
    display: flex;
    gap: 0.75rem;
}

.bulk-action-btn {
    padding: 0.625rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-height: 36px;
}

.bulk-action-btn i {
    font-size: 1rem;
}

.bulk-action-btn-danger {
    background-color: #d32f2f;
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(211, 47, 47, 0.24);
}

.bulk-action-btn-danger:hover {
    background-color: #c62828;
    box-shadow: 0 4px 8px rgba(211, 47, 47, 0.32);
}

.bulk-action-btn-danger:active {
    background-color: #b71c1c;
    box-shadow: 0 1px 2px rgba(211, 47, 47, 0.24);
}

.bulk-action-btn-secondary {
    background-color: #f5f5f5;
    color: #424242;
    border: 1px solid #e0e0e0;
}

.bulk-action-btn-secondary:hover {
    background-color: #eeeeee;
}

.bulk-action-btn-secondary:active {
    background-color: #e0e0e0;
}

/* 페이지 하단 여백 추가 (고정 바 때문에) */
body.has-bulk-actions {
    padding-bottom: 80px;
}

/* 반응형 */
@media (max-width: 768px) {
    .bulk-actions-content {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .bulk-actions-buttons {
        width: 100%;
        flex-direction: column;
    }

    .bulk-action-btn {
        width: 100%;
        justify-content: center;
    }

    body.has-bulk-actions {
        padding-bottom: 120px;
    }
}

.tag-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 0;
}

.tag-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5em 0.9em;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    border-radius: 1rem;
    border: 1px solid transparent;
}

.tag-badge .delete-tag {
    text-decoration: none;
    margin-left: 8px;
    font-weight: bold;
    opacity: 0.7;
    transition: opacity 0.2s ease;
    color: inherit;
}

.tag-badge .delete-tag:hover {
    opacity: 1;
}

.tag-pastel-blue {
    background-color: #e7f1ff;
    color: #0d6efd;
    border-color: #b6d4fe;
}

.tag-pastel-green {
    background-color: #d1e7dd;
    color: #0f5132;
    border-color: #a3cfbb;
}

.tag-pastel-cyan {
    background-color: #cff4fc;
    color: #055160;
    border-color: #9eeaf9;
}

.tag-pastel-purple {
    background-color: #e9d5ff;
    color: #5815b3;
    border-color: #d3a1ff;
}

.tag-pastel-dark {
    background-color: #e9ecef;
    color: #212529;
    border-color: #d3d6d8;
}

.tag-input-wrapper {
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 4px 4px 4px 12px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.tag-input-wrapper:focus-within {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.tag-input {
    border: none;
    outline: none;
    flex-grow: 1;
    padding: 6px 2px;
    font-size: 14px;
    min-width: 150px;
}

.add-form {
    display: flex;
    gap: 10px;
}

.add-form .code-input {
    flex: 0 0 140px;
}

.add-form .name-input {
    flex: 1 1 auto;
}

/* === Search/Filter Box === */
.search-filter-box {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
    margin-bottom: 24px;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
}

.search-input-wrapper .search-icon {
    position: absolute;
    left: 16px;
    color: #adb5bd;
    font-size: 16px;
    pointer-events: none;
    z-index: 1;
    transition: color 0.3s ease;
}

.search-input-wrapper .search-input {
    padding-left: 48px;
    padding-right: 48px;
    height: 52px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.2s ease;
    background: #f8f9fa;
    width: 100%;
    color: #495057;
}

.search-input-wrapper .search-input:focus {
    background: #ffffff;
    border-color: var(--pm-color-primary);
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1);
    outline: none;
}

.search-input-wrapper .search-input:focus+.search-icon {
    color: var(--pm-color-primary);
}

.search-input-wrapper .clear-search-btn {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: #adb5bd;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 1;
    border-radius: 50%;
}

.search-input-wrapper .clear-search-btn:hover {
    color: #495057;
    background-color: #e9ecef;
}

.search-results-info {
    margin-top: 16px;
    text-align: center;
    font-size: 14px;
    color: #6c757d;
    animation: fadeIn 0.3s ease;
}

.search-results-info strong {
    color: var(--pm-color-primary);
    font-weight: 600;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Highlight matched text */
.search-highlight {
    background-color: #fff3cd;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 600;
}

/* Hidden category during search */
.category-section.search-hidden {
    display: none !important;
}

.list-group-item.search-hidden {
    display: none !important;
}

/* Mobile search adjustments */
@media (max-width: 768px) {
    .search-filter-box {
        padding: 15px;
    }

    .search-input-wrapper .search-input {
        height: 44px;
        font-size: 14px;
    }
}

/* === Accordion Styles === */
.category-section-header {
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s ease;
}

.category-section-header:hover {
    background-color: #eeeeee;
}

.category-section-header .toggle-icon {
    display: inline-block;
    transition: transform 0.3s ease;
    margin-right: 8px;
    font-size: 0.9em;
}

.category-section-header.collapsed .toggle-icon {
    transform: rotate(-90deg);
}

.category-section-body {
    max-height: 5000px;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    opacity: 1;
}

.category-section-body.collapse {
    max-height: 0;
    opacity: 0;
    padding: 0 !important;
}

/* === Inline Edit Styles === */
.edit-mode {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.inline-edit-input {
    border: 2px solid var(--pm-color-accent);
    border-radius: 4px;
    padding: 4px 8px;
    font-size: inherit;
    font-weight: inherit;
    outline: none;
    min-width: 200px;
}

.inline-edit-input:focus {
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.edit-actions {
    display: inline-flex;
    gap: 6px;
}

.edit-actions .pm-btn {
    padding: 4px 10px;
    font-size: 0.85rem;
}

/* Edit buttons for categories */
.pm-btn-edit {
    background-color: #17a2b8;
    color: white;
    border: none;
    padding: 4px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 0.85rem;
}

.pm-btn-edit:hover {
    background-color: #138496;
}

/* === Unified Tag Style === */
.tag-badge-unified {
    background-color: #e9ecef;
    color: #495057;
    border-color: #ced4da;
    transition: all 0.2s ease;
}

.tag-badge-unified:hover {
    background-color: #dee2e6;
    border-color: #adb5bd;
}

.tag-badge-unified.editable {
    cursor: pointer;
}

.tag-badge-unified.editable:hover {
    background-color: #d3d9df;
    transform: translateY(-1px);
}

/* Tag edit mode */
.tag-edit-mode {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #fff;
    border: 2px solid var(--pm-color-accent);
    border-radius: 1rem;
    padding: 0.4em 0.8em;
}

.tag-edit-input {
    border: none;
    outline: none;
    padding: 0;
    font-size: 14px;
    font-weight: 500;
    min-width: 80px;
    background: transparent;
}

/* === Animation for success feedback === */
@keyframes successPulse {

    0%,
    100% {
        background-color: #d4edda;
        border-color: #c3e6cb;
    }

    50% {
        background-color: #a8d5b0;
        border-color: #9ecfa8;
    }
}

.success-feedback {
    animation: successPulse 0.6s ease;
}

/* === Responsive improvements === */
@media (max-width: 768px) {
    .category-section-header {
        font-size: 1rem;
        padding: 0.75rem 1rem;
    }

    .inline-edit-input {
        min-width: 150px;
        font-size: 0.9rem;
    }

    .edit-actions .pm-btn {
        padding: 3px 8px;
        font-size: 0.8rem;
    }
}

/* === Toast Notification System === */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 350px;
}

.toast {
    background: white;
    border-radius: 8px;
    padding: 16px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideInRight 0.3s ease, fadeOut 0.3s ease 2.7s;
    border-left: 4px solid #6c757d;
}

.toast.toast-success {
    border-left-color: #28a745;
}

.toast.toast-error {
    border-left-color: #dc3545;
}

.toast.toast-info {
    border-left-color: #17a2b8;
}

.toast-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.toast-success .toast-icon {
    color: #28a745;
}

.toast-error .toast-icon {
    color: #dc3545;
}

.toast-info .toast-icon {
    color: #17a2b8;
}

.toast-message {
    flex: 1;
    font-size: 14px;
    color: #333;
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    font-size: 18px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.toast-close:hover {
    color: #333;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

/* === Loading Spinner === */
.ajax-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.ajax-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--pm-color-accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.btn-loading {
    position: relative;
    color: transparent !important;
}

.btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

/* Mobile Toast Adjustments */
@media (max-width: 768px) {
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .toast {
        padding: 12px 16px;
        font-size: 13px;
    }
}

/* === Trace Log 페이지 스타일 (v1.0.251016) === */

/* 통계 그리드 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--pm-color-surface);
    border: 1px solid var(--pm-color-border);
    border-radius: var(--pm-radius-lg);
    padding: 20px;
    box-shadow: var(--pm-shadow-card);
}

.stat-card-title {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    color: var(--pm-color-accent);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-top: 5px;
}

.stat-details {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.6;
}

/* 필터 폼 */
.filter-form {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: #495057;
}

.filter-group input,
.filter-group select {
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: border-color 0.2s ease;
}

.filter-group input:focus,
.filter-group select:focus {
    border-color: var(--pm-color-accent);
    outline: none;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.filter-checkbox-group {
    margin-top: 10px;
}

.filter-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
    cursor: pointer;
}

.filter-buttons {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

/* 테이블 정보 */
.table-info {
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #7f8c8d;
    font-weight: 500;
}

/* 로그 테이블 */
.log-table {
    width: 100%;
    border-collapse: collapse;
}

.log-table th,
.log-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
    font-size: 0.9rem;
}

.log-table th {
    background: var(--pm-color-accent);
    color: white;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 10;
}

.log-table tbody tr:hover {
    background: #f8f9fa;
}

/* 모듈 배지 */
.module-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}

.module-platfmgmt {
    background: var(--pm-color-accent);
    color: white;
}

.module-membership {
    background: #28a745;
    color: white;
}

.module-api {
    background: #ffc107;
    color: #000;
}

/* 에러 배지 */
.error-badge {
    background: #dc3545;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}

.error-message {
    font-size: 0.85rem;
    margin-top: 5px;
    color: #dc3545;
    line-height: 1.4;
}

.success-icon {
    color: #28a745;
    font-size: 1.2rem;
    font-weight: 700;
}

/* 로그 상세 정보 */
.log-detail-row {
    background: #f8f9fa;
}

.log-detail-content {
    padding: 15px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

.log-detail-section {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.log-detail-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.log-detail-section strong {
    display: block;
    margin-bottom: 8px;
    color: #495057;
    font-size: 0.95rem;
}

.log-code {
    display: block;
    padding: 8px 12px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: #495057;
    overflow-x: auto;
}

.log-json {
    padding: 12px;
    background: #282c34;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: #61dafb;
    overflow-x: auto;
    margin: 0;
    line-height: 1.6;
}

.log-user-agent,
.log-referer {
    padding: 8px 12px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 0.85rem;
    color: #6c757d;
    word-break: break-all;
}

/* 반응형 - Trace Log */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .filter-grid {
        grid-template-columns: 1fr;
    }

    .log-table {
        font-size: 0.8rem;
    }

    .log-table th,
    .log-table td {
        padding: 8px;
    }

    .log-detail-content {
        padding: 10px;
    }

    .log-json {
        font-size: 0.75rem;
        padding: 8px;
    }
}

/* === Dashboard Styles (Flat Design) === */
.dashboard-container {
    padding: var(--pm-space-5) 0;
}

.kpi-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--pm-space-5);
    margin-bottom: var(--pm-space-8);
}

.kpi-card {
    background: var(--pm-color-surface);
    border-radius: var(--pm-radius-lg);
    padding: var(--pm-space-5);
    border: 1px solid var(--pm-color-border-soft);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.kpi-title {
    font-size: 13px;
    color: var(--pm-color-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--pm-space-2-5);
}

.kpi-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--pm-color-dark);
    line-height: 1.2;
}

.kpi-sub {
    font-size: 13px;
    color: var(--pm-color-muted-light);
    margin-top: var(--pm-space-1-5);
    display: flex;
    align-items: center;
}

.kpi-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: var(--pm-space-2-5);
}

.kpi-icon--primary {
    background: var(--pm-color-primary-soft);
    color: var(--pm-color-primary);
}

.kpi-icon--success {
    background: var(--pm-color-success-soft);
    color: var(--pm-color-success);
}

.kpi-icon--warning {
    background: var(--pm-color-warning-soft);
    color: var(--pm-color-warning);
}

.kpi-icon--danger {
    background: var(--pm-color-danger-soft);
    color: var(--pm-color-danger);
}

.chart-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--pm-space-5);
    margin-bottom: var(--pm-space-8);
}

.chart-card {
    background: var(--pm-color-surface);
    border-radius: var(--pm-radius-lg);
    padding: var(--pm-space-6);
    border: 1px solid var(--pm-color-border-soft);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--pm-space-5);
}

.chart-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--pm-color-dark);
    display: flex;
    align-items: center;
    gap: var(--pm-space-2);
}

.chart-title i {
    color: var(--pm-color-primary);
}

.chart-container {
    height: 300px;
    position: relative;
}

.bottom-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--pm-space-5);
}

.content-card {
    background: var(--pm-color-surface);
    border-radius: var(--pm-radius-lg);
    padding: 0;
    border: 1px solid var(--pm-color-border-soft);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.content-card--full-width {
    grid-column: 1 / -1;
}

.content-header {
    padding: var(--pm-space-5) var(--pm-space-6);
    border-bottom: 1px solid var(--pm-color-border-soft);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--pm-color-surface);
}

.content-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--pm-color-dark);
    display: flex;
    align-items: center;
    gap: var(--pm-space-2);
}

.content-title i {
    color: var(--pm-color-primary);
}

.content-body {
    padding: var(--pm-space-5) var(--pm-space-6);
}

.system-status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--pm-space-3-5) 0;
    border-bottom: 1px solid var(--pm-color-gray-200);
}

.system-status-item:last-child {
    border-bottom: none;
}

.status-label {
    font-size: 14px;
    color: var(--pm-color-text);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: var(--pm-space-2);
}

.status-value {
    font-size: 14px;
    font-weight: 600;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    display: inline-block;
    margin-top: 4px;
}

.status-good {
    background: var(--pm-color-success-soft);
    color: var(--pm-color-success-strong);
}

.status-warning {
    background: var(--pm-color-warning-soft);
    color: var(--pm-color-warning-dark);
}

.status-danger {
    background: var(--pm-color-danger-soft);
    color: var(--pm-color-danger-strong);
}

.quick-action-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--pm-space-2-5);
}

.quick-action-grid--four {
    grid-template-columns: repeat(4, 1fr);
}

.quick-btn {
    display: flex;
    align-items: center;
    padding: var(--pm-space-3) var(--pm-space-3-5);
    background: var(--pm-color-gray-100);
    border-radius: var(--pm-radius-md);
    color: var(--pm-color-text);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid var(--pm-color-border-soft);
}

.quick-btn:hover {
    background: var(--pm-color-border-soft);
    color: var(--pm-color-dark);
    text-decoration: none;
    border-color: var(--pm-color-border);
}

.quick-btn i {
    margin-right: var(--pm-space-2-5);
    width: 20px;
    text-align: center;
    color: var(--pm-color-muted);
}

.table-simple th {
    font-size: 12px;
    color: var(--pm-color-muted);
    font-weight: 600;
    text-transform: uppercase;
    border-top: none;
}

.table-simple td {
    vertical-align: middle;
    font-size: 14px;
    padding: var(--pm-space-3) 0.75rem;
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: var(--pm-color-border-soft);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--pm-color-text);
    margin-right: var(--pm-space-2-5);
}

.user-info {
    display: flex;
    align-items: center;
}

.user-info-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--pm-color-dark);
}

.user-info-company {
    font-size: 12px;
    color: var(--pm-color-muted);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--pm-space-5);
    margin-top: var(--pm-space-8);
}

@media (max-width: 1200px) {
    .kpi-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .chart-row,
    .bottom-row,
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .kpi-row {
        grid-template-columns: 1fr;
    }

    .quick-action-grid--four {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* === Form Group Utilities === */
.form-group--full-width {
    grid-column: 1 / -1;
}

.table-mt {
    margin-top: var(--pm-space-2-5);
}

.code-small {
    font-size: 11px;
}

.alert-mb {
    margin-bottom: var(--pm-space-2-5);
}

.scroll-container {
    max-height: 200px;
    overflow-y: auto;
}

.form-text-muted {
    display: block;
    margin-top: var(--pm-space-2);
    font-size: 13px;
    color: var(--pm-color-muted);
}

/* === Filter Form Styles (Flat Design) === */
.pm-filter-form {
    padding: var(--pm-space-6);
}

.pm-filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--pm-space-5);
    margin-bottom: var(--pm-space-5);
}

.pm-filter-group {
    display: flex;
    flex-direction: column;
}

.pm-filter-label {
    display: block;
    margin-bottom: var(--pm-space-2);
    font-weight: 500;
    color: var(--pm-color-text);
    font-size: 14px;
}

.pm-filter-input {
    width: 100%;
}

.pm-filter-actions {
    display: flex;
    gap: var(--pm-space-2-5);
}

/* === Table Link Styles === */
.table-link {
    color: var(--pm-color-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.table-link:hover {
    color: var(--pm-color-primary-hover);
    text-decoration: underline;
}

.table-link-muted {
    color: var(--pm-color-muted);
}

.table-code {
    font-size: 0.85em;
}

.table-text-danger {
    color: var(--pm-color-danger);
    font-size: 0.9em;
}

/* === Lazy Loading Placeholder === */
.lazy-loading-placeholder {
    text-align: center;
    padding: 3rem;
    color: var(--pm-color-muted);
}

.lazy-loading-placeholder i {
    font-size: 3rem;
    opacity: 0.3;
    margin-bottom: 1rem;
    display: block;
}

.lazy-loading-placeholder p {
    font-size: 1.1rem;
    font-weight: 600;
}

/* === Button Center Container === */
.btn-center-container {
    text-align: center;
    margin-top: var(--pm-space-8);
}

/* === Cache Monitor Output === */
.cache-monitor-output {
    font-family: monospace;
    background: #1e1e1e;
    color: #d4d4d4;
    padding: var(--pm-space-5);
    border-radius: var(--pm-radius-md);
    overflow-x: auto;
}

/* === Privacy/Thirdparty Admin Styles === */
.privacy-filter-card {
    margin-bottom: var(--pm-space-5);
}

.privacy-filter-grid {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    gap: var(--pm-space-3);
    align-items: end;
}

.privacy-filter-grid > div {
    align-self: end;
}

.privacy-table th {
    width: auto;
}

.privacy-table th:nth-child(1) {
    width: 80px;
}

.privacy-table th:nth-child(2) {
    width: 120px;
}

.privacy-table th:nth-child(5) {
    width: 100px;
}

.privacy-table th:nth-child(6) {
    width: 100px;
}

.privacy-table th:nth-child(7) {
    width: 240px;
}

.sort-order-input {
    width: 60px;
    padding: 4px 8px;
    border: 1px solid var(--pm-color-border);
    border-radius: var(--pm-radius-sm);
    text-align: center;
}

.privacy-chip {
    display: inline-block;
    padding: 4px 8px;
    border-radius: var(--pm-radius-sm);
    font-size: 12px;
    font-weight: 500;
}

.item-description {
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--pm-color-muted);
    font-size: 13px;
    margin-top: 4px;
}

.table-cell-muted {
    color: var(--pm-color-muted);
    font-size: 13px;
}

.action-buttons {
    display: flex;
    gap: 6px;
    justify-content: center;
}

.inline-form {
    display: inline;
}

.form-container {
    max-width: 900px;
}

.help-text-indent {
    margin-left: 28px;
}

.form-actions-center {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: var(--pm-space-8);
    padding-bottom: var(--pm-space-5);
}

/* === Owner/Storage Styles === */
/* Owner-specific styles moved to owner.css to avoid duplication */
/* Only keep shared/utility styles here */

.table-th-width-40 {
    width: 40px;
}

.progress-bar-fill {
    width: 0%;
    transition: width 0.3s ease;
}

.dir-link {
    text-decoration: none;
    cursor: pointer;
}

.pagination-current {
    cursor: default;
}

/* === Category Admin Styles === */
.privacy-filter-grid-custom {
    display: grid;
    grid-template-columns: 1fr 1fr 150px 120px auto;
    gap: var(--pm-space-3);
}

.text-danger-inline {
    color: var(--pm-color-danger);
}

.checkbox-large {
    width: 20px;
    height: 20px;
}

.checkbox-label-inline {
    display: inline;
    margin-left: var(--pm-space-2);
}

.form-actions-top {
    padding-top: var(--pm-space-2);
}

.form-actions-mt {
    margin-top: var(--pm-space-3);
}

.category-table th:nth-child(1) {
    width: 100px;
}

.category-table th:nth-child(2) {
    width: 150px;
}

.category-table th:nth-child(4) {
    width: 100px;
}

.category-table th:nth-child(5) {
    width: 100px;
}

.category-table th:nth-child(6) {
    width: 200px;
}