/**
 * SINDIFARMA Serviços — Forms CSS
 *
 * @version 1.0.0
 */

.sindifarma-serv-form-wrap {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    width: 100%;
}

/* Alertas */
.ss-alert {
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 14px;
}

.ss-alert-success {
    background: #ECFDF5;
    border: 1px solid #059669;
    color: #065F46;
}

.ss-alert-error {
    background: #FEF2F2;
    border: 1px solid #EF4444;
    color: #991B1B;
}

/* Form */
.sindifarma-serv-form {
    background: #fff;
}

/* Fieldsets / grupos */
.ss-group {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
}

.ss-group legend {
    font-size: 15px;
    font-weight: 700;
    color: #0F1D2F;
    padding: 0 8px;
    margin-left: -8px;
}

.ss-help {
    font-size: 12px;
    color: #6C737F;
    margin: 0 0 16px;
}

/* Grid de campos */
.ss-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (min-width: 1024px) {
    .ss-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 640px) {
    .ss-grid {
        grid-template-columns: 1fr;
    }
}

/* Campo */
.ss-field {
    display: flex;
    flex-direction: column;
}

.ss-field label {
    font-size: 12px;
    font-weight: 600;
    color: #0F1D2F;
    margin-bottom: 6px;
}

.ss-req {
    color: #C0392B;
}

.ss-field input[type="text"],
.ss-field input[type="email"],
.ss-field input[type="date"],
.ss-field input[type="tel"],
.ss-field input[type="number"],
.ss-field select {
    width: 100%;
    height: 42px;
    padding: 9px 12px;
    border: 1px solid #D1D5DB;
    border-radius: 7px;
    font-size: 13px;
    font-family: inherit;
    background: #FAFAFA;
    color: #1A1A1A;
    transition: border-color 200ms, box-shadow 200ms, background 200ms;
    box-sizing: border-box;
}

.ss-field select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236C737F' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.ss-field input:focus,
.ss-field select:focus {
    outline: none;
    border-color: #C0392B;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.1);
}

/* Checkbox */
.ss-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #4B5563;
    cursor: pointer;
}

.ss-check input[type="checkbox"] {
    margin-top: 3px;
    width: 16px;
    height: 16px;
    accent-color: #C0392B;
}

/* Termo */
.ss-termo {
    background: #FFFBEB;
    border-color: #FCD34D;
}

.ss-termo legend {
    color: #92400E;
}

.ss-termo-check {
    font-size: 14px;
    line-height: 1.6;
    color: #78350F;
}

/* Dependentes */
.ss-dependente-row {
    background: #F8F9FB;
    border: 1px dashed #D1D5DB;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
}

.ss-dependente-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.ss-dependente-header strong {
    color: #0F1D2F;
    font-size: 13px;
}

.ss-btn-add {
    display: inline-flex;
    align-items: center;
    background: transparent;
    border: 1px dashed #C0392B;
    color: #C0392B;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 200ms;
    font-family: inherit;
}

.ss-btn-add:hover {
    background: #C0392B;
    color: #fff;
}

.ss-btn-remove {
    background: transparent;
    border: none;
    color: #C0392B;
    font-size: 12px;
    cursor: pointer;
    padding: 4px 8px;
    font-family: inherit;
}

.ss-btn-remove:hover {
    text-decoration: underline;
}

/* Submit */
.ss-actions {
    text-align: center;
    margin-top: 24px;
}

.ss-submit {
    background: #C0392B;
    color: #fff !important;
    padding: 14px 48px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
    transition: background 200ms, transform 100ms;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 220px;
}

.ss-submit:hover:not(:disabled) {
    background: #E74C3C;
    color: #fff !important;
    text-decoration: none;
}

.ss-submit:active:not(:disabled) {
    transform: scale(0.98);
}

.ss-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Spinner */
.ss-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: ss-spin 0.8s linear infinite;
}

@keyframes ss-spin {
    to { transform: rotate(360deg); }
}

/* Estados de campo */
.ss-field-error {
    border-color: #EF4444 !important;
    background: #FEF2F2 !important;
}

.ss-field-error:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

.ss-field-error-msg {
    display: block;
    color: #B91C1C;
    font-size: 11px;
    margin-top: 4px;
    font-weight: 500;
}

.ss-field-loading {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236C737F' stroke-width='2'%3E%3Cpath d='M21 12a9 9 0 1 1-6.219-8.56'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 12 12' to='360 12 12' dur='0.8s' repeatCount='indefinite'/%3E%3C/path%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 16px !important;
    padding-right: 38px !important;
}

/* ============================================
   Radio inline (CPF/CNPJ, Celular/WhatsApp)
   ============================================ */
.ss-radio-group {
    display: flex;
    align-items: center;
    gap: 18px;
    height: 18px;
    margin-bottom: 6px;
}

.ss-radio-group label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #0F1D2F;
    cursor: pointer;
    margin: 0;
}

.ss-radio-group input[type="radio"] {
    width: 16px;
    height: 16px;
    accent-color: #2563EB;
    margin: 0;
    cursor: pointer;
}

.ss-checkbox-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 42px;
    margin-top: 22px; /* alinha com inputs que têm label em cima */
}

.ss-checkbox-inline input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #2563EB;
    cursor: pointer;
    margin: 0;
}

.ss-checkbox-inline label {
    font-size: 13px;
    color: #0F1D2F;
    cursor: pointer;
    margin: 0;
}

/* ============================================
   Layout específico Contribuição Assistencial
   Grid de 4 colunas no desktop
   ============================================ */
.sindifarma-serv-ca .ss-grid-ca-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.sindifarma-serv-ca .ss-grid-ca-4 > .ss-col-1 { grid-column: span 1; }
.sindifarma-serv-ca .ss-grid-ca-4 > .ss-col-2 { grid-column: span 2; }
.sindifarma-serv-ca .ss-grid-ca-4 > .ss-col-3 { grid-column: span 3; }
.sindifarma-serv-ca .ss-grid-ca-4 > .ss-col-4 { grid-column: span 4; }

@media (max-width: 1023px) {
    .sindifarma-serv-ca .ss-grid-ca-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .sindifarma-serv-ca .ss-grid-ca-4 > .ss-col-1,
    .sindifarma-serv-ca .ss-grid-ca-4 > .ss-col-2,
    .sindifarma-serv-ca .ss-grid-ca-4 > .ss-col-3,
    .sindifarma-serv-ca .ss-grid-ca-4 > .ss-col-4 {
        grid-column: span 2;
    }
}

@media (max-width: 640px) {
    .sindifarma-serv-ca .ss-grid-ca-4 {
        grid-template-columns: 1fr;
    }
    .sindifarma-serv-ca .ss-grid-ca-4 > .ss-col-1,
    .sindifarma-serv-ca .ss-grid-ca-4 > .ss-col-2,
    .sindifarma-serv-ca .ss-grid-ca-4 > .ss-col-3,
    .sindifarma-serv-ca .ss-grid-ca-4 > .ss-col-4 {
        grid-column: span 1;
    }
}

/* Wrapper que junta radio + input (CPF/CNPJ, Celular/WhatsApp) */
.ss-field-with-radio .ss-radio-group {
    margin-bottom: 8px;
}

/* ============================================
   Contribuição Assistencial — Tela de sucesso
   ============================================ */
.sindifarma-serv-boleto-result {
    text-align: center;
    padding: 20px 0;
}

.ss-boleto-header {
    margin-bottom: 32px;
}

.ss-boleto-check {
    width: 64px;
    height: 64px;
    color: #10B981;
    margin: 0 auto 16px;
    display: block;
}

.ss-boleto-header h2 {
    font-size: 24px;
    color: #0F1D2F;
    margin: 0 0 8px;
    font-weight: 700;
}

.ss-boleto-header p {
    color: #6C737F;
    font-size: 14px;
    margin: 0;
}

.ss-boleto-instrucoes {
    text-align: left;
    max-width: 640px;
    margin: 0 auto 24px;
    color: #374151;
    line-height: 1.7;
    font-size: 14px;
}

.ss-boleto-instrucoes h2 {
    font-size: 24px;
    color: #0F1D2F;
    margin: 0 0 16px;
    text-align: center;
    font-weight: 700;
}

.ss-boleto-instrucoes h3 {
    font-size: 16px;
    color: #C0392B;
    margin: 24px 0 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid #FEE2E2;
}

.ss-boleto-instrucoes ul {
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 16px 16px 16px 36px;
    margin: 12px 0;
}

.ss-boleto-instrucoes li {
    margin: 6px 0;
}

.ss-boleto-instrucoes p {
    margin: 12px 0;
}

.ss-boleto-instrucoes a {
    color: #C0392B;
    text-decoration: underline;
}

.ss-boleto-instrucoes a:hover {
    color: #E74C3C;
}

.ss-boleto-info {
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 24px;
    max-width: 600px;
    margin: 0 auto 24px;
    text-align: left;
}

.ss-boleto-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #E5E7EB;
    gap: 16px;
}

.ss-boleto-row:last-child {
    border-bottom: none;
}

.ss-boleto-row span {
    color: #6C737F;
    font-size: 13px;
    font-weight: 500;
}

.ss-boleto-row strong,
.ss-boleto-row code {
    color: #0F1D2F;
    font-weight: 700;
    font-size: 14px;
    text-align: right;
}

.ss-boleto-row code {
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 12px;
    background: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #E5E7EB;
}

.ss-boleto-warning {
    background: #FEF3C7;
    border: 1px solid #F59E0B;
    color: #92400E;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    max-width: 600px;
    margin: 0 auto 24px;
    text-align: left;
}

.ss-boleto-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.ss-btn-secondary {
    background: #fff;
    color: #6C737F;
    border: 1px solid #D1D5DB;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 200ms;
}

/* ============================================
   Carta de Oposição
   ============================================ */
.sindifarma-serv-oposicao .ss-oposicao-intro {
    text-align: center;
    margin-top: -20px;
    margin-bottom: 28px;
}

.sindifarma-serv-oposicao .ss-oposicao-intro h2 {
    font-size: 24px;
    color: #0F1D2F;
    margin: 0 0 8px;
    font-weight: 700;
}

.sindifarma-serv-oposicao .ss-oposicao-intro p {
    color: #6C737F;
    font-size: 14px;
}

.ss-oposicao-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.ss-oposicao-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    padding: 28px 24px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: border-color 200ms ease, box-shadow 200ms ease;
}

.ss-oposicao-card:hover {
    border-color: #C0392B;
    box-shadow: 0 4px 16px rgba(192, 57, 43, 0.1);
    color: inherit;
}

.ss-oposicao-card-icon {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    background: #FEF2F2;
    color: #C0392B;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.ss-oposicao-card-icon svg {
    width: 36px;
    height: 36px;
}

.ss-oposicao-card h3 {
    font-size: 16px;
    color: #0F1D2F;
    margin: 0 0 8px;
    font-weight: 700;
}

.ss-oposicao-card p {
    font-size: 13px;
    color: #6C737F;
    margin: 0 0 16px;
    flex: 1;
}

.ss-oposicao-card-arrow {
    color: #C0392B;
    font-size: 13px;
    font-weight: 600;
    margin-top: auto;
}

/* Janela fechada */
.ss-oposicao-fechada {
    text-align: center;
    padding: 60px 20px;
}

.ss-oposicao-fechada svg {
    margin: 0 auto 20px;
}

.ss-oposicao-fechada h2 {
    font-size: 24px;
    color: #0F1D2F;
    margin: 0 0 12px;
}

.ss-oposicao-fechada p {
    color: #6C737F;
    margin: 8px 0;
}

.ss-oposicao-proxima {
    margin-top: 20px !important;
    font-size: 16px;
    color: #0F1D2F !important;
}

.ss-oposicao-proxima strong {
    color: #C0392B;
}

/* Header do formulário do setor */
.ss-oposicao-form-header {
    margin-top: -30px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid #E5E7EB;
}

.ss-oposicao-back {
    display: inline-block;
    color: #C0392B;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
}

.ss-oposicao-back:hover {
    color: #E74C3C;
}

.ss-oposicao-form-header h2 {
    margin: 0 0 4px;
    font-size: 22px;
    color: #0F1D2F;
}

.ss-oposicao-form-header p {
    margin: 0;
    color: #6C737F;
    font-size: 13px;
}

.ss-oposicao-fundamentacao {
    background: #F0F4F8;
    border-left: 4px solid #C0392B;
    padding: 16px 20px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.6;
    color: #374151;
    margin-bottom: 24px;
}

/* Tela de sucesso */
.ss-oposicao-sucesso {
    text-align: center;
    padding: 20px 0;
}

.ss-oposicao-instrucoes {
    text-align: left;
    max-width: 640px;
    margin: 0 auto;
    color: #374151;
    line-height: 1.7;
    font-size: 14px;
}

.ss-oposicao-instrucoes h2 {
    font-size: 24px;
    color: #0F1D2F;
    margin: 0 0 16px;
    text-align: center;
}

.ss-oposicao-instrucoes h3 {
    font-size: 18px;
    color: #0F1D2F;
    margin: 24px 0 12px;
    text-align: center;
}

.ss-oposicao-instrucoes h4 {
    font-size: 15px;
    color: #C0392B;
    margin: 24px 0 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid #FEE2E2;
}

.ss-oposicao-instrucoes p {
    margin: 8px 0;
}

.ss-oposicao-instrucoes .ss-oposicao-download {
    margin: 20px 0;
    text-align: center;
}

.ss-oposicao-sucesso h2 {
    font-size: 24px;
    color: #0F1D2F;
    margin: 0 0 12px;
}

.ss-oposicao-sucesso > p {
    color: #6C737F;
    font-size: 14px;
    margin-bottom: 24px;
}

.ss-oposicao-passos {
    text-align: left;
    max-width: 520px;
    margin: 0 auto 24px;
    padding-left: 20px;
}

.ss-oposicao-passos li {
    color: #374151;
    line-height: 1.6;
    margin-bottom: 8px;
    font-size: 14px;
}

.ss-oposicao-warning {
    background: #FEF3C7;
    border: 1px solid #F59E0B;
    color: #92400E;
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 13px;
    max-width: 520px;
    margin: 0 auto 24px;
    text-align: left;
}

.ss-oposicao-download {
    margin: 24px 0;
}

.ss-oposicao-contato {
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 20px;
    max-width: 520px;
    margin: 24px auto 0;
    text-align: left;
}

.ss-oposicao-contato h3 {
    margin: 0 0 12px;
    font-size: 14px;
    color: #0F1D2F;
}

.ss-oposicao-contato p {
    margin: 4px 0;
    font-size: 13px;
    color: #6C737F;
}

.sindifarma-serv-alert {
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 14px;
    border-left: 4px solid;
}

.sindifarma-serv-alert-success {
    background: #ECFDF5;
    border-color: #10B981;
    color: #065F46;
}

.sindifarma-serv-alert-error {
    background: #FEF2F2;
    border-color: #EF4444;
    color: #991B1B;
}

.sindifarma-serv-alert-warning {
    background: #FEF3C7;
    border-color: #F59E0B;
    color: #92400E;
}



/* ==========================================================================
   Área do Farmacêutico — Dashboard, Login, Toast, Misc
   Merged from area.css
   ========================================================================== */

/* Toast */
.sf-toast{position:fixed;top:20px;right:20px;z-index:9999;max-width:420px;min-width:320px;display:flex;align-items:flex-start;gap:12px;padding:16px 18px;border-radius:8px;border-left:4px solid;background:#fff;box-shadow:0 8px 32px rgba(0,0,0,.1),0 2px 8px rgba(0,0,0,.05);animation:sf-toast-in .4s ease;transition:opacity .3s,transform .3s}
.sf-toast--success{border-left-color:#22c55e}
.sf-toast--error{border-left-color:#ef4444}
.sf-toast--info{border-left-color:#3b82f6}
.sf-toast--warning{border-left-color:#f59e0b}
.sf-toast-icon{width:32px;height:32px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.sf-toast--success .sf-toast-icon{background:#f0fdf4}
.sf-toast--error .sf-toast-icon{background:#fef2f2}
.sf-toast--info .sf-toast-icon{background:#eff6ff}
.sf-toast--warning .sf-toast-icon{background:#fffbeb}
.sf-toast-body{flex:1;min-width:0}
.sf-toast-title{font-size:14px;font-weight:700;color:#0f1b3d;margin-bottom:2px}
.sf-toast-text{font-size:13px;font-weight:400;color:#6b7280;line-height:1.4}
.sf-toast-close{background:none;border:none;cursor:pointer;color:#9ca3af;font-size:18px;line-height:1;padding:0;flex-shrink:0;transition:color .15s}
.sf-toast-close:hover{color:#4b5563}
@keyframes sf-toast-in{from{opacity:0;transform:translateX(100%)}to{opacity:1;transform:translateX(0)}}
@keyframes sf-toast-out{from{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(100%)}}

/* Spinner global */
@keyframes sf-spin { to { transform: rotate(360deg); } }

/* Estado de loading nos botões: spinner overlay sem trocar texto */
.sf-btn.sf-loading {
    position: relative;
    pointer-events: none;
    color: transparent !important;        /* esconde texto sem mexer no width */
}
.sf-btn.sf-loading > * {
    visibility: hidden;
}
.sf-btn.sf-loading::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 18px; height: 18px;
    margin-top: -9px; margin-left: -9px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: sf-spin .6s linear infinite;
    color: #fff;                          /* default pra botões escuros (--primary, --warning) */
    visibility: visible;
}
/* Para botões claros (--ghost) o spinner precisa ser escuro pra ser visto */
.sf-btn--ghost.sf-loading::after,
.sf-btn--secondary.sf-loading::after,
.sf-btn--xs.sf-loading::after {
    color: #0f1b3d;
}

/* Compat: spinner inline antigo (mantido pra outros usos) */
.sf-btn-spinner {
    display: inline-block; width: 16px; height: 16px;
    border: 2px solid rgba(255,255,255,.3); border-top-color: #fff;
    border-radius: 50%; animation: sf-spin .6s linear infinite;
    vertical-align: middle; margin-right: 6px;
}

/* Block UI */
.sf-block-ui { position: relative; pointer-events: none; opacity: .6; }
.sf-block-ui::after { content: ''; position: absolute; inset: 0; background: rgba(255,255,255,.4); border-radius: inherit; z-index: 1; }

/* sf-field (render_field helper) */
.sf-fields-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.sf-field { grid-column: span 1; position: relative; display: flex; flex-direction: column; }
.sf-field--wide { grid-column: span 2; }
.sf-field--wide-newline { grid-column: 1 / span 2; }
.sf-field--full { grid-column: 1 / -1; }
.sf-field label {
    font-size: 12px; font-weight: 600; color: #0F1D2F; margin-bottom: 6px;
}
.sf-field input, .sf-field select, .sf-field textarea {
    width: 100%; height: 42px;
    padding: 9px 12px; border: 1px solid #D1D5DB; border-radius: 7px;
    font-size: 13px; font-family: inherit; background: #FAFAFA;
    color: #1A1A1A; transition: border-color 200ms, box-shadow 200ms;
    box-sizing: border-box;
}
.sf-field textarea { height: auto; }
.sf-field select {
    appearance: none; -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236C737F' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px;
}
.sf-field input:focus, .sf-field select:focus, .sf-field textarea:focus {
    outline: none; border-color: #1e5ba8; background: #fff;
    box-shadow: 0 0 0 3px rgba(30,91,168,.1);
}
.sf-field--error input,
.sf-field--error select,
.sf-field--error textarea {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}
.sf-field-error { font-size: 12px; color: #ef4444; margin-top: 2px; }

.sf-fieldset {
    border: 1px solid #E5E7EB; border-radius: 12px;
    padding: 24px; margin-bottom: 20px; background: #fff;
}
.sf-fieldset legend {
    font-size: 15px; font-weight: 700; color: #0F1D2F;
    padding: 0 8px; margin-left: -8px;
}

@media (max-width: 768px) {
    .sf-fields-grid { grid-template-columns: 1fr 1fr; }
    .sf-field--wide { grid-column: span 2; }
}
@media (max-width: 480px) {
    .sf-fields-grid { grid-template-columns: 1fr; }
    .sf-field, .sf-field--wide { grid-column: span 1; }
}

/* Farmacêuticos rows (CA) */
.ss-farmaceutico-row {
    border: 1px dashed #D1D5DB; border-radius: 8px;
    padding: 16px; margin-bottom: 8px; background: #F8F9FB;
}
.ss-btn-remove-farm {
    background: none; border: 1px solid rgba(200,48,45,.25);
    color: #C8302D; font-size: 12px; font-weight: 600;
    padding: 6px 12px; border-radius: 4px; cursor: pointer;
    white-space: nowrap; height: 42px; font-family: inherit;
}
.ss-btn-remove-farm:hover { background: #fef2f2; }
.ss-btn-remove-farm:disabled {
    opacity: .4; cursor: not-allowed;
    color: #9CA3AF; border-color: #E5E7EB; background: none;
}
.ss-btn-remove-farm:disabled:hover { background: none; }

/* Célula de contribuição calculada (CA) */
.ca-farm-contribuicao {
    display: flex; align-items: center; justify-content: flex-end;
    height: 42px; padding: 0 12px;
    font-size: 14px; font-weight: 700; color: #0F1B3D;
    background: #F0F7FF; border: 1px solid rgba(30,91,168,.25); border-radius: 6px;
    font-variant-numeric: tabular-nums;
}
.ca-farm-contribuicao.ca-contrib-err {
    background: #FEF3C7; border-color: #F59E0B; color: #92400E;
    font-size: 12px; font-weight: 600;
}

/* Wrap do botão Remover — alinhado com o INPUT (não com o label) da contribuição */
.ca-farm-remove-wrap {
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    min-height: 42px;
}
.ca-farm-remove-wrap .ss-btn-remove-farm {
    height: 42px;
    margin: 0;
}

/* Radio do tipo de contribuição */
.ca-tipo-opcoes {
    display: flex; flex-direction: column; gap: 10px;
}
.ca-tipo-opcao {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 16px; cursor: pointer;
    border: 1px solid #E5E7EB; border-radius: 8px;
    background: #fff; transition: all .15s;
}
.ca-tipo-opcao:hover { border-color: #9CA3AF; background: #F9FAFB; }
.ca-tipo-opcao input[type="radio"] { margin: 0; }
.ca-tipo-opcao:has(input:checked) {
    border-color: #1E5BA8; background: #EFF6FF;
    box-shadow: 0 0 0 1px #1E5BA8 inset;
}
.ca-tipo-rotulo { font-size: 14px; color: #111827; font-weight: 500; }
.ca-tipo-opcao:has(input:checked) .ca-tipo-rotulo { color: #0F1B3D; font-weight: 600; }

/* Coluna salário — aparece só no tipo assistencial */
body:not(.ca-show-salario) .ca-farm-salario-wrap { display: none; }
/* Quando confederativa, contribuição ocupa mais espaço da linha */
body.ca-show-confed .ca-farm-contrib-wrap.ss-col-1 {
    /* sem alteração — mantém ss-col-1; só o salário some */
}

/* Cadastro farmacêutico form */
.sf-cadastro-form .sf-notice { margin-bottom: 16px; }
.sf-cadastro-form .sf-section-desc { color: #6b7280; font-size: 14px; margin-bottom: 20px; }

/* Sindicalize dependentes */
.ss-dependente-row .ss-grid { margin-bottom: 0; }

/* Sindicalize termo */
.sf-form .ss-termo { background: #FFFBEB; border-color: #FCD34D; }
.sf-form .ss-termo legend { color: #92400E; }

/* Radio group (usado p.ex. em opção de contribuição) */
.sf-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: stretch;
}
.sf-radio {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: border-color .15s, background .15s, box-shadow .15s;
    font-size: 13px;
    color: #374151;
    flex: 1 1 200px;
    min-height: 42px;
}
.sf-radio:hover {
    border-color: #1E5BA8;
    background: #F5F9FF;
}
.sf-radio input[type="radio"] {
    margin: 0;
    accent-color: #1E5BA8;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
.sf-radio:has(input:checked) {
    border-color: #1E5BA8;
    background: #F0F7FF;
    box-shadow: 0 0 0 1px #1E5BA8 inset;
}
.sf-radio:has(input:checked) span {
    font-weight: 600;
    color: #0F1B3D;
}

/* ============================================================
   FARMADESK — Área interna do farmacêutico
   ============================================================ */

/* Tipografia base — títulos das seções */
.sf-section-title {
    font-size: 22px;
    font-weight: 700;
    color: #0f1b3d;
    margin: 0 0 8px;
    line-height: 1.3;
}

.sf-section-desc {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 24px;
}

.sf-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.sf-section-header .sf-section-title { margin-bottom: 0; }

.sf-subsection-title {
    font-size: 16px;
    font-weight: 700;
    color: #0f1b3d;
    margin: 24px 0 12px;
}

/* Cards do dashboard */
.sf-dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.sf-dash-card {
    display: block;
    padding: 20px 22px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    text-decoration: none;
    color: #0f1b3d;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
    position: relative;
    overflow: hidden;
}

.sf-dash-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(15, 27, 61, 0.08);
    border-color: #cbd5e1;
}

.sf-dash-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    color: #3b82f6;
    margin-bottom: 12px;
}

.sf-dash-card--warning .sf-dash-card-icon {
    background: #fffbeb;
    color: #f59e0b;
}

.sf-dash-card--success .sf-dash-card-icon {
    background: #f0fdf4;
    color: #22c55e;
}

.sf-dash-card-number {
    font-size: 32px;
    font-weight: 800;
    color: #0f1b3d;
    line-height: 1;
    margin-bottom: 4px;
}

.sf-dash-card-label {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

/* Cards genéricos / containers de conteúdo */
.sf-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
}

/* Botões */
.sf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background .15s ease, color .15s ease, border-color .15s ease, transform .1s;
    line-height: 1.2;
    white-space: nowrap;
}

.sf-btn:hover { transform: translateY(-1px); }
.sf-btn:active { transform: translateY(0); }
.sf-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.sf-btn--primary {
    background: #0f1b3d;
    color: #fff;
}
.sf-btn--primary:hover { background: #1e293b; color: #fff; }

.sf-btn--ghost {
    background: transparent;
    color: #475569;
    border-color: #cbd5e1;
}
.sf-btn--ghost:hover { background: #f1f5f9; color: #0f1b3d; }

.sf-btn--warning {
    background: #fbbf24;
    color: #0f1b3d;
}
.sf-btn--warning:hover { background: #f59e0b; color: #0f1b3d; }

.sf-btn--sm {
    padding: 7px 14px;
    font-size: 13px;
}

.sf-btn--xs {
    padding: 5px 10px;
    font-size: 12px;
}

/* Notices / mensagens */
.sf-notice {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    border: 1px solid transparent;
}

.sf-notice--success {
    background: #f0fdf4;
    border-color: #86efac;
    color: #166534;
}

.sf-notice--error {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #991b1b;
}

.sf-notice--info {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #1e40af;
}

.sf-notice--warning {
    background: #fffbeb;
    border-color: #fcd34d;
    color: #92400e;
}

/* Tabelas */
.sf-table-wrap {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    overflow-x: auto;
    margin-bottom: 20px;
}

.sf-table {
    width: 100%;
    border-collapse: collapse;
}

.sf-table th {
    background: #f9fafb;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.sf-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
    color: #0f1b3d;
    vertical-align: middle;
}

.sf-table tr:last-child td { border-bottom: none; }
.sf-table tbody tr:hover { background: #f8fafc; }

.sf-th-actions, .sf-td-actions {
    text-align: right;
    white-space: nowrap;
    width: 1%;            /* CSS trick: encolhe pra largura mínima do conteúdo */
}

.sf-mono {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 13px;
}

/* Empty states */
.sf-empty {
    text-align: center;
    padding: 48px 24px;
    color: #9ca3af;
    font-size: 14px;
    background: #fff;
    border: 1px dashed #e5e7eb;
    border-radius: 12px;
}

/* Filtros */
.sf-filter {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.sf-filter .sf-btn {
    background: #fff;
    color: #475569;
    border-color: #e5e7eb;
}

/* Estado ativo: pode ser .sf-btn--primary (links) ou .sf-page-active (paginação) */
.sf-filter .sf-btn.sf-btn--primary,
.sf-filter .sf-btn.sf-page-active,
.sf-filter .sf-btn:hover {
    background: #0f1b3d;
    color: #fff;
    border-color: #0f1b3d;
}

/* Paginação */
.sf-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 0;
    padding: 14px 16px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    flex-wrap: wrap;
    font-size: 13px;
    color: #6b7280;
}

.sf-pagination-btns {
    display: flex;
    gap: 4px;
}

.sf-pagination-btns a,
.sf-pagination-btns .sf-page-active {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #475569;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.sf-pagination-btns a:hover {
    background: #f1f5f9;
    color: #0f1b3d;
    border-color: #cbd5e1;
}

.sf-pagination-btns .sf-page-active {
    background: #0f1b3d;
    color: #fff;
    border-color: #0f1b3d;
    cursor: default;
}

/* Tabs */
.sf-tabs { margin-bottom: 24px; }

.sf-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    background: #f1f5f9;
    border-radius: 999px;
    padding: 4px;
    margin-bottom: 20px;
    width: fit-content;
    max-width: 100%;
}

.sf-tab-btn {
    background: transparent;
    border: none;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    border-radius: 999px;
    transition: background .15s ease, color .15s ease, box-shadow .15s ease;
    line-height: 1.4;
    white-space: nowrap;
}

.sf-tab-btn:hover { color: #0f1b3d; }

.sf-tab-btn.active,
.sf-tab-btn.sf-tab-active {
    background: #fff;
    color: #0f1b3d;
    box-shadow: 0 1px 3px rgba(15, 27, 61, 0.1);
}

.sf-tab-panel { display: none; }
.sf-tab-panel.active,
.sf-tab-panel.sf-tab-active { display: block; }

/* Form layouts */
.sf-form { display: block; }

.sf-form-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
    flex-wrap: wrap;
}

.sf-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    color: #0f1b3d;
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
    box-sizing: border-box;
}

.sf-input:focus {
    outline: none;
    border-color: #fbbf24;
    box-shadow: 0 0 0 3px rgba(251, 191, 36, .15);
}

/* Cadastro */
.sf-cadastro-wrap {
    width: 100%;
}

.sf-cadastro-login-link {
    margin-top: 20px;
    text-align: center;
    font-size: 13px;
    color: #6B7280;
}

.sf-cadastro-login-link a {
    color: #1E5BA8;
    font-weight: 500;
    text-decoration: none;
}

.sf-cadastro-login-link a:hover {
    text-decoration: underline;
}

/* Avisos / publicações */
.sf-avisos-section { margin-top: 32px; }

.sf-avisos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.sf-aviso-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: #0f1b3d;
    display: flex;
    flex-direction: column;
    transition: transform .15s ease, box-shadow .15s ease;
}

.sf-aviso-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(15, 27, 61, 0.08);
}

.sf-aviso-card--exclusive { border-color: #fbbf24; }

.sf-aviso-thumb {
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
    background-color: #f1f5f9;
}

.sf-aviso-thumb--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
}

.sf-aviso-body { padding: 16px; }

.sf-aviso-title {
    font-size: 15px;
    font-weight: 700;
    color: #0f1b3d;
    margin: 0 0 6px;
    line-height: 1.3;
}

.sf-aviso-excerpt {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 8px;
    line-height: 1.5;
}

.sf-aviso-date {
    font-size: 12px;
    color: #9ca3af;
}

.sf-aviso-badge {
    display: inline-block;
    padding: 2px 8px;
    background: #fbbf24;
    color: #0f1b3d;
    font-size: 11px;
    font-weight: 700;
    border-radius: 4px;
    margin-left: 6px;
}

/* Detalhes da contribuição (invoice) */
.sf-invoice-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    background: #f9fafb;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

@media (max-width: 640px) {
    .sf-invoice-meta { grid-template-columns: 1fr 1fr; }
}

.sf-invoice-meta-item { display: flex; flex-direction: column; }

.sf-invoice-meta-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #6b7280;
    font-weight: 700;
    margin-bottom: 4px;
}

.sf-invoice-meta-value {
    font-size: 14px;
    color: #0f1b3d;
    font-weight: 600;
}

.sf-invoice-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.sf-invoice-table th,
.sf-invoice-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
}

.sf-invoice-table th {
    background: #f9fafb;
    color: #475569;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.sf-invoice-desc { font-weight: 600; color: #0f1b3d; }

.sf-invoice-total {
    font-weight: 700;
    background: #f9fafb;
}

.sf-invoice-total td {
    border-top: 2px solid #e5e7eb;
    border-bottom: none;
    padding-top: 16px;
    font-size: 15px;
}

/* Botões de pagamento (boleto / cartão lado a lado) */
.sf-payment-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.sf-payment-buttons .sf-btn { min-width: 180px; }

/* Conteúdo de post (publicação aberta) */
.sf-post-content {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 32px;
    line-height: 1.7;
    color: #1e293b;
}

.sf-post-content h1, .sf-post-content h2, .sf-post-content h3 {
    color: #0f1b3d;
    margin-top: 1.5em;
}

.sf-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Responsivo */
@media (max-width: 640px) {
    .sf-section-header { flex-direction: column; align-items: flex-start; }
    .sf-payment-buttons .sf-btn { width: 100%; }
    .sf-table { font-size: 13px; }
    .sf-table th, .sf-table td { padding: 10px 12px; }
}

/* ============================================================
   Dropdown — ícones alinhados
   ============================================================ */
.fd-dropdown a {
    display: flex !important;
    align-items: center;
    gap: 10px;
}

.fd-dropdown a > svg {
    flex-shrink: 0;
    color: #6b7280;
    transition: color .15s ease;
}

.fd-dropdown a:hover > svg { color: #0f1b3d; }
.fd-dropdown a.fd-logout > svg { color: #ef4444; }
.fd-dropdown a.fd-logout:hover > svg { color: #b91c1c; }

/* ============================================================
   Tela: Alterar senha — card centralizado
   ============================================================ */
.sf-password-wrap {
    display: flex;
    justify-content: center;
    padding: 24px 16px;
}

.sf-password-card {
    width: 100%;
    max-width: 460px;
    margin: 0;
}

.sf-password-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
}

.sf-password-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #fffbeb;
    color: #f59e0b;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sf-password-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f1b3d;
    margin: 0 0 4px;
    line-height: 1.2;
}

.sf-password-desc {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
    line-height: 1.4;
}

.sf-password-card .sf-field { margin-bottom: 16px; }
.sf-password-card .sf-field:last-of-type { margin-bottom: 20px; }

/* Botão block (full-width) */
.sf-btn--block {
    width: 100%;
    padding: 12px 20px;
    font-size: 15px;
}

/* ============================================================
   Inputs readonly — bloqueados visualmente
   ============================================================ */
.sf-field input[readonly],
.sf-field select[readonly],
.sf-field textarea[readonly],
.sf-input[readonly],
input[readonly].sf-input,
input[readonly] {
    background: #e5e7eb !important;
    color: #6b7280 !important;
    cursor: not-allowed !important;
    border-color: #d1d5db !important;
}

.sf-field input[readonly]:focus,
.sf-field select[readonly]:focus,
.sf-input[readonly]:focus,
input[readonly]:focus {
    outline: none !important;
    border-color: #d1d5db !important;
    box-shadow: none !important;
}

/* ============================================================
   COMPROVANTE — header da impressão e regras de print
   ============================================================ */

/* Header do comprovante (visível só na impressão) */
.sf-receipt-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 16px;
    margin-bottom: 20px;
    border-bottom: 2px solid #0f1b3d;
}

.sf-receipt-logo {
    max-height: 64px;
    max-width: 200px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.sf-receipt-logo-fallback {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #0f1b3d 0%, #1e293b 100%);
    color: #fbbf24;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 800;
}

.sf-receipt-org-name {
    font-size: 18px;
    font-weight: 700;
    color: #0f1b3d;
    line-height: 1.2;
}

.sf-receipt-org-tag {
    font-size: 13px;
    color: #6b7280;
    margin-top: 2px;
}

/* Bloco contribuinte sempre visível, importante na impressão */
.sf-receipt-contribuinte {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    background: #f9fafb;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 16px;
    border-left: 3px solid #fbbf24;
}

.sf-receipt-contribuinte .sf-invoice-meta-item:first-child {
    grid-column: span 2;
}

@media (max-width: 640px) {
    .sf-receipt-contribuinte { grid-template-columns: 1fr 1fr; }
    .sf-receipt-contribuinte .sf-invoice-meta-item:first-child { grid-column: span 2; }
}

/* Rodapé do comprovante (só na impressão) */
.sf-receipt-footer {
    margin-top: 32px;
    padding-top: 16px;
    border-top: 1px dashed #cbd5e1;
    font-size: 11px;
    color: #6b7280;
    text-align: center;
}

/* Por padrão, só visíveis na impressão */
.sf-print-only { display: none !important; }

/* ===== PRINT ===== */
@media print {
    /* Esconde tudo que não é o comprovante */
    body * { visibility: hidden; }
    .sf-receipt-area, .sf-receipt-area * { visibility: visible; }

    /* Posiciona o card no topo da página, sem sombra/borda */
    .sf-receipt-area {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 24px;
        border: none !important;
        box-shadow: none !important;
        background: #fff !important;
    }

    /* Header e nav do site some */
    .fd-navbar-bg, .fd-navbar, .fd-content > *:not(.sf-receipt-area),
    .sf-section-header, .sf-no-print,
    .fd-footer, header, footer, nav, aside {
        display: none !important;
    }

    /* Inverte: agora print-only fica visível */
    .sf-print-only { display: flex !important; }
    .sf-receipt-footer.sf-print-only { display: block !important; }

    /* Tabelas com bordas mais simples */
    .sf-invoice-table th, .sf-invoice-table td {
        border-bottom: 1px solid #ddd !important;
    }

    /* Cores compatíveis com impressão preto e branco */
    .sf-receipt-org-name, .sf-section-title {
        color: #000 !important;
    }

    /* Evita quebrar tabela entre páginas */
    .sf-invoice-table { page-break-inside: avoid; }
    .sf-receipt-header { page-break-after: avoid; }

    /* Margens da página */
    @page { margin: 14mm; }
}

/* Nota explicativa do recibo */
.sf-receipt-note {
    margin: 4px 0 0;
    padding: 10px 14px;
    background: #fffbeb;
    border-left: 3px solid #fbbf24;
    border-radius: 6px;
    color: #78350f;
    font-size: 12px;
    line-height: 1.5;
}
.sf-receipt-note small { font-size: inherit; }

@media print {
    .sf-receipt-note {
        background: #fffbeb !important;
        border-left: 3px solid #fbbf24 !important;
        color: #78350f !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* ============================================================
   CIELO — Modal de checkout responsivo
   ============================================================ */
.sf-cielo-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(15, 27, 61, 0.65);
    backdrop-filter: blur(2px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.sf-cielo-overlay--open { display: flex; }

.sf-cielo-modal {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 720px;
    height: 680px;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 32px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.sf-cielo-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: #0f1b3d;
    color: #fff;
    flex-shrink: 0;
}

.sf-cielo-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 15px;
}

.sf-cielo-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background .15s ease;
}
.sf-cielo-close:hover { background: rgba(255, 255, 255, .15); }

.sf-cielo-body {
    flex: 1;
    position: relative;
    background: #f9fafb;
    overflow: hidden;
}

.sf-cielo-iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    background: #fff;
}

.sf-cielo-loading {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: #6b7280;
    font-size: 14px;
    background: #f9fafb;
    z-index: 1;
}

.sf-cielo-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #e5e7eb;
    border-top-color: #fbbf24;
    border-radius: 50%;
    animation: sf-cielo-spin 0.8s linear infinite;
}

@keyframes sf-cielo-spin {
    to { transform: rotate(360deg); }
}

.sf-cielo-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 32px 24px;
    z-index: 2;
    background: #fff;
}
.sf-cielo-fallback p { margin: 0 0 12px; color: #475569; font-size: 14px; line-height: 1.5; }
.sf-cielo-fallback p strong { color: #0f1b3d; font-size: 16px; }
.sf-cielo-fallback .sf-btn { margin-top: 8px; }

/* Mobile: full-screen */
@media (max-width: 640px) {
    .sf-cielo-overlay { padding: 0; }
    .sf-cielo-modal {
        width: 100vw;
        height: 100vh;
        max-width: 100vw;
        max-height: 100vh;
        border-radius: 0;
    }
}

/* Cielo modal — ações no header (abrir nova aba + fechar) */
.sf-cielo-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.sf-cielo-newtab {
    background: rgba(255, 255, 255, .1);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 6px 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: background .15s ease;
}
.sf-cielo-newtab:hover { background: rgba(255, 255, 255, .2); color: #fff; }

/* ============================================================
   CHECKBOX GROUP — opções inline e tamanho contido
   ============================================================ */
.sf-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    align-items: center;
    padding: 4px;
    border-radius: 8px;
    transition: box-shadow .15s, background .15s;
}

.sf-checkbox-group--error {
    box-shadow: 0 0 0 2px #ef4444;
}

.sf-checkbox-group label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #1e293b;
    cursor: pointer;
    margin: 0;
    padding: 6px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #fff;
    transition: background .15s, border-color .15s;
}

.sf-checkbox-group label:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.sf-checkbox-group input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #0f1b3d;
    flex-shrink: 0;
}

.sf-checkbox-group label:has(input:checked) {
    background: #fffbeb;
    border-color: #fbbf24;
    color: #0f1b3d;
    font-weight: 600;
}

.sf-checkbox-group label span {
    font-size: 13px;
}

/* sf-checkbox simples (não em group) — 1 só */
.sf-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
}
.sf-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #0f1b3d;
}
