﻿.text-color-red {
    color: #c0291f;
}

.text-color-gray {
    color: #767272;
}

/* TARJETAS DE LOS LOGS */

.card-log {
    border: none;
    width: 100%;
    height: 130px;
    padding: 0.5em 0.7em;
    border-radius: 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    background-color: #efefef;
}

.card-log__title {
    text-transform: uppercase;
    font-size: 13px;
    padding: 5px 0;
    margin: 0;
    width: 100%;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-log__description {
    text-align: center;
    color: #575757;
    font-size: 12px;
    margin: 0;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* SWITCH */

.switch {
  padding: 1px;
  width: 8vh;
  height: 4vh;
  border: 1px solid #d3d3d3;
  border-radius: 30px;
}

.switch__view {
  width: 100%;
  height: 100%;
  background-color: #d3d3d3;
  border-radius: 30px;
  position: relative;
  cursor: pointer;
  -webkit-transition-duration: 300ms;
  transition-duration: 300ms;
}

.switch__view::after {
  content: " ";
  background-color: #fff;
  border: 1px solid #d3d3d3;
  box-shadow: 2px 0 5px 0 rgba(0, 0, 0, 0.2);
  border-radius: 100%;
  width: 50%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  -webkit-transition-duration: 300ms;
  transition-duration: 300ms;
}

.switch__view::before {
  content: "OFF";
  width: 100%;
  height: 100%;
  position: absolute;
  font-size: 0.5em;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 15%;
  color: #333;
  -webkit-transition-duration: 300ms;
  transition-duration: 300ms;
}

.switch__view--on {
  background-color: #32d600;
}

.switch__view--on::after {
  border: 1px solid #32d600;
  box-shadow: -2px 0 5px 0 rgba(0, 0, 0, 0.2);
  left: 50%;
}

.switch__view--on::before {
  content: "ON";
  justify-content: flex-start;
  color: #fff;
}

.switch__control {
  display: none;
}

/* NOTAS */

.note {
    background-color: #EFEFEF;
    border-left: 3px solid rgba(0, 0, 0, 0.2);
    border-right: 3px solid rgba(0, 0, 0, 0.2);
    padding: 1em 1em;
}

.note--info {
    background-color: #82acff;
    color: #FFF;
}

.note--warning {
    background-color: #ffcb7e;
}

.note--error {
    background-color: #ff8080;
    color: #FFF;
}

.note--success {
    background-color: #a0ff89;
}

.note__text {
    text-align:center;
    margin: 0;
}

.msg-max-lenght {
    font-size: 13px;
    color: #3075ff;
}

.msg-max-lenght::before {
    content: '(';
}

.msg-max-lenght::after {
    content: ')';
}

/* CONTROL SEARCH */

.control-search {
    width: 100%;
    position: relative;
}

.control-search__input {
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    width: 100%;
    padding-right: 50px;
}

.control-search__btn {
    position: absolute;
    top: 0;
    right: 0;
    width: 15px;
}

/* Información tecnica */

.card-info-tecnic {
    margin: 5px;
    width: 100%;
    height: 85px;
    border-radius: 5px;
    background-color: #f3f3f3;
}

.card-info-tecnic__header {
    width: 100%;
    padding: 2px 5px;
    border-bottom: 1px solid #d3d3d3;
    display: flex;
    justify-content: space-between;
}

.card-info-tecnic__identifier {
    text-transform: uppercase;
}

.card-info-tecnic__title {
    text-transform: uppercase;
    color: #636364;
    text-align:center;
    font-weight:bold;
}

.card-info-tecnic__description {
    font-size: 13px;
    width: 100%;
    max-width: 100%;
    height: 100%;
}

@media screen and (max-width: 1000px) {
    .card-info-tecnic {
        height: auto;
    }
}


/* =====================================================
   Resumen cards (Comprobantes / Sincronización externa)
   ===================================================== */

.resumen-card {
    border-radius: 8px;
    flex: 1 0 170px;
    min-width: 170px;
    position: relative;
}

.resumen-card-body {
    padding: 14px 14px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.resumen-card-icon {
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 1.4rem;
}

.resumen-card-green { background: #28a745; color: white; }
.resumen-card-beige { background: #fdf6e3; }
.resumen-card-red   { background: #dc3545; color: white; min-width: 180px; }
.resumen-card-blue  { background: #007bff; color: white; min-width: 200px; }

.resumen-card-icon-dark  { background: rgba(0,0,0,0.18); }
.resumen-card-icon-light { background: rgba(0,0,0,0.07); color: #6c757d; }

.resumen-card-title    { font-weight: 700; font-size: 0.95rem; }
.resumen-card-amount   { font-size: 1rem; }
.resumen-card-amount-lg { font-size: 1.2rem; font-weight: 700; }
.resumen-card-subtitle { font-size: 0.8rem; opacity: 0.85; }

.resumen-card-badge {
    position: absolute;
    top: 6px;
    right: 8px;
    background: rgba(255,255,255,0.25);
    border-radius: 12px;
    padding: 1px 8px;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.4;
}

.resumen-card-beige .resumen-card-badge {
    background: rgba(0,0,0,0.09);
    color: #555;
}

/* =====================================================
   Light stat-card variants — sinc panel only
   ===================================================== */

.resumen-card--sinc {
    background: #fff;
    border: 1px solid #e9ecef;
    border-left-width: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    border-radius: 6px;
    flex: 1 0 150px;
    min-width: 150px;
    position: relative;
}

.resumen-card--sinc-ok    { border-left-color: #28a745; }
.resumen-card--sinc-error { border-left-color: #dc3545; }
.resumen-card--sinc-total { border-left-color: #adb5bd; }

.resumen-card--sinc .resumen-card-body {
    padding: 10px 12px;
    gap: 9px;
}

.resumen-card--sinc .resumen-card-icon {
    font-size: 1.1rem;
    padding: 8px 10px;
    border-radius: 4px;
}

.resumen-card--sinc-ok    .resumen-card-icon { background: rgba(40,  167, 69,  0.10); color: #28a745; }
.resumen-card--sinc-error .resumen-card-icon { background: rgba(220, 53,  69,  0.10); color: #dc3545; }
.resumen-card--sinc-total .resumen-card-icon { background: rgba(108, 117, 125, 0.10); color: #6c757d; }

.resumen-card--sinc .resumen-card-title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #6c757d;
    white-space: nowrap;
}

.resumen-card--sinc .resumen-card-amount {
    font-size: 0.875rem;
    font-weight: 600;
}

.resumen-card--sinc .resumen-card-amount-lg {
    font-size: 1rem;
    font-weight: 700;
}

.resumen-card--sinc-ok    .resumen-card-amount    { color: #28a745; }
.resumen-card--sinc-error .resumen-card-amount    { color: #dc3545; }
.resumen-card--sinc-total .resumen-card-amount-lg { color: #495057; }

.resumen-card--sinc .resumen-card-badge {
    background: rgba(0, 0, 0, 0.07);
    color: #555;
}

.resumen-card--sinc .resumen-card-subtitle {
    font-size: 0.7rem;
    color: #9aa3af;
    opacity: 1;
}

/* =====================================================
   BEM: Resumen de comprobantes sincronizados
   ===================================================== */

.resumen-sinc {
    display: none;
    margin-top: 16px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    padding: 16px 18px;
}

.resumen-sinc__titulo {
    font-size: 0.72rem;
    font-weight: 700;
    color: #9aa3af;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 14px;
}

.resumen-sinc__cards {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.resumen-sinc__bloques {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.resumen-sinc__bloque {
    flex: 1 1 300px;
    min-width: 260px;
}

.resumen-sinc__bloque-titulo {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid transparent;
}

.resumen-sinc__bloque--ok .resumen-sinc__bloque-titulo {
    color: #28a745;
    border-bottom-color: #28a745;
}

.resumen-sinc__bloque--error .resumen-sinc__bloque-titulo {
    color: #dc3545;
    border-bottom-color: #dc3545;
}

.resumen-sinc__bloque-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
