/* ── Pre-Hire Grid ─────────────────────────────────────────── */
:root {
    --sfvt-accent: #2271b1;
    --sfvt-accent-dark: #135e96;
}

.sfvt-prehire-wrap {}

.sfvt-prehire-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
    padding: 24px 0;
}

.sfvt-prehire-card {
    background: #fff;
    border: 1px solid #e4e6ea;
    border-radius: 12px;
    padding: 32px 24px 24px;
    cursor: pointer;
    transition: box-shadow 0.2s, transform 0.2s;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: 200px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.sfvt-prehire-card:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.13);
    transform: translateY(-3px);
    border-color: var(--sfvt-accent);
}

.sfvt-prehire-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--sfvt-accent) 12%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    flex-shrink: 0;
}

.sfvt-prehire-card-icon svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: var(--sfvt-accent);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

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

.sfvt-prehire-card-btn {
    background: var(--sfvt-accent);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 9px 22px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: background 0.15s, opacity 0.15s;
    width: 100%;
    max-width: 180px;
}

.sfvt-prehire-card-btn:hover {
    background: var(--sfvt-accent-dark);
}

/* ── Back button ───────────────────────────────────────────── */
.sfvt-prehire-back {
    background: none;
    border: 1px solid var(--sfvt-accent);
    color: var(--sfvt-accent);
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    padding: 7px 16px;
    margin-bottom: 24px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.15s, color 0.15s;
}

.sfvt-prehire-back:hover {
    background: var(--sfvt-accent);
    color: #fff;
}

/* ── 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;
}
