:root {
  --gio-green: #2f7d4f;
  --gio-ink: #20262d;
  --gio-soft: #f6f8f7;
}

body {
  background: var(--gio-soft);
  color: var(--gio-ink);
}

.section-panel,
.metric-card {
  background: #fff;
  border: 1px solid #dfe6e2;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 1px 2px rgba(30, 41, 59, 0.04);
}

.metric-label {
  color: #667085;
  font-size: 0.9rem;
}

.metric-value {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
}

.status-badge {
  background: #edf7f0;
  color: #23613c;
  border: 1px solid #cde8d5;
}

.status-badge-danger {
  background: #fff1f0;
  color: #b42318;
  border: 1px solid #f3b8b1;
}

.detail-list {
  display: grid;
  grid-template-columns: minmax(110px, 35%) 1fr;
  gap: 0.5rem 1rem;
  margin-bottom: 0;
}

.detail-list dt {
  color: #667085;
  font-weight: 600;
}

.detail-list dd {
  margin-bottom: 0;
}

.table > :not(caption) > * > * {
  padding: 0.85rem;
}

.image-dropzone {
  align-items: center;
  background: #f8faf9;
  border: 1.5px dashed #b8c7be;
  border-radius: 8px;
  color: #415044;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  justify-content: center;
  min-height: 118px;
  padding: 1rem;
  text-align: center;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.image-dropzone:hover,
.image-dropzone.is-dragover {
  background: #edf7f0;
  border-color: var(--gio-green);
  color: #23613c;
}

.image-dropzone-title {
  font-weight: 700;
}

.image-dropzone-hint,
.image-dropzone-count {
  color: #667085;
  font-size: 0.85rem;
}

.image-dropzone-count {
  font-weight: 600;
}

.component-model-menu {
  background: #fff;
  border: 1px solid #dfe6e2;
  border-radius: 6px;
  max-height: 150px;
  overflow-y: auto;
  padding: 0.5rem;
  width: 100%;
}

.component-model-menu .form-check {
  margin-bottom: 0.25rem;
  white-space: normal;
}

.component-model-menu .form-check:last-child {
  margin-bottom: 0;
}

.perm-tree-row {
  border-bottom: 1px solid #eef1ef;
  padding: 0.4rem 0;
}

.perm-tree-child {
  border-bottom: none;
  padding-left: 1.5rem;
}

.perm-tree-label {
  color: var(--gio-ink);
  font-weight: 600;
  text-decoration: none;
}

.perm-tree-child .perm-tree-label {
  font-weight: 400;
}

.perm-tree-label:hover {
  color: var(--gio-green);
}

.perm-cascade-btn {
  font-size: 0.8rem;
}

.role-row {
  cursor: pointer;
}

.role-row.active {
  background: #edf7f0;
  border-color: var(--gio-green) !important;
}

.dt-filter-btn {
  background: none;
  border: none;
  padding: 0 0.2rem;
  color: #98a2b3;
  cursor: pointer;
  font-size: 0.7rem;
  line-height: 1;
  vertical-align: middle;
}

.dt-filter-btn:hover {
  color: var(--gio-ink);
}

.dt-filter-btn.dt-filter-active {
  color: var(--gio-green);
  font-weight: 700;
}

.dt-filter-panel {
  background: #fff;
  border: 1px solid #dfe6e2;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(30, 41, 59, 0.16);
  padding: 0.75rem;
  width: 260px;
  max-width: calc(100vw - 16px);
  max-height: 70vh;
  overflow-y: auto;
  z-index: 1080;
}

.dt-filter-list {
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid #eef1ef;
  border-radius: 6px;
  padding: 0.4rem 0.6rem;
}

.dt-filter-list .form-check {
  margin-bottom: 0.15rem;
  white-space: normal;
}

.dt-filter-select-all {
  border-bottom: 1px solid #eef1ef;
  margin-bottom: 0.35rem;
  padding-bottom: 0.35rem;
  font-weight: 600;
}

.dt-toolbar,
.dt-pagination {
  font-size: 0.9rem;
}

.dt-empty-row td {
  text-align: center;
  padding: 1rem;
}
