@import url('../../../gbhost/public/gbstyle/gbcommonstyle.scss');
@import url('../../src/styles.scss');

.layers {
  display: flex;
  flex-direction: row;
  margin-top: 10px;
}

.attendance {
  display: flex;
  flex-direction: column;
  width: 50%;
}

.title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-left: 5px;
}

.html-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 3px;
}

.html-table thead {
  color: var(--text-secondary);
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
}

.html-table tr {
  // display: flex;
  height: 26px;
}

.html-table th,
.html-table td {
  // text-align: left;
  padding: 4px 8px;
  //   width: 200px;
  font-size: 12px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.html-table tbody tr:nth-child(even) {
  background-color: var(--bg-surface);
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-subtle);
}

.html-table tbody tr:nth-child(odd) {
  background-color: var(--bg-surface);
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-subtle);
}

.html-table th {
  cursor: pointer;
  // display: flex;
  align-items: center;
  color: var(--text-secondary);
}

.mat-styles {
  padding-bottom: 0px;
  padding-top: 3px;
  align-items: center;
  justify-content: center;
  width: 18px !important;
  height: 18px !important;
  font-size: 16px;
  color: var(--field-text-placeholder);
}

.right-align {
  text-align: right !important;
}

.left-align {
  text-align: left;
}

.center-align {
  text-align: center;
}

.heading-div {
  justify-content: center;
  align-items: center;
  max-height: 22px;
  min-height: 22px;
}

.drilldown-display {
  display: inline-flex;
}

.salary-cost {
  display: flex;
  flex-direction: column;
  width: 50%;
  margin-left: 10px;
}

.Graph-Body {
  width: 100%;
  padding: 10px;
}

.common-chart {
  font-size: 0.75rem;
  line-height: 1rem;
  justify-content: center;
  height: 300px;
  display: flex;
  border-radius: 6px;
  background-color: var(--bg-surface);
}

.scroll-wrapper {
  overflow-x: auto;
  overflow-y: hidden;
  width: 100%;
}

.scroll-wrapper ::ng-deep .apexcharts-canvas {
  min-width: 100%;
  min-height: 424px;
}

.chartstyle {
  width: 100%;
  height: 100%;
}

.attendance-summary {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.shift-present {
  display: flex;
  flex-direction: column;
  width: 40%;
}

.shift-change {
  display: flex;
  flex-direction: column;
  width: 60%;
  margin-left: 10px;
}

.workflow-pending {
  display: flex;
  flex-direction: column;
  width: 20%;
}

// Tooltip custom styles for charts
:host ::ng-deep .apexcharts-tooltip {
  background: var(--bg-surface) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border-subtle) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

/* Tooltip header (date section) */
:host ::ng-deep .apexcharts-tooltip-title {
  background: var(--bg-subtle) !important;
  color: var(--text-secondary) !important;
  border-bottom: 1px solid var(--border-subtle) !important;
}

/* Field name (Net Profit / Revenue) */
:host ::ng-deep .apexcharts-tooltip-text-y-label {
  color: var(--text-secondary) !important;
}

/* Value */
:host ::ng-deep .apexcharts-tooltip-text-y-value {
  color: var(--text-primary) !important;
}

/* Marker text alignment */
:host ::ng-deep .apexcharts-tooltip-series-group {
  color: var(--text-secondary) !important;
}

/* X axis hover tooltip (Sep-2024 box) */
:host ::ng-deep .apexcharts-xaxistooltip {
  background: var(--bg-surface) !important;
  color: var(--text-secondary) !important;
  border: 1px solid var(--border-subtle) !important;
  border-radius: 6px;
}

/* Arrow under the tooltip */
:host ::ng-deep .apexcharts-xaxistooltip-bottom:before {
  border-bottom-color: var(--bg-surface) !important;
}

:host ::ng-deep .apexcharts-xaxistooltip-bottom:after {
  border-bottom-color: var(--bg-surface) !important;
}

:host ::ng-deep .apexcharts-menu-icon svg,
.apexcharts-reset-icon svg,
.apexcharts-zoom-icon svg,
.apexcharts-zoomin-icon svg,
.apexcharts-zoomout-icon svg {
  fill: var(--button-secondary-text-default) !important;
}

:host ::ng-deep .apexcharts-menu {
  background: var(--bg-surface) !important;
  border: 1px solid var(--border-subtle) !important;
}

:host ::ng-deep .apexcharts-theme-light .apexcharts-menu-item:hover {
  background: var(--bg-hover) !important;
}

:host ::ng-deep .apexcharts-menu-item {
  color: var(--text-primary) !important;
}
