/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #475442;
    --primary-dark: #354030;
    --secondary-color: #5A6B52;
    --background: #F5F5F5;
    --surface: #FFFFFF;
    --text: #333333;
    --text-light: #666666;
    --border: #E0E0E0;
    --error: #D32F2F;
    --success: #388E3C;
    --sidebar-width: 260px;
    --sidebar-collapsed-width: 70px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.6;
}

/* Login Screen */
.screen {
    display: none !important;
}

.screen.active {
    display: block !important;
}

/* Garantir que dashboard não apareça sem autenticação */
#dashboard-screen:not(.active) {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.login-card {
    background: var(--surface);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
}

.logo {
    text-align: center;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.logo-image {
    width: 120px;
    height: 120px;
    object-fit: contain;
}

.logo h1 {
    color: var(--primary-color);
    font-size: 1.7rem;
    margin: 0;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.8rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: var(--text-light);
    font-size: 0.55rem;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Botão secundário em páginas com fundo claro */
.page-header .btn-secondary {
    background: var(--secondary-color);
    color: white;
    border: 1px solid var(--secondary-color);
}

.page-header .btn-secondary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-danger {
    background: var(--error);
    color: white;
}

.btn-danger:hover {
    background: #B71C1C;
}

.error-message {
    color: var(--error);
    margin-top: 10px;
    font-size: 0.8rem;
    display: none;
}

.error-message.show {
    display: block;
}

/* Dashboard Layout */
#dashboard-screen.active {
    display: flex;
    min-height: 100vh;
}

#dashboard-screen:not(.active) {
    display: none !important;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: var(--primary-color);
    border-right: 1px solid var(--primary-dark);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    transition: transform 0.3s;
    z-index: 1000;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    color: white;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.sidebar-logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.sidebar-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    flex-shrink: 0;
}

.sidebar-header h2 {
    color: white;
    font-size: 1.3rem;
    margin: 0;
}

.sidebar-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.sidebar-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
}

.sidebar-nav {
    flex: 1;
    padding: 20px 0;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

/* Customização da scrollbar para WebKit (Chrome, Safari, Edge) */
.sidebar-nav::-webkit-scrollbar {
    width: 4px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    transition: background 0.3s;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-left-color: white;
    color: white;
}

.nav-item.active {
    background: rgba(255, 255, 255, 0.15);
    border-left-color: white;
    color: white;
    font-weight: 500;
}

.nav-item.active .nav-icon svg {
    color: white;
}

.nav-item .nav-icon svg {
    color: rgba(255, 255, 255, 0.9);
}

.nav-item:hover .nav-icon svg {
    color: inherit;
}

.nav-icon {
    font-size: 0.8rem;
    margin-right: 12px;
    width: 24px;
    height: 24px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.nav-icon svg {
    width: 20px;
    height: 20px;
    color: inherit;
}

.nav-text {
    flex: 1;
}

.nav-arrow {
    margin-left: auto;
    font-size: 0.7rem;
    transition: transform 0.3s;
}

.nav-item-with-submenu {
    cursor: pointer;
}

.nav-item-with-submenu.active .nav-arrow {
    transform: rotate(180deg);
}

.nav-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: rgba(0, 0, 0, 0.1);
}

.nav-submenu.open {
    max-height: 500px;
    transition: max-height 0.3s ease-in;
}

.nav-submenu-item {
    display: flex;
    align-items: center;
    padding: 12px 20px 12px 50px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s;
    border-left: 3px solid transparent;
    font-size: 0.9rem;
}

.nav-submenu-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-left-color: white;
    color: white;
}

.nav-submenu-item.active {
    background: rgba(255, 255, 255, 0.15);
    border-left-color: white;
    color: white;
    font-weight: 500;
}

.nav-submenu-item .nav-icon {
    margin-right: 12px;
    width: 20px;
    height: 20px;
}

@media (max-width: 768px) {
    .nav-submenu-item {
        padding: 10px 20px 10px 45px;
        font-size: 0.85rem;
    }
    
    .nav-item-with-submenu .nav-arrow {
        font-size: 0.65rem;
    }
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.sidebar-footer #logout-btn {
    width: 100%;
}

.user-info {
    margin-bottom: 0;
    font-size: 0.55rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    width: 100%;
}

.user-name {
    display: inline-block;
    font-weight: 500;
    color: white;
    font-size: 0.55rem;
    margin: 0;
}

.user-level {
    display: inline-block;
    font-size: 0.55rem;
    color: rgba(255, 255, 255, 0.8);
    padding: 2px 6px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    margin: 0;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    transition: margin-left 0.3s;
}

.top-header {
    background: var(--surface);
    padding: 20px 30px;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 12px;
}

.top-header h1 {
    font-size: 1.3rem;
    color: var(--text);
    flex: 1;
}

/* Botão menu mobile (só visível em telas pequenas) */
.menu-mobile-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.menu-mobile-btn:hover {
    background: var(--primary-dark);
}

.menu-mobile-btn span {
    display: block;
    width: 22px;
    height: 2.5px;
    background: currentColor;
    border-radius: 1px;
    transition: transform 0.3s;
}

/* Overlay quando menu aberto em mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.content-area {
    padding: 30px;
}

.page {
    display: none;
}

.page.active {
    display: block;
}

/* Dashboard */
.dashboard-top-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

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

.dashboard-card {
    background: var(--surface);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.dashboard-card h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.dashboard-card-content {
    margin-top: 8px;
}

.dashboard-escala-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.dashboard-escala-table th,
.dashboard-escala-table td {
    padding: 8px 10px;
    text-align: left;
    border: 1px solid var(--border);
}

.dashboard-escala-table thead th {
    background: var(--background);
    font-weight: 600;
    color: var(--text);
}

.dashboard-escala-table tbody tr:nth-child(even) {
    background: var(--background);
}

.dashboard-no-data,
.loading-text {
    color: var(--text-light);
    font-size: 14px;
}

.dashboard-comissao-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.dashboard-dias-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0 0 4px;
}

.dashboard-dias-detail {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0;
}

.dashboard-faturamento-adm {
    margin-bottom: 28px;
}

.dashboard-faturamento-adm-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.dashboard-faturamento-adm .dashboard-section-title {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-light);
    font-weight: 600;
}

.dashboard-faturamento-adm-header .btn-sm {
    padding: 6px 14px;
    font-size: 0.875rem;
}

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

.dashboard-card-faturamento-mes {
    grid-column: 1 / -1;
}

.dashboard-card-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 8px 0 0;
}

.dashboard-card h4 {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-light);
    font-weight: 500;
}

/* Faturamento Page */
.faturamento-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.faturamento-card {
    background: var(--surface);
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.faturamento-card h3 {
    margin: 0 0 10px;
    font-size: 1rem;
    color: var(--text-light);
}

.faturamento-card-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
}

.faturamento-card-sub {
    font-size: 0.8rem;
    color: var(--text-light);
}

.faturamento-table-title {
    margin-bottom: 16px;
    color: var(--text);
}

.faturamento-table-container {
    background: var(--surface);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.faturamento-header {
    display: flex;
    align-items: center;
}

.faturamento-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

.faturamento-status-icon {
    font-size: 1.2rem;
    transition: color 0.2s;
}

.faturamento-status-icon.connected {
    color: #28a745;
}

.faturamento-status-icon.disconnected {
    color: #6c757d;
}

/* Users Page */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.page-header h2 {
    color: var(--text);
}

.page-header .btn {
    width: auto;
    padding: 10px 20px;
}

.users-table-container {
    background: var(--surface);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
}

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

.users-table thead {
    background: var(--background);
}

.users-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: var(--text);
    border-bottom: 2px solid var(--border);
}

.users-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border);
}

.users-table tbody tr:hover {
    background: var(--background);
}

.users-table .loading {
    text-align: center;
    color: var(--text-light);
    padding: 40px;
}

.level-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.55rem;
    font-weight: 500;
    display: inline-block;
}

.level-badge.ADM {
    background: #FFE0E0;
    color: #C62828;
}

.level-badge.Gerente {
    background: #E3F2FD;
    color: #1565C0;
}

.level-badge.User {
    background: #F1F8E9;
    color: #558B2F;
}

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

.btn-icon {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s;
}

.btn-edit {
    background: #2196F3;
    color: white;
}

.btn-edit:hover {
    background: #1976D2;
}

.btn-approve {
    background: #4CAF50;
    color: white;
}

.btn-approve:hover {
    background: #388E3C;
}

.btn-delete {
    background: var(--error);
    color: white;
}

.btn-delete:hover {
    background: #B71C1C;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--surface);
    border-radius: 8px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    margin: 20px;
}

.modal-content.modal-large {
    max-width: 700px;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    color: var(--text);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.7rem;
    cursor: pointer;
    color: var(--text-light);
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: var(--text);
}

.modal-content form {
    padding: 20px;
}

.modal-actions {
    display: flex;
    gap: 10px;
    padding: 0 20px 20px 20px;
}

.modal-actions .btn {
    flex: 1;
}

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

.status-active {
    background-color: #E8F5E9;
    color: #2E7D32;
}

.status-inactive {
    background-color: #FFEBEE;
    color: #C62828;
}

.status-pending {
    background-color: #FFF3E0;
    color: #E65100;
}

.status-approved {
    background-color: #E8F5E9;
    color: #2E7D32;
}

.status-reserve {
    background-color: #E3F2FD;
    color: #1565C0;
}

.status-rejected {
    background-color: #FFEBEE;
    color: #C62828;
}

.success-message {
    background-color: #E8F5E9;
    color: #2E7D32;
    padding: 12px;
    border-radius: 4px;
    margin-top: 10px;
    font-size: 0.9em;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .sidebar-toggle {
        display: flex;
    }

    .menu-mobile-btn {
        display: flex;
    }

    .sidebar-overlay.active {
        display: block;
        opacity: 1;
        pointer-events: auto;
    }

    .main-content {
        margin-left: 0;
    }

    .top-header {
        padding: 15px 20px;
    }

    .content-area {
        padding: 20px;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .page-header .btn {
        width: 100%;
    }

    .users-table {
        font-size: 0.75rem;
    }

    .users-table th,
    .users-table td {
        padding: 8px 6px;
    }

    /* Tabela de escala no dashboard */
    .dashboard-escala-table {
        font-size: 0.7rem;
    }

    .dashboard-escala-table th,
    .dashboard-escala-table td {
        padding: 6px 4px;
    }

    /* Tabelas de estoque (mesmo padrão) */
    .stock-table-container .users-table {
        font-size: 0.75rem;
    }

    .stock-table-container .users-table th,
    .stock-table-container .users-table td {
        padding: 8px 6px;
    }

    /* Modal consolidar estoque em mobile */
    .stock-consolidate-item {
        padding: 10px 8px;
        flex-wrap: wrap;
    }

    .stock-consolidate-item-name,
    .stock-consolidate-item-details {
        font-size: 0.8rem;
    }

    .stock-consolidate-item-input input {
        width: 90px;
        padding: 8px;
        font-size: 0.85rem;
    }

    .stock-consolidate-category-name {
        font-size: 0.85rem;
        padding: 8px 10px;
    }

    .action-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 30px 20px;
    }

    .dashboard-card {
        padding: 20px;
    }

    .dashboard-escala-table {
        font-size: 0.65rem;
    }

    .dashboard-escala-table th,
    .dashboard-escala-table td {
        padding: 5px 3px;
    }

    .users-table th,
    .users-table td {
        padding: 6px 4px;
    }

    .users-table {
        font-size: 0.7rem;
    }

    .stock-table-container .users-table th,
    .stock-table-container .users-table td {
        padding: 6px 4px;
    }

    .stock-table-container .users-table {
        font-size: 0.7rem;
    }

    .stock-consolidate-item-name,
    .stock-consolidate-item-details {
        font-size: 0.75rem;
    }

    .stock-consolidate-item-input input {
        width: 80px;
        padding: 6px;
        font-size: 0.8rem;
    }

    .stock-consolidate-category-name {
        font-size: 0.8rem;
    }
}

/* Passwords and Keys Page */
.passwords-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.passwords-filters {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.search-input,
.filter-select {
    padding: 10px 15px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.8rem;
    flex: 1;
    min-width: 200px;
}

.search-input:focus,
.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.passwords-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.password-card {
    background: var(--surface);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}

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

.password-card-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 15px;
}

.password-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    margin: 0;
}

.password-card-category {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.55rem;
    font-weight: 500;
    background: var(--background);
    color: var(--text-light);
}

.password-card-body {
    margin-bottom: 15px;
}

.password-card-field {
    margin-bottom: 10px;
    font-size: 0.8rem;
}

.password-card-field-label {
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: 4px;
    display: block;
}

.password-card-field-value {
    color: var(--text);
    word-break: break-all;
    font-family: 'Courier New', monospace;
    background: var(--background);
    padding: 8px;
    border-radius: 4px;
}

.password-card-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border);
}

.password-input-group {
    display: flex;
    gap: 10px;
}

.password-input-group input {
    flex: 1;
}

.btn-toggle-password {
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--background);
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s;
}

.btn-toggle-password:hover {
    background: var(--border);
}

.btn-copy {
    background: #4CAF50;
    color: white;
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.55rem;
    transition: all 0.3s;
}

.btn-copy:hover {
    background: #45a049;
}

@media (max-width: 768px) {
    .passwords-filters {
        flex-direction: column;
    }

    .search-input,
    .filter-select {
        width: 100%;
        min-width: auto;
    }

    .passwords-list {
        grid-template-columns: 1fr;
    }
}

/* Pendências (Operacional) */
.pendings-container {
    margin-top: 20px;
}

.pendings-empty {
    text-align: center;
    padding: 40px 20px;
    background: var(--surface);
    border-radius: 8px;
    color: var(--text-light);
}

.pendings-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pendings-list li.loading {
    padding: 20px;
    text-align: center;
    color: var(--text-light);
}

.pending-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    margin-bottom: 10px;
    background: var(--surface);
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    border-left: 4px solid var(--border);
}

.pending-item.priority-baixo {
    border-left-color: #4CAF50;
}

.pending-item.priority-medio {
    border-left-color: #FF9800;
}

.pending-item.priority-alto {
    border-left-color: #D32F2F;
}

.pending-item-checkbox {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.pending-item-body {
    flex: 1;
    min-width: 0;
}

.pending-item-description {
    font-size: 0.95rem;
    color: var(--text);
}

.pending-item-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 6px;
    font-size: 0.8rem;
    color: var(--text-light);
}

.pending-priority-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 500;
}

.pending-priority-badge.baixo {
    background: #E8F5E9;
    color: #2E7D32;
}

.pending-priority-badge.medio {
    background: #FFF3E0;
    color: #E65100;
}

.pending-priority-badge.alto {
    background: #FFEBEE;
    color: #C62828;
}

.pending-item-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.pendings-history-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pending-history-item {
    padding: 14px;
    margin-bottom: 10px;
    background: var(--background);
    border-radius: 8px;
    font-size: 0.9rem;
}

.pending-history-item span {
    display: block;
    margin-top: 4px;
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Menu/Cardápio Digital */
.menu-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--border);
}

.menu-tab {
    padding: 12px 24px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-light);
    transition: all 0.3s;
    margin-bottom: -2px;
}

.menu-tab:hover {
    color: var(--primary-color);
    background: var(--background);
}

.menu-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.menu-tab-content {
    display: none;
}

.menu-tab-content.active {
    display: block;
}

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

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 5px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    z-index: 1000;
    overflow: hidden;
}

.dropdown-menu.show {
    display: block !important;
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 12px 16px;
    text-align: left;
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    font-size: 0.95rem;
    transition: background-color 0.2s;
}

.dropdown-item:hover {
    background: var(--background);
}

.dropdown-item:first-child {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.dropdown-item:last-child {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.menu-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.menu-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.menu-item-card {
    background: var(--surface);
    border-radius: 16px;
    overflow: visible;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: row;
    align-items: stretch;
    padding: 0;
    border: 1px solid var(--border);
    position: relative;
    min-height: 120px;
}

.menu-item-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.menu-item-card.inactive {
    opacity: 0.6;
}

.menu-item-card.inactive::after {
    content: 'INATIVO';
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--error);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.55rem;
    font-weight: 600;
    z-index: 5;
}

.menu-item-image-container {
    width: 120px;
    min-width: 120px;
    height: 100%;
    min-height: 120px;
    flex-shrink: 0;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    position: relative;
    border-radius: 16px 0 0 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-item-upload-btn {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
    z-index: 5;
    opacity: 0;
    transform: scale(0.8);
}

.menu-item-image-container:hover .menu-item-upload-btn {
    opacity: 1;
    transform: scale(1);
}

.menu-item-upload-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.menu-item-upload-btn svg {
    width: 18px;
    height: 18px;
}

.menu-item-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    min-height: 120px;
    display: block;
}

.menu-item-image-placeholder {
    width: 100%;
    height: 100%;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 2.5rem;
}

.menu-item-upload-btn {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
    z-index: 5;
    opacity: 0;
    transform: scale(0.8);
}

.menu-item-image-container:hover .menu-item-upload-btn {
    opacity: 1;
    transform: scale(1);
}

.menu-item-upload-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.menu-item-upload-btn svg {
    width: 18px;
    height: 18px;
}

.menu-item-info {
    flex: 1;
    padding: 15px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.menu-item-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 8px;
    gap: 10px;
}

.menu-item-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    margin: 0;
    line-height: 1.3;
    flex: 1;
}

.menu-item-category {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.55rem;
    font-weight: 500;
    background: var(--background);
    color: var(--text-light);
    white-space: nowrap;
    flex-shrink: 0;
}

.menu-item-description {
    color: var(--text-light);
    font-size: 0.55rem;
    margin-bottom: 10px;
    line-height: 1.4;
    -webkit-line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.menu-item-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
    padding-top: 10px;
}

.menu-item-price {
    font-size: 0.95rem;
    font-weight: 800;
    color: white;
    background: var(--primary-color);
    width: 100px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    letter-spacing: -0.5px;
    position: absolute;
    bottom: -14px;
    right: 0px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 10;
    flex-direction: row;
    line-height: 1;
    gap: 2px;
}

.menu-item-price::before {
    content: 'R$';
    font-size: 0.95rem;
    font-weight: 600;
}

.menu-item-price-container {
    position: relative;
    min-height: 40px;
}

.menu-item-price-container.has-variations {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    padding: 10px;
    position: static;
    min-height: unset;
}

.menu-item-price-container.has-variations .menu-item-price {
    position: relative;
    bottom: unset;
    right: unset;
    margin-bottom: 0;
    width: auto;
    min-width: 100px;
    padding: 8px 12px;
    justify-content: space-between;
    white-space: nowrap;
    box-sizing: border-box;
}

.menu-item-price-container.has-variations .menu-item-price::before {
    content: '';
}

.menu-item-price-container.has-variations .menu-item-price .variation-name {
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    flex: 1;
    color: white;
    text-align: left;
}

.menu-item-price-container.has-variations .menu-item-price .variation-price {
    font-size: 0.95rem;
    font-weight: 800;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: 8px;
    color: white;
    text-align: right;
}

.menu-item-variation-card {
    transition: all 0.2s;
}

.menu-item-variation-card:hover {
    background: #e8e8e8 !important;
    transform: translateX(2px);
}

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

@media (max-width: 768px) {
    .menu-filters {
        flex-direction: column;
    }

    .menu-grid {
        grid-template-columns: 1fr;
    }

    .menu-item-image-container {
        width: 100px;
        min-width: 100px;
    }

    .menu-item-image,
    .menu-item-image-placeholder {
        min-height: 100px;
    }

    .menu-item-info {
        padding: 12px;
    }

    .menu-item-name {
        font-size: 0.8rem;
        padding-right: 80px;
    }

    .menu-item-price {
        font-size: 0.95rem;
        width: 100px;
        height: 40px;
        bottom: -14px;
        right: 0px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .menu-tabs {
        flex-wrap: wrap;
    }

    .menu-tab {
        flex: 1;
        min-width: 120px;
    }

    .modal-content.modal-large {
        max-width: 100%;
    }
}

/* Abas de Idioma */
.language-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--border);
    padding-bottom: 0;
}

.language-tab {
    padding: 12px 20px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-light);
    transition: all 0.3s;
    margin-bottom: -2px;
    white-space: nowrap;
    position: relative;
    z-index: 1;
    pointer-events: auto;
}

.language-tab:hover {
    color: var(--primary-color);
    background: var(--background);
}

.language-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    font-weight: 600;
}

.language-content {
    display: none;
}

.language-content.active {
    display: block;
}

.common-fields {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid var(--border);
}

/* Estilos para Escalas com Drag and Drop */
.schedule-day-column {
    background: #fff;
    border: 2px solid var(--border);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
}

.schedule-day-header {
    background: var(--primary-color);
    color: white;
    padding: 5px 4px;
    text-align: center;
    font-weight: 600;
    border-radius: 6px 6px 0 0;
    font-size: 0.55rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
}

.schedule-shift-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
    position: relative;
    isolation: isolate; /* Criar novo contexto de empilhamento para evitar sobreposição */
    overflow: hidden; /* Evitar que elementos vazem para outros turnos */
}

.schedule-shift-section:last-child {
    border-bottom: none;
}

.schedule-shift-label {
    background: var(--secondary-color);
    color: white;
    padding: 2px 4px;
    font-size: 0.55rem;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    flex-shrink: 0;
    position: relative;
    z-index: 10;
}

.schedule-day-content {
    flex: 1;
    padding: 3px;
    min-height: 180px; /* Espaço para 6 cards (6 * 26px + gaps = ~180px) */
    max-height: 180px;
    overflow-y: auto; /* Permitir scroll se necessário */
    overflow-x: hidden; /* Evitar scroll horizontal */
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2px;
    z-index: 0; /* z-index base para garantir que não sobreponha outros turnos */
}

.schedule-day-content.drag-over {
    background: #e3f2fd;
    border: 2px dashed var(--primary-color);
    position: relative;
    z-index: 1; /* z-index apenas dentro do contexto do próprio turno (isolado pelo schedule-shift-section) */
    box-sizing: border-box; /* Garantir que o border não aumente o tamanho */
}

.schedule-employee-card {
    background: var(--primary-color);
    color: white;
    padding: 4px 6px;
    margin: 0;
    border-radius: 3px;
    cursor: move;
    user-select: none;
    transition: all 0.2s;
    font-size: 0.6rem;
    font-weight: 500;
    min-height: 22px; /* Altura mínima para garantir espaço consistente */
    display: flex;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
    flex-shrink: 0;
}

.schedule-employee-card:hover {
    filter: brightness(0.85);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.schedule-employee-card.dragging {
    opacity: 0.5;
    transform: rotate(5deg);
}

.schedule-employee-card.allocated {
    /* background removido para permitir cores individuais via inline style */
    cursor: pointer;
    position: relative;
    padding-right: 20px;
}

.schedule-employee-card.allocated::after {
    content: '✏️';
    position: absolute;
    top: 2px;
    right: 3px;
    font-size: 0.55rem;
}

.schedule-employee-card.falta {
    background-color: #dc3545 !important;
    opacity: 1;
}

.schedule-employee-card.folga {
    /* background removido para permitir cores individuais via inline style */
    opacity: 0.7;
}

.schedule-employee-shift-info {
    font-size: 0.55rem;
    margin-top: 0;
    opacity: 0.9;
    line-height: 1;
}

@media (max-width: 768px) {
    .schedule-week-layout {
        grid-template-columns: 1fr !important;
    }
    
    .schedule-week-days {
        grid-template-columns: 1fr !important;
    }
    
    .schedule-day-column {
        min-height: 200px;
    }
    
    .schedule-day-content {
        min-height: 180px;
        max-height: 220px; /* Mais espaço em telas maiores para 6 usuários */
    }
}

/* Ajustes para modal de escala caber na tela */
#schedule-week-modal .modal-content {
    max-height: 90vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    position: relative; /* Para posicionar o overlay relativo ao modal */
}

#schedule-week-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Overlay de Loading para Modal de Escala */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    border-radius: 8px;
}

.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    color: white;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
    min-height: 0;
}

.schedule-week-layout {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 15px;
    overflow: hidden;
    padding: 20px;
}

.schedule-employees-list {
    overflow-y: auto;
    overflow-x: hidden;
}

.schedule-week-days {
    overflow-y: auto;
    overflow-x: auto;
    min-height: 0;
}

.schedule-day-column {
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

/* Estilos para modal de seleção de semana */
#week-selector-modal .form-group label {
    margin-left: 20px;
}

/* Estilos para página de Configurações */
.settings-container {
    max-width: 1200px;
    margin: 0 auto;
}

.settings-section {
    background: white;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.settings-section h3 {
    margin: 0 0 8px 0;
    color: var(--text);
    font-size: 1.3rem;
}

.settings-description {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 0.8rem;
}

.business-hours-table-container {
    overflow-x: auto;
}

.business-hours-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
}

.business-hours-table thead {
    background: var(--primary-color);
    color: white;
}

.business-hours-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    font-size: 0.8rem;
}

.business-hours-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border);
}

.business-hours-table tbody tr:hover {
    background: #f9f9f9;
}

.business-hours-table tbody tr:last-child td {
    border-bottom: none;
}

.business-hours-table input[type="checkbox"] {
    cursor: not-allowed;
}

/* Estoque - Insumos */
.low-stock {
    background-color: #fff3cd !important;
}

.inventory-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.inventory-filters .search-input {
    flex: 1;
    min-width: 200px;
}

.inventory-filters .filter-select {
    min-width: 150px;
}

/* Faltas - filtros alinhados ao padrão do sistema */
.faltas-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.faltas-filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.faltas-filter-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
}

.faltas-filter-group .filter-select {
    min-width: 160px;
}

.faltas-filter-actions .btn {
    white-space: nowrap;
}

@media (max-width: 768px) {
    .faltas-filters {
        flex-direction: column;
        align-items: stretch;
    }
    .faltas-filter-group .filter-select {
        min-width: auto;
    }
}

.ingredients-table-container {
    overflow-x: auto;
}

/* Estoque Page Styles */
.stock-table-container {
    overflow-x: auto;
    margin-top: 20px;
}

.stock-table-container .users-table tbody tr.low-stock {
    background-color: #ffcdd2 !important;
}

.stock-table-container .users-table tbody tr.low-stock td {
    color: #b71c1c;
    font-weight: 600;
    border-left: none !important;
}

.stock-table-container .users-table tbody tr.low-stock:hover {
    background-color: #ef9a9a !important;
}

.stock-table-container .users-table tbody tr.at-minimum-stock {
    background-color: #fff9c4 !important;
}

.stock-table-container .users-table tbody tr.at-minimum-stock td {
    color: #f57f17;
    font-weight: 600;
    border-left: none !important;
}

.stock-table-container .users-table tbody tr.at-minimum-stock:hover {
    background-color: #fff59d !important;
}

/* Estoque Movement Modal */
.form-group {
    position: relative;
}

.search-results {
    position: absolute;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    width: 100%;
    margin-top: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    top: 100%;
}

.search-results-item {
    padding: 12px;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    transition: background-color 0.2s;
}

.search-results-item:hover {
    background-color: rgba(71, 84, 66, 0.1);
}

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

/* Consolidar Estoque */
.stock-consolidate-step {
    padding: 0 0 16px;
}
.stock-consolidate-step-label {
    margin-bottom: 10px;
    color: var(--text);
}
.stock-consolidate-category-block {
    margin-bottom: 16px;
}
.stock-consolidate-category-block:last-child {
    margin-bottom: 0;
}
.stock-consolidate-category-name {
    font-weight: 600;
    color: var(--primary-color);
    padding: 10px 15px 8px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 0;
}
.stock-consolidate-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-bottom: 1px solid var(--border);
    transition: background-color 0.2s;
}

.stock-consolidate-item:hover {
    background-color: rgba(71, 84, 66, 0.05);
}

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

.stock-consolidate-item-info {
    flex: 1;
    min-width: 0;
}

.stock-consolidate-item-name {
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text);
}

.stock-consolidate-item-details {
    font-size: 0.9rem;
    color: var(--text-light);
}

.stock-consolidate-item-input {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.stock-consolidate-item-input input {
    width: 120px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
    font-size: 0.95rem;
}

.stock-consolidate-item-input input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.stock-consolidate-item-unit {
    color: var(--text-light);
    font-size: 0.9rem;
}

.btn-success {
    background: var(--primary-color);
    color: white;
}

.btn-success:hover {
    background: var(--primary-dark);
}

/* Estilos para modais de estoque */
.stock-selected-item {
    display: none;
    margin-bottom: 15px;
    padding: 15px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.stock-selected-item p {
    margin: 5px 0;
    color: var(--text);
}

.stock-consolidate-content {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

#stock-consolidate-modal .modal-actions {
    margin-top: 0;
}

#stock-consolidate-modal #stock-consolidate-form-error {
    margin: 0 20px 20px 20px;
}

/* Tabela de Movimentações */
.stock-movements-container {
    overflow-x: auto;
    margin-top: 20px;
}

/* Estoque por Categoria */
.stock-category-section {
    margin-bottom: 30px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    padding: 15px 20px 20px;
}

.stock-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #f5f5f5;
    border-bottom: 1px solid #ddd;
}

.stock-category-header h3,
.stock-category-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #333;
}

.stock-category-section .stock-table-container {
    margin: 0;
    border: none;
}

.stock-category-section .users-table {
    margin: 0;
}

#stock-movement-quantity-group {
    display: none;
}

#stock-movement-search-results {
    display: none;
}

/* Inserir Vários Itens - Batch Rows */
.batch-rows-header {
    display: grid;
    grid-template-columns: 2fr 3fr 1fr;
    gap: 12px;
    padding: 10px 0 8px;
    font-weight: 600;
    color: var(--text);
    border-bottom: 2px solid var(--border);
    margin-bottom: 8px;
}

.batch-rows-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
    max-height: 400px;
    overflow-y: auto;
}

.batch-row {
    display: grid;
    grid-template-columns: 2fr 3fr 1fr;
    gap: 12px;
    align-items: center;
}

.batch-row input {
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.9rem;
}

.batch-row input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.batch-rows-add-more {
    margin-bottom: 20px;
}

