body {
  font-family: Arial, sans-serif;
  background: #fff;
  color: red;
  margin: 0;
  padding: 0;
  font-size: 14px;
}

.container {
  width: 720px;
  margin: 10px auto;
  padding: 5px;
  box-sizing: border-box;
}

/* Navigation styles */

/* Modern Minimal Navigation Styles - Same as first HTML */
.top-nav-wrapper {
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  margin-bottom: 10px;
  padding: 10px 0;
}

.top-nav-container {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
}

.top-nav {
  display: flex;
  justify-content: center;
  gap: 2px;
  background: #f5f5f5;
  padding: 4px;
  border-radius: 8px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.nav-btn {
  position: relative;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  background: transparent;
  color: #555;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-btn:hover {
  color: #d00000;
}

.nav-btn.active {
  background: white;
  color: #d00000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-radius: 6px;
}

.nav-btn.active::before {
  content: "";
  position: absolute;
  bottom: -11px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid #d00000;
}

.logout-btn {
  color: #d00000;
}

.logout-btn:hover {
  background: rgba(208, 0, 0, 0.05);
}

/* Minimal CSS-only icons */
.btn-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  position: relative;
}

.nav-btn:nth-child(1) .btn-icon::before {
  content: "";
  position: absolute;
  width: 14px;
  height: 16px;
  border: 2px solid currentColor;
  border-radius: 2px;
  top: 0;
  left: 0;
}

.nav-btn:nth-child(1) .btn-icon::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 2px;
  background: currentColor;
  top: 4px;
  left: 3px;
  box-shadow: 0 3px 0 currentColor, 0 6px 0 currentColor;
}

.nav-btn:nth-child(2) .btn-icon::before {
  content: "";
  position: absolute;
  width: 14px;
  height: 8px;
  border: 2px solid currentColor;
  border-bottom: none;
  border-radius: 2px 2px 0 0;
  top: 4px;
  left: 0;
}

.nav-btn:nth-child(2) .btn-icon::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 2px;
  background: currentColor;
  bottom: 2px;
  left: 0;
  box-shadow: 0 -3px 0 currentColor;
}

.nav-btn:nth-child(3) .btn-icon::before {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border: 2px solid currentColor;
  border-radius: 50%;
  top: 0;
  left: 0;
}

.nav-btn:nth-child(3) .btn-icon::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 2px;
  background: currentColor;
  top: 5px;
  left: 12px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .top-nav {
    padding: 2px;
  }

  .nav-btn {
    padding: 8px 12px;
    font-size: 13px;
  }

  .btn-icon {
    width: 14px;
    height: 14px;
  }
}
/* Header styles */
.header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.logo img {
  height: 70px;
}

.header-info {
  flex: 1;
  margin-left: 20px;
}

.header-info h1 {
  margin: 0;
  font-size: 24px;
}

.header-info .contact {
  font-size: 14px;
  margin-top: 5px;
}

.right-column {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-left: 20px;
}

.ins-box {
  border: 2px solid #d00000;
  padding: 6px;
  font-size: 14px;
  color: red;
  text-align: center;
  margin-bottom: 5px;
}

.tax-info {
  text-align: right;
  font-size: 15px;
  color: red;
  font-weight: bold;
  line-height: 1.4;
}

/* Search bar styles */
.search-container {
  margin: 10px 0;
  display: flex;
  flex-direction: column; /* stack search row and date filters vertically */
  gap: 10px;
}

/* Keep search input and buttons in one row */
.search-container > .search-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Date filters styling */
.date-filters , .branch-filters {
    display: flex;
    gap: 15px;      /* spacing between radio buttons */
    flex-wrap: wrap; /* wrap if screen is narrow */
}

#searchInput {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #d00000;
  border-radius: 4px;
  font-size: 14px;
}

#searchButton, #downloadAll {
  padding: 8px 16px;
  background: white;
  color: #d00000;
  border: 1px solid #d00000;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

#searchButton:hover, #downloadAll:hover {
  background: #d00000;
  color: white;
}

#downloadAll:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #ccc !important;
    color: #666 !important;
    border-color: #aaa !important;
    pointer-events: none; /* Ensure hover effects don’t apply */
}

/* Data table styles */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  font-size: 14px;
}

.data-table th,
.data-table td {
  border: 1px solid #d00000;
  padding: 8px;
  text-align: left;
}

.data-table th {
  background-color: #f8f8f8;
  font-weight: bold;
}

.data-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

.data-table tr:hover {
  background-color: #f0f0f0;
}

/* Action buttons */
.action-btn {
  padding: 4px 8px;
  margin: 0 2px;
  border: 1px solid #d00000;
  background: white;
  color: #d00000;
  border-radius: 3px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.3s ease;
}

.action-btn:hover {
  background: #d00000;
  color: white;
}

/* Modal styles for extended view */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
  background-color: #fff;
  margin: 5% auto;
  padding: 20px;
  border: 1px solid #d00000;
  width: 80%;
  max-width: 900px;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
}

.close-modal {
  position: absolute;
  right: 20px;
  top: 10px;
  color: #d00000;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close-modal:hover {
  color: #a00000;
}

/* Full details styles */
.full-details {
  margin-top: 20px;
}

.full-details h3 {
  color: #d00000;
  border-bottom: 1px solid #d00000;
  padding-bottom: 5px;
}

.full-details table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0;
}

.full-details th,
.full-details td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
}

.full-details th {
  background-color: #f2f2f2;
}

/* Loading indicator */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 0, 0, 0.3);
  border-radius: 50%;
  border-top-color: red;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.details-table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0;
}

.details-table th,
.details-table td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
}

.details-table th {
  background-color: #f2f2f2;
}

.order-meta p {
  margin: 5px 0;
}

.order-meta {
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}
/* Add this to your CSS section */
#refreshPageButton {
  padding: 8px 12px;
  background: white;
  color: #d00000;
  border: 1px solid #d00000;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

#refreshPageButton:hover {
  background: #d00000;
  color: white;
}

#refreshPageButton svg {
  width: 16px;
  height: 16px;
}
