/* ── Pre-Hire Grid ─────────────────────────────────────────── */
:root {
    --sfvt-accent: #c48b70;
    --sfvt-accent-dark: #a06e55;
}

.sfvt-prehire-wrap { max-width: 1200px; margin: 0 auto; }

/* Sections */
.sfvt-prehire-section { margin-top: 28px; }
.sfvt-prehire-section-title {
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    color: #1d2327;
    margin: 0 0 6px;
}
.sfvt-prehire-section-desc {
    text-align: center;
    color: #4a56e2;
    font-size: 13px;
    margin: 0 0 14px;
}

/* Header hero */
.sfvt-prehire-header {
    position: relative;
    min-height: 220px;
    background-color: #333;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: #fff;
    text-align: center;
}
.sfvt-prehire-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.15);
    pointer-events: none;
}
.sfvt-prehire-header:not(.has-image)::before { background: transparent; }
.sfvt-prehire-header-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.sfvt-prehire-logo { max-width: 160px; height: auto; }
.sfvt-prehire-header-title {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0,0,0,0.25);
    color: #fff;
}

/* Cards grid */
.sfvt-prehire-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.sfvt-prehire-card {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 6px;
    padding: 26px 20px;
    cursor: pointer;
    transition: box-shadow 0.15s, transform 0.15s;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 150px;
}

.sfvt-prehire-card:hover {
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.sfvt-prehire-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #ececec;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    flex-shrink: 0;
    color: var(--sfvt-accent);
    font-size: 22px;
    line-height: 1;
}

.sfvt-prehire-card-icon i.bi { color: var(--sfvt-accent); font-size: 22px; }

.sfvt-prehire-card-title {
    font-size: 15px;
    font-weight: 600;
    color: #1d2327;
    margin: 0;
    line-height: 1.4;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sfvt-prehire-card-btn {
    background: #000;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 10px 22px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: background 0.15s;
    width: 100%;
    max-width: 180px;
}

.sfvt-prehire-card-btn:hover { background: #333; }

/* Form view — white background around forms */
.sfvt-prehire-form-view {
    background: #fff;
    padding: 24px;
    border-radius: 4px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
    margin: 16px 0;
}
.sfvt-prehire-form-panel { background: #fff; }

/* ── Back button ───────────────────────────────────────────── */
.sfvt-prehire-back {
    background: #fff;
    border: 1px solid #d1d5db;
    color: #1d2327;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    padding: 8px 16px;
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.15s, color 0.15s;
}

.sfvt-prehire-back:hover {
    background: #f5f5f5;
    border-color: #999;
}

/* ── Submissions table ─────────────────────────────────────── */
.sfvt-ph-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.sfvt-ph-search-input {
    flex: 1;
    min-width: 200px;
    max-width: 360px;
    padding: 8px 12px;
    border: 1px solid #c3c4c7;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.4;
    outline: none;
    transition: border-color 0.15s;
}

.sfvt-ph-search-input:focus {
    border-color: var(--sfvt-accent);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--sfvt-accent) 20%, transparent);
}

.sfvt-ph-total-label {
    color: #646970;
    font-size: 13px;
    margin-left: auto;
    white-space: nowrap;
}

.sfvt-ph-loading {
    text-align: center;
    padding: 24px !important;
    color: #646970;
    font-style: italic;
}

.sfvt-ph-actions {
    display: flex;
    gap: 4px;
    flex-wrap: nowrap;
    align-items: center;
    white-space: nowrap;
}

.sfvt-ph-actions .button {
    padding: 3px 8px !important;
    font-size: 11px !important;
    line-height: 1.6 !important;
    white-space: nowrap;
}

.sfvt-ph-pagination {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-top: 16px;
    align-items: center;
}

.sfvt-prehire-submissions-wrap table {
    width: 100%;
    border-collapse: collapse;
}

.sfvt-prehire-submissions-wrap th,
.sfvt-prehire-submissions-wrap td {
    padding: 10px 12px;
    border-bottom: 1px solid #e0e0e0;
    text-align: left;
}

.sfvt-prehire-submissions-wrap td:last-child,
.sfvt-prehire-submissions-wrap th:last-child {
    white-space: nowrap;
    width: 1%;
}

.sfvt-prehire-submissions-wrap th {
    background: #f6f7f7;
    font-weight: 600;
}

.sfvt-prehire-entry-detail {
    display: none;
    background: #f9f9f9;
    padding: 12px;
    border-top: 1px solid #e0e0e0;
}

.sfvt-prehire-entry-detail.open {
    display: block;
}
