:root {
  --font-body: "Inter", sans-serif;
  --font-heading: "Inter", sans-serif;
  --portal-bg: #f7f9fc;
  --panel: #ffffff;
  --line: #dfe7f1;
  --text: #111827;
  --muted: #64748b;
  --primary: #ff6b5e;
  --primary-2: #ff9b54;
  --blue: #2563eb;
  --green: #25b579;
  --orange: #ff7a3d;
  --amber: #ffb13b;
  --purple: #7c4ee4;
  --cyan: #19a7b8;
  --red: #f2323b;
  --radius: 8px;
  --shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
  --transition: 180ms ease;
  --green-rgb: 37, 181, 121;
  --red-rgb: 242, 50, 59;
  --bs-success: var(--green);
  --bs-success-rgb: var(--green-rgb);
  --bs-danger: var(--red);
  --bs-danger-rgb: var(--red-rgb);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  margin: 0;
  background: var(--portal-bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.45;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  overflow-x: hidden;
}
ul{padding: 0; margin: 0; list-style: none;}
img,
svg {
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

header,
main,
nav,
section,
article,
aside,
div {
  min-width: 0;
}

h1,
h2,
h3,
.portal-brand,
.portal-btn,
.summary-value,
.summary-label,
.status-pill {
  font-family: var(--font-heading);
}

.portal-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 64px;
  padding: 0 24px;
  width: 100%;
  max-width: 100%;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.portal-brand {
  display: inline-flex;
  align-items: center;
  color: #05070b;
  text-decoration: none;
}

.portal-brand img {
  display: block;
  width: 125px;
  height: auto;
}


.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-dropdown {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 120px;
  min-height: 40px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #334155;
  font-size: 14px;
  font-weight: 700;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.btn-dropdown:hover,
.btn-dropdown:focus-visible,
.btn-dropdown:active,
.btn-dropdown.show,
.btn-dropdown[aria-expanded="true"] {
  border: 0;
  background: #fff0e8;
  color: #d85e34;
  outline: 0;
  box-shadow: none;
}

.btn-dropdown .fa-chevron-down {
  font-size: 11px;
  transition: transform var(--transition);
}

.btn-dropdown[aria-expanded="true"] .fa-chevron-down {
  transform: rotate(180deg);
}

.language-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #fff0e8;
  color: #d85e34;
  font-size: 11px;
  font-weight: 900;
}

.portal-dropdown-menu {
  display: block;
  overflow: hidden;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  max-height: 0;
  min-width: 180px;
  margin-top: 8px !important;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 9px;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top right;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.14);
  transition: opacity 180ms ease, transform 180ms ease, max-height 220ms ease, visibility 0s linear 220ms;
  will-change: opacity, transform, max-height;
}

.portal-dropdown-menu.show {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  max-height: 280px;
  transform: translateY(0) scale(1);
  transition-delay: 0s;
}

.portal-dropdown-item {
  min-height: 38px;
  border-radius: 7px;
  color: #334155;
  font-size: 14px;
  font-weight: 700;
  align-items: center;
    display: flex;
}

.portal-dropdown-item:hover,
.portal-dropdown-item:focus-visible,
.portal-dropdown-item.active {
  background: #fff0e8;
  color: #d85e34;
}

.logout-item {
  color: #d73f3f;
}

.user-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: linear-gradient(135deg, #cfe1ff, #74a9ff);
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
}



.hero-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.hero-row h1 {
  margin: 0;
  color: #142036;
  font-size: 27px;
  font-weight: 700;
  line-height: 1.2;
}

.hero-row p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.portal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: border-color var(--transition), background var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.portal-btn:hover,
.portal-btn:focus-visible {
  outline: 0;
  transform: translateY(-1px);
}

.portal-btn-primary {
  background: linear-gradient(135deg, var(--primary-2), var(--primary));
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(255, 107, 94, 0.24);
}
    .portal-btn-primary[disabled="disabled"] {
        opacity: 0.5;
        cursor: not-allowed;
    }

    .portal-btn-primary:hover,
    .portal-btn-primary:focus-visible {
        color: #ffffff;
        box-shadow: 0 16px 32px rgba(255, 107, 94, 0.3);
    }

.portal-btn-outline {
  border-color: var(--line);
  background: #ffffff;
  color: #263548;
}

.portal-btn-outline:hover,
.portal-btn-outline:focus-visible {
  border-color: rgba(255, 107, 94, 0.55);
  color: #c94b27;
}

.summary-card,
.portal-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.summary-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 108px;
  padding: 18px;
  height: 100%;
}

.summary-card > div {
  min-width: 0;
}

.summary-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  font-size: 18px;
}

.summary-icon-online {
  background: #e6f8ef;
  color: #1f9c66;
}

.summary-icon-devices {
  background: #e8f0ff;
  color: #2563eb;
}

.summary-icon-bibs {
  background: #fff0e8;
  color: #d85e34;
}

.summary-icon-consumption {
  background: #f0ebff;
  color: #7c4ee4;
}

.summary-icon-sync {
  background: #e8f8fb;
  color: #138fa0;
}

.summary-label,
.summary-note {
  display: block;
}

.summary-label {
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

.summary-value {
  display: block;
  color: #111827;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
}

.summary-note {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.summary-note i{font-size: 8px;}
.device_sts{display: flex; gap: 0.75rem;}
.device_sts li{display: flex; gap: 0.25rem; align-items: center;}
.online-value {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.online-ripple {
  position: relative;
  display: inline-flex;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green);
}

.online-ripple::before,
.online-ripple::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(37, 181, 121, 0.34);
  animation: onlinePulse 1.8s ease-out infinite;
}

.online-ripple::after {
  animation-delay: 0.9s;
}

@keyframes onlinePulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }

  100% {
    transform: scale(2.8);
    opacity: 0;
  }
}



.portal-card {
  min-width: 0;
  padding: 18px;height: 100%; 
}
.inventory-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}
.card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.card-heading h2 {
  margin: 0;
  color: #263548;
  font-size: 17px;
  font-weight: 700;
}

.heading-inline {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.inventory-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 24px;
}

.inventory-item {
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
  --ring-color: var(--green);
  --percent: 0;
}

.inventory-item[data-color="orange"] {
  --ring-color: var(--orange);
}

.inventory-item[data-color="amber"] {
  --ring-color: var(--amber);
}

.inventory-item[data-color="red"] {
  --ring-color: var(--red);
}

.inventory-item h3 {
  margin: 0;
  color: #263548;
  font-size: 14px;
  font-weight: 700;
}

.inventory-ring {
  position: relative;
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: conic-gradient(var(--ring-color) calc(var(--percent) * 1%), #e7ebef 0);
}

.inventory-ring::after {
  content: "";
  position: absolute;
  inset: 11px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px #f0f3f7;
}

.inventory-percent {
  position: relative;
  z-index: 1;
  color: #1f2937;
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
}

    .inventory-percent small {
      font-size: 13px;
      font-weight: 700;
    }

.inventory-item p {
  margin: 0;
  color: #263548;
  font-size: 12px;
  font-weight: 700;
}

.inventory-item p span {
  color: var(--muted);
  font-weight: 600;
}

.inventory-empty-wrap {
    width: 100%;
}
.inventory-empty-state {
    min-height: 420px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 50px 30px;
}

.inventory-empty-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: #eef6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    color: #3b82f6;
    margin-bottom: 22px;
}

.inventory-empty-state h3 {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
}

.inventory-empty-state p {
    max-width: 460px;
    font-size: 16px;
    line-height: 1.7;
    color: #64748b;
    margin-bottom: 28px;
}

.inventory-empty-state .portal-btn {
    min-width: 220px;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 26px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.status-pill.healthy {
  background: #e6f8ef;
  color: #1f9c66;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.status-pill.low,
.status-pill.critical {
  background: #ffe9eb;
  color: #ec4d5a;
}

.status-pill.normal {
  background: #fff2dd;
  color: #db8120;
}

.status-pill.processing {
  background: #e8f0ff;
  color: #2563eb;
}

.replenish-alert {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
  padding: 13px 16px;
  border: 1px solid #ffe4bd;
  border-radius: 8px;
  background: #fff8ee;
  color: #b66b17;
}

.alert-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: #ffe8ea;
  color: #ec4d5a;
  font-weight: 700;
}

.device-details {
    display: grid;
    row-gap: 1.5rem;
    margin: 0 0 18px;
    grid-template-columns: 1fr 1fr;
    column-gap: 1rem;
}

.device-details div {
  display: grid;
  gap: 4px;
}

.device-details dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.device-details dd {
  margin: 0;
  color: #263548;
  font-size: 16px;
  font-weight: 700;
}

.device-details dd span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.segmented-control {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.segmented-control button {
  min-height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.segmented-control button.active {
  background: linear-gradient(135deg, var(--primary-2), var(--primary));
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(255, 107, 94, 0.22);
}

.trend-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 8px;
}

.trend-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #263548;
  font-size: 12px;
  font-weight: 700;
}

.legend-line {
  display: inline-block;
  width: 20px;
  height: 3px;
  border-radius: 999px;
}

.apple {
  stroke: #58caa0;
  background: #58caa0;
}

.lemon {
  stroke: #ff9d2e;
  background: #ff9d2e;
}

.blueberry {
  stroke: #2f7df3;
  background: #2f7df3;
}

.cactus {
  stroke: #9a6df5;
  background: #9a6df5;
}

.carbs {
  stroke: #21a8c6;
  background: #21a8c6;
}

.trend-chart {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 6px;
  min-height: 245px;
}

.chart-y-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 5px 0 25px;
  color: #718096;
  font-size: 12px;
  font-weight: 700;
  text-align: right;
}

.trend-chart svg {
  width: 100%;
  height: 220px;
}

.grid-lines line {
  stroke: #e5ebf2;
  stroke-width: 1;
}

.trend-line {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart-x-axis {
  grid-column: 2;
  display: flex;
  justify-content: space-between;
  color: #718096;
  font-size: 12px;
  font-weight: 700;
}
.recent_orders .portal-data-table{min-width: auto;}

.table-responsive {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  border-radius: 8px;
  -webkit-overflow-scrolling: touch;
}

.orders-table th {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.orders-table td {
  color: #263548;
  font-size: 13px;
  font-weight: 700;
  vertical-align: middle;
}

.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.page-heading h1 {
  margin: 3px 0 0;
  color: #142036;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
}

.page-heading p {
  max-width: 660px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.page-kicker {
  color: #d85e34;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.card-subtitle {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.portal-form-control {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #263548;
  font-size: 14px;
  font-weight: 600;
  box-shadow: none;
}

.portal-form-control:focus {
  border-color: rgba(255, 107, 94, 0.58);
  box-shadow: 0 0 0 3px rgba(255, 107, 94, 0.12);
}

.data-table-card {
  padding: 16px; height: auto;
}

.data-table-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.table-search {
  position: relative;
  flex: 1 1 auto;
  max-width: 540px;
  margin: 0;
}

.table-search i {
  position: absolute;
  top: 50%;
  left: 14px;
  color: #94a3b8;
  transform: translateY(-50%);
}

.table-search input {
  width: 100%;
  min-height: 42px;
  padding: 0 14px 0 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: #263548;
  font-size: 14px;
  font-weight: 600;
  outline: 0;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.table-search input:focus {
  border-color: rgba(255, 107, 94, 0.58);
  box-shadow: 0 0 0 3px rgba(255, 107, 94, 0.12);
}

.table-filter-group {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}

.table-filter-group label {
    display: flex;
    gap: 6px;
    margin: 0;
    color: #263548;
    font-size: 12px;
    font-weight: 800;
    align-items: center;
}

.table-filter-group select {
  min-width: 132px;
}

.portal-data-table {
  min-width: 920px;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.portal-data-table thead th {
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
  color: #0f172a;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.portal-data-table tbody tr:nth-child(odd) td {
  background: #f3f5f7;
}

.portal-data-table tbody td {
  min-height: 52px;
  border-color: #e7edf4;
}

.table-sort-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
}

.table-sort-button i {
  color: #b8c2cf;
  font-size: 11px;
  transition: color var(--transition), transform var(--transition);
}

.table-sort-button.active i {
  color: #ff6b5e;
}

.table-sort-button.active.desc i {
  transform: rotate(180deg);
}

.flavour-count {
  color: #ff543f;
  font-weight: 800;
}

.status-pill.concept {
  background: #e6f8ef;
  color: #249b5a;
}

.status-pill.confirmed {
  background: #fff0dc;
  color: #df7c14;
}

.status-pill.closed {
  background: #ece8ff;
  color: #6355f5;
}

.table-empty-state {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 34px 16px;
  color: var(--muted);
  text-align: center;
}

.table-empty-state[hidden] {
  display: none;
}

.table-empty-state i {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #fff0e8;
  color: #d85e34;
}

.table-empty-state strong {
  color: #263548;
  font-size: 15px;
}

.data-table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.table-pagination {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.pagination-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #ffffff;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.pagination-button:hover,
.pagination-button:focus-visible,
.pagination-button.active {
  border-color: transparent;
  background: #fff0e8;
  color: #d85e34;
  outline: 0;
}

.pagination-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.book-order-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(340px, 0.72fr);
  gap: 22px;
  align-items: start;
}

.product-panel,
.order-summary-card {
  min-height: 100%;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 14px;
}

.product-card {
  display: grid;
  justify-items: center;
  gap: 10px;
  min-height: 256px;
  padding: 20px 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  text-align: center;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.product-card:hover,
.product-card:focus-within,
.product-card.is-added {
  border-color: rgba(255, 107, 94, 0.55);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
}

.product-card.is-added {
  transform: translateY(-1px);
}

.product-art {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
}

.product-art img {
  display: block;
  max-width: 96px;
  max-height: 96px;
  object-fit: contain;
}

.product-art.carbs-art img {
  max-width: 86px;
  max-height: 86px;
}

.product-card h3 {
  margin: 0;
  color: #111827;
  font-size: 16px;
  font-weight: 800;
}

.product-price {
  color: #05070b;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

.product-price span {
  font-size: 12px;
}

.product-add-button {
  width: 100%;
  min-height: 38px;
  margin-top: auto;
  text-transform: uppercase;
}

.product-card.is-added .product-add-button {
  background: linear-gradient(135deg, #ffd8c7, #ffc8d0);
  color: #ffffff;
  box-shadow: none;
}

.order-summary-card {
  position: sticky;
  top: 88px;
}

.cart-empty {
  display: grid;
  place-items: center;
  gap: 10px;
  min-height: 430px;
  padding: 28px;
  border: 1px dashed #b8c2cf;
  border-radius: 8px;
  background: #f8fafc;
  text-align: center;
}

.cart-empty[hidden],
.cart-filled[hidden] {
  display: none;
}

.empty-icon-stack {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
}

.empty-icon-stack img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.cart-empty strong {
  color: #111827;
  font-size: 21px;
  font-weight: 800;
}

.cart-empty span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.cart-filled {
  display: grid;
  gap: 16px;
}

.cart-list {
  display: grid;
  gap: 0;
}

.cart-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid #e7edf4;
}

.cart-thumb {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #f1f5f9;
}

.cart-thumb img {
  max-width: 30px;
  max-height: 30px;
  object-fit: contain;
}

.cart-name {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.cart-name strong {
  color: #111827;
  font-size: 14px;
  font-weight: 800;
}

.cart-name span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.quantity-control {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.quantity-control button,
.cart-remove-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: #ffffff;
  color: #ff543f;
}

.quantity-control button {
  width: 28px;
  height: 28px;
  font-size: 14px;
  font-weight: 900;
}

.quantity-control span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 28px;
  border-inline: 1px solid var(--line);
  color: #111827;
  font-size: 13px;
  font-weight: 800;
}

.cart-remove-button {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: #fff1f1;
  transition: background var(--transition), color var(--transition);
}

.cart-remove-button:hover,
.cart-remove-button:focus-visible {
  background: #ffe2e2;
  color: #d72f2f;
  outline: 0;
}

.cart-totals {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 8px;
  background: #f8fafc;
}

.cart-totals div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cart-totals span,
.cart-validation {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.cart-totals strong {
  color: #111827;
  font-size: 16px;
  font-weight: 800;
}

.cart-validation {
  margin: 0;
}

.cart-validation.is-ready {
  color: #1f9c66;
}
@media (max-width: 1920px) {
  .container{max-width: 1400px; width: 100%;}
}

@media (max-width: 1199.98px) {
  .book-order-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.5fr);
  }
  .inventory-list {
    grid-template-columns: repeat(3, minmax(120px, 1fr));
  }
}

@media (max-width: 991.98px) {
  
  .hero-row{
    align-items: flex-start;
    flex-direction: column;
  }

  
  .hero-actions {
    width: 100%;
    justify-content: flex-start;
  }

  

  .product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(150px, 1fr));
    gap: 14px;
}

  .order-summary-card {
    position: static;
  }
  .device-details{grid-template-columns: 1fr;}
  
 .summary-card {
    min-height: auto;
    flex-direction: column;
    align-items: flex-start;
  }
  .cart-empty {
    min-height: 320px;
  }
}

@media (max-width: 767.98px) {
  

  .portal-topbar {
    padding: 16px 14px;
  }

.page-heading .portal-btn {
    flex: 1; min-width: 150px;
  }
 

  .topbar-actions .dropdown {
    flex: 1 1 190px;
  }

  .btn-dropdown {
    width: 100%;
    justify-content: space-between;
  }

  .hero-row h1 {
    font-size: 24px;
  }

  .inventory-list {
    grid-template-columns: repeat(3, minmax(120px, 1fr));
  }

  .data-table-toolbar,
  .data-table-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .table-search {
    max-width: none;
  }

 
  .table-filter-group label {
    flex: 1 1 150px;
  }

  .product-grid {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
  }

  .replenish-alert .portal-btn {
    width: 100%;
  }
  .device-details{grid-template-columns: 1fr 1fr;}
  .portal-card,
  .data-table-card {
    padding: 14px;
  }
    .book-order-grid {
        grid-template-columns: 1fr; gap: 10px;
    }
 

  .portal-btn {
    min-height: 40px;
    padding: 0 14px;
  }

  .portal-data-table {
    min-width: 760px;
  }

  .orders-table {
    min-width: 460px;
  }

  .table-pagination {
    justify-content: flex-start;
  }

  .product-card {
    min-height: 230px;
  }

  .cart-empty {
    min-height: 300px;
    padding: 20px;
  }

  .cart-empty strong {
    font-size: 18px;
  }
}
@media (max-width: 575.98px) {
  .portal-topbar {
    gap: 12px;
  }

  .portal-brand img {
    width: 112px;
  }
    .profiledrop_text > span {
        display: none;
    }
    .tankk_header .member-menu .btn {
        gap: 0.15rem;
        padding: .375rem 0
    }

    .page-heading h1,
    .hero-row h1 {
        font-size: 22px;
    }

  .page-heading p,
  .hero-row p {
    font-size: 13px;
  }

  
  .table-filter-group select {
    width: 100%;
    min-width: 0;
  }

  .summary-icon {
    flex-basis: 38px;
    width: 38px;
    height: 38px;
    font-size: 16px;
  }

  .product-art {
    width: 82px;
    height: 82px;
  }

  .product-art img {
    max-width: 82px;
    max-height: 82px;
  }

  .product-art.carbs-art img {
    max-width: 76px;
    max-height: 76px;
  }

  .cart-empty {
    min-height: 260px;
  }

  .empty-icon-stack img {
    width: 36px;
    height: 36px;
  }
  .product-grid {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
  }
}
@media (max-width: 479.98px) {
  .inventory-list {
    grid-template-columns: 1fr 1fr;
  }

    

    .summary-card {
        padding: 16px;
    }

  .card-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .segmented-control,
  .hero-actions .portal-btn,
  .topbar-actions .dropdown,
  .btn-dropdown {
    width: 100%;
  }

.page-heading{ flex-direction: column;align-items: flex-start; }

  .topbar-actions .dropdown .btn span:nth-child(2) { display: none;  }
  .topbar-actions .dropdown .btn-dropdown { min-width: auto; gap: 4px; }
  .topbar-actions .dropdown .btn-dropdown span:first-child { width: 34px; height: 34px; }
  
  

  .cart-item {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .quantity-control,
  .cart-remove-button {
    justify-self: start;
  }
}
@media (max-width: 359.98px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
  .portal-card,
  .data-table-card {
    padding: 12px;
  }

  .btn-dropdown {
    min-width: 0;
  }

  .summary-card {
    align-items: flex-start;
    gap: 10px;
  }

  .cart-item {
    gap: 8px;
  }

  .quantity-control span {
    min-width: 28px;
  }
}


.device-switch-card {
    padding: 20px 22px;
}

.device-switch-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.device-switch-label {
    display: inline-block;
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 4px;
}

.device-switch-card h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 900;
    color: #0f172a;
}

.device-switch-card p {
    margin: 6px 0 0;
    color: #64748b;
    font-weight: 600;
}

.device-switch-control {
    min-width: 380px;
}

    .device-switch-control .form-label {
        font-size: 13px;
        font-weight: 800;
        color: #64748b;
        margin-bottom: 6px;
    }

    .device-switch-control .form-select {
        height: 44px;
        border-radius: 10px;
        font-weight: 600;
    }

@media (max-width: 768px) {
    .device-switch-content {
        flex-direction: column;
        align-items: stretch;
    }

    .device-switch-control {
        min-width: 100%;
    }
}

.profile-card {
    height: 100%;
    padding: 22px;
}

.profile-card-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
}

.profile-card-title {
    display: flex;
    align-items: center;
    gap: 14px;
}

    .profile-card-title h2 {
        margin: 0;
        font-size: 20px;
        font-weight: 900;
        color: #0f172a;
    }

.profile-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: #fff0e8;
    color: #ff6b35;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.profile-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px 34px;
}

    .profile-info-grid div span {
        display: block;
        color: #64748b;
        font-size: 13px;
        font-weight: 800;
        margin-bottom: 6px;
    }

    .profile-info-grid div strong {
        display: block;
        color: #0f172a;
        font-size: 14px;
        font-weight: 800;
        word-break: break-word;
    }

.profile-wide {
    grid-column: span 2;
}

.profile-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

    .profile-status.active {
        background: #dcfce7;
        color: #059669;
    }

.profile-order-strip {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 14px;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .profile-order-strip > div {
        display: flex;
        align-items: center;
        gap: 16px;
    }

.profile-order-icon {
    width: 48px;
    height: 48px;
    background: #fff;
    color: #ff6b35;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.profile-order-strip h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 900;
    color: #c2410c;
}

.profile-order-strip p {
    margin: 4px 0 0;
    color: #64748b;
    font-weight: 600;
}

@media (max-width: 768px) {
    .profile-info-grid {
        grid-template-columns: 1fr;
    }

    .profile-wide {
        grid-column: span 1;
    }

    .profile-order-strip {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
}

.login_modal .order-info-card {
    background: #F9FAFB;
    border: 1px solid rgba(145, 158, 171, 0.32);
    border-radius: 5px;
    padding: 5px 15px;
    margin-bottom: 15px;
}

.login_modal .order-info-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 15px;
    padding: 9px 0;
    border-bottom: 1px dashed rgba(145, 158, 171, 0.32);
}

    .login_modal .order-info-row:last-child {
        border-bottom: 0;
    }

.login_modal .order-info-label {
    color: #637381;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.login_modal .order-info-thumb {
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex-shrink: 0;
}

.login_modal .order-info-value {
    color: #212B36;
    font-size: 14px;
    font-weight: 600;
    text-align: right;
    word-break: break-word;
}

.login_modal .form-login textarea {
    width: 100%;
    min-height: 80px;
    border: 1px solid rgba(145, 158, 171, 0.32);
    border-radius: 5px;
    padding: 10px 15px;
    resize: vertical;
    transition: all 0.2s ease;
}

    .login_modal .form-login textarea:focus {
        border: 1px solid #FF9966;
        outline: 1px solid #FF9966;
    }

.profile-password {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--line, #e2e8f0);
}

.profile-password-view {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

    .profile-password-view span {
        display: block;
        color: #64748b;
        font-size: 13px;
        font-weight: 800;
        margin-bottom: 6px;
    }

    .profile-password-view strong {
        display: block;
        color: #0f172a;
        font-size: 14px;
        font-weight: 800;
        letter-spacing: 2px;
    }

.profile-password-form h3 {
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 14px;
}

.profile-password-form .password-field {
    margin-bottom: 14px;
}

    .profile-password-form .password-field label {
        display: block;
        color: #64748b;
        font-size: 13px;
        font-weight: 800;
        margin-bottom: 6px;
    }

.password-input-group {
    position: relative;
}

    .password-input-group input {
        width: 100%;
        height: 42px;
        border: 1px solid var(--line, #e2e8f0);
        border-radius: 8px;
        padding: 0 42px 0 14px;
        transition: all 0.2s ease;
    }

        .password-input-group input:focus {
            border-color: var(--primary, #FF6B5E);
            outline: none;
        }

.password-toggle {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #94a3b8;
    padding: 6px 8px;
    cursor: pointer;
}

.password-feedback {
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 12px;
}

    .password-feedback.error {
        color: #dc2626;
    }

    .password-feedback.success {
        color: #16a34a;
    }

.password-actions {
    display: flex;
    gap: 10px;
}
.order-status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}