* {
    box-sizing: border-box;

    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h1 {
    color: #252729;
    margin-bottom: 20px;
    text-align: center;
    width: 100%;
}*/

p {
    margin-bottom: 20px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
    text-align: center;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.date-inputs-container {
    display: flex;
    gap: 20px; /* Espacio entre los inputs de fecha */
}

.date-inputs-container .form-group {
    flex: 1; /* Cada input tomará el mismo espacio */
}
.state-grid{margin:0 auto; text-align: center;}
input[type="date"], select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

button {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: #004c7f;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 18px;
    cursor: pointer;
    margin-bottom: 20px;
    transition: background-color 0.3s;
    width: 120px;
    margin: 0 auto;
}

button:hover {
    background-color: #2980b9;
}

.result-container {
    margin-top: 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 4px;
    border-left: 4px solid #3498db;
}

.result-container h2 {
    color: #2c3e50;
    margin-bottom: 15px;
}

#workingDays {
    font-size: 18px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 15px;
}

#holidaysList {
	margin-top: 15px;
	height: 500px;
	overflow-y: auto;
}

#holidaysList h3 {
    font-size: 16px;
    margin-bottom: 10px;
}

#holidaysList ul {
    list-style-type: none;
}

.workdays-selector {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	width: fit-content;
	margin: 0 auto;
	text-align: center;
	padding: 0 10px;
}

.workday-checkbox {
    display: flex;
    align-items: center;
    /*! margin-right: 10px; */
}

.workday-checkbox input[type="checkbox"] {
    margin-right: 3px;
    margin-top: -8px;
}


.data-source {
    font-size: 12px;
    color: #777;
    font-style: italic;
    margin-top: 15px;
    text-align: right;
}

/* Estilos para indicador de carga */
.loading {
    color: #3498db;
    font-style: italic;
}

#holidaysList li {
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

/* Estilos para el calendario */
#calendar-container {
    margin-top: 30px;
    height: 600px;
    overflow-y: auto;
}

.calendar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.legend-item {
    display: flex;
    align-items: center;
    font-size: 12px;
}

.legend-color {
    display: inline-block;
    width: 15px;
    height: 15px;
    margin-right: 5px;
    border-radius: 3px;
}

.legend-color.workday {
    background-color: #a5d6a7;
}

.legend-color.weekend {
    background-color: #ffcc80;
}

.legend-color.holiday {
    background-color: #ef9a9a;
}

.legend-color.non-workday {
    background-color: #e0e0e0;
}

.calendar-month {
    margin-bottom: 30px;
}

.calendar-month h4 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.calendar-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.calendar-table th, .calendar-table td {
    text-align: center;
    padding: 8px;
    border: 1px solid #ddd;
}

.year-grid {
	/* display: grid; */
	grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
	gap: 15px;
	margin-top: 20px;
	text-align: center;
	margin: 0 auto;
	/* text-align: center; */
	width: 100%;
	max-width: 250px;
}

.year-button {
    background-color: #007bff;
    color: white;
    padding: 15px 2px;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.2em;
    width: 60px !important;
    transition: background-color 0.3s ease;
}

.year-button:hover {
    background-color: #0056b3;
}

.region-info {
    background-color: #e9ecef;
    padding: 15px;
    margin-top: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    border-left: 5px solid #007bff;
}

.region-info p {
    margin-bottom: 0; /* Remove default paragraph margin if needed */
    text-align: left; /* Align text to the left for readability */
    font-size: 0.95em;
}

.calendar-table th {
    background-color: #f5f5f5;
    font-weight: bold;
}

.date-inputs-container {
    display: flex;
    gap: 20px; /* Espacio entre los inputs de fecha */
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

.date-inputs-container .form-group {
    flex: 1; /* Cada input tomará el mismo espacio */
}

.calendar-table td {
    height: 40px;
    vertical-align: middle;
}

.calendar-table td.workday {
    background-color: #a5d6a7;
}

.calendar-table td.weekend {
    background-color: #ffcc80;
}

.calendar-table td.holiday {
    background-color: #ef9a9a;
    cursor: help;
}

.calendar-table td.non-workday {
    background-color: #e0e0e0;
}

.calendar-table td.out-of-range {
    color: #bbb;
}

@media (max-width: 768px) {
    .container {
        margin: 20px;
        padding: 15px;
    }
    
    .calendar-table th, .calendar-table td {
        padding: 5px;
        font-size: 12px;
    }
    
    .calendar-table td {
        height: 30px;
    }
    
    .calendar-month {
        overflow-x: auto;
    }
}
.calculator-section h2{font-size: 18px; text-decoration: underline; text-align: center;}
.hidex{display: none !important;}
.B3 {
	font-size: 14px;
	font-family: Arial;
	width: 200px;
	height: 30px;
	border-width: 1px;
	color: #ffffff;
	border-color: #337fed;
	font-weight: bold;
	border-top-left-radius: 6px;
	border-top-right-radius: 6px;
	border-bottom-left-radius: 6px;
	border-bottom-right-radius: 6px;
	box-shadow: inset 0px 1px 0px 0px #97c4fe;
	text-shadow: inset 0px 1px 0px #1570cd;
	background: linear-gradient(#3d94f6, #1e62d0);
	display: inline-block;
	text-align: center;
	padding-top: 4px;
	text-decoration: none;
	margin: 5px;
}


  
  .B3:hover {
    background: linear-gradient(#1e62d0, #3d94f6);
  }