/* ── Volunteer Sign-Up Sheet ───────────────────────────── */

.azure-volunteer-sheet {
    max-width: 700px;
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.azure-vs-header {
    margin-bottom: 20px;
}

.azure-vs-header h3 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 6px;
    color: #1d2327;
}

.azure-vs-desc {
    color: #646970;
    margin: 0 0 10px;
    font-size: 15px;
}

.azure-vs-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 14px;
    color: #50575e;
}

.azure-vs-meta .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    line-height: 16px;
    vertical-align: middle;
    margin-right: 4px;
    color: #0078d4;
}

/* ── Activities List ──────────────────────────────────── */

.azure-vs-activities {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.azure-vs-activity {
    border: 1px solid #e2e4e7;
    border-radius: 8px;
    padding: 14px 16px;
    background: #fff;
    transition: border-color 0.2s;
}

.azure-vs-activity:hover {
    border-color: #0078d4;
}

.azure-vs-activity.full {
    background: #f8f9fa;
    border-color: #c3c4c7;
}

.azure-vs-activity.signed-up {
    border-left: 4px solid #28a745;
}

.azure-vs-act-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.azure-vs-act-info strong {
    font-size: 16px;
    display: block;
    color: #1d2327;
}

.azure-vs-act-desc {
    display: block;
    font-size: 13px;
    color: #646970;
    margin-top: 2px;
}

.azure-vs-act-spots {
    text-align: center;
    flex-shrink: 0;
    min-width: 60px;
}

.azure-vs-spot-count {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #1d2327;
    line-height: 1.2;
}

.azure-vs-spot-label {
    font-size: 11px;
    text-transform: uppercase;
    color: #646970;
    letter-spacing: 0.5px;
}

/* ── Volunteer chips ──────────────────────────────────── */

.azure-vs-act-volunteers {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 10px 0 8px;
}

.azure-vs-volunteer {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    background: #e8f0fe;
    border-radius: 12px;
    font-size: 13px;
    color: #1a4d8f;
}

.azure-vs-volunteer.is-me {
    background: #d4edda;
    color: #155724;
    font-weight: 600;
}

.azure-vs-withdraw {
    background: none;
    border: none;
    font-size: 14px;
    cursor: pointer;
    color: #721c24;
    padding: 0 2px;
    line-height: 1;
    font-weight: 700;
}

/* ── Signup checkbox ──────────────────────────────────── */

.azure-vs-signup-check {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    cursor: pointer;
    margin-top: 8px;
    color: #0078d4;
    font-weight: 500;
}

.azure-vs-signup-check input[type="checkbox"] {
    margin: 0;
    width: 16px;
    height: 16px;
}

.azure-vs-full-badge {
    display: inline-block;
    margin-top: 8px;
    padding: 2px 10px;
    background: #f0f0f1;
    color: #646970;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
}

/* ── Save button ──────────────────────────────────────── */

.azure-vs-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
}

.azure-vs-save-btn {
    padding: 10px 28px !important;
    font-size: 15px !important;
    font-weight: 600;
    background: #0078d4 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.azure-vs-save-btn:hover {
    background: #005a9e !important;
}

.azure-vs-message {
    font-size: 14px;
    font-weight: 600;
}

.azure-vs-message.success {
    color: #28a745;
}

.azure-vs-message.error {
    color: #dc3545;
}

/* ── Login prompt ─────────────────────────────────────── */

.azure-vs-login-prompt {
    padding: 14px 18px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    margin-top: 16px;
    font-size: 14px;
    color: #856404;
}

.azure-vs-login-prompt a {
    color: #856404;
    font-weight: 600;
    text-decoration: underline;
}

.azure-vs-closed {
    padding: 16px;
    background: #f0f0f1;
    border: 1px solid #c3c4c7;
    border-radius: 6px;
    font-size: 15px;
    color: #50575e;
    text-align: center;
    font-weight: 600;
}

/* ── Responsive ───────────────────────────────────────── */

@media (max-width: 480px) {
    .azure-vs-act-header {
        flex-direction: column;
    }
    .azure-vs-act-spots {
        text-align: left;
    }
    .azure-vs-meta {
        flex-direction: column;
        gap: 6px;
    }
}

.azure-vs-table-wrap {
    overflow-x: auto;
    margin: 12px 0;
}

.azure-vs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.azure-vs-table th,
.azure-vs-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #e2e4e7;
    vertical-align: top;
}

.azure-vs-table th {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #646970;
}

.azure-vs-act-action {
    white-space: nowrap;
    text-align: right;
}

.azure-vs-signed-badge {
    color: #1e7e34;
    font-weight: 600;
    font-size: 13px;
}

.azure-vs-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.azure-vs-modal-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px 24px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.azure-vs-modal-card h3 {
    margin: 0 0 10px;
}

.azure-vs-modal-time {
    color: #50575e;
}

.azure-vs-modal-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 16px;
}

.pta-event-volunteer-signups {
    margin: 8px 0 24px;
}

.pta-event-volunteer-signups > .pta-event-section {
    margin-bottom: 12px;
}

.pta-volunteered-section {
    margin: 0 0 28px;
}

.pta-volunteered-section h2 {
    margin: 0 0 10px;
    font-size: 1.35em;
}

.pta-volunteered-section h3 {
    margin: 18px 0 8px;
    font-size: 1.05em;
}

.pta-volunteered-subscribe {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 8px;
}

.pta-volunteered-note,
.pta-volunteered-empty {
    color: #50575e;
    margin: 0 0 12px;
}

.pta-vol-table {
    overflow-x: auto;
    margin: 0 0 8px;
}

.pta-vol-line {
    display: grid;
    grid-template-columns: 28px minmax(12rem, 2fr) 9.2rem 10.2rem 3.4rem auto;
    align-items: center;
    gap: 8px;
    min-width: 720px;
    padding: 6px 0;
    border-bottom: 1px solid #e2e4e7;
    white-space: nowrap;
}

.pta-vol-head {
    color: #646970;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.pta-vol-name {
    font-weight: 600;
    white-space: normal;
    line-height: 1.35;
}

.pta-vol-event {
    font-weight: 700;
}

.pta-vol-sep {
    color: #646970;
    font-weight: 400;
}

.pta-vol-date,
.pta-vol-time {
    color: #1d2327;
}

.pta-vol-slots {
    display: inline-block;
    justify-self: start;
    padding: 0 6px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
}

.pta-vol-slots.is-empty {
    color: #9b1c1c;
    background: #fde8e8;
}

.pta-vol-slots.is-partial {
    color: #8a5a00;
    background: #ffe8a3;
}

.pta-vol-slots.is-full {
    color: #0f6b32;
    background: #d8f3e2;
}

.pta-vol-line .button {
    justify-self: end;
    margin: 0;
}

.pta-vol-bulk {
    position: fixed;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    z-index: 100000;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px 10px 16px;
    background: #1d2327;
    color: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.pta-vol-bulk[hidden] {
    display: none;
}

.pta-volunteered-group {
    border: 1px solid #e2e4e7;
    border-radius: 6px;
    margin: 0 0 8px;
    padding: 0 12px;
}

.pta-volunteered-group summary {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    padding: 10px 0;
    cursor: pointer;
    list-style: none;
}

.pta-volunteered-group summary::-webkit-details-marker {
    display: none;
}

.pta-volunteered-group summary:focus-visible {
    outline: 2px solid #2271b1;
    outline-offset: 2px;
    border-radius: 4px;
}

.pta-vol-group-title {
    flex: 1 1 auto;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    color: #1d2327;
}

.pta-vol-group-count {
    flex: 0 0 auto;
    color: #646970;
    font-size: 0.85rem;
    white-space: nowrap;
}

.pta-vol-group-toggle {
    position: relative;
    order: -1;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border: 2px solid #1d2327;
    border-radius: 50%;
    background: #fff;
    transition: background 0.15s ease;
}

.pta-vol-group-toggle::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    border-right: 3px solid #1d2327;
    border-bottom: 3px solid #1d2327;
    transform: translate(-50%, -70%) rotate(45deg);
    transition: transform 0.15s ease;
}

.pta-volunteered-group[open] > summary .pta-vol-group-toggle::before {
    transform: translate(-50%, -30%) rotate(-135deg);
}

.pta-volunteered-group summary:hover .pta-vol-group-toggle {
    background: #f0f0f1;
}

.pta-volunteered-group[open] > summary {
    border-bottom: 1px solid #e2e4e7;
    margin-bottom: 4px;
}

.pta-volunteered-group .pta-volunteered-list {
    margin-top: 0;
}
