/* 두리하나스테이 예약 · 조회 · 관리 화면
   /stay/styles.css 위에 얹어 쓴다. 모든 규칙은 .booking-app / .crm-app 안에서만 적용 */

/* ---------- 공통 ---------- */
:is(.booking-app, .crm-app) [hidden] { display: none !important; }
:is(.booking-app, .crm-app) .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
body:is(.booking-app, .crm-app) { padding-bottom: 0; background: var(--ground); }

:is(.booking-app, .crm-app) .app-main { padding-top: 8px; padding-bottom: 72px; }
:is(.booking-app, .crm-app) .site-nav .btn-sm { min-height: 44px; }
:is(.booking-app, .crm-app) .page-head { display: flex; flex-direction: column; gap: 10px; padding: 16px 0 28px; max-width: 640px; }
:is(.booking-app, .crm-app) .page-head h1 { font-size: clamp(28px, 3.4vw, 42px); }
:is(.booking-app, .crm-app) .page-head p { color: var(--muted-strong); }

:is(.booking-app, .crm-app) .card {
  background: #fff; border: 1px solid var(--line); border-radius: 24px;
  padding: clamp(20px, 3vw, 32px); display: flex; flex-direction: column; gap: 18px;
  min-width: 0;
}
:is(.booking-app, .crm-app) .card-soft { background: var(--band); border-color: transparent; }
:is(.booking-app, .crm-app) .card h2 { font-family: var(--serif); font-size: 24px; line-height: 1.4; }
:is(.booking-app, .crm-app) .card h3 { font-family: var(--serif); font-size: 19px; line-height: 1.4; }
:is(.booking-app, .crm-app) .lead { color: var(--muted-strong); }

/* 폼 */
:is(.booking-app, .crm-app) .form { gap: 18px; }
:is(.booking-app, .crm-app) .field label,
:is(.booking-app, .crm-app) .field legend { font-size: 15px; color: var(--ink); }
:is(.booking-app, .crm-app) .field input,
:is(.booking-app, .crm-app) .field select,
:is(.booking-app, .crm-app) .field textarea { min-height: 48px; }
:is(.booking-app, .crm-app) .field input:focus-visible,
:is(.booking-app, .crm-app) .field select:focus-visible,
:is(.booking-app, .crm-app) .field textarea:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; border-color: var(--primary); }
:is(.booking-app, .crm-app) [aria-invalid="true"] { border-color: var(--primary) !important; background: #fffaf8; }
:is(.booking-app, .crm-app) .field-hint { font-size: 14px; color: var(--muted); }
:is(.booking-app, .crm-app) .field-error { font-size: 14px; color: var(--primary-dark); }
:is(.booking-app, .crm-app) .field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; }
:is(.booking-app, .crm-app) .req { color: var(--primary); }
:is(.booking-app, .crm-app) fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
:is(.booking-app, .crm-app) .btn[disabled] { opacity: .55; cursor: not-allowed; }
:is(.booking-app, .crm-app) .btn-row { align-items: center; }
:is(.booking-app, .crm-app) .btn-text {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px;
  background: none; border: 0; font: inherit; font-size: 15px; color: var(--primary); cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
:is(.booking-app, .crm-app) .btn-text:hover { color: var(--ink); }
:is(.booking-app, .crm-app) .btn-danger { background: #fff; color: var(--primary-dark); border-color: var(--primary-dark); }
:is(.booking-app, .crm-app) .btn-danger:hover { background: var(--primary-dark); color: #fff; }

/* 체크박스 */
:is(.booking-app, .crm-app) .check { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; padding: 10px 0; cursor: pointer; font-size: 15px; }
:is(.booking-app, .crm-app) .check input { flex: 0 0 auto; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--primary); cursor: pointer; }
:is(.booking-app, .crm-app) .check + .field-error { margin-top: -6px; padding-left: 34px; }
:is(.booking-app, .crm-app) .consents { border-top: 1px solid var(--line); padding-top: 8px; display: flex; flex-direction: column; }

/* 안내 문구 */
:is(.booking-app, .crm-app) .form-msg { border-radius: 14px; padding: 14px 16px; font-size: 15px; background: var(--band); color: var(--muted-strong); }
:is(.booking-app, .crm-app) .form-msg[data-kind="error"] { background: #fff1ee; color: var(--primary-dark); border: 1px solid #f3c4b6; }
:is(.booking-app, .crm-app) .form-msg[data-kind="ok"] { background: #eef7f0; color: #285a36; }
:is(.booking-app, .crm-app) .form-msg a { word-break: break-all; }

/* 상태 배지 */
:is(.booking-app, .crm-app) .status {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px; border-radius: 999px;
  font-size: 13px; line-height: 1.6; white-space: nowrap; background: #f2f2f2; color: var(--muted-strong);
}
:is(.booking-app, .crm-app) .status:empty { display: none; }
:is(.booking-app, .crm-app) .status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
:is(.booking-app, .crm-app) .status[data-status="submitted"] { background: var(--accent); color: var(--primary-dark); }
:is(.booking-app, .crm-app) .status[data-status="reviewing"],
:is(.booking-app, .crm-app) .status[data-status="confirming"] { background: #fff4d6; color: #7a5300; }
:is(.booking-app, .crm-app) .status[data-status="confirmed"] { background: #e6f4ea; color: #24683a; }
:is(.booking-app, .crm-app) .status[data-status="cancel_requested"] { background: #fde8e4; color: var(--primary-dark); }
:is(.booking-app, .crm-app) .status[data-status="rejected"],
:is(.booking-app, .crm-app) .status[data-status="withdrawn"],
:is(.booking-app, .crm-app) .status[data-status="expired"],
:is(.booking-app, .crm-app) .status[data-status="cancelled"] { background: #f0f0f0; color: var(--muted); }

/* 빈 상태 · 키-값 */
:is(.booking-app, .crm-app) .empty { padding: 28px 20px; border: 1px dashed var(--border); border-radius: 18px; text-align: center; color: var(--muted); font-size: 15px; }
:is(.booking-app, .crm-app) .kv-list > div { display: flex; justify-content: space-between; gap: 6px 20px; padding: 12px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
:is(.booking-app, .crm-app) .kv-list > div:last-child { border-bottom: 1px solid var(--line); }
:is(.booking-app, .crm-app) .kv-list dt { color: var(--muted); font-size: 15px; }
:is(.booking-app, .crm-app) .kv-list dd { text-align: right; min-width: 0; overflow-wrap: anywhere; }

/* 확인 창 */
:is(.booking-app, .crm-app) .confirm-dialog { width: min(420px, calc(100vw - 32px)); border: 0; border-radius: 24px; padding: 28px; box-shadow: 0 16px 48px rgba(0, 0, 0, .18); color: var(--ink); }
:is(.booking-app, .crm-app) .confirm-dialog::backdrop { background: rgba(34, 34, 34, .45); }
:is(.booking-app, .crm-app) .confirm-dialog form { display: flex; flex-direction: column; gap: 20px; }
:is(.booking-app, .crm-app) .confirm-dialog .btn-row { justify-content: flex-end; }

/* ---------- 예약: 입장 ---------- */
.booking-app .gate { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 28px; align-items: stretch; padding-top: 8px; }
.booking-app .gate-media { position: relative; margin: 0; min-height: 520px; border-radius: 28px; overflow: hidden; background: var(--ph); }
.booking-app .gate-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.booking-app .gate-media figcaption {
  position: absolute; left: 20px; bottom: 20px; right: 20px; max-width: 320px;
  background: rgba(255, 255, 255, .92); border-radius: 18px; padding: 14px 18px; font-size: 14px; color: var(--muted-strong);
}
.booking-app .gate-media figcaption strong { display: block; font-family: var(--serif); font-size: 17px; color: var(--ink); }
.booking-app .gate-card { justify-content: center; gap: 22px; padding: clamp(24px, 4vw, 48px); }
.booking-app .gate-card h1 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.3; }
.booking-app .gate-code input {
  font-size: 20px; letter-spacing: .12em; text-transform: uppercase; text-align: center;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; min-height: 56px;
}
.booking-app .gate-code input::placeholder { letter-spacing: .08em; color: #b3b3b3; }
.booking-app .gate-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; font-size: 15px; }
.booking-app .gate-links a { display: inline-flex; align-items: center; min-height: 44px; }
.booking-app .gate-note { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--line); padding-top: 18px; font-size: 14px; color: var(--muted); }
.booking-app .gate-note .btn-row { gap: 8px; }
.booking-app .gate-note .btn { min-height: 44px; padding: 8px 16px; font-size: 14px; }

.booking-app .gate-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.booking-app .gate-points li { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border-radius: 20px; background: var(--band); font-size: 15px; color: var(--muted-strong); }
.booking-app .gate-points strong { font-family: var(--serif); font-size: 17px; color: var(--ink); }

/* ---------- 예약: 진행 단계 ---------- */
.booking-app .flow-head { display: flex; flex-direction: column; gap: 14px; padding: 8px 0 24px; }
.booking-app .flow-head h1 { font-size: clamp(26px, 3vw, 36px); }
.booking-app .progress { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; counter-reset: step; }
.booking-app .progress li {
  counter-increment: step; display: flex; flex-direction: column; gap: 8px;
  font-size: 14px; color: var(--muted); line-height: 1.35;
}
.booking-app .progress li::before {
  content: ""; display: block; height: 4px; border-radius: 4px; background: var(--line);
}
.booking-app .progress li span::before { content: counter(step) ". "; }
.booking-app .progress li.is-done::before,
.booking-app .progress li[aria-current="step"]::before { background: var(--primary); }
.booking-app .progress li[aria-current="step"] { color: var(--ink); font-weight: 700; }
.booking-app .progress-label { font-size: 14px; color: var(--muted); }

.booking-app .step { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.booking-app .step > .card:only-child { grid-column: 1 / -1; max-width: 680px; }
.booking-app .step-aside { position: sticky; top: 20px; }

/* 달력 */
.booking-app .cal { display: flex; flex-direction: column; gap: 12px; }
.booking-app .cal-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.booking-app .cal-head h3 { font-family: var(--serif); font-size: 19px; }
.booking-app .cal-nav {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff;
  display: inline-flex; align-items: center; justify-content: center; color: var(--ink); cursor: pointer;
}
.booking-app .cal-nav:hover { border-color: var(--ink); }
.booking-app .cal-week,
.booking-app .cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.booking-app .cal-week span { text-align: center; font-size: 13px; color: var(--muted); }
.booking-app .cal-grid { min-height: 240px; }
.booking-app .cal-grid .empty { grid-column: 1 / -1; align-self: center; }
/* 연결 코드가 채울 날짜 버튼: <button class="cal-day" data-state="available|check|unavailable"> */
.booking-app .cal-day {
  min-height: 44px; min-width: 0; border-radius: 12px; border: 1px solid transparent; background: #fff;
  font: inherit; font-size: 15px; color: var(--ink); cursor: pointer;
}
.booking-app .cal-day[data-state="available"] { border-color: var(--line); }
.booking-app .cal-day[data-state="check"] { background: #fff8e6; border-color: #f1dca4; }
.booking-app .cal-day[data-state="unavailable"],
.booking-app .cal-day:disabled { color: #b8b8b8; text-decoration: line-through; cursor: not-allowed; background: #fafafa; }
.booking-app .cal-day.in-range { background: var(--accent); }
.booking-app .cal-day[aria-pressed="true"] { background: var(--primary); color: #fff; border-color: var(--primary); }
.booking-app .legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--muted); }
.booking-app .legend span { display: inline-flex; align-items: center; gap: 6px; }
.booking-app .legend i { display: inline-block; width: 14px; height: 14px; border-radius: 4px; border: 1px solid var(--line); background: #fff; }
.booking-app .legend .l-check i { background: #fff8e6; border-color: #f1dca4; }
.booking-app .legend .l-off i { background: #f0f0f0; }
.booking-app .legend .l-pick i { background: var(--primary); border-color: var(--primary); }

/* 견적 */
.booking-app .quote { gap: 14px; }
.booking-app .quote-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 4px; }
.booking-app .quote-total strong { font-family: var(--serif); font-size: 26px; }
.booking-app .stay-summary { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 15px; color: var(--muted-strong); }

.booking-app .terms-box { max-height: 220px; overflow: auto; padding: 16px; border-radius: 14px; background: #fafafa; border: 1px solid var(--line); font-size: 14px; color: var(--muted-strong); }

.booking-app .otp input { font-size: 24px; letter-spacing: .4em; text-align: center; font-family: ui-monospace, Consolas, monospace; max-width: 260px; }

/* 접수 완료 */
.booking-app .receipt { max-width: 640px; margin: 0 auto; text-align: center; align-items: center; }
.booking-app .receipt-mark { width: 64px; height: 64px; border-radius: 50%; background: var(--accent); color: var(--primary); display: flex; align-items: center; justify-content: center; }
.booking-app .receipt-number { font-family: ui-monospace, Consolas, monospace; font-size: 22px; letter-spacing: .06em; padding: 10px 18px; border-radius: 12px; background: var(--band); overflow-wrap: anywhere; }
.booking-app .receipt .kv-list { width: 100%; text-align: left; }
.booking-app .receipt .btn-row { justify-content: center; }

/* ---------- 신청 조회 ---------- */
.booking-app .lookup { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.booking-app .lookup-main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.booking-app .flow-steps { display: flex; flex-direction: column; gap: 14px; counter-reset: s; }
.booking-app .flow-steps li { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; font-size: 15px; color: var(--muted-strong); }
.booking-app .flow-steps .status { grid-row: span 2; align-self: start; }
.booking-app .flow-steps strong { color: var(--ink); font-weight: 400; }
.booking-app .req-list { display: flex; flex-direction: column; gap: 10px; }
/* 연결 코드가 채울 항목: <li><button class="req-item">…</button></li> */
.booking-app .req-item {
  width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; text-align: left;
  min-height: 64px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 18px; background: #fff;
  font: inherit; color: var(--ink); cursor: pointer;
}
.booking-app .req-item:hover { border-color: var(--ink); }
.booking-app .detail-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.booking-app .timeline { display: flex; flex-direction: column; gap: 12px; border-left: 2px solid var(--line); padding-left: 16px; font-size: 15px; }

/* ---------- 관리자 ---------- */
.crm-app .signin { max-width: 460px; margin: 16px auto 0; }
.crm-app .signin h1 { font-size: 28px; }
.crm-app .signin-note { font-size: 14px; color: var(--muted); }
.crm-app .stack { display: flex; flex-direction: column; gap: 16px; }
.crm-app .toolbar .form-msg { flex: 1 1 100%; }
.crm-app .otp input { font-size: 22px; letter-spacing: .35em; text-align: center; font-family: ui-monospace, Consolas, monospace; }

.crm-app .ws-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 8px 0 16px; }
.crm-app .ws-top h1 { font-family: var(--serif); font-size: clamp(24px, 3vw, 32px); }
.crm-app .ws-user { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 14px; color: var(--muted); }

.crm-app .tabs {
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: thin; padding: 4px 2px 8px;
  border-bottom: 1px solid var(--line); margin-bottom: 24px; -webkit-overflow-scrolling: touch;
}
.crm-app .tabs [role="tab"] {
  flex: 0 0 auto; min-height: 44px; padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; font: inherit; font-size: 15px; color: var(--ink); cursor: pointer; white-space: nowrap;
}
.crm-app .tabs [role="tab"]:hover { border-color: var(--ink); }
.crm-app .tabs [role="tab"][aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.crm-app .tabs .count { margin-left: 6px; font-size: 13px; opacity: .8; }
.crm-app .tabs .count:empty { display: none; }

.crm-app .panel { display: flex; flex-direction: column; gap: 20px; }
.crm-app .panel-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; }
.crm-app .panel-head h2 { font-family: var(--serif); font-size: 24px; }
.crm-app .panel-head p { font-size: 15px; color: var(--muted); }
.crm-app .toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.crm-app .toolbar .field { flex: 1 1 180px; min-width: 0; }
.crm-app .toolbar .btn { min-height: 48px; }
.crm-app .split { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.crm-app .grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; align-items: start; }
.crm-app .action-row { display: flex; flex-wrap: wrap; gap: 10px; }
.crm-app .action-row .btn { min-height: 44px; padding: 8px 18px; font-size: 15px; }
.crm-app .sub { font-size: 14px; color: var(--muted); }

/* 표: 넓은 화면은 표, 좁은 화면은 카드 */
.crm-app .table-wrap { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.crm-app .data-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.crm-app .data-table th { text-align: left; font-weight: 400; font-size: 13px; color: var(--muted); background: #fafafa; padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.crm-app .data-table td { padding: 14px; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
.crm-app .data-table tbody tr:last-child td { border-bottom: 0; }
.crm-app .data-table tbody tr[data-selectable] { cursor: pointer; }
.crm-app .data-table tbody tr[data-selectable]:hover { background: var(--band); }
.crm-app .data-table tbody tr[aria-selected="true"] { background: var(--band); }
.crm-app .data-table .empty-row td { padding: 0; }
.crm-app .data-table .empty-row .empty { border: 0; border-radius: 0; }

.crm-app .checklist { display: flex; flex-direction: column; gap: 4px; }
.crm-app .checklist .check { border-bottom: 1px solid var(--line); }
.crm-app .channel-links { display: flex; flex-wrap: wrap; gap: 8px; }
.crm-app .channel-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: 14px; }
.crm-app .code-reveal { display: flex; flex-direction: column; gap: 12px; }
.crm-app .code-reveal output { display: block; font-family: ui-monospace, Consolas, monospace; font-size: 22px; letter-spacing: .08em; padding: 14px 18px; border-radius: 14px; background: #fff; border: 1px dashed var(--primary); overflow-wrap: anywhere; }
.crm-app .file-input input[type="file"] { padding: 10px; }
.crm-app .status-legend { display: flex; flex-wrap: wrap; gap: 6px; }

.preview-banner { padding: 10px 20px; background: #fff3d7; color: #694600; text-align: center; font-size: 14px; }
.pre-wrap { white-space: pre-wrap; overflow-wrap: anywhere; }
.booking-app .cal-day { min-width: 0; min-height: 42px; padding: 5px; border: 0; border-radius: 10px; }
.booking-app .cal-day.available { background: #eaf5ef; }
.booking-app .cal-day.check_required { background: #fff1da; }
.booking-app .cal-day.unavailable { background: #f0f0f0; text-decoration: line-through; color: #999; }
:is(.booking-app, .crm-app) pre { white-space: pre-wrap; overflow-wrap: anywhere; max-width: 100%; }
.crm-app .grid2 > *, .crm-app .split > * { min-width: 0; }
.crm-app .record-list { display: grid; gap: 10px; }
.crm-app .record-list > div { padding: 12px; border: 1px solid var(--line); border-radius: 12px; overflow-wrap: anywhere; }
.crm-app .table-wrap > .action-row { align-items: center; padding: 12px; font-size: 13px; }
/* ---------- 좁은 화면 ---------- */
@media (max-width: 900px) {
  .booking-app .gate { grid-template-columns: 1fr; gap: 16px; }
  .booking-app .gate-media { min-height: 0; aspect-ratio: 16 / 9; border-radius: 24px; }
  .booking-app .gate-media figcaption { display: none; }
  .booking-app .gate-points { grid-template-columns: 1fr; gap: 10px; margin-top: 16px; }
  .booking-app .step,
  .booking-app .lookup,
  .crm-app .split { grid-template-columns: 1fr; }
  .booking-app .step-aside { position: static; }
}

@media (max-width: 720px) {
  :is(.booking-app, .crm-app) .app-main { padding-bottom: 48px; }
  :is(.booking-app, .crm-app) .page-head { padding: 4px 0 20px; }
  :is(.booking-app, .crm-app) .page-head h1 { font-size: 28px; }
  :is(.booking-app, .crm-app) .card { border-radius: 20px; padding: 20px 16px; }
  :is(.booking-app, .crm-app) .card h2 { font-size: 21px; }
  :is(.booking-app, .crm-app) .btn-row { flex-direction: column; align-items: stretch; }
  :is(.booking-app, .crm-app) .kv-list dd { text-align: left; }
  .booking-app .gate-card h1 { font-size: 28px; }
  .booking-app .gate-media { aspect-ratio: 3 / 2; }
  .booking-app .gate-points li { padding: 14px 16px; }
  .booking-app .progress { gap: 6px; }
  .booking-app .progress li { font-size: 12px; }
  .booking-app .cal-grid { min-height: 200px; gap: 3px; }
  .booking-app .cal-week { gap: 3px; }
  .booking-app .receipt-number { font-size: 18px; }
  .crm-app .ws-top { padding-top: 0; }
  .crm-app .tabs { margin-left: -20px; margin-right: -20px; padding-left: 20px; padding-right: 20px; }
  .crm-app .table-wrap { border: 0; border-radius: 0; overflow: visible; }
  .crm-app .data-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .crm-app .data-table,
  .crm-app .data-table tbody,
  .crm-app .data-table tr,
  .crm-app .data-table td { display: block; width: 100%; }
  .crm-app .data-table tbody { display: flex; flex-direction: column; gap: 10px; }
  .crm-app .data-table tr { border: 1px solid var(--line); border-radius: 18px; padding: 8px 16px; background: #fff; }
  .crm-app .data-table td { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); text-align: right; }
  .crm-app .data-table td::before { content: attr(data-label); flex: 0 0 auto; color: var(--muted); font-size: 13px; text-align: left; }
  .crm-app .data-table tbody tr td:last-child { border-bottom: 0; }
  .crm-app .data-table .empty-row { padding: 0; border: 0; }
  .crm-app .data-table .empty-row td { display: block; text-align: center; }
  .crm-app .data-table .empty-row td::before { content: none; }
  .crm-app .data-table .empty-row .empty { border: 1px dashed var(--border); border-radius: 18px; }
}
