/* ========== Base Table Styles ========== */
table {
  font-family: Arial, sans-serif;
  border-collapse: collapse;
  width: 100%;
}

th,
td {
  border: 1px solid #dddddd;
  text-align: left;
  padding: 8px;
  width: 7%;
}

tr:nth-child(even) {
  /* Striping */
  background-color: #ebebeb;
}

/* ========== Working times table ========== */
.working_time_table-container {
  overflow-y: auto;
  display: block;
  max-height: 800px;
}

.unycapp_table {
  border-collapse: collapse;
  width: 100%;
  table-layout: fixed;
}

.unycapp_table thead {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #15396a;
}

.unycapp_table thead tr {
  background-color: #0056b3;
}

.unycapp_table thead th,
.unycapp_table th {
  color: #fff;
  background: #15396a;
  position: sticky;
  top: 0;
  z-index: 2;
}

.unycapp_table th,
.unycapp_table td {
  padding: 16px;
  height: 56px;
  border-left: none;
  border-right: none;
}

.unycapp_table tbody tr:nth-child(even) {
  background-color: #0057b31c; /* Light blue for even rows */
}

.working_time_extra,
.working_time_extra td {
  background-color: #00b30936;
}

.is_done_badge {
  text-align: center;
  cursor: pointer;
}

.lucida-column {
  font-family: Lucida;
}

.right-align {
  text-align: right;
}
.center-align {
  text-align: center;
}
.table_time {
  padding: 0;
}

/* ========== Stylized rond icon button ========== */
.btn-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 18px;
  border: 1px solid #ccc;
  color: #444;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.07);
  text-decoration: none;
  background: white;
}
.btn-circle:hover {
  color: #1976d2;
  text-decoration: none;
  border: 1px solid #1976d2;
  background: #e3f2fd;
}
.btn-circle + .btn-circle {
  margin-left: 20px;
}

/* ========== Danger (red) circular button variant ========== */
.btn-circle-danger:hover {
  color: #d21919;
  text-decoration: none;
  border: 1px solid #d21919;
  background: #fde3e3;
}

/* ========== Tooltip for worked time ========== */
.tooltip-container {
  display: none;
  position: relative;
  margin-right: 7px;
  cursor: pointer;
}

tr:hover .tooltip-container {
  display: inline-block;
}

.tooltip-content {
  opacity: 0;
  width: max-content;
  background-color: #333;
  color: #fff;
  text-align: left;
  border-radius: 4px;
  padding: 8px;
  position: absolute;
  z-index: 10;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  transition: opacity 0.3s ease;
  white-space: nowrap;
}

.tooltip-container:hover .tooltip-content {
  visibility: visible;
  opacity: 1;
}

a.disabled {
  color: #ccc;
  cursor: not-allowed;
}

/* ========== Navigation Tabs ========== */
.nav-link:hover {
  cursor: pointer;
}

.tab-content {
  margin-top: 10px; /* Adds margin between tabs and tabs content */
}

.nav-tabs .nav-link {
  color: black;
  border: none;
  background-color: #dadada70;
  padding: 10px 15px;
  text-align: center;
  transition: color 0.3s ease;
}

.nav-tabs .nav-link.active {
  font-weight: bold;
  color: #0056b3;
  border-bottom: 2px solid #0056b3;
  background-color: #0057b31a;
}

.nav-tabs .nav-link:hover {
  color: #0056b3;
  border-bottom: 2px solid #0056b3;
}

/* ========== Alerts ========== */
.alert-debug {
  color: black;
  background-color: white;
  border-color: #d6e9c6;
}

.alert-error {
  color: #b94a48;
  background-color: #f2dede;
  border-color: #eed3d7;
}
