:root {
  --primary-color: #2c5f2d;
  --primary-dark: #1f4620;
  --secondary-color: #97bc62;
  --accent-color: #ff6b35;
  --text-color: #333;
  --text-muted: #666;
  --bg-color: #f5f5f5;
  --white: #ffffff;
  --border-color: #ddd;
  --success-color: #28a745;
  --error-color: #dc3545;
  --shadow: 0 2px 10px rgba(0,0,0,0.1);
  --shadow-hover: 0 4px 20px rgba(0,0,0,0.15);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { overflow-y: visible; overflow-x: hidden; -webkit-overflow-scrolling: touch; }
body {
  font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(135deg, var(--bg-color) 0%, #e8f5e9 100%);
  color: var(--text-color);
  line-height: 1.6;
  min-height: 100vh;
  padding: 20px;
  -webkit-font-smoothing: antialiased;
}
.container {
  max-width: 900px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: visible;
}
.admin-shell { max-width: 1200px; }

.header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--white);
  padding: 40px 30px;
  text-align: center;
  border-radius: 20px 20px 0 0;
}
.header.compact { padding-bottom: 28px; }
.logo { display: flex; align-items: center; justify-content: center; gap: 15px; margin-bottom: 10px; }
.logo i { font-size: 2.5rem; }
.logo h1 { font-size: 2rem; font-weight: 700; }
.subtitle { font-size: 1rem; opacity: 0.95; font-weight: 300; margin-bottom: 0; }
.header-action { margin-top: 30px; }
.btn-status-check {
  display: flex; align-items: center; justify-content: space-between; background: rgba(255,255,255,0.95);
  color: var(--primary-color); padding: 20px 30px; border-radius: 15px; text-decoration: none;
  transition: all .3s ease; box-shadow: 0 4px 15px rgba(0,0,0,0.2); gap: 20px; max-width: 600px; margin: 0 auto;
}
.btn-status-check:hover { transform: translateY(-3px); box-shadow: 0 6px 25px rgba(0,0,0,0.3); background: var(--white); }
.btn-status-check > i:first-child { font-size: 2.5rem; color: var(--accent-color); flex-shrink: 0; }
.btn-content { flex: 1; text-align: left; }
.btn-title { display: block; font-weight: 700; font-size: 1.05rem; }
.btn-subtitle { display: block; opacity: .85; font-size: .92rem; margin-top: 2px; }

.main-content { padding: 30px; }
.section-header { margin-bottom: 24px; }
.section-header h2 { margin-bottom: 8px; display: flex; align-items: center; gap: 10px; color: var(--primary-dark); }
.section-header p { color: var(--text-muted); }

.form-category {
  background: #fff; border: 1px solid #e9ecef; border-radius: 18px;
  box-shadow: 0 1px 3px rgba(0,0,0,.04); margin-bottom: 20px;
}

/* ─── A/S 평균 소요 기간 카드 ─── */
.duration-card {
  background: linear-gradient(135deg, #eaf3ff 0%, #dbeafe 100%);
  border: 1px solid #bfdbfe;
  border-radius: 20px;
  padding: 22px 26px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(30, 95, 168, 0.06);
}
.duration-title {
  display: flex; align-items: center; justify-content: center;
  gap: 10px;
  background: #2563eb;
  color: #fff;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  margin: 0 auto 20px;
  width: fit-content;
  max-width: 100%;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}
.duration-title i { color: #fff; }
.duration-date { font-size: .82rem; font-weight: 400; opacity: .9; }

.duration-content {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: stretch;
  margin: 0;
}
.duration-item {
  border-radius: 16px;
  padding: 22px 20px;
  color: #fff;
  text-align: center;
  box-shadow: 0 4px 14px rgba(0,0,0,.10);
  transition: transform .15s ease, box-shadow .15s ease;
}
.duration-item:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.14); }
.duration-item.sewing { background: linear-gradient(135deg, #6d5aa8 0%, #8b6dc7 100%); }
.duration-item.pole   { background: linear-gradient(135deg, #d94a7a 0%, #ec6396 100%); }

.duration-info { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.duration-label {
  font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
  color: #fff;
  font-size: .98rem;
  opacity: .95;
}
.duration-value {
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  display: inline-flex; align-items: baseline; gap: 2px;
  line-height: 1;
}
.duration-unit { font-size: 1.05rem; margin-left: 2px; font-weight: 600; opacity: .95; }
.duration-divider { display: none; }

.duration-notice {
  margin-top: 18px;
  color: #1e40af;
  font-size: .9rem;
  display: flex; gap: 8px; align-items: center; justify-content: center;
  background: rgba(255,255,255,.6);
  padding: 10px 16px;
  border-radius: 10px;
}
.duration-notice i { color: #2563eb; }

/* ─── 접수 전 주의사항 카드 (주황 헤더 바 스타일) ─── */
.notice-card {
  background: #fff;
  border: 1px solid #fed7aa;
  border-radius: 14px;
  padding: 0;
  margin-bottom: 20px;
  color: var(--text-color);
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.08);
  overflow: hidden;
}
.notice-title {
  display: flex; align-items: center; gap: 10px;
  background: #f97316;
  color: #fff;
  padding: 16px 22px;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
}
.notice-title i { color: #fff; }
.notice-content {
  padding: 20px 22px 4px;
  line-height: 1.85;
  color: var(--text-color);
}
.notice-content p, .notice-content li { font-size: .96rem; }
.notice-content ul, .notice-content ol { padding-left: 20px; margin: 8px 0; }
.notice-content strong { color: #c2410c; }
.notice-agreement {
  margin: 0 22px 20px;
  padding: 14px 16px;
  background: #fff7ed;
  border: 2px solid #f97316;
  border-radius: 10px;
}
.notice-agreement .checkbox-label {
  align-items: center;
  gap: 12px;
}
.notice-agreement .checkbox-text {
  color: var(--text-color);
  font-weight: 700;
  font-size: 1rem;
}
.notice-agreement .notice-checkbox {
  width: 20px;
  height: 20px;
  margin-top: 0;
  accent-color: #f97316;
  cursor: pointer;
}

.category-title { display: flex; align-items: center; gap: 10px; color: var(--primary-dark); }
.duration-notice { margin-top: 14px; color: #666; font-size: .92rem; display: flex; gap: 8px; align-items: center; }

.checkbox-label { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.notice-checkbox { margin-top: 4px; width: 18px; height: 18px; cursor: pointer; }
.checkbox-text { font-size: .95rem; }

.form-category { overflow: hidden; border: 1px solid #e5e7eb; }

/* 동의 전 상태: 폼이 살짝 흐리게 보이도록 (미리보기 상태) */
.as-form.form-disabled {
  opacity: 0.55;
  filter: saturate(0.6);
  transition: opacity .3s ease, filter .3s ease;
}
.as-form { transition: opacity .3s ease, filter .3s ease; }
.category-title {
  padding: 16px 22px;
  margin: 0;
  background: linear-gradient(135deg, #9db98d 0%, #b5cca8 100%);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: none;
}
.category-title i { color: #fff; opacity: .95; }

/* 택배 발송 정보 - 진한 그린 그라데이션 헤더 */
.form-category.shipping-category .category-title {
  background: linear-gradient(135deg, #1e4620 0%, #4a8f47 100%);
}
.category-content { padding: 22px; }
.info-notice { display: flex; gap: 10px; background: #e8f4fd; color: #1c5d99; border-left: 4px solid #2196f3; border-radius: 10px; padding: 14px 16px; margin-bottom: 16px; }
.info-notice p { flex: 1; line-height: 1.7; }
.info-notice.warning {
  background: #fff7ed;
  color: #9a4a10;
  border-left: 5px solid #f97316;
}
.info-notice.warning i { color: #f97316; margin-top: 3px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 8px; }
.form-group label i { color: var(--primary-color); margin-right: 4px; }
.required { color: var(--error-color); }
input, select, textarea, button { font: inherit; }
input[type="text"], input[type="tel"], input[type="password"], input[type="number"], input[type="email"], select, textarea {
  width: 100%; padding: 13px 14px; border: 1px solid var(--border-color); border-radius: 12px; background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: #7aa95f; box-shadow: 0 0 0 4px rgba(151,188,98,.18); }
textarea { resize: vertical; font-family: inherit; }
.address-input-group { display: flex; gap: 10px; }
.address-input-group input { flex: 1; }
.photo-upload-area {
  border: 2px dashed #b8c7b4;
  border-radius: 14px;
  padding: 32px 18px;
  background: #fafdf9;
  text-align: center;
}
.photo-hint { font-size: .86rem; color: #667; }
.upload-hint {
  margin-top: 14px;
  font-size: .9rem;
  color: #6b7280;
}
.upload-hint-heic {
  margin-top: 6px;
  font-size: .88rem;
  color: #2563eb;
  font-weight: 500;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.upload-hint-heic i { color: #22c55e; }
.btn-photo-select {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  background: #e8f5e9;
  color: #2c5f2d;
  border: 1px solid #b5cca8;
  border-radius: 10px;
  font-size: .98rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease, transform .1s ease, box-shadow .15s ease;
}
.btn-photo-select:hover {
  background: #d4ead6;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(44, 95, 45, 0.12);
}
.btn-photo-select i { color: #2c5f2d; }
.photo-preview { display: grid; grid-template-columns: repeat(auto-fill,minmax(120px,1fr)); gap: 12px; margin-top: 14px; }
.photo-preview .photo-item { position: relative; }
.photo-preview img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 12px; border: 1px solid #ddd; }
.photo-preview .photo-remove {
  position: absolute; top: 6px; right: 6px; background: rgba(0,0,0,.6); color: #fff;
  border: none; width: 24px; height: 24px; border-radius: 50%; cursor: pointer; font-size: .8rem;
  display: flex; align-items: center; justify-content: center;
}

.form-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.form-actions.left { justify-content: flex-start; }

/* 접수 폼 하단 큰 버튼 (접수하기 / 초기화) */
.as-form > .form-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 24px;
}
.as-form > .form-actions .btn {
  padding: 18px 20px;
  font-size: 1.02rem;
  font-weight: 600;
  border-radius: 12px;
}
.as-form > .form-actions .btn-primary {
  background: linear-gradient(135deg, #2c5f2d 0%, #4a8f47 100%);
  box-shadow: 0 2px 8px rgba(44, 95, 45, 0.2);
}
.as-form > .form-actions .btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #234a24 0%, #3f7a3c 100%);
}
.as-form > .form-actions .btn-secondary {
  background: #fff;
  border: 1px solid #d1d5db;
  color: #4b5563;
}
.as-form > .form-actions .btn-secondary:hover:not(:disabled) {
  background: #f9fafb;
  border-color: #9ca3af;
}
.btn {
  border: none; border-radius: 12px; padding: 12px 18px; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 500; transition: transform .1s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover:not(:disabled) { transform: translateY(-1px); }
.btn:active:not(:disabled) { transform: translateY(0); }
.btn:disabled { opacity: .7; cursor: not-allowed; }
.btn-primary { background: var(--primary-color); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--primary-dark); }
.btn-secondary { background: #f1f3f5; color: #333; }
.btn-secondary:hover:not(:disabled) { background: #e6e9ec; }
.btn-address { background: var(--accent-color); color: #fff; white-space: nowrap; }
.btn-address:hover:not(:disabled) { background: #e85a26; }

.success-message, .error-message { margin-top: 20px; }
.success-content, .error-content {
  padding: 24px; border-radius: 18px; text-align: center; box-shadow: var(--shadow);
}
.success-content { background: #eef9f0; border: 1px solid #cce8d1; color: #165b24; }
.error-content { background: #fff3f3; border: 1px solid #f2c3c3; color: #9f2424; }
.success-content i, .error-content i { font-size: 2rem; margin-bottom: 12px; display: block; }
.request-id { margin: 10px 0; word-break: break-all; font-size: 1.02rem; }
.request-id strong { color: var(--primary-dark); background: rgba(44,95,45,.08); padding: 3px 10px; border-radius: 6px; }
.error-description { margin: 12px 0 18px; }
.error-actions { display: flex; justify-content: center; gap: 10px; }
.hidden { display: none !important; }

.footer { text-align: center; padding: 24px; color: #666; border-top: 1px solid #eee; }
.version-info { margin-top: 6px; font-size: .86rem; color: #888; }

.address-layer {
  position: fixed; inset: 0; background: rgba(0,0,0,.45); display: flex;
  align-items: center; justify-content: center; padding: 20px; z-index: 9999;
}
.address-layer-container {
  width: min(100%,700px); height: min(80vh,700px);
  background: #fff; border-radius: 16px; overflow: hidden; display: flex; flex-direction: column;
}
.address-layer-header { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid #eee; }
.address-layer-close { background: none; border: none; font-size: 1.2rem; cursor: pointer; padding: 6px 10px; border-radius: 8px; }
.address-layer-close:hover { background: #f1f3f5; }
.address-embed { flex: 1; }

.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.result-grid .full { grid-column: 1 / -1; }
.result-grid > div > strong { color: var(--primary-dark); font-size: .92rem; }
.result-grid p { margin-top: 6px; background: #fafafa; padding: 12px 14px; border-radius: 12px; border: 1px solid #eee; word-break: break-word; }
.result-photos { display: grid; grid-template-columns: repeat(auto-fill,minmax(100px,1fr)); gap: 8px; margin-top: 6px; }
.result-photos img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 10px; border: 1px solid #ddd; cursor: pointer; }

/* 조회 결과 - 반송 정보 카드 (A/S센터 → 고객) */
.return-info-card {
  margin-top: 20px;
  border: 2px solid var(--primary-color);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 10px rgba(44, 95, 45, 0.08);
}
.return-info-head {
  padding: 14px 20px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: #fff;
  font-weight: 700;
  font-size: 1.02rem;
  display: flex; align-items: center; gap: 10px;
}
.return-info-body { padding: 18px 20px; }
.return-info-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}
.return-info-row > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ri-label {
  font-size: .82rem;
  color: var(--text-muted);
  font-weight: 500;
}
.return-info-row strong {
  font-size: 1rem;
  color: var(--primary-dark);
  font-family: 'Courier New', monospace;
  letter-spacing: 0.5px;
}
.btn-return-track {
  margin-left: auto;
  padding: 10px 18px;
  background: linear-gradient(135deg, #6a5aca 0%, #8b7ed8 100%);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-size: .92rem;
  font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
  transition: filter .15s ease, transform .1s ease;
  box-shadow: 0 2px 6px rgba(106, 90, 202, 0.25);
}
.btn-return-track:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

/* 조회 결과 - 택배 발송 정보 수정 카드 */
.shipping-edit-card {
  margin-top: 20px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.shipping-edit-head {
  padding: 14px 20px;
  background: linear-gradient(135deg, #1e4620 0%, #4a8f47 100%);
  color: #fff;
  font-weight: 700;
  font-size: 1.02rem;
  display: flex; align-items: center; gap: 10px;
}
.shipping-edit-head i { color: #fff; }
.shipping-edit-body { padding: 20px; }
.shipping-fields-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 14px;
}
.shipping-fields-row .form-group { margin-bottom: 0; }
.shipping-edit-actions {
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
}
.shipping-edit-actions .btn-primary {
  padding: 12px 22px;
  background: linear-gradient(135deg, #2c5f2d 0%, #4a8f47 100%);
  box-shadow: 0 2px 8px rgba(44, 95, 45, 0.2);
}
.shipping-edit-actions .btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #234a24 0%, #3f7a3c 100%);
}
.shipping-edit-toast {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: .92rem;
  font-weight: 500;
  text-align: center;
}
.shipping-edit-toast.success { background: #eef9f0; color: #165b24; border: 1px solid #cce8d1; }
.shipping-edit-toast.error { background: #fff3f3; color: #9f2424; border: 1px solid #f2c3c3; }

/* 조회 결과 여러 건 리스트 */
.lookup-list { display: grid; gap: 10px; }
.lookup-list-item {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  width: 100%; text-align: left;
  padding: 14px 16px;
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 12px;
  cursor: pointer;
  font: inherit; color: inherit;
  transition: background .15s ease, border-color .15s ease, transform .1s ease;
}
.lookup-list-item:hover {
  background: #f0f7ec;
  border-color: var(--secondary-color);
  transform: translateY(-1px);
}
.lookup-list-main { flex: 1; min-width: 0; }
.lookup-list-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.lookup-list-title strong { color: var(--primary-dark); }
.lookup-list-sub { font-size: .92rem; color: #555; margin-bottom: 2px; }
.lookup-list-date { font-size: .82rem; color: #888; }
.lookup-list-item > i { color: var(--text-muted); flex-shrink: 0; }

/* Admin */
.admin-shell .main-content { padding-top: 24px; }
.admin-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; }
.admin-toolbar .info-notice { margin-bottom: 0; flex: 1; }
.admin-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; align-items: start; }
.admin-side-col { display: flex; flex-direction: column; }
.admin-side-col .form-category { margin-bottom: 20px; }
.admin-login-card { max-width: 520px; margin: 0 auto; }

.simple-list { margin-top: 16px; display: grid; gap: 12px; }
.list-row {
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
  padding: 14px; border: 1px solid #ececec; border-radius: 14px; background: #fcfcfc;
}
.list-row strong { color: var(--primary-dark); }
.list-row p { font-size: .85rem; color: var(--text-muted); margin-top: 2px; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn.small { padding: 8px 12px; font-size: .88rem; }
.btn.danger { background: #fff1f1; color: #b42323; }
.btn.danger:hover:not(:disabled) { background: #ffe5e5; }

.count-badge {
  display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 24px;
  padding: 0 8px; background: var(--primary-color); color: #fff; border-radius: 999px;
  font-size: .82rem; font-weight: 700; margin-left: 4px;
}

.request-filter { display: grid; grid-template-columns: 1fr 200px; gap: 10px; margin-bottom: 16px; }
.request-list { display: grid; gap: 16px; }
.request-card { border: 1px solid #ececec; border-radius: 16px; padding: 16px; background: #fff; }
.request-card-head { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.request-card-head > div:first-child strong { font-size: 1.05rem; color: var(--primary-dark); }
.request-card-head p { font-size: .9rem; color: var(--text-muted); margin-top: 2px; }
.status-badge {
  display: inline-flex; align-items: center; justify-content: center; padding: 8px 14px;
  background: #eef7e8; color: #2c5f2d; border-radius: 999px; font-size: .9rem; font-weight: 700;
}
.status-badge.status-접수대기 { background: #fff4d6; color: #b3810c; }
.status-badge.status-입고완료 { background: #e2f0ff; color: #1e5fa8; }
.status-badge[class*="검수"] { background: #f3e6ff; color: #6b2fb3; }
.status-badge.status-수선완료 { background: #d9f5e1; color: #1b7a3c; }
.status-badge.status-발송완료 { background: #d4edf7; color: #146c8b; }
.status-badge.status-보류 { background: #ffe8d0; color: #a35618; }
.status-badge.status-취소 { background: #f0f0f0; color: #6b6b6b; }
/* legacy */
.status-badge.status-접수완료 { background: #fff4d6; color: #b3810c; }
.status-badge.status-입고대기 { background: #fff3e0; color: #9c5710; }
.status-badge.status-수선중 { background: #fff8dc; color: #8a6d00; }

.request-meta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.request-meta-grid .full { grid-column: 1 / -1; }
.request-meta-grid > div > strong { color: var(--primary-dark); font-size: .88rem; }
.request-meta-grid p { margin-top: 6px; background: #fafafa; padding: 12px 14px; border-radius: 12px; border: 1px solid #eee; word-break: break-word; }
.request-photos { display: grid; grid-template-columns: repeat(auto-fill,minmax(80px,1fr)); gap: 6px; }
.request-photos img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 8px; border: 1px solid #ddd; cursor: pointer; }

.request-token { display: inline-block; font-family: 'Courier New', monospace; background: #f0f4e8; padding: 2px 8px; border-radius: 6px; font-size: .85rem; }

.request-update-row { display: grid; grid-template-columns: 1fr 1fr 1fr auto auto; gap: 10px; margin-top: 14px; align-items: center; }

.admin-toast {
  position: fixed; right: 18px; bottom: 18px; background: #193d1a; color: #fff;
  padding: 12px 16px; border-radius: 12px; box-shadow: 0 12px 30px rgba(0,0,0,.15); z-index: 99999;
  max-width: 320px;
}
.admin-toast.error { background: #a12727; }
.empty-state { color: #666; padding: 18px 0; text-align: center; }

.photo-lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,.85); display: flex;
  align-items: center; justify-content: center; z-index: 99999; padding: 20px; cursor: zoom-out;
}
.photo-lightbox img { max-width: 100%; max-height: 100%; border-radius: 12px; }

@media (max-width: 900px) {
  .admin-grid, .request-meta-grid, .request-update-row, .request-filter { grid-template-columns: 1fr; }
  .admin-toolbar { flex-direction: column; align-items: stretch; }
  .list-row { flex-direction: column; align-items: stretch; }
}
@media (max-width: 768px) {
  body { padding: 12px; }
  .header { padding: 28px 18px; border-radius: 16px 16px 0 0; }
  .logo h1 { font-size: 1.6rem; }
  .logo i { font-size: 2rem; }
  .main-content { padding: 16px; }
  .btn-status-check, .address-input-group, .form-actions { flex-direction: column; }
  .form-row, .duration-content, .result-grid, .shipping-fields-row { grid-template-columns: 1fr; }
  .return-info-row { flex-direction: column; align-items: stretch; gap: 12px; }
  .btn-return-track { margin-left: 0; justify-content: center; }
  .duration-divider { display: none; }
  .btn-status-check { gap: 12px; padding: 18px; }
  .btn-content { text-align: center; }
  .form-actions .btn { width: 100%; }
  .form-actions.left .btn { width: 100%; }
  .address-input-group .btn { width: 100%; }
  .container { border-radius: 16px; }
}
