/**
 * YoelClass — tema moderno global
 * Carregado após style_black.css; alinhado ao dashboard (slate + blue)
 */
:root {
    --yc-font: 'Inter', 'Open Sans', system-ui, -apple-system, sans-serif;
    --yc-bg: #f1f5f9;
    --yc-surface: #ffffff;
    --yc-border: #e2e8f0;
    --yc-border-strong: #cbd5e1;
    --yc-text: #0f172a;
    --yc-text-muted: #64748b;
    --yc-primary: #f58b3c;
    --yc-primary-hover: #e46526;
    --yc-primary-deep: #c9561f;
    --yc-primary-soft: rgba(245, 139, 60, 0.12);
    --yc-primary-shadow: rgba(228, 101, 38, 0.32);
    --yc-btn-gradient: linear-gradient(to right, #f58b3c 0%, #e46526 100%);
    --yc-btn-shadow: 0 4px 14px rgba(228, 101, 38, 0.35);
    --yc-btn-shadow-hover: 0 6px 18px rgba(228, 101, 38, 0.42);
    --yc-btn-radius: 10px;
    --yc-table-row-odd: #eef2f7;
    --yc-table-row-even: #ffffff;
    --yc-table-row-hover: #fde8d8;
    --yc-table-row-line: #dde4ed;
    --yc-accent: #7c3aed;
    --yc-header: #0f172a;
    --yc-header-end: #1e293b;
    --yc-success: #059669;
    --yc-danger: #dc2626;
    --yc-warning: #d97706;
    --yc-radius: 12px;
    --yc-radius-sm: 8px;
    --yc-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
    --yc-shadow-md: 0 4px 14px rgba(15, 23, 42, 0.08);
    --yc-transition: 0.18s ease;
}

/* ── Base ── */
body.yoel-modern {
    background: var(--yc-bg) !important;
    color: var(--yc-text);
    font-family: var(--yc-font);
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body.yoel-modern p,
body.yoel-modern input,
body.yoel-modern button,
body.yoel-modern select,
body.yoel-modern textarea {
    font-family: var(--yc-font);
}

body.yoel-modern.page-login {
    background-color: #1a1d23 !important;
    background-image:
        linear-gradient(160deg, rgba(33, 37, 43, 0.92) 0%, rgba(26, 29, 35, 0.95) 45%, rgba(44, 24, 16, 0.9) 100%),
        linear-gradient(rgba(245, 139, 60, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(245, 139, 60, 0.04) 1px, transparent 1px);
    background-size: auto, 32px 32px, 32px 32px;
    min-height: 100vh;
}

/* ── Top bar ── */
body.yoel-modern .yc-topbar {
    background: linear-gradient(90deg, var(--yc-header) 0%, var(--yc-header-end) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: var(--yc-shadow-md);
}

body.yoel-modern .yc-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 20px;
    max-width: 100%;
}

body.yoel-modern .yc-brand {
    display: flex;
    align-items: baseline;
    gap: 8px;
    text-decoration: none !important;
    color: #fff !important;
}

body.yoel-modern .yc-brand-name {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
}

body.yoel-modern .yc-brand-version {
    font-size: 0.7rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.55);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

body.yoel-modern .yc-brand-readonly {
    margin-left: 10px;
    padding: 2px 8px;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #0f172a;
    background: #fbbf24;
    border-radius: 999px;
    vertical-align: middle;
}

body.yoel-modern .yc-topbar-user {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
}

body.yoel-modern .yc-topbar-user-name {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.yoel-modern .yc-topbar-user-name .fa {
    color: var(--yc-primary);
    background: var(--yc-primary-soft);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}

body.yoel-modern .yc-logout {
    color: rgba(255, 255, 255, 0.85) !important;
    text-decoration: none;
    padding: 6px 14px;
    border-radius: var(--yc-radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 12px;
    font-weight: 600;
    transition: background var(--yc-transition), border-color var(--yc-transition);
}

body.yoel-modern .yc-logout:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff !important;
    text-decoration: none;
}

/* Legacy navbar (fallback if cabecalho not updated) */
body.yoel-modern .navbar-inner {
    background: linear-gradient(90deg, var(--yc-header) 0%, var(--yc-header-end) 100%) !important;
    border: none !important;
    box-shadow: var(--yc-shadow-md);
}

body.yoel-modern .navbar .brand font,
body.yoel-modern .navbar-inner font {
    font-family: var(--yc-font) !important;
}

/* ── Subnavbar / menu ── */
body.yoel-modern .subnavbar-inner {
    height: auto;
    min-height: 56px;
    background: var(--yc-surface);
    border-bottom: 1px solid var(--yc-border);
    box-shadow: var(--yc-shadow);
}

body.yoel-modern .subnavbar .container > ul,
body.yoel-modern .subnavbar .mainnav {
    display: flex;
    flex-wrap: wrap;
    height: auto;
    min-height: 56px;
    align-items: stretch;
    padding: 0;
    margin: 0;
    gap: 0;
}

body.yoel-modern .subnavbar .container > ul > li,
body.yoel-modern .subnavbar .mainnav > li {
    float: none;
    min-width: auto !important;
    height: auto;
    border-left: none;
    border-right: 1px solid var(--yc-border);
}

body.yoel-modern .subnavbar .container > ul > li:last-child,
body.yoel-modern .subnavbar .mainnav > li:last-child {
    border-right: none;
}

body.yoel-modern .subnavbar .container > ul > li > a,
body.yoel-modern .subnavbar .mainnav > li > a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 16px;
    min-height: 56px;
    font-size: 11px;
    font-weight: 600;
    color: var(--yc-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    transition: color var(--yc-transition), background var(--yc-transition);
    border-bottom: 3px solid transparent;
}

body.yoel-modern .subnavbar .container > ul > li > a:hover,
body.yoel-modern .subnavbar .mainnav > li > a:hover {
    color: var(--yc-primary);
    background: var(--yc-primary-soft);
    text-decoration: none;
}

body.yoel-modern .subnavbar .container > ul > li > a > i,
body.yoel-modern .subnavbar .mainnav > li > a > i {
    margin: 0;
    font-size: 18px;
    width: auto;
    height: auto;
    color: inherit;
}

body.yoel-modern .subnavbar .container > ul > li.active > a,
body.yoel-modern .subnavbar .mainnav > li.active > a {
    height: auto;
    color: var(--yc-primary) !important;
    background: var(--yc-primary-soft);
    border-bottom-color: var(--yc-primary) !important;
}

/* ── Main content area ── */
body.yoel-modern .main {
    padding: 0;
    width: 100%;
    margin: 0 auto;
}

body.yoel-modern .main-inner {
    padding: 20px 24px 32px;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

body.yoel-modern .main .container-fluid,
body.yoel-modern .main-inner > .container-fluid {
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 12px;
    padding-right: 12px;
    box-sizing: border-box;
}

body.yoel-modern .subnavbar .container,
body.yoel-modern .yc-topbar-inner.container {
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 16px;
    padding-right: 16px;
}

/* ── Widgets ── */
body.yoel-modern .widget {
    margin-bottom: 1.5rem;
    border-radius: var(--yc-radius);
    overflow: hidden;
    box-shadow: var(--yc-shadow);
    border: 1px solid var(--yc-border);
    background: var(--yc-surface);
}

body.yoel-modern .widget-header {
    height: auto;
    min-height: auto;
    line-height: 1.3;
    padding: 10px 18px;
    background: var(--yc-surface) !important;
    filter: none !important;
    border: none !important;
    border-bottom: 1px solid var(--yc-border) !important;
    border-radius: 0;
}

body.yoel-modern .widget-header h3 {
    top: 0;
    left: 0;
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--yc-text);
    text-shadow: none;
    line-height: 1.3;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

body.yoel-modern .widget-header [class^="icon-"],
body.yoel-modern .widget-header [class*=" icon-"],
body.yoel-modern .widget-header .fa {
    margin: 0;
    color: var(--yc-primary);
    font-size: 16px;
}

body.yoel-modern .widget-content {
    padding: 20px 22px 24px;
    background: var(--yc-surface);
    border: none !important;
    border-radius: 0 !important;
}

body.yoel-modern .widget-content:has(.yc-table-toolbar) {
    padding-top: 10px;
    padding-bottom: 14px;
}

body.yoel-modern .yc-list-toolbar-wrap {
    padding: 0;
    margin: 0;
}

body.yoel-modern .yc-toolbar-messages {
    margin-bottom: 8px !important;
}

body.yoel-modern .yc-toolbar-messages:empty {
    display: none;
    margin: 0 !important;
}

body.yoel-modern .widget-content > .container-fluid,
body.yoel-modern .widget-content .container-fluid {
    padding-left: 0;
    padding-right: 0;
    max-width: 100%;
}

body.yoel-modern .widget-content > div[align="center"] {
    margin: 0;
    padding: 0;
    background: transparent !important;
    height: auto !important;
    text-align: inherit;
}

body.yoel-modern .widget-content .cols {
    margin-bottom: 14px;
}

body.yoel-modern .widget-content .cols:last-child {
    margin-bottom: 0;
}

body.yoel-modern .widget-content .row {
    margin-left: -10px;
    margin-right: -10px;
    margin-bottom: 14px;
}

body.yoel-modern .widget-content .row:last-child {
    margin-bottom: 0;
}

body.yoel-modern .widget-content .row > [class*="col-"] {
    padding-left: 10px;
    padding-right: 10px;
    margin-bottom: 12px;
}

body.yoel-modern .widget-content .alert {
    margin-bottom: 16px;
}

body.yoel-modern .widget-content .tab-content {
    padding-top: 4px;
}

body.yoel-modern .widget-content .tab-content > br {
    display: none;
}

body.yoel-modern .widget-content #mensagem {
    margin-bottom: 12px;
}

body.yoel-modern .form-group,
body.yoel-modern .control-group {
    margin-bottom: 16px;
}

body.yoel-modern .widget-header + .widget-content {
    border-top: none;
}

/* ── Botão primário laranja (padrão login) ── */
body.yoel-modern .btn {
    border-radius: var(--yc-btn-radius);
    font-weight: 600;
    font-size: 13px;
    padding: 8px 16px;
    line-height: 1.4;
    transition: filter var(--yc-transition), transform var(--yc-transition), box-shadow var(--yc-transition), background var(--yc-transition), border-color var(--yc-transition);
}

body.yoel-modern .btn-lg {
    padding: 13px 18px;
    font-size: 15px;
    border-radius: var(--yc-btn-radius);
}

body.yoel-modern .btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 8px;
}

body.yoel-modern .btn-primary,
body.yoel-modern .btn-primary.custom-btn,
body.yoel-modern a.btn-primary,
body.yoel-modern button.btn-primary,
body.yoel-modern input.btn-primary,
body.yoel-modern .btn-primary.disabled,
body.yoel-modern .btn-primary:disabled,
body.yoel-modern .btn-primary.custom-btn.disabled,
body.yoel-modern .btn-primary.custom-btn:disabled {
    color: #fff !important;
    background: var(--yc-btn-gradient) !important;
    background-color: #f58b3c !important;
    border: none !important;
    border-color: transparent !important;
    box-shadow: var(--yc-btn-shadow) !important;
    text-shadow: none;
}

body.yoel-modern .btn-primary:hover,
body.yoel-modern .btn-primary.custom-btn:hover,
body.yoel-modern .btn-primary:focus,
body.yoel-modern .btn-primary.custom-btn:focus,
body.yoel-modern .btn-primary.focus,
body.yoel-modern .btn-primary.custom-btn.focus {
    color: #fff !important;
    background: var(--yc-btn-gradient) !important;
    background-color: #f58b3c !important;
    border: none !important;
    filter: brightness(1.06);
    box-shadow: var(--yc-btn-shadow-hover) !important;
}

body.yoel-modern .btn-primary:active,
body.yoel-modern .btn-primary.custom-btn:active,
body.yoel-modern .btn-primary.custom-btn:not(:disabled):not(.disabled):active,
body.yoel-modern .btn-primary.custom-btn:not(:disabled):not(.disabled).active,
body.yoel-modern .btn-primary:not(:disabled):not(.disabled):active,
body.yoel-modern .btn-primary:not(:disabled):not(.disabled).active,
body.yoel-modern .show > .btn-primary.dropdown-toggle,
body.yoel-modern .show > .btn-primary.custom-btn.dropdown-toggle {
    color: #fff !important;
    background: var(--yc-btn-gradient) !important;
    background-color: #e46526 !important;
    border: none !important;
    transform: translateY(1px);
    filter: brightness(0.98);
    box-shadow: var(--yc-btn-shadow) !important;
}

body.yoel-modern .btn-primary .fa,
body.yoel-modern .btn-primary.custom-btn .fa {
    margin-right: 6px;
}

body.yoel-modern .btn-default,
body.yoel-modern .btn-secondary {
    background: var(--yc-surface);
    border: 1px solid var(--yc-border-strong);
    color: var(--yc-text);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

body.yoel-modern .btn-default:hover,
body.yoel-modern .btn-secondary:hover {
    background: #fff;
    border-color: #f5b88a;
    color: var(--yc-primary-deep);
    box-shadow: 0 2px 8px rgba(245, 139, 60, 0.12);
}

body.yoel-modern .btn-success {
    background: linear-gradient(to right, #10b981 0%, var(--yc-success) 100%);
    border: none;
    color: #fff;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.25);
}

body.yoel-modern .btn-success:hover {
    filter: brightness(1.05);
    color: #fff;
}

body.yoel-modern .btn-danger {
    background: linear-gradient(to right, #ef4444 0%, var(--yc-danger) 100%);
    border: none;
    color: #fff;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.25);
}

body.yoel-modern .btn-danger:hover {
    filter: brightness(1.05);
    color: #fff;
}

body.yoel-modern .btn-warning {
    background: linear-gradient(to right, #fbbf24 0%, var(--yc-warning) 100%);
    border: none;
    color: #fff;
}

body.yoel-modern .btn-info {
    background: var(--yc-surface);
    border: 1px solid #f5b88a;
    color: var(--yc-primary-deep);
}

body.yoel-modern .btn-info:hover {
    background: var(--yc-primary-soft);
    border-color: var(--yc-primary);
    color: var(--yc-primary-deep);
}

body.yoel-modern .dt-buttons .btn {
    margin-right: 6px;
    margin-bottom: 4px;
}

/* ── Forms ── */
body.yoel-modern .form-control,
body.yoel-modern input[type="text"],
body.yoel-modern input[type="password"],
body.yoel-modern input[type="email"],
body.yoel-modern input[type="number"],
body.yoel-modern input[type="date"],
body.yoel-modern select,
body.yoel-modern textarea {
    border: 1px solid var(--yc-border-strong);
    border-radius: var(--yc-radius-sm);
    padding: 8px 12px;
    font-size: 14px;
    color: var(--yc-text);
    background: var(--yc-surface);
    transition: border-color var(--yc-transition), box-shadow var(--yc-transition);
    box-shadow: none;
}

body.yoel-modern .form-control:focus,
body.yoel-modern input:focus,
body.yoel-modern select:focus,
body.yoel-modern textarea:focus {
    border-color: var(--yc-primary);
    outline: none;
    box-shadow: 0 0 0 3px var(--yc-primary-soft);
}

body.yoel-modern label {
    font-weight: 500;
    color: var(--yc-text);
    font-size: 13px;
}

/* ── Tables ── */
body.yoel-modern .table {
    border-collapse: separate;
    border-spacing: 0;
}

body.yoel-modern .table-bordered {
    border: 1px solid var(--yc-border);
    border-radius: var(--yc-radius-sm);
    overflow: hidden;
}

body.yoel-modern .table-bordered th,
body.yoel-modern table.dataTable thead th {
    background: #e8edf3 !important;
    filter: none !important;
    font-size: 11px;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-color: var(--yc-table-row-line) !important;
    padding: 11px 12px;
    border-bottom: 2px solid #cbd5e1 !important;
}

body.yoel-modern .table-bordered td,
body.yoel-modern .table-striped td,
body.yoel-modern table.dataTable tbody td {
    border-color: var(--yc-table-row-line);
    padding: 11px 12px;
    vertical-align: middle;
    border-bottom: 1px solid var(--yc-table-row-line);
}

/* Listras — table-striped e fallback em widgets */
body.yoel-modern .table-striped > tbody > tr:nth-child(odd) > td,
body.yoel-modern .widget-content .table > tbody > tr:nth-child(odd) > td,
body.yoel-modern table.dataTable.stripe tbody tr.odd > td,
body.yoel-modern table.dataTable.display tbody tr.odd > td,
body.yoel-modern table.dataTable tbody tr.odd > td {
    background-color: var(--yc-table-row-odd) !important;
}

body.yoel-modern .table-striped > tbody > tr:nth-child(even) > td,
body.yoel-modern .widget-content .table > tbody > tr:nth-child(even) > td,
body.yoel-modern table.dataTable.stripe tbody tr.even > td,
body.yoel-modern table.dataTable.display tbody tr.even > td,
body.yoel-modern table.dataTable tbody tr.even > td {
    background-color: var(--yc-table-row-even) !important;
}

body.yoel-modern .table-striped > tbody > tr:hover > td,
body.yoel-modern .widget-content .table > tbody > tr:hover > td,
body.yoel-modern table.dataTable tbody tr:hover > td {
    background-color: var(--yc-table-row-hover) !important;
}

body.yoel-modern .table-striped tr td a,
body.yoel-modern table.dataTable tbody td a {
    color: var(--yc-primary);
    font-weight: 500;
    text-transform: none;
}

body.yoel-modern .table-striped tr td a:hover,
body.yoel-modern table.dataTable tbody td a:hover {
    color: var(--yc-primary-hover);
}

/* DataTables */
body.yoel-modern .dataTables_wrapper {
    padding: 8px 0 4px;
    width: 100%;
    clear: both;
}

body.yoel-modern .dataTables_wrapper .dataTables_length,
body.yoel-modern .dataTables_wrapper .dataTables_filter {
    margin-bottom: 14px;
}

body.yoel-modern .dataTables_wrapper .dt-buttons {
    margin-bottom: 14px;
}

body.yoel-modern table.dataTable {
    margin-top: 10px !important;
    margin-bottom: 16px !important;
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0;
}

body.yoel-modern .dataTables_wrapper .dataTables_info,
body.yoel-modern .dataTables_wrapper .dataTables_paginate {
    margin-top: 14px;
    padding-top: 0;
}

body.yoel-modern .dataTables_wrapper .row {
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 10px;
}

body.yoel-modern .table-responsive {
    margin-bottom: 16px;
    border-radius: var(--yc-radius-sm);
}

body.yoel-modern table.dataTable thead th {
    border-bottom: 2px solid #cbd5e1 !important;
}

body.yoel-modern .dataTables_wrapper .dataTables_filter input {
    border-radius: 10px;
    border: 1px solid #d6d3d1;
    padding: 8px 12px;
    min-width: 200px;
    height: 38px;
    background: #fff;
}

body.yoel-modern .dataTables_wrapper .dataTables_length select {
    border-radius: 10px;
    border: 1px solid #d6d3d1;
    padding: 6px 10px;
    height: 38px;
    background: #fff;
    margin: 0 6px;
}

body.yoel-modern .dataTables_wrapper .dataTables_length,
body.yoel-modern .dataTables_wrapper .dataTables_filter {
    font-size: 13px;
    color: #57534e;
    font-weight: 500;
}

/* ── Toolbar de listagem (filtros / busca) ── */
body.yoel-modern .yc-table-toolbar,
body.yoel-modern #cols.yc-table-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 8px 12px;
    margin-bottom: 10px;
    margin-top: 0;
    padding: 10px 14px;
    background: linear-gradient(180deg, #fafaf9 0%, #f5f5f4 100%);
    border: 1px solid #e7e5e4;
    border-radius: 10px;
}

body.yoel-modern .yc-table-toolbar > .col {
    float: none;
    width: auto;
    max-width: none;
    padding: 0;
    margin-bottom: 0 !important;
}

body.yoel-modern .yc-table-toolbar > .col.text-left,
body.yoel-modern .yc-table-toolbar > .col.text-xs-center.text-left {
    flex: 0 0 auto;
    min-width: auto;
}

body.yoel-modern .yc-filter-field {
    flex: 1 1 160px;
    min-width: 140px;
    max-width: 240px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

body.yoel-modern .yc-filter-field.yc-toolbar-action {
    flex: 0 0 auto;
    min-width: auto;
    max-width: none;
}

body.yoel-modern .yc-filter-field.yc-filter-search {
    flex: 2 1 220px;
    max-width: 380px;
    justify-content: flex-end;
}

body.yoel-modern .yc-filter-field.yc-filter-search .yc-search-row {
    width: 100%;
}

body.yoel-modern .yc-filter-label {
    display: block;
    margin: 0 0 3px;
    min-height: 12px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #78716c;
    line-height: 1.2;
}

body.yoel-modern .yc-filter-label--spacer {
    visibility: hidden;
    user-select: none;
    pointer-events: none;
}

body.yoel-modern .yc-table-toolbar .yc-toolbar-btn,
body.yoel-modern .yc-table-toolbar .btn.yc-toolbar-btn,
body.yoel-modern .yc-table-toolbar a.btn.yc-toolbar-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    height: 32px;
    min-height: 32px;
    margin: 0;
    padding: 0 14px;
    font-size: 13px;
    line-height: 1;
    white-space: nowrap;
    vertical-align: middle;
}

body.yoel-modern .yc-table-toolbar select.filtro,
body.yoel-modern .yc-table-toolbar .search-query {
    width: 100%;
    height: 32px;
    min-height: 32px;
    border-radius: 8px;
    border: 1px solid #d6d3d1;
    background: #fff;
    font-size: 13px;
    line-height: 1.2;
    padding: 0 10px;
    box-shadow: none;
    box-sizing: border-box;
    margin: 0;
}

body.yoel-modern .yc-table-toolbar select.filtro:focus,
body.yoel-modern .yc-table-toolbar .search-query:focus {
    border-color: #f58b3c;
    box-shadow: 0 0 0 2px rgba(245, 139, 60, 0.12);
    outline: none;
}

body.yoel-modern .yc-search-row {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
}

body.yoel-modern .yc-search-row .search-query {
    flex: 1;
    min-width: 0;
}

body.yoel-modern .yc-search-row .yc-toolbar-btn,
body.yoel-modern .yc-search-row #buscar {
    flex: 0 0 auto;
}

body.yoel-modern .tab-pane.div_ajax .yc-table-toolbar {
    width: 100%;
}

body.yoel-modern .tab-pane.div_ajax .yc-filter-field.yc-filter-search {
    flex: 1 1 220px;
    max-width: none;
}

/* ── Rodapé de listagem (paginação / totalizador) ── */
body.yoel-modern .yc-table-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
    margin-bottom: 0;
    padding: 8px 14px;
    background: linear-gradient(180deg, #fafaf9 0%, #f5f5f4 100%);
    border: 1px solid #e7e5e4;
    border-radius: 10px;
}

body.yoel-modern .yc-table-footer__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 14px;
    width: 100%;
}

body.yoel-modern .yc-table-footer__select {
    min-width: 68px;
    width: auto;
    max-width: 100%;
    height: 32px;
    min-height: 32px;
    margin: 0;
    padding: 0 28px 0 10px;
    border-radius: 8px;
    border: 1px solid #d6d3d1;
    background-color: #fff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--yc-text);
    box-sizing: border-box;
    cursor: pointer;
    appearance: none;
    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='%2378716c' d='M3 4.5 6 7.5 9 4.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

body.yoel-modern .yc-table-footer__select:focus {
    border-color: #f58b3c;
    box-shadow: 0 0 0 2px rgba(245, 139, 60, 0.12);
    outline: none;
}

body.yoel-modern .yc-table-footer__info {
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    line-height: 32px;
    color: #57534e;
    letter-spacing: 0.01em;
    font-variant-numeric: tabular-nums;
}

body.yoel-modern .yc-table-footer__info--empty {
    line-height: 1.4;
    color: #78716c;
}

body.yoel-modern .widget-content:has(.yc-table-footer) table.dataTable {
    margin-bottom: 10px !important;
}

/* ── Ações da linha (visualizar / editar / excluir) ── */
body.yoel-modern .yc-table-actions {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex-wrap: nowrap;
    min-width: 104px;
    line-height: 0;
}

body.yoel-modern .yc-row-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    padding: 0;
    border-radius: 8px;
    border: 1px solid transparent;
    box-sizing: border-box;
    text-decoration: none !important;
    vertical-align: middle;
    transition: background var(--yc-transition), border-color var(--yc-transition), color var(--yc-transition), transform var(--yc-transition), box-shadow var(--yc-transition);
}

body.yoel-modern .yc-row-action i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1em;
    height: 1em;
    font-size: 14px;
    line-height: 1;
    pointer-events: none;
}

body.yoel-modern .yc-row-action:hover {
    text-decoration: none !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

body.yoel-modern .yc-row-action--visualizar,
body.yoel-modern .yc-row-action--alterar,
body.yoel-modern .yc-row-action--excluir,
body.yoel-modern a.visualizar.yc-row-action,
body.yoel-modern a.alterar.yc-row-action,
body.yoel-modern a.excluir.yc-row-action {
    color: #78716c;
    background: #f5f5f4;
    border-color: #e7e5e4;
}

body.yoel-modern .yc-row-action--visualizar:hover,
body.yoel-modern .yc-row-action--alterar:hover,
body.yoel-modern .yc-row-action--excluir:hover,
body.yoel-modern a.visualizar.yc-row-action:hover,
body.yoel-modern a.alterar.yc-row-action:hover,
body.yoel-modern a.excluir.yc-row-action:hover {
    color: #e46526;
    background: #fde8d8;
    border-color: #f5b88a;
}

body.yoel-modern .yc-row-action--aprovar,
body.yoel-modern a.aprovar.yc-row-action {
    color: #059669;
    background: #ecfdf5;
    border-color: #a7f3d0;
}

body.yoel-modern .yc-row-action--reprovar,
body.yoel-modern a.reprovar.yc-row-action {
    color: #dc2626;
    background: #fef2f2;
    border-color: #fecaca;
}

body.yoel-modern .yc-row-action--executar,
body.yoel-modern a.executar.yc-row-action {
    color: #78716c;
    background: #fafaf9;
    border-color: #e7e5e4;
}

body.yoel-modern td:has(.yc-table-actions) {
    text-align: center;
    white-space: nowrap;
}

/* ── Alerts ── */
body.yoel-modern .alert {
    border-radius: var(--yc-radius-sm);
    border: 1px solid transparent;
    font-size: 14px;
}

body.yoel-modern .alert-success {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #065f46;
}

body.yoel-modern .alert-danger,
body.yoel-modern .alert-error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

body.yoel-modern .alert-warning {
    background: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}

body.yoel-modern .alert-info {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1e40af;
}

/* ── Login (identidade DevYopen) ── */
body.yoel-modern.page-login {
    overflow-x: hidden;
}

body.yoel-modern.page-login .yc-login-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
}

body.yoel-modern.page-login .yc-login-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 20px 16px;
    width: 100%;
    box-sizing: border-box;
}

body.yoel-modern.page-login .account-container {
    width: 100% !important;
    max-width: 420px;
    display: block !important;
    float: none !important;
    margin: 0 auto !important;
    background: #ffffff;
    border: 1px solid rgba(245, 139, 60, 0.18);
    border-radius: 16px;
    box-shadow: 0 28px 56px -16px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    overflow: hidden;
}

body.yoel-modern.page-login .account-container::before {
    content: '';
    display: block;
    height: 5px;
    background: linear-gradient(to right, #f58b3c 0%, #e46526 100%);
}

body.yoel-modern.page-login .content {
    padding: 32px 36px 36px !important;
}

body.yoel-modern.page-login .login-fields .field {
    margin-bottom: 1rem;
}

body.yoel-modern.page-login .login-fields input,
body.yoel-modern.page-login .login-fields .form-control {
    width: 100% !important;
    max-width: 100%;
    display: block;
    margin: 0;
    padding: 12px 14px !important;
    box-shadow: none !important;
}

body.yoel-modern.page-login .yc-login-brand {
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 22px;
    border-bottom: 1px solid #f1f5f9;
}

body.yoel-modern.page-login .yc-login-brand-text {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #0f172a;
    line-height: 1.15;
}

body.yoel-modern.page-login .yc-login-logo-yoel {
    display: block;
    max-width: 200px;
    width: 100%;
    height: auto;
    margin: 0 auto 10px;
}

body.yoel-modern.page-login .yc-login-tagline {
    margin: 0;
    font-size: 12px;
    color: #94a3b8;
    letter-spacing: 0.03em;
}

body.yoel-modern.page-login .yc-login-title {
    margin: 0 0 4px;
    font-size: 1.25rem;
    font-weight: 700;
    color: #21252b;
    text-align: center;
    letter-spacing: -0.02em;
}

body.yoel-modern.page-login .yc-login-subtitle {
    color: #64748b;
    font-size: 13px;
    margin: 0 0 22px;
    text-align: center;
}

body.yoel-modern.page-login .account-container h1,
body.yoel-modern.page-login .account-container .h3 {
    margin-bottom: 0.35rem;
    font-size: 1.35rem;
    font-weight: 700;
    color: #21252b;
    letter-spacing: -0.02em;
}

body.yoel-modern.page-login .account-container h1 font,
body.yoel-modern.page-login font {
    font-family: var(--yc-font) !important;
    color: #21252b !important;
}

body.yoel-modern.page-login .yc-login-label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    letter-spacing: 0.02em;
}

body.yoel-modern.page-login .yc-login-label .fa {
    margin-right: 6px;
    color: #f58b3c;
    width: 14px;
    text-align: center;
}

body.yoel-modern.page-login .yc-login-field {
    margin-bottom: 1rem;
}

body.yoel-modern.page-login .field {
    margin-bottom: 1rem;
}

body.yoel-modern.page-login .form-control {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    transition: border-color var(--yc-transition), box-shadow var(--yc-transition), background var(--yc-transition);
}

body.yoel-modern.page-login .form-control:focus {
    border-color: #f58b3c;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(245, 139, 60, 0.15);
    outline: none;
}

body.yoel-modern.page-login .yc-login-btn {
    margin-top: 6px;
}

body.yoel-modern.page-login .yc-login-btn .fa {
    margin-right: 8px;
}

body.yoel-modern.page-login #mensagem_login {
    margin-top: 14px;
    font-size: 13px;
    text-align: center;
    color: #dc2626;
}

body.yoel-modern.page-login .yc-login-footer {
    text-align: center;
    padding: 18px 20px 30px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

body.yoel-modern.page-login .yc-login-footer a {
    color: #f58b3c;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.01em;
}

body.yoel-modern.page-login .yc-login-footer a:hover {
    color: #ffb07a;
    text-decoration: underline;
}

/* ── jQuery UI ── */
body.yoel-modern .ui-widget {
    font-family: var(--yc-font);
}

body.yoel-modern .ui-dialog {
    border-radius: var(--yc-radius);
    border: 1px solid var(--yc-border);
    box-shadow: var(--yc-shadow-md);
    padding: 0;
    overflow: hidden;
}

body.yoel-modern .ui-dialog .ui-dialog-titlebar {
    background: var(--yc-surface);
    border: none;
    border-bottom: 1px solid var(--yc-border);
    color: var(--yc-text);
    font-weight: 600;
    padding: 12px 16px;
}

body.yoel-modern .ui-dialog .ui-dialog-content {
    padding: 16px;
}

body.yoel-modern .ui-dialog .ui-dialog-buttonpane {
    border-top: 1px solid var(--yc-border);
    background: #f8fafc;
}

/* ── Pagination ── */
body.yoel-modern .pagination > li > a,
body.yoel-modern .pagination > li > span {
    border-radius: var(--yc-radius-sm);
    margin: 0 2px;
    border-color: var(--yc-border);
    color: var(--yc-text-muted);
}

body.yoel-modern .pagination > .active > a,
body.yoel-modern .pagination > .active > span {
    background: var(--yc-btn-gradient);
    border-color: #e46526;
}

/* ── Misc ── */
body.yoel-modern .well {
    background: #f8fafc;
    border: 1px solid var(--yc-border);
    border-radius: var(--yc-radius-sm);
    box-shadow: none;
}

body.yoel-modern .nav-tabs > li > a {
    border-radius: var(--yc-radius-sm) var(--yc-radius-sm) 0 0;
    color: var(--yc-text-muted);
    font-weight: 500;
}

body.yoel-modern .nav-tabs > li.active > a {
    color: var(--yc-primary);
    border-top: 2px solid var(--yc-primary);
}

body.yoel-modern .badge {
    border-radius: 999px;
    font-weight: 600;
    padding: 4px 8px;
}

body.yoel-modern .ordenacao_nav {
    color: var(--yc-text-muted) !important;
}

body.yoel-modern .ordenacao_nav:hover {
    color: var(--yc-primary) !important;
}

body.yoel-modern #Loading {
    background: var(--yc-primary-soft);
    color: var(--yc-primary);
    padding: 12px 20px;
    border-radius: var(--yc-radius-sm);
    font-weight: 600;
}

/* Dashboard page inherits theme; minor harmonization */
body.yoel-modern .dashboard-page .widget {
    border: none;
    box-shadow: none;
    background: transparent;
}

body.yoel-modern .dashboard-page .widget-header {
    display: none;
}

body.yoel-modern .dashboard-page .widget-content {
    padding: 0;
    background: transparent;
}

body.yoel-modern .relatorios-page .widget-header {
    display: block;
}

/* ── Espaçamento e centralização gerais ── */
body.yoel-modern .nav-tabs {
    margin-bottom: 16px;
    border-bottom-color: var(--yc-border);
}

body.yoel-modern .nav-tabs > li > a {
    margin-right: 4px;
}

body.yoel-modern .well {
    margin-bottom: 16px;
}

body.yoel-modern .pagination {
    margin: 12px 0 0;
}

body.yoel-modern hr {
    margin: 20px 0;
    border-color: var(--yc-border);
}

@media (max-width: 768px) {
    body.yoel-modern {
        overflow-x: hidden;
    }

    body.yoel-modern .yc-topbar-inner {
        flex-wrap: wrap;
        padding: 10px 14px;
    }

    body.yoel-modern .yc-topbar-user {
        width: 100%;
        justify-content: space-between;
    }

    body.yoel-modern .yc-topbar-user-name {
        max-width: calc(100% - 72px);
    }

    body.yoel-modern .subnavbar .container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-left: 0;
        padding-right: 0;
    }

    body.yoel-modern .subnavbar .container > ul,
    body.yoel-modern .subnavbar .mainnav {
        flex-wrap: nowrap;
        width: max-content;
        min-width: 100%;
    }

    body.yoel-modern .subnavbar .container > ul > li,
    body.yoel-modern .subnavbar .mainnav > li {
        flex: 0 0 auto;
    }

    body.yoel-modern .subnavbar .container > ul > li > a,
    body.yoel-modern .subnavbar .mainnav > li > a {
        padding: 8px 12px;
        font-size: 10px;
        min-height: 52px;
    }

    body.yoel-modern .main-inner {
        padding: 14px 12px 24px;
    }

    body.yoel-modern .main .container-fluid,
    body.yoel-modern .main-inner > .container-fluid {
        padding-left: 8px;
        padding-right: 8px;
    }

    body.yoel-modern .widget-header {
        padding: 10px 12px;
    }

    body.yoel-modern .widget-header h3 {
        font-size: 13px;
    }

    body.yoel-modern .widget-content {
        padding: 16px 14px 18px;
    }

    body.yoel-modern.page-login .yc-login-wrap {
        padding: 20px 14px 12px;
    }

    body.yoel-modern.page-login .content {
        padding: 24px 22px 28px !important;
    }

    body.yoel-modern .yc-table-toolbar {
        padding: 8px 10px;
        gap: 8px 10px;
    }

    body.yoel-modern .yc-filter-field,
    body.yoel-modern .yc-filter-field.yc-filter-search {
        flex: 1 1 100%;
        max-width: 100%;
    }

    body.yoel-modern .yc-search-row {
        flex-direction: column;
    }

    body.yoel-modern .yc-search-row #buscar {
        width: 100%;
    }

    body.yoel-modern .yc-table-scroll {
        margin: 0 -4px 16px;
        border-radius: var(--yc-radius-sm);
        -webkit-overflow-scrolling: touch;
    }

    body.yoel-modern .yc-table-scroll > .table {
        min-width: 640px;
    }

    body.yoel-modern .nav-tabs {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-bottom: 1px solid var(--yc-border);
        margin-left: -4px;
        margin-right: -4px;
        padding-bottom: 2px;
    }

    body.yoel-modern .nav-tabs > li {
        float: none;
        flex: 0 0 auto;
    }

    body.yoel-modern .nav-tabs > li > a {
        white-space: nowrap;
        padding: 10px 14px;
        font-size: 12px;
    }

    body.yoel-modern .form-row > [class*="col-md-"],
    body.yoel-modern .form-row > [class*="col-lg-"],
    body.yoel-modern .form-row > [class*="col-sm-"],
    body.yoel-modern .form-row .form-group[class*="col-md-"] {
        flex: 0 0 100%;
        max-width: 100%;
        width: 100% !important;
        float: none;
    }

    body.yoel-modern .form-actions {
        display: flex;
        flex-direction: column-reverse;
        align-items: stretch !important;
        gap: 10px;
        padding: 12px 0 0;
    }

    body.yoel-modern .form-actions .btn,
    body.yoel-modern .form-actions a.btn {
        width: 100%;
        margin: 0 !important;
        text-align: center;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    body.yoel-modern .yc-row-action {
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
    }

    body.yoel-modern .yc-table-footer__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    body.yoel-modern .yc-table-footer__select {
        width: 100%;
        max-width: none;
    }

    body.yoel-modern .dataTables_wrapper .dataTables_filter input {
        min-width: 0;
        width: 100%;
    }
}

@media (max-width: 576px) {
    body.yoel-modern .yc-brand-name {
        font-size: 1.1rem;
    }

    body.yoel-modern .yc-brand-version {
        display: none;
    }

    body.yoel-modern .subnavbar .container > ul > li > a,
    body.yoel-modern .subnavbar .mainnav > li > a {
        padding: 8px 10px;
        min-width: 64px;
    }

    body.yoel-modern .subnavbar .container > ul > li > a > span,
    body.yoel-modern .subnavbar .mainnav > li > a > span {
        font-size: 9px;
    }

    body.yoel-modern .widget-header h3 {
        font-size: 12px;
    }

    body.yoel-modern .yc-table-scroll > .table {
        min-width: 560px;
    }
}
