@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,500&display=swap");

:root {
  --navy: #0f1d4a;
  --navy-dark: #081433;
  --blue: #3b6dff;
  --blue-deep: #1f4fd6;
  --blue-soft: #edf3ff;
  --cyan: #22d3ee;
  --purple: #7c5cff;
  --yellow: #fbbf24;
  --red: #f43f5e;
  --green: #10b981;
  --ink: #0f172a;
  --muted: #64748b;
  --line: rgba(148, 163, 184, 0.28);
  --paper: rgba(255, 255, 255, 0.92);
  --bg: #eef2ff;
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 12px 32px rgba(15, 23, 42, 0.08);
  --radius-lg: 22px;
  --radius-md: 16px;
  --glow-blue: 0 0 0 1px rgba(59, 109, 255, 0.14), 0 18px 40px rgba(59, 109, 255, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 0% 0%, rgba(59, 109, 255, 0.16), transparent 34%),
    radial-gradient(circle at 100% 12%, rgba(124, 92, 255, 0.14), transparent 30%),
    radial-gradient(circle at 48% 100%, rgba(34, 211, 238, 0.1), transparent 36%),
    linear-gradient(180deg, #f8faff 0%, var(--bg) 48%, #e8eeff 100%);
  font-family:
    "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

html.embed-mode .sidebar {
  display: none;
}

html.embed-mode .app-shell {
  grid-template-columns: minmax(0, 1fr);
}

.app-shell-host {
  min-height: 100vh;
}

.workspace-frame {
  display: block;
  width: 100%;
  min-height: 100vh;
  border: 0;
  background: transparent;
}

.app-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 24px 12px 24px 16px;
  overflow: hidden;
  color: #ffffff;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 18% 8%, rgba(96, 165, 250, 0.35), transparent 28%),
    radial-gradient(circle at 88% 92%, rgba(124, 92, 255, 0.22), transparent 32%),
    linear-gradient(195deg, #12235c 0%, var(--navy) 42%, var(--navy-dark) 100%);
  box-shadow: 18px 0 48px rgba(8, 20, 51, 0.18);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 10px 26px;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(145deg, #5b8cff 0%, #3b6dff 45%, #7c5cff 100%);
  box-shadow:
    0 10px 24px rgba(59, 109, 255, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.06em;
}

.brand strong,
.brand span {
  display: block;
}

.brand span {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sidebar-footer {
  flex-shrink: 0;
  margin-top: auto;
  padding: 12px 4px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-footer .nav-group {
  margin-top: 0;
}

.form-section-divider {
  grid-column: 1 / -1;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.form-section-divider h4 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
}

.checkbox-field {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.checkbox-field input {
  width: auto;
}

.customer-panel-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.customer-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px;
}

.customer-panel-main {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 24px;
}

.customer-panel-card {
  width: min(100%, 560px);
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.customer-panel-welcome {
  margin: 0 0 8px;
  font-size: 32px;
  font-weight: 800;
  color: var(--navy);
}

.customer-panel-placeholder {
  margin-top: 20px;
}

.sidebar-scroll {
  flex: 1;
  min-height: 0;
  margin-top: 2px;
  padding-right: 6px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(96, 165, 250, 0.72) rgba(255, 255, 255, 0.06);
}

.sidebar-scroll::-webkit-scrollbar {
  width: 7px;
}

.sidebar-scroll::-webkit-scrollbar-track {
  margin: 10px 0 14px;
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.02) 0%,
    rgba(255, 255, 255, 0.08) 50%,
    rgba(255, 255, 255, 0.02) 100%
  );
}

.sidebar-scroll::-webkit-scrollbar-thumb {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(147, 197, 253, 0.95) 0%, rgba(96, 165, 250, 0.88) 45%, rgba(124, 92, 255, 0.82) 100%);
  box-shadow:
    0 0 14px rgba(96, 165, 250, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.sidebar-scroll::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(191, 219, 254, 1) 0%, rgba(129, 178, 255, 0.95) 50%, rgba(167, 139, 250, 0.92) 100%);
}

.sidebar-scroll::-webkit-scrollbar-thumb:active {
  background: linear-gradient(180deg, rgba(96, 165, 250, 1) 0%, rgba(79, 70, 229, 0.95) 100%);
}

.sidebar-nav,
.sidebar-footer {
  display: grid;
  gap: 8px;
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  border: 1px solid transparent;
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.nav-item span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}

.nav-item:hover,
.nav-item.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateX(3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.nav-item.active {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.08));
}

.nav-item.active span {
  color: var(--navy);
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(255, 255, 255, 0.25);
}

.nav-item.danger span {
  background: rgba(239, 71, 111, 0.24);
}

.nav-group {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.nav-group-label {
  margin: 0 0 10px 14px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav-group-items {
  gap: 6px;
}

.workspace {
  min-width: 0;
  padding: 22px 24px 34px;
  animation: page-rise 0.55s ease both;
}

@keyframes page-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--blue-deep);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 0;
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 800;
  letter-spacing: -0.045em;
  background: linear-gradient(135deg, var(--ink) 0%, #334155 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.language-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-soft);
}

.language-switch button {
  min-width: 36px;
  min-height: 30px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
  font-weight: 800;
}

.language-switch button.active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%);
  box-shadow: 0 8px 18px rgba(59, 109, 255, 0.28);
}

.sidebar-language-switch {
  width: 100%;
  justify-content: center;
}

select,
.icon-button,
.user-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(20, 35, 95, 0.06);
}

select {
  min-height: 40px;
  padding: 0 14px;
}

.icon-button {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: #ffffff;
  background: var(--navy);
  font-weight: 800;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 4px 12px 4px 4px;
  font-weight: 700;
}

.avatar {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, #222c66, #5394ff);
  font-size: 12px;
  font-weight: 900;
}

.hero-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 30px;
  border-radius: var(--radius-lg);
  color: #ffffff;
  background:
    radial-gradient(circle at 92% 8%, rgba(255, 255, 255, 0.22), transparent 28%),
    radial-gradient(circle at 8% 100%, rgba(34, 211, 238, 0.28), transparent 34%),
    linear-gradient(135deg, #1a3fbf 0%, #3b6dff 52%, #7c5cff 100%);
  box-shadow: var(--glow-blue);
  overflow: hidden;
  position: relative;
}

.hero-card::after {
  position: absolute;
  inset: auto -40px -70px auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  content: "";
  pointer-events: none;
}

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

.hero-card h2 {
  margin-bottom: 8px;
  font-size: clamp(24px, 3.2vw, 38px);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.hero-card p {
  max-width: 720px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.55;
}

.hero-card .eyebrow {
  color: rgba(255, 255, 255, 0.82);
}

.primary-button {
  display: inline-grid;
  align-items: center;
  justify-content: center;
  min-width: 134px;
  min-height: 44px;
  border: 0;
  border-radius: 14px;
  color: var(--navy);
  background: #ffffff;
  font-weight: 800;
  text-decoration: none;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.primary-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.18);
}

.topbar-actions .primary-button,
.primary-button.solid {
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%);
  box-shadow: 0 14px 30px rgba(59, 109, 255, 0.35);
}

.topbar-actions .primary-button:hover,
.primary-button.solid:hover {
  box-shadow: 0 18px 36px rgba(59, 109, 255, 0.42);
}

.link-button {
  padding: 0 18px;
}

.secondary-link {
  display: inline-grid;
  min-height: 40px;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-soft);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.secondary-link:hover {
  transform: translateY(-1px);
  border-color: rgba(59, 109, 255, 0.35);
  box-shadow: var(--glow-blue);
}

.search-card,
.panel-card,
.stat-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-soft);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.panel-card:hover,
.search-card:focus-within {
  border-color: rgba(59, 109, 255, 0.22);
  box-shadow: var(--glow-blue);
}

.search-card {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding: 16px;
}

.search-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.search-heading span {
  color: var(--muted);
  font-size: 13px;
}

input[type="search"] {
  width: 100%;
  min-height: 48px;
  padding: 0 16px 0 44px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 14px;
  outline: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E")
    no-repeat 14px center,
    #ffffff;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

input[type="search"]:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(59, 109, 255, 0.14);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.stat-card {
  position: relative;
  overflow: hidden;
  padding: 18px 18px 18px 72px;
}

.stat-card::before {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  content: "";
  opacity: 0.85;
}

.stat-card::after {
  position: absolute;
  top: 22px;
  left: 18px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  font-size: 18px;
  line-height: 1;
  background: linear-gradient(145deg, rgba(59, 109, 255, 0.14), rgba(124, 92, 255, 0.08));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.stats-grid .stat-card:nth-child(1)::after {
  content: "◎";
}

.stats-grid .stat-card:nth-child(2)::after {
  content: "◆";
}

.stats-grid .stat-card:nth-child(3)::after {
  content: "◇";
}

.stats-grid .stat-card:nth-child(4)::after {
  content: "▣";
}

.stat-card.accent::before {
  background: linear-gradient(90deg, #f59e0b, var(--yellow));
}

.stat-card.accent::after {
  background: linear-gradient(145deg, rgba(251, 191, 36, 0.2), rgba(245, 158, 11, 0.1));
}

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

.stat-card span {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.stat-card strong {
  display: block;
  margin: 6px 0;
  color: var(--blue-deep);
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
}

.stat-card.accent strong {
  color: #d97706;
}

.stat-card-filter:hover {
  transform: translateY(-3px);
  border-color: rgba(59, 109, 255, 0.35);
  box-shadow: var(--glow-blue);
}

.stat-card-filter.active {
  border-color: rgba(59, 109, 255, 0.45);
  box-shadow: var(--glow-blue);
}

.stat-card-filter {
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.stat-card-filter:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.dashboard-grid,
.bottom-grid {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.dashboard-grid {
  grid-template-columns: minmax(320px, 0.95fr) minmax(380px, 1.35fr);
}

.quotes-page-grid {
  grid-template-columns: 1fr;
}

.quotes-page-grid .quotes-list-panel {
  order: 1;
}

.quotes-page-grid .quotes-side-panel {
  order: 2;
}

.quotes-list-panel {
  margin-top: 16px;
}

.bottom-grid {
  grid-template-columns: minmax(420px, 1.35fr) minmax(300px, 0.75fr);
}

.panel-card {
  padding: 18px;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.section-title h3 {
  margin-bottom: 0;
  font-size: 17px;
}

.section-title span,
.section-title button {
  color: var(--muted);
  font-size: 12px;
}

.section-title button {
  border: 0;
  background: transparent;
  font-weight: 800;
}

.donut-wrap {
  display: grid;
  grid-template-columns: 190px 1fr;
  align-items: center;
  gap: 18px;
  min-height: 230px;
}

.donut {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: conic-gradient(
    var(--blue) 0 48%,
    var(--cyan) 48% 68%,
    var(--yellow) 68% 82%,
    var(--purple) 82% 100%
  );
  box-shadow: inset 0 0 0 44px #ffffff;
}

.legend {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  list-style: none;
}

.legend span {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 8px;
  border-radius: 3px;
}

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

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

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

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

.bar-list {
  display: grid;
  gap: 14px;
  padding-top: 6px;
}

.bar-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 13px;
}

.bar-row i {
  position: relative;
  display: block;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--blue-soft);
}

.bar-row i::after {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--value);
  border-radius: inherit;
  background: linear-gradient(90deg, #2b74ff, #164cc8);
  content: "";
}

.work-list {
  display: grid;
  gap: 12px;
}

.work-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.work-item:hover {
  transform: translateX(4px);
  border-color: rgba(59, 109, 255, 0.28);
  box-shadow: var(--shadow-soft);
}

.work-item strong,
.work-item span {
  display: block;
}

.work-item span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.status {
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.urgent {
  color: #ffffff;
  background: linear-gradient(135deg, #fb7185, var(--red));
}

.waiting {
  color: #92400e;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
}

.progress {
  color: #065f46;
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
}

.done {
  color: #1e3a8a;
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
}

.task-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.task-filter-bar button {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
  font-weight: 800;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease,
    color 160ms ease,
    border-color 160ms ease;
}

.task-filter-bar button:hover {
  transform: translateY(-1px);
  border-color: rgba(59, 109, 255, 0.3);
}

.task-filter-bar button.active {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%);
  box-shadow: 0 12px 28px rgba(59, 109, 255, 0.32);
}

.saved-task-panel {
  margin-top: 16px;
}

.saved-task-list {
  display: grid;
  gap: 12px;
}

.saved-task-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: start;
  padding: 16px 16px 16px 20px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

.saved-task-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.saved-task-content {
  display: grid;
  gap: 7px;
}

.saved-task-content span,
.saved-task-content p,
.saved-task-lines {
  color: var(--muted);
  font-size: 13px;
}

.saved-task-content p,
.saved-task-lines {
  margin: 0;
}

.saved-task-lines {
  display: grid;
  gap: 4px;
  padding-left: 18px;
}

.saved-task-actions {
  display: grid;
  gap: 8px;
  min-width: 130px;
}

.saved-task-actions select,
.saved-task-actions button,
.saved-task-actions a {
  min-height: 40px;
  border-radius: 12px;
}

.saved-task-actions a {
  display: inline-grid;
  place-items: center;
  padding: 0 12px;
  color: var(--navy);
  background: var(--blue-soft);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.saved-task-actions select {
  padding: 0 10px;
}

.saved-task-actions button {
  border: 0;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%);
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(59, 109, 255, 0.28);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.saved-task-actions button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(59, 109, 255, 0.34);
}

.job-log-panel {
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

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

.job-log-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfcff;
}

.job-log-item strong {
  color: var(--navy);
  font-size: 14px;
}

.job-log-item span {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.profit-sheet-panel {
  margin-top: 16px;
  overflow-x: auto;
}

.profit-sheet {
  min-width: 1240px;
  border: 1px solid #cbd6e8;
  border-radius: 14px;
  overflow: hidden;
  background: #ffffff;
}

.profit-sheet-row {
  display: grid;
  grid-template-columns: 96px 1.4fr 72px 110px 110px 86px 150px 120px 150px 110px 128px;
  min-height: 54px;
}

.profit-sheet-row > span {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 10px;
  border-right: 1px solid #dbe4f2;
  border-bottom: 1px solid #dbe4f2;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
}

.profit-sheet-row > span:last-child {
  border-right: 0;
}

.profit-sheet-head > span {
  position: sticky;
  top: 0;
  color: #33415f;
  background: #edf3ff;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.profit-sheet-photo {
  justify-content: center;
}

.profit-sheet-photo img {
  width: 58px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
}

.profit-sheet-actions {
  gap: 6px;
}

.profit-sheet-actions a,
.profit-sheet-actions button {
  display: inline-grid;
  min-height: 30px;
  align-items: center;
  padding: 0 9px;
  border: 0;
  border-radius: 9px;
  color: var(--navy);
  background: var(--blue-soft);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.profit-sheet-actions button {
  color: #a7193d;
  background: #ffe3eb;
}

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

.profit-edit-photo {
  grid-row: span 2;
}

.profit-edit-photo span {
  display: grid;
  min-height: 170px;
  margin-top: 8px;
  place-items: center;
  overflow: hidden;
  border: 1px dashed #aab9d0;
  border-radius: 16px;
  color: var(--muted);
  background: #fbfcff;
}

.profit-edit-photo img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.profit-entry-panel {
  overflow-x: auto;
  border: 1px solid #cbd6e8;
  border-radius: 16px;
  background: #ffffff;
}

.profit-products-panel {
  display: grid;
  gap: 14px;
}

.profit-products-list {
  display: grid;
  gap: 12px;
}

.profit-product-card {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
  box-shadow: var(--shadow-soft);
}

.profit-photo-upload .quote-photo-preview,
.profit-photo-preview {
  width: 104px;
  height: 104px;
  border-radius: 14px;
}

.profit-photo-upload:has(.quote-photo-preview img) input {
  width: 34px;
  height: 34px;
  inset: auto 4px 4px auto;
}

.profit-photo-preview.is-clickable {
  cursor: zoom-in;
}

.profit-product-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(88px, 1fr));
  gap: 10px;
}

.profit-product-fields .quote-field input,
.profit-product-fields .quote-field textarea {
  min-height: 42px;
  padding: 9px 11px;
}

.profit-product-fields .quote-field textarea {
  min-height: 72px;
  resize: vertical;
}

.profit-product-stats {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--blue-soft);
}

.profit-product-stats > div {
  display: grid;
  gap: 4px;
}

.profit-product-stats span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.profit-product-stats strong {
  color: var(--navy);
  font-size: 14px;
  font-weight: 800;
}

.profit-product-remove {
  align-self: start;
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  color: #a7193d;
  background: #ffe3eb;
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.profit-product-remove:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(167, 25, 61, 0.14);
}

.profit-entry-toolbar {
  position: static;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
}

.profit-entry-toolbar button {
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%);
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(59, 109, 255, 0.24);
}

.profit-entry-table {
  min-width: 1380px;
}

.profit-entry-row {
  display: grid;
  grid-template-columns: 130px 240px 76px 120px 120px 110px 150px 120px 160px 170px 70px;
  min-height: 58px;
}

.profit-entry-row > * {
  min-width: 0;
  margin: 0;
  border-right: 1px solid #dbe4f2;
  border-bottom: 1px solid #dbe4f2;
}

.profit-entry-head > span {
  display: flex;
  align-items: center;
  padding: 10px;
  color: #33415f;
  background: #edf3ff;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.profit-entry-row input,
.profit-entry-row textarea,
.profit-entry-row strong,
.profit-entry-row button {
  width: 100%;
  height: 100%;
  min-height: 58px;
  padding: 10px;
  border: 0;
  border-radius: 0;
  background: #ffffff;
}

.profit-entry-row textarea {
  resize: vertical;
}

.profit-entry-row strong {
  display: flex;
  align-items: center;
  color: var(--navy);
  font-size: 13px;
}

.profit-entry-row button {
  color: #a7193d;
  background: #ffe3eb;
  font-weight: 900;
}

.profit-entry-photo {
  display: grid;
}

.profit-entry-photo input {
  min-height: 36px;
  padding: 8px;
  font-size: 12px;
}

.profit-entry-photo span {
  display: grid;
  min-height: 48px;
  place-items: center;
  color: var(--muted);
  font-size: 12px;
}

.profit-entry-photo img {
  width: 100%;
  height: 58px;
  object-fit: cover;
}

.profit-preview-item {
  grid-template-columns: 100px 1fr minmax(160px, auto);
}

.profit-preview-table-wrap {
  overflow-x: auto;
  padding: 24px 0;
}

.profit-preview-table {
  min-width: 1120px;
  border: 1px solid #cbd6e8;
  border-radius: 14px;
  overflow: hidden;
}

.profit-preview-row {
  display: grid;
  grid-template-columns: 92px 1.4fr 70px 110px 110px 80px 120px 120px 120px 140px 80px;
}

.profit-preview-row > span {
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 10px;
  border-right: 1px solid #dbe4f2;
  border-bottom: 1px solid #dbe4f2;
  color: var(--ink);
  font-size: 13px;
}

.profit-preview-row > span:last-child {
  border-right: 0;
}

.profit-preview-head > span {
  min-height: 44px;
  color: #33415f;
  background: #edf3ff;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.profit-preview-row .quote-preview-photo {
  width: auto;
  height: auto;
  border-radius: 0;
  background: #ffffff;
}

.profit-preview-row .quote-preview-photo img {
  width: 64px;
  height: 46px;
  border-radius: 8px;
  object-fit: cover;
}

.profit-panel {
  margin-top: 16px;
  overflow-x: auto;
}

.profit-table {
  display: grid;
  gap: 10px;
  min-width: 1380px;
}

.profit-row {
  display: grid;
  grid-template-columns: 130px 220px 76px 130px 130px 120px 150px 150px 170px 170px 70px;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfcff;
}

.profit-head {
  color: var(--muted);
  background: var(--blue-soft);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.profit-row input,
.profit-row textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  background: #ffffff;
}

.profit-row textarea {
  min-height: 68px;
  resize: vertical;
}

.profit-row input:focus,
.profit-row textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(38, 103, 245, 0.12);
}

.profit-row strong {
  display: block;
  color: var(--navy);
  font-size: 13px;
}

.profit-photo {
  display: grid;
  gap: 8px;
}

.profit-photo input {
  padding: 8px;
  font-size: 12px;
}

.profit-photo span {
  display: grid;
  min-height: 74px;
  place-items: center;
  overflow: hidden;
  border: 1px dashed #aab9d0;
  border-radius: 12px;
  color: var(--muted);
  background: #ffffff;
  font-size: 12px;
  text-align: center;
}

.profit-photo img {
  width: 100%;
  height: 74px;
  object-fit: cover;
}

.profit-row button {
  min-height: 40px;
  border: 0;
  border-radius: 12px;
  color: #a7193d;
  background: #ffe3eb;
  font-weight: 900;
}

.customer-manager {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(420px, 1.2fr);
  gap: 16px;
  margin-top: 16px;
}

.customer-list-panel,
.customer-form-panel {
  align-self: start;
}

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

.customer-list-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: stretch;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfcff;
}

.customer-list-item.active {
  border-color: rgba(38, 103, 245, 0.5);
  background: var(--blue-soft);
}

.customer-select,
.customer-delete {
  border: 0;
  border-radius: 12px;
}

.customer-select {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 4px 0;
  color: inherit;
  background: transparent;
  text-align: left;
}

.customer-select strong,
.customer-select span,
.customer-select small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-select span,
.customer-select small,
.empty-state {
  color: var(--muted);
  font-size: 13px;
}

.customer-delete {
  align-self: center;
  padding: 9px 10px;
  color: #a7193d;
  background: #ffe3eb;
  font-size: 12px;
  font-weight: 900;
}

.empty-state {
  margin: 0;
  padding: 28px 18px;
  border: 1px dashed rgba(148, 163, 184, 0.55);
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 0%, rgba(59, 109, 255, 0.08), transparent 55%),
    rgba(255, 255, 255, 0.72);
  text-align: center;
  line-height: 1.5;
}

.empty-state::before {
  display: block;
  margin: 0 auto 10px;
  font-size: 28px;
  line-height: 1;
  content: "◌";
  opacity: 0.55;
}

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

.customer-form label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.customer-form input,
.customer-form textarea {
  width: 100%;
  margin-top: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  background: #ffffff;
}

.customer-form input {
  min-height: 44px;
}

.customer-form textarea {
  min-height: 110px;
  resize: vertical;
}

.customer-form input:focus,
.customer-form textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(38, 103, 245, 0.12);
}

.full-field,
.form-actions {
  grid-column: 1 / -1;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.primary-action,
.danger-action {
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 13px;
  font-weight: 900;
}

.primary-action {
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%);
  box-shadow: 0 12px 28px rgba(59, 109, 255, 0.3);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.primary-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(59, 109, 255, 0.36);
}

.danger-action {
  color: #ffffff;
  background: var(--red);
}

.danger-action:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.quick-actions button,
.quick-actions a {
  display: grid;
  place-items: center;
  gap: 6px;
  min-height: 88px;
  padding: 12px;
  border: 1px solid rgba(59, 109, 255, 0.14);
  border-radius: 16px;
  color: var(--navy);
  background:
    radial-gradient(circle at 20% 0%, rgba(59, 109, 255, 0.12), transparent 45%),
    linear-gradient(180deg, #ffffff 0%, var(--blue-soft) 100%);
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.quick-action-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 12px;
  color: var(--blue-deep);
  background: rgba(59, 109, 255, 0.12);
  font-size: 16px;
  line-height: 1;
}

.quick-actions button:hover,
.quick-actions a:hover {
  transform: translateY(-3px);
  border-color: rgba(59, 109, 255, 0.35);
  box-shadow: var(--glow-blue);
  background:
    radial-gradient(circle at 20% 0%, rgba(59, 109, 255, 0.18), transparent 45%),
    linear-gradient(180deg, #ffffff 0%, #e4edff 100%);
}

.kanban-grid,
.team-grid,
.settings-grid {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.kanban-grid {
  grid-template-columns: repeat(4, minmax(220px, 1fr));
}

.kanban-column,
.task-card,
.person-card,
.mini-card,
.table-row {
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: 0 12px 32px rgba(20, 35, 95, 0.05);
}

.kanban-column {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 320px;
  padding: 14px;
  border-radius: 18px;
}

.task-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 16px;
  background: #fbfcff;
}

.task-card span,
.person-card span,
.person-card p,
.mini-card span {
  color: var(--muted);
  font-size: 13px;
}

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

.table-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.8fr 0.8fr;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 14px;
  background: #fbfcff;
}

.table-row.table-head {
  color: var(--muted);
  background: var(--blue-soft);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.quote-table .table-row {
  grid-template-columns: 1.25fr 1fr 0.7fr 0.9fr;
}

.table-list.compact .table-row {
  grid-template-columns: 1fr 1.25fr 0.7fr;
}

.stack-list {
  display: grid;
  gap: 12px;
}

.mini-card {
  display: grid;
  gap: 5px;
  padding: 14px;
  border-radius: 16px;
  background: #fbfcff;
}

.team-grid {
  grid-template-columns: repeat(4, minmax(180px, 1fr));
}

.person-card {
  display: grid;
  justify-items: start;
  gap: 9px;
  padding: 18px;
  border-radius: 18px;
}

.avatar.large {
  width: 48px;
  height: 48px;
  font-size: 14px;
}

.person-card p {
  margin-bottom: 0;
}

.settings-grid {
  grid-template-columns: repeat(2, minmax(280px, 1fr));
}

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

.detail-form label,
.form-grid label,
.toggle-list label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.form-grid input {
  width: 100%;
  min-height: 44px;
  margin-top: 8px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
}

.detail-form {
  display: grid;
  gap: 22px;
  margin-top: 16px;
}

.form-grid.wide {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-grid select,
.detail-form select,
.detail-form input,
.detail-form textarea {
  width: 100%;
  margin-top: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  background: #ffffff;
}

.form-grid select,
.detail-form select,
.detail-form input {
  min-height: 44px;
}

.detail-form textarea {
  min-height: 120px;
  resize: vertical;
}

.form-grid select:focus,
.detail-form select:focus,
.detail-form input:focus,
.detail-form textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(38, 103, 245, 0.12);
}

.form-section {
  display: grid;
  gap: 12px;
}

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

.repeatable-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
}

.repeatable-row.quote-row {
  grid-template-columns: 1fr 160px auto;
}

.quote-product-list {
  display: grid;
  gap: 14px;
}

.quote-products-panel {
  display: grid;
  gap: 14px;
}

.quote-product-card {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  padding: 18px;
  border: 1px solid #d7e0f0;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
  box-shadow: 0 10px 28px rgba(23, 45, 90, 0.04);
}

.quote-photo-upload {
  display: block;
  position: relative;
  cursor: pointer;
}

.quote-photo-upload input {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  cursor: pointer;
}

.quote-photo-preview {
  display: grid;
  place-items: center;
  width: 168px;
  height: 168px;
  overflow: hidden;
  border: 2px dashed #b8c8e6;
  border-radius: 18px;
  background: #f2f6ff;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.quote-photo-upload:hover .quote-photo-preview {
  border-color: #6f95eb;
  background: #eaf1ff;
}

.quote-photo-placeholder {
  display: grid;
  gap: 10px;
  justify-items: center;
  padding: 16px;
  color: #5f6f8f;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  line-height: 1.35;
}

.quote-photo-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #ffffff;
  color: var(--navy);
  font-size: 30px;
  font-weight: 300;
  line-height: 1;
  box-shadow: 0 10px 24px rgba(23, 45, 90, 0.08);
}

.quote-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quote-product-fields {
  display: grid;
  grid-template-columns: repeat(4, minmax(110px, 1fr));
  gap: 14px;
}

.quote-field {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.quote-field-wide {
  grid-column: 1 / -1;
}

.quote-field > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.quote-field input,
.quote-field select,
.quote-field textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  outline: none;
}

.quote-field textarea {
  min-height: 92px;
  resize: vertical;
}

.quote-field input:focus,
.quote-field select:focus,
.quote-field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(38, 103, 245, 0.12);
}

.quote-line-total {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 12px 14px;
  border: 1px solid #d8e5ff;
  border-radius: 14px;
  background: var(--blue-soft);
}

.quote-line-total strong {
  color: var(--navy);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.quote-product-remove {
  min-height: 42px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  color: #a7193d;
  background: #ffe3eb;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.quote-product-remove:hover {
  background: #ffd5e2;
}

.line-total {
  display: grid;
  gap: 7px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
}

.line-total span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.quote-total-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--blue-soft);
}

.quote-summary {
  color: var(--navy);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  letter-spacing: -0.06em;
}

.saved-quote-list {
  display: grid;
  gap: 12px;
}

.saved-quote-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

.saved-quote-item:hover {
  transform: translateY(-2px);
  border-color: rgba(59, 109, 255, 0.28);
  box-shadow: var(--shadow-soft);
}

.saved-record-item {
  cursor: pointer;
}

.saved-record-item:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.saved-record-item .saved-quote-actions {
  position: relative;
  z-index: 1;
}

.tr-product-list {
  display: grid;
  gap: 12px;
}

.tr-product-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.tr-product-meta em {
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.tr-stock-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(59, 109, 255, 0.1);
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}

.tr-stock-pill.stock-low {
  background: rgba(255, 159, 28, 0.16);
  color: #c97700;
}

.tr-stock-pill.stock-out {
  background: rgba(239, 71, 111, 0.14);
  color: #c6284d;
}

.tr-detail-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.tr-product-fields {
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 0.7fr) minmax(0, 0.7fr);
}

.tr-sale-fields {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tr-product-form .full-field,
.tr-sale-form .full-field {
  grid-column: 1 / -1;
}

.tr-order-fields {
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
}

.tr-order-product-field {
  grid-column: 1 / -1;
}

.tr-sale-hint {
  margin: -4px 0 0;
}

@media (max-width: 1100px) {
  .tr-order-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.tr-product-form,
.tr-sale-form {
  display: grid;
  gap: 14px;
}

.tr-product-form label,
.tr-sale-form label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
}

.field-hint {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.tr-order-panel {
  margin-bottom: 14px;
}

.tr-orders-list-panel .section-title {
  margin-bottom: 10px;
}

.section-title-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tr-orders-toolbar {
  margin-bottom: 14px;
}

.tr-orders-filter-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
}

.tr-orders-filter-field {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.tr-orders-filter-field > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tr-orders-filter-field input,
.tr-orders-filter-field select {
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  outline: none;
  font-size: 14px;
}

.tr-orders-filter-field input:focus,
.tr-orders-filter-field select:focus {
  border-color: rgba(59, 109, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(59, 109, 255, 0.12);
}

.tr-orders-filter-search-compact {
  flex: 0 1 200px;
  min-width: 160px;
}

.tr-orders-filter-field:has([data-tr-all-order-platform]) {
  flex: 0 1 150px;
  min-width: 130px;
}

.tr-orders-filter-field:has([data-tr-order-date-from]),
.tr-orders-filter-field:has([data-tr-order-date-to]) {
  flex: 0 1 145px;
  min-width: 130px;
}

.tr-orders-filter-reset {
  min-height: 40px;
  padding: 0 14px;
  margin-left: auto;
}

.tr-orders-stats-compact {
  margin-top: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tr-orders-stats-compact .stat-card {
  padding: 14px 14px 14px 62px;
}

@media (max-width: 960px) {
  .tr-orders-filter-reset {
    margin-left: 0;
    width: 100%;
  }

  .tr-orders-stats-compact {
    grid-template-columns: 1fr;
  }
}

.tr-orders-filter-panel {
  margin-bottom: 14px;
}

.tr-orders-filter-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 14px;
  align-items: end;
}

.tr-orders-filter-search {
  margin-bottom: 0;
}

.tr-orders-date-range {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.tr-orders-date-range label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
}

.tr-orders-date-range input {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  outline: none;
  font-size: 14px;
}

.tr-orders-date-range input:focus {
  border-color: rgba(59, 109, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(59, 109, 255, 0.12);
}

@media (max-width: 960px) {
  .tr-orders-filter-row {
    grid-template-columns: 1fr;
  }
}

.export-toolbar {
  margin-bottom: 14px;
}

.export-filter-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
}

.export-filter-field {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.export-filter-field > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.export-filter-field input,
.export-filter-field select {
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  outline: none;
  font-size: 14px;
}

.export-filter-search {
  flex: 0 1 220px;
  min-width: 170px;
}

.export-filter-field:has([data-export-status-filter]) {
  flex: 0 1 170px;
  min-width: 150px;
}

.export-filter-reset {
  min-height: 40px;
  padding: 0 14px;
  margin-left: auto;
}

.export-stats-compact {
  margin-top: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.export-stats-compact .stat-card {
  padding: 14px 14px 14px 62px;
}

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

.export-order-card {
  cursor: pointer;
}

.export-order-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

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

.export-record-form label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
}

.export-record-form input,
.export-record-form select,
.export-record-form textarea {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  outline: none;
  font-size: 14px;
  font-weight: 500;
}

.export-record-form textarea {
  min-height: 96px;
  padding: 10px 12px;
  resize: vertical;
}

.export-doc-hint {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.export-doc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.export-doc-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
}

.export-doc-head {
  display: grid;
  gap: 4px;
}

.export-doc-head strong {
  font-size: 14px;
}

.export-doc-head span {
  color: var(--muted);
  font-size: 12px;
}

.export-doc-upload {
  display: grid;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--navy);
}

.export-doc-upload input[type="file"] {
  font-size: 12px;
}

.export-doc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.export-form-actions {
  margin-top: -4px;
}

@media (max-width: 960px) {
  .export-filter-reset {
    margin-left: 0;
    width: 100%;
  }

  .export-stats-compact,
  .export-doc-grid {
    grid-template-columns: 1fr;
  }
}

.trendyol-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 14px;
}

.trendyol-stats .stat-card strong {
  font-size: 24px;
  letter-spacing: -0.04em;
}

.trendyol-stats .stat-card small[data-trendyol-count-suffix] {
  margin-top: -2px;
  margin-bottom: 4px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.trendyol-stats .stat-card small:not([data-trendyol-count-suffix]) {
  font-size: 11px;
}

.tr-home-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tr-home-stats .stat-card strong {
  font-size: 28px;
}

.tr-home-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sidebar-nav-core {
  margin-top: 4px;
}

.sidebar .nav-group:first-of-type {
  margin-top: 8px;
}

@media (max-width: 960px) {
  .tr-home-stats,
  .tr-home-grid {
    grid-template-columns: 1fr;
  }
}

.trendyol-tabs {
  display: grid;
  gap: 16px;
}

.trendyol-tab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trendyol-tab {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.92);
  font-weight: 800;
}

.trendyol-tab.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #5b8cff, #3b6dff);
}

.trendyol-filter-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.trendyol-filter-field {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.trendyol-filter-field > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.trendyol-filter-field input,
.trendyol-filter-field select {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font-size: 14px;
}

.trendyol-filter-search {
  flex: 0 1 220px;
}

.trendyol-list,
.trendyol-question-list {
  display: grid;
  gap: 14px;
}

.trendyol-order-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 255, 0.96));
  box-shadow: var(--shadow-soft);
}

.trendyol-order-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.trendyol-order-eyebrow {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.trendyol-order-no {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
}

.trendyol-order-date {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.trendyol-order-customer {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--blue-soft);
}

.trendyol-order-customer strong {
  font-size: 15px;
}

.trendyol-order-customer span {
  color: var(--muted);
  font-size: 13px;
}

.trendyol-order-lines {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.trendyol-order-line {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.trendyol-order-line.empty {
  color: var(--muted);
  font-size: 13px;
}

.trendyol-order-line-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.trendyol-order-line-prices {
  display: grid;
  gap: 4px;
  justify-items: end;
  text-align: right;
}

.trendyol-order-line-price,
.trendyol-order-line-net-price,
.trendyol-order-net-total {
  color: #c41e3a;
  font-size: 16px;
  font-weight: 800;
  white-space: nowrap;
}

.trendyol-order-total-price {
  color: #c2410c;
  font-size: 16px;
  font-weight: 800;
  white-space: nowrap;
}

.trendyol-order-line-net,
.trendyol-order-line-discount,
.trendyol-order-discount {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.trendyol-order-line-qty {
  min-width: 58px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
}

.trendyol-order-line-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.trendyol-order-line-copy strong {
  font-size: 14px;
  line-height: 1.45;
}

.trendyol-order-line-copy small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.trendyol-order-line-sku {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.trendyol-order-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.trendyol-order-foot-side {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 10px 12px;
  margin-left: auto;
}

.trendyol-order-save {
  white-space: nowrap;
}

.trendyol-order-total {
  display: grid;
  gap: 2px;
}

.trendyol-order-total span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.trendyol-order-total strong,
.trendyol-order-total-price {
  font-size: 20px;
}

.trendyol-order-total small {
  color: var(--muted);
  font-size: 12px;
}

.trendyol-order-shipping {
  display: grid;
  gap: 4px;
  text-align: right;
}

.trendyol-order-shipping span {
  font-size: 13px;
  font-weight: 700;
}

.trendyol-order-shipping em {
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
}

.trendyol-order-meta,
.trendyol-question-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.trendyol-order-meta em,
.trendyol-question-meta em {
  font-style: normal;
  color: var(--muted);
  font-size: 13px;
}

.trendyol-question-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
}

.trendyol-question-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.trendyol-question-image {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.trendyol-question-text,
.trendyol-question-answer p {
  margin: 0;
  color: var(--navy);
  line-height: 1.55;
}

.trendyol-question-answer {
  padding: 12px;
  border-radius: 12px;
  background: var(--blue-soft);
}

.trendyol-answer-form {
  display: grid;
  gap: 10px;
}

.trendyol-answer-form textarea {
  width: 100%;
  min-height: 96px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  resize: vertical;
}

.trendyol-filter-reset {
  align-self: end;
}

.trendyol-filter-apply {
  align-self: end;
  min-height: 42px;
}

.trendyol-payment-panel {
  display: grid;
  gap: 16px;
}

.trendyol-payment-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trendyol-payment-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

.trendyol-payment-filter.active {
  border-color: #2f6fed;
  background: #edf3ff;
  color: #174ea6;
}

.trendyol-payment-filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  font-size: 12px;
}

.trendyol-payment-filter.active .trendyol-payment-filter-count {
  background: rgba(47, 111, 237, 0.16);
}

.trendyol-payment-range-hint {
  margin: 0;
}

.trendyol-payment-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-top: 1px dashed var(--line);
  background: #fafbfd;
}

.trendyol-order-paid {
  border-color: #b9dfc8;
  box-shadow: inset 0 0 0 1px rgba(11, 106, 78, 0.08);
}

.trendyol-payment-profit {
  display: grid;
  gap: 2px;
}

.trendyol-payment-profit span {
  font-size: 12px;
  color: var(--muted);
}

.trendyol-payment-profit strong {
  font-size: 18px;
  color: #0b6a4e;
}

.trendyol-payment-profit small {
  color: var(--muted);
  font-size: 11px;
}

.trendyol-payment-toggle {
  min-height: 40px;
}

.trendyol-payment-paid-badge {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: #dff8f0;
  color: #0b6a4e;
  font-size: 13px;
  font-weight: 700;
}

.trendyol-payment-paid-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.trendyol-payment-cancel {
  min-height: 40px;
}

.trendyol-line-payment-badge {
  display: inline-flex;
  margin-top: 0.35rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.trendyol-line-payment-badge.paid {
  background: rgba(34, 197, 94, 0.14);
  color: #166534;
}

.trendyol-line-payment-badge.waiting {
  background: rgba(245, 158, 11, 0.14);
  color: #92400e;
}

.trendyol-line-payment-amount {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
}

.trendyol-order-partial-paid {
  border-color: rgba(245, 158, 11, 0.35);
}

.trendyol-payment-progress {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
}

.trendyol-payment-batch-subfilters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1rem;
}

.trendyol-batch-filter {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
  cursor: pointer;
}

.trendyol-batch-filter.active {
  background: rgba(37, 99, 235, 0.1);
  border-color: rgba(37, 99, 235, 0.35);
  color: #1d4ed8;
}

.trendyol-hakedis-header {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.trendyol-hakedis-summary-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-width: 280px;
  padding: 1rem 1.15rem;
  border: 1px solid #d7f0e0;
  border-radius: 0.85rem;
  background: linear-gradient(180deg, #f3fbf6, #fff);
}

.trendyol-hakedis-summary-label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.trendyol-hakedis-summary-amount {
  color: #0f766e;
  font-size: 1.55rem;
  line-height: 1.1;
}

.trendyol-hakedis-hint {
  margin: 0;
}

.trendyol-list.trendyol-hakedis-list {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  overflow: hidden;
  background: #fff;
}

.trendyol-payment-batch-card {
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  overflow: hidden;
}

.trendyol-payment-batch-card:last-child {
  border-bottom: 0;
}

.trendyol-payment-batch-card.is-expanded {
  background: #fafbfc;
}

.trendyol-payment-batch-toggle {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 1rem 1.15rem;
  cursor: pointer;
  transition: background 0.15s ease;
}

.trendyol-payment-batch-toggle:hover {
  background: rgba(15, 23, 42, 0.03);
}

.trendyol-hakedis-row-main {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr) auto minmax(7rem, 9rem) 1.25rem;
  gap: 0.85rem 1rem;
  align-items: center;
}

.trendyol-hakedis-date {
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 700;
  white-space: nowrap;
}

.trendyol-hakedis-desc {
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.35;
}

.trendyol-hakedis-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.trendyol-hakedis-badge.is-paid {
  color: #15803d;
  background: #dcfce7;
}

.trendyol-hakedis-badge.is-pending {
  color: #c2410c;
  background: #ffedd5;
}

.trendyol-hakedis-badge.is-upcoming {
  color: #1d4ed8;
  background: #dbeafe;
}

.trendyol-hakedis-amount-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.15rem;
  text-align: right;
}

.trendyol-hakedis-amount-block small {
  color: var(--muted);
  font-size: 0.72rem;
}

.trendyol-hakedis-amount-block strong {
  color: var(--navy);
  font-size: 0.98rem;
  white-space: nowrap;
}

.trendyol-payment-batch-chevron {
  color: var(--muted);
  font-size: 0.85rem;
  justify-self: end;
  transition: transform 0.15s ease;
}

.trendyol-payment-batch-card.is-expanded .trendyol-payment-batch-chevron {
  transform: rotate(180deg);
}

.trendyol-payment-batch-lines {
  border-top: 1px solid var(--line);
  padding: 0.85rem 1.15rem 1.1rem;
  background: #fff;
}

.trendyol-hakedis-detail-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.trendyol-hakedis-detail-table th {
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.trendyol-hakedis-detail-table td {
  padding: 0.7rem 0.65rem;
  border-bottom: 1px solid #eef2f7;
  vertical-align: top;
}

.trendyol-hakedis-detail-table tr:last-child td {
  border-bottom: 0;
}

.trendyol-hakedis-detail-table .col-customer {
  font-weight: 700;
  color: var(--navy);
  min-width: 7rem;
}

.trendyol-hakedis-detail-table .col-order {
  color: var(--muted);
  white-space: nowrap;
}

.trendyol-hakedis-detail-table .col-product {
  color: var(--text);
  line-height: 1.35;
}

.trendyol-hakedis-detail-table .col-amount {
  text-align: right;
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
}

.trendyol-hakedis-detail-empty {
  margin: 0;
  padding: 0.75rem 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.trendyol-payment-batch-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--line);
  font-size: 0.88rem;
}

.trendyol-payment-batch-footer small {
  color: var(--muted);
}

@media (max-width: 900px) {
  .trendyol-hakedis-row-main {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "date chevron"
      "desc desc"
      "badge amount";
  }

  .trendyol-hakedis-date {
    grid-area: date;
  }

  .trendyol-hakedis-desc {
    grid-area: desc;
  }

  .trendyol-hakedis-badge {
    grid-area: badge;
    justify-self: start;
  }

  .trendyol-hakedis-amount-block {
    grid-area: amount;
  }

  .trendyol-payment-batch-chevron {
    grid-area: chevron;
  }

  .trendyol-hakedis-detail-table thead {
    display: none;
  }

  .trendyol-hakedis-detail-table tr {
    display: grid;
    gap: 0.25rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid #eef2f7;
  }

  .trendyol-hakedis-detail-table td {
    display: block;
    padding: 0;
    border: 0;
  }

  .trendyol-hakedis-detail-table .col-amount {
    text-align: left;
  }
}

.tr-payment-list {
  display: grid;
  gap: 12px;
}

.tr-payment-sale-item .tr-order-card {
  border-color: #e8edf3;
}

.tr-payment-sale-paid .tr-order-card {
  border-color: #bbf7d0;
  background: linear-gradient(180deg, #f8fff9, #fff);
}

.tr-payment-sale-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}

.tr-payment-sale-actions-left {
  flex: 1 1 auto;
  min-width: 0;
}

.tr-payment-sale-actions-right {
  margin-left: auto;
  display: flex;
  justify-content: flex-end;
}

.tr-payment-received-at {
  color: var(--muted);
  font-size: 0.82rem;
}

.tr-payment-paid-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
}

.stat-card-clickable {
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.stat-card-clickable:hover,
.stat-card-clickable:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  border-color: rgba(37, 99, 235, 0.35);
  outline: none;
}

.tr-home-stock-panel {
  margin-bottom: 1rem;
}

.tr-home-stock-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  overflow: hidden;
}

.tr-home-stock-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.tr-home-stock-row:last-child {
  border-bottom: 0;
}

.tr-home-stock-row strong {
  color: var(--navy);
}

.tr-home-stock-row span {
  font-weight: 700;
  color: #0f766e;
  white-space: nowrap;
}

.tr-home-stock-row.empty {
  color: var(--muted);
  justify-content: center;
}

.secondary-link.as-button {
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.sidebar-account {
  width: 100%;
}

.sidebar-logout {
  width: 100%;
  border: 1px solid rgba(220, 38, 38, 0.2);
  border-radius: 0.75rem;
  background: rgba(254, 242, 242, 0.9);
  color: #b91c1c;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.65rem 0.85rem;
  cursor: pointer;
}

.sidebar-logout:hover {
  background: #fee2e2;
}

.sidebar-footer .sidebar-account {
  margin-top: 0.65rem;
}

.tr-payment-manual-hint {
  color: var(--muted);
}

.tr-draft-list {
  display: grid;
  gap: 12px;
}

.tr-draft-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid #f2c9d4;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff8fa, #fff);
}

.tr-draft-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.tr-draft-head span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}

.tr-draft-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}

.tr-draft-date {
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.tr-draft-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  font-size: 13px;
}

.tr-draft-net {
  color: #c41e3a;
  font-weight: 800;
}

.tr-draft-meta small {
  color: var(--muted);
  font-size: 11px;
}

.tr-draft-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 960px) {
  .trendyol-stats {
    grid-template-columns: 1fr;
  }

  .trendyol-order-line-main {
    grid-template-columns: 1fr;
  }

  .trendyol-order-line-net-price,
  .trendyol-order-line-price {
    justify-self: start;
  }

  .trendyol-order-shipping {
    text-align: left;
  }
}

.trendyol-status-card .form-message {
  margin: 0;
}

.tr-order-search {
  display: block;
  margin-bottom: 12px;
}

.tr-order-search input {
  width: 100%;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  outline: none;
  font-size: 14px;
}

.tr-order-search input:focus {
  border-color: rgba(59, 109, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(59, 109, 255, 0.12);
}

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

.tr-sale-item {
  padding: 0;
  border: none;
  background: transparent;
}

.tr-order-card {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid rgba(15, 31, 68, 0.1);
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
  box-shadow: 0 8px 20px rgba(15, 31, 68, 0.04);
}

.tr-order-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(15, 31, 68, 0.08);
}

.tr-order-card-heading {
  display: grid;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.tr-order-card-heading h4 {
  margin: 0;
  color: var(--navy);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  word-break: break-word;
}

.tr-order-date {
  color: var(--muted);
  font-size: 12px;
}

.tr-order-card-figures {
  display: flex;
  align-items: stretch;
  gap: 6px;
  flex-shrink: 0;
}

.tr-figure {
  display: grid;
  gap: 1px;
  padding: 6px 10px;
  border-radius: 10px;
  text-align: center;
  min-width: 72px;
}

.tr-figure span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tr-figure strong {
  font-size: 15px;
  line-height: 1.2;
}

.tr-figure.sale {
  background: rgba(59, 109, 255, 0.1);
}

.tr-figure.sale span,
.tr-figure.sale strong {
  color: var(--blue);
}

.tr-figure.profit {
  background: rgba(15, 138, 75, 0.1);
}

.tr-figure.profit span,
.tr-figure.profit strong {
  color: #0f8a4b;
}

.tr-order-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
  margin: 0;
}

.tr-order-detail {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.tr-order-detail dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tr-order-detail dd {
  margin: 0;
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  word-break: break-word;
}

.tr-order-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 6px;
  border-top: 1px solid rgba(15, 31, 68, 0.06);
}

.tr-order-card-footer-end {
  justify-content: flex-end;
}

.tr-order-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.tr-order-card-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.tr-order-edit {
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 0;
}

.tr-order-delete {
  border: 0;
  background: transparent;
  color: #c6284d;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 0;
  flex-shrink: 0;
}

.tr-order-record-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.tr-order-record-title {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.tr-order-record-title strong {
  color: var(--navy);
  font-size: 16px;
  line-height: 1.35;
}

.tr-order-date {
  color: var(--muted);
  font-size: 13px;
}

.tr-order-amount-box {
  display: grid;
  gap: 8px;
  flex-shrink: 0;
  min-width: 120px;
}

.tr-order-sale-total,
.tr-order-profit-total {
  display: grid;
  gap: 2px;
  justify-items: end;
  padding: 10px 14px;
  border-radius: 12px;
}

.tr-order-sale-total {
  background: rgba(59, 109, 255, 0.1);
}

.tr-order-sale-total span {
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tr-order-sale-total b {
  color: var(--blue);
  font-size: 18px;
}

.tr-order-profit-total {
  background: rgba(15, 138, 75, 0.1);
}

.tr-order-profit-total span {
  color: #0f8a4b;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tr-order-profit-total b {
  color: #0f8a4b;
  font-size: 18px;
}

.tr-order-record-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 18px;
}

.tr-order-record-grid > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.tr-order-record-grid span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tr-order-record-grid strong {
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  word-break: break-word;
}

.tr-order-span-2 {
  grid-column: span 2;
}

.tr-order-note {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(15, 31, 68, 0.04);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.tr-order-note span {
  color: var(--navy);
  font-weight: 700;
  margin-right: 6px;
}

.tr-order-record-actions {
  display: flex;
  justify-content: flex-end;
}

.tr-order-record-actions button {
  border: 0;
  background: transparent;
  color: #c6284d;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.tr-sale-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.tr-sale-main strong {
  color: var(--navy);
  font-size: 15px;
}

.tr-sale-main span,
.tr-sale-main small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.tr-sale-side {
  display: grid;
  gap: 8px;
  justify-items: end;
  flex-shrink: 0;
}

.tr-sale-profit {
  color: #0f8a4b;
  font-size: 16px;
}

@media (max-width: 960px) {
  .tr-product-fields,
  .tr-sale-fields,
  .tr-order-fields {
    grid-template-columns: 1fr;
  }

  .tr-order-card-top {
    flex-direction: column;
    align-items: stretch;
  }

  .tr-order-card-figures {
    width: 100%;
    justify-content: flex-end;
  }

  .tr-figure {
    flex: 1;
    max-width: 50%;
  }

  .tr-order-details {
    grid-template-columns: 1fr;
  }

  .tr-order-record-grid {
    grid-template-columns: 1fr;
  }

  .tr-order-span-2 {
    grid-column: auto;
  }

  .tr-order-record-head {
    flex-direction: column;
  }

  .tr-order-amount-box {
    width: 100%;
  }

  .tr-order-sale-total,
  .tr-order-profit-total {
    justify-items: start;
  }

  .tr-sale-item {
    flex-direction: column;
  }

  .tr-sale-side {
    width: 100%;
    grid-template-columns: 1fr auto;
    align-items: center;
    justify-items: stretch;
  }
}

.saved-quote-content {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.saved-quote-content strong {
  color: var(--navy);
  font-size: 15px;
  line-height: 1.35;
}

.saved-quote-content span,
.saved-quote-content small {
  color: var(--muted);
  font-size: 13px;
}

.saved-quote-total {
  display: grid;
  gap: 4px;
  justify-items: end;
  min-width: 120px;
  padding: 0 8px;
  text-align: right;
}

.saved-quote-total span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.saved-quote-total strong {
  color: var(--navy);
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
  white-space: nowrap;
}

.saved-quote-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.saved-quote-actions a,
.saved-quote-actions button {
  display: inline-grid;
  min-height: 40px;
  align-items: center;
  padding: 0 12px;
  border: 0;
  border-radius: 12px;
  color: var(--navy);
  background: var(--blue-soft);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.saved-quote-actions button {
  color: #a7193d;
  background: #ffe3eb;
}

.preview-body {
  background: #e9eef8;
}

.quote-preview-shell {
  width: min(1100px, calc(100% - 32px));
  margin: 24px auto;
}

.preview-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 16px;
}

.quote-document {
  padding: 34px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.quote-document-header,
.quote-document-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.quote-document-header {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.quote-document-header h1 {
  margin-bottom: 8px;
}

.quote-document-header span,
.quote-document-footer p,
.quote-preview-item span {
  display: block;
  color: var(--muted);
}

.quote-preview-items {
  display: grid;
  gap: 14px;
  padding: 24px 0;
}

.quote-preview-item {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfcff;
}

.quote-preview-photo {
  display: grid;
  width: 100px;
  height: 82px;
  place-items: center;
  overflow: hidden;
  border-radius: 12px;
  color: var(--muted);
  background: var(--blue-soft);
  font-size: 12px;
  text-align: center;
}

.quote-preview-photo.is-zoomable {
  position: relative;
  padding: 0;
  border: 0;
  cursor: zoom-in;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.quote-preview-photo.is-zoomable:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(23, 45, 90, 0.12);
}

.quote-preview-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quote-preview-zoom-hint {
  position: absolute;
  right: 6px;
  bottom: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(12, 24, 48, 0.78);
  color: #ffffff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.quote-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 24px;
}

.quote-lightbox[hidden] {
  display: none !important;
}

.quote-lightbox-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(8, 16, 34, 0.84);
  cursor: zoom-out;
}

.quote-lightbox-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  width: min(92vw, 1100px);
  max-height: 92vh;
}

.quote-lightbox-dialog img {
  width: 100%;
  max-height: calc(92vh - 56px);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
  object-fit: contain;
}

.quote-lightbox-dialog p {
  margin: 0;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.quote-lightbox-close {
  position: absolute;
  top: -14px;
  right: -14px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #ffffff;
  color: var(--navy);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.quote-print-gallery {
  display: none;
}

.quote-print-gallery h2 {
  margin: 0 0 16px;
  font-size: 18px;
}

.quote-print-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.quote-print-gallery-item {
  display: grid;
  gap: 10px;
  margin: 0;
}

.quote-print-gallery-item img {
  width: 100%;
  max-height: 360px;
  border: 1px solid var(--line);
  border-radius: 14px;
  object-fit: contain;
  background: #f7f9ff;
}

.quote-print-gallery-item figcaption {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.quote-grand-total {
  min-width: 220px;
  padding: 18px;
  border-radius: 16px;
  background: var(--blue-soft);
  text-align: right;
}

.quote-grand-total span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.quote-grand-total strong {
  display: block;
  margin-top: 4px;
  color: var(--navy);
  font-size: 28px;
  letter-spacing: -0.05em;
}

.repeatable-row button,
.section-title button {
  min-height: 42px;
  padding: 0 12px;
  border: 0;
  border-radius: 12px;
  color: var(--navy);
  background: var(--blue-soft);
  font-weight: 900;
}

.upload-box {
  display: grid;
  gap: 8px;
  padding: 22px;
  border: 1px dashed #aab9d0;
  border-radius: 18px;
  background: #fbfcff;
  cursor: pointer;
}

.upload-box input {
  width: 100%;
  margin: 0 0 4px;
  padding: 0;
  border: 0;
  border-radius: 0;
}

.upload-box span,
.file-item,
.form-message {
  color: var(--muted);
  font-size: 13px;
}

.file-list {
  display: grid;
  gap: 8px;
}

.file-item {
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
}

.primary-action.ghost {
  color: var(--navy);
  background: var(--blue-soft);
}

.danger-action.soft {
  display: inline-grid;
  align-items: center;
  color: #a7193d;
  background: #ffe3eb;
  text-decoration: none;
}

.form-message {
  grid-column: 1 / -1;
  padding: 12px 14px;
  border-radius: 12px;
  color: #0b6a4e;
  background: #dff8f0;
  font-weight: 800;
}

.form-grid input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(38, 103, 245, 0.12);
}

.toggle-list {
  display: grid;
  gap: 12px;
}

.toggle-list label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfcff;
}

.toggle-list input {
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
}

.report-donut {
  background: conic-gradient(
    var(--green) 0 52%,
    var(--cyan) 52% 68%,
    var(--yellow) 68% 80%,
    var(--purple) 80% 100%
  );
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.page-hero {
  margin-bottom: 4px;
}

.stats-grid .stat-card {
  animation: card-rise 0.5s ease both;
}

.stats-grid .stat-card:nth-child(1) {
  animation-delay: 0.05s;
}

.stats-grid .stat-card:nth-child(2) {
  animation-delay: 0.1s;
}

.stats-grid .stat-card:nth-child(3) {
  animation-delay: 0.15s;
}

.stats-grid .stat-card:nth-child(4) {
  animation-delay: 0.2s;
}

@keyframes card-rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-title h3 {
  font-weight: 800;
  letter-spacing: -0.02em;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 1100px) {
  .app-shell {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-grid,
  .bottom-grid,
  .customer-manager,
  .kanban-grid,
  .team-grid,
  .settings-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .workspace {
    padding: 16px 14px 28px;
    padding-left: max(14px, env(safe-area-inset-left));
    padding-right: max(14px, env(safe-area-inset-right));
    padding-bottom: max(28px, env(safe-area-inset-bottom));
  }

  .topbar,
  .hero-card,
  .search-heading,
  .work-item {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar-actions {
    flex-wrap: wrap;
    width: 100%;
  }

  .topbar-actions .primary-button,
  .topbar-actions .primary-action,
  .topbar-actions a {
    flex: 1 1 auto;
    justify-content: center;
    min-height: 44px;
  }

  .stats-grid,
  .quick-actions {
    grid-template-columns: 1fr;
  }

  .stat-card {
    padding-left: 18px;
  }

  .stat-card::after {
    display: none;
  }

  .donut-wrap {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .bar-row {
    grid-template-columns: 1fr;
  }

  .table-row,
  .quote-table .table-row,
  .table-list.compact .table-row,
  .form-grid.wide,
  .saved-task-item,
  .saved-quote-item,
  .quote-product-card,
  .profit-product-card,
  .quote-product-fields,
  .profit-product-fields,
  .quote-preview-item,
  .profit-edit-grid,
  .customer-form,
  .repeatable-row,
  .repeatable-row.quote-row,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .saved-quote-total {
    justify-items: start;
    padding: 0;
    text-align: left;
  }

  .saved-quote-actions {
    justify-content: flex-start;
  }

  .quote-product-card,
  .profit-product-card {
    gap: 14px;
  }

  .quote-photo-preview,
  .profit-photo-preview {
    width: 100%;
    max-width: 220px;
    height: 180px;
  }

  .quote-product-remove {
    justify-self: start;
  }

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

  .quote-document,
  .quote-document-header,
  .quote-document-footer {
    display: grid;
  }

  .quote-grand-total {
    min-width: 0;
    text-align: left;
  }

  .trendyol-filter-toolbar {
    display: grid;
    grid-template-columns: 1fr;
  }

  .trendyol-filter-field,
  .trendyol-filter-search {
    flex: 1 1 100%;
    width: 100%;
  }

  .trendyol-order-head {
    flex-direction: column;
    align-items: stretch;
  }

  .trendyol-order-foot,
  .trendyol-order-foot-side {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .trendyol-order-save {
    width: 100%;
    min-height: 44px;
  }

  .trendyol-payment-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .tr-order-panel .form-grid {
    grid-template-columns: 1fr;
  }

  .panel-card,
  .tr-draft-card,
  .trendyol-order-card {
    overflow: hidden;
  }

  .section-title {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* Mobile panel drawer — menu slides in from the right */
:root {
  --panel-mobile-bar-height: 56px;
}

.panel-mobile-bar,
.panel-sidebar-overlay {
  display: none;
}

.panel-mobile-bar {
  align-items: center;
  gap: 12px;
  min-height: var(--panel-mobile-bar-height);
  padding: 8px 14px;
  padding-top: max(8px, env(safe-area-inset-top));
  padding-left: max(14px, env(safe-area-inset-left));
  padding-right: max(14px, env(safe-area-inset-right));
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 18px rgba(15, 31, 68, 0.06);
}

.panel-mobile-bar-brand {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.panel-mobile-bar-brand strong {
  color: var(--navy);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.panel-mobile-bar-brand span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.panel-mobile-menu-btn {
  display: inline-grid;
  flex-shrink: 0;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--navy);
  background: #fff;
  box-shadow: var(--shadow-soft);
  font-size: 20px;
  line-height: 1;
}

.panel-mobile-menu-btn-inline {
  display: none;
}

.panel-sidebar-close {
  display: none;
}

.panel-sidebar-overlay {
  position: fixed;
  inset: 0;
  z-index: 1190;
  border: 0;
  background: rgba(8, 20, 51, 0.48);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

body.panel-menu-open .panel-sidebar-overlay {
  opacity: 1;
  visibility: visible;
}

body.panel-menu-open {
  overflow: hidden;
}

@media (max-width: 960px) {
  .panel-mobile-bar {
    display: flex;
    position: sticky;
    top: 0;
    z-index: 1100;
  }

  .panel-sidebar-overlay {
    display: block;
  }

  .app-shell {
    display: block;
    min-height: auto;
  }

  .app-shell-host .workspace-frame {
    display: block;
    width: 100%;
    min-height: calc(100dvh - var(--panel-mobile-bar-height));
    height: calc(100dvh - var(--panel-mobile-bar-height));
  }

  .app-shell:not(.app-shell-host) .workspace {
    min-height: calc(100dvh - var(--panel-mobile-bar-height));
  }

  .app-shell .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    right: auto;
    bottom: 0;
    width: min(320px, 88vw);
    height: 100dvh;
    max-height: 100dvh;
    z-index: 1200;
    padding-top: max(16px, env(safe-area-inset-top));
    padding-bottom: max(24px, env(safe-area-inset-bottom));
    border-left: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 16px 0 48px rgba(8, 20, 51, 0.28);
    transform: translateX(-100%);
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
  }

  .app-shell.sidebar-open .sidebar {
    transform: translateX(0);
  }

  .panel-sidebar-close {
    display: inline-grid;
    position: absolute;
    top: max(14px, env(safe-area-inset-top));
    right: 14px;
    left: auto;
    z-index: 2;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    font-size: 28px;
    line-height: 1;
  }

  .app-shell .sidebar .brand {
    padding-top: 44px;
  }

  .app-shell .sidebar-nav,
  .app-shell .sidebar-footer {
    grid-template-columns: 1fr;
  }

  html.embed-mode .sidebar {
    display: none;
  }

  html.embed-mode .panel-mobile-bar {
    display: none;
  }

  html.embed-mode .panel-mobile-menu-btn-inline {
    display: inline-grid;
    margin-bottom: 8px;
  }

  html.embed-mode .workspace {
    min-height: 100dvh;
    padding-top: max(16px, env(safe-area-inset-top));
  }

  .primary-button,
  .primary-action,
  .secondary-button,
  .danger-action,
  .nav-item {
    min-height: 44px;
  }
}

@media print {
  body {
    background: #ffffff;
  }

  .preview-actions,
  .quote-lightbox,
  .quote-preview-zoom-hint {
    display: none !important;
  }

  .quote-preview-shell {
    width: 100%;
    margin: 0;
  }

  .quote-document {
    padding: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .quote-preview-item {
    grid-template-columns: 160px 1fr auto;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .quote-preview-photo {
    width: 160px;
    height: 130px;
  }

  .quote-print-gallery {
    display: block;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #d7e0f0;
    break-before: page;
    page-break-before: always;
  }

  .quote-print-gallery-item {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .quote-print-gallery-item img {
    max-height: 420px;
  }
}

/* Banka modülü */
.workspace-bank {
  position: relative;
}

.bank-total-bar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: -22px -24px 20px;
  padding: 16px 24px;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(circle at 12% 20%, rgba(96, 165, 250, 0.28), transparent 34%),
    radial-gradient(circle at 88% 80%, rgba(124, 92, 255, 0.22), transparent 30%),
    linear-gradient(135deg, #12235c 0%, #1a3278 52%, #243f96 100%);
  box-shadow: 0 10px 28px rgba(18, 35, 92, 0.18);
}

.bank-total-bar-label span {
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.bank-total-bar-label small {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
}

.bank-total-bar-amounts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.bank-total-pill {
  min-width: 148px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

.bank-total-pill span {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.68);
}

.bank-total-pill strong {
  display: block;
  margin-top: 4px;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.bank-total-pill.try strong {
  color: #bbf7d0;
}

.bank-total-pill.usd strong {
  color: #bfdbfe;
}

.bank-net-hero,
.bank-balance-hero {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.bank-net-hero-compact {
  margin-bottom: 18px;
}

.bank-net-card,
.bank-balance-card {
  position: relative;
  overflow: hidden;
  padding: 22px 24px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.bank-net-card::after,
.bank-balance-card::after {
  content: "";
  position: absolute;
  inset: auto -30px -40px auto;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  opacity: 0.18;
  pointer-events: none;
}

.bank-net-card.try::after,
.bank-balance-card.try::after {
  background: radial-gradient(circle, #22c55e, transparent 70%);
}

.bank-net-card.usd::after,
.bank-balance-card.usd::after {
  background: radial-gradient(circle, #3b82f6, transparent 70%);
}

.bank-net-card span,
.bank-balance-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.bank-net-card strong,
.bank-balance-card strong {
  display: block;
  margin-top: 8px;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.bank-net-card.try strong,
.bank-balance-card.try strong {
  color: #15803d;
}

.bank-net-card.cny strong {
  color: #b45309;
}

.bank-net-card.usd strong,
.bank-balance-card.usd strong {
  color: #1d4ed8;
}

.bank-net-card strong.negative {
  color: #b91c1c;
}

.bank-net-breakdown {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.bank-net-breakdown p {
  margin: 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.04);
}

.bank-net-breakdown small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bank-net-breakdown em {
  display: block;
  margin-top: 4px;
  font-style: normal;
  font-size: 18px;
  font-weight: 800;
}

.bank-net-balance,
.bank-balance-card small {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.bank-type-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.bank-type-option {
  position: relative;
  display: block;
  cursor: pointer;
}

.bank-type-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.bank-type-option span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-weight: 800;
  background: #fff;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.bank-type-option.gelir input:checked + span {
  color: #166534;
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.12);
}

.bank-type-option.gider input:checked + span {
  color: #b91c1c;
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.1);
}

.bank-type-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.bank-type-pill.gelir {
  color: #166534;
  background: rgba(34, 197, 94, 0.14);
}

.bank-type-pill.gider {
  color: #b91c1c;
  background: rgba(239, 68, 68, 0.12);
}

.form-actions.compact {
  justify-content: flex-end;
  gap: 8px;
}

.form-actions.compact .primary-action,
.form-actions.compact .danger-action {
  min-height: 34px;
  padding: 0 12px;
  font-size: 12px;
}

.bank-account-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.bank-account-card {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
}

.bank-account-card-link {
  color: inherit;
  text-decoration: none;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.bank-account-card-link:hover {
  transform: translateY(-2px);
  border-color: rgba(59, 109, 255, 0.35);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.bank-account-grid-picker {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.bank-account-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.bank-account-flow span {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.05);
}

.bank-account-enter {
  margin-top: 8px;
  color: #3b6dff;
  font-size: 13px;
  font-weight: 800;
}

.bank-account-picker .section-title {
  align-items: flex-end;
}

.bank-account-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 16px;
  margin-bottom: 18px;
}

.bank-detail-meta {
  display: grid;
  gap: 12px;
  align-content: center;
}

.bank-detail-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.bank-detail-meta-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.bank-detail-meta-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bank-detail-meta-row strong {
  font-size: 14px;
  text-align: right;
}

.bank-monthly-tabs {
  display: flex;
  gap: 8px;
}

.bank-monthly-tab {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--navy);
  background: #fff;
  font-weight: 800;
}

.bank-monthly-tab.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #5b8cff, #3b6dff);
}

.bank-monthly-table {
  width: 100%;
  border-collapse: collapse;
}

.bank-monthly-table th,
.bank-monthly-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 14px;
}

.bank-monthly-table thead th {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bank-monthly-table tfoot th {
  font-size: 13px;
  background: rgba(59, 109, 255, 0.05);
}

.bank-monthly-row.open {
  background: rgba(59, 109, 255, 0.04);
}

.bank-monthly-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  color: var(--navy);
  background: transparent;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.bank-monthly-toggle-icon {
  color: #3b6dff;
  font-size: 12px;
}

.bank-monthly-detail td {
  padding: 0;
  background: rgba(15, 23, 42, 0.02);
}

.bank-monthly-detail-wrap {
  padding: 12px 14px 16px;
}

.bank-monthly-detail-table {
  width: 100%;
  border-collapse: collapse;
}

.bank-monthly-detail-table th,
.bank-monthly-detail-table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.bank-monthly-detail-table thead th {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bank-account-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.bank-account-card h4 {
  margin: 0;
  font-size: 15px;
}

.bank-currency-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.bank-currency-pill.try {
  color: #166534;
  background: rgba(34, 197, 94, 0.14);
}

.bank-currency-pill.usd {
  color: #1e40af;
  background: rgba(59, 130, 246, 0.14);
}

.bank-currency-pill.cny {
  color: #9a3412;
  background: rgba(249, 115, 22, 0.14);
}

.bank-total-pill.cny strong {
  color: #fdba74;
}

.bank-account-card .bank-account-balance {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.bank-account-card .bank-account-meta {
  color: var(--muted);
  font-size: 12px;
}

.bank-tx-table {
  width: 100%;
  border-collapse: collapse;
}

.bank-tx-table th,
.bank-tx-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 14px;
}

.bank-tx-table th {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bank-tx-amount.in {
  color: #15803d;
  font-weight: 700;
}

.bank-tx-amount.out {
  color: #b91c1c;
  font-weight: 700;
}

.bank-import-drop {
  display: grid;
  gap: 12px;
  padding: 22px;
  border: 2px dashed rgba(59, 109, 255, 0.28);
  border-radius: 18px;
  background: rgba(59, 109, 255, 0.04);
  text-align: center;
}

.bank-import-drop input[type="file"] {
  margin: 0 auto;
}

.bank-import-preview {
  max-height: 280px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

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

.bank-form-grid .field-full {
  grid-column: 1 / -1;
}

@media (max-width: 960px) {
  .bank-total-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .bank-net-hero,
  .bank-balance-hero,
  .bank-account-detail-hero,
  .bank-form-grid {
    grid-template-columns: 1fr;
  }
}

/* —— Public landing & auth —— */

.public-body {
  min-height: 100vh;
}

.landing-hero-only {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 48px 24px;
}

.landing-shell,
.auth-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.landing-header {
  display: flex;
  justify-content: flex-end;
  padding: 24px 32px;
}

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

.landing-mark {
  display: inline-flex;
  text-decoration: none;
}

.landing-mark-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
  background: linear-gradient(145deg, var(--blue) 0%, var(--purple) 100%);
  box-shadow: var(--glow-blue);
}

.login-dropdown {
  position: relative;
}

.login-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.login-trigger:hover {
  border-color: rgba(59, 109, 255, 0.35);
  box-shadow: var(--glow-blue);
}

.login-trigger-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 14px;
  color: var(--blue-deep);
  background: var(--blue-soft);
}

.login-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  display: grid;
  min-width: 200px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
}

.login-menu a {
  padding: 12px 14px;
  border-radius: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  transition: background 0.15s ease;
}

.login-menu a:hover {
  background: var(--blue-soft);
  color: var(--blue-deep);
}

.landing-hero {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 48px 24px 80px;
}

.landing-title {
  margin: 0;
  font-size: clamp(64px, 14vw, 128px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: var(--navy);
  text-shadow: 0 18px 48px rgba(59, 109, 255, 0.14);
}

.auth-main {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 24px 24px 64px;
}

.auth-card {
  width: min(100%, 400px);
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.auth-eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-deep);
}

.auth-title {
  margin: 0 0 24px;
  font-size: 28px;
  font-weight: 800;
  color: var(--navy);
}

.auth-form {
  display: grid;
  gap: 16px;
}

.auth-form label {
  display: grid;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.auth-form input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.auth-form input:focus {
  outline: none;
  border-color: rgba(59, 109, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(59, 109, 255, 0.12);
}

.auth-submit {
  width: 100%;
  margin-top: 8px;
  justify-content: center;
}

.auth-error {
  margin: 4px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--red);
}

@media (max-width: 640px) {
  .landing-header {
    padding: 16px 20px;
  }

  .landing-actions {
    gap: 8px;
  }

  .login-trigger {
    padding: 8px 12px;
    font-size: 14px;
  }
}

.login-body {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: hidden;
  background: #0b1638;
}

.login-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.login-video-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(8, 20, 51, 0.42) 0%, rgba(8, 20, 51, 0.72) 100%),
    radial-gradient(circle at 20% 15%, rgba(96, 165, 250, 0.18), transparent 35%);
  pointer-events: none;
}

.login-shell {
  position: relative;
  z-index: 2;
  width: min(420px, 100%);
}

.login-card {
  display: grid;
  gap: 18px;
  padding: 28px 24px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  box-shadow: 0 24px 60px rgba(8, 20, 51, 0.28);
}

.login-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.login-language-switch {
  flex-shrink: 0;
}

.login-brand {
  padding-bottom: 0;
}

.login-card h1 {
  margin: 0;
  font-size: 28px;
}

.login-hint {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.login-form {
  display: grid;
  gap: 14px;
}

.login-form label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
}

.login-form input {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 15px;
}

.login-form .primary-button {
  min-height: 46px;
  margin-top: 4px;
}

.trendyol-new-order-toast {
  position: fixed;
  top: max(16px, env(safe-area-inset-top));
  right: max(16px, env(safe-area-inset-right));
  z-index: 2000;
  display: grid;
  gap: 4px;
  max-width: min(360px, calc(100vw - 32px));
  padding: 14px 16px;
  border: 1px solid rgba(59, 109, 255, 0.28);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 248, 255, 0.96));
  box-shadow: 0 18px 40px rgba(15, 31, 68, 0.18);
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.trendyol-new-order-toast.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.trendyol-new-order-toast strong {
  color: var(--navy);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.trendyol-new-order-toast span {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
}
