/**
 * CSS para Modal de Novo Atendimento - sim-relatorios
 * Identidade visual roxa (#5b3aab)
 */

.modal-novo-atendimento {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    animation: naFadeIn 0.2s ease-in;
}

.modal-novo-atendimento.active {
    display: flex !important;
    justify-content: center;
    align-items: flex-start;
    padding: 2rem;
}

.modal-novo-atendimento-content {
    background-color: var(--card-background, #fff);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(91, 58, 171, 0.25);
    width: 100%;
    max-width: 1050px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: naSlideDown 0.3s ease-out;
}

@keyframes naFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes naSlideDown {
    from { transform: translateY(-30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-novo-atendimento-header {
    background: linear-gradient(135deg, #5b3aab 0%, #8b5cf6 100%);
    color: white;
    padding: 1.2rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid rgba(255, 255, 255, 0.2);
}

.modal-novo-atendimento-header h2 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.modal-novo-atendimento-header .modal-close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.modal-novo-atendimento-header .modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.modal-novo-atendimento-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

/* Steps/Wizard */
.atendimento-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    position: relative;
}

.atendimento-steps::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e0e0e0;
    z-index: 0;
}

.atendimento-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.step-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
    transition: all 0.3s;
}

.atendimento-step.active .step-circle {
    background: #5b3aab;
    color: white;
    box-shadow: 0 3px 8px rgba(91, 58, 171, 0.4);
}

.atendimento-step.completed .step-circle {
    background: #8b5cf6;
    color: white;
}

.step-label {
    font-size: 0.75rem;
    color: #666;
    text-align: center;
    font-weight: 500;
}

.atendimento-step.active .step-label {
    color: #5b3aab;
    font-weight: 600;
}

/* Form Styles */
.na-form-section {
    margin-bottom: 1.5rem;
}

.na-form-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.8rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid #5b3aab;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.na-form-group-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.8rem;
    margin-bottom: 0.8rem;
}

.na-form-group {
    display: flex;
    flex-direction: column;
}

.na-form-group label {
    font-weight: 500;
    color: #555;
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
}

.na-form-group input,
.na-form-group select {
    padding: 0.6rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.2s;
    background: var(--input-background, #fff);
    color: var(--text-color, #333);
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
}

.na-form-group input:focus,
.na-form-group select:focus {
    outline: none;
    border-color: #5b3aab;
    box-shadow: 0 0 0 3px rgba(91, 58, 171, 0.1);
}

.na-form-group input:disabled,
.na-form-group select:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
}

/* Autocomplete */
.na-autocomplete-wrapper {
    position: relative;
    width: 100%;
}

.na-autocomplete-wrapper input {
    width: 100%;
    box-sizing: border-box;
}

.na-autocomplete-results {
    position: fixed;
    background: var(--card-background, #fff);
    border: 1px solid #ccc;
    border-radius: 0 0 8px 8px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 99999;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    display: none;
}

.na-autocomplete-results.active {
    display: block;
}

.na-autocomplete-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid #f0f0f0;
}

.na-autocomplete-item:hover {
    background: #f4f1fa;
}

.na-autocomplete-item:last-child {
    border-bottom: none;
}

.na-autocomplete-item-title {
    font-weight: 500;
    color: #333;
}

.na-autocomplete-item-subtitle {
    font-size: 0.85rem;
    color: #666;
}

/* Procedimentos List */
.na-procedimentos-list {
    border: 1px solid #ddd;
    border-radius: 6px;
    min-height: 100px;
    overflow: visible;
}

.na-procedimento-item {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    position: relative;
    transition: all 0.2s;
    overflow: visible;
}

.na-procedimento-item:hover {
    background: #f4f1fa;
    border-color: #d4c8f0;
}

.na-proc-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.na-procedimento-nome {
    font-weight: 600;
    color: #212529;
    font-size: 0.95rem;
}

.na-procedimento-codigo {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 2px;
}

.na-proc-fields {
    display: grid;
    grid-template-columns: 1fr 90px;
    gap: 0.75rem;
    align-items: start;
}

.na-proc-field label {
    display: block;
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 0.3rem;
    font-weight: 500;
}

.na-proc-field input {
    width: 100%;
    padding: 0.45rem 0.6rem;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 0.88rem;
    transition: border-color 0.2s;
}

.na-proc-field input:focus {
    border-color: #5b3aab;
    outline: none;
    box-shadow: 0 0 0 2px rgba(91, 58, 171, 0.15);
}

.na-proc-med-status {
    font-size: 0.75rem;
    margin-top: 0.2rem;
}

.na-btn-remover-procedimento {
    padding: 0.4rem 0.6rem;
    background: transparent;
    color: #dc3545;
    border: 1px solid #dc3545;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.85rem;
}

.na-btn-remover-procedimento:hover {
    background: #dc3545;
    color: white;
}

/* Info Box */
.na-info-box {
    background: #f0f9ff;
    border-left: 4px solid #0288d1;
    padding: 1rem;
    border-radius: 6px;
    margin: 1rem 0;
}

.na-info-box.success {
    background: #f4f1fa;
    border-color: #5b3aab;
}

.na-info-box-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.na-info-box-content {
    color: #666;
    font-size: 0.9rem;
}

/* Footer */
.modal-novo-atendimento-footer {
    padding: 1rem 1.5rem;
    background: #f8f8f8;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.na-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.na-btn-secondary {
    background: #6c757d;
    color: white;
}

.na-btn-secondary:hover {
    background: #5a6268;
}

.na-btn-primary {
    background: #5b3aab;
    color: white;
}

.na-btn-primary:hover {
    background: #8b5cf6;
}

.na-btn-success {
    background: #28a745;
    color: white;
}

.na-btn-success:hover {
    background: #218838;
}

.na-btn-warning {
    background: #f59e0b;
    color: white;
}

.na-btn-warning:hover {
    background: #d97706;
}

.na-btn-info {
    background: #3b82f6;
    color: white;
}

.na-btn-info:hover {
    background: #2563eb;
}

.na-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Step 4 - Banner de sucesso */
.na-s4-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 0.7rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #166534;
}
.na-s4-banner i { font-size: 1.1rem; color: #16a34a; }
.na-s4-banner strong { color: #15803d; }
.na-s4-banner-sep { color: #bbf7d0; font-weight: 300; }

/* Step 4 - Navegação entre atendimentos */
.na-s4-nav-atendimentos {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    background: #f3f0ff;
    border: 1px solid #c4b5fd;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
}
.na-nav-btn {
    background: #5b3aab;
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    flex-shrink: 0;
}
.na-nav-btn:hover:not(:disabled) {
    background: #8b5cf6;
}
.na-nav-btn:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}
.na-nav-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}
.na-nav-select {
    flex: 1;
    padding: 0.4rem 0.6rem;
    border: 1px solid #c4b5fd;
    border-radius: 6px;
    font-size: 0.85rem;
    background: white;
    color: #333;
    cursor: pointer;
    min-width: 0;
}
.na-nav-select:focus {
    outline: none;
    border-color: #5b3aab;
    box-shadow: 0 0 0 2px rgba(91, 58, 171, 0.15);
}
.na-nav-counter {
    font-size: 0.8rem;
    color: #5b3aab;
    font-weight: 600;
    white-space: nowrap;
}

/* Step 4 - Resumo em linha */
.na-s4-resumo {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.na-s4-item {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: #f8f9fb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.7rem 0.85rem;
}
.na-s4-item i {
    font-size: 1rem;
    color: #9ca3af;
    flex-shrink: 0;
}
.na-s4-item div { min-width: 0; }
.na-s4-item small {
    display: block;
    font-size: 0.7rem;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1;
}
.na-s4-item strong {
    display: block;
    font-size: 1.05rem;
    color: #1f2937;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.na-s4-senha {
    background: #fef3c7;
    border-color: #fcd34d;
}
.na-s4-senha i { color: #d97706; }
.na-s4-senha strong { color: #92400e; }
.na-s4-valor {
    background: #f3f0ff;
    border-color: #c4b5fd;
}
.na-s4-valor i { color: #7c3aed; }
.na-s4-valor strong { color: #5b21b6; }
.na-s4-adiant {
    background: #f0fdf4;
    border-color: #86efac;
}
.na-s4-adiant i { color: #16a34a; }
.na-s4-adiant strong { color: #166534; }

/* Step 4 - Botoes de acao */
.na-s4-actions {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.na-s4-actions button {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.85rem;
    border: 1px solid #d1d5db;
    background: white;
    color: #374151;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
}
.na-s4-actions button:hover {
    border-color: #5b3aab;
    color: #5b3aab;
    background: #faf8ff;
}
.na-s4-actions button.active {
    background: #5b3aab;
    color: white;
    border-color: #5b3aab;
}
.na-s4-actions button i { font-size: 0.75rem; }

/* Loading */
.na-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.na-loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #5b3aab;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: naSpin 1s linear infinite;
}

@keyframes naSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Empty State */
.na-empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #999;
}

.na-empty-state i {
    font-size: 3rem;
    opacity: 0.3;
    margin-bottom: 1rem;
}

/* Orcamento Cards */
.na-orcamento-card {
    background: var(--card-background, #fff);
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.2s ease;
    margin-bottom: 1rem;
}

.na-orcamento-card:hover {
    border-color: #5b3aab;
    box-shadow: 0 4px 12px rgba(91, 58, 171, 0.15);
    transform: translateY(-2px);
}

/* Cupom Cards */
.na-cupom-card {
    background: var(--card-background, #fff);
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.2s ease;
    margin-bottom: 1rem;
}

.na-cupom-card:hover {
    border-color: #5b3aab;
    box-shadow: 0 4px 12px rgba(91, 58, 171, 0.15);
    transform: translateY(-2px);
}

/* Modal Overlay para sub-modais */
.na-modal-overlay {
    display: flex;
    position: fixed;
    z-index: 11000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.na-modal-container {
    background: var(--card-background, #fff);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: naSlideDown 0.3s ease-out;
}

.na-modal-header {
    background: linear-gradient(135deg, #5b3aab 0%, #8b5cf6 100%);
    color: white;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.na-modal-header h3 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.na-modal-body {
    padding: 1.5rem;
    padding-bottom: 2rem;
    overflow-y: auto;
    flex: 1;
}

.na-modal-footer {
    padding: 1rem 1.5rem;
    background: #f8f8f8;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: flex-end;
    gap: 0.8rem;
}

/* Botões de quantidade */
.na-btn-quantidade-mais:hover {
    background: #218838 !important;
    transform: scale(1.1);
}

.na-btn-quantidade-menos:hover {
    background: #c82333 !important;
    transform: scale(1.1);
}

.na-btn-remover-item:hover {
    background: #5a6268 !important;
    transform: scale(1.1);
}

/* Toast Notifications */
#na-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 12000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
}

.na-toast {
    background: white;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transform: translateX(450px);
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
    opacity: 0;
    border-left: 4px solid #ccc;
    min-width: 300px;
    max-width: 400px;
}

.na-toast.show {
    transform: translateX(0);
    opacity: 1;
}

.na-toast i:first-child {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.na-toast-message {
    flex: 1;
    color: #333;
    font-size: 0.95rem;
    line-height: 1.4;
    word-wrap: break-word;
}

.na-toast-close {
    background: transparent;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.na-toast-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #333;
}

.na-toast-success { border-left-color: #28a745; background: #f0fdf4; }
.na-toast-success i:first-child { color: #28a745; }
.na-toast-error { border-left-color: #dc3545; background: #fef2f2; }
.na-toast-error i:first-child { color: #dc3545; }
.na-toast-warning { border-left-color: #ffc107; background: #fffbeb; }
.na-toast-warning i:first-child { color: #f59e0b; }
.na-toast-info { border-left-color: #17a2b8; background: #f0f9ff; }
.na-toast-info i:first-child { color: #17a2b8; }

/* Dark Mode */
[data-theme="dark"] .modal-novo-atendimento-content,
body.dark-mode .modal-novo-atendimento-content {
    background-color: #1e1e1e;
}

[data-theme="dark"] .modal-novo-atendimento-footer,
body.dark-mode .modal-novo-atendimento-footer {
    background: #2a2a2a;
    border-top-color: #333;
}

[data-theme="dark"] .na-form-group input,
[data-theme="dark"] .na-form-group select,
body.dark-mode .na-form-group input,
body.dark-mode .na-form-group select {
    background: #2a2a2a;
    color: #fff;
    border-color: #444;
}

[data-theme="dark"] .na-form-group label,
body.dark-mode .na-form-group label {
    color: #ccc;
}

[data-theme="dark"] .na-form-section-title,
body.dark-mode .na-form-section-title {
    color: #fff;
}

[data-theme="dark"] .na-autocomplete-results,
body.dark-mode .na-autocomplete-results {
    background: #2a2a2a;
    border-color: #444;
}

[data-theme="dark"] .na-autocomplete-item:hover,
body.dark-mode .na-autocomplete-item:hover {
    background: #333;
}

[data-theme="dark"] .na-autocomplete-item-title,
body.dark-mode .na-autocomplete-item-title {
    color: #fff;
}

[data-theme="dark"] .na-procedimento-item,
body.dark-mode .na-procedimento-item {
    background: #2a2a2a;
    border-color: #444;
}

[data-theme="dark"] .na-procedimento-item:hover,
body.dark-mode .na-procedimento-item:hover {
    background: #333;
}

[data-theme="dark"] .na-procedimento-nome,
body.dark-mode .na-procedimento-nome {
    color: #fff;
}

[data-theme="dark"] .na-info-box,
body.dark-mode .na-info-box {
    background: #1a2332;
}

[data-theme="dark"] .na-info-box.success,
body.dark-mode .na-info-box.success {
    background: #2a1f3d;
}

[data-theme="dark"] .na-info-box-title,
body.dark-mode .na-info-box-title {
    color: #fff;
}

[data-theme="dark"] .na-info-box-content,
body.dark-mode .na-info-box-content {
    color: #ccc;
}

[data-theme="dark"] .na-procedimentos-list,
body.dark-mode .na-procedimentos-list {
    border-color: #444;
}

[data-theme="dark"] .step-label,
body.dark-mode .step-label {
    color: #999;
}

[data-theme="dark"] .atendimento-step.active .step-label,
body.dark-mode .atendimento-step.active .step-label {
    color: #8b5cf6;
}

[data-theme="dark"] .na-toast,
body.dark-mode .na-toast {
    background: #2d3748;
}

[data-theme="dark"] .na-toast-message,
body.dark-mode .na-toast-message {
    color: #e2e8f0;
}

[data-theme="dark"] .na-toast-success,
body.dark-mode .na-toast-success { background: #1a2e1f; }
[data-theme="dark"] .na-toast-error,
body.dark-mode .na-toast-error { background: #2e1a1a; }
[data-theme="dark"] .na-toast-warning,
body.dark-mode .na-toast-warning { background: #2e2a1a; }
[data-theme="dark"] .na-toast-info,
body.dark-mode .na-toast-info { background: #1a2a2e; }

[data-theme="dark"] .na-modal-container,
body.dark-mode .na-modal-container {
    background: #1e1e1e;
}

[data-theme="dark"] .na-modal-footer,
body.dark-mode .na-modal-footer {
    background: #2a2a2a;
    border-top-color: #333;
}

[data-theme="dark"] .na-orcamento-card,
body.dark-mode .na-orcamento-card {
    background: #2d3748;
    border-color: #444;
}

[data-theme="dark"] .na-cupom-card,
body.dark-mode .na-cupom-card {
    background: #2d3748;
    border-color: #444;
}

[data-theme="dark"] .na-s4-banner,
body.dark-mode .na-s4-banner {
    background: #1a2e1f;
    border-color: #2d5a3a;
    color: #86efac;
}
[data-theme="dark"] .na-s4-banner strong,
body.dark-mode .na-s4-banner strong { color: #4ade80; }

[data-theme="dark"] .na-s4-item,
body.dark-mode .na-s4-item {
    background: #1e293b;
    border-color: #334155;
}
[data-theme="dark"] .na-s4-item strong,
body.dark-mode .na-s4-item strong { color: #e2e8f0; }
[data-theme="dark"] .na-s4-item small,
body.dark-mode .na-s4-item small { color: #64748b; }
[data-theme="dark"] .na-s4-item i,
body.dark-mode .na-s4-item i { color: #64748b; }

[data-theme="dark"] .na-s4-senha,
body.dark-mode .na-s4-senha { background: #2e2612; border-color: #78350f; }
[data-theme="dark"] .na-s4-senha strong,
body.dark-mode .na-s4-senha strong { color: #fbbf24; }
[data-theme="dark"] .na-s4-senha i,
body.dark-mode .na-s4-senha i { color: #f59e0b; }

[data-theme="dark"] .na-s4-valor,
body.dark-mode .na-s4-valor { background: #1e1638; border-color: #3b2d6b; }
[data-theme="dark"] .na-s4-valor strong,
body.dark-mode .na-s4-valor strong { color: #c4b5fd; }

[data-theme="dark"] .na-s4-adiant,
body.dark-mode .na-s4-adiant { background: #132a1c; border-color: #166534; }
[data-theme="dark"] .na-s4-adiant strong,
body.dark-mode .na-s4-adiant strong { color: #86efac; }

[data-theme="dark"] .na-s4-nav-atendimentos,
body.dark-mode .na-s4-nav-atendimentos {
    background: #1e1638;
    border-color: #3b2d6b;
}
[data-theme="dark"] .na-nav-select,
body.dark-mode .na-nav-select {
    background: #2a2a2a;
    color: #e2e8f0;
    border-color: #475569;
}
[data-theme="dark"] .na-nav-counter,
body.dark-mode .na-nav-counter {
    color: #c4b5fd;
}

[data-theme="dark"] .na-s4-actions button,
body.dark-mode .na-s4-actions button {
    background: #1e293b;
    border-color: #475569;
    color: #cbd5e1;
}
[data-theme="dark"] .na-s4-actions button:hover,
body.dark-mode .na-s4-actions button:hover {
    border-color: #8b5cf6;
    color: #c4b5fd;
    background: #1e1638;
}
[data-theme="dark"] .na-s4-actions button.active,
body.dark-mode .na-s4-actions button.active {
    background: #5b3aab;
    color: white;
    border-color: #5b3aab;
}

/* Responsive */
@media (max-width: 768px) {
    .modal-novo-atendimento.active {
        padding: 0.5rem;
    }

    .modal-novo-atendimento-content {
        max-height: 95vh;
    }

    .na-form-group-row {
        grid-template-columns: 1fr;
    }

    .na-proc-fields {
        grid-template-columns: 1fr;
    }

    .modal-novo-atendimento-footer {
        flex-direction: column;
    }

    .na-btn {
        width: 100%;
        justify-content: center;
    }
}
