body {
  font-family: "Poppins", sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  height: 100vh;
  margin: 0;
}

.layout {
  display: flex;
  height: 100vh;
  width: 100vw;
}

form {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}

input, button {
  margin: 5px 0;
  padding: 10px;
  border: none;
  border-radius: 4px;
}

input {
  background-color: #ffffff;
  color: #101010;
  border: none;
  border-radius: 4px;
  border: 1px solid #ccc;
}

button {
  background-color: #202020;
  color: #ffffff;
  cursor: pointer;
}

button:hover {
  background-color: #666;
}

hr {
  width: 100%;
  border: 1px solid #333;
}



.form-container {
  width: 100%;
  max-width: 300px; /* sets a universal width for logo + forms */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  background-color: #f9f9f9;
  color: #000000;
}

thead th {
  font-weight: normal;
  padding: 12px;
}

.content-area {
  padding: 30px;
  max-width: 100%;     /* Optional max width */
  margin: 0 0;         /* Center horizontally */
}

.checkbox-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 10px 0;
  color: white;
}

.checkbox-list label {
  display: flex;
  align-items: center;
}

.checkbox-list input[type="checkbox"] {
  margin-right: 8px;
  transform: scale(1.1);
}

.user-table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.action-column {
  width: 60px;
  text-align: center;
}

.edit-user-button {
  padding: 6px 10px;
  background-color: #444;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.edit-user-button:hover {
  background-color: #666;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: "Poppins", sans-serif;
  background-color: #101010;
  color: white;
}

.logout-button:hover {
  background-color: #666;
}

.content-area {
  padding: 30px;
  overflow-y: auto;
}

.multi-select {
  width: 100%;
  margin: 10px 0;
  padding: 8px;
  background-color: #202020;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 14px;
}

/* Override dropdown styling */
.choices {
  background-color: transparent;
  color: #101010;
  font-weight: 200 !important;
}

.choices__inner {
  color: #101010 !important;
  padding: 7.5px 0px 3.75px 7.5px !important;
  height: 60% !important;
}

.choices__list--multiple .choices__item {
  background-color: #333;
  border: 1px solid #555;
  color: #000000;
  border-radius: 3px;
  padding: 3px 8px;
  margin-right: 4px;
}

.choices__list--dropdown,
.choices__list[aria-expanded] {
  background-color: #2a2a2a;
  color: #000000;
}

.choices__item--selectable {
  padding: 8px 10px;
  white-space: normal; /* Fix line breaks */
  line-height: 1.3;
}

.choices__item--highlighted {
  background-color: #444;
  color: #000000;
}

.choices__list--dropdown {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Style the remove (×) button */
.choices__item .choices__button {
  border: none !important;
  color: #000000 !important;
  cursor: pointer;
  padding: 0 4px;
}

/* Disable hover background */
.choices__item .choices__button:hover {
  border: none !important;
  color: #ccc !important; /* Optional: slightly dimmer on hover */
}

.choices__list--multiple .choices__item {
  background-color: #eaaa02 !important;
  color: white !important;
  border: 1px solid #555 !important;
  border-radius: 4px;
}

.choices__list--multiple .choices__item[data-deletable]{
font-weight: 200 !important;
}

.choices__list--dropdown, .choices__list[aria-expanded]{
  background-color: white;
}


.attachment-list {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.attachment-link {
  background-color: #eaaa02;
  color: black;
  padding: 6px 10px;
  border-radius: 4px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  text-align: left;
  margin-right: 2px;
}

.clickable-row {
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.clickable-row:hover {
  background-color: #e2e2e2;
}

.choices__input choices__input--cloned {
  display:none !important;
  border:none !important;
}

.choices {
  margin-bottom:0 !important;
}

.choices__list--dropdown, .choices__list[aria-expanded]{
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.jobrole-links-container {
    margin: 20px 0px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    flex-direction: column;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
}

#jobroleLinksContainer {
  display: flex;
}

.jobrole-icon-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  padding: 8px;
  border-radius: 8px;
  width: 80px;
  transition: transform 0.2s ease;
  color: inherit;
}

.jobrole-icon-link:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.jobrole-icon {
  width: 32px;
  height: 32px;
}

.jobrole-icon-label {
  margin-top: 6px;
  font-size: 11px;
  color: #101010;
  word-break: break-word;
}

.jobrole-icon-tag {
  line-height: 1;
  margin-top: 8px;
}

  .tooltip-icon {
  position: relative;
  display: inline-block;
  cursor: help;
  background: #ccc;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 12px;
  text-align: center;
  line-height: 18px;
  color: #000;
  font-weight: bold;
}

.tooltip-text {
  visibility: hidden;
  width: 220px;
  background-color: #333;
  color: #fff;
  text-align: left;
  border-radius: 6px;
  padding: 6px 10px;
  position: absolute;
  z-index: 1;
  bottom: 125%; /* position above the icon */
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 12px;
  font-weight: normal;
  text-align: justify;
}

.tooltip-icon:hover .tooltip-text,
.tooltip-icon:focus .tooltip-text {
  visibility: visible;
  opacity: 1;
}

.switch-label {
  display: inline-flex !important;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0;
  margin-top: 0;
  cursor: pointer;
  user-select: none;
  margin-left: auto;
  font-size: 10px;
}

.switch-label input[type="checkbox"] {
  display: none;
}

.switch-slider {
  width: 40px;
  height: 20px;
  background-color: #cccccc !important;
  border-radius: 10px;
  position: relative;
  transition: background-color 0.3s;
}

.switch-slider::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  background-color: #202020;
  border-radius: 50%;
  top: 2px;
  left: 2px;
  transition: transform 0.3s;
}

.switch-label input[type="checkbox"]:checked + .switch-slider {
  background-color: #eaaa02 !important;
}

.switch-label input[type="checkbox"]:checked + .switch-slider::before {
  transform: translateX(20px);
}

.switch-text {
  font-size:10px;
}

.modal-loader {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 5px solid #ccc;
  border-top-color: #333;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* TABLA OBJETIVOS */
.objectives-overview {
  background-color: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.objectives-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 60%;
  overflow: visible;
}

.progress-bar-container {
  display: flex;
  flex-direction: column;
  overflow: visible;
}

.progress-bar-label {
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
}

.progress-fill {
  height: 100%;
  background-color: #303030;
  text-align: right;
  padding-right: 5px;
  color: white;
  font-size: 0.8rem;
  line-height: 20px;
  transition: width 0.4s ease;
  border-radius: 10px;
}

.status-panel {
  padding: 5px;
  border-radius: 6px;
  color: white;
  font-weight: 500;
  text-align: center;
}

.status-green {
  background-color: #303030;
}

.status-yellow {
  background-color: #FFC107;
  color: #333;
}

.status-red {
  background-color: #F44336;
}

.objective-row {
  display: grid;
  grid-template-columns: 25% 5% 65% 5%;
  align-items: center;
  gap: 1rem;
  height: 20px;
  overflow: visible;       /* ⬅️ critical: lets ▼ escape the bar */
  position: relative;      /* needed for stacking context */
}

.objective-bar {
  position: relative;
  height: 20px;
  background-color: #e0e0e0;
  border-radius: 10px;
  overflow: visible; /* <-- allow ▼ to show outside */
}

.objective-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  height: 100%;
}

.expected-marker {
  opacity: 0;
  transition: transform 0.8s ease;
}

.objective-bar:hover .expected-marker {
  opacity: 1;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

/* GRAFICA MONITORIZACIÓN */

.content-area {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1rem;
  box-sizing: border-box;
  overflow: hidden; /* Prevent scroll inside this container */
}

.monitor-selectors {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.monitor-selectors label {
  font-weight: 500;
}

.employee-selector,
.date-picker {
  padding: 0.4rem 0.6rem;
  font-size: 1rem;
}

.monitor-graph {
  flex: 1;
  position: relative;
  max-height: calc(100% - 60px); /* Adjust based on selector height */
}

.monitor-graph canvas {
  width: 100% !important;
  height: 100% !important;
}

.employee-wrapper,
.date-wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  min-width: 200px;
}

.choices {
  max-height: 35.78px;
}