@import url(https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap);
@import url(https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap);
:root {
  --primary-color: #caeefb;
  --secondary-color: #337ab7;
  --card-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  --border-radius: 12px;
}

body {
  font-family: "Roboto", sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f5f5f5;
}

.dashboard-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 25px;
}

.card {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  padding: 15px;
  height: auto;
}

.inlet,
.outlet {
  width: 100%;
}

.card-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
}

.card-value {
  font-size: 14px;
  font-weight: 600;
}

.chart-container {
  height: 170px;
}

.caret {
  display: none !important;
}

.multiselect-parent {
  width: 100%;
  text-align: left;
}

.multiselect-parent .dropdown-toggle {
  width: 100%;
  text-align: left;
}

.multiselect-parent .dropdown-toggle::after {
  content: "";
  display: block;
  border-bottom: 2px solid #000;
  border-right: 2px solid #000;
  transform: rotate(45deg);
  height: 7px;
  width: 7px;
  position: absolute;
  cursor: pointer;
  right: 5%;
  top: 40%;
}

.multiselect-parent .dropdown-menu {
  width: 100%;
  text-align: left;
}

.multiselect-parent .dropdown-menu {
  display: block;
  height: 200px;
  width: 300px;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 1;
}

.chart-container {
  height: auto !important;
}

/* Improved Checkbox Styles */
.custom-checkbox-wrapper {
display: flex;
align-items: center;
gap: 6px;
padding: 5px 10px;
cursor: pointer;
}

.multiselect-checkbox {
position: absolute;
opacity: 0;
pointer-events: none;
}

.custom-checkbox-display {
width: 16px;
height: 16px;
border: 1px solid #aaa;
border-radius: 3px;
background-color: white;
position: relative;
}

.multiselect-checkbox:checked + .custom-checkbox-display::after {
content: "";
position: absolute;
top: 2px;
left: 5px;
width: 4px;
height: 8px;
border: solid white;
border-width: 0 2px 2px 0;
transform: rotate(45deg);
background-color: #337ab7;
}

.multiselect-checkbox:checked + .custom-checkbox-display {
background-color: #337ab7;
border-color: #337ab7;
}

/* Ensure proper alignment */
.dropdown-menu label {
display: flex;
align-items: center;
margin: 0;
padding: 5px 10px;
cursor: pointer;
}

.dropdown-menu label:hover {
background-color: #f5f5f5;
}

.dropdown-menu li .glyphicon-ok {
display: none !important;
}

.tooltip-icon {
position: absolute;
display: inline-block;
cursor: pointer;
top: -10px;
right: 0px;
color: #337ab7;
}

.tooltip-icon .tooltip-text {
visibility: hidden;
width: 230px;
background-color: #337ab7;
color: #fff;
text-align: center;
padding: 8px 10px;
border-radius: 10px;
position: absolute;
left: 100%; /* Position to the right of the button */
top: 50%;
transform: translateY(-50%); /* Center vertically */
margin-left: 10px; /* Add some space between button and tooltip */
opacity: 0;
transition: opacity 0.3s;
z-index: 10;
font-size: 13px;
white-space: normal;
}

.tooltip-icon .tooltip-text::after {
content: "";
position: absolute;
right: 100%; /* Position arrow on the left side of tooltip */
top: 50%;
transform: translateY(-50%);
border-width: 6px;
border-style: solid;
border-color: transparent #337ab7 transparent transparent; /* Triangle arrow pointing left */
}

.tooltip-icon:hover .tooltip-text {
visibility: visible;
opacity: 1;
}

.metrics-row {
display: flex;
justify-content: space-between;
gap: 20px;
margin-top: 20px;
}

.metric-card {
border-radius: var(--border-radius);
box-shadow: var(--card-shadow);
padding: 16px;
display: flex;
width: 100%;
flex-direction: column;
justify-content: center;
background: #52BE80;
}

.metric-value {
font-size: 18px;
font-weight: 700;
color: white;
margin-bottom: 5px;
}

.metric-label {
font-size: 15px;
color: white;
font-weight: 500;
}

.highcharts-credits {
fill: #fff !important;
}

@media print {
body * {
visibility: hidden;
}
.card, .card * {
visibility: visible;
}
.card {
position: absolute;
left: 0;
top: 0;
width: 100%;
page-break-after: always;
}
/* Ensure Highcharts render properly in PDF */
.highcharts-container {
width: 100% !important;
height: auto !important;
}

.highcharts-root {
width: 100% !important;
}

/* ✅ Hide chart title with this attribute */
[data-hide-in-pdf] {
display: none !important;
}
}

/* Ensure charts have proper dimensions for PDF */
.chart-container {
width: 100% !important;
height: auto !important;
}

.filter-btns {
display: flex;
gap: 10px;
padding: 0 0 10px 0;
}

/* =====================================================
   HEADER (matches header.blade.php)
===================================================== */
.navbar {
  height: 52px;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 1030;
}

.navbar .fw-bold {
  color: #35363c;
}

.navbar .dropdown-toggle {
  border: none;
  background: transparent;
  color: #0d6efd;
}

/* =====================================================
   SIDEBAR (matches sidebar.blade.php)
===================================================== */
.sidebar {
  background: #e8eef7;
  min-height: 100vh;
  padding: 0;
  width: 250px;
  transition: width 0.3s ease;
  overflow-y: auto;
  border-right: 1px solid #d0d8e8;
  position: fixed;
  left: 0;
  top: 56px;
  height: calc(100vh - 56px);
  z-index: 900;
}

.sidebar.collapsed {
  width: 70px;
}

.sidebar.collapsed .nav-text,
.sidebar.collapsed .submenu-arrow {
  display: none;
}

.sidebar.collapsed .submenu {
  display: none !important;
}

.sidebar-header {
  padding: 15px;
  text-align: right;
  border-bottom: 1px solid #d0d8e8;
  background: white;
}

.btn-collapse {
  background: #4a90c6;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.3s ease;
}

.btn-collapse:hover {
  background: #3a7ab6;
}

.sidebar .nav {
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  padding: 0;
  margin: 0;
}

.sidebar .nav-item {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  margin: 0;
  padding: 0;
}

.sidebar .nav-link {
  color: #6b8ec8;
  padding: 12px 20px;
  font-size: 14px;
  border-left: 4px solid transparent;
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.sidebar .nav-link i {
  font-size: 16px;
  min-width: 20px;
}

.sidebar .nav-link .submenu-arrow {
  margin-left: auto;
  font-size: 12px;
  transition: transform 0.3s ease;
}

.sidebar .nav-link.active,
.sidebar .nav-link:hover {
  background: #d5e3f2;
  color: #4a90c6;
  border-left: 4px solid #4a90c6;
}

.sidebar .nav-link.with-submenu.active .submenu-arrow {
  transform: rotate(180deg);
}

.sidebar .submenu {
  background: #f0f5fb;
  list-style: none;
  padding: 5px 0;
  margin: 0;
  border-top: 1px solid #d0d8e8;
}

.sidebar .submenu li {
  list-style: none;
  margin: 0;
}

.sidebar .submenu a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #7b9bc8;
  padding: 10px 20px 10px 40px;
  text-decoration: none;
  font-size: 13px;
  transition: all 0.3s ease;
}

.sidebar .submenu a:hover {
  color: #4a90c6;
  background: #e5f0f9;
}

.sidebar .submenu a i {
  font-size: 14px;
  min-width: 16px;
}

/* =====================================================
   MAIN CONTENT AREA
===================================================== */
main {
  padding-bottom: 60px; /* footer space */
}

/* =====================================================
   DASHBOARD CARDS
===================================================== */
.card {
  border-radius: 12px;
  border: none;
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.card h6 {
  font-size: 15px;
  font-weight: 700;
  color: #35363c;
}

/* =====================================================
   HIGHCHARTS
===================================================== */
.chart-container {
  width: 100%;
  height: 300px;
}

.highcharts-background {
  fill: transparent;
}

.highcharts-credits {
  display: none !important;
}

/* =====================================================
   FOOTER (matches footer.blade.php)
===================================================== */
.footer {
  position: fixed;
  bottom: 0;
  right: 0;
  height: 40px;
  width: 100%;
  background: #3b3f51;
  color: #ffffff;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 20px;
}

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 991px) {
  .sidebar {
    display: none;
  }

  .footer {
    width: 100%;
  }
}

/* section labels */
.sidebar .text-muted {
  color: #aaa !important;
  font-size: 11px;
  letter-spacing: 0.5px;
}

/* =====================================================
   MAIN CONTENT AREA
===================================================== */
main {
  padding-bottom: 60px; /* footer space */
}

/* =====================================================
   METRIC CARDS (dashboard.blade.php)
===================================================== */
.metric-card {
  color: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.metric-value {
  font-size: 22px;
  font-weight: 700;
}

.metric-label {
  font-size: 14px;
  opacity: 0.95;
}

/* =====================================================
   DASHBOARD CARDS
===================================================== */
.card {
  border-radius: 12px;
  border: none;
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.card h6 {
  font-size: 15px;
  font-weight: 700;
  color: #35363c;
}

/* =====================================================
   HIGHCHARTS
===================================================== */
.chart-container {
  width: 100%;
  height: 300px;
}

.highcharts-background {
  fill: transparent;
}

.highcharts-credits {
  display: none !important;
}

/* =====================================================
   FOOTER (matches footer.blade.php)
===================================================== */
.footer {
  position: fixed;
  bottom: 0;
  right: 0;
  height: 40px;
  width: 100%;
  background: #3b3f51;
  color: #ffffff;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 20px;
}

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 991px) {
  .sidebar {
    display: none;
  }

  .footer {
    width: 100%;
  }
}

:root {
  --primary-color: #caeefb;
  --secondary-color: #337ab7;
  --card-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  --border-radius: 12px;
}

body {
  font-family: "Roboto", sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f5f5f5;
}

.dashboard-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 25px;
}

.card {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  padding: 15px;
  height: auto;
}

.inlet,
.outlet {
  width: 100%;
}

.card-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
}

.card-value {
  font-size: 14px;
  font-weight: 600;
}

.chart-container {
  height: 170px;
}

.caret {
  display: none !important;
}

.multiselect-parent {
  width: 100%;
  text-align: left;
}

.multiselect-parent .dropdown-toggle {
  width: 100%;
  text-align: left;
}

.multiselect-parent .dropdown-toggle::after {
  content: "";
  display: block;
  border-bottom: 2px solid #000;
  border-right: 2px solid #000;
  transform: rotate(45deg);
  height: 7px;
  width: 7px;
  position: absolute;
  cursor: pointer;
  right: 5%;
  top: 40%;
}

.multiselect-parent .dropdown-menu {
  width: 100%;
  text-align: left;
}

.multiselect-parent .dropdown-menu {
  display: block;
  height: 200px;
  width: 300px;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 1;
}

.chart-container {
  height: auto !important;
}

/* Improved Checkbox Styles */
.custom-checkbox-wrapper {
display: flex;
align-items: center;
gap: 6px;
padding: 5px 10px;
cursor: pointer;
}

.multiselect-checkbox {
position: absolute;
opacity: 0;
pointer-events: none;
}

.custom-checkbox-display {
width: 16px;
height: 16px;
border: 1px solid #aaa;
border-radius: 3px;
background-color: white;
position: relative;
}

.multiselect-checkbox:checked + .custom-checkbox-display::after {
content: "";
position: absolute;
top: 2px;
left: 5px;
width: 4px;
height: 8px;
border: solid white;
border-width: 0 2px 2px 0;
transform: rotate(45deg);
background-color: #337ab7;
}

.multiselect-checkbox:checked + .custom-checkbox-display {
background-color: #337ab7;
border-color: #337ab7;
}

/* Ensure proper alignment */
.dropdown-menu label {
display: flex;
align-items: center;
margin: 0;
padding: 5px 10px;
cursor: pointer;
}

.dropdown-menu label:hover {
background-color: #f5f5f5;
}

.dropdown-menu li .glyphicon-ok {
display: none !important;
}

.tooltip-icon {
position: absolute;
display: inline-block;
cursor: pointer;
top: -10px;
right: 0px;
color: #337ab7;
}

.tooltip-icon .tooltip-text {
visibility: hidden;
width: 230px;
background-color: #337ab7;
color: #fff;
text-align: center;
padding: 8px 10px;
border-radius: 10px;
position: absolute;
left: 100%; /* Position to the right of the button */
top: 50%;
transform: translateY(-50%); /* Center vertically */
margin-left: 10px; /* Add some space between button and tooltip */
opacity: 0;
transition: opacity 0.3s;
z-index: 10;
font-size: 13px;
white-space: normal;
}

.tooltip-icon .tooltip-text::after {
content: "";
position: absolute;
right: 100%; /* Position arrow on the left side of tooltip */
top: 50%;
transform: translateY(-50%);
border-width: 6px;
border-style: solid;
border-color: transparent #337ab7 transparent transparent; /* Triangle arrow pointing left */
}

.tooltip-icon:hover .tooltip-text {
visibility: visible;
opacity: 1;
}

.metrics-row {
display: flex;
justify-content: space-between;
gap: 20px;
margin-top: 20px;
}

.metric-card {
border-radius: var(--border-radius);
box-shadow: var(--card-shadow);
padding: 16px;
display: flex;
width: 100%;
flex-direction: column;
justify-content: center;
background: #52BE80;
}

.metric-value {
font-size: 18px;
font-weight: 700;
color: white;
margin-bottom: 5px;
}

.metric-label {
font-size: 15px;
color: white;
font-weight: 500;
}

.highcharts-credits {
fill: #fff !important;
}

@media print {
body * {
visibility: hidden;
}
.card, .card * {
visibility: visible;
}
.card {
position: absolute;
left: 0;
top: 0;
width: 100%;
page-break-after: always;
}
/* Ensure Highcharts render properly in PDF */
.highcharts-container {
width: 100% !important;
height: auto !important;
}

.highcharts-root {
width: 100% !important;
}

/* ✅ Hide chart title with this attribute */
[data-hide-in-pdf] {
display: none !important;
}
}

/* Ensure charts have proper dimensions for PDF */
.chart-container {
width: 100% !important;
height: auto !important;
}

.filter-btns {
display: flex;
gap: 10px;
padding: 0 0 10px 0;
}

/* =====================================================
   HEADER (matches header.blade.php)
===================================================== */
.navbar {
  height: 52px;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 1030;
}

.navbar .fw-bold {
  color: #35363c;
}

.navbar .dropdown-toggle {
  border: none;
  background: transparent;
  color: #0d6efd;
}

/* =====================================================
   SIDEBAR (matches sidebar.blade.php)
===================================================== */
.sidebar {
  background: #e8eef7;
  min-height: 100vh;
  padding: 0;
  width: 250px;
  transition: width 0.3s ease;
  overflow-y: auto;
  border-right: 1px solid #d0d8e8;
  position: fixed;
  left: 0;
  top: 56px;
  height: calc(100vh - 56px);
  z-index: 900;
}

.sidebar.collapsed {
  width: 70px;
}

.sidebar.collapsed .nav-text,
.sidebar.collapsed .submenu-arrow {
  display: none;
}

.sidebar.collapsed .submenu {
  display: none !important;
}

.sidebar-header {
  padding: 15px;
  text-align: right;
  border-bottom: 1px solid #d0d8e8;
  background: white;
}

.btn-collapse {
  background: #4a90c6;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.3s ease;
}

.btn-collapse:hover {
  background: #3a7ab6;
}

.sidebar .nav {
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  padding: 0;
  margin: 0;
}

.sidebar .nav-item {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  margin: 0;
  padding: 0;
}

.sidebar .nav-link {
  color: #6b8ec8;
  padding: 12px 20px;
  font-size: 14px;
  border-left: 4px solid transparent;
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.sidebar .nav-link i {
  font-size: 16px;
  min-width: 20px;
}

.sidebar .nav-link .submenu-arrow {
  margin-left: auto;
  font-size: 12px;
  transition: transform 0.3s ease;
}

.sidebar .nav-link.active,
.sidebar .nav-link:hover {
  background: #d5e3f2;
  color: #4a90c6;
  border-left: 4px solid #4a90c6;
}

.sidebar .nav-link.with-submenu.active .submenu-arrow {
  transform: rotate(180deg);
}

.sidebar .submenu {
  background: #f0f5fb;
  list-style: none;
  padding: 5px 0;
  margin: 0;
  border-top: 1px solid #d0d8e8;
}

.sidebar .submenu li {
  list-style: none;
  margin: 0;
}

.sidebar .submenu a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #7b9bc8;
  padding: 10px 20px 10px 40px;
  text-decoration: none;
  font-size: 13px;
  transition: all 0.3s ease;
}

.sidebar .submenu a:hover {
  color: #4a90c6;
  background: #e5f0f9;
}

.sidebar .submenu a i {
  font-size: 14px;
  min-width: 16px;
}

/* =====================================================
   MAIN CONTENT AREA
===================================================== */
main {
  padding-bottom: 60px; /* footer space */
}

/* =====================================================
   DASHBOARD CARDS
===================================================== */
.card {
  border-radius: 12px;
  border: none;
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.card h6 {
  font-size: 15px;
  font-weight: 700;
  color: #35363c;
}

/* =====================================================
   HIGHCHARTS
===================================================== */
.chart-container {
  width: 100%;
  height: 300px;
}

.highcharts-background {
  fill: transparent;
}

.highcharts-credits {
  display: none !important;
}

/* =====================================================
   FOOTER (matches footer.blade.php)
===================================================== */
.footer {
  position: fixed;
  bottom: 0;
  right: 0;
  height: 40px;
  width: 100%;
  background: #3b3f51;
  color: #ffffff;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 20px;
}

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 991px) {
  .sidebar {
    display: none;
  }

  .footer {
    width: 100%;
  }
}

/* section labels */
.sidebar .text-muted {
  color: #aaa !important;
  font-size: 11px;
  letter-spacing: 0.5px;
}

/* =====================================================
   MAIN CONTENT AREA
===================================================== */
main {
  padding-bottom: 60px; /* footer space */
}

/* =====================================================
   METRIC CARDS (dashboard.blade.php)
===================================================== */
.metric-card {
  color: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.metric-value {
  font-size: 22px;
  font-weight: 700;
}

.metric-label {
  font-size: 14px;
  opacity: 0.95;
}

/* =====================================================
   DASHBOARD CARDS
===================================================== */
.card {
  border-radius: 12px;
  border: none;
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.card h6 {
  font-size: 15px;
  font-weight: 700;
  color: #35363c;
}

/* =====================================================
   HIGHCHARTS
===================================================== */
.chart-container {
  width: 100%;
  height: 300px;
}

.highcharts-background {
  fill: transparent;
}

.highcharts-credits {
  display: none !important;
}

/* =====================================================
   FOOTER (matches footer.blade.php)
===================================================== */
.footer {
  position: fixed;
  bottom: 0;
  right: 0;
  height: 40px;
  width: 100%;
  background: #3b3f51;
  color: #ffffff;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 20px;
}

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 991px) {
  .sidebar {
    display: none;
  }

  .footer {
    width: 100%;
  }
}

