.tpd-table-scroll {
	overflow-x: auto;
}

.tpd-table td {
	vertical-align: top;
}

.tpd-table .tpd-nowrap,
.tpd-table .tpd-times {
	white-space: nowrap;
}

.tpd-table .tpd-restaurant {
	min-width: 140px;
}

.tpd-table .tpd-sub {
	font-size: 12px;
	line-height: 1.4;
}

.tpd-close-actions {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.tpd-close-actions .btn {
	width: 100%;
	white-space: nowrap;
}

.tpd-log-io {
	height: 200px;
	width: 400px;
}

.alert ul {
	margin: 0;
	list-style: none;
	padding-left: 5px;
}

.mb0 {
	margin-bottom: 0 !important;
}

.affiliateLinks textarea {
	width: 100%;
}

label .note, span.note {
	font-size: smaller;
	font-style: italic;
}

.link {
	cursor: pointer;
	text-decoration: underline;
	color: #005580;
}

.bold{
	font-weight: bold;
}

.table tbody tr td.align-center,
.table tbody tr th.align-center{
	text-align: center;
}

/* Bootstrap 5 dropped the rounded corners + full border box that BS2's
   .table-bordered gave, so the theme's .table-solid panels rendered square and
   left-open (unlike their still-rounded .box container). Restore the BS2 look:
   separate borders so the radius shows, a left/top border on the outer cells
   (theme .table-solid already draws right/bottom), and rounded outer corners. */
.table-solid {
	border-collapse: separate;
	border-spacing: 0;
	border-radius: 4px;
}
.table-solid > :first-child > tr:first-child > * {
	border-top: 1px solid #cad4d7;
}
.table-solid > * > tr > *:first-child {
	border-left: 1px solid #cad4d7;
}
.table-solid > * > tr > *:last-child {
	border-right: 1px solid #cad4d7;
}
.table-solid > :first-child > tr:first-child > *:first-child {
	border-top-left-radius: 4px;
}
.table-solid > :first-child > tr:first-child > *:last-child {
	border-top-right-radius: 4px;
}
.table-solid > :last-child > tr:last-child > *:first-child {
	border-bottom-left-radius: 4px;
}
.table-solid > :last-child > tr:last-child > *:last-child {
	border-bottom-right-radius: 4px;
}

body.dragging, body.dragging * {
  	cursor: move !important;
}

.dragged {
	position: absolute;
	opacity: 0.5;
	z-index: 2000;
}

.sortable li {
	cursor: move !important;
}

.autocomplete-suggestions { 
	-webkit-box-sizing: border-box; 
	-moz-box-sizing: border-box; 
	box-sizing: border-box; 
	border: 1px solid #999; 
	background: #FFF; cursor: default; 
	overflow: auto;
	-webkit-box-shadow: 1px 4px 3px rgba(50, 50, 50, 0.64); 
	-moz-box-shadow: 1px 4px 3px rgba(50, 50, 50, 0.64); 
	box-shadow: 1px 4px 3px rgba(50, 50, 50, 0.64); 
}
.autocomplete-suggestion { 
	padding: 2px 5px; 
	white-space: nowrap; 
	overflow: hidden; 
}
.autocomplete-no-suggestion { 
	padding: 2px 5px;
}
.autocomplete-selected { 
	background: #F0F0F0; 
}
.autocomplete-suggestions strong { 
	font-weight: bold; 
	color: #000; 
}
.autocomplete-group { 
	padding: 2px 5px; 
	font-weight: bold; 
	font-size: 16px; 
	color: #000; 
	display: block; 
	border-bottom: 1px solid #000; 
}

#galleryImages,
#cropper {
  width: 100%;
  float: left;
}

#galleryImages {
  max-height: 500px;
  overflow: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

canvas {
  max-width: 100%;
  display: inline-block;
}

#cropImageBtn {
  background-color: #4bb7c2;
  max-width: fit-content;
  color: white;
  border-radius: 10%;
}

.img-preview {
  float: left;
}

.singleImageCanvasContainer {
	display: inline-flex;
	position: relative;
	margin: 2px;
	border: #999 solid 2px;
	padding: 4px;
    max-width: 200px;
	max-height: 200px;
}

.singleImageCanvasCloseBtn {
  position: absolute;
  top: 5px;
  right: 5px;
}

#dropZone {
  width: 100%;
  height: 200px;
  border: 2px dashed #ccc;
  margin-bottom: 10px;

	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: column;
}

.selectImage {
  background-color: #4CAF50;
  border: none;
  color: white;
  padding: 10px 20px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin-top: 10px;
  cursor: pointer;
}

.tags-input { 
	display: inline-block; 
	position: relative; 
	border-radius: 4px; 
	padding: 5px; 
	width: 100%; 
} 

.tags-input ul { 
	list-style: none; 
	padding: 0; 
	margin: 0; 
} 

.tags-input li { 
	display: inline-block; 
	background-color: rgba(0, 0, 0, 0.1);
	color: #333; 
	border-radius: 20px; 
	padding: 5px 10px; 
	margin-right: 5px; 
	margin-bottom: 5px; 
} 

.tags-input input[type="text"] {
	padding: 10px;
	font-size: 14px;
	width: 75%;
	/* BS5 .form-control is display:block, which drops the adjacent Add button to
	   the next line; inline-block lets the 75% input and the button share a row. */
	display: inline-block;
}

.tags-input input[type="text"]:focus { 
	outline: none; 
} 

.tags-input .delete-button { 
	background-color: transparent; 
	border: none; 
	color: #999; 
	cursor: pointer; 
	margin-left: 5px; 
}

.addTag {
	padding: 10px;
	margin-left: 10px;
	margin-bottom: 12px;
}

.tag_text {
	border-bottom: 1px dashed #08c;
	cursor: pointer;
}

.edit_image {
	height: 400px;
	width: 400px;
}

.largeSize {
	border: red solid 2px !important;
}

.loader-wrapper {
	position: fixed;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	background: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
	z-index: 999; /* Ensure it covers the entire background */
	display: flex;
	justify-content: center;
	align-items: center;
}

.loader {
	border: 16px solid #f3f3f3;
	border-radius: 50%;
	border-top: 16px solid #3498db;
	width: 120px;
	height: 120px;
	animation: spin 2s linear infinite;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

.w5 {
	width: 5%;
}

.w35 {
	width: 35%;
}

.w20 {
	width: 20%;
}

.searchSection {
	display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* ==========================================================================
   Bootstrap 5.3.8 upgrade (sc-70744) — reconciliations + shims
   Ported from the RCS area's shim (sc-70745): reseller shares the same BS2
   theme (main.css) and the same shared common templates, so these rules apply
   unchanged. Layered on top of the untouched core BS5 files to restore the
   pre-upgrade look for what BS5 changed or dropped, so the 77 reseller views
   and the shared templates3.0/common/* markup did not have to be rewritten.
   ========================================================================== */

/* BS5 sizes almost everything (button padding, border-radius, badges, close
   button, etc.) in rem, relative to the <html> font-size. BS2 was entirely
   px-based and never depended on it, so on any browser where the user has
   changed their default font size away from 16px (e.g. Chrome's Appearance >
   Font size, or an OS text-size preference), every BS5 component here inflates
   or shrinks accordingly — buttons, pills, etc. all render at the wrong scale.
   Pin it so the theme always renders at its designed scale. */
html {
	font-size: 14px;
}

/* BS5's fixed-top navbar overlays page content; keep the old clearance. */
body {
	padding-top: 50px;
}

/* BS5's Reboot base font-size is 16px with a larger heading scale; the theme
   never set its own sizes, so restore the original BS2 14px/20px baseline and
   heading scale. */
body {
	font-size: 14px;
	line-height: 20px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 10px 0;
	font-weight: bold;
	line-height: 20px;
}

h1,
h2,
h3 {
	line-height: 40px;
}

h1 {
	font-size: 38.5px;
}

h2 {
	font-size: 31.5px;
}

h3 {
	font-size: 24.5px;
}

h4 {
	font-size: 17.5px;
}

h5 {
	font-size: 14px;
}

h6 {
	font-size: 11.9px;
}

/* The theme styled the BS2 navbar via .navbar-inverse .navbar-inner (dark
   gradient, compact height, bold links, inset active state, dark button);
   none of those selectors match the BS5 markup, so re-map the look here onto
   the new .navbar / .nav-link / .navbar .btn classes. Values are from the
   pre-upgrade main.css. */
.navbar {
	min-height: 48px;
	padding-top: 0;
	padding-bottom: 0;
	background-color: #1b1b1b;
	background-image: linear-gradient(to bottom, #323232, #1e1e1e);
	background-repeat: repeat-x;
	border-bottom: 1px solid #252525;
}
.navbar .navbar-brand.logo {
	margin: 0 !important;
}
.navbar .navbar-nav .nav-link {
	padding: 15px 13px;
	font-size: 13px;
	font-weight: bold;
}
.navbar .navbar-nav .nav-link.active {
	background: #181818;
	box-shadow: 0 1px 10px black inset;
}
.navbar .navbar-toggler {
	margin: 7px 0;
}
.navbar .btn {
	padding: 4px 10px;
	margin-top: 0;
	margin-bottom: 0;
	font-size: 14px;
	line-height: 20px;
	color: #fff;
	background-color: #363636;
	background-image: linear-gradient(to bottom, #444444, #222222);
	background-repeat: repeat-x;
	border: 1px solid rgba(0, 0, 0, 0.25);
	border-radius: 4px;
}
.navbar .btn:hover,
.navbar .btn:focus {
	color: #fff;
	background-color: #222222;
}
/* The reseller navbar carries a .btn-warning ("Return to Admin Console"); the
   generic .navbar .btn dark styling above (same specificity, earlier in the
   file) would otherwise flatten it to the dark nav-button look. Restore the
   theme's warning colors (main.css .btn-warning) so it keeps its orange cue. */
.navbar .btn-warning,
.navbar .btn-warning:hover,
.navbar .btn-warning:focus {
	color: #fff;
	background-color: #ed8400;
	background-image: linear-gradient(to bottom, #ef9400, #eb7800);
	border-color: rgba(0, 0, 0, 0.25);
}

/* BS5's .container dropped the auto-clearfix BS2 had, so the floated
   copyright/legal collapse the footer to zero height and its background image
   never paints. Clear the floats. */
footer .bottom .container::after {
	content: "";
	display: block;
	clear: both;
}

/* BS2 .well was a padded panel component (padding:19px); BS5 dropped it and the
   theme's main.css only sets its background/border (via the shared .box,.well
   rule), so every .well lost its inner padding and its content jams against the
   edges. .well is a theme-styled box (like .box) used across reseller views, so
   restore the BS2 padding/margin here. Values from the pre-upgrade bootstrap.css. */
.well {
	padding: 19px;
	margin-bottom: 20px;
}
.well-small {
	padding: 9px;
}
.well-large {
	padding: 24px;
}

/* --- Form shims -----------------------------------------------------------
   RCS forms use bare <input>/<select> (no .form-control) inside grid cells
   marked .control-group.form-inline, often several controls inline per cell.
   BS5 dropped these classes and no longer styles bare form controls, and its
   .form-control forces display:block/width:100% (which would stack the inline
   controls). So instead of adding .form-control everywhere, reproduce the BS2
   base look here. Values are from the pre-upgrade bootstrap.css.
   The :not(.form-control)/:not(.form-select) guards keep this OFF any input a
   migrated view has already given a real BS5 class — otherwise this BS2 sizing
   (30px tall) would override .form-control and mismatch adjacent BS5 pieces
   (e.g. an .input-group-text calendar addon). Bare inputs in still-BS2 shared
   templates have no such class, so they still get this shim. */
.control-group {
	margin-bottom: 10px;
}

textarea:not(.form-control),
select:not(.form-select),
input[type="text"]:not(.form-control),
input[type="password"]:not(.form-control),
input[type="datetime"]:not(.form-control),
input[type="datetime-local"]:not(.form-control),
input[type="date"]:not(.form-control),
input[type="month"]:not(.form-control),
input[type="time"]:not(.form-control),
input[type="week"]:not(.form-control),
input[type="number"]:not(.form-control),
input[type="email"]:not(.form-control),
input[type="url"]:not(.form-control),
input[type="search"]:not(.form-control),
input[type="tel"]:not(.form-control),
input[type="color"]:not(.form-control) {
	display: inline-block;
	padding: 4px 6px;
	margin-bottom: 10px;
	font-size: 14px;
	line-height: 20px;
	color: #555555;
	vertical-align: middle;
	background-color: #ffffff;
	border: 1px solid #cccccc;
	border-radius: 4px;
	box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
	transition: border linear 0.2s, box-shadow linear 0.2s;
}

/* BS2 greyed readonly/disabled fields; BS5 only styles .form-control[readonly]/
   :disabled, so bare readonly/disabled inputs (e.g. the shared billing form's
   "Last Billed Date", readonly unless the account is switching to automatic
   billing) no longer looked disabled. Restore the BS2 disabled appearance. */
input:not(.form-control)[readonly],
input:not(.form-control):disabled,
textarea:not(.form-control)[readonly],
textarea:not(.form-control):disabled,
select:not(.form-select):disabled {
	background-color: #eeeeee;
	cursor: not-allowed;
}

/* Inline time-picker selects (printTimeSelect3 → bare <select class="input-time">,
   a shared helper that can't be given .form-select). The typed-input rule above
   gives every bare select margin-bottom:10px for stacked forms, but these sit
   inline next to a date field + button, where that bottom margin shifts them
   UP (vertical-align:middle centers the margin box). Zero it so they align on
   the line. Uses select.input-time (specificity 0,1,1) to win the tie over the
   `select:not(.form-select)` rule above. */
select.input-time {
	margin-bottom: 0;
}

/* .form-inline zeroes the margin-bottom the typed-input rule above sets (so
   inline controls don't push their line taller than needed). The typed-input
   rule now carries :not(.form-control)/:not(.form-select) (specificity 0,2,1),
   so these resets must MATCH that specificity to win — hence the mirrored
   :not() guards here (0,2,1), plus this block staying AFTER the typed-input
   rule so it wins the tie. Without the guards the reset loses and the stray
   10px margin comes back, misaligning inline inputs next to selects/buttons. */
.form-inline input:not(.form-control),
.form-inline textarea:not(.form-control),
.form-inline select:not(.form-select),
.form-inline .help-inline,
.form-inline label,
.form-inline .btn-group {
	display: inline-block;
	margin-bottom: 0;
	vertical-align: middle;
}
/* NB: .input-prepend/.input-append are deliberately NOT in the reset above — they
   must keep the inline-flex from their own rule below so the input and .add-on
   join flush and align vertically. inline-block here dropped the add-on ~1px and
   defeated the flex join inside .form-inline cells (e.g. printDateSelect3). */

textarea {
	height: auto;
}

/* BS2 gave every bare <select> (no width/class override) a fixed 220px width;
   BS5 doesn't size <select> at all, so it shrinks/grows to fit its selected
   option's text, leaving a page of stacked selects visually ragged. */
select {
	width: 220px;
}
select[multiple],
select[size] {
	height: auto;
}

textarea:focus,
select:focus,
input[type="text"]:focus,
input[type="password"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="time"]:focus,
input[type="week"]:focus,
input[type="number"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="color"]:focus {
	border-color: rgba(82, 168, 236, 0.8);
	outline: 0;
	box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6);
}

/* BS2 input sizing classes removed in BS5 — restore the widths. */
.input-mini {
	width: 60px;
}
.input-small {
	width: 90px;
}
.input-medium {
	width: 150px;
}
.input-large {
	width: 210px;
}
.input-xlarge {
	width: 270px;
}
.input-block-level {
	display: block;
	width: 100%;
	box-sizing: border-box;
}

/* Date-picker addon sizing. The typed-input shim gives bare inputs a
   margin-bottom:10px (for stacked forms). Inside a BS5 .input-group (a stretch
   flex row) that 10px is part of the input's margin-box, so the row — and the
   .input-group-text calendar addon that stretches to fill it — becomes 40px
   tall while the input itself is only 30px, leaving the icon box towering over
   the field it's joined to. Zero that margin inside the group so the row is the
   input's true 30px. Then shrink the addon's own default BS5 padding (5.25/10.5)
   down to the small input's (4px 6px + line-height 20px + 1px borders = 30px) so
   it doesn't force the row back up. Result: input and addon are both 30px, flush. */
.input-group > input:not(.form-control) {
	margin-bottom: 0;
}
/* The zeroed inner margin removed the gap that used to separate the field from
   the row's .sep divider (and the next field in stacked forms). Move that 10px
   onto the group itself so it spaces the row without re-inflating the flex line.
   Scoped to groups holding a bare input (the datepicker pattern) so BS5
   .form-control input-groups elsewhere keep their own spacing. */
.input-group:has(> input:not(.form-control)) {
	margin-bottom: 10px;
}
.input-group:has(.input-small) .input-group-text,
.input-group:has(.input-mini) .input-group-text {
	padding: 4px 6px;
	font-size: 14px;
	line-height: 20px;
}

/* BS2 input-prepend/append joined-control look (dropped in BS5). The theme's
   main.css still colours the .add-on; supply the layout/border-radius here.
   Uses inline-flex (like a BS5 .input-group) so the input and its .add-on sit
   flush AND align vertically — flex ignores the inter-element whitespace (no
   font-size:0 trick needed) and align-items:stretch keeps the add-on the same
   height as the input. (The old inline-block + font-size:0 approach broke
   vertical-align:middle inside a flex parent, dropping the add-on ~5px.) */
.input-append,
.input-prepend {
	display: inline-flex;
	align-items: center;
	vertical-align: middle;
}
.input-append .add-on,
.input-prepend .add-on {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 16px;
	padding: 4px 5px;
	font-size: 14px;
	line-height: 20px;
	text-align: center;
	background-color: #f2f2f2;
	border: 1px solid #cccccc;
}
.input-prepend .add-on {
	border-radius: 4px 0 0 4px;
}
/* input:not(.form-control) matches the typed-input shim's (0,2,1) specificity so
   these square-off the joined edge win over its blanket border-radius:4px (which
   would otherwise round the input's inner corner and break the flush join). */
.input-prepend input:not(.form-control) {
	border-radius: 0 4px 4px 0;
}
.input-append .add-on {
	border-radius: 0 4px 4px 0;
}
.input-append input:not(.form-control) {
	border-radius: 4px 0 0 4px;
}
.input-append .add-on,
.input-append input,
.input-prepend .add-on,
.input-prepend input {
	margin-left: -1px;
}
/* The joined input is usually a bare input, which picks up margin-bottom:10px
   from the typed-input shim above; inside the inline-flex input-append that
   bottom margin offsets it ~5px from the add-on (align-items:center centers the
   margin box). Zero it. :not(.form-control) matches the typed-input rule's
   (0,2,1) specificity so this wins by coming later. */
.input-append input:not(.form-control),
.input-prepend input:not(.form-control) {
	margin-bottom: 0;
}

/* BS2 block checkbox/radio labels (dropped in BS5). Lay the label out as a flex
   row and give the control order:-1 so the box sits to the LEFT of the text
   regardless of DOM order (some views put the text before the <input>), while
   align-items:center keeps the box and its label vertically aligned. */
.checkbox,
.radio {
	display: flex;
	align-items: center;
	min-height: 20px;
	margin-bottom: 10px;
}
.checkbox input,
.radio input {
	order: -1;
	flex: none;
	margin: 0 5px 0 0;
}

/* BS2 spaced the breadcrumb "/" dividers (.divider { padding: 0 5px }); BS5 has
   no .divider rule and makes .breadcrumb a flexbox (collapsing the whitespace
   between the <li> items), so the crumbs render cramped. Restore the divider
   spacing. */
.breadcrumb .divider {
	padding: 0 5px;
}

/* --- Bootstrap 2 compatibility shim for shared markup --------------------
   The RCS views were migrated to BS5, but many templates under
   templates3.0/common/ (order status, reports, resend, tfa, ...) and shared
   PHP helpers (billing forms, HTML\ builders, WYSIWYG) that RCS renders are
   ALSO used by the still-BS2 admin/reseller areas, so their BS2 markup cannot
   be rewritten. This RCS-scoped shim re-implements the BS2 grid/utilities/
   components those shared bits rely on, so they render correctly under BS5.
   (Only loaded on RCS pages, so BS2 areas are unaffected.) Values are from the
   pre-upgrade bootstrap.css. */

/* BS2 fluid grid (row-fluid + spanN) — renamed to .row/.col-* in BS5. */
.row-fluid {
	width: 100%;
}
.row-fluid::before,
.row-fluid::after {
	display: table;
	content: "";
	line-height: 0;
}
.row-fluid::after {
	clear: both;
}
.row-fluid [class*="span"] {
	display: block;
	float: left;
	width: 100%;
	min-height: 30px;
	margin-left: 2.127659574468085%;
	box-sizing: border-box;
}
.row-fluid [class*="span"]:first-child {
	margin-left: 0;
}
.row-fluid .span12 { width: 100%; }
.row-fluid .span11 { width: 91.48936170212765%; }
.row-fluid .span10 { width: 82.97872340425532%; }
.row-fluid .span9  { width: 74.46808510638297%; }
.row-fluid .span8  { width: 65.95744680851064%; }
.row-fluid .span7  { width: 57.44680851063829%; }
.row-fluid .span6  { width: 48.93617021276595%; }
.row-fluid .span5  { width: 40.42553191489362%; }
.row-fluid .span4  { width: 31.914893617021278%; }
.row-fluid .span3  { width: 23.404255319148934%; }
.row-fluid .span2  { width: 14.893617021276595%; }
.row-fluid .span1  { width: 6.382978723404255%; }

/* BS2 alignment / float utilities — renamed to text-start/-end, float-* in BS5. */
.text-left {
	text-align: left !important;
}
.text-right {
	text-align: right !important;
}
.pull-left {
	float: left;
}
.pull-right {
	float: right;
}

/* BS2 button sizes — renamed to btn-sm/btn-lg in BS5. */
.btn-large {
	padding: 11px 19px;
	font-size: 17.5px;
	border-radius: 6px;
}
.btn-small {
	padding: 2px 10px;
	font-size: 11.9px;
	border-radius: 3px;
}
.btn-mini {
	padding: 0 6px;
	font-size: 10.5px;
	border-radius: 3px;
}

/* BS2 .label component — replaced by .badge/.text-bg-* in BS5 (BS5's .badge is
   left to the core; only the dropped .label name is shimmed here). */
.label {
	display: inline-block;
	padding: 2px 4px;
	font-size: 11.844px;
	font-weight: bold;
	line-height: 14px;
	color: #ffffff;
	white-space: nowrap;
	vertical-align: baseline;
	background-color: #999999;
	border-radius: 3px;
}
.label:empty {
	display: none;
}
.label-success {
	background-color: #468847;
}
.label-important {
	background-color: #b94a48;
}
.label-warning {
	background-color: #f89406;
}
.label-info {
	background-color: #3a87ad;
}
.label-inverse {
	background-color: #333333;
}

/* BS2 .badge component (still exists in BS5, but square-ish and un-colored by
   the removed -success/-important/etc. modifiers). The theme uses .badge for
   enabled/disabled pill indicators (see renderAdminEnabledBadge() in
   Web/lib/global.php, shared with the still-BS2 reseller area) — restore the
   BS2 pill shape and modifier colors. */
.badge {
	display: inline-block;
	padding: 2px 9px;
	font-size: 11.844px;
	font-weight: bold;
	line-height: 14px;
	color: #ffffff;
	text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
	white-space: nowrap;
	vertical-align: baseline;
	background-color: #999999;
	border-radius: 9px;
}
.badge-important {
	background-color: #b94a48;
}
.badge-warning {
	background-color: #f89406;
}
.badge-success {
	background-color: #468847;
}
.badge-info {
	background-color: #3a87ad;
}
.badge-inverse {
	background-color: #333333;
}

/* main.css re-themes .btn-primary/-info/-success/-warning/-danger/-inverse
   with its own (darker/saturated) background colors and assumes white,
   embossed text (it already adds the text-shadow for these — see
   ".btn.btn-primary, .btn.btn-info, ..." in main.css). BS5 drives button text
   color from a per-variant CSS custom property instead of a plain `color`
   declaration, and defaults .btn-info/-warning to black text (meant for its
   own, lighter default backgrounds) and has no .btn-inverse variant at all —
   so against the theme's actual colors these render with black-on-cyan (or
   inherit BS5's dark default) text instead of the intended white. Force it
   back for every state BS5 itself sets a color for. */
.btn-primary,
.btn-info,
.btn-success,
.btn-warning,
.btn-danger,
.btn-inverse,
.btn-primary:hover,
.btn-info:hover,
.btn-success:hover,
.btn-warning:hover,
.btn-danger:hover,
.btn-inverse:hover,
.btn-primary:focus,
.btn-info:focus,
.btn-success:focus,
.btn-warning:focus,
.btn-danger:focus,
.btn-inverse:focus,
.btn-primary:active,
.btn-info:active,
.btn-success:active,
.btn-warning:active,
.btn-danger:active,
.btn-inverse:active {
	color: #ffffff;
}

/* BS5's .btn-dark is this migration's replacement for BS2's .btn-inverse, but the
   theme only styles .btn-inverse (the dark gradient) and has no .btn-dark rule, so
   a plain .btn-dark (e.g. "Clear PlaceID") fell through to the theme's light .btn
   base. Give .btn-dark the .btn-inverse appearance. (Navbar .btn-dark buttons are
   unaffected — the more-specific ".navbar .btn" rule already styles them.) */
.btn-dark {
	background: #4c4c4c linear-gradient(to bottom, #4c4c4c, #3c3c3c) repeat-x;
	border-color: #949494 #2a2a2a #191919 #2a2a2a;
}
.btn-dark,
.btn-dark:hover,
.btn-dark:focus,
.btn-dark:active {
	color: #ffffff;
}
.btn-dark:hover,
.btn-dark:focus,
.btn-dark:active,
.btn-dark.active {
	background-color: #3c3c3c;
}

/* .btn-secondary is the BS5 rename of the old .btn-default — a plain button
   with no theme override, meant to keep BS2's original light-grey/dark-text
   look. BS5's .btn-secondary defaults to white text (styled for its own
   flat grey background), so force the dark text back for every state —
   via BS5's button variables, so :disabled/.active (which BS5 colors with
   higher-specificity .btn:disabled / .btn.active rules) are covered too. */
.btn-secondary {
	--bs-btn-color: #333333;
	--bs-btn-hover-color: #333333;
	--bs-btn-active-color: #333333;
	--bs-btn-disabled-color: #333333;
	text-shadow: none;
}
.btn-secondary,
.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary:active {
	color: #333333;
}

/* BS2 .pagination (nested .pagination>ul>li>a markup) — BS5 rebuilt pagination
   around a flex .pagination that carries .page-item/.page-link classes
   directly, so none of the old nested markup gets styled. The shared paginator
   views (Web/classes/Illuminate/Paginator/views/simple-navigable-bs2*.php) still
   emit the BS2 structure and are also used by the still-BS2 reseller area, so
   they can't be rewritten. Restore the BS2 layout here. The theme's main.css
   already colors .pagination ul>li>a (background/border-color/shadow), so the
   base rule below sets only layout + border width/style and leaves the a's
   colors to the theme. Values are from the pre-upgrade bootstrap.css. */
.pagination {
	display: block;
}
.pagination ul {
	display: inline-block;
	margin: 0;
	padding-left: 0;
	border-radius: 4px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.pagination ul > li {
	display: inline;
}
.pagination ul > li > a,
.pagination ul > li > span {
	float: left;
	padding: 4px 12px;
	line-height: 20px;
	text-decoration: none;
	border: 1px solid #ddd;
	border-left-width: 0;
}
.pagination ul > li:first-child > a,
.pagination ul > li:first-child > span {
	border-left-width: 1px;
	border-top-left-radius: 4px;
	border-bottom-left-radius: 4px;
}
.pagination ul > li:last-child > a,
.pagination ul > li:last-child > span {
	border-top-right-radius: 4px;
	border-bottom-right-radius: 4px;
}
.pagination ul > li > a:hover,
.pagination ul > li > a:focus,
.pagination ul > .active > a,
.pagination ul > .active > span {
	background-color: #f5f5f5;
}
.pagination ul > .active > a,
.pagination ul > .active > span {
	color: #999999;
	cursor: default;
}
.pagination ul > .disabled > span,
.pagination ul > .disabled > a,
.pagination ul > .disabled > a:hover,
.pagination ul > .disabled > a:focus {
	color: #999999;
	cursor: default;
	background-color: transparent;
}

/* The active page cell holds a "go to page" jump form (number input + submit).
   .btn-mini's BS2 size (0 6px / 10.5px, correct everywhere else) is too short
   for the input's height next to it, so grow it to fill the cell. */
.pagination .btn-mini {
	padding: 2px 6px;
	font-size: 12px;
}

/* BS2's .hide utility (renamed to .d-none in BS3+, and not present in BS5 at
   all) — shared markup (templates3.0/common/*, also used by the still-BS2
   admin/reseller areas) and several RCS views still ship elements pre-marked
   class="... hide" expecting them to start hidden (often toggled open via
   jQuery .toggle()/.show()/.hide()). Without this the elements just render
   visible on load. */
.hide {
	display: none;
}

/* BS2 inline checkbox/radio (dropped in BS5). */
.checkbox.inline,
.radio.inline {
	display: inline-block;
	padding-top: 5px;
	margin-bottom: 0;
	vertical-align: middle;
}
.checkbox.inline + .checkbox.inline,
.radio.inline + .radio.inline {
	margin-left: 10px;
}

/* BS2 .close button — renamed to .btn-close (a background-image X) in BS5. Shared
   markup that still emits the old <button class="close">&times;</button> is styled
   here so the glyph renders in the top-right corner as before. */
.close {
	float: right;
	font-size: 20px;
	font-weight: bold;
	line-height: 20px;
	color: #000000;
	text-shadow: 0 1px 0 #ffffff;
	opacity: 0.2;
}
.close:hover,
.close:focus {
	color: #000000;
	opacity: 0.4;
}
button.close {
	padding: 0;
	cursor: pointer;
	background: transparent;
	border: 0;
	appearance: none;
}

/* ==========================================================================
   FontAwesome 3 (icon-*) → FA4 compatibility (sc-70744)
   Reseller loads FontAwesome 4 (fa fa-*), but shared helpers
   (printDateSelect3/printTimeSelect3 → icon-calendar) and the shared
   templates3.0/common/* still emit FA3 icon-* classes, which FA4 does not
   define — so those glyphs (e.g. the date-field calendar) render as nothing.
   Those emitters can't be changed (admin still uses FA3), so map the icon-*
   that appear on reseller pages onto the already-loaded FA4 "FontAwesome" font.
   FA4 kept most FA3 codes at the same positions.
   ========================================================================== */
.icon-ban-circle::before,
.icon-bell::before,
.icon-calendar::before,
.icon-cog::before,
.icon-cogs::before,
.icon-copy::before,
.icon-edit::before,
.icon-eye-open::before,
.icon-list-alt::before,
.icon-ok::before,
.icon-print::before,
.icon-question-sign::before,
.icon-remove::before,
.icon-shopping-cart::before,
.icon-trash::before,
.icon-warning-sign::before {
	font-family: "FontAwesome";
	font-weight: normal;
	font-style: normal;
	display: inline-block;
	text-rendering: auto;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
.icon-ban-circle::before    { content: "\f05e"; }
.icon-bell::before          { content: "\f0f3"; }
.icon-calendar::before      { content: "\f073"; }
.icon-cog::before           { content: "\f013"; }
.icon-cogs::before          { content: "\f085"; }
.icon-copy::before          { content: "\f0c5"; }
.icon-edit::before          { content: "\f044"; }
.icon-eye-open::before      { content: "\f06e"; }
.icon-list-alt::before      { content: "\f022"; }
.icon-ok::before            { content: "\f00c"; }
.icon-print::before         { content: "\f02f"; }
.icon-question-sign::before { content: "\f059"; }
.icon-remove::before        { content: "\f00d"; }
.icon-shopping-cart::before { content: "\f07a"; }
.icon-trash::before         { content: "\f014"; }
.icon-warning-sign::before  { content: "\f071"; }

/* BS5's .list-group-item-action draws its links in --bs-secondary-color (75%
   grey), which is hard to read on white. These replaced BS2 .nav-list links on
   the dashboard/configuration pages, so give them back the theme link color
   (main.css `a`), keeping BS5's hover background. */
.list-group {
	--bs-list-group-action-color: #005580;
	--bs-list-group-action-hover-color: #005580;
	--bs-list-group-action-active-color: #005580;
}
