:root{--green:#15945b;--green-dark:#117a4b;--navy:#0d2746;--line:#dce5e1;--muted:#6e7d87;--bg:#f3f7f5}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:#263640;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans KR",sans-serif}
body.modal-open{overflow:hidden}
.booking-page{min-height:80vh}
.booking-hero{padding:30px 20px 72px;text-align:center;color:#fff;background:#111c2f}
.booking-hero h1{margin:18px 0 0;font-size:31px}
.booking-hero p{margin:8px 0 0;color:#dbe7f1;font-size:14px}
.booking-panel{width:min(1240px,calc(100% - 32px));margin:-42px auto 55px;padding:18px;border-radius:20px;background:#fff;box-shadow:0 18px 45px rgba(17,45,36,.12)}
.booking-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:16px}
.booking-tab{height:51px;border:1px solid #d7e2de;border-radius:13px;background:#f8fbfa;color:#52635e;font-weight:800;font-size:16px;cursor:pointer}
.booking-tab span{display:inline-grid;place-items:center;min-width:24px;height:24px;margin-left:5px;padding:0 7px;border-radius:12px;background:#e6eeeb;font-size:12px}
.booking-tab.active{border-color:var(--green);color:#fff;background:var(--green)}
.booking-tab.active span{background:rgba(255,255,255,.24)}
.booking-search{display:grid;grid-template-columns:repeat(6,minmax(125px,1fr));gap:12px;padding:16px;border:1px solid var(--line);border-radius:14px;background:#f9fbfa}
.booking-search label{display:flex;flex-direction:column;gap:7px;min-width:0}
#dealTypeFilter[hidden],.deal-type-column[hidden]{display:none!important}
.booking-search label span{font-size:13px;font-weight:700;color:#53625e}
.booking-search input,.booking-search select{width:100%;height:42px;border:1px solid #cdd8d4;border-radius:8px;padding:0 11px;background:#fff;font:inherit;color:#263640}
.booking-search input:focus,.booking-search select:focus{outline:2px solid rgba(21,148,91,.18);border-color:var(--green)}
.booking-search-actions{display:flex;grid-column:1/-1;align-items:flex-end;justify-content:flex-end;gap:7px}
.booking-search-actions button,.booking-status-row button{height:42px;border-radius:8px;padding:0 16px;font-weight:700;cursor:pointer}
.search-button{border:1px solid var(--green);color:#fff;background:var(--green)}
.reset-button,.booking-status-row button{border:1px solid #cdd8d4;color:#52635e;background:#fff}
.booking-status-row{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:15px 2px 10px}
.booking-status-row p{margin:0;color:#50615b;font-size:14px}
.booking-status-row strong{color:var(--green)}
.booking-status-row small{margin-left:8px;color:#87948f}
.booking-status-row button:disabled{opacity:.55;cursor:wait}
.booking-error{margin-bottom:12px;padding:13px;border:1px solid #f1bcb7;border-radius:10px;background:#fff5f4;color:#b5261e}
.booking-table-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:12px}
.booking-table{width:100%;min-width:1220px;border-collapse:collapse;table-layout:fixed;font-size:13px}
.booking-table th{padding:13px 8px;border-bottom:1px solid #ccd9d4;background:#edf4f1;color:#41524c;white-space:nowrap}
.sort-button{display:inline-flex;align-items:center;justify-content:center;gap:5px;width:100%;padding:0;border:0;background:transparent;color:inherit;font:inherit;font-weight:800;cursor:pointer}
.sort-button span{min-width:10px;color:#9aa7a2;font-size:9px}
.sort-button:hover,.sort-button.active{color:var(--green-dark)}
.sort-button.active span{color:var(--green)}
.booking-table td{padding:12px 8px;border-bottom:1px solid #e7eeeb;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.booking-table tbody tr{cursor:pointer;transition:background .15s}
.booking-table tbody tr:hover,.booking-table tbody tr:focus{outline:none;background:#f0faf5}
.booking-table tbody tr:last-child td{border-bottom:0}
.booking-table th:nth-child(4),.booking-table td:nth-child(4){width:155px}
.booking-table th:nth-child(7),.booking-table td:nth-child(7){width:150px}
.booking-table th:nth-child(8),.booking-table td:nth-child(8){width:100px}
.booking-table th:nth-child(9),.booking-table td:nth-child(9){width:125px}
.course-cell{font-weight:700}
.price-cell{color:#078bdd;font-weight:800}
.deal-type-cell{color:inherit;font-weight:400}
.booking-phone{position:relative;z-index:2;color:#097c4e;font-weight:800;text-decoration:underline;text-underline-offset:3px}
.booking-empty{padding:60px 15px;text-align:center;color:#87948f}
.booking-pagination{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:6px;padding-top:18px}
.booking-pagination button{min-width:38px;height:38px;padding:0 11px;border:1px solid #d1dcd8;border-radius:8px;background:#fff;color:#4b5d56;cursor:pointer}
.booking-pagination button.active{border-color:var(--green);color:#fff;background:var(--green);font-weight:800}
.booking-pagination button:disabled{opacity:.4;cursor:default}
.booking-pagination span{color:#8b9893}
.booking-modal{position:fixed;z-index:10000;inset:0;display:none;align-items:center;justify-content:center;padding:18px;background:rgba(4,17,29,.68)}
.booking-modal.open{display:flex}
.booking-modal-box{width:min(680px,100%);max-height:90vh;overflow:hidden;border-radius:18px;background:#fff;box-shadow:0 24px 70px rgba(0,0,0,.32)}
.booking-modal-box header{display:flex;align-items:flex-start;justify-content:space-between;padding:20px 22px;border-bottom:1px solid #e2e9e6}
.booking-modal-box h2{margin:7px 0 0;font-size:23px}
.booking-detail-badge{display:inline-block;padding:5px 10px;border-radius:12px;color:#087347;background:#e2f6ec;font-size:12px;font-weight:800}
.booking-modal-box header button{border:0;background:transparent;color:#72807b;font-size:31px;line-height:1;cursor:pointer}
.booking-detail-body{max-height:62vh;overflow-y:auto;padding:4px 22px 18px}
.booking-detail-body dl{display:grid;grid-template-columns:120px 1fr;margin:0}
.booking-detail-body dt,.booking-detail-body dd{margin:0;padding:12px 8px;border-bottom:1px solid #edf1ef}
.booking-detail-body dt{color:#687771;font-weight:700}
.booking-detail-body dd{word-break:break-word;white-space:pre-wrap}
.booking-detail-body a{color:#087e4e;font-weight:800}
.booking-modal-box footer{display:flex;justify-content:flex-end;gap:9px;padding:15px 22px;border-top:1px solid #e2e9e6}
.booking-modal-box footer a,.booking-modal-box footer button{display:inline-flex;align-items:center;justify-content:center;min-width:112px;height:44px;border-radius:9px;font-weight:800;text-decoration:none;cursor:pointer}
.booking-call-button{color:#fff;background:#1677d2}
#bookingDetailConfirm{border:0;color:#fff;background:var(--green)}
@media(max-width:1050px){
  .booking-search{grid-template-columns:repeat(3,1fr)}
  .booking-search-actions{align-items:flex-end}
}
@media(max-width:700px){
  .booking-hero{padding:24px 15px 62px}
  .booking-hero h1{font-size:25px}
  .booking-panel{width:calc(100% - 18px);margin-top:-34px;padding:10px;border-radius:15px}
  .booking-tab{height:45px;font-size:14px}
  .booking-search{grid-template-columns:1fr 1fr;padding:12px;gap:10px}
  .booking-keyword,.booking-search-actions{grid-column:1/-1}
  .booking-search-actions button{flex:1}
  .booking-status-row{align-items:flex-start}
  .booking-status-row small{display:block;margin:3px 0 0}
  .booking-table{min-width:1050px}
  .booking-detail-body dl{grid-template-columns:94px 1fr;font-size:14px}
  .booking-modal-box footer a,.booking-modal-box footer button{flex:1}
}
