main > .container {
  padding: 70px 15px 20px;
}

.footer {
  background-color: #f5f5f5;
  font-size: 0.9em;
  height: 60px;
}

.footer > .container {
  padding-right: 15px;
  padding-left: 15px;
}

.not-set {
  color: #c55;
  font-style: italic;
}

/* add sorting icons to gridview sort links */
a.asc:after,
a.desc:after {
  content: "";
  left: 3px;
  display: inline-block;
  width: 0;
  height: 0;
  border: solid 5px transparent;
  margin: 4px 4px 2px 4px;
  background: transparent;
}

a.asc:after {
  border-bottom: solid 7px #212529;
  border-top-width: 0;
}

a.desc:after {
  border-top: solid 7px #212529;
  border-bottom-width: 0;
}

.grid-view th {
  white-space: nowrap;
}

.hint-block {
  display: block;
  margin-top: 5px;
  color: #999;
}

.error-summary {
  color: #a94442;
  background: #fdf7f7;
  border-left: 3px solid #eed3d7;
  padding: 10px 20px;
  margin: 0 0 15px 0;
}

/* align the logout "link" (button in form) of the navbar */
.nav li > form > button.logout {
  padding-top: 7px;
  color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 767px) {
  .nav li > form > button.logout {
    display: block;
    text-align: left;
    width: 100%;
    padding: 10px 0;
  }
}

.nav > li > form > button.logout:focus,
.nav > li > form > button.logout:hover {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.75);
}

.nav > li > form > button.logout:focus {
  outline: none;
}

.form-group {
  margin-bottom: 1rem;
}

/* Target any label inside a .required field */
.required label.col-form-label::after {
  content: " *";
  color: red;
  font-weight: bold;
  margin-left: 4px;
}

/* select 2 */

/* Remove unwanted padding and fix alignment */
.custom-select-select2-dropdown .select2-results__option {
  padding: 0 !important;
  background-color: #fff;
}

/* Style the highlighted option */
.custom-select-select2-dropdown .select2-results__option--highlighted {
  background-color: #f0f9ff !important;
  color: inherit !important;
}
.custom-select-select2-dropdown .select2-results__message {
  padding: 8px 12px !important;
}

/* Fix nested colors inside highlighted option */
.custom-select-select2
  .select2-results__option--highlighted
  .select2-result-item {
  background-color: transparent !important;
}

/* Ensure inner div behaves like a proper row */
.custom-select-select2 .select2-result-item {
  display: flex;
  align-items: flex-start;
  padding: 8px;
  line-height: 1.3;
}

.custom-select-select2 .select2-result-item img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 4px;
  margin-right: 10px;
}

.custom-select-select2 .select2-result-item div {
  font-size: 13px;
}

.custom-select-select2 .select2-result-item strong {
  font-weight: 600;
}

.custom-select-select2 .select2-result-item small {
  font-size: 12px;
  color: #666;
}

.custom-select-select2 .select2-result-item span {
  font-size: 13px;
}

.custom-select-select2 .select2-result-item span.text-success {
  color: green !important;
}

.custom-select-select2 .select2-result-item span.text-primary {
  color: #007bff !important;
}
.input-group + .invalid-feedback {
  display: block; /* Force display if it's hidden */
}

/* Pdf Document detail page styles */
.invoice-card {
  background: #fff;
  padding: 30px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid #eaeaea;
}

.company-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid #ddd;
}

.company-logo img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
}

.company-info {
  font-size: 13px;
  line-height: 1.6;
}

.document-title {
  font-size: 22px;
  font-weight: 600;
  text-transform: uppercase;
  margin: 20px 0;
}

.info-table th {
  text-align: left;
  width: 25%;
  padding: 6px 0;
}

.info-table td {
  padding: 6px 0;
}

/* Document detail table design */

.doc-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.doc-table th,
.doc-table td {
  border: 1px solid #ccc;
  padding: 8px;
  font-size: 13px;
}

.doc-table-right th,
.doc-table-right td {
  text-align: right;
}

.doc-table-left th,
.doc-table-left td {
  text-align: left;
}

.doc-table-center th,
.doc-table-center td {
  text-align: center;
}

.doc-table thead {
  background: #f0f0f0;
}

.authorized-signature {
  text-align: right;
  margin-top: 40px;
  font-size: 13px;
}

/* Customize SweetAlert2 modal container */
.swal2-popup {
  font-family: "Arial", sans-serif !important; /* Match Bootstrap 4 font */
  background-color: #fff; /* White background for the modal */
  border-radius: 0.375rem; /* Bootstrap 4 border-radius */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Bootstrap modal shadow */
  padding: 1.5rem 2rem; /* Adjust padding to resemble Bootstrap's modal padding */
}

/* Title styling */
.swal2-title {
  font-size: 1.25rem; /* Bootstrap heading size (h4) */
  font-weight: bold; /* Make the title bold */
  color: #495057; /* Dark gray text color similar to Bootstrap 4 */
  margin-bottom: 1rem; /* Space between title and content */
}

/* Content styling */
.swal2-content {
  font-size: 1rem; /* Bootstrap 4 font size */
  color: #6c757d; /* Bootstrap text color */
  margin-bottom: 1.5rem; /* Space between content and buttons */
}

/* Button styling (you've already applied Bootstrap classes for buttons) */
.swal2-confirm {
  font-size: 1rem;
  font-weight: 400;
  border-radius: 0.25rem; /* Bootstrap 4 button border radius */
  padding: 0.375rem 0.75rem; /* Padding to match Bootstrap buttons */
}

/* Adjust button text and background */
.swal2-cancel {
  font-size: 1rem;
  font-weight: 400;
  border-radius: 0.25rem; /* Bootstrap 4 button border radius */
  padding: 0.375rem 0.75rem; /* Padding to match Bootstrap buttons */
}

/* Ensure the button has similar hover effect as Bootstrap */
.swal2-confirm:hover {
  background-color: #218838 !important; /* Darker shade of success color */
}

.swal2-cancel:hover {
  background-color: #c82333 !important; /* Darker shade of danger color */
}

/* Responsive styling for the modal */
@media (max-width: 576px) {
  .swal2-popup {
    width: 90%; /* Ensure it fits on small screens */
    padding: 1rem; /* Reduce padding on smaller screens */
  }
}
