@font-face {
  font-family: "RobotoCondensed-Bold";
  src: url(fonts/RobotoCondensed-Bold.ttf);
}

@font-face {
  font-family: "RobotoCondensed-Regular";
  src: url(fonts/RobotoCondensed-Regular.ttf);
}

:root{
  /* --primary-color : #fa4216; */
  --primary-color : #ec0000;
  --opacity-color : #ff66001f;
  --yellow : #ffd202;
  --red : #ec0000;
  --dark : #003440;
}

.primary-btn{
  color: white;
  background-color: var(--primary-color);
}
.primary-btn:hover{
  background-color: var(--primary-color);
  color: white;
}
.primary-btn:active{
  background-color: var(--primary-color) !important;
  color: white;
}
.alpha-btn:hover, .alpha-btn.active{
  background-color: white;
  color: var(--dark);
}
.alpha-section{
  background-color: var(--dark);
}
.table_parent{
  overflow-x: auto;
}
.table_parent table{
  min-width: 530px;
}
.table-responsive{
  overflow-x: auto !important;
    display: block !important;
    white-space: nowrap; 
    min-height: 300px;
    /* padding-bottom: 100px; */
}
#addr-table-1{
  min-width: 700px;
}
#email-adder::after{
  display: none;
}
.close-email, .close-phone{
  cursor: pointer;
}
.table-custom tr:has(th){
  background-color: var(--primary-color);
}
.table-custom tr th{
  background-color: transparent !important;
  color: white !important;
  border: 0;
}
.table-custom tr td{
  background-color: transparent;
}
.col-w{
  flex: 1;
  width: fit-content;
  /* min-width: 130px; */
  /* min-width: fit-content; */
  white-space: nowrap;     
  overflow: hidden;          
  text-overflow: ellipsis; 
  padding: 0 10px;
}

.modal-footer button{
  border: none !important;
}

.tables-section, #tables-section{
   border: 1px solid #ebebeb;
}
.tables-section form{
  /* min-width: 1000px; */
  width: 100%;
}
.tables-section form .header-2{
  min-width: 1000px;
  width: 100%;
}

.tables-section:has(.step-body:not(.d-none)) .column-head {
  display: none !important;
}

.tables-section:not(:has(.step-body:not(.d-none))) .column-head {
  display: flex !important;
}

.btn.show{
  background: var(--primary-color);
}

@media screen and (max-width : 567px) {
  .tables-section form{
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }
  
}
:root {
  --ffBold: "RobotoCondensed-Bold";
  --ffRegular: "RobotoCondensed-Regular";
   /* --primary-color: #ff6600; */
   --primary-color: #ec0000;
  --opacity-color: #ff66001f;
}


.primary-text {
  color: var(--primary-color);
}
.primary-bg {
  background-color: var(--primary-color);
}
.opacity-text {
  color: var(--opacity-color);
}
.opacity-bg {
  background-color: var(--opacity-color);
}

button:disabled, .btn:disabled{
  pointer-events: all !important;
  cursor: not-allowed;
}

.alpha-btn {
  height: 30px;
  width: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  text-decoration: none;
  text-transform: capitalize;
  background-color: var(--dark);
  border: 0.1px solid rgba(189, 189, 189, 0.233);
}

.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6, p{
  margin-bottom: 3px !important;
}
.box{
  border: 1px solid rgb(209, 209, 209);
  padding: 10px 13px;
  max-width: 49%;
  border-radius: 8px;
}
.box.active{
  background: var(--opacity-color);
  border: 1px solid var(--primary-color);
}
.pointer{
  cursor: pointer;
}

label:has(input.sol:checked){
  background: var(--opacity-color) !important;
  border: 1px solid var(--primary-color) !important;
}
input.sol[type="radio"] {
  accent-color: var(--primary-color); 
}

input.sol[type="radio"] {
  appearance: none; 
  border: 1px solid var(--primary-color);
  width: 16px;
  height: 16px;
  border-radius: 50%; 
  outline: none;
  cursor: pointer;
}
input.sol[type="radio"]:checked {
  background-color: #ffffff;
  padding: 4px;
  box-shadow: inset 0 0 0 4px var(--primary-color);
  border: 1px solid var(--primary-color);
}

#p_message {
  display:none;
  background: whitesmoke;
  box-shadow: 0 0 10px rgb(196, 196, 196);
  border-radius: 15px;
  color: #000;
  position: absolute;
  top: 60px;
  padding: 20px;
  margin-top: 10px;
}

#p_message p {
  padding: 3px 23px;
  font-size: 15px;
}

.valid {
  color: green;
}

.valid:before {
  position: relative;
  left: -20px;
  content: "✔";
}
.invalid {
  color: red;
}

.invalid:before {
  position: relative;
  left: -20px;
  content: "✖";
}

.sign-up-form{
  overflow-y: auto;
}

.sign-up-form::-webkit-scrollbar {
  width: 8px;
}

.sign-up-form::-webkit-scrollbar-thumb {
  background-color: #888;
  border-radius: 10px;
}

.sign-up-form::-webkit-scrollbar-thumb:hover {
  background-color: #555;
}

.sign-up-form::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}


/* General Styling */


.driver-details {
  /* max-width: 1100px; */
  margin: 20px auto;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.driver-info {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  padding: 20px;
  border-bottom: 1px solid #ddd;
}

.driver-info > div {
  flex: 1 1;
  margin: 10px 0;
}
.driver-info .info, .driver-info .dates, .driver-info .status{
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.profile-picture {
  flex: 0 0 80px;
  margin: auto;
  text-align: center;
}

.profile-picture img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 1px solid #ddd;
}

.status-active {
  color: green;
  font-weight: bold;
}

/* Tabs Styling */
.tabs {
  padding: 10px 20px;
}

.tab-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  border-bottom: 1px solid #ddd;
  padding: 0;
  margin: 0;
}

.tab-menu li {
  list-style: none;
  padding: 10px;
  cursor: pointer;
  flex: 1 1 auto;
  text-align: center;
  border: 1px solid #ddd;
  border-bottom: none;
  background-color: #f1f1f1;
  font-size: 14px;
  margin: 2px;
  border-radius: 4px 4px 0 0;
}

.tab-menu li.active {
  background-color: #fff;
  font-weight: bold;
  border-bottom: 1px solid #fff;
}

.tab-content {
  padding: 10px;
  border-radius: 0 0 8px 8px;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

/* Button Styling */
.add-btn {
  background-color: var(--primary-color);
  color: #fff;
  padding: 10px 15px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.add-btn:hover {
  background-color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
  .driver-info {
    flex-direction: column;
    align-items: center;
  }

  .profile-picture {
    margin-bottom: 15px;
  }

  .tab-menu li {
    font-size: 12px;
    padding: 8px;
  }

  .add-btn {
    width: 100%;
    padding: 12px;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .driver-info > div {
    text-align: center;
  }

  .tab-menu {
    flex-direction: column;
  }

  .tab-menu li {
    margin: 2px 0;
  }

  .tab-content {
    padding: 15px;
  }

  .add-btn {
    font-size: 14px;
    padding: 10px;
  }
}

.avatar-picture  img{
  width: 200px;
  height: 180px;
}

.modal-dialog.forms{
  max-width: 900px;
}


.profile-image{
  height: 200px;
  width: 100%;
  border: 1px solid #00000012;
}

.btn-skip{
  border: 1px solid #ddd9d9;
}

label:has(img){
  cursor: pointer;
}
.table-container {
  max-height: 300px; /* Adjust height as needed */
  overflow-y: auto;
  border: 1px solid #ddd;
  border-radius: 8px;
}

.variants-table {
  width: 100%;
  border-collapse: collapse;
}

.variants-table th, 
.variants-table td {
  padding: 10px;
  border: 1px solid #ddd;
  text-align: left;
}

.variants-table th {
  background-color: #f4f4f4;
  font-weight: bold;
  position: sticky;
  top: 0;
  z-index: 2;
}


form:has(.header-2) {
  overflow-x: auto;
}

form .header-2 {
  min-width: 900px;
}

.form-container {
  max-width: 99%;
  margin: auto;
  background: white;
  border-radius: 8px;
  /* overflow: hidden; */
}

.form-header {
  background-color: var(--primary-color);
  color: white;
  padding: 15px;
  text-align: center;
}

.header-2 {
  border-radius: 10px;
}

.responsive-form {
  display: flex;
  flex-wrap: wrap;
  padding: 20px;
  gap: 20px;
}

.form-left,
.form-right {
  flex: 1 1 400px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

label:has(img) {
  cursor: pointer;
}

label {
  font-weight: bold;
  margin-bottom: 5px;
}

input[type="text"]:not(.form-control),
input[type="email"]:not(.form-control),
input[type="tel"]:not(.form-control) {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.email-field,
.phone-field {
  display: flex;
  align-items: center;
  gap: 10px;
}

.email-field button,
.phone-field button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 4px;
  padding: 8px;
  cursor: pointer;
}


.info-text {
  font-size: 0.8rem;
  color: #555;
}

.avatar {
  width: 100%;
  height: 150px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f4f4f4;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 4rem;
  color: #aaa;
}

.form-footer {
  flex-basis: 100%;
  text-align: center;
  margin-top: 20px;
}


.profile-circle-1 {
  height: 40px;
  width: 40px;
  font-size: 23px;
  border-radius: 50%;
  display: grid;
  overflow: hidden;
  place-items: center;
  background: rgba(214, 214, 214, 0.856);
}

.primary-bg img {
  border-radius: 50%;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  margin-bottom: 3px;
}

label {
  margin-bottom: 0;
}

@media (max-width: 600px) {
  .responsive-form {
      flex-direction: column;
  }
}

.primary-btn {
  background: var(--primary-color);
}

.primary-btn:hover {
  background: var(--primary-color);
}

.form-check-input[type=checkbox] {
  margin-top: 0;
}

.ribbon-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 150px;
  height: 150px;
  overflow: hidden;
  pointer-events: none; /* Prevent ribbon from interfering with clicks */
  z-index: 5;
}

.ribbon {
  position: absolute;
  left: -57px;
  top: 32px;
  width: 200px;
  color: #fff;
  text-align: center;
  transform: rotate(-45deg);
  font-size: 14px;
  font-weight: bold;
  padding: 5px 0;
  box-shadow: 0 0 3px rgba(0,0,0,0.3);
}


#deduction-container{
  overflow-x: auto;
}
.charge-row {
  min-width: 750px;
  background-color: white;
  border: 1px solid rgb(209, 209, 209);
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 1rem;
}
.deduction-row {
  min-width: 750px;
  background-color: white;
  border: 1px solid rgb(209, 209, 209);
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 1rem;
}
.charge-row b {
  font-weight: 600;
}


.summary-card {
  max-width: 450px;
  border-radius: 0.75rem;
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.08);
  padding: 2rem;
  background-color: #ffffff;
}
.summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px dashed #e0e0e0;
}

.summary-item:last-child {
  border-bottom: none;
}
.total-row {
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  border-top: 2px solid #b6b6b6; /* Unique solid blue line for emphasis */
}
.invoice-read-mode button:not(.tool-btn), .invoice-read-mode a:not(.tool-btn) {
  display: none;
}
.invoice-read-mode #deduction-container {
  overflow-x: hidden;
}
.invoice-read-mode .bg-primary-subtle{
  background-color: #e2e3e5 !important;
}

.invoice-read-mode div{
  box-shadow: none !important;
}
.invoice-read-mode select.form-select{
  --bs-form-select-bg-img : '';
}
.invoice-read-mode .summary-card{
  border: 1px solid #f4f4f4;
}
.invoice-edit-mode button.tool-btn, .invoice-edit-mode a.tool-btn {
  display: none !important;
}

.settlement-read-mode {
  background-color: white;
  padding-bottom: 10px;
  border: 1px solid gainsboro;
}
.settlement-read-mode .card{
    border: none !important;
    box-shadow: none !important;
}

.settlement-read-mode button:not(.tool-btn){
  display: none;
}
.settlement-read-mode select.form-select{
  --bs-form-select-bg-img : '';
}
.settlement-edit-mode .tool-btn {
  display: none ;
}

@media screen and (max-width : 1000px) {

  #charges-container, #deduction-container{
    overflow-x: auto !important;
  }

}
.truck_type_section, .icd_truck_type_section{
  display: flex;
}