.msc_submodal_overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 15, 15, 0.750);
    backdrop-filter: blur(2px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.msc_submodal {
    background: linear-gradient(90deg,rgba(87, 87, 87, 0.164) 0%, rgba(34, 34, 34, 0.164) 100%);
    /* background: rgba(87, 87, 87, 0.164); */
    backdrop-filter: blur(10px) saturate(160%);
    -webkit-backdrop-filter: blur(10px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.055);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.466),
        0 0 20px rgba(255, 255, 255, 0.027);
    border-radius: 12px;
    width: 85vw;
    max-width: 85vw;
    overflow: hidden;
    color: #d9d9d9;
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.25s ease;
    max-height: 50vh;
}

.msc_submodal_header {
  flex: 0 0 auto;
  padding: 2vh 2vw;
  text-align: center;
}

.msc_submodal_header h3 {
  font-family: "RubikLight";
  margin: 0;
  font-size: 1.1rem;
  color: #eeeeee;
}
.msc_submodal_header h3 span{
  font-family: "RubikRegular";
}


.msc_submodal_search{
  margin: 3vh 0 2vh 0;
}

.submodal_search_wrapper{
  position: relative;
  display: flex;
  justify-content: center;
}
.submodal_search_wrapper::before{
  position: absolute;
  left: 8.4vw;
  content: "\f002";
  font-family: "Font Awesome 6 Pro";
  font-weight: 300;
  font-size: 1.1rem;
}
.submodal_search_wrapper > input{
  width: calc(100% - 13.4vw);
  background: transparent;
  outline: none;
  border: none;
  border-bottom: 1px solid #cccccc;
  padding: 0 1rem .5rem 2.5rem;
  color: #d8d8d8;
  font-family: "RubikLight";
  font-size: 1rem;
}

#submodal_brand_car_planned .msc_submodal,
#submodal_add_order_planned .msc_submodal,
#submodal_add_order .msc_submodal{
  height: 50vh;
}

#submodal_brand_car_planned .msc_submodal_body,
#submodal_add_order_planned .msc_submodal_body,
#submodal_add_order .msc_submodal_body{
  min-height: 0;
}

.msc_submodal_body {
    flex: 1 1 auto;
  padding: 6.70vw;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #555 transparent;
}

.msc_submodal_body .mscbo_call_client > h4{
    font-size: .9rem;
}

.mscbo_tc_item_sub {
  border-radius: 1rem;
    background: linear-gradient(90deg,rgba(87, 87, 87, 0.164) 0%, rgba(34, 34, 34, 0.164) 100%);
    /* background: rgba(87, 87, 87, 0.164); */
    backdrop-filter: blur(10px) saturate(160%);
    -webkit-backdrop-filter: blur(10px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.055);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.466),
        0 0 20px rgba(255, 255, 255, 0.027);
  padding: 3vw 5vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1vh;
  font-family: "RubikRegular";
    color: #eeeeee;
  transition: background .05s ease-in-out;
  position: relative;
}

:where(#submodal_add_order_planned .mscbo_tc_item_sub > .pick_counter,
       #submodal_add_order .mscbo_tc_item_sub > .pick_counter){
  position: absolute;
  left: -1rem;
  background: #547a64;
  width: 1.75rem;
  border-radius: 5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1/1;
  border: 1px solid rgba(255, 255, 255, 0.055);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.466),
        0 0 20px rgba(255, 255, 255, 0.027);
  opacity: 0;
  transition: opacity 0s ease-in-out;
}

:where(#submodal_add_order, #submodal_add_order_planned) .mscbo_tc_item_sub{justify-content: end;}
:where(#submodal_add_order, #submodal_add_order_planned) .mscbo_tc_item_sub p{flex: 1;padding-right: 2.5vw;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;}
:where(#submodal_add_order, #submodal_add_order_planned) .mscbo_tc_item_sub p.coast{flex: 0 0 auto !important;margin-right: 4vw;font-family: "RubikRegular";padding: 0;}
:where(#submodal_add_order, #submodal_add_order_planned) .mscbo_tc_item_sub i{flex: 0 0 auto !important;}
:where(#submodal_add_order, #submodal_add_order_planned) .mscbo_tc_item_sub{justify-content: end;}

.mscbo_tc_item_sub.brand{
  justify-content: inherit;
}
.mscbo_tc_item_sub.brand svg{
  flex: 1;
  width: 10%;
  height: auto;
  aspect-ratio: 1 / 1;
}
.mscbo_tc_item_sub.brand p{
  flex: 9;
  padding-left: 3vw;
  font-family: "RubikLight";
}
.mscbo_tc_item_sub.brand p.coast{
  flex: 3 !important;
  text-align: right;
}
.mscbo_tc_item_sub.brand i{
  flex: 1;
}

.mscbo_tc_item_sub.active {
  background: linear-gradient(90deg,rgba(87, 211, 105, 0.315) 0%, rgba(87, 211, 105, 0.096) 100%);
}
.mscbo_tc_item_sub.active i.fa-solid{ opacity: 1; }

.mscbo_tc_item_sub p {
  margin: 0;
  font-family: "RubikLight";
}
.mscbo_tc_item_sub span {
  font-family: "RubikMedium";
}
.mscbo_tc_item_sub i.fa-solid {
  color: #66AC63;
  font-size: 1.3rem;
  opacity: 0;
  transition: opacity .05s ease-in-out;
}

.msc_submodal_footer {
    flex: 0 0 auto;
  background: #7a7a7a1c;
  display: flex;
  height: 5vh;
}
.mscbo_btn_sub {
  border: none;
  padding: 8px 12px;
  font-family: "RubikRegular";
  cursor: pointer;
  color: #EEEEEE;
  background-color: #4b4b4b;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: 0.2s;
}

.mscbo_btn_sub.success { background-color: #3fa53a4f; font-family: "RubikMedium"; }
.mscbo_btn_sub.pending { background-color: #caad1a4f; font-family: "RubikMedium"; }
.mscbo_btn_sub.danger { background-color: #b32d2d7e; }
.mscbo_btn_sub.add { background-color: #5a5a5a5d; font-family: "RubikLight"; }
.mscbo_btn_sub.cancel { background-color: #4949495d; font-family: "RubikLight"; }
.mscbo_btn_sub.close { background-color: #4747475d; }
.mscbo_btn_sub.done { background-color: #a5a5a55d; color: #d4d4d4; font-family: "RubikMedium"; }
.mscbo_btn_sub.empty { background-color: transparent; }
.mscbo_btn_sub.empty_s { background-color: transparent; }

:where(#submodal_add_order, #submodal_add_order_planned, #submodal_complete_active_order, #submodal_delete_active_order, #submodal_type_car_planned, #submodal_brand_car_planned, #submodal_delete_planned_order, #submodal_accept_processing_order) .mscbo_btn_sub.success{ flex:6; }
:where(#submodal_add_order, #submodal_add_order_planned, #submodal_complete_active_order, #submodal_delete_active_order, #submodal_type_car_planned, #submodal_brand_car_planned, #submodal_delete_planned_order, #submodal_accept_processing_order) .mscbo_btn_sub.close{ flex:1; }
:where(#submodal_add_order, #submodal_add_order_planned, #submodal_complete_active_order, #submodal_delete_active_order, #submodal_type_car_planned, #submodal_brand_car_planned, #submodal_delete_planned_order, #submodal_accept_processing_order) .mscbo_btn_sub.empty{ flex:4; }
:where(#submodal_add_order, #submodal_add_order_planned, #submodal_complete_active_order, #submodal_delete_active_order, #submodal_type_car_planned, #submodal_brand_car_planned, #submodal_delete_planned_order, #submodal_accept_processing_order) .mscbo_btn_sub.empty_s{ flex:2; }

:where(#submodal_rewrite_active, #submodal_rewrite_planned) .mscbo_btn_sub.success{ flex:3; }
:where(#submodal_rewrite_active, #submodal_rewrite_planned) .mscbo_btn_sub.cancel{ flex:3; }
:where(#submodal_rewrite_active, #submodal_rewrite_planned) .mscbo_btn_sub.close{ flex:1; }
:where(#submodal_rewrite_active, #submodal_rewrite_planned) .mscbo_btn_sub.empty{ flex:5; }
:where(#submodal_rewrite_active, #submodal_rewrite_planned) .mscbo_btn_sub.empty_s{ flex:1; }

#submodal_delete_active_order .mscbo_btn_sub.success{ background-color: #b32d2d7e !important; }
#submodal_delete_planned_order .mscbo_btn_sub.success{ background-color: #b32d2d7e !important; }






.pick_count_cont{
  display: grid;
  width: 100%;
  grid-template-columns: 2fr 1fr;
  justify-items: end;
  align-items: center;
}
.pick_count_cont input{
  width: 3rem;
  aspect-ratio: 1/1.2;
  text-align: center;
  background: none;
  border: none;
  outline: none;
  border: 1px solid #8b8b8b;
  border-radius: .75rem;
  color: #c4c4c4;
  font-family: "RubikRegular";
  font-size: 1.8rem;
}
.pick_count_cont > .fa-solid{
  padding: .5rem 0 .5rem .5rem;
  font-size: 1.2rem;
  color: #659163;
}

.pick_count_cont_btns{
  display: flex;
  align-items: center;
  position: relative;
}

.pick_count_cont_buttons{
  margin-left: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}
.pick_count_cont_buttons > i{
  font-size: 1.5rem;
  padding: .25rem;
}