body { font-family: Arial, sans-serif; background: #f7f8fa; margin: 0; padding: 20px; }

/* Estilos para el contenedor flexible */
.d-flex {
    display: flex !important;
}

.justify-content-between {
    justify-content: space-between !important;
}

.align-items-center {
    align-items: center !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.ms-2 {
    margin-left: 0.5rem !important;
}

/* Estilos para el formulario de búsqueda */
.input-group {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    width: 100%;
}

.form-control, .form-select {
    display: block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control-sm {
    min-height: calc(1.5em + 0.5rem + 2px);
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    border-radius: 0.2rem;
}

.form-select-sm {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    padding-left: 0.5rem;
    font-size: 0.875rem;
    border-radius: 0.2rem;
}

.btn {
    display: inline-block;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    background-color: transparent;
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 0.25rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    border-radius: 0.2rem;
}

.btn-primary {
    color: #fff;
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary:hover {
    color: #fff;
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

.btn-outline-secondary {
    color: #6c757d;
    border-color: #6c757d;
}

.btn-outline-secondary:hover {
    color: #fff;
    background-color: #6c757d;
    border-color: #6c757d;
}

/* Estilos para iconos */
.fas {
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    -webkit-font-smoothing: antialiased;
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
}

/* Asegurar que el input y select estén alineados */
.input-group > :not(:first-child):not(.dropdown-menu):not(.valid-tooltip):not(.valid-feedback):not(.invalid-tooltip):not(.invalid-feedback) {
    margin-left: -1px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.input-group > :not(:last-child):not(.dropdown-toggle):not(.dropdown-menu):not(.form-floating) {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

/* Ajustes para el botón de búsqueda */
.input-group .btn {
    position: relative;
    z-index: 2;
}

/* Ajustes para el botón de limpiar */
.btn-outline-secondary {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* Modern Form Styles */
.modern-form {
    max-width: 480px;
    margin: 32px auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    padding: 32px 28px 24px 28px;
}

.form-container {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 12px;
}
.form-group label {
    font-weight: 500;
    margin-bottom: 6px;
    color: #333;
}
.form-group input[type="text"],
.form-group input[type="date"],
.form-group input[type="file"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group select {
    padding: 8px 10px;
    border: 1px solid #cfd8dc;
    border-radius: 5px;
    background: #f9fafb;
    font-size: 1em;
    transition: border 0.2s;
}
.form-group input:focus, .form-group select:focus {
    border: 1.5px solid #007bff;
    outline: none;
    background: #fff;
}

.form-options {
    display: flex;
    gap: 12px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.btn, .btn-primary, .btn-secondary {
    padding: 8px 20px;
    border-radius: 5px;
    font-size: 1em;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
    display: inline-block;
}
.btn-primary {
    background: #007bff;
    color: #fff;
    border: 1px solid #007bff;
}
.btn-primary:hover {
    background: #0056b3;
    border-color: #0056b3;
}
.btn-secondary {
    background: #f0f0f0;
    color: #007bff;
    border: 1px solid #bbb;
}
.btn-secondary:hover {
    background: #e6e6e6;
    color: #0056b3;
    border-color: #aaa;
}

input[type=file]::-webkit-file-upload-button {
    background: #f0f0f0;
    color: #007bff;
    border: 1px solid #bbb;
    border-radius: 5px;
    padding: 6px 12px;
    font-size: 1em;
    cursor: pointer;
}
input[type=file]:hover::-webkit-file-upload-button {
    background: #e6e6e6;
    color: #0056b3;
}

/* Mensajes de ayuda y errores */
.helptext {
    color: #6c757d;
    font-size: 0.95em;
    margin-top: 4px;
}
.errorlist {
    color: #c0392b;
    font-size: 0.97em;
    margin: 4px 0 0 0;
    padding-left: 0;
    list-style: none;
}

.messages { list-style: none; padding: 0; }
.messages li { padding: 8px 12px; margin-bottom: 8px; border-radius: 4px; }
.messages li.success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.messages li.error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.messages li.info { background: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; }
.messages li.warning { background: #fff3cd; color: #856404; border: 1px solid #ffeeba; }
.nav-flex {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 20px;
}

nav ul {
    display: flex;
    flex-direction: row;
    gap: 24px;
    list-style: none;
    padding: 0;
    margin: 0;
    align-items: center;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.main-menu {
    flex: 1;
}

.auth-menu {
    gap: 12px;
    align-items: center;
    margin-left: auto;
    justify-content: flex-end;
}

.user-welcome {
    font-weight: bold;
    color: #333;
    margin-right: 10px;
}

.btn-edit {
    display: inline-block;
    padding: 3px 10px;
    background: #f0f0f0;
    border: 1px solid #bbb;
    border-radius: 4px;
    color: #007bff;
    text-decoration: none;
    margin-bottom: 10px;
    margin-right: 8px;
    font-size: 0.95em;
    transition: background 0.2s;
}
.btn-edit:hover {
    background: #e6e6e6;
    color: #0056b3;
}

.disabled-link {
    color: #aaa;
    cursor: not-allowed;
    text-decoration: none;
    pointer-events: none;
}

nav ul li {
    margin: 0;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 4px;
    transition: background 0.2s;
}

nav ul li a:hover {
    background: #e2e6ea;
}

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 4px;
    transition: background 0.2s;
}

.dropdown-toggle:hover {
    background: #e2e6ea;
}

.dropdown-menu {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 4px;
    z-index: 1000;
    right: 0;
    margin-top: 5px;
    padding: 8px 0;
    border: 1px solid #ddd;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    padding: 0;
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 8px 16px;
    color: #333;
    text-decoration: none;
    transition: background 0.2s;
}

.dropdown-menu a:hover {
    background: #f8f9fa;
    color: #0056b3;
}

nav ul[style*="float: right;"] {
    margin-left: auto;
    gap: 10px;
}
a, button { margin: 0 4px; }

/* Info message styles */
.info-message {
    background-color: #ffebee;
    border: 1px solid #f44336;
    padding: 15px;
    margin: 0 auto 20px auto;
    border-radius: 4px;
    max-width: 80%;
    text-align: center;
}

.info-message p {
    margin: 0;
    color: #d32f2f;
    font-family: Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    font-weight: normal;
}

.form-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 18px;
}

.form-header h1 {
    margin: 0;
    font-size: 1.6em;
    font-weight: 600;
}

.form-options {
    display: flex;
    flex-direction: row;
    gap: 16px;
    align-items: center;
    margin: 0;
}

.form-options button, .form-options a {
    margin: 0;
}

form { margin-top: 16px; }
input, select, textarea { margin-bottom: 8px; padding: 4px; border-radius: 2px; border: 1px solid #ccc; }
button { padding: 6px 14px; border-radius: 3px; border: none; background: #007bff; color: #fff; cursor: pointer; }
button:hover { background: #0056b3; }

/* Estilos para la resolución */
.resolucion-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background: white;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.section {
    margin-bottom: 30px;
}

.section-title {
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 5px;
    margin-bottom: 15px;
}

.antecedentes {
    margin-bottom: 20px;
}

.antecedente-item {
    margin-bottom: 10px;
    line-height: 1.6;
    color: #2c3e50;
    display: flex;
    align-items: flex-start;
    font-size: 1em;
    background-color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.antecedente-text {
    color: #2c3e50;
    flex: 1;
    padding-left: 8px;
    margin-top: 2px;
}

.antecedente-number {
    display: inline-block;
    width: 25px;
    height: 25px;
    background-color: #3498db;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 25px;
    margin-right: 10px;
    flex-shrink: 0;
}

.resolution-text {
    margin-top: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-left: 4px solid #3498db;
}

.resolution-text h3 {
    color: #2c3e50;
    margin-top: 0;
}

.amount {
    font-size: 1.2em;
    font-weight: bold;
    color: #27ae60;
    margin: 15px 0;
    padding: 10px;
    background-color: #e8f5e9;
    border-left: 4px solid #27ae60;
}

.signature {
    margin-top: 30px;
    text-align: right;
    font-style: italic;
}

.highlight {
    font-weight: bold;
    color: #e74c3c;
}
