﻿/* Global Styles */
/* Apply to both pages */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden; /* prevent double scrollbar on body */
}

.dev-label{
    color: yellow;
    font-size: 12px;

}

/* This makes only container scroll if content overflows */
/* CONTAINER */
.container {
  height: calc(100vh - 140px); /* adjust if header or other parts differ in height */
  overflow-y: auto;
  overflow-x: auto;
}

body {
  display: flex;
  flex-direction: column;
  font-family: Arial, sans-serif;
  margin: 0;
}

p{
    font-size: 1.25em;
    line-height: 1.35em;
}

/* HEADER */
.header {
    background: #384049;
    color: #10C4B2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 10px;
    position: relative;
}

.header-left {
    display: flex;
    align-items: center;
    margin-right: 10px;
}

.header-middle {
    color: #fff;
    flex-grow: 1;
    text-align: left;
    margin: 10px 30px 0 0;
    align-self: flex-start;
    font-size: 1em;
    font-weight: bold;
}

.header-middle .quick-filter {
    color: #10C4B2;
    text-decoration: none;
    margin-left: 30px;
    white-space: nowrap;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.add-vehicle-btn {
    padding: 7px 15px;
    border: none;
    background: #cdcdcd;
    color: #384049;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 600;
}
.add-vehicle-btn:hover {
    background: #10C4B2;
    color: #fff;
}

.icon-alert {
  color: #d9534f;
  border-radius: 4px;
  padding: 5px;
  font-size: 1.2em;
  margin-left: 3px;
}

.user-info {
    margin: 0 30px;
    text-align: left;
    color: #fff;
    cursor: default;
}
.user-info .logged-user {
    display: block;
    font-weight: bold;
}
.user-info .company-name {
    display: block;
    font-size: 0.9em;
}

/*quick filter links*/
.quick-filter-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr); /* 6 equal columns */
    gap: 3px; /* spacing between grid items */
    width: 75%;
    max-width: 100%;
    margin-bottom: 12px;
}

.quick-filter {
    display: block;
    padding: 6px 10px;
    border-radius: 4px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    white-space: nowrap;
    box-sizing: border-box;
    text-align: left;
}

.quick-filter span {
    margin-left: 6px;
    color: #fff;
}

/* TABLES */
.container {
    width: 100%;
    height: 80vh;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

tfoot {
    min-height: 60px;
}

table th:first-child,
table th:nth-child(2) {
  pointer-events: none;
  cursor: default;
}

table tbody tr:nth-child(even) {
    background-color: #eee;
}
table tbody tr.selected {
    background-color: #10C4B2;
}
table tbody tr:hover {
    background-color: #10C4B2;
    cursor: pointer;
}
th, td {
    padding: 8px;
    border: 1px solid #ddd;
    text-align: left;
}
th {
    background: #384049;
    color: #fff;
    font-size: 16px;
    font-weight: 300;
    white-space:nowrap;
}
.footer-bar {
    background: #cdcdcd;
    padding: 10px;
    text-align: center;
}

.foot-bar {
  background-color: #cdcdcd;
  padding: 10px 15px;
  border-top: 1px solid #aaa;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  font-size: 14px;
}

.disabled-action {
  color: #811818;               /* light gray */
  cursor: not-allowed !important;       /* forbidden cursor */
  text-decoration: underline;     /* no underline */
  margin: 5px 16px 5px 0;        /* spacing between items */
  font-style: italic;        /* optional, to distinguish further */
  opacity: 0.7;
  font-size: 16px;
}

/* SEARCH BAR */
.search-bar {
    background: #cdcdcd;
    padding: 10px 30px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    font-size: 1.2em;
    gap: 10px;
}
.search-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    flex-grow: 1;
}

.search-bar,
.search-group {
  overflow: visible !important;
  position: relative;
  z-index: 1;
}

.search-bar input {
    padding: 8px;
    border: 1px solid #10C4B2;
    border-radius: 3px;
    font-size: 16px;
    width: 100%;
    max-width: 200px;
    height: 34px;
}
.search-bar button {
    padding: 7px;
    border: 1px solid #384049;
    background: #cdcdcd;
    color: #384049;
    cursor: pointer;
    border-radius: 5px;
    font-size: 0.75em;
}
.search-bar button:hover {
    background: #10C4B2;
    color: #fff;
}
.excel-btn {
    padding: 5px 20px;
    border: 1px solid #10C4B2;
    background: #cdcdcd;
    color: #384049;
    cursor: pointer;
    border-radius: 5px;
    font-size: 0.80em;
    margin: 0;
}
/*pending search bar*/
.pending-search-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    background: #cdcdcd;
    padding: 10px 30px;
    display: flex;
    font-size: 1.2em;
}

.pending-search-bar button {
    height: 38px;
    min-width: 140px;
    padding: 8px 15px;
    font-size: 14px;
    box-sizing: border-box;
    border-radius: 5px;
    line-height: 1;
}

/* Optional: make all tooltips inside buttons consistent too */
.pending-search-bar .tooltip {
    height: 38px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}


.pending-left,
.pending-middle,
.pending-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pending-left {
    width: fit-content;
    padding-right: 15px; /* optional, adds space before middle panel */
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pending-middle {
    display: flex;  
    flex: 1;
    justify-content: flex-start;
    flex-wrap: wrap;
    border-left: 1px solid #000;
    padding-left: 15px; /* just enough to not crowd the border */
    padding-right: 15px; /* just enough to not crowd the border */
}

.pending-right {
    flex: 1;
    justify-content: flex-end;
    flex-wrap: wrap;
}


.pending-middle-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* you can still keep the column layout inside each group */
.inline-block-group {
  display: flex;
  flex-direction: column;
}

/* CUSTOM DROPDOWN */
.custom-dropdown {
    position: relative;
    display: inline-block;
    //max-width: 200px; /* or whatever fixed width you want */
}

.custom-dropdown select {
    appearance: none;
    -moz-appearance: none;
    -webkit-appearance: none;
    width: 100%;
    padding: 8px 32px 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #1abc9c;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    position: relative; /* key line */
    z-index: 1; /* keep select below the arrow */
}

.custom-dropdown::after {
    content: "▼";
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    pointer-events: none;
    color: #fff;
    font-size: 12px;
    z-index: 2; /* place arrow above select */
}
.custom-dropdown select:hover {
    background-color: #16a085;
}
.custom-dropdown select:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(26,188,156,0.3);
}
.company-dropdown {
    position: relative;
    display: inline-block;
    max-width: 200px;
}
.company-dropdown select {
    appearance: none;
    -moz-appearance: none;
    -webkit-appearance: none;
    padding: 8px 32px 8px 12px;
    border: 1px solid #cdcdcd;
    border-radius: 4px;
    background-color: #cdcdcd;
    color: #000;
    font-size: 14px;
    cursor: pointer;
}
.company-dropdown::after {
    content: "▼";
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    pointer-events: none;
    color: #000;
    font-size: 11px;
}
.company-dropdown select:hover {
    background-color: #16a085;
    color: #fff;
}
.company-dropdown select:focus {
    outline: none;
}



/* Control-specific adjustments */
.increment-container {
    display: flex;
    align-items: center;
    height: 42px;
    border: 1px solid #00b3ad;
    border-radius: 4px;
    overflow: hidden;
    background-color: white;
}

.increment-input-wrapper {
    display: flex;
    height: 100%;
}

.increment-input {
    width: 100%;
    text-align: center;
    border: none;
    outline: none;
    font-size: 16px;
    height: 100%;
    padding: 0 5px;
}

.increment-buttons {
    display: flex;
    flex-direction: column;
    background-color: #00b3ad;
    height: 100%;
}

.increment-buttons button {
    all: unset;
    color: white;
    font-weight: bold;
    height: 50%;
    width: 20px;
    text-align: center;
    cursor: pointer;
    font-size: 12px;
    line-height: 1;
}

/* HEADER BRANDING */
.logo {
    width: 75px;
    margin-right: 10px;
    cursor: pointer;
}
.branding {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}
.branding .title {
    color: #1664a1;
    font-size: 1.5em;
    font-weight: bold;
    white-space: nowrap;
}

.photos-title {
    color: #000 !important;
    font-size: 1.5em;
    font-weight: bold;
    white-space: nowrap;
    
}

.photos-title:link,
.photos-title:visited {
  color: #000 !important;
}

.photos-subtitle {
    color: #1664a1; !important;
    font-size: 1.1em;
    text-align: left;
}


.branding .subtitle {
    color: #10C4B2;
    font-family: "Brush Script MT", cursive;
    font-size: 1.5em;
    text-align: center;
}

/* NAVIGATION DROPDOWN */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 5px;
    background: #3f474f;
    color: #fff;
    min-width: 150px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 1000;
    text-align: left;
}
.dropdown-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-weight: 600;
    font-size: 0.85em;
}
.dropdown-menu li {
    position: relative;
    padding: 8px;
    cursor: pointer;
}
.dropdown-menu li:hover {
    background: #10C4B2;
}
.dropdown-menu .submenu {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    background: #3f474f;
    min-width: 150px;
    white-space: nowrap;
}
.dropdown-menu li:hover > .submenu {
    display: block;
}
.dropdown-menu li.has-submenu::after {
    content: '\25B6';
    position: absolute;
    right: 8px;
    top: 6px;
}
.dropdown-menu a, .branding a {
    color: #fff;
    text-decoration: none;
    display: block;
    width: 100%;
}
.dropdown-menu a:hover {
    text-decoration: none;
}


/* TAG INPUTS */
.tag {
    display: inline-flex;
    align-items: center;
    background: #10C4B2;
    color: #fff !important;
    padding: 6px 6px;
    border-radius: 3px;
    border: 1px solid #3f474f;
    font-size: 13px;
    white-space: nowrap;
}
.remove-tag {
    margin-left: 3px;
    cursor: pointer;
    font-weight: bold;
    color: #fff !important;
}
.tag-input {
    display: inline-block;
    border-radius: 3px;
    background: #fff;
    min-width: 150px;
    text-align: left;
    cursor: pointer;
    position: relative;
    height: 28px;
    width: 200px;
}
.tag-input span {
    color: #384049;
    font-size: 14px;
}
.tag-input,
.dropdown-wrapper {
    z-index: auto !important;
}


.search-input{
    height: 44px !important;
}

/*reports-tag*/
/* Match the working dropdown styles */
.report-tag-wrapper {
    background-color: white;
    border: 1px solid #00b3ad;
    border-radius: 3px;
    padding: 6px;
    width: 100%;
    position: relative;
    display: inline-block;
    height: 30px;
    z-index: 1001;
}

.report-tag-input {
    cursor: pointer;
    font-size: 13px;
    height: 100%;
    display: flex;
    gap: 3px;
    align-items: center;
    white-space: nowrap;
}

.report-dropdown {
    display: none;
    position: absolute;
    background: #3f474f;
    border: 1px solid #444;
    width: 100%;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 10;
    top: 100%;
    left: 0;
    border-radius: 5px;
    max-height: 400px;
    overflow-y: auto;
}

.report-dropdown div {
    padding: 6px;
    cursor: pointer;
    font-size: 13px;
    color: #fff;
    white-space: nowrap;
    transition: background 0.2s ease-in-out, color 0.2s ease-in-out;
}

.report-dropdown div:hover {
    background: #10C4B2;
    color: #3f474f;
}

/* DROPDOWN WRAPPER */
.dropdown-wrapper {
    background-color: white;
    border: 1px solid #00b3ad;
    border-radius: 3px;
    padding: 6px;
    min-width: 200px;
    position: relative;
    display: inline-block;
    height: 30px;
    z-index: 1001;
}

.dropdown-wrapper, 
.tag-input {
    vertical-align: top; /* ensures vertical alignment matches other inputs */
    margin-top: -1px !important; /* remove any unintended top margin */
}


/* DROPDOWN CONTENT */
.dropdown-content {
    display: none;
    position: absolute;
    background: #3f474f;
    border: 1px solid #444;
    width: 100%;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 10;
    top: 100%;
    left: 0;
    border-radius: 5px;
    max-height: 400px;
    overflow-y: auto;
}
.dropdown-content div {
    padding: 6px;
    cursor: pointer;
    font-size: 13px;
    color: #fff;
    white-space: nowrap;
    transition: background 0.2s ease-in-out, color 0.2s ease-in-out;
}
.dropdown-content div:hover {
    background: #10C4B2;
    color: #3f474f;
}

/* Make sure dropdowns appear above everything else */
.dropdown-content,
.report-dropdown {
    position: absolute !important;
    z-index: 9999 !important;
    top: calc(100% + 4px);
    left: 0;
    width: 100% !important;
    min-width: unset;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: auto;
    background-color: #3f474f;
    border: 1px solid #444;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Ensure their containers don't clip them */
.dropdown-wrapper,
.tag-input {
  position: relative !important;
  z-index: 9998 !important;
  overflow: visible !important;
}

/* BUTTONS */
.btn-edit {
    border: 1px solid #000;
    border-radius: 3px;
    background: #cdcdcd; 
    color: #000;
    padding: 5px;
}
.btn-edit:hover {
    background: red; 
    color: #fff;
}

/* FOOTER & PAGINATION */
.tfoot-container {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    max-height: 60px;
    overflow: hidden;
}
.button-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 5px;
    flex-grow: 1;
    max-height: 60px;
    overflow-y: auto;
}
.pages-info {
    font-size: 1.2em;
    margin: 13px 30px;
}
.btn-pages-current {
    border: 1px solid #000;
    border-radius: 50%;
    background: #10C4B2; 
    color: #fff;
    padding: 5px;
    cursor: default;
    height: 50px;
    width: 50px;
    margin: 0;
}
.btn-pages {
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 50%;
    background: #384049; 
    color: #fff;
    padding: 5px;
    height: 50px;
    width: 50px;
    cursor: pointer !important;
    pointer-events: auto;
    margin: 0;
}
.btn-pages:hover {
    background: red; 
    color: #fff;
}

/* TABS PAGE */
.page-layout {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    margin: 20px 0;
}

.left-panel,
.center-panel,
.right-panel {
    flex-shrink: 0;
    padding: 10px;
    box-sizing: border-box;
}

.left-caption, .right-caption{
    font-size: 1.2em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 6px;
}

/* Keep the center panel from overlapping */
.left-panel {
    width: 20% !important;
    min-width: 200px;
    transition: width 0.3s ease;
}

.center-panel {
    width: 60% !important;
    min-width: 300px;
    max-width: 100%;
}

.right-panel {
    width: 20% !important;
    min-width: 220px;
    overflow: hidden;
}

.comments-panel{
    width: 100%;
    padding: 10px;
    text-align: left;

}

.vehicle-info{
    font-weight: bold;
    font-size: 1.25em;
    margin: 10px;
    text-align: left;
}

.center-panel {
    width: 60%;
    padding: 10px;
    box-sizing: border-box;
}

/* STEPS PANEL */
.steps-panel {
  width: 100%;          
  margin: 0;            
  padding: 10px;
  box-sizing: border-box;
  display: none;
  grid-template-columns: 1fr;
  gap: 10px;
}
.steps-panel.visible {
  display: grid;
}

/* Steps Title & Grid */
.steps-title {
  margin: 0;
  font-size: 1.25em;
  font-weight: 600;
  margin-bottom: 10px;
}

/* Desktop layout: 2 cards per row */

.steps-in-use {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding: 10px;
}

.stepIU,
.stepIU-Required,
.stepIU-No-Edit {
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 15px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  width: 100%;
  box-sizing: border-box;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 3px 20px;
}
.step-img {
    border: 1px solid black;
    border-radius: 5px;
    width: 100px;
}
.step-name {
    font-size: 11px;
    font-weight: bold;
}

.steps{
    cursor: pointer;
}

.steps-grid .steps {
    text-align: center;
}

.steps-grid .steps img.step-img {
    width: 100%;
    max-width: 100px;
    height: auto;
    transition: all 0.3s ease;
}

.disabled-step {
    pointer-events: none;
    opacity: 0.4;
    cursor: not-allowed;
}
.readonly-tech {
    font-size: 14px;
    padding: 6px 10px;
    background: #f1f1f1;
    border-radius: 5px;
    color: #555;
}


.stepIU {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background: #f9f9f9;
}

.stepIU-Required {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background: #fbe2e2;
}

.stepIU .step-header {
  cursor: pointer;
}
.stepIU-No-Edit {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background: #eee;
}
.stepIU-No-Edit .step-property {
  pointer-events: none;
  cursor: default;
  opacity: 0.6;
  text-decoration: none;
}
.stepIU.selected,
.stepIU-No-Edit.selected {
  border: 2px solid #10C4B2 !important;
}

.step-imgIU {
    position: absolute;
    top: 32px;
    right: 7px;
    width: 55px;
    height: 55px;
    border: 1px solid black;
    border-radius: 5px;
    object-fit: cover;
}
.step-header {
  grid-column: 1 / -1;
  font-weight: 500;
  font-size: 1.3em;
  border-bottom: 1px solid #000;
  margin-bottom: 10px;
  padding-bottom: 5px;
}
.stepIU,
.stepIU-Required {
  position: relative;
}

.order-controls {
  position: absolute;
  top: 5px;
  right: 8px;
  z-index: 10;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.step-order {
  font-size: 12px;
  font-weight: bold;
  color: #333;
}

.reorder-arrow {
  background: #cdcdcd;
  border: 1px solid #000;
  padding: 3px 6px;
  font-size: 13px;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #000;
}

.reorder-arrow:hover {
  background-color: #10C4B2;
  color: #fff;
}

.step-status{
  font-family: arial;
  font-weight: 400;
  font-size: 1.2em;

}
.step-properties {
    font-size: 12px;
    white-space: nowrap;
}
.step-property {
    font-size: 14px;
    white-space: nowrap;
    text-decoration: underline;
    text-transform: uppercase;
    cursor: pointer;
    color: #000;
}
.step-content {
    width: 100%;
    display: block; /* or flex depending on your layout */
}

.step-button-container {
    float: right;
    margin: 8px 0;
    white-space: nowrap;
    display: flex;
    gap: 5px;
    white-space: nowrap;
}

.step-button-container button {
  display: inline-block;
  padding: 5px;
  background-color: #cdcdcd;
  color: #000;
  border: 1px solid #000;
  border-radius: 4px;
  text-align: center;
  cursor: pointer;
  font-size: 12px;
  transition: background-color 0.3s ease;
  margin: -5px 3px;
}

.step-button-container button:hover,
.step-button-container .tooltip:hover {
  background-color: #10C4B2;
  color: #fff;
}

.step-button-container .tooltip {
  display: inline-block;
  margin: -5px 3px;
}

.step-button-container .tooltip .tooltiptext {
  white-space: nowrap;
}
.step-button-container button:active {
  background-color: #10C4B2;
}
.step-button-container .save-discard {
  display: none;
}

.compact-dropdown {
  font-size: 0.75em;
  padding: 2px 5px;
  height: 24px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #fff;
  max-width: 100%;
}

/*Vehicle Steps*/
.steps-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 10px;
    justify-content: flex-start;
}

.step {
    width: 23%; /* Roughly 4 per row with gap, adjust if needed */
    min-width: 250px; /* Optional: prevent it from shrinking too small */
    box-sizing: border-box;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #000;
    color: #111;
    font-size: 0.9em;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    position: relative;
    min-height: 225px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.step-tech{
    margin: 6px 0 25px;
}

.step-tech .tag-input {
    height: 36px;
    width: 93% !important;
}

/* Status Colors */
.step.pending {
    background-color: #fc2e2e;
    color: #231515;
}

.step.in-progress {
    background-color: #FEF200; /* Yellow */
}

.step.delayed {
    background-color: #FAAE00; /* Orange */
}

.step.completed {
    background-color: #23B14D; /* Green */
}

.step-buttons {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px; /* spacing between buttons */
}

/* Common button style */
.step-buttons button {
    border: none;
    border-radius: 5px;
    color: #000;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 1em;
    width: 45%;

}

.step-box {
    position: relative;
}

.delete-step {
    position: absolute;
    bottom: 6px;
    right: 6px;
    width: 16px;
    padding: 3px;
    height: 16px;
    color: #000;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    line-height: 16px;
    border:1px solid #000;
    border-radius: 50%;
    cursor: pointer;
    z-index: 2;
    transition: background 0.2s ease-in-out;
}

.delete-step:hover {
    background: silver;
}

/* Individual button colors */
.btn-completed {
    background-color: #23B14D; /* Completed - Green */
}

.btn-inprocess {
    background-color: #FEF200; /* In Process - Yellow */
    color: #000; /* Better readability on yellow */
}

.btn-delayed {
    background-color: #FAAE00; /* Delayed - Orange */
}

.btn-comment {
    background-color: #58CFFB; /* Comment - Light Blue */
}

.btn-pending {
    background-color: #fc2e2e; /* Pending - Red */
}

.hidden {
    display: none !important;
}

/* TABS PAGE (Again) */
.tab-container {
    width: 100%;
    border-top: 15px solid #000;
    border-left: 6px solid #000;
    border-right: 6px solid #000;
    border-bottom: 6px solid #000;
    padding: -25px 15px;
    background: #fff;
    min-height: 75vh;
}
.tabs {
    display: flex;
    list-style-type: none;
    margin: 0;
    padding: 0;
    background: #000;
}
.tabs li {
    padding: 10px 20px;
    cursor: pointer;
    color: #fff;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}
.tabs li:hover {
    padding: 10px 20px;
    cursor: pointer;
    color: #fff;
    border: 1px solid #10C4B2;
}
.tabs li.active {
    background: #10C4B2;
    border-bottom: 2px solid #10C4B2;
    color: #fff;
    font-weight: bold;
}
.tab-content {
    display: none;
    padding: 20px;
    background: #f9f9f9;
}
.tab-content.active {
    display: block;
}

/* Dealership & User Info Rows */
.dealership-row,
.user-info-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}
.dealership-col,
.user-info-group {
    flex: 1 1 250px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
label {
    font-weight: bold;
    //margin-bottom: 4px;
}
/* INLINE FIELDS */
.inline-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 10px;
}
.inline-fields .field-group {
    flex: 0 0 0;
}
.inline-fields label {
    display: block;
    font-weight: bold;
    margin-bottom: 4px;
}
.inline-fields select {
    height: 38px;
}



.inline-fields input {
    height: 38px;
}


input,
select,
textarea {
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 3px;
    box-sizing: border-box;
}
textarea {
    resize: vertical;
    min-height: 80px;
}
select {
    background: #fff;
}

/* BUTTON ROW */
.button-row {
    margin-top: 20px;
    min-height: 50px;
}
.button-row button {
    padding: 8px 16px;
    margin-right: 10px;
    border: none;
    background: #384049;
    color: #fff;
    cursor: pointer;
    border-radius: 4px;
    font-size: 0.9em;
}
.button-row button:hover {
    background: #10C4B2;
}


/* LOGIN */
.login-container {
    max-width: 450px;
    margin: 80px auto;
    background-color: #ddd;
    border-radius: 8px;
    padding: 20px 30px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
.login-container h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.2rem;
    text-align: center;
}
.login-container h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1rem;
    text-align: center;
    color: red;
}
.login-msg {
    width: 100%;
    color: red;
    font-size: 16px;
    font-weight: 600;
    text-align: center !important;
}
.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}
.checkbox-group input[type="checkbox"] {
    margin-right: 5px;
}
.btn-signin {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    color: #fff;
    background-color: #555;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.btn-signin:hover {
    background-color: #333;
}

/* CUSTOM DROPDOWN */
.custom-dropdown {
    position: relative;
    display: inline-block;
    //max-width: 200px; /* or whatever fixed width you want */
}

.custom-dropdown select {
    appearance: none;
    -moz-appearance: none;
    -webkit-appearance: none;
    width: 100%;
    padding: 8px 32px 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #1abc9c;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    position: relative; /* key line */
    z-index: 1; /* keep select below the arrow */
}

.custom-dropdown::after {
    content: "▼";
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    pointer-events: none;
    color: #fff;
    font-size: 12px;
    z-index: 2; /* place arrow above select */
}
.custom-dropdown select:hover {
    background-color: #16a085;
}
.custom-dropdown select:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(26,188,156,0.3);
}
.company-dropdown {
    position: relative;
    display: inline-block;
    max-width: 200px;
}
.company-dropdown select {
    appearance: none;
    -moz-appearance: none;
    -webkit-appearance: none;
    padding: 8px 32px 8px 12px;
    border: 1px solid #cdcdcd;
    border-radius: 4px;
    background-color: #cdcdcd;
    color: #000;
    font-size: 14px;
    cursor: pointer;
}
.company-dropdown::after {
    content: "▼";
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    pointer-events: none;
    color: #000;
    font-size: 11px;
}
.company-dropdown select:hover {
    background-color: #16a085;
    color: #fff;
}
.company-dropdown select:focus {
    outline: none;
}

/* SWEETALERT2 */
.swal2-confirm {
  background-color: #d33 !important;
  border-color: #d33 !important;
  color: #fff !important;
}
.swal2-cancel {
  background-color: #343a40 !important;
  border-color: #343a40 !important;
  color: #fff !important;
}
.swal2-container {
  z-index: 99999 !important;
}

/* TOOLTIP */
.tooltip {
  position: relative;
  display: inline-block;
  cursor: pointer;
  z-index: 10000 !important;
}
.tooltip .tooltiptext {
  visibility: hidden;
  width: 100%;
  min-width: 200px;
  background-color: #fff;
  color: #000;
  text-align: center;
  padding: 5px;
  border: 1px solid #ccc;
  border-radius: 4px;
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 12px !important;
  line-height: 16px !important;
  text-transform:none !important;
}



.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}
.tooltip .tooltiptext::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: #000 transparent transparent transparent;
}

.vin-number {
    font-family: monospace;
    font-size:20px;
    font-weight: normal;
    letter-spacing: 1px;
    margin:5px 0;
}

.vin-number span {
    font-weight:600;
    border: 1px solid #000;
    border-radius: 5px;
    padding: 1px 2px;
    background: yellow;
    margin-left:3px;
}

.stock-num {
    background-color: #5ac5ae; /* Teal-green background color */
    color: #000000;            /* Black text */
    border: 1px solid #000000; /* Thin black border */
    font-family: Arial, sans-serif;
    font-weight: bold;
    font-size: 1.5em;
    padding: 5px 12px;
    display: inline-block;
    text-align: center;
    border-radius: 5px;        /* Slightly rounded corners as in your example */
    letter-spacing: 1px;       /* Slight spacing between characters */
    margin-top: 15px;
}

/*Vehicle properties */
/* Form and field groups styling */
/* FORM SECTION */
.form-section {
    background: #d5d0d0;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 15px;
    border: 1px solid black;
    position: relative;
}
.form-section h3 {
    margin-top: 0;
    font-size: 1em;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.form-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 5px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 0.9rem;
}

.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    padding: 8px;
    font-size: 0.95rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}


.form-group input,
.form-group select,
.form-group textarea {
    padding: 5px 8px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 1.1rem;
    background-color: #fff;
    height: 38px !important;
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 15px;
    font-size: 0.9rem;
}

input[type='checkbox'] {
    width: 18px;
    height: 18px;
}

/* Special styles for dropdowns (like the screenshot) */
select {
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ccc;
    background-color: #fff;
}

button {
    padding: 8px 15px;
    background-color: #2fbbaa;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background-color: #269c8d;
}

/*Modal Stuff*/
.modal {
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.5);
}

.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 400px;
  max-width: 90%;
  border-radius: 5px;
  position: relative;
}

.close-modal {
  position: absolute;
  top: 8px;
  right: 12px;
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close-modal:hover {
  color: #000;
}

.date-modal {
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.date-modal-content {
  background-color: #fff;
  padding: 20px;
  width: 600px;
  max-width: 90%;
  border-radius: 5px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
  box-sizing: border-box;
}

.date-modal-body {
  display: flex;
  gap: 20px;
  margin: 15px 0;
  border: 1px solid #000;
  border-radius: 5px;
  background: #eee;
  padding: 15px;

}

.date-modal-text {
  flex: 2;
  font-size: 16px;
  color: #333;
  text-align: justify;
}

.date-modal-field {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.date-modal-field label {
  font-weight: bold;
  margin-bottom: 5px;
}

.date-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 10px;
}

.date-modal-footer button {
  padding: 6px 14px;
  font-size: 14px;
  margin: 0;
}

.date-modal .close-modal {
  position: absolute;
  top: 8px;
  right: 12px;
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.date-modal .close-modal:hover {
  color: #000;
}

#syncDateInput {
  height: 36px;
  appearance: auto;
  -webkit-appearance: auto;
}

/*Photos Modal*/
/* Photo Modal Styles */
/* Photo Modal Styles */
.photo-modal {
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.5);
}

.photo-modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  border-radius: 5px;
  position: relative;
  overflow-y: auto; /* Enables vertical scrollbars if content is too tall */
}

.close-photo-modal {
  position: absolute;
  top: 8px;
  right: 12px;
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close-photo-modal:hover {
  color: #000;
}

/* Set modal image width to 90% of its container */
#modalImage {
  width: 90%;
  max-width: 90%;
  height: auto;
  display: block;
  margin: auto;
}

/*Comment Stuff*/
.comments-title {
    font-size: 1.25em;
    font-weight: bold;
    border-bottom: 1px solid #333;
    margin-bottom: 10px;
}

.comment-row {
    padding: 10px;
    font-size: 0.95em;
}
.comment-row.odd {
    background-color: #f9f9f9;
}
.comment-row.even {
    background-color: #e6e6e6;
}

.comment-meta {
    font-size: 1em;
    color: #555;
}

.comment-step {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 5px;
}

.comment-actions {
    font-size: 1em;
    margin-bottom: 5px;
}
.comment-actions a {
    margin-right: 30px;  /* Increased spacing between links */
    text-decoration: underline;
    color: blue;
    display: inline-block;
}
.comment-actions a:last-child {
    margin-right: 0; /* No margin on the last link */
}
.comment-actions a:hover {
    font-weight: bold;
}

.comment-text {
    font-size: 1.25em;
    margin-bottom: 5px;
    white-space: pre-wrap;
}

.comment-photos {
    font-size: 0.8em;
    color: #333;
}

/*Dropzone*/
/* Style the dropzone container */
.dropzone {
  border: 2px dashed #1664a1;
  border-radius: 5px;
  background: #f9f9f9;
  padding: 20px;
}

/* Style the default message inside the dropzone */
.dz-message {
  font-size: 1.2em;
  color: #555;
}

/* Style individual file previews */
.dz-preview {
  border: 1px solid #ddd;
  padding: 10px;
  margin: 10px;
  background: #fff;
}

/* Customize remove links */
.dz-remove {
  color: #d9534f;
  text-decoration: underline;
  cursor: pointer;
}

/* Additional hover/focus styles if needed */
.dropzone:hover {
  background: #e9e9e9;
}

/* Ensure the error message doesn't block clicks */
.dz-error-message {
  pointer-events: none;
  z-index: 1;
  margin-top: 35px;
}

/* Raise the remove link above the error message */
.dz-remove {
  position: relative;
  z-index: 10;
}
/*Thumbnails*/

.thumbnail {
    max-width: 100px;
}

/*Comment popup stuff*/
.popup {
    display: none;
    position: absolute;
    z-index: 9999;
    width: 100%;
    max-width: 300px; /* ← increased width */
    background: #fff;
    border: 1px solid #bbb;
    padding: 12px;
    font-size: 13px;
    border-radius: 6px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.3);
    font-family: sans-serif;
    line-height: 1.5em;
}

.popup-comments-wrapper {
    display: flex;
    flex-direction: column;
}

.popup-row {
    padding: 10px 12px;
}

.popup-row.even {
    background-color: #f0f0f0; /* ← darker light gray */
}

.popup-row.odd {
    background-color: #ffffff;
}

.popup-meta {
    font-size: 11px;
    color: #555;
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}

.popup-user {
    font-style: italic;
    color: #888;
}

.popup-step {
    font-weight: bold;
    font-size: 13px;
    margin: 2px 0;
}

.popup-comment-text {
    font-size: 14px;
    color: #222;
}

.comment-count {
    color: #007bff;
    cursor: pointer;
    text-decoration: underline;
}

.comment-count.badge {
    display: inline-block;
    background-color: #fff;
    color: #000;
    font-size: 18px;
    padding: 5px;
    width: 20px;
    height: 20px;
    border-radius: 5px;
    border: 1px solid #ccc;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    user-select: none;
}

.photo-badge.badge {
    display: inline-block;
    background-color: #fff;
    color: #000;
    font-size: 18px;
    padding: 5px;
    width: 20px;
    height: 20px;
    border-radius: 5px;
    border: 1px solid #ccc;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    user-select: none;
}

.popup-photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    max-width: 300px;
    padding-top: 4px;
}

.popup-photo-grid img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    border: 1px solid #ccc;
}



.step-count {
    display: inline-block;
    background-color: #fff;
    color: #000;
    font-size: 18px;
    padding: 5px;
    width: 20px;
    height: 20px;
    border-radius: 5px;
    border: 1px solid #ccc;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    user-select: none;
}

.step-popup-container {
    font-family: Arial, sans-serif;
    max-width: 450px;
    font-size: 13px;
}

.step-popup-container h3 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
}

.step-vehicle {
    font-weight: bold;
    font-size: 14px;
    text-align: center;
}

.step-stock {
    background-color: #6bd3b1;
    display: inline-block;
    padding: 4px 10px;
    font-weight: bold;
    font-size: 14px;
    text-align: center;
    margin: 5px auto;
    border-radius: 5px;
    display: block;
    width: fit-content;
}

.step-list {
    margin-top: 10px;
}

.popup-row0, .popup-row1 {
    display: flex;
    justify-content: space-between;
    padding: 6px 8px;
}

.step-name {
    flex: 1;
    font-size:14px;
    font-weight: normal;
}

.step-status-label {
    color: red;
    width: 80px;
    text-align: right;
    white-space: nowrap;
}

.step-elapsed {
    width: 90px;
    text-align: right;
    font-size: 14px;
}


.popup-table {
    width: 350px;
    font-size: 13px;
}

.popup-row0 {
    background-color: #ffffff;
    padding: 4px;
}

.popup-row1 {
    background-color: #f0f0f0;
    padding: 4px;
}

.step-label {
    display: block;
}
/*In-Line Fields*/
.inline-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 20px;
}
.inline-flex .form-group {
    flex: 1 1 200px;
    min-width: 180px;
}

/*footer*/
.site-footer {
  position: relative; /* or remove position entirely */
  bottom: 0;
  width: 100%;
  height: 50px;
  background-color: #fff;
  border-top: 1px solid #ccc;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  box-sizing: border-box;
  z-index: 100;
}

.site-footer a {
    color: #007BFF;
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

.footer-left,
.footer-right {
    font-size: 14px;
    line-height: 1.5;
}

/* Title and Subtitle */
.report-title {
    text-align: center;
    font-weight: bold;
    font-size: 24px;
    margin-bottom: 5px;
}

.report-subtitle {
    text-align: left;
    font-weight: bold;
    font-size: 16px;
    margin: 20px 0 10px;
}

.reports-container {
    width: 50%;
    margin: 0 auto;
}

/* Table Styling */
.report-table {
    width: 100%;
    border-collapse: collapse;
    font-family: Arial, sans-serif;
    margin-bottom: 30px;
}

.report-table th {
    background-color: #eee;
    color: #000;
    text-align: left;
    padding: 8px 10px;
    border: 1px solid #555;
    font-weight: bold;
    font-size: 13px;
}

.report-table td {
    padding: 6px 10px;
    font-size: 14px;
}

/* Date Group Headers */
.report-date-row {
    font-weight: bold;
    padding: 10px;
    font-size: 14px;
}

/* Zebra striping for data rows */
.report-table tbody tr:nth-child(even) td {
    background-color: #f2f2f2;
}
/*dealertrack*/
.dt-btn-date {
    padding: 5px 20px;
    border: 1px solid #000;
    background: #cdcdcd;
    color: #384049;
    cursor: pointer;
    border-radius: 5px;
    font-size: 0.80em;
    margin: 0;
}

.dt-btn-date:hover {
    border: 1px solid #10C4B2;
    background: #cdcdcd;
    color: #384049;

}



.dt-sync{
    margin-left: 25px; 
    font-size: 16px;
}

/* Licensing css */
/* Container */
.license-config {
  width: 60vw;
  max-width: 900px;
  margin: 30px auto;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #ccc;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  font-family: Arial, sans-serif;
}

/* Header */
.license-config__header {
  font-size: 1.5rem;
  font-weight: bold;
  color: #000;
  border-bottom: 2px solid #384049;
  padding-bottom: 8px;
  margin-bottom: 16px;
}

/* Note banner */
.license-config__note {
  background: #f0f4f8;
  color: #333;
  padding: 12px;
  border-radius: 4px;
  border: 1px solid #10C4B2;
  margin-bottom: 24px;
}

/* Flex layout: 3 columns */
.license-config__body {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

/* Left column “card” */
.subscription-card {
  flex: 0 0 20%;
  background: #fafafa;
  border: 1px solid #ccc;
  border-radius: 6px;
  text-align: center;
  padding: 12px;
}
.subscription-card__title {
  font-size: 0.9rem;
  color: navy;
  font-weight: bold;
  margin-bottom: 6px;
}
.subscription-card__subtitle {
  font-size: 1.4rem;
  color: navy;
  font-weight: bold;
  margin-bottom: 6px;
}
.subscription-card__price {
  font-size: 1.6rem;
  font-weight: bold;
  margin: 12px 0;
}
.subscription-card__renew {
  font-size: 0.85rem;
  color: darkred;
  font-weight: bold;
}

/* Middle column text */
.license-config__text {
  flex: 1;
  font-size: 1.1rem;
  line-height: 1.4;
  color: #000;
  text-align: justify;
  margin-left: 15px;
}

/* Right column action */
.license-config__action {
  flex: 0 0 30%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Active subscription styling */
.license-config__body.active {
  justify-content: center;
}
.license-config__body.active .subscription-details {
  padding: 50px;
  font-size: 1.5rem;
  font-weight: bold;
  color: #333;
}

/* Mobile Quick Filter Panel */
/* Slide-out panel styles */
.mobile-quick-panel {
    position: fixed;
    top: 85px;
    right: -280px;
    width: 260px;
    height: 80vh;
    background: #384049;
    overflow-y: auto;
    transition: right 0.3s ease-in-out;
    z-index: 1000;
    padding: 10px;
}

/* Show panel when toggled */
.mobile-quick-panel.open {
    right: 0;
}

/* Style the toggle button */
.mobile-toggle-btn {
    position: fixed;
    top: 90px; /* Initial fallback */
    right: 0;
    background: #10C4B2;
    color: #fff;
    padding: 10px 15px;
    font-size: 18px;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    z-index: 1001;
    cursor: grab;
    display: none;
    user-select: none;
    touch-action: none; /* prevent scrolling while dragging on mobile */
}

.mobile-toggle-btn:active {
    cursor: grabbing;
}
/* Quick filter grid inside the panel: stacked vertically */
.mobile-quick-panel .quick-filter-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Ensure filter links are styled visibly */
.mobile-quick-panel .quick-filter {
    display: block;
    color: #10C4B2;
    font-size: 1.1rem; /* Increased font size */
    font-weight: 600;
    padding: 10px 0;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Count badges inside each link */
.mobile-quick-panel .quick-filter span {
    color: #fff;
    font-weight: normal;
    margin-left: 6px;
}
/* RESPONSIVE CHANGES */
@media (max-width: 1200px) {
    .steps-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .page-layout {
        flex-direction: column;
    }

    .left-panel,
    .center-panel,
    .right-panel {
        width: 100% !important;
        padding: 10px;
        box-sizing: border-box;
    }
}

@media (max-width: 600px) {
    .steps-container {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 768px) {
    .mobile-toggle-btn {
        display: block;
    }

    .quick-filter-grid:not(.mobile-quick-panel .quick-filter-grid) {
        display: none !important;
    }
    /* Hide non-essential sections */
    .header-middle,
    .site-footer,
    .user-info {
        display: none;
    }

    .reports-container {
        width: 95%;
        margin: 3px;
    }


    .tab-content {
        overflow-x: hidden !important;
      }

    .steps-in-use {
        grid-template-columns: 1fr !important;
    }

  .stepIU,
  .stepIU-Required,
  .stepIU-No-Edit {
    width: 90% !important;
    min-width: 280px !important;
    max-width: 450px !important;
    display: block !important;
    box-sizing: border-box !important;
    margin: 0 auto 15px auto !important;
    flex: 0 0 auto !important; /* Don't shrink */
  }

    .step-imgIU {
    display: block;
    margin-left: auto;
    margin-right: auto;
    }

    /* Search Bar Layout */
    .search-bar {
        padding: 6px 10px;
        gap: 4px;
        font-size: 1em;
        flex-direction: column;
        align-items: stretch;
        position: relative;
        z-index: 1;
    }

    .search-group {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 6px;
        width: 100%;
        position: relative;
        z-index: 1 !important;
    }

    .search-group .dropdown-wrapper,
    .search-group .search-input {
        flex: 1 1 48%;
        max-width: 48%;
        min-width: 48%;
        box-sizing: border-box;
        display: flex;
        align-items: stretch;
        min-height: 44px;
    }

    .search-group .tag-input {
        flex: 1;
        display: flex;
        align-items: center;
        padding: 6px 8px;
        min-height: 36px;
        font-size: 13px;
        box-sizing: border-box;
        background: white;
        width: 100%;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .search-bar button,
    .tooltip {
        flex: 1 1 32%;
        height: 36px !important;
        font-size: 13px;
        padding: 4px;
        box-sizing: border-box;
    }

    /* Cloned dropdown positioning */
    .dropdown-content:not(.cloned-dropdown),
    .report-dropdown:not(.cloned-dropdown) {
        position: absolute !important;
        z-index: 9999 !important;
        width: 100% !important;
        min-width: 200px;
        overflow: visible !important;
        background-color: #3f474f;
    }

    .cloned-dropdown {
        max-width: 95vw;
        min-width: 100px;
        box-sizing: border-box;
        padding: 0;
        margin: 0;
        border-radius: 5px;
        background-color: #3f474f;
        border: 1px solid #444;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        overflow-y: auto;
    }

    #stepTagContainer {
        position: relative !important;
        z-index: 1 !important;
    }

  #stepsGroup {
    flex: 1 1 100%;
    min-width: 0;
  }

  /* first two groups → each get half the row */
  .pending-middle-inline > .inline-block-group:nth-child(-n+2) {
    flex: 1 1 40%;
    max-width: 40%;
    min-width: 0;
  }    .tooltip .tooltiptext {
        font-size: 11px !important;
    }

    .company-dropdown {
        margin-bottom: 6px;
        max-width: 200px;
        flex: 1 1 auto;
        box-sizing: border-box;
    }

    #filterSummary {
        font-size: 1em;
        margin-bottom: 4px;
        display: inline-block;
    }

    .dt-img {
        position: relative;
        margin: 20px auto 0;
        right: auto;
        top: auto;
        display: block;
    }

    .inline-fields {
        flex-direction: column;
    }

    .search-bar button,
    .tooltip {
        z-index: 10 !important;
    }

    .left-panel {
        width: 140px;
    }

    .steps-grid .steps img.step-img {
        max-width: 60px;
    }

    /* Pending Panel Responsive Fixes */
    .pending-search-bar {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .pending-left,
    .pending-middle,
    .pending-right {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 10px;
    }

    .pending-middle {
        border-left: none;
    }


.pending-right {
  display: flex;
  justify-content: flex-end;
  width: 100%;
}

.dropdown-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  width: 100%;
  max-width: 100%;
}

.dropdown-group {
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
  min-width: 0; /* prevent overflow */
}
.dropdown-group label {
  font-size: 0.75em;
  margin-bottom: 3px;
}
.dropdown-group select {
  width: 100%;
  height: 36px;
  font-size: 13px;
  box-sizing: border-box;
}

    .pending-left > div {
        display: flex;
        align-items: center;
        gap: 10px;
        flex-wrap: nowrap;
        width: 100%;
    }

    .pending-right label {
        font-size: 0.70em;
        margin-bottom: 2px;
    }

    .steps-container {
    display: flex;
    flex-direction: column;
    align-items: center; /* ⬅️ This centers the step boxes */
    justify-content: center;
    padding: 10px;
    }

    .steps-container .step {
    width: 90%; /* Optional: makes each step take most of the width */
    max-width: 400px;
    }
}

/* Extra media query for very narrow screens (optional) */
@media (max-width: 480px) {
    .inline-fields {
        flex-direction: column;
    }
}

@media (max-width: 900px) {
  .stepIU, 
  .stepIU-No-Edit {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 1024px) {
    .left-panel {
        width: 180px;
    }
    .steps-grid .steps img.step-img {
        max-width: 80px;
    }
}

@media (max-width: 480px) {
    .left-panel {
        width: 100px;
    }
    .steps-grid .steps img.step-img {
        max-width: 45px;
    }
    .step-name {
        font-size: 10px;
    }
}

/* Override mobile override */
.pending-right .dropdown-row {
  display: flex !important;
  flex-wrap: nowrap !important;
  justify-content: space-between !important;
  width: 100% !important;
  max-width: 100% !important;
  gap: 10px !important;
}

.pending-right .dropdown-group {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 48% !important;
  max-width: 48% !important;
  box-sizing: border-box !important;
}

.pending-right .dropdown-group select {
  width: 100% !important;
  box-sizing: border-box !important;
  height: 36px !important;
  font-size: 13px !important;
}

a.dark:link,
a.dark:visited,
a.dark:hover,
a.dark:active,
a.dark:focus {
  color: #384049;
}
