/* Sidebar */
.sidebar-custom {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(to bottom, #f4f4f2, #e8e8e6);
  z-index: 0;
  display: flex;
  flex-direction: column;
  padding: 20px 20px;
  box-shadow: inset -1px 0 5px rgba(0, 0, 0, 0.05);
}

/* User Section */
.user-section {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.avatar-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #ccc;
}

.user-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: #333;
}

.sidebar-divider {
  height: 1px;
  background-color: #ddd;
  margin: 10px 0;
  width: 29%;
}

/* Sidebar Links */
.sidebar-links {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 10px;
}

/* ✅ Updated selector to target links more precisely */
.sidebar-links .sidebar-link {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #333;
  text-decoration: none;
  transition: background 0.2s ease;
}

.sidebar-links .sidebar-link:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

/* ✅ Active style */
.sidebar-links .sidebar-link.active,
.sidebar-links .sidebar-link:focus {
  background-color: #fff;
  box-shadow: inset 0 0 0 1px #ccc;
}

/* SVG icons */
.sidebar-icon {
  width: 27px;
  height: 27px;
  margin-right: 8px;
  vertical-align: middle;
}


/* Main Content */
.main-content {
  position: relative;
  z-index: 1;
  margin: 10px 10px 10px 240px; /* Top, Right, Bottom, Left */
  background-color: white;
  border-radius: 07px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 0px 20px 20px 20px; /* corrected syntax */
  min-height: calc(100vh - 20px);
}

@media (max-width: 767.98px) {
  .main-content {
    margin: 10px 10px 10px 10px /* Top, Right, Bottom, Left */ !important;
    padding: 10px !important;
    border-radius: 0;
    box-shadow: none;
    width: 100% !important;
    max-width: 100% !important;
    font-size: 0.85rem; /* Optional: reduce font size for mobile */
  }
}


/* Dashboard Header */
.dashboard-header {
  margin-bottom: 20px;
}

.greeting {
  font-size: 0.85rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 1px;
  padding-left: 10px;
}

.dashboard-divider {
  height: 1px;
  background-color: #ccc;
  width: 100%;
  margin: 10px auto;
}

.dashboard-filters {
  padding-top: 10px;
}

.greeting-date {
  font-size: 0.7rem;
  color: #666;
  margin-bottom: 5px;
  padding-left: 10px;
}

/*Table formats */
.table-bordered-custom tr {
  border-bottom: 1px solid #eeeeee; /* Choose your preferred color */
}

.table-bordered-custom2 tr {
  border-bottom: 1px solid #eeeeee; /* Choose your preferred color */
  background-color: #852727;
}

.btn-custom-primary-sm {
  background-color: #00a2b0;       /* Bootstrap danger red */
  color: white;
  font-size: 0.85rem;              /* Small text */
  font-weight: 500;
  padding: 4px 12px;
  border: none;
  text-decoration: none !important;  /* ✅ removes underline */
  text-align: middle;
  border-radius: 6px;              /* Rounded edges */
  transition: background-color 0.2s ease;
}

.btn-custom-primary-sm:hover {
  background-color: #008b97;       /* Darker red on hover */
  color: #fff;
}

.btn-custom-save-sm {
  background-color: #00ad78;       /* Bootstrap danger red */
  color: white;
  font-size: 0.85rem;              /* Small text */
  font-weight: 500;
  padding: 4px 12px;
  border: none;
  text-decoration: none !important;  /* ✅ removes underline */
  text-align: middle;
  border-radius: 6px;              /* Rounded edges */
  transition: background-color 0.2s ease;
}

.btn-custom-save-sm:hover {
  background-color: #009769;       /* Darker red on hover */
  color: #fff;
}

.btn-custom-danger-sm {
  background-color: #de3e5b;       /* Bootstrap danger red */
  color: white;
  font-size: 0.85rem;              /* Small text */
  font-weight: 500;
  padding: 4px 12px;
  border: none;
  text-decoration: none !important;  /* ✅ removes underline */
  text-align: middle;
  border-radius: 6px;              /* Rounded edges */
  transition: background-color 0.2s ease;
}

.btn-custom-danger-sm:hover {
  background-color: #bf3750;       /* Darker red on hover */
  color: #fff;
}

.btn-custom-action-sm {
  background-color: #ECECEC;       /* Bootstrap danger red */
  color: #333333;
  font-size: 0.85rem;              /* Small text */
  font-weight: 500;
  padding: 15px 12px;
  border: none;
  text-decoration: none !important;  /* ✅ removes underline */
  text-align: middle;
  border-radius: 6px;              /* Rounded edges */
  transition: background-color 0.2s ease;
}

.btn-custom-action-sm:hover {
  background-color: #00a2b0;       /* Darker red on hover */
  color: #fff;
}

.btn-custom-danger-sm-disabled {
  background-color: #ffb6c4;       /* Bootstrap danger red */
  color: white;
  font-size: 0.85rem;              /* Small text */
  font-weight: 500;
  padding: 4px 12px;
  border: none;
  text-decoration: none !important;  /* ✅ removes underline */
  text-align: middle;
  border-radius: 6px;              /* Rounded edges */
  transition: background-color 0.2s ease;
}

.main-content.mobile-sidebar-open {
  margin: 10px 10px 10px 240px !important;
}

.mobileSidebarToggle {
  font-size: 1.2rem;
  line-height: 1;
  border-radius: 4px;
}

/* Default Sidebar - hidden on mobile */
@media (max-width: 767.98px) {
  .sidebar-custom {
    display: none;
  }

  .sidebar-custom.mobile-sidebar-open {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100%;
    background: linear-gradient(to bottom, #f4f4f2, #e8e8e6); /* Optional: Change background if needed */
    z-index: 1040;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
    padding: 20px; /* Optional: Add padding */
  }

  .main-content.hide-on-mobile-sidebar {
    display: none;
  }
}

.sidebar-footer {
  width: 17%;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid #ccc;
}

@media (max-width: 767.98px) {
  .sidebar-footer {
    width: 100% !important;
    padding: 10px 0;
  }
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: invert(1);
}

.carousel-item img {
  max-height: 80vh;       /* Limits image height to 80% of viewport height */
  object-fit: contain;     /* Keeps image inside without stretching */
}


.estado-tag {
  font-weight: bold;
  font-size: 0.7rem;
  padding: 4px 8px;
  border-radius: 6px;
}

/* Optional: Customize colors if needed */
.bg-incompleto    { background-color: #e35b5b !important; }  /* Incompleto */
.bg-categorizado { background-color: #66c4a6 !important; }  /* Categorizado */
.bg-sincat  { background-color: #b1b1b1 !important; }  /* Sin Categoria */


th, th a {
  color: black !important;
}


.select-no-arrow {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 1.5rem; /* adjust for spacing */
  background-image: none !important;
}


.dashboard-card {
  background-color: #f8f9fa;
  padding: 10px;
  border-radius: 8px;
  font-size: 0.85rem;
}
