* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    flex: 1;
}

.header {
    background-color: #711D1D;
    color: white;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header h1 {
    font-size: 20px;
    margin: 0;
    text-align: right;
}

.header .welcome {
    font-size: 0.9rem;
}

.footer {
    background-color: #711D1D;
    color: white;
    padding: 5px 0;
    text-align: center;
    width: 100%;
    flex-shrink: 0;
}

/* Menu */
.menu {
    width: 250px;
    background-color: #333;
    color: white;
    position: fixed;
    top: 0;
    left: -250px;
    height: 100%;
    overflow-y: auto;
    transition: all 0.3s ease-in-out;
    z-index: 1000;
}

.menu.active {
    left: 0;
}

.menu ul {
    list-style: none;
    padding: 0;
}

.menu ul li {
    padding: 15px;
    text-align: center;
}

.menu ul li a {
    color: white;
    text-decoration: none;
    display: block;
}

.menu ul li:hover {
    background-color: #444;
}

.menu-toggle {
    display: block;
    background-color: #711D1D;
    color: white;
    text-align: center;
    padding: 10px;
    cursor: pointer;
    position: fixed;
    top: 10px;
    left: 10px;
    font-size: 1.5rem;
    z-index: 1001;
    transition: transform 0.3s ease-in-out, left 0.3s ease-in-out;
}

.menu-toggle.active {
    left: 260px;
}

.menu-toggle:hover {
    transform: scale(1.1);
}

.content {
    transition: margin-left 0.3s ease-in-out;
    padding-top: 20px;
    flex: 1;
}

.content.active {
    margin-left: 250px;
}

.logout-btn {
    background-color: #711D1D;
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    margin-top: 20px;
    transition: background-color 0.3s ease-in-out;
}

.logout-btn:hover {
    background-color: #8b2a2a;
}

/* Form */
form {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

form h2 {
    margin-bottom: 20px;
    color: #711D1D;
}

form .form-group {
    margin-bottom: 15px;
}

form .form-group label {
    display: block;
    margin-bottom: 5px;
}

form .form-group input,
form .form-group select,
form .form-group textarea {
    width: calc(100% - 20px);
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

form .form-group input[type="radio"],
form .form-group input[type="checkbox"] {
    width: auto;
}

form .form-group button {
    background-color: #711D1D;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease-in-out, transform 0.3s ease-in-out;
}

form .form-group button:hover {
    background-color: #8b2a2a;
    transform: scale(1.05);
}

.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.form-navigation button {
    width: 48%;
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 5px;
    transition: background-color 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.form-navigation .btn-prev {
    background-color: #ccc;
    color: #333;
}

.form-navigation .btn-prev:hover {
    background-color: #bbb;
    transform: scale(1.05);
}

.form-navigation .btn-next {
    background-color: #7A7A7A;
    color: white;
}

.form-navigation .btn-next:hover {
    background-color: #218838;
    transform: scale(1.05);
}

/* Table Styles */
table.styled-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    font-size: 1em;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
}

table.styled-table thead tr {
    background-color: #711D1D;
    color: #ffffff;
    text-align: left;
}

table.styled-table th,
table.styled-table td {
    text-align: left;
    padding: 12px 15px;
}

table.styled-table tbody tr {
    border-bottom: 1px solid #dddddd;
}

table.styled-table tbody tr:nth-of-type(even) {
    background-color: #f3f3f3;
}

table.styled-table tbody tr:last-of-type {
    border-bottom: 2px solid #711D1D;
}

table.styled-table tbody tr.active-row {
    font-weight: bold;
    color: #711D1D;
}
.table-wrapper {
  width: 100%;
  max-width: 600px; /* adjust the max-width to your needs */
  overflow-x: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .menu {
        width: 100%;
        left: -100%;
    }

    .menu.active {
        left: 0;
    }

    .menu-toggle.active {
        left: calc(100% - 60px); /* Ajuste para mantener el bot¨Žn en pantalla */
    }

    .content.active {
        margin-left: 0;
    }

    .container {
        padding: 10px;
    }
}

form .form-group .radio-inline {
    display: inline-block;
    margin-right: 10px;
}

form .form-group .radio-inline input {
    margin-right: 5px;
}

#contenedor {
    position: relative; /* establecemos el contenedor como relativo */
}

#div-arriba-derecha {
    position: absolute; /* establecemos el div como absoluto */
    top: -15px; /* posicionamos en la parte superior */
    right: 0; /* posicionamos en la parte derecha */
    background-color: 0000000; /* fondo del div */
    padding: 10px; /* padding del div */
    border: 0px solid #ccc; /* borde del div */
}

/* Styles for the custom dropdown */
.dropdown {
    position: relative;
    display: inline-block;
    width: 100%;
}

.dropdown-toggle {
    background-color: #fff;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    text-align: left;
}

.dropdown-menu {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 100%;
    border: 1px solid #ccc;
    z-index: 1;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    padding: 10px;
    max-height: 200px;
    overflow-y: auto;
}

.dropdown-menu label {
    display: block;
    cursor: pointer;
}

.dropdown-menu input {
    margin-right: 5px;
}

.dropdown-menu.show {
    display: block;
}
.hidden input {
    display: none;
}
#medicamento-search {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}