@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.3.0/css/all.min.css');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400..700&display=swap');

:root {
  --color-black: #41423d;
  --color-neutral-100: #f5f4f0;
  --color-neutral: #dfddd0;
  --color-primary-100: #f0f7f5;
  --color-primary-200: #e0eeeb;
  --color-primary-300: #cfe5e0;
  --color-primary: #3f9783;
  --color-primary-500: #327969;
  --color-white: #fbfcfa;
  --text-font-family: 'Inter', sans-serif;
  --title-font-family: 'Lora', serif;
  --title-font-weight: 500;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font: normal 16px/1.5 sans-serif;
  /* zoom: 85%; */
}

body {
  background: var(--color-neutral-100);
  color: var(--color-black);
  font-family: var(--text-font-family);
}

h1 {
  color: var(--color-primary);
  font-family: var(--title-font-family);
  font-size: 2rem;
  font-weight: var(--title-font-weight);
  margin: 0;
}

h2 {
  color: var(--color-primary);
  font-family: var(--title-font-family);
  font-size: 1.5rem;
  margin: 0;
}

a {
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}

a:hover {
  color: var(--color-primary-500);
}

/*
  main
*/

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1.5rem 1rem 2rem;
  width: 100%;
  box-sizing: border-box;
}

main .content {
  margin: auto;
  max-width: 1680px;
  width: 96%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.main-header {
  margin: 0 0 1.2rem;
  width: 100%;
}

.main-header.grid {
  align-items: center;
  display: grid;
  grid-auto-flow: column;
  justify-content: space-between;
}

/*
  buttons
*/

.button {
  background: var(--color-primary);
  border: 0;
  border-radius: .25rem;
  color: var(--color-white);
  cursor: pointer;
  font: inherit;
  font-weight: 500;
  height: 2.5rem;
  line-height: 2.5rem;
  padding: 0 2rem;

  /* grid */
  align-items: center;
  display: grid;
  gap: .75rem;
  grid-auto-flow: column;
}

.button:hover {
  background: var(--color-primary-500);
}

.button i {
  font-size: 13px;
}

.button.icon {
  border-radius: 50%;
  justify-content: center;
  overflow: hidden;
  padding: 0;
  width: 2.5rem;
}

.button.link {
  background: none;
  color: var(--color-primary);
  justify-content: start;
  padding: 0;
}

.button.link:hover {
  color: var(--color-primary-500);
}

.button.link i {
  font-size: 13px;
}

/*
  cards
*/

.card {
  border: 1px solid var(--color-neutral);
  border-radius: .25rem;
  background: var(--color-white);
  margin: 0 0 2.5rem;
  overflow: auto;
  padding: 1.5rem 1.5rem 2.5rem;
  width: 100%;
}

/*
  inputs
*/

.checkbox {
  background: var(--color-white);
  border: 1px solid var(--color-neutral);
  border-radius: .25rem;
  cursor: pointer;
  height: 1.5rem;
  position: relative;
  width: 1.5rem;
}

.checkbox input[type="checkbox"] {
  cursor: pointer;
  height: 0;
  opacity: 0;
  position: relative;
  width: 0;
}

.checkbox .checkmark::after {
  background: var(--color-primary);
  border: 0;
  border-radius: .25rem;
  color: var(--color-white);
  content: "\f00c";
  display: block;
  font-family: "Font Awesome 6 Free";
  font-size: 13px;
  font-weight: 900;
  height: 1.5rem;
  width: 1.5rem;

  /* grid */
  display: grid;
  align-items: center;
  justify-content: center;

  /* position */
  position: absolute;
  left: -1px;
  top: -1px;
}

.checkbox .checkmark.minus::after {
  content: "\f068";
}

.checkbox .checkmark {
  display: none;
}

.checkbox input[type="checkbox"]:checked~.checkmark {
  display: block;
}

.select {
  background: var(--color-white);
  border: 1px solid var(--color-neutral);
  border-radius: .25rem;
  color: var(--color-black);
  display: inline-block;
  font: inherit;
  height: 2.5rem;
  margin: 0 1rem 0 0;
  position: relative;
  width: 16rem;
}

.select::after {
  content: "\f107";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  height: 2.5rem;
  line-height: 2.5rem;
  padding: 0 1rem;
  position: absolute;
  right: 0;
  top: 0;
}

select {
  display: flex;
  flex: 2;
  appearance: none;
  background-color: transparent;
  border: 0;
  cursor: inherit;
  font: inherit;
  height: 2.5rem;
  margin: 0;
  width: 100%;
  padding-left: 1rem;
}

select:focus {
  outline: none;
}

input[type="number"],
input[type="text"] {
  background: var(--color-white);
  border: 1px solid var(--color-neutral);
  border-radius: .25rem;
  color: var(--color-black);
  display: inline-block;
  font: inherit;
  height: 2.5rem;
  margin: 0 .5rem;
  padding: 0 1rem;
  width: 100%;
  margin: 0;
}

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

/*
  colors
*/

.colors {
  display: grid;
  justify-content: start;
  gap: 1.5rem;
  grid-auto-flow: column;
  margin: 2.5rem 0;
}

.color {
  border-radius: 50%;
  height: 4rem;
  width: 4rem;
}

.color.black {
  background: var(--color-black);
}

.color.neutral-100 {
  background: var(--color-neutral-100);
  border: 1px solid var(--color-neutral);
}

.color.neutral {
  background: var(--color-neutral);
}

.color.primary-100 {
  background: var(--color-primary-100);
  border: 1px solid var(--color-primary-300);
}

.color.primary-200 {
  background: var(--color-primary-200);
  border: 1px solid var(--color-primary-300);
}

.color.primary-300 {
  background: var(--color-primary-300);
}

.color.primary {
  background: var(--color-primary);
}

.color.primary-500 {
  background: var(--color-primary-500);
}

.color.white {
  background: var(--color-white);
  border: 1px solid var(--color-neutral);
}

/*
  paging
*/

.paging.grid {
  align-items: center;
  display: grid;
  gap: .75rem;
  grid-auto-flow: column;
}

.paging span {
  margin: 0 .75rem;
}

/*
  table
*/

table {
  border-collapse: collapse;
  width: 100%;
}

td,
th {
  /* border-bottom: 1px solid var(--color-primary-300); */
  font-size: 13px;
  text-align: center;
  white-space: nowrap;
}

th {
  padding: 1.25rem .75rem;
}

td {
  padding: .85rem;
  border: 1px solid var(--color-primary-300);
}

.alertDetails td {
  padding: .2.5rem;
}

tbody tr {
  /* cursor: pointer; */
}

tbody tr.selected td {
  background: var(--color-primary-200);
}

tbody tr:hover:not(.selected) td,
tbody tr.hover:not(.selected) td {
  background: var(--color-primary-100);
}

.table-footer,
.table-header {
  font-size: .875rem;
}

.table-footer {
  margin: -1.5rem 0 0;
}

.table-header {
  margin: 0 0 1rem;
}

.table-footer.grid,
.table-header.grid {
  align-items: center;
  display: grid;
  grid-auto-flow: column;
  justify-content: space-between;
}

.table-header-div {
  display: flex
}

.btn-div {
  display: flex;
  column-gap: 15px;
}

.edit-div {
  display: flex;
  /* justify-content: center; */
}

.edit {
  color: var(--color-primary);
  font-size: 13px;
}

.zone-btn,
.timer-btn {
  padding: 0 0.5rem;
  height: 1.5rem;
  line-height: 1.5rem;
  width: 100%;
  font-size: 12px;
}

.logo-div {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.subheading th {
  border: 1px solid var(--color-primary-300);
}

.text-search {
  width: 16rem;
}

/* The Modal (background) */
.modal {
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background-color: rgb(0, 0, 0);
  /* Fallback color */
  background-color: rgba(0, 0, 0, 0.4);
  /* Black w/ opacity */
}

.modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 50%;
  /* Could be more or less, depending on screen size */
}

/* The Close Button */


.row {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}

.hidden {
  display: none;
}

.zoneCheckbox {
  width: 20px;
  height: 20px;
}

.mt-1 {
  margin-top: 1rem;
}

.ml-1 {
  margin-left: 1rem;
  ;
}

.mb-1 {
  margin-bottom: 1rem;
}

.mb-2 {
  margin-bottom: 2rem;
}

.btn-red {
  background: rgb(180, 10, 10) !important;
}

.search-stock {
  width: 69%;
}

.searchResults {
  list-style: none;
  padding: 0;
  background: #fff;
  border: none;
  box-shadow: 0px 1px 4px 0px #aaa;
  position: absolute;
  width: 62%;
}

li.result {
  margin-left: 0;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding: 3px;
  cursor: pointer;
  font-size: 14px;
}

.result:hover {
  background: #ddf;
  box-shadow: 1px 1px 2px 1px #ccf;
}

.result:hover .addScript {
  display: block;
}

.remaining {
  background: #fefe8f;
  text-align: center;
  padding: 5px;
}

.text-center {
  text-align: center;
}

#zoneForm {
  margin-left: 15px;
}

.model-footer {
  display: flex;
  justify-content: center;
}

.model-footer .button {
  height: 2rem;
  line-height: normal;
}

#zoneForm .select {
  width: 15rem
}

.timer {
  width: 25%;
}

.timewidth {
  width: 96%;
}

.bysll_lineheight {
  position: absolute;
  margin-top: -1px;
}

.ml-4 {
  margin-left: 4rem;
}

.ml-11 {
  margin-left: .5rem
}

.timerrrow {
  width: 25.6rem;
}

.model_heading {
  color: #3f9783;
  font-weight: 600;
  font-family: var(--title-font-family);
}

.display-none {
  display: none;
}

.priceDiff {
  width: 96%;
}

.higher {
  background-color: #16a34a !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  opacity: 1 !important;
  transition: background-color 0.15s ease;
}

.lower {
  background-color: #dc2626 !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  opacity: 1 !important;
  transition: background-color 0.15s ease;
}

.bold {
  font-weight: 600;
}

#zoneError {
  color: rgb(180, 10, 10) !important
}

.alert {
  display: flex;
  width: 90%;
  position: absolute;
  top: 10px;
  right: 10px;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: end;
  color: #fff;
}

.alertDetails {
  width: 100%;
  margin: 0;
  padding: .75rem
}

.alertDetails p {
  margin: .35rem 0.75rem;
}

.alertBox {
  border: none;
  border-radius: 5px;
  box-shadow: 3px 3px 5px -1px #22222266;
  overflow: hidden;
  color: #fff;
  width: 30%;
}

.upside {
  margin: 1%;
  background: #337533;
  font-size: 11pt;
  display: none;
}

.alertTitle {
  text-align: center;
  font-weight: 600;
  padding: 10px;
}

.alertContent {
  display: flex;
  justify-content: space-between;
}

.upside .alertTitle {
  /* background: #49bb49; */
  /* background: #327969; */
}

.downside {
  margin: 1%;
  background: #b04b4b;
  font-size: 11pt;
  display: none;
}

.downside .alertTitle {
  /* background: #ff4646; */
  /* background: #327969; */
}

footer {
  width: 96%;
  max-width: 1680px;
  margin: 0 auto 12px;
  text-align: right;
  font-size: .80rem;
  font-weight: 400;
  color: var(--color-primary-500);
  padding: 0 4px;
  box-sizing: border-box;
}

.uco {
  font-size: .82rem;
  font-weight: 500;
  cursor: pointer;
}

.errMsg {
  margin: 1%;
  background: #b04b4b;
  font-size: 11pt;
  position: fixed;
  top: 0;
  right: 0;
}

.cross {
  display: flex;
  height: auto;
  position: absolute;
  right: 8px;
  top: 5px;
  cursor: pointer;
  font-size: 15px;
}

.actionDiv {
  display: flex;
  flex-direction: column;
  row-gap: 5px;
}

.timerDiv {
  background: #b04b4b;
  border: 0;
  border-radius: .25rem;
  color: var(--color-white);
  font: inherit;
  font-weight: 500;
  height: 2.5rem;
  padding: 0 0.5rem;
  height: 1.5rem;
  line-height: 1.5rem;
  width: 100%;
  font-size: 12px;
}

.autoreverse-cell {
  text-align: center;
  vertical-align: middle;
  padding: 4px 6px !important;
  min-width: 86px !important;
  white-space: nowrap !important;
  box-sizing: border-box;
}

.toggle-autoreverse-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 4px;
  width: 100%;
  max-width: 84px;
  height: 1.7rem;
  line-height: 1.7rem;
  font-size: 11px;
  font-weight: 700;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  white-space: nowrap;
  box-sizing: border-box;
}

.preset-chip {
  background: #ffffff;
  color: #334155;
  border: 1px solid #cbd5e1;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.preset-chip:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a;
  transform: translateY(-1px);
}

.preset-chip:active {
  transform: translateY(0);
}

.btn-reverse-on {
  background: #27ae60 !important;
  color: #ffffff !important;
}

.btn-reverse-on:hover {
  background: #219653 !important;
  box-shadow: 0 2px 5px rgba(39, 174, 96, 0.35);
}

.btn-reverse-off {
  background: #c0392b !important;
  color: #ffffff !important;
}

.btn-reverse-off:hover {
  background: #a93226 !important;
  box-shadow: 0 2px 5px rgba(192, 57, 43, 0.35);
}

.autorev-cell-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  vertical-align: middle;
}

.autorev-input-group {
  display: inline-flex;
  align-items: center;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 1px 4px;
  transition: all 0.2s ease;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
  height: 1.85rem;
  box-sizing: border-box;
}

.autorev-input-group:focus-within {
  border-color: #3b82f6;
  background: #ffffff;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.autorev-ms-input {
  width: 48px;
  height: 100%;
  padding: 0 2px;
  border: none;
  background: transparent;
  font-size: 11px;
  font-weight: 700;
  font-family: 'Consolas', 'Monaco', monospace;
  color: #1e293b;
  text-align: right;
  outline: none;
  -moz-appearance: textfield;
}

.autorev-ms-input::-webkit-outer-spin-button,
.autorev-ms-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.autorev-unit {
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
  margin-left: 2px;
  user-select: none;
}

.autorev-saved-flash {
  border-color: #10b981 !important;
  background-color: #ecfdf5 !important;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.35) !important;
  transition: all 0.15s ease-in-out;
}

.btn-sound-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.3px;
  transition: all 0.25s ease;
  user-select: none;
}

.btn-sound-on {
  background: #0d9488 !important;
  color: #ffffff !important;
  box-shadow: 0 2px 4px rgba(13, 148, 136, 0.25);
}

.btn-sound-on:hover {
  background: #0f766e !important;
  box-shadow: 0 3px 6px rgba(13, 148, 136, 0.35);
}

.btn-sound-off {
  background: #64748b !important;
  color: #ffffff !important;
  box-shadow: 0 2px 4px rgba(100, 116, 139, 0.25);
}

.btn-sound-off:hover {
  background: #475569 !important;
  box-shadow: 0 3px 6px rgba(100, 116, 139, 0.35);
}

.btn-block-clicks {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.4px;
  border-radius: 6px;
  padding: 6px 14px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  user-select: none;
  white-space: nowrap;
}

.btn-clicks-active {
  background: linear-gradient(135deg, #10b981, #059669) !important;
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.35) !important;
  animation: none !important;
}

.btn-clicks-active:hover {
  background: linear-gradient(135deg, #059669, #047857) !important;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.45) !important;
}

.btn-clicks-blocked {
  background: #64748b !important;
  color: #ffffff !important;
  box-shadow: 0 2px 4px rgba(100, 116, 139, 0.3) !important;
  animation: none !important;
}

.btn-clicks-blocked:hover {
  background: #475569 !important;
  box-shadow: 0 3px 8px rgba(100, 116, 139, 0.45) !important;
}

@keyframes pulseBlock {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}


/* ═══════════════════════════════════════════════════════════════
   PIN ON TOP (Always-On-Top) BUTTON STYLES
   ═══════════════════════════════════════════════════════════════ */
.btn-pin-ontop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.3px;
  border-radius: 6px;
  padding: 5px 12px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  user-select: none;
  white-space: nowrap;
}

.btn-pin-off {
  background: #64748b !important;
  color: #ffffff !important;
  box-shadow: 0 2px 4px rgba(100, 116, 139, 0.3);
}

.btn-pin-off:hover {
  background: #475569 !important;
  box-shadow: 0 3px 8px rgba(100, 116, 139, 0.45);
}

.btn-pin-on {
  background: linear-gradient(135deg, #f59e0b, #d97706) !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.45);
  animation: pulsePin 2s infinite;
}

.btn-pin-on:hover {
  background: linear-gradient(135deg, #d97706, #b45309) !important;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.55);
}

.btn-pin-on .fa-thumbtack {
  transform: rotate(-45deg);
}

@keyframes pulsePin {
  0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.5); }
  70% { box-shadow: 0 0 0 6px rgba(245, 158, 11, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}