@charset "UTF-8";
:root, [data-bs-theme=light] {
  --bs-text-gray-900: #181C32;
  --bs-header-bg-color: #0085CA;
  --bs-header-navs-tab-color-default: #C8E3FF;
  --bs-primary: #0085CA;
  --bs-primary-light: #F5F8FA;
  --bs-text-primary: #0085CA;
  --bs-gray-500:#7E8299;
  --bs-dark-border-subtle: #7E8299;
  --bs-text-muted: #7E8299;
  --bs-menu-heading-color: #7E8299;
  --bs-text-gray-500: #7E8299;
  --bs-pagination-active-bg: #0085CA;
}

.btn-sm {
  padding: 12px 18px;
  border-radius: 6px;
}

.input-error {
  border: 1px solid var(--bs-danger) !important;
}
.input-error[data-kt-select2] + .select2 .select2-selection {
  border: 1px solid var(--bs-danger) !important;
}
.input-error.custom-switch-input + .custom-switch-btn {
  border: 1px solid var(--bs-danger) !important;
}

.upload-zone {
  height: 200px;
  border: 1px solid #d7d7d7;
  text-align: center;
  padding: 40px 0;
  border-top: none;
  cursor: pointer;
}
.upload-zone.pointer-trough * {
  pointer-events: none;
}
.upload-zone div.bi-upload {
  font-size: 40px;
}
.upload-zone div.bi-upload:before {
  font-weight: bold;
}
.upload-zone .dz-preview {
  display: none;
}

#kt_app_toolbar {
  border: 1px solid var(--bs-app-content-border-color);
  border-radius: 12px 12px 0 0;
}

@keyframes opaque {
  0% {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes resizeanim {
  0%, to {
    opacity: 0;
  }
}
.apexcharts-canvas {
  position: relative;
  direction: ltr !important;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.apexcharts-canvas ::-webkit-scrollbar {
  -webkit-appearance: none;
  width: 6px;
}

.apexcharts-canvas ::-webkit-scrollbar-thumb {
  border-radius: 4px;
  background-color: rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 1px rgba(255, 255, 255, 0.5);
  -webkit-box-shadow: 0 0 1px rgba(255, 255, 255, 0.5);
}

.apexcharts-inner {
  position: relative;
}

.apexcharts-text tspan {
  font-family: inherit;
}

rect.legend-mouseover-inactive,
.legend-mouseover-inactive rect,
.legend-mouseover-inactive path,
.legend-mouseover-inactive circle,
.legend-mouseover-inactive line,
.legend-mouseover-inactive text.apexcharts-yaxis-title-text,
.legend-mouseover-inactive text.apexcharts-yaxis-label {
  transition: 0.15s ease all;
  opacity: 0.2;
}

.apexcharts-legend-text {
  padding-left: 15px;
  margin-left: -15px;
}

.apexcharts-series-collapsed {
  opacity: 0;
}

.apexcharts-tooltip {
  border-radius: 5px;
  box-shadow: 2px 2px 6px -4px #999;
  cursor: default;
  font-size: 14px;
  left: 62px;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  white-space: nowrap;
  z-index: 12;
  transition: 0.15s ease all;
}

.apexcharts-tooltip.apexcharts-active {
  opacity: 1;
  transition: 0.15s ease all;
}

.apexcharts-tooltip.apexcharts-theme-light {
  border: 1px solid #e3e3e3;
  background: rgba(255, 255, 255, 0.96);
}

.apexcharts-tooltip.apexcharts-theme-dark {
  color: #fff;
  background: rgba(30, 30, 30, 0.8);
}

.apexcharts-tooltip * {
  font-family: inherit;
}

.apexcharts-tooltip-title {
  padding: 6px;
  font-size: 15px;
  margin-bottom: 4px;
}

.apexcharts-tooltip.apexcharts-theme-light .apexcharts-tooltip-title {
  background: #eceff1;
  border-bottom: 1px solid #ddd;
}

.apexcharts-tooltip.apexcharts-theme-dark .apexcharts-tooltip-title {
  background: rgba(0, 0, 0, 0.7);
  border-bottom: 1px solid #333;
}

.apexcharts-tooltip-text-goals-value,
.apexcharts-tooltip-text-y-value,
.apexcharts-tooltip-text-z-value {
  display: inline-block;
  margin-left: 5px;
  font-weight: 600;
}

.apexcharts-tooltip-text-goals-label:empty,
.apexcharts-tooltip-text-goals-value:empty,
.apexcharts-tooltip-text-y-label:empty,
.apexcharts-tooltip-text-y-value:empty,
.apexcharts-tooltip-text-z-value:empty,
.apexcharts-tooltip-title:empty {
  display: none;
}

.apexcharts-tooltip-text-goals-label,
.apexcharts-tooltip-text-goals-value {
  padding: 6px 0 5px;
}

.apexcharts-tooltip-goals-group,
.apexcharts-tooltip-text-goals-label,
.apexcharts-tooltip-text-goals-value {
  display: flex;
}

.apexcharts-tooltip-text-goals-label:not(:empty),
.apexcharts-tooltip-text-goals-value:not(:empty) {
  margin-top: -6px;
}

.apexcharts-tooltip-marker {
  display: inline-block;
  position: relative;
  width: 16px;
  height: 16px;
  font-size: 16px;
  line-height: 16px;
  margin-right: 4px;
  text-align: center;
  vertical-align: middle;
  color: inherit;
}

.apexcharts-tooltip-marker::before {
  content: "";
  display: inline-block;
  width: 100%;
  text-align: center;
  color: currentcolor;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  font-size: 26px;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 14px;
  font-weight: 900;
}

.apexcharts-tooltip-marker[shape=circle]::before {
  content: "●";
}

.apexcharts-tooltip-marker[shape=square]::before,
.apexcharts-tooltip-marker[shape=rect]::before {
  content: "■";
  transform: translate(-1px, -2px);
}

.apexcharts-tooltip-marker[shape=line]::before {
  content: "─";
}

.apexcharts-tooltip-marker[shape=diamond]::before {
  content: "◆";
  font-size: 28px;
}

.apexcharts-tooltip-marker[shape=triangle]::before {
  content: "▲";
  font-size: 22px;
}

.apexcharts-tooltip-marker[shape=cross]::before {
  content: "✕";
  font-size: 18px;
}

.apexcharts-tooltip-marker[shape=plus]::before {
  content: "✕";
  transform: rotate(45deg) translate(-1px, -1px);
  font-size: 18px;
}

.apexcharts-tooltip-marker[shape=star]::before {
  content: "★";
  font-size: 18px;
}

.apexcharts-tooltip-marker[shape=sparkle]::before {
  content: "✦";
  font-size: 20px;
}

.apexcharts-tooltip-series-group {
  padding: 0 10px;
  display: none;
  text-align: left;
  justify-content: left;
  align-items: center;
}

.apexcharts-tooltip-series-group.apexcharts-active .apexcharts-tooltip-marker {
  opacity: 1;
}

.apexcharts-tooltip-series-group.apexcharts-active,
.apexcharts-tooltip-series-group:last-child {
  padding-bottom: 4px;
}

.apexcharts-tooltip-y-group {
  padding: 6px 0 5px;
}

.apexcharts-custom-tooltip,
.apexcharts-tooltip-box {
  padding: 4px 8px;
}

.apexcharts-tooltip-boxPlot {
  display: flex;
  flex-direction: column-reverse;
}

.apexcharts-tooltip-box > div {
  margin: 4px 0;
}

.apexcharts-tooltip-box span.value {
  font-weight: 700;
}

.apexcharts-tooltip-rangebar {
  padding: 5px 8px;
}

.apexcharts-tooltip-rangebar .category {
  font-weight: 600;
  color: #777;
}

.apexcharts-tooltip-rangebar .series-name {
  font-weight: 700;
  display: block;
  margin-bottom: 5px;
}

.apexcharts-xaxistooltip,
.apexcharts-yaxistooltip {
  opacity: 0;
  pointer-events: none;
  color: #373d3f;
  font-size: 13px;
  text-align: center;
  border-radius: 2px;
  position: absolute;
  z-index: 10;
  background: #eceff1;
  border: 1px solid #90a4ae;
}

.apexcharts-xaxistooltip {
  padding: 9px 10px;
  transition: 0.15s ease all;
}

.apexcharts-xaxistooltip.apexcharts-theme-dark {
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.5);
  color: #fff;
}

.apexcharts-xaxistooltip:after,
.apexcharts-xaxistooltip:before {
  left: 50%;
  border: solid transparent;
  content: " ";
  height: 0;
  width: 0;
  position: absolute;
  pointer-events: none;
}

.apexcharts-xaxistooltip:after {
  border-color: transparent;
  border-width: 6px;
  margin-left: -6px;
}

.apexcharts-xaxistooltip:before {
  border-color: transparent;
  border-width: 7px;
  margin-left: -7px;
}

.apexcharts-xaxistooltip-bottom:after,
.apexcharts-xaxistooltip-bottom:before {
  bottom: 100%;
}

.apexcharts-xaxistooltip-top:after,
.apexcharts-xaxistooltip-top:before {
  top: 100%;
}

.apexcharts-xaxistooltip-bottom:after {
  border-bottom-color: #eceff1;
}

.apexcharts-xaxistooltip-bottom:before {
  border-bottom-color: #90a4ae;
}

.apexcharts-xaxistooltip-bottom.apexcharts-theme-dark:after,
.apexcharts-xaxistooltip-bottom.apexcharts-theme-dark:before {
  border-bottom-color: rgba(0, 0, 0, 0.5);
}

.apexcharts-xaxistooltip-top:after {
  border-top-color: #eceff1;
}

.apexcharts-xaxistooltip-top:before {
  border-top-color: #90a4ae;
}

.apexcharts-xaxistooltip-top.apexcharts-theme-dark:after,
.apexcharts-xaxistooltip-top.apexcharts-theme-dark:before {
  border-top-color: rgba(0, 0, 0, 0.5);
}

.apexcharts-xaxistooltip.apexcharts-active {
  opacity: 1;
  transition: 0.15s ease all;
}

.apexcharts-yaxistooltip {
  padding: 4px 10px;
}

.apexcharts-yaxistooltip.apexcharts-theme-dark {
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.5);
  color: #fff;
}

.apexcharts-yaxistooltip:after,
.apexcharts-yaxistooltip:before {
  top: 50%;
  border: solid transparent;
  content: " ";
  height: 0;
  width: 0;
  position: absolute;
  pointer-events: none;
}

.apexcharts-yaxistooltip:after {
  border-color: transparent;
  border-width: 6px;
  margin-top: -6px;
}

.apexcharts-yaxistooltip:before {
  border-color: transparent;
  border-width: 7px;
  margin-top: -7px;
}

.apexcharts-yaxistooltip-left:after,
.apexcharts-yaxistooltip-left:before {
  left: 100%;
}

.apexcharts-yaxistooltip-right:after,
.apexcharts-yaxistooltip-right:before {
  right: 100%;
}

.apexcharts-yaxistooltip-left:after {
  border-left-color: #eceff1;
}

.apexcharts-yaxistooltip-left:before {
  border-left-color: #90a4ae;
}

.apexcharts-yaxistooltip-left.apexcharts-theme-dark:after,
.apexcharts-yaxistooltip-left.apexcharts-theme-dark:before {
  border-left-color: rgba(0, 0, 0, 0.5);
}

.apexcharts-yaxistooltip-right:after {
  border-right-color: #eceff1;
}

.apexcharts-yaxistooltip-right:before {
  border-right-color: #90a4ae;
}

.apexcharts-yaxistooltip-right.apexcharts-theme-dark:after,
.apexcharts-yaxistooltip-right.apexcharts-theme-dark:before {
  border-right-color: rgba(0, 0, 0, 0.5);
}

.apexcharts-yaxistooltip.apexcharts-active {
  opacity: 1;
}

.apexcharts-yaxistooltip-hidden {
  display: none;
}

.apexcharts-xcrosshairs,
.apexcharts-ycrosshairs {
  pointer-events: none;
  opacity: 0;
  transition: 0.15s ease all;
}

.apexcharts-xcrosshairs.apexcharts-active,
.apexcharts-ycrosshairs.apexcharts-active {
  opacity: 1;
  transition: 0.15s ease all;
}

.apexcharts-ycrosshairs-hidden {
  opacity: 0;
}

.apexcharts-selection-rect {
  cursor: move;
}

.svg_select_shape {
  stroke-width: 1;
  stroke-dasharray: 10 10;
  stroke: black;
  stroke-opacity: 0.1;
  pointer-events: none;
  fill: none;
}

.svg_select_handle {
  stroke-width: 3;
  stroke: black;
  fill: none;
}

.svg_select_handle_r {
  cursor: e-resize;
}

.svg_select_handle_l {
  cursor: w-resize;
}

.apexcharts-svg.apexcharts-zoomable.hovering-zoom {
  cursor: crosshair;
}

.apexcharts-svg.apexcharts-zoomable.hovering-pan {
  cursor: move;
}

.apexcharts-menu-icon,
.apexcharts-pan-icon,
.apexcharts-reset-icon,
.apexcharts-selection-icon,
.apexcharts-toolbar-custom-icon,
.apexcharts-zoom-icon,
.apexcharts-zoomin-icon,
.apexcharts-zoomout-icon {
  cursor: pointer;
  width: 20px;
  height: 20px;
  line-height: 24px;
  color: #6e8192;
  text-align: center;
}

.apexcharts-menu-icon svg,
.apexcharts-reset-icon svg,
.apexcharts-zoom-icon svg,
.apexcharts-zoomin-icon svg,
.apexcharts-zoomout-icon svg {
  fill: #6e8192;
}

.apexcharts-selection-icon svg {
  fill: #444;
  transform: scale(0.76);
}

.apexcharts-theme-dark .apexcharts-menu-icon svg,
.apexcharts-theme-dark .apexcharts-pan-icon svg,
.apexcharts-theme-dark .apexcharts-reset-icon svg,
.apexcharts-theme-dark .apexcharts-selection-icon svg,
.apexcharts-theme-dark .apexcharts-toolbar-custom-icon svg,
.apexcharts-theme-dark .apexcharts-zoom-icon svg,
.apexcharts-theme-dark .apexcharts-zoomin-icon svg,
.apexcharts-theme-dark .apexcharts-zoomout-icon svg {
  fill: #f3f4f5;
}

.apexcharts-canvas .apexcharts-reset-zoom-icon.apexcharts-selected svg,
.apexcharts-canvas .apexcharts-selection-icon.apexcharts-selected svg,
.apexcharts-canvas .apexcharts-zoom-icon.apexcharts-selected svg {
  fill: #008ffb;
}

.apexcharts-theme-light .apexcharts-menu-icon:hover svg,
.apexcharts-theme-light .apexcharts-reset-icon:hover svg,
.apexcharts-theme-light .apexcharts-selection-icon:not(.apexcharts-selected):hover svg,
.apexcharts-theme-light .apexcharts-zoom-icon:not(.apexcharts-selected):hover svg,
.apexcharts-theme-light .apexcharts-zoomin-icon:hover svg,
.apexcharts-theme-light .apexcharts-zoomout-icon:hover svg {
  fill: #333;
}

.apexcharts-menu-icon,
.apexcharts-selection-icon {
  position: relative;
}

.apexcharts-reset-icon {
  margin-left: 5px;
}

.apexcharts-menu-icon,
.apexcharts-reset-icon,
.apexcharts-zoom-icon {
  transform: scale(0.85);
}

.apexcharts-zoomin-icon,
.apexcharts-zoomout-icon {
  transform: scale(0.7);
}

.apexcharts-zoomout-icon {
  margin-right: 3px;
}

.apexcharts-pan-icon {
  transform: scale(0.62);
  position: relative;
  left: 1px;
  top: 0;
}

.apexcharts-pan-icon svg {
  fill: #fff;
  stroke: #6e8192;
  stroke-width: 2;
}

.apexcharts-pan-icon.apexcharts-selected svg {
  stroke: #008ffb;
}

.apexcharts-pan-icon:not(.apexcharts-selected):hover svg {
  stroke: #333;
}

.apexcharts-toolbar {
  position: absolute;
  z-index: 11;
  max-width: 176px;
  text-align: right;
  border-radius: 3px;
  padding: 0 6px 2px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.apexcharts-menu {
  background: #fff;
  position: absolute;
  top: 100%;
  border: 1px solid #ddd;
  border-radius: 3px;
  padding: 3px;
  right: 10px;
  opacity: 0;
  min-width: 110px;
  transition: 0.15s ease all;
  pointer-events: none;
}

.apexcharts-menu.apexcharts-menu-open {
  opacity: 1;
  pointer-events: all;
  transition: 0.15s ease all;
}

.apexcharts-menu-item {
  padding: 6px 7px;
  font-size: 12px;
  cursor: pointer;
}

.apexcharts-theme-light .apexcharts-menu-item:hover {
  background: #eee;
}

.apexcharts-theme-dark .apexcharts-menu {
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
}

@media screen and (min-width: 768px) {
  .apexcharts-canvas:hover .apexcharts-toolbar {
    opacity: 1;
  }
}
.apexcharts-canvas .apexcharts-element-hidden,
.apexcharts-datalabel.apexcharts-element-hidden,
.apexcharts-hide .apexcharts-series-points {
  opacity: 0;
}

.apexcharts-hidden-element-shown {
  opacity: 1;
  transition: 0.25s ease all;
}

.apexcharts-datalabel,
.apexcharts-datalabel-label,
.apexcharts-datalabel-value,
.apexcharts-datalabels,
.apexcharts-pie-label {
  cursor: default;
  pointer-events: none;
}

.apexcharts-pie-label-delay {
  opacity: 0;
  animation-name: opaque;
  animation-duration: 0.3s;
  animation-fill-mode: forwards;
  animation-timing-function: ease;
}

.apexcharts-radialbar-label {
  cursor: pointer;
}

.apexcharts-annotation-rect,
.apexcharts-area-series .apexcharts-area,
.apexcharts-gridline,
.apexcharts-line,
.apexcharts-point-annotation-label,
.apexcharts-radar-series path:not(.apexcharts-marker),
.apexcharts-radar-series polygon,
.apexcharts-toolbar svg,
.apexcharts-tooltip .apexcharts-marker,
.apexcharts-xaxis-annotation-label,
.apexcharts-yaxis-annotation-label,
.apexcharts-zoom-rect,
.no-pointer-events {
  pointer-events: none;
}

.apexcharts-tooltip-active .apexcharts-marker {
  transition: 0.15s ease all;
}

.apexcharts-radar-series .apexcharts-yaxis {
  pointer-events: none;
}

.resize-triggers {
  animation: 1ms resizeanim;
  visibility: hidden;
  opacity: 0;
  height: 100%;
  width: 100%;
  overflow: hidden;
}

.contract-trigger:before,
.resize-triggers,
.resize-triggers > div {
  content: " ";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
}

.resize-triggers > div {
  height: 100%;
  width: 100%;
  background: #eee;
  overflow: auto;
}

.contract-trigger:before {
  overflow: hidden;
  width: 200%;
  height: 200%;
}

.apexcharts-bar-goals-markers {
  pointer-events: none;
}

.apexcharts-bar-shadows {
  pointer-events: none;
}

.apexcharts-rangebar-goals-markers {
  pointer-events: none;
}

.apexcharts-disable-transitions * {
  transition: none !important;
}

.form-control:disabled,
.form-control[disabled] {
  background-color: #DBDFE9;
  opacity: 0.6;
  cursor: default;
}

/* ========================================
   SHARED CALENDAR STYLES
   ======================================== */
/* Shared date picker styles */
.calendar-date-picker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.calendar-date-nav {
  background: transparent;
  border: none;
  color: #1c3faa;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.calendar-date-nav:hover {
  background: #e4e6ef;
}

.calendar-date-input {
  min-width: 140px;
  text-align: center;
  font-size: 1.125rem;
  font-weight: 600;
  color: #5a6c7d;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.calendar-date-input:focus {
  outline: none;
  box-shadow: none;
}

/* Shared calendar wrapper and table base styles */
.calendar-wrapper {
  overflow-x: auto;
  position: relative;
}

.calendar-table {
  min-width: max(100%, 800px);
  border: none;
  border-collapse: separate;
  border-spacing: 0;
}

.calendar-table thead th {
  border: none;
  border-bottom: 1px dashed #e0e8ff;
  border-right: 1px dashed #e0e8ff;
}

.calendar-table thead th:first-child {
  border-top-left-radius: 12px;
}

.calendar-table thead th:last-child {
  border-top-right-radius: 12px;
  border-right: none;
}

.calendar-table tbody td {
  border: none;
  border-bottom: 1px dashed #e0e8ff;
  border-right: 1px dashed #e0e8ff;
}

.calendar-table tbody tr:last-child td {
  border-bottom: none;
}

.calendar-table tbody td:last-child {
  border-right: none;
}

/* Shared slot base styles */
.calendar-slot {
  border: 1px solid #e0e8ff;
  border-radius: 10px;
  background-color: #ffffff;
  padding: 0.5rem 0.65rem;
  min-height: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: all 0.15s ease-in-out;
}

.calendar-slot-text {
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.2;
  color: #1a1f36;
  text-align: center;
}

.calendar-slot--empty {
  border: 1px dashed #c8d4f0;
  background: transparent;
  min-height: 40px;
}

.calendar-slot--editable {
  cursor: pointer;
}

.calendar-slot--editable:hover {
  border-color: #a1b4d6;
  box-shadow: 0 4px 12px rgba(28, 63, 170, 0.18);
}

.calendar-slot--warning {
  border-color: #ffdfa7;
  background: linear-gradient(180deg, #fff8ec 0%, #fffbf6 100%);
}

.calendar-slot--danger {
  border-color: #ffb9b9;
  background: linear-gradient(180deg, #fff3f3 0%, #fff9f9 100%);
}

.calendar-slot--success {
  border-color: #b8e1b5;
  background: linear-gradient(180deg, #f3fff3 0%, #fafff8 100%);
}

.calendar-slot--closure {
  border-color: #d0d9e8;
  background: linear-gradient(180deg, #f5f7fa 0%, #fafbfc 100%);
  opacity: 0.7;
}

.calendar-slot--closure .calendar-slot-text {
  color: #6c7a8f;
  font-size: 0.75rem;
  font-style: italic;
}

/* Shared column status colors */
.calendar-col--success {
  background-color: rgba(44, 160, 44, 0.12);
}

.calendar-col--warning {
  background-color: rgba(255, 193, 7, 0.12);
}

.calendar-col--danger {
  background-color: rgba(220, 53, 69, 0.12);
}

/* ========================================
   SQUAD CALENDAR (squads/tabs/_calendar.blade.php)
   ======================================== */
.squad-calendar-date-picker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.squad-calendar-date-nav {
  background: transparent;
  border: none;
  color: #1c3faa;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.squad-calendar-date-nav:hover {
  background: #e4e6ef;
}

.squad-calendar-date-input {
  min-width: 140px;
  text-align: center;
  font-size: 1.125rem;
  font-weight: 600;
  color: #5a6c7d;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.squad-calendar-date-input:focus {
  outline: none;
  box-shadow: none;
}

.squad-calendar-wrapper {
  overflow-x: auto;
  position: relative;
}

.squad-calendar-table {
  min-width: max(100%, 800px);
  border: none;
  border-collapse: separate;
  border-spacing: 0;
}

.squad-calendar-table thead th {
  background: #FFF;
  border: none;
  border-bottom: 1px solid #F3F6F9;
  border-right: 1px dashed #E4E6EF;
}

.squad-calendar-table thead th.squad-calendar__member-cell,
.squad-calendar-table thead th.squad-calendar__info-cell,
.squad-calendar-table thead th.squad-calendar__extra-cell,
.squad-calendar-table thead th.squad-calendar__col {
  background: #EFF7FF !important;
}

.squad-calendar-table thead th:first-child {
  border-top-left-radius: 12px;
}

.squad-calendar-table thead th:last-child {
  border-top-right-radius: 12px;
  border-right: none;
}

.squad-calendar-table tbody td {
  border: none;
  border-bottom: 1px solid #F3F6F9;
  border-right: 1px dashed #E4E6EF;
}

.squad-calendar-table tbody tr:last-child td {
  border-bottom: none;
}

.squad-calendar-table tbody td:last-child {
  border-right: none;
}

.squad-calendar-table .squad-calendar__member-cell {
  position: sticky;
  left: 0;
  background: #fff;
  z-index: 3;
  min-width: 160px;
  border-bottom: 1px solid #F3F6F9;
  border-right: 1px dashed #E4E6EF;
}

.squad-calendar-table thead .squad-calendar__member-cell {
  z-index: 5;
}

.squad-calendar-table .squad-calendar__info-cell {
  position: sticky;
  background: white;
  z-index: 3;
  min-width: 100px;
  border-bottom: 1px solid #F3F6F9;
  border-right: 1px dashed #E4E6EF;
}

.squad-calendar-table .squad-calendar__info-cell:nth-child(2) {
  left: 160px;
}

.squad-calendar-table .squad-calendar__info-cell:nth-child(3) {
  left: 260px;
  min-width: 80px;
}

.squad-calendar-table .squad-calendar__info-cell:nth-child(4) {
  left: 340px;
  min-width: 80px;
}

.squad-calendar-table thead .squad-calendar__info-cell {
  z-index: 5;
}

.squad-calendar-table .squad-calendar__extra-cell {
  position: sticky;
  background: #FFF;
  z-index: 4;
  width: 50px;
  min-width: 50px;
  max-width: 50px;
  text-align: center;
  /* I valori left vengono calcolati dinamicamente via JavaScript */
}

/* Quando le colonne sono nascoste, rimuovi lo sticky positioning */
.squad-calendar-table .squad-calendar__extra-cell.d-none {
  position: relative;
  left: auto !important;
}

.squad-calendar-table thead .squad-calendar__extra-cell {
  z-index: 5;
}

.squad-calendar__extra-cell .btn {
  padding: 0.25rem;
}

.squad-calendar__extra-cell.is-collapsed .squad-calendar__extra-cell-label {
  opacity: 0.5;
}

.squad-calendar__slot {
  border: 1px solid #e0e8ff;
  border-radius: 10px;
  background-color: #ffffff;
  padding: 0.5rem 0.65rem;
  min-height: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: all 0.15s ease-in-out;
}

.squad-calendar__slot-text {
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.2;
  color: #1a1f36;
  text-align: center;
}

.squad-calendar__slot--empty {
  border: 1px dashed #c8d4f0;
  background: transparent;
  min-height: 40px;
}

.squad-calendar__slot--editable {
  cursor: pointer;
  opacity: 1 !important;
}

.squad-calendar__slot--editable:hover {
  border-color: #a1b4d6;
  box-shadow: 0 4px 12px rgba(28, 63, 170, 0.18);
}

.squad-calendar__slot--rip {
  border-color: #ffdfa7;
  background: linear-gradient(180deg, #fff8ec 0%, #fffbf6 100%);
}

.squad-calendar__slot--warning {
  border-color: #ffdfa7;
  background: linear-gradient(180deg, #fff8ec 0%, #fffbf6 100%);
}

.squad-calendar__slot--danger {
  border-color: #ffb9b9;
  background: linear-gradient(180deg, #fff3f3 0%, #fff9f9 100%);
}

.squad-calendar__slot--success {
  border-color: #b8e1b5;
  background: linear-gradient(180deg, #f3fff3 0%, #fafff8 100%);
}

.squad-calendar__slot--closure {
  border-color: #d0d9e8;
  background: linear-gradient(180deg, #f5f7fa 0%, #fafbfc 100%);
  opacity: 0.7;
}

.squad-calendar__slot--closure .squad-calendar__slot-text {
  color: #6c7a8f;
  font-size: 0.75rem;
  font-style: italic;
}

.squad-calendar-table th.squad-calendar__col,
.squad-calendar-table td.squad-calendar__col {
  min-width: 60px;
}

.squad-calendar-table th.squad-calendar__col--success,
.squad-calendar-table td.squad-calendar__col--success {
  background-color: rgba(44, 160, 44, 0.12);
}

.squad-calendar-table th.squad-calendar__col--warning,
.squad-calendar-table td.squad-calendar__col--warning {
  background-color: rgba(255, 193, 7, 0.12);
}

.squad-calendar-table th.squad-calendar__col--danger,
.squad-calendar-table td.squad-calendar__col--danger {
  background-color: rgba(220, 53, 69, 0.12);
}

/* ========================================
   ROTATION CALENDAR (rotations/tabs/_calendar.blade.php)
   ======================================== */
.rotation-calendar-date-picker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.rotation-calendar-date-nav {
  background: transparent;
  border: none;
  color: #1c3faa;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.rotation-calendar-date-nav:hover {
  background: #e4e6ef;
}

.rotation-calendar-date-input {
  min-width: 140px;
  text-align: center;
  font-size: 1.125rem;
  font-weight: 600;
  color: #5a6c7d;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.rotation-calendar-date-input:focus {
  outline: none;
  box-shadow: none;
}

.rotation-calendar-wrapper {
  overflow-x: auto;
  position: relative;
}

.rotation-calendar-table {
  min-width: max(100%, 800px);
  border: none;
  border-collapse: separate;
  border-spacing: 0;
}

.rotation-calendar-table thead th {
  border: none;
  border-bottom: 1px dashed #e0e8ff;
  border-right: 1px dashed #e0e8ff;
}

.rotation-calendar-table thead th:first-child {
  border-top-left-radius: 12px;
}

.rotation-calendar-table thead th:last-child {
  border-top-right-radius: 12px;
  border-right: none;
}

.rotation-calendar-table tbody td {
  border: none;
  border-bottom: 1px dashed #e0e8ff;
  border-right: 1px dashed #e0e8ff;
}

.rotation-calendar-table tbody tr:last-child td {
  border-bottom: none;
}

.rotation-calendar-table tbody td:last-child {
  border-right: none;
}

.rotation-calendar-table .rotation-calendar__team-cell {
  position: sticky;
  left: 0;
  background: #fff;
  z-index: 3;
  min-width: 160px;
  border-right: 1px dashed #e0e8ff;
  border-bottom: 1px dashed #e0e8ff;
}

.rotation-calendar-table thead .rotation-calendar__team-cell {
  z-index: 5;
}

.rotation-calendar__slot {
  border: 1px solid #e0e8ff;
  border-radius: 10px;
  background-color: #ffffff;
  padding: 0.5rem 0.65rem;
  min-height: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: all 0.15s ease-in-out;
}

.rotation-calendar__slot-text {
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.2;
  color: #1a1f36;
  text-align: center;
}

.rotation-calendar__slot--empty {
  border: 1px dashed #c8d4f0;
  background: transparent;
  min-height: 40px;
}

.rotation-calendar__slot--editable {
  cursor: pointer;
}

.rotation-calendar__slot--editable:hover {
  border-color: #a1b4d6;
  box-shadow: 0 4px 12px rgba(28, 63, 170, 0.18);
}

.rotation-calendar__slot--warning {
  border-color: #ffdfa7;
  background: linear-gradient(180deg, #fff8ec 0%, #fffbf6 100%);
}

.rotation-calendar__slot--danger {
  border-color: #ffb9b9;
  background: linear-gradient(180deg, #fff3f3 0%, #fff9f9 100%);
}

.rotation-calendar__slot--success {
  border-color: #b8e1b5;
  background: linear-gradient(180deg, #f3fff3 0%, #fafff8 100%);
}

.rotation-calendar__slot--closure {
  border-color: #d0d9e8;
  background: linear-gradient(180deg, #f5f7fa 0%, #fafbfc 100%);
  opacity: 0.7;
}

.rotation-calendar__slot--closure .rotation-calendar__slot-text {
  color: #6c7a8f;
  font-size: 0.75rem;
  font-style: italic;
}

.rotation-calendar-table th.rotation-calendar__col,
.rotation-calendar-table td.rotation-calendar__col {
  min-width: 60px;
}

.rotation-calendar-table th.rotation-calendar__col--success,
.rotation-calendar-table td.rotation-calendar__col--success {
  background-color: rgba(44, 160, 44, 0.12);
}

.rotation-calendar-table th.rotation-calendar__col--warning,
.rotation-calendar-table td.rotation-calendar__col--warning {
  background-color: rgba(255, 193, 7, 0.12);
}

.rotation-calendar-table th.rotation-calendar__col--danger,
.rotation-calendar-table td.rotation-calendar__col--danger {
  background-color: rgba(220, 53, 69, 0.12);
}

/* ========================================
   RIP DISTRIBUTION & STAFFING (squads/rip_distribution.blade.php)
   ======================================== */
.rip-sequence-tooltip .tooltip-inner {
  white-space: nowrap;
  text-align: left;
}

.staffing-table--shift thead th {
  background: #C8E3FF;
}

.staffing-table thead th .staffing-date-alert {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #000000;
  font-weight: 600;
}

.staffing-table thead th .staffing-date-alert::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e63757;
  display: inline-block;
}

.staffing-table thead th .staffing-date-alert--warning::before {
  background: #f1a208;
}

.staffing-table thead th .staffing-header-icon {
  display: block;
  font-size: 1.2rem;
  color: #6b7a99;
  margin-bottom: 0.5rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.staffing-table thead th .staffing-header-icon:hover {
  color: #1c3faa;
}

.staffing-table thead th .staffing-date-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.staffing-surface {
  border-radius: 12px;
  border: 1px solid #dce6ff;
  background-color: #ffffff;
  box-shadow: 0 20px 45px -30px rgba(61, 71, 133, 0.45);
  overflow: hidden;
}

.staffing-day-slot--empty .staffing-day-slot__add-icon {
  color: #dc3545;
  font-size: 1.8rem;
}

.staffing-card-header {
  background: #ffffff;
  border-radius: 18px 18px 0 0;
}

.staffing-surface[data-staffing-card] .card-header {
  border-bottom: 1px solid #e4e6ef;
}

.staffing-card-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 2rem;
}

.staffing-card-toggle {
  border: 0;
  background: transparent;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex: 1;
  text-align: left;
}

.staffing-card-toggle:focus-visible {
  outline: none;
  box-shadow: none;
}

.staffing-card-title {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  width: 100%;
}

.staffing-card-title__name {
  color: #1c3faa;
  font-weight: 700;
  font-size: 1.25rem;
}

.staffing-card-title__meta {
  color: #5a6ea5;
  font-size: 0.8rem;
  font-weight: 600;
}

.staffing-card-title__caret {
  color: #7d8fbd;
  font-size: 1rem;
  transition: transform 0.2s ease;
}

.staffing-card-title__alert {
  color: #f24d6a;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
}

.staffing-card-toggle.collapsed .staffing-card-title__caret {
  transform: rotate(180deg);
}

.staffing-card-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}

.staffing-card-actions .btn-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.staffing-surface .card-header {
  padding: 1.5rem 2rem;
}

.staffing-surface .card-title h3 {
  font-size: 1.25rem;
}

.staffing-table {
  border-collapse: separate;
  border-spacing: 0;
}

.staffing-table thead th {
  background: #C8E3FF;
  color: #6b7a99;
  font-weight: 600;
  border: none;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  position: sticky;
  z-index: 10;
  min-width: 180px;
  box-sizing: border-box;
}

.staffing-table thead th:nth-child(1) {
  left: 0;
  z-index: 20;
  width: 180px;
}

.staffing-table thead th:nth-child(2) {
  left: 180px;
  z-index: 20;
  width: 150px;
}

.staffing-table tbody td:nth-child(1) {
  position: sticky;
  left: 0;
  background: #ffffff;
  z-index: 15;
  width: 180px;
  box-sizing: border-box;
}

.staffing-table tbody td:nth-child(2) {
  position: sticky;
  left: 180px;
  background: #ffffff;
  z-index: 15;
  width: 150px;
  box-sizing: border-box;
}

.staffing-table tbody td {
  background: #ffffff;
  border: none;
  border-bottom: 1px dashed #e0e8ff;
  border-right: 1px dashed #e0e8ff;
  padding: 1rem;
  vertical-align: top;
  min-width: 180px;
}

.staffing-table tbody td:first-child {
  padding-left: 1rem;
}

.staffing-day-slot {
  position: relative;
  border: 1px solid #d8deed;
  border-radius: 14px;
  background-color: #ffffff;
  padding: 0.85rem 1rem;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  min-height: 78px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.65rem;
}

.staffing-day-slot__title {
  color: #1a1f36;
  font-weight: 600;
  font-size: 0.92rem;
}

.staffing-day-slot__footer {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.75rem;
  color: #4a5a84;
}

.staffing-day-slot--warning {
  border-color: #ffdfa7;
  background: linear-gradient(180deg, #fff8ec 0%, #fffbf6 100%);
}

.staffing-day-slot--danger {
  border-color: #ffb9b9;
  background: linear-gradient(180deg, #fff3f3 0%, #fff9f9 100%);
}

.staffing-day-slot--empty {
  border: 1px dashed #b0c6ff;
  background: #ffffff;
  align-items: center;
  justify-content: center;
}

.staffing-day-slot__icons {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #4a5a84;
  font-size: 1rem;
}

.staffing-day-slot__icons i {
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}

.staffing-day-slot__icons i:hover {
  color: #2260ff;
  transform: scale(1.15);
}

.staffing-day-slot__remove {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  opacity: 0;
  transition: opacity 0.2s ease;
  width: 18px;
  height: 18px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
}

.staffing-day-slot:hover .staffing-day-slot__remove {
  opacity: 1;
}

.staffing-subarea-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
}

.staffing-subarea-title__add-icon,
.staffing-subarea-title__remove-icon {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  background-color: #3b82f6;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  opacity: 0;
  transition: opacity 0.2s ease;
  cursor: pointer;
}

.staffing-subarea-title__remove-icon {
  background-color: #ef4444;
}

.staffing-table tbody tr td:first-child:hover .staffing-subarea-title__add-icon,
.staffing-table tbody tr td:first-child:hover .staffing-subarea-title__remove-icon {
  opacity: 1;
}

.staffing-table tbody tr {
  transition: opacity 0.3s ease, transform 0.3s ease, max-height 0.3s ease;
}

.staffing-table tbody tr.row-removing {
  opacity: 0;
  transform: translateY(-10px);
  max-height: 0;
}

.staffing-table tbody tr.row-adding {
  opacity: 0;
  transform: translateY(-10px);
}

.staffing-table tbody tr:last-child td {
  border-bottom: none !important;
}

.staffing-table tbody td:last-child {
  border-right: none !important;
}

.staffing-table tbody td:first-child,
.staffing-table thead th:first-child {
  padding-left: 1rem !important;
}

.staffing-card-collapse {
  border-radius: 0 0 18px 18px;
  overflow: hidden;
}

.staffing-surface .accordion-button {
  background-color: #ffffff !important;
  box-shadow: none !important;
  border: none !important;
}

.staffing-surface .accordion-button:not(.collapsed) {
  background-color: #ffffff !important;
  box-shadow: none !important;
  border: none !important;
}

.staffing-surface .accordion-button:focus {
  box-shadow: none !important;
  border: none !important;
}

.staffing-surface .accordion-button::after {
  margin-left: 0.75rem;
  margin-right: 0;
}

.staffing-surface .accordion-item {
  border-bottom: 1px solid #e4e6ef !important;
}

.staffing-surface .accordion-item:last-child {
  border-bottom: none !important;
}

.staffing-table thead th:first-child {
  border-top-left-radius: 12px !important;
  border-bottom-left-radius: 12px !important;
  overflow: hidden;
}

.staffing-table thead th:last-child {
  border-top-right-radius: 12px !important;
  border-bottom-right-radius: 12px !important;
}

.staffing-tabs-container {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
}

.staffing-tabs-container::-webkit-scrollbar {
  height: 6px;
}

.staffing-tabs-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.staffing-tabs-container::-webkit-scrollbar-thumb {
  background: #c4c4c4;
  border-radius: 3px;
}

.staffing-tabs-container::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

.staffing-tabs-list {
  display: flex;
  flex-wrap: nowrap;
  margin: 0;
  padding: 0;
}

.staffing-tabs-list .nav-link {
  white-space: nowrap;
}

/* Employee Info Tooltip (used in rip-distribution) */
.employee-info-tooltip {
  position: fixed;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  padding: 1.5rem;
  width: 420px;
  z-index: 1050;
  display: none;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}

.employee-info-tooltip.show {
  display: block;
}

.employee-info-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e4e6ef;
}

.employee-info-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1f36;
}

.employee-info-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  background: #f5f8fa;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #5a6ea5;
}

.employee-info-timeline {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.employee-info-timeline-item {
  flex: 1;
  text-align: center;
}

.employee-info-timeline-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.5rem;
  font-size: 1.25rem;
}

.employee-info-timeline-icon.red {
  background: #ffebee;
  color: #f44336;
}

.employee-info-timeline-icon.orange {
  background: #fff3e0;
  color: #ff9800;
}

.employee-info-timeline-icon.green {
  background: #e8f5e9;
  color: #4caf50;
}

.employee-info-timeline-label {
  font-size: 0.75rem;
  color: #6b7a99;
  margin-bottom: 0.25rem;
}

.employee-info-timeline-date {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1a1f36;
}

.employee-info-timeline-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b0c6ff;
  font-size: 1.25rem;
}

.employee-info-section {
  margin-bottom: 1.5rem;
}

.employee-info-section:last-child {
  margin-bottom: 0;
}

.employee-info-section-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #1a1f36;
  margin-bottom: 0.75rem;
}

.employee-info-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.employee-info-tag {
  padding: 0.4rem 0.75rem;
  background: #f5f8fa;
  border-radius: 6px;
  font-size: 0.8rem;
  color: #5a6ea5;
}

.employee-info-roles {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.employee-info-role {
  padding: 0.4rem 0.75rem;
  background: #f5f8fa;
  border-radius: 6px;
  font-size: 0.8rem;
  color: #5a6ea5;
}

.employee-info-coverage {
  margin-bottom: 1.5rem;
}

.employee-info-coverage-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.employee-info-coverage-label {
  font-size: 0.875rem;
  color: #1a1f36;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.employee-info-coverage-star {
  color: #ffa726;
}

.employee-info-coverage-bar {
  flex: 1;
  height: 8px;
  background: #e4e6ef;
  border-radius: 4px;
  margin: 0 1rem;
  overflow: hidden;
}

.employee-info-coverage-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.3s ease;
}

.employee-info-coverage-fill.green {
  background: #4caf50;
}

.employee-info-coverage-fill.orange {
  background: #ff9800;
}

.employee-info-coverage-fill.gray {
  background: #e4e6ef;
}

.employee-info-coverage-percent {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1a1f36;
  min-width: 45px;
  text-align: right;
}

.employee-info-contacts {
  display: flex;
  gap: 1rem;
}

.employee-info-contact {
  flex: 1;
  text-align: center;
}

.employee-info-contact-label {
  font-size: 0.75rem;
  color: #6b7a99;
  margin-bottom: 0.5rem;
}

.employee-info-contact-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1f36;
  position: relative;
}

.employee-info-contact-circle {
  width: 60px;
  height: 60px;
  margin: 0 auto;
}

/* ========================================
   STAFFING PAGE SPECIFIC STYLES (staffing/staffing.blade.php)
   ======================================== */
.staffing-layout {
  display: flex;
  gap: 0;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.staffing-main-content {
  flex: 1;
  transition: all 0.3s ease;
  min-width: 0;
}

.staffing-main-content.sidebar-active {
  margin-right: 370px;
}

.staffing-sidebar {
  position: fixed;
  right: -370px;
  width: 350px;
  background: #ffffff;
  border: 2px solid #2260ff;
  border-radius: 18px;
  box-shadow: 0 4px 20px rgba(34, 96, 255, 0.15);
  transition: right 0.3s ease;
  z-index: 95;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.staffing-sidebar--operations {
  box-shadow: 0 4px 20px rgba(34, 96, 255, 0.08);
}

.staffing-sidebar--operations .staffing-sidebar-title {
  letter-spacing: 0.08em;
}

.operations-sidebar-date {
  gap: 1rem;
  color: #5a6ea5;
}

.operations-sidebar-date-nav {
  color: #7d8fbd;
  transition: color 0.2s ease;
}

.operations-sidebar-date-nav:hover {
  color: #1c3faa;
}

.operations-sidebar-date-text {
  color: #5a6ea5;
  letter-spacing: 0.02em;
}

.operations-sidebar-body {
  gap: 2rem;
}

.operations-lines {
  gap: 0.5rem;
}

.operations-summary__rows {
  gap: 0.75rem;
}

.operations-block__title {
  color: #000000;
  text-transform: none;
}

.operations-line__name,
.operations-summary__title,
.operations-summary__value,
.operations-summary__row {
  color: #000000;
}

.operations-line {
  background: rgba(200, 227, 255, 0.3019607843);
  border: 2px solid #00A3FF;
  border-radius: 8px;
  gap: 1rem;
}

.operations-line__slots {
  gap: 0.4rem;
}

.operations-pill {
  min-width: 3.5rem;
  height: 2rem;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  letter-spacing: 0.02em;
  color: #ffffff;
  font-size: 0.8rem;
}

.operations-pill--active {
  background-color: #00965E;
}

.operations-pill--secondary {
  background-color: #2CD5C4;
}

.operations-pill--empty {
  background-color: #AAB2C3;
}

.operations-summary {
  background: rgba(200, 227, 255, 0.3019607843);
  border: 2px solid #00A3FF;
  border-radius: 8px;
}

.staffing-sidebar-header {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 3rem 1.5rem 3rem;
  border-bottom: 1px solid #e4e6ef;
  background: #ffffff;
  flex-shrink: 0;
}

.staffing-sidebar-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2196f3;
  margin-bottom: 1rem;
  text-align: center;
}

.staffing-sidebar-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: #7e8299;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.staffing-sidebar-close:hover {
  background: #f5f8fa;
  color: #1c3faa;
}

.staffing-sidebar-date {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.staffing-sidebar-date-nav {
  background: transparent;
  border: none;
  color: #1c3faa;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.staffing-sidebar-date-nav:hover {
  background: #e4e6ef;
}

.staffing-sidebar-date-text {
  font-size: 1.125rem;
  font-weight: 600;
  color: #5a6c7d;
  min-width: 120px;
  text-align: center;
}

#sidebar-shifts-container {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
}

.staffing-sidebar-shift {
  margin-bottom: 1.5rem;
}

.staffing-sidebar-shift:last-child {
  margin-bottom: 0;
}

.staffing-sidebar-shift-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.staffing-sidebar-shift-title {
  font-size: 1rem;
  font-weight: 600;
  color: #1a1f36;
}

.staffing-sidebar-card {
  background: #e3f2fd;
  border: 2px solid #2196f3;
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 0.75rem;
}

.staffing-sidebar-card:last-child {
  margin-bottom: 0;
}

.staffing-sidebar-card-code {
  font-size: 0.875rem;
  font-weight: 700;
  color: #000000;
  margin-bottom: 0.5rem;
}

.staffing-sidebar-card-desc {
  font-size: 0.875rem;
  font-weight: 600;
  color: #000000;
  margin-bottom: 0.5rem;
}

.staffing-sidebar-card-number {
  font-size: 0.875rem;
  color: #666666;
  margin-bottom: 0.5rem;
}

.staffing-sidebar-card-badge {
  display: block;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  width: 100%;
  text-align: left;
}

.staffing-sidebar-card-badge.tier {
  background: #ff9800;
  color: #000000;
}

.staffing-sidebar-card-badge.size {
  background: #4caf50;
  color: #000000;
}

.staffing-date-range {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: #f5f8fa;
  border-radius: 8px;
  white-space: nowrap;
}

/* ========================================
   EMPLOYEE CALENDAR (employees/details.blade.php)
   ======================================== */
.employee-calendar-surface {
  border-radius: 18px;
  border: 1px solid #dce6ff;
  background-color: #fff;
  box-shadow: 0 20px 45px -30px rgba(61, 71, 133, 0.45);
  overflow: hidden;
}

.employee-calendar-wrapper {
  overflow-x: auto;
  overflow-y: visible;
  position: relative;
}

.employee-calendar-wrapper::-webkit-scrollbar {
  height: 8px;
}

.employee-calendar-wrapper::-webkit-scrollbar-track {
  background: #f5f8fa;
  border-radius: 4px;
}

.employee-calendar-wrapper::-webkit-scrollbar-thumb {
  background: #c4c4c4;
  border-radius: 4px;
}

.employee-calendar-wrapper::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

.employee-calendar-table {
  border-collapse: separate;
  border-spacing: 0;
  width: auto;
  min-width: 100%;
}

.employee-calendar-table thead th,
.employee-calendar-table tbody td {
  border: none !important;
  border-bottom: 1px dashed #e0e8ff !important;
  border-right: 1px dashed #e0e8ff !important;
  min-width: 60px;
}

.employee-calendar-table thead th:last-child,
.employee-calendar-table tbody td:last-child {
  border-right: none !important;
}

.employee-calendar-table tbody tr:last-child td {
  border-bottom: none !important;
}

.employee-calendar-table thead th {
  background: #fff !important;
  color: #1a1f36;
  font-weight: 700;
  padding: 0.75rem 0.5rem;
  font-size: 0.85rem;
  text-align: center;
}

.employee-calendar-table tbody td {
  background: #fff;
  padding: 0.5rem;
  vertical-align: middle;
  text-align: center;
}

.employee-calendar__member-cell {
  text-align: left !important;
  font-weight: 700 !important;
  color: #1a1f36;
  font-size: 0.9rem;
  position: sticky !important;
  left: 0 !important;
  background: #fff !important;
  z-index: 10 !important;
  min-width: 160px !important;
  max-width: 160px !important;
  box-shadow: 2px 0 4px rgba(0, 0, 0, 0.05) !important;
}

.employee-calendar-table thead .employee-calendar__member-cell {
  z-index: 20;
}

.employee-calendar__col--disabled {
  background: #f5f8fa !important;
  opacity: 0.3;
}

.employee-calendar__slot {
  border: 1px solid #e0e8ff;
  border-radius: 10px;
  background-color: #ffffff;
  padding: 0.5rem 0.65rem;
  min-height: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: all 0.15s ease-in-out;
}

.employee-calendar__slot--disabled {
  border: none;
  background: transparent;
  min-height: 48px;
}

.employee-calendar__slot .badge {
  font-size: 0.65rem;
  font-weight: 500;
  padding: 0.2rem 0.4rem;
}

.employee-calendar__slot:not(.employee-calendar__slot--rip):not(.employee-calendar__slot--closure) .badge.bg-primary {
  background-color: #e1f0ff !important;
  color: #0085CA !important;
}

.employee-calendar__slot--rip .badge.bg-primary {
  background-color: #fff4e6 !important;
  color: #d97706 !important;
}

.employee-calendar__slot-text {
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: #1a1f36 !important;
}

.employee-calendar__slot--rip .employee-calendar__slot-text {
  color: #d97706 !important;
}

.employee-calendar__slot--rip {
  border-color: #ffdfa7;
  background: linear-gradient(180deg, #fff8ec 0%, #fffbf6 100%);
}

.employee-calendar__slot--closure {
  border-color: #d0d9e8;
  background: linear-gradient(180deg, #f5f7fa 0%, #fafbfc 100%);
  opacity: 0.7;
}

.employee-calendar__slot--closure .employee-calendar__slot-text {
  color: #6c7a8f;
  font-size: 0.75rem;
  font-style: italic;
}

.employee-calendar__slot--empty {
  border: 1px dashed #c8d4f0;
  background: transparent;
  min-height: 40px;
}

:root {
  --matrix-header-row-height: 56px;
  --matrix-squad-col-width: 160px;
  --matrix-employee-col-width: 200px;
}

.matrix-container {
  position: relative;
  overflow: auto;
  max-height: calc(100vh - 250px);
}
.matrix-container .table:not(.table-bordered).table-row-dashed tr {
  border-bottom-width: 1px;
  border-bottom-style: solid;
  border-bottom-color: #F3F6F9;
}
.matrix-container .table-header {
  background-color: #EFF7FF !important;
  border-radius: 6px;
  opacity: unset;
}
.matrix-container .table-header th {
  background: #EFF7FF !important;
  color: #3F4254 !important;
}
.matrix-container .table-header th::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: #fff;
  pointer-events: none;
}
.matrix-container .table-header th::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 1px;
  background: #fff;
  pointer-events: none;
}

.matrix-table {
  border-collapse: separate;
  border-spacing: 0;
}

.matrix-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 80;
}

.matrix-table thead th {
  position: sticky;
  background-color: #ffffff;
  border-bottom: 1px solid var(--bs-border-color);
  border-right: 1px solid var(--bs-border-color);
  overflow: hidden;
  z-index: 40;
  padding: 12px 8px;
  height: var(--matrix-header-row-height);
  min-height: var(--matrix-header-row-height);
}

.matrix-table thead tr:first-child th {
  top: 0;
  z-index: 60;
}

.matrix-table thead tr:first-child .sticky-col-squad {
  z-index: 65 !important;
}

.matrix-table thead tr:first-child .sticky-col-employee {
  z-index: 64 !important;
}

.matrix-table thead tr:nth-child(2) th {
  top: calc(var(--matrix-header-row-height) - 4px);
  z-index: 55;
}

.matrix-table thead tr:nth-child(3) th {
  top: calc(var(--matrix-header-row-height) * 2 - 8px);
  z-index: 50;
}

.matrix-table thead th[rowspan="3"] {
  height: calc(var(--matrix-header-row-height) * 3);
  min-height: calc(var(--matrix-header-row-height) * 3);
  vertical-align: middle;
  text-align: center;
}

.sticky-col-squad {
  position: sticky !important;
  left: 0 !important;
  background-color: #ffffff !important;
  box-shadow: 3px 0 8px rgba(0, 0, 0, 0.1);
}

.sticky-col-squad::after {
  content: "";
  position: absolute;
  top: 0;
  right: -1px;
  bottom: 0;
  width: 10px;
  background: linear-gradient(to right, rgb(255, 255, 255), rgba(255, 255, 255, 0));
  pointer-events: none;
  z-index: 1;
}

.sticky-col-employee {
  position: sticky !important;
  left: 160px !important;
  background-color: #ffffff !important;
  box-shadow: 3px 0 8px rgba(0, 0, 0, 0.1);
}

.sticky-col-employee::after {
  content: "";
  position: absolute;
  top: 0;
  right: -1px;
  bottom: 0;
  width: 10px;
  background: linear-gradient(to right, rgb(255, 255, 255), rgba(255, 255, 255, 0));
  pointer-events: none;
  z-index: 1;
}

.matrix-table thead .sticky-col-squad {
  z-index: 61 !important;
}

.matrix-table thead .sticky-col-employee {
  z-index: 60 !important;
}

.matrix-table tbody .sticky-col-squad {
  z-index: 31 !important;
  font-weight: 600;
  position: sticky !important;
  left: 0 !important;
}

.matrix-table tbody .sticky-col-employee {
  z-index: 30 !important;
  font-weight: 600;
  position: sticky !important;
  left: 160px !important;
}

.matrix-table tbody td.sticky-col-squad[rowspan] {
  position: sticky !important;
  left: 0 !important;
}

.matrix-table tbody td.sticky-col-employee {
  position: sticky !important;
  left: 160px !important;
}

.matrix-table tbody tr:hover .sticky-col-squad,
.matrix-table tbody tr:hover .sticky-col-employee {
  background-color: #ffffff;
}

.matrix-table tbody td {
  border-right-width: 1px !important;
  border-right-style: dashed !important;
  border-right-color: var(--bs-border-color) !important;
  position: relative;
  z-index: 1;
}

.matrix-table tbody td select {
  background-color: #ffffff;
  position: relative;
  z-index: 1;
}

.matrix-table tbody td:not(.sticky-col-squad):not(.sticky-col-employee) {
  z-index: 1 !important;
}

.matrix-table tbody td:not(.sticky-col-squad):not(.sticky-col-employee) select {
  z-index: 1 !important;
}

.matrix-table:not(.table-bordered) td:first-child,
.matrix-table:not(.table-bordered) th:first-child,
.matrix-table:not(.table-bordered) tr:first-child {
  padding-left: 8px;
}
