/* 🔷 Base Styles */
body {
  font-family: "Aptos Narrow", sans-serif;
  background-color: #ffffff;
  margin: 0;
  padding: 0;
}

/* 🔷 Top Blue Bar */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 40px;
  background-color: #0077cc;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  z-index: 1001;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.logo-center {
  text-align: center;
  padding: 10px;
}

.logo-center img {
  max-height: 80px;
  width: auto;
  display: inline-block;
}

.top-icons img {
  width: 20px;
  height: 20px;
  margin-left: 15px;
  cursor: pointer;
  filter: brightness(0) invert(1); /* force white against blue */
}

/* 🔶 Sidebar Menu */
.sidebar {
  position: fixed;
  top: 40px;
  left: 0;
  width: 150px;
  height: calc(100% - 40px);
  background-color: #ffffff;
  border-right: 2px solid #e1e0e0;
  padding-top: 20px;
  z-index: 1000;
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar li {
  margin-bottom: 15px;
}

.sidebar a {
  display: block;
  color: #333;
  text-decoration: none;
  font-size: 13px;
  padding: 10px 15px;
}

.sidebar a:hover {
  background-color: #f2f2f2;
}

/* 🧱 Main Content */
.main-content {
  margin-top: 40px;
  margin-left: 150px;
  padding: 20px;
  width: calc(100% - 150px); /* full width minus sidebar */
  max-width: none;           /* remove cap */
  box-sizing: border-box;    /* include padding in width */
}

/* 📊 Audit Table */
#auditTable {
  width: 100%;
  font-size: 12px;
  border-collapse: collapse;
  display: table !important;
  background-color: #fff;
  border: 1px solid #ccc;
}

#auditTable th {
  text-align: left;
  font-weight: bold;
  padding: 8px;
}

#auditTable thead th {
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
}


#auditTable td {
  text-align: left;
  padding: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#auditTable_wrapper {
  max-height: 500px;   /* cap wrapper height */
  overflow-y: auto;    /* scroll instead of expand */
}

.dataTables_wrapper .dataTables_scrollBody {
    max-height: none !important;
    height: auto !important;
    overflow-y: visible !important;
}

/* 📋 Detail Table */
#auditDetailTable th,
#auditDetailTable td {
  font-size: 13px;
  padding: 8px;
  text-align: left;
  white-space: nowrap;
}

/* 📊 Speedometers (clean, borderless) */
#speedometers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin: 30px auto;
  padding: 20px;

  /* REMOVE background + borders */
  background: none !important;
  border: none !important;
  box-shadow: none !important;
}

/* Remove canvas borders + background */
#speedometers canvas {
  width: 200px;
  height: 200px;

  background: none !important;
  border: none !important;
  box-shadow: none !important;

  display: block;
}


/* 🔍 Search Section */
#search-container {
  display: flex;
  justify-content: center;
  margin: 30px 0 20px;
  gap: 10px;
}

#search-container label {
  font-size: 16px;
}

#search-container select,
#search-container input {
  font-size: 12px;
  padding: 5px;
}

/* 🖊️ Editable Fields */
.editable {
  background-color: #f8f8f8;
  cursor: pointer;
}

/* 💾 Save Button */
.save-btn {
  background-color: #4CAF50;
  color: white;
  border: none;
  padding: 5px 10px;
  font-size: 10px;
  cursor: pointer;
}

.save-btn:hover {
  background-color: #45a049;
}

/* 🗺️ Map Layout */
.map-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
}

.map-section {
  display: flex;
  gap: 40px;
  margin: 30px auto;
  max-width: 1000px;
}

.map-box {
  text-align: center;
  flex: 0 0 auto;
}

.main-logo-wrapper {
  text-align: center;
  margin-top: 60px;
  margin-bottom: 20px;
}

.main-logo-img {
  max-height: 140px;
  width: auto;
  display: inline-block;
}

/* Remove excess space above the logo */
.main-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Remove padding/margin around the logo wrapper */
.main-logo-wrapper {
    margin: 0 !important;
    padding: 0 !important;
    text-align: center; /* keep it centered */
}

/* Remove spacing around the logo image itself */
.main-logo-img {
    margin: 0 !important;
    padding: 0 !important;
    display: block;
    max-width: 300px; /* optional: keeps it from getting too large */
    margin-left: auto;
    margin-right: auto;
}

/* Pull speedometers closer to the logo */
#speedometers {
    margin-top: 10px !important;   /* was 30px */
    padding-top: 10px !important;  /* was 20px */
}

.main-logo-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;   /* centers horizontally */
    align-items: center;        /* centers vertically if needed */
    margin: 0 !important;
    padding: 0 !important;
}

.main-logo-img {
    width: 320px;        /* adjust this number to taste */
    height: auto;
    margin: 0 !important;
    padding: 0 !important;
    display: block;
}

/* Add a little space between the blue bar and the logo */
.main-logo-wrapper {
    margin-top: 20px !important;   /* adjust this number to taste */
}


/* 📱 Responsive Adjustments */
@media (max-width: 900px) {
  .main-content {
    margin-left: 0;
    padding: 10px;
  }

  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    border-right: none;
  }

  .top-bar {
    flex-direction: column;
    height: auto;
    padding: 10px;
  }

  .top-icons {
    margin-top: 10px;
  }

  .map-section {
    flex-direction: column;
    align-items: center;
  }
}

/* 📂 Upload Page Styling */
.upload-page {
  display: flex;
  flex-direction: column;
  align-items: center;   /* centers horizontally */
  justify-content: center;
  margin-top: 40px;
}

.upload-form {
  background: #f9f9f9;
  padding: 20px 30px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  text-align: center;   /* centers text inside the form */
}

.upload-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
}

.upload-form input[type="file"],
.upload-form input[type="submit"] {
  font-size: 14px;
  padding: 6px 10px;
  margin-top: 10px;
}