/* ============================================= */
/* ZEBRA BROWSER PRINT - ESTILOS ADICIONAIS */
/* ============================================= */

.zebra-browser-print-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    border: 2px solid #e9ecef;
    border-left: 5px solid #0066cc;
}

.printer-selection h4 {
    color: #0a1737;
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.printer-controls {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

    .printer-controls .form-control {
        flex: 1;
        min-width: 200px;
        padding: 12px;
        border: 2px solid #dee2e6;
        border-radius: 8px;
        font-size: 14px;
        transition: all 0.3s ease;
    }

        .printer-controls .form-control:focus {
            border-color: #0066cc;
            box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.15);
        }

.printer-status {
    padding: 12px;
    background: white;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.printer-info {
    background: white;
    border-radius: 10px;
    padding: 15px;
    margin-top: 15px;
    border: 2px solid #dee2e6;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.printer-info .info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.printer-info .info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

    .printer-info .info-item label {
        font-weight: 700;
        color: #0066cc;
        font-size: 12px;
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .printer-info .info-item span {
        color: #333;
        font-size: 13px;
        font-weight: 600;
        padding: 6px 10px;
        background: #f8f9fa;
        border-radius: 6px;
        border: 1px solid #e9ecef;
    }

.print-controls {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    margin: 20px 0;
    border: 2px solid #e9ecef;
}

.print-options {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

    .print-options label {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 14px;
        color: #333;
        font-weight: 600;
        cursor: pointer;
    }

    .print-options input[type="number"] {
        width: 60px;
        padding: 8px;
        border: 2px solid #dee2e6;
        border-radius: 6px;
        text-align: center;
    }

    .print-options input[type="checkbox"] {
        width: 18px;
        height: 18px;
        cursor: pointer;
    }

/* Modal de impressão - ajustes */
.modal-impressao .modal-content {
    max-width: 800px;
}

.modal-impressao .modal-buttons {
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #e9ecef;
}

.modal-impressao .btn-submit {
    min-width: 160px;
}

/* Status de impressora */
.printer-status.success {
    color: #28a745;
    border-color: #28a745;
    background: rgba(40, 167, 69, 0.1);
}

.printer-status.error {
    color: #dc3545;
    border-color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
}

.printer-status.warning {
    color: #ffc107;
    border-color: #ffc107;
    background: rgba(255, 193, 7, 0.1);
}

.printer-status.info {
    color: #17a2b8;
    border-color: #17a2b8;
    background: rgba(23, 162, 184, 0.1);
}

/* ============================================= */
/* RESTANTE DO CSS (MANTIDO IGUAL) */
/* ============================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* ============================================= */
/* HEADER MELHORADO - CORREÇÃO DO PERFIL */
/* ============================================= */

.nexus-header {
    background: linear-gradient(135deg, #1a2b5f, #0a1737);
    color: white;
    padding: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 70px;
    border-bottom: 3px solid #ff7f00;
}

.header-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 25px;
    height: 100%;
}

.header-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .header-logo i {
        font-size: 28px;
        color: #ff7f00;
    }

    .header-logo h1 {
        margin: 0;
        font-size: 1.6rem;
        color: white;
        font-weight: 700;
    }

.header-greeting p {
    margin: 0;
    color: #b0b7d0;
    font-size: 0.9rem;
    font-style: italic;
}

/* PERFIL DO USUÁRIO - CORREÇÃO COMPLETA */
.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    height: 100%;
}

.user-info-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 5px 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    height: 46px;
    max-width: 220px;
    transition: all 0.3s ease;
}

    .user-info-header:hover {
        background: rgba(255, 255, 255, 0.15);
        border-color: rgba(255, 255, 255, 0.3);
    }

.user-avatar-header {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff7f00, #ff9f00);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    flex-shrink: 0;
}

.user-details-header {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

    .user-details-header h4 {
        margin: 0;
        font-size: 14px;
        font-weight: 600;
        color: white;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.2;
    }

    .user-details-header span {
        font-size: 11px;
        color: #b0b7d0;
        display: block;
        margin-top: 1px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.2;
    }

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 100%;
}

.btn-header {
    padding: 10px 20px;
    background: linear-gradient(135deg, #0a1737, #1a2b5f);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    height: 46px;
    white-space: nowrap;
}

    .btn-header.btn-secondary {
        background: rgba(255, 255, 255, 0.15);
        color: white;
        border: 1px solid rgba(255, 255, 255, 0.3);
    }

        .btn-header.btn-secondary:hover {
            background: rgba(255, 255, 255, 0.25);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        }

/* ============================================= */
/* LAYOUT COM MENU LATERAL */
/* ============================================= */

.main-layout {
    display: flex;
    min-height: calc(100vh - 70px);
    margin-top: 70px;
}

/* Sidebar melhorado */
.sidebar {
    width: 240px;
    background: linear-gradient(135deg, #0a1737, #1a2b5f);
    color: white;
    position: fixed;
    top: 70px;
    left: 0;
    bottom: 0;
    z-index: 999;
    overflow-y: auto;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    padding-top: 15px;
    transform: translateX(0);
}

.sidebar-nav {
    padding: 0 0 20px 0;
}

    .sidebar-nav ul {
        list-style: none;
        padding: 0 15px;
    }

    .sidebar-nav li {
        margin-bottom: 8px;
    }

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 15px;
    color: #b0b7d0;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 8px;
    font-size: 0.92rem;
    border-left: 4px solid transparent;
}

    .nav-link:hover {
        background: rgba(255, 255, 255, 0.05);
        color: white;
        border-left-color: rgba(255, 127, 0, 0.5);
    }

    .nav-link.active {
        background: rgba(255, 127, 0, 0.15);
        color: white;
        border-left-color: #ff7f00;
        font-weight: 600;
    }

    .nav-link i {
        width: 22px;
        text-align: center;
        font-size: 1.1rem;
    }

    .nav-link span {
        flex: 1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

.sidebar-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 18px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
}

.system-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #4ade80;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 240px;
    padding: 25px;
    min-height: calc(100vh - 70px - 70px);
    background: #f5f7fa;
    position: relative;
    overflow-x: hidden;
    transition: margin-left 0.3s ease;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border-left: 5px solid #ff7f00;
}

.breadcrumb {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0a1737;
}

.header-actions {
    display: flex;
    gap: 12px;
}

.btn-notification {
    position: relative;
    background: none;
    border: none;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #666;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

    .btn-notification:hover {
        background: #ff7f00;
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(255, 127, 0, 0.3);
    }

.notification-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #dc3545;
    color: white;
    font-size: 0.7rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border: 2px solid white;
}

.content-container {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    min-height: calc(100vh - 180px);
    margin-bottom: 20px;
    overflow-x: hidden;
}

/* ============================================= */
/* BOTÃO OPÇÕES COM DROPDOWN - SOLUÇÃO SIMPLES */
/* ============================================= */

.btn-options-container {
    position: relative;
    display: inline-block;
}

.btn-options {
    padding: 8px 16px;
    background: linear-gradient(135deg, #0a1737, #1a2b5f);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 90px;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(10, 23, 55, 0.3);
}

    .btn-options:hover {
        background: linear-gradient(135deg, #1a2b5f, #0a1737);
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(10, 23, 55, 0.4);
    }

/* DROPDOWN QUE SAI DA TABELA */
.options-dropdown {
    position: fixed !important; /* Mudei de absolute para fixed */
    background: white;
    min-width: 160px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    z-index: 99999 !important; /* Z-index muito alto */
    display: none;
    overflow: hidden;
    border: 1px solid #dee2e6;
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

    .options-dropdown.show {
        display: block !important;
        opacity: 1;
        transform: translateY(0) scale(1);
        pointer-events: auto;
        animation: dropdownAppear 0.3s ease forwards;
    }

@keyframes dropdownAppear {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.options-dropdown button {
    width: 100%;
    padding: 12px 16px;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f1f1f1;
}

    .options-dropdown button:last-child {
        border-bottom: none;
    }

    .options-dropdown button:hover {
        background-color: #f8f9fa;
        color: #ff7f00;
    }

    .options-dropdown button i {
        width: 16px;
        text-align: center;
        font-size: 14px;
    }

/* REMOVER QUALQUER OVERFLOW QUE ESTEJA ESCONDENDO O DROPDOWN */
.table-container-wrapper,
.content-container,
.tab-content {
    overflow: visible !important;
}

/* GARANTIR QUE A ÚLTIMA CÉLULA TENHA ESPAÇO PARA O DROPDOWN */
#tabelaEquipamentos td:last-child,
.tabelaUsuariosUser td:last-child,
#tabelaInventario td:last-child,
#tabelaLocalizacoes td:last-child,
#tabelaChamados td:last-child {
    position: static !important; /* Mudei de relative para static */
    overflow: visible !important;
}

/* ============================================= */
/* RESTANTE DO CSS (MANTIDO) */
/* ============================================= */

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease-in;
    overflow-x: hidden;
}

    .tab-content.active {
        display: block;
        overflow-x: hidden;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Contador de Equipamentos */
.contador-equipamentos {
    text-align: center;
    margin-bottom: 30px;
    padding: 18px;
    background: linear-gradient(135deg, #0a1737, #1a2b5f);
    color: white;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: bold;
    box-shadow: 0 6px 20px rgba(10, 23, 55, 0.3);
    border: 2px solid rgba(255, 127, 0, 0.3);
}

    .contador-equipamentos .numero {
        font-size: 1.5rem;
        color: #ff7f00;
        font-weight: bold;
        margin: 0 8px;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }

/* Estilos do Formulário */
.form {
    display: flex;
    flex-direction: column;
    gap: 25px;
    max-width: 900px;
    margin: 0 auto;
    overflow-x: hidden;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 8px;
    min-width: 0;
}

    .form-group.full-width {
        grid-column: 1 / -1;
    }

label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #0a1737;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

input, select, textarea {
    padding: 12px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background-color: #fff;
    color: #333;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

    input:focus, select:focus, textarea:focus {
        outline: none;
        border-color: #3b82f6;
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
    }

.btn-submit {
    padding: 14px 28px;
    background: linear-gradient(135deg, #ff7f00, #ff9f00);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
    box-shadow: 0 6px 20px rgba(255, 127, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 180px;
    align-self: center;
    width: fit-content;
}

    .btn-submit:hover {
        background: linear-gradient(135deg, #e66a00, #ff7f00);
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(255, 127, 0, 0.5);
    }

.btn-cancel {
    padding: 14px 28px;
    background: linear-gradient(135deg, #6c757d, #5a6268);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 180px;
    align-self: center;
    width: fit-content;
}

    .btn-cancel:hover {
        background: linear-gradient(135deg, #5a6268, #6c757d);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
    }

/* Estilos da Consulta */
.consulta-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
    border-left: 5px solid #ff7f00;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    overflow-x: hidden;
}

.btn-refresh {
    padding: 10px 18px;
    background: linear-gradient(135deg, #0a1737, #1a2b5f);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    box-shadow: 0 4px 15px rgba(10, 23, 55, 0.3);
    white-space: nowrap;
}

    .btn-refresh:hover {
        background: linear-gradient(135deg, #1a2b5f, #0a1737);
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(10, 23, 55, 0.4);
    }

.search-box {
    flex: 1;
    min-width: 200px;
    position: relative;
    max-width: 400px;
}

    .search-box input {
        width: 100%;
        padding: 12px 14px 12px 40px;
        border: 2px solid #d1d5db;
        border-radius: 8px;
        font-size: 14px;
        transition: all 0.3s ease;
    }

        .search-box input:focus {
            border-color: #3b82f6;
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
        }

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    z-index: 2;
    font-size: 15px;
}

/* Container da tabela com rolagem vertical */
.table-container-wrapper {
    overflow-x: auto;
    margin-top: 20px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    background-color: white;
    border: 2px solid #e9ecef;
    padding: 5px;
    max-width: 100%;
    overflow-y: hidden;
}

/* Tabelas responsivas com proporções ajustadas */
table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    min-width: 100%;
    table-layout: fixed;
}

th, td {
    padding: 12px 10px;
    text-align: left;
    border-bottom: 2px solid rgba(0, 0, 0, 0.08);
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

th {
    background: linear-gradient(135deg, #0a1737, #1a2b5f);
    color: white;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    position: sticky;
    top: 0;
    z-index: 10;
}

tr {
    transition: background-color 0.2s ease;
}

    tr:hover {
        background-color: rgba(255, 127, 0, 0.08);
    }

    tr:last-child td {
        border-bottom: none;
    }

/* Status Styles - TAMANHO UNIFORME */
.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    white-space: nowrap;
    min-width: 100px;
    max-width: 120px;
    text-align: center;
    line-height: 1.2;
}

.status-em-uso {
    background: linear-gradient(135deg, #28a745, #20c997) !important;
    color: white !important;
    border: 2px solid #1e7e34 !important;
}

.status-disponivel {
    background: linear-gradient(135deg, #ffc107, #ffb300) !important;
    color: #333 !important;
    border: 2px solid #e0a800 !important;
}

.status-inativo {
    background: linear-gradient(135deg, #dc3545, #c82333) !important;
    color: white !important;
    border: 2px solid #bd2130 !important;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 4px rgba(0,0,0,0.3);
    flex-shrink: 0;
}

    .status-indicator.em-uso {
        background-color: #ffffff !important;
    }

    .status-indicator.disponivel {
        background-color: #333333 !important;
    }

    .status-indicator.inativo {
        background-color: #ffffff !important;
    }

/* Mensagens e Loading */
.mensagem {
    margin-top: 20px;
    padding: 15px 18px;
    border-radius: 10px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    display: none;
    border-left: 5px solid;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

    .mensagem.sucesso {
        background-color: #f0f9f4;
        color: #0d6832;
        border-color: #28a745;
    }

    .mensagem.erro {
        background-color: #fdf2f2;
        color: #7c2d2d;
        border-color: #dc3545;
        white-space: pre-line;
    }

.loading {
    text-align: center;
    padding: 18px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    color: #e66a00;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    margin-top: 20px;
    font-weight: 700;
    border-left: 5px solid #ff7f00;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Modal */
.modal {
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    display: none;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
    padding: 20px;
}

.modal-content {
    background-color: white;
    padding: 25px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
    animation: slideIn 0.3s ease;
    border-top: 5px solid #ff7f00;
    max-height: 85vh;
    overflow-y: auto;
}

    .modal-content.modal-chamado {
        max-width: 800px;
        max-height: 90vh;
    }

    .modal-content.modal-impressao {
        max-width: 700px;
    }

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-60px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    transition: all 0.3s ease;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f8f9fa;
}

    .close:hover {
        color: #ff7f00;
        background-color: #e9ecef;
        transform: rotate(90deg);
    }

.modal-buttons {
    display: flex;
    gap: 12px;
    margin-top: 25px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

/* ============================================= */
/* DASHBOARD STYLES */
/* ============================================= */

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
    border-left: 5px solid #ff7f00;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

    .dashboard-header h2 {
        color: #0a1737;
        margin: 0;
        font-size: 1.6rem;
        font-weight: 700;
    }

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 35px;
}

.metric-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    display: flex;
    align-items: center;
    gap: 18px;
    transition: all 0.3s ease;
    border-left: 5px solid;
    position: relative;
    overflow: hidden;
    border: 2px solid #e9ecef;
}

    .metric-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    }

.metric-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    flex-shrink: 0;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.metric-info {
    flex: 1;
    min-width: 0;
}

    .metric-info h3 {
        font-size: 1.8rem;
        color: #0a1737;
        margin: 0 0 6px 0;
        font-weight: 800;
        line-height: 1.2;
    }

    .metric-info p {
        color: #666;
        margin: 0;
        font-size: 14px;
        font-weight: 600;
        line-height: 1.4;
    }

/* Cores específicas para cada métrica */
.total-equipamentos {
    border-left-color: #1a2b5f;
}

    .total-equipamentos .metric-icon {
        background: linear-gradient(135deg, #1a2b5f, #0a1737);
    }

.valor-total {
    border-left-color: #28a745;
}

    .valor-total .metric-icon {
        background: linear-gradient(135deg, #28a745, #20c997);
    }

.equipamentos-uso {
    border-left-color: #28a745;
}

    .equipamentos-uso .metric-icon {
        background: linear-gradient(135deg, #28a745, #20c997);
    }

.equipamentos-disponivel {
    border-left-color: #ffc107;
}

    .equipamentos-disponivel .metric-icon {
        background: linear-gradient(135deg, #ffc107, #ffb300);
    }

.equipamentos-inativo {
    border-left-color: #dc3545;
}

    .equipamentos-inativo .metric-icon {
        background: linear-gradient(135deg, #dc3545, #c82333);
    }

.total-inventario {
    border-left-color: #17a2b8;
}

    .total-inventario .metric-icon {
        background: linear-gradient(135deg, #17a2b8, #138496);
    }

.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 25px;
    margin-bottom: 35px;
}

.chart-container {
    background: #ffffff;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
    border: 2px solid #e9ecef;
}

    .chart-container h3 {
        color: #0a1737;
        margin-bottom: 20px;
        font-size: 1.3rem;
        display: flex;
        align-items: center;
        gap: 10px;
        padding-bottom: 15px;
        border-bottom: 3px solid #e9ecef;
    }

.chart {
    position: relative;
    height: 300px;
    width: 100%;
    min-height: 300px;
    overflow: hidden;
}

    .chart canvas {
        width: 100% !important;
        height: 100% !important;
        max-height: 300px !important;
    }

/* Estilo específico para gráfico de status */
#statusChart {
    height: 300px;
}

#statusChartCanvas {
    max-width: 100% !important;
    max-height: 300px !important;
    aspect-ratio: 1.5 !important;
}

.tables-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 25px;
    margin-bottom: 35px;
}

    .tables-grid .table-container {
        background: transparent;
        padding: 0;
        border-radius: 0;
        box-shadow: none;
        margin-top: 0;
        overflow-x: auto;
    }

    .tables-grid table {
        width: 100%;
        border-collapse: collapse;
        min-width: 400px;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    }

    .tables-grid th,
    .tables-grid td {
        padding: 14px 12px;
        text-align: left;
        border-bottom: 2px solid #eaeaea;
        font-size: 13px;
    }

    .tables-grid th {
        background: linear-gradient(135deg, #0a1737, #1a2b5f);
        color: white;
        font-weight: 700;
        border-bottom: 3px solid #ff7f00;
    }

/* ============================================= */
/* ESTILOS PARA IMPRESSÃO ZPL */
/* ============================================= */

.etiqueta-zpl {
    background: white;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    max-width: 400px;
    margin: 0 auto;
}

.etiqueta-header {
    text-align: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ff7f00;
}

    .etiqueta-header h3 {
        color: #0a1737;
        margin: 0 0 5px 0;
        font-size: 18px;
    }

.etiqueta-body {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 15px;
}

.etiqueta-info {
    flex: 1;
}

    .etiqueta-info p {
        margin: 5px 0;
        font-size: 14px;
    }

.etiqueta-barcode {
    text-align: center;
}

.barcode-display {
    margin: 10px 0;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 5px;
    border: 1px solid #dee2e6;
}

.barcode-number {
    font-family: monospace;
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin-top: 5px;
}

.etiqueta-footer {
    text-align: center;
    padding-top: 10px;
    border-top: 1px solid #ddd;
    font-size: 13px;
    color: #666;
}

.zpl-code textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    resize: vertical;
    background: #f8f9fa;
}

/* ============================================= */
/* ESTILOS PARA CHAMADOS - CORREÇÃO DE PROPORÇÕES */
/* ============================================= */

.chamado-detalhes {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.detalhes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #dee2e6;
}

.detalhe-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

    .detalhe-item label {
        font-weight: 700;
        color: #0a1737;
        font-size: 12px;
    }

.detalhe-valor {
    color: #333;
    font-size: 14px;
    font-weight: 600;
}

.detalhe-full {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #dee2e6;
}

.detalhe-descricao {
    color: #333;
    font-size: 14px;
    line-height: 1.6;
    white-space: pre-line;
    margin-top: 8px;
    padding: 10px;
    background: white;
    border-radius: 5px;
    border: 1px solid #dee2e6;
}

.historico-container {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #dee2e6;
}

    .historico-container h4 {
        color: #0a1737;
        margin-bottom: 12px;
        font-size: 1.1rem;
        display: flex;
        align-items: center;
        gap: 8px;
    }

.historico-respostas {
    max-height: 250px;
    overflow-y: auto;
    padding: 10px;
    background: white;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.mensagem-item {
    padding: 12px;
    border-bottom: 1px solid #dee2e6;
    background: white;
    border-radius: 8px;
    margin-bottom: 8px;
}

    .mensagem-item:last-child {
        border-bottom: none;
        margin-bottom: 0;
    }

.mensagem-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

    .mensagem-header strong {
        color: #0a1737;
        font-size: 13px;
    }

.mensagem-departamento {
    background: #e9ecef;
    color: #666;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.mensagem-data {
    color: #666;
    font-size: 11px;
    margin-left: auto;
}

.mensagem-texto {
    color: #333;
    font-size: 13px;
    line-height: 1.5;
    white-space: pre-line;
}

.resposta-container {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #dee2e6;
}

    .resposta-container h4 {
        color: #0a1737;
        margin-bottom: 12px;
        font-size: 1.1rem;
        display: flex;
        align-items: center;
        gap: 8px;
    }

#formResponderChamado {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

    #formResponderChamado textarea {
        min-height: 100px;
        resize: vertical;
    }

/* ============================================= */
/* RODAPÉ SIMPLES */
/* ============================================= */

.footer {
    background: #0a1737;
    color: white;
    padding: 20px;
    text-align: center;
    border-top: 3px solid #ff7f00;
    margin-left: 240px;
    width: calc(100% - 240px);
    position: relative;
    z-index: 100;
    transition: margin-left 0.3s ease, width 0.3s ease;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

    .footer-content p {
        margin: 0;
        font-size: 14px;
        color: #b0b7d0;
        font-weight: 500;
    }

/* ============================================= */
/* PROPORÇÕES DAS TABELAS - AJUSTE ESPECÍFICO */
/* ============================================= */

/* Tabela de Equipamentos - PROPORÇÕES REAJUSTADAS */
#tabelaEquipamentos {
    width: 100%;
    table-layout: fixed;
}

    #tabelaEquipamentos th:nth-child(1) {
        width: 5%;
    }
    /* ID */
    #tabelaEquipamentos th:nth-child(2) {
        width: 11%;
    }
    /* Código Barras */
    #tabelaEquipamentos th:nth-child(3) {
        width: 12%;
    }
    /* Departamento */
    #tabelaEquipamentos th:nth-child(4) {
        width: 10%;
    }
    /* Usuário */
    #tabelaEquipamentos th:nth-child(5) {
        width: 10%;
    }
    /* Marca */
    #tabelaEquipamentos th:nth-child(6) {
        width: 10%;
    }
    /* Modelo */
    #tabelaEquipamentos th:nth-child(7) {
        width: 8%;
    }
    /* Cor */
    #tabelaEquipamentos th:nth-child(8) {
        width: 9%;
    }
    /* Valor */
    #tabelaEquipamentos th:nth-child(9) {
        width: 15%;
    }
    /* Status - AUMENTADO */
    #tabelaEquipamentos th:nth-child(10) {
        width: 10%;
    }
/* Ações - REDUZIDO */

/* Tabela de Chamados - STATUS COM TAMANHO UNIFORME */
#tabelaChamados {
    width: 100%;
    table-layout: fixed;
}

    #tabelaChamados th:nth-child(1) {
        width: 5%;
    }
    /* ID */
    #tabelaChamados th:nth-child(2) {
        width: 12%;
    }
    /* Usuário */
    #tabelaChamados th:nth-child(3) {
        width: 12%;
    }
    /* Departamento */
    #tabelaChamados th:nth-child(4) {
        width: 14%;
    }
    /* Título */
    #tabelaChamados th:nth-child(5) {
        width: 10%;
    }
    /* Categoria */
    #tabelaChamados th:nth-child(6) {
        width: 10%;
    }
    /* Prioridade */
    #tabelaChamados th:nth-child(7) {
        width: 12%;
    }
    /* Status - Tamanho uniforme */
    #tabelaChamados th:nth-child(8) {
        width: 10%;
    }
    /* Data Abertura */
    #tabelaChamados th:nth-child(9) {
        width: 15%;
    }
/* Ações */

/* ============================================= */
/* PRIORIDADES E STATUS DE CHAMADOS - TAMANHO UNIFORME */
/* ============================================= */

/* Prioridades - Tamanho uniforme */
.prioridade-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 15px;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    min-width: 80px;
    text-align: center;
    line-height: 1.2;
}

.prioridade-urgente {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    border: 2px solid #bd2130;
}

.prioridade-alta {
    background: linear-gradient(135deg, #fd7e14, #e95900);
    color: white;
    border: 2px solid #e66a00;
}

.prioridade-media {
    background: linear-gradient(135deg, #ffc107, #ffb300);
    color: #333;
    border: 2px solid #e0a800;
}

.prioridade-baixa {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: 2px solid #1e7e34;
}

/* Status de Chamados - Tamanho uniforme */
.status-aberto,
.status-em_andamento,
.status-pendente,
.status-resolvido,
.status-fechado {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 6px 12px !important;
    border-radius: 15px !important;
    font-weight: 700 !important;
    font-size: 11px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    white-space: nowrap !important;
    min-width: 100px !important;
    max-width: 120px !important;
    text-align: center !important;
    line-height: 1.2 !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1) !important;
}

.status-aberto {
    background: linear-gradient(135deg, #ffc107, #ffb300) !important;
    color: #333 !important;
    border: 2px solid #e0a800 !important;
}

.status-em_andamento {
    background: linear-gradient(135deg, #fd7e14, #e95900) !important;
    color: white !important;
    border: 2px solid #e66a00 !important;
}

.status-pendente {
    background: linear-gradient(135deg, #6f42c1, #5a32a3) !important;
    color: white !important;
    border: 2px solid #563d7c !important;
}

.status-resolvido {
    background: linear-gradient(135deg, #28a745, #20c997) !important;
    color: white !important;
    border: 2px solid #1e7e34 !important;
}

.status-fechado {
    background: linear-gradient(135deg, #dc3545, #c82333) !important;
    color: white !important;
    border: 2px solid #bd2130 !important;
}

/* ============================================= */
/* RESPONSIVIDADE COMPLETA - MOBILE FIRST */
/* ============================================= */

/* Menu hamburger para mobile */
.menu-toggle {
    display: none;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1001;
    background: #ff7f00;
    color: white;
    border: none;
    border-radius: 8px;
    width: 45px;
    height: 45px;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 127, 0, 0.3);
    align-items: center;
    justify-content: center;
}

    .menu-toggle:hover {
        background: #e66a00;
        transform: translateY(-2px);
    }

/* Mobile: 768px e abaixo */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .sidebar {
        transform: translateX(-100%);
        width: 280px;
    }

        .sidebar.active {
            transform: translateX(0);
            box-shadow: 10px 0 30px rgba(0, 0, 0, 0.3);
        }

    .main-content {
        margin-left: 0;
        padding: 15px;
    }

    .footer {
        margin-left: 0;
        width: 100%;
    }

    /* Header mobile */
    .nexus-header {
        height: 60px;
        padding: 0;
    }

    .header-container {
        padding: 0 15px;
    }

    .header-logo h1 {
        font-size: 1.2rem;
    }

    .header-logo i {
        font-size: 22px;
    }

    .header-greeting {
        display: none;
    }

    .header-right {
        gap: 10px;
    }

    .user-info-header {
        padding: 5px 10px;
        max-width: 180px;
        height: 40px;
    }

    .user-avatar-header {
        width: 32px;
        height: 32px;
        font-size: 18px;
    }

    .user-details-header h4 {
        font-size: 12px;
    }

    .user-details-header span {
        font-size: 10px;
    }

    .btn-header {
        padding: 8px 12px;
        font-size: 0.8rem;
        height: 40px;
    }

    .main-layout {
        margin-top: 60px;
        min-height: calc(100vh - 60px);
    }

    .sidebar {
        top: 60px;
    }

    .content-header {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
        margin-bottom: 20px;
    }

    .breadcrumb {
        font-size: 1.1rem;
        text-align: center;
    }

    .btn-notification {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .content-container {
        padding: 20px;
        margin-bottom: 15px;
    }

    .contador-equipamentos {
        padding: 15px;
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .consulta-header {
        flex-direction: column;
        align-items: stretch;
        padding: 15px;
        gap: 12px;
    }

    .search-box {
        min-width: 100%;
        max-width: 100%;
    }

    .btn-refresh, .btn-submit, .btn-cancel {
        width: 100%;
        justify-content: center;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .form {
        gap: 20px;
    }

    .charts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .chart-container {
        padding: 20px;
    }

    .chart {
        height: 250px;
    }

    .tables-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

        .tables-grid .table-container {
            overflow-x: auto;
        }

        .tables-grid table {
            min-width: 600px;
        }

    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .metric-card {
        padding: 20px;
    }

    .metric-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .metric-info h3 {
        font-size: 1.5rem;
    }

    .modal-content {
        width: 95%;
        padding: 20px;
    }

        .modal-content.modal-chamado,
        .modal-content.modal-impressao {
            width: 95%;
            max-width: 95%;
        }

    .modal-buttons {
        flex-direction: column;
    }

        .modal-buttons button {
            width: 100%;
        }

    table {
        font-size: 12px;
    }

    th, td {
        padding: 8px 6px;
    }

    /* Ajuste para tabelas em mobile */
    #tabelaEquipamentos th:nth-child(2),
    #tabelaEquipamentos th:nth-child(8) {
        display: none;
    }

    #tabelaEquipamentos td:nth-child(2),
    #tabelaEquipamentos td:nth-child(8) {
        display: none;
    }

    .btn-options {
        min-width: 80px;
        padding: 6px 10px;
        font-size: 11px;
    }

    .options-dropdown {
        min-width: 140px;
    }

        .options-dropdown button {
            padding: 10px 12px;
            font-size: 12px;
        }

    .status-badge,
    .prioridade-badge,
    .status-aberto,
    .status-em_andamento,
    .status-pendente,
    .status-resolvido,
    .status-fechado {
        min-width: 80px !important;
        font-size: 10px !important;
        padding: 5px 8px !important;
    }

    /* Ajustes para Zebra Browser Print em mobile */
    .printer-controls {
        flex-direction: column;
        align-items: stretch;
    }

        .printer-controls .form-control {
            min-width: 100%;
        }

    .printer-info .info-grid {
        grid-template-columns: 1fr;
    }

    .print-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* Tablet: 769px a 1024px */
@media (min-width: 769px) and (max-width: 1024px) {
    .sidebar {
        width: 220px;
    }

    .main-content {
        margin-left: 220px;
        padding: 20px;
    }

    .footer {
        margin-left: 220px;
        width: calc(100% - 220px);
    }

    .charts-grid {
        grid-template-columns: 1fr;
    }

    .tables-grid {
        grid-template-columns: 1fr;
    }

    .metrics-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .user-info-header {
        max-width: 200px;
    }
}

/* Mobile pequeno: 480px e abaixo */
@media (max-width: 480px) {
    .header-logo h1 {
        font-size: 1rem;
    }

    .header-logo i {
        font-size: 18px;
    }

    .user-info-header {
        max-width: 150px;
        padding: 5px 8px;
    }

    .user-details-header h4 {
        font-size: 11px;
    }

    .user-details-header span {
        font-size: 9px;
    }

    .btn-header {
        padding: 6px 10px;
        font-size: 0.75rem;
    }

    .metrics-grid {
        grid-template-columns: 1fr;
    }

    .chart-container {
        padding: 15px;
    }

    .chart {
        height: 220px;
    }

    .table-container-wrapper {
        padding: 3px;
    }

    table {
        font-size: 11px;
    }

    th, td {
        padding: 6px 4px;
    }

    .btn-options {
        min-width: 70px;
        padding: 5px 8px;
        font-size: 10px;
    }

    .options-dropdown {
        min-width: 120px;
    }

        .options-dropdown button {
            padding: 8px 10px;
            font-size: 11px;
        }

    .status-badge,
    .prioridade-badge,
    .status-aberto,
    .status-em_andamento,
    .status-pendente,
    .status-resolvido,
    .status-fechado {
        min-width: 70px !important;
        font-size: 9px !important;
        padding: 4px 6px !important;
    }

    /* Ajuste extremo para mobile pequeno */
    #tabelaEquipamentos th:nth-child(5),
    #tabelaEquipamentos th:nth-child(6),
    #tabelaEquipamentos th:nth-child(7) {
        display: none;
    }

    #tabelaEquipamentos td:nth-child(5),
    #tabelaEquipamentos td:nth-child(6),
    #tabelaEquipamentos td:nth-child(7) {
        display: none;
    }
}

/* Desktop grande: acima de 1200px */
@media (min-width: 1201px) {
    .header-container {
        max-width: 1400px;
    }

    .content-container {
        max-width: 1400px;
        margin: 0 auto 20px;
    }

    .footer-content {
        max-width: 1400px;
    }
}

/* ============================================= */
/* ANIMAÇÕES E ESTILOS GLOBAIS */
/* ============================================= */

/* Ícones Font Awesome */
.icon-spacing {
    margin-right: 8px;
}

.fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #ff7f00;
    border-radius: 10px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: #e66a00;
    }

/* Animações adicionais */
@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Estilos para campos monetários */
.valor-monetario {
    font-weight: 700;
    color: #28a745;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    white-space: nowrap;
}

/* Estilos para badges de quantidade */
.quantidade-badge {
    display: inline-block;
    padding: 4px 8px;
    background: linear-gradient(135deg, #17a2b8, #138496);
    color: white;
    border-radius: 15px;
    font-weight: 700;
    font-size: 12px;
    min-width: 30px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(23, 162, 184, 0.3);
}

/* Estilos para tipos de localização */
.tipo-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 15px;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.tipo-sala {
    background: linear-gradient(135deg, #6f42c1, #5a32a3);
    color: white;
}

.tipo-local {
    background: linear-gradient(135deg, #20c997, #17a2b8);
    color: white;
}

.tipo-sub_local {
    background: linear-gradient(135deg, #fd7e14, #ffc107);
    color: white;
}

/* Ajuste para alinhamento do rodapé com Sistema Online */
.sidebar-footer {
    padding: 20px;
    background: rgba(0, 0, 0, 0.25);
}

.system-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

    .system-info i {
        color: #4ade80;
        font-size: 16px;
    }

    .system-info span {
        color: white;
        font-weight: 600;
        font-size: 13px;
    }

/* Ajuste para tabelas específicas */
#tabelaEquipamentos,
.tabelaUsuariosUser,
#tabelaInventario,
#tabelaLocalizacoes,
#tabelaChamados {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 13px;
}

    #tabelaEquipamentos th,
    #tabelaEquipamentos td,
    .tabelaUsuariosUser th,
    .tabelaUsuariosUser td,
    #tabelaInventario th,
    #tabelaInventario td,
    #tabelaLocalizacoes th,
    #tabelaLocalizacoes td,
    #tabelaChamados th,
    #tabelaChamados td {
        padding: 10px 8px;
        text-align: left;
        border: 1px solid #ddd;
        word-wrap: break-word;
        overflow-wrap: break-word;
        white-space: normal;
    }

/* Ajuste para impressão */
@media print {
    .sidebar,
    .header-actions,
    .consulta-header,
    .btn-options,
    .options-dropdown,
    .menu-toggle,
    .footer {
        display: none !important;
    }

    .main-content {
        margin-left: 0;
        padding: 0;
    }

    .content-container {
        box-shadow: none;
        border: none;
        padding: 0;
    }

    table {
        break-inside: avoid;
    }

    .etiqueta-zpl {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #000;
    }
}
