/* Rulo Yerleşim Stüdyosu — tam ekran overlay (dijital Montaj Stüdyosu ile aynı erişim kapısı) */

.awp-rulo-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.awp-rulo-title-row .module-rulo-baski-heading {
  min-width: 0;
  flex: 1 1 auto;
}

#tab-content-rulo-baski .awp-imposition-open-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  padding: 6px 10px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #fff;
  color: #4b5563;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

#tab-content-rulo-baski .awp-imposition-open-btn[hidden] {
  display: none !important;
}

#tab-content-rulo-baski .awp-imposition-open-btn:hover,
#tab-content-rulo-baski .awp-imposition-open-btn:focus-visible {
  background: #f9fafb;
  border-color: #9ca3af;
  color: #111827;
  outline: none;
}

#tab-content-rulo-baski .awp-imposition-open-btn__icon {
  font-size: 13px;
  line-height: 1;
}

@media (max-width: 768px) {
  #tab-content-rulo-baski .awp-imposition-open-btn {
    align-self: flex-end;
  }
}

.awp-rls {
  position: fixed;
  inset: 0;
  z-index: 100050;
  display: flex;
  flex-direction: column;
  background: #0f172a;
  color: #e2e8f0;
}

.awp-rls[hidden] {
  display: none !important;
}

body.awp-rulo-layout-studio-open {
  overflow: hidden;
}

.awp-rls-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
  padding: 10px 14px;
  background: #111827;
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.awp-rls-toolbar-left,
.awp-rls-toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.awp-rls-brand-group {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.awp-rls-brand {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
}

.awp-rls-divider {
  width: 1px;
  height: 16px;
  background: rgba(148, 163, 184, 0.35);
}

.awp-rls-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.awp-rls-icon-btn,
.awp-rls-tool-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 8px;
  background: #1e293b;
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.awp-rls-icon-btn {
  width: 36px;
  padding: 0;
}

.awp-rls-icon-btn svg,
.awp-rls-tool-btn svg {
  width: 16px;
  height: 16px;
}

.awp-rls-tool-btn:hover,
.awp-rls-icon-btn:hover {
  background: #334155;
}

.awp-rls-tool-btn--primary {
  background: #f97316;
  border-color: #f97316;
  color: #fff;
}

.awp-rls-tool-btn--primary:hover {
  background: #ea580c;
}

.awp-rls-tool-btn--block {
  width: 100%;
  margin-top: 8px;
}

.awp-rls-body {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(240px, 300px) 1fr;
  gap: 0;
}

.awp-rls-sidebar {
  overflow: auto;
  padding: 16px;
  background: #0b1220;
  border-right: 1px solid rgba(148, 163, 184, 0.2);
}

.awp-rls-sidebar-title {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
}

.awp-rls-metrics {
  margin: 0 0 18px;
  display: grid;
  gap: 8px;
}

.awp-rls-metric {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.15);
}

.awp-rls-metric dt {
  margin: 0;
  font-size: 11px;
  color: #94a3b8;
}

.awp-rls-metric dd {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: #f1f5f9;
  text-align: right;
}

.awp-rls-design-panel {
  margin-bottom: 16px;
  padding: 12px;
  border-radius: 10px;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.awp-rls-design-hint {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.45;
  color: #94a3b8;
}

.awp-rls-design-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 8px;
}

.awp-rls-design-thumb {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: #1e293b;
}

.awp-rls-legend {
  margin-top: 12px;
  color: #94a3b8;
}

.awp-rls-stage {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  padding: 16px;
  background: #1e293b;
}

.awp-rls-canvas {
  min-height: 280px;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px dashed #93c5fd;
}

.awp-rls-empty {
  margin: 24px;
  text-align: center;
  color: #64748b;
  font-size: 14px;
}

@media (max-width: 900px) {
  .awp-rls-body {
    grid-template-columns: 1fr;
  }

  .awp-rls-sidebar {
    border-right: none;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    max-height: 40vh;
  }
}
