/* ============================================================
   태영베어링 관리자 전용 CSS (admin.css)
   ============================================================ */

/* body 관리자용 */
body.ty-admin-body {
  font-family: 'Noto Sans KR', sans-serif;
  background-color: #f5f7fa;
  padding: 0;
  margin: 0;
}

/* ============================================================
   관리자 로그인 페이지
   ============================================================ */
.ty-admin-login-page {
  min-height: 100vh;
  background: linear-gradient(145deg, #1a3a5c 0%, #0d2033 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.ty-login-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.35);
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 420px;
}
@media (max-width: 480px) {
  .ty-login-card { padding: 2rem 1.5rem; }
}
.ty-login-brand {
  text-align: center;
  margin-bottom: 2rem;
}
.ty-login-brand .brand-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a3a5c;
  display: block;
  margin-bottom: 0.25rem;
}
.ty-login-brand .brand-sub {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #2e6da4;
}
.ty-login-divider {
  height: 2px;
  background: linear-gradient(to right, transparent, #e8b84b, transparent);
  margin: 1rem 0 1.5rem;
}
.ty-admin-form .form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #2c3e50;
}
.ty-admin-form .form-control {
  border: 1.5px solid #dee2e6;
  border-radius: 6px;
  padding: 0.65rem 0.9rem;
  font-size: 0.92rem;
  font-family: 'Noto Sans KR', sans-serif;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.ty-admin-form .form-control:focus {
  border-color: #2e6da4;
  box-shadow: 0 0 0 3px rgba(46,109,164,0.12);
  outline: none;
}
.ty-pw-wrap { position: relative; }
.ty-pw-wrap .form-control { padding-right: 2.75rem; }
.ty-pw-wrap .ty-pw-toggle-btn {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #6c757d;
  cursor: pointer;
  padding: 0;
  font-size: 0.95rem;
  line-height: 1;
}
.ty-pw-wrap .ty-pw-toggle-btn:hover { color: #2e6da4; }
.ty-login-error {
  background: #fff5f5;
  border-left: 4px solid #dc3545;
  border-radius: 4px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #dc3545;
}
.ty-btn-login {
  width: 100%;
  padding: 0.8rem;
  background-color: #1a3a5c;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: 'Noto Sans KR', sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: background-color 0.2s;
  margin-top: 1.5rem;
}
.ty-btn-login:hover { background-color: #0f2740; }
.ty-login-copyright {
  margin-top: 1.5rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  text-align: center;
}

/* ============================================================
   관리자 공통 레이아웃
   ============================================================ */
.ty-admin-wrapper {
  display: flex;
  min-height: 100vh;
}

/* ============================================================
   사이드바
   ============================================================ */
.ty-admin-sidebar {
  width: 240px;
  min-height: 100vh;
  background-color: #1a3a5c;
  flex-shrink: 0;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  overflow-y: auto;
  z-index: 1030;
  transition: transform 0.3s ease;
}
@media (max-width: 991px) {
  .ty-admin-sidebar {
    transform: translateX(-100%);
  }
  .ty-admin-sidebar.open {
    transform: translateX(0);
  }
}
.ty-sidebar-brand {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  text-decoration: none;
  display: block;
}
.ty-sidebar-brand .brand-name {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  display: block;
}
.ty-sidebar-brand .brand-sub {
  color: #e8b84b;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.ty-sidebar-nav { padding: 0.75rem 0; }
.ty-sidebar-nav .nav-section-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.35);
  padding: 1rem 1.5rem 0.3rem;
}
.ty-sidebar-nav .nav-item { margin: 0.1rem 0.75rem; }
.ty-sidebar-nav .nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255,255,255,0.7);
  padding: 0.65rem 0.85rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s;
  border-left: 3px solid transparent;
}
.ty-sidebar-nav .nav-link i { width: 18px; text-align: center; font-size: 1rem; }
.ty-sidebar-nav .nav-link:hover {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.9);
}
.ty-sidebar-nav .nav-link.active {
  background: rgba(255,255,255,0.15);
  color: #ffffff;
  border-left-color: #e8b84b;
  font-weight: 700;
}

/* ============================================================
   상단 헤더
   ============================================================ */
.ty-admin-header {
  position: fixed;
  top: 0;
  left: 240px;
  right: 0;
  height: 60px;
  background: #ffffff;
  border-bottom: 1px solid #dee2e6;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  z-index: 1020;
  transition: left 0.3s ease;
}
@media (max-width: 991px) {
  .ty-admin-header { left: 0; }
}
.ty-admin-header .header-toggle {
  background: none;
  border: none;
  color: #2c3e50;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  margin-right: 0.75rem;
}
.ty-admin-header .header-toggle:hover { background: #f5f7fa; }
.ty-admin-header .header-logo {
  font-size: 1rem;
  font-weight: 700;
  color: #1a3a5c;
  text-decoration: none;
}
.ty-admin-header .header-spacer { flex: 1; }
.ty-admin-header .admin-info {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
}
.ty-admin-header .admin-name { color: #2c3e50; font-weight: 500; }
.ty-admin-header .btn-logout {
  background: none;
  border: 1px solid #dee2e6;
  color: #dc3545;
  padding: 0.3rem 0.75rem;
  border-radius: 4px;
  font-size: 0.82rem;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: background-color 0.15s;
  font-family: 'Noto Sans KR', sans-serif;
}
.ty-admin-header .btn-logout:hover { background: #fff5f5; }

/* ============================================================
   사이드바 오버레이 (모바일)
   ============================================================ */
.ty-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1025;
}
.ty-sidebar-overlay.show { display: block; }

/* ============================================================
   콘텐츠 영역
   ============================================================ */
.ty-admin-content {
  margin-left: 240px;
  margin-top: 60px;
  padding: 1.75rem 2rem;
  min-height: calc(100vh - 60px);
  transition: margin-left 0.3s ease;
  flex: 1;
}
@media (max-width: 991px) {
  .ty-admin-content { margin-left: 0; }
}
.ty-admin-page-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1a3a5c;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #dee2e6;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ============================================================
   통계 카드
   ============================================================ */
.ty-stat-card {
  background: #ffffff;
  border-radius: 10px;
  padding: 1.5rem;
  border-left: 4px solid;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}
.ty-stat-card.today   { border-left-color: #2196f3; }
.ty-stat-card.received { border-left-color: #ff9800; }
.ty-stat-card.progress { border-left-color: #ffc107; }
.ty-stat-card.done     { border-left-color: #28a745; }
.ty-stat-card .stat-info .stat-num {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.25rem;
}
.ty-stat-card.today    .stat-num { color: #2196f3; }
.ty-stat-card.received .stat-num { color: #ff9800; }
.ty-stat-card.progress .stat-num { color: #ffc107; }
.ty-stat-card.done     .stat-num { color: #28a745; }
.ty-stat-card .stat-label { font-size: 0.85rem; color: #6c757d; }
.ty-stat-card .stat-icon { font-size: 2.5rem; }
.ty-stat-card.today    .stat-icon { color: rgba(33,150,243,0.15); }
.ty-stat-card.received .stat-icon { color: rgba(255,152,0,0.15); }
.ty-stat-card.progress .stat-icon { color: rgba(255,193,7,0.15); }
.ty-stat-card.done     .stat-icon { color: rgba(40,167,69,0.15); }

/* ============================================================
   발송 실패 알림 카드
   ============================================================ */
.ty-fail-alert {
  background: #fff5f5;
  border: 1px solid #fcc;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: #dc3545;
}
.ty-fail-alert a { color: #dc3545; font-weight: 700; }

/* ============================================================
   관리자 테이블 공통
   ============================================================ */
.ty-admin-table-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  overflow: hidden;
}
.ty-admin-table-card .table-header {
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #dee2e6;
}
.ty-admin-table-card .table-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1a3a5c;
  margin: 0;
}
.ty-admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.ty-admin-table thead th {
  background: #f8f9fa;
  color: #6c757d;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.75rem 1rem;
  border-bottom: 2px solid #dee2e6;
  white-space: nowrap;
}
.ty-admin-table tbody td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #f0f0f0;
  color: #2c3e50;
  vertical-align: middle;
}
.ty-admin-table tbody tr:last-child td { border-bottom: none; }
.ty-admin-table tbody tr {
  transition: background-color 0.1s;
}
.ty-admin-table tbody tr:hover { background: #f0f4f8; }
.ty-admin-table .empty-row td {
  text-align: center;
  color: #adb5bd;
  padding: 3rem;
}
.ty-admin-table .col-id { width: 60px; color: #adb5bd; }
.ty-admin-table .col-date { white-space: nowrap; font-size: 0.82rem; }
.ty-admin-table .col-attach { text-align: center; }
.ty-admin-table .attach-icon { color: #2e6da4; font-size: 0.95rem; }
.ty-table-tel {
  color: #1a3a5c;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
}
.ty-table-tel:hover { color: #2e6da4; }

/* ============================================================
   검색 필터 카드
   ============================================================ */
.ty-search-card {
  background: #ffffff;
  border: 1px solid #dee2e6;
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 6px rgba(0,0,0,0.05);
}
.ty-search-card .filter-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #6c757d;
  margin-bottom: 0.3rem;
  display: block;
}
.ty-search-card .filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-end;
}
.ty-search-card .filter-group { display: flex; flex-direction: column; }
.ty-search-card .filter-group.date { min-width: 130px; }
.ty-search-card .filter-group.status { min-width: 120px; }
.ty-search-card .filter-group.keyword { flex: 1; min-width: 200px; }
.ty-search-card .filter-actions { display: flex; gap: 0.5rem; align-items: flex-end; }
.ty-filter-input {
  height: 38px;
  border: 1.5px solid #dee2e6;
  border-radius: 6px;
  padding: 0 0.75rem;
  font-size: 0.87rem;
  font-family: 'Noto Sans KR', sans-serif;
  width: 100%;
}
.ty-filter-input:focus {
  outline: none;
  border-color: #2e6da4;
  box-shadow: 0 0 0 3px rgba(46,109,164,0.1);
}
.ty-result-summary {
  font-size: 0.85rem;
  color: #6c757d;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.ty-result-summary .count { font-weight: 700; color: #1a3a5c; }

/* ============================================================
   페이지네이션
   ============================================================ */
.ty-pagination {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
  gap: 0.25rem;
}
.ty-pagination .page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 0.75rem;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  background: #ffffff;
  color: #2c3e50;
  font-size: 0.88rem;
  text-decoration: none;
  transition: all 0.15s;
}
.ty-pagination .page-btn:hover {
  background: #f5f7fa;
  border-color: #2e6da4;
}
.ty-pagination .page-btn.active {
  background: #1a3a5c;
  border-color: #1a3a5c;
  color: #ffffff;
  font-weight: 700;
}
.ty-pagination .page-btn.disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* ============================================================
   상태 배지 (관리자용)
   ============================================================ */
.ty-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.65rem;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}
.ty-status-received  { background: #e3f2fd; color: #1565c0; }
.ty-status-progress  { background: #fff8e1; color: #f57f17; }
.ty-status-completed { background: #e8f5e9; color: #2e7d32; }
.ty-status-cancelled { background: #f5f5f5; color: #757575; }

/* ============================================================
   문의 상세 페이지
   ============================================================ */
.ty-detail-page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}
.ty-detail-page-header .page-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1a3a5c;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.ty-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #2c3e50;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  padding: 0.45rem 0.9rem;
  font-size: 0.87rem;
  text-decoration: none;
  background: #ffffff;
  transition: background-color 0.15s;
}
.ty-back-btn:hover { background: #f5f7fa; color: #2c3e50; }
.ty-detail-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 991px) {
  .ty-detail-layout { grid-template-columns: 1fr; }
}
.ty-inquiry-detail-card {
  background: #ffffff;
  border: 1px solid #dee2e6;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.ty-inquiry-detail-card .card-section {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #f0f0f0;
}
.ty-inquiry-detail-card .card-section:last-child { border-bottom: none; }
.ty-section-heading {
  font-size: 0.82rem;
  font-weight: 700;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.ty-inquiry-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  margin-bottom: 1rem;
  font-size: 0.82rem;
  color: #6c757d;
}
.ty-inquiry-meta-row .meta-item strong { color: #2c3e50; }
.ty-detail-grid {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 0.5rem 0;
  font-size: 0.88rem;
}
.ty-detail-grid .detail-label {
  color: #adb5bd;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.3rem 0;
  display: flex;
  align-items: flex-start;
}
.ty-detail-grid .detail-value {
  color: #2c3e50;
  padding: 0.3rem 0;
  word-break: break-all;
}
.ty-detail-grid .detail-value a {
  color: #2e6da4;
  font-weight: 600;
  text-decoration: none;
}
.ty-detail-grid .detail-value a:hover { color: #1a3a5c; }
.ty-content-display {
  background: #f5f7fa;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: break-word;
  color: #2c3e50;
  min-height: 100px;
}
.ty-file-list-admin { list-style: none; padding: 0; margin: 0; }
.ty-file-list-admin li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.87rem;
}
.ty-file-list-admin li:last-child { border-bottom: none; }
.ty-file-list-admin .file-type-icon { color: #2e6da4; width: 16px; }
.ty-file-list-admin .file-original-name { flex: 1; color: #2c3e50; }
.ty-file-list-admin .file-download-btn {
  color: #2e6da4;
  text-decoration: none;
  font-size: 0.82rem;
  border: 1px solid #2e6da4;
  border-radius: 4px;
  padding: 0.15rem 0.5rem;
  transition: all 0.15s;
}
.ty-file-list-admin .file-download-btn:hover {
  background: #2e6da4;
  color: white;
}
.ty-process-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.ty-process-card {
  background: #ffffff;
  border: 1px solid #dee2e6;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.ty-process-card .process-header {
  background: #f5f7fa;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid #dee2e6;
  font-size: 0.88rem;
  font-weight: 700;
  color: #1a3a5c;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.ty-process-card .process-body { padding: 1.25rem; }
.ty-status-form { display: flex; gap: 0.5rem; }
.ty-status-form select { flex: 1; }
.ty-reply-hint {
  font-size: 0.78rem;
  color: #6c757d;
  margin-bottom: 0.5rem;
}
.ty-memo-card { background: #fffde7; border-color: #ffc107; }
.ty-memo-card .process-header { background: #fff9c4; border-color: #ffc107; }
.ty-memo-private-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.72rem;
  background: #ff9800;
  color: white;
  border-radius: 3px;
  padding: 0.1rem 0.35rem;
}
.ty-admin-textarea {
  width: 100%;
  border: 1.5px solid #dee2e6;
  border-radius: 6px;
  padding: 0.65rem 0.85rem;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 0.87rem;
  line-height: 1.6;
  resize: vertical;
  transition: border-color 0.2s;
}
.ty-admin-textarea:focus {
  outline: none;
  border-color: #2e6da4;
  box-shadow: 0 0 0 3px rgba(46,109,164,0.1);
}

/* ============================================================
   알림 발송 이력
   ============================================================ */
.ty-fail-reason {
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #dc3545;
  font-size: 0.82rem;
  cursor: help;
}
.ty-log-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.65rem;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 700;
}
.ty-log-success { background: #e8f5e9; color: #2e7d32; }
.ty-log-fail    { background: #fff5f5; color: #c62828; }
.ty-log-type {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  font-size: 0.72rem;
  font-weight: 700;
}
.ty-type-email { background: #e3f2fd; color: #1565c0; }
.ty-type-sms   { background: #e8f5e9; color: #1b5e20; }
.ty-notification-type-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
}
.ty-send-success { background: #e8f5e9; color: #2e7d32; }
.ty-send-fail    { background: #fff5f5; color: #c62828; }
.ty-inquiry-link {
  color: #2e6da4;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.87rem;
}
.ty-inquiry-link:hover { color: #1a3a5c; }
.ty-detail-btn {
  padding: 0.25rem 0.6rem;
  font-size: 0.78rem;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  background: #ffffff;
  color: #2c3e50;
  cursor: pointer;
  transition: all 0.15s;
  font-family: 'Noto Sans KR', sans-serif;
}
.ty-detail-btn:hover {
  background: #f5f7fa;
  border-color: #2e6da4;
  color: #2e6da4;
}
.ty-log-modal .modal-header {
  background: #1a3a5c;
  color: #ffffff;
}
.ty-log-modal .modal-title { font-size: 1rem; font-weight: 700; }
.ty-log-modal .modal-header .btn-close { filter: invert(1); }
.ty-modal-info-grid {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 0.5rem 0;
  font-size: 0.87rem;
}
.ty-modal-info-grid .ml { color: #6c757d; font-size: 0.78rem; }
.ty-modal-info-grid .mv { color: #2c3e50; word-break: break-all; }
.ty-modal-body-content {
  background: #f5f7fa;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  max-height: 200px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ============================================================
   품목/브랜드 관리
   ============================================================ */
.ty-thumb-cell img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #dee2e6;
}
.ty-thumb-placeholder {
  width: 50px;
  height: 50px;
  background: #f5f7fa;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #adb5bd;
  font-size: 1.2rem;
}
.ty-visible-toggle {
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Noto Sans KR', sans-serif;
}
.ty-visible-toggle.on { background: #d4edda; color: #155724; }
.ty-visible-toggle.off { background: #f8d7da; color: #721c24; }
.ty-visible-toggle:hover { opacity: 0.8; }
.ty-desc-cell {
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #6c757d;
  font-size: 0.85rem;
}
.ty-admin-form-card {
  background: #ffffff;
  border: 1px solid #dee2e6;
  border-radius: 10px;
  padding: 2rem;
  max-width: 700px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.ty-img-upload-area {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1rem;
  border: 1.5px dashed #dee2e6;
  border-radius: 8px;
  background: #f5f7fa;
}
.ty-img-preview {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #dee2e6;
  flex-shrink: 0;
}
.ty-img-placeholder {
  width: 80px;
  height: 80px;
  background: #ffffff;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #adb5bd;
  font-size: 2rem;
  flex-shrink: 0;
}
.ty-img-upload-info { flex: 1; }
.ty-img-upload-info label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  background: #ffffff;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.87rem;
  color: #2c3e50;
  transition: border-color 0.15s;
}
.ty-img-upload-info label:hover { border-color: #2e6da4; color: #2e6da4; }
.ty-img-upload-info input[type="file"] { display: none; }
.ty-img-hint { font-size: 0.78rem; color: #6c757d; margin-top: 0.35rem; }
.ty-form-section-divider {
  border: none;
  border-top: 1px solid #dee2e6;
  margin: 1.5rem 0;
}
.ty-sortorder-input { max-width: 100px; }
.ty-visible-check {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
}
.ty-visible-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #1a3a5c;
  cursor: pointer;
}
.ty-logo-cell {
  min-width: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ty-logo-cell img {
  max-width: 80px;
  max-height: 40px;
  object-fit: contain;
  filter: grayscale(20%);
}
.ty-logo-cell .brand-name-badge {
  font-size: 0.82rem;
  font-weight: 700;
  color: #1a3a5c;
  background: #f5f7fa;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  padding: 0.2rem 0.5rem;
  letter-spacing: 0.5px;
}
.ty-brand-name-cell {
  font-weight: 700;
  color: #1a3a5c;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}
.ty-logo-preview-area {
  width: 120px;
  height: 60px;
  border-radius: 8px;
  border: 1px solid #dee2e6;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  overflow: hidden;
  flex-shrink: 0;
}
.ty-logo-preview-area img {
  max-width: 110px;
  max-height: 50px;
  object-fit: contain;
}
.ty-logo-preview-area .logo-placeholder-text {
  font-size: 0.85rem;
  font-weight: 700;
  color: #adb5bd;
  letter-spacing: 1px;
}

/* ============================================================
   공지사항 Quill.js 에디터
   ============================================================ */
.ty-notice-title-link {
  color: #2e6da4;
  font-weight: 600;
  text-decoration: none;
}
.ty-notice-title-link:hover { text-decoration: underline; color: #1a3a5c; }
.ty-notice-form-card {
  background: #ffffff;
  border: 1px solid #dee2e6;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  max-width: 900px;
}
#editor {
  height: 400px;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 0.92rem;
}
.ql-toolbar.ql-snow {
  border-radius: 8px 8px 0 0;
  border-color: #dee2e6;
  background: #f5f7fa;
}
.ql-container.ql-snow {
  border-radius: 0 0 8px 8px;
  border-color: #dee2e6;
  font-family: 'Noto Sans KR', sans-serif;
}

/* ============================================================
   Flash 메시지
   ============================================================ */
.ty-flash-msg {
  transition: opacity 0.4s;
}

/* ============================================================
   공통 폼 스타일
   ============================================================ */
.ty-form-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 0.35rem;
  display: block;
}
.ty-form-label .required { color: #dc3545; margin-left: 2px; }
.ty-input {
  border: 1.5px solid #dee2e6;
  border-radius: 6px;
  padding: 0.6rem 0.85rem;
  font-size: 0.92rem;
  font-family: 'Noto Sans KR', sans-serif;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
  display: block;
}
.ty-input:focus {
  outline: none;
  border-color: #2e6da4;
  box-shadow: 0 0 0 3px rgba(46,109,164,0.12);
}
.ty-field-error { font-size: 0.8rem; color: #dc3545; margin-top: 0.25rem; }
