/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
for details on configuring this project to bundle and minify static web assets. */

a.navbar-brand {
  white-space: normal;
  text-align: center;
  word-break: break-all;
}

/* Provide sufficient contrast against white background */
a {
  color: #0366d6;
}

.btn-primary {
  color: #fff;
  background-color: #1b6ec2;
  border-color: #1861ac;
}

.nav-pills .nav-link.active,
.nav-pills .show>.nav-link {
  color: #fff;
  background-color: #1b6ec2;
  border-color: #1861ac;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.border-top {
  border-top: 1px solid #e5e5e5;
}

.border-bottom {
  border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
  box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
  font-size: 1rem;
  line-height: inherit;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
  position: relative;
  min-height: 100%;
}

body {
  /* Margin bottom by footer height */
  margin-bottom: 60px;
}

.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  white-space: nowrap;
  line-height: 60px;
  /* Vertically center the text there */
}

.table-data {
  width: 100%;
  border-top: 1px solid #808080;
  border-left: 1px solid #808080;
}

.table-data tr th {
  text-align: center;
  font-weight: bold;
}

.table-data tr td,
.table-data tr th {
  width: 100%;
  border-bottom: 1px solid #808080;
  border-right: 1px solid #808080;
  padding: 5px;
}

.table-data .header {
  background-color: #ddd;
}

/* Mobile compact view without changing design */
@media (max-width: 480px) {
  .table-data {
    font-size: 13px;
    table-layout: fixed;
  }

  .table-data tr td,
  .table-data tr th {
    padding: 3px 1px !important;
    width: auto !important; /* Override inline width to allow auto-adjustment */
    word-break: break-all;
  }

  /* Specific column adjustments to ensure everything fits (5 columns) */
  .table-data th:nth-child(1), .table-data td:nth-child(1) { width: 35% !important; } /* Tên hàng */
  .table-data th:nth-child(2), .table-data td:nth-child(2) { width: 17% !important; } /* B */
  .table-data th:nth-child(3), .table-data td:nth-child(3) { width: 17% !important; } /* M */
  .table-data th:nth-child(4), .table-data td:nth-child(4) { width: 17% !important; } /* L */
  .table-data th:nth-child(5), .table-data td:nth-child(5) { width: 14% !important; } /* T */
}