/* VENUES */

.venue-subtitle {
  display: block;
  font-size: 0.775rem;
  font-weight: 400;
  color: #6B7280;
  margin-top: 0.1rem;
}

.venue-seating-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
}

.venue-seating-badge.venue-seating-reserved {
  background: #DBEAFE;
  color: #1D4ED8;
}

.venue-seating-badge.venue-seating-general {
  background: #FEF3C7;
  color: #92400E;
}

.content-header {
  padding: 1.25rem 1.25rem 0;
}

.content-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #161A1D;
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  flex-wrap: wrap;
}

.content-title-back {
  color: var(--primary);
  cursor: pointer;
}

.content-title-back:hover {
  text-decoration: underline;
}

.content-title-sep {
  color: #9CA3AF;
  flex-shrink: 0;
}

.content-body {
  padding: 0 1.25rem 1.25rem;
}

.content-divider {
  border: none;
  border-top: 1px solid #DDE0E4;
  margin: 1.75rem 0;
}

.content-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: #161A1D;
  margin: 0 0 1rem;
}



.area-list {
  border: 1px solid #DDE0E4;
  border-radius: 0.75rem;
  overflow: hidden;
}

.area-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.625rem 1rem;
  background: #F9FAFB;
  border-bottom: 1px solid #DDE0E4;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6B7280;
}

.area-list-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.625rem 1rem;
  border-bottom: 1px solid #F3F4F6;
}

.area-list-row:last-child {
  border-bottom: none;
}

.area-list-name {
  flex: 1;
}

.area-list-actions {
  flex-shrink: 0;
}

.area-action-bar {
  display: flex;
  gap: 0.5rem;
  padding: 0 1.25rem 1rem;
  flex-wrap: wrap;
}

.layout-info-card {
  border: 1px solid #DDE0E4;
  border-radius: 0.75rem;
  overflow: hidden;
}

.layout-info-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: #F9FAFB;
  border-bottom: 1px solid #DDE0E4;
  font-size: 0.85rem;
  font-weight: 700;
  color: #374151;
}

.layout-info-body {
  padding: 1rem;
}

.layout-info-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.layout-info-group {
  flex: 1;
  min-width: 200px;
}

.area-section-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid #F3F4F6;
  flex-wrap: wrap;
}

.area-section-row:last-child {
  border-bottom: none;
}

.area-section-new {
  background: #F9FAFB;
}

.area-section-show  { flex: 0 0 2rem; }
.area-section-name  { flex: 1; min-width: 120px; }
.area-section-admin { flex: 0 0 6rem; display: flex; justify-content: center; }
.area-section-color { flex: 0 0 7rem; }
.area-section-sort  { flex: 0 0 4rem; }
.area-section-actions {
  flex: 0 0 10rem;
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

#canvas_container {
    min-width: 500px;
    min-height: 500px;
    border: 2px solid #e3f1fd;
    background: url(canvas_bg.png);
    position: relative;
    max-width: 100%;
    overflow-x: scroll;
}

#area_container.edit {	
	cursor:crosshair;
}

#seat_layout_header {
	position:fixed;
	top:0px;
	width:100%;
	z-index: 100;
	background: #fff;
	padding:5px 20px;
}
#seat_layout {
	margin-top:140px;
}
a.seat {
	text-align:center;
	font-size:10px;	
	color: #fff !important;
}

a.seat.selector {cursor:grab}
a.seat.checked {background-image:url(check.png);background-size:80%;background-repeat:no-repeat;background-position:center}

a.seat.preview {
	cursor:default;
	border: 2px solid #bb954f;
    background-color: #ecd686;
}

a.seat.current {
	cursor:default;
	border: 2px solid #5c86bb;
	color: #5c86bb !important;
    background-color: #a9dbf3;
}

a.seat.admin {
	background-color: #f06370;
}

a.seat.Blocked   {
	border-color: #e62c02;
    background-color: #fbb6b6;
    color: #e62c02 !important;
}

a.seat.legend {cursor:default}


/* Extra small size for dense forms */


.btn-xs {
  font-size: 0.72rem;
  padding: 0.1rem 0.5rem;
  line-height: 1.3;
}

/* Settings bar - top row of canvas properties */
.ea-settings-bar {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 0.75rem;
  background: #F9FAFB;
  border: 1px solid #DDE0E4;
  border-radius: 0.5rem;
  margin-bottom: 0.75rem;
}

.ea-settings-group { display: flex; flex-direction: column; }
.ea-settings-group-grow { flex: 1; }
.ea-settings-group-btn { justify-content: flex-end; }

/* Section label */
.ea-section-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9CA3AF;
  margin: 0.75rem 0 0.375rem;
}

/* Element cards */
.ea-element-card {
  border: 1px solid #DDE0E4;
  border-radius: 0.5rem;
  margin-bottom: 0.375rem;
  overflow: hidden;
}

.ea-element-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.375rem 0.625rem;
  background: #F9FAFB;
  border-bottom: 1px solid #DDE0E4;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  color: #374151;
}

.ea-element-header:hover { background: #F0F6FF; }

.ea-element-body {
  display: none;
  padding: 0.625rem;
}

/* Wrapping flex field grid */
.ea-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: flex-start;
}

.ea-field {
  display: flex;
  flex-direction: column;
  min-width: 80px;
}

.ea-field-xs { min-width: 56px; max-width: 72px; }
.ea-field-lg { min-width: 140px; }
.ea-field-actions { min-width: 100px; }

.ea-label {
  font-size: 0.65rem;
  color: #9CA3AF;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.2rem;
  white-space: nowrap;
}

/* Footer */
.ea-footer {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 0;
  margin-top: 0.5rem;
  border-top: 1px solid #DDE0E4;
}

.as-field-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid #F3F4F6;
}

.as-field-row:last-of-type {
  border-bottom: none;
}

.as-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6B7280;
  white-space: nowrap;
  width: 5.5rem;
  flex-shrink: 0;
}

.as-inline-group {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  flex-wrap: wrap;
  flex: 1;
}

.as-inline-label {
  font-size: 0.72rem;
  color: #9CA3AF;
  white-space: nowrap;
}

.as-check-label {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  color: #6B7280;
  cursor: pointer;
  margin: 0;
}

.as-input-md   { width: 130px; }
.as-input-sm   { width: 80px; }
.as-input-xs   { width: 55px; }
.as-input-coord { width: 72px; }

.as-footer {
  display: flex;
  gap: 0.5rem;
  padding-top: 0.75rem;
  margin-top: 0.25rem;
}

a.seat.selector {
	top:-30px;
	left:-30px;
	opacity:0.5;	
}

.er-table {
  font-size: 0.78rem;
  margin-bottom: 0.75rem;
}

.er-table thead th {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6B7280;
  background: #F9FAFB;
  border-bottom: 1px solid #DDE0E4;
  padding: 0.4rem 0.5rem;
  white-space: nowrap;
}

.er-table tbody td {
  padding: 0.375rem 0.5rem;
  vertical-align: middle;
  border-bottom: 1px solid #F3F4F6;
}

.er-table tbody tr:last-child td {
  border-bottom: none;
}

.er-type-badge {
  font-size: 0.65rem;
  font-weight: 600;
  color: #6B7280;
  background: #F3F4F6;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
}

.er-name-input {
  width: 52px;
}

.er-num-input {
  width: 52px;
}

.er-seats-cell {
  max-width: 200px;
}

.er-seat-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem;
}

.er-seat-num {
  font-size: 0.65rem;
  background: #EFF6FF;
  color: #1D4ED8;
  padding: 0.1rem 0.25rem;
  border-radius: 3px;
}

.er-seat-count {
  font-size: 0.72rem;
  color: #6B7280;
}

.er-actions {
  display: flex;
  gap: 0.25rem;
}

/* Bulk action bar */
.er-bulk-bar {
  padding: 0.625rem 0;
  border-top: 1px solid #DDE0E4;
  margin-bottom: 0.75rem;
}

.er-bulk-group {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  flex-wrap: wrap;
}

.er-move-select {
  font-size: 0.72rem;
  padding: 0.2rem 0.5rem;
  height: auto;
}



/* Add rows bar */
.er-add-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem;
  background: #F9FAFB;
  border: 1px solid #DDE0E4;
  border-radius: 0.5rem;
}

.er-add-input {
  flex: 1;
}

.er-empty {
  font-size: 0.8rem;
  color: #9CA3AF;
  font-style: italic;
  padding: 0.75rem 0;
}

.edit-settings-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.875rem;
  background: #F9FAFB;
  border: 1px solid #DDE0E4;
  border-radius: 0.5rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.edit-settings-check {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  margin: 0;
}

.esr-table th,
.esr-table td {
  white-space: nowrap;
}

.esr-check-cell {
  text-align: center;
  vertical-align: middle;
}

.esr-id-val {
  font-size: 0.7rem;
  color: #9CA3AF;
}

.esr-cur-num {
  font-weight: 600;
  font-size: 0.78rem;
  color: #374151;
}

.esr-cur-sort {
  font-size: 0.72rem;
  color: #9CA3AF;
}

.esr-new-row {
  background: #F0F9FF;
}

.esr-new-row td {
  border-top: 2px dashed #BAE6FD;
}

/* Seat Chart Wrapper */
#seat_chart_container {
  display: flex;
  align-items: flex-start;
  gap: 0;
  width: 100%;
  overflow: hidden;
}

/* Canvas takes full width by default */
#canvas_container {
  flex: 1;
  min-width: 500px;
  min-height: 500px;
  border: 2px solid #e3f1fd;
  background: url(canvas_bg.png);
  position: relative;
  overflow-x: scroll;
  transition: flex 0.3s ease;
}

/* Editor panel hidden by default */
#seating_editor_container {
  display: none;
  flex: 0 0 0;
  min-width: 0;
  overflow-y: auto;
  overflow-x: hidden;
  border-left: 1px solid #DDE0E4;
  background: #fff;
  transition: flex 0.3s ease, min-width 0.3s ease;
}

/* When editor is shown */
#seat_chart_container.editor-open #seating_editor_container {
  display: block;
  flex: 0 0 20%;
  min-width: 250px;
  padding: 0 10px;
}

#seat_chart_container.editor-open #canvas_container {
  flex: 1;
  min-width: 0;
  overflow-x: scroll;
}

/* Seating Editor Sidebar Panel */
.sc-editor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.625rem 0.875rem;
  background: #F9FAFB;
  border-bottom: 1px solid #DDE0E4;
  position: sticky;
  top: 0;
  z-index: 10;
}

.sc-editor-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #161A1D;
}

.sc-editor-body {
  padding: 0.75rem;
  overflow-y: auto;
}

.sc-editor-footer {
  display: flex;
  gap: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid #DDE0E4;
  flex-wrap: wrap;
}

.flex-1 { flex: 1; }
