body {
    font-family: Arial, sans-serif;
    background-color: #F2F2F2;
    margin: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}
.header img {
    margin-right: 10px;
    height: 50px; /* Ajusta según el tamaño de tu logo */
}

h1 {
    text-align: center;
    color: #5E3229;
    margin-bottom: 20px;
}

form {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 600px;
    margin-bottom: 20px;
}

form div {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #5E3229;
}

input, textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

input:disabled, textarea:disabled {
    background-color: #f9f9f9;
    cursor: not-allowed;
}

input:focus, textarea:focus {
    outline: none;
}

button {
    width: 50%;
    padding: 10px;
    box-sizing: border-box;    
    background-color: #CA5010;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button:disabled {
    background-color: #5E3229;
    cursor: not-allowed;
}

.checkbox-container {
    margin-bottom: 15px;
}

.checkbox-container input[type="checkbox"] {
    display: inline-block;
}

.checkbox-container label {
    display: inline;
}

.container {
    max-width: 600px;
    margin: auto;
    background: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.form-inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.form-inline label {
    margin-right: 10px;
    flex-shrink: 0;
}

.form-inline input[type="number"] {
    width: auto;
    margin-right: 10px;
}

.inline-container {
    display: flex;
    align-items: baseline;
    margin-bottom: 5px;
}

.inline-container label,
.inline-container small {
    display: inline-block;
    margin-right: 10px;
}

.search-icon {
    width: fit-content;
    align-items: center;
    justify-content: center;
    background-color: #CA5010;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.button-container {
    display: flex;
    justify-content: flex-end;
    padding-top: 45px;
    gap: 50px;
}

.cancel-button,
.cancel-button:disabled {
    background-color: #5E3229;
    color: white;
    /*background-color: white;
    color: #CA5010;*/
}

/* Estilos para eliminar las flechas en navegadores basados en WebKit (Chrome, Safari, etc.) */
.sin-flechas::-webkit-outer-spin-button,
.sin-flechas::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Estilos para eliminar las flechas en Firefox */
.sin-flechas[type="number"] {
    -moz-appearance: textfield;
}

.loading-state {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    position: relative;
    animation: rotate 1s linear infinite;
}

.loader::before, 
.loader::after {
    content: "";
    box-sizing: border-box;
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 5px solid #5E3229;
    animation: prixClipFix 2s linear infinite;
}

.loader::after {
    border-color: #CA5010;
    animation: prixClipFix 2s linear infinite, rotate 0.5s linear infinite reverse;
    inset: 6px;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes prixClipFix {
    0% { clip-path: polygon(50% 50%, 0 0, 0 0, 0 0, 0 0, 0 0); }
    25% { clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 0, 100% 0, 100% 0); }
    50% { clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 100% 100%, 100% 100%); }
    75% { clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 0 100%, 0 100%); }
    100% { clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 0 100%, 0 0); }
}

.message {
    padding: 15px;
    margin: 10px 0;
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: 16px;
    display: none;
}

.message.error {
    color: #a94442;
    background-color: #f2dede;
    border-color: #ebccd1;
}

.message.success {
    color: #3c763d;
    background-color: #dff0d8;
    border-color: #d6e9c6;
}

.progress-container {
    width: 100%;
    max-width: 600px;
    background-color: #f3f3f3;
    border: 1px solid #ccc;
    display: flex;
    height: 8px;
}
.progress-bar {
    width: 0%;
    text-align: center;
    height: auto;
}
progress[value] {
    -webkit-appearance:none;
    -moz-appearance:none;        
    appearance: none;
    
    --primary: #CA5010;
    --secondary: #5E3229;
}
progress[value]::-webkit-progress-bar {
    background: var(--secondary);
}
progress[value]::-webkit-progress-value {
    background: var(--primary);
}
progress[value]::-moz-progress-bar {
    background: var(--primary);
}

/* Estilos para el popup */
.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border: 1px solid #ccc;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}
.popup-content {
    text-align: center;
}

.confirm-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}