.btn {
    padding: 10px 20px;
}
/* 날짜 헤더 */
#pageDateH1{
  margin: 0;
  font-weight: 800;
  font-size: clamp(20px, 3.2vw, 28px);
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
#pageDateH1::after{
  content: "▾";
  font-size: 0.8em;
  color: #6b7280;
}
label.datepick{
  position: absolute;
  top: -40px;
  left: -1100px;
  width: 1px; 
  height: 1px;
  margin: -1px; padding: 0; border: 0;
  white-space: nowrap;
  clip-path: inset(50%);
  clip: rect(0 0 0 0);
  overflow: hidden;
}
label.datepick[style]{
  top:auto !important; left:auto !important;
}
@media (max-width: 1800px) {
  label.datepick{
    position: absolute;
    top: -40px;
    left: -800px;
  }
}
@media (max-width: 1024px) {
  

  #datePicker {
    position: static;      /* 혹시 인라인 style로 absolute 박혀있으면 덮어쓰기 */
    display: block;
    margin: 10px auto 20px auto;  /* 위아래 여백 + 가운데 정렬 */
    min-width: 200px;
    padding: 8px 12px;

    font-size: 16px;
    border-radius: 8px;
    border: 1px solid #ddd;
  }
}
.visual_tit {
  padding: 20px 0;
}
#refreshBtn{
  z-index: 9999;
}
/* ------------------- 필터 css --------------- */
.action_box {justify-content: flex-end;}
.orders-filter{
    display:flex;
    align-items:center;
    gap:10px 14px;
    padding:10px 12px;
}
.orders-filter label,
.orders-filter fieldset,
.orders-filter select,
.orders-filter button{
    font-size:14px;
}
.orders-filter select{
    padding:6px 10px;
    border:1px solid #e5e7eb;
    border-radius:8px;
    background:#fff;
}
.orders-filter fieldset#weekdayFilter{
    display:flex;
    gap:6px;
    align-items:center;
    border:none;
    margin:0;
    padding:0;
}
.orders-filter fieldset#weekdayFilter > label{
    display:inline-flex;
    gap:4px;
    align-items:center;
    padding:4px 8px;
    border:1px solid #e5e7eb;
    border-radius:999px;
    background:#f9fafb;
    cursor:pointer;
}
.orders-filter fieldset#weekdayFilter input[type="checkbox"]{
    accent-color:#2563eb;
}
.orders-filter #missingOnly + span,
.orders-filter label[for="missingOnly"]{
    cursor:pointer;
}
.orders-filter #filterClear{
    padding: 6px 14px;
    height: 40px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
}
.orders-filter .filter-badge{
    margin-left:auto;
    background:#fff6ee;
    color: var(--primary-orange);
    border:1px solid #ffcda1;
    padding:4px 10px;
    border-radius:999px;
    font-weight:700;
}
#missingOnly[type="checkbox"] {
    width: 18px;
    height: 18px;
    border-radius: 100px;
    accent-color: var(--primary-orange);
}
/* 활성화 시 테두리 강조 */
.orders-filter.active{
  border-color: #FF511770;
  box-shadow:0 0 0 3px #fff6ee;
}
.orders-filter label {
    user-select: none;
    -webkit-user-select: none; 
}
.orders-filter input,
.orders-filter select,
.orders-filter button {
    cursor: pointer;
}
.orders-filter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}
.date-sort {
    color: #374151;
    font-weight: 600;
    display: flex;
    text-align: center;
    justify-content: center;
    align-items: center;
    gap: 8px;
}
/* ------------------- 필터 css end --------------- */
/* 전체 수량 합계 css ------------------------ */
.board-total {
    display: flex;
    justify-content: center;
    padding: 20px 0;
}
.quantity_wrap {
    display: flex;
    gap: 20px;
    justify-content: flex-start;
}
.box_title {
    font-size: 2.4rem;
    font-weight: 600;
    color: var(--label-neutral);
    padding-bottom: 10px;
    user-select: none;
    -webkit-user-select: none; 
}
.quantity {
    width: auto;
    min-width: 160px;
    height: 160px;
    padding: 20px;
    background-color: var(--label-white);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.quantity div:nth-child(1) {
    font-size: 4rem;
    font-weight: 700;
}
.quantity_bg_none {
    background-color: transparent;
}
.qty_kind {
    padding: 2px 14px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 18px;
    color: #00000090;
    user-select: none;
    -webkit-user-select: none; 
}
.heat_bg {
    background-color: #FF511720;
    color: var(--primary-orange);
}
.salad_bg {
    background-color: #189C3820;
    color: var(--primary-green);
}
.pickup_bg {
    background-color: #30231b20;
    color: var(--primary-brown);
}
.total_bg {
    background-color: #17171920;
    color: #00000090;
}
.dual-counter {
  display: flex;
  gap: 8px;
}
.dual-counter .primary,
.dual-counter .sep {
    color: #888; 
}
/* 전체 수량 합계 css end------------------------ */
.topbar{
    display:flex;
    align-items:center;
    justify-content:space-between;
    position: fixed;
    top: 170px;
    right: 150px;
    transform: translateX(-10%);
    z-index: 9999;
}
.topbar .right{
    display:flex;
    gap:8px;
    align-items:center;
}
label.datepick{
    display:flex;
    gap:8px;
    align-items:center;
}

.btn.xs {
    display: flex;
    padding: 10px 20px;
    border-radius: 4px; 
    font-size: 14px;
    border: 1px solid var(--line);
    box-shadow: initial;
}

.tabs {
    display:flex;
    gap: 8px;
    flex-wrap:wrap;
    justify-content: center;
    padding: 10px 0;
}
.tabs button{
    border:1px solid var(--border);
    background:#fff;
    border-radius:999px;
    padding:8px 14px;
    cursor:pointer;
    font-weight:600;
    font-size: 18px;
}
.tabs button.active{
    background:#111;
    color:#fff;
    border-color:#111;
}

.card{
    background:#fff;
    border:1px solid var(--border);
    border-radius:var(--radius);
    box-shadow:var(--shadow);
    overflow:hidden;
}
.card-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:14px 16px;
    border-bottom:1px solid var(--border);
}
.card_title {
    display: flex;
    align-items: center;
    gap: 10px;
}
.card-head .muted{
    color:var(--primary-green);
    font-size: 16px;
}

.table-wrap{
  overflow: auto;
  /* max-height: 72vh; */
}
.table{
    width:100%;
    border-collapse:separate;
    border-spacing:0;
}
.table th,
.table td {
    padding: 10px 20px;
    border-bottom:1px solid var(--border);
    background:#fff;
    vertical-align:middle;
    text-align: center;
}
.table thead th{
    position:sticky;
    top:0;
    background:#f9fafb;
    z-index:1;
    width: 50px;
}
.center{text-align:center;}
.badge{
    display:inline-block;
    padding:2px 8px;
    border-radius:999px;
    background:#eef2ff;
    color:#3730a3;
    font-weight:700;
}
.qty{
  font-weight: 700;
  font-size: 20px;
}

.select-driver{
  min-width: 140px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
  font-weight: 600;
  box-shadow: initial;
}

.addr-btn{
    display:flex;
    align-items:center;
    gap:8px;
}
.ts{
    font-size:11px;
    color:var(--muted);
    margin-top:4px;
}

.help{
    margin: 10px 14px;
    color: var(--muted);
    font-size: 12px;
}

/* 주소 */
.addr-cell {
    display: flex;
    gap: 6px;
    align-items: center;
    width: auto;
    max-width: 100%;
    justify-content: center;
}
.addr-tags{
    display:flex;
    gap:6px;
    align-items:center;
    flex-wrap: wrap;
}
.badge{
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 14px;
}
.badge.kind-addr{
    background:#eef2ff;
    color:#3730a3;
}
.badge.kind-dong{
    background:var(--label-bg);
    color:var(--label-text);
}
.badge.kind-unknown{
    background:#f3f4f6;
    color:#374151;
}

/* 탭 바 */
#driverTabs{
    display:flex; 
    gap:8px; 
    flex-wrap:wrap;
}
#driverTabs .tab-btn{
    border: 1px solid #e5e7eb; 
    background:#f3f4f6; 
    color:#6b7280;
    padding: 8px 12px; 
    border-radius:9999px; 
    font-size: 16px; 
    cursor: pointer;
}
#driverTabs .tab-btn.active{
    background:#111; 
    color:#fff; 
    border-color:#111;
}

/* 주소 셀: 동만 보이도록 심플하게 */
.addr-actions{
    display: flex;
    gap: 8px;
    width: auto;
    align-items: center;
    justify-content: center;
}

/* 모달========================= */
.modal-backdrop{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.35);
    display:none;
    align-items:center;
    justify-content:center;
    z-index: 9999;
}
.modal-backdrop.show {
    display: flex !important;
}
#addrModal .sheet{
    min-width: 320px; 
    max-width: 640px; 
    background:#fff; 
    border-radius: 14px; 
    padding: 16px 18px;
    box-shadow: 0 20px 50px rgba(0,0,0,.2);
}
#addrContent{ 
    color:#111; 
}
#addrMeta{ 
    margin-top: 8px; 
    color:#6b7280; 
    font-size: 12px; 
}
.modal{
    background:#fff;
    border-radius: 12px;
    max-width: 640px;
    width: calc(100% - 40px);
    padding: 18px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 20px 60px rgba(2,6,23,.18);
}
.modal header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.modal .addr{
    line-height: 1.6;
}
.modal .close{
    border: none;
    background:#111;
    color:#fff;
    border-radius: 8px;
    padding: 6px 10px;
    cursor: pointer;
}
.modal{
  background:#fff;
  border-radius: 12px;
  max-width: 640px;
  width: calc(100% - 40px);
  padding: 18px;
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(2,6,23,.18);
}
.modal header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.modal .close{
    border: none;
    background: #111;
    color: #fff;
    border-radius: 8px;
    padding: 6px 10px;
    cursor: pointer;
}
.hidden{display:none;}

/* 체크박스 크기 */
input[type="checkbox"]{
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-green);
    vertical-align: middle;
}
.add_btn {
  background-color: var(--primary-green);
}
/* 표 빈상태 */
.empty{
    color: var(--muted);
    text-align: center;
    padding: 24px;
}

/* 페이지 넘김 */
.pagination {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

.pagination button {
    width: 36px;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;

    border: 1px solid #e3e3e3;
    background: #fff;
    border-radius: 6px;

    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    color: #333;
}

.pagination button:hover {
    background: var(--primary-orange);
    border-color: var(--primary-orange);
    color: #fff;
}

.pagination .pages button {
    padding: 0 10px;
    height: 36px;
}

.pagination .pages button.active {
    background: var(--primary-orange);
    border-color: var(--primary-orange);
    color: #fff;
    font-weight: 600;
}

/* 팝업 전체 백드롭 ======================== */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(4px);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* 팝업 카드 */
.modal {
  background: #fff;
  width: 360px;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  animation: fadeUp .25s ease;
}

@keyframes fadeUp {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-close {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
}

.addr-block {
  margin: 15px 0;
}

.addr-block strong {
  display: block;
  margin-bottom: 4px;
  color: #333;
}

.addr-aft {
  background: #f5f5f7;
  border-radius: 8px;
  padding: 10px;
  font-size: 14px;
  white-space: pre-line;
}

.copy-btn {
  margin-top: 15px;
  width: 100%;
  padding: 12px;
  font-size: 16px;
  background: var(--primary-green);
  color: white;
  border-radius: 8px;
  cursor: pointer;
  border: none;
}

/* 기사 - 미정 css */
#driverTabs .tab-btn.is-unassigned {
  border: 1px solid var(--primary-orange, #f97316);
  color: var(--primary-orange, #f97316);
  background: #fff9f3;
  font-weight: 700;
}
#driverTabs .tab-btn.is-unassigned.active {
  background: var(--primary-orange, #f97316);
  color: #fff;
  border-color: var(--primary-orange, #f97316);
}
#driverTabs .tab-btn.is-unassigned:focus-visible {
  outline: 3px solid rgba(249, 115, 22, .35);
  outline-offset: 2px;
}

/* 행 호버시, css */
.table tbody tr::before { content: none !important; }

.table tbody#assignBody tr > td {
  background: #fff;
  transition: background-color .12s ease;
}
.table tbody#assignBody tr:hover > td {
  background: #f2fff1 !important;
}
.table tbody#assignBody tr:focus-within > td {
  background: #f2fff1 !important;
}

/* 드래그 중 */
.table tbody#assignBody tr.dragging > td {
  background: #fffaf5 !important;
}

/* 모바일-상하/고정 버튼 */
.mobile-sort-btns {
    display: none;
    gap: 6px;
}
.mobile-sort-btns button {
    background: #fff;
    border: 1px solid #ccc;
    padding: 6px 8px;
    font-size: 18px;
    border-radius: 6px;
}
tr.row-selected td,
tr.row-selected {
    background: #fff8de !important;
}
/* 고정 */
tr.row-pinned td,
tr.row-pinned {
    background: #fff8de !important;
}

/* 고정 아이콘: 오른쪽 상단 */
#assignBody tr.row-pinned td:last-child {
    position: relative; /* 아이콘 기준점 */
}

#assignBody tr.row-pinned td:last-child::after {
    content: "";           /* 이모지 대신 SVG 써도 됨 */
    position: absolute;
    top: -30px;
    right: 16px;
    font-size: 14px;
    pointer-events: none;
    width: 20px;
    height: 20px;
    background-color: #ff7b00; /* 원하는색 */
    mask: url("../public/icon/pin.svg") no-repeat center;
    mask-size: contain;
    -webkit-mask: url("../public/icon/pin.svg") no-repeat center;
    -webkit-mask-size: contain;
}

/* 모바일일 때만 보이기 */
@media (max-width: 1024px) {
    .mobile-sort-btns {
        display: flex;
        position: fixed;
        bottom: 20px;
        left: 20px;
        z-index: 999;
    }
}
/* ------------------*/
@media (hover:hover) {
  .table tbody#assignBody tr:hover > td {
    background: #f2fff1 !important;
  }
}
/* =========================================================
   배송 작업지시서(단일 페이지) 전용 반응형 오버라이드
   - gnb/알림/푸터 숨김
   - 모바일: 카드형 리스트 + 큰 체크박스 + 스크롤 탭
   - 행 하이라이트(hover/focus/checked)
   ========================================================= */

/* =========================
   태블릿 이하 공통 조정
   ========================= */
@media (max-width: 1024px) {
  #injectSampleBtn {display: none;}
  * {font-size: 1.1rem !important;}
  .footer, .section_wrap {
    width: auto !important;
    margin: 0 auto;
    padding: 0 20px;
  }
  .print_btn  {display: none;}
  .wrap { 
    width: 100%; 
    margin-right: 0px;
  }
  .edit_btn {background-color: white;}
  .sub_navi_wrap {
    position: sticky;
    inset: 0;
    background-color: #ffffff;
    margin-bottom: 30px;
    z-index: 8888;
    padding: 10px 20px;
    border-radius: initial;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    box-shadow: 0 0 10px 1px #d8d8d8;
  }
  .sub_navi_wrap .search_action {
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform .2s ease, opacity .2s ease, height .2s ease, margin .2s ease;
  }
  .sub_navi_wrap .search_action input,
  .sub_navi_wrap .search_action select,
  .sub_navi_wrap .search_action .btn {
    height: 40px;
    line-height: 40px;
    transition: height .2s ease, padding .2s ease, font-size .2s ease;
  }
  .sub_navi_wrap.is-stuck {
    padding: 6px 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,.08);
    backdrop-filter: saturate(160%) blur(6px);
  }

  .sub_navi_wrap.is-stuck .search_action {
    transform: scale(.96);
    opacity: 0;
    height: 0px;
  }
  .sub_navi_wrap.is-stuck .search_action input,
  .sub_navi_wrap.is-stuck .search_action select,
  .sub_navi_wrap.is-stuck .search_action .btn {
    height: 32px;
    line-height: 32px;
    font-size: .95rem;
    padding: 0 10px;
  }
  .sub_navi_wrap.is-stuck .order_section01 h2 {
    padding-right: 0px;
  }
  .sub_navi_wrap.is-stuck .search_action .extra {
    display: none;
  }

  .card { 
    border-radius: 14px; 
    display: flex;
    flex-direction: column;
  }
  .card-head { 
    padding: 12px;
  }
  .board-total { 
    padding: 8px 0 4px; 
  }
  .table {
    display: flex;
    flex-direction: column;
  }
  .table thead th {
    width: 100px !important;
  }
  .table tbody td {
    width: auto;
  }
  #assignBody tr {
    margin: 20px auto;
  }
  .action {
    margin-bottom: 10px;
  }
  .action button,
  .action button div {
    font-size: 0.6rem !important;
    white-space: nowrap;
  }
  .action button .button_ico_today,
  .action button .button_ico_edit {
    scale: 150%;
    margin-bottom: 8px;
  }
  .action .btn {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 60px;
    padding: 10px;
  }
  .button_ico_add,
  .button_ico_delete,
  .button_ico_edit,
  .button_ico_today {
    margin-right: 0;
    margin-bottom: 4px;
  }
  .sub_navi_wrap {
    display: flex;
    flex-direction: column;
  }
  .order_section01 {order: 1; width: 80%;}
  .search_action {order: 2;}
  .visual_tit {
    padding: 0;
  }
  .order_section01 h2 {
    padding-right: 85px;
  }
  .order_section01 h4 {display: none;}
  /* gnb */
  .search_action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
  }
  .search-wrap {
    position: relative;
    width: 100%;
  }
  .search-wrap input {
    width: 100%;
    padding: 6px 36px 6px 36px;
    border: 1px solid var(--line-normal);
    border-radius: 6px;
    outline: none;
    font-size: 1.8rem;
    box-sizing: border-box;
  }
  .refresh-bar {
    width: 100%;
    position: fixed;
    right: 20px;
    top: 15px;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0;
    gap: 6px;
  }
  #refreshBtn{
    width: 30px;
    height: 30px;
    border-radius: 50%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    overflow: hidden;
    font-size: 0 !important;
    background-color: var(--primary-green);
  }
  #refreshBtn {
    order: 1;
  }
  .auto-refresh,
  .last-sync {order: 2;}

  /* 새로고침 */
  #refreshBtn .refresh_ico{
    width: 16px;
    height: 16px;
    margin-right: 0px;
    color: white;
  }
  .refresh-bar .last-sync {
    margin-left: 0px;
  }
  .last-sync,
  #lastSync,
  .refresh-bar label {
    font-size: 12px !important;
  }
  .last-sync {display: none;}
  .refresh-bar:has(#autoRefresh:checked) .refresh-interval::before {
    content: "";
    position: absolute;
    top: 50%;
    right: -8px;
    transform: translateY(-50%) translateX(220%);
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 8px solid #111;
  }
  .refresh-bar .refresh-interval::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -8px;
    transform: translateY(-50%) translateX(220%);
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 8px solid #111;
  }
  .refresh-bar .refresh-interval {
    display: flex;
    gap: 8px;
    background-color: #111;
    border-radius: 10px;
    padding: 8px 12px;
    color: var(--primary-green);
    font-weight: 700;
    position: absolute;
    top: 50px;
    right: 100px;
    opacity: 0;
    transition: opacity .2s ease;
    z-index: 1000;
    pointer-events: none;
  }
  .visual_tit h1 {font-size: 2rem !important;}
  .visual_tit h2 {font-size: 1.4rem !important;}
  .visual_tit h4 {font-size: 0.8rem !important;}

  .date-anchor{ display:inline-block; position:relative; }
  label.datepick{ 
    position: fixed; 
    left: 0; 
    top: 60px;
  }
  .action {
    display: none;
  }
  /* 페이지 전용: 상단/사이드 전부 숨김 */
  .gnb_pc,
  .notice {
    display: none !important;
  }
  .footer {
    margin: 0 auto;
  }
  #driverTabs {
    display: flex;
    gap: 8px;
    /* 핵심: 한 줄 유지 + 가로스크롤 */
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 10px 12px;
  }
  /* 탭 버튼이 줄어들지 않도록 */
  #driverTabs .tab-btn {
    flex: 0 0 auto;
  }
  #driverTabs::-webkit-scrollbar {
    height: 6px;
  }
  #driverTabs::-webkit-scrollbar-thumb {
    background: #e5e7eb;
    border-radius: 999px;
  }
  .tabs {
    overflow: auto;
    scrollbar-width: scroll;
  }

  /* 행 하이라이트(PC/모바일 공통) */
  #assignBody tr {
    padding: 20px;
    transition: background-color .12s ease, box-shadow .12s ease, outline-color .12s ease;
  }
  #assignBody tr:hover {
    outline: 2px solid var(--primary-green, #189C38);
    outline-offset: -2px;
  }
  /* 체크 타임스탬프 공통 */
  .ts { font-size: 11px; color:#6b7280; margin-top:4px; }
  /* 드래그 핸들 커서(다른 JS 인라인 제거 권장) */
  .drag-handle { cursor: grab; }
  .drag-handle:active { cursor: grabbing; }

  /* 로그인 바(옵션, 아래 HTML을 넣었을 때만 적용) */
  .mobile-header {
    display: none;
    position: sticky; top: 0; z-index: 40;
    background: #fff;
    border-bottom: 1px solid #eee;
  }
  .mobile-header .bar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 12px;
  }
  .mobile-header .title { font-weight: 700; font-size: 16px; }
  .mobile-header .login-btn {
    border: 1px solid var(--border, #e5e7eb);
    background: #111; color:#fff; border-radius: 10px;
    padding: 8px 12px; font-weight: 700; font-size: 14px;
  }
  .topbar {
    width: 100%;
    justify-content: center;
  }
  .topbar .right {
    width: 100%;
    justify-content: space-around;
  }

  /* ==================== 기본 모드(header) ==================== */
  .board-total{
    position: sticky !important;
    top: 70px;
    left: 0; right: 0;
    z-index: 8888;
    width: 100% !important;
  }
  .quantity_wrap{
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: auto;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    max-width: var(--max-width);
    padding: 10px 20px;
    margin: 0 auto;
  }
  .quantity{
    flex: 0 0 auto;
    min-width: 50px !important;
    height: 100%;
    border-radius: 100px !important;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-direction: row !important;
    background-color: #111 !important;
    color: white;
    padding: 4px 20px;
  }
  .quantity div:nth-child(1){ font-size: 1.6rem !important; order:2; }
  .qty_kind { 
    padding: 4px;
    font-size: 12px !important; 
    order:1; 
    color: rgb(224, 224, 224);
    background-color: #ffffff00;
  }
  .qty_heat {
    color: var(--primary-orange);
  }
  .qty_salad {
    color: var(--primary-green);
  }
  .qty_total {
    color: var(--primary-baige);
  }
  /* 표 래퍼 여백/스크롤 */
  .card .table-wrap {
    padding: 0 20px 80px;
    overflow: auto;
  }
  .table-wrap {
    overflow: auto;
    max-height: 100%;
  }
  /* 표 → 카드형 리스트 */
  .card .table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px; /* 카드 간격 */
  }
  .card .table thead { display: none; }
  .card .table tbody { display: block; }

  .card .table tbody tr {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    min-height: 118px; /* 손가락 탭 여유 */
  }
  .card .table tbody td {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    border: 0;
    font-size: 14px;
    text-align: left;
  }
  .card .table tbody tr .empty {
    padding: 24px 12px;
    text-align: center;
  }
  .help {
    display: flex;
    justify-content: center;
    text-align: center;
  }

  /* ==================== 기본 모드 ==================== */
  .card .table tbody tr {
    grid-template-columns: 1fr 1fr;
  }
  .card .table tbody td:nth-child(1),
  .card .table tbody td:nth-child(2),
  .card .table tbody td:nth-child(3),
  .card .table tbody td:nth-child(4),
  .card .table tbody td:nth-child(5),
  .card .table tbody td:nth-child(6),
  .card .table tbody td:nth-child(7),
  .card .table tbody td:nth-child(8),
  .card .table tbody td:nth-child(9) {
    grid-column: 1 / -1;
  }

  /* 열 순서 재배치 */
  .card .table tbody td:nth-child(1) { 
    order: 1; 
    padding-left: 50px; 
  }/* 업체명 */
  .card .table tbody td:nth-child(2) { order: 3; } /* 밥온다 */
  .card .table tbody td:nth-child(3) { order: 3; } /* 풀온다 */
  .card .table tbody td:nth-child(4) { order: 3; } /* 수거 */
  .card .table tbody td:nth-child(5) { order: 3; color:var(--accent);}/* 특이사항 */
  .card .table tbody td .past-note label { color:var(--accent); background-color: #e2ebff; }/* 특이사항 */
  .card .table tbody td .past-note label,
  .card .table tbody td .new-note label { font-size: 14px !important; }/* 특이사항 */
  .card .table tbody td:nth-child(6),
  .card .table tbody td:nth-child(7) {
    order: 6;
    grid-column: auto;
    border-top: 1px dashed #e5e7eb;
    padding: 12px 10px;
    display: grid;
    grid-template-rows: auto auto auto;
    row-gap: 6px;
    align-items: start;
    justify-items: center;
  }
  .card .table tbody td:nth-child(6)::before,
  .card .table tbody td:nth-child(7)::before {
    display: block;
    width: 100%;
    text-align: center;
    margin: 0;
    font-weight: 700;
    color: #111827;
  }
  .card .table tbody td:nth-child(6) input[type="checkbox"],
  .card .table tbody td:nth-child(7) input[type="checkbox"] {
    margin: 0 auto;
  }
  .card .table tbody td:nth-child(6) .ts,
  .card .table tbody td:nth-child(7) .ts {
    margin: 0;
    text-align: center;
  }
  .card .table tbody td:nth-child(8) { 
    order: 2; 
    font-weight:700; 
    font-size: 22px !important; 
    height: 10px;
  } 
  .card .table tbody td:nth-child(9) { 
    order: 3;
  } 
  .card .table tbody td:nth-child(9) textarea { 
    text-align: right;
  } 
  .card .table tbody td:nth-child(9) { order: 5; } /* 연락처 */
  /* 각 셀의 보조 라벨(thead 대체) */
  .card .table tbody td:nth-child(1)::before { content: ""; font-weight:600; color:#6b7280; margin-right:6px; }
  .card .table tbody td:nth-child(2)::before { content: "밥온다"; font-weight:600; color:#6b7280; margin-right:auto; }
  .card .table tbody td:nth-child(3)::before { content: "풀온다"; font-weight:600; color:#6b7280; margin-right:auto; }
  .card .table tbody td:nth-child(4)::before { content: "수거"; font-weight:600; color:#6b7280; margin-right:auto; }
  .card .table tbody td:nth-child(5)::before { content: "특이사항"; font-weight:600; margin-right:auto;}
  .card .table tbody td:nth-child(6)::before { content: ""; font-weight:600; color:#111827; }
  .card .table tbody td:nth-child(7)::before { content: ""; font-weight:600; color:#111827; }
  /* .card .table tbody td:nth-child(9)::before { content: "연락처"; font-weight:600; color:#6b7280; margin-right:auto;} */

  /* 기사 선택 select 크게 */
  .card .select-driver.btn,
  .card select.select-driver {
    width: 100%;
    height: auto;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    padding: 10px 12px;
    font-size: 16px;
    box-shadow: none;
    background: #fff;
  }
  /* 주소 셀(동 배지 + 버튼) */
  .card .addr-cell { display:flex; align-items:center; gap:8px; width:100%; }
  .addr-cell {position: relative;}
  .card .addr-cell{
    width: auto !important;
    max-width: 100% !important;
    flex: 1 1 auto; 
    min-width: 0;  
  }
  .card .table tbody td:nth-child(8){
    width: auto !important;
    max-width: 100% !important;
    grid-column: 1 / -1;
  }
  .card .addr-actions .btn.xs {
    display: inline-flex;
    padding: 8px 24px;
    border-radius: 10px;
    font-size: 14px;
    border: 1px solid #e5e7eb;
    background: #fff;
    position: absolute;
    top: -50px;
    left: 0;
    white-space: normal;
    word-break: keep-all;
    text-align: center;
    inline-size: 5ch;
    font-size: 12px !important;
  }
  /* 수량 숫자 강조 */
  .card .qty { 
    font-weight: 700; 
    margin-right: 20px;
  }

  /* ================== EDIT 모드 전용 카드 레이아웃 =================== */
  /* 체크박스:배송완료 */
  .card .table tbody td:nth-child(6) input[type="checkbox"] {
    width: 34px; 
    height: 34px;
    accent-color: #f97316;
    margin-left: auto;      
    flex-shrink: 0;
    position: relative;
  }
  .card .table tbody td:nth-child(6) input[type="checkbox"]::before {
    content: "배송완료";
    padding: 10px 40px;
    border-radius: 100px;
    position: absolute;
    top: -2px;
    right: -160%;
    background-color: white;
    border: 1px solid var(--primary-green);
    color: var(--primary-green);
    font-weight: 600;
  }
  /* 체크 시 외곽 강조 */
  .card .table tbody td input[type="checkbox"]:checked {
    width: 34px;
    height: 34px;
    border-radius: 100px;
    accent-color: var(--primary-orange);
  }
  .card .table tbody td:nth-child(6) input[type="checkbox"]:checked::before {
    content: "배송완료";
    padding: 10px 40px;
    border-radius: 100px;
    position: absolute;
    top: -2px;
    right: -160%;
    background-color: var(--primary-green);
    color: white;
    font-weight: 600;
    margin-bottom: 5px;
  }
  /* 체크박스:수거완료 */
  .card .table tbody td:nth-child(7) input[type="checkbox"] {
    width: 34px; 
    height: 34px;
    accent-color: #f97316;
    margin-left: auto;      
    flex-shrink: 0;
    position: relative;
  }
  .card .table tbody td:nth-child(7) input[type="checkbox"]::before {
    content: "수거완료";
    padding: 10px 40px;
    border-radius: 100px;
    position: absolute;
    top: -2px;
    right: -160%;
    background-color: white;
    border: 1px solid var(--primary-green);
    color: var(--primary-green);
    font-weight: 600;
  }
  .missed {
    color: #FF5117;
    font-weight: 700;
    margin-right: 4px;
  }
  /* 체크 시 외곽 강조 */
  .card .table tbody td input[type="checkbox"]:checked {
    width: 34px;
    height: 34px;
    border-radius: 100px;
    accent-color: var(--primary-orange);
  }
  .card .table tbody td:nth-child(7) input[type="checkbox"]:checked::before {
    content: "수거완료";
    padding: 10px 40px;
    border-radius: 100px;
    position: absolute;
    top: -2px;
    right: -160%;
    background-color: var(--primary-green);
    color: white;
    font-weight: 600;
    margin-bottom: 5px;
  }

  /* 체크 타임스탬프(바로 옆에 표시) */
  .card .table tbody td:nth-child(6) .ts,
  .card .table tbody td:nth-child(7) .ts {
    font-size: 12px;
    color: #6b7280;
    margin-top: 10px;
  }
  /* 편집 열이 존재하는 테이블에만 적용 */
  .card .table:has(.th-handle) tbody tr { position: relative; }
  .card .table:has(.th-handle) tbody tr{ position: relative; }
  .card .table:has(.th-handle) tbody td:nth-child(1){
    order:-1; /* 시각적으로 가장 위 */
    content: "";
    position:absolute; 
    top: 0; right: 8px;
    border:0; padding:0;
    background: transparent;
  }
  /* 0) 편집칸(핸들/삭제) — 카드 상단 우측 정렬 */
  .card .table:has(.th-handle) tbody td:nth-child(1) {
    order: 0;
    grid-column: 1 / -1;
    padding: 10px 0;
    border: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 1px;
  }
  .card .table:has(.th-handle) tbody td:nth-child(1) .drag-handle { cursor: grab; }
  .card .table:has(.th-handle) tbody td:nth-child(1) .row-del {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 6px 10px;
    background: #fff;
  }
  .card .table:has(.th-handle) tbody td:nth-child(1)::before { content: ""; }

  /* === 열 순서 재배치(편집열 추가 버전) === */
  /* 1) 기사 = 원래 1열 → 편집 추가 후 2열 */
  .card .table:has(.th-handle) tbody td:nth-child(2) { 
    order: 1;
    padding-left: 0;
    margin-top: 20px;
  }
  .card .table:has(.th-handle) tbody td:nth-child(2)::before {
    content: ""; 
    font-weight: 600; 
    color: #6b7280; 
    margin-right: 6px;
  }
  .card .table:has(.th-handle) tbody td:nth-child(9)::before {
    content: "";
  }
  /* 2) 업체명 = 원래 2열 → 3열 */
  .card .table:has(.th-handle) tbody td:nth-child(2) {
    order: 2;
    font-weight: 700;
    font-size: 22px !important;
    padding-left: 45px;
    height: 60px;
  }
  .card .table:has(.th-handle) .addr-actions .btn.xs {
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 14px;
    border: 1px solid #e5e7eb;
    background: #fff;
    position: absolute;
    top: -60px;
    right: 0;
  }
  /* 3) 주소 = 원래 3열 → 4열 */
  .card .table:has(.th-handle) tbody td:nth-child(9) { order: 3; }

  /* 4) 밥온다/풀온다/수거 = 원래 3/5열 → 4/6열 */
  .card .table:has(.th-handle) tbody td:nth-child(3) { order: 4; }
  .card .table:has(.th-handle) tbody td:nth-child(4) { order: 4; }
  .card .table:has(.th-handle) tbody td:nth-child(5) { order: 4; }
  .card .table:has(.th-handle) tbody td:nth-child(3)::before {
    content: "밥온다"; font-weight: 600; color: #6b7280; margin-right: auto;
  }
  .card .table:has(.th-handle) tbody td:nth-child(4)::before {
    content: "풀온다"; font-weight: 600; color: #6b7280; margin-right: auto;
  }
  .card .table:has(.th-handle) tbody td:nth-child(5)::before {
    content: "수거"; font-weight: 600; color: #6b7280; margin-right: auto;
  }
  .card .table:has(.th-handle) tbody td:nth-child(5) {
    color: black;
  }

  /* 5) 특이사항 = 원래 6열 → 7열 */
  .card .table:has(.th-handle) tbody td:nth-child(6) {
    order: 4; color: var(--accent);
    border-top: 1px dashed transparent;
    padding: 0;
    display: flex;
    align-items: center;
    grid-template-rows: initial;
    row-gap: 6px;
    grid-column: 1 / -1;
  }
  .card .table:has(.th-handle) tbody td:nth-child(6)::before {
    content: "특이사항"; font-weight: 600; color: #6b7280; margin-right: auto;
    text-align: left;
  }

  /* 6) 배달완료/수거완료 = 원래 7/8열 → 8/9열 */
  .card .table:has(.th-handle) tbody td:nth-child(7),
  .card .table:has(.th-handle) tbody td:nth-child(8) {
    order: 6;
    padding: 8px 0;
    border-top: 1px dashed #e5e7eb;
    justify-content: center;
    align-items: center;
  }
  .card .table:has(.th-handle) tbody td:nth-child(7)::before {
    content: ""; font-weight: 600; color: #111827;
  }
  .card .table:has(.th-handle) tbody td:nth-child(8)::before {
    content: ""; font-weight: 600; color: #111827;
  }
  /* 체크박스:배송완료 */
  .card .table:has(.th-handle) tbody td:nth-child(7) input[type="checkbox"] {
    width: 34px; 
    height: 34px;
    accent-color: #f97316;
    margin-left: auto;      
    flex-shrink: 0;
    position: relative;
  }
  .card .table:has(.th-handle) tbody td:nth-child(7) input[type="checkbox"]::before {
    content: "배송완료";
    padding: 10px 40px;
    border-radius: 100px;
    position: absolute;
    top: -2px;
    right: -160%;
    background-color: white;
    border: 1px solid var(--primary-green);
    color: var(--primary-green);
    font-weight: 600;
  }
  /* 체크 시 외곽 강조 */
  .card .table:has(.th-handle) tbody td input[type="checkbox"]:checked {
    width: 34px;
    height: 34px;
    border-radius: 100px;
    accent-color: var(--primary-orange);
  }
  .card .table:has(.th-handle) tbody td:nth-child(7) input[type="checkbox"]:checked::before {
    content: "배송완료";
    padding: 10px 40px;
    border-radius: 100px;
    position: absolute;
    top: -2px;
    right: -160%;
    background-color: var(--primary-green);
    color: white;
    font-weight: 600;
    margin-bottom: 5px;
  }
  /* 체크박스:수거완료 */
  .card .table:has(.th-handle) tbody td:nth-child(8) input[type="checkbox"] {
    width: 34px; 
    height: 34px;
    accent-color: #f97316;
    margin-left: auto;      
    flex-shrink: 0;
    position: relative;
  }
  .card .table:has(.th-handle) tbody td:nth-child(8) input[type="checkbox"]::before {
    content: "수거완료";
    padding: 10px 40px;
    border-radius: 100px;
    position: absolute;
    top: -2px;
    right: -160%;
    background-color: white;
    border: 1px solid var(--primary-green);
    color: var(--primary-green);
    font-weight: 600;
  }
  /* 체크 시 외곽 강조 */
  .card .table:has(.th-handle) tbody td input[type="checkbox"]:checked {
    width: 34px;
    height: 34px;
    border-radius: 100px;
    accent-color: var(--primary-orange);
  }
  .card .table:has(.th-handle) tbody td:nth-child(8) input[type="checkbox"]:checked::before {
    content: "수거완료";
    padding: 10px 40px;
    border-radius: 100px;
    position: absolute;
    top: -2px;
    right: -160%;
    background-color: var(--primary-green);
    color: white;
    font-weight: 600;
    margin-bottom: 5px;
  }

  /* 체크 타임스탬프(바로 옆에 표시) */
  .card .table:has(.th-handle) tbody td:nth-child(7) .ts,
  .card .table:has(.th-handle) tbody td:nth-child(8) .ts {
    font-size: 12px;
    color: #6b7280;
    margin-top: 20px;
  }
  /* 주소 */
  .card .table:has(.th-handle) tbody td:nth-child(9)::before {
    order: 2; 
    width: 100%;
  }

  /* 연락처 */
  .card .table:has(.th-handle) tbody td:nth-child(10)::before { 
    content: ""; 
    font-weight:600; 
    color:#6b7280; 
    margin-right:auto;
  }
  .card .table:has(.th-handle) tbody td:nth-child(10) { 
    order: 4;
  }
  .card .table:has(.th-handle) tbody td:nth-child(10) textarea { 
    text-align: right;
  } 
  .card.is-editing .table tbody tr { position: relative; }
  .card.is-editing .table tbody td:nth-child(1){ /* 편집칸 */ 
    order:0; grid-column:1 / -1; padding:0; border:0;
    display:flex; justify-content:flex-end; gap:8px;
  }

  /* ---------- 편집 모드(핸들 열 추가) ---------- */
  .card .table:has(.th-handle) tbody tr {
    grid-template-columns: 1fr 1fr;  /* 동일하게 2열 */
  }
  /* 편집칸(td:nth-child(1))은 전폭, 우측 정렬 */
  .card .table:has(.th-handle) tbody td:nth-child(1) {
    grid-column: 1 / -1;
    display: flex; justify-content: flex-end; gap: 8px;
    border: 0; padding: 0;
  }
  /* 내용 영역(기사~특이사항) = 2~7열 전폭 */
  .card .table:has(.th-handle) tbody td:nth-child(2),
  .card .table:has(.th-handle) tbody td:nth-child(3),
  .card .table:has(.th-handle) tbody td:nth-child(4),
  .card .table:has(.th-handle) tbody td:nth-child(5),
  .card .table:has(.th-handle) tbody td:nth-child(6),
  .card .table:has(.th-handle) tbody td:nth-child(10)  {
    grid-column: 1 / -1;
  }
  /* 체크 영역: 편집 모드에서는 8,9열이 좌/우 칼럼 */
  .card .table:has(.th-handle) tbody td:nth-child(7),
  .card .table:has(.th-handle) tbody td:nth-child(8) {
    grid-column: auto;
    border-top: 1px dashed #e5e7eb;
    padding: 12px 10px;
    display: grid;
    grid-template-rows: auto auto auto;
    row-gap: 6px;
    align-items: start;
    justify-items: center;
  }
  .card .table:has(.th-handle) tbody td:nth-child(7)::before,
  .card .table:has(.th-handle) tbody td:nth-child(8)::before {
    display: block;
    width: 100%;
    text-align: center;
    margin: 0;
    font-weight: 700;
    color: #111827;
  }
  .card .table:has(.th-handle) tbody td:nth-child(7) input[type="checkbox"],
  .card .table:has(.th-handle) tbody td:nth-child(8) input[type="checkbox"] {
    margin: 0 auto;
  }
  .card .table:has(.th-handle) tbody td:nth-child(7) .ts,
  .card .table:has(.th-handle) tbody td:nth-child(8) .ts {
    margin: 0; text-align: center;
  }
  /* 행 호버시, css */
  .table tbody tr::before { content: none !important; }

  .table tbody#assignBody tr {
    background: #fff;
    transition: background-color .12s ease;
  }
  .table tbody#assignBody tr:hover {
    background: #f2fff1 !important;
  }
  .table tbody#assignBody tr:focus-within {
    background: #f2fff1 !important;
  }

  /* 드래그 중 */
  .table tbody#assignBody tr.dragging {
    background: #fffaf5 !important;
  }
  @media (hover:hover) {
    .table tbody#assignBody tr:hover {
      background: #f2fff1 !important;
    }
  }
  .footer {
    padding-top: 100px;
    padding-bottom: 10px;
    justify-content: center;
  }
}


@media (max-width: 700px) {
  .wrap {
    width: 100%;
  }
  
  /* 날짜 | 제목/부가설명 2열 레이아웃 */
  .visual_tit{
    display: grid;
    grid-template-columns: max-content 1fr; /* 좌: 날짜(내용폭), 우: 나머지 */
    column-gap: 20px;
    row-gap: 4px;
    align-items: baseline;
  }

  /* 좌측: 날짜(두 줄 높이 차지) */
  .visual_tit h1{
    grid-column: 1;
    grid-row: 1 / span 2;   /* h2, h4 높이만큼 세로로 같이 서게 */
    margin: 0;
    font-weight: 800;
    font-size: 20px !important;
    line-height: 1.2;
    white-space: nowrap;    /* 날짜 줄바꿈 방지 */
  }

  /* 우측: 제목(1행) */
  .visual_tit h2{
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    font-weight: 800;
    font-size: clamp(18px, 2.8vw, 22px) !important;
    color: #111827;
    line-height: 1.25;
  }

  /* 우측: 부가설명(2행) */
  .visual_tit h4{
    grid-column: 2;
    grid-row: 2;
    margin: 0;
    font-weight: 600;
    font-size: clamp(13px, 2.2vw, 16px);
    color: #6b7280;
    line-height: 1.4;
  }

  /* (선택) 아래 구분선 느낌이 필요하면 */
  .visual_tit + *{
    border-top: 0; /* 기본값 무시용 */
  }
  .visual_tit.with-divider{
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e7eb; /* 회색 구분선 */
  }
  .quantity {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column !important;
    border-radius: 10px !important;
    min-width: 100px !important;
    padding: 6px 0;
  }
  .visual_tit h2{ font-size: 16px; }
  .visual_tit h4{ font-size: 12px; }
  .quantity_wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    max-width: var(--max-width);
    padding: 10px 20px;
    margin: 0 auto;
  }
  .quantity div:nth-child(1) {
    font-size: 1.2rem !important;
  }
}

/* 모바일에서 1열 스택(선호 시) */
@media (max-width: 450px){
  .visual_tit{
    grid-template-columns: 1fr;
    row-gap: 2px;
  }
  .visual_tit h1{
    grid-row: auto;
    white-space: normal;
    font-size: 18px;
  }
  .board-total {
    position: sticky !important;
    top: 50px !important;
    left: 0;
    right: 0;
    z-index: 8888;
    width: 100% !important;
  }
  .quantity {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column !important;
    border-radius: 10px !important;
    min-width: 80px !important;
    padding: 6px 0;
  }
  .visual_tit h2{ font-size: 16px; }
  .visual_tit h4{ font-size: 12px; }
  .quantity_wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    max-width: var(--max-width);
    padding: 10px 20px;
    margin: 0 auto;
  }
  .quantity div:nth-child(1) {
    font-size: 1.2rem !important;
  }
  .card .table tbody td:nth-child(6) input[type="checkbox"]::before {
    content: "배송완료";
    padding: 10px 20px;
    border-radius: 100px;
    position: absolute;
    top: -2px;
    right: -100%;
    background-color: white;
    border: 1px solid var(--primary-green);
    color: var(--primary-green);
    font-weight: 600;
  }
  .card .table tbody td:nth-child(6) input[type="checkbox"]:checked::before {
    content: "배송완료";
    padding: 10px 20px;
    border-radius: 100px;
    position: absolute;
    top: -2px;
    right: -100%;
    background-color: var(--primary-green);
    color: white;
    font-weight: 600;
    margin-bottom: 5px;
  }
  .card .table tbody td:nth-child(7) input[type="checkbox"]::before {
    content: "수거완료";
    padding: 10px 20px;
    border-radius: 100px;
    position: absolute;
    top: -2px;
    right: -100%;
    background-color: white;
    border: 1px solid var(--primary-green);
    color: var(--primary-green);
    font-weight: 600;
  }
  .card .table tbody td:nth-child(7) input[type="checkbox"]:checked::before {
    content: "수거완료";
    padding: 10px 20px;
    border-radius: 100px;
    position: absolute;
    top: -2px;
    right: -100%;
    background-color: var(--primary-green);
    color: white;
    font-weight: 600;
    margin-bottom: 5px;
  }

  /* 핸들 on */
  .card .table:has(.th-handle) tbody td:nth-child(7) input[type="checkbox"]::before {
    content: "배송완료";
    padding: 10px 20px;
    border-radius: 100px;
    position: absolute;
    top: -2px;
    right: -100%;
    background-color: white;
    border: 1px solid var(--primary-green);
    color: var(--primary-green);
    font-weight: 600;
  }
  .card .table:has(.th-handle) tbody td:nth-child(7) input[type="checkbox"]:checked::before {
    content: "배송완료";
    padding: 10px 20px;
    border-radius: 100px;
    position: absolute;
    top: -2px;
    right: -100%;
    background-color: var(--primary-green);
    color: white;
    font-weight: 600;
    margin-bottom: 5px;
  }
  .card .table:has(.th-handle) tbody td:nth-child(8) input[type="checkbox"]::before {
    content: "수거완료";
    padding: 10px 20px;
    border-radius: 100px;
    position: absolute;
    top: -2px;
    right: -100%;
    justify-content: center;
    background-color: white;
    border: 1px solid var(--primary-green);
    color: var(--primary-green);
    font-weight: 600;
  }
  .card .table:has(.th-handle) tbody td:nth-child(8) input[type="checkbox"]:checked::before {
    content: "수거완료";
    padding: 10px 20px;
    border-radius: 100px;
    position: absolute;
    top: -2px;
    right: -100%;
    background-color: var(--primary-green);
    color: white;
    font-weight: 600;
    margin-bottom: 5px;
  }
  .ts {
    font-size: 16px !important;
  }
}
/* PC에서는 연락처 셀 전체 숨김 */
@media (min-width: 769px) {
  td.contact-col,
  th.contact-col {
    display: none !important;
  }
}
/* 모바일에서는 표시 */
@media (max-width: 768px) {
  td.contact-col,
  th.contact-col {
    display: table-cell !important;
  }
}

.print_btn {
  background-color: white;
  border: 1px solid var(--primary-green);
  color: var(--primary-green);
  transition: all 0.3s;
}
.print_btn:hover {
  background-color: var(--primary-green);
  color: white;
}
.print_btn .ico {
  margin-right: 10px;
}
.edit_btn {
  background-color: white;
}

/* ++ 기사 특이사항 추가 css */
.special-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.special-col label {
  font-size: 14px;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 6px;
}
.special-col .past-note label {
  color: var(--accent);
  background-color: #e2ebff;
}

.special-col textarea {
  width: 100%;
  min-height: 60px;
  font-size: 18px;
  padding: 14px 20px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  resize: vertical;
  box-sizing: border-box;
  color: black;
  margin-top: 8px !important;
}

.special-col textarea[readonly] {
  background: #f3f4f6;
}
.past-note,
.new-note {
  width: 100%;
  height: 100%;
}
.past-note label,
.new-note label {
  width: auto;
  background-color: #f3f4f6;
  border-radius: 100px;
  padding: 4px 10px;
}
.realtime-note::placeholder {
  font-style: italic;
  color: #999;
}
/* ++ 기사 특이사항 추가 css end */

/* 누락 라벨 전체 스타일 */
.missed {
  color: #FF5117;
  font-weight: 700;
  margin-right: 4px;
}
.ew-note-group {
  display: flex;
  justify-content: center;
  flex-direction: row;
}
.note-fixed-label {
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #d9534f;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 라벨 아이콘 */
.missed-label {
    background: #ffe6e6;
    border: 1px solid #ff8c8c;
    padding: 4px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.missed-label .missed-icon {
    width: 8px;
    height: 8px;
    background: #ff4d4d;
    border-radius: 50%;
    display: inline-block;
}

