/* ========== Base ========== */
body,
button,
input,
select,
textarea,
table {
  font-family: "Times New Roman", Times, serif !important;
}

.logo-top {
  text-align: center;
  margin-bottom: 10px;
}

.logo-top img {
  height: 60px;
  width: auto;
}

/* ========== Tables ========== */
.table thead th {
  white-space: nowrap;
}

.table td,
.table th {
  vertical-align: middle;
}

/* ========== Navbar ========== */
.navbar .nav-link.active {
  font-weight: 700;
}

.navbar .notif-bell {
  position: relative;
  display: inline-block;
}

.navbar .notif-badge {
  position: absolute;
  top: -6px;
  left: -8px;
  background: #dc3545;
  color: #fff;
  border-radius: 999px;
  padding: 2px 6px;
  font-size: 11px;
  line-height: 1;
  min-width: 18px;
  text-align: center;
}

/* ========== KPI Cards ========== */
.card-v {
  position: relative;
  overflow: visible;
  border: 0;
  color: #111;
  background: #fff;
  padding-bottom: 10px;
}

.card-v .kpi-label {
  font-size: 0.95rem;
  color: #6c757d;
  margin-bottom: 0.25rem;
}

.card-v .kpi-value {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
}

.card-v .kpi-sub {
  margin-top: 0.25rem;
}

.card-v .kpi-icon {
  font-size: 2.2rem;
  opacity: 0.15;
}

.card-v::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 8px;
  background: linear-gradient(90deg, #0d6efd, #20c997, #ffc107, #dc3545);
  clip-path: polygon(0 100%, 50% 0, 100% 100%);
  opacity: 0.85;
  z-index: 0;
}

.card-v > * {
  position: relative;
  z-index: 1;
}

/* Optional theme helpers */
.card-v-primary { --accent: #0d6efd; }
.card-v-warning { --accent: #f59f00; }
.card-v-success { --accent: #2fb344; }
.card-v-info    { --accent: #15aabf; }

/* ========== Charts ========== */
.card-body canvas {
  max-height: 220px !important;
}

#chartDaily {
  max-height: 200px !important;
}

#chartBranches {
  max-height: 200px !important;
}

#chartMix {
  max-height: 250px !important;
}

@media (max-width: 768px) {
  .card-body canvas {
    max-height: 180px !important;
  }
}

@media (min-width: 769px) {
  .card-body canvas {
    max-height: 250px !important;
  }
}