/* 해더 일부 css 무력화 */
.breadcrumb {
  display: none !important;
}

/* GW_basic responsive.css 의 padding 강제 제거 */
.main_boundary, .sub_boundary {padding: 0 !important; max-width: 1400px !important;}
* {box-sizing: border-box;}

.g-my-nav .nav-divider {
    list-style: none;
    height: 1px;
    margin: 14px 0;
    background: #E6F7FF; /* 연한 구분선 */
}

/* 폼 정산 */
.my-card{background:#fff;border:1px solid #eee;border-radius:10px;padding:12px;margin:12px 0;}
.my-list{display:flex;flex-direction:column;gap:12px;}
.my-item{background:#fff;border:1px solid #eee;border-radius:12px;padding:14px;}
.my-item-title{font-size:16px;font-weight:700;}
.my-item-sub{font-size:12px;color:#888;margin-top:4px;}
.my-row{display:flex;gap:12px;align-items:flex-end;flex-wrap:wrap;}
.my-col{flex:1;min-width:220px;}
.my-col-btn{flex:0 0 auto;min-width:220px;text-align:right;}
.my-label{font-size:12px;color:#777;margin-bottom:6px;}
.my-val{font-size:14px;}
.my-mini{margin-left:8px;font-size:12px;color:#999;}
.btn{border:0;border-radius:10px;padding:10px 12px;cursor:pointer;}
.btn-primary{background:#2D4739;color:#fff;}
.btn-disabled{background:#eee;color:#999;cursor:not-allowed;}
.badge{display:inline-block;padding:4px 8px;border-radius:999px;font-size:12px;}
.badge-gray{background:#f1f1f1;color:#666;}ㄴ
.badge-blue{background:#e8f0ff;color:#2b5cff;}
.badge-green{background:#e8fff0;color:#0b7a3b;}
.badge-red{background:#ffecec;color:#c62828;}
.badge-dark{background:#222;color:#fff;}
.my-empty{padding:30px 0;text-align:center;color:#999;}

/* ========================================================================== 내 폼 관리 ================================================================= */
/* 컨테이너 & 레이아웃 */
.form-list-container { max-width: 1400px; margin: 0 auto; }
.form-list-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding-bottom: 15px; }
.form-list-header h1 { margin: 0; font-size: 24px; }

/* 버튼 */
.add-form-btn { padding: 10px 20px; background: #003380ff; color: #fff; border: none; border-radius: 6px; font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none; display: inline-block; }
.add-form-btn:hover { background: #002760; }

/* 탭 */
.status-tabs { display: flex; gap: 10px; margin-bottom: 20px; border-bottom: 1px solid #e0e0e0; }
.status-tab { padding: 12px 20px; background: none; border: none; border-bottom: 3px solid transparent; font-size: 15px; color: #666; cursor: pointer; transition: all 0.3s ease; }
.status-tab.active { color: #003380ff; border-bottom-color: #003380ff; font-weight: 600; }
.status-tab:hover { color: #003380ff; }

/* 폼 카드 */
.form-item-card { display: flex; gap: 20px; padding: 20px; background: #fff; border: 1px solid #e0e0e0; border-radius: 12px; margin-bottom: 15px; transition: all 0.3s ease; }
.form-item-card:hover { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); }
.form-item-image { width: 150px; height: 150px; border-radius: 8px; overflow: hidden; flex-shrink: 0; background: #f5f5f5; }
.form-item-image img { width: 100%; height: 100%; object-fit: cover; }
.form-item-content { flex: 1; display: flex; flex-direction: column; }
.form-item-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.form-item-title { font-size: 18px; font-weight: 700; color: #333; margin: 0 0 8px 0; }

/* 상태 뱃지 */
.form-item-status { padding: 4px 12px; border-radius: 12px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.status-active { background: #e8f5e9; color: #2e7d32; }
.status-inactive { background: #fff3e0; color: #f57c00; }
.status-ended { background: #f5f5f5; color: #666; }

/* 정보 */
.form-item-info { display: flex; flex-wrap: wrap; gap: 15px; margin-bottom: 15px; color: #666; font-size: 14px; }
.info-item { display: flex; align-items: center; gap: 5px; }
.info-item i { color: #003380ff; }

/* 액션 버튼 */
.form-item-actions { display: flex; gap: 8px; margin-top: auto; flex-wrap: wrap; }
.action-btn { padding: 8px 16px; border: 1px solid #e0e0e0; border-radius: 6px; font-size: 13px; cursor: pointer; transition: all 0.3s ease; background: #fff; color: #333; text-decoration: none; display: inline-block; }
.action-btn:hover { background: #f5f5f5; }
.btn-edit { border-color: #003380ff; color: #003380ff; }
.btn-edit:hover { background: #003380ff; color: #fff; }
.btn-delete { border-color: #ff4444; color: #ff4444; }
.btn-delete:hover { background: #ff4444; color: #fff; }
.btn-view { border-color: #666; color: #666; }
.btn-view:hover { background: #666; color: #fff; }

/* 빈 상태 */
.empty-state { text-align: center; padding: 80px 20px; color: #999; }
.empty-state i { font-size: 64px; margin-bottom: 20px; opacity: 0.3; }
.empty-state p { font-size: 16px; margin: 10px 0; }

/* 통계 */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-bottom: 30px; }
.stat-card { padding: 20px; background: #fff; border: 1px solid #e0e0e0; border-radius: 12px; text-align: center; }
.stat-label { font-size: 13px; color: #666; margin-bottom: 8px; }
.stat-value { font-size: 24px; font-weight: 700; color: #003380ff; }

/* 모바일 (768px 이하) */
@media (max-width: 768px) {
    .form-list-container { padding: 0; }
    .form-list-header { flex-direction: column; align-items: stretch; gap: 12px; padding-bottom: 12px; }
    .form-list-header h1 { font-size: 20px; }
    .add-form-btn { width: 100%; text-align: center; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 20px; }
    .stat-card { padding: 16px 12px; }
    .stat-label { font-size: 12px; }
    .stat-value { font-size: 20px; }
    .status-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; gap: 5px; padding-bottom: 10px; }
    .status-tabs::-webkit-scrollbar { display: none; }
    .status-tab { padding: 10px 16px; font-size: 14px; white-space: nowrap; flex-shrink: 0; }
    .form-item-card { flex-direction: column; padding: 16px; gap: 16px; }
    .form-item-image {
        width: 100%;
        aspect-ratio: 1 / 1;   /* 정사각형 */
        height: auto;
    }

    .form-item-image img {
        width: 100%;
        height: 100%;
        background: #f5f5f5;  /* 여백 보일 때 자연스럽게 */
    }
    .form-item-header { flex-direction: column; gap: 8px; }
    .form-item-title { font-size: 16px; }
    .form-item-info { flex-direction: column; gap: 8px; font-size: 13px; }
    .form-item-actions { gap: 6px; }
    .action-btn { flex: 1; min-width: 0; padding: 10px 12px; font-size: 12px; text-align: center; }
    .empty-state { padding: 60px 20px; }
    .empty-state i { font-size: 48px; }
    .empty-state p { font-size: 14px; }
}

/* 작은 모바일 (480px 이하) */
@media (max-width: 480px) {
    .form-list-header h1 { font-size: 18px; }
    .stat-value { font-size: 18px; }
    .form-item-card { padding: 12px; }
    .form-item-title { font-size: 15px; }
}

/* 티켓 */
    #wrapper { padding: 0; max-width: 100%; }
    #container { padding: 0; }
    
    .ticket-page {
        min-height: 100vh;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        padding-bottom: 40px;
    }

    .ticket-header {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        padding: 16px 20px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        position: sticky;
        top: 0;
        z-index: 100;
    }

    .header-top {
        display: flex;
        align-items: center;
        gap: 16px;
        margin-bottom: 16px;
    }

    .back-btn {
        background: none;
        border: none;
        font-size: 24px;
        cursor: pointer;
        padding: 0;
        color: #1f2937;
        line-height: 1;
    }

    .ticket-title {
        font-size: 18px;
        font-weight: 700;
        color: #1f2937;
        flex: 1;
    }

    .event-select-wrapper {
        position: relative;
    }

    .event-select {
        width: 100%;
        padding: 12px 16px;
        border: 2px solid #e5e7eb;
        border-radius: 10px;
        font-size: 15px;
        font-weight: 600;
        color: #1f2937;
        background: white;
        cursor: pointer;
        appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%234B5563' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 16px center;
        padding-right: 40px;
    }

    .event-select:focus {
        outline: none;
        border-color: #42baf3;
    }

    .ticket-content {
        padding: 20px;
        max-width: 600px;
        margin: 0 auto;
    }

    .tickets-grid {
        display: grid;
        gap: 20px;
    }

    .ticket-card {
        background: white;
        border-radius: 20px;
        overflow: hidden;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
        position: relative;
        transition: transform 0.3s;
    }

    .ticket-card:active {
        transform: scale(0.98);
    }

    .ticket-bg {
        height: 180px;
        background-size: cover;
        background-position: center;
        background-color: #667eea;
        position: relative;
        overflow: hidden;
    }

    .ticket-bg::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.5));
    }

    .ticket-header-info {
        position: absolute;
        bottom: 16px;
        left: 16px;
        right: 16px;
        color: white;
        z-index: 1;
    }

    .ticket-form-title {
        font-size: 18px;
        font-weight: 700;
        margin-bottom: 4px;
        text-shadow: 0 2px 4px rgba(0,0,0,0.3);
        line-height: 1.3;
    }

    .ticket-purchase-date {
        font-size: 13px;
        opacity: 0.9;
        text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    }

    .ship-method-badge {
        display: inline-block;
        padding: 4px 10px;
        background: rgba(255, 255, 255, 0.9);
        border-radius: 12px;
        font-size: 11px;
        font-weight: 600;
        margin-bottom: 8px;
        color: #059669;
    }

    .ticket-tear {
        height: 20px;
        background: white;
        position: relative;
    }

    .ticket-tear::before {
        content: '';
        position: absolute;
        top: -10px;
        left: 0;
        right: 0;
        height: 20px;
        background: radial-gradient(circle at 10px 0px, transparent 10px, white 10px);
        background-size: 20px 20px;
        background-repeat: repeat-x;
    }

    .ticket-body {
        padding: 24px;
    }

    .ticket-qr-section {
        text-align: center;
        margin-bottom: 20px;
    }

    .qr-code {
        width: 160px;
        height: 160px;
        background: #f9fafb;
        border: 2px solid #e5e7eb;
        border-radius: 12px;
        margin: 0 auto 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        overflow: hidden;
    }

    .qr-code canvas {
        max-width: 100%;
        max-height: 100%;
    }

    .qr-status {
        display: inline-block;
        padding: 6px 16px;
        background: #d1fae5;
        color: #065f46;
        border-radius: 20px;
        font-size: 13px;
        font-weight: 600;
    }

    .ticket-options {
        background: #f9fafb;
        border-radius: 8px;
        padding: 12px;
        margin-bottom: 16px;
    }

    .option-item {
        display: flex;
        justify-content: space-between;
        padding: 6px 0;
        font-size: 13px;
        color: #4b5563;
    }

    .option-item:not(:last-child) {
        border-bottom: 1px solid #e5e7eb;
        padding-bottom: 6px;
        margin-bottom: 6px;
    }

    .option-name {
        flex: 1;
    }

    .option-qty {
        color: #6b7280;
        margin-left: 8px;
    }

    .ticket-details {
        border-top: 2px dashed #e5e7eb;
        padding-top: 16px;
    }

    .ticket-detail-row {
        display: flex;
        justify-content: space-between;
        padding: 8px 0;
        font-size: 14px;
    }

    .detail-label {
        color: #6b7280;
    }

    .detail-value {
        color: #1f2937;
        font-weight: 600;
    }

    .ticket-actions {
        margin-top: 16px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .btn-action {
        padding: 12px;
        border: none;
        border-radius: 10px;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s;
    }

    .btn-show-qr {
        background: #42baf3;
        color: white;
    }

    .btn-show-qr:active {
        transform: scale(0.95);
    }

    .btn-save {
        background: #f3f4f6;
        color: #4b5563;
    }

    .empty-state {
        text-align: center;
        padding: 60px 20px;
        color: white;
    }

    .empty-icon {
        font-size: 64px;
        margin-bottom: 16px;
        opacity: 0.8;
    }

    .empty-text {
        font-size: 16px;
        font-weight: 600;
        margin-bottom: 8px;
    }

    .empty-subtext {
        font-size: 14px;
        opacity: 0.8;
    }

    .qr-modal {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.95);
        z-index: 9999;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        padding: 20px;
    }

    .qr-modal.active {
        display: flex;
    }

    .qr-modal-content {
        text-align: center;
        color: white;
    }

    .qr-modal-title {
        font-size: 20px;
        font-weight: 700;
        margin-bottom: 20px;
    }

    .qr-modal-qr {
        width: 280px;
        height: 280px;
        background: white;
        border-radius: 16px;
        margin: 0 auto 24px;
        padding: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .qr-modal-qr canvas {
        max-width: 100%;
        max-height: 100%;
    }

    .qr-modal-info {
        font-size: 14px;
        opacity: 0.8;
        margin-bottom: 20px;
    }

    .qr-modal-close {
        background: white;
        color: #1f2937;
        border: none;
        border-radius: 12px;
        padding: 14px 32px;
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
    }

    @media (max-width: 480px) {
        .ticket-content {
            padding: 16px;
        }

        .ticket-bg {
            height: 140px;
        }

        .ticket-form-title {
            font-size: 16px;
        }

        .ticket-body {
            padding: 20px;
        }

        .qr-code {
            width: 140px;
            height: 140px;
        }

        .qr-modal-qr {
            width: 240px;
            height: 240px;
        }
    }
