@font-face {
    font-family: 'LemonMilk-Light';
    src: url('../fonts/LEMONMILK-Light.ttf');
}
@font-face {
    font-family: 'LemonMilk-Regular';
    src: url('../fonts/LEMONMILK-Regular.ttf');
}

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');

:root {
    --main-text-color: rgb(51, 51, 51);
    --status-pass-color: #248a3d;
    --status-fail-color: #d70015;
    --status-repair-color: #c49300;
    --status-blocked-color: #d70015;
    --status-shared-color: #0a84ff;
    --z-page-widget: 900;
    --z-banner-dropdown: 1000;
    --z-mobile-overlay: 1040;
    --z-mobile-drawer: 1050;
    --z-banner: 1055;
    --z-mobile-nav: 1060;
    --z-modal: 12000;
    --z-notification: 30000;
    --z-notification-toast: 30010;
}

body.dark-mode {
    --status-pass-color: #30d158;
    --status-fail-color: #ff453a;
    --status-repair-color: #ffd60a;
    --status-blocked-color: #ff453a;
    --status-shared-color: #64b5f6;
}

html { 
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: gray transparent;
}

body {
  background-color: #f5f5f7;
  transition: background 0.4s ease;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #1d1d1f;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 700;
  letter-spacing: -0.2px;
}

p, label, span, td, th, a, li, input, select, textarea, button {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.container {
    flex: 1;
}

footer {
    width: 100%;
}

.alert_banner {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    font-family: 'DM Sans', sans-serif;
    background: #dc5028;
    color: white;
    text-align: center;
    padding: 6px 0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    z-index: 101;
}
.alert_banner a {
    color: #fff;
    text-decoration: underline;
}

.btn {
  border-radius: 8px;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #1d1d1f;
  padding: 6px 14px;
  background: linear-gradient(180deg, #fafafa 0%, #e8e8ed 100%);
  border: 1px solid rgba(0, 0, 0, 0.12);
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 0.5px 1px rgba(0, 0, 0, 0.1);
  appearance: none;
  cursor: pointer;
  outline: none;
}

.btn:hover {
  background: linear-gradient(180deg, #ffffff 0%, #dddde2 100%);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.btn:active {
  background: linear-gradient(180deg, #e0e0e5 0%, #d0d0d5 100%);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08);
}

.btn:focus-visible {
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.25);
  border-color: rgba(0, 122, 255, 0.6);
}

/* Accents */
.btn-red {
  color: #fff;
  border: 1px solid #d70015;
  background: linear-gradient(180deg, #ff3b30 0%, #d70015 100%);
  box-shadow: 0 1px 3px rgba(215, 0, 21, 0.3);
}

.btn-red:hover {
  background: linear-gradient(180deg, #ff4f44 0%, #c00013 100%);
  box-shadow: 0 2px 6px rgba(215, 0, 21, 0.35);
}

.btn-red:active {
  background: linear-gradient(180deg, #c00013 0%, #a5000f 100%);
}

.btn-green {
  color: #fff;
  border: 1px solid #248a3d;
  background: linear-gradient(180deg, #34c759 0%, #248a3d 100%);
  box-shadow: 0 1px 3px rgba(36, 138, 61, 0.3);
}

.btn-green:hover {
  background: linear-gradient(180deg, #40d466 0%, #1f7a35 100%);
  box-shadow: 0 2px 6px rgba(36, 138, 61, 0.35);
}

.btn-green:active {
  background: linear-gradient(180deg, #1f7a35 0%, #186a2e 100%);
}

.btn-yellow {
  color: #1d1d1f;
  border: 1px solid #c49300;
  background: linear-gradient(180deg, #ffd60a 0%, #c49300 100%);
  box-shadow: 0 1px 3px rgba(196, 147, 0, 0.3);
}

.btn-yellow:hover {
  background: linear-gradient(180deg, #ffe033 0%, #b38600 100%);
  box-shadow: 0 2px 6px rgba(196, 147, 0, 0.35);
}

.btn-yellow:active {
  background: linear-gradient(180deg, #b38600 0%, #8a6800 100%);
}

/* Active/Selected outline */
.btn-active {
  border-color: #0071e3 !important;
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.2) !important;
}

/* Utilities */
.btn-right { float: right; }
.btn-small { font-size: 12px; padding: 5px 10px; }
.rounded { border-radius: 10px; }

/* Disabled */
.btn:disabled,
.btn[disabled] {
  cursor: not-allowed;
  background: #f0f0f0;
  border-color: rgba(0, 0, 0, 0.06);
  color: rgba(0, 0, 0, 0.3);
  box-shadow: none;
}

.btn:disabled:hover,
.btn[disabled]:hover {
  background: #f0f0f0;
  box-shadow: none;
}

.btn-red:disabled,
.btn-red:disabled:hover,
.btn-red[disabled] {
  background: rgba(255, 59, 48, 0.3);
  border-color: rgba(255, 59, 48, 0.2);
  color: rgba(255, 255, 255, 0.6);
}

.btn-green:disabled,
.btn-green:disabled:hover,
.btn-green[disabled] {
  background: rgba(52, 199, 89, 0.3);
  border-color: rgba(52, 199, 89, 0.2);
  color: rgba(255, 255, 255, 0.6);
}

.space {
    margin-top: 10px;
}

a:link {
    color: var(--main-text-color);
    text-decoration: none;
    font-weight: normal;
}

a:visited {
    color: var(--main-text-color);
}

a:hover {
    color: var(--main-text-color);
    text-decoration: underline;
}

a:active {
    color: var(--main-text-color);
}

a:focus {
    outline: 2px solid black;
    outline-offset: 2px;
}

h1, h2, h3, h4, h5 {
    color: var(--main-text-color);
    font-family: 'DM Sans', sans-serif; 
    font-weight: 600;
}

span {
  font-family: 'DM Sans', sans-serif;
}

p {
    color: var(--main-text-color);
    font-family: 'DM Sans', sans-serif;
    font-size: medium;
    font-weight: 400;
}

label {
    color: var(--main-text-color);
    font-family: 'DM Sans', sans-serif;
    font-size: small;
    font-weight: 500;
}

#textSelected, #textSelected_confirm {
    font-family: 'DM Sans', sans-serif; 
    margin-bottom: 5px;
    font-size: small;
}

#loading {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 29999;

    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px) saturate(180%);
    -webkit-backdrop-filter: blur(5px) saturate(180%);
    transition: opacity 0.5s ease;
    opacity: 1;
}
    
#loading img {
    width: 100px;
    height: 100px;
    animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.85; }
}

#loading.hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}


.lds-roller,
.lds-roller div,
.lds-roller div:after {
  box-sizing: border-box;
  color: red;
  filter: drop-shadow(0 0 8px rgba(255, 0, 0, 0.1))
          drop-shadow(0 0 16px rgba(255, 0, 0, 0.2));
  animation: redGlowPulse 2s ease-in-out infinite;
}

@keyframes redGlowPulse {
  0%, 100% {
    filter: drop-shadow(0 0 6px rgba(255, 0, 0, 0.2))
            drop-shadow(0 0 12px rgba(255, 0, 0, 0.15));
  }
  50% {
    filter: drop-shadow(0 0 14px rgba(255, 0, 0, 0.55))
            drop-shadow(0 0 30px rgba(255, 0, 0, 0.35));
  }
}

.lds-roller {
  display: inline-block;
  position: relative;
  width: 80px;
  height: 80px;
}
.lds-roller div {
  animation: lds-roller 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  transform-origin: 40px 40px;
}
.lds-roller div:after {
  content: " ";
  display: block;
  position: absolute;
  width: 7.2px;
  height: 7.2px;
  border-radius: 50%;
  background: currentColor;
  margin: -3.6px 0 0 -3.6px;
}
.lds-roller div:nth-child(1) {
  animation-delay: -0.036s;
}
.lds-roller div:nth-child(1):after {
  top: 62.62742px;
  left: 62.62742px;
}
.lds-roller div:nth-child(2) {
  animation-delay: -0.072s;
}
.lds-roller div:nth-child(2):after {
  top: 67.71281px;
  left: 56px;
}
.lds-roller div:nth-child(3) {
  animation-delay: -0.108s;
}
.lds-roller div:nth-child(3):after {
  top: 70.90963px;
  left: 48.28221px;
}
.lds-roller div:nth-child(4) {
  animation-delay: -0.144s;
}
.lds-roller div:nth-child(4):after {
  top: 72px;
  left: 40px;
}
.lds-roller div:nth-child(5) {
  animation-delay: -0.18s;
}
.lds-roller div:nth-child(5):after {
  top: 70.90963px;
  left: 31.71779px;
}
.lds-roller div:nth-child(6) {
  animation-delay: -0.216s;
}
.lds-roller div:nth-child(6):after {
  top: 67.71281px;
  left: 24px;
}
.lds-roller div:nth-child(7) {
  animation-delay: -0.252s;
}
.lds-roller div:nth-child(7):after {
  top: 62.62742px;
  left: 17.37258px;
}
.lds-roller div:nth-child(8) {
  animation-delay: -0.288s;
}
.lds-roller div:nth-child(8):after {
  top: 56px;
  left: 12.28719px;
}
@keyframes lds-roller {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.itemsperpage-container {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #6e6e73;
}

.itemsperpage-container label {
  font-size: 13px;
  font-weight: 500;
  color: #6e6e73;
  white-space: nowrap;
}

.itemsperpage-container .drpdwn {
  width: auto !important;
  min-width: 56px;
  padding: 5px 28px 5px 10px;
  font-size: 13px;
  border-radius: 8px;
}

a{
    text-decoration: none;
}


.container {
    display: flex;
    flex-direction: column; 
    align-items: center; 
    padding: 0 20px;
}

th:visited, a:visited { text-decoration: none; color:rgb(0, 0, 0); }

/* Table Container */
  .table-container td, .table-container th {
  color: var(--main-text-color);
  padding: 6px 12px;
  font-size: 0.775rem;
  box-sizing: border-box;
}

.table-container th {
  color: #6b7280;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-align: left;
  position: relative;
  background: rgba(0,0,0,0.02);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  font-size: 9.5px;
}
.dark-mode .table-container th { color: #9aa0a6; }
/* Sortable header links inherit the muted look; orange on hover (matches the Containers page). */
.table-container th a { color: inherit; text-decoration: none; }
.table-container th:hover, .table-container th a:hover { color: #dc5028; }

.table-container button, .table-container input[type="text"], .table-container input[type="number"] {
  font-size: 0.813rem;
}

.table-container .btn {
  font-size: 9px;
  padding: 3px 8px;
}

.table-container tr:nth-child(even) {
  background-color: transparent;
}

.table-container tr:not(:first-child) td {
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.table-container tr:not(:first-child):hover {
  background-color: rgba(0,0,0,0.02);
  transition: background-color .15s ease;
}

.table-container {
  border: 1px solid rgba(0,0,0,0.08);
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 12px;
  width: 100%;
  max-width: 1500px;
  margin-bottom: 30px;
  background: rgba(255,255,255,0.6);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  position: relative;
  overflow-x: auto;
}

.table-container tr.highlighted-row {
  background-color: rgba(0,122,255,0.12) !important;
}

.table-container tr.highlighted-row-dark {
  background-color: rgb(19, 75, 93) !important;
  color: white;
}
/* Base resizer handle */
.th-resizer {
  position: absolute;
  top: 0;
  right: 0;
  width: 10px;
  height: 100%;
  cursor: col-resize;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Default thin divider (macOS-style translucent) */
.th-resizer::before {
  content: "";
  width: 1px;
  height: 70%;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 1px;
  transition: all 0.2s ease;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

/* Hover effect – a soft highlight and stronger contrast */
th:hover .th-resizer::before {
  background: rgba(0, 0, 0, 0.25);
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.05);
  transform: scaleY(1.05);
  opacity: 0.9;
}

/* Active (dragging) state – glowing Apple blue accent */
th.resizing .th-resizer::before {
  background: #0a84ff;
  box-shadow:
    0 0 4px rgba(10, 132, 255, 0.7),
    0 0 10px rgba(10, 132, 255, 0.5);
  transform: scaleY(1.1);
}

.col-resize-guide {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #db02c1;
  pointer-events: none;
  display: none;
  z-index: 3;
}

.table-container.resizing .col-resize-guide {
  display: block;
}

.table-container th:last-child .th-resizer {
  display: none;
}

/* Table Container END */

.pagination {
  font-family: 'DM Sans', sans-serif;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  margin: 10px 0;
  font-size: 13px;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 4px;
  text-decoration: none;
  color: #1d1d1f;
  border-radius: 8px;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}

.pagination span {
  color: #86868b;
  font-size: 12px;
}

.pagination a:hover {
  background: rgba(0,0,0,0.05);
}

.pagination a.current-page {
  background: #dc5028;
  color: #fff;
  font-weight: 700;
  border: none;
}

.pagination a.current-page:hover {
  background: #c2422a;
}

button,
li,
table,
th,
td {
    color: var(--main-text-color);
    font-family: 'DM Sans', sans-serif;
    font-size: medium;
    font-weight: 400;
}

.passed {
    font-family: 'DM Sans', sans-serif;
    color: green;
    font-weight: bold;
}

.failed {
    font-family: 'DM Sans', sans-serif;
    color: red;
}

.button-container{
  display:flex;
  flex-wrap: nowrap;
  gap: 4px;
  justify-content: center;
  align-items: center;
  max-width: 100%;
}

.button-container a,
.button-container form { margin: 0; }

.button-container button{
  float: none;
  white-space: nowrap;
}

.user-licenses-container{
            font-family: 'DM Sans';
        }

.profile-content {
    margin: 0 auto; 
    max-width: 1200px;
    padding: 20px; 
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); 
}

.user-profile-container, .user-licenses-container {
    margin-bottom: 20px; 
}

.user-profile-container h3, .user-licenses-container h3 {
    margin-top: 0; 
}

.license-item {
    background-color: #f9f9f9; 
    padding: 10px; 
    border-radius: 5px;
    margin-top: 10px;
    list-style-type: none;
}

.license-info {
    min-width: 800px;
    margin: 0;
}

.license-info input[type="text"], .license-info input[type="password"] {
    color: rgb(0, 0, 0);
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: fadeIn 0.25s ease;
  overflow: auto;
}

.modal-content {
  background: #f5f5f7;
  border: 1px solid rgba(0, 0, 0, 0.10);
  margin: 8vh auto;
  padding: 24px;
  width: min(80%, calc(100% - 32px));
  max-width: 440px;
  border-radius: 14px;
  color: #1d1d1f;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.16), 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.modal-content--wide {
  max-width: 900px;
  width: min(900px, calc(100% - 40px));
}

.add-device-modal-table-wrap {
  margin-top: 12px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.55);
}

.add-device-modal-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
}

.add-device-modal-table th {
  text-align: left;
  padding: 10px 12px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.65);
  background: rgba(0, 0, 0, 0.03);
}

.add-device-modal-table td {
  padding: 10px 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  color: rgba(0, 0, 0, 0.88);
}

.add-device-modal-table tbody tr:hover td {
  background: rgba(0, 0, 0, 0.02);
}

.add-device-empty-row td {
  text-align: center;
  color: rgba(0, 0, 0, 0.6);
}

.add-device-actions-inline {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.dark-mode .add-device-modal-table-wrap {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(20, 20, 20, 0.35);
}

.dark-mode .add-device-modal-table th {
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.06);
}

.dark-mode .add-device-modal-table td {
  border-top-color: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.88);
}

.dark-mode .add-device-modal-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.05);
}

.dark-mode .add-device-empty-row td {
  color: rgba(255, 255, 255, 0.65);
}


  @keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

  .modal-form {
    text-align: left;
    padding: 8px 0 0;
  }

  .close {
    float: right;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    color: #86868b;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
    line-height: 1;
  }

  .close:hover,
  .close:focus {
    background: rgba(0, 0, 0, 0.1);
    color: #1d1d1f;
    text-decoration: none;
  }

.modal-content input[type="date"],
.modal-content input[type="datetime"],
.modal-content input[type="datetime-local"] {
    font-family: 'DM Sans', sans-serif;
    font-size: smaller;
    display: inline-block;
}

 .license-key {
    font-family: 'DM Sans', sans-serif;
    font-size: larger;
    width: 280px;
    display: inline-block;
    border: none;
    background: transparent;
    outline: none;
    cursor: default;
 }

 /*  ADMIN    */

.user-info {
    margin-bottom: 20px;
}

.user-details {
    background-color: rgb(239, 239, 239);
    padding: 20px;
}

.user-license{
    background-color: rgb(228, 228, 228);
    margin-bottom: 20px;
    padding: 20px;
}

.modify-button {
    float: right;
    margin-right: 5px;
}

.tab {
    overflow: hidden;
    background-color: #f1f1f1;
    max-width: 80%;
    margin: auto;
}

.tab button {
    background-color: inherit;
    float: left;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 14px 16px;
    transition: 0.3s;
    font-size: 17px;
}

.tab button:hover {
    background-color: #ddd;
}

.tab button.active {
    background-color: #ccc;
}

.tabcontent {
    padding: 6px 12px;
    border-top: none;
    max-width: 80%;
    margin: auto;
}

.url-cell {
    max-width: 300px; 
    word-wrap: break-word;
}

.top-bar {
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar .right-buttons {
    margin-left: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.top-bar .right-buttons .btn {
    font-size: 10px;
    padding: 6px 12px;
}
.top-bar .right-buttons form,
.top-bar .right-buttons .trash-button,
.top-bar .right-buttons .print-form {
    display: inline-flex;
    margin: 0;
}
.top-bar .right-buttons .trash-button form {
    display: inline-flex;
}

.top-bar .rev {
  display:flex;
    justify-content:flex-end;
}

/* ========================================
   GLOBAL TOOLBAR — search + meta row
   ======================================== */
.dsu-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.dsu-toolbar .search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  flex: 1;
  min-width: 0;
}

.dsu-toolbar .toolbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.dsu-toolbar .toolbar-right .entries-text {
  font-size: 12px;
  font-weight: 500;
  color: #86868b;
  white-space: nowrap;
  margin: 0;
}

.dsu-toolbar .toolbar-right .entries-text strong {
  color: #1d1d1f;
  font-weight: 700;
}

.dsu-toolbar .toolbar-right .ipp-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dsu-toolbar .toolbar-right .ipp-group label {
  font-size: 12px;
  font-weight: 500;
  color: #86868b;
  white-space: nowrap;
}

.dsu-toolbar .toolbar-right .ipp-select {
  width: auto !important;
  min-width: 56px;
  padding: 5px 28px 5px 10px;
  font-size: 12px;
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 8px;
  background: #f5f5f7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2386868b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 8px center / 10px;
  color: #1d1d1f;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  cursor: pointer;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.dsu-toolbar .toolbar-right .ipp-select:focus {
  border-color: #dc5028;
  box-shadow: 0 0 0 3px rgba(220,80,40,0.08);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23dc5028' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}

@media (max-width: 640px) {
  .dsu-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .dsu-toolbar .search-bar {
    width: 100%;
  }
  .dsu-toolbar .toolbar-right {
    justify-content: space-between;
  }
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.search-bar input[type="text"] {
  flex: 1;
  max-width: 360px;
  padding: 8px 14px;
  font-size: 13px;
  font-family: 'DM Sans', sans-serif;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 10px;
  background: #fff;
  color: #1d1d1f;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-bar input[type="text"]:focus {
  border-color: #dc5028;
  box-shadow: 0 0 0 3px rgba(220,80,40,0.10);
  outline: none;
}

.search-bar .search-btn {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 16px;
  border: none;
  border-radius: 10px;
  background: #dc5028;
  color: #fff;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.search-bar .search-btn:hover {
  background: #c2422a;
}

.search-bar .search-btn:active {
  background: #b03a24;
}

.search-bar .reset-btn {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 14px;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 10px;
  background: #f5f5f7;
  color: #1d1d1f;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.search-bar .reset-btn:hover {
  background: #eeeef0;
  border-color: rgba(0,0,0,0.15);
}

.search-bar .reset-btn:active {
  background: #e5e5e7;
}

/* Legacy search button/reset-button class support */
.search-bar .search-button {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 4px 10px;
  border: none;
  border-radius: 10px;
  background: #dc5028;
  color: #fff;
  cursor: pointer;
  transition: background 0.15s;
}

.search-bar .search-button:hover {
  background: #c2422a;
}

.search-bar .search-button:active {
  background: #b03a24;
}

.search-bar .reset-button {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 4px 10px;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 10px;
  background: #f5f5f7;
  color: #1d1d1f;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.search-bar .reset-button:hover {
  background: #eeeef0;
  border-color: rgba(0,0,0,0.15);
}

.search-bar .reset-button:active {
  background: #e5e5e7;
}

.right-buttons .recycling-bin {
    font-size: x-large;
    transition: font-size 0.2s ease;
}

.right-buttons .recycling-bin:hover {
    font-size: xx-large;
}

.trash-button{
    display: inline-block;
}

@keyframes shake {
    0% { transform: translateX(0); }
    10% { transform: translateX(-3px); }
    20% { transform: translateX(3px); }
    30% { transform: translateX(-3px); }
    40% { transform: translateX(3px); }
    50% { transform: translateX(-3px); }
    60% { transform: translateX(3px); }
    70% { transform: translateX(-3px); }
    80% { transform: translateX(3px); }
    90% { transform: translateX(-3px); }
  }
  
  .shake {
    animation: shake 0.5s;
  }

  drop-area {
    border: 2px dashed #ccc;
    border-radius: 5px;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
}

.uploaded-image {
    max-width: 20%;
    padding: 2%;
}

input::placeholder, textarea::placeholder { 
    font-size: small;
}

input[type="text"],
textarea,
input[type="number"],
input[type="date"],
input[type="datetime"],
input[type="datetime-local"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="url"],
select {
  width: 100%;
  font-size: 15px;
  font-family: 'SF Pro Text', 'DM Sans', sans-serif;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.088);
  color: #111;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4),
              0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.25s ease;
  outline: none;
  box-sizing: border-box;
}

.listing-description-textarea {
  margin-top: 10px;
}



/* ---- FOCUS STATE ---- */
input:focus,
textarea:focus,
select:focus {
  border-color: rgba(0, 122, 255, 0.6);
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.18);
  background: rgba(255, 255, 255, 0.2);
}

.table-device-container {
    border-collapse: collapse;
    width: 100%;
    max-width: 1500px;
    overflow-x: auto;
}

.table-device-container td {
    padding: 5px 8px;
    font-size: 12px;
}

.table-device-container td:first-child {
    font-weight: 600;
    color: #86868b;
    font-size: 11px;
}

.table-device-container td:first-child label {
    font-weight: 600 !important;
    color: #86868b !important;
    font-size: 11px !important;
}

.left-text p, .left-text a {
    font-size: small;
}

.left-text a:hover {
    text-decoration: underline;
}

.table-modal {
    width: 100%;
}

.table-modal label {
    font-size: small;
    float:inline-end;
}

.table-modal textarea {
    height: 100px;
}

.images-table {
    width: 100%;
    table-layout: fixed; /* Fix table layout */
    border-collapse: separate; /* Allows for border-spacing */
    border-spacing: 10px; /* Space between cells */
}

.images-table td {
    width: 20%;
    max-width: 140px;
    padding: 10px;
}

.image-container {
    position: relative;
    display: inline-block;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-container .loading-overlay {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10;
    justify-content: center;
    align-items: center;
}

.image-container .loading-overlay.active {
    display: flex;
}

.image-container .loading-overlay span {
    color: white;
    font-size: 10px;
}

.image-container img {
    width: 120px;
    height: auto;
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 10px;
}

.image-container:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.image-container .loading-overlay {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 5; /* lower than buttons */
    justify-content: center;
    align-items: center;
}

/* common button base (optional but recommended) */
.delete-button,
.edit-button,
.rembg-button {
    position: absolute;
    top: 5px;
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 16px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1;
    z-index: 10; /* above overlay */
}

/* individual positions */
.delete-button {
    right: 5px;
}

.edit-button {
    right: 35px;
}

.rembg-button {
    right: 65px;
}

/* hover reveals all three */
.image-container:hover .delete-button,
.image-container:hover .edit-button,
.image-container:hover .rembg-button {
    display: flex;
}

.delete-button:hover,
.edit-button:hover,
.rembg-button:hover {
    background-color: rgba(0, 0, 0, 0.9);
}

.image-count {
    position: absolute;
    top: 0;
    right: 0;
    margin: 15px;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 10px;
    border-radius: 5px;
}

.report-container {
    width: 80%;
    max-width: 1300px;
    margin: auto;
    transition: background 0.4s ease;
}

.section-row {
    max-width: 1500px;
    display: flex; 
    justify-content: space-between; 
    flex-wrap: wrap;
    gap: 20px;
}

.section {
  flex: 1;

  margin-bottom: 30px;
  max-width: 1500px;
  padding: 32px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 8px 24px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.3s ease;
  position: relative;
}

.section:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 10px 32px rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.55);
}

.section a {
    color: black;
 }

.section a:hover {
    text-decoration: underline;
 }

.actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.actions button {
    margin-right: 10px;
    margin-bottom: 20px;
}

.section-row .section:last-child {
    margin-right: 0;
}

.addItemToSO {
    padding: 10px;
    margin: 0;
}

.addItemToSO input[type="number"] {
    width: 100px;
}

.tdhover {
    font-weight: 900;
    white-space: nowrap;
}

.tdhover:hover {
    background-color: transparent;
}

.tdhover span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.tdhover span::after {
    content: '\f303';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 9px;
    line-height: 1;
    color: transparent;
    transition: color 0.15s ease;
    flex-shrink: 0;
}

.tdhover:hover span {
    border-bottom: 1.5px dashed rgba(0, 0, 0, 0.35);
    padding-bottom: 1px;
}

.tdhover:hover span::after {
    color: #86868b;
}

#notification-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    left: auto;
    z-index: var(--z-notification);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#dsu-inapp-toast-root {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: var(--z-notification-toast);
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(360px, calc(100vw - 40px));
  min-width: min(280px, calc(100vw - 40px));
  max-width: min(360px, calc(100vw - 40px));
  pointer-events: none;
}

.dsu-toast {
  pointer-events: auto;
  width: 100%;
  border-radius: 16px;
  padding: 10px 10px 8px;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.70), rgba(255,255,255,0.20)),
    linear-gradient(135deg, rgba(255,255,255,0.88), rgba(235,235,240,0.92));
  border: 1px solid rgba(200,200,210,0.55);
  box-shadow: 0 18px 40px rgba(0,0,0,0.12);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  color: #0f172a;
  transform: translateY(0);
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.dsu-toast--leaving {
  opacity: 0;
  transform: translateY(6px);
}

.dsu-toast__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.dsu-toast__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59,130,246,0.18);
  flex: 0 0 auto;
}

.dsu-toast--success .dsu-toast__dot {
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34,197,94,0.18);
}
.dsu-toast--warning .dsu-toast__dot {
  background: #eab308;
  box-shadow: 0 0 0 4px rgba(234,179,8,0.20);
}
.dsu-toast--error .dsu-toast__dot {
  background: #ef4444;
  box-shadow: 0 0 0 4px rgba(239,68,68,0.18);
}

.dsu-toast__title {
  font-family: 'SF Pro', 'SFPro-Regular', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.01em;
  flex: 1 1 auto;
}

.dsu-toast__close {
  border: 0;
  background: transparent;
  color: rgba(15, 23, 42, 0.6);
  font-size: 20px;
  line-height: 20px;
  padding: 0 4px;
  cursor: pointer;
  flex: 0 0 auto;
}
.dsu-toast__close:hover {
  color: rgba(15, 23, 42, 0.9);
}

.dsu-toast__message {
  font-family: 'SF Pro', 'SFPro-Regular', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 13px;
  line-height: 1.35;
  color: rgba(15, 23, 42, 0.86);
  white-space: pre-wrap;
  word-break: break-word;
}

.dsu-toast__actions {
  margin-top: 10px;
}
.dsu-toast__action {
  display: inline-flex;
  align-items: center;
  font-family: 'SF Pro', 'SFPro-Regular', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.55);
  background: rgba(255,255,255,0.65);
  text-decoration: none;
  color: rgba(15, 23, 42, 0.90);
}
.dsu-toast__action--inline {
  margin-left: 8px;
  vertical-align: baseline;
}
.dsu-toast__action:hover {
  background: rgba(255,255,255,0.85);
}

.dark-mode #dsu-inapp-toast-root {
  color: #e5e7eb;
}

.dark-mode .dsu-toast {
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.16), rgba(255,255,255,0.04)),
    linear-gradient(135deg, rgba(0,0,0,0.82), rgba(30,30,35,0.95));
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 18px 40px rgba(0,0,0,0.40);
  color: #f9fafb;
}

.dark-mode .dsu-toast__close {
  color: rgba(249,250,251,0.62);
}
.dark-mode .dsu-toast__close:hover {
  color: rgba(249,250,251,0.92);
}

.dark-mode .dsu-toast__message {
  color: rgba(249,250,251,0.82);
}

.dark-mode .dsu-toast__action {
  background: rgba(31,41,55,0.82);
  border-color: rgba(148,163,184,0.35);
  color: rgba(249,250,251,0.90);
}
.dark-mode .dsu-toast__action:hover {
  background: rgba(31,41,55,0.95);
}

@media (max-width: 768px) {
  #dsu-inapp-toast-root {
    left: 50% !important;
    bottom: 12px !important;
    transform: translateX(-50%);
    width: min(300px, calc(100vw - 24px)) !important;
    min-width: min(240px, calc(100vw - 24px)) !important;
    max-width: min(300px, calc(100vw - 24px)) !important;
  }
  .dsu-toast {
    padding: 8px 8px 6px;
    border-radius: 12px;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .dsu-toast__title { font-size: 12px; }
  .dsu-toast__message { font-size: 12px; }
  .dsu-toast__dot { width: 6px; height: 6px; }
  .dsu-toast__header { gap: 8px; margin-bottom: 4px; }

  /* Kill backdrop-filter on mobile to prevent scroll shaking */
  .section,
  .section:hover,
  #inbound-order-container .left-panel,
  #inbound-order-container .right-panel,
  #inbound-order-container .left-panel:hover,
  #inbound-order-container .right-panel:hover,
  .notification,
  .error,
  .dsu-toast,
  .modal,
  .modal-content {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  .section,
  .section:hover,
  .notification,
  .notification:hover,
  .error,
  #inbound-order-container .left-panel,
  #inbound-order-container .right-panel,
  #inbound-order-container .left-panel:hover,
  #inbound-order-container .right-panel:hover {
    transition: none !important;
    transform: none !important;
  }
  .th-resizer::before {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}

.notification {
    width: 300px;
    background-color: rgba(0, 170, 0, 0.65);
    color: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255,255,255,0.4);
    font-size: 16px;
    max-width: 90%;
    font-size: 12px;
    opacity: 1;
    animation: fadeOut 5s ease-out forwards;
    font-family: 'DM Sans', sans-serif; 
    text-align: center;
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.45);
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.notification:hover {
    transform: translateY(-2px) scale(1.02);
}

.error {
    width: 300px;
    background-color: rgba(131, 26, 7, 0.65);
    color: rgb(251, 146, 146);
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255,255,255,0.4);
    font-size: 16px;
    max-width: 90%;
    opacity: 1;
    animation: fadeOut 8s ease-out forwards;
    font-family: 'DM Sans', sans-serif; 
    font-size: 12px;
    text-align: center;
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.45);
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.error:hover {
    transform: translateY(-2px) scale(1.02);
}

@keyframes fadeOut {
    0% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

.table-controls {
  font-family: 'DM Sans', sans-serif;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  width: 100%;
  max-width: 1400px;
}

.table-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
}
.table-filters input,
.table-filters select,
.table-filters label,
.table-filters span,
.table-filters .btn {
  font-size: 10px !important;
}

.table-filters .drpdwn {
  width: auto !important;
  min-width: 100px;
  padding: 6px 30px 6px 10px;
  font-size: 13px;
  border-radius: 8px;
}

/* ---- Table Meta Bar: entries count + items-per-page in a tight row ---- */
.table-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 4px 0 8px;
  font-size: 13px;
  color: #6e6e73;
}

.table-meta-bar p {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: #6e6e73;
}

.dark-mode .table-meta-bar p {
  color: #a1a1a6;
}


@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');
    @font-face {
    font-family: 'LemonMilk-Light';
    src: url('fonts/LEMONMILK-Light.ttf');
}
@font-face {
    font-family: 'LemonMilk-Regular';
    src: url('fonts/LEMONMILK-Regular.ttf');
}
.banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 24px;
    margin: 0;
    position: relative;
    background-color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: background-color 0.3s ease, border-color 0.3s ease;
    z-index: 4;
}

.banner-search {
    display: inline-flex;
    align-items: center;
    margin-right: auto;
    padding: 0 24px;
}

.banner-search-input {
    min-width: 220px;
    padding: 7px 14px !important;
    font-size: 13px !important;
    font-family: 'DM Sans', sans-serif !important;
    border-radius: 10px !important;
    background: #f5f5f7 !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
    color: #1d1d1f !important;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.banner-search-input::placeholder {
    color: #86868b;
    font-size: 13px;
}

.banner-search-input:focus {
    background: #fff !important;
    border-color: #dc5028 !important;
    box-shadow: 0 0 0 3px rgba(220, 80, 40, 0.10) !important;
}

.bottom-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.profile-logout {
    font-family: 'DM Sans', sans-serif;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
    white-space: nowrap;
}

/* Desktop: logout & dark mode sit inline in the nav bar */
.menu-bottom-utils {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    white-space: nowrap;
}

.menu-bottom-utils .menu-util-btn {
    font-size: 13px;
    font-weight: 500;
    padding: 0;
    text-decoration: none;
    color: #3a3a3c;
    border-radius: 8px;
    transition: background-color 0.15s ease, color 0.15s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
    flex: 0 0 40px;
}

.menu-bottom-utils .menu-util-btn:hover {
    background-color: rgba(0, 0, 0, 0.04);
}

.dark-mode .menu-bottom-utils .menu-util-btn {
    color: #d1d1d6;
}

.menu-bottom-utils .menu-util-btn i {
    line-height: 1;
}

.dark-mode .menu-bottom-utils .menu-util-btn:hover {
    background-color: rgba(255, 255, 255, 0.06);
}

.logo {
    width: 100px;
    max-width: 150px;
    transition: opacity 0.2s ease;
}

.logo:hover {
    opacity: 0.7;
}

.profile-logout a {
    font-size: 12px;
    font-weight: 500;
    padding: 5px 9px;
    text-decoration: none;
    color: #3a3a3c;
    border-radius: 8px;
    transition: background-color 0.15s ease, color 0.15s ease;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    line-height: 1;
}

.profile-logout a:hover {
    background-color: rgba(0, 0, 0, 0.04);
    color: #dc5028;
    text-decoration: none !important;
}

.hamburger-menu {
    display: none;
    flex-direction: column;
    align-items: flex-end;
    margin-right: 20px;
}

/* Mobile-only barcode scan button — hidden on desktop, shown beside the hamburger
   inside the max-width:1450px media query. */
.banner-scan-button {
    display: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
    color: #3a3a3c;
    font-size: 18px;
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.15s ease;
}

.banner-scan-button:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.dark-mode .banner-scan-button {
    color: #f5f5f7;
}

.hamburger-menu-button {
    display: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background-color 0.15s ease;
}

.hamburger-menu-button:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.hamburger-menu-button .bar {
    width: 20px;
    height: 2px;
    background-color: #3a3a3c;
    margin: 3px 0;
    border-radius: 2px;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

/* ========================================
   DESKTOP NAV — dropdown menus (>990px)
   ======================================== */
.menu-option {
    position: relative;
    flex: 0 0 auto;
}

.menu-option a {
    color: var(--main-text-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    line-height: 1;
}

.menu-option a:hover {
    text-decoration: none !important;
}

.devices-menu > a {
    display: flex;
    align-items: center;
    gap: 4px;
}

.devices-menu > a::after {
    content: '';
    width: 5px;
    height: 5px;
    border-right: 1.5px solid #86868b;
    border-bottom: 1.5px solid #86868b;
    transform: rotate(45deg);
    margin-top: -2px;
    flex-shrink: 0;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.devices-menu:hover > a::after {
    transform: rotate(-135deg);
    margin-top: 2px;
    border-color: #dc5028;
}

.devices-dropdown {
    display: none;
}

@media (min-width: 1451px) {
    .devices-menu:hover > a {
        color: #dc5028;
    }

    .devices-dropdown {
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%) translateY(4px);
        opacity: 0;
        min-width: 220px;
        padding: 6px;
        background: #fff;
        border: 1px solid rgba(0,0,0,0.06);
        border-radius: 12px;
        box-shadow: 0 12px 40px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
        z-index: var(--z-banner-dropdown);
        white-space: nowrap;
        transition: opacity 0.18s ease, transform 0.18s ease;
    }

    /* Invisible bridge to prevent hover gap */
    .devices-menu::after {
        content: '';
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        height: 8px;
        display: none;
    }

    .devices-menu:hover::after {
        display: block;
    }

    .devices-menu:hover .devices-dropdown {
        display: block;
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    .devices-dropdown a {
        display: flex;
        align-items: center;
        font-size: 12.5px;
        font-weight: 500;
        padding: 8px 12px;
        border-radius: 8px;
        color: #1d1d1f;
        transition: background-color 0.15s ease, color 0.15s ease;
        letter-spacing: -0.01em;
    }

    .devices-dropdown a:hover {
        background-color: rgba(220, 80, 40, 0.06);
        color: #dc5028;
    }
}

/* ========================================
   MOBILE NAV — slide-in panel (≤1450px)
   ======================================== */

.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: var(--z-mobile-overlay);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-overlay.active {
    display: block;
    opacity: 1;
}

@media (max-width: 1450px) {
    .banner {
        padding: 12px 16px;
        /* Must sit ABOVE the page-dimness overlay (1040) so the banner bar stays
           crisp and tappable while the menu is open. Forced when the menu is open
           so it always wins over the dim, regardless of source order. */
        z-index: var(--z-banner);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background-color: #ffffff;
        position: relative;
    }
    body.menu-open .banner {
        z-index: var(--z-banner);
    }
    .dark-mode .banner {
        background-color: #1c1c1e;
    }

    .banner-search {
        padding: 0 12px;
    }

    .banner-search-input {
        min-width: 140px;
    }

    .banner-scan-button {
        display: inline-flex;
        margin-right: 4px;
        position: relative;
        /* Sit BELOW the slide-in drawer (--z-mobile-drawer: 1050) so the open menu
           covers it. The hamburger stays above (--z-mobile-nav) because it doubles
           as the close button. */
        z-index: var(--z-mobile-overlay);
    }

    .hamburger-menu-button {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 36px;
        height: 36px;
        position: relative;
        z-index: var(--z-mobile-nav);
    }

    .hamburger-menu-button .bar {
        position: absolute;
        transition: transform 0.3s ease, opacity 0.2s ease;
    }

    .hamburger-menu-button .bar:nth-child(1) { transform: translateY(-5px); }
    .hamburger-menu-button .bar:nth-child(3) { transform: translateY(5px); }

    .hamburger-menu-button.open .bar:nth-child(1) {
        transform: rotate(45deg);
    }

    .hamburger-menu-button.open .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger-menu-button.open .bar:nth-child(3) {
        transform: rotate(-45deg);
    }

    /* Hide ProCut nav on mobile */
    .hide-procut-mobile { display: none !important; }

    /* Slide-in panel */
    .profile-logout {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 300px;
        max-width: 85vw;
        background-color: #ffffff;
        z-index: var(--z-mobile-drawer);
        flex-direction: column;
        align-items: stretch;
        padding: 72px 0 24px 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        transform: translateX(100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
        display: flex;
        gap: 0;
    }

    .profile-logout.active {
        transform: translateX(0);
    }

    /* Menu items */
    .profile-logout .menu-option {
        margin: 0;
        padding: 0 12px;
    }

    .profile-logout a {
        display: block;
        font-size: 15px;
        font-weight: 500;
        padding: 12px 16px;
        border-radius: 10px;
        color: #1d1d1f;
        transition: background-color 0.12s ease;
    }

    .profile-logout a:hover {
        background-color: rgba(0, 0, 0, 0.04);
        text-decoration: none !important;
    }

    /* Submenu items in mobile — inline accordion below parent */
    .profile-logout .devices-menu {
        position: static;
    }

    .profile-logout .devices-menu .devices-dropdown {
        display: none;
        position: static !important;
        float: none !important;
        left: auto !important;
        top: auto !important;
        right: auto !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        padding: 0;
        margin: 0;
        border: none;
        border-radius: 0;
        box-shadow: none;
        background: transparent;
        z-index: auto;
        overflow: visible;
    }

    .profile-logout .devices-menu .devices-dropdown::before {
        display: none;
    }

    .profile-logout .devices-menu.submenu-open .devices-dropdown {
        display: block !important;
    }

    .profile-logout .devices-dropdown a {
        font-size: 14px;
        font-weight: 400;
        color: #6e6e73;
        padding: 8px 16px 8px 32px;
        border-radius: 8px;
        white-space: normal;
    }

    .profile-logout .devices-dropdown a:hover {
        background-color: rgba(0, 0, 0, 0.03);
        color: #1d1d1f;
    }

    /* Chevron indicator for items with submenus */
    .devices-menu > a {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
    }

    .devices-menu > a::after {
        content: '';
        width: 6px;
        height: 6px;
        border-right: 1.5px solid #86868b;
        border-bottom: 1.5px solid #86868b;
        transform: rotate(-45deg);
        transition: transform 0.25s ease;
        flex-shrink: 0;
        margin-left: 8px;
    }

    .devices-menu.submenu-open > a::after {
        transform: rotate(45deg);
    }

    /* Bottom utilities (logout + dark mode) */
    .profile-logout .menu-bottom-utils {
        margin-top: auto;
        border-top: 1px solid rgba(0, 0, 0, 0.06);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 16px;
        padding: 16px 12px;
    }

    .dark-mode .profile-logout .menu-bottom-utils {
        border-top-color: rgba(255, 255, 255, 0.06);
    }

    .profile-logout .menu-util-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        padding: 0;
        border-radius: 50%;
        background: #f0f0f5;
        font-size: 17px;
        color: #1d1d1f;
        text-decoration: none;
        cursor: pointer;
        transition: background 0.15s;
    }

    .profile-logout .menu-util-btn:hover {
        background: #e5e5ea;
    }

    .dark-mode .profile-logout .menu-util-btn {
        background: #2c2c2e;
        color: #f5f5f7;
    }

    .dark-mode .profile-logout .menu-util-btn:hover {
        background: #3a3a3c;
    }

    .profile-logout div {
        margin-bottom: 0;
    }

    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }
}

.sm-text th, .sm-text td {
    font-size: 12px;
}

.qr-container {
    display: flex;         
    justify-content: center;
    align-items: center;    
    height: 100%;           
    width: 100%;
    text-align: center;     
    margin-top: 10px;
    margin-bottom: 5px;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.wide {
    max-width: 90%;
}

.footer {
    margin-top: 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    background-color: #fbfbfd;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.footer-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 32px 24px 28px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.footer-logo img {
    width: 200px;
    height: auto;
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.footer-logo img:hover {
    opacity: 0.75;
}

.footer-links {
    display: flex;
    gap: 48px;
}

.footer-column-container {
    display: flex;
    gap: 48px;
}

.footer-column h4 {
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #86868b;
    margin: 0 0 12px 0;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 8px;
}

.footer-column ul li:last-child {
    margin-bottom: 0;
}

.footer-column ul li a {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    color: #424245;
    text-decoration: none;
    transition: color 0.15s ease;
}

.footer-column ul li a:hover {
    color: #dc5028;
    text-decoration: none;
}

.footer-bottom a:hover {
    color: #dc5028;
    text-decoration: none;
}

.footer-bottom {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.footer-bottom p {
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    color: #86868b;
    margin: 0;
}

/* Footer mobile */
@media (max-width: 680px) {
    .footer-inner {
        padding: 24px 16px 20px;
    }

    .footer-content {
        flex-direction: column;
        gap: 24px;
    }

    .footer-logo img {
        width: 56px;
    }

    .footer-column-container {
        gap: 32px;
    }
}

.refer-friend {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 18px;
  padding: 40px 32px;
  margin: 30px 0;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08),
              inset 0 1px 0 rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.refer-friend:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.75);
}

.refer-content {
  max-width: 700px;
  padding: 10px 24px;
  text-align: center;
  color: #1c1c1e;
  font-family: "SF Pro Display", "Segoe UI", Roboto, sans-serif;
}

.refer-content h2 {
  font-size: 1.9em;
  font-weight: 600;
  color: #000;
  margin-bottom: 10px;
}

.refer-content p {
  color: rgba(0, 0, 0, 0.75);
  margin: 0 0 15px;
  font-size: 1.05em;
  line-height: 1.5;
}

.refer-content h3 {
  display: inline-block;
  font-size: 1.2em;
  font-weight: 600;
  letter-spacing: 1px;
  color: #007aff;
  background: rgba(0, 122, 255, 0.1);
  border: 1px solid rgba(0, 122, 255, 0.25);
  border-radius: 12px;
  padding: 12px 28px;
  margin: 10px 0 15px;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.refer-content h3:hover {
  background: rgba(0, 122, 255, 0.18);
  border-color: rgba(0, 122, 255, 0.35);
}

.refer-content .highlight {
  color: #007aff;
  font-weight: 600;
}

.refer-svg {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
}

.support-section {
    margin-top: 25px;
    margin-bottom: 25px;
}

.large {
    min-width: min(1000px, calc(100vw - 32px));
}

.x-large {
    max-width: 90%;
}

#confetti-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 1;
    transition: opacity 1s ease-out;
}

.confetti {
    position: absolute;
    width: 5px;
    height: 5px;
    background-color: random;
    animation: fall 5s linear infinite, moveAndRotate 5s ease-in-out infinite;
    transition: opacity 1s ease-out;
}

.fade-out {
    opacity: 0;
}

.fade-out-container {
    opacity: 0;
    transition: opacity 1s ease-out;
}

@keyframes fall {
    0% {
        top: -10px;
        opacity: 1;
    }
    100% {
        top: 100%;
        opacity: 0;
    }
}

@keyframes moveAndRotate {
    0% {
        transform: translateX(0px) rotateX(0deg);
    }
    25% {
        transform: translateX(-20px) rotateX(90deg);
    }
    50% {
        transform: translateX(20px) rotateX(180deg);
    }
    75% {
        transform: translateX(-10px) rotateX(270deg);
    }
    100% {
        transform: translateX(10px) rotateX(360deg);
    }
}

.days-green {
  color: #16a34a; /* green-600 */
  font-weight: bold;
}
.dark-mode .days-green {
  color: #22c55e; /* green-500 on dark */
}

.days-yellow {
  color: #ca8a04; /* yellow-600 */
  font-weight: bold;
}

.status-green {
  color: #16a34a; /* green-600 */
}
.dark-mode .status-green {
  color: #22c55e; /* green-500 on dark */
}

.status-yellow {
  color: #ca8a04; /* yellow-600 */
}

.status-pass {
  color: var(--status-pass-color);
}

.status-fail {
  color: var(--status-fail-color);
}

.status-repair {
  color: var(--status-repair-color);
}

.status-blocked {
  color: var(--status-blocked-color);
}

.status-shared {
  color: var(--status-shared-color);
}

.ms-order-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
  border: 1px solid rgba(148, 163, 184, 0.55);
  background: rgba(148, 163, 184, 0.12);
  color: rgba(15, 23, 42, 0.86);
  width: fit-content;
}
.dark-mode .ms-order-pill {
  border-color: rgba(148, 163, 184, 0.35);
  background: rgba(148, 163, 184, 0.14);
  color: rgba(249, 250, 251, 0.90);
}
.ms-order-pill--cancelled {
  background: rgba(255, 59, 48, 0.12);
  border-color: rgba(255, 59, 48, 0.28);
  color: #b30000;
}
.dark-mode .ms-order-pill--cancelled {
  background: rgba(255, 59, 48, 0.16);
  border-color: rgba(255, 59, 48, 0.35);
  color: rgba(255, 176, 170, 0.98);
}
.ms-order-pill--partial_refund,
.ms-order-pill--refunded {
  background: rgba(255, 149, 0, 0.14);
  border-color: rgba(255, 149, 0, 0.30);
  color: rgba(145, 70, 0, 0.98);
}
.dark-mode .ms-order-pill--partial_refund,
.dark-mode .ms-order-pill--refunded {
  background: rgba(255, 149, 0, 0.18);
  border-color: rgba(255, 149, 0, 0.34);
  color: rgba(255, 214, 170, 0.98);
}

.so-status-pills {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}

.so-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 650;
  line-height: 1.2;
  border: 1px solid rgba(148, 163, 184, 0.55);
  background: rgba(148, 163, 184, 0.10);
  color: rgba(15, 23, 42, 0.86);
}
.dark-mode .so-status-pill {
  border-color: rgba(148, 163, 184, 0.35);
  background: rgba(148, 163, 184, 0.14);
  color: rgba(249, 250, 251, 0.90);
}

.so-status-pill--ok {
  background: rgba(34, 197, 94, 0.14);
  border-color: rgba(34, 197, 94, 0.32);
  color: rgba(6, 95, 70, 0.98);
}
.dark-mode .so-status-pill--ok {
  background: rgba(34, 197, 94, 0.18);
  border-color: rgba(34, 197, 94, 0.38);
  color: rgba(187, 247, 208, 0.98);
}

.so-status-pill--pending {
  background: rgba(234, 179, 8, 0.14);
  border-color: rgba(234, 179, 8, 0.34);
  color: rgba(120, 53, 15, 0.98);
}
.dark-mode .so-status-pill--pending {
  background: rgba(234, 179, 8, 0.18);
  border-color: rgba(234, 179, 8, 0.38);
  color: rgba(254, 240, 138, 0.98);
}

.so-status-pill--danger {
  background: rgba(255, 59, 48, 0.12);
  border-color: rgba(255, 59, 48, 0.28);
  color: #b30000;
}
.dark-mode .so-status-pill--danger {
  background: rgba(255, 59, 48, 0.16);
  border-color: rgba(255, 59, 48, 0.35);
  color: rgba(255, 176, 170, 0.98);
}

.addDeviceToLocation {
    width: 100%;
    padding: 10px 10px;
}

.addDeviceToLocation td {
    padding: 0px 5px;
}

.addDeviceToLocation table {
    margin: auto;
}

tr.sold-text {
    background-color: rgb(231, 255, 232) !important;
}

tr.notreceived-text {
    background-color: rgb(255, 235, 231) !important;
}

tr.awaiting-rma-text {
  background-color: rgb(208, 137, 137) !important;
}

tr.picked-text {
    background-color: rgb(255, 212, 127) !important;
}

.log-color {
    color: red;
}

.hidden-row {
    display: none;
}

.card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

.card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 16px;
  width: 270px;
  padding: 20px 18px 60px; /* extra space for the pinned button */
  text-align: center;
  box-shadow: 0 18px 46px rgba(0,0,0,0.10), inset 0 1px 0 rgba(255,255,255,0.6);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  transition: transform .2s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
}

.card:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.78);
  box-shadow: 0 24px 60px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.65);
}

.card h2 {
  margin: 8px 0 6px;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: .01em;
  color: #000;
}

.card p {
  color: #2c2c2c;
  font-size: .95rem;
  margin: 8px 0;
  padding: 0;
}

.card .price {
  font-size: 1.35rem;
  font-weight: 700;
}

.card .devices-allowed {
  color: #1c1c1e;
  font-size: .975rem;
}

.class-savings {
  color: #26d200;
  font-weight: 600;
  display: inline-block;
  margin-top: 4px;
  transform: translateY(-2px);
}

.card-button {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'DM Sans', sans-serif;
  width: 85%;
  padding: 5px 10px;
  border-radius: 12px;
  border: 1px solid rgba(0,122,255,0.6);
  background: linear-gradient(180deg, #0a84ff, #007aff);
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 8px;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(0,122,255,0.25), inset 0 1px 0 rgba(255,255,255,0.35);
  transition: transform .15s ease, box-shadow .2s ease, filter .2s ease, background .2s ease;
}

.card-button:hover {
  transform: translate(-50%, -1px);
  box-shadow: 0 16px 32px rgba(0,122,255,0.32), inset 0 1px 0 rgba(255,255,255,0.4);
  filter: saturate(1.05);
}

.card-button:disabled {
  cursor: not-allowed;
  filter: grayscale(.2) brightness(.95);
  box-shadow: none;
  transform: translateX(-50%);
}
.th-hover:hover {
    cursor: pointer;
}

.changeprofileForm {
    text-align: left;
}

.required {
    color: red;
}

.skuaffecting {
    color: rgb(47, 120, 246);
}

.tabs {
    display: flex;
}
.tab-button {
  font-family: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  font-weight: 500;
  padding: 10px 22px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px 10px 0px 0px;
  background: linear-gradient(180deg, #ffffff 0%, #f5f5f7 100%);
  color: #1d1d1f;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow:
    0 1px 1px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* Hover interaction */
.tab-button:hover {
  background: linear-gradient(180deg, #fafafa 0%, #e9e9eb 100%);
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* Active / selected tab */
.tab-button.active {
  background: linear-gradient(180deg, #0a84ff 0%, #007aff 100%);
  color: #fff;
  border: 1px solid rgba(0, 122, 255, 0.4);
  box-shadow:
    0 4px 12px rgba(0, 122, 255, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.tab-content {
    display: none;
    padding: 20px;
}

.tab-content.active {
    display: block;
}

#lockButton {
    background: none; 
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: 1.5rem; 
    transition: transform 0.2s ease;
  }
  
  #lockButton:focus {
    outline: none; 
  }
  
  #lockButton:hover {
    transform: scale(1.1);
  }

/* Checkbox Start */

@supports (-webkit-appearance: none) or (-moz-appearance: none) {
.checkbox-wrapper-14 input[type=checkbox] {
    --active: #02b12b;
    --active-inner: #fff;
    --focus: 2px rgba(39, 94, 254, .3);
    --border: #BBC1E1;
    --border-hover: #02b12b;
    --background: #fff;
    --disabled: #F6F8FF;
    --disabled-inner: #E1E6F9;
    -webkit-appearance: none;
    -moz-appearance: none;
    height: 21px;
    outline: none;
    display: inline-block;
    vertical-align: top;
    position: relative;
    margin: 0;
    cursor: pointer;
    border: 1px solid var(--bc, var(--border));
    background: var(--b, var(--background));
    transition: background 0.3s, border-color 0.3s, box-shadow 0.2s;
}
.checkbox-wrapper-14 input[type=checkbox]:after {
    content: "";
    display: block;
    left: 0;
    top: 0;
    position: absolute;
    transition: transform var(--d-t, 0.3s) var(--d-t-e, ease), opacity var(--d-o, 0.2s);
}
.checkbox-wrapper-14 input[type=checkbox]:checked {
    --b: var(--active);
    --bc: var(--active);
    --d-o: .3s;
    --d-t: .6s;
    --d-t-e: cubic-bezier(.2, .85, .32, 1.2);
}
.checkbox-wrapper-14 input[type=checkbox]:disabled {
    --b: var(--disabled);
    cursor: not-allowed;
    opacity: 0.9;
}
.checkbox-wrapper-14 input[type=checkbox]:disabled:checked {
    --b: var(--disabled-inner);
    --bc: var(--border);
}
.checkbox-wrapper-14 input[type=checkbox]:disabled + label {
    cursor: not-allowed;
}
.checkbox-wrapper-14 input[type=checkbox]:hover:not(:checked):not(:disabled) {
    --bc: var(--border-hover);
}
.checkbox-wrapper-14 input[type=checkbox]:focus {
    box-shadow: 0 0 0 var(--focus);
}
.checkbox-wrapper-14 input[type=checkbox]:not(.switch) {
    width: 21px;
}
.checkbox-wrapper-14 input[type=checkbox]:not(.switch):after {
    opacity: var(--o, 0);
}
.checkbox-wrapper-14 input[type=checkbox]:not(.switch):checked {
    --o: 1;
}
.checkbox-wrapper-14 input[type=checkbox] + label {
    display: inline-block;
    vertical-align: middle;
    cursor: pointer;
    margin-left: 4px;
}

.checkbox-wrapper-14 input[type=checkbox]:not(.switch) {
    border-radius: 7px;
}
.checkbox-wrapper-14 input[type=checkbox]:not(.switch):after {
    width: 5px;
    height: 9px;
    border: 2px solid var(--active-inner);
    border-top: 0;
    border-left: 0;
    left: 7px;
    top: 4px;
    transform: rotate(var(--r, 20deg));
}
.checkbox-wrapper-14 input[type=checkbox]:not(.switch):checked {
    --r: 43deg;
}
.checkbox-wrapper-14 input[type=checkbox].switch {
    width: 38px;
    border-radius: 11px;
}
.checkbox-wrapper-14 input[type=checkbox].switch:after {
    left: 2px;
    top: 2px;
    border-radius: 50%;
    width: 17px;
    height: 17px;
    background: var(--ab, var(--border));
    transform: translateX(var(--x, 0));
}
.checkbox-wrapper-14 input[type=checkbox].switch:checked {
    --ab: var(--active-inner);
    --x: 17px;
}
.checkbox-wrapper-14 input[type=checkbox].switch:disabled:not(:checked):after {
    opacity: 0.6;
}
}

.checkbox-wrapper-14 * {
box-sizing: inherit;
}
.checkbox-wrapper-14 *:before,
.checkbox-wrapper-14 *:after {
box-sizing: inherit;
}

/* Checkbox End */

/* Dropdown Start */
/* ---- LIGHT MODE ---- */
.drpdwn {
  width: 100%;
  font-size: 14px;
  font-family: 'SF Pro Text', 'DM Sans', sans-serif;
  padding: 8px 36px 8px 12px;
  color: #111;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.15)
    url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 6"%3E%3Cpolygon points="0,0 10,0 5,6" fill="%23555"/%3E%3C/svg%3E')
    no-repeat right 12px center;
  background-size: 10px 6px;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5),
              0 2px 6px rgba(0, 0, 0, 0.08);
}

.drpdwn:hover {
  border-color: rgba(0, 122, 255, 0.6);
}

.drpdwn:focus {
  border-color: rgba(0, 122, 255, 0.8);
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.15);
  outline: none;
  background: rgba(255, 255, 255, 0.25)
    url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 6"%3E%3Cpolygon points="0,0 10,0 5,6" fill="%23007AFF"/%3E%3C/svg%3E')
    no-repeat right 12px center;
  background-size: 10px 6px;
}

.drpdwn:disabled {
  background: rgba(255, 255, 255, 0.1);
  color: #a0a0a0;
  cursor: not-allowed;
  border-color: rgba(255, 255, 255, 0.2);
}

/* Dropdown End */

.spec-table {
  table-layout: fixed;
  width: 100%;
}

.spec-table td {
  padding: 10px;
  vertical-align: top;
}

.spec-table tr:nth-child(odd) {
  background-color: rgba(243, 243, 243, 0.5);
}

.hardware-test {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;      
  overflow: hidden;
}

.hardware-test thead th {
  background: #f6f6f6;
  color: #000000;
  padding: 8px 12px;
  text-align: left;
  font-size: 1.1em;
  border-radius: 8px;
}

.hardware-test td {
  padding: 8px 12px;
  border-top: 1px solid #e4e4e4;
  color: #000000;
}

.hardware-test td:first-child {
  width: 30%;
}

.hardware-test td.passed  { color: rgb(0, 192, 0); }
.hardware-test td.failed  { color: #f33; }
.hardware-test td.not-tested { color: #595959; }

.inline-table {
    border-collapse: collapse;
    text-align: center;
    width: 100%;
}
.inline-table td {
    font-size: 0.8em;
    padding: 0.5rem 1rem;
    white-space: nowrap;
    text-align: center;
    width: 25%;
}

.inline-table td:nth-child(odd) {
  text-align: right;
}

.inline-table td:nth-child(even) {
  text-align: left;
}

#inbound-order-container {
    display: flex;
    gap: 1rem;
    border-radius: 16px;
}

/* ===== LIGHT MODE ===== */
#inbound-order-container .left-panel,
#inbound-order-container .right-panel {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 18px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 12px 30px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  padding: 1.25rem;
  transition: all 0.25s ease;
  color: #1c1c1e;
  font-family: "SF Pro Display", "Segoe UI", Roboto, sans-serif;
}

/* Subtle hover lift for both panels */
#inbound-order-container .left-panel:hover,
#inbound-order-container .right-panel:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 16px 40px rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.75);
}

/* Layout adjustments */
#inbound-order-container .left-panel {
  flex: 1;
  max-width: 18%;
  min-width: 280px;
}

#inbound-order-container .right-panel {
  flex: 2;
  margin-left: 1.5rem;
}

#inbound-order-container .devices-table-wrapper {
    overflow-y: auto;
    max-height: 500px;
}

#inbound-order-container table {
    width: 100%;
    border-collapse: collapse;
}

#inbound-order-container th,
#inbound-order-container td {
    padding: 0.5rem;
    border-bottom: 1px solid #dddddd2d;
    text-align: left;
}

#inbound-order-container thead {
    position: sticky;
    top: 0;
    background: #ffffff;
    z-index: 1;
}

#inbound-order-container tr:hover {
    background: #f1f1f1;
}

#attachments-table,
  #attachments-table th,
  #attachments-table td {
    font-size: 10px !important;
  }

.inline-center-col {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.inline-center-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: auto;
}

.font-bold {
  font-weight: bold;
}

.text-xs {
  font-size: 0.5rem;
  line-height: 1;
}

.highlight-row {
  background-color: #a5f3a1 !important;
  transition: background-color 1s ease;
}

.fade-out-highlight {
  background-color: transparent !important;
}

.notify-user {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  max-width: 720px;
  min-width: 0;
  padding: 12px 18px;
  margin: 0 auto 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 248, 251, 0.92));
  box-shadow:
    0 18px 42px rgba(17, 17, 17, 0.08),
    0 2px 6px rgba(17, 17, 17, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, sans-serif;
  font-size: 0.92rem;
  font-weight: 400;
  color: #1d1d1f;
  line-height: 1.5;
}

.notify-user::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.68), transparent 58%);
  pointer-events: none;
}

.notify-user h2,
.notify-user h3,
.notify-user h4 {
  margin: 0 0 2px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #1d1d1f;
  line-height: 1.25;
}

.notify-user p {
  margin: 0;
  font-size: 0.92rem;
  color: #1d1d1f;
  line-height: 1.5;
}

.notify-user a {
  color: #0071e3;
  font-weight: 600;
  text-decoration: none;
}

.notify-user a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.notify-user strong {
  color: #1d1d1f;
  font-weight: 600;
}

.notify-user img {
  max-height: 40px;
  max-width: 100%;
  margin-bottom: 4px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(17, 17, 17, 0.08));
}

.notify-user--warning {
  background:
    linear-gradient(180deg, rgba(255, 250, 242, 0.98), rgba(255, 244, 225, 0.94));
  border-color: rgba(245, 158, 11, 0.20);
}

.notify-user--warning strong {
  color: #a16207;
}

.dark-mode .notify-user--warning strong {
  color: #f5c542;
}

/* Broadcast live card (Batches page) */
.broadcast-live-card {
  width: min(860px, 94%);
  margin: 0 auto 14px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(17, 24, 39, 0.08);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    0 10px 26px rgba(0, 0, 0, 0.08);
}

.broadcast-live-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
}

.broadcast-live-title {
  margin: 0;
  font-family: "SF Pro Text", "DM Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: 0.1px;
  color: #111827;
  display: flex;
  align-items: center;
  gap: 8px;
}

.broadcast-live-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #ff3b30;
  box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.55);
  animation: dsuBroadcastPulse 1.6s ease-out infinite;
}

.broadcast-live-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.broadcast-live-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(17, 24, 39, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.broadcast-live-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  color: rgba(17, 24, 39, 0.84);
  font-family: "SF Pro Text", "DM Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.35;
}

.broadcast-live-sep {
  opacity: 0.6;
}

.broadcast-live-stop {
  flex: 0 0 auto;
}

@keyframes dsuBroadcastPulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.55);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 12px rgba(255, 59, 48, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(255, 59, 48, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .broadcast-live-dot { animation: none; }
}

.dark-mode .broadcast-live-card {
  background: rgba(28, 28, 30, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 14px 34px rgba(0, 0, 0, 0.55);
}

.dark-mode .broadcast-live-title {
  color: #f5f5f7;
}

.dark-mode .broadcast-live-row {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.dark-mode .broadcast-live-meta {
  color: rgba(245, 245, 247, 0.86);
}

/* Broadcast modal: batch selector table */
.broadcast-batches {
  margin: 10px 0 0;
  border-radius: 16px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.55), 0 10px 26px rgba(0,0,0,0.08);
  overflow: hidden;
}

.broadcast-batches__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
}

.broadcast-batches__title {
  font-family: "SF Pro Text", "DM Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-weight: 650;
  font-size: 11px;
  color: rgba(17, 24, 39, 0.92);
}

.broadcast-batches__hint {
  font-size: 10px;
  color: rgba(17, 24, 39, 0.55);
}

.broadcast-batches__table-wrap {
  max-height: 240px;
  overflow: auto;
}

.broadcast-batches__table {
  width: 100%;
  border-collapse: collapse;
  font-family: "SF Pro Text", "DM Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 11px;
}

.broadcast-batches__table th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 6px 8px;
  background: rgba(243, 244, 246, 0.92);
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
  color: rgba(55, 65, 81, 0.95);
  font-weight: 650;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.broadcast-batches__table td {
  padding: 6px 8px;
  border-bottom: 1px solid rgba(17, 24, 39, 0.06);
  color: rgba(17, 24, 39, 0.88);
  vertical-align: top;
  font-size: 11px;
}

.broadcast-batch-desc {
  opacity: 0.78;
}

.broadcast-batch-row.is-selected {
  background: rgba(52, 199, 89, 0.14);
}

.dark-mode .broadcast-batches {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 14px 34px rgba(0,0,0,0.55);
}

.dark-mode .broadcast-batches__header {
  border-bottom-color: rgba(255, 255, 255, 0.10);
}

.dark-mode .broadcast-batches__title {
  color: rgba(245, 245, 247, 0.92);
}

.dark-mode .broadcast-batches__hint {
  color: rgba(245, 245, 247, 0.55);
}

.dark-mode .broadcast-batches__table th {
  background: rgba(31, 31, 33, 0.92);
  border-bottom-color: rgba(255, 255, 255, 0.10);
  color: rgba(245, 245, 247, 0.82);
}

.dark-mode .broadcast-batches__table td {
  border-bottom-color: rgba(255, 255, 255, 0.08);
  color: rgba(245, 245, 247, 0.86);
}

.dark-mode .broadcast-batch-row.is-selected {
  background: rgba(52, 199, 89, 0.16);
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.market-channel-icon {
  transition: transform 0.2s ease;
}

.market-channel-icon:hover {
  transform: scale(1.1);
}

.listing-live-banner {
  background: rgba(52, 199, 89, 0.10);
  border: 1px solid rgba(52, 199, 89, 0.28);
  color: rgba(14, 94, 45, 0.98);
  padding: 14px 16px;
  margin: 0 auto 14px;
  border-radius: 16px;
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 10px 26px rgba(52, 199, 89, 0.10);
  font-family: "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  animation: fadeSlideIn 0.35s ease;
  max-width: 980px;
}

.listing-live-banner__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.listing-live-banner__left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 220px;
}

.listing-live-banner__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(52, 199, 89, 0.22);
  color: rgba(14, 94, 45, 0.98);
  font-weight: 600;
  font-size: 0.85rem;
}

.listing-live-banner__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #34c759;
  box-shadow: 0 0 0 0 rgba(52, 199, 89, 0.6);
  animation: dsuLivePulse 1.6s ease-out infinite;
}

.listing-live-banner__title {
  margin: 0;
  font-size: 1.05rem;
  color: inherit;
}

.listing-live-banner__subtitle {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.9;
}

.listing-live-banner__channels {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.listing-live-banner__channel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(52, 199, 89, 0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}

.listing-live-banner__channel:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.70);
  box-shadow: 0 10px 24px rgba(52, 199, 89, 0.12);
}

.listing-live-banner__channel .market-channel-icon:hover {
  transform: none;
}

@keyframes dsuLivePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(52, 199, 89, 0.55);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(52, 199, 89, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(52, 199, 89, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .listing-live-banner__dot {
    animation: none;
  }
}

#settingsModal h4 {
  text-align: center;
}

.settings-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 3px;
  margin-bottom: 30px;
  backdrop-filter: blur(5px) saturate(140%);
  -webkit-backdrop-filter: blur(5px) saturate(140%);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  padding: 10px;
}

.settings-table th,
.settings-table td {
  padding: 3px 3px; 
  text-align: left;
  vertical-align: middle;
}

.settings-table th {
  font-weight: 600;
}

.settings-table tr {
  border-radius: 6px;
  margin-bottom: 6px;
  display: table-row;
}
.settings-table tr:not(:last-child) {
  border-bottom: 6px solid transparent;
}

.notes-indicator{
    position:relative;
    display:inline-flex;
    align-items:center;
    margin-left:.35rem;
    cursor:pointer;
    vertical-align:middle;
    font-family: 'DM Sans', sans-serif; 
}


.notes-indicator:hover .notes-tooltip,
.notes-indicator:focus .notes-tooltip {
  opacity: 1;
  visibility: visible;
}

.notes-tooltip {
  position: fixed;
  border-top: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  color: #1c1c1e;
  padding: 10px 14px;
  min-width: 300px;
  max-width: 400px;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  text-align: center;
  line-height: 1.3;
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transition: opacity 0.2s ease, visibility 0.2s ease;
  font-family: "SF Pro Text", "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: rgba(255,255,255,0.82);
}

.notes-block {
  margin: 0;
  padding: 15px 15px;
  backdrop-filter: inherit;
}

.notes-block + .notes-block {
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.notes-title {
  font-weight: 600;
  margin-bottom: 10px;
}

.notes-title,
.notes-text {
  margin: 0;
  padding: 0;
  display: block;
  line-height: 1.2;
}

@media (max-width: 998px) {
    .container {
        padding: 0 10px;
    }
    .table-container {
        max-width: 90%; 
    }
    .hide-on-mobile {
        display: none; 
    }

    .top-bar .left-text, .left-text p, .left-text a {
        font-size: 10px;
    }

    .inline-table td {
        font-size: 0.7em;
        padding: 0.2rem 0.4rem;
    }


    .report-container {
        width: 95%;
    }

    .large {
        min-width: min(600px, calc(100vw - 32px));
    }

    #inbound-order-container {
    flex-direction: column;
  }

  .left-panel {
    margin: auto;
    max-width: 98%;
    min-width: 0;
  }

  .right-panel {
    width: 100%;
  }
}

.dsu-badge-glow {
  width: 40px;
  height: auto;
  position: relative;
  filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.6))
          drop-shadow(0 0 5px rgba(255, 255, 0, 0.3));
  transition: transform 0.3s ease, filter 0.3s ease;
}

.dsu-badge-glow:hover {
  transform: translateY(-3px);
  filter: drop-shadow(0 0 8px rgba(255, 220, 60, 0.8))
          drop-shadow(0 0 16px rgba(255, 255, 200, 0.5));
}

@keyframes shine {
  0% { left: -40%; }
  50% { left: 130%; }
  100% { left: 130%; }
}

.flash-updated {
  animation: flashUpdated 2500ms ease-out;
}

@keyframes flashUpdated {
  0% {
    background-color: rgba(52, 199, 89, 0.22);   
    box-shadow:
      0 0 0 0 rgba(52,199,89,0),               
      inset 0 0 0 2px rgba(52,199,89,0.35);   
  }
  60% {
    background-color: rgba(52, 199, 89, 0.10);
    box-shadow:
      0 0 0 0 rgba(52,199,89,0),
      inset 0 0 0 1px rgba(52,199,89,0.25);
  }
  100% {
    background-color: initial;              
    box-shadow: none;
  }
}

.table-user-details {
  width: 100%;
  border-collapse: collapse;
  font-family: 'DM Sans', sans-serif;
  color: #1d1d1f;
}

.table-user-details th {
  width: 180px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  color: #86868b;
  padding: 12px 0;
  vertical-align: top;
  white-space: nowrap;
}

.table-user-details td {
  padding: 12px 0 12px 16px;
  font-size: 14px;
  color: #1d1d1f;
}

.table-user-details tr + tr th,
.table-user-details tr + tr td {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.dark-mode .table-user-details { color: #f5f5f7; }
.dark-mode .table-user-details th { color: #6e6e73; }
.dark-mode .table-user-details td { color: #f5f5f7; }
.dark-mode .table-user-details tr + tr th,
.dark-mode .table-user-details tr + tr td {
  border-top-color: rgba(255, 255, 255, 0.06);
}

.report-toc {
  position: fixed;
  left: 10px;
  top: 180px;
  width: 110px;
  max-height: calc(100vh - 160px);
  overflow: auto;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 6px 18px rgba(0,0,0,0.07);
  z-index: 2;
}
.report-toc-title {
  font-weight: 700;
  margin-bottom: 8px;
  font-size: 16px;
  letter-spacing: .2px;
  font-family: 'SF Pro Text', 'DM Sans', Arial, sans-serif;
  text-align: center;
}
.report-toc-list { list-style: none; margin: 0; padding: 0 }
.report-toc-list li a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 13px;
  color: #111;
  text-align: center;
}
.report-toc-list li a:hover { background: rgba(0,0,0,0.04); text-decoration: none; }
.report-toc-list li a.active { background: rgba(0,0,0,0.08) }
@media (max-width: 1200px) { .report-toc { display: none } }
[id] { scroll-margin-top: 90px }
.dark-mode .report-toc {
  background: rgba(20,20,20,0.3);
  border-color: rgba(255,255,255,0.08);
}

.img-muted {
    filter: grayscale(100%);
    opacity: 0.6;
}

/* ── Mobile ≤ 768px ────────────────────────────────── */
@media (max-width: 768px) {
    .container {
        padding: 0 8px;
    }

    .modal-content {
        margin: 4vh auto;
        padding: 16px;
        width: calc(100% - 24px);
        max-width: none;
        border-radius: 10px;
    }

    .modal-content--wide {
        width: calc(100% - 24px);
    }

    .large {
        min-width: 0;
        width: calc(100vw - 24px);
    }

    .table-container {
        max-width: 100%;
    }

    .top-bar .left-text, .left-text p, .left-text a {
        font-size: 11px;
    }

    .inline-table td {
        font-size: 0.8em;
        padding: 0.3rem 0.5rem;
    }

    .report-container {
        width: 100%;
        padding: 10px;
    }

    #notification-container {
        right: 10px;
        left: 10px;
        bottom: 10px;
    }

}


/* Ebay Default Images */

  .ebay-images-slots {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 5px;
  }

  .ebay-image-slot {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    border: 1px dashed rgba(0,0,0,0.2);
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
  }

  .ebay-image-slot-label {
    position: absolute;
    top: 4px;
    left: 4px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 4px;
    border-radius: 4px;
    pointer-events: none;
  }

  .ebay-image-slot.has-image {
    border-style: solid;
    background: #f7f7f7;
  }

  .ebay-image-tile {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 6px;
    overflow: hidden;
    cursor: grab;
  }

  .ebay-image-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .ebay-image-delete-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: rgba(220, 53, 69, 0.85);
    color: #fff;
    font-size: 12px;
    line-height: 18px;
    text-align: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.15s ease;
  }

  .ebay-image-tile:hover .ebay-image-delete-btn {
    opacity: 1;
  }

  .ebay-image-slot.drag-over {
    outline: 2px solid #007bff;
    outline-offset: 2px;
  }


/*************************/

/* MarketSync listings: live status pulse */
.ms-status-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ms-live-pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55);
  animation: msLivePulse 1.6s ease-out infinite;
}

@keyframes msLivePulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* ============================================================
   Shared Empty State (dsu-empty) — used by list pages
   ============================================================ */
.dsu-empty {
    text-align: center;
    padding: 60px 24px;
    max-width: 400px;
    margin: 0 auto;
}
.dsu-empty-icon {
    font-size: 40px;
    color: #c7c7cc;
    margin-bottom: 16px;
}
.dsu-empty h3 {
    font-size: 16px;
    font-weight: 700;
    color: #1d1d1f;
    margin: 0 0 6px;
}
.dsu-empty p {
    font-size: 13px;
    color: #86868b;
    margin: 0 0 18px;
}
.dsu-empty a {
    color: #dc5028;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
}
.dsu-empty a:hover { text-decoration: underline; }

.dark-mode .dsu-empty-icon { color: #48484a; }
.dark-mode .dsu-empty h3 { color: #f5f5f7; }
.dark-mode .dsu-empty p { color: #a1a1a6; }
.dark-mode .dsu-empty a { color: #e8573a; }

/* Dark mode modals */
.dark-mode .modal-content {
    background: #1c1c1e;
    border-color: rgba(255,255,255,0.08);
    color: #f5f5f7;
}
.dark-mode .modal-content h2,
.dark-mode .modal-content h3,
.dark-mode .modal-content label,
.dark-mode .modal-content .stabs-label { color: #f5f5f7; }
.dark-mode .modal-content p,
.dark-mode .modal-content .stabs-hint { color: #86868b; }
.dark-mode .modal-content input[type="text"],
.dark-mode .modal-content input[type="email"],
.dark-mode .modal-content input[type="password"],
.dark-mode .modal-content input[type="url"],
.dark-mode .modal-content input[type="number"],
.dark-mode .modal-content select,
.dark-mode .modal-content textarea {
    background: #2c2c2e;
    border-color: rgba(255,255,255,0.1);
    color: #f5f5f7;
}
.dark-mode .modal-content input::placeholder,
.dark-mode .modal-content textarea::placeholder { color: #636366; }
