/* =====================================================================
   EQUIPE.CSS — Estilos da aba "Gerenciar Equipe"
   Escopo: modais de usuário + lista de usuários + filtros
   Prefixos: .usr- (modais) | .usl- (user list)
   ===================================================================== */

/* =====================================================================
   1. VARIÁVEIS DA SEÇÃO
   ===================================================================== */
:root {
    /* Cores primárias */
    --usr-blue: #3b82f6;
    --usr-blue-dark: #2563eb;
    --usr-blue-light: #60a5fa;
    --usr-orange: #ea580c;
    --usr-orange-light: #fb923c;
    
    /* Fundos */
    --usr-bg-body: #f8fafc;
    --usr-bg-card: #ffffff;
    --usr-bg-hero-add: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --usr-bg-hero-edit: linear-gradient(135deg, #7c2d12 0%, #c2410c 100%);
    
    /* Textos */
    --usr-text-dark: #0f172a;
    --usr-text-muted: #94a3b8;
    --usr-text-label: #475569;
    
    /* Bordas */
    --usr-border: #e2e8f0;
    --usr-border-light: #f1f5f9;
    --usr-radius-sm: 8px;
    --usr-radius-md: 12px;
    --usr-radius-lg: 16px;
    --usr-radius-xl: 24px;
    --usr-radius-pill: 50px;
    
    /* Sombras */
    --usr-shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --usr-shadow-md: 0 8px 20px rgba(0,0,0,0.08);
    --usr-shadow-lg: 0 14px 30px rgba(0,0,0,0.12);
}

/* =====================================================================
   2. MODAL: ADICIONAR / EDITAR USUÁRIO — RESET
   ===================================================================== */
#addUserModal .modal-body,
#editUserModal .modal-body {
    padding: 0 !important;
    background: var(--usr-bg-body);
}
#addUserModal .modal-header,
#editUserModal .modal-header { display: none !important; }
#addUserModal .modal-footer,
#editUserModal .modal-footer { padding: 0 !important; }
#addUserModal .modal-content,
#editUserModal .modal-content {
    border-radius: var(--usr-radius-xl) !important;
    overflow: hidden;
}

/* =====================================================================
   3. HERO DOS MODAIS
   ===================================================================== */
.usr-hero {
    padding: 28px 36px;
    position: relative;
    overflow: hidden;
    background: var(--usr-bg-hero-add);
}
.usr-hero.usr-hero-edit { background: var(--usr-bg-hero-edit); }

.usr-hero::before {
    content: '';
    position: absolute;
    top: -60%; right: -5%;
    width: 320px; height: 320px;
    background: radial-gradient(circle, rgba(59,130,246,0.25) 0%, transparent 70%);
    border-radius: 50%;
}
.usr-hero.usr-hero-edit::before {
    background: radial-gradient(circle, rgba(251,146,60,0.25) 0%, transparent 70%);
}
.usr-hero::after {
    content: '';
    position: absolute;
    bottom: -80%; left: 8%;
    width: 240px; height: 240px;
    background: radial-gradient(circle, rgba(16,185,129,0.15) 0%, transparent 70%);
    border-radius: 50%;
}
.usr-hero.usr-hero-edit::after {
    background: radial-gradient(circle, rgba(254,215,170,0.15) 0%, transparent 70%);
}

.usr-hero-icon {
    width: 58px; height: 58px;
    background: linear-gradient(135deg, var(--usr-blue-light) 0%, var(--usr-blue-dark) 100%);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 12px 28px rgba(59,130,246,0.5);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}
.usr-hero.usr-hero-edit .usr-hero-icon {
    background: linear-gradient(135deg, var(--usr-orange-light) 0%, var(--usr-orange) 100%);
    box-shadow: 0 12px 28px rgba(234,88,12,0.5);
}

.usr-hero-content { position: relative; z-index: 1; }

.usr-hero-badge {
    background: rgba(96,165,250,0.2);
    color: #93c5fd;
    font-size: 0.65rem;
    letter-spacing: 1.5px;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 20px;
    display: inline-block;
}
.usr-hero.usr-hero-edit .usr-hero-badge {
    background: rgba(251,146,60,0.2);
    color: #fed7aa;
}

/* =====================================================================
   4. BODY DOS MODAIS
   ===================================================================== */
.usr-body { padding: 32px 36px; }

.usr-section-label {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--usr-text-muted);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.usr-section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, var(--usr-border), transparent);
}

/* =====================================================================
   5. CAMPOS (INPUTS / SELECTS)
   ===================================================================== */
.usr-field { margin-bottom: 18px; }

.usr-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--usr-text-label);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}
.usr-label .required { color: #dc2626; margin-left: 2px; }
.usr-label .optional {
    color: var(--usr-text-muted);
    font-weight: 600;
    font-size: 0.65rem;
    letter-spacing: 0.5px;
    margin-left: 4px;
    text-transform: none;
}

.usr-input-wrap { position: relative; }
.usr-input-wrap i.field-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--usr-text-muted);
    font-size: 0.95rem;
    pointer-events: none;
    z-index: 2;
    transition: color 0.2s;
}

.usr-input, .usr-select {
    width: 100%;
    border: 2px solid var(--usr-border);
    border-radius: var(--usr-radius-md);
    padding: 13px 16px 13px 44px;
    font-weight: 600;
    color: var(--usr-text-dark);
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.2s;
    background: white;
}
.usr-input:focus, .usr-select:focus {
    border-color: var(--usr-blue);
    box-shadow: 0 0 0 4px rgba(59,130,246,0.1);
    outline: none;
}

/* Cor de foco laranja nos modais de edição */
#editUserModal .usr-input:focus,
#editUserModal .usr-select:focus {
    border-color: var(--usr-orange);
    box-shadow: 0 0 0 4px rgba(234,88,12,0.1);
}
#editUserModal .usr-input-wrap:focus-within i.field-icon { color: var(--usr-orange); }

.usr-input:focus ~ i.field-icon,
.usr-input-wrap:focus-within i.field-icon { color: var(--usr-blue); }

.usr-input::placeholder { color: #cbd5e1; font-weight: 500; }
.usr-input[readonly] {
    background: var(--usr-border-light);
    color: #64748b;
    cursor: not-allowed;
}

.usr-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2394a3b8' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 14px;
    padding-right: 44px;
}

.usr-hint {
    font-size: 0.7rem;
    color: var(--usr-text-muted);
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
}

/* Toggle de senha */
.usr-toggle-pass {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--usr-text-muted);
    padding: 8px 12px;
    border-radius: var(--usr-radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    z-index: 3;
}
.usr-toggle-pass:hover {
    color: var(--usr-blue);
    background: rgba(59,130,246,0.08);
}
#editUserModal .usr-toggle-pass:hover {
    color: var(--usr-orange);
    background: rgba(234,88,12,0.08);
}

/* =====================================================================
   6. BLOCO DE FILIAL
   ===================================================================== */
.usr-branch-box {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 2px solid #93c5fd;
    border-radius: var(--usr-radius-lg);
    padding: 20px;
    margin-top: 6px;
    display: none;
}
.usr-branch-box.active { display: block; }

/* Variação para modal de edição */
#editUserModal .usr-branch-box {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border-color: #fdba74;
}

.usr-branch-box-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}
.usr-branch-box-header i {
    color: var(--usr-blue-dark);
    font-size: 1.2rem;
}
#editUserModal .usr-branch-box-header i { color: var(--usr-orange); }

.usr-branch-box-header .text {
    color: #1e40af;
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
#editUserModal .usr-branch-box-header .text { color: #7c2d12; }

/* =====================================================================
   7. PREVIEW (avatar + nome)
   ===================================================================== */
.usr-preview {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: white;
    border: 2px dashed var(--usr-border);
    border-radius: var(--usr-radius-lg);
    margin-bottom: 18px;
    transition: all 0.2s;
}
.usr-preview.active {
    border-style: solid;
    border-color: var(--usr-blue);
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
}
#editUserModal .usr-preview {
    border-style: solid;
    border-color: var(--usr-orange);
    background: linear-gradient(135deg, #fff7ed 0%, #ffffff 100%);
}

.usr-preview-avatar {
    width: 52px; height: 52px;
    background: linear-gradient(135deg, var(--usr-blue), var(--usr-blue-dark));
    color: white;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(59,130,246,0.3);
}
#editUserModal .usr-preview-avatar {
    background: linear-gradient(135deg, var(--usr-orange-light), var(--usr-orange));
    box-shadow: 0 4px 12px rgba(234,88,12,0.3);
}

.usr-preview-info { flex-grow: 1; }
.usr-preview-name {
    font-weight: 800;
    color: var(--usr-text-dark);
    font-size: 0.95rem;
    margin-bottom: 2px;
}
.usr-preview-user {
    font-size: 0.75rem;
    color: var(--usr-text-muted);
    font-weight: 600;
}
.usr-preview-badge {
    background: rgba(234,88,12,0.1);
    color: var(--usr-orange);
    font-size: 0.65rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

/* =====================================================================
   8. FOOTER DOS MODAIS
   ===================================================================== */
.usr-footer {
    background: white;
    padding: 20px 36px;
    border-top: 1px solid var(--usr-border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.usr-btn-cancel {
    background: var(--usr-border-light);
    color: var(--usr-text-label);
    border: 1.5px solid var(--usr-border);
    border-radius: var(--usr-radius-pill);
    padding: 12px 28px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.2s;
    cursor: pointer;
}
.usr-btn-cancel:hover { background: var(--usr-border); color: var(--usr-text-dark); }

.usr-btn-submit {
    background: linear-gradient(135deg, var(--usr-blue-light) 0%, var(--usr-blue-dark) 100%);
    color: white;
    border: none;
    border-radius: var(--usr-radius-pill);
    padding: 15px 40px;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 0.3px;
    box-shadow: 0 8px 20px rgba(59,130,246,0.4);
    transition: all 0.25s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}
.usr-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(59,130,246,0.5);
}
#editUserModal .usr-btn-submit {
    background: linear-gradient(135deg, var(--usr-orange-light) 0%, var(--usr-orange) 100%);
    box-shadow: 0 8px 20px rgba(234,88,12,0.4);
}
#editUserModal .usr-btn-submit:hover {
    box-shadow: 0 14px 30px rgba(234,88,12,0.5);
}

/* =====================================================================
   9. ANIMAÇÕES
   ===================================================================== */
@keyframes usrSlideUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
.usr-anim { animation: usrSlideUp 0.35s ease-out both; }

/* =====================================================================
   10. LISTA DE USUÁRIOS — Estrutura Principal (.usl-)
   ===================================================================== */

/* Container do card principal */
.usl-card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* =====================================================================
   10.1 HEADER (faixa escura com título + botão)
   ===================================================================== */
.usl-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 24px;
    border: none;
}

.usl-header-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(59,130,246,0.4);
    flex-shrink: 0;
}
.usl-header-icon i {
    color: white;
    font-size: 1.4rem;
}

.usl-header-title {
    color: white;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin: 0;
}

.usl-header-subtitle {
    color: rgba(255,255,255,0.5);
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 1px;
}

/* Botão "Adicionar Usuário" */
.usl-btn-add {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 24px;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(245,158,11,0.4);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    transition: all 0.25s;
    cursor: pointer;
}
.usl-btn-add:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245,158,11,0.5);
}

/* =====================================================================
   10.2 BODY (área cinza de fundo)
   ===================================================================== */
.usl-body {
    padding: 24px;
    background: #f8fafc;
}

/* =====================================================================
   10.3 FILTROS (busca + selects)
   ===================================================================== */
.usl-filters {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}
@media (max-width: 992px) {
    .usl-filters { grid-template-columns: 1fr; }
}

.usl-search-wrap {
    display: flex;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #e2e8f0;
    transition: border-color 0.2s;
}
.usl-search-wrap:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59,130,246,0.1);
}
.usl-search-icon {
    padding: 0 16px;
    display: flex;
    align-items: center;
    color: #94a3b8;
}
.usl-search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 14px 0;
    font-weight: 600;
    font-size: 0.95rem;
    color: #0f172a;
    background: transparent;
}
.usl-search-input::placeholder {
    color: #94a3b8;
    font-weight: 500;
}

.usl-select {
    width: 100%;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 16px;
    font-weight: 700;
    color: #475569;
    font-size: 0.95rem;
    height: 52px;
    cursor: pointer;
    background: white;
    transition: border-color 0.2s;
}
.usl-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59,130,246,0.1);
    outline: none;
}

/* =====================================================================
   10.4 KPIs (TOTAL / ADMINS / FILIAIS)
   ===================================================================== */
.usl-kpis {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}
@media (max-width: 768px) {
    .usl-kpis { grid-template-columns: 1fr; }
}

.usl-kpi {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s;
}
.usl-kpi:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.usl-kpi-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.usl-kpi-icon.blue   { background: rgba(59,130,246,0.1);  color: #3b82f6; }
.usl-kpi-icon.green  { background: rgba(16,185,129,0.1);  color: #10b981; }
.usl-kpi-icon.orange { background: rgba(245,158,11,0.1);  color: #f59e0b; }

.usl-kpi-label {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: #94a3b8;
    text-transform: uppercase;
}
.usl-kpi-value {
    font-weight: 800;
    font-size: 1.3rem;
    color: #0f172a;
    line-height: 1;
    margin-top: 2px;
}

/* =====================================================================
   10.5 TABELA DE USUÁRIOS
   ===================================================================== */
.usl-table-wrap {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    max-height: 480px;
    overflow-y: auto;
}
.usl-table-wrap::-webkit-scrollbar { width: 8px; }
.usl-table-wrap::-webkit-scrollbar-track { background: #f8fafc; }
.usl-table-wrap::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
.usl-table-wrap::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

.usl-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.usl-table thead {
    position: sticky;
    top: 0;
    background: #f1f5f9;
    z-index: 5;
}
.usl-table thead th {
    border: none;
    padding: 16px;
    font-size: 0.7rem;
    letter-spacing: 1px;
    color: #64748b;
    font-weight: 800;
    text-transform: uppercase;
    text-align: left;
}
.usl-table thead th.text-end { text-align: right; }

.usl-table tbody td {
    border: none;
    padding: 14px 16px;
    vertical-align: middle;
    border-top: 1px solid #f8fafc;
}
.usl-table tbody tr { transition: background 0.15s; }
.usl-table tbody tr:hover { background: #f8fafc; }

/* =====================================================================
   10.6 CÉLULA DE USUÁRIO (avatar + nome + username)
   ===================================================================== */
.usl-user-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.usl-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(59,130,246,0.25);
}

.usl-user-name {
    font-weight: 800;
    color: #0f172a;
    font-size: 0.9rem;
    line-height: 1.2;
}
.usl-user-login {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 600;
    margin-top: 2px;
}

/* =====================================================================
   10.7 BADGES DE PERMISSÃO E FILIAL
   ===================================================================== */
.usl-badge-role {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.7rem;
    white-space: nowrap;
}

.usl-badge-branch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.75rem;
    background: #f1f5f9;
    color: #0f172a;
    border: 1px solid #e2e8f0;
    white-space: nowrap;
}
.usl-badge-branch i { color: #3b82f6; }

.usl-empty-branch {
    color: #94a3b8;
    font-size: 0.85rem;
    font-style: italic;
}

/* =====================================================================
   10.8 BOTÕES DE AÇÃO (editar / excluir)
   ===================================================================== */
.usl-actions {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
}

.usl-btn-action {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: white;
    border: 1px solid #e2e8f0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    cursor: pointer;
}
.usl-btn-action:hover {
    background: #f8fafc;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.06);
}
.usl-btn-action i { font-size: 0.85rem; }
.usl-btn-action.edit i   { color: #3b82f6; }
.usl-btn-action.delete i { color: #dc2626; }

/* =====================================================================
   10.9 EMPTY STATE (nenhum usuário encontrado)
   ===================================================================== */
.usl-empty {
    text-align: center;
    padding: 60px 20px;
}
.usl-empty-icon {
    width: 70px;
    height: 70px;
    background: #f1f5f9;
    color: #cbd5e1;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 16px;
}
.usl-empty-title {
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 4px;
}
.usl-empty-desc {
    color: #94a3b8;
    font-size: 0.85rem;
    margin: 0;
}

/* =====================================================================
   10.10 PAGINAÇÃO
   ===================================================================== */
.usl-pagination {
    display: flex;
    justify-content: center;
    margin-top: 16px;
    gap: 6px;
}

/* =====================================================================
   11. TÉCNICOS (.tec-)
   ===================================================================== */

/* Grid que segura os 2 cards lado a lado */
.tec-grid {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 24px;
    margin-bottom: 24px;
}
@media (max-width: 992px) {
    .tec-grid { grid-template-columns: 1fr; }
}

/* =====================================================================
   11.1 CARD: NOVO TÉCNICO (verde)
   ===================================================================== */
.tec-card-form {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

.tec-card-form-header {
    background: linear-gradient(135deg, #064e3b 0%, #047857 100%);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    overflow: hidden;
}
.tec-card-form-header::before {
    content: '';
    position: absolute;
    top: -60%; right: -10%;
    width: 240px; height: 240px;
    background: radial-gradient(circle, rgba(16,185,129,0.3) 0%, transparent 70%);
    border-radius: 50%;
}

.tec-form-icon {
    width: 48px; height: 48px;
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(16,185,129,0.4);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}
.tec-form-icon i {
    color: white;
    font-size: 1.2rem;
}

.tec-form-title {
    color: white;
    font-weight: 800;
    font-size: 1.1rem;
    margin: 0;
    letter-spacing: -0.5px;
    position: relative;
    z-index: 1;
}
.tec-form-subtitle {
    color: rgba(255,255,255,0.6);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 2px;
    position: relative;
    z-index: 1;
}

.tec-form-body {
    padding: 24px;
    background: #f8fafc;
    flex-grow: 1;
}

.tec-field {
    margin-bottom: 16px;
}
.tec-field-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 800;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}
.tec-field-input {
    width: 100%;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 16px;
    font-weight: 600;
    color: #0f172a;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.2s;
    background: white;
}
.tec-field-input:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 4px rgba(16,185,129,0.1);
    outline: none;
}

.tec-btn-submit {
    width: 100%;
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 14px;
    font-weight: 800;
    font-size: 0.95rem;
    box-shadow: 0 6px 16px rgba(16,185,129,0.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.25s;
    margin-top: 8px;
}
.tec-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(16,185,129,0.45);
    color: white;
}

/* =====================================================================
   11.2 CARD: LISTA DE TÉCNICOS (azul escuro)
   ===================================================================== */
.tec-card-list {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

.tec-card-list-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: relative;
    overflow: hidden;
}
.tec-card-list-header::before {
    content: '';
    position: absolute;
    top: -60%; right: -5%;
    width: 260px; height: 260px;
    background: radial-gradient(circle, rgba(59,130,246,0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.tec-list-title {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}
.tec-list-title-icon {
    width: 42px; height: 42px;
    background: linear-gradient(135deg, #60a5fa 0%, #2563eb 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(59,130,246,0.4);
    flex-shrink: 0;
}
.tec-list-title-icon i {
    color: white;
    font-size: 1.1rem;
}
.tec-list-title-text {
    color: white;
    font-weight: 800;
    font-size: 1rem;
    margin: 0;
}
.tec-list-title-sub {
    color: rgba(255,255,255,0.5);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 2px;
}

.tec-list-badge {
    background: rgba(255,255,255,0.15);
    color: white;
    font-weight: 800;
    font-size: 0.85rem;
    padding: 6px 14px;
    border-radius: 50px;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.15);
}

.tec-list-body {
    padding: 20px 24px 24px;
    background: #f8fafc;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Busca de técnicos */
.tec-search-wrap {
    display: flex;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #e2e8f0;
    transition: border-color 0.2s;
    margin-bottom: 16px;
}
.tec-search-wrap:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59,130,246,0.1);
}
.tec-search-icon {
    padding: 0 16px;
    display: flex;
    align-items: center;
    color: #94a3b8;
}
.tec-search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 14px 0;
    font-weight: 600;
    font-size: 0.95rem;
    color: #0f172a;
    background: transparent;
}
.tec-search-input::placeholder {
    color: #94a3b8;
    font-weight: 500;
}

/* Tabela de técnicos */
.tec-table-wrap {
    background: white;
    border-radius: 14px;
    overflow: hidden;
    max-height: 380px;
    overflow-y: auto;
    flex-grow: 1;
}
.tec-table-wrap::-webkit-scrollbar { width: 8px; }
.tec-table-wrap::-webkit-scrollbar-track { background: #f8fafc; }
.tec-table-wrap::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.tec-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}
.tec-table thead {
    position: sticky;
    top: 0;
    background: #f1f5f9;
    z-index: 5;
}
.tec-table thead th {
    border: none;
    padding: 14px 16px;
    font-size: 0.7rem;
    letter-spacing: 1px;
    color: #64748b;
    font-weight: 800;
    text-transform: uppercase;
    text-align: left;
}
.tec-table tbody td {
    border: none;
    padding: 12px 16px;
    vertical-align: middle;
    border-top: 1px solid #f8fafc;
    font-size: 0.9rem;
    color: #334155;
}
.tec-table tbody tr { transition: background 0.15s; }
.tec-table tbody tr:hover { background: #f8fafc; }

/* Badges de cargo/status */
.tec-badge-role {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.7rem;
    background: rgba(59,130,246,0.1);
    color: #2563eb;
    white-space: nowrap;
}

.tec-badge-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.65rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
}
.tec-badge-status.ativo {
    background: rgba(16,185,129,0.1);
    color: #10b981;
}
.tec-badge-status.inativo {
    background: rgba(220,38,38,0.1);
    color: #dc2626;
}

/* Ações da tabela */
.tec-actions {
    display: flex;
    gap: 6px;
    justify-content: flex-end;
}
.tec-btn-action {
    width: 32px; height: 32px;
    border-radius: 8px;
    background: white;
    border: 1px solid #e2e8f0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s;
}
.tec-btn-action:hover {
    background: #f8fafc;
    transform: translateY(-1px);
}
.tec-btn-action i { font-size: 0.75rem; }
.tec-btn-action.edit i { color: #3b82f6; }
.tec-btn-action.delete i { color: #dc2626; }

/* Empty state */
.tec-empty {
    padding: 40px 20px;
    text-align: center;
    color: #94a3b8;
}
.tec-empty i {
    font-size: 2rem;
    opacity: 0.4;
    display: block;
    margin-bottom: 8px;
}