@import "https://s3-us-west-2.amazonaws.com/s.cdpn.io/584938/dashboard.scss";
body {
  background-color: #1b2431;
  color: #202020;
  font-family: "Montserrat", "Helvetica", "Open Sans", "Arial";
  font-size: 13px;
}

a:hover {
  text-decoration: none;
}

p,
figure {
  margin: 0;
  padding: 0;
}

.navbar {
  background-color: #1b2431;
}

.sidebar {
  background-color: #1b2431;
  box-shadow: none;
  width: fit-content;
}
.sidebar .nav-link {
  border-left: 5px solid transparent;
  color: #738297;
  padding: 0.5rem 0.75rem;
}
.sidebar .nav-link:hover {
  color: white;
}
.sidebar .nav-link.active {
  border-left: 5px solid #738297;
  color: white;
}
.sidebar .zmdi {
  display: inline-block;
  font-size: 1.35rem;
  margin-right: 5px;
  min-width: 25px;
}

.card-list {
  width: 100%;

}
.card-list:before, .card-list:after {
  content: " ";
  display: table;
}
.card-list:after {
  clear: both;
}

.card {
  border-radius: 8px;
  color: white;
  padding: 10px;
  position: relative;
}
.card .zmdi {
  color: white;
  font-size: 28px;
  opacity: 0.3;
  position: absolute;
  right: 13px;
  top: 13px;
}
.card .stat {
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 8px;
  margin-top: 25px;
  padding: 10px 10px 0;
  text-transform: uppercase;
}
.card .title {
  display: inline-block;
  font-size: 8px;
  padding: 10px 10px 0;
  text-transform: uppercase;
}
.card .value {
  font-size: 28px;
  padding: 0 10px;
}
.card.blue {
  background-color: #2298F1;
}
.card.green {
  background-color: #66B92E;
}
.card.orange {
  background-color: #DA932C;
}
.card.red {
  background-color: #D65B4A;
}

.projects {
  background-color: #273142;
  border: 1px solid #313D4F;
  overflow-x: auto;
  width: 100%;
}
.projects-inner {
  border-radius: 4px;
}

.projects-header {
  color: white;
  padding: 22px;
}
.projects-header .count,
.projects-header .title {
  display: inline-block;
}
.projects-header .count {
  color: #738297;
}
.projects-header .zmdi {
  cursor: pointer;
  float: right;
  font-size: 16px;
  margin: 5px 0;
}
.projects-header .title {
  font-size: 21px;
}
.projects-header .title + .count {
  margin-left: 5px;
}

.projects-table {
  background: #273142;
  width: 100%;
}
.projects-table td,
.projects-table th {
  color: white;
  padding: 10px 22px;
  vertical-align: middle;
}
.projects-table td p {
  font-size: 12px;
}
.projects-table td p:last-of-type {
  color: #738297;
  font-size: 11px;
}
.projects-table th {
  background-color: #313D4F;
}
.projects-table tr:hover {
  background-color: #303d52;
}
.projects-table tr:not(:last-of-type) {
  border-bottom: 1px solid #313D4F;
}
.projects-table .member figure,
.projects-table .member .member-info {
  display: inline-block;
  vertical-align: top;
}
.projects-table .member figure + .member-info {
  margin-left: 7px;
}
.projects-table .member img {
  border-radius: 50%;
  height: 32px;
  width: 32px;
}
.projects-table .status > form {
  float: right;
}
.projects-table .status-text {
  display: inline-block;
  font-size: 12px;
  margin: 11px 0;
  padding-left: 20px;
  position: relative;
}
.projects-table .status-text:before {
  border: 3px solid;
  border-radius: 50%;
  content: "";
  height: 14px;
  left: 0;
  position: absolute;
  top: 1px;
  width: 14px;
}
.projects-table .status-text.status-blue:before {
  border-color: #1C93ED;
}
.projects-table .status-text.status-green:before {
  border-color: #66B92E;
}
.projects-table .status-text.status-orange:before {
  border-color: #DA932C;
}
.projects-table .status-text.status-red:before {
  border-color: #D65B4A;
}

.selectric {
  background-color: transparent;
  border-color: #313D4F;
  border-radius: 4px;
}
.selectric .label {
  color: #738297;
  line-height: 34px;
  margin-right: 10px;
  text-align: left;
}
.selectric-wrapper {
  float: right;
  width: 150px;
}

.chart {
  border-radius: 3px;
  border: 1px solid #313D4F;
  color: white;
  padding: 10px;
  position: relative;
  text-align: center;
}
.chart canvas {
  height: 400px;
  margin: 20px 0;
  width: 100%;
}
.chart .actions {
  margin: 15px;
  position: absolute;
  right: 0;
  top: 0;
}
.chart .actions span {
  cursor: pointer;
  display: inline-block;
  font-size: 20px;
  margin: 5px;
  padding: 4px;
}
.chart .actions .btn-link {
  color: white;
}
.chart .actions .btn-link i {
  font-size: 1.75rem;
}
.chart .title {
  font-size: 18px;
  margin: 0;
  padding: 15px 0 5px;
}
.chart .title + .tagline {
  margin-top: 10px;
}
.chart .tagline {
  font-size: 12px;
}

.danger-item {
  border-left: 4px solid #A84D43;
}

.zmdi {
  line-height: 1;
  vertical-align: middle;
}





.container {
  background-color: white;
  padding: 20px;
  max-width: 600px;
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  
margin: auto;


}


h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #333;
}

form {
  width: 100%;
}

fieldset {
  border: 1px solid #ddd;
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 5px;
}

legend {
  font-weight: bold;
  padding: 0 10px;
}

label {
  display: block;
  margin-bottom: 5px;
  color: #333;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
textarea {
  width: 100%;
  padding: 8px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

input[type="radio"] {
  margin-right: 10px;
}

textarea {
  resize: vertical;
  min-height: 80px;
}

button {
  width: 100%;
  padding: 10px;
  background-color: #28a745;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
}

button:hover {
  background-color: #218838;
}

@media (max-width: 600px) {
  .container {
      padding: 15px;
  }

  button {
      font-size: 14px;
  }
}
#order-id {
  font-size: 1.2em;
  font-weight: bold;
  color: #007bff;
  background-color: #e9f4ff;
  padding: 5px 10px;
  border-radius: 5px;
  border: 2px solid #007bff;
  display: inline-block;
}


      /* Loader and Overlay */
      #overlay {
          display: none;
          position: fixed;
          width: 100%;
          height: 100%;
          top: 0;
          left: 0;
          background: rgba(0, 0, 0, 0.5);
          z-index: 1000;
          justify-content: center;
          align-items: center;
      }

      #loader {
          border: 8px solid #f3f3f3;
          border-radius: 50%;
          border-top: 8px solid #3498db;
          width: 60px;
          height: 60px;
          animation: spin 2s linear infinite;
      }

      @keyframes spin {
          0% { transform: rotate(0deg); }
          100% { transform: rotate(360deg); }
      }

/* Success Message */
#success-message {
  display: none;
  background-color: #28a745;
  color: #fff;
  padding: 10px;
  border-radius: 5px;
  text-align: center;
  margin-bottom: 20px;
  position: fixed; /* Position fixed to stay at the bottom right */
  bottom: 20px; /* Distance from the bottom */
  right: 20px; /* Distance from the right */
  z-index: 100000; /* Make sure it stays on top of other elements */
  animation: slide-in 0.5s forwards; /* Use animation */
}

/* Keyframe for slide-in effect */
@keyframes slide-in {
  from {
      transform: translate(100%, 100%); /* Start off screen */
      opacity: 0; /* Start invisible */
  }
  to {
      transform: translate(0, 0); /* End in position */
      opacity: 1; /* Fade in */
  }
}


/* Receipt Styles */
#receipt {
  margin: 20px;
  display: none;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  position: relative;
  max-width: 600px;
  margin: auto;
  font-family: 'Roboto Mono', monospace; /* Use the receipt font */
}


#receipt-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

#receipt-logo {
  width: 150px;
}

#company-details {
  text-align: right;
}

#receipt h3 {
  text-align: center;
  margin: 20px 0;
  color: #333;
  font-size: 1.5em;
  font-weight: bold;
}

#receipt p {
  font-size: 1.1em;
  line-height: 1.6;
  margin: 5px 0;
  color: #555;
}

#company-footer {
  text-align: center;
  margin-top: 30px;
}

#powered-by {
  text-align: right;
  margin-top: 20px;
  font-size: 0.6em;
  color: #777;
}

#powered-by img {
  width: 40px;
  margin-top: 3px;
}

/* Print Styles */
@media print {
  body * {
      visibility: hidden;
  }

  #receipt, #receipt * {
      visibility: visible;
  }

  #receipt {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
  }
}

/* Modal Background */
#modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1000; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  background-color: rgba(0, 0, 0, 0.7); /* Black w/ opacity */
}

/* Container for the receipt */
.container2 {
  background-color: white;
  padding: 20px;
  max-width: 600px;
  width: 90%; /* Adjust for smaller screens */
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  position: relative;
  margin: 50px auto; /* Center it vertically with margin */
}


#orders-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  font-family: Arial, sans-serif;
  font-size: 14px;
  background-color: #f9f9f9;
}

#orders-table th, #orders-table td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: left;
  vertical-align: top;
}

#orders-table th {
  background-color: #4CAF50;
  color: white;
  text-transform: uppercase;
  font-weight: bold;
}

#orders-table tr:nth-child(even) {
  background-color: #f2f2f2;
}

#orders-table tr:hover {
  background-color: #e9ffe9;
  cursor: pointer;
}

@media screen and (max-width: 768px) {
  #orders-table {
    font-size: 12px;
  }

  #orders-table th, #orders-table td {
    padding: 6px;
  }
}


#toggle-section-btn {
  padding: 10px 20px;
  margin-top: 20px;
  background-color: #4CAF50;
  color: white;
  border: none;
  cursor: pointer;
  font-size: 14px;
  border-radius: 5px;
  width: fit-content;
}

#toggle-section-btn:hover {
  background-color: #45a049;
}

.green-text {
  color: green;
  font-weight: bold;
}

.red-text {
  color: red;
  font-weight: bold;
}


.delivered {
  color: green;
  font-weight: bold;
}

.in-progress {
  color: orange;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 6px;
}

.orange-ring {
  width: 10px;
  height: 10px;
  border: 2px solid orange;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  70% {
    transform: scale(1.6);
    opacity: 0.5;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
.pay-button {
  background-color: green;
  color: white;
  border: none;
  padding: 4px 8px;
  margin-left: 1px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  width: fit-content;
}
.mark-delivered {
  background-color: green;
  color: white;
  border: none;
  padding: 4px 8px;
  margin-left: 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
}
.pay-button:hover,
.mark-delivered:hover {
  background-color: darkgreen;
}

.logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background-color: none; /* or match your header/sidebar color */
  border-radius: 10px;
}

.logo-image {
  max-width: 170px;
  border-radius: 20px;
  height: auto;
  object-fit: contain;
}
td strong {
  color:white;
  font-weight: 600;
  display: inline-block;
  width: fit-content;
  background-color:#9ba1c7;
  padding:1px;
  margin: 2px;
  border-radius: 5px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);

}
.icon-button {
  background: none;
  border: none;
  cursor: pointer;
  color: #28a745; /* green */
  font-size: 20px;
  padding: 3px;
  transition: transform 0.2s ease;
}

.icon-button:hover {
  transform: scale(1.1);
  color: #ffffff;

}
#showRevenueBtn{
  width: fit-content;
}

.styled-btn {
  background-color: #2E86C1;
  color: white;
  padding: 6px 12px;
  margin: 5px 2px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s ease;
    width: fit-content;
  float: right;
}

.styled-btn:hover {
  background-color: #1A5276;
}

.alt-btn {
  background-color: #28B463;
}

.alt-btn:hover {
  background-color: #1D8348;
}


#detailsModal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #fff;
  padding: 25px 30px;
  border-radius: 12px;
  box-shadow: 0 0 25px rgba(0, 0, 0, 1);
  width: 500px;
  max-width: 90%;
  z-index: 1000;
  display: none;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#detailsModal h3 {
  margin-top: 0;
  text-align: center;
  color: #2C3E50;
  font-size: 20px;
  margin-bottom: 20px;
}

#detailsModal label {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
  display: block;
  color: #333;
}

#detailsModal input[type="text"],
#detailsModal input[type="file"] {
  width: 100%;
  padding: 8px 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  box-sizing: border-box;
}

#detailsModal button[type="submit"],
#detailsModal button[type="button"] {
  padding: 8px 12px;
  margin-right: 8px;
  font-size: 14px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  
}

#detailsModal button[type="submit"] {
  background-color: #28B463;
  color: #fff;
}

#detailsModal button[type="submit"]:hover {
  background-color: #1D8348;
}

#detailsModal button[type="button"] {
  background-color: #E74C3C;
  color: #fff;
  margin-top: 10px;

}

#detailsModal button[type="button"]:hover {
  background-color: #C0392B;
}


.view-btn {
  background-color: #6C3483;
  width: fit-content;
  float: right;
}
.view-btn:hover {
  background-color: #512E5F;
}
#viewDetailsModal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #fefefe;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
  width: 500px;
  max-width: 95%;
  margin-top: 20px;
  z-index: 1000;
  max-height: 550px;
  display: none;
  overflow: auto;
  font-family: 'Segoe UI', sans-serif;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from { transform: translate(-50%, -60%); opacity: 0; }
  to { transform: translate(-50%, -50%); opacity: 1; }
}

#viewDetailsModal h3 {
  margin-top: 0;
  font-size: 20px;
  color: #2E4053;
  border-bottom: 1px solid #ccc;
  padding-bottom: 10px;
  margin-bottom: 15px;
  text-align: center;
}

#viewDetailsContent p {
  margin: 8px 0;
  font-size: 14px;
  color: #333;
}

#viewDetailsContent img {
  display: block;
  margin-top: 10px;
  max-width: 100%;
  border-radius: 6px;
  border: 1px solid #ddd;
}

#viewDetailsModal button {
  background-color: #2E86C1;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  width: 100%;
  font-weight: bold;
  font-size: 14px;
  transition: background-color 0.2s ease;
}

#viewDetailsModal button:hover {
  background-color: #1A5276;
}

#saveTransportBtn,
#cancelTransportBtn {
  padding: 10px 20px;
  font-size: 16px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-right: 10px;
  min-width: 100px;
  color: white;
}

/* Save button styles */
#saveTransportBtn {
  background-color: #28a745; /* Green */
}

#saveTransportBtn:hover {
  background-color: #218838;
}

/* Cancel button styles */
#cancelTransportBtn {
  background-color: #dc3545; /* Red */
  margin-top: 10px;
}

#cancelTransportBtn:hover {
  background-color: #c82333;
}
#leafletMap {
  width: 100%;
  height: 400px;
  border-radius: 8px;
}
@media (max-width: 600px) {
  #leafletMap {
    height: 300px;
  }
}
.nav-buttons {
  display: flex;
  flex-wrap: wrap;          /* allow wrapping on small screens */
  gap: 8px;                 /* space between buttons */
  margin-top: 14px;
}

.nav-buttons button,
.new-receipt-btn {
  flex: 1;                  /* make buttons equal width */
  min-width: 120px;         /* prevent them from getting too small */
  padding: 8px 12px;
  font-size: 14px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease;
}

/* Prev button */
#prevBtn {
  background: #f0f0f0;
  color: black;
}
#prevBtn:hover {
  background: #e0e0e0;
}

/* Next button */
#nextBtn {
  background: #007bff;
  color: white;
}
#nextBtn:hover {
  background: #0056b3;
}

/* Special buttons */
.new-receipt-btn {
  background: #28a745;
  color: white;
}
.new-receipt-btn:hover {
  background: #218838;
}

/* 📱 Small screen adjustments */
@media (max-width: 600px) {
  .nav-buttons {
    flex-direction: column;   /* stack vertically */
  }
  .nav-buttons button {
    width: 100%;              /* full width on mobile */
  }
  #newReceiptBtn {
    width: 100%;
    margin-top: 8px;
  }
}


.col-md-9 {
  width: 100%;
  margin-left: 0 ;
}

main[role="main"] {
  flex: 0 0 90% !important; /* Take 90% width */
  max-width:85% !important;
  margin-left: auto; /* Keep aligned with sidebar */
}
.sidebar-sticky{
  height: fit-content;
}