/* stylelint-disable-next-line scss/no-global-function-names */
#tat-form {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-direction: row;
}
#tat-form .form-group {
  margin-bottom: 0;
}

@media (min-width: 375px) {
  #tat-form .form-group {
    margin-right: 1rem;
  }
}
@media (max-width: 375.98px) {
  #tat-form {
    align-items: flex-start;
    flex-direction: column;
  }
  #tat-form button {
    width: 100%;
  }
  #tat-form .form-group {
    margin-bottom: 1rem;
  }
}
.tat-export-buttons {
  text-align: right;
  color: #515871;
  margin-top: 32px;
}
.tat-export-buttons > *:not(:last-child) {
  margin-right: 28px;
}

/** detail card společné pro static a rozbalovací */
.tat-detail-card {
  border: 1px solid #d0d3db;
  border-radius: 4px;
  margin-bottom: 1rem;
  transition: border 0.2s ease-out;
  box-shadow: 0px 2px 4px -2px rgba(10, 13, 18, 0.06), 0px 3px 8px -2px rgba(10, 13, 18, 0.09);
}
.tat-detail-card .tat-detail-card-header {
  background-color: #edf1f6;
  padding: 8px 12px;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
}
.tat-detail-card .tat-detail-card-header-top {
  width: 100%;
  display: inline-flex;
  align-items: center;
}
.tat-detail-card .tat-detail-card-header-label {
  flex: 1;
  display: inline-flex;
}
.tat-detail-card .tat-detail-card-header-icon {
  width: 36px;
  height: 36px;
  background-color: #fece22;
  border-radius: 4px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin-right: 8px;
}
.tat-detail-card .tat-detail-card-header-id-info {
  display: inline-flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
}
.tat-detail-card .tat-detail-card-header-id-info h4 {
  margin-bottom: 0;
  color: #002776;
  font-size: 0.875rem;
  user-select: auto;
}
.tat-detail-card .tat-detail-card-header-id-info p {
  margin-bottom: 0;
  color: #515871;
  font-size: 0.688rem;
  user-select: auto;
}
.tat-detail-card .tat-detail-card-header-type {
  display: inline-block;
  color: #002776;
  font-weight: 600;
  border-radius: 112px;
  padding: 4px 8px;
  font-size: 0.688rem;
  margin: 0 16px 0 0;
  background-color: #fff;
}
.tat-detail-card .tat-detail-card-header-bottom p {
  margin-left: 24px;
  margin-top: 4px;
  margin-bottom: 0;
  font-size: 0.688rem;
  color: #515871;
}
.tat-detail-card .tat-detail-card-content {
  padding: 20px;
}
.tat-detail-card .tat-detail-card-consignment-items {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  box-sizing: border-box;
  margin-bottom: 32px;
}
.tat-detail-card .simple-table {
  margin-bottom: 32px;
}

.tat-consignment-detail-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 32px;
}
.tat-consignment-detail-action-buttons a,
.tat-consignment-detail-action-buttons button {
  min-width: 16.375rem;
}
@media (max-width: 375.98px) {
  .tat-consignment-detail-action-buttons a,
  .tat-consignment-detail-action-buttons button {
    min-width: auto;
  }
}

/* detail card static */
.tat-detail-card-static .tat-detail-card-header-bottom p {
  margin-left: 0;
}
.tat-detail-card-static .tat-detail-card-header-type {
  margin-right: 0;
}

@media (max-width: 375.98px) {
  .tat-detail-card-static .tat-detail-card-header-top {
    align-items: flex-start;
    flex-direction: column-reverse;
  }
  .tat-detail-card-static .tat-detail-card-header-type {
    margin-bottom: 8px;
  }
}
/* card detail rozbalovací */
.tat-detail-card:not(.tat-detail-card-static):not(.open) {
  border-color: #edf1f6;
}

.tat-detail-card .tat-detail-card-header button[type=button] {
  all: unset;
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  text-align: left;
  text-decoration: none;
  width: 100%;
}
.tat-detail-card .tat-detail-card-header button[type=button] svg.tat-arrow-icon {
  transition: transform 0.2s ease-out;
}
@media (max-width: 375.98px) {
  .tat-detail-card .tat-detail-card-header button[type=button] svg.tat-arrow-icon {
    margin-top: 28px;
  }
}
.tat-detail-card .tat-detail-card-header button[type=button][aria-expanded=true] svg.tat-arrow-icon {
  transform: rotate(180deg);
}

.tat-detail-card-header-top .form-check {
  margin-right: 8px;
}

.tat-detail-card-header-label-wrapper {
  flex: 1;
  display: inline-flex;
  align-items: center;
}

.tat-my-consignments-btn {
  margin-bottom: 32px;
}

@media (max-width: 375.98px) {
  .tat-detail-card-header-label-wrapper {
    flex-direction: column-reverse;
    align-items: flex-start;
  }
  .tat-detail-card .tat-detail-card-header-type {
    margin-bottom: 8px;
  }
  .tat-my-consignments-btn {
    width: 100%;
  }
  .tat-detail-card-header-top .form-check {
    margin-top: 36px;
  }
}
/* položky detailu o zásilce */
.tat-detail-card-consignment-items {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  /* mezera mezi řádky i sloupci */
  box-sizing: border-box;
  margin-bottom: 0;
  /* duty */
  /* price */
}
.tat-detail-card-consignment-items .tat-detail-card-consignment-item {
  flex: 0 0 calc(50% - 6px);
  /* 50 % šířky minus půlka mezery */
  box-sizing: border-box;
  background-color: #eef0f2;
  border-radius: 4px;
  padding: 8px;
  text-align: left;
}
.tat-detail-card-consignment-items .tat-detail-card-consignment-item dt {
  font-size: 0.688em;
  color: #515871;
  font-weight: 400;
}
.tat-detail-card-consignment-items .tat-detail-card-consignment-item dd {
  margin-bottom: 0;
  font-size: 0.813rem;
  font-weight: 600;
  color: #141b31;
  line-height: 1.2;
}
.tat-detail-card-consignment-items .tat-detail-card-consignment-item-duty-row {
  display: flex;
  align-items: flex-start;
  width: 100%;
}
.tat-detail-card-consignment-items .tat-detail-card-consignment-item-duty-row .tat-detail-card-consignment-item-duty {
  box-sizing: border-box;
  background: #eef0f2;
  border-radius: 4px;
  padding: 8px;
  text-align: left;
  flex: 0 0 100%;
  margin-right: 16px;
}
.tat-detail-card-consignment-items .tat-detail-card-consignment-item-duty-row .tat-detail-card-consignment-item-duty svg {
  margin-right: 4px;
  transition: transform 0.2s ease-out;
}
.tat-detail-card-consignment-items .tat-detail-card-consignment-item-duty-row .tat-detail-card-consignment-item-duty button[aria-expanded=true] svg {
  transform: rotate(180deg);
}
.tat-detail-card-consignment-items .tat-detail-card-consignment-item-duty-row .tat-detail-card-consignment-item-duty .tat-detail-card-consignment-item {
  background-color: transparent;
  border-radius: 0;
  padding: 0;
}
.tat-detail-card-consignment-items .tat-detail-card-consignment-item-duty-row .tat-detail-card-consignment-item-duty button[type=button] {
  all: unset;
  display: inline-flex;
  align-items: flex-start;
  cursor: pointer;
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  text-align: left;
  text-decoration: none;
  width: 100%;
}
.tat-detail-card-consignment-items .tat-detail-card-consignment-item-duty-row .tat-consignment-detail-item-duty-row {
  display: flex;
  align-items: flex-start;
}
.tat-detail-card-consignment-items .tat-detail-card-consignment-item-duty-row .tat-consignment-detail-duty-content {
  margin-left: 20px;
}
.tat-detail-card-consignment-items .tat-detail-card-consignment-item-price-row {
  display: flex;
  align-items: flex-start;
  width: 100%;
  /* margin-bottom: 32px; */
}
.tat-detail-card-consignment-items .tat-detail-card-consignment-item-price-row .tat-detail-card-consignment-item-price {
  box-sizing: border-box;
  background: #eef0f2;
  border-radius: 4px;
  padding: 8px;
  text-align: left;
  flex: 0 0 calc(50% - 6px);
  margin-right: 16px;
}
.tat-detail-card-consignment-items .tat-detail-card-consignment-item-price-row .tat-detail-card-consignment-item-price svg {
  margin-right: 4px;
  transition: transform 0.2s ease-out;
}
.tat-detail-card-consignment-items .tat-detail-card-consignment-item-price-row .tat-detail-card-consignment-item-price button[aria-expanded=true] svg {
  transform: rotate(180deg);
}
.tat-detail-card-consignment-items .tat-detail-card-consignment-item-price-row .tat-detail-card-consignment-item-price .tat-detail-card-consignment-item {
  background-color: transparent;
  border-radius: 0;
  padding: 0;
}
.tat-detail-card-consignment-items .tat-detail-card-consignment-item-price-row .tat-detail-card-consignment-item-price button[type=button] {
  all: unset;
  display: inline-flex;
  align-items: flex-start;
  cursor: pointer;
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  text-align: left;
  text-decoration: none;
  width: 100%;
}
.tat-detail-card-consignment-items .tat-detail-card-consignment-item-price-row .tat-consignment-detail-item-price-row {
  display: flex;
  align-items: flex-start;
}
.tat-detail-card-consignment-items .tat-detail-card-consignment-item-price-row .tat-consignment-detail-price-content {
  margin-left: 20px;
}

/* obsah */
.tat-detail-card-content > *:last-child {
  margin-bottom: 0;
}

/* responzivní úpravy */
@media (max-width: 375.98px) {
  .tat-detail-card-consignment-items .tat-detail-card-consignment-item {
    flex: 0 0 auto;
    width: 100%;
  }
  .tat-detail-card-consignment-items .tat-detail-card-consignment-item-duty-row,
  .tat-detail-card-consignment-items .tat-detail-card-consignment-item-price-row {
    flex-direction: column;
  }
  .tat-detail-card-consignment-items .tat-detail-card-consignment-item-duty-row .tat-detail-card-consignment-item,
  .tat-detail-card-consignment-items .tat-detail-card-consignment-item-price-row .tat-detail-card-consignment-item {
    flex: 1 1 0;
    width: 100%;
  }
  .tat-detail-card-consignment-items .tat-detail-card-consignment-item-duty-row .tat-detail-card-consignment-item-duty,
  .tat-detail-card-consignment-items .tat-detail-card-consignment-item-duty-row .tat-detail-card-consignment-item-price,
  .tat-detail-card-consignment-items .tat-detail-card-consignment-item-price-row .tat-detail-card-consignment-item-duty,
  .tat-detail-card-consignment-items .tat-detail-card-consignment-item-price-row .tat-detail-card-consignment-item-price {
    flex: 1;
    margin-right: 0;
    width: 100%;
  }
  .tat-detail-card-consignment-items .tat-detail-card-consignment-item-duty-row .tat-detail-card-consignment-item-price,
  .tat-detail-card-consignment-items .tat-detail-card-consignment-item-price-row .tat-detail-card-consignment-item-price {
    margin-bottom: 12px;
  }
  .tat-payment-btn {
    width: 100%;
  }
}
/* custom name form */
.tat-consignment-detail-custom-name-form {
  display: flex;
  align-items: flex-start;
  margin-bottom: 32px;
}

.tat-consignment-detail-custom-name-form .form-group {
  margin-bottom: 0;
  width: calc(50% - 6px);
}
@media (max-width: 375.98px) {
  .tat-consignment-detail-custom-name-form .form-group {
    width: 100%;
  }
}

.tat-consignment-detail-custom-name-form .form-control {
  width: 100%;
}

.tat-consignment-detail-custom-name-form button[type=submit] {
  margin-top: 22px;
  margin-left: 16px;
}

/** mapa geolokace */
.tat-detail-card-geolocation-wrapper {
  display: flex;
  gap: 12px;
}
@media (max-width: 375.98px) {
  .tat-detail-card-geolocation-wrapper {
    flex-direction: column;
  }
}

.tat-detail-card-geolocation-wrapper .tat-detail-card-consignment-items {
  flex: 1;
  gap: inherit;
  flex-direction: column;
  margin-bottom: 0;
}

.tat-detail-card-geolocation-wrapper .tat-detail-card-consignment-item {
  flex: 1 1 auto;
}

.tat-detail-card-geolocation-map {
  flex: 1;
  border-radius: 4px;
  padding: 8px;
  background-color: #eef0f2;
  display: block;
}

.tat-detail-card .progress-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.tat-detail-card .progress-title h3,
.tat-detail-card .progress-title p {
  margin-bottom: 0 !important;
}
@media (max-width: 767.98px) {
  .tat-detail-card .progress-title {
    align-items: flex-start;
    flex-direction: column;
    justify-content: normal;
  }
  .tat-detail-card .progress-title h3 {
    margin-bottom: 0.5rem !important;
  }
}
.tat-detail-card .progress-container {
  display: flex;
  width: 100%;
  align-items: flex-start;
  justify-content: space-between;
  margin: 1rem 0 2rem 0;
}
@media (max-width: 767.98px) {
  .tat-detail-card .progress-container {
    flex-direction: column;
  }
}
.tat-detail-card .progress-step {
  display: flex;
  align-items: center;
  position: relative;
  flex: 1;
}
.tat-detail-card .progress-step:last-child {
  flex: 0;
}
@media (max-width: 767.98px) {
  .tat-detail-card .progress-step:last-child {
    margin-bottom: 0;
  }
}
@media (max-width: 767.98px) {
  .tat-detail-card .progress-step {
    display: block;
    margin-bottom: 1.5rem;
  }
}
.tat-detail-card .progress-step-content {
  z-index: 1;
}
@media (max-width: 767.98px) {
  .tat-detail-card .progress-step-content {
    display: inline-flex;
    align-items: center;
  }
}
.tat-detail-card .progress-step.completed .progress-circle {
  background-color: #0daa57;
  color: #fff;
}
.tat-detail-card .progress-step.completed .progress-line {
  background-color: #0daa57;
}
.tat-detail-card .progress-step.current .progress-circle {
  background-color: #fece22;
  color: #002776;
  border: 1.5px #fef0bf solid;
  box-shadow: 0px 2px 4px -2px rgba(10, 13, 18, 0.06), 0px 3px 8px -2px rgba(10, 13, 18, 0.09);
}
.tat-detail-card .progress-step:not(.completed) .progress-line {
  background-color: #e0e0e0;
}
.tat-detail-card .progress-circle {
  width: 2.875rem;
  height: 2.875rem;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 2rem;
  background-color: #eef0f2;
  color: #888d9f;
}
.tat-detail-card .progress-circle svg {
  width: 2rem;
  height: 1.5rem;
}
@media (max-width: 767.98px) {
  .tat-detail-card .progress-circle {
    margin: 0 0.5rem 0 0;
  }
}
.tat-detail-card .progress-step-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 8px;
}
@media (max-width: 767.98px) {
  .tat-detail-card .progress-step-text {
    align-items: flex-start;
    margin-top: 0;
  }
}
.tat-detail-card .progress-step-description {
  font-size: 0.813rem;
}
.tat-detail-card .progress-step-date {
  font-size: 0.688rem;
  color: #515871;
}
.tat-detail-card .progress-line {
  position: absolute;
  top: 1.5rem;
  left: 2rem;
  width: 100%;
  height: 4px;
  z-index: 0;
}
@media (max-width: 767.98px) {
  .tat-detail-card .progress-line {
    top: 2.875rem;
    left: 1.4375rem;
    width: 4px;
    height: 1.5rem;
  }
}

.tat-consignment-detail-footer-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media (max-width: 375.98px) {
  .tat-consignment-detail-footer-buttons {
    flex-direction: column;
  }
  .tat-consignment-detail-footer-buttons > * {
    width: 100%;
  }
  .tat-consignment-detail-footer-buttons > button {
    margin-bottom: 16px;
  }
}
@media print {
  .application-layout-2-column-col-1,
  .application-menu,
  .tat-detail-card-header-icon,
  .progress-title,
  .progress-container,
  .tat-consignment-detail-action-buttons,
  .tat-consignment-detail-footer-buttons,
  .tat-payment-btn,
  .tat-export-buttons,
  div.bg-dark.rounded,
  .tat-consignment-detail-custom-name-form,
  .tat-detail-card-consignment-item-duty svg,
  .tat-detail-card-consignment-item-price svg {
    display: none !important;
  }
  .tat-detail-card-consignment-items .tat-detail-card-consignment-item {
    padding: 0 !important;
  }
  .alert {
    padding: 0 !important;
  }
  .tat-detail-card-content {
    padding: 0 !important;
  }
  .tat-detail-card-header-label-wrapper {
    align-items: flex-start;
    flex-direction: column-reverse;
  }
  .tat-detail-card {
    border: none !important;
    box-shadow: none !important;
    padding: 0 0 12pt 0 !important;
    border-bottom: 1pt solid #000 !important;
    border-radius: 0;
  }
  .tat-detail-card .form-check {
    display: none !important;
  }
  .tat-detail-card .tat-detail-card-header-top {
    align-items: flex-start;
    flex-direction: column-reverse;
    margin-bottom: 8pt;
  }
  .tat-detail-card .tat-detail-card-header-type {
    margin: 0 0 8pt 0 !important;
    padding: 0 !important;
  }
  .tat-detail-card .tat-detail-card-header {
    padding: 0 !important;
  }
  .tat-detail-card .tat-detail-card-header-id-info h4, .tat-detail-card .tat-detail-card-header-type {
    color: #000;
  }
  .tat-detail-card button[aria-expanded=true] svg,
  .tat-detail-card button[aria-expanded=false] svg {
    display: none !important;
  }
  .tat-detail-card .tat-detail-card-header-bottom p {
    margin-left: 0 !important;
  }
  .tat-detail-card .tat-detail-card-consignment-items {
    flex-direction: column;
    gap: 4pt;
    margin-bottom: 8pt;
  }
  .tat-detail-card .tat-detail-card-consignment-items .tat-detail-card-consignment-item {
    display: inline-flex;
    flex: 1;
    gap: 8pt;
  }
  .tat-detail-card .tat-detail-card-consignment-items .tat-detail-card-consignment-item-duty-row,
  .tat-detail-card .tat-detail-card-consignment-items .tat-detail-card-consignment-item-price-row {
    margin-bottom: 8pt;
  }
  .tat-detail-card .tat-detail-card-consignment-items .tat-detail-card-consignment-item-duty-row .tat-detail-card-consignment-item-duty,
  .tat-detail-card .tat-detail-card-consignment-items .tat-detail-card-consignment-item-duty-row .tat-detail-card-consignment-item-price,
  .tat-detail-card .tat-detail-card-consignment-items .tat-detail-card-consignment-item-price-row .tat-detail-card-consignment-item-duty,
  .tat-detail-card .tat-detail-card-consignment-items .tat-detail-card-consignment-item-price-row .tat-detail-card-consignment-item-price {
    padding: 0 !important;
    margin: 0 !important;
  }
  .tat-detail-card .tat-detail-card-consignment-items .tat-detail-card-consignment-item-duty-row .tat-consignment-detail-duty-content,
  .tat-detail-card .tat-detail-card-consignment-items .tat-detail-card-consignment-item-duty-row .tat-consignment-detail-price-content,
  .tat-detail-card .tat-detail-card-consignment-items .tat-detail-card-consignment-item-price-row .tat-consignment-detail-duty-content,
  .tat-detail-card .tat-detail-card-consignment-items .tat-detail-card-consignment-item-price-row .tat-consignment-detail-price-content {
    margin-left: 0 !important;
  }
}
button.tat-my-consignments-btn {
  display: inline-flex;
  align-items: center;
}
button.tat-my-consignments-btn svg {
  margin-left: 0.5rem;
  color: #ffe175;
}