/* Tour inventory: keep each editable value under its own heading. */
.tour-dates-panel{min-width:0}
.tour-dates .departure-settings{display:grid;gap:10px;padding:0 0 20px;margin-bottom:20px;border-bottom:1px solid var(--line)}
.tour-dates .departure-unit{display:flex;align-items:center;flex-wrap:wrap;gap:10px 14px}
.tour-dates .departure-unit>span{font-size:13px}
.tour-dates #qunit{width:170px;max-width:100%;margin:0;min-height:38px}
.tour-dates .departure-help{margin:0;max-width:90ch;font-size:12px;line-height:1.7}
.tour-dates .departure-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.tour-dates .departure-heading h2{margin:0}
.tour-dates .departure-heading>span{font-size:12px;white-space:nowrap}
.tour-dates .departure-table-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:12px}
.tour-dates .departure-table{min-width:860px;font-size:13px}
.tour-dates .departure-table th{padding:12px;font-size:11px}
.tour-dates .departure-table td{padding:14px 12px;vertical-align:middle}
.tour-dates .departure-date{white-space:nowrap;font-weight:700;font-variant-numeric:tabular-nums}
.tour-dates .departure-table input{display:block;width:78px;max-width:100%;min-height:38px;margin:0 0 0 auto;padding:8px;text-align:right;font-size:13px;font-variant-numeric:tabular-nums}
.tour-dates .departure-remaining{font-size:15px;font-weight:800}
.tour-dates .departure-status{min-width:112px}
.tour-dates .departure-options{display:block;max-width:240px;margin-top:6px;line-height:1.5}
.tour-dates .departure-actions-cell{width:1%}
.tour-dates .departure-actions{display:flex;align-items:center;flex-wrap:nowrap;gap:6px}
.tour-dates .departure-actions .btn{flex:none;min-height:34px;margin:0;padding:7px 10px;line-height:1.3;font-size:12px;white-space:nowrap}
.tour-dates .departure-actions .departure-cancel{margin-left:6px;color:var(--danger);border-color:var(--danger)}
.tour-dates .departure-empty{padding:30px;text-align:center}
.tour-dates .departure-add{margin-top:24px;padding-top:22px;border-top:1px solid var(--line)}
.tour-dates .departure-add h2{margin-bottom:14px}
@media screen and (max-width:760px){
  .tour-dates-panel{padding:16px!important}
  .tour-dates .departure-unit{gap:10px}
  .tour-dates .departure-unit>span{flex-basis:100%}
  .tour-dates #qunit{flex:1 1 140px;width:auto}
  .tour-dates .departure-table-wrap{border:0;border-radius:0;overflow:visible}
  .tour-dates .departure-table,.tour-dates .departure-table tbody{display:block;min-width:0;width:100%}
  .tour-dates .departure-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  .tour-dates .departure-table tbody tr{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px 8px;margin-bottom:12px;padding:14px;border:1px solid var(--line);border-radius:12px}
  .tour-dates .departure-table td{display:block;width:auto;min-width:0;padding:0;border:0;text-align:left}
  .tour-dates .departure-table td[data-label]::before{content:attr(data-label);display:block;min-height:26px;margin-bottom:6px;color:var(--muted);font-size:10px;font-weight:600;line-height:1.3}
  .tour-dates .departure-table .departure-date{grid-column:1/3;font-size:15px}
  .tour-dates .departure-table .departure-status{grid-column:3/5;grid-row:1;min-width:0;text-align:right}
  .tour-dates .departure-table input{width:100%;margin:0;min-height:42px;text-align:left}
  .tour-dates .departure-table .departure-actions-cell{grid-column:1/-1;padding-top:12px;border-top:1px solid var(--line)}
  .tour-dates .departure-actions-cell::before{display:none!important}
  .tour-dates .departure-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .tour-dates .departure-actions .btn{width:100%;min-height:40px;padding:8px}
  .tour-dates .departure-actions .departure-cancel{margin-left:0}
  .tour-dates .departure-add .dmodes{display:flex;flex-wrap:wrap;gap:6px}
  .tour-dates .departure-add .tdrow{flex-wrap:wrap}
  .tour-dates .departure-add .tdrow>label{min-width:0;flex:1 1 150px}
}
@media print{
  .tour-dates .departure-table-wrap{overflow:visible;border:0}
  .tour-dates .departure-table{min-width:0}
  .tour-dates .departure-table th:last-child,.tour-dates .departure-actions-cell{display:none}
}
