/******************************************************IMPORT FONTS**********************************************************/



/* NORMAL BOLD CB*/
@font-face {
  font-family: "CarlsbergSansW00-Black";
  src: url("./icons/tabler-icons/fonts/cbFonts/CarlsbergSansW00-Black.eot"); /* Fallback for IE */
  src: url("./icons/tabler-icons/fonts/cbFonts/CarlsbergSansW00-Black.eot?#iefix") format("embedded-opentype"),
       url("./icons/tabler-icons/fonts/cbFonts/CarlsbergSansW00-Black.woff2") format("woff2"),
       url("./icons/tabler-icons/fonts/cbFonts/CarlsbergSansW00-Black.woff") format("woff"),
       url("./icons/tabler-icons/fonts/cbFonts/CarlsbergSansW00-Black.ttf") format("truetype");
}

/* ITALIC BOLD CB*/
@font-face {
  font-family: "CarlsbergSansW00-BlackIt";
  src: url("./icons/tabler-icons/fonts/cbFonts/CarlsbergSansW00-BlackIt.eot"); /* Fallback for IE */
  src: url("./icons/tabler-icons/fonts/cbFonts/CarlsbergSansW00-BlackIt.eot?#iefix") format("embedded-opentype"),
       url("./icons/tabler-icons/fonts/cbFonts/CarlsbergSansW00-BlackIt.woff2") format("woff2"),
       url("./icons/tabler-icons/fonts/cbFonts/CarlsbergSansW00-BlackIt.woff") format("woff"),
       url("./icons/tabler-icons/fonts/cbFonts/CarlsbergSansW00-BlackIt.ttf") format("truetype");
}

/* THIS IS NOT BOLD, this is smal CB*/
@font-face {
  font-family: "CarlsbergSansW00-Bold";
  src: url("./icons/tabler-icons/fonts/cbFonts/CarlsbergSansW00-Bold.eot"); /* Fallback for IE */
  src: url("./icons/tabler-icons/fonts/cbFonts/CarlsbergSansW00-Bold.eot?#iefix") format("embedded-opentype"),
       url("./icons/tabler-icons/fonts/cbFonts/CarlsbergSansW00-Bold.woff2") format("woff2"),
       url("./icons/tabler-icons/fonts/cbFonts/CarlsbergSansW00-Bold.woff") format("woff"),
       url("./icons/tabler-icons/fonts/cbFonts/CarlsbergSansW00-Bold.ttf") format("truetype");
}

/* THIS IS NOT BOLD, this is smal and ITALIC CB*/
@font-face {
  font-family: "CarlsbergSansW00-BoldItalic";
  src: url("./icons/tabler-icons/fonts/cbFonts/CarlsbergSansW00-BoldItalic.eot"); /* Fallback for IE */
  src: url("./icons/tabler-icons/fonts/cbFonts/CarlsbergSansW00-BoldItalic.eot?#iefix") format("embedded-opentype"),
       url("./icons/tabler-icons/fonts/cbFonts/CarlsbergSansW00-BoldItalic.woff2") format("woff2"),
       url("./icons/tabler-icons/fonts/cbFonts/CarlsbergSansW00-BoldItalic.woff") format("woff"),
       url("./icons/tabler-icons/fonts/cbFonts/CarlsbergSansW00-BoldItalic.ttf") format("truetype");
}

/* LIGHT WEIGHTER CB*/
@font-face {
  font-family: "CarlsbergSansW00-Light";
  src: url("./icons/tabler-icons/fonts/cbFonts/CarlsbergSansW00-Light.eot"); /* Fallback for IE */
  src: url("./icons/tabler-icons/fonts/cbFonts/CarlsbergSansW00-Light.eot?#iefix") format("embedded-opentype"),
       url("./icons/tabler-icons/fonts/cbFonts/CarlsbergSansW00-Light.woff2") format("woff2"),
       url("./icons/tabler-icons/fonts/cbFonts/CarlsbergSansW00-Light.woff") format("woff"),
       url("./icons/tabler-icons/fonts/cbFonts/CarlsbergSansW00-Light.ttf") format("truetype");
}

/* LIGHT ITALIC WEIGHTER CB*/
@font-face {
  font-family: "CarlsbergSansW00-LightIt";
  src: url("./icons/tabler-icons/fonts/cbFonts/CarlsbergSansW00-LightIt.eot"); /* Fallback for IE */
  src: url("./icons/tabler-icons/fonts/cbFonts/CarlsbergSansW00-LightIt.eot?#iefix") format("embedded-opentype"),
       url("./icons/tabler-icons/fonts/cbFonts/CarlsbergSansW00-LightIt.woff2") format("woff2"),
       url("./icons/tabler-icons/fonts/cbFonts/CarlsbergSansW00-LightIt.woff") format("woff"),
       url("./icons/tabler-icons/fonts/cbFonts/CarlsbergSansW00-LightIt.ttf") format("truetype");
}

/***************************************************************************************************************************/
/*********************************************************LANDPAGE**********************************************************/

.landing-page {
  margin: 0;
  padding: 0;
  overflow: hidden; /* Prevent scrolling only on this page */
  height: 100%; /* Ensure full viewport height */
}


.landpageh1 {
  font-family: "CarlsbergSansW00-Black", serif; /* Use the custom font */
  font-size: 50px;
  text-transform: uppercase;
  margin: 0;
  color: white !important; /* Make the text white */
}

.landpage-button {
  text-align: center; /* Centers the button horizontally */
  margin-top: 100px; /* Adds spacing below the welcome text */
}

.landpage-button a {
  display: inline-block; /* Ensures it behaves like a block element for animations */
  font-weight: bold;
  text-transform: uppercase;
  border-radius: 8px;
  background-color: #7db39d;
  color: white !important;
  padding: 20px 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  animation: pop-effect 2s infinite; /* Reapply the animation */
  font-family: "CarlsbergSansW00-Black", serif; /* Use the custom font */
  font-size: 30px; /* Adjust font size */
  text-decoration: none; /* Remove underline */
  text-align: center;
  font-size: 40px;
}

.landpage-button a:hover {
  background-color: #00593f;
  transform: scale(1.1);
  box-shadow: 0px 6px 10px rgba(0, 0, 0, 0.4);
}

@keyframes pop-effect {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

/* Adjustments for screens smaller than 360px */
@media screen and (max-width: 360px) {
  .landpageh1 {
    font-size: 30px !important; /* Smaller font size for small screens */
  }

  .landpage-button a {
    font-size: 20px; /* Smaller button text */
    padding: 15px 8px; /* Reduce button padding */
  }
}

   .logo-login {
    width: 200px !important;
    max-width: 100% !important;
    height: auto !important;
  }

        body, html {
            margin: 0;
            padding: 0;
            width: 100%;
            height: 100%;
            overflow: hidden;
            font-family: "CarlsbergSansW00-Bold", sans-serif !important; /* Fallback to sans-serif */
            overflow-y: auto;
        }
        
        .video-background {
          position: fixed;
          top: 0;
          left: 0;
          width: 100%;
          height: 100%;
          object-fit: cover; /* Ensures the video covers the entire area */
          z-index: -1;
          background-color: black; /* Fallback color */
      }

    @media screen and (max-width: 360px) {
      .video-background {
        object-fit: cover; /* Ensures the video still covers the screen */
        width: 100vw; /* Full viewport width */
        height: 130vh; /* Full viewport height */
        margin-top: -110px;
      }
    }
        .content {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            z-index: 1;
            color: white;
            text-align: center;
            padding: 20px;
            background-color: rgba(0, 0, 0, 0.5); /* Optional semi-transparent background */
            border-radius: 10px;
        }
        .content header h1 {
            font-size: 50px;
            text-transform: uppercase;
            margin: 0;
        }
        .nav-buttons {
            display: flex;
            justify-content: center;
            gap: 20px;
            margin-top: 20px;
        }
        .nav-buttons a {
            text-decoration: none;
            padding: 15px 30px;
            border-radius: 5px;
            font-size: 15px;
            font-weight: bold;
            color: white;
            background-color: #7db39d;
            transition: all 0.3s ease;
        }
        .nav-buttons a:hover {
            background-color: #00593f;
            transform: scale(1.05);
        }
        .nav-buttons a.disabled {
            background-color: #ccc;
            color: #666;
            pointer-events: none;
        }


#mobileTeamContainer {
    display: none; /* Hidden by default */
}



/************************************************************************************************************************************/


.gantt-table {
  width: 100%;
  table-layout: auto; /* Let columns size themselves based on content */
  border-collapse: collapse;
}

/* Date columns: force them to be 45px wide */
.gantt-table th[data-date],
.gantt-table td[data-date] {
  min-width: 45px;
  max-width: 45px;
  text-align: center;
  font-size: 0.75rem;
  padding: 2px;
}

/* For the first four columns, allow flexible width */
.gantt-table th:nth-child(1),
.gantt-table td:nth-child(1) {
  width: 10%; /* Kund ID */
}

.gantt-table th:nth-child(2),
.gantt-table td:nth-child(2) {
  width: auto; /* Kundnamn: auto expands and wraps */
  white-space: normal;
  padding: 4px;
  font-size: 1rem;
}

.gantt-table th:nth-child(3),
.gantt-table td:nth-child(3) {
  width: 15%; /* Region */
}

.gantt-table th:nth-child(4),
.gantt-table td:nth-child(4) {
  width: 15%; /* Sort */
}

/* General styling for all cells */
.gantt-table th,
.gantt-table td {
  border: 1px solid #ccc;
  text-align: center;
  vertical-align: middle;
  padding: 4px;
}

    .proposal-cell {
      color: #fff;
      font-weight: bold;
      border: 2px solid red; /* highlight border */
    }
    /* If you'd like weekends highlighted, for example: */
    .weekend {
  background-color: red !important; /* Red for debug */
  /* Add !important if other table styling is overriding it */
}

.delivery-marker {
  display: inline-block;
  cursor: move;
}

.delivery-marker i.fa-truck {
  font-size: 1.2rem;
  color: #dc3545; /* a nice red, or your preferred color */
}

.proposal-cell {
  border: 2px solid red;
  /* Or remove the background color if you want a clean look:
     background-color: #fee;
  */
}

    table.child-table th, table.child-table td {
      padding: 4px 8px;
      font-size: 0.9em;
    }

.warning-icon {
    color: #d9534f; /* red color */
    margin-left: 5px;
    font-size: 1.1em;
}

.bi-question-circle {
    font-size: 1.1em;
    color: #555;
    margin-left: 5px;
    cursor: help;
}


/**************************************VAKT INPUT STYLES******************************************************************************/

/* Background image for the page */
body {
    background-image: url('/assets/images/backgrounds/RT_LOC_GREENHOUSE_40.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh;
}

/* For slight background overlay */
.radial-gradient {
    background: rgba(255, 255, 255, 0.8); /* Slightly transparent white overlay */
    position: relative;
    z-index: 1;
}

.popup-overlay {
  display: none; /* Hide the overlay by default */
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent black */
  backdrop-filter: blur(8px); /* Apply the blur effect */
  z-index: 998; /* Ensure it appears below the popup container */
}

.popup-overlay.active {
  display: block; /* Show the overlay when active */
}

/* Popup container styling */
.popup-container {
    display: none;
    position: fixed;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -30%);
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    width: 80%;
    z-index: 1000;
    text-align: center; /* Aligns the text inside the container */
    align-items: center; /* Centers horizontally */
    font-family: "CarlsbergSansW00-Bold", sans-serif !important; /* Fallback to sans-serif */
}

.popup-container h3 {
  font-size: 25px;
}

.h2 {
  font-family: "CarlsbergSansW00-Black", sans-serif !important; /* Fallback to sans-serif */
  color: #00321e !important; /* Primary color */
}

.popup-container form {
  width: 100% !important; /* Makes the form take the full width of the popup-container */
  margin: 0; /* Remove any global margins */
  padding: 0; /* Remove any global padding */
}

@media (max-width: 768px) {
  #popupCodeContainer {
      padding: 20px 30px; /* Adds more padding on left and right sides */
  }

  .lock-code-wrapper {
      padding: 30px 30px; /* Adds space between the code blocks and the container sides */
  }
}

.centered-container {
  display: flex;
  justify-content: center; /* Horizontally center the popup */
  align-items: center; /* Vertically center the popup */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Optional: Adds a dimmed background */
  z-index: 1000; /* Ensure it appears above other content */
}


/* Lock number display styling */
.lock-number-display {
    font-size: 2.5em; /* Larger font size */
    font-weight: bold; /* Bold text */
    color: #00321e; /* Primary color */
    padding: 10px 20px; /* Padding for emphasis */
    border-radius: 8px; /* Rounded corners */
    text-align: center;
    display: inline-block;
    margin-top: 10px;
}

/* Required field indicator */
.required-field::after {
    content: " *";
    color: red;
}

#navigateToLocks {
    cursor: pointer;
    z-index: 1000; /* Ensure it is on top */
    font-size: 2rem;
}

.btn-spacing {
  margin-bottom: 20px; /* Add spacing below the button */
  display: inline-block; /* Ensure proper placement */
  margin-top: 20px; /* Add spacing below the button */
}

.button-container {
  display: flex;
  justify-content: center; /* Centers buttons horizontally */
  gap: 20px; /* Adds space between the buttons */
  margin-top: 20px; /* Adds space between buttons and other content */
}


/***********************************************************************************************************************/


/**********************************************************************TANKAR PAGE STYLES*****************************/

body.cleanBody {
    background: none !important; /* Remove background image */
    background-color: white !important; /* Set a clean background */
    margin: 0 !important;
    padding: 0 !important;
    height: auto !important;
}

    .image-container {
      display: flex;
      justify-content: space-around;
      flex-wrap: wrap;
      padding: 20px;
      color: #00321e !important;
    }

    .tank-item {
      position: relative;
      text-align: center;
      margin: 20px;
      max-width: 200px;
    }

    .tank-item img {
      max-width: 100%;
      height: auto;
      max-height: 200px;
      border-radius: 5px;
    }

    .open-tank-button {
      background-color: #52eb8f;
      color: white;
      padding: 10px 20px;
      border: none;
      border-radius: 5px;
      font-size: 16px;
      cursor: pointer;
      transition: transform 0.2s ease-in-out;
      margin-bottom: 10px;
      display: block;
      width: 100%;
    }

    .open-tank-button:hover {
      transform: scale(1.05);
      background-color: #04c953;
    }

    .report-tank-button {
      font-size: 14px;
      background-color: #faf5ed; /* Subtle appearance */
      color: #f08b4d;
      border: none;
      margin-top: 40px;
      cursor: pointer;
      display: block;
      text-align: center;
    }

    .report-tank-button:hover {
      transform: scale(1.05);
      background-color: #face87;
    }

    .tank-text {
      margin-top: 10px;
      font-size: 1.2rem;
      font-weight: bold;
    }

    .tank-details {
      font-size: 0.9rem;
      color: #6c757d;
      margin-top: 5px;
      text-align: left;
      padding: 10px;
      border-radius: 8px;
    }

    .tank-detail-item {
      margin-bottom: 8px;
      padding: 5px;
    }

    .modal input {
      width: 100%;
      padding: 8px;
      margin-bottom: 10px;
      border-radius: 4px;
      border: 1px solid #ccc;
    }

    @media (max-width: 768px) {
      .modal-content {
        max-width: none;
        margin: 10% auto;
      }
    }


    /* Mobile View Enhancements */
    @media (max-width: 768px) {
      .image-container {
        padding: 10px; /* Reduced padding on mobile */
      }

      .tank-item {
        margin-bottom: 15px;
        padding: 10px;
        border-radius: 5px;
      }

      .tank-item-content {
        display: block;
      }

      .tank-text {
        font-size: 1rem; /* Slightly smaller on mobile */
        font-weight: bold;
        margin-bottom: 5px;
      }

      .tank-details {
        font-size: 0.9rem;
        padding: 10px;
        background: #f9f9fb;;
      }
    }

    /* Desktop-specific adjustments */
    @media (min-width: 769px) {
      .tank-item {
        background-color: transparent;
        padding: 0;
      }

      .tank-details {
        padding: 0;
        background-color: #f9f9fb;
      }
    }
        .search-container {
          display: flex;
          justify-content: center;
          align-items: center;
          gap: 10px; /* Adds space between the search box and the button */
          margin: 20px 0;
        }

        .search-box {
          position: relative;
          flex-grow: 1;
        }

        .search-box input {
          padding: 10px;
          width: 100%;
          font-size: 16px;
          border-radius: 5px;
          border: 1px solid #ccc;
        }

        .suggestions-list li {
          padding: 10px;
          cursor: pointer;
          list-style: none;
          transition: background-color 0.3s ease;
        }

        .suggestions-list li:hover {
          background-color: #f1f1f1;
          color: #333;
        }

        .btn-search {
          font-size: 16px;
          font-weight: bold;
          background-color: #7ed2de;
          color: white;
          padding: 10px 20px;
          border: none;
          border-radius: 5px;
          cursor: pointer;
          transition: background-color 0.3s ease;
        }

        .btn-search:hover {
          background-color: #bfdce0;
        }

        @media (max-width: 768px) {
          .search-container {
            flex-direction: column;
            gap: 15px;
          }

          .btn-search {
            width: 100%;
          }
        }


    .modal-header h5 {
      font-size: 18px;
      font-weight: bold;
    }

    .modal-body p {
      font-size: 16px;
    }

    .modal-footer {
        display: flex;
        justify-content: center; /* Center the buttons horizontally */
        gap: 15px; /* Add space between the buttons */
        margin-top: 20px;
    }

    .modal-button {
      background-color: #00321e;
      color: white;
      border: none;
      padding: 10px 20px;
      border-radius: 5px;
      cursor: pointer;
    }

    .modal-button:hover {
      background-color: #0f6945;
    }

    /* Mobile styling for modal */
    @media (max-width: 768px) {
      .modal-content {
        width: 100%;
        max-width: none;
        margin: 10% auto;
      }
    }

    /* Styling for "FelanmÃ¤ld" text */
    .felanmal-status-text {
      color: red;
      font-weight: bold;
      display: inline-block;
      margin-right: 10px;
    }

    /* Styling for "UnderhÃ¥ll klart" button */
    .clear-maintenance-btn {
      background-color: #52eb8f;
      color: white;
      padding: 8px 16px;
      border: none;
      border-radius: 5px;
      font-size: 14px;
      cursor: pointer;
      transition: background-color 0.3s ease-in-out;
    }

    .clear-maintenance-btn:hover {
      background-color: #3ac075;
    }

        /* Styles for the information box */
        .info-box {
          display: none;
          top: 0;
          width: 100%;
          background-color: #52eb8f;
          color: #00321e;
          text-align: center;
          padding: 15px;
          font-size: 18px;
          font-weight: bold;
          z-index: 1000;
          box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
          font-family: "CarlsbergSansW00-Black", serif !important; /* Use the custom font */
        }


.info-box.success {
    background-color: #28a745; /* Green for success */
}

.info-box.error {
    background-color: #dc3545; /* Red for error */
}

.visible-info-box {
    display: block; /* Override the display: none */
    opacity: 1; /* Make it visible */
}


        .countdown-timer {
          font-weight: normal;
        }

        .view-logs-button {
      font-size: 14px;
      background-color: #e0f7fa; 
      color: #00796b; 
      border: none;
      padding: 8px 16px; 
      border-radius: 5px; 
      cursor: pointer;
      transition: background-color 0.3s ease-in-out, transform 0.2s ease-in-out;
      display: inline-block;
    }

    .view-logs-button:hover {
      background-color: #b2dfdb; /* Darker shade on hover */
      color: #004d40; /* Slightly darker text on hover */
      transform: scale(1.05); /* Slight zoom effect */
    }

        /* Ensure textarea is always below the label */
    .form-fields {
        display: flex;
        flex-direction: column; /* Stack label and textarea vertically */
        margin-bottom: 1rem; /* Add spacing between fields */
    }

    .form-fields label {
        margin-bottom: 5px; /* Space between label and input */
        font-weight: bold; /* Make labels bold for clarity */
    }

    .form-fields textarea {
        width: 100%; /* Make textarea full width */
        padding: 8px; /* Add padding for appearance */
        font-size: 14px; /* Standard font size */
        border: 1px solid #ccc; /* Light grey border */
        border-radius: 5px; /* Rounded corners */
        resize: none; /* Prevent textarea resizing */
        height: 120px; /* Set default height */
        box-sizing: border-box; /* Include padding in width */
    }

    .form-fields textarea:focus {
        outline: none;
        border-color: #52eb8f; /* Highlight border on focus */
        box-shadow: 0 0 5px rgba(82, 235, 143, 0.5); /* Soft glow effect */
    }


    .header-text {
      font-size: 20px;
      font-weight: bold;
    }

/********************************************************************************************************************************/


/*****************************************************************newtank PAGE STYLES*******************************************/


/* Set consistent spacing for sections that toggle visibility */
.toppning-section,
.lock-section,
.comment-section,
.antal-liter-section,
.tomning-message-section {
min-height: 10px; /* Adjust as needed for layout */
}

/* Logo Image */
.logo-img img {
width: 80px;
margin: 5px auto; /* Minimal top and bottom margin */
display: block; /* Center logo */
}

.lock-box {
width: 50px;
height: 50px;
text-align: center;
font-size: 24px;
margin-right: 10px;
}
.form-inline {
display: flex;
justify-content: space-between;
margin-bottom: 20px;
}

/* Ensure form fields have consistent spacing */
.form-control,.form-select {
padding: 20px;
font-size: 14px;
}

.form-select-idx {
  padding: 20px;
  font-size: 14px;
  width: 200px;
  }

.card-body {
  padding: 15px; /* Reduce padding for better fit */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-body-reg {
  padding: 15px; /* Reduce padding for better fit */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Style for disabled tank options with a grey color */
.disabled-option {
color: red;
}

/* Modal Styles */

.modal h3 {
margin-bottom: 20px;
font-size: 1.2em;
font-family: "CarlsbergSansW00-Bold", sans-serif !important; /* Fallback to sans-serif */
}

.modal ul {
list-style: none;
padding: 0;
text-align: left;
}

.modal ul li {
margin: 10px 0;
}



.choice-button {
padding: 16px 32px;
font-size: 18px;
margin: 10px;
border-radius: 10px;
transition: all 0.3s ease;
}

.choice-button.active {
background-color: #00321e !important;
color: #ffffff !important;
box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

.choice-button.inactive {
background-color: #ffffff !important;
color: #00321e !important;
border: 2px solid #00321e;
}

.choice-button:hover {
transform: scale(1.05);
}

.mb-3 {
position: relative;
}


/* General adjustments for smaller screens */
@media (max-height: 760px) {
.card {
margin: 10px 0;
min-height: auto; /* Remove fixed height */
}

.card-body {
display: flex;
flex-direction: column;
justify-content: space-between;
padding: 10px; /* Reduced padding */
}

/* Logo */
.logo-img img {
width: 80px; /* Smaller logo */
margin-bottom: 10px;
}

/* Buttons */
.cbPrimaryBtn, .cbSecondaryBtn {
padding: 10px 15px; /* Smaller padding */
font-size: 14px;
}

#openModalButton {
margin-bottom: 15px; /* Add spacing for "Logga ut" button */
}


/* Ensure the form scales properly */
.form-control, .form-select {
font-size: 12px; /* Adjust font size for inputs */
}

/* Modal adjustments for smaller screens */
.modal-content {
width: 100%;
padding: 15px;
}

/* Fixing the layout of buttons */
.modal-buttons {
gap: 10px;
}

.text-center{
font-size: 12px
}

#kund-results div {
padding: 10px;
font-size: 14px;
background-color: #fff;
border-bottom: 1px solid #ddd;
cursor: pointer;
transition: background-color 0.3s ease, border-color 0.3s ease;
}

#kund-results div:hover {
background-color: #e6f7eb; /* Light green background on hover */
border-left: 3px solid #00321e; /* Highlight border on hover */
}

#kund-results {
  position: absolute;
	overflow-y: auto;  
  top: 100%; /* Positions the dropdown directly below the input field */
  left: 0;
  width: 100%; /* Ensures the dropdown matches the input field's width */
  z-index: 1000; /* Ensures the dropdown appears above other content */
  background-color: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }
}

#kund-results div:hover,
#kund-results div.active-result {
  background-color: #00321e; /* your highlight color */
  color: #fff;
}


/* Fix for logo image overflowing container */
.logo-img img {
max-width: 100%;
height: auto; /* Maintain aspect ratio */
margin: 0 auto;
display: block; /* Center the logo */
}

/* Adjustments for very narrow screens */
@media (max-width: 480px) {
.card-body {
padding: 5px; /* Further reduce padding */
}

.cbPrimaryBtn, .cbSecondaryBtn {
font-size: 12px;
padding: 8px 12px;
}

/* Center and reduce logo further */
.logo-img img {
width: 60px; /* Smaller logo */
}

/* Form controls and dropdowns */
.form-control, .form-select {
padding: 18px;
font-size: 16px;
}
}


/*****************************************************************tank_add PAGE STYLES*******************************************/

form {
    padding: 20px; /* Add padding inside the form */
}

form label {
    display: block; /* Ensure labels are on a new line */
    margin-bottom: 8px; /* Space between label and input */
    font-weight: bold; /* Make labels bold for emphasis */
}

form input,
form select {
    width: 100%; /* Make inputs fill the form width */
    padding: 10px; /* Add padding for better usability */
    font-size: 16px; /* Standardize input font size */
    border-radius: 5px; /* Rounded corners for inputs */
    border: 1px solid #ccc; /* Light gray border */
}

.form-control:focus {
  border-color: #00321e !important; /* Change border color to green */
  outline : none !important; /* Remove default blue outline */
  box-shadow: 0 0 5px rgba(0, 50, 30, 0.5) !important; /* Add a subtle green glow effect */
}

.form-select:focus {
  border-color: #00321e !important; /* Change border color to green */
  outline : none !important; /* Remove default blue outline */
  box-shadow: 0 0 5px rgba(0, 50, 30, 0.5) !important; /* Add a subtle green glow effect */
}

.form-check-input:checked {
  border-color: #00321e !important; /* Change border color to green */
  outline : none !important; /* Remove default blue outline */
  box-shadow: 0 0 5px rgba(0, 50, 30, 0.5) !important; /* Add a subtle green glow effect */
  color: #00321e !important;
  background-color: #00321e !important;
}

.scrollable-form-wrapper {
    max-width: 800px;
    margin: 0 auto; /* Center the form horizontally */
    padding: 20px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow-y: auto; /* Enable vertical scrolling */
    max-height: calc(100vh - 100px); /* Limit height for the form */
}

/* Ensure margin between fields and buttons */
form .mb-3 {
    margin-bottom: 20px;
}

.form-label {
  font-size: 20px;
}


@media (max-width: 768px) {
    body {
        overflow-x: hidden; /* Prevent horizontal scrolling */
    }

    form {
        max-width: 100%; /* Reduce form width on mobile */
        padding: 15px; /* Smaller padding on mobile */
    }

    form .mb-3 {
        margin-bottom: 15px; /* Compact spacing on mobile */
    }

    .container-fluid {
        padding: 0 10px; /* Reduce container padding for mobile */
    }

    .scrollable-form-wrapper {
        max-width: 95%;
        padding: 15px;
    }
}

#kund_name {
  padding: 20px; /* Increase padding for all sides */
  font-size: 16px; /* Optional: Adjust font size for better readability */
  border-radius: 8px; /* Optional: Add rounded corners */
  border: 1px solid #ccc; /* Optional: Define a subtle border */
}

.btn.btnprimary {
  font-size: 30px; /* Adjust icon size */
  border-radius: 8px; /* Match input field's border-radius */
}

/********************************************************************************************************************************/

/*****************************************************************tank_logs_id PAGE STYLES***************************************/


.card-container {
  display: none; /* Hide cards on desktop */
}

/* Desktop Table */
.table-container table {
    display: table; /* Ensure table is visible */
  width: 100%;
  margin: 0 auto;
  border-collapse: collapse;
}

.table-container th, .table-container td {
  border: 1px solid #ddd;
  padding: 12px;
  text-align: left;
}

.table-container th {
  background-color: #f2f2f2;
  font-weight: bold;
}

/* Header Container */
.header-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
}

.header-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 800px;
  padding: 10px 0;
}

.search-box {
  flex: 1;
}


.header-container h1 {
  margin: 0;
  font-size: 40px;
}

.back-button-container {
  text-align: right;
  margin-left: auto;
}

.back-button {
  background-color: #00321e;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.back-button:hover {
  background-color: #0f6945;
  color: white;
}

/* Mobile-specific Styles */
@media (max-width: 768px) {
  /* Hide Table for Mobile */
  .table-container table {
    display: none;
  }

  /* Card Layout for Mobile */
  .card-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  .card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    background-color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); /* Optional shadow for aesthetic */; 
  }

  .card-item {
    margin-bottom: 8px;
  }

  .card-item span {
    font-weight: bold;
  }

  /* Adjust Header for Mobile */
  .header-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .header-container h1 {
    font-size: 20px;
  }

  .back-button {
    font-size: 14px;
    padding: 8px 16px;
    margin-left: 20px;
  }
  
}

/***********************************************************************************************************************/


/******************************************SUCCESS**************************************************************/
  
/* Background Image */
.bodySuccess {
    background-image: url('../../assets/images/backgrounds/HappeBrew.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh;
}

/* Radial gradient and other styling */
.radial-gradient {
  background: rgba(255, 255, 255, 0.8);
  position: relative;
  z-index: 1;
}

.card {
  background-color: rgba(255, 255, 255, 0.9);
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  width: 100%;
  margin: 0 auto;
}

h1 {
  font-size: 28px;
  color: #00321e;
  font-weight: bold;
  margin-bottom: 20px;
  font-family: "CarlsbergSansW00-Black", serif; /* Optional: Specific for header */
  text-align: center;
}

.info {
  font-size: 18px;
  margin-bottom: 20px;
  color: #333;
}

.cbPrimaryBtn {
	font-family: "CarlsbergSansW00-Black", serif;
  background-color: #00321e;
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 16px;
  display: inline-block;
}

.cbPrimaryBtn:hover {
  background-color: #0f6945;
  color: white;
}

  #toastMessageBox {
      position: fixed;
      top: 60px;
      left: 50%;
      transform: translateX(-50%);
      background: #28a745; /* green background */
      color: #fff;
      padding: 12px 20px;
      border-radius: 5px;
      font-size: 16px;
      font-weight: bold;
      z-index: 9999;
      display: none; /* Hidden by default */
      box-shadow: 0 3px 8px rgba(0,0,0,0.3);
    }

/* Add this in your cbStyle.css or a <style> block */
.toast {
    position: absolute;
    background-color: #4CAF50;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1000;
}
.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.completed-symbol {
    font-size: 1.2em;
    color: green;
    display: inline-block;
    padding: 2px 4px;
}

.cbSecondaryBtn {
  font-family: "CarlsbergSansW00-Black", serif; /* Use the custom font */ !important;
  background-color: #9e2b2b !important;
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
}
.cbSecondaryBtn:hover {
  background-color: #9e5757 !important;
  color: white;
}

.centered-button-container {
  display: flex;
  justify-content: center; /* Horizontally center */
  align-items: center;    /* Vertically center */
  height: 100%;           /* Ensure the container fills the parent height */
}


/******************************************************************************************************************************/
/********************************VAKT PAGE STYLES******************************************************************************/

/* Background blur effect */
.background-blur {
    background-image: url('/assets/images/backgrounds/RT_LOC_GREENHOUSE_40.jpg');
    background-size: cover;
    background-position: center;
    filter: blur(8px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}


.logo-img {
    margin-bottom: -40px; /* Reduce the space below the logo */
    margin-top: -45px; /* Reduce the space above the logo */
}


/* Overlay container */
.overlay {
    background: rgba(255, 255, 255, 0.8);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

/* Table styling */
.table-responsive {
    width: 100%;
    margin-top: 10px;
    max-height: 400px;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    table-layout: auto;
}

th, td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
    word-wrap: break-word;
}

th {
    background-color: #f4f4f4;
    font-weight: bold;
    color: #333;
    pointer-events: none; /* Disable click events on table headers */
    cursor: default; /* Change the cursor to indicate it's not clickable */
}

tr:hover {
    background-color: #f1f1f1;
}

/* Conditional row styling */
tr[style*="background-color: #ffcccc;"] {
    background-color: #ffcccc;
}

.table-responsive table tbody tr:first-child {
    background-color: #eaffea; /* Light green background */
}

.open-felanmalan-button {
    width: 48%;
    padding: 6px 10px;
    font-size: 14px;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    background-color: #00321e;
    transition: background-color 0.3s ease;
}

.open-felanmalan-button:hover {
    background-color: #00593f;
    color: white;
}

.top-buttons {
    display: flex;
    justify-content: flex-end; /* Align the button to the right */
    margin-bottom: 20px; /* Add some space below the buttons */
	z-index: 1060;
}

#kund-results {
    position: absolute;
    top: 100%; /* Position below the input field */
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-height: 600px; /* Limit dropdown height */
    overflow-y: auto; /* Enable scrolling for overflow */
}
#kund-results div {
    padding: 10px;
    font-size: 14px;
    background-color: #fff;
    border-bottom: 1px solid #ddd;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

#kund-results div:hover {
    background-color: #e6f7eb; /* Light green background on hover */
    border-left: 3px solid #00321e; /* Highlight border on hover */
    color: #00321e; /* Change text color */
}

/* Conditional row styling for "FelanmÃ¤ld" status */
.row-felanmalan {
    background-color: #ffcccc;
}

/* Conditional row styling for first row (highlighted green) */
.row-highlight {
    background-color: #eaffea;
}

/* Hide specific columns on smaller screens */
@media (max-width: 768px) {
    .hide-on-mobile {
        display: none;
    }
}

/* Modal styling */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, .5);
    align-items: center;
    justify-content: center;
}

.modal-content {
  position: fixed; /* Ensure it's fixed to the viewport */
  background-color: white;
  border-radius: 8px;
  padding: 20px;
  max-width: 400px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  display: flex; /* Flexbox ensures proper alignment of child elements */
  flex-direction: column;
  text-align: center;
  z-index: 1000; /* Ensure it appears above other elements */
}

.modal-content h5 {
    margin-bottom: 15px;
    color: #00321e;
    font-weight: bold;
}

/* Buttons inside modal */
.modal-buttons {
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.close-button, .submit-button {
    font-size: 14px;
    padding: 8px 15px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-align: center;
}

.close-button {
    background-color: #dc3545;
    color: white;
    display: block;
    margin: 0 auto; /* Center the button horizontally */
    width: 120px;
    height: 60px;
}

.close-button:hover {
    background-color: #c82333;
}

.submit-button {
    background-color: #28a745;
    color: white;
    display: block;
    margin: 0 auto; /* Center the button horizontally */
    width: 120px;
    height: 60px;
}

.submit-button:hover {
    background-color: #218838;
}
/**************************************************************************************************************************************************************/
/***********************************************INDEX****************************************************************************************************/


.main-focus-button {
  font-size: 32px;
  font-weight: bold;
  background-color: #00321e; /* Green background */
  color: white;
  padding: 20px 40px;
  border: none;
  border-radius: 8px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); /* Shadow effect */
  cursor: pointer;
  text-align: center;
  display: block;
  margin: 20px auto;
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.main-focus-button:hover {
  transform: scale(1.05); /* Slight zoom on hover */
  box-shadow: 0px 6px 10px rgba(0, 0, 0, 0.15); /* Bigger shadow on hover */
  background-color:#19704d; /* Darker green on hover */
  color: white;
}

/* Badge color styles based on status */
.badge-success {
  background-color: #28a745; /* Green for Ã–ppnade */
}
.badge-info {
  background-color: #17a2b8; /* Blue for Tank fylld och lÃ¥st */
}
.badge-warning {
  background-color: #ffc107; /* Orange for Ã…terstÃ¤lld */
}
.badge-danger {
  background-color: #dc3545; /* Red for FelanmÃ¤lan */
}

/* Target the specific element to change its color */
#main-wrapper .col-lg-4 .card .col-8 .me-4 .bg-primary {
background-color: #b49132 !important;
}
.notification {
position: fixed; /* Fixes it to the top-left corner */
top: 20px;       /* Adjust top position */
left: 20px;      /* Adjust left position */
font-size: 1.5em;
color: #dc3545;  /* Red color for notification */
z-index: 1000;   /* Ensures it stays above other elements */
text-decoration: none; /* Remove underline */
}

.notification .badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: #dc3545;
    color: white;
    border-radius: 50%;
    padding: 5px 8px;
    font-size: 0.75em;
}

/* Responsive adjustment for mobile */
@media (max-width: 768px) {
    .notification {
        position: absolute;
        top: 10px;
        right: 20px;
        left: auto; /* Remove left alignment on mobile */
    }
}


/****************************************GENERAL STYLES *******************************************************************************/


button.cbThirdBtn {
    background-color: #cccccc !important; /* Grey background */
    color: white !important;
    border: none !important;
    border-radius: 8px !important; /* Rounded corners */
    padding: 8px 16px !important; /* Smaller padding */
    font-size: 1.5rem !important; /* Slightly smaller font size */
    cursor: pointer !important;
    transition: background-color 0.3s ease !important;
    width: auto !important; /* Adjust width to content */
    margin-bottom: 1rem !important; /* Smaller margin */
    display: block;
    margin: 0 auto; /* Center the button horizontally */
}

button.cbThirdBtn:hover {
    background-color: #a6a6a6 !important; /* Darker grey on hover */
}

/************************************ Overwrite DataTables Styles for editable tables in locks, tank_edit, ****************************************************/

.table-responsive-alt {
    width: 100% !important;
    position: relative;
    padding-bottom: 60px; /* Ensure space for pagination */
}

.table-responsive-alt .dataTables_wrapper {
    overflow: visible; /* Ensure pagination is not hidden */
}

.table-responsive-alt .dataTables_wrapper .dataTables_paginate {
    position: relative; /* Avoid sticky conflicts */
    bottom: 0;
    background-color: white;
    z-index: 10;
    padding: 10px;
    border-top: 1px solid #ddd;
    text-align: center; /* Center the pagination */
}

.table-responsive-alt .dataTables_wrapper .dataTables_paginate .paginate_button {
    background-color: white;
    color: #00321e;
    border: 1px solid #00321e;
    padding: 6px 12px;
    margin: 0 5px; /* Add spacing between buttons */
    border-radius: 5px;
    cursor: pointer;
    display: inline-block;
}

.table-responsive-alt .dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background-color: #00321e;
    color: white;
    border-color: #00321e;
    font-weight: bold;
}

@media (max-width: 768px) {
    .table-responsive-alt {
      overflow-x: auto;
    }
}

  a.kund-link {
      color: #00321e; /* Default color */
      text-decoration: none; /* Remove underline */
      transition: color 0.3s ease;
      font-weight: bold 
    }
    a.kund-link:hover {
      color: #7db39d; /* Hover color */
    }

    .link-container {
      text-align: left; /* Align the link to the left */
      margin-bottom: 10px; /* Add space between the link and the card */
    }

    
    .required::after {
        content: " *";
        color: red;
    }
    .description {
        font-size: 0.9em;
        color: gray;
    }


/********************************************************************************************************************/

/***************************************control_panel**********************************************************************/

.content-container {
  margin: 20px;
  text-align: center;
}

.content-container h1 {
  margin-bottom: 20px;
}

.icon-button {
  font-size: 1.5rem;
  cursor: pointer;
  padding: 5px;
  border-radius: 5px;
  transition: 0.3s ease;
}

.icon-remove {
    color: #dc3545;
}

.icon-remove:hover {
    color: #eafaf1;
}

.icon-approve {
  color: #28a745;
  background-color: #eafaf1;
}

.icon-approve:hover {
  background-color: #c6f3d1;
}

.icon-reject {
  color: #dc3545;
  background-color: #faeaea;
}

.icon-reject:hover {
  background-color: #f3c6c6;
}

.approved, .rejected {
    filter: blur(1px);
    font-style: italic;
    pointer-events: none; /* Prevent further clicks on buttons */
    opacity: 0.6; /* Make it slightly transparent */
}

.approved .icon-button, .rejected .icon-button {
    display: none; /* Hide approve/reject buttons */
}

/* Fade-in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.blur-container {
  filter: blur(1px);
  opacity: 0.6;
  pointer-events: none;
  transition: all 0.3s ease;
}

.blur-container:hover {
  filter: blur(1px);
  opacity: 0.8;
}

/* Apply cbPrimaryBtn and cbSecondaryBtn styles */
#confirmDelete {
    font-family: "Montserrat", sans-serif;
    background-color: #00321e;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 25px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#confirmDelete:hover {
    background-color: #0f6945;
}

#cancelDelete {
    font-family: "Montserrat", sans-serif;
    background-color: #fff;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 25px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

#cancelDelete:hover {
    background-color: #fafffc;
    transform: scale(1.03);
    box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.1);
}

        .navigation-buttons {
            margin-bottom: 20px;
            display: flex;
            justify-content: center;
            gap: 20px;
        }

        .navigation-buttons button {
            padding: 10px 20px;
            border: none;
            border-radius: 5px;
            cursor: pointer;
        }

        .navigation-buttons button.active {
            background-color: #00321e;
            color: white;
        }

        .success-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #00321e; 
    color: white;
    padding: 15px 30px;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    font-family: "Montserrat", sans-serif;
    font-size: 16px;
    text-align: center;
    z-index: 10000; /* Ensure it's on top of other elements */
    transition: opacity 0.5s ease;
    opacity: 1; /* Initial opacity for fade-in */
}

/*******************************************************************************************************************/
/*******************************header******************************************************************************/

  /* User Profile Link Styling */
  .user-profile-container {
      display: flex;
      align-items: center;
      cursor: pointer;
      position: relative;
  }

  .user-profile-container i {
      font-size: 1.8rem; /* Larger icon */
      color: #00321e; /* Green color */
  }

  .profile-text {
      font-weight: bold;
      color: #00321e; /* Green color */
      font-size: 1rem;
  }

  .user-info-box {
      background-color: #f8f9fa; /* Light background for subtle visibility */
      border: 1px solid #e0e0e0;
      border-radius: 8px;
      padding: 10px;
      color: #495057; /* Subtle text color */
      text-align: center;
      max-width: 300px;
      position: absolute;
      right: 20px;
      top: 60px;
      z-index: 1000;
  }

  .user-info-box p {
      margin-bottom: 5px;
  }

  .user-info-box i {
      color: #6c757d; /* Subtle icon color */
  }

  /* Responsive Styling to Keep Profile Link Right-Aligned on Mobile */
  @media (max-width: 768px) {
      .user-profile-container {
          position: absolute;
          right: 25px;
          top: 25px;
      }
  }

  .user-profile-container:hover {
      color: #218838; /* Darker green on hover */
      transition: color 0.2s ease;
  }


/******************************************************lock code********************************************************/

   .lock-code-box {
       font-size: 30px;
       font-weight: bold;
       background-color: #52eb8f;
       color: white;
       padding: 10px;
       border: 2px solid #ddd;
       border-radius: 5px;
       display: inline-block;
       width: 50px;
       text-align: center;
       margin-right: 5px;
   }

   .lock-code-wrapper {
       margin: 20px 0;
       display: flex;
       justify-content: center;
       gap: 10px; /* Adds space between the code boxes */
   }

   .btn-container {
       margin-top: 30px; /* Adds space between the code boxes and the button */
   }

   .cbBackBtn {
   font-family: "Montserrat", sans-serif !important;
   background-color: #78283a !important;
   color: white !important;
   border-radius: 8px !important;
   padding: 12px 25px !important;
   font-size: 16px !important;
   cursor: pointer !important;
   transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease !important;
}

.cbBackBtn:hover {
background-color: #7d3b49 !important;
}

.disabled-option {
    font-style: italic;
    color: grey;
}


/************************************************LOGS****************************************************************/


.filter-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px; /* Add space between the elements */
  margin-bottom: 20px; /* Add spacing below the filter container */
  flex-wrap: wrap; 
}

.search-box input {
  padding: 10px;
  width: 300px; /* Adjust width of the search box */
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.tank-dropdown select {
  padding: 10px;
  width: 200px; /* Adjust width of the dropdown */
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
}

/* Mobile-specific adjustments */
@media (max-width: 768px) {
  .filter-container {
    display: flex;
    flex-direction: column; /* Stack elements vertically */
    align-items: center; /* Center elements horizontally */
    gap: 15px; /* Add spacing between the elements */
    margin-bottom: 20px; /* Add spacing below the filter container */
  }

  .search-box input,
  .tank-dropdown select {
    width: 90%; /* Full width with padding on mobile */
    max-width: 400px; /* Limit the width for larger devices */
    padding: 10px; /* Add consistent padding */
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box; /* Include padding in the width calculation */
  }

  .search-box input {
    margin-bottom: 5px; /* Add spacing below the search input */
    width: 200px;
    padding: 20px;
  }

  .tank-dropdown select {
    margin-top: 5px; /* Add spacing above the dropdown */
    width: 200px;
  }
}

#customTooltip {
  white-space: normal;
  text-align: center;
}

/* Container for the header – no changes needed if you already have one */
.title-with-tooltip {
  position: relative;
  display: inline-block;
}

/* Tooltip wrapper for the question-mark icon; keep it positioned relative to the header */
.tooltip-wrapper {
  position: absolute;
  right: 10px;       /* Adjust as needed to position the icon relative to the header */
  top: 50%;
  transform: translateY(-50%);
  display: inline-block;
  cursor: help;
}

/* Tooltip text: fixed so it always appears at the top center of the viewport */
.tooltip-wrapper .tooltip-text {
  display: none;
  position: fixed; 
  top: 10px;             /* 10px from the top of the viewport; adjust as needed */
  left: 50%;             /* Center horizontally */
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.85);
  color: #fff;
  padding: 10px 24px;
  border-radius: 4px;
  max-width: 300px;
  font-size: 0.9rem;
  z-index: 99999;
  white-space: normal;   /* Allow wrapping of text */
}

/* Arrow for the tooltip on the left side of the tooltip box */
.tooltip-wrapper .tooltip-text::before {
  content: "";
  position: absolute;
  left: -8px;          /* Place arrow on the left edge */
  top: 50%;
  transform: translateY(-50%);
  border-width: 8px;
  border-style: solid;
  border-color: transparent rgba(0,0,0,0.85) transparent transparent;
  z-index: 100000;
}

/* Show the tooltip text on hover over the tooltip wrapper */
.tooltip-wrapper:hover .tooltip-text {
  display: block !important;
}

.holiday {
  background-color: red !important; /* strong red to test */
}

div.dataTables_filter {
  text-align: right;
	margin-bottom: 10px;
}

.levplan .body-wrapper > .container-fluid,
.levplan .body-wrapper > .container-lg,
.levplan .body-wrapper > .container-md,
.levplan .body-wrapper > .container-sm,
.levplan .body-wrapper > .container-xl,
.levplan .body-wrapper > .container-xxl {
  max-width: none !important;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
  justify-content: space-between;
}

.filter-group {
  display: flex;
  flex-direction: column;
}

 @media (min-width: 768px) {
      .filter-group {
        flex-direction: row;
        align-items: center;
      }
      .filter-group label {
        margin-right: 8px;
        margin-bottom: 0; /* because we place them side by side now */
      }
    }

.filter-form {
      display: flex;
      flex-wrap: wrap;
      gap: 1rem;
      align-items: flex-end;
    }
 .filter-group label {
      font-weight: 600;
      margin-bottom: 2px;
    }
  .modal-overlay {
        position: fixed;
        top: 0; left: 0;
        width: 100%; height: 100%;
        background: rgba(0,0,0,0.5);
        display: none; /* hidden by default */
        justify-content: center;
        align-items: center;
      }

.btnAddComment{
	font-family: "CarlsbergSansW00-Black", serif;
  background-color: #00321e;
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 12px;
  display: inline-block;
}

.pagination {
    text-align: center; /* Centers pagination */
    margin: 20px 0;
}
.pagination a {
    color: #00321e; /* Updated color */
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 4px;
    margin: 0 5px;
    border: 1px solid #00321e;
}
.pagination a:hover {
    background-color: #f1f1f1;
}
.pagination span {
    padding: 8px 12px;
    margin: 0 10px; /* Adds space between counter and buttons */
    display: inline-block;
}

#kund-results div.highlighted {
  background-color: #00321e;
  color: white;
}

 #visualTrucks {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
  }
  .truck {
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    min-width: 150px;
    text-align: center;
  }
  .truck h3 {
    margin: 0;
    font-size: 16px;
    color: #333;
  }
  .truck p {
    margin: 5px 0;
    color: #666;
  }

.btn-gradient {
    background: linear-gradient(135deg, #36d1dc, #5b86e5);
    color: white;
    border: none;
    padding: 2px 8px;
    font-size: 12px;
    border-radius: 4px;
    margin-left: 6px;
    cursor: pointer;
}
.btn-gradient:hover {
    opacity: 0.9;
}

/* ========== 1) TOP SECTION STYLES ========== */
  .top-section {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
    align-items: flex-start;
  }
  .counters-and-filters {
    flex: 1;
    min-width: 300px;
    background: #fafafa;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  }
  .counters-and-filters h2 {
    margin-top: 0;
    font-size: 1.2rem;
    margin-bottom: 10px;
  }
  .region-filters {
    margin-bottom: 10px;
  }
  .counter-section {
    margin-bottom: 10px;
  }

  /* ========== 2) MAP STYLES ========== */
  .map-container {
    width: 350px;
    height: 285px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  }
  .map-container #map {
    width: 100%;
    height: 100%;
  }

  /* ========== 3) MAIN PLANNING SECTION ========== */
/*  MAIN PLANNING SECTION  */
.main-planning-row{
    display:flex;
    flex-wrap:wrap;       
    gap:1rem;
}

/* 55 %  –  hälften av gapet (=0.5 rem) dras bort så totalen < 100 %  */
.route-planning-container{
    flex:0 0 calc(55% - .5rem);
    min-width:420px;
    max-width:780px;
}

/* KUNDDATA  – smalare (45 %) */
.customer-data-container{
    flex:1 1 calc(45% - .5rem);
    min-width:380px;
    overflow-x:auto;        /* tabellen kan sidscrolla om det blir för trångt */
}

/* Fin-justering av tabellcellernas padding så den får plats */
#tableViewData th,
#tableViewData td{
    padding:.30rem .45rem;
    font-size:.85rem;
}


  .route-planning-container h2, .customer-data-container h2 {
    margin-top: 0;
  }


#tableViewData td,
#tableViewData th{
    padding: .35rem .55rem;
    font-size: 0.9rem;      /* tweak down font a hair */
}


  .route-planning-container h2, .customer-data-container h2 {
    margin-top: 0;
  }


  /* Route Table - group rows by route_id in separate "cards" */
  .route-group {
    background: #f8f8f8;
    margin-bottom: 15px;
    border-radius: 6px;
    padding: 10px;
    border: 1px solid #ddd;
  }
  .route-group h3 {
    margin-top: 0;
    margin-bottom: 5px;
    font-size: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .route-group h3 .route-label {
    font-weight: 600;
  }


  /* Make TRs draggable with pointer cursor */
  tr[draggable="true"] {
    cursor: move;
  }

  /* Overlapping fix */
  .route-planning-container table, .customer-data-container table {
    table-layout: auto;
  }

  /* keep backdrop ˜1040, put dialog above it */
  :root {
    --bs-backdrop-zindex: 1040;
    --bs-modal-zindex:    1055;
  }
  /* in case the variables are stripped by minification */
  .modal-backdrop   { z-index: var(--bs-backdrop-zindex, 1040) !important; }
  .modal,           /* wrapper */
  .modal-dialog,
  .modal-content    { z-index: var(--bs-modal-zindex,    1055) !important; }

/* --- ROUTE CARD LAYOUT --- */
.route-group           { border:1px solid #0a7005; border-radius:8px; background:#fff; }
.route-header          { display:flex; flex-wrap:wrap; gap:.75rem; align-items:center; }
.route-header > span   { font-size:.9rem; }
.route-volume          { font-weight:500; }
.route-controls        { display:flex; flex-wrap:wrap; gap:.5rem; margin-top:.5rem; }
/* collapse icon */
.toggleIcon            { cursor:pointer; font-size:1.1rem; }

/* route card becomes soft-green when planned */
.route-group.planned   { background:#e9f8ea; border:1px solid #9dd79f; }
.route-group.planned .route-header   { color:#20682a; }

.choice-screen {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}
.choice-screen h2 {
  color: #fff;
  margin-bottom: 1rem;
}

.choice-screen .driver-btn {
  padding: 0.75rem 1.5rem;
  font-size: 30px;
  border-radius: 0.5rem;
  border: none;
  background: #7db39d;
  color: white;
  flex: 1 1 40%;
  max-width: 120px;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
	margin-top: 50px;

}
@media (max-width: 576px) {
  .choice-screen .driver-btn {
    flex: 1 1 80%;
  }
}

/* ----------------------------------------------
   Överlagrad ruta: "Senaste händelser"
---------------------------------------------- */
#logOverlay{
  position:fixed;
  inset:0;                                 /* top:0; right:0; bottom:0; left:0 */
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(0,0,0,.55);              /* lite mörkare backdrop */
  z-index:1050;
}

/* själva rutan */
#logOverlay .log-box{
  width: min(600px, 90%);                  /* större max-bredd */
  background:#fff;
  border-radius:10px;
  box-shadow:0 6px 24px rgba(0,0,0,.35);
  overflow:hidden;
  font-size:1.05rem;                       /* större brödtext */
  line-height:1.45;
}

/* rubrikrad */
#logOverlay header{
  background:#00321e;
  color:#fff;
  padding:1rem 1.25rem;                    /* kraftigare padding */
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size:1.35rem;                       /* större rubrik */
  font-weight:600;
}

/* stäng-knappen */
#logOverlay button.closeX{
  background:none;
  border:none;
  color:#fff;
  font-size:2.75rem;                       /* tydligare X */
  line-height:1;
  cursor:pointer;
}

/* listan med händelser */
#logOverlay ul{
  list-style:none;
  margin:0;
  padding:1rem 1.25rem;
  max-height:65vh;                         /* lite högre */
  overflow-y:auto;
}

/* varje rad */
#logOverlay li{
  padding:.5rem 0;
  border-bottom:1px solid #e9ecef;
}

/* datum/tid i mindre stil */
#logOverlay li small{
  display:block;
  color:#044600;
}


/* Log overlay: table layout */
#logOverlay .log-table { width:100%; border-collapse:collapse; }
#logOverlay .log-table thead th{
  background:var(--brand-50);
  color:var(--ink-700);
  font-weight:800;
  padding:10px 12px;
  text-align:left;
  border-bottom:1px solid #dfe8e3;
}
#logOverlay .log-table tbody td{
  padding:12px;
  border-bottom:1px solid #eef3f0;
  vertical-align:top;
}
#logOverlay .log-table .col-date{ white-space:nowrap; width: 210px; color:#0f3b2c; font-weight:700; }
#logOverlay .log-table .col-event{ color:#2f4b3f; }
#logOverlay .log-table .col-vol{ width:120px; text-align:right; color:#0f3b2c; font-weight:700; }


.sortBreakdown{
    font-size: 14px;
    font-weight: 600;
    margin-left: .5rem;   
    margin-top: .7rem;   
    display: inline-block;
}

        .floating-info-box {
            position: fixed;
            top: 24px;
            left: 50%;
            transform: translateX(-50%);
            background-color: #fff8c6;
            border: 1px solid #f0d56f;
            padding: 1.25rem 1.75rem 1.25rem 1.25rem;
            box-shadow: 0 4px 14px rgba(0,0,0,0.25);
            border-radius: 10px;
            max-width: 900px;
            width: 90%;
            z-index: 5000;
            font-size: .95rem;
            line-height: 1.45;
	white-space: pre-line; /* show line-breaks from PHP newline */
        }
.floating-info-box .close-floating-info {
	position: absolute;
    top:   4px;
    right: 4px;
    font-size: 2rem;       /* bigger × */
    line-height: 1;        /* tight */
    width:  36px;          /* larger hit-area */
    height: 36px;
    border-radius: 50%;
    background: #ff5c5c;   /* eye-catching red circle */
    color: #fff;
    box-shadow: 0 0 6px rgba(0,0,0,.3);
    transition: transform .15s ease;
}
.floating-info-box .close-floating-info:hover {
    transform: scale(1.15);   /* subtle grow on hover */
}
        .blur-active .page-wrapper {
            filter: blur(4px);
            pointer-events: none;
        }

/* make both panels cover the whole viewport and sit on top */
#routeSummary,
#routeCarousel {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  padding: 1rem;
  background: #fff;
  overflow-y: auto;
  z-index: 1000;
  display: none; /* start hidden */
}

.full-screen-newtank {
  position: fixed; top:0; left:0;
  width:100vw; height:100vh;
  background:#fff; z-index:1000;
  display:none; overflow-y:auto;
}
.stop-progress {
  font-size:1.2rem; font-weight:600;
}
.swiper-slide.completed h4 {
  text-decoration: line-through;
  opacity: 0.5;
}

.swiper-pagination{
  position:fixed !important;
  left:0; right:0; bottom:1rem;
  text-align:center;
  z-index:1050;      /* above the slide */
}

.error-text{color:#c00;font-size:.9rem;margin-top:.25rem}

/* NEW */
.swiper-slide.locked           { opacity:.35 }
.swiper-slide.locked input,
.swiper-slide.locked select,
.swiper-slide.locked textarea,
.swiper-slide.locked button    { pointer-events:none }
.swiper-slide.completed .submit-lock { display:none }   /* hide button */

/* keep the white card on non-finished slides */
.swiper-slide .slide-card{
  background:#fff;
}

.swiper-slide .done-tag         { display:none; }
.swiper-slide.completed .done-tag {
    display: block;
    color: #b20000;
    font-weight: 1500;
    font-size: 36px;
    text-align: center;
	    font-family: "CarlsbergSansW00-Black", serif;
}
.completed-card{
    background:#f8d7da!important;
    border-color:#f5c2c7!important;
}
.completed-card h4::after{
    content:" – Avklarad";
    font-weight:700;
    color:#842029;
}

.completed-card .done-tag { position:absolute; top:8px; right:12px;
                            color:#b20000; font-weight:700; }

:root{
  --cb-green: #00321e;         /* primary dark green              */
  --cb-green-hov: #00482b;     /* hover/focus (˜ 20 % lighter)    */
}

/* ------------ bar container ------------------------------------- */
.top-buttons{
  backdrop-filter: blur(6px);
  background: rgba(255,255,255,.85);
  box-shadow: 0 2px 4px rgba(0,0,0,.08);
  position: relative;
  z-index: 1050;
}

/* ------------ icon buttons -------------------------------------- */
.icon-btn{
  background:#00321e;
  border:none;
  color:#fff;
  width:3.2rem;          /* nice, big targets */
  height:3.2rem;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:.5rem;
  transition:background .15s;
}
.icon-btn i { font-size:1.5rem; line-height:1; }

.icon-btn:hover,
.icon-btn:focus{
  background:#025633;    /* slightly lighter hover/focus */
  outline:none;
}

/* navbar logo */
.navbar-logo{
  height:2.5rem;
  width:auto;
}

.swiper-slide .card-body   { max-width: 520px; margin-left:auto; margin-right:auto; }

#celebrateOverlay{
    position:fixed; inset:0;                   /* full-screen */
    display:flex; flex-direction:column; 
    justify-content:center; align-items:center;
    background:rgba(0,0,0,.5);                 /* subtle dim */
    z-index:1055;                              /* above everything */
    pointer-events:none;                       /* clicks pass through */
}
#confettiCanvas{ position:absolute; inset:0; } /* canvas fills overlay */

@media (max-width: 576px) {
  /* #carouselWrapper is the .swiper-container ? make room at the bottom */
  #carouselWrapper {
    padding-bottom: 3.5rem; /* roughly 2 cm of extra white-space */
  }
}

@media (max-width: 575.98px) {          /* Bootstrap’s xs / < sm breakpoint */
  .fakturering-checkbox {
    /* enlarge the hit-area to ˜ 44 × 44 px */
    transform: scale(1.6);              /* makes the box ~26 px */
    transform-origin: top left;         /* avoid shifting it off-grid */
    margin-right: 6px;                  /* restore spacing after scaling */
  }

  /* keep the same brand colour in browsers that support accent-color */
  .fakturering-checkbox {
    accent-color: #00321e;
  }

  /* make the blurred disabled checkbox large too (optional) */
  .fakturering-checkbox[disabled] {
    pointer-events: none;               /* don’t let users tap it */
  }
}

.field-error { display:none; color:#dc3545; margin-top:4px; font-size:.875rem; }

.form-control.is-invalid { border-color:#dc3545; }

/* ===== Leveransplanering map fullscreen (scoped) ===== */

/* Scope container so styles only affect this map block */
.levmap-container { position: relative; }

/* When the map goes fullscreen */
.levmap-fullscreen {
  position: fixed !important;
  top: 0; left: 0;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 10000;
  box-shadow: none;
}

/* Lock page scroll when fullscreen is active */
body.levmap-fs-lock { overflow: hidden; }

/* Close button – hidden by default, only shows in fullscreen */
.levmap-fs-close {
  position: fixed;
  top: 12px; right: 12px;
  z-index: 10001;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 14px;
  cursor: pointer;
  display: none;
}

/* Show the close button when the map (earlier sibling) is fullscreen */
.levmap-container .levmap-fullscreen ~ .levmap-fs-close {
  display: inline-flex;
}

/* Always-visible labels for Leaflet map in levplan */
.levmap-label {
  background: rgba(255,255,255,0.9);
  border: 1px solid #444;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 12px;
  color: #000;
  white-space: nowrap;
}

/* === Filter Overlay === */
.filter-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  display: none;
  z-index: 1050; /* above page chrome */
}

.filter-overlay.open {
  display: block;
}

.filter-panel {
  position: absolute;
  right: 0;
  top: 0;
  width: min(720px, 100%);
  height: 100%;
  background: #fff;
  box-shadow: -12px 0 28px rgba(0,0,0,.18);
  display: flex;
  flex-direction: column;
  animation: slideIn .18s ease-out;
}

@keyframes slideIn {
  from { transform: translateX(16px); opacity: .6; }
  to   { transform: translateX(0);    opacity: 1;  }
}

.filter-header, .filter-footer {
  padding: 16px 20px;
  border-bottom: 1px solid #eee;
}

.filter-footer { border-top: 1px solid #eee; border-bottom: 0; }

.filter-body {
  padding: 16px 20px 24px;
  overflow-y: auto;
  flex: 1;
}

.filter-close {
  font-size: 1.25rem;
  line-height: 1;
}

body.no-scroll {
  overflow: hidden;
}

/* === Map sizing === */
.levmap-container.small #map {
  height: 240px; /* smaller initial footprint */
}

.map-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #00321e; /* your palette accent */
}

/* --- Tiny map preview next to the button --- */
.levmap-container.tiny #map {
  width: 140px;     /* ~ same visual weight as the button */
  height: 44px;     /* button-height */
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  overflow: hidden;
  cursor: pointer;
}

/* “Karta” label, visually consistent with button text */
.map-chip-label {
  display: inline-block;
  font-weight: 700;
  font-size: 0.95rem;
  color: #00321e;                /* your accent */
  line-height: 1;
  transform: translateY(1px);    /* align baseline with button text */
}

.top {
 position:sticky;
 top:0;
 z-index:10;
 display:flex;
 gap:8px;
 align-items:center;
 justify-content:space-between;
 background:#fff;
 padding:14px 16px;
 border-bottom:1px solid #e6ece9
}

.wrap {
 padding:12px 12px 80px
}

.rowCard {
 background:#fafffb;
 border:1px solid #e6ece9;
 border-radius:16px;
 padding:12px 14px;
 margin-bottom:12px
}

.po {
 font-weight:800;
 margin-bottom:6px
}

.matRow {
 display:flex;
 align-items:center;
 gap:12px;
 border-top:1px dashed #eef3f1;
 padding-top:10px
}

.chk {
 width:22px;
 height:22px
}

.qty {
 font-size:15px;
 color:#0b2b1f
}

.stickyBar {
 position:fixed;
 left:0;
 right:0;
 bottom:0;
 z-index:90;
 background:#ffffffcc;
 backdrop-filter:saturate(1.2) blur(4px);
 border-top:1px solid #e6ece9;
 padding:10px 12px;
 display:flex;
 justify-content:center
}

.sigOverlay {
 position:fixed;
 inset:0;
 background:rgba(11,43,31,.5);
 backdrop-filter:blur(2px);
 display:none;
 align-items:center;
 justify-content:center;
 z-index:100
}

.sigOverlay.open {
 display:flex
}

.sigModal {
 background:#fff;
 border-radius:16px;
 border:1px solid #e6ece9;
 width:min(720px,95vw);
 padding:14px
}

.sigHead {
 display:flex;
 align-items:center;
 justify-content:space-between;
 margin-bottom:8px
}

.sigBody {
 display:grid;
 gap:12px
}

.sigRow {
 display:flex;
 gap:10px;
 align-items:center;
 flex-wrap:wrap
}

.sigInput { 
 border:1px solid #dfe8e4;
 border-radius:12px;
 padding:10px 12px;
 font-size:16px
}

.sigCanvasWrap {
 border:1px solid #dfe8e4;
 border-radius:12px;
 overflow:hidden
}

.sigCanvas {
 width:100%;
 height:260px;
 touch-action:none;
 display:block;
 background:#fafdfb
}

.sigActions {
 display:flex;
 gap:8px;
 justify-content:center
}

.pillOk {
 background:#dcfce7;
 color:#166534;
 border:1px solid #bbf7d0;
 padding:4px 8px;
 border-radius:9999px;
 font-size:12px
}

@media (max-width:480px){
  .chk{width:24px;height:24px}
  .mat{font-size:16px}
}

/* Centered modal + blocking overlay for PA progress */
.paOverlay {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(11,43,31,.35); backdrop-filter: blur(2px);
  display: none; /* toggled via JS */
}
.paOverlay.open { display: block; }

.paModal {
  position: fixed; z-index: 85;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  background:#fff; border:1px solid #e6ece9; border-radius:14px;
  box-shadow:0 20px 50px rgba(0,0,0,.18);
  width: 360px; max-width: calc(100vw - 40px); padding:16px;
  font-family: system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Arial,sans-serif; color:#0b2b1f;
}
.paHdr { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:6px; }
.paRow { display:flex; align-items:center; gap:10px; padding:8px 0; border-top:1px dashed #eef3f1; }
.paRow:first-child { border-top:0; }
.paDot { width:10px; height:10px; border-radius:50%; background:#c8d6d1; flex:0 0 10px; }
.paDot.active { background:#7db39d; }
.paDot.done   { background:#00321e; }
.paMsg{ font-size:12px; color:#4d6a5c }
.spin { width:16px; height:16px; border:2px solid #cfe1da; border-top:2px solid #00321e; border-radius:50%; animation:spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.paOkay { color:#0b2b1f; font-weight:700 }
.paError { color:#b00020; font-weight:700 }


  .filterOverlay{
    position:fixed; inset:0; display:none; z-index:60;
    background:rgba(11,43,31,.35); backdrop-filter: blur(2px);
    align-items:center; justify-content:center; padding:16px;
  }
  .filterOverlay.open{ display:flex; }
  .filterPanel{
    width:100%; max-width:560px; background:#fff; border-radius:16px;
    border:1px solid #e6ece9; box-shadow:0 20px 50px rgba(0,0,0,.12);
    padding:16px;
  }
  .panelHead{ display:flex; align-items:center; justify-content:space-between; margin-bottom:10px; }
  .panelHead .titleWrap{ display:flex; align-items:center; gap:8px; color:#00321e; }
  .panelClose{ background:transparent; border:0; font-size:18px; line-height:1; color:#4d6a5c; cursor:pointer; }
  .filterFab{
    position:fixed; right:16px; bottom:16px; z-index:55;
    width:46px; height:46px; border-radius:9999px;
    background:#00321e; color:#fff; display:flex; align-items:center; justify-content:center;
    border:0; box-shadow:0 10px 24px rgba(0,0,0,.18);
  }
  @media (min-width: 640px){ .filterFab{ display:none; } }

.waitPill { background:#fff3cd; color:#7f5f00; border:1px solid #ffe69c; }

/* Container for the textarea with an in-field stamp  */
.pill.my-pill { position: relative; align-items: flex-start; }

/* The colored “stamp” rendered visually inside the field */
.pill.my-pill.has-stamp::before{
  content: attr(data-stamp);
  position: absolute;
  top: 10px; left: 12px;
  font-weight: 700;
  font-size: 12px;
  line-height: 1;
  padding: 4px 6px;
  border-radius: 10px;
  background: #e7f4ee;    /* default CB look (off-green) */
  color: #0b2b1f;
  border: 1px solid #bfe2cf;
}

/* Role colors */
.pill.my-pill[data-stamp="CB:"]::before   { background:#e7f4ee; color:#0b2b1f; border-color:#bfe2cf; }
.pill.my-pill[data-stamp="ANO:"]::before  { background:#efe7f7; color:#3a1f5d; border-color:#d6c6ea; }
.pill.my-pill[data-stamp="PERN:"]::before { background:#e7f0fb; color:#0a2a5f; border-color:#c5d6f3; }

/* Textarea itself */
.commentInput{
  width: 100%;
  min-width: 220px;              /* wider by default */
  min-height: 80px;              /* taller by default */
  padding: 12px 38px 12px 64px;  /* extra left room for the stamp */
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #fff;
  overflow: hidden;
  resize: vertical;              /* allow manual grow if desired */
  line-height: 1.35;
}

/* Comment row: textarea + save button on one line */
.commentBox .my-pill{
  display:flex;
  align-items:center;        /* center the button vertically vs the textarea */
  gap:10px;                  /* space between textarea and button */
  width:100%;
}

/* Make the textarea take the remaining width */
.commentBox .my-pill .commentInput{
  flex:1 1 auto;             /* grow/shrink to fill */
  min-height:80px;           /* keep a nice height */
  margin:0;                  /* kill default margins so centering works cleanly */
  resize:vertical;           /* allow vertical resizing if you want */
}

/* Keep the button compact and centered */
.commentBox .my-pill .saveBtn{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:38px;
  height:38px;
  border-radius:10px;
  border:1px solid #e6ece9;
  background:#f7fbf9;
  cursor:pointer;
}
.commentBox .my-pill .saveBtn:hover{
  background:#eef6f3;
}
.commentBox .my-pill .saveBtn svg{
  width:18px; height:18px;
}

/* Save button */
.saveBtn{
  margin-left:.5rem; margin-top:6px;
  display:inline-flex; align-items:center; justify-content:center;
  width:28px; height:28px;
  border-radius:.5rem; border:1px solid #bfe2cf;
  background:#e7f4ee; color:#0b2b1f; cursor:pointer;
  transition:transform .05s ease, background .15s ease;
}
.saveBtn:hover{ background:#dff0e8; }
.saveBtn:active{ transform:scale(.98); }
.saveBtn[disabled]{ opacity:.5; cursor:not-allowed; }

/* Space stacked pills (CB/ANORA/PERNOR) */
.commentBox .pill + .pill { margin-top: 6px; }

/* Make the role tag tighter and align timestamp + text nicely */
.commentBox .pill .tag { margin-right: 6px; }
.commentBox .pill .txt { white-space: pre-wrap; }

/* shared */
.pill { border:1px solid #e6ece9; border-radius:12px; padding:8px 10px; display:flex; gap:8px; align-items:flex-start; }
.pill .tag { font-weight:700; padding:2px 6px; border-radius:8px; border:1px solid transparent; }

/* CB = green */
.pill-cb       { background:#f0fbf4; border-color:#b5e5c7; }
.pill-cb .tag-cb{ background:#e3f7ea; border-color:#b5e5c7; color:#0b6b3a; }

/* ANORA = purple */
.pill-ano        { background:#f7f3ff; border-color:#d6c8ff; }
.pill-ano .tag-ano{ background:#ede7ff; border-color:#d6c8ff; color:#5b3abf; }

/* PERNORD = blue */
.pill-pr        { background:#eef5ff; border-color:#bcd6ff; }
.pill-pr .tag-pr{ background:#e4f0ff; border-color:#bcd6ff; color:#1b54b8; }

/* timestamp styling */
.stamp { font-style: italic; }

.commentBox .muted.text-xs { margin-left: 2px; }

.btnFetch{
  background:#fff; border:1px solid #cfd8d3; color:#00321e;
  transition: background-color .15s ease, box-shadow .15s ease;
}

.btnFetch:hover{ background:#f6faf8; box-shadow:0 1px 4px rgba(0,0,0,.06); }

.commentBox .pill .txt { line-height:1.3; }

tbody tr:hover { background:#f7faf9; }

.emptyLine{
  display:flex; align-items:center; gap:6px; color:#576c80; font-size:12px; margin-top:6px;
}
.emptyLine svg{ fill:currentColor; }

/* ===== Chips (status) ===== */
.chip--success{ background:#e9f6ef; border-color:#bfe7cd; color:#0a6b3e; }
.chip--neutral{ background:#eef3f7; border-color:#d6e1ea; color:#395b73; }

  .arriveWrap{ position:relative; display:inline-flex; align-items:center; gap:8px; cursor:pointer; }
  .arriveWrap input[type="checkbox"]{ position:absolute; opacity:0; pointer-events:none; }
  .arriveWrap .bigBox{
    width:28px; height:28px; border:2px solid #00321e; border-radius:6px; display:inline-block;
  }
  .arriveWrap input[type="checkbox"]:checked + .bigBox{
    background:#00321e; box-shadow:inset 0 0 0 3px #fff;
  }


/* row highlight when Anlänt is set (planners view) */
.row-arrived {
  /* a soft green wash + left accent */
  background-image: linear-gradient(to right, #f5fbf8 0%, #ffffff 65%);
  box-shadow: inset 3px 0 0 0 #bfe7d1;
}

/* generic chip baseline (you already have something similar for “Signerad”) */
.chip {
  display:inline-flex; align-items:center; gap:6px;
  font-size:12px; font-weight:700; line-height:1;
  border-radius:999px; padding:6px 10px; border:1px solid transparent;
  vertical-align:middle;
}
.chip-ico { width:16px; height:16px; }

/* arrived variant */
.chip--arrived {
  background:#eaf7f0;
  color:#0b3d2a;
  border-color:#cde9dc;
}

  /* subtle second line under terminal name (desktop) */
  .subtleMeta {
    margin-top:4px; display:flex; align-items:center; gap:8px;
    font-size:12px; color:#5a7266;
  }
  .subtleMeta svg { width:14px; height:14px; opacity:.8; }

  .stat-row { display:flex; justify-content:space-between; font-size:16px; color:#0b2b1f; margin-bottom:1rem; }
  .stat { display:flex; align-items:center; gap:.4rem; }
  .icon { width:16px; height:16px; color:#00321e; } /* Carlsberg green */

  .dl-head{
    padding: 8px 2px 6px 2px;
    margin: 4px 0 6px 0;
    border: 0;
    box-shadow: none;
    background: transparent;
  }
  .dl-title{
    color:#00321e;
    font-weight: 800;
    font-size: 1.25rem; /* 20px */
    line-height: 1.2;
    letter-spacing:.2px;
    display:flex; align-items:center; gap:.5rem;
    margin-bottom: 2px;
  }
  .dl-sub{
    color:#0b2b1f;
    font-weight: 700;
    font-size: .95rem;
    margin-bottom: 8px;
  }
  .dl-chips{
    margin-top:10px;
    display:flex; flex-wrap:wrap; gap:8px;
  }
  .dl-chip{
    display:inline-flex; align-items:center; gap:6px;
    padding:6px 10px; border-radius:9999px;
    font-size:12px; font-weight:700;
    background:#e8f3ee; color:#0b2b1f;
  }
  .dl-chip--rows   { background:#ecfdf5; color:#065f46; }
  .dl-chip--kolli  { background:#f2f7f5; color:#0b2b1f; }
  .dl-chip--weight { background:#eef3f1; color:#0b2b1f; }
  .dl-chip svg{ width:16px; height:16px; }

  /* Subtle emerald pulse around selected summary */
  .pulse-green{
    position: relative;      /* create positioning context */
    z-index: 0;              /* ensure we can layer the pseudo-element */
    border-radius: 0.5rem;   /* matches your rounded-lg (8px) */
  }
  .pulse-green::before{
    content:"";
    position:absolute;
    inset:-6px;              /* how far outside the element the glow extends */
    border-radius: inherit;
    pointer-events:none;
    box-shadow: 0 0 0 0 rgba(16,185,129,.55); /* emerald-ish */
    animation: pulseGlow 1.6s ease-out infinite;
  }
  @keyframes pulseGlow{
    0%   { box-shadow: 0 0 0 0   rgba(16,185,129,.55); }
    70%  { box-shadow: 0 0 0 14px rgba(16,185,129,0);  }
    100% { box-shadow: 0 0 0 0   rgba(16,185,129,0);   }
  }

  /* Accessibility: honor reduced motion */
  @media (prefers-reduced-motion: reduce){
    .pulse-green::before{ animation: none; }
  }

/* ----- MÄTETAL modal (wide, one-page desktop) ----- */

/* Only show overlay when open */
#metricsModal.filterOverlay.open {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

#metricsModal.filterOverlay {
  padding: 24px 14px;
  background-color: rgba(0,0,0,0.15);
  backdrop-filter: blur(2px);
}

@media (min-width: 640px) {
  #metricsModal.filterOverlay { padding: 40px 24px; }
}

/* Panel (desktop default) */
#metricsModal .filterPanel.metricsPanel {
  max-width: none !important;
  width: min(1280px, 96vw) !important;   /* extra wide on desktop */
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
  box-sizing: border-box;
  max-height: 88vh;                      /* one-page desktop */
  overflow: hidden;                      /* no scroll on desktop */
  padding: 22px 24px;
}

/* Header & spacing */
#metricsModal .panelHead {
  padding-bottom: 8px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(0,0,0,.06);
}
#metricsModal form { margin-bottom: 12px; }

/* KPI grid */
#metricsModal .gridKpi { margin-bottom: 12px; }
#metricsModal .kpiCard { padding: 10px 12px !important; }
#metricsModal .kpiLabel { font-size: 12px; color: #6b7280; }
#metricsModal .kpiValue { font-size: 20px; font-weight: 800; }

#metricsModal .gridCharts { gap: 12px; }

/* Chart “cards” */
#metricsModal .chartBox {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  contain: layout paint size;            /* isolate sizing */
}
#metricsModal .chartBox > canvas {
  flex: 1 1 auto;                        /* take remaining height in the card */
  min-height: 0;                         /* fix flex overflow in some browsers */
}

/* Desktop / large heights */
@media (min-width: 1024px) {
  #metricsModal .chartBox { height: 170px; }           /* donut + bars */
  #metricsModal .chartBox.chartWide { height: 210px; } /* line */
  #metricsModal .kpiCard { padding: 8px 10px !important; }
  #metricsModal .kpiValue { font-size: 18px; }
}

/* ------------ MOBILE (single, consolidated block) ------------ */
@media (max-width: 1023px) {
  /* Use dynamic viewport units; allow panel to scroll */
  #metricsModal .filterPanel.metricsPanel {
    width: 100vw !important;
    height: 100dvh !important;      /* replaces 100vh */
    max-height: 100dvh !important;
    overflow-y: auto;
    overflow-x: hidden;
    border-radius: 0;
    padding: 18px;
    -webkit-overflow-scrolling: touch;
  }

  /* Stack charts */
  #metricsModal .gridCharts { grid-template-columns: 1fr; }

  /* Taller cards so legends/axes fit comfortably */
  #metricsModal .chartBox { height: 320px; }           /* donut + bars */
  #metricsModal .chartBox.chartWide { height: 360px; } /* line */

  /* Canvas should flex to remaining space (do NOT set height:100%) */
  #metricsModal .chartBox > canvas {
    flex: 1 1 0;                   /* fill leftover space below the title */
    width: 100% !important;
    height: auto !important;       /* let Chart.js size to the flex height */
    min-height: 0;
    display: block;
  }
}

/* Mobile floating metrics button offset */
.metricsFab { bottom: 88px !important; right: 16px !important; }

/* -------- Bottom sheet (mobile details) -------- */
#mDetailsOverlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  overscroll-behavior: none;       /* prevent scroll escaping to page */
}
#mDetailsSheet {
  display: flex;
  flex-direction: column;
  max-height: 85dvh;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  background: #fff;
  will-change: transform;
}
#mDetailsBody {
  flex: 1 1 auto;                  /* only this area scrolls */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;    /* stop scroll chaining */
}

 /* Light Purple for API Automation in logs.php table */
    .api-row {
        background-color: #f3e6ff !important; /* Light Purple */
    }
    /* Darker purple on hover for table rows in logs.php table */
    tr.api-row:hover {
        background-color: #e5ccff !important;
    }
    /* For Mobile Cards in logs.php table*/
    .card.api-row {
        background-color: #f3e6ff !important;
        border: 1px solid #d1b3ff;
    }

/* --- NEW GRID SYSTEM FOR PLANNING --- */
.planning-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  justify-content: center;
}
.planning-tab {
  padding: 10px 20px;
  background: #f4faf7;
  border: 1px solid #cfe4da;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  color: var(--brand-700);
  transition: all 0.2s;
}
.planning-tab.active {
  background: var(--brand-600);
  color: #fff;
  border-color: var(--brand-600);
}

.week-container { display: none; }
.week-container.active { display: block; animation: fadeIn 0.3s; }

.region-section {
  background: #fff;
  border: 1px solid #e0ebe5;
  border-radius: 12px;
  margin-bottom: 20px;
  overflow: hidden;
}
.region-header {
  background: var(--brand-50);
  padding: 10px 15px;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--ink-700);
  text-transform: uppercase;
  border-bottom: 1px solid #e0ebe5;
}

.days-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* Mon-Fri */
  gap: 0;
  border-bottom: 1px solid #eee;
}
.day-column {
  border-right: 1px solid #f0f0f0;
  min-height: 200px;
  background: #fff;
}
.day-column:last-child { border-right: none; }
.day-header {
  text-align: center;
  background: #fcfcfc;
  padding: 8px;
  font-weight: 600;
  color: #555;
  border-bottom: 1px solid #eee;
}

/* CAR SLOTS */
.car-slot {
  background: #f9fbfb;
  border: 1px dashed #d0dcd6;
  margin: 8px;
  border-radius: 8px;
  padding: 5px;
  min-height: 80px;
  position: relative;
}
.car-slot-header {
  font-size: 0.75rem;
  color: #889;
  margin-bottom: 4px;
  display: flex;
  justify-content: space-between;
}
.add-car-btn {
  width: 100%;
  border: 2px dashed #e0e0e0;
  background: none;
  color: #aaa;
  padding: 5px;
  border-radius: 8px;
  margin: 8px;
  width: calc(100% - 16px);
  cursor: pointer;
}
.add-car-btn:hover { border-color: var(--brand-600); color: var(--brand-600); }

/* CUSTOMER DATA TOGGLE */
.customer-data-wrapper {
  display: none; /* Hidden by default */
  margin-top: 30px;
  border-top: 2px solid #eee;
  padding-top: 20px;
}
.customer-data-wrapper.open { display: block; animation: slideDown 0.3s; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideDown { from { transform: translateY(-10px); opacity:0; } to { transform: translateY(0); opacity:1; } }

/* --- GLASSMORPHISM CUSTOMER OVERLAY --- */
.customer-overlay-backdrop {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 59, 44, 0.4); /* Dark Green tint */
    backdrop-filter: blur(8px); /* The Blur Effect */
    -webkit-backdrop-filter: blur(8px);
    z-index: 1045; /* Below header, above content */
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.customer-overlay-backdrop.open {
    display: block;
    opacity: 1;
}

.customer-modal {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: 90%;
    max-width: 1400px;
    height: 85vh;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    z-index: 1050;
    display: none;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3s ease;
}
.customer-overlay-backdrop.open .customer-modal {
    display: flex;
    transform: translate(-50%, -50%) scale(1);
}

.customer-modal-header {
    padding: 20px 30px;
    background: #f9fbfb;
    border-bottom: 1px solid #e0ebe5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.customer-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 30px;
    background: #fff;
}

/* SMART ADD BUTTON & MODAL */
.btn-smart-add {
    width: 32px; height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--brand-50);
    color: var(--brand-700);
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
}
.btn-smart-add:hover {
    background: var(--brand-600);
    color: #fff;
    transform: scale(1.1);
}

/* Small Popover for Quick Assign */
#quickAssignModal {
    position: fixed;
    z-index: 1100;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border: 1px solid #e0ebe5;
    width: 300px;
    display: none;
}



/********************************************************************************************************************/