@charset "utf-8";
:root { --cell-min-width: 58px; --cell-height: 45px; --font-size-base: 13px; --font-size-time: 14px; --name-col-width: 155px; }

/* 🌟 外側のスクロールを完全に禁止し、カレンダー部分だけをスクロールさせる 🌟 */
html, body { max-width: 100%; height: 100vh; overflow: hidden; margin: 0; padding: 0; }
body { font-family: sans-serif; font-size: var(--font-size-base); color: #333; padding: 10px 20px 20px 20px; background-color: #fff; box-sizing: border-box; display: block; }

.header-controls { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 10px; border-bottom: 2px solid #ccc; padding-bottom: 10px; flex-wrap: wrap; gap: 10px; }
.filter-bar { background-color: #f1f8ff; padding: 10px; margin-bottom: 10px; border-radius: 5px; display: flex; gap: 15px; align-items: center; border: 1px solid #cce5ff; }

/* 🌟 高さの引き算で100%ピッタリに収める 🌟 */
.table-container { width: 100%; height: calc(100vh - 110px); overflow: auto; border: 1px solid #ccc; box-shadow: 0 2px 5px rgba(0,0,0,0.1); scroll-behavior: smooth; display: block; }
.calendar-wrapper { width: 100%; height: calc(100vh - 110px); padding: 15px; background: #fff; border: 1px solid #ccc; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); overflow: auto; box-sizing: border-box; display: block; }

.month-tabs { display: flex; gap: 5px; align-items: flex-end;}
.tab-btn { padding: 8px 15px; cursor: pointer; border: 1px solid #ccc; background: #eee; font-size: 13px; border-radius: 4px 4px 0 0; margin-bottom: -10px; }
.tab-btn.active { background: #007bff; color: white; font-weight: bold; border-color: #007bff; }
.tab-btn.overview { background: #e8f5e9; border-color: #4caf50; color: #2e7d32; font-weight: bold;}
.tab-btn.overview.active { background: #4caf50; color: white; border-color: #4caf50;}
.btn-today { background: #ff9800; color: white; border-color: #f57c00; font-weight: bold; margin-left: 10px; border-radius: 4px; padding: 6px 15px; margin-bottom: 12px; box-shadow: 0 2px 4px rgba(0,0,0,0.2); transition: 0.2s; cursor: pointer; }
.btn-today:hover { background: #e68a00; transform: translateY(-1px); }
.action-toolbar { display: flex; gap: 5px; align-items: center; background: #f8f9fa; padding: 5px 10px; border-radius: 6px; border: 1px solid #ddd; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.tool-divider { width: 1px; height: 20px; background-color: #ccc; margin: 0 5px; }
.btn-tool { background: #fff; border: 1px solid #bbb; padding: 6px 12px; border-radius: 4px; cursor: pointer; font-size: 12px; font-weight: bold; color: #444; transition: all 0.2s ease; }
.btn-tool:hover { background: #e9ecef; }
#btnToday { color: #e65100; border-color: #ffb74d; background: #fff3e0;}
#btnToday:hover { background: #ffe0b2; }
.btn-select-mode { color: #0277bd; border-color: #90caf9; background: #e3f2fd;}
.btn-select-mode:hover { background: #bbdefb; }
.btn-red-action { color: #c62828; border-color: #ef9a9a; background: #ffebee;}
.btn-red-action:hover { background: #ffcdd2; }
.btn-del-action { color: #fff; border-color: #424242; background: #616161;}
.btn-del-action:hover { background: #757575; }
.btn-send-action { color: #fff; border-color: #388e3c; background: #4caf50;}
.btn-send-action:hover { background: #66bb6a; }
.staff-controls { display: flex; align-items: center; gap: 8px;}
.btn-staff { padding: 8px 15px; cursor: pointer; border: 1px solid #90caf9; border-radius: 4px; font-size: 13px; font-weight: bold; transition: 0.2s; background: #e3f2fd; color: #0277bd; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.btn-add:hover { background: #bbdefb; }
.btn-settings { background: #f5f5f5; color: #555; border-color: #ccc; padding: 8px 10px; font-size: 15px; }
.btn-settings:hover { background: #e0e0e0; }
.filter-bar select, .filter-bar input[type="search"] { padding: 4px 8px; font-size: 12px; border: 1px solid #ccc; border-radius: 3px; }
.calendar-matrix { border-collapse: collapse; white-space: nowrap; font-size: var(--font-size-base); }
.calendar-matrix th, .calendar-matrix td { border: 1px solid #ddd; padding: 5px; text-align: center; min-width: var(--cell-min-width); height: var(--cell-height); }
.calendar-matrix thead th { height: auto !important; min-height: var(--cell-height); }
.holiday-name { font-size: 9px; color: #d32f2f; display: block; line-height: 1; margin-bottom: 1px; }
.clickable-th.holiday .date-number, .clickable-th.holiday .day-name { color: #d32f2f !important; }
.category-header-row td { border-top: 2px solid #aaa !important; border-bottom: 2px solid #ccc !important; }
.category-rest-cell { background-color: #fafafa !important; }
.spacer-row td { border: none !important; background-color: white !important; height: 25px; }
.calendar-matrix tbody td:not(.fixed-name-col):not(.no-hover) { cursor: pointer; transition: background-color 0.2s; }
.calendar-matrix tbody td:not(.fixed-name-col):not(.no-hover):hover { background-color: #f1f8ff; }
.clickable-th { cursor: pointer; transition: background-color 0.2s; vertical-align: top !important; padding: 2px 4px !important;}
.clickable-th:hover { background-color: #e3f2fd !important; }
.clickable-th.today-col:hover { background-color: #ffa726 !important; }
.date-header-inner { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; height: 100%; min-height: calc(var(--cell-height) - 4px); }
.day-name { font-size: calc(var(--font-size-base) - 2px); line-height: 1.2; color: #555; }
.date-number { font-size: calc(var(--font-size-base) + 1px); font-weight: bold; line-height: 1.2; margin-bottom: 2px;}
.sun .day-name, .sun .date-number { color: red; }
.sat .day-name, .sat .date-number { color: blue; }
th.today-col .day-name, th.today-col .date-number, th.today-col .holiday-name { color: white !important; }
.daily-bottom-info { display: flex; justify-content: center; align-items: center; gap: 3px; margin-top: auto; flex-wrap: wrap; width: 100%; }
.daily-info-text { font-size: calc(var(--font-size-base) - 3px); font-weight: bold; color: #d32f2f; line-height: 1.2; word-break: keep-all; }
.daily-comment-icon { display: inline-block; background-color: #fff9c4; border: 1px solid #fbc02d; color: #f57f17; font-size: calc(var(--font-size-base) - 3px); padding: 1px 3px; border-radius: 3px; line-height: 1.1; cursor: help; }

.dragging-row { opacity: 0.4; background-color: #eee; }
.drag-over-top td { box-shadow: inset 0 3px 0 0 #ff9800 !important; }
.drag-over-bottom td { box-shadow: inset 0 -3px 0 0 #ff9800 !important; }

.cell-selected { box-shadow: inset 0 0 0 2px #d32f2f !important; background-color: #ffcdd2 !important; }
.date-selected { box-shadow: inset 0 0 0 3px #00897b !important; background-color: #e0f2f1 !important; }
.calendar-matrix thead { position: sticky; top: 0; z-index: 20; }
.calendar-matrix th { background-color: #f8f8f8; }
.fixed-name-col { position: sticky; left: 0; background-color: #fff; z-index: 11; font-weight: bold; text-align: left; min-width: var(--name-col-width); box-shadow: 2px 0 5px rgba(0,0,0,0.1); padding-left: 10px !important; }
.drag-handle { color: #bbb; margin-right: 8px; cursor: grab; font-size: 16px; user-select: none; }
.drag-handle:active { cursor: grabbing; color: #333; }
.drag-disabled { color: #eee; cursor: not-allowed; } 
.staff-name-text { cursor: pointer; color: #007bff; font-size: calc(var(--font-size-base) + 3px); font-weight: bold; }
.staff-name-text:hover { text-decoration: underline; }
.calendar-matrix thead th.fixed-name-col { z-index: 21; background-color: #f8f8f8; color: #333; text-align: center; padding-left: 5px !important; vertical-align: middle !important; }
.week-separator { border-right: 3px solid #bbb !important; }
.month-separator { border-right: 6px solid #757575 !important; }
.month-label { font-size: calc(var(--font-size-base) + 1px); letter-spacing: 2px; }
.month-bg-past { background-color: #fce4ec !important; border-bottom: 2px solid #f48fb1 !important; color: #c2185b; }
.month-bg-current { background-color: #e3f2fd !important; border-bottom: 2px solid #90caf9 !important; color: #0277bd; }
.month-bg-future { background-color: #e8f5e9 !important; border-bottom: 2px solid #a5d6a7 !important; color: #2e7d32; }
.shift-active { background-color: #e0f7fa; }
.shift-tel { background-color: #fff3e0; }
.today-col { background-color: #ffe0b2 !important; border-left: 2px solid #ff9800; border-right: 2px solid #ff9800;} 
th.today-col { background-color: #ffb74d !important; color: white !important; font-weight: bold; }
.time-display { font-size: var(--font-size-time); font-weight: bold; line-height: 1.2; text-align: center; z-index:1; color: #111; }
.time-red { color: #e53935 !important; }
.has-comment { position: relative; }
.has-comment::after { content: ''; position: absolute; top: 0; right: 0; border-top: 10px solid #e53935; border-left: 10px solid transparent; z-index: 5; }
.count-cell { background-color: #f1f8ff !important; padding: 2px 0 !important; border-bottom: 2px solid #999 !important; vertical-align: middle !important; }
.count-cell.today-col { background-color: #ffb74d !important; }
.count-certain { font-size: calc(var(--font-size-base) + 2px); color: #1565c0; font-weight: bold; line-height: 1.1; }
.count-uncertain { font-size: calc(var(--font-size-base) - 1px); color: #e65100; font-weight: bold; line-height: 1.1; margin-top: 1px; }
.count-cell.today-col .count-certain, .count-cell.today-col .count-uncertain { color: white !important; }

.absent-badge { display: inline-block; padding: 2px 4px; border-radius: 3px; font-size: 10px; font-weight: bold; margin: 1px; color: white; line-height: 1.2; letter-spacing: 0.5px;}
.absent-kj { background-color: #212121; }      
.absent-natsume { background-color: #00bcd4; } 
.absent-oba { background-color: #4caf50; }     
.absent-ogata { background-color: #9c27b0; }   
.absent-other { background-color: #757575; }   

.staff-cal-btn { background-color: #f1f8ff; border: 1px solid #90caf9; color: #0277bd; border-radius: 4px; cursor: pointer; transition: 0.2s; white-space: nowrap; font-weight: bold; box-shadow: 0 1px 2px rgba(0,0,0,0.05);}
.staff-cal-btn:hover { background-color: #bbdefb; transform: translateY(-1px); }

.bg-cat-new { background-color: #e8f5e9 !important; box-shadow: inset 5px 0 0 0 #4caf50, 2px 0 5px rgba(0,0,0,0.1) !important; color: #2e7d32 !important; }
.bg-cat-reg { background-color: #e3f2fd !important; box-shadow: inset 5px 0 0 0 #2196f3, 2px 0 5px rgba(0,0,0,0.1) !important; color: #0277bd !important; }
.bg-cat-spt { background-color: #e0f7fa !important; box-shadow: inset 5px 0 0 0 #00bcd4, 2px 0 5px rgba(0,0,0,0.1) !important; color: #00838f !important; }
.bg-cat-uns { background-color: #fff3e0 !important; box-shadow: inset 5px 0 0 0 #ff9800, 2px 0 5px rgba(0,0,0,0.1) !important; color: #e65100 !important; }
.bg-cat-unk { background-color: #f3e5f5 !important; box-shadow: inset 5px 0 0 0 #9c27b0, 2px 0 5px rgba(0,0,0,0.1) !important; color: #6a1b9a !important; }
.bg-cat-res { background-color: #f5f5f5 !important; box-shadow: inset 5px 0 0 0 #9e9e9e, 2px 0 5px rgba(0,0,0,0.1) !important; color: #424242 !important; }
.bg-cat-other { background-color: #eceff1 !important; box-shadow: inset 5px 0 0 0 #607d8b, 2px 0 5px rgba(0,0,0,0.1) !important; color: #37474f !important; }

/* 🌟 モーダル表示 🌟 */
.modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); z-index: 1000; justify-content: center; align-items: center; }
.modal-content { background: #fff; padding: 25px; border-radius: 10px; width: 360px; box-shadow: 0 5px 20px rgba(0,0,0,0.3); max-height: 90vh; overflow-y: auto; }
.modal-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid #eee; padding-bottom: 10px; margin-bottom: 15px; }
.modal-header h3 { margin: 0; font-size: 18px; border: none; padding: 0; color: #222;}
.btn-icon-del { background: #ffebee; border: 1px solid #ffcdd2; color: #c62828; padding: 5px 10px; border-radius: 4px; cursor: pointer; font-size: 12px; font-weight: bold; transition: 0.2s; }
.btn-icon-del:hover { background: #ffcdd2; }
.target-info { font-size: 17px; font-weight: bold; color: #333; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px solid #eee; text-align: center;}
.form-row { margin-bottom: 15px; display: flex; align-items: center; min-height: 30px;}
.form-row label { width: 85px; font-size: 14px; font-weight: bold; color: #555;}
.form-row select, .form-row input[type="text"], .form-row input[type="password"], .form-row input[type="date"] { font-size: 14px; padding: 6px; border: 1px solid #ccc; border-radius: 4px;}
.form-row textarea { font-size: 14px; padding: 6px; border: 1px solid #ccc; border-radius: 4px; width: 250px; height: 60px; resize: vertical; }
.modal-actions { margin-top: 25px; display: flex; justify-content: space-between; }
.modal-actions button { padding: 8px 16px; cursor: pointer; border: none; border-radius: 5px; font-size: 13px; font-weight: bold;}
.btn-save { background: #007bff; color: white; border:1px solid #007bff; }
.btn-cancel { background: #e0e0e0; color: #333; }
.btn-clear { background: #ff4d4d; color: white; }
.view-val { font-size: 15px; color: #111; }
.view-remarks { white-space: pre-wrap; font-size: 14px; color: #333; background: #f9f9f9; padding: 8px; border-radius: 4px; min-height: 25px; width: 250px; max-height: 150px; overflow-y: auto; word-break: break-all; }
.view-remarks a { color: #007bff; text-decoration: underline; }
.view-remarks a:hover { color: #0056b3; }

/* 🌟 月別カレンダーの100%幅指定 🌟 */
.monthly-calendar { width: 100%; min-width: 700px; border-collapse: collapse; table-layout: fixed; }
.monthly-calendar th { border: 1px solid #ddd; background: #f8f8f8; padding: 10px 5px; text-align: center; font-weight: bold; font-size: 14px; color: #444; }
.monthly-calendar td { border: 1px solid #ddd; vertical-align: top; height: 120px; padding: 8px; cursor: pointer; transition: background-color 0.2s; position: relative; }
.monthly-calendar td:not(.out-of-month):hover { background-color: #f1f8ff; }
.monthly-calendar .out-of-month { background-color: #fafafa; cursor: default; }
.month-date-header { display: flex; align-items: baseline; gap: 6px; margin-bottom: 8px; border-bottom: 1px solid #eee; padding-bottom: 4px; }
.monthly-calendar .date-number { font-size: 18px; font-weight: bold; }
.monthly-calendar .holiday-name { font-size: 11px; color: #d32f2f; background: #ffebee; padding: 2px 5px; border-radius: 3px; font-weight: bold; }
.monthly-calendar .sun .date-number, .monthly-calendar th.sun { color: #d32f2f; }
.monthly-calendar .sat .date-number, .monthly-calendar th.sat { color: #1976d2; }
.monthly-calendar .holiday .date-number { color: #d32f2f; }
.monthly-calendar .today-cell { background-color: #fff8e1; border: 2px solid #ff9800; }
.month-absent { font-size: 12px; color: #d32f2f; font-weight: bold; background: #ffebee; padding: 3px 6px; border-radius: 4px; margin-bottom: 5px; display: inline-block; }
.month-comment { font-size: 11px; color: #f57f17; background: #fff9c4; padding: 3px 6px; border-radius: 4px; margin-bottom: 5px; display: block; word-break: break-all;}
.month-counts { position: absolute; bottom: 5px; right: 5px; text-align: right; }
.c-cert { color: #1565c0; font-size: 16px; font-weight: bold; display: block; }
.c-uncert { color: #e65100; font-size: 13px; font-weight: bold; display: block; }

.sync-error-cell { box-shadow: inset 0 0 0 3px #ff1744 !important; background-color: #ffebee !important; animation: pulse-red 2s infinite; }
@keyframes pulse-red { 0% { box-shadow: inset 0 0 0 3px #ff1744; } 50% { box-shadow: inset 0 0 0 1px #ff1744; } 100% { box-shadow: inset 0 0 0 3px #ff1744; } }
.sync-error-icon { position: absolute; top: -5px; right: -5px; background: #ff1744; color: white; font-size: 11px; border-radius: 50%; width: 16px; height: 16px; display: flex; align-items: center; justify-content: center; z-index: 10; font-weight: bold; box-shadow: 0 1px 3px rgba(0,0,0,0.3); }
.time-select { font-size: 16px; font-weight: bold; padding: 6px 10px; border-radius: 6px; cursor: pointer; border: 2px solid #ccc; box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.start-time-select { background-color: #e3f2fd; border-color: #90caf9; color: #0d47a1; }
.end-time-select { background-color: #fce4ec; border-color: #f48fb1; color: #880e4f; }
.start-time-select:hover { border-color: #42a5f5; }
.end-time-select:hover { border-color: #f06292; }
#btnSyncResolveRemote:active, #btnSyncResolveLocal:active { transform: translateY(2px); box-shadow: none !important; }

.past-day { background-color: #e0e0e0 !important; opacity: 0.4; color: #888 !important; }
.past-day .time-display, .past-day .day-name, .past-day .date-number, .past-day .count-certain { color: #888 !important; }
.past-day.clickable-th:hover { background-color: #d5d5d5 !important; opacity: 0.6; }
.monthly-calendar td.past-day { background-color: #ececec !important; opacity: 0.4; color: #888 !important; }
.calendar-matrix tbody td.past-day { background-color: #eeeeee !important; opacity: 0.4; }
.calendar-matrix tbody td.past-day.shift-active { background-color: #d1e2e6 !important; }
.calendar-matrix tbody td.past-day.shift-tel { background-color: #e6dfd5 !important; }

.warn-text .count-certain, .warn-text .count-uncertain { color: #d32f2f !important; }
.warn-bg { background-color: #fff9c4 !important; border-bottom: 2px solid #fbc02d !important; }
.warn-bg .count-certain, .warn-bg .count-uncertain { color: #d32f2f !important; }
.clickable-count { cursor: pointer; transition: background-color 0.2s; }
.clickable-count:hover { background-color: #e3f2fd !important; }
.month-counts.warn-bg { background-color: #fff9c4; padding: 2px 4px; border-radius: 4px; border: 1px solid #fbc02d; }
.month-counts.warn-text .c-cert, .month-counts.warn-text .c-uncert { color: #d32f2f !important; }
.month-counts.warn-bg .c-cert, .month-counts.warn-bg .c-uncert { color: #d32f2f !important; }

#shiftModal { z-index: 1100 !important; }

/* 🌟 スタッフ個別カレンダーのサイズ復元 🌟 */
.staff-cal-content { width: 850px !important; max-width: 98vw !important; }
.staff-cal-wrapper { overflow: hidden !important; padding: 10px; max-height: 90vh; }
.staff-monthly-calendar { min-width: 100% !important; --font-size-base: 15px; --font-size-time: 17px; }
.staff-monthly-calendar td { height: 110px !important; padding: 5px !important; }

/* 🌟 システム設定・スタッフ詳細のタブデザイン復元 🌟 */
.staff-tabs { display: flex; margin-bottom: 15px; border-bottom: 2px solid #ccc; gap: 5px; flex-wrap: wrap; }
.staff-tab-btn { padding: 8px 20px; cursor: pointer; border: none; background: transparent; font-size: 14px; font-weight: bold; color: #777; border-bottom: 3px solid transparent; margin-bottom: -2px; transition: 0.2s; }
.staff-tab-btn:hover { color: #333; }
.staff-tab-btn.active { color: #0277bd; border-bottom-color: #0277bd; }

/* 🌟 バックアップ管理用 🌟 */
#backupListTable td { border-bottom: 1px solid #ddd; padding: 6px 4px; }
#backupListTable tr:last-child td { border-bottom: none; }
.btn-dl { color: #1976d2; background: none; border: none; cursor: pointer; text-decoration: underline; font-size: 11px; padding:0; margin-right:12px; font-weight:bold;}
.btn-del-bk { color: #d32f2f; background: none; border: none; cursor: pointer; text-decoration: underline; font-size: 11px; padding:0; font-weight:bold;}

/* 🌟 コントロールパネル（テーブルヘッダー左上セル内） 🌟 */
.control-panel { padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.cp-row { display: flex; gap: 4px; align-items: center; width: 100%; }
.cp-sort { flex: 1; padding: 5px 4px; font-size: 12px; border: 1px solid #ccc; border-radius: 4px; min-width: 0; background: #fff; font-weight: bold; }
.cp-zoom { display: flex; border: 1px solid #ccc; border-radius: 4px; background: #fff; flex-shrink: 0; }
.cp-zoom-btn { padding: 4px 8px; font-size: 13px; font-weight: bold; color: #444; cursor: pointer; border: none; background: transparent; line-height: 1.2; }
.cp-zoom-btn:hover { background: #e3f2fd; }
.cp-zoom-btn:active { background: #bbdefb; }
.cp-zoom-label { font-size: 11px; font-weight: bold; border-left: 1px solid #ddd; border-right: 1px solid #ddd; padding: 4px 6px; color: #555; }
.cp-search { width: 100%; padding: 5px 8px; font-size: 12px; border: 1px solid #ccc; border-radius: 4px; box-sizing: border-box; }
.cp-bottom { justify-content: space-between; margin-top: 2px; }
.cp-resigned { display: flex; align-items: center; gap: 4px; font-size: 11px; font-weight: bold; color: #555; cursor: pointer; white-space: nowrap; }
.cp-resigned input { width: 15px; height: 15px; margin: 0; cursor: pointer; }
.cp-add-btn { padding: 5px 10px; font-size: 12px; font-weight: bold; background: #e3f2fd; color: #0277bd; border: 1px solid #90caf9; border-radius: 4px; cursor: pointer; white-space: nowrap; }
.cp-add-btn:hover { background: #bbdefb; }
.cp-add-btn:active { background: #90caf9; }
.cp-cell { text-align: left !important; vertical-align: top !important; padding: 0 !important; }

/* 🌟 MENUドロップダウン 🌟 */
.menu-dropdown-wrapper { position: relative; display: inline-block; }
.btn-menu { color: #444; border-color: #bbb; background: #f5f5f5; font-weight: bold; }
.btn-menu:hover { background: #e0e0e0; }
.menu-dropdown { display: none; position: absolute; top: 100%; right: 0; margin-top: 4px; background: #fff; border: 1px solid #ccc; border-radius: 6px; box-shadow: 0 4px 12px rgba(0,0,0,0.15); z-index: 1000; min-width: 200px; padding: 4px; }
.menu-item { display: block; width: 100%; text-align: left; padding: 10px 14px; font-size: 13px; font-weight: bold; border: none; background: transparent; cursor: pointer; border-radius: 4px; color: #333; }
.menu-item:hover { background: #f1f8ff; }
.menu-divider { height: 1px; background: #e0e0e0; margin: 4px 10px; }

/* 🌟 ピックアップテンプレート 🌟 */
.pickup-template-area { width: 100%; height: 250px; font-size: 11px; font-family: monospace; padding: 10px; border: 1px solid #ccc; border-radius: 4px; box-sizing: border-box; resize: vertical; line-height: 1.5; white-space: pre-wrap; }

/* 🌟 ピックアップモーダル 🌟 */
.pickup-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; max-height: 55vh; overflow-y: auto; padding: 5px; }
.pickup-card { position: relative; border: 2px solid #ddd; border-radius: 8px; overflow: hidden; cursor: pointer; transition: all 0.2s; background: #fff; }
.pickup-card:hover { border-color: #90caf9; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.pickup-card.selected { border-color: #e65100; box-shadow: 0 0 0 2px #ff9800; }
.pickup-card.selected::after { content: '✓'; position: absolute; top: 6px; right: 6px; background: #e65100; color: white; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: bold; z-index: 2; }
.pickup-card-img { width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block; }
.pickup-card-info { padding: 6px 8px; text-align: center; }
.pickup-card-name { font-size: 13px; font-weight: bold; color: #333; margin-bottom: 2px; }
.pickup-card-time { font-size: 11px; color: #666; }
.pickup-card-order { position: absolute; top: 6px; left: 6px; background: #e65100; color: white; min-width: 22px; height: 22px; border-radius: 50%; display: none; align-items: center; justify-content: center; font-size: 12px; font-weight: bold; z-index: 2; }
.pickup-card.selected .pickup-card-order { display: flex; }