:root {
    --primary-color: #2ecc71;
    --primary-hover: #27ae60;
    --secondary-color: #34495e;
    --bg-color: #f4f7f6;
    --card-bg: #ffffff;
    --text-color: #333;
    --border-color: #ddd;
    --error-color: #e74c3c;
    --blue-color: #3498db;
    --gray-color: #95a5a6;

    /* Theme adaptive variables */
    --input-bg: #ffffff;
    --input-color: #333333;
    --header-title-color: #065f46;
    --header-border-color: #e2e8f0;
    --filter-bg: #f8fafc;
    --filter-border: #e2e8f0;
    --btn-lucide-bg: #f8fafc;
    --btn-lucide-color: #64748b;
    --btn-lucide-border: #e2e8f0;
    --btn-lucide-hover-bg: #f1f5f9;
    --btn-lucide-hover-color: #2563eb;
    --btn-lucide-hover-border: #bfdbfe;
    --placeholder-color: #a0aec0;
}


/* ===== CONTAINER E ESTRUTURA GERAL ===== */
.z-container {
    margin: 20px auto;
    padding: 30px;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    font-family: 'Inter', 'Roboto', sans-serif;
}

.z-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--header-border-color);
}

.z-header h1 {
    margin: 0;
    color: var(--header-title-color);
    font-size: 1.875rem;
}

.z-header p {
    margin: 0.25rem 0 0 0;
    color: #64748b;
}

.z-header-actions {
    display: flex;
    gap: 0.5rem;
}

/* ===== SEÇÕES E GRIDS ===== */
.z-section {
    margin-bottom: 20px;
}

.z-section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-left: 4px solid var(--primary-color);
    padding-left: 15px;
}

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

.z-grid[style*="margin-top"] {
    margin-top: 10px !important;
}

.z-grid[style*="margin-bottom"] {
    margin-bottom: 15px !important;
}

.z-grid[style*="gap"] {
    gap: 10px !important;
}

.z-grid-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-end;
}

.z-grid-row .z-field {
    flex: 1;
    min-width: 150px;
}

/* ===== CAMPOS DE ENTRADA ===== */
.z-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.z-field.full {
    grid-column: 1 / -1;
}

.z-field label {
    font-size: 14px;
    font-weight: 500;
    color: var(--secondary-color);
}

.z-input {
    width: 100%;
    padding: 6px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    outline: none;
    box-sizing: border-box;
    height: 30px;
    background-color: var(--input-bg);
    color: var(--input-color);
    line-height: 16px;
    margin: 0;
}

.z-input::placeholder {
    color: var(--placeholder-color);
    opacity: 1;
}

/* Override inline height:45px of inputs, buttons and selects to match 30px height */
select.z-input[style*="height:45px"],
select.z-input[style*="height: 45px"],
input.z-input[style*="height:45px"],
input.z-input[style*="height: 45px"],
.z-btn-lucide[style*="height:45px"],
.z-btn-lucide[style*="height: 45px"],
.z-btn[style*="height:45px"],
.z-btn[style*="height: 45px"] {
    height: 30px !important;
    width: 30px !important;
    line-height: normal !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Specific override for button with text (like "Alterar Data") */
input[type="button"].z-btn[style*="height:45px"],
input[type="button"].z-btn[style*="height: 45px"] {
    width: auto !important;
    padding: 0 12px !important;
}

select.z-input {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
    appearance: none;
    -webkit-appearance: none;
}

.z-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.2);
}

.z-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 15px;
    color: var(--secondary-color);
    margin-top: 10px;
}

.z-checkbox-label input {
    width: 20px;
    height: 20px;
    accent-color: var(--primary-color);
}

/* ===== BOTÕES ===== */
.z-btn {
    padding: 0 20px;
    height: 42px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    line-height: 42px;
    text-decoration: none;
    outline: none;
    white-space: nowrap;
    vertical-align: middle;
}

.z-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
}

/* ===== VARIANTES DE CORES PARA BOTÕES ZAURIS ===== */

/* Verde (Já existente) */
.z-btn-green { background: var(--primary-color); color: white; }
.z-btn-green:hover { background: var(--primary-hover); box-shadow: 0 4px 15px rgba(46, 204, 113, 0.4); transform: translateY(-2px); }
.z-btn-green:active { transform: translateY(0); }

/* Vermelho (Refinado) */
.z-btn-red { background: var(--error-color); color: white; }
.z-btn-red:hover { background: #c0392b; box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4); transform: translateY(-2px); }
.z-btn-red:active { transform: translateY(0); }

/* Azul */
.z-btn-blue { background: #2563eb; color: white; }
.z-btn-blue:hover { background: #3b82f6; box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4); transform: translateY(-2px); }
.z-btn-blue:active { transform: translateY(0); }

/* Amarelo */
.z-btn-yellow { background: #ca8a04; color: white; }
.z-btn-yellow:hover { background: #eab308; box-shadow: 0 4px 15px rgba(202, 138, 4, 0.4); transform: translateY(-2px); }
.z-btn-yellow:active { transform: translateY(0); }

/* Laranja */
.z-btn-orange { background: #ea580c; color: white; }
.z-btn-orange:hover { background: #f97316; box-shadow: 0 4px 15px rgba(234, 88, 12, 0.4); transform: translateY(-2px); }
.z-btn-orange:active { transform: translateY(0); }

/* Roxo */
.z-btn-purple { background: #7c3aed; color: white; }
.z-btn-purple:hover { background: #8b5cf6; box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4); transform: translateY(-2px); }
.z-btn-purple:active { transform: translateY(0); }

/* Cinza */
.z-btn-gray { background: #4b5563; color: white; }
.z-btn-gray:hover { background: #6b7280; box-shadow: 0 4px 15px rgba(75, 85, 99, 0.4); transform: translateY(-2px); }
.z-btn-gray:active { transform: translateY(0); }

.z-btn-add, .z-btn-remove {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

.z-btn-add { background: var(--primary-color); color: white; }
.z-btn-add:hover { background: var(--primary-hover); transform: scale(1.1); }

.z-btn-remove { background: var(--error-color); color: white; }
.z-btn-remove:hover { background: #c0392b; transform: scale(1.1); }

/* ===== PAINEL DE ATALHOS ===== */
.z-shortcuts-banner {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 24px;
}

.z-shortcuts-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.z-shortcuts-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.z-sc-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    border: 1px solid transparent;
}

.z-sc-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    border-color: rgba(255,255,255,0.2);
}

.z-sc-blue   { background: rgba(59, 130, 246, 0.25); }
.z-sc-green  { background: rgba(16, 185, 129, 0.25); }
.z-sc-orange { background: rgba(245, 158, 11, 0.25); }
.z-sc-purple { background: rgba(139, 92, 246, 0.25); }

.z-sc-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 18px;
}

.z-sc-blue   .z-sc-icon { background: #3b82f6; color: #fff; }
.z-sc-green  .z-sc-icon { background: #10b981; color: #fff; }
.z-sc-orange .z-sc-icon { background: #f59e0b; color: #fff; }
.z-sc-purple .z-sc-icon { background: #8b5cf6; color: #fff; }

.z-sc-info { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.z-sc-info strong { color: #f1f5f9; font-size: 14px; font-weight: 700; }
.z-sc-info span { color: #94a3b8; font-size: 11px; }
.z-sc-arrow { color: #64748b; font-size: 12px; transition: all 0.2s; }

/* ===== UTILS E TABELAS ===== */
.z-result-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.z-result-table th {
    background: #f1f5f9;
    padding: 0.75rem;
    text-align: left;
    color: #475569;
    border-bottom: 2px solid #e2e8f0;
}

.z-result-table td {
    padding: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
}

.z-result-row { cursor: pointer; transition: background 0.2s; }
.z-result-row:hover { background: #f1f5f9; }

/* ===== ANIMAÇÕES ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.z-section, .z-servico-row, .z-shortcuts-banner {
    animation: fadeIn 0.5s ease forwards;
}


@media (max-width: 768px) {
    .z-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .z-header-actions {
        width: 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 0.75rem;
    }

    .z-header-actions button, 
    .z-header-actions .z-btn,
    .z-header-actions span {
        flex: 1;
        min-width: 140px;
    }

    .z-header h1 {
        font-size: 1.5rem;
    }
}

@media (max-width: 700px) {
    .z-shortcuts-cards { grid-template-columns: repeat(2, 1fr); }
}
}

.z-filter {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    background: var(--filter-bg);
    border-radius: 10px;
    border: 1px solid var(--filter-border);
    margin-bottom: 24px;
}

.z-filter-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    align-items: center;
    gap: 12px;
    min-height: 36px;
}

.z-filter-row label {
    font-size: 13px;
    font-weight: 600;
    color: var(--secondary-color);
    text-align: right;
    padding-right: 8px;
    white-space: nowrap;
    margin: 0;
}

.z-filter-row .z-input,
.z-filter-cols .z-input,
.z-filter-inline .z-input {
    height: 34px;
    font-size: 13px;
    padding: 0 10px;
    box-sizing: border-box;
    margin: 0;
}

/* Linha com múltiplos campos lado a lado */
.z-filter-cols {
    display: grid;
    grid-template-columns: 200px 1fr 1fr;
    align-items: center;
    gap: 12px;
    min-height: 36px;
}

.z-filter-cols label {
    font-size: 13px;
    font-weight: 600;
    color: var(--secondary-color);
    text-align: right;
    padding-right: 8px;
    white-space: nowrap;
    margin: 0;
}

/* Linha de campos inline (código + nome + botão) */
.z-filter-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 34px;
}

.z-filter-inline .z-input-code {
    width: 90px;
    flex-shrink: 0;
    height: 34px;
    box-sizing: border-box;
}

.z-filter-inline .z-input-name {
    flex: 1;
    height: 34px;
    box-sizing: border-box;
}

/* Botão dentro do inline deve ter mesma altura dos inputs */
.z-filter-inline .z-btn {
    height: 34px;
    padding: 0 15px;
    font-size: 13px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    white-space: nowrap;
    transform: none !important;
    margin: 0;
    line-height: 1;
    box-sizing: border-box;
}

/* Separador de seção dentro do filtro */
.z-filter-divider {
    border: none;
    border-top: 1px dashed #cbd5e1;
    margin: 6px 0;
}

/* Área de ações do filtro (botões) */
.z-filter-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
    margin-top: 6px;
}

/* Label de filtro ativo */
.z-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #dbeafe;
    color: #1e40af;
    border-radius: 20px;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 500;
    margin-top: 4px;
}

/* Resultado após pesquisa */
.z-result-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #166534;
    font-weight: 500;
}

/* Responsivo para filtro */
@media (max-width: 768px) {
    .z-filter-row,
    .z-filter-cols {
        grid-template-columns: 1fr;
    }
    .z-filter-row label,
    .z-filter-cols label {
        text-align: left;
    }
}


/* ===== BOTÃO LUCIDE (Elegante e Minimalista) ===== */
.z-btn-lucide {
    background: var(--btn-lucide-bg);
    color: var(--btn-lucide-color);
    border: 1px solid var(--btn-lucide-border);
    border-radius: 8px;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
    margin: 0;
}

.z-btn-lucide:hover {
    background: var(--btn-lucide-hover-bg);
    color: var(--btn-lucide-hover-color);
    border-color: var(--btn-lucide-hover-border);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transform: translateY(-1px);
}

.z-btn-lucide:active {
    transform: translateY(0);
}

.z-btn-lucide svg {
    width: 18px;
    height: 18px;
    stroke-width: 2.5px;
}

.ds-none {
    display: none;
}

.z-footer {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
    border-top: 1px solid var(--bg-color);
}

textarea.z-input {
    height: auto;
    min-height: 90px;
}

/* =========================================
   MODIFICADORES DE LAYOUT INDIVIDUALIZADOS
   ========================================= */

/* COMPACTO (-1) */
.layout-config--1 .z-section { margin-bottom: 12px; }
.layout-config--1 .z-section-title { margin-bottom: 12px; font-size: 16px; gap: 6px; }
.layout-config--1 .z-section-title svg { width: 18px; height: 18px; }
.layout-config--1 .z-grid, .layout-config--1 .z-grid-row { gap: 8px; }
.layout-config--1 .z-grid[style*="gap"], .layout-config--1 .z-grid[style*="margin-top"], .layout-config--1 .z-grid[style*="margin-bottom"] { gap: 8px !important; margin-top: 8px !important; margin-bottom: 8px !important; }
.layout-config--1 .z-field { gap: 3px; }
.layout-config--1 .z-input { padding: 4px 6px; height: 26px; font-size: 14px; line-height: 14px; }
.layout-config--1 select.z-input { padding-right: 24px; background-position: right 8px center; }
.layout-config--1 select.z-input[style*="height:45px"], .layout-config--1 select.z-input[style*="height: 45px"], .layout-config--1 input.z-input[style*="height:45px"], .layout-config--1 input.z-input[style*="height: 45px"], .layout-config--1 .z-btn-lucide[style*="height:45px"], .layout-config--1 .z-btn-lucide[style*="height: 45px"], .layout-config--1 .z-btn[style*="height:45px"], .layout-config--1 .z-btn[style*="height: 45px"] { height: 26px !important; width: 26px !important; }
.layout-config--1 input[type="button"].z-btn[style*="height:45px"], .layout-config--1 input[type="button"].z-btn[style*="height: 45px"] { width: auto !important; padding: 0 10px !important; font-size: 13px; }

/* SUPER COMPACTO (-2) */
.layout-config--2 .z-section { margin-bottom: 8px; }
.layout-config--2 .z-section-title { margin-bottom: 8px; font-size: 14px; gap: 4px; padding-left: 10px; }
.layout-config--2 .z-section-title svg { width: 16px; height: 16px; }
.layout-config--2 .z-grid, .layout-config--2 .z-grid-row { gap: 4px; }
.layout-config--2 .z-grid[style*="gap"], .layout-config--2 .z-grid[style*="margin-top"], .layout-config--2 .z-grid[style*="margin-bottom"] { gap: 4px !important; margin-top: 4px !important; margin-bottom: 4px !important; }
.layout-config--2 .z-field { gap: 2px; }
.layout-config--2 .z-field label { font-size: 12px; }
.layout-config--2 .z-input { padding: 2px 4px; height: 22px; font-size: 13px; line-height: 13px; border-radius: 4px;}
.layout-config--2 select.z-input { padding-right: 20px; background-position: right 6px center; }
.layout-config--2 select.z-input[style*="height:45px"], .layout-config--2 select.z-input[style*="height: 45px"], .layout-config--2 input.z-input[style*="height:45px"], .layout-config--2 input.z-input[style*="height: 45px"], .layout-config--2 .z-btn-lucide[style*="height:45px"], .layout-config--2 .z-btn-lucide[style*="height: 45px"], .layout-config--2 .z-btn[style*="height:45px"], .layout-config--2 .z-btn[style*="height: 45px"] { height: 22px !important; width: 22px !important; }
.layout-config--2 .z-btn-lucide svg { width: 14px; height: 14px; }
.layout-config--2 input[type="button"].z-btn[style*="height:45px"], .layout-config--2 input[type="button"].z-btn[style*="height: 45px"] { width: auto !important; padding: 0 8px !important; font-size: 12px; }

/* AMPLIADO (1) */
.layout-config-1 .z-section { margin-bottom: 30px; }
.layout-config-1 .z-section-title { margin-bottom: 25px; font-size: 20px; gap: 12px; }
.layout-config-1 .z-section-title svg { width: 24px; height: 24px; }
.layout-config-1 .z-grid, .layout-config-1 .z-grid-row { gap: 16px; }
.layout-config-1 .z-grid[style*="gap"], .layout-config-1 .z-grid[style*="margin-top"], .layout-config-1 .z-grid[style*="margin-bottom"] { gap: 16px !important; margin-top: 16px !important; margin-bottom: 16px !important; }
.layout-config-1 .z-field { gap: 8px; }
.layout-config-1 .z-field label { font-size: 15px; }
.layout-config-1 .z-input { padding: 8px; height: 36px; font-size: 16px; line-height: 18px; }
.layout-config-1 select.z-input { padding-right: 36px; background-position: right 12px center; }
.layout-config-1 select.z-input[style*="height:45px"], .layout-config-1 select.z-input[style*="height: 45px"], .layout-config-1 input.z-input[style*="height:45px"], .layout-config-1 input.z-input[style*="height: 45px"], .layout-config-1 .z-btn-lucide[style*="height:45px"], .layout-config-1 .z-btn-lucide[style*="height: 45px"], .layout-config-1 .z-btn[style*="height:45px"], .layout-config-1 .z-btn[style*="height: 45px"] { height: 36px !important; width: 36px !important; }
.layout-config-1 .z-btn-lucide svg { width: 20px; height: 20px; }
.layout-config-1 input[type="button"].z-btn[style*="height:45px"], .layout-config-1 input[type="button"].z-btn[style*="height: 45px"] { width: auto !important; padding: 0 16px !important; font-size: 16px; }

/* ===== ESTILIZAÇÃO MODERNA DO HEADER E MENU ===== */
header {
    background-color: #ffffff !important;
    border-bottom: 1px solid #e2e8f0 !important;
    padding: 10px 0 !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
header .content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 96%;
    max-width: 1400px;
    margin: 0 auto;
}
header .main_logo {
    padding: 0 !important;
    margin: 0 !important;
}
header .main_logo img {
    height: 40px !important;
    max-height: 40px !important;
}
.main_header_top {
    padding: 0 !important;
    margin: 0 !important;
}
.main_header_top p {
    margin: 0 !important;
    font-size: 14px;
    color: #475569;
    font-weight: 500;
}
.main_header_top p b {
    color: var(--secondary-color);
}

/* Menu Container */
.main_menu {
    background-color: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
    margin-bottom: 20px;
}
.main_menu .content {
    width: 96%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 !important;
}
.main_nav {
    margin-top: 0 !important;
}
.main_nav_menu {
    margin-top: 0 !important;
}
.main_nav_menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.main_nav_item {
    padding-bottom: 0 !important;
}
.main_nav a {
    color: #475569 !important;
    font-size: 14px;
    font-weight: 600 !important;
    padding: 14px 18px !important;
    display: flex !important;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    border-bottom: 2px solid transparent;
}
.main_nav a:hover {
    color: var(--primary-color) !important;
    text-decoration: none !important;
    background-color: #f1f5f9;
}
.main_nav li:hover > a {
    color: var(--primary-color) !important;
    text-decoration: none !important;
}
.main_nav_item img {
    display: none !important; /* Hide old tiny inline icons, we will use modern styling or custom icons */
}
/* Submenus */
.main_nav .sub {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
    top: 48px !important;
    width: 220px !important;
    padding: 6px !important;
}
.main_nav .sub li {
    float: none !important;
}
.main_nav .sub a {
    color: #475569 !important;
    padding: 8px 12px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    border-radius: 6px;
    text-align: left !important;
    display: block !important;
    float: none !important;
    width: auto !important;
}
.main_nav .sub a:hover {
    background: #f1f5f9 !important;
    color: var(--primary-color) !important;
    text-decoration: none !important;
}

/* Mobile adjustments */
@media (max-width: 880px) {
    .main_nav .main_nav_menu {
        background: #1e293b !important;
        padding-top: 20px;
    }
    .main_nav_item > a {
        color: #f1f5f9 !important;
        font-size: 14px !important;
        padding: 16px !important;
        border-bottom: 1px solid #334155;
    }
    .main_nav_item > a:hover {
        background: #334155 !important;
    }
    .main_nav .sub {
        background: #0f172a !important;
        border: none !important;
        box-shadow: none !important;
        position: static !important;
        width: 100% !important;
        padding: 0 !important;
    }
    .main_nav .sub a {
        color: #cbd5e1 !important;
        padding: 12px 12px 12px 30px !important;
        font-size: 13px !important;
    }
    .main_nav .sub a:hover {
        background: #1e293b !important;
    }
    .mobile_action_menu {
        margin-top: 0 !important;
        padding: 10px !important;
    }
}

/* ===== MODERN JQUERY UI TABS ===== */
.ui-tabs {
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
}

.ui-tabs .ui-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    background: #f1f5f9 !important;
    padding: 4px !important;
    border-radius: 8px !important;
    border: 1px solid #e2e8f0 !important;
    margin-bottom: 20px !important;
    gap: 4px;
    list-style: none !important;
}

.ui-tabs .ui-tabs-nav li {
    float: none !important;
    margin: 0 !important;
    border: none !important;
    background: transparent !important;
    border-radius: 6px !important;
    transition: all 0.2s ease;
}

.ui-tabs .ui-tabs-nav li a {
    color: #64748b !important;
    font-weight: 600 !important;
    padding: 8px 16px !important;
    display: block;
    text-decoration: none !important;
    font-size: 14px;
    border-radius: 6px !important;
    transition: all 0.2s ease;
}

.ui-tabs .ui-tabs-nav li.ui-tabs-active {
    background: #ffffff !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06) !important;
}

.ui-tabs .ui-tabs-nav li.ui-tabs-active a {
    color: var(--primary-color) !important;
}

.ui-tabs .ui-tabs-nav li:not(.ui-tabs-active):hover {
    background: rgba(0, 0, 0, 0.05) !important;
}

.ui-tabs .ui-tabs-nav li:not(.ui-tabs-active):hover a {
    color: #334155 !important;
}

.ui-tabs .ui-tabs-panel {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 20px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}


