/* Denser Avo admin layout — loaded after avo.base */

body.bg-application .content {
  padding: 0.75rem 1rem !important;
}

@media (min-width: 1024px) {
  body.bg-application .content {
    padding: 1rem 1.25rem !important;
  }
}

body.bg-application .content-area {
  padding-top: 3.5rem;
}

body.bg-application .main-content-area .content > .flex.space-y-8 > * + * {
  margin-top: 1.25rem !important;
}

/* Index tables */
body.bg-application table td[data-field-type] {
  min-height: 2rem;
  padding-top: 0.375rem;
  padding-bottom: 0.375rem;
  font-size: 0.8125rem;
  line-height: 1rem;
}

body.bg-application form .field-wrapper {
  padding-top: 8px;
  padding-bottom: 8px;
}

body.bg-application .field-wrapper div {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

body.bg-application table thead th {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

body.bg-application table thead th .text-xs {
  font-size: 0.6875rem;
}

body.bg-application .index-table-view table.w-full {
  font-size: 0.8125rem;
}

body.bg-application
  [data-component-name="avo/views/resource_index_component"]
  .py-4 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

body.bg-application [data-target="panel-body"] {
  gap: 0.75rem;
}

body.bg-application .avo-sidebar a.px-4 {
  padding-top: 0.375rem;
  padding-bottom: 0.375rem;
}

/* Slightly reduce custom brand logo size */
body.bg-application a.logo-placeholder {
  display: flex !important;
  align-items: center;
  height: 1.75rem !important;
}

body.bg-application a.logo-placeholder img,
body.bg-application a.logo-placeholder img.h-full {
  height: 1.5rem !important;
  max-height: 1.5rem !important;
  width: auto;
  object-fit: contain;
}

/* Show / edit field panels */
body.bg-application .field-wrapper.min-h-14 {
  min-height: 2.5rem;
}

body.bg-application .field-wrapper .text-lg {
  font-size: 0.9375rem;
}

body.bg-application .field-wrapper .text-sm {
  font-size: 0.75rem;
}

/* Avo admin show pages: keep Back on the left, other controls on the right */
body.bg-application [data-target="panel-tools"] {
  align-items: center;
  gap: 0.375rem;
}

body.bg-application [data-target="panel-tools"] > a:first-child {
  margin-right: auto;
}

/* Reduce clutter: hide Avo panel title text in headers */
body.bg-application [data-target="panel-header"] [data-target="title"] {
  display: none !important;
}
