﻿.ha-widget {
    box-sizing: border-box;
}

.ha-calendar-widget.ha-widget {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
        margin-top: 3.7em;
}

.ha-calendar-widget .contenedor-form-avisos {
    display: flex;
    flex-direction: column;
    gap: 0.8em;
}

.ha-calendar-widget .ha-widget-title {
    margin: 0;
    color: #000;
    font-size: 1.05em;
}

.ha-calendar-widget .ha-calendar-legend {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45em;
    margin: 0.9em 0 0.35em;
    color: #2b2b2b;
    font-size: 0.9em;
}
 
.ha-calendar-widget .ha-calendar-legend-color {
    width: 1em;
    height: 1em;
    border-radius: 2px;
    background-color: #fff;
    border: 2px solid #0067b2d6;
    box-sizing: border-box;
    flex-shrink: 0;
}

.ha-calendar-widget .ha-btn-reset-fechas {
    cursor: pointer;
}

.ha-calendar-widget .ha-date-from,
.ha-calendar-widget .ha-date-to {
    border: 1px solid #aaa;
    border-radius: 3px;
    color: #808080;
    font-size: 95%;
}

.ha-calendar-widget .ha-calendar-status {
    width: 100%;
    margin-top: 0.5em;
    font-size: 0.9em;
    min-height: 1.3em;
}

.ha-calendar-widget .ha-filetype-filters {
    margin-top: 0.1em;
}

.ha-calendar-widget .ha-filetype-filters .umbrales-avisos {
    display: flex;
    padding: 0.5em;
}

.ha-calendar-widget .ha-filetype-filters .agrupacion-umbrales-form-avisos {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 0.5em;
}

.ha-calendar-widget .ha-filetype-filters .titulo-umbrales-avisos {
    width: 100%;
}

.ha-calendar-widget .ha-filetype-filter {
    display: flex;
    align-items: center;
    gap: 0.35em;
    margin-left: 0.4em;
}

.ha-calendar-widget .ha-filetype-filter-input,
.ha-calendar-widget .ha-filetype-filter-label {
    cursor: pointer;
    font-size: 0.9em;
}

.ha-calendar-status.is-loading,
.ha-list-status.is-loading {
    color: #1f4f77;
}

.ha-calendar-status.is-ok,
.ha-list-status.is-ok {
    color: #1e6a3d;
}

.ha-calendar-status.is-info,
.ha-list-status.is-info {
    color: #4c4c4c;
}

.ha-calendar-status.is-error,
.ha-list-status.is-error {
    color: #9d1f1f;
}

.ha-calendar-widget .flatpickr-day.ha-day-has-files {
   /* background-color: #39b54a !important;
    border-color: #39b54a !important;*/
    color: #000 !important;
    box-shadow: none !important;
    border: 2px solid #0067b2d6;
}

.ha-calendar-widget .flatpickr-day.ha-day-has-files.startRange, .ha-calendar-widget .flatpickr-day.ha-day-has-files.endRange {
    color: #ffffff !important;   
}
.ha-calendar-widget .flatpickr-day.ha-day-has-files.startRange:hover, .ha-calendar-widget .flatpickr-day.ha-day-has-files.endRange:hover {
    color: #000 !important;   
}


.ha-calendar-widget .flatpickr-day.ha-day-has-files.selected,
.ha-calendar-widget .flatpickr-day.ha-day-has-files.startRange,
.ha-calendar-widget .flatpickr-day.ha-day-has-files.endRange,
.ha-calendar-widget .flatpickr-day.ha-day-has-files.inRange,
.ha-calendar-widget .flatpickr-day.ha-day-has-files.selected.inRange,
.ha-calendar-widget .flatpickr-day.ha-day-has-files.startRange.inRange,
.ha-calendar-widget .flatpickr-day.ha-day-has-files.endRange.inRange,
.ha-calendar-widget .flatpickr-day.ha-day-has-files.selected:hover,
.ha-calendar-widget .flatpickr-day.ha-day-has-files.startRange:hover,
.ha-calendar-widget .flatpickr-day.ha-day-has-files.endRange:hover {
   /* background: #39b54a !important;
    background-color: #39b54a !important;*/
    border-color: #0067b2d6 !important;    
    box-shadow: inset 0 0 0 1px #0067b2d6 !important;
}

/*.ha-calendar-widget .flatpickr-day.ha-day-has-files.startRange,
.ha-calendar-widget .flatpickr-day.ha-day-has-files.endRange{
	color:#ffffff !important;
}*/
/*
.ha-calendar-widget .flatpickr-day.today:not(.selected):not(.startRange):not(.endRange):not(.inRange) {
    background-color: transparent !important;
    color: #0067b2d6 !important;
    border: 2px solid #0067b2d6 !important;
    font-weight: 700;
}
*/
.ha-list-widget.ha-widget {
    width: 95%;
    margin: 0 auto;
    margin-top: 2em;
    max-width: none;
    padding: 0;
    border-radius: 0;
    background: transparent;
}

.ha-list-widget .ha-widget-title {
    margin-top: 0;
    margin-bottom: 0.7em;
}

.ha-list-widget .titulo-tabla-aviso {
    width: 100%;
}

.ha-list-toolbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.8rem 1rem;
    margin-bottom: 0.8em;
}

.ha-list-toolbar .dataTables_length,
.ha-list-toolbar .dataTables_filter {
    color: #000;
    float: none !important;
    margin-bottom: 0;
}

.ha-list-toolbar .dataTables_filter {
    margin-left: auto;
}

.ha-list-toolbar .dataTables_length label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.ha-list-toolbar .dataTables_length label.dt-len-flex {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.ha-list-toolbar .dataTables_length select {
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 0.2em 0.45em;
    background: #fff;
    color: #000;
}
.flatpickr-day.today {
    border: 2px solid #0067b2d6 !important;
    color: #333333 !important;
    font-weight: bold;
    border-radius: 50px !important;
    background-color: transparent !important;
}

.ha-list-toolbar .dataTables_filter label {
    display: flex;
    align-items: center;
    gap: 0.35em;
    width: auto;
    margin: 0;
}

.ha-list-toolbar .dataTables_filter .search-input {
    width: 14em;
    max-width: 100%;
    border: 1px solid #ccc !important;
    border-radius: 15px !important;
    padding: 5px 10px;
    background: #fff;
    color: #000;
}

.ha-list-toolbar .dataTables_filter .search-input::placeholder {
    color: #000;
}

.ha-list-range-summary {
    display: none;
    margin-top: 0.2em;
    margin-bottom: 0.45em;
    padding: 0.35em 0.6em;
    border: 1px solid #e3c88d;
    border-radius: 8px;
    background-color: #fff8ea;
    color: #7a5b22;
    font-size: 0.82em;
    font-weight: 600;
}

.ha-list-range-summary.is-adjusted {
    border-color: #e3c88d;
    background-color: #fff8ea;
    color: #7a5b22;
}

.ha-list-status {
    min-height: 1.35em;
    margin-top: 0.25em;
    margin-bottom: 0.65em;
    font-size: 0.9em;
    padding: 0.5em 0.65em;
    border: 1px solid #dde6ef;
    border-radius: 8px;
    background-color: #fff;
}

.ha-list-status.is-loading {
    border-left: 3px solid #1f4f77;
}

.ha-list-status.is-ok {
    border-left: 3px solid #1e6a3d;
}

.ha-list-status.is-info {
    border-left: 3px solid #7e8fa1;
}

.ha-list-status.is-error {
    border-left: 3px solid #9d1f1f;
}

.ha-file-list-wrap {
    background-color: #fff;
    border-radius: 0;
    border: none;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.ha-file-list-wrap .dataTables_wrapper {
    width: 100%;
    min-width: 720px;
    color: #000;
}

.ha-list-widget .dataTables_wrapper .dataTables_length,
.ha-list-widget .dataTables_wrapper .dataTables_filter,
.ha-list-widget .dataTables_wrapper .dataTables_info {
    color: #000;
}

.ha-list-widget .dataTables_wrapper .dataTables_length,
.ha-list-widget .dataTables_wrapper .dataTables_filter {
    margin-bottom: 0.8em;
}

.ha-list-widget .dataTables_wrapper .dataTables_length label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.ha-list-widget .dataTables_wrapper .dataTables_length label.dt-len-flex {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.ha-list-widget .dataTables_wrapper .dataTables_length select {
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 0.2em 0.45em;
    background: #fff;
    color: #000;
}

.ha-list-widget .dataTables_wrapper .dataTables_filter label {
    display: flex;
    align-items: center;
    gap: 0.35em;
}

.ha-list-widget .dataTables_wrapper .dataTables_filter .search-input {
    width: 14em;
    max-width: 100%;
    border: 1px solid #ccc !important;
    border-radius: 15px !important;
    padding: 5px 10px;
    background: #fff;
    color: #000;
}

.ha-list-widget .dataTables_wrapper .dataTables_filter .search-input::placeholder {
    color: #000;
}

.ha-list-widget .dataTables_wrapper .dataTables_paginate .paginate_button.current {
    color: #0067b2 !important;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
}

.ha-list-widget .dataTables_wrapper .dataTables_paginate .paginate_button:hover,
.ha-list-widget .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: #0067b2 !important;
    background-color: #0067b2 !important;
    color: #fff !important;
    border: none !important;
}

.ha-file-table {
    width: 100% !important;
    min-width: 720px;
    border-collapse: collapse;
    table-layout: auto;
    background: #fff;
    margin: 0 !important;
}



.ha-file-table thead th {
    text-align: left !important;
    padding: 10px;
    background: #fff;
    color: #000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.3);
    font-size: 0.95em;
    text-transform: none;
    letter-spacing: normal;
    font-weight: 600;
}

.ha-list-widget .ha-file-table.dataTable thead > tr > th,
.ha-list-widget .ha-file-table.dataTable thead > tr > td {
    position: relative;
    vertical-align: middle;
}

.ha-list-widget .ha-file-table.dataTable thead > tr > th.sorting,
.ha-list-widget .ha-file-table.dataTable thead > tr > th.sorting_asc,
.ha-list-widget .ha-file-table.dataTable thead > tr > th.sorting_desc,
.ha-list-widget .ha-file-table.dataTable thead > tr > th.sorting_asc_disabled,
.ha-list-widget .ha-file-table.dataTable thead > tr > th.sorting_desc_disabled,
.ha-list-widget .ha-file-table.dataTable thead > tr > td.sorting,
.ha-list-widget .ha-file-table.dataTable thead > tr > td.sorting_asc,
.ha-list-widget .ha-file-table.dataTable thead > tr > td.sorting_desc,
.ha-list-widget .ha-file-table.dataTable thead > tr > td.sorting_asc_disabled,
.ha-list-widget .ha-file-table.dataTable thead > tr > td.sorting_desc_disabled {
    padding-left: 2.05em !important;
    padding-right: 10px !important;
}

.ha-list-widget .ha-file-table.dataTable thead > tr > th.sorting:before,
.ha-list-widget .ha-file-table.dataTable thead > tr > th.sorting:after,
.ha-list-widget .ha-file-table.dataTable thead > tr > th.sorting_asc:before,
.ha-list-widget .ha-file-table.dataTable thead > tr > th.sorting_asc:after,
.ha-list-widget .ha-file-table.dataTable thead > tr > th.sorting_desc:before,
.ha-list-widget .ha-file-table.dataTable thead > tr > th.sorting_desc:after,
.ha-list-widget .ha-file-table.dataTable thead > tr > th.sorting_asc_disabled:before,
.ha-list-widget .ha-file-table.dataTable thead > tr > th.sorting_asc_disabled:after,
.ha-list-widget .ha-file-table.dataTable thead > tr > th.sorting_desc_disabled:before,
.ha-list-widget .ha-file-table.dataTable thead > tr > th.sorting_desc_disabled:after,
.ha-list-widget .ha-file-table.dataTable thead > tr > td.sorting:before,
.ha-list-widget .ha-file-table.dataTable thead > tr > td.sorting:after,
.ha-list-widget .ha-file-table.dataTable thead > tr > td.sorting_asc:before,
.ha-list-widget .ha-file-table.dataTable thead > tr > td.sorting_asc:after,
.ha-list-widget .ha-file-table.dataTable thead > tr > td.sorting_desc:before,
.ha-list-widget .ha-file-table.dataTable thead > tr > td.sorting_desc:after,
.ha-list-widget .ha-file-table.dataTable thead > tr > td.sorting_asc_disabled:before,
.ha-list-widget .ha-file-table.dataTable thead > tr > td.sorting_asc_disabled:after,
.ha-list-widget .ha-file-table.dataTable thead > tr > td.sorting_desc_disabled:before,
.ha-list-widget .ha-file-table.dataTable thead > tr > td.sorting_desc_disabled:after {
    left: 0.7em !important;
    right: auto !important;
}

.ha-file-list {
    margin: 0;
    padding: 0;
}

.ha-file-list .ha-file-row:last-child td {
    border-bottom: none;
}

.ha-file-table td {
    padding: 0.74em 0.8em;
    border-bottom: none !important;
    color: #16141B;
    font-size: 0.92em;
    vertical-align: middle;
    overflow-wrap: anywhere;
    font-weight: normal !important;
}

.ha-file-row {
    transition: background-color 0.15s ease;
}

.ha-file-row-clickable {
    cursor: pointer;
}

.ha-file-row-clickable:hover {
    background-color: #E0E8EF !important;
}

.ha-file-table.dataTable tbody tr:not(.child):hover,
.ha-file-table.dataTable tbody tr:not(.child):hover td {
    background: #E0E8EF !important;
}

.ha-col-type {
    width: 5.5em;
}

.ha-col-file {
    width: auto;
    min-width: 18rem;
}

.ha-col-date,
.ha-col-size {
    width: 8.5em;
    white-space: nowrap;
}

.ha-col-action {
    width: 10.5em;
    white-space: nowrap;
    text-align: center;
}

.ha-col-action-header {
    width: 10.5em !important;
    text-align: center !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.ha-col-action-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 8.2em;
    margin: 0 auto;
    text-align: center;
}

.ha-file-table td.ha-col-action {
    padding-left: 0 !important;
    padding-right: 0 !important;
    text-align: center !important;
}

.ha-file-type-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 4.2em;
    min-height: 2em;
    padding: 0.25em 0.7em;
    border-radius: 5px;
    font-size: 0.82em;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    line-height: 1;
    color: #0067b2d6;
    background: #fff;
    border: 1px solid #0067b2d6;
}

.ha-file-title {
    display: block;
    max-width: 100%;
    color: #16141B;
    font-size: 1em;
    line-height: 1.2;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    overflow-wrap: normal;
}

.ha-file-name {
    display: block;
    color: #4e6277;
    font-size: 0.84em;
    margin-top: 0.25em;
    overflow-wrap: anywhere;
}

.ha-file-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    min-width: 8.2em;
    min-height: 2.15em;
    padding: 0.3em 0.8em;
    border-radius: 5px;
    border: 1px solid #0067b2d6;
    background: #fff;
    color: #0067b2d6;
    font-size: 0.95em;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.ha-file-action-view {
    background: #fff;
    color: #0067b2d6;
    border-color: #0067b2d6;
}

.ha-file-action-view:hover {
    background: #0067b2d6;
    color: #fff;
    border-color: #0067b2d6;
}

.ha-file-action-download {
    min-width: auto;
    min-height: auto;
    padding: 0;
    border: none;
    background: transparent;
}

.ha-file-action-download:hover {
    background: transparent;
    border-color: transparent;
    opacity: 0.82;
}

.ha-file-action-download-icon {
    display: block;
    width: 1.9rem;
    height: 1.9rem;
    pointer-events: none;
}

.ha-file-action:focus {
    outline: 2px solid #0a67b1;
    outline-offset: 1px;
}

.ha-file-action-disabled {
    color: #8aa0b7;
    font-size: 0.85em;
} 
  
.ha-file-empty {
    display: none;
    margin-top: 0.7em;
    padding: 0.8em 0.9em;
    border-radius: 10px;
    border: 1px dashed #bfd0e2;
    color: #4e6277;
    background-color: #fff;
    text-align: center;
}

.ha-notice {
    border-radius: 8px;
    padding: 0.7em 0.8em;
    margin: 0.6em auto;
    max-width: 960px;
} 

.ha-notice-info {
    background-color: #edf6fd;
    color: #1f4f77;
} 

.ha-notice-error {
    background-color: #fdebec;
    color: #9d1f1f;
}
 
@media (max-width: 700px) {
    .ha-list-widget.ha-widget {
        width: 100%;
    }

    .ha-file-list-wrap {
        border-radius: 8px;
    }

    .ha-file-list-wrap .dataTables_wrapper,
    .ha-file-table {
        min-width: 650px;
    }

    .ha-file-table thead th,
    .ha-file-table td {
        padding: 0.62em 0.68em;
    }

    .ha-file-title {
        font-size: 0.95em;
    }
}

@media (max-width: 520px) {
    .ha-file-list-wrap .dataTables_wrapper,
    .ha-file-table {
        min-width: 580px;
    }
}

@media (max-width: 1023.98px) {
    .ha-file-list-wrap .dataTables_wrapper {
        width: max-content !important;
        min-width: 95%;
        margin-left: auto;
        margin-right: auto;
    }

    .ha-file-table {
        width: max-content !important;
        min-width: 720px;
        table-layout: auto;
    }

    .ha-col-type {
        min-width: 5.5em;
    }

    .ha-col-file {
        min-width: 16rem;
    }

    .ha-col-date,
    .ha-col-size {
        min-width: 8.5em;
    }

    .ha-col-action,
    .ha-col-action-header {
        min-width: 10.5em;
    }

    .ha-list-toolbar {
        justify-content: center;
        align-items: center;
    }

    .ha-list-toolbar .dataTables_length,
    .ha-list-toolbar .dataTables_filter {
        width: max-content;
        max-width: calc(100vw - 1rem);
        margin-left: 0;
        margin-right: 0;
    }

    .ha-list-toolbar .dataTables_length label.dt-len-flex {
        justify-content: center;
        white-space: nowrap;
        margin-left: auto;
        margin-right: auto;
    }

    .ha-list-toolbar .dataTables_filter label {
        width: auto;
        justify-content: center;
        margin: 0 auto;
    }

    .ha-list-toolbar .dataTables_filter .search-input {
        width: min(calc(100vw - 8rem), 16rem);
        max-width: 100%;
    }
}

@media (max-width: 767.98px) {
    .ha-list-toolbar {
        gap: 0.6rem;
    }

    .ha-list-toolbar .dataTables_filter {
        max-width: calc(100vw - 1.5rem);
    }

    .ha-list-toolbar .dataTables_filter label {
        gap: 0.2rem;
    }

    .ha-list-toolbar .dataTables_filter .search-input {
        width: min(calc(100vw - 10.5rem), 12rem);
    }
}

@media (max-width: 560px) {
    .ha-list-toolbar {
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 0.45rem;
    }

    .ha-list-toolbar .dataTables_length,
    .ha-list-toolbar .dataTables_filter {
        width: 100%;
        max-width: calc(100vw - 1.5rem);
        margin-left: 0;
        margin-right: 0;
    }

    .ha-list-toolbar .dataTables_length {
        display: flex;
        justify-content: center;
    }

    .ha-list-toolbar .dataTables_filter {
        display: flex;
        justify-content: center;
    }

    .ha-list-toolbar .dataTables_filter label {
        justify-content: center;
    }

    .ha-list-toolbar .dataTables_filter .search-input {
        width: min(calc(100vw - 7rem), 14rem);
    }
}

.ha-eco-panel {
    width: 100%;
        margin-top: 2em;
}

.ha-eco-current-title {
    margin-top: 0.9em;
    color: #123a59;
    font-size: 1.05em;
    font-weight: 700;
}

.ha-eco-current-date {
    margin-top: 0.35em;
    margin-bottom: 0.8em;
    color: #51677c;
    font-size: 0.92em;
}

.ha-eco-history-view[hidden] {
    display: none !important;
}

.ha-eco-history-toolbar {
    width: 95%;
    margin: 1em auto 0;
    display: flex;
    justify-content: flex-end;
}

.ha-eco-back-button {
    display: inline-block;
    cursor: pointer;
}

.ha-eco-back-button:focus,
.ha-eco-back-button:focus-visible {
    outline: none;
}

.ha-eco-history-list.ha-list-widget {
    margin-top: 1em;
}

/*Estilos Andrea*/
.flatpickr-day.today.ha-day-has-files{
	border-radius: 0!important;
}
.flatpickr-day.today.ha-day-has-files.endRange{
	    border-radius: 0 50px 50px 0 !important;
		background-color: #0067b2b5 !important;	
		border-color: #569ff7 !important;
		color:#ffffff !important;
}
.flatpickr-day.today.ha-day-has-files.startRange.endRange{
	    border-radius:50px !important;
}

.flatpickr-day.selected:hover, .flatpickr-day.startRange:hover, .flatpickr-day.endRange:hover{
	color:#000000 !important;
}
