/* ── small-boats.css ───────────────────────────────────────────*/

/* ── SMALL BOATS ─────────────────────────────────────────────────────────── */

/* Calendar grid wrapper — full width, horizontally scrollable within the tab */
#sb-cal-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Calendar table */
.sb-cal-table { border-collapse: collapse; font-size: 12px; min-width: 700px; }

/* Two-row sticky header */
.sb-cal-table thead tr th { position: sticky; top: 0; z-index: 3; background: var(--surface); border-bottom: 0.5px solid var(--border-strong); }
.sb-cal-time-hdr { width: 52px; min-width: 52px; font-size: 10px; color: var(--text-tertiary); text-align: center; padding: 4px 4px; white-space: nowrap; position: sticky; left: 0; z-index: 4 !important; }
.sb-cal-day-hdr { font-size: 11px; font-weight: 600; color: var(--text); text-align: center; padding: 5px 4px; border-left: 0.5px solid var(--border); min-width: 90px; }
.sb-cal-day-hdr.sb-today-hdr { color: var(--navy-dark); background: var(--navy-light); }
.sb-cal-sub-hdr { font-size: 10px; font-weight: 600; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.04em; text-align: center; padding: 4px 4px; min-width: 90px; border-left: 0.5px solid var(--border); }

/* Time label column — sticky left */
.sb-cal-time { width: 52px; min-width: 52px; font-size: 11px; color: var(--text-secondary); white-space: nowrap; padding: 2px 6px; text-align: right; vertical-align: middle; background: var(--surface); position: sticky; left: 0; z-index: 2; border-right: 0.5px solid var(--border-strong); }

/* Data cells */
.sb-cal-cell { min-width: 90px; padding: 2px 3px; vertical-align: middle; height: 30px; border-left: 0.5px solid var(--border); border-bottom: 0.5px solid var(--border); }
.sb-cal-cell.sb-today-col { background: #f0f5ff; }
.sb-cal-row-alt td:not(.sb-cal-time) { background: rgba(0,0,0,0.018); }
.sb-cal-row-alt .sb-cal-cell.sb-today-col { background: #e8effc; }
[data-theme="dark"] .sb-cal-cell.sb-today-col { background: rgba(59,130,246,0.14); }
[data-theme="dark"] .sb-cal-row-alt td:not(.sb-cal-time) { background: rgba(255,255,255,0.03); }
[data-theme="dark"] .sb-cal-row-alt .sb-cal-cell.sb-today-col { background: rgba(59,130,246,0.2); }

/* Slot states */
.sb-slot-empty { width: 100%; background: none; border: 1px dashed transparent; color: var(--text-tertiary); font-size: 15px; cursor: pointer; padding: 1px 4px; border-radius: var(--radius-sm); font-family: inherit; line-height: 1; transition: background 0.12s, color 0.12s, border-color 0.12s; display: flex; align-items: center; justify-content: center; height: 26px; }
.sb-slot-empty:hover { background: var(--navy-light); color: var(--navy-dark); border-color: var(--navy-light); }

.sb-slot-booked { display: flex; align-items: center; gap: 3px; padding: 3px 4px; background: #dbeafe; border-radius: var(--radius-sm); min-height: 26px; position: relative; overflow: hidden; }
.sb-slot-booked:hover .sb-delete-btn { opacity: 1; }
.sb-slot-names { flex: 1; min-width: 0; }
.sb-booker-name { display: block; font-size: 11px; font-weight: 500; color: #1e3a8a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 72px; }
.sb-slot-meta { font-size: 10px; color: #60a5fa; white-space: nowrap; flex-shrink: 0; display: none; }
.sb-slot-blocked { background: #f3f4f6; height: 26px; border-radius: var(--radius-sm); }
.sb-slot-closed { width: 100%; height: 26px; border-radius: var(--radius-sm); background: repeating-linear-gradient(135deg, #e5e7eb 0px, #e5e7eb 4px, #ececee 4px, #ececee 8px); }

.sb-delete-btn { background: none; border: none; cursor: pointer; padding: 2px 3px; opacity: 0; border-radius: 4px; font-size: 10px; color: #9ca3af; transition: opacity 0.15s, color 0.12s, background 0.12s; flex-shrink: 0; line-height: 1; }
.sb-delete-btn:hover { color: #dc2626; background: #fee2e2; }

.sb-conflict-warning { background: #fef3c7; color: #92400e; border: 0.5px solid #fbbf24; border-radius: var(--radius-sm); padding: 8px 12px; font-size: 12px; line-height: 1.5; margin-top: 8px; }

/* Modal components */
.sb-modal-row { margin-bottom: 14px; }
.sb-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.sb-pill { padding: 5px 14px; border-radius: 20px; border: 0.5px solid var(--border-strong); background: var(--surface); font-size: 12px; font-weight: 500; cursor: pointer; font-family: inherit; color: var(--text-secondary); transition: all 0.12s; }
.sb-pill.active { background: var(--nav-navy); color: #fff; border-color: var(--nav-navy); }
.sb-pill:hover:not(.active) { background: var(--bg); }
.sb-double-status { font-size: 12px; color: #166534; background: #f0fdf4; border: 0.5px solid #bbf7d0; border-radius: var(--radius-sm); padding: 6px 10px; }
.sb-double-unrigged { color: #991b1b !important; background: #fef2f2 !important; border-color: #fca5a5 !important; }
[data-theme="dark"] .sb-double-status { color: #86efac; background: rgba(22,163,74,0.16); border-color: rgba(22,163,74,0.4); }
[data-theme="dark"] .sb-double-unrigged { color: #fca5a5 !important; background: rgba(239,68,68,0.16) !important; border-color: rgba(239,68,68,0.4) !important; }
.sb-dropdown { position: absolute; top: 100%; left: 0; right: 0; background: var(--surface); border: 0.5px solid var(--border-strong); border-radius: var(--radius-sm); box-shadow: 0 4px 12px rgba(0,0,0,0.1); z-index: 20; max-height: 180px; overflow-y: auto; margin-top: 2px; }
.sb-dropdown-item { display: flex; align-items: center; gap: 8px; padding: 8px 12px; cursor: pointer; font-size: 12px; color: var(--text); }
.sb-dropdown-item:hover { background: var(--bg); }
.sb-partner-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; background: var(--navy-light); color: var(--navy-dark); border-radius: 20px; font-size: 12px; font-weight: 500; border: 0.5px solid rgba(26,39,68,0.15); }
.sb-chip-x { background: none; border: none; cursor: pointer; padding: 0 0 0 2px; font-size: 11px; color: var(--navy-mid); line-height: 1; font-family: inherit; }
.sb-boat-selector { display: flex; flex-wrap: wrap; gap: 6px; padding-bottom: 12px; }

