.ffg-public {
    max-width: 900px;
    margin: 2em auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1d2327;
}
.ffg-public h1 { margin-top: 0; }
.ffg-public h2 {
    margin-top: 2em;
    border-bottom: 1px solid #dcdcde;
    padding-bottom: 6px;
}
.ffg-login-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40vh;
}
.ffg-login-form {
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 8px;
    padding: 2em;
    text-align: center;
    max-width: 360px;
    width: 100%;
}
.ffg-input {
    width: 100%;
    padding: 10px;
    margin: 12px 0;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    box-sizing: border-box;
}
.ffg-button, .ffg-link-button {
    display: inline-block;
    background: #2271b1;
    color: #fff !important;
    border: none;
    padding: 10px 18px;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
}
.ffg-button:hover, .ffg-link-button:hover { background: #135e96; }
.ffg-link-button { background: none; color: #b32d2e !important; padding: 0; font-size: 13px; }
.ffg-cancel { margin-left: 12px; color: #646970; text-decoration: underline; }
.ffg-error { color: #b32d2e; }
.ffg-success { color: #007017; background: #edfaef; padding: 8px 12px; border-radius: 4px; }
.ffg-warning { color: #8a6d00; background: #fcf6e0; padding: 8px 12px; border-radius: 4px; }

.ffg-nav {
    display: flex;
    gap: 16px;
    align-items: center;
    border-bottom: 1px solid #dcdcde;
    padding-bottom: 12px;
    margin-bottom: 1.5em;
    flex-wrap: wrap;
}
.ffg-nav a {
    text-decoration: none;
    color: #2271b1;
    font-weight: 500;
}
.ffg-nav a.current { color: #1d2327; border-bottom: 2px solid #2271b1; }
.ffg-nav-logout { margin-left: auto; }

.ffg-cards { display: flex; gap: 16px; margin: 20px 0; flex-wrap: wrap; }
.ffg-card {
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 6px;
    padding: 20px 28px;
    text-align: center;
    min-width: 140px;
}
.ffg-card-number { display: block; font-size: 32px; font-weight: 600; }
.ffg-card-label { display: block; margin-top: 4px; color: #646970; text-transform: uppercase; font-size: 11px; letter-spacing: 0.05em; }

.ffg-table { width: 100%; border-collapse: collapse; margin: 1em 0; }
.ffg-table th, .ffg-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #e0e0e0; }
.ffg-table th { background: #f6f7f7; }

.ffg-form label, .ffg-intervention-form label {
    display: block;
    margin: 14px 0 4px;
    font-weight: 500;
}
.ffg-form input[type=text], .ffg-form input[type=email], .ffg-form input[type=number],
.ffg-form input[type=date], .ffg-form select, .ffg-form textarea,
.ffg-intervention-form input[type=text], .ffg-intervention-form input[type=number],
.ffg-intervention-form input[type=date], .ffg-intervention-form select, .ffg-intervention-form textarea {
    width: 100%;
    max-width: 480px;
    padding: 8px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    box-sizing: border-box;
    font-weight: normal;
}
.ffg-checkbox, .ffg-inline { display: inline-block !important; margin-right: 16px; font-weight: normal !important; }

.ffg-signature-pads { display: flex; gap: 24px; flex-wrap: wrap; margin: 16px 0; }
.ffg-signature-block label { margin-top: 0; }
.ffg-signature-canvas { border: 1px solid #8c8f94; border-radius: 4px; background: #fff; touch-action: none; width: 100%; max-width: 400px; height: 130px; display: block; margin-bottom: 6px; }
