/* Lane UI2: the port's classes in the legacy look. Loaded after the legacy theme (content/bootstrap/css: Bootstrap 2.3.1,
   bootstrap-overrides, layout, elements, compiled/index, compiled/form-showcase), so the screens keep their markup hooks
   (ids, data- attributes the scripts and tests use) and look like legacy Bootstrap.Master pages:
     .grid      -> legacy "table table-striped table-hover" (bootstrap-overrides "TABLES")
     .btn-flat  -> legacy flat buttons (elements.css); bare <button>s in the content get the same look
     .notice / .saved / .errors / .status -> legacy .alert, .alert-success, .alert-error
     .panel / .search-panel / fieldsets -> legacy "field-box" boxes
     h1 (one per page) -> the legacy "row-fluid header" h3 title with the rule under it. */

/* ---------- layout additions (Bootstrap.Master) ---------- */
body {
  font-family: robotoCondensedLight, "Open Sans", Arial, sans-serif;
  color: #333;
}
.navbar-inverse .brand {
  padding: 5px 20px 0;
}
.navbar-inverse .brand img.brand-header {
  height: 45px;
}
.navbar-inverse .nav > li > form.navbar-logout {
  margin: 0;
}
.navbar-inverse .nav > li > form.navbar-logout button {
  display: block;
  box-sizing: content-box;
  padding: 26px 15px 28px;
  height: 20px;
  line-height: 20px;
  text-align: left;
  vertical-align: top;
  border: 0;
  border-left: 1px solid #101417;
  background: none;
  color: rgb(214, 214, 214);
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
}
.navbar-inverse .nav > li > form.navbar-logout button:hover {
  background: rgba(25, 31, 36, 0.6);
  color: #fff;
}
.navbar-inverse .nav > li > a {
  height: 40px;
}
.navbar-inverse .pop-dialog h4 {
  font-size: 14px;
  margin: 0 0 6px;
  color: #404951;
}
.navbar-inverse .pop-dialog .messages .item .msg ul {
  margin: 6px 0 0 25px;
}
.navbar-inverse .pop-dialog .messages .item .name i {
  margin-right: 8px;
  color: #7d91a8;
}
.navbar-inverse #shipment-menu .messages form {
  margin: 5px 25px 10px;
}
.navbar-inverse #shipment-menu input {
  width: 80px;
  margin: 0 5px 0 0;
}
#dashboard-menu ul.submenu a.active {
  font-weight: bold;
}
#dashboard-menu a i.icon-chevron-down {
  position: relative;
  float: right;
  left: auto;
  top: 5px;
  font-size: 11px;
  height: auto;
  width: auto;
}
#dashboard-menu > li > a {
  cursor: pointer;
}
/* legacy layout.css min-height (850px) kept: short pages keep the white panel down to the bottom of the window (UI2-polish) */
.content.wide-content {
  margin-left: 0;
  max-width: none;
  border: 0;
  box-shadow: none;
}
.layout-banner {
  margin: 0;
  border-radius: 0;
}
.layout-banner form.inline {
  display: inline;
  margin: 0 0 0 10px;
}
.layout-banner i {
  font-size: 18px;
  margin-right: 8px;
  position: relative;
  top: 2px;
}
.content {
  padding-top: 74px;
}
#pad-wrapper {
  margin-top: 0;
  padding-top: 30px;
  padding-bottom: 20px;
}
@media print {
  #sidebar-nav,
  .navbar {
    display: none;
  }
  .content {
    margin: 0;
    border: 0;
    padding-top: 0;
  }
  #pad-wrapper {
    padding-top: 0;
  }
}
@media (max-width: 767px) {
  #pad-wrapper {
    padding-top: 20px;
  }
}

/* ---------- page title: legacy <div class="row-fluid header"><h3>Title</h3></div> ---------- */
#pad-wrapper > h1,
#pad-wrapper > .page-header-row > h1,
#pad-wrapper > header > h1 {
  font-size: 24.5px;
  line-height: 40px;
  font-weight: normal;
  color: #29323d;
  margin: 0 0 10px;
}
#pad-wrapper > h1 {
  border-bottom: 1px solid #dee3ea;
  padding-bottom: 10px;
  margin-bottom: 25px;
}
#pad-wrapper h2 {
  font-size: 17.5px;
  line-height: 30px;
  font-weight: normal;
  color: #29323d;
  margin: 25px 0 10px;
}
#pad-wrapper h3 {
  font-size: 15px;
  line-height: 24px;
  font-weight: 600;
  color: #696d73;
  margin: 18px 0 8px;
}
#pad-wrapper h4 {
  font-size: 14px;
}
.row-fluid.header {
  border-bottom: 1px solid #dee3ea;
  padding-bottom: 10px;
  margin-bottom: 25px;
}
.row-fluid.header h1 {
  float: left;
  margin: 0;
  font-size: 24.5px;
  line-height: 40px;
}
.row-fluid.header .button-bar {
  margin-top: 5px;
}
#pad-wrapper p {
  font-size: 14px;
  line-height: 22px;
}
.muted,
.hint {
  color: #8e9aa6;
}
.hint {
  font-size: 12px;
  font-weight: normal;
}
a {
  color: #3d88ba;
}

/* ---------- tables: legacy .table .table-striped .table-hover ---------- */
.grid {
  width: 100%;
  max-width: 100%;
  margin-bottom: 20px;
  border-collapse: collapse;
  border-spacing: 0;
  background: #fff;
  border-top: 1px solid #dee3ea;
}
.grid th,
.grid td {
  padding: 8px;
  line-height: 20px;
  text-align: left;
  vertical-align: middle;
  border-top: 1px solid #edf2f7;
}
.grid td {
  color: #526273;
}
.grid thead th,
.grid > tr:first-child > th {
  font-weight: bold;
  text-transform: uppercase;
  font-size: 11px;
  color: #333;
  padding-top: 5px;
  padding-bottom: 12px;
  vertical-align: top;
  border-top: 0;
}
.grid tbody > tr:nth-child(odd) > td {
  background-color: #f9f9f9;
}
.grid tbody tr:hover > td {
  background-color: #f5fafc;
}
.grid.compact th,
.grid.compact td {
  padding: 4px 6px;
}
.grid tr.deleted td {
  color: #b1b1b1;
  text-decoration: line-through;
}
.grid td.num,
.grid th.num,
.num {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.grid td.center,
.grid th.center,
.center {
  text-align: center;
}
.grid td a {
  text-decoration: underline;
}
.grid td a.btn-flat {
  text-decoration: none;
}
.grid td form.inline,
td form.inline {
  display: inline;
  margin: 0;
}

/* ---------- buttons: legacy .btn-flat (elements.css) ---------- */
#pad-wrapper button:not([class]),
#pad-wrapper button.primary,
#pad-wrapper input[type="submit"]:not([class]),
a.button,
button.button {
  display: inline-block;
  margin: 0;
  line-height: 15px;
  vertical-align: middle;
  font-size: 12px;
  text-shadow: none;
  box-shadow: none;
  background: #4387bf;
  border: 1px solid rgb(56, 131, 192);
  color: #fff;
  font-weight: 500;
  border-radius: 4px;
  cursor: pointer;
  padding: 7px 14px;
  text-decoration: none;
  font-family: robotoRegular, Arial, sans-serif;
}
#pad-wrapper button:not([class]):hover,
a.button:hover {
  opacity: 0.87;
  color: #fff;
  text-decoration: none;
}
#pad-wrapper button:disabled,
.btn-flat:disabled,
.btn-flat[disabled] {
  opacity: 0.5;
  cursor: default;
}
button.danger:not(.btn-flat) {
  background: #b85e80;
  border: 1px solid #b85e80;
  color: #fff;
  border-radius: 4px;
  padding: 7px 14px;
  font-size: 12px;
  cursor: pointer;
}
.btn-flat {
  font-family: robotoRegular, Arial, sans-serif;
}
a.btn-flat,
button.btn-flat {
  margin-right: 6px;
}
.btn-flat.white {
  color: #626263;
}
/* link-style buttons (<ui-button kind="link">, e.g. Delete / Deactivate in a <confirm-form>) look exactly like the plain
   links next to them: same colour, underline only on hover, same baseline (Bootstrap 2 gives buttons vertical-align:
   middle and line-height: normal). UI2-polish. */
button.link,
button.link-dark {
  background: none;
  border: 0;
  color: #3d88ba;
  cursor: pointer;
  font: inherit;
  padding: 0;
  margin: 0;
  text-decoration: none;
  vertical-align: baseline;
  line-height: inherit;
  text-shadow: none;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
}
button.link:hover,
button.link:focus {
  color: #005580;
  text-decoration: underline;
}
button.link-dark:hover,
button.link-dark:focus {
  text-decoration: underline;
}
button.link-dark {
  color: #b85e80;
  padding-left: 8px;
}
.actions-bar,
.button-bar-row {
  display: flex;
  gap: 6px;
  align-items: center;
  margin: 0 0 20px;
  flex-wrap: wrap;
}
.actions-bar .btn-flat,
.button-bar-row .btn-flat {
  margin-right: 0;
}
.inline {
  display: inline;
  margin: 0;
}

/* ---------- messages: legacy .alert (bootstrap 2 + overrides) ---------- */
.notice,
.saved,
.errors,
.status,
.seats {
  padding: 8px 35px 8px 14px;
  margin-bottom: 20px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
  border: 1px solid #fbeed5;
  border-radius: 4px;
  background-color: #fcf8e3;
  color: #c09853;
}
.notice.ok,
.saved,
.status,
.seats {
  background-color: #dff0d8;
  border-color: #d6e9c6;
  color: #468847;
}
.errors,
.seats.over,
.notice.error {
  background-color: #f2dede;
  border-color: #eed3d7;
  color: #b94a48;
}
ul.errors,
ul.error {
  padding-left: 32px;
}
.notice.info {
  background-color: #d9edf7;
  border-color: #bce8f1;
  color: #3a87ad;
}
.error,
.validation-summary-errors,
span.field-validation-error {
  color: #b94a48;
}
p.notice,
p.saved,
p.status {
  line-height: 20px;
}

/* ---------- labels: legacy .label, .label-info ... ---------- */
#pad-wrapper .label {
  display: inline-block;
  padding: 2px 4px;
  font-size: 10.8px;
  line-height: 14px;
  color: #fff;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
  white-space: nowrap;
  vertical-align: baseline;
  background-color: #999;
  border-radius: 3px;
  font-weight: lighter;
  margin-right: 4px;
}
#pad-wrapper .label.info {
  background-color: rgb(104, 163, 213);
}
#pad-wrapper .label.ok,
#pad-wrapper .label.success {
  background-color: rgb(129, 189, 130);
}
#pad-wrapper .label.warn,
#pad-wrapper .label.warning {
  background-color: #f89406;
}
#pad-wrapper .label.danger,
#pad-wrapper .label.important {
  background-color: #b94a48;
}

/* ---------- forms and boxes ---------- */
#pad-wrapper input[type="text"],
#pad-wrapper input[type="email"],
#pad-wrapper input[type="password"],
#pad-wrapper input[type="number"],
#pad-wrapper input[type="url"],
#pad-wrapper input[type="search"],
#pad-wrapper input[type="tel"],
#pad-wrapper input[type="date"],
#pad-wrapper input[type="datetime-local"],
#pad-wrapper input[type="time"],
#pad-wrapper select,
#pad-wrapper textarea {
  height: auto;
  min-height: 30px;
  padding: 4px 6px;
  font-size: 13px;
  line-height: 20px;
  color: #555;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-bottom: 0;
  box-sizing: border-box;
  font-family: robotoRegular, Arial, sans-serif;
}
#pad-wrapper select {
  height: 30px;
  padding: 4px 6px;
}
#pad-wrapper select[multiple],
#pad-wrapper select[size] {
  height: auto;
}
#pad-wrapper input[type="checkbox"],
#pad-wrapper input[type="radio"] {
  margin: 0 4px 0 0;
  vertical-align: -1px;
}
#pad-wrapper label {
  font-size: 13px;
}
#pad-wrapper input[type="file"] {
  line-height: 20px;
}
.field {
  margin-bottom: 15px;
}
.field > label,
.field-box > label {
  display: block;
  font-weight: 600;
  font-size: 12px;
  color: #29323d;
  margin-bottom: 4px;
}
.field input[type="text"],
.field input[type="email"],
.field input[type="password"],
.field input[type="number"],
.field input[type="url"],
.field textarea,
.field select {
  width: 100%;
  max-width: 420px;
}
.check,
label.check {
  display: block;
  margin: 4px 0;
  font-weight: normal;
}
label.check input {
  margin-right: 6px;
}
.panel,
.search-panel,
.side,
.trail-group,
.tile,
.stat,
.pt-stat,
.home-card,
.menu-fields,
form.details fieldset,
.seat-tile {
  background: #fff;
  border: 1px solid #dee3ea;
  border-radius: 5px;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
}
.panel {
  padding: 15px 20px;
  margin-bottom: 25px;
}
.panel > h2:first-child,
.home-card > h2:first-child {
  margin-top: 0;
  font-size: 16px;
  line-height: 24px;
  color: #29323d;
  border-bottom: 1px solid #edf2f7;
  padding-bottom: 8px;
  margin-bottom: 12px;
}
fieldset {
  border: 1px solid #dee3ea;
  border-radius: 5px;
  padding: 8px 14px 12px;
  margin: 0 0 15px;
}
legend {
  width: auto;
  border: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 20px;
  margin: 0;
  padding: 0 6px;
  color: #29323d;
}
dl.facts dt {
  font-weight: 600;
  margin-top: 8px;
  color: #29323d;
}
dl.facts dd {
  margin: 0;
  color: #526273;
}
.secret {
  font-family: Menlo, Consolas, monospace;
  font-size: 15px;
  background: #fcf8e3;
  padding: 2px 6px;
  border: 1px solid #fbeed5;
  border-radius: 3px;
}
code {
  padding: 1px 3px;
}
pre,
.pre {
  font-family: Menlo, Consolas, monospace;
}

/* ---------- pagers: legacy .pagination ---------- */
.pager {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 8px 0 20px;
  padding: 0;
  text-align: left;
  align-items: center;
}
.pager a,
.pager span:not(.muted) {
  padding: 4px 12px;
  line-height: 20px;
  text-decoration: none;
  background-color: #fff;
  border: 1px solid #ddd;
  margin-left: -1px;
  border-radius: 0;
  color: #3d88ba;
}
.pager a:hover {
  background-color: #f5f5f5;
}
.pager a.active,
.pager span.active {
  background-color: #f5f5f5;
  color: #999;
  cursor: default;
}

/* ---------- tabs: legacy .nav-tabs ---------- */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 1px solid #ddd;
  margin: 8px 0 15px;
  padding: 0;
}
.tabs button,
.tabs a {
  margin-bottom: -1px;
  padding: 8px 12px;
  line-height: 20px;
  border: 1px solid transparent;
  border-radius: 4px 4px 0 0;
  background: none;
  color: #3d88ba;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  text-decoration: none;
}
.tabs button:hover,
.tabs a:hover {
  border-color: #eee #eee #ddd;
  background: #eee;
}
.tabs button.active,
.tabs a.active {
  color: #555;
  background-color: #fff;
  border: 1px solid #ddd;
  border-bottom-color: transparent;
  font-weight: normal;
}
.tabs button[hidden] {
  display: none;
}

/* ---------- empty states (lane UI1) in the legacy alert-info look ---------- */
.empty-state {
  background: #d9edf7;
  border: 1px solid #bce8f1;
  color: #3a87ad;
  border-radius: 4px;
  padding: 14px 20px;
  max-width: 760px;
  margin-bottom: 20px;
}
.empty-state h2 {
  font-size: 16px !important;
  margin: 0 0 8px !important;
  color: #3a87ad !important;
}
.empty-state p {
  margin: 6px 0;
}

/* ---------- stats / tiles: legacy #main-stats .stat ---------- */
.tiles,
.stats,
.pt-stats,
.seat-tiles {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0 0 25px;
  background: #fdfdfd;
  border: 1px solid #efeef3;
  border-radius: 5px;
}
.tiles .tile,
.stats .stat,
.pt-stats .pt-stat,
.seat-tiles .seat-tile {
  flex: 1 1 170px;
  border: 0;
  border-right: 1px solid #e8e9ee;
  border-radius: 0;
  box-shadow: 1px 0 0 0 #fff;
  padding: 18px 20px;
  background: none;
  min-width: 0;
}
.tiles .tile:last-child,
.stats .stat:last-child,
.pt-stats .pt-stat:last-child,
.seat-tiles .seat-tile:last-child {
  border-right: 0;
}
.tile .n,
.stat .number,
.pt-stat .number,
.seat-tile .number {
  color: #32a0ee;
  font-size: 25px;
  font-weight: 600;
  margin-right: 10px;
  line-height: 30px;
}
.tile .t,
.stat > span:not(.number),
.seat-tile .date {
  display: block;
  color: #29323a;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 12px;
}

/* ---------- sign-in pages (_LoginLayout: legacy Login.aspx / signin.css) ---------- */
.login-page .login-wrapper {
  width: 100%;
  left: 0;
}
.login-page .login-wrapper .logo {
  max-width: 90%;
}
.login-page .login h1 {
  text-transform: uppercase;
  margin: 0 0 30px;
  font-size: 18px;
  font-weight: 600;
  line-height: 20px;
  color: #29323d;
}
.login-page .login a {
  color: #4a576a;
  font-weight: bold;
}
.login-page .login-wrapper .box input[type="email"],
.login-page .login-wrapper .box input[type="text"],
.login-page .login-wrapper .box input[type="password"] {
  font-size: 15px;
  height: 40px;
  margin-bottom: 18px;
  border-color: #b2bfc7;
  padding-left: 12px;
  width: 100%;
  box-sizing: border-box;
}
.login-page .login-wrapper .box .remember label {
  margin-left: 0;
}
.login-page .login .btn-glow.login {
  text-transform: uppercase;
  font-size: 13px;
  padding: 8px 30px;
  margin-bottom: 15px;
}
.login-page .field {
  text-align: left;
  margin-bottom: 0;
}
.login-page .field label {
  font-size: 12px;
  font-weight: 600;
  color: #4a576a;
}
.login-page .login p {
  font-size: 13px;
}
.login-page .errors,
.login-page .saved,
.login-page .notice {
  text-align: left;
}

/* ---------- error pages (legacy Error404/Error500.aspx #notfound) ---------- */
#notfound {
  text-align: center;
  margin: 20px auto 0;
  max-width: 760px;
}
#notfound img {
  max-width: 100%;
  height: auto;
}
#pad-wrapper #notfound h1 {
  line-height: 40px;
  margin: 20px 0;
  border: 0;
  padding: 0;
}
#notfound p {
  text-align: left;
}

/* ---------- screen conventions (docs/lanes/UI2.md) ---------- */
.filter-bar {
  border-bottom: 1px solid #dee3ea;
  padding-bottom: 12px;
  margin-bottom: 25px;
}
.filter-bar label {
  display: inline-block;
  font-size: 14px;
  color: #29323d;
  margin-right: 15px;
}
.filter-bar label input,
.filter-bar label select {
  margin-left: 8px;
}
#pad-wrapper .column > h4 {
  font-size: 17px;
  font-weight: normal;
  color: #29323d;
  margin: 0 0 4px;
}
#pad-wrapper .column > p {
  color: #696d73;
  margin-bottom: 15px;
}
#pad-wrapper .table {
  width: 100%;
}
#pad-wrapper .table td {
  line-height: 20px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.actions a,
.actions form,
.actions > button.link {
  margin-right: 10px;
}
.actions button.link {
  font-size: inherit;
}
details.add-panel > summary {
  list-style: none;
  display: inline-block;
}
details.add-panel > summary::-webkit-details-marker {
  display: none;
}
details.add-panel[open] > summary {
  margin-bottom: 10px;
}
.well.inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

/* ---------- home (legacy Index.aspx) ---------- */
#main-stats {
  margin: 0;
}
#main-stats .seat-stats {
  display: flex;
  flex-wrap: wrap;
}
#main-stats .seat-stats .stat {
  flex: 1 1 200px;
  padding: 25px 20px 25px 25px;
}
#main-stats .stat .data .of {
  color: #9ba3ad;
  font-size: 14px;
  text-transform: none;
  font-weight: normal;
}
#main-stats .stat .date {
  display: block;
  margin-top: 4px;
  font-style: normal;
  text-transform: uppercase;
  font-weight: 600;
  color: #29323a;
  font-family: robotoRegular, Arial, sans-serif;
  font-size: 12px;
}
.home-head {
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid #dee3ea;
  padding-bottom: 10px;
  margin: 0 0 25px;
}
.home-head h1 {
  margin: 0;
  font-size: 24.5px;
  line-height: 40px;
  font-weight: normal;
}
.home-logo {
  max-height: 60px;
  max-width: 220px;
}
.home-welcome {
  margin: 0;
  color: #696d73;
}
.home-alert h4 {
  margin: 0 0 6px;
}
.home-alert .table {
  background: transparent;
  margin: 6px 0;
}
.home-groups {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.home-card {
  padding: 15px 20px;
  margin: 0 0 20px;
}
.home-groups .home-card {
  margin: 0;
}
.home-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.home-links li {
  padding: 7px 0;
  border-top: 1px solid #edf2f7;
}
.home-links li:first-child {
  border-top: 0;
}
.home-links a {
  font-weight: 600;
  font-family: robotoRegular, Arial, sans-serif;
}
.home-links span {
  display: block;
  color: #8e9aa6;
  font-size: 13px;
}
.home-number {
  color: #32a0ee;
  font-size: 25px;
  font-weight: 600;
}
.home-search input {
  min-width: 260px;
}
#mostActive .num {
  text-align: right;
}

/* ---------- components (Ui/LegacyComponents.cs) ---------- */
.page-header-row::after {
  content: "";
  display: table;
  clear: both;
}
.page-header-row .button-bar {
  float: left;
}
.page-header-row .page-subtitle {
  clear: both;
  margin: 0;
  padding-top: 4px;
  color: #696d73;
}
.page-header-row.with-logo .page-logo {
  float: left;
  max-height: 60px;
  max-width: 220px;
  margin-right: 16px;
}
.ui-panel > .panel-title {
  font-size: 17px;
  font-weight: normal;
  color: #29323d;
  margin: 0 0 4px;
  line-height: 24px;
}
.ui-panel.panel > .panel-title {
  border-bottom: 1px solid #edf2f7;
  padding-bottom: 8px;
  margin-bottom: 12px;
}
#pad-wrapper .ui-panel > .panel-subtitle {
  color: #696d73;
  margin: 0 0 15px;
}
.ui-panel.column {
  margin-bottom: 25px;
}
.ui-table tr.empty-row td {
  color: #8e9aa6;
  font-style: italic;
}
.inline-field {
  display: inline-block;
  margin: 0 12px 8px 0;
  vertical-align: top;
}
.inline-field > label {
  display: inline-block;
  margin: 0 6px 0 0;
}
.field-box.has-error input,
.field-box.has-error select,
.field-box.has-error textarea {
  border-color: #b94a48;
}
.field-box .field-validation-error {
  display: block;
  font-size: 12px;
}
.field-box .help-block {
  margin-top: 3px;
}
.add-panel-body {
  margin-top: 10px;
}
.ui-alert > i {
  font-size: 22px;
  margin-right: 12px;
  top: 3px;
}
/* only the title (<ui-alert title>), not every <strong> in the text (UI2-polish: "aim ." / "123  of") */
.ui-alert > strong.alert-title {
  margin-right: 4px;
}
.tab-content > .tab-pane {
  display: none;
}
.tab-content > .tab-pane.active {
  display: block;
}
.ui-tabs .nav-tabs {
  margin-bottom: 15px;
}
#confirmDialog.in {
  display: block;
  top: 20%;
}
#confirmDialog .modal-body h4 {
  font-weight: normal;
}
.modal-backdrop.hide {
  display: none;
}
.modal-backdrop {
  opacity: 0.5;
}
.table-sortable th.header {
  cursor: pointer;
}

/* ---------- components added by lane UI2-S5 (staff screens) ---------- */
.ui-error-list > ul.errors {
  display: inline-block;
  vertical-align: top;
  margin: 0;
  padding: 0 0 0 18px;
  background: none;
  border: 0;
  border-radius: 0;
  color: inherit;
  text-shadow: none;
}
.usage {
  white-space: nowrap;
}
.usage.over {
  color: #b94a48;
  font-weight: 600;
}
.ui-details dt {
  font-weight: 600;
  font-size: 12px;
  color: #29323d;
  margin-top: 12px;
}
.ui-details dt:first-child {
  margin-top: 0;
}
.ui-details dd {
  margin: 2px 0 0;
  color: #526273;
  word-break: break-word;
}
.ui-details .pre {
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 12px;
  background: #f7f8fa;
  border: 1px solid #dde1e6;
  border-radius: 4px;
  padding: 8px;
  max-height: 420px;
  overflow: auto;
}
.colour-row {
  display: flex;
  gap: 8px;
  align-items: center;
  max-width: 420px;
}
.colour-row .colour-picker {
  width: 44px;
  height: 30px;
  padding: 2px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
  flex: none;
}
.field .colour-row input[type="text"] {
  flex: 1;
}
.logo-preview {
  max-height: 60px;
  max-width: 240px;
  border: 1px solid #dee3ea;
  background: #fff;
  padding: 4px;
}
.block-hint {
  display: block;
  margin: 4px 0;
}
/* Bootstrap 2 input sizes inside a <form-field> (several small inputs on one line) */
.field-box input.input-mini,
.field-box select.input-mini {
  width: 70px;
}
.field-box input.input-small,
.field-box select.input-small {
  width: 100px;
}
.field-box input.input-medium,
.field-box select.input-medium {
  width: 160px;
}
.filter-bar .inline-field {
  margin-bottom: 6px;
}
.filter-bar .inline-field > label {
  font-size: 13px;
}
/* Lane UI2-S3 components (docs/lanes/UI2.md "Components"): table section rows, thumbnails, map canvas, code editor
   textarea, sandboxed preview frame, key/value facts. */
#pad-wrapper .ui-table tr.section-row th {
  background: #f3f5f8;
  color: #29323d;
  font-size: 12px;
  text-transform: uppercase;
  font-weight: bold;
  padding: 10px 8px;
  border-top: 1px solid #dee3ea;
}
#pad-wrapper .ui-table tr.section-row th span {
  text-transform: none;
  font-weight: normal;
  color: #8e9aa6;
  margin-left: 6px;
}
.ui-table img.thumb {
  max-width: 80px;
  max-height: 60px;
  border: 1px solid #dee3ea;
  border-radius: 3px;
  background: #fff;
  vertical-align: middle;
}
.ui-map {
  height: 520px;
  border: 1px solid #dee3ea;
  border-radius: 5px;
  margin: 0 0 20px;
  background: #e9edf1;
}
#pad-wrapper textarea.code {
  width: 100%;
  max-width: none;
  min-height: 300px;
  font:
    13px/1.45 Menlo,
    Consolas,
    monospace;
  tab-size: 2;
}
.ui-preview {
  display: block;
  width: 100%;
  height: 520px;
  border: 1px solid #dee3ea;
  border-radius: 4px;
  background: #fff;
}
.ui-panel .button-bar-row,
.ui-panel .actions-bar {
  margin-top: 10px;
}
.field-box .readonly {
  color: #526273;
  line-height: 30px;
}
td ul.plain,
ul.plain {
  list-style: none;
  margin: 0;
  padding: 0;
}
/* UI2-S4: check-field, data-table group heading rows (<tr class="group-row">, legacy GroupDetails "section" rows) */
.check-field {
  margin-bottom: 12px;
}
.check-field label.check {
  font-size: 13px;
  color: #29323d;
}
.check-field label.check em.hint {
  margin-left: 22px;
}
#pad-wrapper .ui-table tr.group-row > td {
  background-color: #eee;
  font-weight: bold;
  border-top: 1px solid #ddd;
}
#pad-wrapper .ui-table td .hint {
  display: block;
}
.login-page .ui-alert {
  text-align: left;
}
.ui-alert ul.errors-list {
  display: inline-block;
  vertical-align: top;
  margin: 0 0 0 4px;
  padding-left: 16px;
}

/* ---------- Lane UI2-S2 components: slide-out panel (legacy slideout.css cd-panel), facts, modal, well forms ---------- */
.cd-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2147483640;
  background: rgba(0, 0, 0, 0.6);
}
.cd-panel[hidden] {
  display: none;
}
.cd-panel > .cd-panel-container {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 70%;
  max-width: 1000px;
  background: #fff;
  display: flex;
  flex-direction: column;
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.25);
  cursor: auto;
}
.cd-panel-header {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  height: 48px;
  padding: 0 20px 0 5%;
  background: #eee;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
}
#pad-wrapper .cd-panel-header h2,
.cd-panel-header h2 {
  margin: 0;
  font-size: 1.5em;
  line-height: 48px;
  font-weight: bold;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cd-panel-buttons {
  white-space: nowrap;
}
.cd-panel-buttons .btn-flat {
  margin: 0 0 0 6px;
}
.cd-panel-content {
  flex: 1;
  overflow: auto;
  padding: 20px 5% 40px;
}
.cd-panel-content .ui-table {
  background: #fff;
}
body.panel-open {
  overflow: hidden;
}
@media (max-width: 767px) {
  .cd-panel > .cd-panel-container {
    width: 100%;
  }
}
.fact-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px 20px;
  margin: 0 0 15px;
}
.fact-list.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.fact-list.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.fact-list.cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.fact-list.cols-1 > .fact {
  margin-bottom: 10px;
}
.fact-list > .fact > dt {
  font-weight: normal;
  font-size: 13px;
  color: #696d73;
  line-height: 20px;
}
.fact-list > .fact > dd {
  margin: 0;
  font-weight: bold;
  color: #333;
  line-height: 20px;
  min-height: 20px;
  overflow-wrap: anywhere;
}
.fact-list > .fact[hidden] {
  display: none;
}
@media (max-width: 767px) {
  .fact-list.cols-2,
  .fact-list.cols-3,
  .fact-list.cols-4 {
    grid-template-columns: minmax(0, 1fr);
  }
}
dialog.ui-modal {
  padding: 0;
  top: 10%;
  left: 0;
  right: 0;
  margin: 0 auto;
  max-width: 92vw;
  color: #333;
}
dialog.ui-modal:not([open]) {
  display: none;
}
dialog.ui-modal::backdrop {
  background: rgba(0, 0, 0, 0.5);
}
dialog.ui-modal .modal-body {
  max-height: 70vh;
}
dialog.ui-modal .modal-body textarea,
dialog.ui-modal .modal-body input[type="text"] {
  width: 100%;
}
dialog.ui-modal .modal-footer .btn-flat {
  margin: 0 0 0 6px;
}
.ui-alert[hidden],
.nav-tabs > li[hidden],
.well[hidden],
.ui-table[hidden] {
  display: none;
}
.well .row-fluid + .row-fluid {
  margin-top: 10px;
}
.well .field-box {
  margin-bottom: 0;
}
.well .field-box select,
.well .field-box input[type="text"],
.well .field-box input[type="number"],
.well .field-box input[type="date"] {
  width: 100%;
  max-width: none;
}
.well .radio.inline {
  margin: 6px 15px 0 0;
  padding-top: 0;
}
.well .radio.inline + .radio.inline {
  margin-left: 0;
}
.well .button-bar-row {
  margin: 12px 0 0;
}
.ui-table td.pre,
.ui-table td .pre,
.fact-list dd.pre {
  white-space: pre-wrap;
  font-family: inherit;
}
.ui-table tr.trail-row > td {
  background: #f7f8fa;
}
.ui-table tr.success > td {
  background: #dff0d8;
}
.ui-table tr.error > td {
  background: #f2dede;
}
.ui-table tr.warning > td,
.ui-table tr.info > td {
  background: #fcf8e3;
}
.table-scroll {
  width: 100%;
  overflow: auto;
}
.field-box[hidden] {
  display: none;
}
.ui-table.clickable tbody tr {
  cursor: pointer;
}
.ui-table thead th[data-sort] {
  cursor: pointer;
}

/* ---------- components added by lane UI2-S1 (DiSC Mobile screens): fact-list looks, collapse ---------- */
/* <fact-list bold-labels="true">: the legacy DiSC record look (bold dark label, plain grey value), strong = dark bold values;
   <fact-item highlight="true">: the legacy alert-info box around the item the record is about. */
.fact-list.bold-labels {
  gap: 0 20px;
}
.fact-list.bold-labels > .fact,
.fact-list.bold-labels.cols-1 > .fact {
  margin: 0 0 8px;
}
.fact-list.bold-labels > .fact > dt {
  font-weight: 600;
  font-size: 12px;
  color: #29323d;
  margin: 0;
}
.fact-list.bold-labels > .fact > dd {
  font-weight: normal;
  color: #526273;
}
.fact-list.strong > .fact > dd {
  font-weight: bold;
  color: #29323d;
}
.fact-list > .fact.alert {
  padding: 6px 10px;
  margin-bottom: 8px;
}
details.ui-collapse {
  border-top: 1px solid #dee3ea;
  margin: 0;
}
details.ui-collapse:last-of-type {
  border-bottom: 1px solid #dee3ea;
  margin-bottom: 20px;
}
details.ui-collapse > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 30px;
  padding: 10px 10px 10px 40px;
  position: relative;
  background: #f9f9f9;
}
details.ui-collapse > summary::-webkit-details-marker {
  display: none;
}
details.ui-collapse > summary::before {
  content: "+";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 30px;
  text-align: center;
  padding-top: 10px;
  font-weight: bold;
  color: #fff;
  background: #4387bf;
}
details.ui-collapse[open] > summary::before {
  content: "\2013";
}
details.ui-collapse > summary > * {
  min-width: 200px;
}
details.ui-collapse > .table {
  margin: 0 0 10px;
}
.ui-table th.checkall {
  cursor: pointer;
  text-decoration: underline;
}
.ui-table tr.orphan > td {
  background-color: #f2dede;
}
.ui-table td.message {
  white-space: pre-wrap;
  max-width: 420px;
}
fieldset.plain {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

/* ---------- UI2-polish ---------- */
/* Row actions (Edit / Delete / Message ...) stay on one line. */
.ui-table td.actions {
  white-space: nowrap;
}
/* Wide tables in <data-table scroll="true">: one line per header and per cell, the box scrolls sideways inside the
   content panel instead of squeezing the columns ("DRIVER CODE" on two lines) or overflowing the panel. */
.table-scroll {
  margin-bottom: 20px;
}
.table-scroll > .ui-table {
  margin-bottom: 0;
}
.table-scroll > .ui-table th {
  white-space: nowrap;
}
.table-scroll > .ui-table.nowrap td {
  white-space: nowrap;
}

/* ---------- Lane FEAT2: home page widgets (legacy Index.aspx gridstack: 12 columns, cell height 60 px, white cards) ---------- */
.home-widgets {
  margin-top: 20px;
}
.widget-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: 60px;
  gap: 10px;
  min-height: 20px;
}
.widget-grid.dragging {
  outline: 2px dashed #b8c4d1;
  outline-offset: 4px;
}
.widget-item {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #fff;
  border: 1px solid #dee3ea;
  border-radius: 5px;
  box-shadow: 2px 2px 9px 0 rgba(153, 153, 153, 0.84);
  overflow: hidden;
}
.widget-item.moving {
  opacity: 0.6;
}
.gw-1 {
  grid-column: span 1;
}
.gw-2 {
  grid-column: span 2;
}
.gw-3 {
  grid-column: span 3;
}
.gw-4 {
  grid-column: span 4;
}
.gw-5 {
  grid-column: span 5;
}
.gw-6 {
  grid-column: span 6;
}
.gw-7 {
  grid-column: span 7;
}
.gw-8 {
  grid-column: span 8;
}
.gw-9 {
  grid-column: span 9;
}
.gw-10 {
  grid-column: span 10;
}
.gw-11 {
  grid-column: span 11;
}
.gw-12 {
  grid-column: span 12;
}
.gh-1 {
  grid-row: span 1;
}
.gh-2 {
  grid-row: span 2;
}
.gh-3 {
  grid-row: span 3;
}
.gh-4 {
  grid-row: span 4;
}
.gh-5 {
  grid-row: span 5;
}
.gh-6 {
  grid-row: span 6;
}
.gh-7 {
  grid-row: span 7;
}
.gh-8 {
  grid-row: span 8;
}
.gh-9 {
  grid-row: span 9;
}
.gh-10 {
  grid-row: span 10;
}
.gh-11 {
  grid-row: span 11;
}
.gh-12 {
  grid-row: span 12;
}
.widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 10px;
  background: #f5f7f9;
  border-bottom: 1px solid #dee3ea;
  cursor: move;
  min-height: 22px;
}
.widget-header-bare {
  background: transparent;
  border-bottom: 0;
  min-height: 0;
  padding: 2px 6px;
}
.widget-header h4 {
  margin: 0;
  font-size: 14px;
  line-height: 20px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.widget-tools {
  visibility: hidden;
  white-space: nowrap;
  margin-left: auto;
}
.widget-item:hover .widget-tools,
.widget-item:focus-within .widget-tools {
  visibility: visible;
}
.widget-tool {
  border: 0;
  background: transparent;
  color: #3a87ad;
  font-size: 11px;
  padding: 0 3px;
  cursor: pointer;
}
.widget-body {
  flex: 1 1 auto;
  overflow: auto;
  padding: 8px 10px;
}
.widget-body .ui-table {
  margin-bottom: 0;
}
.widget-html {
  text-align: center;
}
.widget-buttons {
  margin-top: 25px;
}
.widget-buttons form.inline {
  display: inline;
}
@media (max-width: 700px) {
  .widget-grid {
    grid-template-columns: 1fr;
  }
  .widget-grid > .widget-item {
    grid-column: auto !important;
    grid-row: span 4 !important;
  }
}
/* ---- Lane FEAT2: seat request dialog (DiSC Mobile drivers), alerts list ---- */
.ui-modal .btn-flat[hidden],
.ui-modal [hidden] {
  display: none;
}
.ui-modal .addLicenseSummary {
  color: #696d73;
}
#resultsTable th[data-sort] a {
  color: inherit;
}
/* ---- FEAT2 forms (Forms, Form Details designer, Submissions) ---- */
.form-toolbox {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
}
.form-toolbox li {
  display: inline-block;
  margin: 0 4px 6px 0;
}
.form-designer {
  min-height: 80px;
}
.form-designer .form-row {
  background: #fff;
  border: 1px solid #dee3ea;
  border-radius: 3px;
  padding: 8px 10px;
  margin-bottom: 8px;
}
.form-designer .form-row-section {
  background: #f3f5f8;
}
.form-designer .form-row-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.form-designer .form-row-caption {
  font-weight: bold;
  margin: 0;
}
.form-designer .form-preview label.check {
  display: inline-block;
  margin-right: 12px;
}
.form-designer .form-row-actions {
  margin-top: 6px;
}
#answers tr.form-section td {
  background-color: #526273;
  color: #edf2f7;
}
#answers img.signature {
  max-width: 100%;
  border: 1px solid #dee3ea;
  background: #fff;
}
#answers .size {
  font-size: 0.75em;
}
#responses tr.info td {
  background-color: #d9edf7;
}
@media print {
  #sidebar-nav,
  .navbar,
  .hidden-print,
  .button-bar,
  #internalNotes .button-bar-row {
    display: none !important;
  }
  .content {
    margin-left: 0 !important;
  }
}
/* Lane FEAT2: a hidden flat button stays hidden (the theme's .btn-flat display wins over the hidden attribute). */
.btn-flat[hidden] {
  display: none !important;
}
/* Lane PE1: the page editor's zone editor (js/page-zones.js), in the colours of the legacy page designer's toolbars
   (zone #9451A3, row #00adee, item #8fa7fc). */
.zone-box {
  border: 1px solid #d5d9df;
  margin: 0 0 14px;
  background: #fff;
}
.zone-head {
  background: #9451a3;
  color: #fff;
  padding: 6px 10px;
}
.zone-head .hint {
  color: #f1e6f5;
}
.zone-box > .zone-item,
.zone-box > .hint,
.zone-box > .zone-toolbar {
  margin: 8px 10px;
}
.zone-item {
  border: 1px solid #dfe3e8;
  margin: 6px 0;
  background: #fafbfc;
}
.zone-item > *:not(.zone-item-head):not(.zone-columns) {
  margin-left: 8px;
  margin-right: 8px;
}
.zone-item-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #8fa7fc;
  color: #fff;
  padding: 3px 8px;
}
.zone-item-head.zone-row-head {
  background: #00adee;
}
.zone-item-head.zone-locked-head {
  background: #8a8f98;
}
.zone-node .zone-item-head {
  background: #6c7a89;
}
.zone-item-head .btn-flat {
  padding: 1px 7px;
  font-size: 11px;
  margin-left: 3px;
}
.zone-caption {
  font-weight: 600;
}
.zone-text {
  width: 100%;
  box-sizing: border-box;
  margin: 6px 0;
  font-family: Menlo, Consolas, monospace;
  font-size: 12px;
}
.zone-field {
  display: inline-block;
  margin: 4px 12px 4px 0;
  vertical-align: top;
}
.zone-field label {
  display: block;
  font-size: 12px;
}
.zone-inline {
  display: block;
}
.zone-columns {
  margin: 6px 0 4px;
}
.zone-cell {
  background: #eef8fd;
  border: 1px dashed #75d0f6;
  min-height: 40px;
  padding: 4px;
  box-sizing: border-box;
}
.zone-row-tools {
  padding: 4px 0;
}
.zone-row-settings summary {
  cursor: pointer;
  display: inline-block;
  margin-left: 10px;
}
.zone-toolbar {
  margin: 6px 0;
}
.zone-toolbar select {
  max-width: 260px;
  margin-right: 6px;
}
#layoutHtml > summary {
  margin-bottom: 8px;
  cursor: pointer;
}
/* ---------- Lane FEAT1: DiSC pop-up alerts (legacy Bootstrap.Master #ripToastContainer / .ripToast) and popup extras ---------- */
#ripToastContainer {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 2147483641;
}
.ripToast {
  position: relative;
  color: #fff;
  width: 300px;
  border-radius: 5px;
  padding: 10px;
  border: solid 3px #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  background-color: rgba(0, 0, 0, 0.5);
  margin-top: 5px;
  min-height: 30px;
  cursor: pointer;
  transition: opacity 0.3s;
  overflow: hidden;
}
.ripToast:hover {
  background-color: #333;
}
.ripToast.closing {
  opacity: 0;
}
.ripToast img {
  padding-right: 5px;
  float: left;
}
.ripToast .ripToast-text {
  display: inline-block;
  width: 240px;
  margin-top: 5px;
}
.ripToast .ripToast-close {
  position: absolute;
  top: 6px;
  right: 5px;
  background: none;
  border: 0;
  color: #fff;
  padding: 0;
  cursor: pointer;
}
#currentItinerary h4 {
  margin-top: 15px;
}
#currentItinerary td.center,
#currentItinerary th {
  text-align: center;
}

/* Lane PE2: menu builder (legacy Pages.aspx "Manage Website Menus"), website profile, galleries. */
.menu-builder {
  margin-bottom: 20px;
}
.menu-builder .menu-items,
.menu-builder .menu-children {
  list-style: none;
  margin: 0;
  padding: 0;
}
.menu-builder .menu-children {
  margin-left: 30px;
}
.menu-builder .menuitem > .menu-item-row {
  padding: 8px 10px;
  border-bottom: 1px solid #e9ecef;
}
.menu-builder .menu-children .menu-item-row {
  background: #fafafa;
}
.menu-builder .menu-caption {
  font-weight: 600;
  margin-right: 8px;
}
.menu-builder .menu-link {
  font-size: 12px;
  margin-right: 6px;
  word-break: break-all;
}
.menu-builder .actions a,
.menu-builder .actions .btn-link {
  margin-left: 8px;
}
form.pe2-inline {
  display: inline;
  margin: 0;
}
.btn-link {
  background: none;
  border: 0;
  padding: 0;
  color: #0088cc;
  cursor: pointer;
  font: inherit;
}
.btn-link:hover {
  text-decoration: underline;
}
.gallery-items img.thumb,
.gallery-choices img.thumb {
  max-height: 60px;
  max-width: 120px;
}
.gallery-choices {
  max-height: 420px;
  overflow-y: auto;
}
.gallery-choices label {
  display: inline-block;
  width: 140px;
  margin: 4px;
  text-align: center;
  font-size: 11px;
  word-break: break-all;
  vertical-align: top;
}
.theme-preview {
  max-height: 300px;
  max-width: 100%;
}

/* Lane WYS1: the rich-text editor (Quill 2, wwwroot/lib/quill) in the legacy look, and its photo picker. */
.rich-text .ql-toolbar {
  border: 1px solid #d5d9dd;
  border-bottom: 0;
  border-radius: 0;
  background: #fafafa;
  font-family: inherit;
}
.rich-text .ql-container {
  border: 1px solid #d5d9dd;
  border-radius: 0;
  font-family: inherit;
  font-size: 14px;
}
.rich-text .ql-editor {
  min-height: 120px;
  background: #fff;
}
.rich-text .ql-snow .ql-stroke {
  stroke: #555;
}
.rich-text .ql-snow .ql-fill {
  fill: #555;
}
.rich-text .ql-snow.ql-toolbar button:hover .ql-stroke,
.rich-text .ql-snow.ql-toolbar button.ql-active .ql-stroke {
  stroke: #1f2a36;
}
.rich-text .ql-snow.ql-toolbar button:hover .ql-fill,
.rich-text .ql-snow.ql-toolbar button.ql-active .ql-fill {
  fill: #1f2a36;
}
.rich-text .ql-toolbar button,
.rich-text .ql-toolbar .ql-picker {
  outline-offset: 2px;
}
.rich-text .ql-toolbar .ql-picker-label {
  color: #555;
}
.rich-text .ql-editor img {
  max-width: 100%;
  height: auto;
}
.rich-photo-dialog {
  border: 1px solid #d5d9dd;
  border-radius: 0;
  padding: 16px;
  max-width: 640px;
  max-height: 80vh;
}
.rich-photo-dialog h3 {
  margin: 0 0 6px 0;
  font-size: 16px;
}
.rich-photo-dialog::backdrop {
  background: rgba(0, 0, 0, 0.5);
}
.rich-photo-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 55vh;
  overflow-y: auto;
  margin: 10px 0;
}
.rich-photo {
  width: 120px;
  padding: 6px;
  border: 1px solid #d5d9dd;
  background: #fff;
  cursor: pointer;
  text-align: center;
  font-size: 11px;
  word-break: break-all;
}
.rich-photo img {
  max-height: 60px;
  max-width: 100px;
  display: block;
  margin: 0 auto 4px auto;
}
.rich-photo:hover {
  border-color: #1f2a36;
}
.rich-text-note {
  margin: 4px 0 8px 0;
  padding: 6px 10px;
  border: 1px solid #e0c76a;
  background: #fdf6e3;
  color: #6b5d1f;
  font-size: 12px;
}

/* Staging fix: Undo / Redo / HTML text buttons in the Quill toolbar (Quill sizes toolbar buttons as 28x24 icons and the
   theme's button styles turned them into blue squares). */
.rich-text .ql-snow.ql-toolbar button.rich-text-label {
  width: auto; height: 24px; padding: 0 6px; margin-left: 2px; background: none; border: 1px solid transparent;
  border-radius: 3px; color: #444; font-size: 12px; line-height: 22px; box-shadow: none; text-shadow: none;
}
.rich-text .ql-snow.ql-toolbar button.rich-text-label:hover { border-color: #ccc; color: #06c; }
