/* === Base Styling === */
body {
  background-color: whitesmoke;
  color: black;
}
#mainWrapper {
  margin-top: 0 !important;
  padding-top: 0 !important;
  transition: margin-top 0.5s ease-in-out;
}

/* === Container Styling === */
.container-box,
.card-box {
  width: 100%;
  max-width: 700px;
  margin: auto;
  padding: 20px;
  border-radius: 10px;
  background-color: #008000 !important;
}

.card-box {
  max-width: 700px;
}

.container-box {
  max-width: 600px;
}

/* === Tables === */
.table,
.table.table-bordered,
.table.table-bordered thead,
.table.table-bordered tbody,
.table.table-bordered tr,
.table.table-bordered th,
.table.table-bordered td,
.custom-table td,
.custom-table th,
td {
  background-color: #006400 !important;
  color: white;
}

.table.table-bordered th,
.table.table-bordered td {
  border: 2px solid #28a745;
}

.table.table-bordered thead {
  background-color: #28a745 !important;
}

.table.table-bordered tbody tr:hover {
  background-color: #4caf50 !important;
}

/* === Table Cell Padding & Borders === */
.custom-table,
.table {
  border-collapse: collapse;
  width: 100%;
}

.custom-table td {
  border: none !important;
  padding-left: 4px 8px;
}

.custom-table td,
.custom-table th,
td {
  padding: 2px 5px !important;
}

/* === Table Responsive === */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-top: 4px;
  padding-bottom: 4px;
  line-height: 1;
}

/* === Info Section === */
.info-section {
  background-color: #0f800f;
  color: white;
  padding: 10px;
  font-size: 14px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

.info-cell {
  flex: 1;
  padding: 2px 8px;
}

.info-cell p {
  margin: 0;
  line-height: 1.2;
}

/* === Headings === */
h4 {
  font-size: 18px !important;
}

h5 {
  font-size: 100% !important;
}

/* === Buttons === */
button {
  font-size: 14px;
  padding: 2%;
}

/* Tooltip styles */
.tooltip-inner {
  max-width: 250px !important; /* default is 200px */
  white-space: normal;
  background-color: #343a40; /* dark gray background */
  color: #f8f9fa; /* light text */
  font-size: 14px;
  border-radius: 8px;
  padding: 8px 10px;
  text-align: left;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}
/* Optional: arrow color match */
.tooltip.bs-tooltip-top .tooltip-arrow::before {
  border-top-color: #343a40 !important;
}
/* Smooth transition on margin changes */
#mainWrapper {
  transition: margin-top 0.5s ease-in-out;
}

.card-box {
  transition: margin-top 0.5s ease-in-out;
}

/* === Print Styles === */
@media print {
  body {
    margin: 0;
    padding: 0;
    font-size: 12px;
    background-color: #fff !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    margin-top: 3% !important;
  }

  .info-section,
  .table {
    page-break-inside: avoid;
  }

  .info-cell,
  .info-row,
  .table td,
  .table th {
    padding: 4px !important;
  }

  .text-white {
    color: black !important;
  }

  html,
  body {
    height: auto !important;
    overflow: hidden;
  }

  .custom-table td,
  .custom-table th {
    font-size: 12px !important;
    padding: 2px !important;
  }

  .no-print {
    display: none !important;
  }

  .container-box {
    max-width: 800px;
    margin: auto;
    padding: 20px;
    font-weight: bold;
  }
}

/* === Mobile Optimization === */
@media (max-width: 768px) {
  body {
    font-size: 80%;
    margin-top: 4%;
  }

  .container-box {
    width: 95%;
    max-width: 100%;
    padding: 15px;
  }

  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  th:nth-child(4),
  td:nth-child(4) {
    display: none;
  }

  tr td,
  th {
    font-size: 90%;
  }

  tr td p {
    font-size: 10px !important;
    padding-left: 5%;
  }

  ul li {
    font-size: 95%;
  }

  td {
    padding-top: 2px !important;
    padding-bottom: 2px !important;
  }
}
