

[hidden] {
  display: none !important;
}

.hidden {
  display: none;
}

.inline-icon-button {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  width: 28px;
  height: 28px;

  margin: 0 0 0 8px;
  padding: 0;

  border-radius: 50%;

  background: #e8f3ff;

  color: #285a8e;

  border: 1px solid #b8d9f5;

  font-size: 15px;

  vertical-align: middle;
}

.inline-icon-button:hover {
  background: #d8ebff;
}


/* ---------- Toolbar ---------- */

.toolbar {
  max-width: 900px;

  margin: 0 auto 24px auto;

  display: flex;

  justify-content: flex-start;
}

.toolbar button {
  width: auto;
}


/* ---------- Button Variants ---------- */

.button-secondary {
  background: #e8f3ff;

  color: #285a8e;

  border: 1px solid #b8d9f5;
}

.button-secondary:hover {
  background: #d8ebff;
}

.button-danger {
  background: #d9534f;

  color: white;
}

.button-danger:hover {
  background: #c64541;
}


/* ---------- Venue Card Additions ---------- */

.venue-card {
  position: relative;

  display: flex;

  flex-direction: column;

  min-height: 420px;
}

.venue-image-wrap {
  position: relative;
}

.venue-image {
  width: 100%;
  height: 220px;

  object-fit: contain;

  background: #edf4fb;
}

.image-edit-button {
  position: absolute;

  top: 10px;
  right: 10px;

  width: 36px;
  height: 36px;

  padding: 0;
  margin: 0;

  border-radius: 50%;

  background: rgba(255, 255, 255, .92);

  color: #285a8e;

  border: 1px solid #b8d9f5;

  font-size: 20px;

  line-height: 36px;

  box-shadow:
    0 1px 6px rgba(0,0,0,.15);
}

.image-edit-button:hover {
  background: white;
}

.venue-card-body {
  flex: 1;
}

.venue-card-footer {
  display: flex;

  justify-content: flex-end;

  padding: 0 16px 16px 16px;
}

.trash-button {
  width: 38px;
  height: 38px;

  padding: 0;
  margin: 0;

  border-radius: 50%;

  background: #fdeaea;

  color: #8b2f2f;

  border: 1px solid #efb8b8;
}

.trash-button:hover {
  background: #f9d2d2;
}


/* ---------- Dialogs ---------- */

.dialog-box {
  width: min(440px, 90vw);

  padding: 26px 30px;

  border: 1px solid #c8d7e8;

  border-radius: 12px;

  box-shadow:
    0 10px 35px rgba(0,0,0,.25);
}

.dialog-box::backdrop {
  background: rgba(43, 54, 66, .35);
}

.dialog-box h3 {
  margin-top: 0;

  color: #285a8e;
}

.dialog-box button {
  width: 100%;

  margin-top: 12px;
}

.checkbox-row {
  display: flex;

  align-items: center;

  gap: 10px;

  margin: 14px 0;

  font-weight: 500;
}

.checkbox-row input {
  width: auto;

  margin: 0;
}


/* ---------- Page ---------- */

body {
  margin: 0;

  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;

  background: #edf4fb;
  color: #2b3642;
}


/* ---------- Main ---------- */

main {
  max-width: 1400px;

  margin: 40px auto;
  padding: 30px;

  background: white;

  border-radius: 12px;

  box-shadow:
    0 2px 10px rgba(0,0,0,.08);
}


/* ---------- App Header ---------- */

.app-header {
  padding: 28px 20px 24px 20px;

  text-align: center;

  background: linear-gradient(
    180deg,
    #ffffff 0%,
    #dfeeff 100%
  );

  border-bottom: 1px solid #c8d7e8;

  box-shadow:
    0 2px 8px rgba(0,0,0,.05);
}

.app-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.app-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  flex-shrink: 0;
}

.app-header h1 {
  margin: 0;

  color: #285a8e;

  font-size: 2.3em;

  font-weight: 600;

  letter-spacing: .2px;
}

.user-bar {
  margin-top: 10px;

  color: #6d7d8d;

  font-size: .95em;
}


/* ---------- Flash Messages ---------- */

.flash-container {
  max-width: 520px;

  margin: 0 auto 28px auto;
}

.flash {
  padding: 13px 18px;

  margin-bottom: 12px;

  text-align: center;

  border-radius: 9px;

  background: #dff0ff;

  border: 1px solid #b8d9f5;
  border-left: 5px solid #5ba4e6;

  color: #285a8e;

  font-weight: 500;

  box-shadow:
    0 1px 5px rgba(0,0,0,.06);

  transition: opacity .3s;
}

.flash-success {

  background: #e6f7eb;

  border-color: #46b96c;

  color: #2d6b42;
}


.flash-error {

  background: #fdeaea;

  border-color: #d9534f;

  color: #8b2f2f;
}


.flash-warning {

  background: #fff6dd;

  border-color: #f0b429;

  color: #7a5a00;
}


.flash-info {

  background: #e8f3ff;

  border-color: #5ba4e6;

  color: #285a8e;
}


/* ---------- Navigation ---------- */

nav {
  margin-bottom: 30px;
}

nav a {
  margin-right: 18px;

  color: #356ea8;

  text-decoration: none;

  font-weight: 500;
}

nav a:hover {
  text-decoration: underline;
}


/* ---------- Links ---------- */

a {
  color: #2f73c9;
}

a:hover {
  color: #1d5aa6;
}


/* ---------- Forms ---------- */

form {
  margin-top: 20px;
}

label {
  display: block;

  margin-bottom: 6px;

  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;

  padding: 10px 12px;

  margin-bottom: 18px;

  box-sizing: border-box;

  font-size: 15px;

  border: 1px solid #c8d7e8;

  border-radius: 8px;

  background: white;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;

  border-color: #63a3e7;

  box-shadow:
    0 0 0 3px rgba(99,163,231,.25);
}


/* ---------- Buttons ---------- */

button,
input[type="submit"] {

  background: #4d95df;

  color: white;

  border: none;

  border-radius: 8px;

  padding: 10px 22px;

  font-size: 15px;

  cursor: pointer;

  transition:
    background .15s ease,
    transform .05s ease;
}

button:hover,
input[type="submit"]:hover {

  background: #3b84d0;
}

button:active,
input[type="submit"]:active {

  transform: translateY(1px);
}


/* ---------- Tables ---------- */

table {

  width: 100%;

  border-collapse: collapse;

  margin-top: 20px;
}

th {

  background: #dcecff;

  color: #285a8e;

  text-align: left;

  padding: 10px;
}

td {

  padding: 10px;

  border-top: 1px solid #e6eef6;
}

tr:nth-child(even) {

  background: #f8fbff;
}


/* ---------- Cards ---------- */

.card {

  padding: 22px;

  margin: 20px 0;

  background: white;

  border: 1px solid #dde7f2;

  border-radius: 10px;
}


/* ---------- Lists ---------- */

ul {

  padding-left: 20px;
}

li {

  margin-bottom: 8px;
}


/* ---------- Small Text ---------- */

.small {

  color: #6d7d8d;

  font-size: .9em;
}


/* ---------- Form Cards ---------- */

.form-card {

  max-width: 450px;

  margin: 40px auto;

  padding: 30px 36px;

  background: white;

  border: 1px solid #dde7f2;

  border-radius: 12px;

  box-shadow:
    0 2px 10px rgba(0,0,0,.08);
}


/* ---------- Form Layout ---------- */

.form-group {

  margin-bottom: 22px;
}

.form-group:last-child {

  margin-bottom: 0;
}

label {

  display: block;

  margin-bottom: 8px;

  font-weight: 600;

  color: #3d4d5d;
}

input,
select,
textarea {

  width: 100%;

  box-sizing: border-box;

  padding: 12px 14px;

  margin: 0;

  font-size: 15px;

  border: 1px solid #c8d7e8;

  border-radius: 8px;
}

button {

  margin-top: 8px;

  width: 100%;
}


/* ---------- Page Heading ---------- */

.page-heading {
  margin-bottom: 28px;

  text-align: center;
}

.page-heading h2 {
  margin-bottom: 8px;
}


/* ---------- Venue Grid ---------- */

.venue-grid {
  display: grid;

  grid-template-columns:
    repeat(auto-fill, minmax(400px, 420px));

  gap: 28px;

  justify-content: center;

  width: 100%;

  margin: 32px auto 0 auto;
}

.venue-card {
  position: relative;

  display: flex;

  flex-direction: column;

  width: 100%;
  max-width: 420px;

  min-height: 620px;

  overflow: hidden;

  background: white;

  border: 1px solid #dde7f2;

  border-radius: 12px;

  box-shadow:
    0 2px 8px rgba(0,0,0,.07);

  transition:
    transform .15s ease,
    box-shadow .15s ease;
}

.venue-card:hover {
  transform: scale(1.03);

  box-shadow:
    0 6px 18px rgba(0,0,0,.12);
}

.venue-image-wrap {
  position: relative;

  display: flex;

  justify-content: center;

  align-items: center;

  width: 100%;

  background: #edf4fb;
}

.venue-image {
  display: block;

  width: 400px;
  height: 400px;

  max-width: 100%;

  object-fit: contain;

  background: #edf4fb;
}

.venue-card-body {
  flex: 1;

  padding: 20px;
}

.venue-card-footer {
  display: flex;

  justify-content: flex-end;

  padding: 0 16px 16px 16px;
}

.venue-address {
  min-height: 44px;

  color: #3d4d5d;

  line-height: 1.4;
}


/* ---------- Seating Chart Editor ---------- */

.editor-shell {
  display: grid;

  grid-template-columns: 220px minmax(0, 1fr);

  gap: 24px;

  height: clamp(620px, calc(100vh - 260px), 820px);

  margin-top: 30px;
}

.editor-toolbox {
  min-height: 0;

  padding: 18px;

  overflow-y: auto;
  overflow-x: hidden;

  background: #f8fbff;

  border: 1px solid #dde7f2;

  border-radius: 12px;

  box-shadow:
    0 2px 8px rgba(0,0,0,.05);
}

.editor-toolbox h3 {
  margin-top: 0;

  color: #285a8e;
}

.tool-button {
  width: 100%;

  margin: 0 0 12px 0;

  background: white;

  color: #285a8e;

  border: 1px solid #b8d9f5;

  text-align: left;
}

.tool-button:hover {
  background: #e8f3ff;
}

.tool-button.active {
  background: #4d95df;

  color: white;

  border-color: #4d95df;
}

.editor-main {
  min-width: 0;
  min-height: 0;

  display: flex;
  flex-direction: column;

  background: white;

  border: 1px solid #dde7f2;

  border-radius: 12px;

  box-shadow:
    0 2px 8px rgba(0,0,0,.05);

  overflow: hidden;
}

.editor-canvas {
  position: relative;

  flex: 1;
  min-height: 0;

  background:
    linear-gradient(#eef5fd 1px, transparent 1px),
    linear-gradient(90deg, #eef5fd 1px, transparent 1px);

  background-size: 24px 24px;
}

.editor-canvas-viewport {
  flex: 1;
  min-height: 0;

  margin: 20px;

  overflow: auto;

  border: 1px solid #c8d7e8;
  border-radius: 10px;

  background: #f8fbff;
}

.editor-canvas-world {
  position: relative;

  flex: none;

  width: var(--world-width);
  height: var(--world-height);

  background:
    linear-gradient(#eef5fd 1px, transparent 1px),
    linear-gradient(90deg, #eef5fd 1px, transparent 1px);

  background-size: 24px 24px;
}

.editor-toolbox .form-group {
  margin-bottom: 14px;
}

.editor-toolbox label {
  margin-bottom: 5px;

  font-size: .88em;
}

.editor-toolbox input,
.editor-toolbox select {
  padding: 8px 10px;

  font-size: 14px;
}

.editor-toolbox .tool-button {
  padding: 9px 12px;

  font-size: 14px;
}

@media (max-width: 850px) {
  .editor-shell {
    grid-template-columns: 190px minmax(0, 1fr);

    gap: 14px;

    height: calc(100vh - 220px);
  }

  .editor-canvas {
    margin: 12px;
  }
}

.stage-label {
  position: absolute;

  top: var(--stage-top);
  left: 50%;

  width: var(--stage-width);

  box-sizing: border-box;

  margin: 0;
  padding: 12px 20px;

  transform: translateX(-50%);

  text-align: center;

  color: #285a8e;

  background: #dcecff;

  border: 1px solid #b8d9f5;

  border-radius: 8px;

  font-weight: 600;
}

.canvas-placeholder {
  position: absolute;

  top: 50%;
  left: 50%;

  transform: translate(-50%, -50%);

  color: #8aa0b6;

  font-size: 1.1em;

  font-weight: 500;
}

.editor-top-bar {
  display: flex;

  align-items: center;
  justify-content: flex-end;

  gap: 10px;

  padding: 8px 12px;

  background: #f8fbff;

  border-bottom: 1px solid #dde7f2;
}

.editor-top-bar button:disabled {
  opacity: .45;

  cursor: default;
}

.editor-top-bar .compact-button {
  padding: 7px 14px;

  font-size: 14px;
}

.editor-top-bar .small-button {
  width: 30px;
  height: 30px;

  padding: 0;
}

/*.editor-top-bar .zoom-label {
  min-width: 46px;

  font-size: 14px;
}

.zoom-controls {
  display: flex;

  align-items: center;

  gap: 8px;

  margin-right: auto;
}

.small-button {
  width: 36px;
  height: 36px;

  padding: 0;
  margin: 0;

  border-radius: 8px;
}
*/
.zoom-label {
  min-width: 54px;

  text-align: center;

  color: #3d4d5d;

  font-weight: 600;
}

.compact-button {
  width: auto;

  margin: 0;

  padding: 9px 18px;
}


.editor-help {
  padding: 12px 14px;
  margin-bottom: 18px;

  color: #53677b;

  background: #eef6ff;

  border: 1px solid #cbdff2;
  border-radius: 9px;

  font-size: 13px;
  line-height: 1.55;
}

.properties-heading {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 10px;

  margin-bottom: 14px;
}

.properties-heading h3 {
  margin: 0;
}

.delete-selected-row-button {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  width: 28px;
  height: 28px;

  margin: 0;
  padding: 0;

  color: #8b2f2f;

  background: #fdeaea;

  border: 1px solid #efb8b8;
  border-radius: 50%;

  font-size: 20px;
  line-height: 1;
}

.delete-selected-row-button:hover {
  color: #742525;

  background: #f9d2d2;
}


/* ---------- Seats ---------- */

.seat {
  position: absolute;

  width: 30px;
  height: 30px;

  transform: translate(-50%, -50%);

  margin: 0;
  padding: 0;

  border-radius: 8px;

  border: 1px solid #2f73c9;

  background: #e8f3ff;

  color: #285a8e;

  font-size: 12px;

  font-weight: 700;

  cursor: grab;

  box-shadow:
    0 2px 5px rgba(0,0,0,.12);

  user-select: none;

  touch-action: none;
}

.seat:hover {
  background: #d8ebff;
}

.seat.dragging {
  cursor: grabbing;

  z-index: 20;

  transform:
    translate(-50%, -50%)
    scale(1.08);

  box-shadow:
    0 6px 15px rgba(0,0,0,.22);
}

.seat.disabled {
  background: #edf0f3;

  color: #8a98a8;

  border-color: #c4ccd6;

  opacity: .75;
}

.seat.invalid {
  color: #8b2f2f;

  background: #fdeaea;

  border-color: #d9534f;

  box-shadow:
    0 2px 5px
    rgba(139, 47, 47, .18);
}


.seat.invalid:hover {
  color: #742525;

  background: #f9d2d2;

  border-color: #c64541;
}


/* ---------- Row Editor ---------- */

.row-properties {
  margin-top: 28px;

  padding-top: 22px;

  border-top: 1px solid #dde7f2;
}

.row-properties h3 {
  margin-top: 0;

  color: #285a8e;
}

.seat-row {
  position: absolute;

  transform-origin: 0 0;

  height: 30px;

  cursor: grab;
}

.seat-row.selected .seat {
  border-color: #1d5aa6;

  box-shadow:
    0 0 0 3px rgba(99,163,231,.25),
    0 2px 5px rgba(0,0,0,.12);
}

.seat-row.preview .seat {
  opacity: .75;
}

.row-seat {
  position: absolute;

  transform: translate(-50%, -50%);
}

.drag-count-bubble {
  position: absolute;

  z-index: 50;

  padding: 7px 11px;

  background: #285a8e;

  color: white;

  border-radius: 999px;

  font-size: .9em;

  font-weight: 700;

  pointer-events: none;

  box-shadow:
    0 2px 8px rgba(0,0,0,.2);
}

.disabled-glyph {
  display: block;

  margin-top: -3px;

  font-size: 10px;

  line-height: 10px;
}

.rotate-handle {
  position: absolute;

  top: -20px;
  right: -20px;

  width: 14px;
  height: 14px;

  padding: 0;
  margin: 0;

  border-radius: 50%;

  background: #4d95df;

  border: 2px solid white;

  box-shadow:
    0 1px 5px rgba(0,0,0,.25);

  cursor: grab;
}

.rotate-handle:hover {
  background: #285a8e;
}


/* ---------- Venue Seating Charts ---------- */

.venue-seating-charts {
  margin-top: 18px;
  padding-top: 16px;

  border-top: 1px solid #e2ebf4;
}

.venue-seating-charts h4 {
  margin: 0 0 10px 0;

  color: #356ea8;

  font-size: 1em;
}

.chart-list {
  margin: 0 0 14px 0;
  padding: 0;

  list-style: none;
}

.chart-list-item {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 12px;

  margin: 0 0 8px 0;
  padding: 8px 10px;

  background: #f8fbff;

  border: 1px solid #e2ebf4;

  border-radius: 8px;
}

.chart-name {
  min-width: 0;

  overflow: hidden;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.chart-actions {
  display: flex;

  align-items: center;

  gap: 6px;
}

.inline-icon-link,
.inline-trash-button {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  width: 28px;
  height: 28px;

  margin: 0;
  padding: 0;

  border-radius: 50%;

  text-decoration: none;
}

.inline-icon-link {
  background: #e8f3ff;

  color: #285a8e;

  border: 1px solid #b8d9f5;
}

.inline-icon-link:hover {
  background: #d8ebff;

  text-decoration: none;
}

.inline-trash-button {
  background: #fdeaea;

  color: #8b2f2f;

  border: 1px solid #efb8b8;
}

.inline-trash-button:hover {
  background: #f9d2d2;
}

.add-chart-button {
  width: auto;

  margin: 0;

  padding: 8px 13px;

  background: #e8f3ff;

  color: #285a8e;

  border: 1px solid #b8d9f5;

  font-size: 14px;
}

.add-chart-button:hover {
  background: #d8ebff;
}


/* ---------- Shows ---------- */
/*
.show-grid {
  display: flex;

  flex-direction: column;

  gap: 22px;

  max-width: 1050px;

  margin: 30px auto 0 auto;
}

.show-card {
  display: flex;

  align-items: stretch;

  overflow: hidden;

  background: white;

  border: 1px solid #dde7f2;
  border-radius: 12px;

  box-shadow:
    0 2px 8px rgba(0,0,0,.07);
}*/
/*
.show-poster-wrap {
  position: relative;

  flex: 0 0 auto;

  min-width: 120px;

  background: #edf4fb;
}

.show-poster-canvas {
  display: block;

  height: 260px;
  width: auto;
}

.show-card-body {
  flex: 1;

  min-width: 0;

  padding: 22px 26px;
}*/
/*
@media (max-width: 700px) {
  .show-card {
    flex-direction: column;
  }

  .show-poster-wrap {
    display: flex;

    justify-content: center;
  }

  .show-poster-canvas {
    max-width: 100%;
    height: auto;
  }
}

.show-poster-wrap {
  position: relative;

  background: #edf4fb;
}

.show-poster-canvas {
  display: block;

  width: 100%;
  height: auto;
}

.show-card-body {
  padding: 20px;
}

.show-card-body h3 {
  margin-top: 0;

  color: #285a8e;
}

.show-card-body h4 {
  margin-bottom: 8px;

  color: #356ea8;
}

.show-metadata {
  display: flex;

  flex-wrap: wrap;

  gap: 8px;

  margin-bottom: 14px;
}

.show-metadata span {
  padding: 4px 8px;

  color: #53677b;

  background: #eef6ff;

  border: 1px solid #d6e6f5;
  border-radius: 999px;

  font-size: 13px;
}*/


/* ---------- Poster Crop Editor ---------- */

.poster-editor-dialog {
  width: min(580px, 94vw);
}

.poster-crop-editor {
  text-align: center;
}

.poster-editor-workspace {
  position: relative;

  width: min(420px, 100%);
  height: 520px;

  margin: 0 auto 14px auto;

  overflow: hidden;

  background:
    linear-gradient(
      45deg,
      #e7edf3 25%,
      transparent 25%
    ),
    linear-gradient(
      -45deg,
      #e7edf3 25%,
      transparent 25%
    ),
    linear-gradient(
      45deg,
      transparent 75%,
      #e7edf3 75%
    ),
    linear-gradient(
      -45deg,
      transparent 75%,
      #e7edf3 75%
    );

  background-size: 20px 20px;

  background-position:
    0 0,
    0 10px,
    10px -10px,
    -10px 0;

  border: 1px solid #c8d7e8;
  border-radius: 10px;

  user-select: none;
  touch-action: none;
}

.poster-editor-image {
  position: absolute;

  max-width: none;

  cursor: grab;

  user-select: none;
  touch-action: none;
}

.poster-editor-image:active {
  cursor: grabbing;
}

.poster-crop-window {
  position: absolute;

  inset: 0;

  pointer-events: none;
}

.poster-crop-outline {
  position: absolute;

  box-sizing: border-box;

  border: 2px solid white;

  box-shadow:
    0 0 0 1px rgba(34, 56, 78, .85),
    0 0 16px rgba(0,0,0,.2);

  pointer-events: none;
}

.poster-crop-window {
  position: absolute;

  inset: 0;

  pointer-events: none;
}

.poster-crop-outline {
  position: absolute;

  box-sizing: border-box;

  border: 2px solid white;

  box-shadow:
    0 0 0 1px rgba(34, 56, 78, .9),
    0 0 16px rgba(0,0,0,.24);

  cursor: move;

  pointer-events: auto;
  touch-action: none;
}

.poster-crop-handle {
  position: absolute;

  width: 18px;
  height: 18px;

  margin: 0;
  padding: 0;

  background: #4d95df;

  border: 2px solid white;
  border-radius: 50%;

  box-shadow:
    0 1px 5px rgba(0,0,0,.3);

  pointer-events: auto;
  touch-action: none;
}

.poster-crop-handle:hover {
  background: #285a8e;
}

.poster-crop-handle-nw {
  top: -9px;
  left: -9px;

  cursor: nwse-resize;
}

.poster-crop-handle-ne {
  top: -9px;
  right: -9px;

  cursor: nesw-resize;
}

.poster-crop-handle-sw {
  bottom: -9px;
  left: -9px;

  cursor: nesw-resize;
}

.poster-crop-handle-se {
  right: -9px;
  bottom: -9px;

  cursor: nwse-resize;
}

.poster-crop-shade {
  position: absolute;

  background: rgba(22, 31, 41, .48);

  pointer-events: none;
}

.poster-aspect-ratio-label {
  position: absolute;

  right: -2px;
  bottom: 24px;

  min-width: 52px;

  padding: 5px 8px;

  color: white;

  background: rgba(40, 90, 142, .94);

  border-radius: 999px;

  font-size: 12px;
  font-weight: 700;

  white-space: nowrap;

  pointer-events: none;

  box-shadow:
    0 2px 7px rgba(0,0,0,.22);
}

.poster-zoom-input {
  margin-bottom: 18px;
}


/* ---------- Application Shell and Sidebar ---------- */

.app-shell {
  display: grid;

  grid-template-columns:
    210px
    minmax(0, 1fr);

  align-items: start;

  gap: 26px;

  width: min(
    calc(100% - 40px),
    1720px
  );

  margin: 28px auto 50px auto;
}


.app-sidebar {
  position: sticky;

  top: 24px;

  padding: 16px 12px;

  background: white;

  border: 1px solid #d7e3ef;

  border-radius: 12px;

  box-shadow:
    0 2px 10px
    rgba(0, 0, 0, .07);
}


.sidebar-navigation {
  display: flex;

  flex-direction: column;

  gap: 4px;

  margin: 0;
}


.sidebar-link {
  display: block;

  margin: 0;

  padding: 11px 14px;

  color: #40566d;

  border: 1px solid transparent;

  border-radius: 8px;

  text-decoration: none;

  font-size: 15px;
  font-weight: 550;

  transition:
    background .12s,
    border-color .12s,
    color .12s,
    transform .12s;
}


.sidebar-link:hover {
  color: #285a8e;

  background: #edf6ff;

  border-color: #d5e8f8;

  transform: translateX(2px);
}


.sidebar-link-active {
  color: #285a8e;

  background: #dfeeff;

  border-color: #bdd9f1;

  box-shadow:
    inset 3px 0 0 #5ba4e6;
}


.sidebar-divider {
  height: 1px;

  margin: 9px 8px;

  background: #dce7f1;
}


.app-content {
  min-width: 0;

  max-width: none;

  margin: 0;

  padding: 30px;

  background: white;

  border-radius: 12px;

  box-shadow:
    0 2px 10px
    rgba(0, 0, 0, .08);
}


.logged-out-shell {
  width: min(
    calc(100% - 40px),
    1400px
  );

  margin: 40px auto;
}


.logged-out-content {
  max-width: 1400px;

  margin: 0;

  padding: 30px;

  background: white;

  border-radius: 12px;

  box-shadow:
    0 2px 10px
    rgba(0, 0, 0, .08);
}


/* ---------- Incomplete Pages ---------- */

.incomplete-card {
  display: flex;

  align-items: center;
  justify-content: center;

  min-height: 280px;

  margin-top: 28px;

  background: #f7fbff;

  border: 1px solid #dbe7f2;

  border-radius: 12px;

  box-shadow:
    0 2px 8px
    rgba(0, 0, 0, .05);
}


.incomplete-card p {
  margin: 0;

  color: #8a9aab;

  font-size: 22px;
  font-weight: 500;

  letter-spacing: .3px;
}


/* ---------- Notepad ---------- */

.notepad-card {
  display: flex;

  flex-direction: column;

/*  width: min(900px, 100%);*/
  width: calc(100% - 100px);
  
  max-width: 1300px;

  min-height: 560px;

  margin: 28px auto 0 auto;

  padding: 22px;

  box-sizing: border-box;

  background: white;

  border: 1px solid #dde7f2;

  border-radius: 12px;

  box-shadow:
    0 2px 8px
    rgba(0, 0, 0, .07);
}


.notepad-textarea {
  flex: 1;

  width: 100%;
  min-height: 490px;

  padding: 18px;

  box-sizing: border-box;

  resize: vertical;

  color: #2b3642;
  background: #fbfdff;

  border: 1px solid #c8d7e8;

  border-radius: 9px;

  outline: none;

  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;

  font-size: 16px;
  line-height: 1.55;

  transition:
    border-color .15s,
    box-shadow .15s;
}


.notepad-textarea:focus {
  border-color: #76addd;

  box-shadow:
    0 0 0 3px
    rgba(91, 164, 230, .14);
}


.notepad-save-status {
  min-height: 18px;

  margin: 8px 4px 0 4px;

  color: #7d8b99;

  text-align: right;

  font-size: 12px;

  opacity: 0;

  transition: opacity .2s;
}


.notepad-save-status-saving,
.notepad-save-status-saved,
.notepad-save-status-error {
  opacity: 1;
}


.notepad-save-status-saved {
  color: #4f8060;
}


.notepad-save-status-error {
  color: #a34b49;
}


/* ---------- Responsive Application Shell ---------- */

@media (max-width: 900px) {
  .app-shell {
    display: block;

    width: min(
      calc(100% - 24px),
      1400px
    );

    margin-top: 16px;
  }


  .app-sidebar {
    position: static;

    margin-bottom: 16px;

    padding: 10px;
  }


  .sidebar-navigation {
    flex-direction: row;

    flex-wrap: wrap;

    gap: 5px;
  }


  .sidebar-link {
    padding: 8px 11px;
  }


  .sidebar-link:hover {
    transform: none;
  }


  .sidebar-link-active {
    box-shadow:
      inset 0 -3px 0 #5ba4e6;
  }


  .sidebar-divider {
    width: 1px;
    height: 30px;

    margin: 2px 5px;

    align-self: center;
  }


  .app-content {
    padding: 22px;
  }
}


@media (max-width: 560px) {
  .app-header {
    padding: 20px 14px;
  }


  .app-header h1 {
    font-size: 1.7em;
  }


  .sidebar-divider {
    display: none;
  }


  .app-content,
  .logged-out-content {
    padding: 16px;
  }


  .notepad-card {
    min-height: 480px;

    padding: 14px;
  }


  .notepad-textarea {
    min-height: 420px;
  }
}


/* ---------- Showings ---------- */

.showing-list {
  margin-top: 26px;

  overflow: hidden;

  border: 1px solid #d8e4ef;
  border-radius: 10px;

  box-shadow:
    0 2px 8px
    rgba(0, 0, 0, .05);
}


.showing-row {
  display: grid;

  grid-template-columns:
    minmax(150px, .75fr)
    minmax(280px, 2fr)
    minmax(100px, .55fr)
    118px;

  align-items: center;

  gap: 22px;

  min-height: 76px;

  padding: 10px 16px;

  box-sizing: border-box;

  background: #ffffff;

  border-bottom:
    1px solid #e0e9f2;
}


.showing-row:nth-child(even) {
  background: #f5f9fd;
}


.showing-row:last-of-type {
  border-bottom: none;
}


.showing-date-block,
.showing-primary-block {
  display: flex;

  flex-direction: column;

  gap: 3px;

  min-width: 0;
}


.showing-date-block strong,
.showing-primary-block strong {
  color: #2f5f91;

  font-size: 15px;
}


.showing-date-block span,
.showing-primary-block span {
  color: #40566d;

  font-size: 14px;
}


.showing-date-block small,
.showing-primary-block small {
  overflow: hidden;

  color: #748597;

  font-size: 12px;

  text-overflow: ellipsis;
  white-space: nowrap;
}


.showing-status-block {
  text-align: center;
}


.showing-status {
  display: inline-block;

  padding: 5px 9px;

  border-radius: 999px;

  font-size: 12px;
  font-weight: 650;
}


.showing-status-draft {
  color: #647383;
  background: #edf1f5;

  border: 1px solid #d5dde5;
}


.showing-status-on_sale {
  color: #356b49;
  background: #e8f5ed;

  border: 1px solid #c6e3d1;
}


.showing-actions {
  display: flex;

  justify-content: flex-end;
  align-items: center;

  gap: 8px;
}

.showing-actions
.inline-icon-button,
.showing-actions
.inline-trash-button {
  flex: 0 0 28px;

  margin: 0;

  box-sizing: border-box;

  line-height: 1;
}


.showing-actions
a.inline-icon-button,
.showing-actions
a.inline-icon-button:visited,
.showing-actions
a.inline-icon-button:hover,
.showing-actions
a.inline-icon-button:active {
  text-decoration: none;
}


.showing-dialog {
  width: min(680px, 94vw);

  max-height: 94vh;

  overflow-y: auto;
}


.showing-form-grid {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 0 18px;
}


.showing-seating-fieldset {
  margin: 8px 0 18px 0;

  padding: 14px 16px 4px 16px;

  border: 1px solid #d4e1ed;
  border-radius: 9px;
}


.showing-seating-fieldset legend {
  padding: 0 7px;

  color: #40566d;

  font-weight: 650;
}


.showing-reserved-options {
  display: flex;

  flex-wrap: wrap;

  gap: 10px 24px;

  margin-bottom: 12px;
}


.radio-row {
  display: flex;

  align-items: center;

  gap: 7px;
}


.radio-row input {
  width: auto;
  margin: 0;
}


.showing-field-message {
  color: #9a5650;
}


@media (max-width: 760px) {
  .showing-row {
    grid-template-columns:
      minmax(120px, .8fr)
      minmax(180px, 1.5fr)
      auto;

    gap: 14px;
  }


  .showing-status-block {
    display: none;
  }


  .showing-form-grid {
    grid-template-columns: 1fr;
  }
}


@media (max-width: 520px) {
  .showing-row {
    grid-template-columns:
      1fr
      auto;
  }


  .showing-date-block {
    display: none;
  }
}




/* ---------- Page Action Bar ---------- */

.page-action-bar {
  display: flex;
  align-items: center;
  justify-content: flex-start;

  gap: 24px;

  min-height: 44px;

  margin: 0 0 22px 0;
}


.page-action-bar button {
  width: auto;
  margin: 0;
}


.page-filter-control {
  display: flex;

  align-items: center;

  gap: 9px;
}


.page-filter-control label {
  margin: 0;

  color: #5e7185;

  font-size: 14px;
  font-weight: 600;

  white-space: nowrap;
}


.page-filter-control select {
  width: auto;
  min-width: 190px;

  margin: 0;

  padding: 8px 34px 8px 10px;

  font-size: 14px;
}


.filtered-empty-message {
  margin: 34px 0;

  color: #78899a;

  text-align: center;
}


@media (max-width: 620px) {
  .page-action-bar {
    align-items: flex-start;
    flex-direction: column;

    gap: 12px;
  }


  .page-filter-control {
    width: 100%;
  }


  .page-filter-control select {
    flex: 1;

    min-width: 0;
  }
}


/* ---------- Dashboard Calendar ---------- */

.dashboard-calendar-card {
  overflow: hidden;

  background: white;

  border: 1px solid #d6e3ef;
  border-radius: 12px;

  box-shadow:
    0 2px 9px
    rgba(0, 0, 0, .07);
}


.calendar-toolbar {
  display: grid;

  grid-template-columns:
    minmax(220px, 1fr)
    auto
    minmax(220px, 1fr);

  align-items: center;

  gap: 18px;

  padding: 16px 18px;

  background: #f5f9fd;

  border-bottom:
    1px solid #d8e4ef;
}


.calendar-navigation {
  display: flex;

  align-items: center;

  gap: 8px;
}


.calendar-toolbar-spacer {
  min-width: 220px;
}


.calendar-month-title {
  margin: 0;

  color: #315f8e;

  text-align: center;

  font-size: 1.5rem;
  font-weight: 650;
}


.calendar-arrow-button {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  width: 38px;
  min-width: 38px;
  height: 36px;

  margin: 0;
  padding: 0;

  color: #315f8e;
  background: white;

  border: 1px solid #bdd2e6;
  border-radius: 7px;

  font-size: 25px;
  line-height: 1;
}


.calendar-arrow-button:hover {
  color: white;
  background: #5b93c5;
}


.calendar-today-button {
  width: auto;
  min-width: 74px;

  margin: 0;
  padding: 8px 13px;
}


.calendar-weekday-row {
  display: grid;

  grid-template-columns:
    repeat(7, minmax(0, 1fr));

  background: #eaf2f9;

  border-bottom:
    1px solid #cad9e7;
}


.calendar-weekday-row div {
  padding: 9px 8px;

  color: #5c7185;

  text-align: center;

  font-size: 12px;
  font-weight: 700;

  letter-spacing: .04em;
  text-transform: uppercase;

  border-right:
    1px solid #d5e1ec;
}


.calendar-weekday-row div:last-child {
  border-right: none;
}


.calendar-grid {
  display: grid;

  grid-template-columns:
    repeat(7, minmax(0, 1fr));
}


.calendar-day {
  min-width: 0;
  min-height: 116px;

  padding: 7px;

  box-sizing: border-box;

  background: white;

  border-right:
    1px solid #dfe8f0;

  border-bottom:
    1px solid #dfe8f0;
}


.calendar-day:nth-child(7n) {
  border-right: none;
}


.calendar-day:nth-last-child(-n + 7) {
  border-bottom: none;
}


.calendar-day-outside-month {
  background: #f7f9fb;
}


.calendar-day-today {
  background: #edf6ff;

  box-shadow:
    inset 0 0 0 2px
    #78aedd;
}


.calendar-day-number {
  margin-bottom: 5px;

  color: #4b6074;

  text-align: right;

  font-size: 12px;
  font-weight: 650;
}


.calendar-day-outside-month
.calendar-day-number {
  color: #a7b3be;
}


.calendar-day-showings {
  display: flex;

  flex-direction: column;

  gap: 4px;

  min-width: 0;
}


.calendar-showing {
  display: flex;

  align-items: baseline;
  justify-content: space-between;

  gap: 7px;

  min-width: 0;

  padding: 5px 7px;

  color: white;
  background: var(--showing-color);

  border-radius: 5px;

  box-shadow:
    0 1px 2px
    rgba(0, 0, 0, .15);

  font-size: 11px;
  line-height: 1.15;
}


.calendar-showing-title {
  min-width: 0;

  overflow: hidden;

  font-weight: 700;

  text-overflow: ellipsis;
  white-space: nowrap;
}


.calendar-showing-time {
  flex-shrink: 0;

  font-size: 10px;
  font-weight: 500;

  white-space: nowrap;
}


@media (max-width: 980px) {
  .calendar-toolbar {
    grid-template-columns:
      1fr
      auto;
  }


  .calendar-month-title {
    grid-column: 1 / -1;
    grid-row: 1;

    margin-bottom: 4px;
  }


  .calendar-navigation {
    grid-column: 1 / -1;
    grid-row: 2;

    justify-content: center;
  }


  .calendar-toolbar-spacer {
    display: none;
  }


  .calendar-day {
    min-height: 98px;

    padding: 5px;
  }


  .calendar-showing {
    display: block;
  }


  .calendar-showing-time {
    display: block;

    margin-top: 2px;
  }
}


@media (max-width: 680px) {
  .dashboard-calendar-card {
    overflow-x: auto;
  }


  .calendar-toolbar,
  .calendar-weekday-row,
  .calendar-grid {
    min-width: 760px;
  }
}
/* ---------- Settings ---------- */

.settings-grid {
  display: grid;

  grid-template-columns:
    minmax(320px, .8fr)
    minmax(460px, 1.4fr);

  align-items: start;

  gap: 28px;
}


.settings-card {
  padding: 24px;

  background: white;

  border: 1px solid #dde7f2;
  border-radius: 12px;

  box-shadow:
    0 2px 8px
    rgba(0, 0, 0, .06);
}


.settings-card h2 {
  margin: 0 0 18px 0;

  color: #285a8e;
}


.settings-card-heading {
  display: flex;

  align-items: flex-start;
  justify-content: space-between;

  gap: 20px;

  margin-bottom: 18px;
}


.settings-card-heading h2 {
  margin-bottom: 6px;
}


.settings-card-heading p {
  margin: 0;
}


.settings-invite-link {
  flex-shrink: 0;

  padding: 9px 13px;

  color: #285a8e;
  background: #e8f3ff;

  border: 1px solid #b8d9f5;
  border-radius: 8px;

  text-decoration: none;

  font-size: 14px;
  font-weight: 600;
}


.settings-invite-link:hover {
  color: #285a8e;
  background: #d8ebff;

  text-decoration: none;
}


.settings-user-list {
  overflow: hidden;

  border: 1px solid #dce6ef;
  border-radius: 9px;
}


.settings-user-row {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 18px;

  min-height: 66px;

  padding: 12px 14px;

  background: white;

  border-bottom: 1px solid #e3ebf2;
}


.settings-user-row:nth-child(even) {
  background: #f7faff;
}


.settings-user-row:last-of-type {
  border-bottom: none;
}


.settings-user-inactive {
  opacity: .65;
}


.settings-user-identity {
  min-width: 0;
}


.settings-user-identity strong {
  display: block;

  overflow: hidden;

  color: #354a5f;

  text-overflow: ellipsis;
  white-space: nowrap;
}


.settings-user-meta {
  display: flex;

  flex-wrap: wrap;

  gap: 6px;

  margin-top: 6px;
}


.settings-user-meta span {
  padding: 3px 7px;

  color: #607387;
  background: #eef4fa;

  border: 1px solid #dce6ef;
  border-radius: 999px;

  font-size: 11px;
}


.settings-status-active {
  color: #356b49 !important;
  background: #e8f5ed !important;

  border-color: #c6e3d1 !important;
}


.settings-status-inactive {
  color: #8b5552 !important;
  background: #f8eaea !important;

  border-color: #e8c8c6 !important;
}


.settings-deactivate-button {
  width: auto;

  margin: 0;
  padding: 8px 12px;

  font-size: 13px;
}


.account-form-links,
.account-form-link {
  margin-top: 24px;
}


.account-form-links p,
.account-form-link {
  margin-bottom: 8px;
}


@media (max-width: 980px) {
  .settings-grid {
    grid-template-columns: 1fr;
  }
}


@media (max-width: 560px) {
  .settings-card-heading,
  .settings-user-row {
    align-items: stretch;
    flex-direction: column;
  }


  .settings-invite-link,
  .settings-deactivate-button {
    align-self: flex-start;
  }
}


/* ---------- Tickets ---------- */

.ticket-section {
  margin-top: 30px;
}


.ticket-section h3 {
  margin-bottom: 12px;

  color: #315f8e;
}


.ticket-list {
  overflow: hidden;

  border: 1px solid #d8e4ef;
  border-radius: 10px;

  box-shadow:
    0 2px 8px
    rgba(0, 0, 0, .05);
}


.ticket-row {
  display: flex;

  align-items: center;

  gap: 16px;

  min-height: 62px;

  padding: 10px 14px;

  background: white;

  border-bottom:
    1px solid #e0e9f2;
}


.ticket-row:nth-child(even) {
  background: #f5f9fd;
}


.ticket-row:last-child {
  border-bottom: none;
}


.ticket-color-dot {
  display: inline-block;

  width: 12px;
  height: 12px;

  flex: 0 0 auto;

  border-radius: 50%;
/*
  box-shadow:
    0 0 0 1px
    rgba(0, 0, 0, .15);*/
}


.ticket-row-main {
  display: flex;

  flex-direction: column;

  gap: 3px;

  min-width: 180px;
}


.ticket-row-main strong {
  color: #315f8e;
}


.ticket-row-main span {
  color: #526779;

  font-size: 13px;
}


.ticket-row-flags {
  display: flex;

  flex: 1;

  flex-wrap: wrap;

  gap: 6px;
}


.ticket-pill {
  padding: 4px 8px;

  color: #607487;
  background: #edf3f8;

  border: 1px solid #d7e2eb;
  border-radius: 999px;

  font-size: 12px;
}


.ticket-row-actions {
  display: flex;

  gap: 7px;

  margin-left: auto;
}


.ticket-color-picker {
  display: flex;

  flex-wrap: wrap;

  gap: 10px;
}


.ticket-color-choice {
  margin: 0;
}


.ticket-color-choice input {
  position: absolute;

  opacity: 0;

  pointer-events: none;
}


.ticket-color-choice span {
  display: block;

  width: 26px;
  height: 26px;

  background:
    var(--ticket-color);

  border: 3px solid white;
  border-radius: 50%;

  box-shadow:
    0 0 0 1px #b9c9d8;

  cursor: pointer;
}


.ticket-color-choice
input:checked + span {
  box-shadow:
    0 0 0 3px #285a8e;
}


.ticket-scheme-option-summary {
  display: flex;

  flex: 1;

  flex-wrap: wrap;

  gap: 10px;
}


.ticket-scheme-option {
  display: inline-flex;

  align-items: center;

  gap: 5px;

  color: #53677b;

  font-size: 12px;
}


.ticket-scheme-dialog {
  width: min(
    600px,
    92vw
  );
}


.ticket-option-selection {
  margin: 18px 0;
}


.ticket-option-selection-row {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    110px;

  align-items: center;

  gap: 15px;

  padding: 5px 8px;

  border-bottom:
    1px solid #edf2f6;
}


.ticket-option-selection-row
.checkbox-row {
  margin: 5px 0;
}


/* ---------- Ticket Scheme Seat Editor ---------- */

.ticket-map-editor-shell {
  display: grid;

  grid-template-columns:
    220px minmax(0, 1fr);

  gap: 24px;

  height:
    clamp(
      620px,
      calc(100vh - 230px),
      820px
    );
}


.ticket-map-toolbox {
  min-height: 0;

  padding: 18px;

  overflow-y: auto;

  background: #f8fbff;

  border: 1px solid #dde7f2;
  border-radius: 12px;

  box-shadow:
    0 2px 8px
    rgba(0, 0, 0, .05);
}


.ticket-map-toolbox h3 {
  margin-top: 0;

  color: #285a8e;
}


.ticket-map-toolbox h4 {
  margin:
    20px 0 9px 0;

  color: #53677b;
}


.ticket-map-editor-main {
  display: flex;

  flex-direction: column;

  min-width: 0;
  min-height: 0;

  overflow: hidden;

  background: white;

  border: 1px solid #dde7f2;
  border-radius: 12px;

  box-shadow:
    0 2px 8px
    rgba(0, 0, 0, .05);
}


.ticket-map-row {
  cursor: default;
}


.ticket-map-seat {
  cursor: pointer;
}


.ticket-map-seat.invalid {
  cursor: not-allowed;
}


.ticket-map-seat.disabled {
  cursor: pointer;
}


.ticket-seat-label {
  position: absolute;

  top: 4px;
  left: 50%;

  transform:
    translateX(-50%);

  line-height: 1;
}


.ticket-seat-dots {
  position: absolute;

  left: 4px;
  right: 4px;
  bottom: 3px;

  display: flex;

  flex-wrap: wrap;

  justify-content: center;

  gap: 2px;

  pointer-events: none;
}


.ticket-seat-dot {
  width: 5px;
  height: 5px;

  flex: 0 0 auto;

  border-radius: 50%;

/*  box-shadow:
    0 0 0 .5px
    rgba(0, 0, 0, .2);*/
}


.ticket-map-legend {
  display: flex;

  flex-direction: column;

  gap: 6px;
}


.ticket-map-legend-row {
  display: flex;

  align-items: center;

  gap: 7px;

  color: #53677b;

  font-size: 13px;
}


.ticket-seat-option-row {
  display: grid;

  grid-template-columns:
    auto auto minmax(0, 1fr);

  align-items: center;

  gap: 9px;

  margin: 0;
  padding: 10px 6px;

  border-bottom:
    1px solid #e7eef5;
}


.ticket-seat-option-row input {
  width: auto;

  margin: 0;
}


.ticket-seat-dialog {
  width:
    min(
      440px,
      90vw
    );
}


@media (max-width: 850px) {
  .ticket-map-editor-shell {
    grid-template-columns:
      190px minmax(0, 1fr);

    gap: 14px;
  }
}


.ticket-map-seat:active {
  transform: translate(-50%, -50%);
}


/* ---------- Extras ---------- */

.extra-grid {
  display: grid;

  grid-template-columns:
    repeat(
      auto-fit,
      minmax(360px, 425px)
    );

  justify-content: center;

  gap: 22px;

  margin-top: 22px;
}


.extra-card {
  display: flex;

  flex-direction: column;

  min-width: 0;

  overflow: hidden;

  background: #f4f9fd;

  border: 1px solid #d3e1ee;
  border-radius: 12px;

  box-shadow:
    0 2px 8px
    rgba(0, 0, 0, .07);
}


.extra-image-viewer {
  display: flex;

  align-items: center;
  justify-content: center;

  height: 330px;

  padding: 18px;

  box-sizing: border-box;

  overflow: hidden;

  background: #edf4fb;

  border-bottom:
    1px solid #d8e4ef;
}


.extra-image-viewer img {
  display: block;

  max-width: 100%;
  max-height: 100%;

  width: auto;
  height: auto;

  object-fit: contain;
}


.extra-image-placeholder {
  display: flex;

  align-items: center;
  justify-content: center;

  width: 100%;
  height: 100%;

  color: #8a9aaa;

  border: 1px dashed #bfd0df;
  border-radius: 8px;

  font-size: 14px;
}


.extra-card-body {
  flex: 1;

  padding: 16px;
}


.extra-title-row {
  display: flex;

  align-items: flex-start;
  justify-content: space-between;

  gap: 12px;
}


.extra-title-row h3 {
  margin:
    0 0 3px 0;

  color: #315f8e;
}


.extra-title-row
.inline-icon-button {
  flex: 0 0 auto;

  margin: 0;

  color: inherit;
  text-decoration: none;
}

a.inline-icon-button,
a.inline-icon-button:visited,
a.inline-icon-button:hover,
a.inline-icon-button:active {
  text-decoration: none !important;
}

.extra-price {
  color: #2b3642;

  font-size: 17px;
  font-weight: 650;
}


.extra-flags {
  display: flex;

  flex-wrap: wrap;

  gap: 7px;

  margin-top: 14px;
}


.extra-pill {
  padding: 4px 8px;

  color: #607487;
  background: #e8f1f8;

  border: 1px solid #d1dfeb;
  border-radius: 999px;

  font-size: 12px;
}


.extra-card-footer {
  display: flex;

  justify-content: flex-end;

  padding:
    0 16px 16px 16px;
}


@media (max-width: 520px) {
  .extra-grid {
    grid-template-columns:
      1fr;
  }


  .extra-image-viewer {
    height: 280px;
  }
}


/* ---------- Orders ---------- */

.order-filter-bar {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;

  gap: 12px 16px;

  margin: 0 0 10px 0;
}


.order-filter-control {
  display: flex;

  flex-direction: column;

  gap: 5px;
}


.order-filter-control label {
  margin: 0;

  color: #5e7185;

  font-size: 13px;
  font-weight: 600;
}


.order-filter-control select,
.order-filter-control input {
  width: auto;
  min-width: 150px;

  margin: 0;

  padding: 8px 34px 8px 10px;

  font-size: 14px;
}


/* Compact closed dropdowns; full option text remains available. */
.order-filter-control select {
  width: 170px;
  min-width: 0;
  max-width: 170px;
}


.order-customer-filter input {
  min-width: 220px;

  padding-right: 10px;
}


.order-search-button {
  width: auto;

  margin: 0;
  padding: 8px 14px;
}


.order-clear-filters {
  align-self: center;

  margin-left: 2px;

  color: #5c7894;

  font-size: 13px;
}


.order-ledger-summary {
  margin-top: 16px;

  color: #748597;

  font-size: 13px;
}


.order-list {
  margin-top: 12px;

  overflow: hidden;

  border: 1px solid #d8e4ef;
  border-radius: 10px;

  box-shadow:
    0 2px 8px
    rgba(0, 0, 0, .05);
}


.order-row {
  display: grid;

  grid-template-columns:
    minmax(170px, .9fr)
    minmax(220px, 1.25fr)
    minmax(250px, 1.45fr)
    minmax(125px, .65fr)
    72px;

  align-items: center;

  gap: 22px;

  min-height: 82px;

  padding: 10px 16px;

  box-sizing: border-box;

  background: #ffffff;

  border-bottom:
    1px solid #e0e9f2;
}


.order-row:nth-child(even) {
  background: #f5f9fd;
}


.order-row:last-child {
  border-bottom: none;
}


.order-id-block,
.order-customer-block,
.order-showing-block,
.order-summary-block {
  display: flex;

  flex-direction: column;

  gap: 3px;

  min-width: 0;
}


.order-id-block strong,
.order-customer-block strong,
.order-showing-block strong,
.order-summary-block strong {
  overflow: hidden;

  color: #2f5f91;

  font-size: 15px;

  text-overflow: ellipsis;
  white-space: nowrap;
}


.order-id-block span,
.order-customer-block span,
.order-showing-block span,
.order-summary-block span {
  overflow: hidden;

  color: #40566d;

  font-size: 14px;

  text-overflow: ellipsis;
  white-space: nowrap;
}


.order-id-block small,
.order-customer-block small,
.order-showing-block small,
.order-summary-block small {
  overflow: hidden;

  color: #748597;

  font-size: 12px;

  text-overflow: ellipsis;
  white-space: nowrap;
}


.order-status {
  align-self: flex-start;

  display: inline-block;

  padding: 5px 9px;

  border-radius: 999px;

  font-size: 12px;
  font-weight: 650;

  white-space: nowrap;
}


.order-status-paid {
  color: #356b49;
  background: #e8f5ed;

  border: 1px solid #c6e3d1;
}


.order-status-pending,
.order-status-payment_pending {
  color: #75632f;
  background: #fbf5df;

  border: 1px solid #e9ddb1;
}


.order-status-cancelled,
.order-status-failed {
  color: #85504c;
  background: #f9eaea;

  border: 1px solid #ebc8c5;
}


.order-actions {
  display: flex;

  justify-content: flex-end;
}


.order-view-button {
  display: inline-block;

  padding: 7px 12px;

  color: #315f8e;
  background: #edf5fc;

  border: 1px solid #c5dbee;
  border-radius: 7px;

  font-size: 13px;
  font-weight: 600;

  text-decoration: none;
}


.order-view-button:visited {
  color: #315f8e;
}


.order-view-button:hover {
  color: white;
  background: #5b93c5;

  text-decoration: none;
}


.order-pagination {
  display: grid;

  grid-template-columns:
    1fr
    auto
    1fr;

  align-items: center;

  margin-top: 22px;
}


.order-pagination-side {
  justify-self: start;

  min-width: 90px;
}


.order-pagination-side-right {
  justify-self: end;

  text-align: right;
}


.order-pagination-position {
  color: #60758a;

  font-size: 14px;
}


.order-pagination a {
  color: #315f8e;

  font-size: 14px;
  font-weight: 600;

  text-decoration: none;
}


.order-pagination a:hover {
  text-decoration: underline;
}


.order-history-items {
  grid-column: 1 / -1;

  display: flex;
  flex-direction: column;

  gap: 5px;

  margin-top: 3px;
  padding-top: 10px;

  border-top: 1px solid #e4edf5;
}


.order-history-item {
  color: #536b82;

  font-size: 13px;
  line-height: 1.45;
}


.order-adjustment-radio {
  display: flex;
  align-items: center;
  gap: 9px;

  margin-top: 12px;

  color: #40566d;
  font-size: 14px;
}

.order-adjustment-radio input {
  width: auto;
  margin: 0;
  flex: 0 0 auto;
}

.order-adjustment-form-card select,
.order-adjustment-layout select {
  width: 100%;
  padding: 9px 10px;

  color: #40566d;
  background: #fff;

  border: 1px solid #cbd9e5;
  border-radius: 6px;

  font-size: 14px;
}

.order-adjustment-layout form {
  min-width: 0;
}

.order-adjustment-layout form > .order-adjustment-label {
  display: block;
  margin-bottom: 7px;
}

.order-adjustment-layout form > select {
  display: block;
}


.order-adjustment-cancel-button {
  margin-top: 12px;

  padding: 8px 13px;

  border: 1px solid #e5b5b5;
  border-radius: 6px;

  background: #fff4f4;
  color: #9a3434;

  font-size: 13px;
  cursor: pointer;
}

.order-adjustment-cancel-button:hover {
  background: #ffe8e8;
}



/* ---------------------------------------------------------
   D4 — Ledger and historical adjustment presentation
   --------------------------------------------------------- */

.order-history-type {
  display: block;

  margin-top: 2px;

  color: #71869b;
  font-size: 12px;
  font-weight: 500;
}

.order-history-proposed {
  margin-bottom: 5px;

  color: #936b29;
  font-size: 12px;
  font-weight: 650;
}

.order-adjustment-pending-label {
  display: inline-block;
  align-self: flex-start;

  padding: 5px 9px;

  border: 1px solid #e9ddb1;
  border-radius: 999px;

  background: #fbf5df;
  color: #75632f;

  font-size: 12px;
  font-weight: 600;

  white-space: nowrap;
}

.order-detail-title-row {
  flex-wrap: wrap;
}

.order-history-amount strong {
  overflow-wrap: anywhere;
}


/* ---------------------------------------------------------
   Adjustment confirmation summaries
   --------------------------------------------------------- */

.order-confirmation-changes {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #e2ebf3;

  color: #40566d;
  font-size: 14px;
}

.order-confirmation-changes h4 {
  margin: 0 0 10px;

  color: #2e6196;
  font-size: 14px;
}

.order-confirmation-item {
  margin-top: 6px;
  line-height: 1.5;
}

.order-confirmation-reason {
  margin-top: 14px;

  color: #536b83;
  font-size: 13px;
  line-height: 1.5;
}

.order-confirmation-reason strong {
  display: block;
  margin-bottom: 4px;
}



/* ---------------------------------------------------------
   D3 manager order actions
   --------------------------------------------------------- */

.order-d3-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;

  margin-bottom: 16px;
}

.order-d3-action {
  display: inline-flex;
  align-items: center;

  padding: 9px 14px;

  color: #2e6196;
  background: #edf5ff;

  border: 1px solid #c9dff5;
  border-radius: 7px;

  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.order-d3-action:hover {
  background: #dcecff;
}

.order-action-separator {
  margin: 0 3px;
  color: #93a5b6;
}

.order-history-reason {
  margin-top: 10px;
  padding-top: 9px;

  border-top: 1px solid #e2ebf3;

  color: #536b83;
  font-size: 13px;
  line-height: 1.5;
}

/* ---------------------------------------------------------
   D3 adjustment forms
   --------------------------------------------------------- */

.order-adjustment-layout textarea,
.order-adjustment-layout input[type="number"] {
  display: block;
  width: 100%;
  box-sizing: border-box;

  padding: 10px 12px;

  color: #40566d;
  background: #fff;

  border: 1px solid #cbd9e5;
  border-radius: 7px;

  font: inherit;
  font-size: 14px;
}

.order-adjustment-layout textarea {
  min-height: 100px;
  resize: vertical;
}

.order-adjustment-layout input[type="number"] {
  max-width: 240px;
}

.order-adjustment-layout .order-adjustment-label {
  display: block;
  margin-top: 15px;
  margin-bottom: 7px;

  color: #40566d;
  font-size: 14px;
  font-weight: 600;
}

.order-adjustment-layout .order-adjustment-actions {
  margin-top: 22px;
}



/* ---------- Order Detail ---------- */

.order-detail-header {
  margin-bottom: 20px;
}


.order-back-link {
  display: inline-block;

  margin-bottom: 12px;

  color: #5b7895;

  font-size: 13px;

  text-decoration: none;
}


.order-back-link:hover {
  text-decoration: underline;
}


.order-detail-title-row {
  display: flex;

  align-items: center;

  gap: 14px;
}


.order-detail-title-row h2 {
  margin: 0;

  color: #315f8e;
}


.order-detail-grid {
  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 18px;

  margin-bottom: 18px;
}


.order-detail-card {
  padding: 18px 20px;

  background: white;

  border: 1px solid #d8e4ef;
  border-radius: 10px;

  box-shadow:
    0 2px 8px
    rgba(0, 0, 0, .05);
}


.order-detail-card h3 {
  margin:
    0
    0
    16px
    0;

  color: #315f8e;

  font-size: 17px;
}


.order-detail-wide-card {
  margin-bottom: 18px;
}


.order-detail-list {
  margin: 0;
}


.order-detail-list div {
  display: grid;

  grid-template-columns:
    minmax(90px, .7fr)
    minmax(0, 1.3fr);

  gap: 12px;

  padding: 7px 0;

  border-bottom:
    1px solid #edf2f6;
}


.order-detail-list div:last-child {
  border-bottom: none;
}


.order-detail-list dt {
  color: #748597;

  font-size: 13px;
  font-weight: 600;
}


.order-detail-list dd {
  min-width: 0;

  margin: 0;

  color: #40566d;

  font-size: 14px;

  overflow-wrap: anywhere;
}


.order-detail-table-wrap {
  overflow-x: auto;
}


.order-detail-table {
  width: 100%;

  border-collapse: collapse;
}


.order-detail-table th {
  padding: 9px 10px;

  color: #61778d;
  background: #f2f7fb;

  border-bottom:
    1px solid #d8e4ef;

  text-align: left;

  font-size: 12px;
  font-weight: 700;
}


.order-detail-table td {
  padding: 10px;

  color: #40566d;

  border-bottom:
    1px solid #e7eef4;

  font-size: 14px;
}


.order-detail-table tbody tr:last-child td {
  border-bottom: none;
}


.order-total-summary {
  width: min(320px, 100%);

  margin:
    18px
    0
    0
    auto;
}


.order-total-summary div {
  display: flex;

  justify-content: space-between;

  gap: 20px;

  padding: 5px 0;

  color: #536b82;

  font-size: 14px;
}


.order-grand-total {
  margin-top: 4px;

  padding-top: 9px !important;

  border-top:
    1px solid #d5e1ec;

  color: #315f8e !important;

  font-size: 16px !important;
}


.order-record-list {
  border: 1px solid #e0e9f2;
  border-radius: 8px;

  overflow: hidden;
}


.order-record-row {
  display: grid;

  grid-template-columns:
    minmax(180px, 1fr)
    minmax(110px, .55fr)
    minmax(100px, .45fr)
    minmax(260px, 1.4fr);

  align-items: center;

  gap: 18px;

  padding: 12px 14px;

  background: white;

  border-bottom:
    1px solid #e6edf3;
}


.order-record-row:nth-child(even) {
  background: #f7fafc;
}


.order-record-row:last-child {
  border-bottom: none;
}


.order-record-row > div {
  min-width: 0;
}


.order-record-row > div:first-child {
  display: flex;

  flex-direction: column;

  gap: 3px;
}


.order-record-row > div:first-child strong {
  color: #315f8e;
}


.order-record-row > div:first-child span {
  color: #748597;

  font-size: 12px;
}


.order-record-amount {
  color: #40566d;
}


.order-provider-reference {
  display: flex;

  flex-direction: column;

  gap: 3px;

  min-width: 0;
}


.order-provider-reference small,
.order-refund-reason small {
  color: #748597;

  font-size: 11px;
  font-weight: 600;
}


.order-provider-reference span,
.order-refund-reason span {
  overflow: hidden;

  color: #536b82;

  font-family: monospace;
  font-size: 12px;

  text-overflow: ellipsis;
  white-space: nowrap;
}


.order-refund-reason {
  grid-column: 1 / -1;

  display: flex;

  flex-direction: column;

  gap: 3px;
}


.payment-record-status {
  display: inline-block;

  padding: 4px 8px;

  border-radius: 999px;

  font-size: 12px;
  font-weight: 650;
}


.payment-record-status-succeeded {
  color: #356b49;
  background: #e8f5ed;

  border: 1px solid #c6e3d1;
}


.payment-record-status-pending {
  color: #75632f;
  background: #fbf5df;

  border: 1px solid #e9ddb1;
}


.payment-record-status-declined,
.payment-record-status-failed,
.payment-record-status-cancelled {
  color: #85504c;
  background: #f9eaea;

  border: 1px solid #ebc8c5;
}


.order-detail-empty {
  margin: 0;

  color: #78899a;

  font-size: 14px;
}


.order-adjustment-note {
  margin-top: 0.35rem;
  color: #5d7185;
  font-size: 0.9rem;
}

.order-history-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.order-history-entry {
  display: grid;
  grid-template-columns:
    minmax(150px, 1.2fr)
    minmax(180px, 1.5fr)
    minmax(120px, 0.8fr)
    minmax(100px, 0.7fr);

  gap: 1rem;
  align-items: center;

  padding: 0.85rem 1rem;

  border: 1px solid #d8e4ef;
  border-radius: 6px;

  background: #ffffff;
}

.order-history-entry:nth-child(even) {
  background: #f5f9fd;
}

.order-history-entry > div {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.order-history-entry span,
.order-history-entry small {
  color: #40566d;
}

.order-history-amount {
  text-align: right;
  align-items: flex-end;
}

.order-item-action {
  color: #315f8e;

  font-size: 13px;
  font-weight: 650;

  text-decoration: none;
}


.order-item-action:hover {
  text-decoration: underline;
}


.order-adjustment-layout {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    minmax(0, 1fr);

  gap: 18px;
}


.order-adjustment-label {
  display: block;

  margin-bottom: 7px;

  color: #61778d;

  font-size: 13px;
  font-weight: 650;
}


.order-adjustment-form-card select {
  width: 100%;

  padding: 9px 10px;

  color: #40566d;
  background: white;

  border:
    1px solid #cbd9e5;
  border-radius: 6px;

  font-size: 14px;
}


.order-adjustment-explanation {
  margin:
    14px
    0
    18px;

  color: #6b7f92;

  font-size: 13px;
  line-height: 1.45;
}


.order-adjustment-actions {
  display: flex;

  align-items: center;

  justify-content: flex-end;

  gap: 10px;
}


@media (
  max-width: 800px
) {
  .order-adjustment-layout {
    grid-template-columns: 1fr;
  }
}


@media (max-width: 1100px) {
  .order-row {
    grid-template-columns:
      minmax(150px, .8fr)
      minmax(210px, 1.2fr)
      minmax(230px, 1.3fr)
      minmax(110px, .6fr)
      68px;

    gap: 14px;
  }


  .order-detail-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }


  .order-record-row {
    grid-template-columns:
      minmax(160px, 1fr)
      minmax(100px, .6fr)
      minmax(90px, .5fr);

    gap: 12px;
  }


  .order-provider-reference {
    grid-column: 1 / -1;
  }
}


@media (max-width: 760px) {
  .order-filter-bar {
    align-items: stretch;
  }


  .order-filter-control {
    flex:
      1
      1
      180px;
  }


  .order-filter-control select,
  .order-filter-control input {
    width: 100%;

    box-sizing: border-box;
  }


  .order-row {
    grid-template-columns:
      1fr
      auto;

    gap: 10px 18px;
  }


  .order-customer-block,
  .order-showing-block {
    grid-column: 1;
  }


  .order-summary-block {
    grid-column: 2;

    grid-row: 1 / span 2;
  }


  .order-actions {
    grid-column: 2;
  }


  .order-detail-grid {
    grid-template-columns:
      1fr;
  }


  .order-record-row {
    grid-template-columns:
      1fr
      auto;
  }


  .order-record-amount {
    text-align: right;
  }


  .order-provider-reference,
  .order-refund-reason {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {

  .order-history-entry {
    grid-template-columns: 1fr;
  }

  .order-history-amount {
    text-align: left;
    align-items: flex-start;
  }

}



/* =========================================================
   Employees
   ========================================================= */

.employee-toolbar {
  display: flex;
  align-items: center;
  margin-bottom: 22px;
}

.employee-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.employee-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #d9e5f0;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(30, 60, 90, .06);
}

.employee-image-wrap {
  display: flex;
  justify-content: center;
  padding: 18px 12px 10px;
  background: #eef5fc;
}

.employee-image-wrap img {
  width: 150px;
  height: 225px;
  max-width: 100%;
  object-fit: cover;
  border-radius: 5px;
}

.employee-card-body {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 14px 16px 45px;
  color: #40566d;
  font-size: 13px;
}

.employee-card-body strong {
  color: #2e6196;
  font-size: 16px;
}

.employee-edit,
.employee-trash {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 50%;
  cursor: pointer;
}

.employee-edit {
  top: 12px;
  right: 12px;
  color: #2e6196;
  background: #fff;
  border: 1px solid #d4e4f3;
}

.employee-trash {
  bottom: 12px;
  right: 12px;
  color: #a04444;
  background: #fff0f0;
  border: 1px solid #f1cccc;
}

.employee-edit:hover {
  background: #e2f0ff;
}

.employee-trash:hover {
  background: #ffe0e0;
}

.employee-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 22px;
}


/* =========================================================
   Shifts calendar
   ========================================================= */

.shift-page {
  width: 100%;
  min-width: 0;
}

.shift-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.shift-add {
  width: 43px;
  height: 43px;
  padding: 0;
  font-size: 27px;
  font-weight: 400;
  line-height: 1;
}

.shift-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  min-width: 35px;
  padding: 0 9px;
  border: 1px solid #d4e3f1;
  border-radius: 6px;
  background: #f1f7fd;
  color: #2e6196;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.shift-nav:hover {
  background: #dfedfa;
}

.shift-selection {
  flex: 1;
  min-width: 0;
  padding: 0 12px;
  color: #40566d;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shift-view-switch {
  display: flex;
  gap: 4px;
  padding: 3px;
  border: 1px solid #d7e4f0;
  border-radius: 7px;
  background: #f0f5fa;
}

.shift-view-switch button {
  padding: 7px 11px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #62788e;
  font-size: 12px;
  cursor: pointer;
}

.shift-view-switch button.selected {
  background: #fff;
  color: #2e6196;
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .08);
}

.shift-scroll {
  overflow-x: auto;
  border: 1px solid #d9e5f0;
  border-radius: 9px;
}

.shift-grid {
  display: grid;
  grid-template-columns:
    180px repeat(7, minmax(105px, 1fr));
  min-width: 950px;
}

.shift-corner,
.shift-day-header {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 54px;
  box-sizing: border-box;
  border-bottom: 1px solid #d9e5f0;
  border-right: 1px solid #d9e5f0;
  background: #edf4fa;
  color: #536d86;
  font-size: 12px;
}

.shift-corner {
  align-items: flex-start;
  padding-left: 15px;
  font-weight: 700;
}

.shift-day-header strong {
  color: #2e6196;
  font-size: 13px;
}

.shift-day-header span {
  margin-top: 3px;
}

.shift-employee {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  height: 50px;
  box-sizing: border-box;
  padding: 5px 10px;
  border-right: 1px solid #d9e5f0;
  border-bottom: 1px solid #e5edf5;
  background: #f7fafd;
  color: #40566d;
  font-size: 12px;
  font-weight: 600;
}

.shift-employee img {
  width: 30px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 4px;
  object-fit: cover;
}

.shift-employee span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shift-day-cell {
  position: relative;
  height: 50px;
  min-width: 0;
  box-sizing: border-box;
  border-right: 1px solid #e1eaf3;
  border-bottom: 1px solid #e5edf5;
  background: #fff;
}

.shift-day-cell:nth-child(odd) {
  background: #fbfdff;
}

.shift-block {
  position: absolute;
  top: 0;
  height: 100%;
  box-sizing: border-box;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: var(--shift-color, #638d70);
  cursor: pointer;
  opacity: .9;
  min-width: 2px;
}

.shift-block:hover {
  opacity: 1;
  filter: brightness(.88);
}

.shift-block.selected {
  opacity: 1;
  filter: brightness(.9);
  outline: 2px solid #225b91;
  outline-offset: -2px;
  z-index: 2;
}

.shift-hour-mode .shift-block {
  border-radius: 0;
}

.shift-empty {
  padding: 20px;
  color: #71869b;
}

.shift-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 22px;
}

.shift-delete-form {
  display: block;
  margin-top: 35px;
  padding-top: 20px;
  border-top: 1px solid #ead5d5;
  text-align: left;
}

.shift-delete-form[hidden] {
  display: none;
}

.shift-delete-form button {
  background: #fff0f0;
  border: 1px solid #e7bcbc;
  color: #a04444;
}

@media (max-width: 1150px) {
  .employee-grid {
    grid-template-columns:
      repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .employee-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .shift-toolbar {
    flex-wrap: wrap;
  }

  .shift-selection {
    flex-basis: 100%;
    order: 2;
  }

  .shift-view-switch {
    margin-left: auto;
  }
}

.shift-nav-disabled {
  opacity: .35;
  cursor: default;
}


/* ---------------------------------------------------------
   Shift calendar — 24-hour view
   --------------------------------------------------------- */


/* Hour view retains precise horizontal positioning,
   but does not draw hourly grid lines. */

.shift-day-cell.shift-hour-mode {
  background-image: none;
}

.shift-day-cell.shift-hour-mode::before {
  content: none;
}


/* Keep shift blocks above the hour boundaries. */
.shift-day-cell.shift-hour-mode .shift-block {
  z-index: 1;
}

.shift-day-cell.shift-hour-mode .shift-block.selected {
  z-index: 2;
}


/* Past shifts ledger */

.past-shifts-section {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid #dbe3eb;
}

.past-shifts-heading h2 {
  margin: 0 0 6px;
  font-size: 21px;
}

.past-shifts-heading p {
  margin: 0 0 18px;
  font-size: 13px;
  color: #66778a;
}

.past-shifts-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
  margin-bottom: 18px;
}

.past-shifts-filters label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
}

.past-shifts-filters input[type="date"] {
  width: 165px;
  min-width: 0;
}

.past-shifts-table-scroll {
  overflow-x: auto;
}

.past-shifts-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.past-shifts-table th {
  padding: 11px 12px;
  text-align: left;
  background: #f1f5f9;
  color: #4b5d70;
  font-weight: 600;
  white-space: nowrap;
}

.past-shifts-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #e5eaf0;
  vertical-align: middle;
}

.past-shifts-table tbody tr:hover {
  background: #f8fafc;
}

.past-shift-muted {
  color: #8793a1;
  font-size: 11px;
}

.past-shift-completion-form {
  margin: 0;
}

.past-shift-completion-form select {
  width: 115px;
  min-width: 0;
  padding: 5px 8px;
  font-size: 12px;
}

.past-shifts-empty {
  padding: 24px !important;
  text-align: center;
  color: #778697;
}


/* ---------------------------------------------------------
   Shift toolbar — prevent day/hour labels wrapping
   --------------------------------------------------------- */

.shift-view-switch {
  flex-shrink: 0;
  min-width: 155px;
  justify-content: center;
}

.shift-view-switch button {
  white-space: nowrap;
  min-width: 65px;
}

/* ---------------------------------------------------------
   Shift modal — more space for native datetime controls
   --------------------------------------------------------- */

.shift-modal {
  width: min(650px, calc(100vw - 32px));
  max-width: 650px;
  box-sizing: border-box;
}

.shift-datetime-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-top: 14px;
}

.shift-datetime-fields > div {
  min-width: 0;
}

.shift-datetime-fields input {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 11px 16px;
}

/* ---------------------------------------------------------
   Shift modal — inline errors
   --------------------------------------------------------- */

.shift-form-error:not([hidden]) {
  display: block;
  margin: 12px 0 18px;
  padding: 12px 15px;
  border: 1px solid #e5aaaa;
  border-left: 4px solid #d9534f;
  border-radius: 7px;
  background: #fff0f0;
  color: #9e3333;
  font-size: 14px;
  font-weight: 600;
}

/* ---------------------------------------------------------
   Shift modal — softer Cancel button
   --------------------------------------------------------- */

.shift-modal .button-secondary,
#shiftDeleteDialog .button-secondary {
  background: #eaf4ff;
  color: #2e6196;
  border: 1px solid #bdd9f4;
}

.shift-modal .button-secondary:hover,
#shiftDeleteDialog .button-secondary:hover {
  background: #dcecff;
}

@media (max-width: 600px) {
  .shift-datetime-fields {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .shift-modal {
    width: calc(100vw - 24px);
  }
}



/* Statistics */

.stats-metrics {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  width: 100%;
  margin: 8px 0;
}

.stats-metrics label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-weight: 500;
}

.stats-summary {
  display: flex;
  gap: 16px;
  margin: 20px 0 28px;
}

.stats-summary > div {
  padding: 18px 24px;
  background: #edf5fd;
  border: 1px solid #d8e7f5;
  border-radius: 8px;
  min-width: 150px;
}

.stats-summary small {
  display: block;
  color: #60758a;
  margin-bottom: 8px;
}

.stats-summary strong {
  font-size: 24px;
  color: #285d91;
}

.stats-types {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin: 16px 0 28px;
}

.stats-table-wrap {
  overflow-x: auto;
  border: 1px solid #dbe6f0;
  border-radius: 8px;
  margin: 16px 0 32px;
}

.stats-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.stats-table th,
.stats-table td {
  padding: 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #e4edf5;
}

.stats-table th {
  background: #e7f1fb;
  color: #285d91;
}

.stats-table tbody tr:nth-child(even) {
  background: #f1f7fc;
}

.stats-table tbody tr:last-child td {
  border-bottom: none;
}

.stats-email {
  border-top: 1px solid #dbe6f0;
  padding-top: 20px;
  margin-top: 30px;
}

.stats-email form {
  max-width: 650px;
}

.stats-email textarea {
  display: block;
  box-sizing: border-box;
  width: 100%;
  padding: 12px;
  margin: 8px 0 14px;
  border: 1px solid #cbdcec;
  border-radius: 6px;
  font: inherit;
}

.stats-email button {
  background: #4b98e5;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 10px 20px;
  cursor: pointer;
}

.stats-message {
  color: #285d91;
  font-weight: 600;
}

.showing-lifecycle-label {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 5px;
  background: #e8edf2;
  color: #526477;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.showing-status-block {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.showing-actions form {
  margin: 0;
}

.showing-create-error:not([hidden]) {
  padding: 12px 14px;
  margin-bottom: 16px;
  border: 1px solid #e5a0a0;
  border-radius: 6px;
  background: #fff0f0;
  color: #a82020;
  font-size: 14px;
}


/* Historical venues */

.retired-venue-card {
  border-color: #dce2e9;
}

.retired-venue-card .venue-image {
  filter: saturate(.65);
}

.retired-venue-card h3 {
  color: #536477;
}

.retired-venue-label {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 999px;
  background: #edf1f5;
  color: #617184;
  font-size: 12px;
  font-weight: 600;
}


/* Employee lifecycle */

.employee-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.employee-toolbar label {
  font-size: 13px;
  font-weight: 600;
  color: #526579;
}

.employee-toolbar select {
  min-width: 165px;
}

.former-employee-card {
  border-color: #dce2e9;
}

.former-employee-card .employee-image-wrap img {
  filter: saturate(.65);
}

.former-employee-card .employee-card-body strong {
  color: #536477;
}

.former-employee-label {
  display: inline-block;
  color: #718092;
  font-size: 12px;
  font-weight: 600;
}

.employee-reactivate {
  font-size: 12px;
  padding: 6px 10px;
  border: 1px solid #cbd8e6;
  border-radius: 6px;
  background: #edf4fc;
  color: #285d91;
  cursor: pointer;
}

.employee-reactivate:hover {
  background: #dceafa;
}


/* ---------------------------------------------------------
   Email tickets modal
   --------------------------------------------------------- */

.order-d3-actions button.order-d3-action {
  width: auto;
  flex: 0 0 auto;
  font-family: inherit;
  cursor: pointer;
  margin-top: -1px;
}

.order-email-dialog {
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 28px;
  border: 1px solid #d5e2ef;
  border-radius: 14px;
  background: #fff;
  color: #243d57;
  box-shadow: 0 20px 65px rgba(20, 40, 65, .2);
}

.order-email-dialog::backdrop {
  background: rgba(24, 39, 59, .55);
}

.order-email-dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.order-email-dialog-header h2 {
  margin: 0;
  font-size: 23px;
  color: #2e6196;
}

.order-email-close {
  border: 0;
  background: transparent;
  color: #72849a;
  font-size: 30px;
  cursor: pointer;
}

.order-email-dialog > p {
  color: #63778c;
  line-height: 1.5;
}

.order-email-dialog form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 22px;
}

.order-email-dialog label {
  font-size: 14px;
  font-weight: 650;
}

.order-email-dialog textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #cbd8e5;
  border-radius: 8px;
  font: inherit;
  resize: vertical;
}

.order-email-hint {
  margin: 0;
  color: #74869a;
  font-size: 13px;
}

.order-email-ticket-summary {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 16px;
  margin-top: 6px;
  border-radius: 9px;
  background: #f0f5fa;
}

.order-email-ticket-summary span {
  color: #61758a;
  font-size: 14px;
}

.order-email-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

.order-email-dialog-actions button {
  padding: 11px 18px;
  border-radius: 8px;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.order-email-cancel {
  background: #fff;
  border: 1px solid #cbd8e5;
  color: #365b7d;
}

.order-email-send {
  background: #4d94df;
  border: 1px solid #4d94df;
  color: #fff;
}

.order-email-send:disabled {
  opacity: .6;
  cursor: wait;
}

/* ---------- Health reporting settings ---------- */

.health-settings-card {
  grid-column: 1 / -1;
}

.health-settings-card textarea,
.health-settings-card select {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 12px;
  border: 1px solid #c9d8e8;
  border-radius: 8px;
  background: white;
  color: #334b63;
  font: inherit;
}

.health-settings-card textarea {
  resize: vertical;
  min-height: 92px;
}

.health-section-options {
  border: 1px solid #dde7f2;
  border-radius: 10px;
  padding: 15px 18px;
  margin: 18px 0 22px;
}

.health-section-options legend {
  padding: 0 7px;
  color: #344c65;
}

.health-section-options .checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 12px 0;
  cursor: pointer;
}

.health-section-options input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 3px;
}

.health-section-options .checkbox-row span {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.health-section-options .checkbox-row small {
  color: #65788d;
  line-height: 1.4;
}

.health-current-status {
  margin-top: 22px;
  padding: 16px;
  border: 1px solid #cfe2d4;
  border-radius: 10px;
  background: #f5faf6;
}

.health-current-status > strong {
  color: #28633d;
}

.health-current-status p {
  margin: 8px 0;
}

.health-current-status form {
  margin-top: 14px;
}

.health-last-error {
  color: #b13c42;
  overflow-wrap: anywhere;
}

.health-disabled-note {
  margin-top: 15px;
}



/* Sold-out calendar performances */
.calendar-showing-sold-out { opacity: 0.82; }
.calendar-sold-out-label {
  display: inline-block;
  margin-left: 5px;
  font-size: 0.75em;
  font-weight: 700;
  white-space: nowrap;
}
