.mk-wrap .vp-table-scroll {
  min-height: 0;
}

.mk-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.mk-col-name {
  width: 230px;
}

.mk-col-scope {
  width: 132px;
}

.mk-col-media {
  width: 140px;
}

.mk-col-budget {
  width: 80px;
}

.mk-col-notes {
  width: 230px;
}

.mk-col-phone {
  width: 135px;
}

.mk-col-file {
  width: 74px;
}

.mk-col-status {
  width: 104px;
}

.mk-flag {
  display: inline-block;
  flex: 0 0 auto;
  border-radius: 2px;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--border2) 65%, transparent);
  object-fit: cover;
}

.mk-add-btn {
  gap: 8px;
}

.mk-add-flags {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.mk-country-inline,
.mk-modal-country-row,
.mk-country-chip {
  display: flex;
  align-items: center;
}

.mk-modal .vp-modal-header-main {
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-right: 0;
}

.mk-modal .vp-modal-grid--vehicle {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mk-modal-top-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.mk-country-inline {
  justify-content: center;
  gap: 5px;
}

.mk-country-toggle {
  width: 30px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface);
  opacity: 0.45;
  cursor: pointer;
  transition: border-color .15s ease, opacity .15s ease, background .15s ease;
}

.mk-country-toggle:hover,
.mk-country-toggle.is-selected {
  opacity: 1;
  border-color: var(--border2);
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
}

.mk-modal-country-row {
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 0;
}

.mk-modal-status-field {
  min-width: 170px;
  max-width: 170px;
  margin-bottom: 0;
}

.mk-country-chip {
  gap: 7px;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text2);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.mk-country-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.mk-country-chip.is-selected {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--border2));
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
  color: var(--text);
}

.mk-name-trigger {
  justify-content: flex-start;
  text-align: left;
}

.mk-table td > .vp-cell-trigger,
.mk-table td > .vp-plus-btn,
.mk-table td > .vp-status-btn,
.mk-table td > .vp-delete-row-btn,
.mk-table td > .vp-file-card {
  min-height: 30px;
}

.mk-table td > .vp-input {
  min-height: 30px;
  padding-top: 6px;
  padding-bottom: 6px;
  line-height: 1.2;
}

.mk-table td > .vp-textarea {
  min-height: 30px;
  padding-top: 6px;
  padding-bottom: 6px;
  line-height: 1.2;
}

.mk-attachments-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mk-modal .vp-attachment-card--filled {
  justify-content: center;
  gap: 8px;
}

.mk-modal .vp-attachment-thumb {
  width: 108px;
  height: 108px;
  padding: 6px;
  background: rgba(255,255,255,.02);
}

.mk-modal .vp-attachment-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  image-rendering: auto;
}

.mk-modal .vp-modal-field input,
.mk-modal .vp-modal-field select,
.mk-modal .vp-modal-field textarea {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0;
  border-radius: 10px;
  padding: 6px 11px;
}

.mk-modal .vp-modal-field {
  gap: 2px;
  margin-bottom: 2px;
}

.mk-modal .vp-modal-field input,
.mk-modal .vp-modal-field select {
  min-height: 32px;
  height: 32px;
}

.mk-modal .mk-textarea-one-line {
  min-height: 32px;
  height: 32px;
  overflow-y: hidden;
  resize: none;
}

.mk-modal .mk-textarea-auto {
  min-height: 64px;
  overflow-y: hidden;
  resize: none;
}

@media (max-width: 768px) {
  .mk-wrap {
    overflow: visible;
  }

  .mk-attachments-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mk-modal .vp-modal-grid--vehicle {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mk-modal .vp-modal-header-main,
  .mk-modal-top-controls {
    width: 100%;
  }

  .mk-modal-top-controls {
    justify-content: center;
  }

  .mk-modal-status-field {
    min-width: 100%;
    max-width: 100%;
  }
}
