@import url('./main-layout.css');
@import 'carpeta-documental.css';
@import 'grid-header.css';

@font-face {
    font-family: "Exo2";
    src: url("./fonts/EXO2-REGULAR.OTF") format("opentype");
}

@font-face {
    font-family: "open-sans";
    src: url("./fonts/OPENSANS-REGULAR.TTF") format("truetype");
}

html {
    --lumo-primary-color: rgb(0, 49, 105);
    --lumo-primary-color-50pct: rgba(0, 49, 105, 0.5);
    --lumo-primary-color-10pct: rgba(0, 49, 105, 0.1);
    --lumo-base-color: rgb(256, 256, 256);
    --lumo-body-text-color: hsla(236, 8%, 44%, 0.94);
    --lumo-primary-text-color: rgb(0, 49, 105);
    --lumo-font-family: open-sans, Arial, sans-serif;
    --lumo-font-size: 1rem;
    --lumo-font-size-xxxl: 1.75rem;
    --lumo-font-size-xxl: 1.375rem;
    --lumo-font-size-xl: 1.125rem;
    --lumo-font-size-l: 1rem;
    --lumo-font-size-m: 0.875rem;
    --lumo-font-size-s: 0.8125rem;
    --lumo-font-size-xs: 0.75rem;
    --lumo-font-size-xxs: 0.6875rem;
    --custom-error-color-90pct: rgba(231, 24, 24, 0.9); /* Same as --lumo-error-color */
    --custom-success-color-90pct: rgba(76, 175, 80, 0.9); /* Same as --lumo-success-color */
    --custom-warning-color-90pct: rgba(255, 193, 7, 0.9); /* Same as --lumo-warning-color */
}

vaadin-grid.norma-matriz-grid-custom::part(cumple) {
    color: white;
    background-color: var(--lumo-success-color-50pct);
}

vaadin-grid.norma-matriz-grid-custom::part(no_cumple) {
    color: white;
    background-color: var(--lumo-error-color-50pct);
}

vaadin-grid.norma-matriz-grid-custom::part(se_debe_adecuar) {
    color: white;
    background-color: #FF8800E8;
}

vaadin-grid.norma-matriz-grid-custom::part(en_tramite_c_pendiente) {
    color: black;
    background-color: #FFFA37C0;
}

vaadin-grid.norma-matriz-grid-custom::part(en_tramite_s_pendiente) {
    color: black;
    background-color: #FFFA37C0;
}

vaadin-grid.norma-matriz-grid-custom::part(informativo) {
    color: black;
    background-color: #7abaec50;
}

vaadin-grid.norma-matriz-grid-custom::part(verificando) {
    color: black;
    background-color: #d4c0fa50;
}

/* Status colors for semaforo grid */
vaadin-grid.semaforo-grid-custom::part(cumple) {
    color: var(--lumo-success-color);
}

vaadin-grid.semaforo-grid-custom::part(no_cumple) {
    color: var(--lumo-error-color);
}

vaadin-grid.semaforo-grid-custom::part(informativo) {
    color: var(--lumo-primary-color);
}

vaadin-grid.semaforo-grid-custom::part(se_debe_adecuar) {
    color: #FF8800;
}

vaadin-grid.semaforo-grid-custom::part(en_tramite_s_pendiente),
vaadin-grid.semaforo-grid-custom::part(en_tramite_c_pendiente) {
    color: #B8860B;
    background-color: #FFFA37C0;
}

vaadin-grid.semaforo-grid-custom::part(pendiente) {
    color: #B8860B;
    background-color: #FFFA37C0;
}

vaadin-grid.semaforo-grid-custom::part(verificando) {
    color: #8A2BE2;
    background-color: #d4c0fa50;
}

vaadin-grid.semaforo-grid-custom::part(no_aplica) {
    color: #8A2BE2;
    background-color: #d4c0fa50;
}

h1 {
    font-family: "Exo2";
    font-size: 2.5em;
    color: var(--lumo-primary-color);
}

h2 {
    font-family: "Exo2";
    font-size: 2em;
    color: var(--lumo-primary-color);
}

h3 {
    font-family: "Exo2";
    font-size: 1.5em;
    color: var(--lumo-primary-color);
}

h4 {
    font-family: "Exo2";
    font-size: 1.2em;
    color: var(--lumo-primary-color);
}

h5 {
    font-family: "Exo2";
    font-size: 1em;
    color: var(--lumo-primary-color);
}

.dot {
    height: 12px;
    width: 12px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
    aspect-ratio: 1 / 1;
    min-width: var(--dot-size, 12px);
    min-height: var(--dot-size, 12px);
    vertical-align: middle;
}


vaadin-grid.reporte-sede-grid-custom::part(si_cumple) {
    color: white;
    background-color: green;
}

vaadin-grid.reporte-sede-grid-custom::part(no_cumple) {
    color: white;
    background-color: var(--lumo-error-color);
}

vaadin-grid.reporte-sede-grid-custom::part(informativo) {
    color: black;
    background-color: lightblue;
}

vaadin-grid.reporte-sede-grid-custom::part(se_debe_adecuar) {
    color: black;
    background-color: orange;
}

vaadin-grid.reporte-sede-grid-custom::part(en_tramite) {
    color: black;
    background-color: yellow;
}

vaadin-grid.reporte-sede-grid-custom::part(gris) {
    color: black;
    background-color: lightgray;
}

vaadin-grid.reporte-sede-grid-custom::part(total) {
    color: black;
    background-color: rgba(206, 206, 206, 0.33);
}

/* Let's get this party started */
[content]::-webkit-scrollbar {
    width: 8px;
}

/* Track */
[content]::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
    -webkit-border-radius: 10px;
    border-radius: 10px;
}

/* Handle */
[content]::-webkit-scrollbar-thumb {
    -webkit-border-radius: 10px;
    border-radius: 10px;
    background: rgba(244, 242, 242, 0.8);
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.5);
}

[content]::-webkit-scrollbar-thumb:window-inactive {
    background: rgba(141, 127, 127, 0.4);
}


/* Let's get this party started */
[drawer]::-webkit-scrollbar {
    width: 8px;
}

/* Track */
[drawer]::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
    -webkit-border-radius: 10px;
    border-radius: 10px;
}

/* Handle */
[drawer]::-webkit-scrollbar-thumb {
    -webkit-border-radius: 10px;
    border-radius: 10px;
    background: rgba(244, 242, 242, 0.8);
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.5);
}

[drawer]::-webkit-scrollbar-thumb:window-inactive {
    background: rgba(90, 108, 247, 0.8);
}


.boton-carpeta {
    margin: 8px;
    width: 200px;
    height: 100px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 8px;
    padding-bottom: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05),
    0 1px 2px rgba(0, 0, 0, 0.08);
    font-weight: 600;
}

/* Single status solid backgrounds with stronger colors */
.boton-carpeta.status-single-due {
    background-color: var(--custom-error-color-90pct);
}

.boton-carpeta.status-single-about-to-due {
    background-color: var(--custom-warning-color-90pct);
}

.boton-carpeta.status-single-ok {
    background-color: var(--custom-success-color-90pct);
}

/* Hover effect - slightly darken */
.boton-carpeta:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1),
    0 2px 4px rgba(0, 0, 0, 0.12);
    filter: brightness(0.95);
}

/* Folder name style */
.boton-carpeta .folder-name {
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    width: 100%;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
    margin: 0;
    padding: 4px;
    flex: 1;
}

/* Status indicators container */
.boton-carpeta .status-indicators {
    display: flex;
    gap: 4px;
    position: absolute;
    bottom: 8px;
    right: 8px;
    transform: none;
}

/* Individual status indicators */
.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Status colors for document due dates */
.status-indicator.status-due {
    background-color: var(--lumo-error-color);
}

.status-indicator.status-about-to-due {
    background-color: #FFFA37;
    border-color: #CCC;
}

.status-indicator.status-ok {
    background-color: var(--lumo-success-color);
}

/* Status colors */
.status-cumple {
    background-color: var(--lumo-success-color);
}

.status-no-cumple {
    background-color: var(--lumo-error-color);
}

.status-pendiente {
    background-color: #FFFA37;
}

.status-informativo {
    background-color: #7abaec;
}

.status-verificando {
    background-color: #d4c0fa;
}

/* Document status tints */

vaadin-grid.document-grid-custom::part(ok) {
    color: white;
    background-color: var(--lumo-success-color-50pct);
}

vaadin-grid.document-grid-custom::part(due) {
    color: white;
    background-color: var(--lumo-error-color-50pct);
}

vaadin-grid.document-grid-custom::part(about-to-due) {
    color: white;
    background-color: #FF8800E8;
}

vaadin-grid-cell-content.document-due {
    background-color: var(--lumo-error-color-10pct);
    border-radius: 4px;
    padding: 4px;
}

vaadin-grid-cell-content.document-about-to-due {
    background-color: rgba(255, 250, 55, 0.1); /* Light yellow */
    border-radius: 4px;
    padding: 4px;
}

vaadin-grid-cell-content.document-ok {
    background-color: var(--lumo-success-color-10pct);
    border-radius: 4px;
    padding: 4px;
}

/* Alternative: tint entire rows */
vaadin-grid-row[theme~="document-due"] {
    background-color: var(--lumo-error-color-10pct);
}

vaadin-grid-row[theme~="document-about-to-due"] {
    background-color: rgba(255, 250, 55, 0.1);
}

vaadin-grid-row[theme~="document-ok"] {
    background-color: var(--lumo-success-color-10pct);
}

/* Row-based tinting */
vaadin-grid[theme~="documento-grid"] vaadin-grid-cell-content {
    padding: 4px;
}

vaadin-grid[theme~="documento-grid"] [part~="row"][selected] {
    background: var(--lumo-primary-color-10pct);
}

vaadin-grid[theme~="documento-grid"] [part~="row"].document-due {
    background-color: var(--lumo-error-color-10pct);
}

vaadin-grid[theme~="documento-grid"] [part~="row"].document-about-to-due {
    background-color: rgba(255, 250, 55, 0.1);
}

vaadin-grid[theme~="documento-grid"] [part~="row"].document-ok {
    background-color: var(--lumo-success-color-10pct);
}

.estado-tab.cumple {
    color: white;
    background-color: var(--lumo-success-color);
}

.estado-tab.no_cumple {
    color: white;
    background-color: var(--lumo-error-color);
}

.estado-tab.informativo {
    color: black;
    background-color: #7abaec50;
}

.estado-tab.se_debe_adecuar {
    color: black;
    background-color: #FF8800E8;
}

.estado-tab.en_tramite {
    color: black;
    background-color: #FFFA37C0;
}

.folder-count-badge {
    border-radius: 50%;
    padding: 0;
    font-size: 0.75em;
    position: absolute;
    bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    width: 20px;
    height: 20px;
    font-weight: 500;
}

.document-count-badge {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--lumo-primary-text-color);
    left: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.subfolder-count-badge {
    background-color: var(--lumo-primary-color);
    color: var(--lumo-primary-contrast-color);
    left: 36px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.status-indicators {
    position: absolute;
    bottom: 8px;
    right: 8px;
    display: flex;
    gap: 4px;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.status-indicator.status-due {
    background-color: var(--lumo-error-color);
}

.status-indicator.status-about-to-due {
    background-color: #FFFA37;
}

.status-indicator.status-ok {
    background-color: var(--lumo-success-color);
}

.blur-background {
  filter: blur(4px);
}

.current-year-highlight {
  background-color: var(--lumo-primary-color-10pct);
}

