/* ollo — teal brand over PlainAdmin / AdresSayta indigo. */
:root {
  --ollo-primary: #0e8a7d;
  --ollo-primary-dark: #0b6b61;
  --ollo-primary-bright: #14b8a6;
  --ollo-primary-soft: #ccfbf1;
  --ollo-ink: #12263a;
  --ollo-muted: #5d657b;
  --ux-primary: #0e8a7d;
  --ux-shadow: 0 12px 30px rgba(14, 138, 125, 0.1);
}

[hidden] {
  display: none !important;
}

.sidebar-nav-wrapper .navbar-logo {
  padding: 8px 20px 0;
}

.sidebar-nav-wrapper .navbar-logo a {
  display: flex;
  align-items: center;
  max-width: 100%;
}

.sidebar-nav-wrapper .navbar-logo img {
  display: block;
  max-width: 160px;
  height: 32px;
  width: auto;
}

.auth-brand img {
  height: 36px;
  width: auto;
}

.input-style-1 .form-control,
.input-style-1 select,
.input-style-1 textarea,
.input-style-1 input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]) {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 48px;
  background: rgba(239, 239, 239, 0.55);
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 12px 16px;
  color: #5d657b;
  line-height: 1.4;
}

.input-style-1 select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 16 16'%3E%3Cpath stroke='%230B6B61' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.6' d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
}

.input-style-1 textarea.form-control,
.input-style-1 textarea {
  min-height: 120px;
  resize: vertical;
}

.input-style-1 .form-control:focus,
.input-style-1 select:focus,
.input-style-1 textarea:focus,
.input-style-1 input:focus {
  border-color: var(--ollo-primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(14, 138, 125, 0.16);
  outline: none;
}

.input-style-1 > label {
  display: block;
}

.input-style-1 input[type="checkbox"],
.input-style-1 input[type="radio"] {
  width: 1.15em;
  height: 1.15em;
  min-height: 0;
  min-width: 0;
  padding: 0;
  margin: 0;
  display: inline-block;
  vertical-align: middle;
  box-shadow: none;
  border-radius: 4px;
  background: #fff;
  appearance: auto;
}

.input-style-1 .text-sm.text-gray {
  margin-top: 6px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.input-style-1 textarea.form-control {
  max-height: 280px;
}

.checkbox-style {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px;
  padding-left: 0;
  min-height: 0;
}

.checkbox-style .form-check-input {
  float: none;
  width: 22px;
  height: 22px;
  min-width: 22px;
  min-height: 22px;
  margin: 2px 0 0;
  padding: 0;
  flex: 0 0 auto;
  display: inline-block;
  appearance: auto;
  background: #fff;
  box-shadow: none;
}

.checkbox-style .form-check-label,
.checkbox-style label {
  margin: 0;
  padding-top: 2px;
}

.checkbox-style .text-sm {
  flex: 1 0 100%;
  margin: 4px 0 0;
}

.checkbox-grid {
  margin-bottom: 20px;
}

.checkbox-grid-title {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #1a2142;
  margin-bottom: 10px;
}

.checkbox-grid > .checkbox-grid-list,
.checkbox-grid ul {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px 16px;
  width: 100%;
  min-width: 0;
}

.checkbox-grid > .checkbox-grid-list > div,
.checkbox-grid li {
  margin: 0;
  min-width: 0;
}

.checkbox-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
  margin: 0;
  color: #1a2142;
  min-width: 0;
}

.checkbox-grid input[type="checkbox"] {
  flex: 0 0 auto;
  width: 1.15em;
  height: 1.15em;
  min-width: 1.15em;
  min-height: 0;
  margin: 0;
  padding: 0;
  appearance: auto;
  background: #fff;
  accent-color: var(--ollo-primary);
}

.kind-panel {
  border: 1px solid #d7efe9;
  border-radius: 12px;
  padding: 16px 16px 4px;
  margin-bottom: 24px;
  background: #f7fffd;
  overflow: clip;
}

.kind-panel > h6 {
  margin-bottom: 16px;
}

.kind-panel .row {
  --bs-gutter-x: 1rem;
}

.form-layout-wrapper .card-style {
  overflow: visible;
}

.form-layout-wrapper .row > [class*="col-"] {
  min-width: 0;
}

.form-layout-wrapper code {
  overflow-wrap: anywhere;
  word-break: break-all;
}

.button-group .main-btn {
  min-height: 44px;
}

.text-primary,
a.text-primary {
  color: var(--ollo-primary) !important;
}

.bg-primary-100 {
  background: var(--ollo-primary-soft) !important;
}

.guest-hero {
  background: linear-gradient(135deg, #0b6b61 0%, #0e8a7d 50%, #14b8a6 100%);
}

.empty-state-icon,
.guest-step-num {
  background: rgba(14, 138, 125, 0.12);
  color: var(--ollo-primary);
}

.main-btn.primary-btn {
  background: var(--ollo-primary);
  border-color: var(--ollo-primary);
  color: #fff;
}

.main-btn.primary-btn:hover,
.main-btn.primary-btn:focus-visible {
  background: var(--ollo-primary-dark);
  border-color: var(--ollo-primary-dark);
  color: #fff;
}

.main-btn.secondary-btn {
  background: #fff;
  border-color: #99f6e4;
  color: var(--ollo-primary-dark);
}

.main-btn.secondary-btn:hover,
.main-btn.secondary-btn:focus-visible {
  background: #f0fdfa;
  border-color: #2dd4bf;
  color: var(--ollo-primary-dark);
}

.sidebar-nav-wrapper .sidebar-nav ul .nav-item > a.active {
  color: #1a2142;
}

.sidebar-nav-wrapper .sidebar-nav ul .nav-item > a.active .icon,
.sidebar-nav-wrapper .sidebar-nav ul .nav-item.nav-item-has-children ul li a.active {
  color: var(--ollo-primary);
}

.project-domain-link,
.project-list-name-link {
  color: var(--ollo-primary);
}

.project-domain-link:hover,
.project-list-name-link:hover {
  color: var(--ollo-primary-dark);
}

.alert-box.primary-alert {
  color: #115e59;
  background: #f0fdfa;
  border: 1px solid #5eead4;
  border-left: 4px solid var(--ollo-primary);
}

.header .menu-toggle-btn .main-btn.primary-btn {
  background: var(--ollo-primary);
}

.query-tree,
.query-tree-children {
  list-style: none;
  margin: 0;
  padding: 0;
}

.query-tree-children {
  margin: 6px 0 8px 18px;
  padding-left: 14px;
  border-left: 2px solid #99f6e4;
}

.query-tree-node {
  margin: 0 0 6px;
}

.query-tree-node details > summary {
  list-style: none;
  cursor: pointer;
}

.query-tree-node details > summary::-webkit-details-marker {
  display: none;
}

.query-tree-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #f7fffd;
  border: 1px solid #d7efe9;
}

.query-tree-node.is-root > .query-tree-row,
.query-tree-node.is-root > details > summary.query-tree-row {
  background: #ecfdf5;
  border-color: #5eead4;
}

.query-tree-node.is-leaf > .query-tree-row {
  background: #fff;
}

.query-tree-text {
  font-weight: 600;
  color: #1a2142;
}

.query-tree-tag {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 999px;
  font-weight: 500;
}

.query-tree-tag--root {
  color: #0f766e;
  background: #ccfbf1;
}

.query-tree-tag--branch {
  color: #1e3a5f;
  background: #e2e8f0;
}

.query-tree-tag--leaf {
  color: #166534;
  background: #dcfce7;
}

.query-tree-tag--used {
  color: #9a3412;
  background: #ffedd5;
}

.query-tree-depth {
  font-size: 12px;
}

.query-tree--compact .query-tree-row {
  padding: 6px 8px;
}
