/* =============================================================================
   Voxel Suggest Edits — Stylesheet
   ============================================================================= */

/* ── Modal base ──────────────────────────────────────────────────────────────── */

.vse-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
}

.vse-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.vse-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 92%;
    max-width: 600px;
    max-height: 88vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.20);
    display: flex;
    flex-direction: column;
}

body.vse-modal-open {
    overflow: hidden;
}

/* ── Modal header ────────────────────────────────────────────────────────────── */

.vse-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px 14px;
    border-bottom: 1px solid #e8edf2;
    flex-shrink: 0;
}

.vse-modal-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1a202c;
}

.vse-modal-close {
    background: none;
    border: none;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: #718096;
    padding: 0 4px;
    transition: color 0.15s;
}

.vse-modal-close:hover {
    color: #1a202c;
}

/* ── Modal body ──────────────────────────────────────────────────────────────── */

.vse-modal-body {
    padding: 18px 20px;
    overflow-y: auto;
    flex: 1;
}

/* ── Modal footer ────────────────────────────────────────────────────────────── */

.vse-modal-footer {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding: 14px 20px 18px;
    border-top: 1px solid #e8edf2;
    flex-shrink: 0;
}

.vse-modal-cancel {
    background: none;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    padding: 8px 18px;
    font-size: 14px;
    cursor: pointer;
    color: #4a5568;
    transition: background 0.15s;
}

.vse-modal-cancel:hover {
    background: #f7fafc;
}

.vse-modal-submit {
    background: #3b82f6;
    border: none;
    border-radius: 6px;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    color: #fff;
    transition: background 0.15s, opacity 0.15s;
}

.vse-modal-submit:hover {
    background: #2563eb;
}

.vse-modal-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ── Permanently closed ──────────────────────────────────────────────────────── */

.vse-perm-closed-wrap {
    padding: 12px;
    background: #fff5f5;
    border: 1px solid #fed7d7;
    border-radius: 7px;
    margin-bottom: 18px;
}

/* ── Guest info ──────────────────────────────────────────────────────────────── */

.vse-guest-info {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 7px;
    padding: 14px 16px;
    margin-bottom: 18px;
}

/* ── Form rows ───────────────────────────────────────────────────────────────── */

.vse-form-row {
    margin-bottom: 12px;
}

.vse-form-row:last-child {
    margin-bottom: 0;
}

.vse-form-row label,
.vse-field-current label,
.vse-field-suggested label,
.vse-comment-wrap label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #718096;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.vse-input,
.vse-suggestion-input {
    width: 100%;
    padding: 8px 11px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-size: 14px;
    color: #2d3748;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.15s;
}

.vse-input:focus,
.vse-suggestion-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

textarea.vse-input,
textarea.vse-suggestion-input {
    resize: vertical;
    min-height: 80px;
}

select.vse-suggestion-input {
    appearance: auto;
}

/* ── Field items ─────────────────────────────────────────────────────────────── */

.vse-fields-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.vse-field-item {
    border: 1px solid #e8edf2;
    border-radius: 8px;
    padding: 14px 16px;
    background: #fafbfc;
}

.vse-field-header {
    margin-bottom: 10px;
}

.vse-field-header strong {
    font-size: 14px;
    font-weight: 600;
    color: #1a202c;
}

.vse-current-value {
    font-size: 13px;
    color: #4a5568;
    margin-bottom: 12px;
    padding: 7px 10px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    min-height: 34px;
}

.vse-no-value {
    color: #a0aec0;
    font-style: italic;
}

.vse-html-value {
    font-size: 13px;
    line-height: 1.5;
}

.vse-wh-current {
    font-size: 13px;
    line-height: 1.7;
    color: #4a5568;
}

.vse-wh-suggest-btn {
    background: #f0f4ff;
    border: 1px solid #c3d0f5;
    border-radius: 6px;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 500;
    color: #3b5bdb;
    cursor: pointer;
    transition: background 0.15s;
}

.vse-wh-suggest-btn:hover {
    background: #e0e8ff;
}

.vse-wh-summary {
    margin-top: 7px;
    font-size: 12px;
    color: #48bb78;
    font-weight: 500;
}

/* ── Checkbox labels ─────────────────────────────────────────────────────────── */

.vse-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: #4a5568;
}

.vse-checkbox-label input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
    width: 15px;
    height: 15px;
    cursor: pointer;
}

.vse-field-flag {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #e2e8f0;
}

/* ── Multicheck ──────────────────────────────────────────────────────────────── */

.vse-multicheck__scroll {
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    max-height: 180px;
    overflow-y: auto;
    background: #fff;
}

.vse-multicheck__item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 12px;
    cursor: pointer;
    transition: background 0.12s;
    font-size: 13px;
    color: #2d3748;
    user-select: none;
}

.vse-multicheck__item:hover {
    background: #f7fafc;
}

.vse-multicheck__circle {
    width: 16px;
    height: 16px;
    border: 2px solid #cbd5e0;
    border-radius: 4px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.12s, background 0.12s;
}

.vse-multicheck__item--checked .vse-multicheck__circle {
    background: #3b82f6;
    border-color: #3b82f6;
}

.vse-multicheck__checkmark::after {
    content: '';
    display: block;
    width: 4px;
    height: 8px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg) translate(-1px, -1px);
    opacity: 0;
}

.vse-multicheck__item--checked .vse-multicheck__checkmark::after {
    opacity: 1;
}

/* ── Photo upload ────────────────────────────────────────────────────────────── */

.vse-proof-photos {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #e8edf2;
}

.vse-proof-photos > label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #718096;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.vse-photo-area {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.vse-upload-btn {
    align-self: flex-start;
    background: #f7fafc;
    border: 1px dashed #a0aec0;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 13px;
    cursor: pointer;
    color: #4a5568;
    transition: border-color 0.15s, background 0.15s;
}

.vse-upload-btn:hover {
    border-color: #3b82f6;
    background: #ebf8ff;
    color: #3b82f6;
}

.vse-photo-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.vse-thumb {
    position: relative;
    width: 68px;
    height: 68px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.vse-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.vse-thumb-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 18px;
    height: 18px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

/* ── Comment wrap ────────────────────────────────────────────────────────────── */

.vse-comment-wrap {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e8edf2;
}

/* ── Messages ────────────────────────────────────────────────────────────────── */

.vse-messages,
.vse-list-messages {
    margin-top: 10px;
}

.vse-msg {
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
}

.vse-msg--success {
    background: #f0fff4;
    color: #276749;
    border: 1px solid #9ae6b4;
}

.vse-msg--error {
    background: #fff5f5;
    color: #c53030;
    border: 1px solid #fc8181;
}

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

.vse-login-prompt {
    text-align: center;
    padding: 24px 16px;
}

.vse-login-link {
    display: inline-block;
    margin-top: 12px;
    background: #3b82f6;
    color: #fff;
    padding: 9px 22px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.vse-login-link:hover {
    background: #2563eb;
    color: #fff;
    text-decoration: none;
}

/* ── Suggest button ──────────────────────────────────────────────────────────── */

.vse-suggest-btn {
    display: inline-flex;
    gap: 7px;
    background: none;
    border: 1px solid #3b82f6;
    border-radius: 6px;
    padding: 9px 18px;
    font-size: 14px;
    font-weight: 500;
    color: #3b82f6;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.vse-suggest-btn:hover {
    background: #3b82f6;
    color: #fff;
}

/* ── Required marker ─────────────────────────────────────────────────────────── */

.vse-required {
    color: #e53e3e;
}

/* ── Work Hours popup ────────────────────────────────────────────────────────── */

.vse-wh-popup {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: none;
}

.vse-wh-popup-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.vse-wh-popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 88%;
    max-width: 540px;
    max-height: 80vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.18);
    display: flex;
    flex-direction: column;
}

.vse-wh-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px 12px;
    border-bottom: 1px solid #e8edf2;
}

.vse-wh-popup-header h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #1a202c;
}

.vse-wh-popup-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #718096;
    padding: 0 4px;
}

.vse-wh-popup-body {
    padding: 16px 20px;
    overflow-y: auto;
    flex: 1;
}

.vse-wh-popup-footer {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding: 12px 20px 16px;
    border-top: 1px solid #e8edf2;
}

.vse-wh-popup-cancel {
    background: none;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    padding: 7px 16px;
    font-size: 13px;
    cursor: pointer;
    color: #4a5568;
}

.vse-wh-popup-save {
    background: #48bb78;
    border: none;
    border-radius: 6px;
    padding: 7px 18px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    color: #fff;
    transition: background 0.15s;
}

.vse-wh-popup-save:hover {
    background: #38a169;
}

/* ── Work Hours editor ───────────────────────────────────────────────────────── */

.vse-wh-groups {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 12px;
}

.vse-wh-group {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 14px;
    background: #fafbfc;
}

.vse-wh-group-header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.vse-wh-days {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    flex: 1;
}

.vse-wh-day-btn {
    padding: 4px 9px;
    border: 1px solid #cbd5e0;
    border-radius: 5px;
    background: #fff;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    color: #4a5568;
    transition: all 0.12s;
}

.vse-wh-day-btn.active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: #fff;
}

.vse-wh-status {
    padding: 5px 8px;
    border: 1px solid #cbd5e0;
    border-radius: 5px;
    font-size: 12px;
    background: #fff;
    color: #2d3748;
    min-width: 130px;
}

.vse-wh-remove-group {
    background: none;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    padding: 4px 8px;
    font-size: 14px;
    cursor: pointer;
    color: #a0aec0;
    transition: color 0.12s, border-color 0.12s;
    flex-shrink: 0;
}

.vse-wh-remove-group:hover {
    color: #e53e3e;
    border-color: #fc8181;
}

.vse-wh-time-slots {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 8px;
}

.vse-wh-time-slot {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #4a5568;
}

.vse-wh-time-from,
.vse-wh-time-to {
    padding: 5px 8px;
    border: 1px solid #cbd5e0;
    border-radius: 5px;
    font-size: 13px;
    background: #fff;
    width: 110px;
}

.vse-wh-remove-time {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: #a0aec0;
    padding: 0 4px;
    transition: color 0.12s;
}

.vse-wh-remove-time:hover {
    color: #e53e3e;
}

.vse-wh-add-time {
    background: none;
    border: none;
    font-size: 12px;
    cursor: pointer;
    color: #3b82f6;
    padding: 0;
    font-weight: 500;
}

.vse-wh-add-group {
    background: none;
    border: 1px dashed #a0aec0;
    border-radius: 6px;
    padding: 7px 14px;
    font-size: 13px;
    cursor: pointer;
    color: #4a5568;
    width: 100%;
    text-align: center;
    transition: border-color 0.15s;
}

.vse-wh-add-group:hover {
    border-color: #3b82f6;
    color: #3b82f6;
}

/* ── Suggestions list widget ─────────────────────────────────────────────────── */

.vse-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.vse-list-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1a202c;
}

.vse-filter-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.vse-filter-tab {
    background: none;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 5px 13px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    color: #4a5568;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.12s;
}

.vse-filter-tab.active,
.vse-filter-tab:hover {
    background: #3b82f6;
    border-color: #3b82f6;
    color: #fff;
}

.vse-filter-count {
    background: rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    padding: 1px 6px;
    font-size: 11px;
}

.vse-filter-tab:not(.active) .vse-filter-count {
    background: #edf2f7;
    color: #718096;
}

/* ── Suggestion cards ────────────────────────────────────────────────────────── */

.vse-suggestions-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.vse-suggestion-item {
    border: 1px solid #e8edf2;
    border-radius: 8px;
    margin-bottom: 12px;
    background: #fff;
    overflow: hidden;
}

.vse-suggestion-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 12px 16px 10px;
    background: #f8fafc;
    border-bottom: 1px solid #e8edf2;
    gap: 10px;
}

.vse-suggestion-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.vse-field-name {
    font-size: 14px;
    font-weight: 600;
    color: #1a202c;
}

.vse-suggester {
    font-size: 12px;
    color: #718096;
}

.vse-guest {
    font-style: italic;
    color: #a0aec0;
}

.vse-suggestion-date {
    font-size: 12px;
    color: #a0aec0;
}

/* ── Status badges ───────────────────────────────────────────────────────────── */

.vse-status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}

.vse-status-badge--pending {
    background: #fffbeb;
    color: #b7791f;
    border: 1px solid #fbd38d;
}

.vse-status-badge--accepted {
    background: #f0fff4;
    color: #276749;
    border: 1px solid #9ae6b4;
}

.vse-status-badge--rejected {
    background: #fff5f5;
    color: #c53030;
    border: 1px solid #fc8181;
}

/* Admin page also uses these */
.vse-status-accepted { background: #f0fff4; color: #276749; border: 1px solid #9ae6b4; padding: 3px 8px; border-radius: 10px; font-size: 12px; }
.vse-status-rejected { background: #fff5f5; color: #c53030; border: 1px solid #fc8181; padding: 3px 8px; border-radius: 10px; font-size: 12px; }
.vse-status-pending  { background: #fffbeb; color: #b7791f; border: 1px solid #fbd38d; padding: 3px 8px; border-radius: 10px; font-size: 12px; }

/* ── Suggestion body ─────────────────────────────────────────────────────────── */

.vse-suggestion-body {
    padding: 14px 16px;
}

.vse-value-comparison {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex-wrap: wrap;
}

.vse-current-box,
.vse-suggested-box {
    flex: 1;
    min-width: 120px;
}

.vse-current-box label,
.vse-suggested-box label {
    font-size: 11px;
    font-weight: 600;
    color: #a0aec0;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: block;
    margin-bottom: 5px;
}

.vse-value {
    font-size: 13px;
    color: #2d3748;
    padding: 8px 10px;
    background: #f7fafc;
    border-radius: 5px;
    border: 1px solid #e2e8f0;
    min-height: 36px;
    word-break: break-word;
}

.vse-suggested-box .vse-value {
    background: #f0fff4;
    border-color: #c6f6d5;
}

.vse-arrow {
    color: #a0aec0;
    font-size: 16px;
    padding-top: 24px;
    flex-shrink: 0;
}

.vse-empty {
    color: #a0aec0;
}

.vse-flagged-only {
    color: #d97706;
    font-size: 13px;
}

.vse-flagged-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 7px;
    background: #fff3cd;
    color: #856404;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}

.vse-perm-closed-notice {
    color: #c53030;
    font-size: 13px;
    font-weight: 500;
}

/* ── Proof images ────────────────────────────────────────────────────────────── */

.vse-proof-images {
    margin-top: 12px;
}

.vse-proof-images label {
    font-size: 11px;
    font-weight: 600;
    color: #a0aec0;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: block;
    margin-bottom: 7px;
}

.vse-images-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.vse-images-grid a {
    display: block;
}

.vse-images-grid img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 5px;
    border: 1px solid #e2e8f0;
    display: block;
    transition: opacity 0.12s;
}

.vse-images-grid img:hover {
    opacity: 0.85;
}

/* ── Comment display ─────────────────────────────────────────────────────────── */

.vse-comment-display {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #e2e8f0;
}

.vse-comment-display label {
    font-size: 11px;
    font-weight: 600;
    color: #a0aec0;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: block;
    margin-bottom: 5px;
}

.vse-comment-text {
    font-size: 13px;
    color: #4a5568;
    font-style: italic;
}

/* ── Action buttons ──────────────────────────────────────────────────────────── */

.vse-suggestion-actions {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    background: #f8fafc;
    border-top: 1px solid #e8edf2;
}

.vse-accept-btn {
    background: #48bb78;
    border: none;
    border-radius: 6px;
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    color: #fff;
    transition: background 0.15s, opacity 0.15s;
}

.vse-accept-btn:hover {
    background: #38a169;
}

.vse-accept-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.vse-reject-btn {
    background: #fc8181;
    border: none;
    border-radius: 6px;
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    color: #fff;
    transition: background 0.15s, opacity 0.15s;
}

.vse-reject-btn:hover {
    background: #f56565;
}

.vse-reject-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ── No suggestions ──────────────────────────────────────────────────────────── */

.vse-no-suggestions {
    color: #a0aec0;
    font-size: 14px;
    font-style: italic;
    padding: 12px 0;
}

/* ── Admin page ──────────────────────────────────────────────────────────────── */

.vse-admin .vse-status-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}
