/* ============================================================
   Staff Care & Performance — Public (Staff Portal) Styles
   ============================================================ */

.sf-portal {
    max-width: 960px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #2c2c2c;
}

.sf-portal * { box-sizing: border-box; }

.sf-login-needed {
    background: #f7f7f7;
    border: 1px solid #e0e0e0;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
}

/* Nav */
.sf-portal-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    border-bottom: 2px solid #e5e5e5;
    margin-bottom: 32px;
}
.sf-portal-nav .sf-tab {
    padding: 12px 18px;
    text-decoration: none;
    color: #555;
    font-weight: 500;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.15s;
}
.sf-portal-nav .sf-tab:hover { color: #2E5984; }
.sf-portal-nav .sf-tab-active {
    color: #2E5984;
    border-bottom-color: #2E5984;
}

/* Hero */
.sf-hero { margin-bottom: 32px; }
.sf-hero h2 { font-size: 28px; font-weight: 600; margin: 0 0 4px; color: #1a1a1a; }
.sf-hero-sub { color: #666; margin: 0 0 16px; font-size: 15px; }

.sf-verse {
    border-left: 4px solid #2E5984;
    background: #f7f9fb;
    padding: 14px 20px;
    margin: 0;
    font-style: italic;
    color: #444;
    font-size: 14px;
    border-radius: 0 4px 4px 0;
}

/* Cards */
.sf-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin: 20px 0;
}
.sf-card {
    background: #fff;
    border: 1px solid #e3e3e3;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.sf-card h3 {
    margin: 0 0 10px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #666;
    font-weight: 600;
}
.sf-big {
    font-size: 26px;
    font-weight: 600;
    color: #2E5984;
    margin: 8px 0;
    line-height: 1.1;
}
.sf-muted { color: #777; font-size: 13px; margin: 4px 0; }

/* Timeline */
.sf-timeline-v {
    list-style: none;
    padding: 0;
    margin: 16px 0 32px;
}
.sf-timeline-v li {
    padding: 12px 16px;
    border-left: 3px solid #ccc;
    margin-bottom: 8px;
    background: #fafafa;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.sf-timeline-v li.sf-done { border-left-color: #2e7d32; background: #f0f8f2; }

.sf-skill-list { list-style: none; padding: 0; }
.sf-skill-list li {
    background: #fff;
    border: 1px solid #e3e3e3;
    padding: 14px 18px;
    margin-bottom: 8px;
    border-radius: 6px;
}

/* Badges */
.sf-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.sf-badge-signed,
.sf-badge-complete,
.sf-badge-active { background: #e7f5eb; color: #1e6b2f; }
.sf-badge-draft,
.sf-badge-in_review,
.sf-badge-in_progress { background: #fff4de; color: #8a5700; }

/* Forms */
.sf-form { margin: 20px 0; }
.sf-form-locked input, .sf-form-locked textarea, .sf-form-locked select { background: #f5f5f5; }

.sf-field { margin-bottom: 16px; }
.sf-field label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}
.sf-field input[type="text"],
.sf-field input[type="date"],
.sf-field textarea,
.sf-field select {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
}
.sf-field textarea { resize: vertical; }
.sf-field input:focus,
.sf-field textarea:focus,
.sf-field select:focus {
    outline: none;
    border-color: #2E5984;
    box-shadow: 0 0 0 2px rgba(46,89,132,0.15);
}
.sf-field-highlight {
    background: #fff9e6;
    border: 1px solid #f0d98c;
    padding: 14px;
    border-radius: 6px;
}
.sf-field-row {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 12px;
    margin-bottom: 12px;
    align-items: end;
}
.sf-field-narrow label, .sf-field-wide label { font-size: 13px; }

/* Buttons */
.sf-btn {
    display: inline-block;
    background: #f7f7f7;
    border: 1px solid #ccc;
    color: #333;
    padding: 9px 18px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-family: inherit;
    text-decoration: none;
    transition: all 0.15s;
}
.sf-btn:hover { background: #eee; }
.sf-btn-primary {
    background: #2E5984;
    border-color: #2E5984;
    color: #fff;
}
.sf-btn-primary:hover { background: #244a70; color: #fff; }
.sf-btn-small { padding: 5px 12px; font-size: 13px; }

/* Tables */
.sf-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    background: #fff;
    border: 1px solid #e3e3e3;
    border-radius: 6px;
    overflow: hidden;
}
.sf-table thead th {
    background: #f7f9fb;
    padding: 10px 12px;
    text-align: left;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #555;
    font-weight: 600;
    border-bottom: 1px solid #e3e3e3;
}
.sf-table tbody td {
    padding: 10px 12px;
    border-top: 1px solid #f0f0f0;
    vertical-align: top;
    font-size: 14px;
}

/* Notices */
.sf-notice {
    padding: 12px 16px;
    border-radius: 4px;
    margin: 10px 0 20px;
    font-size: 14px;
}
.sf-notice-success { background: #e7f5eb; color: #1e6b2f; border-left: 3px solid #2e7d32; }
.sf-notice-error   { background: #fdeaea; color: #a12828; border-left: 3px solid #a12828; }
.sf-notice-info    { background: #eef3f8; color: #2E5984; border-left: 3px solid #2E5984; }

/* Summary block */
.sf-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
}
.sf-summary > div { display: flex; flex-direction: column; }
.sf-summary strong {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #777;
    margin-bottom: 4px;
}
.sf-score {
    font-size: 22px;
    font-weight: 600;
    color: #2E5984;
}

.sf-h3-space { margin-top: 40px; }

/* Log list */
.sf-log-list { list-style: none; padding: 0; }
.sf-log-list li {
    padding: 10px 14px;
    border-bottom: 1px solid #eee;
}
.sf-log-list li a { color: #2E5984; text-decoration: none; font-weight: 600; }
.sf-log-list li a:hover { text-decoration: underline; }

@media (max-width: 640px) {
    .sf-portal-nav { overflow-x: auto; flex-wrap: nowrap; }
    .sf-portal-nav .sf-tab { white-space: nowrap; }
    .sf-field-row { grid-template-columns: 1fr; }
}
