/* Select controls - unified styling */
.select-control,
.select-multi {
    width: 100%;
    border: 2px solid #e5e5e7;
    border-radius: 12px;
    background: #fff;
    color: #1d1d1f;
    padding: 12px 14px;
    font-size: 14px;
    transition: all .2s ease;
}

.select-control:focus,
.select-multi:focus {
    outline: none;
    border-color: #30b0c7; /* teal for conexoes */
    box-shadow: 0 0 0 4px rgba(48,176,199,.12);
}

.select-multi {
    min-height: 120px;
    max-height: 120px;
    overflow-y: auto;
}

.page-conexoes .select-control:hover,
.page-conexoes .select-multi:hover {
    border-color: #30b0c7;
}

.select-multi option {
    padding: 8px 10px;
    border-radius: 6px;
}

.select-multi option:checked {
    background: linear-gradient(135deg, #30b0c7 0%, #2aa0b5 100%);
    color: #fff;
}

/* Chip-style multi select wrapper */
.chip-select {
    border: 2px solid #e5e5e7;
    border-radius: 12px;
    background: #fff;
    padding: 10px;
    width: auto;
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
}

.chip-select:focus-within {
    border-color: #30b0c7;
    box-shadow: 0 0 0 4px rgba(48,176,199,.12);
}

/* Choices.js - Estilo Apple-like */
.choices {
    margin-bottom: 0;
    position: relative;
}

.choices__inner {
    background: transparent !important;
    border: none !important;
    border-radius: 0;
    padding: 8px 0;
    min-height: auto;
    font-size: 14px;
    transition: all .2s ease;
    cursor: pointer;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.choices__inner:focus-within {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

.choices__inner:hover {
    border: none !important;
    background: transparent !important;
}

/* Chips dos itens selecionados */
.choices__list--multiple .choices__item {
    background: #e3f2fd;
    border: 1px solid #30b0c7;
    border-radius: 16px;
    color: #1976d2;
    font-size: 12px;
    font-weight: 500;
    padding: 6px 12px;
    margin: 2px 4px 2px 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Dropdown */
.choices__list--dropdown {
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    max-height: 200px;
    background: #fff;
    z-index: 1000;
}

/* Opções do dropdown */
.choices__item--choice {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    transition: all .2s ease;
    cursor: pointer;
    font-size: 14px;
}

.choices__item--choice:hover {
    background: #f8f9fa;
    color: #30b0c7;
}

.choices__item--choice.is-highlighted {
    background: #e3f2fd;
    color: #1976d2;
    font-weight: 500;
}

/* Campo de busca */
.choices__input {
    background: transparent;
    border: none;
    font-size: 14px;
    padding: 8px 40px 8px 0;
    margin: 0;
    color: #1d1d1f;
    width: 100%;
    min-width: 200px;
    flex: 1;
}

.choices__input:focus {
    outline: none;
}

.choices__input::placeholder {
    color: #999;
    font-style: italic;
}

/* Botão de remover */
.choices__button {
    background: #30b0c7;
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 10px;
    height: 18px;
    width: 18px;
    margin-left: 6px;
    transition: all .2s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.choices__button:hover {
    background: #1976d2;
    transform: scale(1.1);
}

/* Placeholder */
.choices__placeholder {
    color: #999;
    font-style: italic;
    font-size: 14px;
}

/* Seta do dropdown - dentro do input clonado */
.choices__input--cloned {
    position: relative;
    padding-right: 30px !important;
    width: 350px !important;
    min-width: 350px !important;
    max-width: 350px !important;
    margin-top: 2px !important;
}

.choices__input--cloned::after {
    content: "▼";
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 12px;
    pointer-events: none;
    transition: transform .2s ease;
    z-index: 1;
}

.choices.is-open .choices__input--cloned::after {
    transform: translateY(-50%) rotate(180deg);
}


/* Estado vazio */
.choices__list--dropdown .choices__item--choice:first-child {
    border-top: none;
}

.choices__list--dropdown .choices__item--choice:last-child {
    border-bottom: none;
}

.chip-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 16px;
    background: #eaf7fa;
    border: 1px solid #30b0c7;
    color: #0b5561;
    font-size: 13px;
    line-height: 1;
}

.chip-remove {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #30b0c7;
    color: #fff;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    line-height: 1;
}

.chip-remove:hover {
    background: #2aa0b5;
}

.chip-select select.select-multi {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    min-height: 100px;
    max-height: 100px;
    overflow-y: auto;
}
.delete-local,
.delete-servico,
.delete-agr,
.delete-conexao,
.delete-agendamento {
    background: #ffefef !important; /* vermelho clarinho */
    border-color: #ffefef !important;
    color: #ff3b30 !important; /* vermelho */
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
    padding: 0 !important;
    border-radius: 10px !important;
    display: inline-grid !important;
    place-items: center !important;
    vertical-align: middle;
    box-sizing: border-box;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.delete-local i,
.delete-servico i,
.delete-agr i,
.delete-conexao i,
.delete-agendamento i {
    color: #ff3b30 !important;
    font-size: 16px;
    line-height: 1;
    display: block;
    margin: 0;
    pointer-events: none;
}

.delete-local:hover,
.delete-servico:hover,
.delete-agr:hover,
.delete-conexao:hover,
.delete-agendamento:hover {
    background: #ff3b30 !important; /* vermelho no hover */
    border-color: #ff3b30 !important;
    color: #ffffff !important;
}

.delete-local:hover i,
.delete-servico:hover i,
.delete-agr:hover i,
.delete-conexao:hover i,
.delete-agendamento:hover i {
    color: #ffffff !important; /* ícone branco no hover */
}
.btn-edit {
    background: #eaf3ff !important; /* azul bem clarinho */
    border-color: #eaf3ff !important;
    color: #0a84ff !important;
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
    padding: 0 !important;
    border-radius: 10px !important;
    display: inline-grid !important;
    place-items: center !important;
    vertical-align: middle;
    box-sizing: border-box;
    transition: background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.btn-edit i {
    color: #0a84ff !important;
    font-size: 16px;
    line-height: 1;
    display: block;
    margin: 0;
    pointer-events: none;
}

.btn-edit:hover {
    background: #0a84ff !important; /* azul escuro no hover */
    border-color: #0a84ff !important;
    box-shadow: none;
    color: #ffffff !important;
}

.btn-edit:hover i {
    color: #ffffff !important;
}

/* Espaçamento horizontal entre botões de ação (2px no total) */
.btn-edit,
.delete-local,
.delete-servico,
.delete-agr,
.delete-conexao,
.delete-agendamento {
    margin: 0 1px; /* 1px de cada lado => 2px entre os botões */
}
/* Barra de ações em lote */
.bulk-actions-bar {
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.bulk-actions-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.selected-count {
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

.bulk-actions-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bulk-actions-buttons select {
    padding: 6px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
}

.bulk-actions-buttons .button {
    padding: 6px 16px;
    font-size: 14px;
}

#bulk-action-select {
    min-width: 180px;
}

/* Estilo dos checkboxes */
#select-all,
.row-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

#select-all {
    margin: 0;
}

.row-checkbox {
    margin: 0;
}

/* Plugin de Agendamento - Estilos Admin */

/* Dashboard Header */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 -20px 0 -20px;
    padding: 28px 20px;
    background: #ffffff;
    border: none;
    border-bottom: 1px solid #e9e9ec;
    position: relative;
    width: calc(100% + 40px);
    box-sizing: border-box;
}

.header-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dashboard-title {
    margin: 0;
    color: #1d1d1f;
    font-size: 26px;
    font-weight: 600;
    letter-spacing: -0.022em;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.dashboard-title i {
    color: #0a84ff;
    font-size: 22px;
}

.dashboard-subtitle {
    margin: 2px 0 0 0;
    color: #6e6e73;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.45;
    max-width: 560px;
}

.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-shrink: 0;
}

.admin-subnav {
    display: flex;
    gap: 6px;
    padding: 14px 0 18px 0;
    border-bottom: 1px solid #eaeaef;
    margin-bottom: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    position: relative;
}

.subnav-actions {
    margin-left: auto;
    flex: 0 0 auto;
}

.btn-add {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #0a84ff;
    color: #ffffff;
    border: 1px solid #0a84ff;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    white-space: nowrap;
}

.btn-add:hover {
    background: #0071e3;
    border-color: #0071e3;
    color: #ffffff;
}

.btn-add:hover span,
.btn-add:hover i {
    color: #ffffff;
}

.btn-add:active {
    transform: translateY(1px);
}

.subnav-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 12px;
    color: #3a3a3c;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
    position: relative;
    scroll-snap-align: start;
}

.subnav-link i {
    color: #6e6e73;
    font-size: 16px;
}

.subnav-link span {
    font-size: 15px;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.subnav-link:hover {
    background: #f5f5f7;
}

.subnav-link.active {
    background: #eef5ff;
    color: #0a84ff;
}

.subnav-link.active i {
    color: #0a84ff;
}

/* Underline indicator */
.subnav-link.active::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: -18px;
    height: 3px;
    background: #0a84ff;
    border-radius: 2px;
}

/* Page-specific theming */
.page-gerencia .dashboard-title i { color: #0a84ff; }
.page-gerencia .subnav-link.active { background-color: #eef5ff; color: #0a84ff; }
.page-gerencia .subnav-link.active i { color: #0a84ff; }
.page-gerencia .btn-add { background: #0a84ff; border-color: #0a84ff; }
.page-gerencia .btn-add:hover { background: #0071e3; border-color: #0071e3; }
.page-gerencia .subnav-link.active::after { background: #0a84ff; }

.page-localizacoes .dashboard-title i { color: #34c759; }
.page-localizacoes .subnav-link.active { background-color: #eefaf2; color: #34c759; }
.page-localizacoes .subnav-link.active i { color: #34c759; }
.page-localizacoes .btn-add { background: #34c759; border-color: #34c759; }
.page-localizacoes .btn-add:hover { background: #2fb150; border-color: #2fb150; }
.page-localizacoes .subnav-link.active::after { background: #34c759; }

.page-servicos .dashboard-title i { color: #ff9f0a; }
.page-servicos .subnav-link.active { background-color: #fff7ec; color: #ff9f0a; }
.page-servicos .subnav-link.active i { color: #ff9f0a; }
.page-servicos .btn-add { background: #ff9f0a; border-color: #ff9f0a; }
.page-servicos .btn-add:hover { background: #e68f09; border-color: #e68f09; }
.page-servicos .subnav-link.active::after { background: #ff9f0a; }

.page-agentes .dashboard-title i { color: #5856d6; }
.page-agentes .subnav-link.active { background-color: #f0efff; color: #5856d6; }
.page-agentes .subnav-link.active i { color: #5856d6; }
.page-agentes .btn-add { background: #5856d6; border-color: #5856d6; }
.page-agentes .btn-add:hover { background: #4f4dc1; border-color: #4f4dc1; }
.page-agentes .subnav-link.active::after { background: #5856d6; }

.page-conexoes .dashboard-title i { color: #30b0c7; }
.page-conexoes .subnav-link.active { background-color: #eaf7fa; color: #30b0c7; }
.page-conexoes .subnav-link.active i { color: #30b0c7; }
.page-conexoes .btn-add { background: #30b0c7; border-color: #30b0c7; }
.page-conexoes .btn-add:hover { background: #2aa0b5; border-color: #2aa0b5; }
.page-conexoes .subnav-link.active::after { background: #30b0c7; }

.page-produtos .dashboard-title i { color: #ff6b35; }
.page-produtos .subnav-link.active { background-color: #fff5f0; color: #ff6b35; }
.page-produtos .subnav-link.active i { color: #ff6b35; }
.page-produtos .btn-add { background: #ff6b35; border-color: #ff6b35; }
.page-produtos .btn-add:hover { background: #e55a2b; border-color: #e55a2b; }
.page-produtos .subnav-link.active::after { background: #ff6b35; }

/* Estilos específicos para página de produtos */
.page-produtos .badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.page-produtos .badge-agendavel {
    background: #d4edda;
    color: #155724;
}

.page-produtos .badge-simples {
    background: #d1ecf1;
    color: #0c5460;
}

.page-produtos .badge-variacao {
    background: #f8d7da;
    color: #721c24;
}

.page-produtos .status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.page-produtos .status-ativo {
    background: #d4edda;
    color: #155724;
}

.page-produtos .status-inativo {
    background: #f8d7da;
    color: #721c24;
}

.page-produtos .produto-name {
    line-height: 1.4;
}

.page-produtos .produto-name small {
    color: #6c757d;
    font-size: 11px;
}


/* Layout da página Gerencia */
.gerencia-layout {
    display: flex;
    gap: 30px;
    margin-top: 20px;
}

.gerencia-left-column {
    flex: 1;
    min-height: 400px;
    max-width: calc(100% - 300px);
    overflow-x: hidden;
}

.content-block {
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    min-height: 400px;
    max-width: 100%;
    overflow-x: auto;
    box-sizing: border-box;
}

.welcome-content {
    text-align: center;
    padding: 40px 20px;
}

.welcome-content h2 {
    color: #1d1d1f;
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 15px 0;
}

.welcome-content p {
    color: #666;
    font-size: 16px;
    margin: 0;
}

.content-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.content-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #0a84ff, #007aff);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.content-info h2 {
    color: #1d1d1f;
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.content-info p {
    color: #666;
    font-size: 16px;
    margin: 0;
    line-height: 1.5;
}

.content-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.stat-label {
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

.content-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: #0a84ff;
    color: white;
}

.btn-primary:hover {
    background: #007aff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(10, 132, 255, 0.3);
}

.btn-secondary {
    background: #f8f9fa;
    color: #1d1d1f;
    border: 1px solid #e1e5e9;
}

.btn-secondary:hover {
    background: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Estilos para o workflow de produtos agendáveis */
.produtos-workflow {
    margin-top: 20px;
}

.workflow-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.workflow-header h3 {
    color: #1d1d1f;
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.workflow-header p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

/* Estilos para seleção de produtos */
.produtos-selection {
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 20px;
}

.selection-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 20px;
}

.search-box {
    position: relative;
    flex: 1;
    max-width: 300px;
}

.search-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 14px;
}

.search-box input {
    width: 100%;
    padding: 10px 12px 10px 35px;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    transition: border-color 0.2s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.filter-buttons {
    display: flex;
    gap: 8px;
}

.filter-btn {
    padding: 8px 16px;
    border: 1px solid #e1e5e9;
    background: #fff;
    color: #666;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    background: #f8f9fa;
    border-color: #ff6b35;
    color: #ff6b35;
}

.filter-btn.active {
    background: #ff6b35;
    border-color: #ff6b35;
    color: white;
}

.produtos-list {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
}

.produto-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

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

.produto-item:hover {
    background: #f8f9fa;
}

.produto-item.agendavel {
    background: rgba(255, 107, 53, 0.05);
}

.produto-checkbox {
    margin-right: 15px;
    position: relative;
}

.produto-checkbox input[type="checkbox"] {
    display: none;
}

.produto-checkbox label {
    width: 22px;
    height: 22px;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    display: block;
    cursor: pointer;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.produto-checkbox label:hover {
    border-color: #34c759;
    box-shadow: 0 2px 8px rgba(52, 199, 89, 0.2);
}

.produto-checkbox input[type="checkbox"]:checked + label {
    background: linear-gradient(135deg, #34c759, #30b04a);
    border-color: #34c759;
    box-shadow: 0 2px 8px rgba(52, 199, 89, 0.3);
    transform: scale(1.05);
}

.produto-checkbox input[type="checkbox"]:checked + label::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    border-radius: 1px;
    animation: checkmark 0.3s ease-in-out;
}

@keyframes checkmark {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) rotate(45deg) scale(0.5);
    }
    50% {
        opacity: 0.7;
        transform: translate(-50%, -50%) rotate(45deg) scale(1.2);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) rotate(45deg) scale(1);
    }
}

/* Tornar o item inteiro clicável */
.produto-item {
    cursor: pointer;
    user-select: none;
}

.produto-item:hover {
    background: #f8f9fa;
}

.produto-item.agendavel {
    background: rgba(52, 199, 89, 0.05);
}

.produto-item.agendavel:hover {
    background: rgba(52, 199, 89, 0.1);
}

.produto-image {
    margin-right: 15px;
}

.produto-image img {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    object-fit: cover;
}

.produto-info {
    flex: 1;
}

.produto-info h4 {
    color: #1d1d1f;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 4px 0;
}

.produto-price {
    color: #ff6b35;
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 6px 0;
}

.produto-meta {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.produto-type {
    display: inline-block;
    padding: 2px 6px;
    background: #f0f0f0;
    color: #666;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
}

.produto-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-agendavel {
    background: rgba(52, 199, 89, 0.1);
    color: #34c759;
}

.status-nao-agendavel {
    background: rgba(255, 59, 48, 0.1);
    color: #ff3b30;
}

.produto-actions {
    margin-left: 15px;
}

.btn-icon {
    width: 32px;
    height: 32px;
    border: 1px solid #e1e5e9;
    background: #fff;
    color: #666;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-icon:hover {
    background: #f8f9fa;
    border-color: #ff6b35;
    color: #ff6b35;
}

.selection-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding-top: 20px;
    border-top: 1px solid #e1e5e9;
}

/* Estados de loading e erro */
.loading, .error {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 14px;
}

.loading {
    color: #ff6b35;
}

.error {
    color: #ff3b30;
    background: rgba(255, 59, 48, 0.1);
    border-radius: 6px;
    margin: 10px 0;
}

/* Estado vazio para produtos */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-state-icon {
    font-size: 48px;
    color: #ccc;
    margin-bottom: 20px;
}

.empty-state h3 {
    color: #1d1d1f;
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 12px 0;
}

.empty-state p {
    color: #666;
    font-size: 14px;
    margin: 0 0 30px 0;
    line-height: 1.5;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.empty-state-actions {
    margin-top: 20px;
}

/* Estilos para a seção Shortcode */
.shortcode-content {
    margin-top: 20px;
}

.shortcode-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e1e5e9;
}

.shortcode-section h4 {
    color: #1d1d1f;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #6c5ce7;
}

.shortcode-list, .parameters-list, .examples-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.shortcode-item, .parameter-item, .example-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.shortcode-item:hover, .parameter-item:hover, .example-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.shortcode-info h5, .parameter-item code, .example-item code {
    color: #6c5ce7;
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 4px 0;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.shortcode-info p, .parameter-item span, .example-item p {
    color: #666;
    font-size: 13px;
    margin: 0;
    line-height: 1.4;
}

.btn-copy {
    width: 32px;
    height: 32px;
    border: 1px solid #6c5ce7;
    background: #fff;
    color: #6c5ce7;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-copy:hover {
    background: #6c5ce7;
    color: white;
    transform: scale(1.05);
}

.parameter-item {
    justify-content: flex-start;
    gap: 15px;
}

.parameter-item code {
    background: #f0f0f0;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    min-width: 60px;
    text-align: center;
}

.example-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.example-item code {
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid #e1e5e9;
    font-size: 13px;
    width: 100%;
    display: block;
}

.workflow-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    padding: 20px;
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    overflow-x: auto;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 120px;
    flex: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 12px;
}

.step-content h4 {
    color: #1d1d1f;
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 4px 0;
}

.step-content p {
    color: #666;
    font-size: 12px;
    margin: 0;
    line-height: 1.4;
}

.step-arrow {
    color: #ff6b35;
    font-size: 20px;
    font-weight: 700;
    margin: 0 10px;
    flex-shrink: 0;
}

.produtos-config {
    margin-top: 30px;
}

.produtos-config h4 {
    color: #1d1d1f;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.config-item {
    padding: 20px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    text-align: center;
    transition: all 0.2s ease;
}

.config-item:hover {
    background: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.config-item i {
    font-size: 24px;
    color: #ff6b35;
    margin-bottom: 12px;
}

.config-item h5 {
    color: #1d1d1f;
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.config-item p {
    color: #666;
    font-size: 12px;
    margin: 0;
    line-height: 1.4;
}

/* Responsividade para o workflow */
@media (max-width: 768px) {
    .workflow-steps {
        flex-direction: column;
        gap: 20px;
    }
    
    .step-arrow {
        transform: rotate(90deg);
        margin: 10px 0;
    }
    
    .config-grid {
        grid-template-columns: 1fr;
    }
}

.gerencia-right-column {
    flex: 0 0 300px;
    max-width: 300px;
}

.vertical-nav {
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.vertical-nav h3 {
    margin: 0 0 20px 0;
    color: #1d1d1f;
    font-size: 18px;
    font-weight: 600;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.vertical-nav-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.vertical-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #1d1d1f;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
}

.vertical-nav-item:hover {
    background: #f8f9fa;
    color: #0a84ff;
    transform: translateX(4px);
}

.vertical-nav-item i {
    width: 20px;
    text-align: center;
    font-size: 16px;
    color: #666;
    transition: color 0.2s ease;
}

.vertical-nav-item:hover i {
    color: #0a84ff;
}

.vertical-nav-item.active {
    background: #e3f2fd;
    color: #0a84ff;
    border-left: 4px solid #0a84ff;
}

.vertical-nav-item.active i {
    color: #0a84ff;
}

/* Ocultar itens específicos do menu vertical do WordPress */
#adminmenu a[href*="agendamento-produtos"],
#adminmenu a[href*="agendamento-localizacoes"],
#adminmenu a[href*="agendamento-servicos"],
#adminmenu a[href*="agendamento-agentes"],
#adminmenu a[href*="agendamento-conexoes"],
#adminmenu a[href*="agendamento-agenda"] {
    display: none !important;
}

/* Cores específicas para cada item do menu vertical */
.vertical-nav-item[data-content="dashboard"]:hover {
    color: #0a84ff;
}

.vertical-nav-item[data-content="dashboard"]:hover i {
    color: #0a84ff;
}

.vertical-nav-item[data-content="dashboard"].active {
    background: #e3f2fd;
    color: #0a84ff;
    border-left: 4px solid #0a84ff;
}

.vertical-nav-item[data-content="dashboard"].active i {
    color: #0a84ff;
}

.vertical-nav-item[data-content="produtos"]:hover {
    color: #ff6b35;
}

.vertical-nav-item[data-content="produtos"]:hover i {
    color: #ff6b35;
}

.vertical-nav-item[data-content="produtos"].active {
    background: #fff3e0;
    color: #ff6b35;
    border-left: 4px solid #ff6b35;
}

.vertical-nav-item[data-content="produtos"].active i {
    color: #ff6b35;
}

.vertical-nav-item[data-content="ferias"]:hover {
    color: #e74c3c;
}

.vertical-nav-item[data-content="ferias"]:hover i {
    color: #e74c3c;
}

.vertical-nav-item[data-content="ferias"].active {
    background: #ffebee;
    color: #e74c3c;
    border-left: 4px solid #e74c3c;
}

.vertical-nav-item[data-content="ferias"].active i {
    color: #e74c3c;
}

.vertical-nav-item[data-content="relatorios"]:hover {
    color: #8e44ad;
}

.vertical-nav-item[data-content="relatorios"]:hover i {
    color: #8e44ad;
}

.vertical-nav-item[data-content="relatorios"].active {
    background: #f3e5f5;
    color: #8e44ad;
    border-left: 4px solid #8e44ad;
}

.vertical-nav-item[data-content="relatorios"].active i {
    color: #8e44ad;
}

.vertical-nav-item[data-content="shortcode"]:hover {
    color: #6c5ce7;
}

.vertical-nav-item[data-content="shortcode"]:hover i {
    color: #6c5ce7;
}

.vertical-nav-item[data-content="shortcode"].active {
    background: #f3f0ff;
    color: #6c5ce7;
    border-left: 4px solid #6c5ce7;
}

.vertical-nav-item[data-content="shortcode"].active i {
    color: #6c5ce7;
}

.vertical-nav-item span {
    flex: 1;
}

/* Responsividade */
@media (max-width: 768px) {
    .gerencia-layout {
        flex-direction: column;
        gap: 20px;
    }
    
    .gerencia-left-column {
        max-width: 100%;
    }
    
    .gerencia-right-column {
        flex: 1;
        max-width: none;
    }
    
    .vertical-nav {
        padding: 15px;
    }
    
    .vertical-nav-item {
        padding: 10px 12px;
        font-size: 13px;
    }
}

/* Page-specific header bottom borders */
.page-gerencia .dashboard-header { border-bottom: 3px solid #0a84ff; }
.page-localizacoes .dashboard-header { border-bottom: 3px solid #34c759; }
.page-servicos .dashboard-header { border-bottom: 3px solid #ff9f0a; }
.page-agentes .dashboard-header { border-bottom: 3px solid #5856d6; }
.page-conexoes .dashboard-header { border-bottom: 3px solid #30b0c7; }
.page-produtos .dashboard-header { border-bottom: 3px solid #ff6b35; }
.page-shortcode .dashboard-header { border-bottom: 3px solid #6c5ce7; }
.page-agendamentos .dashboard-header { border-bottom: 3px solid #0a84ff; }

/* Spacing tweak for Agendamentos page */
.page-agendamentos .stats-grid {
    margin-top: 5px;
}

/* Focus styles for accessibility */
.subnav-link:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(10,132,255,0.23);
}

/* Edge fade to hint overflow */
.admin-subnav::before,
.admin-subnav::after {
    content: "";
    position: sticky;
    top: 0;
    width: 16px;
    height: 100%;
    pointer-events: none;
}

.admin-subnav::before {
    left: 0;
    background: linear-gradient(to right, #fff, rgba(255,255,255,0));
}

.admin-subnav::after {
    right: 0;
    background: linear-gradient(to left, #fff, rgba(255,255,255,0));
}

.btn-export {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: #0a84ff;
    color: #ffffff;
    border: 1px solid #0a84ff;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.btn-export:hover {
    background: #0071e3;
    border-color: #0071e3;
}

.btn-export:active {
    transform: translateY(1px);
}

/* Stats Overview */
.stats-overview {
    margin-bottom: 32px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.stat-card {
    display: flex;
    align-items: center;
    padding: 16px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e5e7;
    transition: all 0.2s ease;
}

.stat-card.stat-filter {
    cursor: pointer;
    user-select: none;
    position: relative;
}

.stat-card.stat-filter::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    border-radius: 12px;
    transition: all 0.2s ease;
    pointer-events: none;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.stat-card.stat-filter:hover::after {
    background: rgba(0, 0, 0, 0.03);
}

.stat-card.stat-filter:active {
    transform: translateY(0);
}

.stat-card.stat-filter.active {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transform: translateY(-4px);
}

.stat-card.stat-filter.active::after {
    background: rgba(0, 0, 0, 0.05);
}

.stat-card.stat-filter.active .stat-icon {
    transform: scale(1.1);
}

.stat-card.primary {
    border-left: 4px solid #007aff;
}

.stat-card.warning {
    border-left: 4px solid #ff9500;
}

.stat-card.success {
    border-left: 4px solid #34c759;
}

.stat-card.danger {
    border-left: 4px solid #ff3b30;
}

.stat-card.info {
    border-left: 4px solid #5856d6;
}

.stat-card.warning-orange {
    border-left: 4px solid #ff2d92;
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 18px;
    transition: all 0.2s ease;
}

.stat-card.primary .stat-icon {
    background: rgba(0, 122, 255, 0.1);
    color: #007aff;
}

.stat-card.warning .stat-icon {
    background: rgba(255, 149, 0, 0.1);
    color: #ff9500;
}

.stat-card.success .stat-icon {
    background: rgba(52, 199, 89, 0.1);
    color: #34c759;
}

.stat-card.danger .stat-icon {
    background: rgba(255, 59, 48, 0.1);
    color: #ff3b30;
}

.stat-card.info .stat-icon {
    background: rgba(88, 86, 214, 0.1);
    color: #5856d6;
}

.stat-card.warning-orange .stat-icon {
    background: rgba(255, 45, 146, 0.1);
    color: #ff2d92;
}

.stat-content h3 {
    margin: 0 0 4px 0;
    color: #86868b;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-number {
    font-size: 20px;
    font-weight: 700;
    color: #1d1d1f;
    display: block;
}

/* Indicador de filtro ativo nos stats */
.stat-card.stat-filter.active .stat-content h3::after {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #34c759;
    margin-left: 8px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.2);
    }
}

/* Borda mais intensa no card ativo */
.stat-card.stat-filter.active.primary {
    border-left-width: 6px;
}

.stat-card.stat-filter.active.success {
    border-left-width: 6px;
}

.stat-card.stat-filter.active.warning {
    border-left-width: 6px;
}

.stat-card.stat-filter.active.danger {
    border-left-width: 6px;
}

.stat-card.stat-filter.active.info {
    border-left-width: 6px;
}

.stat-card.stat-filter.active.warning-orange {
    border-left-width: 6px;
}

/* Filters Section */
.filters-section {
    background: #ffffff;
    border: 1px solid #e5e5e7;
    border-radius: 12px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    animation: slideInDown 0.4s ease-out;
}

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

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 24px 24px 5px 24px;
    background: #f8f9fa;
    border-bottom: 1px solid #e5e5e7;
}

.header-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 9.5px;
}

/* Campo de busca no header alinhado com botões */
.search-group-header {
    margin-top: 16px;
}

.search-input-header {
    padding: 8px 16px 8px 44px !important;
    border: 1px solid #d1d1d6 !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    height: 36px !important;
    min-width: 250px !important;
    box-sizing: border-box !important;
    transition: all 0.2s ease !important;
}

.search-input-header:focus {
    outline: none !important;
    border-color: #007aff !important;
    box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.1) !important;
}

.search-input-header:hover {
    border-color: #007aff !important;
}

/* Filtro de tempo no header */
.time-filter {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.time-btn {
    padding: 8px 16px;
    border: 1px solid #d1d1d6;
    border-radius: 20px;
    background: #ffffff;
    color: #1d1d1f;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.time-btn:hover {
    border-color: #007aff;
    background: #f0f8ff;
    color: #007aff;
}

.time-btn.active {
    background: #1f3360;
    color: #ffffff;
    border-color: #1f3360;
}

.time-btn.active:hover {
    background: #1f3360;
    border-color: #1f3360;
}

/* Botão "Todos" com estilo especial */
.time-btn[data-period="all"] {
    background: linear-gradient(135deg, #f5f5f7 0%, #ffffff 100%);
    border: 2px solid #d1d1d6;
    font-weight: 600;
    position: relative;
}

.time-btn[data-period="all"]:hover {
    background: linear-gradient(135deg, #e8f4ff 0%, #f0f8ff 100%);
    border-color: #007aff;
    border-width: 2px;
}

.time-btn[data-period="all"].active {
    background: #1f3360;
    border-color: #1f3360;
    border-width: 2px;
    box-shadow: 0 4px 12px rgba(31, 51, 96, 0.3);
}

.filters-title h3 {
    margin: 0 0 4px 0;
    color: #1d1d1f;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.022em;
}

.filters-title p {
    margin: 0;
    color: #86868b;
    font-size: 14px;
    font-weight: 400;
}

.btn-clear {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: #ff3b30;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-clear:hover {
    background: #d70015;
    transform: translateY(-1px);
}

.filters-content {
    padding: 24px;
    background: #ffffff;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(6, auto);
    gap: 16px;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    padding: 0;
    background: none;
    border-radius: 0;
    border: none;
    transition: all 0.2s ease;
}

.filter-group:hover {
    background: none;
    border: none;
    box-shadow: none;
}

.filter-group:focus-within {
    background: none;
    border: none;
    box-shadow: none;
}

.filter-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #1d1d1f;
    font-size: 13px;
    letter-spacing: -0.008em;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-group label i {
    font-size: 14px;
    color: #007aff;
    width: 16px;
    text-align: center;
}

.filter-select,
.filter-input {
    padding: 10px 12px;
    border: 1px solid #d1d1d6;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 400;
    transition: all 0.2s ease;
    background: #ffffff;
    color: #1d1d1f;
    box-shadow: none;
    width: 100%;
}

.filter-select:focus,
.filter-input:focus {
    outline: none;
    border-color: #007aff;
    box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.1);
}

.filter-select:hover,
.filter-input:hover {
    border-color: #a1a1a6;
}

.filter-select option {
    background: #ffffff;
    color: #1d1d1f;
    padding: 8px;
}


/* Estilo para selects do WordPress */
.wp-core-ui select {
    border-radius: 5px !important;
}

/* Seção de Busca */
.search-section {
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e5e5e7;
}

.search-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 300px;
    min-width: 250px;
}

.search-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #1d1d1f;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-group label i {
    font-size: 14px;
    color: #007aff;
    width: 16px;
    text-align: center;
}

/* Input de busca com ícone interno */
.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 16px;
    font-size: 14px;
    color: #007aff;
    z-index: 1;
    pointer-events: none;
}

.search-input {
    padding-left: 44px !important;
    width: 100%;
    border-radius: 25px !important;
}



.filters-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    background: #f8f9fa;
    border-top: 1px solid #e5e5e7;
}

.filters-actions button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid #d1d1d6;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    background: #ffffff;
    color: #1d1d1f;
    box-shadow: none;
}

.filters-actions button:hover {
    background: #f8f9fa;
    border-color: #a1a1a6;
    transform: translateY(-1px);
}

.filters-actions button:active {
    transform: translateY(0);
}

/* Informações de resultados */
.results-info {
    margin-top: 12px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    font-weight: 500;
    color: #1d1d1f;
    border-left: 3px solid #007aff;
    font-size: 13px;
    letter-spacing: -0.008em;
    width: fit-content;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Tabela de agendamentos */
.wp-list-table {
    margin-top: 20px;
}

.wp-list-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
}

.wp-list-table td {
    vertical-align: middle;
}

.status-select {
    padding: 4px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
    background: #fff;
    cursor: pointer;
}

.status-select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

/* Botões de ação */
.button-small {
    padding: 4px 8px;
    margin: 0 2px;
    font-size: 12px;
    min-height: auto;
    line-height: 1.4;
}

.view-details {
    background: #17a2b8;
    color: white;
    border-color: #17a2b8;
}

.view-details:hover {
    background: #138496;
    border-color: #117a8b;
}

.delete-agendamento {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

.delete-agendamento:hover {
    background: #c82333;
    border-color: #bd2130;
}

/* Modal - Design Moderno Consistente */
.agendamento-modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.agendamento-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #fff;
    border-radius: 16px;
    max-width: 460px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.agendamento-modal.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-header {
    background: linear-gradient(135deg, #34c759 0%, #2fb150 100%);
    color: white;
    padding: 24px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 16px 16px 0 0;
}

/* Header específico para modais de serviços */
.page-servicos .modal-header {
    background: linear-gradient(135deg, #ff9f0a 0%, #e68f09 100%);
}

/* Header específico para modais de agentes (indigo) */
.page-agentes .modal-header {
    background: linear-gradient(135deg, #5856d6 0%, #4f4dc1 100%);
}

/* Header específico para modais de conexões (teal) */
.page-conexoes .modal-header {
    background: linear-gradient(135deg, #30b0c7 0%, #2aa0b5 100%);
}

.modal-header h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
}

.modal-header h2 i {
    font-size: 20px;
    color: white;
    opacity: 0.9;
}

.modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.modal-body {
    padding: 30px;
    flex: 1;
    overflow-y: auto;
    max-height: calc(90vh - 120px);
}

/* Scrollbar personalizada para modal-body */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.modal-body .form-group {
    margin-bottom: 24px;
}

.modal-body .form-group:last-child {
    margin-bottom: 0;
}

.modal-body label {
    display: block;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 4px;
    font-size: 14px;
    letter-spacing: -0.01em;
}

.modal-body input,
.modal-body select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e5e5e7;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 400;
    transition: all 0.3s ease;
    background: #fff;
    color: #1d1d1f;
    box-sizing: border-box;
}

.modal-body input:focus,
.modal-body select:focus {
    outline: none;
    border-color: #34c759;
    box-shadow: 0 0 0 4px rgba(52, 199, 89, 0.1);
    transform: translateY(-1px);
}

/* Foco e hover dos campos no modal da página de agentes (indigo) */
.page-agentes .modal-body input:focus,
.page-agentes .modal-body select:focus {
    border-color: #5856d6;
    box-shadow: 0 0 0 4px rgba(88, 86, 214, 0.12);
}

.page-agentes .modal-body input:hover,
.page-agentes .modal-body select:hover {
    border-color: #5856d6;
}

/* Foco/hover dos campos no modal da página de conexões (teal) */
.page-conexoes .modal-body input:focus,
.page-conexoes .modal-body select:focus {
    border-color: #30b0c7;
    box-shadow: 0 0 0 4px rgba(48, 176, 199, 0.12);
}

.page-conexoes .modal-body input:hover,
.page-conexoes .modal-body select:hover {
    border-color: #30b0c7;
}

/* Foco/hover dos campos no modal da página de serviços (laranja) */
.page-servicos .modal-body input:focus,
.page-servicos .modal-body select:focus {
    border-color: #ff9f0a;
    box-shadow: 0 0 0 4px rgba(255, 159, 10, 0.12);
}

.page-servicos .modal-body input:hover,
.page-servicos .modal-body select:hover {
    border-color: #ff9f0a;
}

.modal-body input:hover,
.modal-body select:hover {
    border-color: #34c759;
}

.modal-body small {
    color: #6e6e73;
    font-size: 12px;
    margin-top: 6px;
    display: block;
    font-style: italic;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 24px 30px;
    background: #f8f9fa;
    border-top: 1px solid #e5e5e7;
    border-radius: 0 0 16px 16px;
}

.modal-actions .button {
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    border: none;
    min-width: 120px;
    justify-content: center;
    height: 44px;
    box-sizing: border-box;
}

.modal-actions .button-primary {
    background: #34c759;
    color: white;
    box-shadow: 0 2px 8px rgba(52, 199, 89, 0.3);
}

.modal-actions .button-primary:hover {
    background: #2fb150;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 199, 89, 0.4);
}

.modal-actions .button-primary:active {
    transform: translateY(0);
}

.modal-actions .button:not(.button-primary) {
    background: #6c757d;
    color: white;
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.3);
}

.modal-actions .button:not(.button-primary):hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.4);
}

.modal-actions .button i {
    font-size: 14px;
}

/* Responsividade do Modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 20px;
        max-height: 90vh;
    }
    
    .modal-header,
    .modal-body,
    .modal-actions {
        padding: 20px;
    }
    
    .modal-header h2 {
        font-size: 20px;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .modal-actions .button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .modal-header h2 {
        font-size: 18px;
    }
    
    .modal-body {
        padding: 15px;
    }
    
    .modal-actions {
        padding: 15px;
    }
}

/* Página de configurações */
.config-sections {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
}

.config-sections h2 {
    color: #2c3e50;
    margin-bottom: 20px;
}

.config-help {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #3498db;
}

.config-help h3 {
    margin: 0 0 15px 0;
    color: #2c3e50;
}

.config-help ul {
    margin: 0;
    padding-left: 20px;
}

.config-help li {
    margin-bottom: 8px;
    color: #495057;
}

.config-help code {
    background: #e9ecef;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: monospace;
    color: #e83e8c;
}

/* Checkboxes de dias */
input[type="checkbox"] {
    margin-right: 8px;
}

/* Responsividade */
/* Resolução ideal: 1102x633 - Layout perfeito com 6 colunas */
@media (min-width: 1000px) and (max-width: 1300px) {
    .filters-grid {
        grid-template-columns: repeat(6, auto);
        gap: 16px;
    }
}

@media (max-width: 1200px) {
    .filters-grid {
        grid-template-columns: repeat(3, auto);
        gap: 20px;
    }
}

@media (max-width: 900px) {
    .filters-grid {
        grid-template-columns: repeat(2, auto);
        gap: 16px;
    }
}

/* Tablet Responsive */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .dashboard-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
        padding: 20px 16px;
        margin: 0 -20px 0 -20px;
        width: calc(100% + 40px);
        box-sizing: border-box;
    }
    
    .dashboard-title {
        font-size: 20px;
    }
    
    .dashboard-subtitle {
        font-size: 13px;
    }
    
    .header-actions {
        width: 100%;
        justify-content: flex-start;
        margin-top: 8px;
    }
    
    .btn-export {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .filters-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .filters-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
        padding: 20px;
    }
    
    .filters-content {
        padding: 20px;
    }
    
    .wp-list-table {
        font-size: 12px;
    }
    
    .wp-list-table th,
    .wp-list-table td {
        padding: 8px 4px;
    }
    
    .modal-content {
        width: 95%;
        padding: 20px;
    }
    
    .agendamento-filters-panel {
        margin: 15px 0;
        border-radius: 8px;
    }
    
    .filter-select,
    .filter-input {
        padding: 12px 14px;
        font-size: 16px; /* Evita zoom no iOS */
    }
}

@media (max-width: 480px) {
    .agendamento-stats {
        grid-template-columns: 1fr;
    }
    
    .stat-box {
        padding: 15px;
    }
    
    .stat-number {
        font-size: 24px;
    }
}

/* Estados de loading */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Mensagens de feedback */
.notice {
    margin: 15px 0;
    padding: 12px;
    border-radius: 4px;
}

.notice-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.notice-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Ícones Font Awesome */
.fas {
    margin-right: 5px;
}

/* Melhorias na tabela */
.wp-list-table tbody tr:hover {
    background-color: #f8f9fa;
}

.wp-list-table .text-center {
    text-align: center;
    color: #6c757d;
    font-style: italic;
}

/* Estilo para campos de configuração */
.form-table th {
    width: 200px;
    font-weight: 600;
}

.form-table td {
    padding: 15px 10px;
}

.large-text {
    width: 100%;
    max-width: 500px;
}

.regular-text {
    width: 200px;
}

/* Botão de submit personalizado */
.submit .button-primary {
    background: #3498db;
    border-color: #3498db;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 600;
}

.submit .button-primary:hover {
    background: #2980b9;
    border-color: #2980b9;
}

/* Customização da tabela wp-list-table */
.wp-list-table.widefat.fixed.striped {
    border: none !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    background: #ffffff !important;
}

.wp-list-table.widefat.fixed.striped th {
    background: #f8f9fa !important;
    border: none !important;
    padding: 16px 12px !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    color: #1d1d1f !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.wp-list-table.widefat.fixed.striped td {
    border: none !important;
    border-bottom: 1px solid #f0f0f0 !important;
    padding: 16px 12px !important;
    font-size: 14px !important;
    color: #1d1d1f !important;
    vertical-align: middle !important;
}

.wp-list-table.widefat.fixed.striped tr:hover {
    background: #f8f9fa !important;
}

.wp-list-table.widefat.fixed.striped tr:nth-child(even) {
    background: #fafafa !important;
}

.wp-list-table.widefat.fixed.striped tr:nth-child(even):hover {
    background: #f0f8ff !important;
}

.wp-list-table.widefat.fixed.striped tr:nth-child(odd) {
    background: #ffffff !important;
}

.wp-list-table.widefat.fixed.striped tr:nth-child(odd):hover {
    background: #f0f8ff !important;
}

/* Botões de ação na tabela */
.wp-list-table .row-actions {
    visibility: visible !important;
    opacity: 1 !important;
}

.wp-list-table .row-actions a {
    color: #007aff !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    font-size: 13px !important;
    padding: 4px 8px !important;
    border-radius: 6px !important;
    transition: all 0.2s ease !important;
}

.wp-list-table .row-actions a:hover {
    background: #007aff !important;
    color: #ffffff !important;
}

/* Status badges na tabela */
.wp-list-table .status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wp-list-table .status-badge.pendente {
    background: #fff3cd;
    color: #856404;
}

.wp-list-table .status-badge.confirmado {
    background: #d4edda;
    color: #155724;
}

.wp-list-table .status-badge.cancelado {
    background: #f8d7da;
    color: #721c24;
}

.wp-list-table .status-badge.abandonado {
    background: #fce4ec;
    color: #c2185b;
}

.wp-list-table .status-badge.reserva {
    background: #e3f2fd;
    color: #1565c0;
}

/* Estado vazio da tabela */
.wp-list-table .empty-state {
    padding: 60px 20px !important;
    text-align: center !important;
    background: #ffffff !important;
}

.empty-state-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    max-width: 400px;
    margin: 0 auto;
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 8px;
}

.empty-state-icon i {
    font-size: 32px;
    color: #6c757d;
}

.empty-state-title {
    font-size: 20px;
    font-weight: 600;
    color: #1d1d1f;
    margin: 0;
    line-height: 1.3;
}

.empty-state-description {
    font-size: 14px;
    color: #6c757d;
    margin: 0;
    line-height: 1.5;
    max-width: 300px;
}


/* Containers de Gráficos */
.chart-container {
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.chart-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e1e5e9;
}

.chart-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chart-header h3 i {
    color: #3498db;
}

.chart-content {
    min-height: 200px;
}

/* Gráfico de Status */
.status-chart {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.status-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.status-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.status-label {
    font-weight: 500;
    color: #2c3e50;
    text-transform: capitalize;
}

.status-count {
    font-weight: 600;
    color: #3498db;
    background: #ecf0f1;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 14px;
}

.status-bar {
    height: 8px;
    background: #ecf0f1;
    border-radius: 4px;
    overflow: hidden;
}

.status-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.status-fill[data-status="pendente"] {
    background: linear-gradient(90deg, #f39c12, #e67e22);
}

.status-fill[data-status="confirmado"] {
    background: linear-gradient(90deg, #27ae60, #2ecc71);
}

.status-fill[data-status="cancelado"] {
    background: linear-gradient(90deg, #e74c3c, #c0392b);
}

/* Gráfico de Serviços */
.servico-chart {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.servico-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.servico-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.servico-label {
    font-weight: 500;
    color: #2c3e50;
    flex: 1;
    margin-right: 10px;
}

.servico-count {
    font-weight: 600;
    color: #3498db;
    background: #ecf0f1;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 14px;
    min-width: 30px;
    text-align: center;
}

.servico-bar {
    height: 8px;
    background: #ecf0f1;
    border-radius: 4px;
    overflow: hidden;
}

.servico-fill {
    height: 100%;
    background: linear-gradient(90deg, #3498db, #2980b9);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Ações em Lote */
.bulk-actions-container {
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.bulk-actions-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e1e5e9;
}

.bulk-actions-header h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bulk-actions-header h3 i {
    color: #e74c3c;
}

.bulk-actions-header p {
    margin: 0;
    color: #6c757d;
    font-size: 14px;
}

.bulk-actions-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.bulk-select-all {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bulk-select-all label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: #2c3e50;
    cursor: pointer;
}

.bulk-select-all input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.bulk-status-update {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.bulk-status-update label {
    font-weight: 500;
    color: #2c3e50;
    white-space: nowrap;
}

.bulk-status-update select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    min-width: 150px;
}

.btn-update-status {
    background: #3498db;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background-color 0.3s ease;
}

.btn-update-status:hover {
    background: #2980b9;
}

/* Agendamentos Recentes */
.recent-agendamentos-container {
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.recent-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e1e5e9;
}

.recent-header h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 8px;
}

.recent-header h3 i {
    color: #f39c12;
}

.recent-header p {
    margin: 0;
    color: #6c757d;
    font-size: 14px;
}

.recent-agendamentos-list {
    overflow-x: auto;
}

.agendamentos-table {
    min-width: 100%;
}

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

.agendamentos-table th,
.agendamentos-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e1e5e9;
}

.agendamentos-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.agendamentos-table td {
    font-size: 14px;
    color: #495057;
}

.checkbox-column {
    width: 40px;
    text-align: center;
}

.checkbox-column input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* Resumo Executivo */
.executive-summary {
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.summary-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e1e5e9;
}

.summary-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 8px;
}

.summary-header h3 i {
    color: #9b59b6;
}

.summary-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.summary-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
}

.summary-icon.success {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
}

.summary-icon.warning {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

.summary-icon.danger {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.summary-info h4 {
    margin: 0 0 5px 0;
    font-size: 14px;
    font-weight: 500;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-value {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
}

/* Estados de Dados */
.no-data {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.no-data i {
    font-size: 48px;
    color: #bdc3c7;
    margin-bottom: 15px;
}

.no-data p {
    margin: 0;
    font-size: 16px;
}

/* Responsividade */
@media (max-width: 768px) {
    .bulk-actions-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .bulk-status-update {
        flex-direction: column;
        align-items: stretch;
    }
    
    .summary-stats {
        grid-template-columns: 1fr;
    }
    
    .summary-item {
        flex-direction: column;
        text-align: center;
    }
    
    .recent-agendamentos-list {
        font-size: 12px;
    }
    
    .agendamentos-table th,
    .agendamentos-table td {
        padding: 8px;
    }
}

/* ========================================
   SISTEMA DE ABAS E CADASTROS
======================================== */


/* Containers de Cadastro */
.cadastro-container {
    max-width: 1200px;
    margin: 0 auto;
}

.cadastro-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e1e5e9;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.cadastro-header .header-content {
    flex: 1;
}

.cadastro-header .header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.cadastro-header h3 {
    margin: 0 0 10px 0;
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cadastro-header h3 i {
    color: #3498db;
    font-size: 28px;
}

.cadastro-header p {
    margin: 0;
    color: #6c757d;
    font-size: 16px;
}

/* Formulários de Cadastro */
.cadastro-form {
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row:last-child {
    margin-bottom: 0;
}

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

.form-group label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Campos obrigatórios com erro */
.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #e74c3c !important;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1) !important;
}

.form-group input.error:focus,
.form-group select.error:focus,
.form-group textarea.error:focus {
    border-color: #e74c3c !important;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.2) !important;
}

/* Campo desabilitado */
.form-group input:disabled {
    background-color: #f8f9fa !important;
    border-color: #e9ecef !important;
    color: #6c757d !important;
    cursor: not-allowed !important;
    opacity: 0.6;
}

.form-group input:disabled::placeholder {
    color: #adb5bd !important;
}

/* Sem limite */
.no-limit {
    color: #28a745;
    font-weight: 500;
    font-style: italic;
}

/* Input com unidade */
.input-with-unit {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-unit input {
    flex: 1;
    padding-right: 80px;
}

.input-unit {
    position: absolute;
    right: 35px;
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
    pointer-events: none;
    background: #fff;
    padding: 0 4px;
    z-index: 1;
}

.input-with-unit input:disabled + .input-unit {
    color: #adb5bd;
}

/* Popup de Exclusão */
.delete-warning {
    text-align: center;
    padding: 20px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    margin-bottom: 20px;
}

.delete-warning i {
    font-size: 48px;
    color: #f39c12;
    margin-bottom: 15px;
    display: block;
}

.delete-warning p {
    margin: 10px 0;
    color: #856404;
}

.delete-warning p strong {
    color: #721c24;
}

/* Sistema de Notificações */
.notification-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    min-width: 300px;
    max-width: 500px;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: slideInRight 0.3s ease-out;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.notification-toast.notification-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.notification-toast.notification-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.notification-toast.notification-warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
}

.notification-toast.notification-info {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.notification-content i {
    font-size: 18px;
}

.notification-close {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 5px;
    margin-left: 10px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.notification-close:hover {
    opacity: 1;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ===== ESTILOS PARA PÁGINA GERENCIA ===== */

/* Action Cards */
.action-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    text-decoration: none;
    color: #495057;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.action-card:hover {
    background: #f8f9fa;
    border-color: #667eea;
    color: #495057;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.action-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.action-content h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
}

.action-content p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

/* Status Badges */
.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-pendente {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.status-confirmado {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-cancelado {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.status-abandonado {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.status-reserva {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Responsividade para Gerencia */
@media (max-width: 768px) {
    .action-card {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .action-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

/* ===== ESTILOS ESPECÍFICOS PARA SERVIÇOS ===== */

/* Botões específicos para serviços */
.servicos-btn-edit, .servicos-btn-delete {
    transition: all 0.2s ease;
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
}

.servicos-btn-edit {
    background: #3498db;
    color: white;
    margin-right: 5px;
}

.servicos-btn-edit:hover {
    background: #2980b9;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(52, 152, 219, 0.3);
}

.servicos-btn-delete {
    background: #e74c3c;
    color: white;
}

.servicos-btn-delete:hover {
    background: #c0392b;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(231, 76, 60, 0.3);
}

.servicos-btn-edit:disabled, .servicos-btn-delete:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Container específico para serviços */
.servicos-cadastro-container {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.servicos-cadastro-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.servicos-header-content h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.servicos-header-content p {
    margin: 5px 0 0 0;
    opacity: 0.9;
    font-size: 14px;
}

.servicos-header-actions {
    display: flex;
    gap: 10px;
}

/* Tabela específica para serviços */
.servicos-table {
    margin-top: 20px;
}

.servicos-wp-list-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.servicos-wp-list-table th,
.servicos-wp-list-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e1e5e9;
}

.servicos-wp-list-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
}

.servicos-action-buttons {
    display: flex;
    gap: 5px;
}

/* Popup específico para serviços */
.servicos-popup-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.servicos-popup-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.servicos-popup-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.servicos-popup-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.servicos-popup-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.servicos-popup-content {
    padding: 20px;
}

.servicos-popup-footer {
    padding: 20px;
    border-top: 1px solid #e1e5e9;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    background: #f8f9fa;
    border-radius: 0 0 8px 8px;
}

.servicos-btn-cancel {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.servicos-btn-cancel:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

.servicos-btn-save {
    background: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.servicos-btn-save:hover {
    background: #218838;
    transform: translateY(-1px);
}

.servicos-btn-delete-confirm {
    background: #dc3545;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.servicos-btn-delete-confirm:hover {
    background: #c82333;
    transform: translateY(-1px);
}

/* ===== ESTILOS ESPECÍFICOS PARA LOCAIS ===== */

/* Botões específicos para locais */
.locais-btn-edit, .locais-btn-delete {
    transition: all 0.2s ease;
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
}

.locais-btn-edit {
    background: #28a745;
    color: white;
    margin-right: 5px;
}

.locais-btn-edit:hover {
    background: #218838;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

.locais-btn-delete {
    background: #dc3545;
    color: white;
}

.locais-btn-delete:hover {
    background: #c82333;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}

.locais-btn-edit:disabled, .locais-btn-delete:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Container específico para locais */
.locais-cadastro-container {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.locais-cadastro-header {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.locais-header-content h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.locais-header-content p {
    margin: 5px 0 0 0;
    opacity: 0.9;
    font-size: 14px;
}

.locais-header-actions {
    display: flex;
    gap: 10px;
}

/* Tabela específica para locais */
.locais-table {
    margin-top: 20px;
}

.locais-wp-list-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.locais-wp-list-table th,
.locais-wp-list-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e1e5e9;
}

.locais-wp-list-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
}

.locais-action-buttons {
    display: flex;
    gap: 5px;
}

/* Popup específico para locais */
.locais-popup-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.locais-popup-header {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 20px;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.locais-popup-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.locais-popup-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.locais-popup-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.locais-popup-content {
    padding: 20px;
}

.locais-popup-footer {
    padding: 20px;
    border-top: 1px solid #e1e5e9;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    background: #f8f9fa;
    border-radius: 0 0 8px 8px;
}

.locais-btn-cancel {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.locais-btn-cancel:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

.locais-btn-save {
    background: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.locais-btn-save:hover {
    background: #218838;
    transform: translateY(-1px);
}

.locais-btn-delete-confirm {
    background: #dc3545;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.locais-btn-delete-confirm:hover {
    background: #c82333;
    transform: translateY(-1px);
}

.locais-delete-confirmation {
    text-align: center;
    padding: 20px;
}

.locais-delete-confirmation i {
    font-size: 48px;
    color: #dc3545;
    margin-bottom: 15px;
}

.locais-delete-confirmation p {
    margin: 10px 0;
    font-size: 16px;
    color: #495057;
}

/* Melhorias de Validação */
.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #e74c3c !important;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1) !important;
    animation: shake 0.5s ease-in-out;
}

.form-group input.error:focus,
.form-group select.error:focus,
.form-group textarea.error:focus {
    border-color: #e74c3c !important;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.2) !important;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Botões com feedback visual */
.btn-edit, .btn-delete {
    transition: all 0.2s ease;
}

.btn-edit:hover {
    background: #3498db !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(52, 152, 219, 0.3);
}

.btn-delete:hover {
    background: #e74c3c !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(231, 76, 60, 0.3);
}

/* Loading states */
.btn-edit:disabled, .btn-delete:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Botões específicos para serviços */
.btn-edit-servico, .btn-delete-servico {
    transition: all 0.2s ease;
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
}

.btn-edit-servico {
    background: #3498db;
    color: white;
    margin-right: 5px;
}

.btn-edit-servico:hover {
    background: #2980b9;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(52, 152, 219, 0.3);
}

.btn-edit-servico:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(52, 152, 219, 0.3);
}

.btn-delete-servico {
    background: #e74c3c;
    color: white;
}

.btn-delete-servico:hover {
    background: #c0392b;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(231, 76, 60, 0.3);
}

.btn-delete-servico:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(231, 76, 60, 0.3);
}

.btn-edit-servico:disabled, .btn-delete-servico:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Tooltip para botões */
.btn-edit-servico[title], .btn-delete-servico[title] {
    position: relative;
}

.btn-edit-servico[title]:hover::after,
.btn-delete-servico[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    margin-bottom: 5px;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-group small {
    color: #6c757d;
    font-size: 12px;
    margin-top: 4px;
    display: block;
    line-height: 1.4;
    font-style: italic;
}

/* Ícones de Informação */
.info-icon {
    color: #3498db;
    font-size: 14px;
    margin-left: 8px;
    cursor: help;
    transition: color 0.3s ease;
}

.info-icon:hover {
    color: #2980b9;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e1e5e9;
}

.btn-save {
    background: #27ae60;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s ease;
}

.btn-save:hover {
    background: #229954;
}

.btn-save i {
    font-size: 16px;
}

.btn-add-local {
    background: #3498db;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.btn-add-local:hover {
    background: #2980b9;
}

.btn-add-local i {
    font-size: 16px;
}

.btn-add-servico {
    background: #3498db;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.btn-add-servico:hover {
    background: #2980b9;
}

.btn-add-servico i {
    font-size: 16px;
}

/* ========================================
   POPUP DE LOCALIZAÇÃO
======================================== */

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.popup-overlay.active .popup-container {
    transform: scale(1);
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #e1e5e9;
    background: #f8f9fa;
    border-radius: 12px 12px 0 0;
}

.popup-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 10px;
}

.popup-header h3 i {
    color: #3498db;
    font-size: 22px;
}

.popup-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #6c757d;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.popup-close:hover {
    background: #e9ecef;
    color: #2c3e50;
}

.popup-content {
    padding: 25px;
}

.popup-content .form-group {
    margin-bottom: 20px;
}

.popup-content .form-group:last-child {
    margin-bottom: 0;
}

.popup-content label {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 14px;
}

.popup-content input,
.popup-content select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
}

.popup-content input:focus,
.popup-content select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.popup-footer {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    padding: 20px 25px;
    border-top: 1px solid #e1e5e9;
    background: #f8f9fa;
    border-radius: 0 0 12px 12px;
}

.btn-cancel {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background-color 0.3s ease;
}

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

.btn-cancel i {
    font-size: 14px;
}

.btn-delete-confirm {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background-color 0.3s ease;
}

.btn-delete-confirm:hover {
    background: #c0392b;
}

.btn-delete-confirm i {
    font-size: 14px;
}

/* Confirmação de Exclusão */
.delete-confirmation {
    text-align: center;
    padding: 20px;
}

.delete-confirmation i {
    font-size: 48px;
    color: #e74c3c;
    margin-bottom: 20px;
}

.delete-confirmation p {
    margin: 10px 0;
    font-size: 16px;
    color: #2c3e50;
}

.delete-confirmation p:first-of-type {
    font-weight: 500;
}

.delete-confirmation p:last-of-type {
    color: #e74c3c;
    font-weight: 600;
}

/* Responsividade do Popup */
@media (max-width: 768px) {
    .popup-container {
        width: 95%;
        margin: 20px;
    }
    
    .popup-header,
    .popup-content,
    .popup-footer {
        padding: 20px;
    }
    
    .popup-footer {
        flex-direction: column;
    }
    
    .btn-cancel,
    .btn-save {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .popup-header h3 {
        font-size: 18px;
    }
    
    .popup-content {
        padding: 15px;
    }
}

/* Lista de Cadastros */
.cadastro-list {
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 25px;
}

/* Tabela de Locais */
.locais-table {
    overflow-x: auto;
}

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

.locais-table th,
.locais-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e1e5e9;
    vertical-align: middle;
}

.locais-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
    border-bottom: 2px solid #e1e5e9;
}

.locais-table td {
    font-size: 14px;
    color: #495057;
}

.locais-table tbody tr:hover {
    background: #f8f9fa;
}

/* Botões de Ação */
.action-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.btn-edit,
.btn-delete {
    background: none;
    border: none;
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.btn-edit {
    color: inherit;
    background: transparent;
}

.btn-edit:hover {
    background: #3498db;
    color: white;
}

.btn-delete {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}

.btn-delete:hover {
    background: #e74c3c;
    color: white;
}

/* ID Badge */
.id-badge {
    background: #6c757d;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    display: inline-block;
    min-width: 40px;
    text-align: center;
}

/* Status Badge - Moderno */
.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: default;
}

/* Input with Unit */
.input-with-unit {
    display: flex;
    align-items: center;
    gap: 8px;
}

.input-with-unit input {
    flex: 1;
    padding-right: 16px; /* garante setas à esquerda da tag */
}

.input-unit {
    position: static; /* remove overlay absoluto */
    display: inline-flex;
    align-items: center;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    color: #6c757d;
    font-weight: 600;
    min-width: 72px;
    text-align: center;
}

/* Form Sections */
.form-section {
    margin: 25px 0;
    padding: 15px 0;
    border-top: 1px solid #e9ecef;
}

.form-section:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.section-divider {
    position: relative;
    margin-bottom: 15px;
}

.section-divider span {
    background: #f8f9fa;
    color: #6c757d;
    padding: 0 15px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #dee2e6;
    z-index: -1;
}

/* Info Text */
.info-text {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 15px;
    margin-bottom: 15px;
    font-size: 13px;
    color: #6c757d;
    line-height: 1.4;
}

.info-text i {
    color: #007bff;
    margin-right: 8px;
}

/* Info with Field Layout */
.info-with-field {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
}

.info-with-field .info-text {
    flex: 1 1 auto;
    margin: 6px 0 0 0;
}

.info-with-field .form-group {
    flex: 1 1 auto;
    margin-bottom: 0;
}

.info-with-field .form-group label {
    margin-bottom: 3px;
    font-size: 14px;
    font-weight: 600;
}

.info-with-field .form-group input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

/* Responsive para mobile */
@media (max-width: 768px) {
    .info-with-field {
        flex-direction: column;
        gap: 15px;
    }
    
    .info-with-field .form-group {
        flex: 1;
    }
}

.status-badge.status-ativo {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
    border: none;
}

.status-badge.status-ativo:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

.status-badge.status-inativo {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
    border: none;
}

.status-badge.status-inativo:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

/* Mensagem de Agendamentos Esgotados */
.agendamento-error.order-expired {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    border: none;
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    color: white;
    box-shadow: 0 8px 32px rgba(255, 107, 107, 0.3);
    position: relative;
    overflow: hidden;
}

.agendamento-error.order-expired::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20px;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: rotate(45deg);
}

.agendamento-error.order-expired::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: -10px;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.agendamento-error.order-expired .error-icon {
    font-size: 48px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.agendamento-error.order-expired h2 {
    color: white !important;
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 20px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.agendamento-error.order-expired .error-details {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    text-align: left;
    backdrop-filter: blur(10px);
}

.agendamento-error.order-expired .error-details p {
    margin: 8px 0;
    font-size: 16px;
    line-height: 1.5;
}

.agendamento-error.order-expired .error-details strong {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
}

.agendamento-error.order-expired .error-actions {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.agendamento-error.order-expired .error-actions .button {
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.agendamento-error.order-expired .error-actions .button-primary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.agendamento-error.order-expired .error-actions .button-primary:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.agendamento-error.order-expired .error-actions .button-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.agendamento-error.order-expired .error-actions .button-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.7);
    transform: translateY(-2px);
}

/* Responsividade para a mensagem de esgotado */
@media (max-width: 768px) {
    .agendamento-error.order-expired {
        padding: 30px 20px;
    }
    
    .agendamento-error.order-expired h2 {
        font-size: 24px;
    }
    
    .agendamento-error.order-expired .error-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .agendamento-error.order-expired .error-actions .button {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

/* Badge de Produto Agendável */
.produto-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    text-transform: none;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
}

.produto-badge.ativo {
    background: #d4edda;
    color: #155724;
}

.produto-badge.inativo {
    background: #f8d7da;
    color: #721c24;
}

/* Lista de Produtos Múltiplos */
.produtos-lista {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.produtos-lista .produto-badge {
    margin: 0;
    font-size: 10px;
    padding: 2px 6px;
    max-width: 120px;
}

/* ========================================
   SELETOR DE PRODUTOS MELHORADO
======================================== */
.produtos-selector {
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.produtos-search {
    position: relative;
    padding: 15px;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
    display: flex;
    align-items: center;
}

.search-input {
    flex: 1;
    padding: 10px 15px 10px 40px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    box-sizing: border-box;
}

.search-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.search-icon-left {
    position: absolute;
    left: 35px;
    top: 50%;
    transform: translateY(-50%);
    color: #3498db;
    font-size: 14px;
    pointer-events: none;
    z-index: 1;
}

.produtos-container {
    max-height: 300px;
    overflow-y: auto;
}

.produtos-list {
    padding: 10px;
}

.produto-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border: 1px solid #eee;
    border-radius: 6px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
}

.produto-item:hover {
    border-color: #3498db;
    background: #f8f9ff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.1);
}

.produto-item.selected {
    border-color: #28a745;
    background: #f8fff9;
}

.produto-checkbox {
    margin-right: 12px;
    position: relative;
}

.produto-checkbox input[type="checkbox"] {
    display: none;
}

.produto-checkbox label {
    display: block;
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.produto-checkbox label:after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.produto-checkbox input[type="checkbox"]:checked + label {
    background: #28a745;
    border-color: #28a745;
}

.produto-checkbox input[type="checkbox"]:checked + label:after {
    opacity: 1;
}

.produto-info {
    flex: 1;
}

.produto-nome {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 4px;
    font-size: 14px;
}

.produto-preco {
    color: #6c757d;
    font-size: 12px;
    font-weight: 500;
}

.produto-status {
    opacity: 0;
    transition: opacity 0.3s ease;
    color: #28a745;
    font-size: 16px;
}

.produto-item.selected .produto-status {
    opacity: 1;
}

.produtos-selected {
    border-top: 1px solid #eee;
    background: #f8f9fa;
    padding: 15px;
}

.selected-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-weight: 600;
    color: #2c3e50;
}

.selected-count {
    background: #3498db;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.selected-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.selected-item {
    background: #28a745;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.selected-item .remove-btn {
    cursor: pointer;
    font-size: 14px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.selected-item .remove-btn:hover {
    opacity: 1;
}

.no-selection {
    color: #6c757d;
    font-style: italic;
    text-align: center;
    padding: 20px;
}

.no-products {
    text-align: center;
    color: #6c757d;
    padding: 40px 20px;
    font-style: italic;
}

/* Responsividade */
@media (max-width: 768px) {
    .produtos-container {
        max-height: 200px;
    }
    
    .produto-item {
        padding: 10px;
    }
    
    .produto-nome {
        font-size: 13px;
    }
    
    .produto-preco {
        font-size: 11px;
    }
}

/* Estado de Dados Vazios */
.no-data {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.no-data i {
    font-size: 48px;
    color: #bdc3c7;
    margin-bottom: 15px;
}

.no-data p {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 500;
}

.no-data small {
    font-size: 14px;
    color: #6c757d;
}

.cadastro-list h4 {
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    padding-bottom: 15px;
    border-bottom: 1px solid #e1e5e9;
}

.list-container {
    min-height: 200px;
}

.loading {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
    font-style: italic;
}

/* Estados de Loading */
.loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #e1e5e9;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

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

/* Responsividade para Abas */
@media (max-width: 768px) {
    .tab-navigation {
        flex-direction: column;
    }
    
    .tab-button {
        flex: none;
        justify-content: flex-start;
        border-bottom: 1px solid #e1e5e9;
        border-right: none;
    }
    
    .tab-button:last-child {
        border-bottom: none;
    }
    
    .tab-button.active {
        border-bottom-color: #e1e5e9;
        border-left: 3px solid #3498db;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn-save {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .cadastro-form,
    .cadastro-list {
        padding: 15px;
    }
    
    .cadastro-header {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .cadastro-header .header-actions {
        justify-content: flex-start;
    }
    
    .cadastro-header h3 {
        font-size: 20px;
    }
    
    .tab-panel {
        padding: 15px;
    }
    
    .locais-table {
        font-size: 12px;
    }
    
    .locais-table th,
    .locais-table td {
        padding: 8px 6px;
    }
    
    .id-badge {
        font-size: 10px;
        padding: 2px 6px;
        min-width: 30px;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 4px;
    }
    
    .btn-edit,
    .btn-delete {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
}

/* Gerenciamento Page Styles */
.gerenciamento-content {
    margin-top: 20px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.empty-state.empty-inline {
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
}

.empty-state-icon,
.empty-state .empty-icon {
    font-size: 48px;
    color: #0073aa;
    margin-bottom: 20px;
}

.empty-state.empty-inline .empty-icon {
    margin: 0;
    font-size: 40px;
}

.empty-state.empty-inline .empty-text h3 {
    margin: 0 0 6px 0;
}

.empty-state.empty-inline .empty-text p {
    margin: 0;
}

.empty-state h3 {
    color: #23282d;
    margin-bottom: 10px;
    font-size: 24px;
}

.empty-state p {
    color: #666;
    font-size: 16px;
    margin: 0;
}

/* Gerenciamento Tabs Navigation */
.gerenciamento-tabs {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin: 20px 0;
    overflow: hidden;
}

.tab-navigation {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #e1e5e9;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.tab-navigation::-webkit-scrollbar {
    display: none;
}

.tab-button {
    background: none;
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    min-width: 120px;
    justify-content: center;
}

.tab-button:hover {
    background: #e9ecef;
    color: #0073aa;
}

.tab-button.active {
    background: #fff;
    color: #0073aa;
    border-bottom-color: #0073aa;
}

.tab-button i {
    font-size: 16px;
}

/* Tab Content */
.tab-content {
    background: #fff;
    border-radius: 0 0 8px 8px;
    min-height: 400px;
}

.tab-panel {
    display: none;
    padding: 20px;
}

.tab-panel.active {
    display: block;
}

/* Responsive Tabs */
@media (max-width: 768px) {
    .tab-navigation {
        flex-direction: column;
    }
    
    .tab-button {
        width: 100%;
        justify-content: flex-start;
        border-bottom: 1px solid #e1e5e9;
        border-right: none;
    }
    
    .tab-button.active {
        border-bottom-color: #e1e5e9;
        border-right: 3px solid #0073aa;
    }
}

/* ========================================
   ESTILOS ESPECÍFICOS POR ABA
======================================== */

/* Localizações - Verde */
#localizacoes-tab .cadastro-header {
    background: #ffffff;
    border-left: 4px solid #27ae60;
    border-bottom: 1px solid #e1e5e9;
    padding: 20px;
    margin-bottom: 20px;
}

#localizacoes-tab .cadastro-header h2 {
    color: #27ae60;
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

#localizacoes-tab .btn-add {
    background: #27ae60;
    border-color: #27ae60;
    color: white;
}

#localizacoes-tab .btn-add:hover {
    background: #229954;
    border-color: #229954;
}

#localizacoes-tab .wp-list-table th {
    background: #f8fff9;
    border-bottom: 2px solid #27ae60;
    color: #27ae60;
    font-weight: 600;
}

/* Serviços - Roxo */
#servicos-tab .cadastro-header {
    background: #ffffff;
    border-left: 4px solid #8e44ad;
    border-bottom: 1px solid #e1e5e9;
    padding: 20px;
    margin-bottom: 20px;
}

#servicos-tab .cadastro-header h2 {
    color: #8e44ad;
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

#servicos-tab .btn-add {
    background: #8e44ad;
    border-color: #8e44ad;
    color: white;
}

#servicos-tab .btn-add:hover {
    background: #7d3c98;
    border-color: #7d3c98;
}

#servicos-tab .wp-list-table th {
    background: #faf8ff;
    border-bottom: 2px solid #8e44ad;
    color: #8e44ad;
    font-weight: 600;
}

/* AGRs - Azul */
#agrs-tab .cadastro-header {
    background: #ffffff;
    border-left: 4px solid #3498db;
    border-bottom: 1px solid #e1e5e9;
    padding: 20px;
    margin-bottom: 20px;
}

#agrs-tab .cadastro-header h2 {
    color: #3498db;
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

#agrs-tab .btn-add {
    background: #3498db;
    border-color: #3498db;
    color: white;
}

#agrs-tab .btn-add:hover {
    background: #2980b9;
    border-color: #2980b9;
}

#agrs-tab .wp-list-table th {
    background: #f8fbff;
    border-bottom: 2px solid #3498db;
    color: #3498db;
    font-weight: 600;
}

/* Conexões - Laranja */
#conexoes-tab .cadastro-header {
    background: #ffffff;
    border-left: 4px solid #e67e22;
    border-bottom: 1px solid #e1e5e9;
    padding: 20px;
    margin-bottom: 20px;
}

#conexoes-tab .cadastro-header h2 {
    color: #e67e22;
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

#conexoes-tab .btn-add {
    background: #e67e22;
    border-color: #e67e22;
    color: white;
}

#conexoes-tab .btn-add:hover {
    background: #d35400;
    border-color: #d35400;
}

#conexoes-tab .wp-list-table th {
    background: #fffbf8;
    border-bottom: 2px solid #e67e22;
    color: #e67e22;
    font-weight: 600;
}

/* Férias - Vermelho */
#ferias-tab .cadastro-header {
    background: #ffffff;
    border-left: 4px solid #e74c3c;
    border-bottom: 1px solid #e1e5e9;
    padding: 20px;
    margin-bottom: 20px;
}

#ferias-tab .cadastro-header h2 {
    color: #e74c3c;
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

#ferias-tab .btn-add {
    background: #e74c3c;
    border-color: #e74c3c;
    color: white;
}

#ferias-tab .btn-add:hover {
    background: #c0392b;
    border-color: #c0392b;
}

#ferias-tab .wp-list-table th {
    background: #fff8f8;
    border-bottom: 2px solid #e74c3c;
    color: #e74c3c;
    font-weight: 600;
}

/* Relatórios - Cinza */
#relatorios-tab .cadastro-header {
    background: #ffffff;
    border-left: 4px solid #34495e;
    border-bottom: 1px solid #e1e5e9;
    padding: 20px;
    margin-bottom: 20px;
}

#relatorios-tab .cadastro-header h2 {
    color: #34495e;
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

#relatorios-tab .btn-add {
    background: #34495e;
    border-color: #34495e;
    color: white;
}

#relatorios-tab .btn-add:hover {
    background: #2c3e50;
    border-color: #2c3e50;
}

#relatorios-tab .wp-list-table th {
    background: #f8f9fa;
    border-bottom: 2px solid #34495e;
    color: #34495e;
    font-weight: 600;
}

/* Estilos Gerais para Headers */
.cadastro-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.cadastro-header .btn-add {
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.cadastro-header .btn-add:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Responsividade para Headers Coloridos */
@media (max-width: 768px) {
    .cadastro-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .cadastro-header h2 {
        font-size: 20px;
    }
    
    .cadastro-header .btn-add {
        width: 100%;
        max-width: 200px;
    }
}

/* ========================================
   ESTILOS PARA TABELA DE LOCALIZAÇÕES
======================================== */

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.status-ativo {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-inativo {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Botões de Ação */
.btn-edit, .btn-delete {
    background: none;
    border: none;
    padding: 6px 8px;
    margin: 0 2px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.btn-edit {
    color: inherit;
}

/* Variante compacta com rótulo acessível (tooltip nativa via title) */
.btn-edit:hover {
    box-shadow: 0 0 0 3px rgba(10,132,255,0.15);
}

.btn-edit:hover {
    background: #3498db;
    color: white;
}

.btn-delete {
    color: #e74c3c;
}

.btn-delete:hover {
    background: #e74c3c;
    color: white;
}

/* Popups */
.popup-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.popup-container.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.popup-container.active .popup-content {
    transform: scale(1);
}

.popup-header {
    background: #f8f9fa;
    padding: 20px;
    border-bottom: 1px solid #e1e5e9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px 8px 0 0;
}

.popup-header h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.popup-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.popup-close:hover {
    background: #e9ecef;
    color: #333;
}

.popup-body {
    padding: 20px;
}

.popup-footer {
    padding: 20px;
    border-top: 1px solid #e1e5e9;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    background: #f8f9fa;
    border-radius: 0 0 8px 8px;
}

/* Formulários */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 2px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #27ae60;
    box-shadow: 0 0 0 2px rgba(39, 174, 96, 0.2);
}

/* Botões dos Popups */
.btn-cancel, .btn-save, .btn-delete {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

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

.btn-save {
    background: #27ae60;
    color: white;
}

.btn-save:hover {
    background: #229954;
}

.btn-delete {
    background: #e74c3c;
    color: white;
}

.btn-delete:hover {
    background: #c0392b;
}

/* Responsividade dos Popups */
@media (max-width: 768px) {
    .popup-content {
        width: 95%;
        margin: 20px;
    }
    
    .popup-footer {
        flex-direction: column;
    }
    
    .popup-footer button {
        width: 100%;
    }
}

/* Badges para tipo de atendimento */
.presencial-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.presencial-presencial {
    background: #34c759;
    color: white;
}

.presencial-online {
    background: #f57c00;
    color: white;
}

.presencial-domiciliar {
    background: #9c27b0;
    color: white;
}

/* Estilo para horários que já passaram (filtro de hoje) */
.time-passed {
    color: #dc3545 !important;
    opacity: 0.7;
    text-decoration: line-through;
}

.time-passed i {
    color: #dc3545 !important;
}
  