﻿/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
for details on configuring this project to bundle and minify static web assets. */
.container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 1200px) {
    .container {
        max-width: 1340px;
    }
}

a.navbar-brand {
    white-space: normal;
    text-align: center;
    word-break: break-all;
}
/* Provide sufficient contrast against white background */
a {
    color: #0366d6;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}
/* Sticky footer styles
-------------------------------------------------- */
html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.border-top {
    border-top: 1px solid #e5e5e5;
}

.border-bottom {
    border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
    font-size: 1rem;
    line-height: inherit;
}
/* Sticky footer styles
-------------------------------------------------- */
html {
    position: relative;
    min-height: 100%;
}

body {
    /* Margin bottom by footer height */
    margin-bottom: 60px;
}

.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    white-space: nowrap;
    line-height: 60px; /* Vertically center the text there */
}

/* ==========================================================================
   User Details & Edit Pages Styles
   ========================================================================== */

.user-details-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

/* Edit page uses same container */
.user-edit-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.user-header {
    background: linear-gradient(135deg, #08315F 0%, #0a4075 100%);
    color: white;
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(8, 49, 95, 0.15);
}

    .user-header h1 {
        margin: 0;
        font-size: 1.8rem;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }

    .user-header .user-icon {
        background: rgba(255, 255, 255, 0.2);
        padding: 0.75rem;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

.details-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 2rem;
}

/* Edit card uses same styling */
.edit-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 2rem;
}

.details-card-header {
    background: #f8f9fa;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

/* Edit card header */
.edit-card-header {
    background: #f8f9fa;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.details-card-header h5 {
    margin: 0;
    color: #08315F;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Edit card header */
.edit-card-header h5 {
    margin: 0;
    color: #08315F;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.details-card-body {
    padding: 1.5rem;
}

/* Edit card body */
.edit-card-body {
    padding: 1.5rem;
}

.detail-row {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #f1f3f4;
}

    .detail-row:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

.detail-label {
    font-weight: 600;
    color: #08315F;
    min-width: 120px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-value {
    color: #495057;
    flex: 1;
}

.status-badge {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-active {
    background: #d4edda;
    color: #155724;
}

.status-inactive {
    background: #f8d7da;
    color: #721c24;
}

.actions-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
}

.actions-header {
    color: #08315F;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-modern {
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    margin-right: 0.75rem;
    margin-bottom: 0.75rem;
}

.btn-primary-modern {
    background: #08315F;
    color: white;
}

    .btn-primary-modern:hover {
        background: #0a4075;
        color: white;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(8, 49, 95, 0.25);
    }

.btn-success-modern {
    background: #28a745;
    color: white;
}

    .btn-success-modern:hover {
        background: #218838;
        color: white;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(40, 167, 69, 0.25);
    }

.btn-danger-modern {
    background: #dc3545;
    color: white;
}

    .btn-danger-modern:hover {
        background: #c82333;
        color: white;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(220, 53, 69, 0.25);
    }

.btn-secondary-modern {
    background: #6c757d;
    color: white;
}

    .btn-secondary-modern:hover {
        background: #5a6268;
        color: white;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(108, 117, 125, 0.25);
    }

.message-container {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    background: #e7f3ff;
    border-left: 4px solid #08315F;
    color: #08315F;
}

.detail-icon {
    font-size: 1.1rem;
    color: #08315F;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .user-details-container {
        padding: 1rem;
    }

    .user-header {
        padding: 1.5rem;
    }

        .user-header h1 {
            font-size: 1.5rem;
        }

    .detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .detail-label {
        min-width: auto;
    }

    .btn-modern {
        width: 100%;
        justify-content: center;
        margin-right: 0;
    }
}

/* ==========================================================================
   Section Headers (H2) Styles
   ========================================================================== */

.section-header {
    background: linear-gradient(135deg, #08315F 0%, #0a4075 100%);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(8, 49, 95, 0.15);
}

@media (max-width: 768px) {
    .section-header {
        font-size: 1.25rem;
        padding: 0.75rem;
    }
}

/* ==========================================================================
   Form Styles for Edit Pages
   ========================================================================== */

.form-group {
    margin-bottom: 0.5rem;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #08315F;
    margin-bottom: 0.5rem;
}

.checkbox-group {
    margin-bottom: 0.75rem;
}

.form-icon {
    font-size: 1rem;
    color: #08315F;
    opacity: 0.7;
}

.form-hint {
    font-weight: 400;
    font-size: 0.85rem;
    color: #6c757d;
    margin-left: 0.5rem;
}

.form-control-modern {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fff;
}

.checkbox-item,
.permission-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-item .form-check-input,
.permission-item .form-check-input {
    position: static;
    margin: 0;
}

    .form-control-modern:focus {
        outline: none;
        border-color: #08315F;
        box-shadow: 0 0 0 3px rgba(8, 49, 95, 0.1);
    }

    .form-control-modern::placeholder {
        color: #adb5bd;
    }

.password-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.password-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 0.25rem;
    transition: color 0.3s ease;
}

    .password-toggle:hover {
        color: #08315F;
    }

.dropdown-modern {
    border: 2px solid #e9ecef !important;
    border-radius: 8px !important;
    padding: 0.75rem 1rem !important;
    transition: all 0.3s ease !important;
}

    .dropdown-modern:focus {
        border-color: #08315F !important;
        box-shadow: 0 0 0 3px rgba(8, 49, 95, 0.1) !important;
    }

.validation-message {
    display: block;
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    padding: 0.25rem 0;
}

/* =====================================================================
   Permissões - Categoria / Lista
   ===================================================================== */

.permission-category-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.button-group {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .user-edit-container {
        padding: 1rem;
    }

    .button-group {
        flex-direction: column;
    }

        .button-group .btn-modern {
            width: 100%;
            margin-right: 0;
        }
}

/* ==========================================================================
   Parâmetros Page - Additional CSS Classes
   ========================================================================== */

/* Wide container for parameters page */
.parameters-wide-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Override existing user-edit-container for wider pages when needed */
.user-edit-container.wide {
    max-width: 1600px;
}

/* Grid layouts for parameters - optimized for wider screens */
.parameters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.parameters-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.parameters-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.parameters-grid-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.parameters-grid-6 {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Parameters info section */
.parameters-info {
    margin-top: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.info-text {
    color: #6c757d;
    font-size: 0.9rem;
    margin: 0;
    font-style: italic;
}

.total-indicator {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

    .total-indicator.total-success {
        background: #d4edda;
        border-color: #c3e6cb;
        color: #155724;
    }

    .total-indicator.total-warning {
        background: #f8d7da;
        border-color: #f5c6cb;
        color: #721c24;
    }

/* Compact form labels for commission section */
.form-label.compact {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    min-height: auto;
}

    .form-label.compact .form-icon {
        font-size: 0.9rem;
    }

/* Commission intervals styling - wider layout */
.commission-intervals {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin-bottom: 2rem;
}

.table-title {
    margin-bottom: 0.75rem;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, #08315F 0%, #0a4075 100%);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(8, 49, 95, 0.15);
}

.table-title h4 {
    margin: 0;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.table-title h4::before {
    content: "Tabela ";
    font-size: 1rem;
}

.commission-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    align-items: center;
    gap: 0.75rem;
    padding: 0.25rem 1rem;
    margin-bottom: 0.1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #08315F;
}

.commission-label {
    font-weight: 600;
    color: #08315F;
    font-size: 1rem;
    text-align: center;
}

.commission-fields {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.commission-special {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(8, 49, 95, 0.05) 0%, rgba(8, 49, 95, 0.1) 100%);
    border-radius: 8px;
    border: 2px solid rgba(8, 49, 95, 0.1);
}

/* Responsive design for parameters - adjusted breakpoints */
@media (max-width: 1400px) {
    .parameters-grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }

    .parameters-grid-5 {
        grid-template-columns: repeat(4, 1fr);
    }

    .parameters-grid-6 {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 1200px) {
    .parameters-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .parameters-grid-5 {
        grid-template-columns: repeat(3, 1fr);
    }

    .parameters-grid-6 {
        grid-template-columns: repeat(4, 1fr);
    }

    .commission-special {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .parameters-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .parameters-grid-5 {
        grid-template-columns: repeat(2, 1fr);
    }

    .parameters-grid-6 {
        grid-template-columns: repeat(3, 1fr);
    }

    .commission-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .commission-label {
        text-align: left;
    }

    .commission-fields {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .parameters-wide-container {
        padding: 1rem;
    }

    .parameters-grid,
    .parameters-grid-3,
    .parameters-grid-4,
    .parameters-grid-5,
    .parameters-grid-6 {
        grid-template-columns: 1fr;
    }

    .parameters-info {
        flex-direction: column;
        align-items: flex-start;
    }

    .commission-fields {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .commission-special {
        grid-template-columns: 1fr;
    }

    .commission-row {
        padding: 1rem;
    }
}

/* ==========================================================================
   Parâmetros Objetivos Individuais - Additional CSS Classes
   ========================================================================== */

/* Objective parameter styling */
.objective-parameter {
    margin-bottom: 2.5rem;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.parameter-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.parameter-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: #08315F;
    font-size: 1.1rem;
}

    .parameter-title i {
        color: #08315F;
        font-size: 1.2rem;
        opacity: 0.8;
    }

.parameter-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* Sellers grid layout */
.sellers-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    padding: 1.5rem;
    background: white;
}

.seller-column {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.seller-name {
    font-weight: 600;
    color: #08315F;
    font-size: 0.95rem;
    text-align: center;
    padding: 0.5rem;
    background: rgba(8, 49, 95, 0.05);
    border-radius: 6px;
    border: 1px solid rgba(8, 49, 95, 0.1);
}

.value-inputs {
    display: flex;
    gap: 0.5rem;
}

/* Compact form controls for objective inputs */
.form-control-modern.compact {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    min-width: 70px;
    text-align: center;
}

    .form-control-modern.compact::placeholder {
        font-size: 0.8rem;
        color: #adb5bd;
    }

/* Responsive design for objectives */
@media (max-width: 1400px) {
    .sellers-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .seller-column:nth-child(5) {
        grid-column: 1 / -1;
        max-width: 200px;
        margin: 0 auto;
    }
}

@media (max-width: 1200px) {
    .sellers-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .seller-column:nth-child(4),
    .seller-column:nth-child(5) {
        grid-column: span 1;
    }

    .seller-column:nth-child(5) {
        grid-column: 2;
        max-width: none;
        margin: 0;
    }
}

@media (max-width: 900px) {
    .sellers-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .seller-column:nth-child(5) {
        grid-column: 1 / -1;
        max-width: 300px;
        margin: 0 auto;
    }

    .parameter-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .parameter-controls {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .sellers-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }

    .seller-column:nth-child(5) {
        max-width: none;
        margin: 0;
        grid-column: auto;
    }

    .value-inputs {
        justify-content: center;
    }

    .form-control-modern.compact {
        min-width: 80px;
    }

    .parameter-header {
        padding: 1rem;
    }

    .parameter-title {
        font-size: 1rem;
    }

    .objective-parameter {
        margin-bottom: 1.5rem;
    }
}

/* Checkbox styling for Syncfusion components */
.e-checkbox-wrapper {
    margin-right: 0 !important;
}

    .e-checkbox-wrapper .e-label {
        font-weight: 500 !important;
        color: #495057 !important;
        font-size: 0.9rem !important;
    }

    .e-checkbox-wrapper .e-frame {
        border-color: #08315F !important;
    }

    .e-checkbox-wrapper .e-check {
        background-color: #08315F !important;
        border-color: #08315F !important;
    }

/* Input focus states */
.form-control-modern.compact:focus {
    border-color: #08315F;
    box-shadow: 0 0 0 2px rgba(8, 49, 95, 0.1);
    outline: none;
}

/* Hover effects */
.seller-column:hover .seller-name {
    background: rgba(8, 49, 95, 0.1);
    border-color: rgba(8, 49, 95, 0.2);
    transform: translateY(-1px);
    transition: all 0.2s ease;
}

.objective-parameter:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.checkbox-group {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    background-color: #f8f9fa;
    margin-bottom: 10px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    padding: 10px;
    /* Remover completamente qualquer borda/contorno */
}

    .checkbox-item:last-child {
        margin-bottom: 0;
    }

.form-check-input {
    margin-right: 12px;
    transform: scale(1.2);
    accent-color: #2196f3;
}

.form-check-label {
    cursor: pointer;
    margin-bottom: 0;
    font-weight: 500;
    color: #333;
}

.form-help-text {
    margin-top: 8px;
}

    .form-help-text::before,
    .form-help-text::after {
        content: none !important;
        display: none !important;
    }

    .form-help-text small {
        display: flex;
        align-items: center;
        gap: 5px;
    }

        .form-help-text small::before,
        .form-help-text small::after {
            content: none !important;
            display: none !important;
        }

/* Estilos para acordeão de permissões */
.permission-category {
    margin-bottom: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s ease;
}

    /* Garantir que a categoria não herda estilos de checkbox */
    .permission-category::before,
    .permission-category::after {
        content: none !important;
        display: none !important;
    }

    .permission-category:hover {
        border-color: #2196f3;
        box-shadow: 0 2px 4px rgba(33, 150, 243, 0.1);
    }

.permission-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background-color: #f8f9fa;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

    /* Garantir que o header não tenha elementos extras */
    .permission-category-header::before,
    .permission-category-header::after {
        content: none !important;
        display: none !important;
    }

    .permission-category-header:hover {
        background-color: #e3f2fd;
    }

    .permission-category.active .permission-category-header {
        background-color: #e3f2fd;
        border-bottom: 1px solid #e0e0e0;
    }

.category-title-content {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.category-icon {
    color: #2196f3;
    font-size: 14px;
}

.category-count {
    font-size: 12px;
    color: #666;
    font-weight: 400;
}

.chevron-icon {
    color: #666;
    font-size: 12px;
    transition: transform 0.3s ease;
}

.permission-category-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.permission-list {
    padding: 15px;
    background-color: #fff;
}

.permission-item {
    display: flex;
    align-items: center;
    padding: 10px;
    margin-bottom: 8px;
}

    .permission-item:last-child {
        margin-bottom: 0;
    }

    .permission-item input[type="checkbox"] {
        margin-right: 12px;
        transform: scale(1.2);
        accent-color: #2196f3;
        cursor: pointer;
    }

    .permission-item label {
        cursor: pointer;
        margin-bottom: 0;
        font-weight: 400;
        color: #333;
        user-select: none;
    }

    .permission-item:hover {
        background-color: #f8f9fa;
        border-radius: 4px;
    }

.permission-item-readonly {
    display: flex;
    align-items: center;
    padding: 10px;
    margin-bottom: 8px;
    font-weight: 400;
    color: #333;
}

    .permission-item-readonly:last-child {
        margin-bottom: 0;
    }

.permissoes-accordion {
    margin-top: 15px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.tabelas-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-left: 10px;
}

.tabela-badge {
    display: inline-flex;
    align-items: center;
    background-color: #f8f9fa;
    color: #495057;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid #dee2e6;
}

    .tabela-badge i {
        font-size: 0.8rem;
    }

/* === Sidebar (menu lateral off-canvas) === */
.sidebar-toggle {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.25rem;
    padding: 0.25rem 0.75rem;
    margin-right: 0.5rem;
    cursor: pointer;
}

.topbar-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex: 1 1 auto;
    min-width: 0;
    margin-right: 1rem;
    color: #fff;
}

.topbar-title-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.topbar-title-text {
    font-size: 1.4rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 1040;
}

    .sidebar-backdrop.show {
        opacity: 1;
        visibility: visible;
    }

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 340px;
    max-width: 85vw;
    background-color: #08315F;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    z-index: 1050;
    display: flex;
    flex-direction: column;
}

    .sidebar.show {
        transform: translateX(0);
    }

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.sidebar-header-brands {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
}

.sidebar .navbar-nav {
    flex-direction: column;
    padding: 0.5rem 0;
}

.sidebar .nav-item {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar .nav-link {
    padding: 0.85rem 1.25rem;
}

    .sidebar .nav-link > i:first-child {
        margin-right: 12px;
        width: 18px;
        text-align: center;
    }

    .sidebar .nav-link:hover,
    .sidebar .nav-link:focus {
        background-color: rgba(255, 255, 255, 0.08);
    }

    .sidebar .nav-link,
    .sidebar .dropdown-item {
        white-space: normal;
        word-break: break-word;
    }

.sidebar .dropdown-toggle::after {
    transition: transform 0.25s ease;
}

.sidebar .dropdown-toggle[aria-expanded="true"]::after {
    transform: rotate(180deg);
}

.sidebar .nav-link.active,
.sidebar .dropdown-item.active {
    background-color: rgba(255, 255, 255, 0.18);
    font-weight: 600;
}

.sidebar .dropdown-item.active {
    color: #fff;
}

.sidebar .dropdown-menu {
    position: static !important;
    float: none !important;
    inset: auto !important;
    transform: none !important;
    width: 100%;
    margin: 0;
    padding-left: 1rem;
    background-color: rgba(0, 0, 0, 0.22);
    border: 0;
    border-radius: 0;
}

    .sidebar .dropdown-menu .dropdown-item {
        color: rgba(255, 255, 255, 0.85);
        padding-top: 0.6rem;
        padding-bottom: 0.6rem;
    }

        .sidebar .dropdown-menu .dropdown-item:hover,
        .sidebar .dropdown-menu .dropdown-item:focus {
            background-color: rgba(255, 255, 255, 0.15);
            color: #fff;
        }