body, html {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.container {
    width: 100%;
    height: 100%;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

iframe {
    width: 100%;
    height: calc(100vh - 110px);
    border: none;
    display: none;
}

iframe.active {
    display: block;
}

h2 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
}

input[type="text"], input[type="password"], input[type="email"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

button {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 10px;
}

button:hover {
    background-color: #0056b3;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

table, th, td {
    border: 1px solid #ddd;
    padding: 8px;
}

th {
    background-color: #f2f2f2;
    position: sticky;
    top: 0;
    z-index: 1;
}

header {
    background-color: #343a40;
    color: white;
    padding: 10px;
    text-align: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    font-size: 14px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

#user-info {
    display: flex;
    justify-content: center;
    align-items: center;
}

.name {
    margin-right: 10px;
}

.status-indicator {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: lightblue;
    margin-left: 10px;
}

.bottom-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #222;
    padding: 10px;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 999;
}

.central-button {
    width: 50px;
    height: 50px;
    background-color: #333;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s;
    color: white;
    border: 2px solid white;
}

.central-button:hover {
    background-color: #444;
}

.button-content {
    text-align: center;
}

.user-status {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: lightblue;
    position: absolute;
    bottom: 5px;
    right: 5px;
    box-shadow: 0 0 10px lightblue;
}

.user-menu {
    display: none;
    position: fixed;
    bottom: 100px;
    background-color: #444;
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    width: 200px;
    left: 10px;
    z-index: 1001;
}

.user-menu a {
    display: block;
    margin: 10px 0;
    color: white;
    text-decoration: none;
    border: 1px solid #777;
    padding: 5px 10px;
    border-radius: 5px;
}

.user-menu a:hover {
    background-color: #555;
}

.user-menu.show {
    display: block;
}

.right-navbar {
    display: flex;
    align-items: center;
}

.clock {
    color: white;
    font-size: 14px;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 5px;
    border-radius: 5px;
}

.inactive-timer {
    color: white;
    font-size: 14px;
    position: fixed;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    padding: 5px;
    border-radius: 5px;
    z-index: 1001;
}

.logout-warning {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #444;
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    z-index: 1002;
}

.logout-warning.show {
    display: block;
}

.logout-warning button {
    background-color: #555;
    color: white;
    border: none;
    padding: 10px 20px;
    margin: 10px;
    cursor: pointer;
    border-radius: 5px;
}

.logout-warning button:hover {
    background-color: #666;
}

.notification {
    background-color: #007bff;
    color: white;
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification.warning {
    background-color: #ffcc00;
    color: black;
}

.notification .btn {
    background-color: #0056b3;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 3px;
}

.notification .btn:hover {
    background-color: #003f7f;
}

.table-wrapper {
    overflow-y: auto;
    max-height: calc(100vh - 200px); /* Ajustar esta altura según sea necesario */
}

.tabs {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
    position: sticky;
    top: 0;
    background-color: #f9f9f9;
    z-index: 1;
}

.tabs button {
    padding: 10px;
    cursor: pointer;
    background-color: #f1f1f1;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.tabs button.active {
    background-color: #007bff;
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    height: calc(100vh - 200px); /* Ajusta según sea necesario */
    overflow-y: auto;
}

.sticky-header {
    position: sticky;
    top: 0;
    background-color: #fff;
    z-index: 2;
}

#sujetos, #actuaciones, #documentos {
    max-height: calc(100vh - 400px);
    overflow-y: auto;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    border-radius: 10px;
    text-align: center;
}

.modal-content h3 {
    text-align: center;
    font-size: 1.5em;
    margin-bottom: 20px;
}

.header {
    background-color: #4CAF50; /* Cambia el color según tu preferencia */
    color: white;
    padding: 10px 0;
    border-radius: 10px 10px 0 0;
    font-size: 1.2em;
    font-weight: bold;
}

.process-key {
    font-size: 2em;
    font-weight: bold;
    margin: 10px 0;
}

.tab {
    overflow: hidden;
    border: 1px solid #ccc;
    background-color: #f1f1f1;
    display: flex;
    justify-content: center;
}

.tab button {
    background-color: #e0e0e0;
    color: #000;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 14px 16px;
    transition: 0.3s;
    margin: 0 5px;
}

.tab button:hover {
    background-color: #ddd;
}

.tab button.active {
    background-color: #ccc;
}

.tabcontent {
    display: none;
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-top: none;
    text-align: left;
    margin-top: 10px;
}

.actuacion-item {
    border-bottom: 1px solid #ddd;
    padding: 10px 0;
    text-align: left;
    margin: 0 auto;
    max-width: 800px;
}

.actuacion-item p {
    margin: 5px 0;
}

.actuacion-item .highlight {
    font-size: 1.2em;
    font-weight: bold;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}
