@font-face {
    font-family: 'TituloFont';
    src: url('../public/assets/fonts/title.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'BodyFont';
    src: url('../public/assets/fonts/body.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: 'BodyFont', Arial, sans-serif;
}

h1, h2, h3, a, th, span{
    font-family: 'TituloFont';
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    min-height: 100vh;
    min-width: 0;
    overflow: hidden;
}

#sidebar {
    width: 220px;
    min-width: 220px;
    max-width: 220px;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 100;
    background: #042c3c;
    color: #fff;
    display: flex;
    flex-direction: column;
    transition: left 0.3s;
}

header {
    position: fixed;
    left: 220px;
    top: 0;
    right: 0;
    height: 60px;
    z-index: 101;
    background: #042c3c;
    color: #fff;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: left 0.3s;
}

main {
    margin-left: 220px;
    margin-top: 60px;
    padding: 25px;
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    height: calc(100vh - 60px);
    overflow-y: auto;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    transition: margin-left 0.3s;
}

@media (max-width: 992px) {
    #sidebar {
        left: -220px;
    }
    #sidebar.active {
        left: 0;
    }
    header {
        left: 0;
    }
    main {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    #sidebar {
        width: 220px;
        min-width: 220px;
        max-width: 220px;
        left: -220px;
    }
    #sidebar.active {
        left: 0;
    }
    header {
        left: 0;
    }
    main {
        margin-left: 0;
    }
    #sidebar .sidebar-content img {
        max-width: 40px !important;
        height: auto;
        display: block;
        margin: 0 auto;
    }
    #sidebar ul li span,
    .sidebar-footer span {
        display: inline;
    }
}

.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border-radius: 12px;
    overflow-x: scroll;
    overflow-y: hidden;
}

.table thead th {
    background: white;
    color: #212529;
    font-weight: 700;
    border: none;
    padding: 1rem 0.75rem;
    letter-spacing: 0.03em;
    font-size: 1rem;
}

.table tbody tr {
    transition: background 0.2s;
}

.table td {
    border: none;
    padding: 0.75rem 0.75rem;
    vertical-align: middle;
    font-size: 0.98rem;
    color: #2c3e50;
}

.table th:first-child, .table td:first-child {
    border-top-left-radius: 12px;
}
.table th:last-child, .table td:last-child {
    border-top-right-radius: 12px;
}

.table-bordered, .table-bordered th, .table-bordered td {
    border: none !important;
}

.table th, .table td {
    white-space: nowrap;
    word-break: break-word;
    vertical-align: middle; 
    font-size: 1rem;
    padding: 0.75rem 0.75rem;
}