/* Devlopak Admin — app surfaces inside Admin-owned oa-shell chrome */

.oa-auth.is-required .oa-auth__close {
  display: none !important;
}

.oa-footer .oa-mark--config,
.oa-apps-modal__card-icon .oa-mark--config,
.oa-footer .oa-mark--group-admin,
.oa-apps-modal__group-icon .oa-mark--group-admin {
  color: #0f766e;
}

body > .oa-shell:has(.adm) {
  height: 100%;
  max-height: 100%;
  overflow: hidden;
}

body > .oa-shell:has(.adm) > .oa-main {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 0 !important;
  background: #fff !important;
}

.adm {
  flex: 1 1 auto;
  height: 100%;
  width: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background:
    radial-gradient(1000px 420px at 90% -10%, rgba(15, 118, 110, 0.12), transparent 55%),
    radial-gradient(800px 400px at 5% 100%, rgba(30, 64, 175, 0.08), transparent 50%),
    #f1f5f9;
}

.adm--page {
  overflow: auto;
}

.adm-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 28px 20px 48px;
}

.adm-page h1 {
  font: 600 22px/1.25 "Segoe UI", system-ui, sans-serif;
  margin: 0 0 10px;
  color: #0f172a;
}

.adm-page h2 {
  font: 600 15px/1.3 "Segoe UI", system-ui, sans-serif;
  margin: 22px 0 8px;
  color: #0f172a;
}

.adm-page p,
.adm-page li {
  font: 14px/1.5 "Segoe UI", system-ui, sans-serif;
  color: #334155;
}

.adm-muted {
  color: #64748b;
  font-size: 13px;
}

.adm-btn {
  font: 600 14px/1.2 "Segoe UI", system-ui, sans-serif;
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  background: #0f766e;
  color: #fff;
  cursor: pointer;
}

.adm-btn:hover {
  background: #0d9488;
}

.adm-status {
  margin: 12px 0 0;
  min-height: 1.25em;
  font: 13px/1.4 "Segoe UI", system-ui, sans-serif;
  color: #0f766e;
}

.adm-status--err {
  color: #b91c1c;
}

.adm-dl {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 8px 12px;
  margin: 16px 0 0;
}

.adm-dl dt {
  font: 600 12px/1.4 "Segoe UI", system-ui, sans-serif;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.adm-dl dd {
  margin: 0;
  font: 13px/1.4 ui-monospace, Consolas, monospace;
  color: #0f172a;
  word-break: break-all;
}

.adm-chrome {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid #cbd5e1;
  background: rgba(255, 255, 255, 0.85);
}

.adm-chrome__title {
  font: 600 15px/1.2 "Segoe UI", system-ui, sans-serif;
  color: #0f172a;
  margin-right: 8px;
}

.adm-chrome button,
.adm-chrome select {
  font: 500 13px/1.2 "Segoe UI", system-ui, sans-serif;
  padding: 6px 10px;
  border: 1px solid #94a3b8;
  border-radius: 4px;
  background: #fff;
  color: #0f172a;
  cursor: pointer;
}

.adm-chrome button:hover {
  background: #e2e8f0;
}

.adm-status {
  font: 12px/1.3 "Segoe UI", system-ui, sans-serif;
  color: #475569;
  margin-left: auto;
}

.adm-body {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  overflow: hidden;
}

/* Accounts / Security-style left groups + right pane */
.adm-cfg {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: 21.25rem minmax(0, 1fr);
  overflow: hidden;
  background: #fff;
}

.adm-cfg__nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.25rem 1rem 1.5rem 1.2rem;
  border-right: 1px solid #e2e5ea;
  background: #f6f7f9;
  min-height: 0;
  overflow: auto;
}

.adm-cfg__nav-brand h1 {
  margin: 0.35rem 0 0;
  font-size: 1.35rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: #111;
}

.adm-cfg__nav-note {
  margin: 0.45rem 0 0;
  font-size: 0.78rem;
  color: #6a7180;
  line-height: 1.4;
}

.adm-cfg__back {
  border: 0;
  background: transparent;
  color: #0f766e;
  font: 600 0.8rem/1.2 "Segoe UI", system-ui, sans-serif;
  padding: 0;
  cursor: pointer;
  text-align: left;
}

.adm-cfg__back:hover {
  text-decoration: underline;
}

.adm-cfg__menu {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.adm-cfg__menu-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  width: 100%;
  text-align: left;
  border: 0;
  border-radius: 8px;
  background: transparent;
  padding: 0.65rem 0.75rem;
  cursor: pointer;
  color: #1e293b;
  font: 600 0.95rem/1.25 "Segoe UI", system-ui, sans-serif;
}

.adm-cfg__menu-item:hover {
  background: #e8eaee;
}

.adm-cfg__menu-item.is-active {
  background: #e0f2fe;
  color: #0c4a6e;
}

.adm-cfg__menu-title {
  display: block;
}

.adm-cfg__menu-sub {
  display: block;
  font: 500 0.72rem/1.3 "Segoe UI", system-ui, sans-serif;
  color: #64748b;
}

.adm-cfg__pane {
  min-height: 0;
  overflow: auto;
  padding: 1.5rem 1.75rem 2rem;
  background: #fff;
}

.adm-cfg__empty {
  max-width: 32rem;
  margin: 2rem auto 0;
  color: #334155;
}

.adm-cfg__empty h2 {
  margin: 0 0 0.5rem;
  font: 650 1.25rem/1.3 "Segoe UI", system-ui, sans-serif;
  color: #0f172a;
}

.adm-cfg__empty p {
  margin: 0 0 0.75rem;
  font: 0.92rem/1.5 "Segoe UI", system-ui, sans-serif;
}

.adm-cfg__editor-head h2 {
  margin: 0 0 0.25rem;
  font: 650 1.35rem/1.25 "Segoe UI", system-ui, sans-serif;
  color: #0f172a;
}

.adm-cfg__form label {
  display: block;
  margin: 1rem 0 0;
  font: 600 0.82rem/1.2 "Segoe UI", system-ui, sans-serif;
  color: #334155;
}

.adm-cfg__key {
  display: block;
  font: 500 0.7rem/1.3 ui-monospace, Consolas, monospace;
  color: #94a3b8;
  margin: 0.15rem 0 0.35rem;
}

.adm-cfg__field-row {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}

.adm-cfg__field-row input {
  flex: 1 1 auto;
  min-width: 0;
  box-sizing: border-box;
  font: 13px/1.35 ui-monospace, Consolas, monospace;
  padding: 0.55rem 0.65rem;
  border: 1px solid #94a3b8;
  border-radius: 6px;
  background: #fff;
  color: #0f172a;
}

.adm-cfg__field-row input[readonly] {
  background: #f8fafc;
  color: #64748b;
  letter-spacing: 0.08em;
}

.adm-cfg__field-row button {
  flex: 0 0 auto;
  font: 600 0.78rem/1.2 "Segoe UI", system-ui, sans-serif;
  padding: 0 0.85rem;
  border: 1px solid #94a3b8;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  color: #0f172a;
}

.adm-cfg__field-row button:hover {
  background: #e2e8f0;
}

@media (max-width: 800px) {
  .adm-cfg {
    grid-template-columns: 1fr;
  }
  .adm-cfg__nav {
    border-right: none;
    border-bottom: 1px solid #e2e5ea;
    max-height: 40%;
  }
}

.adm-list,
.adm-editor {
  min-height: 0;
  overflow: auto;
  padding: 12px 14px;
}

.adm-list {
  border-right: 1px solid #cbd5e1;
  background: rgba(255, 255, 255, 0.55);
}

.adm-row {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 8px 6px;
  border-bottom: 1px solid #e2e8f0;
  cursor: pointer;
}

.adm-row:hover,
.adm-row.is-active {
  background: #e0f2fe;
}

.adm-row__kind {
  font: 600 11px/1 "Segoe UI", system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #0369a1;
}

.adm-row__key {
  font: 500 13px/1.2 ui-monospace, Consolas, monospace;
  color: #0f172a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.adm-row__ver {
  font: 11px/1 "Segoe UI", system-ui, sans-serif;
  color: #64748b;
}

.adm-editor label {
  display: block;
  font: 600 12px/1.2 "Segoe UI", system-ui, sans-serif;
  color: #334155;
  margin: 10px 0 4px;
}

.adm-editor input,
.adm-editor textarea,
.adm-editor select {
  width: 100%;
  box-sizing: border-box;
  font: 13px/1.35 ui-monospace, Consolas, monospace;
  padding: 8px;
  border: 1px solid #94a3b8;
  border-radius: 4px;
  background: #fff;
}

.adm-editor textarea {
  min-height: 160px;
  resize: vertical;
}

.adm-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.adm-gate {
  margin: auto;
  max-width: 400px;
  padding: 28px 24px;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  text-align: center;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
}

.adm-gate__mark {
  display: block;
  margin: 0 auto 14px;
}

.adm-gate h1 {
  font: 600 18px/1.3 "Segoe UI", system-ui, sans-serif;
  color: #0f172a;
  margin: 0 0 8px;
}

.adm-gate p {
  font: 13px/1.45 "Segoe UI", system-ui, sans-serif;
  color: #475569;
  margin: 0 0 16px;
}

.adm-gate__err {
  margin: 12px 0 0 !important;
  color: #b91c1c !important;
  font-size: 12px !important;
}

.adm-gate button {
  font: 600 13px/1.2 "Segoe UI", system-ui, sans-serif;
  padding: 10px 16px;
  border: 1px solid #0f766e;
  border-radius: 4px;
  background: #0f766e;
  color: #fff;
  cursor: pointer;
}

.adm-gate button:disabled {
  opacity: 0.55;
  cursor: wait;
}

@media (max-width: 800px) {
  .adm-body {
    grid-template-columns: 1fr;
  }
  .adm-list {
    border-right: none;
    border-bottom: 1px solid #cbd5e1;
    max-height: 40%;
  }
}
