/* Personal target and sitplan views only. Desktop tables and team views are unchanged. */
@media screen and (max-width:700px){
  #targetBoard [hidden],#sitplanView [hidden]{display:none!important}
  #targetBoard .target-table-scroll{overflow:visible;max-width:100%}
  #targetBoard .target-list-table{display:block;width:100%;min-width:0;table-layout:auto}
  #targetBoard .target-list-table colgroup{display:none}
  #targetBoard .target-list-table thead{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  #targetBoard .target-list-table tbody{display:block;padding:0 10px}
  #targetBoard .target-list-table tr[data-drag-target]{display:grid;grid-template-columns:26px minmax(0,1fr) auto;gap:5px 7px;padding:12px 0;border-bottom:1px solid #e7edf5}
  #targetBoard .target-list-table tr[data-drag-target]:last-child{border-bottom:0}
  #targetBoard .target-list-table tr[data-drag-target]>td{display:block;position:static;min-width:0;width:auto;height:auto;min-height:0;padding:0;border:0;background:transparent;box-shadow:none;line-height:1.5}
  #targetBoard .target-list-table .target-cell-num{grid-column:1;grid-row:1;align-self:center}
  #targetBoard .target-list-table .target-cell-name{grid-column:2;grid-row:1;align-self:center}
  #targetBoard .target-list-table .target-cell-stage{grid-column:3;grid-row:1;align-self:center}
  #targetBoard .target-list-table .target-cell-progress{grid-column:2 / -1;grid-row:2}
  #targetBoard .target-list-table .target-cell-schedule{grid-column:2 / -1;grid-row:3}
  #targetBoard .target-list-table .target-cell-memo{grid-column:2 / -1;grid-row:4}
  #targetBoard .target-list-table .target-cell-actions{grid-column:1 / -1;grid-row:5;margin-top:3px}
  #targetBoard .target-progress{flex-direction:row;flex-wrap:wrap;gap:4px 8px}
  #targetBoard .target-linked-schedule{flex-wrap:wrap;gap:4px 6px;margin-top:2px}
  #targetBoard .target-linked-edit{min-height:32px;padding:4px 6px}
  #targetBoard .target-table-actions{display:flex;flex-wrap:wrap;gap:5px;width:100%}
  #targetBoard .target-table-actions button{flex:1 1 auto;min-height:36px;padding:6px 8px;font-size:11px}
  #targetBoard .target-list-table .target-table-memo{max-height:none;overflow:visible;display:block;-webkit-line-clamp:unset;margin:0;font-size:12px}
  #targetBoard .target-table-empty{display:block;height:auto;padding:20px 10px}
  #sitplanView .sit-scroll{position:relative;overflow-x:auto;overflow-y:hidden;max-width:100%;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;touch-action:pan-x pan-y;scrollbar-width:thin}
  #sitplanView .sit-scroll::before{content:'← 좌우로 밀어 월~토 전체 일정 보기 →';display:block;position:sticky;left:0;box-sizing:border-box;width:100%;padding:7px 9px;background:#f5efe1;color:#6e562b;font-size:11px;line-height:1.4;text-align:center;z-index:2}
  #sitplanView .sit-grid{width:640px;min-width:640px;table-layout:fixed}
  #sitplanView .sit-grid th{padding:8px 4px;font-size:12px}
  #sitplanView .sit-grid th:first-child{width:40px}
  #sitplanView .sit-grid th small{font-size:10px}
  #sitplanView .sit-grid td>button{min-height:54px;padding:8px 7px;font-size:12px;line-height:1.5}
  #sitplanView .sit-grid .sit-calendar-cell{padding:0 7px 8px!important;font-size:12px!important;line-height:1.5!important}
  #sitplanView .sit-grid .sit-calendar-cell .sit-plan-line{gap:3px!important}
  #sitplanView .sit-grid .sit-calendar-cell .sit-activity{font-size:10px;padding:1px 3px;flex-shrink:0}
  #sitplanView .sit-tools{gap:5px}
  #sitplanView .sit-tools button{min-height:34px;padding:6px 8px;font-size:11px}
  #sitplanView .sit-calendar-events{min-width:0}
}
