/* коренева модалка */
.od-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  color: var(--light-text-color);
  padding: env(safe-area-inset-top) env(safe-area-inset-right)
    env(safe-area-inset-bottom) env(safe-area-inset-left);
}

/* картка-модалка */
.od-card {
  background: var(--light-bg);
  min-width: 350px;
  max-width: 80vw;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* хедер */
.od-head {
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
  display: flex;
  gap: 8px;
  align-items: center;
}
.od-path {
  font-weight: 600;
}

/* тіло / таблиця */
.od-body {
  padding: 0;
  overflow: auto;
}
.od-list {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.od-list tr {
  cursor: pointer;
}
.od-list tr:hover {
  background: var(--main-bg);
}
.od-list td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--list-color);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.od-list td:nth-child(3) {
  text-align: right;
  color: #888;
  padding-right: 30px;
}

/* допоміжні */
.od-cell-icon {
  width: 32px;
}
.od-cell-meta {
  color: #888;
}
.od-hidden {
  display: none;
}

/* футер */
.od-actions {
  padding: 10px 16px;
  border-top: 1px solid #eee;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

/* кнопки */
.od-btn {
  padding: 4px 12px;
  border: 1px solid var(--light-bg);
  background: var(--main-accent);
  border-radius: 8px;
  cursor: pointer;
  color: var(--light-text-color);
}
.od-btn:hover {
  opacity: 0.85;
}
