* {
  box-sizing: border-box;
}

:root {
  --bg: #f5f7ff;
  --bg-alt: #edf1ff;
  --card: rgba(255, 255, 255, 0.94);
  --card-strong: #ffffff;
  --ink: #1c2440;
  --muted: #5f6c86;
  --accent: #4f6df0;
  --accent-2: #7ea6ff;
  --accent-soft: rgba(79, 109, 240, 0.16);
  --danger: #e25353;
  --ok: #2c9c7d;
  --border: rgba(31, 45, 90, 0.14);
  --border-strong: rgba(31, 45, 90, 0.18);
  --shadow-soft: 0 14px 36px rgba(15, 23, 42, 0.12);
  --shadow-strong: 0 22px 48px rgba(15, 23, 42, 0.16);
}

html,
body,
#app {
  height: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 22%, rgba(79, 109, 240, 0.12), transparent 58%),
    radial-gradient(circle at 82% 8%, rgba(126, 200, 255, 0.14), transparent 60%),
    linear-gradient(180deg, #f8faff, #edf2ff 68%, #e7ebf6);
  color: var(--ink);
  font: 14px/1.55 "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  letter-spacing: 0.01em;
  min-height: 100%;
  min-width: 320px;
  overflow-x: hidden;
}

.hidden {
  display: none !important;
}

.empty-state {
  margin: 24px 0;
  text-align: center;
  color: var(--muted);
  font-style: italic;
}

.appbar {
  position: sticky;
  top: 0;
  z-index: 900;
  background: linear-gradient(120deg, rgba(244, 248, 255, 0.95), rgba(236, 242, 255, 0.82));
  border-bottom: none;
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(18px);
  transition: box-shadow 0.3s ease, background 0.3s ease;
  overflow: visible;
}

.appbar::before,
.appbar::after {
  content: "";
  position: absolute;
  inset: auto auto -32% -12%;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(79, 109, 240, 0.16), rgba(79, 109, 240, 0));
  pointer-events: none;
}

.appbar::after {
  inset: -44% -18% auto auto;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle at center, rgba(126, 200, 255, 0.18), rgba(126, 200, 255, 0));
  opacity: 0.85;
}

.appbar-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: space-between;
  padding: 16px 22px;
}

.appbar-row:first-of-type {
  padding-bottom: 10px;
}

.brand {
  position: relative;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.32);
  box-shadow: 0 12px 28px rgba(31, 45, 90, 0.08);
  backdrop-filter: blur(18px);
}

.logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 320px;
  max-width: 100%;
}

.logo img,
.logo-img {
  display: block;
  max-width: 320px;
  height: auto;
  width: auto;
  max-height: 110px;
  filter: drop-shadow(0 10px 24px rgba(9, 16, 40, 0.35));
}

.brand-text .title {
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: linear-gradient(120deg, #1f2664, #5571f7 60%, #63c7ff);
  -webkit-background-clip: text;
  color: transparent;
}

.brand-text .subtitle {
  color: rgba(47, 60, 120, 0.72);
  font-size: 12px;
  margin-top: 4px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.menu {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 8px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 14px 28px rgba(45, 60, 120, 0.1);
  backdrop-filter: blur(16px);
}

.menu button {
  position: relative;
  padding: 12px 22px;
  border-radius: 14px;
  border: 1px solid rgba(79, 109, 240, 0.24);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.82), rgba(233, 238, 255, 0.72));
  color: #2b3563;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 130px;
  font-weight: 600;
  letter-spacing: 0.04em;
  box-shadow: 0 14px 28px rgba(79, 109, 240, 0.14);
  transition: transform 0.26s ease, box-shadow 0.26s ease, color 0.26s ease, border-color 0.26s ease;
  overflow: hidden;
}

.menu button::before {
  content: "";
  position: absolute;
  inset: -120% -50% auto auto;
  width: 180%;
  height: 180%;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0));
  opacity: 0;
  transform: translate3d(-40%, 40%, 0) rotate(12deg);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.menu button:hover {
  border-color: rgba(79, 109, 240, 0.46);
  box-shadow: 0 22px 38px rgba(79, 109, 240, 0.22);
  transform: translateY(-2px);
}

.menu button:hover::before {
  opacity: 1;
  transform: translate3d(-20%, 20%, 0) rotate(0deg);
}

.menu button:focus-visible {
  outline: 3px solid rgba(79, 109, 240, 0.4);
  outline-offset: 2px;
}

.menu button.active {
  border-color: rgba(79, 109, 240, 0.6);
  color: #f5f7ff;
  background: linear-gradient(135deg, rgba(79, 109, 240, 0.95), rgba(102, 210, 255, 0.8));
  box-shadow: 0 26px 42px rgba(79, 109, 240, 0.28);
}

.userbar {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 6px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 14px 24px rgba(45, 60, 120, 0.08);
  backdrop-filter: blur(16px);
}

#btn-logout {
  padding: 12px 20px;
  border-radius: 14px;
  border: 1px solid rgba(79, 109, 240, 0.24);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.9), rgba(236, 239, 255, 0.88));
  color: #273466;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(45, 60, 120, 0.16);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

#btn-logout:hover {
  border-color: rgba(79, 109, 240, 0.42);
  box-shadow: 0 22px 38px rgba(45, 60, 120, 0.22);
  transform: translateY(-2px);
}

#btn-logout:focus-visible {
  outline: 3px solid rgba(79, 109, 240, 0.45);
  outline-offset: 2px;
}

.user-chip {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border-radius: 22px;
  background: linear-gradient(140deg, rgba(81, 109, 240, 0.16), rgba(134, 209, 255, 0.26));
  border: 1px solid rgba(75, 110, 240, 0.32);
  box-shadow: 0 20px 38px rgba(57, 76, 170, 0.18);
  transition: transform 0.26s ease, box-shadow 0.26s ease, border-color 0.26s ease;
  cursor: pointer;
  overflow: hidden;
  min-width: 200px;
  max-width: 260px;
}

.user-chip:hover {
  transform: translateY(-3px);
  box-shadow: 0 30px 56px rgba(57, 76, 170, 0.24);
  border-color: rgba(75, 110, 240, 0.48);
}

.user-avatar {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(155deg, #4f6df0, #7ca0ff 65%, #96ddff);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 12px 24px rgba(79, 109, 240, 0.35);
  flex-shrink: 0;
  border: 3px solid rgba(255, 255, 255, 0.5);
}

.user-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.12;
  min-width: 110px;
  overflow: hidden;
}

.user-name {
  font-weight: 600;
  color: var(--ink);
  font-size: 15px;
  text-transform: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-role {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(79, 109, 240, 0.66);
  white-space: nowrap;
}

.user-pulse {
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  border: 1px solid rgba(126, 200, 255, 0.4);
  animation: userPulse 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes userPulse {
  0%, 100% { opacity: 0.28; transform: scale(0.98); }
  50% { opacity: 0.6; transform: scale(1.02); }
}

.user-chip::before {
  content: "";
  position: absolute;
  inset: -40% auto auto -30%;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  pointer-events: none;
  transition: transform 0.4s ease, opacity 0.4s ease;
  opacity: 0.85;
}

.user-chip::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at top right, rgba(126, 200, 255, 0.22), transparent 58%);
  pointer-events: none;
}

.user-chip:hover::before {
  transform: translate3d(12px, -6px, 0) scale(1.08);
  opacity: 1;
}

@media (max-width: 720px) {
  .user-chip {
    padding: 12px 16px;
    min-width: 170px;
    max-width: 220px;
  }

  .user-avatar {
    width: 40px;
    height: 40px;
    font-size: 13px;
  }

  .user-name {
    font-size: 14px;
  }

  .user-role {
    font-size: 10px;
    letter-spacing: 0.14em;
  }
}

.filters {
  border-top: 1px solid rgba(70, 88, 158, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 22px;
  background: linear-gradient(110deg, rgba(255, 255, 255, 0.88), rgba(238, 243, 255, 0.76));
  backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
  position: relative;
  z-index: 950;
}

.filters .filters-left,
.filters .filters-right {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.filter {
  display: flex;
  gap: 8px;
  align-items: center;
  color: rgba(45, 54, 94, 0.75);
  font-size: 13px;
  position: relative;
}

.filter select,
.filter input {
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(79, 109, 240, 0.22);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(242, 247, 255, 0.9));
  color: #243061;
  transition: border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
  min-width: 180px;
  box-shadow: 0 12px 24px rgba(67, 85, 180, 0.12);
}

.filters .filters-right .filter select,
.filters .filters-right .filter input {
  min-width: 150px;
}

.filter.date-range-filter {
  gap: 6px;
}

.filter.date-range-filter span {
  white-space: nowrap;
}

.filter.date-range-filter select {
  min-width: 115px;
}

.filter select:focus,
.filter input:focus {
  border-color: rgba(79, 109, 240, 0.55);
  background: #f0f4ff;
  box-shadow: 0 14px 32px rgba(67, 85, 180, 0.22);
  transform: translateY(-1px);
  outline: none;
}

.filter select:hover,
.filter input:hover {
  border-color: rgba(79, 109, 240, 0.4);
  box-shadow: 0 14px 28px rgba(67, 85, 180, 0.18);
}

.filters label span {
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 11px;
  color: rgba(36, 48, 97, 0.62);
}

.filter.product-search-filter input {
  min-width: 200px;
  padding-right: 38px;
  cursor: text;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: none;
  border: 1px solid rgba(79, 109, 240, 0.24);
}

.filter.product-search-filter::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid rgba(45, 54, 94, 0.45);
  pointer-events: none;
  transition: border-top-color 0.2s ease, transform 0.2s ease;
}

.filter.product-search-filter:focus-within::after {
  border-top-color: rgba(79, 109, 240, 0.75);
  transform: translateY(-50%) translateY(1px);
}

.filter.product-search-filter input:focus {
  background: rgba(255, 255, 255, 0.32);
  box-shadow: none;
}

.filter.product-search-filter input:hover {
  box-shadow: none;
}

.filter.product-search-filter input::placeholder {
  color: rgba(45, 54, 94, 0.48);
  letter-spacing: 0.04em;
}

@media (max-width: 1100px) {
  .appbar-row {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }

  .brand {
    flex: 1 1 260px;
    justify-content: center;
  }

  .menu {
    flex: 1 1 100%;
    justify-content: center;
    flex-wrap: wrap;
    padding: 10px;
  }

  .userbar {
    margin-left: 0;
  }

  .filters {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .filters .filters-left,
  .filters .filters-right {
    width: 100%;
    justify-content: center;
  }

  .filters .filters-right {
    justify-content: flex-end;
  }

  .filter {
    flex: 1 1 160px;
  }

  .filter select,
  .filter input {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 768px) {
  .appbar-row {
    gap: 16px;
  }

  .menu {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    gap: 8px;
    padding: 6px 4px 10px;
    scroll-snap-type: x proximity;
  }

  .menu::-webkit-scrollbar {
    display: none;
  }

  .menu button {
    min-width: 110px;
    flex: 0 0 auto;
    scroll-snap-align: center;
  }

  .userbar {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }

  .filters {
    padding: 12px 16px;
    gap: 14px;
  }

  .filters .filters-left,
  .filters .filters-right {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .filter {
    width: 100%;
  }

  .filter select,
  .filter input {
    padding: 9px 12px;
  }

  .filter.product-search-filter input {
    padding-right: 34px;
  }

  .view-section {
    padding: 18px 16px;
    margin: 18px auto;
  }

  .dashboard-summary {
    padding: 22px 20px;
  }

  .dashboard-insights {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .dashboard-summary-cards {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  .table thead {
    font-size: 12px;
  }

  .table tbody td {
    font-size: 12px;
  }

  .toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .toolbar-left,
  .toolbar-right {
    width: 100%;
    justify-content: flex-start;
  }

  .toolbar-right {
    gap: 8px;
  }

  .orders-actions-left {
    width: 100%;
    margin-right: 0;
    justify-content: flex-start;
  }

  .toolbar-right > *,
  .orders-actions-left > * {
    flex: 1 1 160px;
    min-width: 0;
  }

  #order-search {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .brand {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding: 10px;
  }

  .brand .logo {
    max-width: 200px;
  }

  .brand-text .title {
    font-size: 18px;
  }

  .userbar {
    flex-direction: column;
    align-items: stretch;
  }

  .user-chip {
    width: 100%;
    justify-content: center;
  }

  .filters {
    padding: 12px;
  }

  .filters .filters-right {
    justify-content: center;
  }

  .filters label span {
    text-align: left;
  }

  .dashboard-summary {
    padding: 18px;
  }

  .insight-card {
    padding: 16px;
  }

  .menu button {
    min-width: 104px;
    font-size: 12px;
  }

  .dashboard-summary-title {
    font-size: 22px;
  }

  .toolbar-right > *,
  .orders-actions-left > * {
    flex-basis: 100%;
  }

  .orders-actions-left select {
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 420px) {
  .tabs .tab {
    flex-basis: 100%;
  }
}
.view-section {
  position: relative;
  z-index: 0;
  padding: 22px 26px;
  width: 100%;
  max-width: 1380px;
  margin: 24px auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.view-section:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-strong);
}

.grid.two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.actions {
  margin-top: 14px;
  display: flex;
  gap: 12px;
  justify-content: flex-start;
  flex-wrap: wrap;
}

label {
  display: block;
  margin: 10px 0;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.02em;
}

.has-product-picker {
  position: relative;
  z-index: 50;
}

.product-picker-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 220px;
  overflow-y: auto;
  border-radius: 12px;
  border: 1px solid rgba(79, 109, 240, 0.22);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.16);
  z-index: 2000;
  backdrop-filter: blur(8px);
}

.product-picker-dropdown.hidden {
  display: none;
}

.product-picker-option,
.product-picker-empty {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
}

.product-picker-empty {
  cursor: default;
  color: var(--muted);
}

.product-picker-option:hover,
.product-picker-option.active {
  background: rgba(79, 109, 240, 0.14);
}

input,
textarea,
select,
button {
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(79, 109, 240, 0.24);
  background: #ffffff;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, transform 0.15s ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(79, 109, 240, 0.48);
  background: #f2f5ff;
  box-shadow: 0 0 0 3px rgba(79, 109, 240, 0.18);
  outline: none;
}

/* Normalize small/XS buttons across button, label, and anchor */
:where(button, a, label).btn-sm,
:where(button, a, label).btn-xs {
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  display: inline-flex;
  width: auto;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  text-decoration: none;        /* for <a> */
  font-weight: 600;
  line-height: 1.1;
  border-radius: 12px;
  border: 1px solid rgba(79, 109, 240, 0.3);
  background: linear-gradient(135deg, rgba(79, 109, 240, 0.2), rgba(126, 200, 255, 0.28));
  color: var(--ink);
  cursor: pointer;
  user-select: none;
  box-shadow: 0 12px 26px rgba(79, 109, 240, 0.18);
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease, transform .08s ease;
}

/* Sizes */
:where(button, a, label).btn-sm {
  padding: 8px 14px;
  min-height: 36px;
  font-size: 0.875rem; /* 14px */
}

:where(button, a, label).btn-xs {
  padding: 6px 10px;
  min-height: 30px;
  font-size: 0.8125rem; /* 13px */
}

/* States */
:where(button, a, label).btn-sm:hover,
:where(button, a, label).btn-xs:hover {
  background: linear-gradient(135deg, rgba(79, 109, 240, 0.34), rgba(126, 200, 255, 0.38));
  border-color: rgba(79, 109, 240, 0.46);
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(79, 109, 240, 0.24);
}

:where(button, a, label).btn-sm:active,
:where(button, a, label).btn-xs:active {
  transform: translateY(0);
  box-shadow: 0 10px 20px rgba(79, 109, 240, 0.18);
}

:where(button, a, label).btn-sm:focus-visible,
:where(button, a, label).btn-xs:focus-visible {
  outline: 2px solid rgba(79, 109, 240, 0.6);
  outline-offset: 2px;
}

:where(button, a, label).btn-sm:disabled,
:where(button, a, label).btn-xs:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}


.btn-xs {
  padding: 6px 16px;
  font-size: 13px;
  line-height: 1.25;
}

.secondary {
  background: linear-gradient(135deg, rgba(111, 141, 255, 0.12), rgba(115, 224, 255, 0.2));
  border-color: rgba(111, 141, 255, 0.28);
}

.secondary:hover {
  background: linear-gradient(135deg, rgba(111, 141, 255, 0.22), rgba(115, 224, 255, 0.3));
}

.danger {
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.78), rgba(255, 67, 67, 0.92));
  border-color: rgba(255, 107, 107, 0.85);
  color: #fff;
}

.danger:hover {
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.92), rgba(255, 67, 67, 1));
  border-color: rgba(255, 151, 151, 1);
}

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  background: rgba(255, 255, 255, 0.95);
  width: auto;
  padding: 14px 18px;
  border-radius: 16px;
  border: 1px solid rgba(79, 109, 240, 0.18);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.toolbar-left,
.toolbar-right {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.toolbar-right {
  justify-content: flex-end;
}

.orders-actions-left {
  display: flex;
  align-items: center;
  margin-right: auto;
  gap: 10px;
}

.orders-actions-left.hidden {
  display: none;
}

.input-sm {
  padding: 8px 12px;
  border-radius: 10px;
  height: 36px;
  background: #ffffff;
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  table-layout: auto;
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(79, 109, 240, 0.16);
  box-shadow: var(--shadow-soft);
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin-top: 14px;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
  scrollbar-color: rgba(79, 109, 240, 0.35) transparent;
}

.table-wrap:first-child {
  margin-top: 0;
}

.table-wrap::-webkit-scrollbar {
  height: 8px;
}

.table-wrap::-webkit-scrollbar-thumb {
  background: rgba(79, 109, 240, 0.35);
  border-radius: 999px;
}

.table-wrap::-webkit-scrollbar-track {
  background: transparent;
}

.table th,
.table td {
  border-bottom: 1px solid rgba(128, 148, 220, 0.16);
  padding: 12px 16px;
  text-align: left;
  vertical-align: middle;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.table th {
  font-weight: 600;
  letter-spacing: 0.25px;
  text-transform: uppercase;
  font-size: 12px;
  color: rgba(49, 61, 102, 0.92);
  background: linear-gradient(135deg, rgba(228, 233, 255, 0.92), rgba(205, 216, 255, 0.88));
}

#orders-table th {
  white-space: nowrap;
}

.table tbody tr {
  cursor: pointer;
  transition: background 0.16s ease, transform 0.16s ease;
}

.table tbody tr:hover {
  background: rgba(79, 109, 240, 0.12);
  transform: translateX(2px);
}

.table tbody tr.selected {
  outline: 2px solid rgba(79, 109, 240, 0.35);
}

.table td.actions {
  white-space: nowrap;
}

#orders-table th.col-assign,
#orders-table td.assign-cell {
  text-align: center;
  width: 190px;
}

#orders-table td.assign-cell {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

#orders-table td.assign-cell .assign-label {
  display: block;
  max-width: 100%;
  text-align: center;
}

#orders-table td.assign-cell select {
  min-width: 160px;
}

#orders-table th.col-actions,
#orders-table td.action-buttons {
  text-align: center;
  width: 200px;
}

#orders-table td.action-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
}

#orders-table td.action-buttons .btn-xs {
  min-width: 90px;
}

@media (max-width: 1024px) {
  #orders-table th,
  #dash-list-table th,
  #myworks-table th {
    white-space: normal;
  }
}

.table.compact th,
.table.compact td {
  padding: 8px;
}

.mini-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 10px;
  align-items: end;
  margin: 8px 0;
}

.mini-form button {
  align-self: stretch;
}

@media (max-width: 1100px) {
  .mini-form {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
  }
}

@media (max-width: 640px) {
  .mini-form {
    grid-template-columns: 1fr;
  }

  .mini-form button {
    width: 100%;
  }
}

.small {
  font-size: 12px;
}

.order-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 8px 0 12px;
}

.tabs {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  padding: 6px;
  border-radius: 14px;
  background: rgba(233, 237, 255, 0.85);
  border: 1px solid rgba(79, 109, 240, 0.18);
}

.tabs .tab {
  flex: 1;
  padding: 10px 12px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.16s ease, transform 0.16s ease;
}

.tabs .tab:hover {
  background: rgba(79, 109, 240, 0.14);
}

.tabs .tab.active {
  background: linear-gradient(135deg, rgba(79, 109, 240, 0.36), rgba(126, 200, 255, 0.32));
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(79, 109, 240, 0.24);
}

.tabpanes {
  padding-top: 14px;
}

.tabpane.hidden {
  display: none;
}

.table.compact tr.pr-row-editing {
  background: rgba(79, 109, 240, 0.12);
  box-shadow: inset 2px 0 0 rgba(79, 109, 240, 0.6);
}

.table.compact tbody tr {
  cursor: pointer;
  transition: background 0.15s ease;
}

.table.compact tbody tr:not(.pr-row-editing):hover {
  background: rgba(79, 109, 240, 0.08);
}

#tab-notes .actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
  margin: 0 0 12px;
  padding: 10px 12px;
  background: rgba(79, 109, 240, 0.08);
  border-radius: 14px;
  border: 1px solid rgba(79, 109, 240, 0.16);
  width: 100%;
  box-sizing: border-box;
}

#tab-notes #note-text,
#tab-notes #add-note-btn {
  flex: 1 1 0;
  max-width: 50%;
  height: 44px;
  border-radius: 10px;
  font-size: 14px;
  box-sizing: border-box;
  min-width: 0;
}

#tab-notes #note-text {
  padding: 0 14px;
  border: 1px solid rgba(79, 109, 240, 0.28);
  background: #fff;
}

#tab-notes #note-text:focus {
  outline: none;
  border-color: rgba(79, 109, 240, 0.55);
  box-shadow: 0 0 0 3px rgba(126, 200, 255, 0.25);
}

#tab-notes #add-note-btn {
  padding: 0 18px;
  border: none;
  background: linear-gradient(135deg, rgba(79, 109, 240, 0.88), rgba(126, 200, 255, 0.82));
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(79, 109, 240, 0.25);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

#tab-notes #add-note-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(79, 109, 240, 0.28);
}

.note-item {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(79, 109, 240, 0.18);
  border-radius: 12px;
  padding: 12px;
  margin: 12px 0;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.note-header {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 6px;
  position: relative;
  padding-right: 36px;
}

.note-meta {
  color: var(--muted);
  font-size: 12px;
}

.note-text {
  white-space: pre-wrap;
  word-break: break-word;
}

.note-delete {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(226, 83, 83, 0.45);
  background: rgba(226, 83, 83, 0.14);
  color: var(--danger);
  border-radius: 999px;
  padding: 0;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.16s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.note-delete:hover {
  background: rgba(226, 83, 83, 0.22);
  border-color: rgba(226, 83, 83, 0.6);
  transform: translateY(-1px);
}

.typing-toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin-bottom: 10px;
}

#tab-prop .prop-preview {
  margin-top: 24px;
  padding: 16px;
  border: 1px solid #d5d9e2;
  border-radius: 10px;
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

#tab-prop .prop-preview:empty {
  display: none;
}

#tab-prop .prop-actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

#tab-prop .prop-actions button {
  flex: 1 1 160px;
  max-width: 240px;
  padding: 14px 18px;
  border-radius: 18px;
  border: 1px solid rgba(79, 109, 240, 0.32);
  background: linear-gradient(145deg, rgba(126, 200, 255, 0.32), rgba(79, 109, 240, 0.22));
  color: #1f2555;
  font-weight: 600;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 16px 32px rgba(79, 109, 240, 0.18);
}

#tab-prop .prop-actions button:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    0 20px 36px rgba(79, 109, 240, 0.24);
}

#tab-prop .prop-actions button:focus-visible {
  outline: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 0 0 3px rgba(126, 200, 255, 0.55),
    0 18px 32px rgba(79, 109, 240, 0.22);
}

#dash-list {
  margin-top: 8px;
}

.dashboard-summary {
  position: relative;
  margin: 26px 0 24px;
  padding: 28px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(79, 109, 240, 0.08), rgba(11, 18, 46, 0.05));
  border: 1px solid rgba(79, 109, 240, 0.18);
  box-shadow: 0 28px 48px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  gap: 24px;
  overflow: hidden;
}

.dashboard-summary::before,
.dashboard-summary::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.dashboard-summary::before {
  inset: -42% -12% auto auto;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle at center, rgba(79, 109, 240, 0.22) 0%, rgba(79, 109, 240, 0) 72%);
  opacity: 0.75;
  animation: dashboardGlow 9s ease-in-out infinite alternate;
}

.dashboard-summary::after {
  inset: auto -10% -48% auto;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle at center, rgba(55, 179, 126, 0.16) 0%, rgba(55, 179, 126, 0) 74%);
  opacity: 0.6;
  animation: dashboardGlow 11s ease-in-out infinite alternate-reverse;
}

@keyframes dashboardGlow {
  from {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.45;
  }
  to {
    transform: translate3d(12px, -14px, 0) scale(1.08);
    opacity: 0.82;
  }
}

.dashboard-summary-header,
.dashboard-insights,
.dashboard-summary-cards {
  position: relative;
  z-index: 1;
}

.dashboard-summary-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}

.dashboard-summary-copy {
  max-width: 560px;
}

.dashboard-summary-title {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.dashboard-summary-subtitle {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(53, 66, 105, 0.76);
}

.dashboard-summary-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(10px);
}

.dashboard-view-button {
  appearance: none;
  border: none;
  background: transparent;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(41, 56, 126, 0.7);
  cursor: pointer;
  transition: background-color 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
}

.dashboard-view-button:hover {
  color: var(--ink);
}

.dashboard-view-button.active {
  background: rgba(79, 109, 240, 0.22);
  color: #1f275a;
  box-shadow: 0 10px 22px rgba(79, 109, 240, 0.28);
}

.dashboard-view-button:focus-visible {
  outline: 2px solid rgba(79, 109, 240, 0.5);
  outline-offset: 2px;
}

.dash-list-toolbar {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 16px;
}

.dashboard-back-button {
  appearance: none;
  border: 1px solid rgba(79, 109, 240, 0.24);
  background: rgba(79, 109, 240, 0.12);
  color: #1f2555;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 9px 20px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(79, 109, 240, 0.16);
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.dashboard-back-button:hover {
  background: rgba(79, 109, 240, 0.22);
  color: #13205b;
  box-shadow: 0 18px 30px rgba(79, 109, 240, 0.22);
  transform: translateY(-1px);
}

.dashboard-back-button:focus-visible {
  outline: 2px solid rgba(79, 109, 240, 0.5);
  outline-offset: 2px;
}

.dashboard-insights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.insight-card {
  --accent-color: #4f6df0;
  --accent-soft: rgba(79, 109, 240, 0.16);
  position: relative;
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.12);
  overflow: hidden;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.insight-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-soft), rgba(255, 255, 255, 0.15));
  opacity: 0.92;
}

.insight-card > * {
  position: relative;
  z-index: 1;
}

.insight-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 46px rgba(15, 23, 42, 0.18);
}

.insight-card[data-accent="warning"] {
  --accent-color: #ffa726;
  --accent-soft: rgba(255, 167, 38, 0.18);
}

.insight-card[data-accent="success"] {
  --accent-color: #37b37e;
  --accent-soft: rgba(55, 179, 126, 0.18);
}

.insight-label {
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(53, 66, 105, 0.68);
}

.insight-value {
  font-size: 34px;
  font-weight: 700;
  color: #1f2555;
  line-height: 1.1;
}

.insight-sub {
  margin: 6px 0 0;
  font-size: 12px;
  color: rgba(53, 66, 105, 0.64);
}

.dashboard-summary-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.dashboard-status-card {
  --card-accent: #4f6df0;
  --card-accent-soft: rgba(79, 109, 240, 0.18);
  position: relative;
  border-radius: 22px;
  padding: 20px 20px 18px;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.94), var(--card-accent-soft));
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 20px 38px rgba(15, 23, 42, 0.14);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.dashboard-status-card.is-expandable {
  cursor: pointer;
}

.dashboard-status-card:hover,
.dashboard-status-card:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 28px 48px rgba(15, 23, 42, 0.18);
  border-color: rgba(255, 255, 255, 0.6);
}

.dashboard-status-card:focus-visible {
  outline: 2px solid rgba(79, 109, 240, 0.5);
  outline-offset: 2px;
}

.dashboard-status-card .status-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.dashboard-status-card .status-name {
  display: flex;
  flex: 1;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 6px 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(41, 56, 126, 0.7);
}

.status-name-text {
  flex: 1 1 130px;
  white-space: normal;
  line-height: 1.3;
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--card-accent);
  box-shadow: 0 0 0 6px var(--card-accent-soft);
  flex: none;
  margin-top: 2px;
}

.dashboard-status-card .status-total {
  font-size: 34px;
  font-weight: 700;
  color: #1f2555;
  margin-left: auto;
  align-self: flex-start;
}

.status-customer-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.status-bar {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.status-bar.is-collapsed {
  display: none;
}

.dashboard-status-card.expanded .status-bar.is-collapsed {
  display: flex;
}

.status-bar-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: rgba(53, 66, 105, 0.68);
}

.status-bar-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
  color: #212a4d;
}

.status-bar-count {
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--card-accent-soft);
  color: var(--card-accent);
  font-weight: 600;
}

.status-bar-track {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  overflow: hidden;
}

.status-bar-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--card-accent) 0%, rgba(255, 255, 255, 0.35) 100%);
  border-radius: inherit;
  transition: width 0.35s ease;
}

.status-card-empty {
  font-size: 13px;
  color: rgba(53, 66, 105, 0.7);
  padding-top: 6px;
}

.status-card-toggle {
  align-self: flex-start;
  margin-top: 4px;
  padding: 4px 0;
  border: none;
  background: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--card-accent);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease;
}

.status-card-toggle:hover {
  color: #1f275a;
}

.status-card-toggle:focus-visible {
  outline: 2px solid var(--card-accent);
  outline-offset: 2px;
}

.dashboard-status-empty {
  padding: 20px;
  border-radius: 20px;
  border: 1px dashed rgba(79, 109, 240, 0.28);
  text-align: center;
  color: rgba(41, 56, 126, 0.68);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: inset 0 0 0 1px rgba(79, 109, 240, 0.08);
}

@media (max-width: 900px) {
  .dashboard-summary {
    padding: 22px;
    border-radius: 22px;
  }
  .dashboard-summary-title {
    font-size: 24px;
  }
  .dashboard-summary-actions {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .dashboard-summary {
    padding: 20px;
    gap: 20px;
  }
  .dashboard-summary-copy {
    max-width: 100%;
  }
  .dashboard-summary-subtitle {
    font-size: 13px;
  }
  .dashboard-insights {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }
  .dashboard-summary-cards {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
  .order-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .order-head .actions {
    width: 100%;
    justify-content: flex-start;
  }
  .tabs {
    flex-wrap: wrap;
  }
  .tabs .tab {
    flex: 1 1 calc(50% - 6px);
    min-width: 140px;
  }
  .typing-toolbar button {
    flex: 1 1 160px;
  }
  #orders-table td.action-buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
}

.kanban {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.column {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(79, 109, 240, 0.18);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  min-height: 260px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.column h3 {
  margin: 0;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(79, 109, 240, 0.16);
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(53, 66, 105, 0.85);
}

.card {
  margin: 14px;
  border: 1px solid rgba(79, 109, 240, 0.18);
  border-radius: 12px;
  padding: 12px 14px;
  background: #ffffff;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(79, 109, 240, 0.22);
}

.card small {
  display: block;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.view {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px;
}

.auth-card {
  width: min(520px, 92vw);
  background: var(--card-strong);
  border: 1px solid rgba(79, 109, 240, 0.18);
  border-radius: 20px;
  padding: 30px 24px;
  box-shadow: var(--shadow-strong);
  backdrop-filter: blur(18px);
}

.auth-hero {
  margin: -10px -4px 22px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 18px 38px rgba(8, 16, 36, 0.42);
}

.auth-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 9, 23, 0) 0%, rgba(5, 9, 23, 0.55) 100%);
  pointer-events: none;
}

.auth-hero img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.auth-card h1 {
  margin: 0 0 8px;
  font-size: 24px;
}

.auth-card h2 {
  margin: 14px 0 8px;
}

.auth-msg {
  min-height: 18px;
}

.select-sm {
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid rgba(79, 109, 240, 0.24);
  background: #ffffff;
  color: var(--ink);
}

@media print {
  body {
    background: white;
    color: black;
  }
  .appbar,
  .tabs,
  .typing-toolbar,
  .prop-actions,
  .actions {
    display: none !important;
  }
  #tab-prop {
    display: block !important;
  }
  .commitment-form {
    display: none !important;
  }
  .commitment-preview {
    border: none;
    padding: 0;
  }
}

.commitment-preview {
  background: #fff;
  color: #111;
  border-radius: 10px;
  padding: 16px;
  border: 1px solid #ddd;
}

.commitment-preview h2,
.commitment-preview h3 {
  margin: 6px 0;
}

.commitment-preview .muted {
  color: #444;
}

.commitment-preview table {
  width: 100%;
  border-collapse: collapse;
}

.commitment-preview td,
.commitment-preview th {
  border-bottom: 1px solid #eee;
  padding: 6px;
  text-align: left;
  vertical-align: top;
}

#att-form {
  margin-top: 18px;
  padding: 24px;
  border-radius: 26px;
  border: 1px solid rgba(79, 109, 240, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(219, 230, 255, 0.72) 100%);
  box-shadow: 0 24px 52px rgba(79, 109, 240, 0.14);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

#att-form .att-inputs {
  display: grid;
  grid-template-columns: 240px 1fr 1fr;
  gap: 16px;
  align-items: stretch;
}

.att-col label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}

#att-form .att-col input[type="text"] {
  width: 100%;
  min-height: 54px;
  padding: 12px 16px;
  border-radius: 18px;
  border: 1px solid rgba(79, 109, 240, 0.26);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  box-sizing: border-box;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

#att-form .att-col input[type="text"]:focus {
  outline: none;
  border-color: rgba(79, 109, 240, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 0 0 3px rgba(126, 200, 255, 0.35);
}

.file-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  border-radius: 10px;
  border: 1px dashed rgba(79, 109, 240, 0.3);
  background: rgba(233, 237, 255, 0.4);
  cursor: pointer;
  min-height: 44px;
  text-align: center;
}

.file-input {
  display: none;
}

.file-picker {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.file-picker .lbl {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.file-trigger {
  width: 100%;
  height: 100%;
  padding: 20px 18px;
  border-radius: 20px;
  border: 1px dashed rgba(79, 109, 240, 0.38);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.88) 0%, rgba(215, 228, 255, 0.54) 100%);
  color: #1f2555;
  font-weight: 600;
  letter-spacing: 0.03em;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.file-trigger:hover {
  transform: translateY(-2px);
  border-color: rgba(79, 109, 240, 0.48);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.68),
    0 18px 36px rgba(79, 109, 240, 0.22);
}

.file-trigger:active {
  transform: translateY(0);
}

.file-trigger:focus-visible {
  outline: none;
  border-color: rgba(79, 109, 240, 0.62);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 0 0 3px rgba(126, 200, 255, 0.4),
    0 18px 38px rgba(79, 109, 240, 0.22);
}

.file-name {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.file-trigger-title {
  font-size: 16px;
}

.att-actions {
  display: flex;
  justify-content: center;
}

#att-add-btn {
  width: 100%;
  max-width: 520px;
  padding: 16px 32px;
  border-radius: 18px;
  background: linear-gradient(95deg, rgba(79, 109, 240, 0.92) 0%, rgba(126, 200, 255, 0.82) 100%);
  color: #fff;
  border: 1px solid rgba(79, 109, 240, 0.4);
  cursor: pointer;
  min-width: 220px;
  box-shadow: 0 16px 36px rgba(79, 109, 240, 0.26);
  font-weight: 600;
  letter-spacing: 0.06em;
}

#att-add-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 44px rgba(79, 109, 240, 0.32);
}

.fee-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}

.fee-fields {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(79, 109, 240, 0.16);
  background: rgba(233, 237, 255, 0.5);
}

.fee-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 18px;
}

.fee-col label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}

.fee-col input {
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(79, 109, 240, 0.24);
  background: #ffffff;
  color: var(--ink);
  box-sizing: border-box;
}

.fee-col input:focus {
  outline: none;
  border-color: rgba(79, 109, 240, 0.5);
  box-shadow: 0 0 0 3px rgba(126, 200, 255, 0.25);
}

.fee-actions {
  display: flex;
  justify-content: flex-start;
}

#fee-add-btn {
  padding: 10px 24px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(79, 109, 240, 0.88), rgba(126, 200, 255, 0.78));
  color: #fff;
  border: 1px solid rgba(79, 109, 240, 0.4);
  cursor: pointer;
  min-width: 140px;
  box-shadow: 0 12px 28px rgba(79, 109, 240, 0.26);
  font-weight: 600;
}

#fee-add-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 36px rgba(79, 109, 240, 0.32);
}

.fee-delete-btn {
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid rgba(226, 83, 83, 0.4);
  background: rgba(226, 83, 83, 0.12);
  color: var(--danger);
  font-size: 12px;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.fee-delete-btn:hover {
  background: rgba(226, 83, 83, 0.2);
  border-color: rgba(226, 83, 83, 0.55);
}

@media (max-width: 900px) {
  .view-section {
    padding: 18px 18px;
  }
  .grid.two {
    grid-template-columns: 1fr;
  }
  #att-form .att-inputs {
    grid-template-columns: 1fr;
  }
  .att-actions {
    justify-content: center;
  }
  .fee-row {
    grid-template-columns: 1fr;
  }
  .fee-actions {
    justify-content: center;
  }
  .menu {
    flex-wrap: wrap;
  }
  .auth-hero img {
    height: 180px;
  }
}
.title-glow{
    font-family: "Orbitron", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    font-weight: 700;
    font-size: clamp(28px, 6.5vw, 54px);
    text-align: center;
    letter-spacing: 2px;
    color: #e5e7eb;
    text-shadow: 0 0 8px rgba(59,130,246,.35), 0 2px 18px rgba(0,0,0,.6);
    margin: 26px 0;
  }

.orders-actions-left select {
  min-width: 160px;
}
