:root {
    --font-family-base: 'Verdana', 'Geneva', sans-serif;
    --font-family-heading: 'Verdana', 'Geneva', sans-serif;

    --line-height-base: 1.6;
    --line-height-heading: 1.2;
    --color-text: var(--color-primary-950);
    --color-heading: var(--color-primary-800);

    --color-primary-10: #f9f9f9;
    --color-primary-50: #f9efeb;
    --color-primary-100: #f2d8cf;
    --color-primary-200: #e8b5a0;
    --color-primary-300: #e1956d;
    --color-primary-400: #c2805d;
    /* color oficial: 500 */
    --color-primary-500: #a56c4e;
    --color-primary-600: #8e5c42;
    --color-primary-700: #6f4732;
    --color-primary-800: #4e3121;
    --color-primary-900: #2c1a10;
    --color-primary-950: #1b0e07;

    /* COLORES PARA ACCESOS */
    --success: #28a745;
    --info: #17a2b8;
    --warning: #ffc107;
    --danger: #dc3545;

    /* COLORES GLOBALES */
    --blue: #007bff;
    --indigo: #6610f2;
    --purple: #6f42c1;
    --pink: #e83e8c;
    --red: #dc3545;
    --orange: #fd7e14;
    --yellow: #ffc107;
    --green: #28a745;
    --teal: #20c997;
    --cyan: #17a2b8;

    --color-stefanny: #4285F4;
    --color-victoria: #3F51B5;
    --color-rosa: #F4B400;
    --color-acido: #EA4335;
    --color-rafaela: #AFB42B;
}

* {
    margin: 0;
    padding: 0;
    list-style: none;
    text-decoration: none;
    box-sizing: border-box;
    outline: none;
    font-size: 1.6rem;
}

html {
    font-size: 62.5%;
}


/* HEADINGS */
h1 {
    font-family: var(--font-family-heading);
    font-size: clamp(3.2rem, 2.2rem + 2vw, 4.2rem);
    /* 32px - 42px */
    font-weight: 700;
    line-height: var(--line-height-heading);
    color: var(--color-heading);
    letter-spacing: -0.02em;
}

h2 {
    font-family: var(--font-family-heading);
    font-size: clamp(2.8rem, 3rem + 1.5vw, 3.2rem);
    /* 28px - 32px */
    font-weight: 600;
    line-height: var(--line-height-heading);
    color: var(--color-heading);
    letter-spacing: -0.02em;
}

h3 {
    font-family: var(--font-family-heading);
    font-size: clamp(2.4rem, 2.0rem + 1vw, 2.8rem);
    /* 24px - 28px */
    font-weight: 600;
    line-height: var(--line-height-heading);
    color: var(--color-heading);
    letter-spacing: -0.02em;
}

h4 {
    font-family: var(--font-family-heading);
    font-size: clamp(2.0rem, 1.6rem + 0.8vw, 2.4rem);
    /* 20px - 24px */
    font-weight: 500;
    color: var(--color-heading);
}

h5 {
    font-size: clamp(1.6rem, 1.4rem + 0.5vw, 2.0rem);
    /* 16px - 20px */
    font-weight: 500;
    color: var(--color-heading);
}

h6 {
    font-size: clamp(1.2rem, 1.0rem + 0.3vw, 1.6rem);
    /* 12px - 16px */
    font-weight: 500;
    color: var(--color-heading);
}

/* PÁRRAFOS Y TEXTO BASE */

body {
    overflow-x: hidden;
}

body,
p {
    font-family: var(--font-family-base);
    font-size: clamp(1.4rem, 1.2rem + 0.3vw, 1.6rem);
    /* 16px - 20px */
    line-height: var(--line-height-base);
    color: var(--color-text);
}

small {
    font-size: 1.4rem;
    /* 14px fijo */
    color: var(--color-text);
    opacity: 0.8;
}

/* LINKS */
a {
    font-size: inherit;
    color: var(--color-primary-500);
    text-decoration: none;
    transition: color 0.2s ease;
}


/* BOTONES */
button,
.btn {
    display: block;
    width: fit-content;
    font-family: var(--font-family-base);
    font-size: clamp(1.4rem, 1.2rem + 0.2vw, 1.6rem);
    /* 16px - 18px */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 1.4rem 2.0rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    background: var(--color-primary-500);
    color: var(--color-primary-50);
    transition: background 0.4s ease, transform 0.4s ease;
}

button:hover,
.btn:hover {
    background: var(--color-primary-800);
    transform: translateY(-2px);
}

button:active,
.btn:active {
    transform: translateY(0);
}

.btn-width-100 {
    width: 100%;
}




input,
select,
textarea {
    width: 100%;
    border: 0.1rem solid var(--color-primary-200);
    border-radius: 0.5rem;
    padding: 1rem 1.5rem;
    background-color: var(--color-primary-50);
}

input:focus {
    border: 0.1rem solid var(--color-primary-500);
}

select:focus {
    border: 0.1rem solid var(--color-primary-500);
}

textarea:focus {
    border: 0.1rem solid var(--color-primary-500);
}

/* ======================
   ESTILOS GENERALES
   ====================== */
.container {
    width: 98%;
    margin: auto;
}

.content-padding-body {
    padding: 2rem 0;
}

.title-all-h1 {
    align-content: end;
    display: flex;
    align-items: end;
    font-size: 2.8rem;
}

.btn--tabla-editar {
    padding: .5rem 1rem;
    border-radius: .5rem;
    transition: background 0.4s ease, transform 0.4s ease;
    cursor: pointer;
}

.btn--tabla-editar:hover {
    color: var(--color-primary-50);
    background: var(--color-primary-500);
}

/* ======================
   ESTILOS PARA EL LOGIN
   ====================== */
.login {
    height: 100vh;
    display: grid;
    grid-template-columns: minmax(500px, 1fr) 3fr;
}

.login>article {
    height: 100%;
}

.login__content {
    min-height: 100vh;
    padding: 6rem;
    align-content: center;
    text-align: center;
}

.login__content img {
    height: 50px;
    margin: auto;
}

.login__content h2 {
    padding: 2rem 0 1rem;
}

.login__content label {
    text-align: left !important;
    min-width: 100%;
}

.login__image {
    min-height: 100vh;
}

.login__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remember-checkbox {
    display: flex;
    gap: .8rem;
}

.remember-checkbox input {
    padding: auto;
    width: 15px;
    margin-top: 1px;
}

/* ======================
   ESTILOS PARA EL DASHBOARD SUPERADMIN
   ====================== */
.nav {
    background-color: var(--color-primary-800);
}

.nav__menu ul {
    display: flex;
    padding: 1rem 1.6rem;
}

.nav__menu ul li {
    padding: .5rem 1rem;
    align-content: center;
}

.nav__logo {
    padding: 0 !important;
    margin-right: 2rem;
}

.nav__logo a {
    display: block;
    height: 37px;
}

.nav__logo img {
    height: 37px;
}

.nav__menu .nav__link {
    padding: 1rem;
    border-radius: .5rem;
    color: var(--color-primary-50);
    transition: background 0.4s ease, transform 0.4s ease;
    cursor: pointer;
}

.nav__menu .nav__link:hover {
    background: var(--color-primary-700);
    transform: translateY(-2px);
}

.nav__profile {
    display: flex;
    align-content: center;
    margin-left: auto;
    position: relative;
}

.nav__notification {
    width: 37px;
    width: 37px;
    padding-left: 3.5px;
    border-radius: .5rem;
    position: relative;
    cursor: pointer;
    transition: background 0.4s ease, transform 0.4s ease;
}

.nav__notification:hover {
    background-color: var(--color-primary-700);
}


.nav__notification svg {
    padding-top: 4px;
}

.nav__count {
    position: absolute;
    background-color: var(--yellow);
    border-radius: 100px;
    color: var(--color-primary-50);
    top: 0;
    right: 0;
    font-size: 0.9rem;
    padding: 0.2rem 0.4rem;
}

.nav__user {
    display: flex;
    position: relative;
}

.nav__profile img {
    height: 37px;
    width: 37px;
    border-radius: 100px;
    object-fit: cover;
    margin: 0 1rem 0 2rem;
}

.nav__profile div {
    align-content: center;
}

.nav__profile p {
    color: var(--color-primary-50);
    font-size: 1.2rem;
}

.nav__profile p b {
    font-size: 1.2rem;
}

.profile__dropdown {
    display: none !important;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 0;
    min-width: 160px;
    list-style: none;
    z-index: 100;
}

.profile__dropdown .btn__logout {
    display: block;
    font-size: 1.2rem;
    padding: 1rem;
    margin-top: 1rem;
    background-color: var(--danger);
}

.profile__dropdown .btn__logout:hover {
    text-decoration: none;
    color: var(--color-primary-50);
}

.nav__user:hover .profile__dropdown {
    display: block !important;
}

/* ======================
   ESTILOS PARA LA PAGINA DE USUARIOS
   ====================== */


.users__header {
    display: flex;
    justify-content: space-between;
}

.users__header h1 img {
    margin: 0 1rem 0 2rem;
}

.users__content {
    margin-top: 15px;
}

.users__content table {
    width: 100%;
    border-collapse: collapse;
}

.users__content th,
.users__content td {
    border: 1px solid var(--color-primary-100);
    padding: 10px;
    text-align: left;
    font-size: 1.4rem;
}

.users__content th {
    background: var(--color-primary-500);
    color: var(--color-primary-50);
}

tr:hover {
    background: var(--color-primary-50);
}


.status {
    font-weight: bold;
}

.active {
    color: var(--success);
}

.inactive {
    color: var(--danger);
}


.users__content form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    padding: 20px;
    border: 1px solid var(--color-primary-100);
    border-radius: 8px;
    background: var(--color-primary-10);
}

.users__photo {
    display: flex;
    gap: 4rem;
    justify-content: space-between;
}

.mensaje {
    margin-bottom: 15px;
    font-weight: bold;
}

.ok {
    color: var(--success);
}

.error {
    color: var(--danger);
}

.users-switch-container {
    display: block !important;
}

.users-switch-label {
    display: block;
}

.users-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.users-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.users-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 34px;
}

.users-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.users-switch input:checked+.users-slider {
    background-color: #a56c4e;
}

.users-switch input:checked+.users-slider:before {
    transform: translateX(24px);
}

/* ======================
   ESTILOS PARA LA PAGINA DE SERVICIOS
   ====================== */


.services__header {
    display: flex;
    align-content: end;
    justify-content: space-between;
}

.services__header div {
    display: flex;
    gap: 2rem;
}

.categoria__body {
    display: flex;
    gap: 4rem;
}

.categoria__item {
    flex: 1;
}

.categoria__item--flex2 {
    flex: 2;
}

.categoria__form {
    margin-top: 1.5rem;
}

.categoria__form form {
    padding: 20px;
    border: 1px solid var(--color-primary-100);
    border-radius: 8px;
    background: var(--color-primary-10);
}

.categoria__form form div {
    margin-bottom: 2rem;
}

/* ======================
   ESTILOS DE SETTINGS SUPERADMIN
   ====================== */
.settings {
    background-color: var(--color-primary-50);
}

.settings__nav ul {
    display: flex;
    justify-content: center;
}

.settings__nav ul li {
    padding: 0 1rem;
}

.settings__nav ul li a {
    padding: .5rem 1rem;
    border-radius: .5rem;
    background-color: var(--color-primary-100);
}

.settings__nav ul li a:hover {
    background-color: var(--color-primary-500);
    color: var(--color-primary-50);
}

.settings__nav ul li .activo {
    background-color: var(--color-primary-500);
    color: var(--color-primary-50);
}

.color-options {
    display: grid;
    grid-template-columns: repeat(12, 25px);
    gap: 6px;
    margin-top: 8px;
}

.color-circle {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.3);
}

.color-circle.selected {
    outline: 2px solid #333;
}


/* ======================
   ESTILOS DE AGENDA SUPERADMIN
   ====================== */
/* Layout Principal */

.agenda-container {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 20px;
    padding: 10px 20px 20px 20px;
    /* Calculamos el alto: 100vh menos el header de Podopedia (aprox 80px) */
    height: calc(100vh - 100px);
    box-sizing: border-box;
}

.agenda-container main {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    padding: 5px;
}

/* Cabecera de Filtros */
.agenda-header {
    background: white;
    padding: 15px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    flex-wrap: wrap;
    gap: 10px;
    flex-shrink: 0;
    /* Obliga al header a mantener su tamaño y no comprimirse */
}

.filters-left,
.filters-right {
    display: flex;
    gap: 10px;
    align-items: center;
}

.form-select-custom {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    outline: none;
    font-size: 14px;
}

.btn-view {
    padding: 8px 15px;
    background: var(--color-primary-50);
    border: 1px solid var(--color-primary-50);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--color-primary-500);
}

.btn-view:hover {
    background-color: var(--color-primary-500);
    color: var(--color-primary-50);
    border-color: var(--color-primary-500);
}

.btn-view.active {
    background-color: var(--color-primary-500);
    color: var(--color-primary-50);
    border-color: var(--color-primary-500);
    font-weight: bold;
}

/* Contenedor del Calendario */
.calendar-wrapper {
    background: white;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: 100%;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    height: calc(100vh - 100px);
    min-height: 500px;
}

#calendar {
    flex-grow: 1;
    height: 100% !important;
}

/* Sidebar Derecha (Doctores) */
.doctors-sidebar {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: 100%;
    overflow-y: auto;
}

.sidebar-title {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
}

.doctor-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    margin-bottom: 8px;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    opacity: 1;
    transition: opacity 0.2s;
}

.doctor-card.inactive {
    opacity: 0.5;
    text-decoration: line-through;
}

/* Colores Específicos (Clases auxiliares) */
.bg-stefanny {
    background-color: var(--color-stefanny);
}

.bg-victoria {
    background-color: var(--color-victoria);
}

.bg-rosa {
    background-color: var(--color-rosa);
}

.bg-acido {
    background-color: var(--color-acido);
}

.bg-rafaela {
    background-color: var(--color-rafaela);
}

.btn-add-cita {
    width: 100%;
    padding: 12px;
    background-color: #E3F2FD;
    color: #1976D2;
    border: none;
    border-radius: 8px;
    margin-top: 20px;
    font-weight: bold;
    cursor: pointer;
}

/* VISTA DE LISTA (TABLA PERSONALIZADA - IMAGEN 2) */
#list-view-container {
    display: none;
    /* Oculto por defecto */
    height: 100%;
    overflow-y: auto;
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
}

.custom-table th {
    background: #a56c4e;
    color: white;
    padding: 12px;
    text-align: left;
    font-size: 13px;
}

.custom-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    vertical-align: top;
    font-size: 13px;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
}

.status-confirmed {
    color: #673AB7;
    background: #EDE7F6;
    border: 1px solid #673AB7;
}

.status-pending {
    color: var(--color-primary-500);
    background: #E0F2F1;
    border: 1px solid var(--color-primary-500);
}

/* Ajustes FullCalendar */
.fc-event {
    border: none !important;
    border-radius: 4px;
    padding: 2px;
    font-size: 11px;
    cursor: pointer;
}

.fc-timegrid-slot {
    height: 40px !important;
}

/* Altura de celdas */

/* 3. CSS para el Menú Desplegable de cada cita */
/* Estilos para el Menú de Acciones en la Tabla */
.actions-cell {
    text-align: center;
    position: relative;
    align-content: center;
    /* Necesario para posicionar el dropdown */
}

.btn-actions {
    background-color: var(--color-primary-500);
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: var(--color-primary-50);
    height: 30px;
    padding: 0 10px 10px;
    border-radius: 4px;
    transition: background 0.2s;
}

.btn-actions:hover {
    background-color: var(--color-primary-800);
    color: var(--color-primary-50);
}

/* El contenedor del menú (oculto por defecto) */
.dropdown-content {
    display: none;
    position: absolute;
    right: 20px;
    /* Se alinea a la derecha del botón */
    background-color: white;
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    /* Importante para que tape otras filas */
    border-radius: 8px;
    overflow: visible;
    text-align: left;
    border: 1px solid #eee;
}

/* Clase para mostrar el menú */
.dropdown-content.show {
    display: block;
}

.dropdown-content a {
    color: #333;
    padding: 10px 16px;
    text-decoration: none;
    display: block;
    font-size: 13px;
    transition: background 0.2s;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

.dropdown-content i {
    margin-right: 8px;
    width: 16px;
    text-align: center;
    color: #666;
}

/* Colores específicos para iconos */
.fa-whatsapp {
    color: #25D366;
}

.fa-trash {
    color: #dc3545;
}

.btn-delete:hover {
    background-color: #ffebee;
    color: #dc3545;
}

.divider {
    height: 1px;
    background-color: #eee;
    margin: 4px 0;
}

/* --- SUBMENU WHATSAPP --- */

/* Contenedor del item padre (el botón de WhatsApp) */
.dropdown-submenu {
    position: relative;
}

/* El menú hijo (las plantillas) */
.dropdown-submenu .dropdown-content-sub {
    display: none;
    position: absolute;
    right: 100%;
    /* Aparece a la izquierda del menú principal */
    top: 0;
    min-width: 220px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    max-height: 300px;
    /* Por si tienes muchas plantillas, scrollea */
    overflow-y: auto;
    margin-right: -1px;
}

/* Mostrar submenú al pasar el mouse (Hover) */
.dropdown-submenu:hover .dropdown-content-sub {
    display: block;
}

/* Flechita indicadora */
.dropdown-submenu>a::after {
    content: " ▶";
    float: right;
    font-size: 10px;
    margin-top: 4px;
    color: #999;
}

.dropdown-submenu::after {
    content: '';
    position: absolute;
    top: 0;
    right: 100%;
    /* Lado izquierdo donde sale el menú */
    width: 20px;
    /* Ancho del puente */
    height: 100%;
    background: transparent;
    display: none;
    /* Oculto por defecto */
}

.dropdown-submenu:hover::after {
    display: block;
    /* Aparece al pasar el mouse para mantener el hover */
}


.caja-container {
    margin-top: 20px;
}

.tabs-nav {
    display: flex;
    gap: 20px;
    border-bottom: 2px solid #eee;
    margin-bottom: 20px;
}

.tab-link {
    padding: 10px 5px;
    cursor: pointer;
    color: #666;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    text-decoration: none;
}

.tab-link.active {
    color: var(--color-primary-800);
    border-bottom: 2px solid var(--color-primary-800);
}

.summary-cards {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    background: #fdfdfd;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.summary-item {
    display: flex;
    gap: 10px;
    font-size: 1.1rem;
}

.summary-line {
    height: 15px;
    width: 2px;
    background-color: var(--color-primary-500);
    margin: 4px 0;
}

.amount-positive {
    color: var(--success);
    font-weight: bold;
}


.summary-title-positive {
    color: var(--success);
    font-weight: bold;
}

.summary-title-negative {
    color: var(--danger);
    font-weight: bold;
}

.amount-negative {
    color: var(--danger);
    font-weight: bold;
}

.toolbar-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.date-navigator {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-nav-date {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px 10px;
    cursor: pointer;
}

.action-buttons {
    display: flex;
    gap: 10px;
}

.data-table-wrapper {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow-x: auto;
}

.caja-table {
    width: 100%;
    border-collapse: collapse;
}

.caja-table th,
.caja-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.caja-table th {
    background-color: var(--color-primary-500);
    color: white;
}

.caja-table tbody tr:hover {
    background-color: #f9f9f9;
}

.btn-new-income {
    background-color: var(--color-primary-500);
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
}

.btn-new-expense {
    background-color: white;
    color: #333;
    border: 1px solid #ccc;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
}

.pagination-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    font-size: 0.9rem;
    color: #666;
}

.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: none;
    /* Flex when active */
    align-items: center;
    justify-content: center;
}

/* Modal Content */
.modal-content {
    background: white;
    width: 90%;
    max-width: 800px;
    height: 90%;
    max-height: 90vh;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.back-arrow {
    cursor: pointer;
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
}

.close-modal {
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 40px;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Typography */
h2 {
    font-size: 20px;
    text-align: center;
    margin-bottom: 5px;
    color: var(--color-heading);
}

.subtitle {
    text-align: center;
    color: #666;
    font-size: 13px;
    margin-bottom: 20px;
}

/* Forms */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.form-group {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    font-size: 13px;
    color: #555;
    font-weight: 500;
}

/* Search Results */
.search-wrapper {
    position: relative;
}

.search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    background: white;
    border: 1px solid #ddd;
    border-radius: 0 0 8px 8px;
    z-index: 100;
    display: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.search-result-item {
    padding: 10px;
    cursor: pointer;
    font-size: 13px;
    border-bottom: 1px solid #eee;
}

.search-result-item:hover {
    background: #f9f9f9;
}

/* Table */
.payment-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 10px;
}

.payment-table th {
    background: var(--color-primary-800);
    color: white;
    padding: 10px;
    text-align: left;
    font-size: 12px;
}

.payment-table td {
    padding: 10px;
    border-bottom: 1px solid #eee;
    font-size: 13px;
}

.trash-icon {
    cursor: pointer;
    color: var(--danger);
}

/* Footer Buttons */
.btn-cancel {
    background: #f5f5f5;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    color: #666;
}

.btn-confirm {
    background: var(--color-primary-500);
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    color: white;
}

.divider {
    height: 1px;
    background: #eee;
    margin: 20px 0;
}

.radio-group label {
    margin-right: 15px;
    font-size: 13px;
    cursor: pointer;
}

.input-with-icon {
    position: relative;
}

.input-with-icon .clear-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #999;
}

/* Dropdown Styles for Caja etc */
.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 5px;
    background-color: white;
    min-width: 180px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border-radius: 8px;
    border: 1px solid #eee;
    overflow: visible;
}

.dropdown-content a {
    color: var(--color-text);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 1.4rem;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dropdown-content a i {
    width: 20px;
    text-align: center;
    font-size: 1.4rem;
}

.dropdown-content a:hover {
    background-color: var(--color-primary-50);
}

.dropdown-content a.disabled {
    color: #ccc;
    cursor: not-allowed;
    background-color: #f9f9f9;
}