/* Compact add-service form: controls grouped by purpose instead of a
   long-duration column that creates unnecessary height on landscape tablets.
   This file loads last and only affects the "Dodaj novu uslugu" panel. */
html body #settings #serviceSettingsCard .service-new-block{
  padding:10px 12px!important;
}
html body #settings #serviceSettingsCard .service-new-head{
  margin-bottom:9px!important;
}
html body #settings #serviceSettingsCard .service-add-grid.service-add-compact-grid{
  display:grid!important;
  grid-template-columns:minmax(210px,1.25fr) minmax(130px,.65fr) minmax(120px,.55fr) 104px minmax(220px,1.05fr)!important;
  grid-template-areas:
    "name duration price color availability"
    "online online online action action"!important;
  column-gap:10px!important;
  row-gap:8px!important;
  align-items:start!important;
  align-content:start!important;
  min-height:0!important;
  height:auto!important;
  width:100%!important;
  max-width:100%!important;
  box-sizing:border-box!important;
}
html body #settings #serviceSettingsCard .service-add-compact-grid > *{
  min-width:0!important;
  max-width:100%!important;
  box-sizing:border-box!important;
}
html body #settings #serviceSettingsCard .service-add-compact-grid > .service-add-name{
  grid-area:name!important;
}
html body #settings #serviceSettingsCard .service-add-compact-grid > .service-add-duration{
  grid-area:duration!important;
  display:block!important;
  width:100%!important;
  height:auto!important;
}
html body #settings #serviceSettingsCard .service-add-compact-grid > .service-add-price{
  grid-area:price!important;
}
html body #settings #serviceSettingsCard .service-add-compact-grid > .service-add-color{
  grid-area:color!important;
}
html body #settings #serviceSettingsCard .service-add-compact-grid > .service-add-availability{
  grid-area:availability!important;
  display:flex!important;
  align-items:flex-start!important;
  gap:8px!important;
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  margin:18px 0 0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  white-space:normal!important;
  overflow:visible!important;
}
html body #settings #serviceSettingsCard .service-add-compact-grid > .service-add-availability input[type="checkbox"]{
  position:static!important;
  display:block!important;
  flex:0 0 19px!important;
  width:19px!important;
  height:19px!important;
  min-width:19px!important;
  min-height:19px!important;
  margin:0!important;
}
html body #settings #serviceSettingsCard .service-add-compact-grid > .service-add-availability span{
  display:flex!important;
  flex-direction:column!important;
  gap:2px!important;
  min-width:0!important;
  max-width:100%!important;
  width:auto!important;
  white-space:normal!important;
}
html body #settings #serviceSettingsCard .service-add-compact-grid > .service-add-availability strong{
  font-size:11px!important;
  font-weight:700!important;
  line-height:1.35!important;
  white-space:normal!important;
}
html body #settings #serviceSettingsCard .service-add-compact-grid > .service-add-availability small{
  font-size:9.5px!important;
  line-height:1.4!important;
  color:#6c8297!important;
  white-space:normal!important;
}
html body #settings #serviceSettingsCard .service-add-compact-grid > .service-add-online{
  grid-area:online!important;
  min-width:0!important;
  width:max-content!important;
  max-width:100%!important;
  justify-self:start!important;
  align-self:center!important;
  margin:0!important;
}
html body #settings #serviceSettingsCard .service-add-compact-grid > #addServiceBtn{
  grid-area:action!important;
  justify-self:end!important;
  align-self:center!important;
  margin:0!important;
  min-height:40px!important;
}
html body #settings #serviceSettingsCard .service-add-compact-grid .service-add-name input,
html body #settings #serviceSettingsCard .service-add-compact-grid .service-add-duration input,
html body #settings #serviceSettingsCard .service-add-compact-grid .service-add-price input{
  min-width:0!important;
  width:100%!important;
  max-width:100%!important;
  box-sizing:border-box!important;
}
/* The form cannot sustain five tracks after the sidebar reduces viewport width. */
@media (min-width:901px) and (max-width:1179px){
  html body #settings #serviceSettingsCard .service-add-grid.service-add-compact-grid{
    grid-template-columns:minmax(0,1fr) minmax(120px,.55fr) minmax(120px,.55fr) 104px!important;
    grid-template-areas:
      "name name duration price"
      "availability availability color color"
      "online online action action"!important;
  }
  html body #settings #serviceSettingsCard .service-add-compact-grid > .service-add-availability{
    margin:4px 0 0!important;
  }
}
@media (min-width:621px) and (max-width:900px){
  html body #settings #serviceSettingsCard .service-add-grid.service-add-compact-grid{
    grid-template-columns:minmax(0,1fr) minmax(0,1fr) 164px!important;
    grid-template-areas:
      "name name name"
      "duration price color"
      "availability availability availability"
      "online online action"!important;
  }
  html body #settings #serviceSettingsCard .service-add-compact-grid > .service-add-availability{
    margin:0!important;
  }
}
@media (max-width:620px){
  html body #settings #serviceSettingsCard .service-add-grid.service-add-compact-grid{
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
    grid-template-areas:
      "name name"
      "duration price"
      "color availability"
      "online online"
      "action action"!important;
    row-gap:10px!important;
  }
  html body #settings #serviceSettingsCard .service-add-compact-grid > .service-add-availability{
    margin:0!important;
  }
  html body #settings #serviceSettingsCard .service-add-compact-grid > #addServiceBtn{
    width:100%!important;
    justify-self:stretch!important;
  }
}
@media (max-width:400px){
  html body #settings #serviceSettingsCard .service-add-grid.service-add-compact-grid{
    grid-template-columns:minmax(0,1fr)!important;
    grid-template-areas:"name" "duration" "price" "color" "availability" "online" "action"!important;
  }
}

#settings #serviceSettingsCard .service-directory-options{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:6px 16px;
}
#settings #serviceSettingsCard .service-directory-options label{
  margin:0;
  min-height:36px;
  white-space:normal;
}
