:root {
  --bg: #f8f7ff;
  --card: #ffffff;
  --text: #26243b;
  --muted: #7b7890;
  --border: #ebe8f7;
  --purple: #7c4dff;
  --pink: #ff6fb1;
  --blue: #4f9cff;
  --mint: #45d6b5;
  --soft-purple: #eee8ff;
  --shadow: 0 18px 45px rgba(58, 46, 105, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scrollbar-width: thin;
  scrollbar-color: #d8ceff #f8f7ff;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
}

body::-webkit-scrollbar,
html::-webkit-scrollbar {
  width: 6px;
}

body::-webkit-scrollbar-track,
html::-webkit-scrollbar-track {
  background: #e4e4e8;
}

body::-webkit-scrollbar-thumb,
html::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #d8ceff, #f1d5e8);
  border-radius: 999px;
  border: 2px solid #f8f7ff;
}

body::-webkit-scrollbar-thumb:hover,
html::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #e4e2ec, #eb96cf);
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

h2 {
  font-size: 20px;
  font-weight: 600;
}

h3 {
  font-size: 16px;
  font-weight: 600;
}

button,
input,
select {
  font-family: inherit;
}

/* SIDEBAR */

.sidebar {
  position: fixed;
  top: 10px;
  left: 14px;
  bottom: 10px;

  width: 275px;
  min-width: 275px;

  height: calc(100vh - 20px);

  background: #ffffffcc;
  backdrop-filter: blur(20px);

  border: 1px solid var(--border);
  border-radius: 26px;

  padding: 14px;

  display: flex;
  flex-direction: column;

  box-shadow: var(--shadow);

  overflow: hidden;
}

.brand {
  display: flex;
  gap: 10px;
  align-items: center;

  margin-bottom: 18px;

  flex-shrink: 0;

  padding: 4px 6px 10px;
}

.logo {
  width: 38px;
  height: 38px;

  border-radius: 13px;

  display: grid;
  place-items: center;

  color: white;

  background: linear-gradient(
    135deg,
    var(--purple),
    var(--pink)
  );

  font-weight: 600;
}

.brand h2 {
  font-size: 16px;
}

.brand span,
.eyebrow,
small,
p {
  color: var(--muted);
}

.brand span {
  font-size: 12px;
}

/* NAVIGATION */

.nav {
  display: flex;
  flex-direction: column;

  gap: 3px;

  flex: 1;

  min-height: 0;

  overflow-y: auto;

  padding-right: 4px;

  margin-bottom: 18px;
}

.nav::-webkit-scrollbar {
  width: 6px;
}

.nav::-webkit-scrollbar-track {
  background: transparent;
}

.nav::-webkit-scrollbar-thumb {
  background: linear-gradient(
    180deg,
    #d8ceff,
    #d490bf
  );

  border-radius: 999px;
}

.nav::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(
    180deg,
    #c7b8ff,
    #eeb9db
  );
}

.nav-section-title {
  font-size: 10px;
  font-weight: 700;

  letter-spacing: 0.08em;

  color: #9a96b5;

  margin-top: 10px;
  margin-bottom: 4px;

  padding-left: 10px;
}

.nav a {
  display: flex;
  align-items: center;

  gap: 12px;

  width: 100%;

  font-size: 13px;

  padding: 7px 10px;

  border-radius: 14px;

  color: var(--text);

  text-decoration: none;

  font-weight: 500;

  white-space: nowrap;

  transition: 0.2s ease;
}

.nav a:hover,
.nav a.active {
  background: var(--soft-purple);
  color: var(--purple);
}

.nav-icon {
  width: 52px;
  min-width: 52px;

  height: 32px;

  display: inline-flex;

  align-items: center;
  justify-content: center;

  border-radius: 10px;

  background: #f6f2ff;

  color: var(--purple);

  font-size: 18px;
  font-weight: 700;

  flex-shrink: 0;
}

.nav a:hover .nav-icon,
.nav a.active .nav-icon {
  background: white;

  color: var(--purple);

  box-shadow: 0 8px 20px rgba(124, 77, 255, 0.12);
}

/* SIDEBAR BOTTOM */

.sidebar-bottom {
  margin-top: 0;

  display: grid;

  gap: 8px;

  flex-shrink: 0;
}

.plan-card {
  padding: 11px 12px;

  border-radius: 16px;

  background: linear-gradient(
    135deg,
    #f4efff,
    #fff6fb
  );

  border: 1px solid var(--border);
}

.plan-card span,
.plan-card small {
  display: block;
  font-size: 11px;
}

.plan-card strong {
  display: block;

  font-size: 13px;

  font-weight: 600;

  margin: 2px 0;
}

.sidebar-tools {
  display: grid;
  gap: 3px;
}

.sidebar-tools a {
  display: flex;
  align-items: center;

  gap: 9px;

  color: var(--text);

  text-decoration: none;

  padding: 8px 10px;

  border-radius: 12px;

  font-weight: 500;

  font-size: 12.5px;
}

.sidebar-tools a:hover,
.sidebar-tools .active-link {
  background: var(--soft-purple);
  color: var(--purple);
}

.sidebar-icon {
  width: 20px;
  height: 20px;

  border-radius: 7px;

  display: grid;
  place-items: center;

  background: #f4efff;

  color: var(--purple);

  font-size: 12px;
  font-weight: 600;

  flex-shrink: 0;
}

/* APP */

.app {
  margin-left: 312px;
  padding: 24px 30px 40px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;

  margin-bottom: 24px;
}

.top-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.top-actions input {
  width: 260px;

  border: 1px solid var(--border);

  border-radius: 16px;

  padding: 12px 14px;

  outline: none;
}

.profile-circle {
  width: 42px;
  height: 42px;

  border-radius: 50%;

  background: white;

  border: 1px solid var(--border);

  display: grid;
  place-items: center;

  text-decoration: none;

  box-shadow: var(--shadow);
}

/* HERO */

.hero-card {
  background: linear-gradient(
    135deg,
    #ffffff,
    #f2ebff 55%,
    #fff2f8
  );

  border: 1px solid var(--border);

  border-radius: 30px;

  padding: 28px;

  display: flex;
  justify-content: space-between;
  align-items: center;

  box-shadow: var(--shadow);

  margin-bottom: 22px;
}

.hero-card p {
  margin-top: 8px;
  max-width: 620px;
}

/* BUTTONS */

.hero-card button,
.primary-btn {
  background: linear-gradient(
    135deg,
    var(--purple),
    var(--pink)
  );

  color: white;

  border: 0;

  border-radius: 16px;

  padding: 12px 18px;

  font-weight: 600;

  cursor: pointer;

  text-decoration: none;

  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.soft-btn {
  border: 1px solid var(--border);

  background: white;

  color: var(--purple);

  border-radius: 14px;

  padding: 10px 14px;

  font-weight: 600;

  cursor: pointer;

  text-decoration: none;

  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* STATS */

.stats-grid {
  display: grid;

  grid-template-columns: repeat(4, 1fr);

  gap: 16px;

  margin-bottom: 20px;
}

.stat-card,
.panel,
.form-card,
.profile-card {
  background: var(--card);

  border: 1px solid var(--border);

  border-radius: 24px;

  padding: 20px;

  box-shadow: var(--shadow);
}

.stat-card span,
.stat-card small {
  display: block;
  color: var(--muted);
}

.stat-card strong {
  display: block;

  font-size: 24px;

  font-weight: 600;

  margin: 8px 0;
}

/* CONTENT */

.content-grid {
  display: grid;

  grid-template-columns: 2fr 1fr;

  gap: 18px;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;

  margin-bottom: 16px;
}

/* ORDERS */

.order-row {
  display: grid;

  grid-template-columns: 12px 1fr auto;

  gap: 12px;

  align-items: center;

  padding: 14px 0;

  border-top: 1px solid var(--border);
}

.order-row strong {
  display: block;
  font-weight: 600;
}

.order-row em {
  font-style: normal;
  color: var(--muted);
  font-size: 13px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.pink {
  background: var(--pink);
}

.purple {
  background: var(--purple);
}

.blue {
  background: var(--blue);
}

/* QUICK ACTIONS */

.quick-actions {
  display: grid;
  gap: 10px;

  margin-top: 16px;
}

.quick-actions button,
.quick-actions a {
  border: 1px solid var(--border);

  background: #fbfaff;

  border-radius: 16px;

  padding: 13px;

  text-align: left;

  cursor: pointer;

  font-weight: 500;

  color: var(--text);

  text-decoration: none;
}

.quick-actions button:hover,
.quick-actions a:hover {
  background: var(--soft-purple);
  color: var(--purple);
}

/* LOWER DASHBOARD */

.dashboard-lower {
  margin-top: 18px;
}

.mini-list {
  display: grid;
  gap: 12px;

  margin-top: 14px;
}

.mini-list div {
  display: flex;
  justify-content: space-between;

  gap: 14px;

  padding: 13px 0;

  border-top: 1px solid var(--border);
}

.mini-list span {
  color: var(--muted);
}

.mini-list strong {
  font-weight: 600;
}

/* FORMS */

.form-card {
  margin-bottom: 20px;
}

.form-card h2 {
  margin-bottom: 18px;
}

.form-grid {
  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 16px;

  align-items: start;
}

.form-grid .full {
  margin-bottom: 4px;
}

label {
  display: grid;

  gap: 8px;

  color: var(--muted);

  font-size: 13px;
}

input,
select {
  border: 1px solid var(--border);

  border-radius: 14px;

  padding: 12px;

  outline: none;

  color: var(--text);

  background: white;
}

.full {
  grid-column: 1 / -1;
}

.form-card .primary-btn {
  margin-top: 18px;
}

/* PROFILE */

.profile-card {
  display: flex;
  align-items: center;

  gap: 18px;

  margin-bottom: 20px;
}

.avatar-large {
  width: 76px;
  height: 76px;

  border-radius: 24px;

  background: linear-gradient(
    135deg,
    #eee8ff,
    #ffe8f3
  );

  display: grid;
  place-items: center;

  font-size: 30px;
}

/* RESPONSIVE */

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

@media (max-width: 900px) {
  .sidebar {
    position: static;

    width: auto;
    min-width: 0;

    height: auto;

    margin: 16px;
  }

  .nav {
    overflow: visible;
  }

  .app {
    margin-left: 0;
    padding: 16px;
  }

  .stats-grid,
  .content-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .topbar,
  .hero-card {
    flex-direction: column;
    align-items: flex-start;

    gap: 16px;
  }
}

/* HELP PAGE CARDS */

.help-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 22px;
}

.help-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 22px;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--text);
  display: flex;
  gap: 16px;
  align-items: flex-start;
  min-height: 140px;
  transition: 0.2s ease;
}

.help-card:hover {
  transform: translateY(-2px);
  border-color: rgba(124, 77, 255, 0.25);
  background: linear-gradient(135deg, #ffffff, #fbf8ff);
}

.help-card span,
.help-card small {
  display: block;
  color: var(--muted);
}

.help-card strong {
  display: block;
  font-size: 18px;
  font-weight: 600;
  margin: 6px 0;
}

.help-icon {
  width: 48px;
  min-width: 48px;
  height: 48px;
  border-radius: 17px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #eee8ff, #fff2f8);
  color: var(--purple);
  font-size: 20px;
}

@media (max-width: 900px) {
  .help-grid {
    grid-template-columns: 1fr;
  }
}

/* ACTIVE SCROLLBAR */

body::-webkit-scrollbar-thumb:active,
html::-webkit-scrollbar-thumb:active,
.nav::-webkit-scrollbar-thumb:active {
  background: linear-gradient(
    180deg,
    #c9bbff,
    #efc3df
  );
}

/* SUBSCRIPTION / PRICING PAGE */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 22px;
}

.pricing-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.pricing-card h2 {
  font-size: 28px;
  margin: 10px 0 6px;
}

.pricing-card p {
  margin-bottom: 16px;
}

.plan-label {
  display: inline-flex;
  width: fit-content;
  padding: 7px 10px;
  border-radius: 999px;
  background: #f4efff;
  color: var(--purple);
  font-size: 12px;
  font-weight: 600;
}

.pricing-description {
  min-height: 58px;
}

.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 18px 0;
  display: grid;
  gap: 10px;
  flex: 1;
}

.pricing-card li {
  color: var(--muted);
  font-size: 13px;
}

.pricing-card li::before {
  content: "✓";
  color: var(--purple);
  margin-right: 8px;
}

.plan-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.plan-footer small {
  color: var(--muted);
  line-height: 1.5;
  min-height: 68px;
}

.pricing-card button {
  width: 100%;
  justify-content: center;
}

.active-plan {
  position: relative;
  overflow: hidden;
  border-color: rgba(124, 77, 255, 0.35);
  background: linear-gradient(180deg, #ffffff, #faf7ff);
}

.active-plan::before {
  content: "Current";
  position: absolute;
  top: 18px;
  right: -32px;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 6px 40px;
  transform: rotate(45deg);
}

.usage-row {
  display: grid;
  gap: 10px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
}

.usage-row strong,
.billing-box strong {
  font-weight: 600;
}

.usage-row small,
.billing-box span,
.billing-box small {
  display: block;
  color: var(--muted);
}

.usage-bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: #f2effb;
  overflow: hidden;
}

.usage-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--purple), var(--pink));
}

.billing-box {
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, #f4efff, #fff6fb);
  border: 1px solid var(--border);
  margin: 16px 0;
}

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

@media (max-width: 700px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

/* Profile */


.profile-circle {
  width: 42px;
  height: 42px;

  border-radius: 50%;

  background: white;

  border: 1px solid var(--border);

  display: grid;
  place-items: center;

  cursor: pointer;

  box-shadow: var(--shadow);
}











/* PROFILE PAGE UPDATES */

.profile-overview-card {
  justify-content: space-between;
}

.profile-overview-content {
  flex: 1;
}

.profile-badges {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.profile-badges span {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  background: #f4efff;
  color: var(--purple);
  font-size: 12px;
  font-weight: 600;
}

.security-list {
  display: grid;
  gap: 12px;
  margin: 16px 0;
}

.security-list div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 0;
  border-top: 1px solid var(--border);
}

.security-list span {
  color: var(--muted);
}

.security-list strong {
  font-weight: 600;
  font-size: 13px;
}

.profile-menu-wrapper {
  position: relative;
}

.profile-circle {
  cursor: pointer;
}

.profile-dropdown {
  position: absolute;
  top: 52px;
  right: 0;
  width: 220px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 10px;
  display: none;
  z-index: 1000;
}

.profile-dropdown.active {
  display: block;
}

.profile-dropdown a {
  display: block;
  padding: 11px 12px;
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
}

.profile-dropdown a:hover {
  background: var(--soft-purple);
  color: var(--purple);
}

.profile-dropdown hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 8px 0;
}

/* BRANDING SECTION */

.branding-section {
  display: grid;
  gap: 18px;
}

.branding-upload {
  display: flex;
  gap: 16px;
  align-items: center;
}

.branding-logo-preview {
  width: 78px;
  height: 78px;

  border-radius: 22px;

  background: linear-gradient(
    135deg,
    #eee8ff,
    #fff2f8
  );

  display: grid;
  place-items: center;

  color: var(--purple);

  font-size: 13px;
  font-weight: 700;

  border: 1px solid var(--border);
}

.branding-color-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

input[type="color"] {
  width: 100%;
  height: 48px;

  border-radius: 14px;

  border: 1px solid var(--border);

  padding: 4px;

  background: white;

  cursor: pointer;
}

/* MINI ACCOUNTING GRAPH */

.mini-chart {
  height: 120px;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(135deg, #fbfaff, #fff6fb);
  border: 1px solid var(--border);
  margin: 14px 0 10px;
}

.mini-chart div {
  flex: 1;
  min-height: 18px;
  border-radius: 999px 999px 6px 6px;
  background: linear-gradient(180deg, var(--purple), var(--pink));
  opacity: 0.82;
}

/* ACCOUNTING SAAS CARD */

.accounting-panel {
  overflow: hidden;
}

.accounting-summary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 14px 0;
}

.accounting-summary div {
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(135deg, #fbfaff, #fff6fb);
  border: 1px solid var(--border);
}

.accounting-summary span,
.accounting-summary small {
  display: block;
  color: var(--muted);
}

.accounting-summary strong {
  display: block;
  font-size: 22px;
  font-weight: 600;
  margin: 6px 0;
}

.finance-chart {
  height: 150px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid var(--border);
  padding: 14px;
  margin: 14px 0;
}

.finance-chart svg {
  width: 100%;
  height: 100%;
}

/* ORDERS PAGE */



.tab {
  border: 1px solid var(--border);
  background: white;
  color: var(--muted);
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
}



.kanban-board {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 285px;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 16px;
}

.kanban-board::-webkit-scrollbar {
  height: 10px;
}

.kanban-board::-webkit-scrollbar-track {
  background: #f8f7ff;
}

.kanban-board::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #d8ceff, #f1d5e8);
  border-radius: 999px;
  border: 2px solid #f8f7ff;
}

.kanban-column {
  background: #ffffffb8;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 14px;
  min-height: 440px;
  box-shadow: var(--shadow);
}

.kanban-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.kanban-header span {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #f4efff;
  color: var(--purple);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 600;
}

.order-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: 0 10px 28px rgba(58, 46, 105, 0.06);
}

.order-card-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.order-card-top strong {
  font-weight: 600;
}

.order-card-top span,
.order-card p,
.order-card small {
  color: var(--muted);
}



.status-badge,
.alert-badge {
  display: inline-flex;
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}





























/* Production */




.orders-list {
  display: grid;
  gap: 10px;
}

.order-list-row {
  display: grid;
  grid-template-columns: 90px 1.3fr 1.4fr 80px auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fbfaff;
}

.order-list-head {
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.production-page {
  background: var(--bg);
}

.production-app {
  padding: 22px;
}

.production-topbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
}

.production-full-board {
  height: calc(100vh - 120px);
}
/* ORDERS LIST PAGE */

.tab-panel {
  display: none;
}

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

.orders-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.tab {
  border: 1px solid var(--border);
  background: white;
  color: var(--muted);
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  font-size: 13px;
}

.tab.active,
.tab:hover {
  background: var(--soft-purple);
  color: var(--purple);
}

.order-table {
  display: grid;
  gap: 8px;
}

.order-table-row {
  display: grid;
  grid-template-columns: 90px 1.5fr 1.8fr 80px 170px;

  align-items: center;

  gap: 14px;

  padding: 14px 16px;

  border: 1px solid var(--border);

  border-radius: 18px;

  background: #fbfaff;

  color: var(--text);

  text-decoration: none;

  transition: 0.2s ease;
}

.order-qty {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 52px;
  height: 52px;

  border-radius: 16px;

  background: linear-gradient(
    135deg,
    #f4efff,
    #fff4fa
  );

  border: 1px solid var(--border);

  font-size: 18px;
  font-weight: 600;

  color: var(--purple);

  justify-self: center;
}

.order-table-row:hover {
  background: #ffffff;
  border-color: rgba(124, 77, 255, 0.25);
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(58, 46, 105, 0.06);
}

.order-table-head {
  background: transparent;
  border: 0;
  box-shadow: none;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  padding-bottom: 8px;
}

.order-table-head:hover {
  transform: none;
  box-shadow: none;
  border: 0;
  background: transparent;
}

.status-badge,
.alert-badge {
  justify-self: end;
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}



























@media (max-width: 850px) {
  .order-table-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .status-badge,
  .alert-badge {
    justify-self: start;
  }

  .order-table-head {
    display: none;
  }
}

/* FULL PRODUCTION KANBAN PAGE */

/*.production-page {
  background: var(--bg);
}*/

/*.production-page {
  background:
    radial-gradient(
      circle at top left,
      rgba(124, 77, 255, 0.22),
      transparent 28%
    ),

    radial-gradient(
      circle at top right,
      rgba(255, 111, 177, 0.16),
      transparent 26%
    ),

    linear-gradient(
      180deg,
      #f3efff 0%,
      #ebe5ff 100%
    );

  min-height: 100vh;
}*/

.production-page {
  background:
    radial-gradient(
      circle at top left,
      rgba(124, 77, 255, 0.10),
      transparent 28%
    ),

    radial-gradient(
      circle at top right,
      rgba(255, 111, 177, 0.08),
      transparent 26%
    ),

    linear-gradient(
      180deg,
      #f1f3f7 0%,
      #e7ebf2 100%
    );

  min-height: 100vh;
}

.production-subtitle {
  margin-top: 6px;
  max-width: 680px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.production-app {
  min-height: 100vh;
  padding: 22px;
}

.production-topbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.production-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.production-stat {
  background: white;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 16px;
  box-shadow: var(--shadow);
}

.production-stat span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.production-stat strong {
  display: block;
  font-size: 24px;
  font-weight: 600;
  margin-top: 6px;
}

.production-board {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 292px;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 18px;
  height: calc(100vh - 190px);
}

.production-board::-webkit-scrollbar {
  height: 10px;
}

.production-board::-webkit-scrollbar-track {
  background: #f8f7ff;
}

.production-board::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #d8ceff, #f1d5e8);
  border-radius: 999px;
  border: 2px solid #f8f7ff;
}

.kanban-lane {
  background: #ffffffb8;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  min-height: 100%;
  box-shadow: var(--shadow);
  transition: 0.2s ease;
}

.kanban-lane.drag-over {
  background: #f6f1ff;
  border-color: rgba(124, 77, 255, 0.35);
}

.lane-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.lane-header h3 {
  font-size: 14px;
}

.lane-header span {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #f4efff;
  color: var(--purple);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 600;
}

.kanban-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: 0 10px 28px rgba(58, 46, 105, 0.06);
  cursor: grab;
  transition: 0.2s ease;
}

.kanban-card:hover {
  transform: translateY(-2px);
  border-color: rgba(124, 77, 255, 0.25);
  box-shadow: 0 16px 34px rgba(58, 46, 105, 0.1);
}

.kanban-card.dragging {
  opacity: 0.55;
  transform: rotate(1deg);
  cursor: grabbing;
}

.card-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.card-top strong {
  font-weight: 600;
}

.card-top span,
.kanban-card p,
.kanban-card small {
  color: var(--muted);
}

.badge-row {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.status-badge,
.alert-badge {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.status-new {
  background: #eef5ff;
  color: #2f6fd6;
}

.status-artwork {
  background: #fff1df;
  color: #d8841f;
}

.status-approval {
  background: #fff7d8;
  color: #b08900;
}

.status-materials {
  background: #fff1df;
  color: #d8841f;
}

.status-production {
  background: #eee8ff;
  color: var(--purple);
}

.status-delayed {
  background: #ffe5ea;
  color: #d64563;
}

.status-ready {
  background: #e7fff2;
  color: #179b57;
}

.status-completed {
  background: #e7fff2;
  color: #179b57;
}

.rush {
  background: #ffe5ea;
  color: #d64563;
}

.material {
  background: #fff1df;
  color: #d8841f;
}

.customer {
  background: #fff7d8;
  color: #b08900;
}

.approval {
  background: #fff7d8;
  color: #b08900;
}

.pickup {
  background: #e7fff2;
  color: #179b57;
}

@media (max-width: 900px) {
  .production-topbar {
    grid-template-columns: 1fr;
  }

  .production-summary {
    grid-template-columns: repeat(2, 1fr);
  }

  .production-board {
    height: auto;
  }
}
.simple-list {
  display: grid;
  gap: 10px;
}

.simple-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 16px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: #fbfaff;
  color: var(--text);
  text-decoration: none;
  transition: 0.2s ease;
}

.simple-row:hover {
  background: white;
  border-color: rgba(124, 77, 255, 0.25);
  transform: translateY(-1px);
}

.simple-row strong {
  display: block;
  font-weight: 600;
}

.simple-row small {
  display: block;
  margin-top: 4px;
}

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

.product-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.product-thumb {
  width: 100%;
  height: 150px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #eee8ff, #fff2f8);
  font-size: 46px;
  margin-bottom: 16px;
}

.product-card h3 {
  margin-bottom: 6px;
}

.product-card p {
  margin-bottom: 16px;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

@media (max-width: 1000px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.tool-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 20px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
}

.tool-icon {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #eee8ff, #fff2f8);
  font-size: 24px;
}

.tool-card p {
  min-height: 72px;
}

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

@media (max-width: 700px) {
  .tool-grid {
    grid-template-columns: 1fr;
  }
}

.integration-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.integration-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 20px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 58px 1fr auto;
  gap: 16px;
  align-items: center;
}

.integration-icon {
  width: 58px;
  height: 58px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #eee8ff, #fff2f8);
  font-size: 26px;
}

.integration-card h3 {
  margin-bottom: 6px;
}

@media (max-width: 900px) {
  .integration-grid {
    grid-template-columns: 1fr;
  }

  .integration-card {
    grid-template-columns: 1fr;
  }
}

/* CALCULATOR PAGE */

.calculator-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.calculator-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 20px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
  cursor: pointer;
  transition: 0.2s ease;
}

.calculator-card:hover {
  transform: translateY(-2px);
  border-color: rgba(124, 77, 255, 0.25);
}

.calculator-card.locked {
  opacity: 0.58;
  cursor: not-allowed;
}

.calculator-icon {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #eee8ff, #fff2f8);
  color: var(--purple);
  font-size: 24px;
  font-weight: 700;
}

.calculator-card p {
  min-height: 70px;
}

.calculator-modal {
  position: fixed;
  inset: 0;
  background: rgba(38, 36, 59, 0.35);
  backdrop-filter: blur(8px);
  display: none;
  place-items: center;
  z-index: 2000;
  padding: 20px;
}

.calculator-modal.active {
  display: grid;
}

.calculator-modal-card {
  width: min(620px, 100%);
  background: white;
  border: 1px solid var(--border);
  border-radius: 30px;
  box-shadow: 0 30px 80px rgba(58, 46, 105, 0.22);
  padding: 28px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #f4efff;
  color: var(--purple);
  font-size: 22px;
  cursor: pointer;
}

.calculator-form {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.calculator-form.hidden {
  display: none;
}

.calculator-result {
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, #f4efff, #fff6fb);
  border: 1px solid var(--border);
  color: var(--text);
  line-height: 1.6;
}

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

@media (max-width: 700px) {
  .calculator-grid {
    grid-template-columns: 1fr;
  }
}

.calculator-helper-link {
  background: transparent;
  border: 0;
  color: var(--purple);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  padding: 0;
  width: fit-content;
}

.expense-helper {
  background: linear-gradient(135deg, #fbfaff, #fff6fb);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 18px;
  display: grid;
  gap: 14px;
}

.expense-helper.hidden {
  display: none;
}

.expense-helper p {
  font-size: 13px;
  line-height: 1.5;
}

.field-label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-tooltip {
  position: relative;

  width: 18px;
  height: 18px;

  border-radius: 50%;

  background: #eee8ff;

  color: var(--purple);

  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-size: 11px;
  font-weight: 700;

  cursor: pointer;
}

.tooltip-box {
  position: absolute;

  left: 28px;
  top: -8px;

  width: 240px;

  background: #2b2740;

  color: white;

  padding: 12px;

  border-radius: 14px;

  font-size: 12px;
  line-height: 1.5;

  opacity: 0;
  visibility: hidden;

  transform: translateY(4px);

  transition: 0.2s ease;

  z-index: 50;
}

.info-tooltip:hover .tooltip-box {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.calculator-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}
/* Accessible shared controls and constrained layouts. */
:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; }
.profile-signout { display: block; width: 100%; border: 0; border-radius: 12px; background: white; color: var(--text); padding: 11px 12px; text-align: left; cursor: pointer; }
.profile-signout:hover { background: var(--soft-purple); }
.calculator-modal { overflow-y: auto; }
.calculator-modal-card { max-height: calc(100dvh - 40px); overflow-y: auto; }
.order-table-row { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.5fr) minmax(0, 1.5fr) minmax(60px, .6fr) minmax(110px, 1fr); }
.order-table-row > span { overflow-wrap: anywhere; min-width: 0; }
.kanban-card select { width: 100%; margin-top: 12px; font-size: 12px; }
.app-notice { padding: 12px 16px; margin-bottom: 18px; border: 1px solid var(--border); border-radius: 14px; background: #fff7d8; color: var(--text); }
button:disabled { opacity: .55; cursor: not-allowed; }
@media (max-width: 850px) {
  .order-table-row { grid-template-columns: 1fr; }
  .order-table-row:not(.order-table-head) > span[data-label]::before { content: attr(data-label) ": "; font-weight: 600; }
  .profile-card { flex-wrap: wrap; }
  .top-actions { flex-wrap: wrap; max-width: 100%; }
  .top-actions input { max-width: 100%; }
}

.resource-toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 16px 0; }
.table-scroll { overflow-x: auto; }
.resource-table { width: 100%; border-collapse: collapse; text-align: left; }
.resource-table th, .resource-table td { padding: 14px 10px; border-bottom: 1px solid var(--border); }
.resource-table td { overflow-wrap: anywhere; }
.resource-table td:last-child { min-width: 160px; }
.resource-table td button { margin: 3px; }
.record-dialog { border: 1px solid var(--border); border-radius: 24px; padding: 28px; width: min(720px, calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; }
.record-dialog::backdrop { background: #26243b88; }
.record-dialog h2 { margin-bottom: 18px; }
.record-dialog form > button { margin: 18px 10px 0 0; }
textarea { font: inherit; padding: 12px; border: 1px solid var(--border); border-radius: 14px; min-height: 100px; }
dt { font-weight: 600; margin-top: 14px; } dd { margin: 6px 0 0; white-space: pre-wrap; }
