/* ── BoneBuilders — My Submissions ───────────────────────────── */

.bb-mysub-wrap {
    max-width: 960px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
}

/* ── Empty state ── */
.bb-mysub-empty {
    padding: 40px 24px;
    text-align: center;
    color: #6b7280;
    border: 2px dashed #e5e7eb;
    border-radius: 8px;
}

/* ── Global notice ── */
.bb-mysub-wrap .bb-notice {
    padding: 12px 18px;
    border-radius: 4px;
    margin-bottom: 16px;
    font-size: 14px;
}
.bb-mysub-wrap .bb-notice.success { background:#ecfdf5; border-left:4px solid #10b981; color:#065f46; }
.bb-mysub-wrap .bb-notice.error   { background:#fef2f2; border-left:4px solid #ef4444; color:#991b1b; }

/* ── Week blocks ── */
.bb-week-block {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
    background: #fff;
}
.bb-week-current {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59,130,246,.12);
}

/* ── Week header (clickable) ── */
.bb-week-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 16px;
    background: #f8fafc;
    cursor: pointer;
    user-select: none;
    flex-wrap: wrap;
}
.bb-week-current .bb-week-header { background: #eff6ff; }
.bb-week-header:hover { background: #f1f5f9; }
.bb-week-current .bb-week-header:hover { background: #dbeafe; }

.bb-week-header-left  { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.bb-week-header-right { display:flex; align-items:center; gap:8px;  flex-wrap:wrap; }

.bb-week-label { font-weight:700; font-size:14px; color:#1e293b; }
.bb-week-stat  { font-size:13px; color:#64748b; }

.bb-week-badge {
    display: inline-block;
    border-radius: 20px;
    padding: 2px 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
}
.bb-badge-current  { background:#dbeafe; color:#1d4ed8; }

/* Pills */
.bb-pill {
    display: inline-block;
    border-radius: 20px;
    padding: 2px 9px;
    font-size: 11px;
    font-weight: 600;
}
.bb-pill-cancelled { background:#fee2e2; color:#991b1b; }
.bb-pill-lba       { background:#fef3c7; color:#92400e; }
.bb-pill-editable  { background:#dcfce7; color:#166534; }

.bb-week-chevron {
    font-size: 13px;
    color: #94a3b8;
    transition: transform .2s;
    display: inline-block;
}
.bb-week-block.bb-collapsed .bb-week-chevron { transform: rotate(-90deg); }

/* ── Week body (table) ── */
.bb-week-body { padding: 0; }

.bb-mysub-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.bb-mysub-table thead th {
    background: #f1f5f9;
    border-bottom: 2px solid #e2e8f0;
    padding: 9px 14px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #64748b;
}
.bb-mysub-table tbody td {
    padding: 10px 14px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
    color: #374151;
    transition: background .3s;
}
.bb-mysub-table tbody tr:last-child td { border-bottom: none; }

/* Row states */
.bb-sub-row.bb-row-cancelled td { background: #fff7f7; color: #9ca3af; }
.bb-sub-row.bb-row-lba       td { background: #fffbeb; color: #78350f; }

/* ── Attendance input ── */
.bb-edit-attendance {
    width: 72px;
    padding: 6px 8px;
    border: 1px solid #d1d5db;
    border-radius: 5px;
    font-size: 13px;
    text-align: center;
}
.bb-edit-attendance:focus { outline:none; border-color:#3b82f6; box-shadow:0 0 0 3px rgba(59,130,246,.12); }
.bb-edit-attendance:disabled { background:#f9fafb; opacity:.5; }

/* ── Flag checkboxes ── */
.bb-flag-wrap { display:flex; align-items:center; justify-content:center; }
.bb-flag-wrap input[type=checkbox] { width:16px; height:16px; cursor:pointer; }
.bb-edit-cancelled { accent-color:#ef4444; }
.bb-edit-lba       { accent-color:#f59e0b; }

/* ── Status pills ── */
.bb-status-pill {
    display: inline-block;
    border-radius: 20px;
    padding: 2px 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
}
.bb-status-pending   { background:#fef3c7; color:#92400e; }
.bb-status-approved  { background:#dcfce7; color:#166534; }
.bb-status-processed { background:#e0f2fe; color:#0369a1; }

/* ── Badges (read-only rows) ── */
.bb-badge-cancelled {
    display:inline-block; background:#fee2e2; color:#991b1b;
    border-radius:4px; padding:2px 8px; font-size:11px; font-weight:700;
    text-transform:uppercase; letter-spacing:.4px;
}
.bb-badge-lba {
    display:inline-block; background:#fef3c7; color:#92400e;
    border-radius:4px; padding:2px 8px; font-size:11px; font-weight:700;
    text-transform:uppercase; letter-spacing:.4px;
}
.bb-no { color:#d1d5db; }

/* ── Action buttons ── */
.bb-save-row, .bb-delete-row {
    border: none;
    border-radius: 4px;
    padding: 5px 11px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s;
    margin: 0 2px;
}
.bb-save-row   { background:#1a4b7a; color:#fff; }
.bb-save-row:hover   { background:#163f68; }
.bb-save-row:disabled { background:#94a3b8; cursor:not-allowed; }
.bb-delete-row { background:#fff; color:#dc2626; border:1px solid #fca5a5; }
.bb-delete-row:hover   { background:#fef2f2; }
.bb-delete-row:disabled { opacity:.5; cursor:not-allowed; }

/* ── Edit hint ── */
.bb-edit-hint {
    margin: 0;
    padding: 10px 14px;
    font-size: 12px;
    color: #059669;
    background: #f0fdf4;
    border-top: 1px solid #bbf7d0;
}

/* ── Week notes ── */
.bb-week-notes {
    padding: 10px 14px;
    font-size: 12px;
    color: #6b7280;
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
}

/* ── Empty week row ── */
.bb-empty-week {
    text-align: center;
    color: #9ca3af;
    padding: 20px !important;
    font-style: italic;
}

@media (max-width: 640px) {
    .bb-week-header { flex-direction: column; align-items: flex-start; }
    .bb-mysub-table { font-size: 12px; }
    .bb-mysub-table thead th,
    .bb-mysub-table tbody td { padding: 8px 8px; }
    .bb-edit-attendance { width: 60px; }
}
