.section02{
    width: 1000px;
    margin: 0 auto;
}
.for_ord_tit {
    font-weight: 700;
    font-size: 18px;
    align-items: center;
    display: flex;
}
input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border-radius: 100px;
    accent-color: var(--primary-brown);
}
/* 표 기본 */
.table-scroll { overflow:auto; }
.orders-table { width:100%; border-collapse:collapse; }
.orders-table th, .orders-table td {
  border-bottom:1px solid #e5e7eb; padding:10px 12px; text-align:center; background:#fff;
}
.orders-table tbody tr { cursor:pointer; transition: background .12s ease; }
.orders-table tbody tr:hover { background:#fff8f2; }
.orders-table tbody tr .row-select { cursor:pointer; }

/* 액션 */
.action-row{ 
    margin-top:10px; 
    display:flex; 
    gap:8px; 
    justify-content: space-between;
    margin-bottom: 10px;
}

/* 모달 공통 (기존 스타일과 호환) */
.modal-overlay {
  display:none; 
  position:fixed; 
  inset:0; 
  background:rgba(0,0,0,.45);
  align-items:center; 
  justify-content:center; 
  z-index:9999;
}
.modal-overlay.open { display:flex; }
.modal-card.admin-modal{
  width:min(980px, 95vw);
  background:#fff; border-radius:16px; 
  box-shadow:0 20px 60px rgba(2,6,23,.18);
  position:relative; overflow:hidden;
}
.modal-close{ 
  position:absolute; 
  top:10px; right:12px; 
  border:0; 
  background:transparent; 
  font-size:20px; 
  cursor:pointer; 
  opacity:.7; 
}
.modal-close:hover{ opacity:1; }
.modal-header{ padding:18px 22px 8px; }
.modal-title{ font-weight:700; font-size:18px; }
.modal-eyebrow{ color:#6b7280; padding-top:4px; }
.modal-body{ padding:16px 22px; border-top:1px solid #e5e7eb; }
.modal-footer{ padding:14px 22px 18px; display:flex; justify-content:center; gap:8px; border-top:1px solid #e5e7eb; }
.btn.modal-ok{ padding:10px 22px; border-radius:999px; background:var(--primary-orange); color: white; border:1px solid #e5e7eb; }
.btn.modal-ok:hover{ background:var(--primary-orange,#f97316); color:#fff; border-color:var(--primary-orange,#f97316); }
.btn.modal-cancel {padding:10px 22px; border-radius:999px; background:white; border:1px solid #e5e7eb}

/* key-value */
.kv{ display:grid; grid-template-columns:120px 1fr; gap:8px 12px; align-items:center; }
.kv .k{ color:#374151; font-weight:600; }
.kv .v{ color:#111827; word-break:break-all; }
.switch{ display:inline-flex; gap:8px; align-items:center; }

/* 권한 그리드 */
.perm-head{
  display:flex; align-items:center; justify-content:space-between; margin:6px 0 10px;
}
.perm-head .hint{ color:#6b7280; margin-left:8px; }
.perm-grid{
  display:grid; grid-template-columns: repeat(4, minmax(180px,1fr));
  gap:14px;
  border:1px solid #e5e7eb; border-radius:12px; padding:12px;
}
.perm-col{ border:1px dashed #e5e7eb; border-radius:10px; padding:10px; background:#fcfcff; }
.perm-col-title{ font-weight:700; margin-bottom:8px; }
.perm-col-title02{ font-weight:700; margin-bottom:8px; margin-top: 8px; }
.perm-col label{ display:flex; gap:8px; align-items:center; padding:4px 2px; }

.perm-col:has(#client_menu:not(:checked)) label:has(.client_sub) {
  opacity: .5;
  cursor: not-allowed;
}
.perm-col:has(#client_menu:not(:checked)) .client_sub {
  pointer-events: none; /* 클릭 막기 */
}
/* 반응형 */
@media (max-width: 720px){
  .perm-grid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px){
  .perm-grid{ grid-template-columns: 1fr; }
  .kv{ grid-template-columns: 100px 1fr; }
}

/* --- FIX: 행 하이라이트 레이어가 가려지는 문제 해결 --- */
/* 행 간격 유지 */
.orders-table,
.settlement-table {
  border-collapse: separate;
  table-layout: fixed;
}
.orders-table tbody tr > td,
.settlement-table tbody tr > td {
  background: #fff;
  transition: background-color .12s ease;
}
.orders-table tbody tr,
.settlement-table tbody tr {
  position: relative;
  transition: outline-color .12s ease, box-shadow .12s ease;
}
.orders-table tbody tr:hover,
.settlement-table tbody tr:hover {
  outline-color: var(--primary-orange, #f97316);
}
.orders-table tbody tr:hover > td,
.settlement-table tbody tr:hover > td {
  background: rgba(249, 115, 22, .04);
}
.orders-table tbody tr:focus-within,
.settlement-table tbody tr:focus-within {
  outline-color: var(--primary-orange, #f97316);
}
.orders-table tbody tr:focus-within > td,
.settlement-table tbody tr:focus-within > td {
  background: rgba(249, 115, 22, .06);
}
.orders-table tbody tr:has(input[type="checkbox"]:checked) > td,
.settlement-table tbody tr:has(input[type="checkbox"]:checked) > td {
  background: #fff7f1;
}
.orders-table tbody tr.dragging,
.settlement-table tbody tr.dragging {
  outline-color: var(--primary-orange, #f97316);
  box-shadow: 0 6px 16px rgba(0,0,0,.12);
}
.orders-table tbody tr.dragging > td,
.settlement-table tbody tr.dragging > td {
  background: #fffaf5;
}

/* 모션 최소화 */
@media (prefers-reduced-motion: reduce) {
  .orders-table tbody tr,
  .settlement-table tbody tr,
  .orders-table tbody tr > td,
  .settlement-table tbody tr > td { transition: none; }
}

