:root {
  color-scheme: light;
  /* Brand fintech / accounting */
  --fc-brand: #0f172a;
  --fc-brand-accent: #2563eb;
  --fc-bg: #f4f7fb;
  --fc-surface: #ffffff;
  --fc-surface-soft: #f8fafc;
  --fc-surface-strong: #eef3f8;
  --fc-sidebar: #0f172a;
  --fc-sidebar-muted: #8ea3bf;
  --fc-sidebar-text: #f8fbff;
  --fc-border: #e3ebf3;
  --fc-border-strong: #d4deea;
  --fc-text: #1e293b;
  --fc-muted: #667085;
  --fc-title: #101828;
  --fc-shadow: 0 18px 38px rgba(15, 23, 42, 0.06);
  --fc-shadow-soft: 0 10px 22px rgba(15, 23, 42, 0.04);
  --fc-red: #ef4444;
  --fc-green: #16a34a;
  --fc-cyan: #0891b2;
  --fc-blue: #2563eb;
  --fc-yellow: #f59e0b;
  --fc-purple: #7c3aed;
  --fc-dark-card: #f8fbff;
  --fc-ring-bg: #e8eef5;
  --fc-topbar-height: 76px;
  --fc-nav-break: 1024px;
  --fc-safe-top: env(safe-area-inset-top, 0px);
  --fc-safe-right: env(safe-area-inset-right, 0px);
  --fc-safe-bottom: env(safe-area-inset-bottom, 0px);
  --fc-safe-left: env(safe-area-inset-left, 0px);
  /* Gridi i listës së skanimeve (header + rreshta — i njëjti shabllon) */
  --fc-scan-sheet-cols: 108px 112px 96px minmax(128px, 1fr) minmax(128px, 1fr) 80px 104px minmax(100px, 0.9fr) minmax(208px, 1.2fr);
  --fc-scan-sheet-gap-row: 10px;
  --fc-scan-sheet-gap-col: 12px;
  --fc-scan-sheet-pad-x: 16px;
  --fc-scan-sheet-pad-y: 12px;
  --fc-scan-input-h: 40px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--fc-text);
  background: var(--fc-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body.fc-nav-open {
  overflow: hidden;
  touch-action: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.fc-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 276px minmax(0, 1fr);
  position: relative;
}

.fc-nav-backdrop {
  display: none;
}

.fc-sidebar {
  background: linear-gradient(180deg, #111827 0%, #0f172a 100%);
  color: var(--fc-sidebar-text);
  padding: calc(18px + var(--fc-safe-top)) 14px calc(20px + var(--fc-safe-bottom));
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.06);
}

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

.fc-sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
}

.fc-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 8px 18px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.fc-brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #3dc8ee 0%, #57d6aa 100%);
  color: #1f2637;
  font-size: 20px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(61, 200, 238, 0.34);
}

.fc-brand h1 {
  margin: 0;
  font-size: 23px;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.fc-brand p {
  margin: 4px 0 0;
  color: var(--fc-sidebar-muted);
  font-size: 12px;
}

.fc-sidebar-search {
  padding: 10px 8px 4px;
}

.fc-sidebar-search input {
  width: 100%;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--fc-sidebar-text);
  padding: 12px 14px;
  outline: none;
}

.fc-sidebar-search input::placeholder {
  color: rgba(235, 241, 251, 0.52);
}

.fc-nav-section {
  margin-top: 14px;
}

.fc-nav-title {
  padding: 10px 10px 8px;
  color: var(--fc-sidebar-muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.fc-nav-list {
  display: grid;
  gap: 4px;
}

.fc-nav-link,
.fc-nav-link-static {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13px;
  transition: 160ms ease;
}

.fc-nav-link::before,
.fc-nav-link-static::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.26);
  flex: 0 0 auto;
}

.fc-nav-link {
  color: var(--fc-sidebar-text);
}

.fc-nav-link:hover {
  background: rgba(255, 255, 255, 0.08);
}

.fc-nav-link.active {
  background: linear-gradient(90deg, rgba(77, 152, 255, 0.26), rgba(43, 196, 207, 0.18));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.fc-nav-link.active::before {
  background: #5bd7ec;
}

.fc-nav-link-static {
  color: rgba(235, 241, 251, 0.74);
}

.fc-nav-link-static::before {
  background: rgba(255, 255, 255, 0.16);
}

.fc-main {
  min-width: 0;
  background: var(--fc-bg);
}

.fc-shell.fc-shell--light .fc-main {
  background: linear-gradient(180deg, var(--fc-bg) 0%, #eef0f5 100%);
}

.fc-topbar {
  min-height: var(--fc-topbar-height);
  background: var(--fc-surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: calc(14px + var(--fc-safe-top)) calc(28px + var(--fc-safe-right)) 14px calc(28px + var(--fc-safe-left));
  border-bottom: 1px solid var(--fc-border);
  box-shadow: none;
}

.fc-topbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.fc-burger {
  display: none;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--fc-border);
  background: var(--fc-surface-soft);
  place-items: center;
  color: var(--fc-title);
  padding: 0;
  margin: 0;
  cursor: pointer;
  touch-action: manipulation;
  box-shadow: var(--fc-shadow-soft);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.fc-burger:hover {
  background: var(--fc-surface);
  border-color: var(--fc-border-strong);
}

.fc-burger-lines {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 20px;
  pointer-events: none;
}

.fc-burger-lines span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.2s ease;
  transform-origin: center;
}

.fc-shell.fc-nav-open .fc-burger-lines span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.fc-shell.fc-nav-open .fc-burger-lines span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.fc-shell.fc-nav-open .fc-burger-lines span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.fc-topbar-copy {
  min-width: 0;
}

.fc-eyebrow {
  display: block;
  color: var(--fc-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.fc-topbar-copy h2 {
  margin: 4px 0 0;
  color: var(--fc-title);
  font-size: 24px;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.fc-topbar-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  max-width: 100%;
}

.fc-topbar-meta {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
  max-width: min(520px, 72vw);
}

.fc-chip-compact {
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 600;
}

.fc-chip-compact:not(.fc-chip-success):not(.fc-chip-warning) {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fc-btn-compact {
  min-height: 38px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 12px;
}

@media (max-width: 1024px) {
  .fc-topbar-right {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
    justify-content: flex-start;
    width: 100%;
    max-width: 100%;
  }

  .fc-topbar-right::-webkit-scrollbar {
    display: none;
  }

  .fc-topbar-right .fc-chip,
  .fc-topbar-right .fc-btn {
    flex: 0 0 auto;
  }
}

.fc-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid var(--fc-border);
  background: var(--fc-surface-soft);
  color: var(--fc-muted);
  font-size: 12px;
  font-weight: 700;
}

.fc-chip::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.5;
}

.fc-chip-success {
  color: var(--fc-green);
  background: rgba(41, 183, 101, 0.08);
  border-color: rgba(41, 183, 101, 0.2);
}

.fc-chip-info {
  color: var(--fc-blue);
  background: rgba(74, 142, 247, 0.08);
  border-color: rgba(74, 142, 247, 0.2);
}

.fc-chip-warning {
  color: var(--fc-yellow);
  background: rgba(239, 181, 59, 0.1);
  border-color: rgba(239, 181, 59, 0.24);
}

.fc-btn,
.fc-btn-link,
.fc-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 10px 16px;
  border-radius: 14px;
  border: 1px solid var(--fc-border-strong);
  background: var(--fc-surface);
  color: var(--fc-text);
  font-weight: 700;
  box-shadow: var(--fc-shadow-soft);
  cursor: pointer;
}

.fc-btn-primary {
  border-color: transparent;
  color: #ffffff;
  background: linear-gradient(135deg, #6366f1 0%, #7c3aed 100%);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.28);
}

.fc-btn-primary:hover {
  filter: brightness(1.05);
}

.fc-btn-soft {
  background: var(--fc-surface-soft);
}

.fc-page {
  padding: 24px calc(28px + var(--fc-safe-right)) calc(34px + var(--fc-safe-bottom)) calc(28px + var(--fc-safe-left));
}

.fc-page-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.fc-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid var(--fc-border);
  background: rgba(255, 255, 255, 0.72);
  color: var(--fc-muted);
  font-size: 13px;
  font-weight: 700;
}

.fc-tab.active {
  color: var(--fc-title);
  background: var(--fc-surface);
  box-shadow: var(--fc-shadow-soft);
}

.fc-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.fc-kpi-card {
  position: relative;
  background: var(--fc-surface);
  border: 1px solid var(--fc-border);
  border-radius: 20px;
  padding: 20px;
  min-height: 154px;
  box-shadow: var(--fc-shadow-soft);
  overflow: hidden;
}

.fc-kpi-card::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 0;
  height: 4px;
  border-radius: 0 0 999px 999px;
  background: var(--fc-accent);
  pointer-events: none;
}

.fc-kpi-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), transparent 40%);
  pointer-events: none;
}

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

.fc-kpi-red { --fc-accent: var(--fc-red); }
.fc-kpi-green { --fc-accent: var(--fc-green); }
.fc-kpi-cyan { --fc-accent: var(--fc-cyan); }
.fc-kpi-blue { --fc-accent: var(--fc-blue); }
.fc-kpi-yellow { --fc-accent: var(--fc-yellow); }
.fc-kpi-purple { --fc-accent: var(--fc-purple); }

.fc-kpi-label {
  color: var(--fc-title);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 18px;
}

.fc-kpi-value {
  color: var(--fc-title);
  font-size: 42px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.06em;
}

.fc-kpi-unit {
  margin-left: 6px;
  color: var(--fc-muted);
  font-size: 13px;
  font-weight: 700;
}

.fc-kpi-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 110px;
  margin-top: 16px;
  padding: 9px 12px;
  border-radius: 10px;
  background: var(--fc-accent);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
}

.fc-kpi-note {
  margin-top: 14px;
  color: var(--fc-muted);
  font-size: 13px;
  line-height: 1.5;
}

.fc-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) 320px;
  gap: 18px;
  margin-top: 20px;
}

.fc-card,
.fc-canvas-card,
.fc-side-card,
.fc-form-card,
.fc-table-card {
  background: var(--fc-surface);
  border: 1px solid var(--fc-border);
  border-radius: 20px;
  box-shadow: var(--fc-shadow-soft);
}

.fc-canvas-card,
.fc-side-card,
.fc-form-card,
.fc-table-card {
  padding: 20px;
}

.fc-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.fc-card-header h3,
.fc-card-header h4 {
  margin: 0;
  color: var(--fc-title);
  font-size: 25px;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.fc-card-header p {
  margin: 8px 0 0;
  color: var(--fc-muted);
  font-size: 14px;
  line-height: 1.6;
}

.fc-card-tools {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}

.fc-tool-dot {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid var(--fc-border);
  background: var(--fc-surface-soft);
}

.fc-readiness-board {
  position: relative;
  border: 1px solid var(--fc-border);
  border-radius: 22px;
  background:
    linear-gradient(to right, rgba(217, 226, 236, 0.5) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(217, 226, 236, 0.5) 1px, transparent 1px),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  background-size: 64px 64px, 64px 64px, auto;
  overflow: hidden;
  min-height: 380px;
}

.fc-readiness-board::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), transparent 34%);
  pointer-events: none;
}

.fc-readiness-inner {
  position: relative;
  z-index: 1;
  padding: 20px;
}

.fc-readiness-list {
  display: grid;
  gap: 16px;
}

.fc-readiness-row {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) 60px;
  align-items: center;
  gap: 14px;
}

.fc-readiness-name {
  color: var(--fc-title);
  font-size: 14px;
  font-weight: 700;
}

.fc-progress {
  height: 12px;
  border-radius: 999px;
  background: #e8eef5;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(26, 41, 61, 0.06);
}

.fc-progress span {
  display: block;
  height: 100%;
  width: var(--progress, 0%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--bar-color), var(--bar-color-2, var(--bar-color)));
}

.fc-readiness-value {
  color: var(--fc-muted);
  font-size: 13px;
  font-weight: 700;
  text-align: right;
}

.fc-module-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.fc-module-card {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--fc-border);
  background: rgba(255, 255, 255, 0.78);
}

.fc-module-card strong {
  display: block;
  color: var(--fc-title);
  font-size: 14px;
  margin-bottom: 5px;
}

.fc-module-card span {
  color: var(--fc-muted);
  font-size: 13px;
  line-height: 1.55;
}

.fc-side-stack {
  display: grid;
  gap: 18px;
}

.fc-side-card h4 {
  margin: 0;
  color: var(--fc-title);
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.fc-side-card p {
  margin: 8px 0 0;
  color: var(--fc-muted);
  font-size: 13px;
  line-height: 1.55;
}

.fc-ring-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 18px 0 10px;
}

.fc-ring {
  --ring-color: var(--fc-cyan);
  --ring-value: 0;
  width: 132px;
  height: 132px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(closest-side, #ffffff 72%, transparent 73% 100%),
    conic-gradient(var(--ring-color) calc(var(--ring-value) * 1%), var(--fc-ring-bg) 0);
}

.fc-ring strong {
  color: var(--fc-title);
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.06em;
}

.fc-ring small {
  display: block;
  color: var(--fc-muted);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  margin-top: 5px;
}

.fc-side-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.fc-side-item {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--fc-border);
  background: var(--fc-surface-soft);
}

.fc-side-item strong {
  display: block;
  color: var(--fc-title);
  font-size: 14px;
  margin-bottom: 4px;
}

.fc-side-item span {
  color: var(--fc-muted);
  font-size: 13px;
  line-height: 1.45;
}

.fc-side-item-z .fc-side-z-num {
  display: block;
  color: var(--fc-title);
  font-size: 20px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.fc-side-item-z .fc-side-z-sub {
  display: block;
  font-size: 12px;
  color: var(--fc-muted);
}

.fc-grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: 18px;
  margin-top: 20px;
}

.fc-grid-2.fc-grid-reverse {
  grid-template-columns: minmax(340px, 0.85fr) minmax(0, 1.15fr);
}

.fc-form-card h4,
.fc-table-card h4 {
  margin: 0;
  color: var(--fc-title);
  font-size: 21px;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.fc-form-card p,
.fc-table-card p {
  margin: 8px 0 0;
  color: var(--fc-muted);
  font-size: 14px;
  line-height: 1.6;
}

.fc-notice {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(74, 142, 247, 0.18);
  background: rgba(74, 142, 247, 0.08);
  color: #2d5da9;
  font-size: 14px;
  font-weight: 700;
}

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

.fc-form-field label {
  display: block;
  margin-bottom: 8px;
  color: var(--fc-title);
  font-size: 13px;
  font-weight: 700;
}

.fc-input,
.fc-textarea,
.fc-search {
  width: 100%;
  min-height: var(--fc-input-min-h, 46px);
  border-radius: var(--fc-radius-lg, 14px);
  border: 1px solid var(--fc-border-strong);
  background: var(--fc-surface);
  color: var(--fc-text);
  padding: 12px 16px;
  font-size: 15px;
  outline: none;
  box-shadow: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.fc-textarea {
  min-height: 116px;
  resize: vertical;
}

.fc-form-card .fc-actions,
.fc-table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.fc-table-toolbar {
  margin: 18px 0 10px;
}

.fc-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--fc-muted);
  font-size: 13px;
  font-weight: 700;
}

.fc-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--fc-muted);
  cursor: pointer;
}

.fc-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 30px;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.fc-badge-info {
  background: rgba(74, 142, 247, 0.08);
  color: var(--fc-blue);
}

.fc-badge-success {
  background: rgba(41, 183, 101, 0.1);
  color: var(--fc-green);
}

.fc-badge-warning {
  background: rgba(239, 181, 59, 0.14);
  color: #b07a12;
}

.fc-badge-danger {
  background: rgba(239, 92, 103, 0.1);
  color: var(--fc-red);
}

.fc-data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}

.fc-data-table th,
.fc-data-table td {
  padding: 14px 12px;
  text-align: left;
  border-bottom: 1px solid var(--fc-border);
  vertical-align: top;
  font-size: 14px;
}

.fc-data-table th {
  color: var(--fc-muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.fc-data-table td strong {
  color: var(--fc-title);
}

.fc-subtext {
  color: var(--fc-muted);
  font-size: 12px;
}

.fc-empty {
  margin-top: 16px;
  border-radius: 18px;
  border: 1px dashed var(--fc-border-strong);
  background: var(--fc-surface-soft);
  padding: 24px;
  color: var(--fc-muted);
  text-align: center;
  line-height: 1.7;
}

.fc-empty strong {
  display: block;
  color: var(--fc-title);
  font-size: 16px;
  margin-bottom: 8px;
}

.fc-section-card {
  margin-top: 20px;
  padding: 22px;
}

.fc-pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.fc-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--fc-border);
  background: var(--fc-surface-soft);
  color: var(--fc-muted);
  font-size: 12px;
  font-weight: 700;
}

.fc-helper {
  color: var(--fc-muted);
  font-size: 12px;
  line-height: 1.6;
}

.fc-legend {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.fc-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--fc-muted);
  font-size: 12px;
  font-weight: 700;
}

.fc-legend-item::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--legend-color, var(--fc-blue));
}

.fc-kpi-value-small {
  font-size: 28px;
  letter-spacing: -0.04em;
}

.fc-workspace-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.fc-workspace-copy h3 {
  margin: 6px 0 0;
  color: var(--fc-title);
  font-size: 30px;
  line-height: 1.06;
  letter-spacing: -0.05em;
}

.fc-workspace-copy p {
  margin: 10px 0 0;
  color: var(--fc-muted);
  font-size: 14px;
  line-height: 1.6;
}

.fc-page-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.fc-page-toolbar-top {
  align-items: flex-start;
}

.fc-page-search {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 420px;
  padding: 14px 16px;
  border: 1px solid var(--fc-border);
  border-radius: 20px;
  background: var(--fc-surface);
  box-shadow: var(--fc-shadow-soft);
}

.fc-page-search.fc-page-search--hero {
  flex: 1 1 100%;
  max-width: min(960px, 100%);
  padding: 12px 14px;
  /* Mos përdor pill (999px): me shumë rreshta flex-wrap kapsula bëhet e madhe vertikalisht. */
  border-radius: var(--fc-radius-lg, 16px);
  border-color: var(--fc-border-strong);
  box-shadow: var(--fc-shadow-card);
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 12px;
  min-height: 0;
  box-sizing: border-box;
}

.fc-page-search.fc-page-search--hero .fc-search-label {
  flex: 0 0 100%;
  width: 100%;
  margin: 0 0 2px;
}

.fc-page-search.fc-page-search--hero .fc-search {
  border: none;
  background: transparent;
  padding: 10px 12px;
  font-size: 15px;
  min-height: 44px;
  /* width:100% brenda flex e shtrembëron lartësinë / gjerësinë në disa shfletues */
  width: auto;
  flex: 1 1 16rem;
  min-width: 0;
  max-width: 100%;
}

.fc-page-search.fc-page-search--hero .fc-search:focus {
  box-shadow: none;
  outline: none;
}

.fc-page-search.fc-page-search--hero .fc-btn {
  flex: 0 0 auto;
}

.fc-page-search.fc-page-search--hero select.fc-input,
.fc-page-search.fc-page-search--hero input.fc-input[type="date"] {
  flex: 1 1 8rem;
  min-width: 0;
  max-width: 100%;
}

.fc-search-label {
  color: var(--fc-title);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.fc-dashboard-filters,
.fc-filter-dates,
.fc-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.fc-filter-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

@media (max-width: 760px) {
  .fc-filter-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 6px;
    margin-bottom: -2px;
  }

  .fc-filter-tabs::-webkit-scrollbar {
    display: none;
  }

  .fc-filter-tab {
    flex: 0 0 auto;
  }
}

.fc-filter-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 12px;
  border: 1px solid var(--fc-border);
  background: var(--fc-surface);
  color: var(--fc-muted);
  font-size: 13px;
  font-weight: 700;
  box-shadow: var(--fc-shadow-soft);
}

.fc-filter-tab.active {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(135deg, #2d7ff9 0%, #2bc4cf 100%);
}

.fc-view-card {
  background: var(--fc-surface);
  border: 1px solid var(--fc-border);
  border-radius: 24px;
  box-shadow: var(--fc-shadow);
  padding: 22px;
}

.fc-dashboard-grid-premium {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) 360px;
  gap: 18px;
}

.fc-chart-card,
.fc-action-card {
  background: var(--fc-surface);
  border: 1px solid var(--fc-border);
  border-radius: 24px;
  padding: 22px;
  box-shadow: var(--fc-shadow);
}

.fc-chart-total {
  color: var(--fc-title);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.fc-chart-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(48px, 1fr));
  gap: 12px;
  align-items: end;
  min-height: 260px;
  padding: 14px 0 6px;
}

.fc-chart-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.fc-chart-bars {
  width: 100%;
  min-height: 190px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
}

.fc-chart-bar {
  width: 16px;
  border-radius: 999px 999px 6px 6px;
  box-shadow: inset 0 -4px 10px rgba(255, 255, 255, 0.18);
}

.fc-chart-bar-sales {
  background: linear-gradient(180deg, #5aa0ff 0%, #2d7ff9 100%);
}

.fc-chart-bar-expenses {
  background: linear-gradient(180deg, #ffd475 0%, #efb53b 100%);
}

.fc-chart-label {
  color: var(--fc-muted);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.fc-chart-legend {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  flex-wrap: wrap;
}

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

.fc-action-link {
  display: block;
  padding: 15px 16px;
  border-radius: 18px;
  border: 1px solid var(--fc-border);
  background: var(--fc-surface);
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.fc-action-link:hover {
  transform: translateY(-1px);
  box-shadow: var(--fc-shadow-soft);
  border-color: rgba(45, 127, 249, 0.35);
}

.fc-action-link strong {
  display: block;
  color: var(--fc-title);
  font-size: 14px;
  margin-bottom: 5px;
}

.fc-action-link span {
  color: var(--fc-muted);
  font-size: 13px;
  line-height: 1.5;
}

.fc-stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(158px, 1fr));
  gap: 12px 14px;
  margin-bottom: 20px;
}

.fc-stat-card {
  display: grid;
  gap: 8px;
  align-content: start;
  min-height: 118px;
  padding: 16px 18px;
  border: 1px solid var(--fc-border);
  border-radius: 16px;
  background: var(--fc-surface);
  box-shadow: var(--fc-shadow-soft);
}

.fc-stat-card-z {
  border-color: rgba(37, 99, 235, 0.22);
  background: linear-gradient(145deg, #ffffff 0%, #f4f8ff 100%);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.07);
}

.fc-stat-z-digits {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: #0f172a;
}

.fc-payments-panel {
  margin-bottom: 20px;
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid var(--fc-border);
  background: linear-gradient(180deg, #ffffff 0%, #f6f9fc 100%);
  box-shadow: var(--fc-shadow-soft);
}

.fc-payments-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 14px;
}

.fc-payments-head strong {
  font-size: 15px;
  font-weight: 800;
  color: var(--fc-title);
  letter-spacing: -0.02em;
}

.fc-payments-head span {
  font-size: 13px;
  color: var(--fc-muted);
  line-height: 1.45;
}

.fc-payments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 10px;
}

.fc-payment-tile {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--fc-border);
  background: var(--fc-surface);
  display: grid;
  gap: 6px;
  min-height: 88px;
}

.fc-payment-tile-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fc-muted);
}

.fc-payment-tile-value {
  font-size: 17px;
  font-weight: 800;
  color: var(--fc-title);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.fc-payment-tile-meta {
  font-size: 12px;
  color: var(--fc-muted);
}

.fc-view-card--dashboard {
  background: linear-gradient(165deg, #ffffff 0%, #f5f8fc 55%, #eef3f9 100%);
  border: 1px solid #e1e8f0;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.06);
}

.fc-workspace-header--dashboard {
  padding-bottom: 8px;
}

.fc-workspace-header--dashboard .fc-workspace-copy h3 {
  font-size: 1.65rem;
}

.fc-workspace-tagline {
  margin: 8px 0 0;
  color: var(--fc-muted);
  font-size: 14px;
  line-height: 1.55;
  max-width: 42rem;
}

.fc-toolbar-actions--header {
  gap: 10px;
}

.fc-toolbar-actions--header .fc-btn {
  min-height: 42px;
  padding: 10px 18px;
  border-radius: 12px;
  font-weight: 700;
}

.fc-dashboard-toolbar {
  margin-bottom: 18px;
  padding: 16px 20px;
  border-radius: var(--fc-radius-lg, 16px);
  border: 1px solid var(--fc-border);
  background: var(--fc-surface);
  box-shadow: var(--fc-shadow-card, var(--fc-shadow-soft));
}

.fc-dashboard-filters--bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.fc-filter-dates-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fc-muted);
  margin-right: 4px;
}

.fc-filter-dash {
  color: var(--fc-muted);
  font-weight: 600;
  padding: 0 2px;
}

.fc-input-date {
  width: auto;
  min-width: 9.5rem;
  max-width: 11rem;
}

.fc-btn-bar {
  min-height: 40px;
  border-radius: 12px;
}

.fc-dashboard-premium {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fc-dash-bento {
  display: grid;
  grid-template-columns: minmax(220px, 1.05fr) repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(104px, auto));
  gap: 14px;
  margin-bottom: 18px;
}

.fc-dash-tile--z {
  grid-column: 1;
  grid-row: 1 / -1;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 16px;
  padding: 22px 24px;
  border-radius: 20px;
  border: 1px solid rgba(37, 99, 235, 0.25);
  background: linear-gradient(145deg, #ffffff 0%, #eef4ff 42%, #e0edff 100%);
  box-shadow: 0 16px 40px rgba(37, 99, 235, 0.1);
  min-height: 100%;
}

.fc-dash-tile-z-mark {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 26px;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, #2563eb 0%, #0891b2 100%);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.35);
  align-self: flex-start;
}

.fc-dash-tile-z-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fc-dash-tile-eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #475569;
}

.fc-dash-z-number {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 900;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  color: #0f172a;
  line-height: 1;
}

.fc-dash-z-meta {
  margin: 0;
  font-size: 13px;
  color: #475569;
  line-height: 1.45;
}

.fc-dash-z-meta--muted {
  color: var(--fc-muted);
  font-size: 12px;
}

.fc-dash-tile--stat {
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid var(--fc-border);
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: center;
  background: var(--fc-surface);
  box-shadow: var(--fc-shadow-soft);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.fc-dash-tile--stat:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.07);
}

.fc-dash-stat-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fc-muted);
}

.fc-dash-stat-value {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--fc-title);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.fc-dash-stat-value small {
  font-size: 0.65em;
  font-weight: 700;
  color: var(--fc-muted);
  margin-left: 2px;
}

.fc-dash-stat-meta {
  font-size: 12px;
  color: var(--fc-muted);
}

.fc-dash-tile--blue {
  border-top: 3px solid #2563eb;
}

.fc-dash-tile--teal {
  border-top: 3px solid #0d9488;
}

.fc-dash-tile--violet {
  border-top: 3px solid #7c3aed;
}

.fc-dash-tile--amber {
  border-top: 3px solid #d97706;
}

.fc-dash-tile--rose {
  border-top: 3px solid #e11d48;
}

.fc-dash-tile--slate {
  border-top: 3px solid #64748b;
}

.fc-dash-section.fc-payments-panel {
  margin-bottom: 8px;
}

@media (max-width: 1100px) {
  .fc-dash-bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
  }

  .fc-dash-tile--z {
    grid-column: 1 / -1;
    grid-row: auto;
  }
}

@media (max-width: 640px) {
  .fc-dash-bento {
    grid-template-columns: 1fr;
  }

  .fc-dash-tile--z {
    flex-direction: column;
  }

  .fc-dash-tile-z-mark {
    width: 48px;
    height: 48px;
    font-size: 22px;
  }

  .fc-dashboard-filters--bar {
    flex-direction: column;
    align-items: stretch;
  }

  .fc-filter-dates {
    flex-wrap: wrap;
    width: 100%;
  }
}

.fc-plot-card-dashboard .fc-plot-card-header {
  flex-wrap: wrap;
  align-items: flex-end;
}

.fc-plot-card-dashboard .fc-plot-summary {
  justify-content: flex-start;
}

@media (max-width: 900px) {
  .fc-plot-card-dashboard .fc-plot-card-header {
    flex-direction: column;
    align-items: stretch;
  }

  .fc-plot-card-dashboard .fc-plot-summary {
    width: 100%;
  }
}

.fc-stat-label {
  color: var(--fc-muted);
  font-size: 13px;
  font-weight: 700;
}

.fc-stat-value {
  color: var(--fc-title);
  font-size: 26px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.fc-stat-meta {
  color: var(--fc-muted);
  font-size: 12px;
  line-height: 1.6;
}

.fc-dashboard-welcome {
  margin: 0 0 12px;
  padding: 14px 18px;
  border-radius: 16px;
  border: 1px solid var(--fc-border);
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}
.fc-dashboard-welcome-title {
  margin: 0 0 4px;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--fc-title);
  letter-spacing: -0.02em;
}
.fc-dashboard-welcome-sub {
  margin: 0;
  font-size: 0.92rem;
  color: var(--fc-muted);
  line-height: 1.45;
}

.fc-module-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}
.fc-purchases-tabs .fc-filter-tab {
  border-radius: 999px;
}

.fc-article-wizard-intro {
  margin-bottom: 20px;
}
.fc-article-wizard-h {
  margin: 0 0 8px;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--fc-title);
}
.fc-article-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.fc-article-type-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  text-align: left;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--fc-border);
  background: var(--fc-surface);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
  font: inherit;
  color: inherit;
}
.fc-article-type-card:hover {
  border-color: #93c5fd;
  box-shadow: var(--fc-shadow-soft);
}
.fc-article-type-card.is-selected {
  border-color: var(--fc-brand-accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.fc-article-type-card strong {
  font-size: 0.95rem;
}
.fc-article-type-card span:last-child {
  font-size: 0.8rem;
  color: var(--fc-muted);
  line-height: 1.35;
}
.fc-article-type-ic {
  font-size: 1.25rem;
  opacity: 0.85;
}

.fc-dashboard-main {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(260px, 3fr);
  gap: 18px;
  align-items: start;
}

.fc-dashboard-plots {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.fc-plot-col--hour {
  width: 30px;
}

.fc-main-dashboard .fc-plot-col--hour {
  width: 26px;
}

.fc-plot-card {
  background: var(--fc-surface);
  border: 1px solid var(--fc-border);
  border-radius: 18px;
  padding: 20px 22px 22px;
  box-shadow: var(--fc-shadow-soft);
}

.fc-plot-summary {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.fc-plot-summary-item {
  min-width: 134px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--fc-border);
  background: var(--fc-surface-soft);
}

.fc-plot-summary-item span {
  display: block;
  color: var(--fc-muted);
  font-size: 12px;
  font-weight: 700;
}

.fc-plot-summary-item strong {
  display: block;
  margin-top: 6px;
  color: var(--fc-title);
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.fc-plot-board {
  position: relative;
  margin-top: 12px;
  min-height: 320px;
  padding: 18px 18px 12px;
  border-radius: 20px;
  border: 1px solid var(--fc-border);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.fc-plot-grid {
  position: absolute;
  inset: 18px 18px 42px;
  display: grid;
  grid-template-rows: repeat(4, 1fr);
  pointer-events: none;
}

.fc-plot-grid span {
  border-top: 1px dashed rgba(148, 163, 184, 0.28);
}

.fc-plot-columns {
  position: relative;
  z-index: 1;
  min-height: 290px;
  min-width: min-content;
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-end;
  gap: 10px;
}

.fc-plot-col {
  flex: 0 0 auto;
  width: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.fc-plot-bars {
  width: 100%;
  min-height: 240px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
}

.fc-plot-bar {
  width: 10px;
  border-radius: 999px;
  box-shadow: inset 0 -2px 6px rgba(255, 255, 255, 0.18);
}

.fc-plot-bar-sales {
  background: linear-gradient(180deg, #60a5fa 0%, #2563eb 100%);
}

.fc-plot-bar-expenses {
  background: linear-gradient(180deg, #fcd34d 0%, #f59e0b 100%);
}

.fc-sync-panel {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--fc-border);
}

.fc-doc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--fc-muted);
  font-size: 13px;
}

.fc-doc-row strong {
  color: var(--fc-title);
  font-size: 13px;
}

.fc-doc-row.fc-doc-row-z strong {
  font-size: 15px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
  padding: 8px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(8, 145, 178, 0.1));
  border: 1px solid rgba(37, 99, 235, 0.28);
  color: #0f172a;
}

.fc-z-report-num {
  display: inline-block;
  margin-top: 6px;
  font-size: 18px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  padding: 6px 12px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(8, 145, 178, 0.08));
  border: 1px solid rgba(37, 99, 235, 0.25);
  color: #0f172a;
}

@media (max-width: 1024px) {
  .fc-sync-panel {
    padding: 14px 16px;
    margin-top: 14px;
    border-radius: 16px;
    background: var(--fc-surface-soft);
    border: 1px solid var(--fc-border);
    border-top: 1px solid var(--fc-border);
  }

  .fc-doc-row {
    font-size: 14px;
    min-height: 44px;
  }
}

.fc-doc-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.fc-doc-badge-tax {
  color: #1d4ed8;
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.18);
}

.fc-doc-badge-fiscal {
  color: #0f766e;
  background: rgba(8, 145, 178, 0.08);
  border-color: rgba(8, 145, 178, 0.18);
}

.fc-doc-badge-z {
  color: #6d28d9;
  background: rgba(124, 58, 237, 0.1);
  border-color: rgba(124, 58, 237, 0.22);
}

.fc-doc-badge-neutral {
  color: var(--fc-muted);
  background: var(--fc-surface-soft);
  border-color: var(--fc-border);
}

.fc-upload-stack {
  display: grid;
  gap: 16px;
  margin-top: 8px;
}

.fc-upload-dropzone {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
  border: 1.5px dashed #c8d4e3;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.fc-upload-icon {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: #2563eb;
  font-size: 34px;
  font-weight: 300;
}

.fc-upload-dropzone strong {
  color: var(--fc-title);
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.fc-upload-dropzone > span {
  max-width: 520px;
  color: var(--fc-muted);
  font-size: 14px;
  line-height: 1.6;
}

.fc-upload-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.fc-upload-trigger {
  position: relative;
  overflow: hidden;
}

.fc-upload-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.fc-upload-selected {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--fc-border);
  background: var(--fc-surface-soft);
  color: var(--fc-title) !important;
  font-size: 13px !important;
  font-weight: 700;
}

.fc-upload-hint-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.fc-upload-hint {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--fc-border);
  background: var(--fc-surface-soft);
}

.fc-upload-hint strong {
  display: block;
  margin-bottom: 6px;
  color: var(--fc-title);
  font-size: 13px;
}

.fc-upload-hint span {
  color: var(--fc-muted);
  font-size: 12px;
  line-height: 1.6;
}

.fc-kpi-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.fc-kpi-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 18px;
}

.fc-dashboard-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) 320px;
  gap: 18px;
  margin-top: 20px;
}

.fc-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.fc-summary-grid,
.fc-mini-grid,
.fc-invoice-totals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.fc-table-scroller {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  margin-left: -4px;
  margin-right: -4px;
  padding-left: 4px;
  padding-right: 4px;
}

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

.fc-table-scroller::-webkit-scrollbar-thumb {
  background: rgba(36, 49, 69, 0.18);
  border-radius: 999px;
}

.fc-form-block + .fc-form-block {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--fc-border);
}

.fc-form-block-top {
  margin-top: 26px;
}

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

.fc-checkbox-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--fc-text);
}

.fc-side-item span + span {
  display: block;
  margin-top: 4px;
}

.fc-invoice-entry {
  margin-top: 20px;
  border: 1px solid #d9e3f0;
  border-radius: 18px;
  overflow: hidden;
  background: #ffffff;
}

.fc-sheet-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #d9e3f0;
  background: linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
}

.fc-invoice-entry-table th,
.fc-invoice-entry-table td {
  vertical-align: top;
  border: 1px solid #d9e3f0;
}

.fc-invoice-entry-table .fc-input {
  min-width: 110px;
  border-radius: 0;
  border: none;
  padding: 10px 8px;
  background: transparent;
}

.fc-invoice-preview {
  display: grid;
  gap: 18px;
}

.fc-invoice-sheet {
  padding: 18px;
  border: 1px solid #d9e3f0;
  border-radius: 18px;
  background: #ffffff;
}

.fc-invoice-preview-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--fc-border);
}

.fc-invoice-preview-head h3 {
  margin: 0 0 8px;
  color: var(--fc-title);
  font-size: 28px;
  letter-spacing: -0.04em;
}

.fc-invoice-preview-head p {
  margin: 4px 0;
  color: var(--fc-muted);
  font-size: 13px;
}

.fc-invoice-preview-title {
  min-width: 220px;
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--fc-surface-soft);
  border: 1px solid var(--fc-border);
  text-align: right;
}

.fc-invoice-preview-title strong {
  display: block;
  color: #184a78;
  font-size: 30px;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.fc-invoice-preview-title span {
  display: block;
  color: var(--fc-muted);
  font-size: 13px;
  margin-top: 5px;
}

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

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

/* Faturë tatimore — stil flete Excel (FATURË, header blu, totali theksuar) */
.fc-invoice-official {
  max-width: 900px;
  margin: 0 auto;
  padding: 22px 24px 28px;
  font-family: var(--fc-font, "Plus Jakarta Sans", system-ui, sans-serif);
  color: #0f172a;
}

.fc-inv-off-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(200px, 260px);
  gap: 20px 28px;
  align-items: start;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 2px solid #1e3a5f;
}

.fc-inv-off-co {
  margin: 0 0 6px;
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.fc-inv-off-logo-hint {
  margin: 0 0 14px;
  font-size: 12px;
  color: #2563eb;
}

.fc-inv-off-logo-img {
  display: block;
  max-height: 72px;
  max-width: 220px;
  margin: 0 0 14px;
  object-fit: contain;
}

.fc-inv-off-block p,
.fc-inv-off-meta {
  margin: 4px 0;
  font-size: 12px;
  line-height: 1.45;
  color: #334155;
}

.fc-inv-off-k {
  font-weight: 700;
  color: #1e293b;
}

.fc-inv-off-section {
  margin: 16px 0 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1e3a5f;
}

.fc-inv-off-right {
  text-align: right;
}

.fc-inv-off-fat {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 900;
  letter-spacing: 0.14em;
  color: #1e3a5f;
  line-height: 1;
  margin-bottom: 14px;
}

.fc-inv-off-meta {
  text-align: right;
}

.fc-inv-off-table-wrap {
  overflow-x: auto;
  margin: 12px 0 18px;
  -webkit-overflow-scrolling: touch;
}

.fc-inv-excel-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.fc-inv-excel-table thead th {
  background: #1e3a5f;
  color: #fff;
  font-weight: 800;
  text-transform: none;
  letter-spacing: 0.02em;
  padding: 10px 8px;
  border: 1px solid #152a45;
  text-align: left;
}

.fc-inv-excel-table thead th.fc-inv-num {
  text-align: right;
}

.fc-inv-excel-table tbody td {
  border: 1px solid #cbd5e1;
  padding: 8px;
  vertical-align: top;
  background: #fff;
}

.fc-inv-excel-table tbody td.fc-inv-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.fc-inv-col-desc {
  min-width: 180px;
}

.fc-inv-off-totals {
  display: flex;
  justify-content: flex-end;
  margin: 8px 0 20px;
}

.fc-inv-off-totals-inner {
  min-width: min(100%, 320px);
  border: 1px solid #cbd5e1;
  border-radius: 0;
  overflow: hidden;
}

.fc-inv-tline {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 12px;
  font-size: 12px;
  border-bottom: 1px solid #e2e8f0;
  background: #fff;
}

.fc-inv-tline span:last-child {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.fc-inv-tline--grand {
  background: #1e3a5f;
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  border-bottom: none;
}

.fc-inv-tline--grand span:last-child {
  color: #fff;
}

.fc-inv-off-thanks {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #475569;
  margin: 20px 0 22px;
}

.fc-inv-off-sign {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 8px;
}

.fc-inv-sign-cell {
  text-align: center;
}

.fc-inv-sign-cell strong {
  display: block;
  font-size: 12px;
  margin-bottom: 28px;
  color: #1e293b;
}

.fc-inv-sign-line {
  display: block;
  height: 1px;
  background: #334155;
  margin: 0 8px 8px;
}

.fc-inv-sign-hint {
  font-size: 11px;
  color: #64748b;
}

@media (max-width: 720px) {
  .fc-inv-off-top {
    grid-template-columns: 1fr;
  }

  .fc-inv-off-right {
    text-align: left;
  }

  .fc-inv-off-meta {
    text-align: left;
  }

  .fc-inv-off-sign {
    grid-template-columns: 1fr;
  }
}

.fc-invoice-signature,
.fc-sign-box {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--fc-border);
  background: var(--fc-surface-soft);
}

.fc-invoice-signature strong,
.fc-sign-box strong {
  display: block;
  color: var(--fc-title);
  font-size: 14px;
  margin-bottom: 6px;
}

.fc-invoice-signature span,
.fc-sign-box span {
  color: var(--fc-muted);
  font-size: 13px;
}

.fc-empty-tall {
  min-height: 220px;
  display: grid;
  place-items: center;
  text-align: center;
}

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

.fc-side-item-strong {
  background: linear-gradient(135deg, rgba(45, 127, 249, 0.08), rgba(43, 196, 207, 0.08));
}

.fc-book-table th {
  text-align: center;
  white-space: normal;
  min-width: 92px;
  font-size: 11px;
  background: #f8fbff;
  border: 1px solid #d9e3f0;
}

.fc-book-table td {
  white-space: nowrap;
  text-align: right;
  padding: 10px 8px;
  border: 1px solid #e2e8f0;
}

.fc-book-table td:nth-child(-n+6) {
  text-align: left;
}

.fc-book-input {
  min-width: 88px;
  padding: 7px 8px;
  border-radius: 0;
  border: 1px solid #d8e2f0;
  background: #ffffff;
  color: var(--fc-text);
  font-size: 13px;
  line-height: 1.3;
  box-shadow: none;
}

.fc-book-input:focus {
  border-color: rgba(37, 99, 235, 0.42);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.fc-book-input-number {
  min-width: 78px;
  text-align: right;
}

.fc-sheet-value {
  display: inline-flex;
  min-width: 82px;
  min-height: 42px;
  align-items: center;
  justify-content: flex-end;
  padding: 8px 10px;
  color: var(--fc-title);
  font-weight: 700;
}

.fc-table-total td {
  background: #f6f9ff;
}

.fc-print-hidden {
  print-color-adjust: exact;
}

@page {
  size: A4 portrait;
  margin: 10mm;
}

@page fc-book-page {
  size: A4 landscape;
  margin: 6mm;
}

@media print {
  body.fc-printing {
    background: #ffffff !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  body.fc-printing .fc-sidebar,
  body.fc-printing .fc-topbar,
  body.fc-printing .fc-page-tabs,
  body.fc-printing .fc-workspace-header,
  body.fc-printing .fc-page-toolbar,
  body.fc-printing .fc-notice,
  body.fc-printing .fc-kpi-grid,
  body.fc-printing .fc-dashboard-toolbar,
  body.fc-printing .fc-dashboard-grid,
  body.fc-printing .fc-dashboard-grid-premium,
  body.fc-printing .fc-section-card,
  body.fc-printing .fc-print-hidden,
  body.fc-printing .fc-form-card,
  body.fc-printing .fc-side-card {
    display: none !important;
  }

  /* Mos e fshi .fc-grid-2 — përndryshe fatura / preview zhduken në print */
  body.fc-printing .fc-grid-2,
  body.fc-printing .fc-grid-2.fc-grid-reverse {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.fc-printing .fc-shell,
  body.fc-printing .fc-main,
  body.fc-printing .fc-page {
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #ffffff !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  body.fc-printing .fc-print-target {
    display: none !important;
  }

  body.fc-printing .fc-print-target.fc-print-active {
    display: block !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    page: auto;
  }

  body.fc-printing[data-fc-view="sales-book"] .fc-print-target.fc-print-active,
  body.fc-printing[data-fc-view="purchase-book"] .fc-print-target.fc-print-active {
    page: fc-book-page;
  }

  body.fc-printing .fc-view-card {
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
  }

  body.fc-printing .fc-table-card,
  body.fc-printing .fc-action-card {
    border: 0 !important;
    box-shadow: none !important;
    padding: 4px 0 0 !important;
  }

  body.fc-printing .fc-card-tools,
  body.fc-printing .fc-sheet-toolbar {
    display: none !important;
  }

  body.fc-printing .fc-card-header {
    margin-bottom: 6px !important;
    padding-bottom: 4px !important;
    border-bottom: 1px solid #ccc !important;
  }

  body.fc-printing .fc-card-header p {
    display: none !important;
  }

  body.fc-printing .fc-card-header h4 {
    font-size: 11pt !important;
    margin: 0 !important;
  }

  body.fc-printing .fc-table-scroller {
    overflow: visible !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  body.fc-printing .fc-book-table {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    font-size: 6.5pt !important;
    border-collapse: collapse !important;
  }

  body.fc-printing .fc-book-table thead th {
    position: static !important;
    padding: 3px 2px !important;
    font-size: 6pt !important;
    line-height: 1.15 !important;
    background: #f0f0f0 !important;
    border: 1px solid #999 !important;
  }

  body.fc-printing .fc-book-table tbody td {
    padding: 2px !important;
    border: 1px solid #bbb !important;
    font-size: 6.5pt !important;
  }

  body.fc-printing .fc-book-input {
    border: none !important;
    box-shadow: none !important;
    padding: 1px 2px !important;
    min-width: 0 !important;
    width: 100% !important;
    font-size: inherit !important;
    background: transparent !important;
  }

  body.fc-printing .fc-table-total td {
    font-size: 7pt !important;
    padding: 4px 3px !important;
  }

  body.fc-printing .fc-invoice-preview,
  body.fc-printing .fc-invoice-sheet {
    padding: 0 !important;
    border: 0 !important;
    font-size: 9pt !important;
    max-width: 100% !important;
  }

  body.fc-printing .fc-invoice-preview-head h3 {
    font-size: 14pt !important;
  }

  body.fc-printing .fc-invoice-preview-title strong {
    font-size: 16pt !important;
  }

  body.fc-printing .fc-invoice-preview-columns,
  body.fc-printing .fc-invoice-footer,
  body.fc-printing .fc-invoice-signatures {
    gap: 8px !important;
  }

  body.fc-printing .fc-invoice-entry {
    border: 1px solid #ccc !important;
    font-size: 8pt !important;
  }

  body.fc-printing .fc-invoice-entry-table .fc-input {
    font-size: 8pt !important;
    padding: 2px 4px !important;
  }

  body.fc-printing .fc-data-table th,
  body.fc-printing .fc-data-table td {
    padding: 4px 6px !important;
    font-size: 8pt !important;
  }

  body.fc-printing .fc-invoice-official {
    max-width: 100% !important;
    padding: 0 !important;
  }

  body.fc-printing .fc-tax-invoice-workspace--preview-collapsed {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 400px) !important;
  }

  body.fc-printing .fc-tax-invoice-workspace--preview-collapsed .fc-tax-invoice-preview-col {
    display: flex !important;
  }

  body.fc-printing #fc-toggle-invoice-preview {
    display: none !important;
  }

  body.fc-printing .fc-inv-excel-table thead th {
    background: #1e3a5f !important;
    color: #fff !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  body.fc-printing .fc-inv-tline--grand {
    background: #1e3a5f !important;
    color: #fff !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  body.fc-printing .fc-dashboard-bottom,
  body.fc-printing .fc-dashboard-main,
  body.fc-printing .fc-dashboard-premium {
    break-inside: avoid;
  }

  body.fc-printing .fc-dash-bento {
    grid-template-columns: 1fr 1fr 1fr !important;
  }

  /* Faturë tatimore: vetëm pamja zyrtare (Printo / PDF nga forma) */
  body.fc-printing.fc-tax-invoice-official-print[data-fc-view="tax-invoice"] .fc-workspace-header,
  body.fc-printing.fc-tax-invoice-official-print[data-fc-view="tax-invoice"] .fc-page-toolbar,
  body.fc-printing.fc-tax-invoice-official-print[data-fc-view="tax-invoice"] .fc-notice {
    display: none !important;
  }

  body.fc-printing.fc-tax-invoice-official-print[data-fc-view="tax-invoice"] .fc-tax-invoice-main {
    display: none !important;
  }

  body.fc-printing.fc-tax-invoice-official-print[data-fc-view="tax-invoice"] .fc-tax-invoice-workspace {
    display: block !important;
  }

  body.fc-printing.fc-tax-invoice-official-print[data-fc-view="tax-invoice"] .fc-tax-invoice-preview-col {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
  }

  body.fc-printing.fc-tax-invoice-official-print[data-fc-view="tax-invoice"] .fc-invoice-save-strip,
  body.fc-printing.fc-tax-invoice-official-print[data-fc-view="tax-invoice"] .fc-preview-panel-title {
    display: none !important;
  }

  body.fc-printing.fc-tax-invoice-official-print[data-fc-view="tax-invoice"] #fc-active-view.fc-view-card {
    max-width: 100% !important;
    padding: 0 !important;
  }

  body.fc-printing.fc-tax-invoice-official-print[data-fc-view="tax-invoice"] .fc-live-preview-panel {
    position: static !important;
    top: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
    padding: 8px 0 0 !important;
    margin: 0 !important;
    border: none !important;
    box-shadow: none !important;
    background: #fff !important;
  }

  body.fc-printing.fc-tax-invoice-official-print[data-fc-view="tax-invoice"] .fc-live-preview-panel::before {
    display: none !important;
  }

  body.fc-printing.fc-tax-invoice-official-print[data-fc-view="tax-invoice"] .fc-invoice-official {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
  }

  body.fc-printing.fc-tax-invoice-official-print[data-fc-view="tax-invoice"] .fc-inv-off-top {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(120px, 220px) !important;
    gap: 12px 16px !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  body.fc-printing.fc-tax-invoice-official-print[data-fc-view="tax-invoice"] .fc-inv-off-table-wrap {
    overflow: visible !important;
    width: 100% !important;
    margin: 10px 0 !important;
  }

  body.fc-printing.fc-tax-invoice-official-print[data-fc-view="tax-invoice"] .fc-inv-excel-table {
    width: 100% !important;
    table-layout: fixed !important;
  }

  body.fc-printing.fc-tax-invoice-official-print[data-fc-view="tax-invoice"] .fc-inv-off-totals {
    width: 100% !important;
    justify-content: flex-end !important;
  }

  body.fc-printing.fc-tax-invoice-official-print[data-fc-view="tax-invoice"] .fc-inv-off-sign {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}

@media (max-width: 1380px) {
  .fc-dashboard-main {
    grid-template-columns: 1fr;
  }

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

  .fc-upload-hint-grid {
    grid-template-columns: 1fr;
  }

  .fc-dashboard-main,
  .fc-kpi-grid {
    gap: 18px;
  }

  .fc-summary-grid,
  .fc-mini-grid,
  .fc-invoice-totals,
  .fc-invoice-preview-columns,
  .fc-invoice-footer,
  .fc-invoice-signatures,
  .fc-dashboard-grid-premium,
  .fc-dashboard-bottom,
  .fc-tax-grid {
    grid-template-columns: 1fr;
  }

  .fc-dashboard-grid,
  .fc-grid-2,
  .fc-grid-2.fc-grid-reverse {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .fc-shell {
    grid-template-columns: 1fr;
  }

  .fc-burger {
    display: grid;
    place-items: center;
  }

  .fc-nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(15, 23, 42, 0.52);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s ease, visibility 0.28s ease;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }

  .fc-shell.fc-nav-open .fc-nav-backdrop {
    opacity: 1;
    visibility: visible;
  }

  .fc-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: min(304px, calc(100vw - 48px));
    max-width: 100%;
    height: 100vh;
    height: 100dvh;
    z-index: 100;
    transform: translate3d(-105%, 0, 0);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.32s ease;
    box-shadow: none;
  }

  .fc-shell.fc-nav-open .fc-sidebar {
    transform: translate3d(0, 0, 0);
    box-shadow: 24px 0 64px rgba(0, 0, 0, 0.38);
  }

  .fc-main {
    width: 100%;
    min-width: 0;
  }

  .fc-topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
  }
}

@media (min-width: 1025px) {
  .fc-nav-backdrop {
    display: none !important;
  }
}

@media (max-width: 760px) {
  .fc-topbar,
  .fc-page {
    padding-left: max(16px, var(--fc-safe-left));
    padding-right: max(16px, var(--fc-safe-right));
  }

  .fc-topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .fc-topbar-copy h2 {
    font-size: clamp(1.15rem, 4.2vw, 1.35rem);
    line-height: 1.2;
  }

  .fc-stat-value {
    font-size: clamp(1.35rem, 5vw, 1.75rem);
  }

  .fc-nav-link,
  .fc-nav-link-static {
    min-height: 48px;
    padding: 12px 14px;
    font-size: 14px;
  }

  .fc-btn,
  .fc-btn-link,
  .fc-button {
    min-height: 48px;
    padding: 12px 18px;
    touch-action: manipulation;
  }

  .fc-chip {
    min-height: 40px;
    padding: 10px 14px;
  }

  .fc-workspace-header,
  .fc-page-toolbar,
  .fc-page-search,
  .fc-dashboard-filters,
  .fc-filter-dates {
    flex-direction: column;
    align-items: stretch;
  }

  .fc-kpi-grid,
  .fc-stat-strip,
  .fc-form-grid,
  .fc-module-grid,
  .fc-summary-grid,
  .fc-mini-grid,
  .fc-invoice-totals,
  .fc-tax-grid,
  .fc-kpi-grid-3,
  .fc-kpi-grid-4 {
    grid-template-columns: 1fr;
  }

  .fc-readiness-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .fc-readiness-value {
    text-align: left;
  }

  .fc-invoice-preview-head {
    flex-direction: column;
  }

  .fc-invoice-preview-title {
    text-align: left;
  }

  .fc-chart-board {
    grid-template-columns: repeat(auto-fit, minmax(36px, 1fr));
  }

  .fc-plot-summary,
  .fc-upload-actions {
    justify-content: flex-start;
  }

  .fc-upload-hint-grid {
    grid-template-columns: 1fr;
  }

  .fc-plot-board {
    min-height: 260px;
    padding: 14px 12px 10px;
  }

  .fc-plot-columns {
    min-height: 220px;
    gap: 8px;
  }

  .fc-view-card {
    padding: 16px;
    border-radius: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fc-sidebar,
  .fc-nav-backdrop,
  .fc-burger-lines span {
    transition: none !important;
  }
}

/* === Fincoreks Business Suite — ERP / panel premium (tokens, aksent indigo) === */
:root {
  --fc-bg: #f4f5f9;
  --fc-surface: #ffffff;
  --fc-surface-soft: #f8f9fc;
  --fc-surface-muted: #f0f2f6;
  --fc-border: #e4e7ec;
  --fc-border-strong: #cdd2da;
  --fc-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  --fc-shadow-soft: 0 4px 20px rgba(15, 23, 42, 0.06);
  --fc-shadow-card: 0 1px 3px rgba(15, 23, 42, 0.04), 0 8px 28px rgba(15, 23, 42, 0.05);
  --fc-muted: #64748b;
  --fc-text: #1e293b;
  --fc-title: #0f172a;
  --fc-primary: #5b21b6;
  --fc-primary-hover: #4c1d95;
  --fc-primary-soft: rgba(91, 33, 182, 0.1);
  --fc-radius: 12px;
  --fc-radius-lg: 16px;
  --fc-radius-pill: 999px;
  --fc-space-1: 4px;
  --fc-space-2: 8px;
  --fc-space-3: 12px;
  --fc-space-4: 16px;
  --fc-space-5: 20px;
  --fc-space-6: 24px;
  --fc-space-8: 32px;
  --fc-topbar-height: 72px;
  --fc-font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fc-font-mono: "IBM Plex Mono", ui-monospace, "Cascadia Code", monospace;
  --fc-input-min-h: 46px;
}

body {
  font-family: var(--fc-font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--fc-text);
  background: var(--fc-bg);
}

/* Sidebar default: i errët (legacy). Premium: shto klasë .fc-shell--light në shell. */
.fc-sidebar {
  background: #0b0f14;
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.06);
}

.fc-shell.fc-shell--light .fc-sidebar {
  background: #f4f4f7;
  color: var(--fc-text);
  box-shadow: inset -1px 0 0 var(--fc-border);
}

.fc-shell.fc-shell--light .fc-sidebar::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.12);
}

.fc-shell.fc-shell--light .fc-brand {
  border-bottom-color: var(--fc-border);
}

.fc-shell.fc-shell--light .fc-brand h1 {
  color: var(--fc-title);
}

.fc-shell.fc-shell--light .fc-brand p {
  color: var(--fc-muted);
}

.fc-shell.fc-shell--light .fc-sidebar-search input {
  background: var(--fc-surface);
  color: var(--fc-text);
  border: 1px solid var(--fc-border);
}

.fc-shell.fc-shell--light .fc-sidebar-search input::placeholder {
  color: #94a3b8;
}

.fc-shell.fc-shell--light .fc-nav-title {
  color: #94a3b8;
}

.fc-shell.fc-shell--light .fc-nav-link {
  color: var(--fc-text);
}

.fc-shell.fc-shell--light .fc-nav-link::before {
  background: #cbd5e1;
}

.fc-shell.fc-shell--light .fc-nav-link:hover {
  background: var(--fc-surface-soft);
}

.fc-shell.fc-shell--light .fc-nav-link.active {
  background: #ede9fe;
  color: #5b21b6;
  box-shadow: inset 0 0 0 1px rgba(91, 33, 182, 0.15);
}

.fc-shell.fc-shell--light .fc-nav-link.active::before {
  background: #7c3aed;
}

.fc-shell.fc-shell--light .fc-nav-link-static {
  color: var(--fc-muted);
}

.fc-shell.fc-shell--light .fc-nav-link-static::before {
  background: #e2e8f0;
}

.fc-shell.fc-shell--light .fc-topbar {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--fc-border);
}

.fc-brand-mark {
  border-radius: var(--fc-radius);
  background: #151b24;
  color: #e8eaed;
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 17px;
  font-weight: 800;
}

.fc-shell.fc-shell--light .fc-brand-mark {
  background: linear-gradient(135deg, #6366f1 0%, #7c3aed 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.28);
}

.fc-brand h1 {
  font-weight: 800;
  letter-spacing: -0.03em;
}

.fc-nav-link.active {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.fc-nav-link.active::before {
  background: #a78bfa;
}

/* Utilities — spacing konsistent */
.fc-stack {
  display: flex;
  flex-direction: column;
  gap: var(--fc-space-4);
}

.fc-stack-sm {
  gap: var(--fc-space-2);
}

.fc-cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--fc-space-2) var(--fc-space-3);
}

.fc-section-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fc-muted);
  margin: 0 0 var(--fc-space-2);
}

.fc-table-card,
.fc-form-card,
.fc-plot-card,
.fc-action-card,
.fc-side-card,
.fc-readiness-card,
.fc-kpi-card,
.fc-chart-card {
  box-shadow: var(--fc-shadow-soft);
  border: 1px solid var(--fc-border);
  border-radius: var(--fc-radius-lg);
}

.fc-view-card {
  border-radius: var(--fc-radius-lg);
  border: 1px solid var(--fc-border);
  box-shadow: var(--fc-shadow-card, var(--fc-shadow-soft));
  background: var(--fc-surface);
}

.fc-card-header {
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--fc-border);
  flex-wrap: wrap;
  gap: 12px;
}

.fc-card-header h3,
.fc-card-header h4 {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.fc-card-header p {
  font-size: 13px;
  color: var(--fc-muted);
  max-width: 52ch;
}

.fc-card-tools .fc-btn {
  border-radius: var(--fc-radius);
  min-height: 38px;
  font-size: 13px;
  font-weight: 600;
}

.fc-btn-primary {
  background: var(--fc-primary);
  border-color: var(--fc-primary);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.fc-btn-primary:hover {
  background: var(--fc-primary-hover);
  border-color: var(--fc-primary-hover);
}

.fc-btn,
.fc-btn-soft {
  border-radius: var(--fc-radius);
  font-weight: 600;
  box-shadow: var(--fc-shadow);
}

.fc-filter-tab.active {
  background: var(--fc-primary);
  color: #f8fafc;
  border-color: var(--fc-primary);
}

.fc-topbar {
  box-shadow: 0 1px 0 var(--fc-border);
  background: var(--fc-surface);
}

.fc-topbar-copy h2 {
  font-weight: 800;
  letter-spacing: -0.03em;
}

.fc-chip {
  border-radius: 999px;
  font-weight: 600;
}

.fc-page {
  padding-top: 20px;
}

.fc-workspace-copy h3 {
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
}

.fc-page-search {
  border-radius: var(--fc-radius-lg);
  border: 1px solid var(--fc-border);
  box-shadow: var(--fc-shadow);
  flex-wrap: wrap;
  gap: 10px;
}

.fc-input,
.fc-textarea,
.fc-search,
select.fc-input {
  border-radius: var(--fc-radius);
  border-color: var(--fc-border-strong);
  font-size: 14px;
}

.fc-input:focus,
.fc-textarea:focus,
.fc-search:focus,
select.fc-input:focus {
  border-color: var(--fc-primary);
  box-shadow: 0 0 0 3px var(--fc-primary-soft, rgba(91, 33, 182, 0.12));
  outline: none;
}

/* Tabela të dhënash — si libër kontabël */
.fc-table-scroller {
  margin: 0 -4px;
  padding: 0;
  border: 1px solid var(--fc-border);
  border-radius: var(--fc-radius);
  background: var(--fc-surface-muted);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

.fc-table-scroller .fc-data-table,
.fc-table-scroller .fc-book-table {
  margin-top: 0;
  background: var(--fc-surface);
}

.fc-data-table {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.fc-data-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fc-muted);
  background: var(--fc-surface-muted);
  border-bottom: 2px solid var(--fc-border-strong);
  white-space: nowrap;
}

.fc-data-table tbody tr:nth-child(even) {
  background: #fafbfc;
}

.fc-data-table tbody tr:hover td {
  background: rgba(26, 54, 93, 0.04);
}

.fc-data-table th,
.fc-data-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--fc-border);
  vertical-align: middle;
}

.fc-data-table td strong {
  font-weight: 600;
  color: var(--fc-title);
}

/* Libri i shitjeve / blerjeve */
.fc-book-table {
  font-family: var(--fc-font);
  font-size: clamp(10px, 0.85vw, 11px);
  font-variant-numeric: tabular-nums;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 100%;
  width: max-content;
}

.fc-book-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 6px 5px;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #3d4450;
  background: linear-gradient(180deg, #eef1f5 0%, #e4e8ee 100%);
  border: 1px solid var(--fc-border-strong);
  border-bottom: 2px solid #b8c0cc;
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.06);
}

.fc-book-table tbody td {
  padding: 5px 4px;
  border: 1px solid var(--fc-border);
  background: var(--fc-surface);
  font-size: inherit;
}

.fc-book-table tbody tr:nth-child(even) td {
  background: #f9fafb;
}

.fc-book-table tbody tr:hover td {
  background: #f0f4f8;
}

.fc-book-input {
  font-family: var(--fc-font-mono);
  font-size: inherit;
  min-width: 52px;
  max-width: 100%;
  padding: 5px 6px;
  border-radius: 5px;
  border: 1px solid var(--fc-border-strong);
  background: #fff;
  line-height: 1.35;
}

.fc-book-input:focus {
  border-color: var(--fc-primary);
  box-shadow: 0 0 0 2px rgba(26, 54, 93, 0.12);
}

.fc-book-input-number {
  text-align: right;
}

.fc-table-total td {
  font-family: var(--fc-font-mono);
  font-weight: 600;
  background: #e8edf3 !important;
  border-top: 2px solid var(--fc-border-strong);
  color: var(--fc-title);
}

.fc-sheet-value {
  font-family: var(--fc-font-mono);
  font-size: 13px;
}

/* Fatura tatimore — dokument i pastër */
.fc-invoice-entry {
  border: 1px solid var(--fc-border-strong);
  border-radius: var(--fc-radius-lg);
  box-shadow: var(--fc-shadow-soft);
}

.fc-sheet-toolbar {
  background: var(--fc-surface-muted);
  border-bottom-color: var(--fc-border);
}

.fc-invoice-entry-table th,
.fc-invoice-entry-table td {
  border-color: var(--fc-border);
}

.fc-invoice-sheet {
  border: 1px solid var(--fc-border-strong);
  border-radius: var(--fc-radius-lg);
  box-shadow: var(--fc-shadow);
}

.fc-invoice-preview-head {
  border-bottom-color: var(--fc-border-strong);
}

.fc-invoice-preview-title {
  border-radius: var(--fc-radius);
  background: var(--fc-surface-muted);
}

.fc-invoice-preview-title strong {
  color: var(--fc-primary);
  font-weight: 800;
  letter-spacing: 0.06em;
}

.fc-doc-badge,
.fc-badge {
  font-size: 11px;
  font-weight: 600;
  border-radius: 6px;
}

.fc-kpi-red,
.fc-kpi-green,
.fc-kpi-cyan,
.fc-kpi-blue,
.fc-kpi-yellow,
.fc-kpi-purple {
  --fc-accent: #4a5568;
}

.fc-kpi-card::before,
.fc-kpi-card::after {
  opacity: 0.2;
}

.fc-payment-tile {
  background: var(--fc-surface);
  border: 1px solid var(--fc-border);
  box-shadow: none;
  border-radius: var(--fc-radius);
}

.fc-dash-tile--z {
  border: 1px solid var(--fc-border);
  background: var(--fc-surface);
  box-shadow: var(--fc-shadow-soft);
  border-radius: var(--fc-radius-lg);
}

.fc-dash-tile-z-mark {
  background: var(--fc-primary);
  border: 1px solid rgba(0, 0, 0, 0.15);
  box-shadow: none;
}

.fc-dash-tile--stat {
  border-top: 3px solid var(--fc-border-strong);
  border-radius: var(--fc-radius);
}

.fc-dash-tile--blue {
  border-top-color: #2563eb;
}

.fc-dash-tile--teal {
  border-top-color: #0d9488;
}

.fc-dash-tile--violet {
  border-top-color: #6366f1;
}

.fc-dash-tile--amber {
  border-top-color: #d97706;
}

.fc-dash-tile--rose {
  border-top-color: #e11d48;
}

.fc-dash-tile--slate {
  border-top-color: #64748b;
}

.fc-plot-card-dashboard {
  border: 1px solid var(--fc-border);
  box-shadow: var(--fc-shadow-soft);
  border-radius: var(--fc-radius-lg);
}

.fc-view-card--dashboard {
  background: var(--fc-surface);
  border: 1px solid var(--fc-border);
  box-shadow: var(--fc-shadow-soft);
}

.fc-chart-bar-sales {
  background: linear-gradient(180deg, #4f7dcf 0%, var(--fc-primary) 100%);
}

.fc-chart-bar-expenses {
  background: linear-gradient(180deg, #94a3b8 0%, #64748b 100%);
}

.fc-side-item-z {
  border: 1px solid var(--fc-border);
  background: var(--fc-surface-soft);
  border-radius: var(--fc-radius);
}

.fc-side-z-num {
  font-variant-numeric: tabular-nums;
}

.fc-action-link {
  border-radius: var(--fc-radius);
}

.fc-action-link:hover {
  border-color: rgba(26, 54, 93, 0.25);
}

.fc-notice {
  border-radius: var(--fc-radius);
  font-weight: 600;
}

.fc-empty {
  border-radius: var(--fc-radius-lg);
}

@media (max-width: 760px) {
  .fc-table-scroller {
    border-radius: var(--fc-radius);
    -webkit-overflow-scrolling: touch;
  }

  .fc-book-table {
    min-width: 100%;
  }

  .fc-card-header .fc-card-tools {
    width: 100%;
    justify-content: flex-start;
  }

  .fc-card-tools .fc-btn {
    flex: 1 1 auto;
    min-width: 0;
    justify-content: center;
  }

  .fc-page-search .fc-search {
    min-width: 0;
    flex: 1 1 200px;
  }

  .fc-invoice-preview-columns,
  .fc-invoice-footer,
  .fc-invoice-signatures {
    gap: 12px;
  }
}

/* === Paneli kryesor: butona kompaktë dhe renditje si ERP (vetëm dashboard) === */
.fc-main-dashboard .fc-workspace-header.fc-workspace-header--dashboard {
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 16px;
  margin-bottom: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--fc-border);
}

.fc-main-dashboard .fc-workspace-header--dashboard .fc-workspace-copy h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-top: 2px;
  line-height: 1.2;
}

.fc-main-dashboard .fc-workspace-header--dashboard .fc-eyebrow {
  font-size: 10px;
  letter-spacing: 0.1em;
}

.fc-main-dashboard .fc-workspace-tagline {
  font-size: 12px;
  line-height: 1.45;
  margin-top: 4px;
  max-width: 36rem;
}

.fc-main-dashboard .fc-toolbar-actions--header {
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px 8px;
  max-width: min(100%, 420px);
}

.fc-main-dashboard .fc-toolbar-actions--header .fc-btn {
  min-height: 32px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 8px;
  box-shadow: none;
}

.fc-main-dashboard .fc-toolbar-actions--header .fc-btn-primary {
  padding-left: 14px;
  padding-right: 14px;
}

.fc-main-dashboard .fc-dashboard-toolbar {
  margin-bottom: 14px;
  padding: 10px 12px;
  border-radius: 10px;
}

.fc-main-dashboard .fc-dashboard-filters--bar {
  gap: 10px 14px;
  align-items: center;
}

.fc-main-dashboard .fc-filter-tabs {
  gap: 6px;
}

.fc-main-dashboard .fc-filter-tab {
  min-height: 30px;
  padding: 5px 11px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 8px;
  box-shadow: none;
}

.fc-main-dashboard .fc-filter-dates {
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.fc-main-dashboard .fc-filter-dates-label {
  font-size: 10px;
  margin-right: 0;
}

.fc-main-dashboard .fc-input.fc-input-date {
  min-height: 32px;
  padding: 6px 10px;
  font-size: 13px;
  border-radius: 8px;
  min-width: 8.5rem;
  max-width: 10rem;
}

.fc-main-dashboard .fc-btn-bar {
  min-height: 32px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 8px;
}

.fc-main-dashboard .fc-action-card .fc-card-header {
  margin-bottom: 10px;
  padding-bottom: 10px;
}

.fc-main-dashboard .fc-action-card .fc-card-header h4 {
  font-size: 0.95rem;
}

.fc-main-dashboard .fc-action-card .fc-card-header p {
  font-size: 12px;
  margin-top: 4px;
}

.fc-main-dashboard .fc-action-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.fc-main-dashboard .fc-action-link {
  padding: 9px 11px;
  border-radius: 8px;
  min-height: 0;
}

.fc-main-dashboard .fc-action-link strong {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 2px;
  line-height: 1.25;
}

.fc-main-dashboard .fc-action-link span {
  font-size: 11px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fc-main-dashboard .fc-payments-panel {
  padding: 12px 14px;
  margin-bottom: 14px;
}

.fc-main-dashboard .fc-payments-head {
  margin-bottom: 10px;
}

.fc-main-dashboard .fc-payments-head strong {
  font-size: 0.9rem;
}

.fc-main-dashboard .fc-payments-head span {
  font-size: 11px;
}

.fc-main-dashboard .fc-payments-grid {
  gap: 8px;
}

.fc-main-dashboard .fc-payment-tile {
  min-height: 0;
  padding: 9px 11px;
  border-radius: 8px;
}

.fc-main-dashboard .fc-payment-tile-label {
  font-size: 9px;
  letter-spacing: 0.05em;
}

.fc-main-dashboard .fc-payment-tile-value {
  font-size: 14px;
}

.fc-main-dashboard .fc-payment-tile-meta {
  font-size: 10px;
}

.fc-main-dashboard .fc-sync-panel {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--fc-border);
  font-size: 12px;
}

.fc-main-dashboard .fc-doc-row {
  padding: 6px 0;
}

@media (max-width: 900px) {
  .fc-main-dashboard .fc-action-list {
    grid-template-columns: 1fr;
  }

  .fc-main-dashboard .fc-toolbar-actions--header {
    max-width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .fc-main-dashboard .fc-workspace-header.fc-workspace-header--dashboard {
    flex-direction: column;
    align-items: stretch;
  }

  .fc-main-dashboard .fc-toolbar-actions--header .fc-btn,
  .fc-main-dashboard .fc-dashboard-toolbar .fc-btn,
  .fc-main-dashboard .fc-btn-bar {
    min-height: 36px;
    font-size: 12px;
  }

  .fc-main-dashboard .fc-filter-tab {
    min-height: 34px;
    padding: 6px 12px;
  }
}

/* === Panel i dendur + faturë në madhësi A4 në ekran + faqe e kufizuar === */
.fc-main {
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.fc-page {
  flex: 1;
  min-height: 0;
  width: 100%;
  max-width: min(1680px, 100%);
  margin-inline: auto;
  box-sizing: border-box;
}

.fc-invoice-preview.fc-invoice-sheet {
  max-width: 210mm;
  margin-inline: auto;
  box-sizing: border-box;
}

.fc-main-dashboard .fc-view-card--dashboard {
  padding: 12px 14px !important;
}

.fc-main-dashboard .fc-dashboard-premium {
  gap: 2px;
}

.fc-main-dashboard .fc-dash-bento {
  grid-template-columns: minmax(140px, 0.65fr) repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(68px, auto));
  gap: 8px;
  margin-bottom: 12px;
}

.fc-main-dashboard .fc-dash-tile--z {
  grid-row: 1 / -1;
  grid-column: 1;
  padding: 12px 14px;
  gap: 6px;
}

.fc-main-dashboard .fc-dash-tile-z-mark {
  width: 40px;
  height: 40px;
  font-size: 18px;
  border-radius: 10px;
}

.fc-main-dashboard .fc-dash-z-number {
  font-size: clamp(1.2rem, 2.8vw, 1.65rem);
  letter-spacing: 0.04em;
}

.fc-main-dashboard .fc-dash-tile--stat {
  padding: 10px 12px;
  gap: 4px;
}

.fc-main-dashboard .fc-dash-stat-value {
  font-size: 1.05rem;
}

.fc-main-dashboard .fc-dash-stat-meta {
  font-size: 11px;
}

.fc-main-dashboard .fc-dashboard-main {
  grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
  gap: 12px;
}

.fc-main-dashboard .fc-plot-card-dashboard {
  padding: 12px 14px;
}

.fc-main-dashboard .fc-plot-board {
  min-height: 200px;
  padding: 10px 12px 8px;
}

.fc-main-dashboard .fc-plot-bars {
  min-height: 160px;
}

.fc-main-dashboard .fc-plot-columns {
  min-height: 180px;
  gap: 8px;
}

.fc-main-dashboard .fc-plot-summary-item {
  min-width: 0;
  padding: 8px 10px;
}

.fc-main-dashboard .fc-plot-summary-item strong {
  font-size: 15px;
}

.fc-main-dashboard .fc-dashboard-bottom {
  margin-top: 12px;
  gap: 12px;
}

.fc-main-dashboard .fc-table-card {
  padding: 12px 14px;
}

@media (max-width: 1100px) {
  .fc-main-dashboard .fc-dash-bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
  }

  .fc-main-dashboard .fc-dash-tile--z {
    grid-column: 1 / -1;
    grid-row: auto;
    flex-direction: row;
  }
}

/* ——— Ballina SaaS (shitje në krye, fiskal poshtë) ——— */
main.fc-main.fc-main-dashboard {
  background: linear-gradient(180deg, #ecfdf5 0%, #f0fdf4 12%, #f4f7fb 42%);
}

.fc-saas-dash {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 8px;
}

.fc-saas-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.fc-saas-hero-title {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--fc-title);
}

.fc-saas-hero-sub {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--fc-muted);
  max-width: 52rem;
  line-height: 1.5;
}

.fc-saas-hero-sub strong {
  color: #047857;
  font-weight: 700;
}

.fc-saas-kpi-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.fc-saas-kpi-row--secondary {
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 16px;
}

.fc-saas-kpi-card {
  background: #fff;
  border-radius: var(--fc-radius-lg, 16px);
  padding: 20px 18px;
  border: 1px solid var(--fc-border);
  box-shadow: var(--fc-shadow-card, 0 8px 28px rgba(15, 23, 42, 0.06));
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 118px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.fc-saas-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(99, 102, 241, 0.1);
  border-color: #c4b5fd;
}

.fc-saas-kpi-card--mint {
  border-top: 3px solid #10b981;
  background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
}

.fc-saas-kpi-card--z {
  flex-direction: row;
  align-items: flex-start;
  gap: 16px;
  border: 1px solid rgba(37, 99, 235, 0.2);
  background: linear-gradient(135deg, #fff 0%, #eff6ff 55%, #f0fdf4 100%);
  min-height: 0;
}

.fc-saas-kpi-z-badge {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 8px 20px rgba(5, 150, 105, 0.35);
}

.fc-saas-kpi-z-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fc-saas-kpi-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.fc-saas-kpi-value {
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}

.fc-saas-kpi-value--z {
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: 0.04em;
}

.fc-saas-kpi-meta {
  font-size: 12px;
  color: #64748b;
  line-height: 1.4;
}

.fc-saas-kpi-meta--muted {
  color: #94a3b8;
  font-size: 12px;
}

.fc-saas-kpi-meta--vat {
  display: block;
  font-size: 11px;
  line-height: 1.45;
}

.fc-main-dashboard .fc-filter-tab.active {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-color: #047857;
  color: #fff;
}

@media (max-width: 1200px) {
  .fc-saas-kpi-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fc-saas-kpi-row--secondary {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .fc-saas-kpi-row {
    grid-template-columns: 1fr;
  }

  .fc-saas-kpi-card--z {
    flex-direction: column;
  }
}

/* === Telefon / mobile — master: pa overflow horizontal, filtra scroll, topbar e pastër === */
@media (max-width: 1024px) {
  html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  body {
    overflow-x: hidden;
  }

  .fc-shell {
    overflow-x: hidden;
    max-width: 100%;
  }

  .fc-main {
    max-width: 100%;
    min-width: 0;
  }
}

@media (max-width: 760px) {
  .fc-page {
    padding-bottom: max(20px, var(--fc-safe-bottom));
  }

  .fc-topbar-right {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .fc-topbar-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
    width: 100%;
  }

  .fc-topbar-meta .fc-chip {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .fc-main-dashboard .fc-filter-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    gap: 8px;
    padding: 4px 2px 8px;
    margin: 0 -2px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    touch-action: pan-x;
  }

  .fc-main-dashboard .fc-filter-tabs::-webkit-scrollbar {
    height: 4px;
  }

  .fc-main-dashboard .fc-filter-tabs::-webkit-scrollbar-thumb {
    background: rgba(5, 150, 105, 0.35);
    border-radius: 4px;
  }

  .fc-main-dashboard .fc-filter-tab {
    flex: 0 0 auto;
    scroll-snap-align: start;
    white-space: nowrap;
  }

  .fc-main-dashboard .fc-dashboard-filters--bar {
    align-items: stretch;
  }

  .fc-main-dashboard .fc-payments-grid {
    grid-template-columns: 1fr;
  }

  .fc-saas-hero-sub {
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .fc-saas-kpi-meta--vat {
    word-break: break-word;
    overflow-wrap: anywhere;
    line-height: 1.5;
  }

  .fc-saas-kpi-card {
    min-height: 0;
  }

  .fc-table-scroller {
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }

  .fc-data-table th,
  .fc-data-table td {
    padding: 10px 8px;
  }

  .fc-main-dashboard .fc-plot-summary {
    flex-direction: column;
    align-items: stretch;
  }

  .fc-main-dashboard .fc-plot-summary-item {
    min-width: 0;
    width: 100%;
  }

  .fc-main-dashboard .fc-dashboard-bottom {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .fc-topbar {
    padding-left: max(12px, var(--fc-safe-left));
    padding-right: max(12px, var(--fc-safe-right));
  }

  .fc-page {
    padding-left: max(12px, var(--fc-safe-left));
    padding-right: max(12px, var(--fc-safe-right));
  }

  .fc-main-dashboard .fc-filter-tab {
    min-height: 42px;
    padding: 8px 14px;
    font-size: 13px;
  }

  .fc-main-dashboard .fc-workspace-header--dashboard {
    margin-bottom: 8px;
    padding-bottom: 10px;
  }

  .fc-view-card--dashboard {
    padding: 12px 10px;
    border-radius: 16px;
  }

  .fc-saas-kpi-card {
    padding: 14px 12px;
  }

  .fc-burger {
    width: 48px;
    height: 48px;
  }
}

/* --- Faturat tatimore (hub + forma + nënshkrim) --- */
.fc-tax-inv-hub .fc-card-header {
  flex-wrap: wrap;
  gap: 14px;
}

.fc-tax-inv-hub .fc-card-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.fc-btn-danger {
  background: linear-gradient(180deg, #f87171 0%, #ef4444 100%);
  color: #fff;
  border: 1px solid #dc2626;
  box-shadow: 0 6px 16px rgba(239, 68, 68, 0.22);
}

.fc-btn-danger:hover {
  filter: brightness(1.04);
}

.fc-btn-sm {
  padding: 6px 12px;
  font-size: 13px;
  border-radius: 10px;
}

.fc-inline-form {
  display: inline;
  margin: 0;
  padding: 0;
}

.fc-inline-form .fc-btn-sm {
  vertical-align: middle;
}

.fc-tax-inv-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.fc-tax-inv-card {
  background: var(--fc-surface);
  border: 1px solid var(--fc-border);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: var(--fc-shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.fc-tax-inv-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.fc-tax-inv-num {
  font-size: 16px;
  font-weight: 700;
  color: var(--fc-title);
  word-break: break-word;
}

.fc-tax-inv-date {
  font-size: 12px;
  color: var(--fc-muted);
  white-space: nowrap;
}

.fc-tax-inv-buyer {
  margin: 0;
  font-size: 14px;
  color: var(--fc-text);
  line-height: 1.45;
  word-break: break-word;
}

.fc-tax-inv-total {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: #0f766e;
  letter-spacing: -0.02em;
}

.fc-tax-inv-meta {
  margin: 0;
  font-size: 12px;
  color: var(--fc-muted);
}

.fc-tax-inv-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.fc-tax-inv-table-wrap {
  margin-top: 4px;
}

.fc-tax-inv-row-actions {
  white-space: nowrap;
}

.fc-tax-inv-row-actions .fc-btn-sm {
  margin-right: 6px;
}

.fc-signature-block {
  margin-top: 8px;
}

.fc-signature-block .fc-helper {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--fc-muted);
}

.fc-signature-wrap {
  border: 1px dashed var(--fc-border-strong);
  border-radius: 12px;
  background: #fafbfc;
  overflow: hidden;
  max-width: 100%;
}

.fc-signature-canvas {
  display: block;
  width: 100%;
  height: auto;
  max-height: 200px;
  touch-action: none;
  cursor: crosshair;
}

.fc-signature-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.fc-inv-signature-img {
  max-width: 100%;
  max-height: 120px;
  object-fit: contain;
  border: 1px solid var(--fc-border);
  border-radius: 8px;
  background: #fff;
}

.fc-invoice-entry-table {
  min-width: 640px;
}

@media (max-width: 900px) {
  .fc-tax-inv-table-desktop {
    display: none;
  }

  .fc-tax-inv-card-grid {
    grid-template-columns: 1fr;
  }

  .fc-signature-canvas {
    max-height: 180px;
  }
}

@media (min-width: 901px) {
  .fc-tax-inv-card-grid {
    display: none;
  }
}

@media (max-width: 760px) {
  .fc-invoice-entry .fc-sheet-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .fc-invoice-totals .fc-side-item {
    flex-wrap: wrap;
    gap: 6px;
  }

  .fc-page-tax-invoice {
    grid-template-columns: 1fr;
  }
}

/* ========== Tax invoice workspace (split form + live preview) ========== */
.fc-tax-invoice-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 440px);
  gap: var(--fc-space-6, 24px);
  align-items: start;
  min-height: 0;
}

/* Pamja live + preview nga serveri: të fshehura derisa përdoruesi të hapë me buton */
.fc-tax-invoice-workspace--preview-collapsed {
  grid-template-columns: 1fr;
}

.fc-tax-invoice-workspace--preview-collapsed .fc-tax-invoice-preview-col {
  display: none;
}

.fc-tax-invoice-workspace--preview-collapsed .fc-tax-invoice-main #invoice-form {
  max-height: none;
}

.fc-tax-invoice-main {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Mos e kufizo lartësinë e #invoice-form — përndryshe strip-i «Krijo» mbetet jashtë ekranit dhe duhet scroll brenda formës. */

.fc-tax-invoice-preview-col {
  min-width: 0;
  min-height: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--fc-space-4, 16px);
}

.fc-preview-panel-title {
  margin: 0 0 var(--fc-space-2, 8px);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: normal;
  text-transform: none;
  color: var(--fc-title);
  white-space: normal;
  line-height: 1.35;
}

.fc-preview-panel-title::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  margin-right: 8px;
  vertical-align: middle;
}

.fc-live-preview-panel {
  position: sticky;
  top: calc(var(--fc-topbar-height, 72px) + 8px);
  flex: 1;
  min-height: 280px;
  /* Më shumë hapësirë vertikale që tabela e faturës të mos «ngjitet» në fund */
  max-height: min(920px, calc(100dvh - var(--fc-topbar-height, 72px) - 72px));
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--fc-radius-lg, 16px);
  border: 1px solid #e2e8f0;
  background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
  box-shadow: var(--fc-shadow-card, 0 8px 28px rgba(15, 23, 42, 0.06));
  padding: 22px 20px 24px;
}

.fc-live-preview-panel::before {
  content: "";
  display: block;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #6366f1, #a855f7);
  margin: -10px -8px 16px;
  opacity: 0.85;
}

.fc-live-preview-panel .fc-inv-off-top {
  margin-bottom: 12px;
}

.fc-live-preview-panel .fc-invoice-official {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

.fc-live-preview-panel .fc-inv-off-fat {
  font-size: clamp(1.2rem, 3.5vw, 1.65rem);
  letter-spacing: 0.1em;
}

.fc-live-preview-panel .fc-inv-excel-table {
  font-size: 12px;
}

.fc-live-preview-panel .fc-inv-off-totals-inner {
  font-size: 13px;
}

.fc-live-preview-sig {
  max-width: 100%;
  max-height: 100px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid var(--fc-border);
  background: #fff;
  margin-top: 6px;
}

.fc-form-section {
  border: 1px solid var(--fc-border);
  border-radius: 16px;
  background: var(--fc-surface-soft);
  padding: 0;
  margin-bottom: 20px;
  overflow: hidden;
}

.fc-form-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: var(--fc-surface);
  border-bottom: 1px solid var(--fc-border);
}

.fc-form-section-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--fc-title);
  letter-spacing: -0.02em;
}

.fc-form-section-desc {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--fc-muted);
  line-height: 1.45;
}

.fc-form-section-body {
  padding: 16px 18px 18px;
}

.fc-form-section-body .fc-form-grid {
  margin: 0;
}

.fc-tax-invoice-form-card {
  border: none;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.fc-tax-invoice-form-card > .fc-card-header {
  padding: 0 0 16px;
  border: none;
  background: transparent;
}

.fc-invoice-lines-wrap {
  border-radius: var(--fc-radius-lg, 14px);
  border: 1px solid var(--fc-border);
  overflow: auto;
  max-height: min(420px, 48vh);
  -webkit-overflow-scrolling: touch;
  background: var(--fc-surface);
  max-width: 100%;
}

/* Faturë tatimore: më shumë hapësirë vertikale si fletë Excel */
.fc-invoice-lines-wrap--sheet {
  max-height: min(560px, 62vh);
}

.fc-invoice-entry-table.fc-invoice-entry-table--full {
  width: 100%;
  table-layout: fixed;
  min-width: 0;
}

.fc-inv-col-desc {
  width: 36%;
}

.fc-inv-col-unit {
  width: 9%;
}

.fc-inv-col-qty {
  width: 9%;
}

.fc-inv-col-price {
  width: 12%;
}

.fc-inv-col-tax {
  width: 14%;
}

.fc-inv-col-sum {
  width: 11%;
}

.fc-inv-col-act {
  width: 9%;
}

.fc-invoice-save-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  padding: 16px 18px;
  position: relative;
  z-index: 6;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, #f8fafc 100%);
  border: 1px solid var(--fc-border);
  border-radius: 14px;
  box-shadow: 0 -6px 22px rgba(15, 23, 42, 0.08);
  scroll-margin-bottom: 24px;
}

.fc-invoice-save-strip-text {
  flex: 1;
  min-width: 220px;
  font-size: 13px;
  color: var(--fc-muted, #64748b);
  line-height: 1.45;
}

.fc-invoice-save-strip-text strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: var(--fc-title, #0f172a);
  margin-bottom: 4px;
}

.fc-invoice-save-strip-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.fc-invoice-save-btn {
  min-height: 48px;
  padding: 12px 28px;
  font-size: 16px;
  font-weight: 800;
}

.fc-invoice-lines-wrap .fc-invoice-entry-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--fc-surface-muted, #f1f3f6);
  color: var(--fc-title);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 2px solid var(--fc-border);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.fc-invoice-entry-table .fc-row-reorder {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
}

.fc-btn-icon {
  min-width: 36px;
  min-height: 36px;
  padding: 0;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.fc-invoice-totals-bar {
  position: relative;
  z-index: 1;
  margin: 16px -4px 0;
  padding: 14px 16px;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.92) 0%, #fff 40%);
  border: 1px solid var(--fc-border);
  border-radius: 14px;
  box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(8px);
}

.fc-invoice-totals-bar .fc-invoice-totals {
  margin: 0;
  gap: 8px;
}

.fc-sheet-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.fc-sheet-toolbar .fc-btn {
  min-height: 42px;
  padding-left: 16px;
  padding-right: 16px;
}

/* Mobile: invoice table → labeled blocks */
@media (max-width: 720px) {
  .fc-tax-invoice-workspace {
    grid-template-columns: 1fr;
  }

  .fc-tax-invoice-preview-col {
    order: 2;
  }

  .fc-tax-invoice-main {
    order: 1;
  }

  .fc-live-preview-panel {
    position: relative;
    top: auto;
    max-height: none;
  }

  .fc-invoice-entry-table {
    min-width: 0;
  }

  .fc-invoice-entry-table thead {
    display: none;
  }

  .fc-invoice-entry-table tr[data-invoice-row] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 12px;
    padding: 14px 12px;
    margin-bottom: 12px;
    border: 1px solid var(--fc-border);
    border-radius: 14px;
    background: var(--fc-surface-soft);
  }

  .fc-invoice-entry-table tr[data-invoice-row] td {
    display: flex;
    flex-direction: column;
    gap: 6px;
    border: none;
    padding: 0;
    min-width: 0;
  }

  .fc-invoice-entry-table tr[data-invoice-row] td::before {
    content: attr(data-label);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--fc-muted);
  }

  .fc-invoice-entry-table tr[data-invoice-row] td.fc-invoice-line-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 8px;
    border-top: 1px dashed var(--fc-border);
  }

  .fc-invoice-entry-table tr[data-invoice-row] td.fc-invoice-line-actions::before {
    content: none;
  }
}

@media (min-width: 721px) {
  .fc-invoice-entry-table th:last-child,
  .fc-invoice-entry-table td:last-child {
    width: 104px;
    text-align: center;
  }
}

/* ========== Scan workflow (premium upload) ========== */
.fc-scan-workspace {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
  max-width: 100%;
}

.fc-scan-hero {
  border-radius: 18px;
  border: 1px solid var(--fc-border);
  background: linear-gradient(155deg, #ffffff 0%, #f8fafc 55%, #f1f5f9 100%);
  padding: 22px 22px 24px;
  box-shadow: var(--fc-shadow-soft);
}

.fc-scan-hero-title {
  margin: 0 0 8px;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--fc-title);
  line-height: 1.2;
}

.fc-scan-hero-lead {
  margin: 0 0 18px;
  font-size: 14px;
  color: var(--fc-muted);
  line-height: 1.55;
  max-width: min(56ch, 100%);
}

.fc-scan-dropzone-pro {
  border: 2px dashed var(--fc-border-strong);
  border-radius: 18px;
  padding: 28px 20px;
  text-align: center;
  background: var(--fc-surface);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.fc-scan-dropzone-pro.fc-dropzone-active {
  border-color: #6366f1;
  background: #eef2ff;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
}

.fc-scan-dropzone-pro .fc-scan-drop-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: #fff;
  font-size: 26px;
  font-weight: 700;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 28px rgba(99, 102, 241, 0.28);
}

.fc-scan-dropzone-pro strong {
  display: block;
  font-size: 17px;
  color: var(--fc-title);
  margin-bottom: 6px;
}

.fc-scan-dropzone-pro > span {
  display: block;
  font-size: 13px;
  color: var(--fc-muted);
  margin-bottom: 18px;
}

.fc-scan-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
}

.fc-scan-cta-row .fc-btn {
  min-height: 48px;
  padding-left: 22px;
  padding-right: 22px;
  font-size: 15px;
}

.fc-scan-meta-toggle {
  margin-top: 18px;
  display: flex;
  justify-content: center;
}

.fc-scan-meta-toggle summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: #4f46e5;
  list-style: none;
}

.fc-scan-meta-toggle summary::-webkit-details-marker {
  display: none;
}

.fc-scan-meta-panel {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--fc-border);
}

.fc-scan-video-hint {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #f5f3ff;
  border: 1px solid #ddd6fe;
  font-size: 13px;
  color: #5b21b6;
  line-height: 1.5;
}

.fc-scan-video-hint a {
  color: #4c1d95;
  font-weight: 700;
  text-decoration: underline;
}

.fc-scan-list-card .fc-table-scroller {
  border-radius: 14px;
  border: 1px solid var(--fc-border);
  background: var(--fc-surface);
}

@media (max-width: 760px) {
  .fc-scan-hero {
    padding: 20px 16px;
  }

  .fc-scan-cta-row {
    flex-direction: column;
    width: 100%;
  }

  .fc-scan-cta-row .fc-btn {
    width: 100%;
    justify-content: center;
  }
}

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

.fc-scan-dropzone-pro--solo {
  position: relative;
  min-height: 176px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Teksti dhe ikona mbeten të dukshëm; kliket kalojnë te shtresa e file input */
.fc-scan-dropzone-pro--solo > .fc-scan-drop-icon,
.fc-scan-dropzone-pro--solo > strong,
.fc-scan-dropzone-pro--solo > span {
  position: relative;
  z-index: 0;
  pointer-events: none;
}

.fc-scan-drop-hit {
  position: absolute;
  inset: 0;
  z-index: 1;
  cursor: pointer;
  display: block;
  border-radius: 16px;
}

.fc-scan-drop-hit .fc-upload-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  font-size: 0;
}

.fc-scan-staging {
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--fc-border);
  background: #fff;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.fc-scan-staging-name {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--fc-title);
  line-height: 1.45;
  word-break: break-word;
}

.fc-scan-staging-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 10px;
  align-items: stretch;
}

.fc-scan-staging-actions .fc-btn {
  min-height: 44px;
  justify-content: center;
}

.fc-scan-del-form {
  display: none;
}

.fc-scan-sheet-wrap {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-radius: 14px;
  border: 1px solid var(--fc-border);
  overflow: hidden;
  background: var(--fc-surface);
  max-width: 100%;
}

/* Scroll horizontal në ekrane të mesme — grid i gjerë mbetet i rreshtuar */
.fc-scan-list-card .fc-scan-sheet-wrap {
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
}

.fc-scan-sheet-head {
  display: none;
}

@media (min-width: 1180px) {
  .fc-scan-sheet-head {
    display: grid;
    grid-template-columns: var(--fc-scan-sheet-cols);
    column-gap: var(--fc-scan-sheet-gap-col);
    row-gap: var(--fc-scan-sheet-gap-row);
    padding: var(--fc-scan-sheet-pad-y) var(--fc-scan-sheet-pad-x);
    align-items: center;
    width: 100%;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #64748b;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid var(--fc-border);
  }

  .fc-scan-sheet-head span {
    display: block;
    line-height: 1.3;
    padding: 2px 0;
  }

  .fc-scan-sheet-head span:nth-child(6),
  .fc-scan-sheet-head span:nth-child(9) {
    text-align: start;
  }
}

.fc-scan-sheet-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 16px 14px;
  border-bottom: 1px solid var(--fc-border);
}

@media (min-width: 1180px) {
  .fc-scan-sheet-row {
    grid-template-columns: var(--fc-scan-sheet-cols);
    column-gap: var(--fc-scan-sheet-gap-col);
    row-gap: var(--fc-scan-sheet-gap-row);
    padding: var(--fc-scan-sheet-pad-y) var(--fc-scan-sheet-pad-x);
    align-items: center;
    width: 100%;
  }
}

.fc-scan-sheet-row:last-of-type {
  border-bottom: none;
}

.fc-scan-cell {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  justify-content: center;
}

.fc-scan-cell-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
}

@media (min-width: 1180px) {
  .fc-scan-cell-label {
    display: none;
  }
}

.fc-scan-cell--muted {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  line-height: 1.35;
  min-height: var(--fc-scan-input-h);
  justify-content: center;
  padding-top: 0;
}

.fc-input--sheet,
.fc-textarea--sheet,
.fc-scan-sheet-row select.fc-input--sheet {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  font-size: 13px;
  line-height: 1.35;
  padding: 0 10px;
  min-height: var(--fc-scan-input-h);
  border-radius: 10px;
  vertical-align: middle;
}

.fc-scan-sheet-row select.fc-input--sheet {
  padding-top: 0;
  padding-bottom: 0;
  cursor: pointer;
}

.fc-textarea--sheet {
  min-height: 52px;
  padding: 8px 10px;
  resize: vertical;
  line-height: 1.4;
}

.fc-scan-sheet-row input.fc-input--sheet[type="number"] {
  text-align: end;
  font-variant-numeric: tabular-nums;
}

.fc-scan-cell--note .fc-textarea--sheet {
  min-height: 56px;
}

.fc-scan-cell--actions {
  gap: 10px;
  align-items: stretch;
}

.fc-scan-filename {
  font-size: 12px;
  font-weight: 600;
  color: var(--fc-title);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
  line-height: 1.35;
  min-height: 20px;
}

.fc-scan-replace-label {
  font-size: 11px;
  font-weight: 700;
  color: #4f46e5;
  letter-spacing: 0.02em;
  cursor: pointer;
  margin-top: 2px;
}

.fc-scan-replace-input {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  padding: 6px 8px;
  min-height: 36px;
}

.fc-scan-row-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
  align-items: center;
}

.fc-scan-row-btns .fc-btn {
  flex: 1 1 auto;
  min-width: 0;
  justify-content: center;
}

@media (min-width: 1180px) {
  .fc-scan-row-btns {
    flex-wrap: nowrap;
    margin-top: 0;
  }

  .fc-scan-row-btns .fc-btn {
    flex: 0 1 auto;
  }
}

/* Kartë lista: header me toolbar të rreshtuar */
.fc-scan-list-card > .fc-card-header {
  align-items: center;
}

.fc-scan-list-card > .fc-card-header .fc-toolbar-actions {
  flex-shrink: 0;
  align-self: center;
}

.fc-modal--scan {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.fc-modal--scan[hidden] {
  display: none !important;
}

.fc-modal--scan .fc-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  cursor: pointer;
}

.fc-modal--scan .fc-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: min(88vh, 900px);
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.fc-modal--scan .fc-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--fc-border);
}

.fc-modal--scan .fc-modal__head h3 {
  margin: 0;
  font-size: 17px;
}

.fc-modal--scan .fc-modal__x {
  border: none;
  background: transparent;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  color: var(--fc-muted);
}

.fc-scan-preview-body {
  padding: 12px;
  overflow: auto;
  max-height: min(72vh, 760px);
  background: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fc-scan-preview-img {
  max-width: 100%;
  max-height: min(68vh, 720px);
  object-fit: contain;
}

.fc-scan-preview-iframe {
  width: 100%;
  min-height: min(68vh, 720px);
  border: none;
  background: #fff;
}

.fc-portal-busy {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(4px);
}

.fc-portal-busy[hidden] {
  display: none !important;
}

.fc-portal-busy__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 32px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--fc-border);
  box-shadow: var(--fc-shadow-soft);
  font-weight: 600;
  color: var(--fc-title);
}

.fc-portal-busy__spinner {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid #e2e8f0;
  border-top-color: #6366f1;
  animation: fc-spin 0.75s linear infinite;
}

@keyframes fc-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Historia Z mbi librin e shitjeve */
.fc-z-history-card {
  margin-bottom: 18px;
}

.fc-z-history-lead,
.fc-z-history-latest {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--fc-muted);
  max-width: 72ch;
}

.fc-z-history-latest {
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #14532d;
  max-width: none;
}

.fc-z-history-latest--empty {
  background: #f8fafc;
  border-color: var(--fc-border);
  color: var(--fc-muted);
}

.fc-z-history-latest-sep {
  opacity: 0.45;
  padding: 0 4px;
}

.fc-z-history-scroller {
  max-height: min(320px, 42vh);
}

.fc-z-history-table td,
.fc-z-history-table th {
  font-size: 13px;
  padding: 8px 12px;
}

.fc-z-history-muted {
  color: var(--fc-muted);
  font-size: 12px;
  white-space: nowrap;
}

.fc-empty--compact {
  padding: 12px 14px;
  margin: 0;
}

body.fc-design-pro .fc-z-history-latest {
  border-radius: 12px;
}

/* Libri i shitjeve / blerjeve: më kompakt, më pak scroll horizontal */
body[data-fc-view="sales-book"] .fc-book-table thead th,
body[data-fc-view="sales-book"] .fc-book-table tbody td,
body[data-fc-view="purchase-book"] .fc-book-table thead th,
body[data-fc-view="purchase-book"] .fc-book-table tbody td {
  font-size: 11px;
  padding: 5px 6px;
  white-space: nowrap;
}

body[data-fc-view="sales-book"] .fc-book-input,
body[data-fc-view="purchase-book"] .fc-book-input {
  font-size: 11px;
  padding: 4px 6px;
  min-width: 52px;
}

body[data-fc-view="sales-book"] .fc-table-scroller,
body[data-fc-view="purchase-book"] .fc-table-scroller {
  max-height: min(70vh, 720px);
}

/* ========== Fincoreks «Pro» v2 — sistem i plotë vizual (body.fc-design-pro) ========== */
body.fc-design-pro {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: #0f172a;
  letter-spacing: -0.015em;
  background-color: #e4e9f0;
  background-image:
    radial-gradient(ellipse 120% 70% at 50% -12%, rgba(99, 102, 241, 0.11), transparent 52%),
    radial-gradient(ellipse 60% 45% at 100% 20%, rgba(56, 189, 248, 0.07), transparent 50%),
    linear-gradient(168deg, #eef1f7 0%, #e6eaf2 45%, #dde3ee 100%);
  min-height: 100vh;
  min-height: 100dvh;
}

body.fc-design-pro .fc-shell {
  grid-template-columns: 260px minmax(0, 1fr);
  background: transparent;
}

body.fc-design-pro .fc-sidebar {
  background: linear-gradient(175deg, #020617 0%, #0f172a 42%, #1e293b 100%);
  padding: calc(16px + var(--fc-safe-top)) 14px calc(18px + var(--fc-safe-bottom));
  box-shadow:
    4px 0 32px rgba(2, 6, 23, 0.45),
    inset -1px 0 0 rgba(255, 255, 255, 0.04);
}

body.fc-design-pro .fc-brand {
  padding: 6px 8px 16px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body.fc-design-pro .fc-brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  font-size: 19px;
  background: linear-gradient(145deg, #22d3ee 0%, #6366f1 48%, #8b5cf6 100%);
  color: #fff;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 12px 28px rgba(99, 102, 241, 0.45);
}

body.fc-design-pro .fc-brand h1 {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: #f8fafc;
}

body.fc-design-pro .fc-brand p {
  font-size: 11px;
  font-weight: 500;
  color: #94a3b8;
}

body.fc-design-pro .fc-nav-title {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  padding: 12px 12px 8px;
  color: #64748b;
}

body.fc-design-pro .fc-nav-link,
body.fc-design-pro .fc-nav-link-static {
  min-height: 40px;
  padding: 9px 12px 9px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

body.fc-design-pro .fc-nav-link:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

body.fc-design-pro .fc-nav-link.active {
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.22), rgba(99, 102, 241, 0.06));
  color: #fff;
  box-shadow:
    inset 3px 0 0 #818cf8,
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

body.fc-design-pro .fc-nav-link.active::before {
  background: linear-gradient(180deg, #38bdf8, #a78bfa);
  box-shadow: 0 0 10px rgba(129, 140, 248, 0.65);
}

body.fc-design-pro .fc-nav-link-static {
  color: rgba(226, 232, 240, 0.55);
}

body.fc-design-pro .fc-main {
  background: transparent;
  min-width: 0;
}

body.fc-design-pro .fc-shell.fc-shell--light .fc-main {
  background: transparent;
}

body.fc-design-pro .fc-topbar {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset;
  min-height: 68px;
  padding: 12px 22px 12px 18px;
}

body.fc-design-pro .fc-topbar-copy h2 {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: #0f172a;
}

body.fc-design-pro .fc-eyebrow {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #64748b;
  text-transform: uppercase;
}

body.fc-design-pro .fc-chip {
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: rgba(248, 250, 252, 0.92);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

body.fc-design-pro .fc-chip-success {
  background: rgba(236, 253, 245, 0.95);
  border-color: #6ee7b7;
  color: #047857;
}

body.fc-design-pro .fc-chip-warning {
  background: rgba(255, 251, 235, 0.95);
  border-color: #fcd34d;
  color: #b45309;
}

body.fc-design-pro .fc-page {
  padding: 0 22px 36px;
  max-width: 1680px;
  margin: 0 auto;
}

body.fc-design-pro .fc-notice {
  border-radius: 14px;
  border: 1px solid #7dd3fc;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  color: #0369a1;
  font-weight: 700;
  font-size: 13px;
  padding: 14px 18px;
  margin-bottom: 18px;
  box-shadow: 0 4px 16px rgba(14, 165, 233, 0.08);
}

body.fc-design-pro .fc-workspace-header {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 18px;
  padding: 20px 22px;
  margin-bottom: 18px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.75) inset,
    0 8px 28px rgba(15, 23, 42, 0.06);
  align-items: center;
  gap: 18px;
}

body.fc-design-pro .fc-workspace-copy h3 {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.035em;
  margin: 0 0 8px;
  color: #0f172a;
}

body.fc-design-pro .fc-workspace-copy p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: #64748b;
  max-width: 58ch;
}

body.fc-design-pro .fc-btn {
  border-radius: 12px;
  font-weight: 700;
  font-size: 13px;
  padding: 10px 18px;
  transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease, background 0.14s ease;
}

body.fc-design-pro .fc-btn-primary {
  background: linear-gradient(145deg, #6366f1 0%, #4f46e5 45%, #4338ca 100%);
  border: none;
  color: #fff;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.15) inset,
    0 8px 20px rgba(79, 70, 229, 0.32);
}

body.fc-design-pro .fc-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.18) inset,
    0 12px 28px rgba(79, 70, 229, 0.4);
}

body.fc-design-pro .fc-btn-soft {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #e2e8f0;
  color: #334155;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

body.fc-design-pro .fc-btn-soft:hover {
  border-color: #c7d2fe;
  background: #fff;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
}

body.fc-design-pro .fc-page-toolbar-top,
body.fc-design-pro .fc-dashboard-toolbar {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 16px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}

/* Forma e kërkimit brenda toolbar: një kuti, jo kapsulë brenda kapsule */
body.fc-design-pro .fc-page-toolbar-top .fc-page-search.fc-page-search--hero {
  border: none;
  box-shadow: none;
  background: transparent;
  padding: 0;
  margin: 0;
}

body.fc-design-pro .fc-page-toolbar-top .fc-page-search.fc-page-search--hero .fc-search {
  background: rgba(248, 250, 252, 0.95);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

/* Toolbar search: mos e kthe në kolonë të lartë (760px) — aty “kapsula” thyhet */
@media (max-width: 760px) {
  .fc-page-toolbar-top .fc-page-search.fc-page-search--hero {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .fc-page-toolbar-top .fc-page-search.fc-page-search--hero .fc-search-label {
    flex: 0 0 100%;
    width: 100%;
  }

  .fc-page-toolbar-top .fc-page-search.fc-page-search--hero .fc-search {
    flex: 1 1 12rem;
    min-width: 0;
    max-width: 100%;
    min-height: 44px;
  }

  .fc-page-toolbar-top .fc-page-search.fc-page-search--hero .fc-btn {
    flex: 0 0 auto;
  }
}

body.fc-design-pro .fc-input,
body.fc-design-pro .fc-search,
body.fc-design-pro .fc-textarea {
  border-radius: 12px;
  border: 1px solid rgba(226, 232, 240, 0.98);
  background: rgba(255, 255, 255, 0.96);
  font-size: 13px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

body.fc-design-pro .fc-input:focus,
body.fc-design-pro .fc-search:focus,
body.fc-design-pro .fc-textarea:focus {
  border-color: #a5b4fc;
  box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.22);
  outline: none;
}

body.fc-design-pro .fc-view-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 20px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.75) inset,
    0 12px 40px rgba(15, 23, 42, 0.07);
  padding: 20px 22px 24px;
}

body.fc-design-pro .fc-view-card--dashboard {
  padding: 18px 18px 22px;
}

body.fc-design-pro .fc-card-header h4 {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
}

body.fc-design-pro .fc-card-header p {
  font-size: 12px;
  color: #64748b;
  line-height: 1.5;
}

body.fc-design-pro .fc-table-scroller {
  border-radius: 14px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: rgba(248, 250, 252, 0.65);
  max-width: 100%;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
}

body.fc-design-pro .fc-data-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: linear-gradient(180deg, #f1f5f9 0%, #e8eef5 100%);
  color: #475569;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 2px solid #e2e8f0;
}

body.fc-design-pro .fc-data-table tbody td {
  font-size: 13px;
  padding: 11px 14px;
  border-bottom-color: rgba(241, 245, 249, 0.9);
}

body.fc-design-pro .fc-book-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: linear-gradient(180deg, #eef2ff 0%, #e0e7ff 100%);
  color: #3730a3;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

body.fc-design-pro .fc-book-table tbody td {
  background: rgba(255, 255, 255, 0.92);
  vertical-align: middle;
}

body.fc-design-pro .fc-book-input {
  border-radius: 10px;
  border: 1px solid rgba(226, 232, 240, 0.98);
}

body.fc-design-pro .fc-saas-hero {
  background: linear-gradient(135deg, rgba(238, 242, 255, 0.95) 0%, rgba(224, 242, 254, 0.92) 100%);
  border: 1px solid rgba(199, 210, 254, 0.95);
  border-radius: 18px;
  padding: 20px 22px;
  box-shadow: 0 8px 28px rgba(99, 102, 241, 0.08);
}

body.fc-design-pro .fc-saas-kpi-card {
  border-radius: 16px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
}

body.fc-design-pro .fc-saas-kpi-card--z {
  border-color: #c7d2fe;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%);
}

body.fc-design-pro .fc-plot-card,
body.fc-design-pro .fc-action-card {
  border-radius: 18px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}

body.fc-design-pro .fc-plot-board {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(248, 250, 252, 0.85) 100%);
}

body.fc-design-pro .fc-filter-tab {
  border-radius: 12px;
  font-weight: 700;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

body.fc-design-pro .fc-filter-tab.active {
  background: linear-gradient(145deg, #6366f1 0%, #4f46e5 100%);
  box-shadow: 0 6px 18px rgba(79, 70, 229, 0.28);
  color: #fff;
}

body.fc-design-pro .fc-burger {
  border-radius: 12px;
  border: 1px solid rgba(226, 232, 240, 0.98);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

body.fc-design-pro .fc-form-card {
  border-radius: 18px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
}

body.fc-design-pro .fc-table-card {
  border-radius: 18px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
}

body.fc-design-pro .fc-tax-invoice-form-card .fc-card-header {
  flex-wrap: wrap;
  gap: 10px;
}

/* Skano dokumente — përputhje e plotë me temën Pro (rreshtim + hije) */
body.fc-design-pro[data-fc-view="scans"] .fc-scan-workspace {
  gap: 18px;
}

body.fc-design-pro[data-fc-view="scans"] .fc-scan-hero {
  border-radius: 20px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  padding: 22px 22px 24px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 10px 36px rgba(15, 23, 42, 0.07);
  background: linear-gradient(158deg, rgba(255, 255, 255, 0.94) 0%, rgba(248, 250, 252, 0.88) 55%, rgba(241, 245, 249, 0.85) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

body.fc-design-pro[data-fc-view="scans"] .fc-scan-hero-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

body.fc-design-pro[data-fc-view="scans"] .fc-scan-hero-lead {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 16px;
  max-width: min(60ch, 100%);
}

body.fc-design-pro[data-fc-view="scans"] .fc-scan-dropzone-pro {
  border-color: #c7d2fe;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.06);
}

body.fc-design-pro[data-fc-view="scans"] .fc-scan-staging {
  border-color: rgba(226, 232, 240, 0.95);
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.85);
}

body.fc-design-pro[data-fc-view="scans"] .fc-scan-sheet-wrap {
  border-radius: 14px;
  border-color: rgba(226, 232, 240, 0.95);
}

body.fc-design-pro[data-fc-view="scans"] .fc-scan-sheet-head {
  background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%);
  color: #475569;
  border-bottom-color: #e2e8f0;
}

body.fc-design-pro[data-fc-view="scans"] .fc-input--sheet,
body.fc-design-pro[data-fc-view="scans"] .fc-textarea--sheet,
body.fc-design-pro[data-fc-view="scans"] .fc-scan-sheet-row select.fc-input--sheet {
  border-color: #e2e8f0;
  background: #fff;
}

body.fc-design-pro[data-fc-view="scans"] .fc-input--sheet:focus,
body.fc-design-pro[data-fc-view="scans"] .fc-textarea--sheet:focus,
body.fc-design-pro[data-fc-view="scans"] .fc-scan-sheet-row select.fc-input--sheet:focus {
  border-color: #818cf8;
  box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.2);
  outline: none;
}

body.fc-design-pro[data-fc-view="scans"] .fc-modal--scan .fc-modal__dialog {
  border-radius: 20px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 28px 72px rgba(15, 23, 42, 0.2);
}

body.fc-design-pro[data-fc-view="scans"] .fc-portal-busy {
  background: rgba(226, 232, 240, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

body.fc-design-pro[data-fc-view="scans"] .fc-portal-busy__inner {
  border-radius: 16px;
  border-color: rgba(226, 232, 240, 0.95);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 20px 56px rgba(15, 23, 42, 0.14);
}

@media (max-width: 1024px) {
  body.fc-design-pro .fc-shell {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ——— Dashboard: kërkim global + KPI neto / shpenzime (20260410) ——— */
.fc-dashboard-global-search {
  margin: 0 0 16px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--fc-border);
  background: var(--fc-surface);
  box-shadow: var(--fc-shadow-soft);
}

.fc-dashboard-search-label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fc-muted);
  margin-bottom: 8px;
}

.fc-dashboard-search-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.fc-dashboard-search-input {
  flex: 1 1 220px;
  min-width: 0;
}

.fc-dashboard-search-hits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
  font-size: 13px;
  color: var(--fc-muted);
}

.fc-dashboard-net-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 16px;
}

.fc-net-card {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--fc-border);
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: var(--fc-shadow-soft);
}

.fc-net-card--profit {
  border-color: rgba(34, 197, 94, 0.35);
}

.fc-net-card--expense {
  border-color: rgba(245, 158, 11, 0.4);
}

.fc-net-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--fc-muted);
}

.fc-net-value {
  display: block;
  margin: 8px 0 4px;
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--fc-title);
}

.fc-net-meta {
  font-size: 12px;
  color: var(--fc-muted);
  line-height: 1.4;
}

@media (max-width: 720px) {
  .fc-dashboard-net-row {
    grid-template-columns: 1fr;
  }
}

/* ——— 20260411-pro: polish portal (motion e lehtë, fokus, thellësi) ——— */
@media (prefers-reduced-motion: no-preference) {
  .fc-brand-mark {
    animation: fcBrandPulse 7s ease-in-out infinite;
  }

  @keyframes fcBrandPulse {
    0%,
    100% {
      box-shadow: 0 10px 24px rgba(61, 200, 238, 0.34);
      transform: translateY(0);
    }
    50% {
      box-shadow: 0 14px 32px rgba(87, 214, 170, 0.38);
      transform: translateY(-1px);
    }
  }
}

.fc-nav-link:focus-visible,
.fc-btn:focus-visible,
.fc-filter-tab:focus-visible {
  outline: 2px solid var(--fc-brand-accent);
  outline-offset: 2px;
}
