:root {
  --ink: #13212c;
  --muted: #657789;
  --line: #d9e3ea;
  --paper: #fffdf8;
  --panel: #ffffff;
  --soft: #f4f7f8;
  --night: #142230;
  --teal: #0f766e;
  --teal-2: #12a389;
  --coral: #d35d3c;
  --amber: #f2a93b;
  --blue: #3975d7;
  --rose: #bf3f63;
  --green: #1f9a66;
  --shadow: 0 22px 60px rgba(19, 33, 44, 0.12);
}

/* Kurumsal 2026 son tasarım katmanı */
:root {
  --cb-bg: #f3f7fb;
  --cb-surface: #ffffff;
  --cb-surface-soft: #f8fbfe;
  --cb-border: #dfe8f1;
  --cb-border-strong: #c8d7e4;
  --cb-text: #0f1e32;
  --cb-muted: #607389;
  --cb-teal: #078b7f;
  --cb-teal-2: #0fa391;
  --cb-blue: #2f73da;
  --cb-amber: #f5a524;
  --cb-red: #d63a60;
  --cb-shadow: 0 20px 54px rgba(15, 30, 50, 0.08);
  --cb-shadow-soft: 0 12px 30px rgba(15, 30, 50, 0.06);
}

html,
body {
  color: var(--cb-text);
  background:
    radial-gradient(circle at 8% 8%, rgba(7, 139, 127, 0.10), transparent 30%),
    radial-gradient(circle at 88% 0%, rgba(47, 115, 218, 0.08), transparent 28%),
    linear-gradient(180deg, #f8fbfd 0%, #eef5f9 52%, #f7f9fb 100%);
}

.app-shell,
.customer-desktop-shell {
  grid-template-columns: 92px minmax(0, 1fr) !important;
  background: transparent !important;
}

.sidebar,
.customer-desktop-shell .sidebar {
  width: 92px !important;
  padding: 18px 12px !important;
  align-items: center !important;
  background: rgba(255, 255, 255, 0.94) !important;
  border-right: 1px solid var(--cb-border) !important;
  box-shadow: 12px 0 34px rgba(15, 30, 50, 0.05) !important;
  color: var(--cb-text) !important;
}

.brand,
.customer-desktop-shell .brand {
  width: 64px !important;
  min-height: 64px !important;
  padding: 0 !important;
  justify-content: center !important;
  border: 0 !important;
  border-radius: 18px !important;
  background: transparent !important;
  box-shadow: none !important;
}

.brand > div:not(.brand-mark) {
  display: none !important;
}

.brand-mark {
  width: 46px !important;
  height: 46px !important;
  border-radius: 15px !important;
  background: linear-gradient(135deg, var(--cb-teal), #0f5f83) !important;
  color: #fff !important;
  box-shadow: 0 16px 28px rgba(7, 139, 127, 0.22) !important;
}

.nav,
.customer-desktop-shell .nav {
  width: 100% !important;
  gap: 14px !important;
  padding: 6px 0 !important;
  align-items: center !important;
}

.nav-item,
.customer-desktop-shell .nav-item {
  width: 56px !important;
  min-height: 56px !important;
  grid-template-columns: 1fr !important;
  padding: 0 !important;
  justify-items: center !important;
  border: 1px solid transparent !important;
  border-radius: 15px !important;
  background: transparent !important;
  color: #53667b !important;
  box-shadow: none !important;
}

.nav-item span:not(.nav-icon),
.customer-desktop-shell .nav-item span:not(.nav-icon) {
  display: none !important;
}

.nav-icon,
.customer-desktop-shell .nav-icon {
  width: 56px !important;
  height: 56px !important;
  border-radius: 15px !important;
  background: transparent !important;
  color: currentColor !important;
}

.nav-icon svg {
  width: 25px !important;
  height: 25px !important;
}

.nav-item:hover,
.nav-item.active,
.customer-desktop-shell .nav-item:hover,
.customer-desktop-shell .nav-item.active {
  color: #fff !important;
  background: linear-gradient(135deg, var(--cb-teal), var(--cb-teal-2)) !important;
  border-color: rgba(7, 139, 127, 0.22) !important;
  box-shadow: 0 18px 32px rgba(7, 139, 127, 0.25) !important;
}

.side-card,
.customer-desktop-shell .side-card {
  width: 56px !important;
  min-height: 56px !important;
  margin-top: auto !important;
  padding: 0 !important;
  justify-content: center !important;
  border: 1px solid var(--cb-border) !important;
  border-radius: 16px !important;
  background: #fff !important;
  box-shadow: var(--cb-shadow-soft) !important;
}

.side-card > div {
  display: none !important;
}

.main,
.customer-desktop-shell .main {
  min-height: 100vh !important;
  padding: 0 !important;
  background: transparent !important;
}

.topbar,
.customer-desktop-shell .topbar {
  position: sticky !important;
  top: 0 !important;
  z-index: 40 !important;
  min-height: 72px !important;
  margin: 0 !important;
  padding: 0 34px !important;
  color: var(--cb-text) !important;
  background: rgba(255, 255, 255, 0.92) !important;
  border-bottom: 1px solid var(--cb-border) !important;
  backdrop-filter: blur(18px) !important;
}

.customer-desktop-shell .topbar > div:first-child {
  position: relative !important;
  gap: 18px !important;
}

.customer-desktop-shell .topbar > div:first-child::before {
  content: "ÇETİN BİLİŞİM" !important;
  min-width: 164px !important;
  height: 38px !important;
  display: inline-flex !important;
  align-items: center !important;
  padding-left: 38px !important;
  color: var(--cb-text) !important;
  font-size: 14px !important;
  font-weight: 950 !important;
  letter-spacing: 0 !important;
}

.customer-desktop-shell .topbar > div:first-child::after {
  content: "" !important;
  position: absolute !important;
  left: 2px !important;
  width: 24px !important;
  height: 24px !important;
  border-radius: 7px !important;
  background:
    linear-gradient(135deg, #0f5f83 0 46%, transparent 46%),
    linear-gradient(45deg, var(--cb-teal) 0 52%, #12b1a2 52%) !important;
  transform: rotate(-45deg) !important;
}

#pageTitle {
  color: var(--cb-text) !important;
  font-size: 17px !important;
  font-weight: 950 !important;
}

#topEyebrow {
  color: var(--cb-muted) !important;
}

.top-actions {
  margin-left: auto !important;
}

.view.active-view {
  width: min(100%, 1780px) !important;
  margin: 0 auto !important;
  padding: 32px !important;
}

button,
input,
select,
textarea,
.search-input {
  letter-spacing: 0 !important;
}

input,
select,
textarea,
.search-input {
  border-color: var(--cb-border-strong) !important;
  border-radius: 12px !important;
  background: #fff !important;
  color: var(--cb-text) !important;
}

input:focus,
select:focus,
textarea:focus,
.search-input:focus {
  border-color: var(--cb-teal) !important;
  box-shadow: 0 0 0 4px rgba(7, 139, 127, 0.12) !important;
}

.primary-btn {
  border: 0 !important;
  border-radius: 13px !important;
  background: linear-gradient(135deg, var(--cb-teal), var(--cb-teal-2)) !important;
  color: #fff !important;
  box-shadow: 0 18px 34px rgba(7, 139, 127, 0.25) !important;
}

.soft-btn,
.icon-btn,
.row-action {
  border: 1px solid var(--cb-border) !important;
  border-radius: 12px !important;
  background: #fff !important;
  color: var(--cb-text) !important;
  box-shadow: var(--cb-shadow-soft) !important;
}

.panel,
.metric-card,
.sales-card,
.module-card,
.company-card,
.prepared-card,
.template-card,
.stock-pick-card,
.search-result-card,
.result-box,
.table-wrap {
  border-color: var(--cb-border) !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: var(--cb-shadow-soft) !important;
}

.dia-desktop {
  min-height: calc(100vh - 72px) !important;
  padding: 42px 34px 330px !important;
  background:
    radial-gradient(circle at 10% 10%, rgba(7, 139, 127, 0.08), transparent 30%),
    var(--cb-bg) !important;
}

.dia-search-row {
  width: min(730px, calc(100% - 28px)) !important;
  margin: 0 auto 44px !important;
  align-items: center !important;
}

.dia-search-field input {
  height: 50px !important;
  border-color: #bdd1e2 !important;
  font-size: 17px !important;
  box-shadow: var(--cb-shadow-soft) !important;
}

.dia-tool-button {
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.82) !important;
  box-shadow: none !important;
}

.dia-module-grid {
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)) !important;
  gap: 34px 26px !important;
  padding: 0 18px 36px !important;
}

.desktop-module-icon {
  width: 78px !important;
  height: 78px !important;
  border-color: var(--cb-border) !important;
  border-radius: 18px !important;
  background: linear-gradient(180deg, #fff, #f8fbfd) !important;
  box-shadow: 0 14px 28px rgba(15, 30, 50, 0.10) !important;
}

.desktop-module:hover .desktop-module-icon,
.desktop-module.selected .desktop-module-icon {
  transform: translateY(-2px) !important;
  outline: 0 !important;
  border-color: rgba(7, 139, 127, 0.36) !important;
  box-shadow: 0 20px 38px rgba(7, 139, 127, 0.15) !important;
}

.desktop-module strong {
  color: var(--cb-text) !important;
  font-size: 15px !important;
}

.dia-favorite-dock {
  bottom: max(26px, calc(16px + var(--pane-offset, 0px))) !important;
}

.dia-pane {
  border: 1px solid var(--cb-border-strong) !important;
  border-radius: 16px !important;
  background: rgba(255, 255, 255, 0.9) !important;
  box-shadow: var(--cb-shadow) !important;
}

.dia-pane header {
  color: #fff !important;
  background: linear-gradient(135deg, #315f91, #244564) !important;
  border-bottom: 0 !important;
}

.dia-statusbar {
  border-top: 1px solid var(--cb-border) !important;
  background: rgba(255, 255, 255, 0.96) !important;
  color: var(--cb-text) !important;
  backdrop-filter: blur(10px) !important;
}

.incoming-studio {
  width: min(100%, 1720px) !important;
  gap: 22px !important;
}

.incoming-studio-top {
  min-height: 158px !important;
  grid-template-columns: minmax(470px, 1fr) minmax(680px, 0.92fr) !important;
  gap: 24px !important;
  padding: 30px 28px !important;
  border: 1px solid var(--cb-border) !important;
  border-top: 5px solid var(--cb-teal) !important;
  border-radius: 22px !important;
  background: linear-gradient(135deg, #fff, #f8fbfd) !important;
  box-shadow: var(--cb-shadow) !important;
}

.incoming-studio-title > div {
  position: relative !important;
  padding-left: 72px !important;
}

.incoming-studio-title > div::before {
  content: "" !important;
  width: 52px !important;
  height: 52px !important;
  position: absolute !important;
  left: 0 !important;
  top: 5px !important;
  border: 1px solid #dbe8f1 !important;
  border-radius: 16px !important;
  background: linear-gradient(135deg, rgba(7, 139, 127, 0.13), rgba(47, 115, 218, 0.08)), #fff !important;
  box-shadow: 0 12px 25px rgba(15, 30, 50, 0.07) !important;
}

.incoming-studio-title > div::after {
  content: "" !important;
  width: 25px !important;
  height: 25px !important;
  position: absolute !important;
  left: 14px !important;
  top: 19px !important;
  border: 2px solid var(--cb-teal) !important;
  border-radius: 4px !important;
  box-shadow: inset 0 -7px 0 rgba(7, 139, 127, 0.15) !important;
}

.incoming-studio-title h2 {
  font-size: clamp(27px, 1.75vw, 36px) !important;
  letter-spacing: 0 !important;
}

.incoming-studio-title p:last-child {
  margin-top: 12px !important;
  max-width: 760px !important;
  color: var(--cb-muted) !important;
  font-weight: 750 !important;
  line-height: 1.55 !important;
}

.incoming-studio-metrics {
  grid-template-columns: repeat(4, minmax(145px, 1fr)) !important;
  gap: 14px !important;
}

.incoming-metric-card {
  min-height: 116px !important;
  grid-template-columns: 52px minmax(0, 1fr) !important;
  gap: 14px !important;
  padding: 18px !important;
  border-radius: 18px !important;
  background: #fff !important;
  box-shadow: var(--cb-shadow-soft) !important;
}

.incoming-metric-icon {
  width: 52px !important;
  height: 52px !important;
  border-radius: 17px !important;
}

.incoming-studio-metrics strong {
  font-size: clamp(24px, 1.45vw, 32px) !important;
}

.incoming-command-panel {
  grid-template-columns: 170px 170px 180px minmax(330px, 1fr) 310px !important;
  gap: 16px !important;
  padding: 26px !important;
  border: 1px solid var(--cb-border) !important;
  border-top: 5px solid var(--cb-amber) !important;
  border-radius: 22px !important;
  background: #fff !important;
  box-shadow: var(--cb-shadow) !important;
}

.incoming-command-panel .danger-soft {
  grid-column: 1 / span 1 !important;
  width: 100% !important;
}

.incoming-system-note {
  min-height: 62px !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  border: 1px solid #cfe4ff !important;
  border-left: 5px solid var(--cb-blue) !important;
  border-radius: 18px !important;
  background: linear-gradient(90deg, #f4f9ff, #fff) !important;
  box-shadow: var(--cb-shadow-soft) !important;
}

.incoming-board {
  padding: 22px !important;
  border: 1px solid var(--cb-border) !important;
  border-radius: 22px !important;
  background: #fff !important;
  box-shadow: var(--cb-shadow) !important;
}

.incoming-board-list {
  border-top: 5px solid var(--cb-blue) !important;
}

.incoming-board-head {
  margin-bottom: 20px !important;
}

.incoming-board-head h3 {
  font-size: 25px !important;
}

.title-icon {
  width: 42px !important;
  height: 42px !important;
  padding: 10px !important;
  border-radius: 15px !important;
  background: linear-gradient(135deg, var(--cb-teal), var(--cb-blue)) !important;
}

.th-icon {
  width: 22px !important;
  height: 22px !important;
  margin-right: 8px !important;
  padding: 4px !important;
  border-radius: 7px !important;
  color: var(--cb-blue) !important;
  background: #eef5ff !important;
  vertical-align: middle !important;
}

.incoming-board-head > span:not(.status-chip) {
  padding: 9px 14px !important;
  color: #2f66b6 !important;
  background: #edf5ff !important;
  border-radius: 999px !important;
  font-weight: 950 !important;
}

.incoming-queue-table {
  max-height: 620px !important;
  border-radius: 18px !important;
}

.incoming-queue-table .invoice-table th,
.compact-history-table .invoice-table th {
  height: 54px !important;
  background: #f5f9fc !important;
  color: #5a6e83 !important;
}

.incoming-queue-table .invoice-table td {
  padding-top: 20px !important;
  padding-bottom: 20px !important;
}

.invoice-table tr:hover td {
  background: #f8fbfd !important;
}

.amount {
  color: var(--cb-red) !important;
}

.status-chip {
  border-radius: 999px !important;
  padding: 9px 13px !important;
  font-weight: 950 !important;
}

.row-action {
  min-height: 42px !important;
  padding: 0 18px !important;
  background: #0f1e32 !important;
  color: #fff !important;
  border-color: #0f1e32 !important;
}

.incoming-modal-window {
  border-radius: 24px !important;
}

.incoming-invoice-hero {
  background:
    radial-gradient(circle at 88% 65%, rgba(10, 163, 146, 0.52), transparent 22%),
    linear-gradient(135deg, #0f2338, #143d59 58%, #0b6271) !important;
}

@media (max-width: 1280px) {
  .incoming-studio-top,
  .incoming-command-panel {
    grid-template-columns: 1fr !important;
  }

  .incoming-studio-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  .app-shell,
  .customer-desktop-shell {
    grid-template-columns: 1fr !important;
  }

  .sidebar,
  .customer-desktop-shell .sidebar {
    position: static !important;
    width: auto !important;
    height: auto !important;
    flex-direction: row !important;
    padding: 10px !important;
    overflow-x: auto !important;
  }

  .nav,
  .customer-desktop-shell .nav {
    display: flex !important;
    width: auto !important;
  }

  .topbar,
  .customer-desktop-shell .topbar {
    padding: 10px 14px !important;
  }

  .view.active-view {
    padding: 16px !important;
  }

  .incoming-studio-metrics {
    grid-template-columns: 1fr !important;
  }
}

/* Final login guard - gerçek dosya sonu */
.customer-program-mode .login-tabs,
.customer-program-mode #adminLoginForm {
  display: none !important;
}

.login-form .remember-row,
.remember-row {
  min-height: auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  padding: 0 !important;
  margin: -4px 0 8px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #1f3448 !important;
  font-size: 15px !important;
  font-weight: 850 !important;
}

.login-form .remember-row::before,
.remember-row::before {
  display: none !important;
}

.login-form .remember-row input[type="checkbox"],
.remember-row input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  flex: 0 0 auto !important;
  margin: 0 !important;
  accent-color: var(--cb-teal, #0a9d8f) !important;
}

.login-form .remember-row span,
.remember-row span {
  color: #1f3448 !important;
  font-size: 15px !important;
  font-weight: 850 !important;
  display: inline-flex !important;
  position: static !important;
  opacity: 1 !important;
  width: auto !important;
  height: auto !important;
}

/* Final corporate UX polish */
.password-field {
  position: relative !important;
}

.password-field input {
  padding-right: 54px !important;
}

.password-toggle {
  position: absolute !important;
  right: 12px !important;
  bottom: 10px !important;
  width: 38px !important;
  height: 38px !important;
  display: grid !important;
  place-items: center !important;
  border: 0 !important;
  border-radius: 13px !important;
  color: #1f3448 !important;
  background: rgba(255, 255, 255, 0.72) !important;
  cursor: pointer !important;
}

.password-toggle svg,
.top-notification-btn svg,
.btn-icon svg {
  width: 20px !important;
  height: 20px !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2.2 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

.password-toggle.is-visible {
  color: #0a9d8f !important;
  background: #e5fbf6 !important;
}

.topbar {
  min-height: 76px !important;
  display: grid !important;
  grid-template-columns: minmax(330px, auto) minmax(180px, 1fr) auto !important;
  align-items: center !important;
  gap: 18px !important;
  padding: 14px 26px !important;
  background: rgba(255, 255, 255, 0.94) !important;
  border-bottom: 1px solid #dce8f0 !important;
  box-shadow: 0 16px 42px rgba(17, 45, 70, 0.08) !important;
  backdrop-filter: blur(16px) !important;
}

.top-brand-block {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  min-width: 0 !important;
}

.top-brand-logo {
  width: 52px !important;
  height: 38px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 12px !important;
  background: #f4f9ff !important;
  box-shadow: inset 0 -3px 0 #ff8a00 !important;
  overflow: hidden !important;
}

.top-brand-logo img {
  width: 42px !important;
  height: auto !important;
  display: block !important;
}

.top-brand-block strong {
  display: block !important;
  color: #102033 !important;
  font-size: 16px !important;
  font-weight: 950 !important;
  letter-spacing: 0 !important;
}

.top-title-block h1 {
  margin: 0 !important;
  color: #102033 !important;
  font-size: 23px !important;
  font-weight: 950 !important;
}

.top-actions {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.top-actions .soft-btn,
.top-actions .icon-btn,
.profile-button {
  min-height: 42px !important;
  border: 1px solid #d6e4ee !important;
  border-radius: 14px !important;
  background: #fff !important;
  color: #102033 !important;
  font-weight: 900 !important;
  box-shadow: 0 10px 24px rgba(17, 45, 70, 0.08) !important;
}

.top-actions .soft-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 0 16px !important;
}

.top-actions .icon-btn {
  width: 44px !important;
  padding: 0 !important;
}

.danger-exit {
  color: #b42318 !important;
}

.top-notification-btn {
  position: relative !important;
  color: #0b7f75 !important;
}

#notificationCount {
  position: absolute !important;
  top: -7px !important;
  right: -7px !important;
  min-width: 20px !important;
  height: 20px !important;
  display: grid !important;
  place-items: center !important;
  padding: 0 6px !important;
  border-radius: 999px !important;
  color: #fff !important;
  background: #e43f5a !important;
  font-size: 11px !important;
  font-weight: 950 !important;
}

#notificationCount.is-empty {
  display: none !important;
}

.profile-button {
  display: inline-flex !important;
  align-items: center !important;
  gap: 9px !important;
  padding: 0 13px 0 7px !important;
  cursor: pointer !important;
}

.profile-avatar {
  width: 32px !important;
  height: 32px !important;
  display: grid !important;
  place-items: center !important;
  flex: 0 0 auto !important;
  overflow: hidden !important;
  border-radius: 50% !important;
  color: #fff !important;
  background: linear-gradient(135deg, #0a9d8f, #3975d7) !important;
  font-size: 13px !important;
  font-weight: 950 !important;
}

.profile-avatar img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.profile-avatar.large {
  width: 54px !important;
  height: 54px !important;
  font-size: 18px !important;
}

.floating-panel {
  position: fixed !important;
  top: 88px !important;
  right: 28px !important;
  z-index: 9000 !important;
  width: min(420px, calc(100vw - 36px)) !important;
  max-height: calc(100vh - 120px) !important;
  overflow: auto !important;
  padding: 18px !important;
  border: 1px solid #d7e5ef !important;
  border-radius: 22px !important;
  background: #fff !important;
  box-shadow: 0 28px 70px rgba(15, 35, 56, 0.22) !important;
}

.floating-panel.is-hidden {
  display: none !important;
}

.floating-panel-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin-bottom: 14px !important;
}

.floating-panel-head strong {
  font-size: 20px !important;
  color: #102033 !important;
}

.panel-close,
.announcement-item button {
  border: 0 !important;
  border-radius: 999px !important;
  color: #102033 !important;
  background: #edf5fb !important;
  font-weight: 950 !important;
  cursor: pointer !important;
}

.panel-close {
  width: 34px !important;
  height: 34px !important;
  font-size: 22px !important;
}

.announcement-form,
.profile-password-form {
  display: grid !important;
  gap: 10px !important;
  margin-bottom: 14px !important;
}

.announcement-form input,
.announcement-form textarea,
.profile-password-form input,
.file-field {
  width: 100% !important;
  border: 1px solid #d7e5ef !important;
  border-radius: 14px !important;
  background: #f9fcfe !important;
  padding: 12px 14px !important;
  color: #102033 !important;
  font-weight: 800 !important;
}

.announcement-list {
  display: grid !important;
  gap: 10px !important;
}

.announcement-item {
  display: grid !important;
  gap: 8px !important;
  padding: 14px !important;
  border: 1px solid #d7e5ef !important;
  border-left: 5px solid #0a9d8f !important;
  border-radius: 16px !important;
  background: linear-gradient(135deg, #f7fbff, #fff) !important;
}

.announcement-item div {
  display: flex !important;
  justify-content: space-between !important;
  gap: 10px !important;
}

.announcement-item p,
.empty-panel {
  margin: 0 !important;
  color: #5b6d80 !important;
  font-weight: 750 !important;
}

.profile-summary {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 12px !important;
  margin-bottom: 14px !important;
  border-radius: 16px !important;
  background: #f4f9ff !important;
}

.profile-summary strong,
.profile-summary span {
  display: block !important;
}

.profile-summary span {
  color: #617389 !important;
  font-weight: 750 !important;
}

.toast {
  position: fixed !important;
  right: 24px !important;
  bottom: 24px !important;
  z-index: 20000 !important;
  max-width: min(520px, calc(100vw - 42px)) !important;
  min-height: 62px !important;
  display: grid !important;
  grid-template-columns: 38px minmax(0, 1fr) 32px !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 14px 16px !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: 18px !important;
  color: #fff !important;
  background: #102033 !important;
  box-shadow: 0 24px 70px rgba(10, 20, 32, 0.36) !important;
  transform: translateY(24px) !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.toast.show {
  transform: translateY(0) !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.toast-icon {
  width: 38px !important;
  height: 38px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 13px !important;
  background: rgba(255, 255, 255, 0.16) !important;
  font-weight: 950 !important;
}

.toast strong {
  font-size: 15px !important;
  line-height: 1.35 !important;
}

.toast button {
  width: 30px !important;
  height: 30px !important;
  border: 0 !important;
  border-radius: 999px !important;
  color: #fff !important;
  background: rgba(255, 255, 255, 0.14) !important;
  cursor: pointer !important;
  font-size: 20px !important;
}

.toast-success {
  background: linear-gradient(135deg, #087f73, #0aa392) !important;
}

.toast-error {
  background: linear-gradient(135deg, #102033, #b42318) !important;
}

.dia-favorite-dock .dia-empty-pane {
  color: transparent !important;
}

.dia-statusbar {
  min-height: 30px !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 0 10px !important;
  background: rgba(255, 255, 255, 0.82) !important;
  border-top: 1px solid #cddde8 !important;
  color: #102033 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
}

.dia-statusbar * {
  flex: 0 0 auto !important;
}

.dia-statusbar em {
  margin-left: auto !important;
  color: #617389 !important;
  font-style: normal !important;
}

@media (max-width: 980px) {
  .topbar {
    grid-template-columns: 1fr !important;
  }
  .top-actions {
    flex-wrap: wrap !important;
  }
}

/* Final login guard: host bazli musteri girisinde admin sekmesi ve formu asla gorunmez. */
.customer-program-mode .login-tabs,
.customer-program-mode #adminLoginForm {
  display: none !important;
}

.login-form .remember-row,
.remember-row {
  min-height: auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  padding: 0 !important;
  margin: -4px 0 8px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #1f3448 !important;
  font-size: 15px !important;
  font-weight: 850 !important;
}

.login-form .remember-row::before,
.remember-row::before {
  display: none !important;
}

.login-form .remember-row input[type="checkbox"],
.remember-row input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  flex: 0 0 auto !important;
  margin: 0 !important;
  accent-color: var(--cb-teal, #0a9d8f) !important;
}

.login-form .remember-row span,
.remember-row span {
  color: #1f3448 !important;
  font-size: 15px !important;
  font-weight: 850 !important;
}

/* Must stay last: remove rejected customer desktop blocks */
.customer-desktop-shell .top-brand-block,
.customer-desktop-shell .topbar > div:first-child::before,
.customer-desktop-shell .topbar > div:first-child::after,
.dia-favorite-dock,
.dia-pane-handle,
.dia-bottom-grid {
  display: none !important;
  content: none !important;
}

/* Must stay last: remove rejected customer desktop blocks */
.customer-desktop-shell .top-brand-block,
.customer-desktop-shell .topbar > div:first-child::before,
.customer-desktop-shell .topbar > div:first-child::after,
.dia-favorite-dock,
.dia-pane-handle,
.dia-bottom-grid {
  display: none !important;
  content: none !important;
}

/* Customer workstation final polish */
.customer-desktop-shell .topbar {
  grid-template-columns: minmax(0, 1fr) auto !important;
  min-height: 72px !important;
  padding: 14px 28px !important;
  background: rgba(255, 255, 255, 0.92) !important;
  border-bottom: 1px solid rgba(198, 213, 226, 0.72) !important;
  box-shadow: 0 14px 32px rgba(15, 31, 50, 0.08) !important;
  backdrop-filter: blur(14px) !important;
}

.customer-desktop-shell .top-brand-block {
  display: none !important;
}

.customer-desktop-shell .topbar > div:first-child::before,
.customer-desktop-shell .topbar > div:first-child::after {
  display: none !important;
  content: none !important;
}

.customer-desktop-shell .top-title-block {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
}

.customer-desktop-shell .top-title-block .eyebrow {
  margin: 0 !important;
  color: #0f766e !important;
  font-size: 11px !important;
  letter-spacing: 0 !important;
  font-weight: 950 !important;
}

.customer-desktop-shell .top-title-block h1 {
  margin: 0 !important;
  color: #0d1b2a !important;
  font-size: 22px !important;
  line-height: 1.1 !important;
  font-weight: 950 !important;
}

.customer-desktop-shell .top-actions {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.top-actions .icon-btn,
.top-actions .small-btn,
.top-actions .profile-button {
  border: 1px solid #d7e3ee !important;
  border-radius: 14px !important;
  background: #fff !important;
  color: #13253a !important;
  box-shadow: 0 10px 24px rgba(15, 31, 50, 0.08) !important;
}

.top-actions .icon-btn:hover,
.top-actions .small-btn:hover,
.top-actions .profile-button:hover {
  transform: translateY(-1px) !important;
  border-color: #0f9b8e !important;
  box-shadow: 0 16px 32px rgba(15, 31, 50, 0.12) !important;
}

.dia-favorite-dock,
.dia-pane-handle,
.dia-bottom-grid {
  display: none !important;
}

.dia-desktop {
  min-height: calc(100vh - 106px) !important;
  padding: 34px 32px 46px !important;
  background:
    radial-gradient(circle at 12% 8%, rgba(15, 157, 143, 0.12), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(47, 111, 205, 0.10), transparent 26%),
    linear-gradient(135deg, #eef6f7 0%, #f7fafc 58%, #eef2f7 100%) !important;
}

.dia-search-row {
  max-width: 960px !important;
  margin: 4px auto 34px !important;
  padding: 14px !important;
  border: 1px solid rgba(198, 213, 226, 0.9) !important;
  border-radius: 22px !important;
  background: rgba(255, 255, 255, 0.88) !important;
  box-shadow: 0 20px 45px rgba(15, 31, 50, 0.10) !important;
}

.dia-search-field input {
  min-height: 54px !important;
  border-radius: 16px !important;
  border-color: #c9d8e5 !important;
  background: #fff !important;
  font-size: 16px !important;
}

.dia-tool-button {
  width: 54px !important;
  height: 54px !important;
  border-radius: 17px !important;
  background: #fff !important;
  border: 1px solid #d7e3ee !important;
  box-shadow: 0 12px 28px rgba(15, 31, 50, 0.09) !important;
}

.dia-module-grid {
  align-items: start !important;
  gap: 34px !important;
  padding: 0 12px !important;
}

.desktop-module {
  width: 124px !important;
  min-height: 128px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #12263a !important;
}

.desktop-module-icon {
  width: 72px !important;
  height: 72px !important;
  margin: 0 auto 12px !important;
  border: 1px solid #d7e7f1 !important;
  border-radius: 20px !important;
  background: linear-gradient(180deg, #ffffff, #f5fafc) !important;
  box-shadow: 0 18px 34px rgba(15, 31, 50, 0.11) !important;
  color: #0f9b8e !important;
}

.desktop-module-icon svg {
  width: 38px !important;
  height: 38px !important;
}

.desktop-module strong {
  color: #102236 !important;
  font-size: 15px !important;
  line-height: 1.08 !important;
  font-weight: 950 !important;
}

.desktop-module small {
  display: none !important;
}

.desktop-module:hover .desktop-module-icon,
.desktop-module.selected .desktop-module-icon {
  border-color: #0f9b8e !important;
  background: linear-gradient(135deg, #0f9b8e, #216dce) !important;
  color: #fff !important;
  transform: translateY(-3px) scale(1.03) !important;
  box-shadow: 0 24px 42px rgba(15, 157, 143, 0.22) !important;
}

.view.active-view {
  background:
    radial-gradient(circle at 8% 0%, rgba(15, 157, 143, 0.09), transparent 30%),
    linear-gradient(135deg, #eef6f7 0%, #f8fbfd 58%, #f0f4f8 100%) !important;
}

.panel,
.premium-panel,
.incoming-studio-hero,
.incoming-command-panel,
.incoming-board,
.inventory-hero,
.inventory-card,
.summary-panel,
.accounting-shell,
.recurring-shell,
.payments-shell {
  border-radius: 24px !important;
  border: 1px solid rgba(198, 213, 226, 0.86) !important;
  background: rgba(255, 255, 255, 0.94) !important;
  box-shadow: 0 22px 54px rgba(15, 31, 50, 0.10) !important;
}

.primary-btn,
.action-button.primary,
.row-action.primary,
button.primary {
  border-radius: 15px !important;
  background: linear-gradient(135deg, #087f73, #0ba694) !important;
  box-shadow: 0 16px 32px rgba(8, 127, 115, 0.22) !important;
  color: #fff !important;
  font-weight: 950 !important;
}

.soft-btn,
.small-btn,
.row-action,
.action-button {
  border-radius: 14px !important;
  font-weight: 900 !important;
}

input,
select,
textarea {
  border-radius: 14px !important;
  border-color: #cfdae5 !important;
}

/* Giriş ayrımı ve müşteri hatırlama satırı */
.remember-row {
  min-height: auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  padding: 0 !important;
  margin: -4px 0 8px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #1f3448 !important;
  font-size: 15px !important;
  font-weight: 850 !important;
}

.remember-row::before {
  display: none !important;
}

.remember-row input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  flex: 0 0 auto !important;
  accent-color: var(--cb-teal, #0a9d8f) !important;
}

.remember-row span {
  color: #1f3448 !important;
  font-size: 15px !important;
  font-weight: 850 !important;
}

.customer-program-mode .login-tabs {
  display: none !important;
}

.customer-program-mode #adminLoginForm {
  display: none !important;
}

/* Kurumsal 2026 arayüz katmanı */
:root {
  --cetrin-bg: #f4f8fb;
  --cetrin-surface: #ffffff;
  --cetrin-surface-2: #f8fbfd;
  --cetrin-border: #dfe8f0;
  --cetrin-border-strong: #c8d7e4;
  --cetrin-text: #0f1f33;
  --cetrin-soft-text: #5e7086;
  --cetrin-teal: #078b7f;
  --cetrin-teal-2: #0aa392;
  --cetrin-blue: #2f72d6;
  --cetrin-amber: #f3a423;
  --cetrin-danger: #d63b61;
  --cetrin-shadow: 0 18px 45px rgba(15, 31, 51, 0.08);
  --cetrin-shadow-soft: 0 10px 28px rgba(15, 31, 51, 0.06);
}

body {
  color: var(--cetrin-text);
  background:
    radial-gradient(circle at 18% 10%, rgba(10, 163, 146, 0.09), transparent 30%),
    radial-gradient(circle at 86% 12%, rgba(47, 114, 214, 0.08), transparent 28%),
    linear-gradient(180deg, #f7fbfd, #eef4f8 42%, #f7f9fb);
}

.app-shell {
  grid-template-columns: 92px minmax(0, 1fr);
  background: var(--cetrin-bg);
}

.customer-desktop-shell {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  background: var(--cetrin-bg);
}

.customer-desktop-shell .sidebar,
.sidebar {
  display: flex;
  width: 92px;
  padding: 18px 12px;
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  border-right: 1px solid var(--cetrin-border);
  box-shadow: 10px 0 30px rgba(15, 31, 51, 0.05);
  color: var(--cetrin-text);
}

.customer-desktop-shell .brand,
.brand {
  width: 64px;
  min-height: 64px;
  padding: 0;
  justify-content: center;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(7, 139, 127, 0.08), rgba(47, 114, 214, 0.06));
  box-shadow: none;
}

.brand > div:not(.brand-mark) {
  display: none;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--cetrin-teal), #0f5f83);
  color: #ffffff;
  box-shadow: 0 12px 22px rgba(7, 139, 127, 0.20);
}

.customer-desktop-shell .nav,
.nav {
  width: 100%;
  gap: 14px;
  padding: 2px 0;
}

.customer-desktop-shell .nav-item,
.nav-item {
  width: 54px;
  min-height: 54px;
  grid-template-columns: 1fr;
  padding: 0;
  justify-items: center;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  color: #51647b;
}

.customer-desktop-shell .nav-item span:not(.nav-icon),
.nav-item span:not(.nav-icon) {
  display: none;
}

.customer-desktop-shell .nav-item:hover,
.customer-desktop-shell .nav-item.active,
.nav-item:hover,
.nav-item.active {
  border-color: rgba(7, 139, 127, 0.24);
  background: linear-gradient(135deg, var(--cetrin-teal), #0e9b8f);
  color: #ffffff;
  box-shadow: 0 16px 28px rgba(7, 139, 127, 0.24);
}

.customer-desktop-shell .nav-item.active,
.nav-item.active {
  box-shadow: 0 16px 28px rgba(7, 139, 127, 0.24);
}

.customer-desktop-shell .nav-icon,
.nav-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: transparent;
  color: currentColor;
}

.customer-desktop-shell .nav-icon svg,
.nav-icon svg {
  width: 25px;
  height: 25px;
}

.customer-desktop-shell .side-card,
.side-card {
  width: 54px;
  min-height: 54px;
  margin-top: auto;
  padding: 0;
  justify-content: center;
  border-radius: 15px;
  border: 1px solid var(--cetrin-border);
  background: #fff;
}

.side-card > div {
  display: none;
}

.customer-desktop-shell .main,
.main {
  min-height: 100vh;
  padding: 0;
  background: var(--cetrin-bg);
}

.customer-desktop-shell .topbar,
.topbar {
  position: sticky;
  top: 0;
  z-index: 35;
  min-height: 72px;
  margin: 0;
  padding: 0 34px;
  color: var(--cetrin-text);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--cetrin-border);
  backdrop-filter: blur(18px);
}

.customer-desktop-shell .topbar > div:first-child,
.topbar > div:first-child {
  gap: 18px;
}

.customer-desktop-shell .topbar > div:first-child::before {
  content: "ÇETİN BİLİŞİM";
  min-width: 164px;
  height: 38px;
  padding-left: 38px;
  display: inline-flex;
  align-items: center;
  position: relative;
  border-radius: 0;
  background: transparent;
  color: var(--cetrin-text);
  font-size: 14px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0;
}

.customer-desktop-shell .topbar > div:first-child::after {
  content: "";
  width: 24px;
  height: 24px;
  position: absolute;
  left: 2px;
  border-radius: 7px;
  background:
    linear-gradient(135deg, #0f5f83 0 46%, transparent 46%),
    linear-gradient(45deg, var(--cetrin-teal) 0 52%, #12b1a2 52%);
  transform: rotate(-45deg);
}

.customer-desktop-shell #topEyebrow,
#topEyebrow {
  color: var(--cetrin-soft-text);
}

.customer-desktop-shell #pageTitle,
#pageTitle {
  color: var(--cetrin-text);
  font-size: 17px;
  font-weight: 950;
}

.top-actions {
  margin-left: auto;
}

.customer-desktop-shell .soft-btn,
.customer-desktop-shell .icon-btn,
.soft-btn,
.icon-btn,
.row-action {
  border: 1px solid var(--cetrin-border);
  border-radius: 12px;
  background: #ffffff;
  color: var(--cetrin-text);
  box-shadow: var(--cetrin-shadow-soft);
}

.primary-btn {
  border: 0;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--cetrin-teal), var(--cetrin-teal-2));
  color: #ffffff;
  box-shadow: 0 16px 30px rgba(7, 139, 127, 0.24);
}

input,
select,
textarea,
.search-input {
  border-color: var(--cetrin-border-strong);
  border-radius: 12px;
  background: #ffffff;
  color: var(--cetrin-text);
}

input:focus,
select:focus,
textarea:focus,
.search-input:focus {
  border-color: var(--cetrin-teal);
  box-shadow: 0 0 0 4px rgba(7, 139, 127, 0.12);
}

.view.active-view {
  width: min(100%, 1780px);
  margin: 0 auto;
  padding: 30px;
}

.customer-desktop-shell .view:not(#dashboard).active-view {
  min-height: calc(100vh - 112px);
  padding: 30px;
}

.view-tabs {
  border-bottom: 1px solid var(--cetrin-border);
  background: rgba(255, 255, 255, 0.72);
}

.view-tab {
  border-color: var(--cetrin-border);
  background: #f5f9fc;
}

.view-tab.active {
  color: var(--cetrin-teal);
  background: #ffffff;
}

.dia-desktop {
  min-height: calc(100vh - 103px);
  padding: 42px 34px 330px;
  background:
    radial-gradient(circle at 8% 8%, rgba(7, 139, 127, 0.08), transparent 30%),
    var(--cetrin-bg);
}

.dia-search-row {
  width: min(720px, calc(100% - 28px));
  margin-bottom: 42px;
}

.dia-search-field input {
  height: 48px;
  border-color: #bdd1e2;
  font-size: 17px;
  box-shadow: var(--cetrin-shadow-soft);
}

.dia-tool-button {
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
}

.dia-module-grid {
  grid-template-columns: repeat(auto-fill, minmax(136px, 1fr));
  gap: 34px 26px;
  padding: 0 18px 34px;
}

.desktop-module-icon {
  width: 78px;
  height: 78px;
  border-color: var(--cetrin-border);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #f8fbfd);
  box-shadow: 0 14px 28px rgba(15, 31, 51, 0.10);
}

.desktop-module:hover .desktop-module-icon,
.desktop-module.selected .desktop-module-icon {
  transform: translateY(-2px);
  outline: 0;
  border-color: rgba(7, 139, 127, 0.36);
  box-shadow: 0 20px 38px rgba(7, 139, 127, 0.15);
}

.desktop-module strong {
  color: var(--cetrin-text);
  font-size: 15px;
}

.dia-pane {
  border: 1px solid var(--cetrin-border-strong);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--cetrin-shadow);
}

.dia-pane header {
  color: var(--cetrin-text);
  background: linear-gradient(180deg, #ffffff, #eef5fb);
  border-bottom: 1px solid var(--cetrin-border);
}

.dia-pane-item:hover {
  background: rgba(7, 139, 127, 0.06);
}

.dia-statusbar {
  border-top: 1px solid var(--cetrin-border);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
}

.metric-grid,
.sales-grid,
.module-grid,
.summary-grid {
  gap: 18px;
}

.metric-card,
.sales-card,
.module-card,
.company-card,
.prepared-card,
.template-card,
.stock-pick-card,
.search-result-card,
.panel,
.result-box,
.table-wrap {
  border-color: var(--cetrin-border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--cetrin-shadow-soft);
}

.incoming-studio {
  width: min(100%, 1720px);
  gap: 22px;
}

.incoming-studio-top {
  min-height: 156px;
  grid-template-columns: minmax(500px, 1fr) minmax(720px, 0.92fr);
  gap: 24px;
  padding: 30px 28px;
  border: 1px solid var(--cetrin-border);
  border-top: 5px solid var(--cetrin-teal);
  border-radius: 22px;
  background: linear-gradient(135deg, #ffffff, #f8fbfd);
  box-shadow: var(--cetrin-shadow);
}

.incoming-studio-title > div {
  position: relative;
  padding-left: 72px;
}

.incoming-studio-title > div::before {
  content: "";
  width: 52px;
  height: 52px;
  position: absolute;
  left: 0;
  top: 4px;
  border: 1px solid #dbe8f1;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(7, 139, 127, 0.13), rgba(47, 114, 214, 0.08)),
    #ffffff;
  box-shadow: 0 12px 25px rgba(15, 31, 51, 0.07);
}

.incoming-studio-title > div::after {
  content: "";
  width: 25px;
  height: 25px;
  position: absolute;
  left: 14px;
  top: 18px;
  border: 2px solid var(--cetrin-teal);
  border-radius: 4px;
  box-shadow: inset 0 -7px 0 rgba(7, 139, 127, 0.15);
}

.incoming-studio-title h2 {
  font-size: clamp(27px, 1.75vw, 36px);
  letter-spacing: 0;
}

.incoming-studio-title p:last-child {
  margin-top: 12px;
  max-width: 760px;
  color: var(--cetrin-soft-text);
  font-weight: 750;
  line-height: 1.55;
}

.incoming-studio-metrics {
  grid-template-columns: repeat(4, minmax(145px, 1fr));
  gap: 14px;
}

.incoming-metric-card {
  min-height: 116px;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  padding: 18px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--cetrin-shadow-soft);
}

.incoming-metric-icon {
  width: 52px;
  height: 52px;
  border-radius: 17px;
}

.incoming-metric-icon svg {
  width: 25px;
  height: 25px;
}

.incoming-studio-metrics strong {
  font-size: clamp(24px, 1.45vw, 32px);
}

.incoming-metric-card small {
  margin-top: 10px;
  color: var(--cetrin-soft-text);
}

.incoming-command-panel {
  grid-template-columns: 170px 170px 180px minmax(330px, 1fr) 310px;
  gap: 16px;
  padding: 26px;
  border: 1px solid var(--cetrin-border);
  border-top: 5px solid var(--cetrin-amber);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--cetrin-shadow);
}

.incoming-command-panel .danger-soft {
  grid-column: 1 / span 1;
  width: 100%;
}

.incoming-system-note {
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #cfe4ff;
  border-left: 5px solid var(--cetrin-blue);
  border-radius: 18px;
  background: linear-gradient(90deg, #f4f9ff, #ffffff);
  box-shadow: var(--cetrin-shadow-soft);
}

.incoming-board {
  padding: 22px;
  border: 1px solid var(--cetrin-border);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--cetrin-shadow);
}

.incoming-board-list {
  border-top: 5px solid var(--cetrin-blue);
}

.incoming-board-head {
  margin-bottom: 20px;
}

.incoming-board-head h3 {
  font-size: 25px;
}

.title-icon {
  width: 42px;
  height: 42px;
  padding: 10px;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--cetrin-teal), var(--cetrin-blue));
}

.incoming-board-head > span:not(.status-chip) {
  padding: 9px 14px;
  color: #2f66b6;
  background: #edf5ff;
  font-weight: 950;
}

.incoming-queue-table {
  max-height: 620px;
  border-radius: 18px;
}

.incoming-queue-table .invoice-table th,
.compact-history-table .invoice-table th {
  height: 54px;
  background: #f5f9fc;
  color: #5a6e83;
}

.incoming-queue-table .invoice-table td {
  padding-top: 20px;
  padding-bottom: 20px;
}

.invoice-table tr:hover td {
  background: #f8fbfd;
}

.status-chip {
  border-radius: 999px;
  padding: 9px 13px;
  font-weight: 950;
}

.row-action {
  min-height: 42px;
  padding: 0 18px;
  background: #0f1f33;
  color: #ffffff;
  border-color: #0f1f33;
}

.incoming-modal-window {
  border-radius: 24px;
}

.incoming-invoice-hero {
  background:
    radial-gradient(circle at 88% 65%, rgba(10, 163, 146, 0.52), transparent 22%),
    linear-gradient(135deg, #0f2338, #143d59 58%, #0b6271);
}

@media (max-width: 1280px) {
  .incoming-studio-top,
  .incoming-command-panel {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .app-shell,
  .customer-desktop-shell {
    grid-template-columns: 1fr;
  }

  .customer-desktop-shell .sidebar,
  .sidebar {
    position: static;
    width: auto;
    height: auto;
    flex-direction: row;
    padding: 10px;
    overflow-x: auto;
  }

  .customer-desktop-shell .nav,
  .nav {
    display: flex;
    width: auto;
  }

  .customer-desktop-shell .topbar,
  .topbar {
    padding: 10px 14px;
  }

  .view.active-view,
  .customer-desktop-shell .view:not(#dashboard).active-view {
    padding: 16px;
  }

  .incoming-studio-metrics {
    grid-template-columns: 1fr;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.10), transparent 34%),
    linear-gradient(315deg, rgba(211, 93, 60, 0.10), transparent 32%),
    #eef4f6;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  cursor: pointer;
}

a {
  text-decoration: none;
}

.is-hidden {
  display: none !important;
}

.customer-program-mode .login-tabs {
  display: none;
}

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

.module-toggle {
  display: grid;
  grid-template-columns: auto 34px 1fr;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.module-toggle.enabled {
  border-color: #0f9f8a;
  background: #f0fdfa;
  box-shadow: inset 3px 0 0 #0f9f8a;
}

.module-toggle input {
  width: 18px;
  height: 18px;
  accent-color: #0f9f8a;
}

.module-toggle-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #e8f4f6;
  color: #0f766e;
}

.module-toggle-icon svg {
  width: 18px;
  height: 18px;
}

.module-toggle strong,
.module-toggle small {
  display: block;
}

.module-toggle small {
  color: var(--muted);
  margin-top: 3px;
  line-height: 1.35;
}

.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
}

.login-shell {
  width: min(1180px, 100%);
  min-height: 680px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(380px, 0.85fr);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.login-showcase {
  padding: 46px;
  color: #ffffff;
  background:
    linear-gradient(150deg, rgba(20, 34, 48, 0.96), rgba(15, 118, 110, 0.88)),
    #142230;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-badge {
  width: 82px;
  aspect-ratio: 598 / 549;
  display: grid;
  place-items: center;
  background: transparent;
}

.login-showcase h1 {
  max-width: 700px;
  margin: 24px 0 16px;
  font-size: 42px;
  line-height: 1.08;
}

.login-showcase p {
  max-width: 680px;
  color: #dbe8e6;
  line-height: 1.65;
}

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

.showcase-grid span {
  min-height: 54px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.09);
  font-weight: 800;
}

.login-panel {
  padding: 36px;
  background: rgba(255, 253, 248, 0.96);
  display: grid;
  align-content: center;
}

.login-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 24px;
  padding: 6px;
  border-radius: 14px;
  background: #eaf0f2;
}

.login-tab {
  height: 44px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
}

.login-tab.active {
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 8px 22px rgba(19, 33, 44, 0.10);
}

.login-form {
  display: none;
  gap: 14px;
}

.login-form.active-login {
  display: grid;
}

.login-form h2 {
  margin: 0;
  font-size: 26px;
}

.login-form p {
  margin: -4px 0 8px;
  color: var(--muted);
  line-height: 1.5;
}

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

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px 16px;
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(11, 28, 42, 0.98) 0%, rgba(20, 49, 66, 0.98) 58%, rgba(13, 23, 33, 0.99) 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.10);
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: 18px 0 40px rgba(19, 33, 44, 0.10);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.brand-mark {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, #fff7e8, #d9fff4);
  color: var(--teal);
  font-weight: 950;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

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

.brand span,
.side-card small {
  margin-top: 4px;
  color: #bdd2dd;
  font-size: 13px;
}

.nav {
  display: grid;
  gap: 7px;
  padding: 8px 4px;
}

.nav-item {
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 0 12px;
  background: transparent;
  color: #d7e4eb;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  font-weight: 850;
  text-align: left;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.nav-item:hover,
.nav-item.active {
  border-color: rgba(255, 255, 255, 0.24);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(18, 163, 137, 0.12));
  color: #ffffff;
}

.nav-item.active {
  box-shadow: inset 4px 0 0 var(--amber), 0 10px 24px rgba(0, 0, 0, 0.14);
}

.nav-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.10);
  color: #d9fff4;
}

.nav-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.side-card {
  margin-top: auto;
  min-height: 96px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(18, 163, 137, 0.16), rgba(57, 117, 215, 0.12)),
    rgba(255, 255, 255, 0.08);
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #54e095;
  box-shadow: 0 0 0 6px rgba(84, 224, 149, 0.16);
}

.main {
  min-width: 0;
  padding: 28px;
}

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

h1,
h2,
p {
  margin: 0;
}

h1 {
  margin-top: 4px;
  font-size: 32px;
  line-height: 1.12;
}

h2 {
  font-size: 21px;
  line-height: 1.22;
}

.eyebrow {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow.light {
  color: #cbe7df;
}

.top-actions,
.button-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.tenant-select {
  min-width: 280px;
}

.top-home-btn {
  display: none;
}

label {
  display: grid;
  gap: 7px;
}

label span,
.inline-field span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 13px;
  background: #ffffff;
  color: var(--ink);
  outline: none;
}

input,
select {
  height: 44px;
}

textarea {
  min-height: 84px;
  padding: 11px 13px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(15, 118, 110, 0.7);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.13);
}

.field-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.dual-action-row {
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.auto-cari-btn {
  min-width: 168px;
}

.primary-btn,
.soft-btn,
.icon-btn,
.hero-action {
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  font-weight: 900;
}

.primary-btn {
  padding: 0 18px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--teal), var(--teal-2));
  box-shadow: 0 12px 28px rgba(15, 118, 110, 0.22);
}

.soft-btn,
.icon-btn {
  padding: 0 15px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: #ffffff;
}

.danger-soft {
  border-color: #fecaca;
  color: #b91c1c;
  background: #fff7f7;
}

.icon-btn {
  width: 46px;
  padding: 0;
  font-size: 18px;
}

.wide {
  width: 100%;
}

.view {
  display: none;
}

.active-view {
  display: grid;
  gap: 18px;
}

.hero-band {
  min-height: 190px;
  padding: 26px;
  border-radius: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 20px;
  color: #ffffff;
  box-shadow: var(--shadow);
}

.admin-hero {
  background:
    linear-gradient(135deg, rgba(19, 33, 44, 0.96), rgba(57, 117, 215, 0.78)),
    #13212c;
}

.customer-hero {
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.96), rgba(211, 93, 60, 0.78)),
    #0f766e;
}

.hero-band h2 {
  max-width: 850px;
  margin: 8px 0 10px;
  font-size: 30px;
}

.hero-band p {
  max-width: 820px;
  color: #eaf5f1;
  line-height: 1.55;
}

.hero-action {
  padding: 0 20px;
  color: var(--ink);
  background: #fff7e8;
}

.secondary-hero-action {
  border-color: rgba(255, 255, 255, 0.38);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
}

.secondary-hero-action:hover {
  background: rgba(255, 255, 255, 0.22);
}

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

.metric,
.panel {
  border: 1px solid rgba(217, 227, 234, 0.86);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 36px rgba(19, 33, 44, 0.08);
}

.metric {
  min-height: 134px;
  padding: 18px;
  display: grid;
  align-content: space-between;
  border-top: 5px solid var(--teal);
}

.metric span,
.metric small {
  color: var(--muted);
  font-weight: 800;
}

.metric strong {
  font-size: 31px;
  line-height: 1.1;
}

.tone-mint {
  border-top-color: var(--teal-2);
}

.tone-amber {
  border-top-color: var(--amber);
}

.tone-rose {
  border-top-color: var(--rose);
}

.tone-blue {
  border-top-color: var(--blue);
}

.grid-two,
.workflow-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(360px, 0.7fr);
  gap: 18px;
}

.panel {
  padding: 20px;
  min-width: 0;
}

.premium-panel {
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(255, 255, 255, 0.92)),
    #ffffff;
}

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

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 13px;
}

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

.span-3 {
  grid-column: span 3;
}

.form-divider {
  min-height: 36px;
  display: flex;
  align-items: center;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--teal);
  font-weight: 950;
 }

.field-static {
  min-height: 46px;
  display: flex;
  align-items: center;
  padding: 0 13px;
  border: 1px solid rgba(15, 118, 110, 0.2);
  border-radius: 12px;
  background: rgba(232, 247, 243, 0.72);
  color: var(--teal);
  font-size: 13px;
  font-weight: 850;
}

.customer-list,
.module-strip,
.log-list,
.debt-mini-list,
.send-result {
  display: grid;
  gap: 10px;
}

.admin-customer-stack {
  display: grid;
  gap: 16px;
}

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

.portal-user-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr 120px auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
}

.customer-card,
.action-card,
.feature-pill,
.module-card,
.company-card,
.prepared-card,
.history-line,
.log-item,
.result-box {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
}

.customer-card {
  min-height: 72px;
  padding: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.customer-card strong,
.module-card strong,
.history-line strong,
.log-item strong,
.debt-mini-list strong {
  display: block;
  margin-bottom: 4px;
}

.customer-card span span,
.module-card span,
.history-line span,
.log-item span,
.debt-mini-list span,
.muted {
  color: var(--muted);
  font-size: 13px;
}

.sync-note {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.customer-card em,
.module-card em {
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #e6f6f0;
  color: var(--green);
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
}

.customer-card em.warn {
  background: #fff0d5;
  color: #9a5a00;
}

.customer-card em.danger {
  background: #ffe1dc;
  color: #b42318;
}

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

.feature-pill {
  min-height: 64px;
  padding: 16px;
  font-weight: 900;
  border-left: 5px solid var(--coral);
}

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

.action-card {
  min-height: 92px;
  padding: 16px;
  text-align: left;
  border-left: 5px solid var(--teal);
}

.action-card strong,
.action-card span {
  display: block;
}

.action-card span {
  margin-top: 6px;
  color: var(--muted);
}

.debt-mini-list div,
.history-line,
.log-item {
  padding: 13px;
}

.debt-mini-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
}

.empty {
  color: var(--muted);
}

.workflow-layout {
  align-items: start;
}

.action-panel {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 13px;
}

.inline-field {
  min-width: 150px;
}

.check-row {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 850;
}

.check-row input {
  width: 18px;
  height: 18px;
}

.inline-check {
  margin-top: 22px;
}

.result-box {
  min-height: 52px;
  padding: 14px;
  margin-bottom: 16px;
  color: var(--muted);
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
}

table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
}

th,
td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
  font-size: 14px;
}

th {
  color: var(--muted);
  background: #f5f8f9;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

tr:last-child td {
  border-bottom: 0;
}

.amount {
  color: var(--rose);
  font-weight: 950;
}

.empty-cell {
  color: var(--muted);
  text-align: center;
}

.prepared-card {
  padding: 14px;
  display: grid;
  gap: 12px;
}

.prepared-card p {
  color: var(--muted);
  line-height: 1.5;
}

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

.company-card,
.module-card {
  min-height: 116px;
  padding: 15px;
  display: grid;
  align-content: space-between;
}

.module-card {
  border-top: 5px solid #cfdbe3;
}

.module-card.enabled {
  border-top-color: var(--teal-2);
}

.module-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.row-action {
  min-height: 32px;
  border: 0;
  border-radius: 999px;
  padding: 0 12px;
  background: #13212c;
  color: #ffffff;
  font-weight: 900;
}

.history-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.inventory-history-detail {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(15, 118, 110, 0.24);
  border-left: 5px solid var(--teal-2);
  border-radius: 12px;
  background: rgba(237, 250, 247, 0.64);
}

.inventory-history-detail h3 {
  margin: 4px 0;
}

.inventory-history-lines {
  min-width: 860px;
  margin-top: 12px;
}

.mini-hero {
  min-height: 166px;
}

.accounting-hero {
  background:
    linear-gradient(135deg, rgba(18, 70, 104, 0.98), rgba(15, 118, 110, 0.88) 56%, rgba(211, 93, 60, 0.82)),
    #124668;
}

.stock-hero {
  background: linear-gradient(135deg, #96620f, #0f766e);
}

.recurring-hero {
  background: linear-gradient(135deg, #1f4f7a, #d35d3c);
}

.inventory-hero {
  background:
    linear-gradient(135deg, rgba(23, 73, 88, 0.98), rgba(15, 118, 110, 0.92) 52%, rgba(242, 169, 59, 0.84)),
    #174958;
}

.inventory-hero-card {
  min-height: 142px;
  margin-bottom: 18px;
  padding: 28px 34px;
  border: 1px solid rgba(203, 216, 226, 0.92);
  border-left: 5px solid var(--amber);
  border-radius: 18px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 252, 0.96));
  box-shadow: 0 18px 46px rgba(14, 43, 62, 0.08);
}

.inventory-hero-card > div:nth-child(2) {
  min-width: 0;
}

.inventory-hero-icon,
.inventory-toolbar-icon {
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: radial-gradient(circle at 30% 25%, #18bfa2, #06786d 70%);
  box-shadow: 0 14px 30px rgba(15, 118, 110, 0.22);
}

.inventory-hero-icon {
  width: 62px;
  height: 62px;
}

.inventory-hero-icon svg,
.inventory-toolbar-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.inventory-hero-card h2 {
  margin: 4px 0 8px;
  font-size: 30px;
}

.inventory-hero-card p:last-child {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
  font-weight: 850;
}

.inventory-fetch-btn {
  min-height: 50px;
  border-color: rgba(173, 110, 12, 0.32);
  color: #9a5a00;
  background: #fff;
}

.inventory-fetch-btn svg {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  vertical-align: -4px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
}

.gib-archive-hero {
  background:
    linear-gradient(135deg, rgba(29, 70, 129, 0.96), rgba(15, 118, 110, 0.90) 54%, rgba(242, 169, 59, 0.86)),
    #1d4681;
}

.inventory-toolbar {
  display: grid;
  grid-template-columns: 46px minmax(260px, 0.95fr) 1px minmax(320px, 1.05fr);
  align-items: center;
  gap: 18px;
  margin-bottom: 0;
  border-top: 0;
  min-height: 112px;
}

.inventory-toolbar::before {
  content: none;
}

.inventory-toolbar-icon {
  grid-column: 1;
}

.inventory-toolbar label {
  grid-column: 2;
  min-width: 0;
}

.inventory-toolbar-divider {
  grid-column: 3;
  display: block;
  width: 1px;
  height: 54px;
  background: rgba(203, 216, 226, 0.95);
}

.inventory-toolbar-icon {
  width: 46px;
  height: 46px;
  color: #183646;
  background: #f4f8fa;
  box-shadow: none;
}

.inventory-sync {
  grid-column: 4;
  min-height: 46px;
  display: grid;
  align-content: center;
  gap: 3px;
  min-width: 0;
}

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

.inventory-screen-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 520px);
  gap: 18px;
  align-items: start;
  margin-bottom: 18px;
  overflow: visible;
}

.inventory-left-column {
  display: grid;
  grid-template-rows: auto auto;
  gap: 18px;
  min-width: 0;
}

.inventory-entry-panel {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(360px, 1fr);
  align-items: start;
  gap: 16px;
  min-height: 255px;
}

.barcode-stage {
  min-height: 255px;
  padding: 22px;
  border: 1px solid rgba(203, 216, 226, 0.92);
  border-radius: 16px;
  display: grid;
  align-content: space-between;
  gap: 14px;
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.08), transparent 42%),
    #ffffff;
}

.barcode-stage .eyebrow svg,
.inventory-info-note svg {
  width: 16px;
  height: 16px;
  margin-right: 6px;
  vertical-align: -3px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.barcode-stage h2,
.inventory-manual-search h3 {
  margin: 5px 0;
  font-size: 20px;
}

.barcode-stage span,
.inventory-manual-search span {
  color: var(--muted);
  font-weight: 750;
}

.barcode-entry {
  min-height: 58px;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
}

.barcode-entry input {
  height: 58px;
  border: 2px solid rgba(15, 118, 110, 0.42);
  border-left: 0;
  border-radius: 0 10px 10px 0;
  font-size: 20px;
  font-weight: 900;
}

.barcode-mark {
  width: 56px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 10px 0 0 10px;
  color: #ffffff !important;
  background: var(--teal);
}

.barcode-mark svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.inventory-manual-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 12px;
  min-height: 255px;
  padding: 22px;
  border: 1px solid rgba(203, 216, 226, 0.92);
  border-radius: 18px;
  background: #ffffff;
}

.inventory-info-note {
  min-height: 44px;
  padding: 12px 14px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 10px;
  display: flex;
  align-items: center;
  color: #08766b;
  background: rgba(15, 118, 110, 0.07);
  font-size: 13px;
  font-weight: 850;
}

.inventory-manual-search .eyebrow svg {
  width: 16px;
  height: 16px;
  margin-right: 6px;
  vertical-align: -3px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
}

.inventory-search-results {
  display: grid;
  gap: 8px;
  max-height: 330px;
  overflow: auto;
  align-content: start;
}

.inventory-stock-card {
  min-height: 86px;
  padding: 14px 16px;
  border: 1px solid rgba(203, 216, 226, 0.92);
  border-left: 5px solid var(--teal);
  border-radius: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  background: #ffffff;
  text-align: left;
}

.inventory-stock-card span {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, max-content));
  gap: 5px 14px;
}

.inventory-stock-card strong {
  grid-column: 1 / -1;
  font-size: 15px;
}

.inventory-stock-card small {
  color: var(--muted);
  font-weight: 800;
}

.inventory-stock-card small b {
  color: #183646;
}

.inventory-stock-card em {
  color: var(--teal);
  font-style: normal;
  font-weight: 950;
}

.inventory-summary-panel {
  position: sticky;
  top: 18px;
  display: grid;
  align-content: start;
  gap: 12px;
  border-top: 5px solid var(--teal-2);
  box-shadow: 0 18px 46px rgba(14, 43, 62, 0.10);
  min-width: 0;
  height: fit-content;
}

.inventory-summary-panel .panel-head {
  align-items: center;
}

.inventory-summary-panel .panel-head h2 {
  text-transform: uppercase;
  font-size: 20px;
}

.inventory-summary-panel .panel-head svg,
.inventory-mode-note svg,
.inventory-list-head .eyebrow svg,
.inventory-summary-panel button svg {
  width: 16px;
  height: 16px;
  margin-right: 6px;
  vertical-align: -3px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
}

.inventory-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.inventory-metric-grid div {
  min-height: 76px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  align-content: space-between;
  background: #ffffff;
}

.inventory-metric-grid span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.inventory-metric-grid strong {
  font-size: 24px;
}

.inventory-mode-note {
  min-height: 74px;
  padding: 12px;
  border: 1px solid #c9dfef;
  border-radius: 10px;
  display: grid;
  gap: 4px;
  color: #1f4f7a;
  background: #eef7fd;
}

.inventory-mode-note.live {
  border-color: #f0c5b9;
  color: #a93f25;
  background: #fff1ec;
}

.inventory-mode-note span {
  font-size: 12px;
  font-weight: 750;
  line-height: 1.4;
}

.inventory-result {
  margin: 0;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.45;
}

.inventory-list-head {
  align-items: center;
}

.inventory-list-panel {
  margin-top: 18px;
  border-top: 0;
  box-shadow: 0 18px 46px rgba(14, 43, 62, 0.08);
  min-height: 285px;
}

.inventory-list-panel .table-wrap {
  border: 1px solid rgba(203, 216, 226, 0.92);
  border-radius: 14px;
}

.inventory-list-head h2 {
  font-size: 30px;
  letter-spacing: 0;
}

.inventory-count-badge {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(15, 118, 110, 0.24);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #075e52;
  background: #dff6ef;
  font-size: 14px;
  font-weight: 950;
}

.inventory-count-badge svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.inventory-table {
  min-width: 1280px;
}

.inventory-table td,
.inventory-table th {
  padding-top: 14px;
  padding-bottom: 14px;
}

.inventory-table th {
  vertical-align: middle;
}

.inventory-table th svg {
  width: 15px;
  height: 15px;
  margin-right: 6px;
  vertical-align: -3px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.inventory-row-no {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-grid;
  place-items: center;
  color: #ffffff;
  background: #122f3d;
  font-weight: 950;
}

.inventory-table-footer {
  min-height: 56px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 14px 2px 0;
  color: var(--muted);
  font-weight: 850;
}

.inventory-table-footer div {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.inventory-table-footer strong {
  min-width: 36px;
  min-height: 36px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--teal);
  border-radius: 10px;
  color: var(--teal);
  background: #effaf7;
}

.inventory-table-footer .tiny {
  min-height: 36px;
  padding: 0 12px;
}

.inventory-table-footer select {
  width: 120px;
}

.inventory-meta {
  display: inline-flex;
  margin: 5px 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.inventory-meta b {
  margin-right: 4px;
  color: #183646;
}

.stock-negative {
  color: #b42318;
}

.stock-alert {
  width: max-content;
  margin-top: 5px;
  padding: 4px 8px;
  border-radius: 999px;
  display: block;
  color: #b42318;
  background: #ffe7e2;
  font-size: 11px;
  font-weight: 950;
}

.inventory-qty-input {
  width: 150px;
  min-height: 42px;
  font-weight: 950;
}

.movement-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.positive {
  color: #087443;
}

.negative {
  color: #b42318;
}

.equal {
  color: #3975d7;
}

.waiting {
  color: var(--muted);
}

.movement-chip.positive {
  background: #e4f6ed;
}

.movement-chip.negative {
  background: #ffe7e2;
}

.movement-chip.equal {
  background: #e6f0ff;
}

.movement-chip.waiting {
  background: #eef3f5;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  background: #e8f3f0;
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
}

.status-chip.waiting {
  background: #fff0d5;
  color: #9a5a00;
}

.status-chip.danger {
  background: #ffe1dc;
  color: #b42318;
  margin: 2px;
}

.status-chip.info-chip {
  background: #e8f1ff;
  color: #2454a6;
}

.compact-metrics {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 16px;
}

.compact-metrics .metric {
  min-height: 112px;
}

.accounting-workspace {
  border-top: 5px solid var(--teal-2);
}

.year-switcher {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
}

.year-switcher strong {
  min-width: 64px;
  color: var(--teal);
  font-size: 18px;
  text-align: center;
}

.year-switcher .icon-btn {
  width: 36px;
  min-height: 34px;
  height: 34px;
  border-radius: 10px;
  color: var(--teal);
  font-size: 25px;
}

.month-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(100px, 1fr));
  gap: 9px;
  margin-bottom: 16px;
}

.month-button {
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid rgba(57, 117, 215, 0.18);
  border-radius: 12px;
  background: linear-gradient(145deg, #ffffff, #f4f8fa);
  color: var(--ink);
  text-align: left;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.month-button:hover {
  border-color: rgba(15, 118, 110, 0.52);
  transform: translateY(-2px);
}

.month-button.active {
  border-color: var(--teal);
  background: linear-gradient(135deg, var(--teal), var(--blue));
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(15, 118, 110, 0.22);
}

.month-button strong,
.month-button span {
  display: block;
}

.month-button span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.month-button.active span {
  color: #dceeff;
}

.package-form {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(245, 248, 249, 0.76);
}

.vat-filter {
  display: grid;
  gap: 13px;
  margin-top: 4px;
  padding: 16px;
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(232, 247, 243, 0.84), rgba(255, 247, 232, 0.72));
}

.vat-filter h3 {
  margin: 4px 0;
  font-size: 18px;
}

.vat-filter span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.vat-option-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(78px, 1fr));
  gap: 9px;
}

.vat-option {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(15, 118, 110, 0.24);
  border-radius: 12px;
  background: #ffffff;
  color: var(--teal);
}

.vat-option input {
  width: 17px;
  height: 17px;
}

.vat-option strong {
  font-size: 15px;
}

.package-note {
  border-left: 5px solid var(--teal-2);
}

.invoice-command-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 16px 0;
  padding: 16px;
  border: 1px solid rgba(57, 117, 215, 0.20);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(232, 243, 255, 0.88), rgba(232, 247, 243, 0.72));
}

.invoice-command-bar strong,
.invoice-command-bar span {
  display: block;
}

.invoice-command-bar span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.compact-command-bar {
  justify-content: flex-end;
}

.invoice-list-panel {
  border-top: 5px solid var(--blue);
}

.invoice-search-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.invoice-search-wrap span {
  min-width: max-content;
  padding: 8px 11px;
  border-radius: 999px;
  background: #e8f3f0;
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
}

.invoice-table {
  min-width: 1180px;
}

.invoice-table-wrap {
  max-height: 640px;
}

.invoice-table td {
  line-height: 1.4;
}

.direction-chip,
.document-chip {
  display: inline-flex;
  min-height: 27px;
  align-items: center;
  border-radius: 999px;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 900;
}

.direction-chip.incoming {
  background: #e7f1ff;
  color: #245ca8;
}

.direction-chip.outgoing {
  background: #e6f6f0;
  color: #0f766e;
}

.document-chip.efatura {
  background: #fff0d5;
  color: #935900;
}

.document-chip.earsiv {
  background: #ffe1dc;
  color: #a43828;
}

.invoice-download {
  background: linear-gradient(135deg, var(--teal), var(--blue));
}

.gib-archive-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(380px, 0.62fr);
  gap: 18px;
  align-items: start;
}

.gib-archive-main {
  border-top: 5px solid var(--blue);
}

.document-hero {
  background:
    linear-gradient(135deg, rgba(199, 61, 102, 0.94), rgba(15, 118, 110, 0.78)),
    #c73d66;
}

.incoming-hero {
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.96), rgba(57, 117, 215, 0.78)),
    #0f766e;
}

.incoming-studio {
  width: min(100%, 1760px);
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.incoming-studio-top {
  display: grid;
  grid-template-columns: minmax(480px, 1fr) minmax(760px, 0.95fr);
  gap: 18px;
  align-items: center;
  min-height: 128px;
  padding: 18px 20px;
  border: 1px solid rgba(188, 207, 219, 0.88);
  border-top: 5px solid var(--teal);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.97), rgba(246, 251, 250, 0.94));
  box-shadow: 0 18px 42px rgba(14, 43, 62, 0.10);
}

.incoming-command-panel,
.incoming-board {
  border: 1px solid rgba(188, 207, 219, 0.88);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.97), rgba(246, 251, 250, 0.94));
  box-shadow: 0 18px 42px rgba(14, 43, 62, 0.10);
}

.incoming-studio-title {
  min-height: 0;
  padding: 0;
  display: block;
  align-items: center;
  border: 0;
  background: transparent;
  box-shadow: none;
  min-width: 0;
}

.incoming-studio-title h2 {
  margin: 4px 0 8px;
  font-size: clamp(24px, 1.55vw, 31px);
  line-height: 1.05;
}

.incoming-studio-title p:last-child {
  margin: 0;
  max-width: 900px;
  color: var(--muted);
  font-weight: 900;
}

.incoming-studio-metrics {
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(165px, 1fr));
  gap: 9px;
  border: 0;
  background: transparent;
  box-shadow: none;
  min-width: 0;
}

.incoming-metric-card {
  min-height: 78px;
  border: 1px solid rgba(203, 216, 226, 0.94);
  border-radius: 14px;
  padding: 10px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(245, 250, 252, 0.86));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.incoming-metric-card.tone-amber {
  border-color: rgba(242, 169, 59, 0.45);
  background: linear-gradient(135deg, rgba(255, 250, 239, 0.98), rgba(255, 255, 255, 0.88));
}

.incoming-metric-card.tone-teal {
  border-color: rgba(15, 118, 110, 0.36);
  background: linear-gradient(135deg, rgba(235, 250, 246, 0.98), rgba(255, 255, 255, 0.88));
}

.incoming-metric-card.tone-blue {
  border-color: rgba(57, 117, 215, 0.38);
  background: linear-gradient(135deg, rgba(238, 246, 255, 0.98), rgba(255, 255, 255, 0.88));
}

.incoming-metric-card.tone-total {
  border-color: rgba(15, 118, 110, 0.46);
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.12), rgba(57, 117, 215, 0.08)),
    #ffffff;
}

.incoming-metric-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, #0f766e, #169f90);
  box-shadow: 0 10px 18px rgba(15, 118, 110, 0.20);
}

.tone-amber .incoming-metric-icon {
  background: linear-gradient(135deg, #d88a14, #f2a93b);
  box-shadow: 0 10px 18px rgba(216, 138, 20, 0.20);
}

.tone-blue .incoming-metric-icon {
  background: linear-gradient(135deg, #2465c4, #3975d7);
  box-shadow: 0 10px 18px rgba(36, 101, 196, 0.20);
}

.tone-total .incoming-metric-icon {
  background: linear-gradient(135deg, #0f766e, #2db7a5);
}

.incoming-metric-icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
}

.incoming-studio-metrics .incoming-metric-icon {
  color: #ffffff;
}

.incoming-studio-metrics span,
.incoming-board-head span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 1000;
}

.incoming-studio-metrics strong {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-size: clamp(20px, 1.25vw, 25px);
  line-height: 1;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
}

.incoming-metric-card small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.incoming-metric-card.tone-total strong {
  font-size: clamp(17px, 1vw, 20px);
  letter-spacing: 0;
}

.incoming-command-panel {
  padding: 14px;
  display: grid;
  grid-template-columns: 170px 170px 190px minmax(280px, 1fr) 280px;
  gap: 12px;
  align-items: end;
  border-top: 5px solid var(--amber);
}

.incoming-search-field {
  min-width: 0;
}

.incoming-system-note {
  border-left: 5px solid var(--teal);
  border-radius: 14px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--muted);
  font-weight: 950;
  box-shadow: 0 10px 26px rgba(14, 43, 62, 0.06);
}

.incoming-studio-main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: start;
}

.incoming-board {
  padding: 18px;
  overflow: hidden;
}

.incoming-board-list {
  border-top: 5px solid var(--blue);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 253, 0.96));
  box-shadow: 0 22px 60px rgba(14, 43, 62, 0.12);
}

.incoming-board-detail {
  position: sticky;
  top: 12px;
  border-top: 5px solid var(--teal);
}

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

.incoming-board-head h3 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 2px 0 0;
  font-size: 22px;
  line-height: 1.1;
}

.title-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  padding: 8px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  color: #fff;
  box-shadow: 0 12px 22px rgba(15, 118, 110, 0.16);
}

.th-icon {
  width: 24px;
  height: 24px;
  padding: 5px;
  margin-right: 7px;
  border-radius: 8px;
  vertical-align: middle;
  background: #e8f1ff;
  color: #2454a6;
}

.incoming-board-head > span:not(.status-chip) {
  border-radius: 999px;
  padding: 8px 12px;
  background: #e8f1ff;
  color: #2454a6;
}

.incoming-empty-state {
  min-height: 280px;
  border: 1px dashed rgba(119, 143, 159, 0.55);
  border-radius: 16px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  text-align: center;
  background:
    radial-gradient(circle at top, rgba(41, 117, 215, 0.10), transparent 36%),
    rgba(248, 252, 253, 0.92);
  color: var(--muted);
  font-weight: 900;
}

.incoming-empty-state strong {
  color: var(--ink);
  font-size: 20px;
}

.incoming-transferred-block {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(203, 216, 226, 0.9);
}

.incoming-board-head.mini h3 {
  font-size: 18px;
}

.compact-history-table .invoice-table th,
.compact-history-table .invoice-table td {
  padding-top: 10px;
  padding-bottom: 10px;
}

.transferred-row {
  background: linear-gradient(90deg, rgba(232, 246, 237, 0.82), rgba(255, 255, 255, 0.92));
}

.incoming-history-empty {
  border: 1px dashed rgba(119, 143, 159, 0.45);
  border-radius: 14px;
  padding: 16px;
  color: var(--muted);
  font-weight: 900;
  background: rgba(248, 252, 253, 0.82);
}

.incoming-queue-table,
.compact-history-table {
  border: 1px solid rgba(188, 207, 219, 0.9);
  border-radius: 16px;
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.incoming-queue-table {
  max-height: 560px;
}

.incoming-queue-table .invoice-table th,
.compact-history-table .invoice-table th {
  background: linear-gradient(180deg, #f8fbfd, #eef5f8);
  color: #52687c;
  font-size: 12px;
  letter-spacing: 0;
}

.incoming-queue-table .invoice-table td {
  padding-top: 16px;
  padding-bottom: 16px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(6, 23, 36, 0.62);
  backdrop-filter: blur(8px);
}

.incoming-modal-window {
  width: min(1500px, calc(100vw - 56px));
  max-height: calc(100vh - 56px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(203, 216, 226, 0.9);
  border-radius: 22px;
  background: linear-gradient(145deg, #ffffff, #f7fbfb);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}

.incoming-invoice-hero {
  padding: 18px 20px 22px;
  color: #eaf6ff;
  background:
    radial-gradient(circle at 86% 75%, rgba(28, 195, 167, 0.48), transparent 22%),
    linear-gradient(135deg, #10233a, #123856 56%, #0f2436);
}

.incoming-hero-topline,
.incoming-hero-main,
.incoming-hero-actions,
.incoming-hero-meta {
  display: flex;
  align-items: center;
}

.incoming-hero-topline {
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}

.incoming-hero-topline p {
  margin: 0;
  color: #a9bed2;
  font-size: 13px;
  font-weight: 950;
}

.incoming-hero-topline h2 {
  margin: 3px 0 0;
  color: #fff;
  font-size: 25px;
  line-height: 1;
}

.incoming-hero-actions {
  gap: 12px;
}

.modal-close-btn {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.10);
  color: #cde3f7;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.dialog-layer {
  position: fixed;
  inset: 0;
  z-index: 140;
  pointer-events: none;
}

.dialog-layer.active {
  pointer-events: auto;
}

.dialog-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 15, 26, 0.50);
  backdrop-filter: blur(5px);
}

.confirm-dialog {
  position: absolute;
  inset: 50% auto auto 50%;
  width: min(560px, calc(100vw - 32px));
  transform: translate(-50%, -50%);
  border: 1px solid rgba(196, 210, 223, 0.92);
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff, #f8fbfd);
  box-shadow: 0 28px 80px rgba(4, 20, 36, 0.34);
  overflow: hidden;
}

.confirm-dialog.info {
  box-shadow: 0 28px 80px rgba(18, 88, 147, 0.22);
}

.confirm-dialog.warning {
  box-shadow: 0 28px 80px rgba(196, 127, 21, 0.24);
}

.confirm-dialog.danger {
  box-shadow: 0 28px 80px rgba(187, 43, 36, 0.22);
}

.confirm-dialog-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 22px 12px;
}

.confirm-dialog-badge {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  font-size: 20px;
  font-weight: 900;
  color: #ffffff;
  background: linear-gradient(135deg, #1787d5, #19b9a4);
  box-shadow: 0 12px 24px rgba(23, 135, 213, 0.22);
}

.confirm-dialog.warning .confirm-dialog-badge {
  background: linear-gradient(135deg, #f4a41c, #f07b29);
  box-shadow: 0 12px 24px rgba(244, 164, 28, 0.24);
}

.confirm-dialog.danger .confirm-dialog-badge {
  background: linear-gradient(135deg, #dc3f31, #b42318);
  box-shadow: 0 12px 24px rgba(180, 35, 24, 0.24);
}

.confirm-dialog-copy {
  min-width: 0;
  flex: 1;
}

.confirm-dialog-eyebrow {
  margin: 0 0 4px;
  color: #6b7f93;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.confirm-dialog-copy h2 {
  margin: 0;
  color: #10243b;
  font-size: 24px;
  line-height: 1.15;
}

.confirm-dialog-close {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 12px;
  background: #eef5fa;
  color: #4f647a;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.confirm-dialog-message,
.confirm-dialog-detail {
  padding: 0 22px;
  color: #30475e;
  font-size: 16px;
  line-height: 1.6;
}

.confirm-dialog-message {
  padding-bottom: 10px;
}

.confirm-dialog-detail {
  padding-bottom: 2px;
  color: #6b7f93;
  font-size: 14px;
}

.confirm-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 20px 22px 22px;
}

.danger-confirm-btn {
  background: linear-gradient(135deg, #cf2f28, #b42318);
  box-shadow: 0 16px 28px rgba(180, 35, 24, 0.24);
}

.incoming-hero-main {
  justify-content: space-between;
  gap: 24px;
}

.incoming-seller-block {
  min-width: 0;
  flex: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}

.incoming-seller-badge {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #ffe66d;
  background: linear-gradient(135deg, #0057a8, #003f7d);
  font-size: 13px;
  font-weight: 1000;
  overflow: hidden;
}

.incoming-seller-block strong {
  max-width: 580px;
  color: #fff;
  font-size: 24px;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.incoming-hero-meta {
  justify-content: flex-end;
  gap: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}

.incoming-hero-meta div {
  min-width: 128px;
  padding: 12px 16px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.incoming-hero-meta div:first-child {
  border-left: 0;
}

.incoming-hero-meta span {
  display: block;
  color: #b8ccdc;
  font-size: 12px;
  font-weight: 900;
}

.incoming-hero-meta strong {
  display: block;
  margin-top: 4px;
  color: #fff;
  font-size: 16px;
  font-weight: 1000;
  overflow-wrap: anywhere;
}

.incoming-hero-meta .incoming-total-box {
  min-width: 190px;
  background: linear-gradient(135deg, rgba(19, 162, 139, 0.92), rgba(44, 196, 172, 0.82));
}

.incoming-hero-meta .incoming-total-box strong {
  font-size: 28px;
  line-height: 1;
}

.incoming-modal-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(203, 216, 226, 0.92);
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.13), rgba(57, 117, 215, 0.10)),
    #fff;
}

.incoming-modal-head h2 {
  margin: 2px 0 4px;
  font-size: 24px;
}

.incoming-modal-head span {
  color: var(--muted);
  font-weight: 900;
}

.incoming-modal-body {
  overflow: auto;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(245, 250, 252, 0.96), rgba(255, 255, 255, 0.98));
}

.incoming-modal-body .single-column-form {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.incoming-modal-body .invoice-approval-card,
.incoming-modal-body .vat-breakdown,
.incoming-modal-body .incoming-vat-dashboard,
.incoming-modal-body .incoming-line-editor,
.incoming-modal-body .search-result-list,
.incoming-modal-body .button-row,
.incoming-modal-body label:has(textarea) {
  grid-column: 1 / -1;
}

.incoming-vat-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 12px;
}

.incoming-vat-table,
.incoming-vat-donut-card,
.incoming-detail-form label,
.incoming-line-editor,
.incoming-modal-body .vat-breakdown,
.incoming-modal-body .search-result-list {
  border: 1px solid rgba(203, 216, 226, 0.92);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 24px rgba(16, 37, 53, 0.05);
}

.incoming-vat-table {
  padding: 12px;
}

.incoming-vat-table-head,
.incoming-vat-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) minmax(160px, auto);
  gap: 12px;
  align-items: center;
}

.incoming-vat-table-head {
  color: var(--muted);
  font-size: 12px;
  font-weight: 1000;
  padding: 0 8px 8px;
}

.incoming-vat-row {
  min-height: 42px;
  border-top: 1px solid rgba(203, 216, 226, 0.72);
  padding: 8px;
}

.incoming-vat-row strong {
  position: relative;
  color: var(--teal);
  font-weight: 1000;
}

.incoming-vat-row strong::after {
  content: "";
  display: block;
  height: 8px;
  width: 86px;
  margin-top: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #b6f2dc, #82e6ca);
}

.incoming-vat-row span,
.incoming-vat-row em {
  color: var(--ink);
  font-style: normal;
  font-weight: 950;
}

.incoming-vat-row em {
  text-align: right;
}

.incoming-vat-donut-card {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 12px;
}

.incoming-vat-donut-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 1000;
}

.incoming-vat-donut-card strong {
  color: var(--ink);
  font-weight: 1000;
}

.incoming-vat-donut {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: conic-gradient(var(--teal) 0 var(--vat-share), #62d9be var(--vat-share) 100%);
  position: relative;
}

.incoming-vat-donut::after {
  content: "";
  position: absolute;
  inset: 25px;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(203, 216, 226, 0.8);
}

.incoming-detail-form label {
  padding: 10px;
}

.incoming-modal-body .button-row {
  position: sticky;
  bottom: -18px;
  z-index: 2;
  margin: 0 -18px -18px;
  padding: 12px 18px;
  justify-content: flex-end;
  background: rgba(248, 251, 252, 0.96);
  border-top: 1px solid rgba(203, 216, 226, 0.92);
  backdrop-filter: blur(8px);
}

.danger-btn {
  border: 1px solid rgba(199, 48, 48, 0.22);
  border-radius: 14px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #c73030, #a91f1f);
  color: #fff;
  font-weight: 1000;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(199, 48, 48, 0.20);
}

.document-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(390px, 0.65fr);
  gap: 18px;
  align-items: start;
}

.incoming-workspace {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
}

.incoming-workspace .incoming-control-panel,
.incoming-workspace .incoming-list-panel,
.incoming-approval-panel {
  width: min(100%, 1540px);
  margin-inline: auto;
}

.incoming-control-panel {
  border-top: 5px solid var(--teal);
}

.incoming-list-panel {
  border-top: 5px solid var(--blue);
}

.incoming-approval-panel {
  border-top: 5px solid var(--amber);
}

.incoming-control-grid {
  display: grid;
  grid-template-columns: minmax(170px, 0.8fr) minmax(170px, 0.8fr) minmax(220px, 1fr) minmax(250px, 0.9fr);
  gap: 12px;
  align-items: end;
}

.incoming-list-head {
  gap: 18px;
  align-items: stretch;
}

.incoming-search-bar {
  flex: 1;
  max-width: 780px;
  margin: 0;
}

.incoming-search-bar .search-input {
  min-width: 320px;
}

.incoming-approval-panel .single-column-form {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.incoming-approval-panel .invoice-approval-card,
.incoming-approval-panel .vat-breakdown,
.incoming-approval-panel .incoming-line-editor,
.incoming-approval-panel .search-result-list,
.incoming-approval-panel .button-row,
.incoming-approval-panel .gib-detail-card,
.incoming-approval-panel label:has(textarea) {
  grid-column: 1 / -1;
}

.document-main {
  border-top: 5px solid var(--teal-2);
}

.document-preview {
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  border: 1px solid rgba(217, 227, 234, 0.92);
  border-radius: 16px;
  background: #f8fbfc;
}

.document-pdf-preview {
  height: 560px;
  max-height: 70vh;
}

.empty-preview {
  min-height: 180px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 900;
}

button:disabled {
  opacity: 0.58;
  cursor: not-allowed;
}

.single-column-form {
  grid-template-columns: 1fr;
}

.check-card {
  min-height: 54px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(15, 118, 110, 0.24);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(232, 247, 243, 0.88), rgba(255, 247, 232, 0.72));
}

.check-card input {
  width: 18px;
  height: 18px;
}

.check-card span {
  color: var(--ink);
  line-height: 1.35;
}

.gib-range-shortcuts {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 9px;
}

.compact-month {
  min-height: 62px;
  border-left-color: var(--amber);
}

.gib-detail-card {
  margin-top: 14px;
  display: grid;
  gap: 13px;
  padding: 16px;
  border: 1px solid rgba(57, 117, 215, 0.22);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(232, 243, 255, 0.82), rgba(255, 253, 248, 0.94)),
    #ffffff;
}

.gib-detail-card h3 {
  margin: 0;
  font-size: 20px;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(96px, 0.45fr) minmax(0, 1fr);
  gap: 9px 12px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.detail-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.detail-grid strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.status-chip.ready {
  background: #e4f6ed;
  color: #087443;
}

.sales-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.sales-card {
  min-height: 178px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  background: #ffffff;
  border-top: 5px solid var(--blue);
  display: grid;
  align-content: space-between;
}

.sales-card span,
.sales-card p {
  color: var(--muted);
}

.sales-card strong {
  font-size: 18px;
}

.sales-card em {
  width: max-content;
  border-radius: 999px;
  padding: 6px 10px;
  color: #ffffff;
  background: var(--coral);
  font-style: normal;
  font-weight: 900;
}

.recurring-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(380px, 0.65fr);
  gap: 18px;
  align-items: start;
}

.slim-head {
  margin: 18px 0 12px;
}

.search-input {
  min-width: 260px;
}

.stock-result,
.template-list,
.search-result-list {
  display: grid;
  gap: 10px;
}

.stock-result {
  max-height: 320px;
  overflow: auto;
  padding-right: 4px;
}

.stock-pick-card,
.template-card,
.search-result-card,
.selected-cari {
  min-height: 76px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px;
  background: #ffffff;
}

.stock-pick-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.stock-pick-card strong,
.stock-pick-card small,
.search-result-card strong,
.search-result-card span,
.template-card strong,
.template-card span {
  display: block;
}

.stock-pick-card small,
.search-result-card span,
.template-card span {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.45;
}

.stock-pick-card em {
  color: var(--teal);
  font-style: normal;
  font-weight: 950;
}

.template-card {
  display: grid;
  gap: 12px;
  border-left: 5px solid var(--teal-2);
}

.search-result-card {
  text-align: left;
  border-left: 5px solid var(--blue);
}

.selected-cari {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  margin: 12px 0 4px;
  border-left: 5px solid var(--teal-2);
}

.selected-cari span {
  color: var(--muted);
  font-weight: 800;
}

.inline-action-note {
  margin-top: 12px;
  border: 1px dashed rgba(15, 118, 110, 0.28);
  border-radius: 14px;
  padding: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  background: linear-gradient(135deg, rgba(236, 253, 245, 0.96), rgba(239, 248, 255, 0.96));
}

.inline-action-note strong,
.inline-action-note span {
  display: block;
}

.inline-action-note strong {
  color: var(--ink);
}

.inline-action-note span {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.5;
}

.invoice-lines {
  margin-top: 14px;
}

.incoming-lines-list,
.expense-line-preview,
.vat-breakdown {
  display: grid;
  gap: 10px;
  margin: 12px 0;
}

.incoming-line-row {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(217, 227, 234, 0.92);
  border-left: 5px solid var(--blue);
  border-radius: 12px;
  background: #ffffff;
  text-align: left;
}

.incoming-line-row.selected {
  border-color: rgba(15, 118, 110, 0.55);
  border-left-color: var(--teal);
  box-shadow: 0 14px 30px rgba(15, 118, 110, 0.12);
}

.incoming-line-row strong,
.incoming-line-row small {
  display: block;
}

.incoming-line-row small {
  margin-top: 4px;
  color: var(--muted);
}

.incoming-line-row em {
  padding: 6px 10px;
  border-radius: 999px;
  font-style: normal;
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.incoming-line-row em.ok {
  color: #047857;
  background: rgba(16, 185, 129, 0.12);
}

.incoming-line-row em.warn {
  color: #b45309;
  background: rgba(245, 158, 11, 0.16);
}

.vat-breakdown,
.expense-line-preview {
  padding: 12px;
  border: 1px solid rgba(217, 227, 234, 0.92);
  border-radius: 14px;
  background: rgba(248, 251, 252, 0.9);
}

.vat-breakdown div,
.expense-line-preview div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.expense-line-preview div {
  grid-template-columns: minmax(0, 1fr) auto;
}

.vat-breakdown span {
  font-weight: 950;
  color: var(--teal);
}

.vat-breakdown em,
.expense-line-preview small {
  color: var(--muted);
  font-style: normal;
  font-weight: 850;
}

.mini-input {
  width: 120px;
}

.small-btn {
  min-height: 34px;
  padding: 0 12px;
  font-size: 12px;
}

.danger-text {
  color: #b42318;
}

.danger-action {
  background: #b42318;
}

.danger-border {
  border-color: rgba(180, 35, 24, 0.38);
  color: #b42318;
}

.row-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.padded {
  padding: 14px;
}

.payload-preview {
  max-height: 260px;
  overflow: auto;
  margin: 12px 0 0;
  padding: 12px;
  border-radius: 12px;
  background: #13212c;
  color: #eaf5f1;
  font-size: 12px;
}

.health-panel {
  background:
    radial-gradient(circle at top right, rgba(15, 118, 110, 0.14), transparent 34%),
    #ffffff;
}

.health-score {
  width: 94px;
  height: 94px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  font-size: 34px;
}

.health-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.health-item {
  min-height: 178px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  background: #ffffff;
  display: grid;
  align-content: space-between;
}

.health-item strong {
  font-size: 34px;
}

.health-item span {
  font-weight: 950;
}

.health-item p {
  color: var(--muted);
  line-height: 1.45;
}

.health-bar {
  height: 9px;
  border-radius: 999px;
  overflow: hidden;
  background: #e8eef2;
}

.health-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--teal-2);
}

.health-item.warn .health-bar i {
  background: var(--amber);
}

.health-item.bad .health-bar i {
  background: var(--rose);
}

.form-error {
  min-height: 22px;
  color: #b42318;
  font-weight: 900;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 180;
  max-width: 420px;
  padding: 14px 16px;
  border-radius: 14px;
  color: #ffffff;
  background: #13212c;
  box-shadow: var(--shadow);
  transform: translateY(18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.login-screen {
  background:
    radial-gradient(circle at 18% 18%, rgba(105, 184, 245, 0.22), transparent 28%),
    linear-gradient(135deg, #061d36, #1d405f 55%, #0d2335);
  padding: 34px;
}

.login-shell {
  position: relative;
  width: min(820px, calc(100vw - 76px));
  min-height: min(1180px, calc(100vh - 76px));
  grid-template-columns: 1fr;
  border: 0;
  border-radius: 64px;
  background: #ffffff;
  box-shadow: 0 34px 90px rgba(3, 17, 31, 0.42);
}

.login-shell::after {
  content: "";
  position: absolute;
  left: -92px;
  right: -92px;
  bottom: -150px;
  height: 300px;
  border-radius: 50% 50% 0 0;
  background: #ff865f;
  pointer-events: none;
}

.login-showcase {
  position: relative;
  min-height: 470px;
  padding: 0;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #ffffff;
}

.login-showcase::before {
  content: "";
  position: absolute;
  left: -130px;
  top: -168px;
  width: 870px;
  height: 510px;
  border-radius: 0 0 70% 62%;
  background: #86c4f4;
}

.login-showcase::after {
  content: "";
  position: absolute;
  right: 90px;
  bottom: 70px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 31%, #69b9f7 33% 48%, transparent 50%),
    conic-gradient(from 0deg, #69b9f7 0 12%, transparent 12% 20%, #69b9f7 20% 32%, transparent 32% 40%, #69b9f7 40% 52%, transparent 52% 60%, #69b9f7 60% 72%, transparent 72% 80%, #69b9f7 80% 92%, transparent 92%);
  opacity: 0.95;
}

.login-showcase h1,
.login-showcase p,
.login-showcase .eyebrow,
.showcase-grid {
  display: none;
}

.product-badge {
  position: relative;
  z-index: 1;
  width: 292px;
  aspect-ratio: 598 / 549;
  display: grid;
  place-items: center;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.dia-login-logo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 28px 34px rgba(42, 88, 151, 0.22));
}

.login-panel {
  position: relative;
  z-index: 1;
  width: min(530px, calc(100% - 116px));
  margin: -10px auto 0;
  padding: 0 0 102px;
  background: transparent;
  align-content: start;
}

.login-tabs {
  margin-bottom: 20px;
  border-radius: 18px;
  background: #edf1f4;
}

.login-tab {
  height: 50px;
  border-radius: 14px;
  font-size: 16px;
}

.login-form h2,
.login-form p {
  display: none;
}

.login-form {
  gap: 16px;
}

.login-form label {
  position: relative;
}

.login-form label span {
  display: none;
}

.login-form label::before {
  position: absolute;
  left: 12px;
  top: 50%;
  z-index: 1;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: #1f2d3a;
  font-size: 22px;
  font-weight: 900;
  transform: translateY(-50%);
}

.login-form label:nth-of-type(1)::before {
  content: "♙";
}

.login-form label:nth-of-type(2)::before {
  content: "✱";
}

.login-form label input {
  height: 56px;
  border: 0;
  border-radius: 15px;
  padding-left: 62px;
  background: #eeeeee;
  color: #050d17;
  font-size: 23px;
  font-weight: 900;
}

.login-form label input::placeholder {
  color: #7a828c;
}

.login-form .primary-btn {
  min-height: 82px;
  margin-top: 30px;
  border-radius: 29px;
  background: #ff855f;
  color: #ffffff;
  font-size: 30px;
  box-shadow: 0 18px 34px rgba(255, 133, 95, 0.28);
}

.login-progress {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  text-align: center;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
}

.login-progress.is-active {
  opacity: 1;
  transform: translateY(0);
}

.login-progress-text {
  min-height: 24px;
  color: #07831b;
  font-size: 18px;
  font-weight: 800;
}

.login-progress-track {
  position: relative;
  width: min(100%, 430px);
  height: 28px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 133, 95, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 133, 95, 0.22);
}

.login-progress-bar {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff6b3b, #ff8617);
  box-shadow: 0 10px 26px rgba(255, 117, 47, 0.28);
  transition: width 260ms ease;
}

.login-progress-percent {
  width: min(100%, 430px);
  height: 0;
  margin: -32px auto 22px;
  color: #ffffff;
  font-size: 22px;
  font-weight: 900;
  line-height: 28px;
  pointer-events: none;
  text-shadow: 0 1px 4px rgba(72, 34, 12, 0.25);
}

.login-footer-brand {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 34px;
  z-index: 1;
  color: #ffffff;
  font-size: 21px;
  font-weight: 950;
  text-align: center;
}

.customer-desktop-shell {
  display: block;
  min-height: 100vh;
  background: #e8edf3;
}

.customer-desktop-shell .sidebar {
  display: none;
}

.customer-desktop-shell .main {
  min-height: 100vh;
  padding: 0;
  background: #e8edf3;
}

.customer-desktop-shell .topbar {
  min-height: 35px;
  margin: 0;
  padding: 0 8px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #ffffff;
  background: #2d415b;
  border-bottom: 1px solid #9fb0c3;
}

.customer-desktop-shell .topbar > div:first-child {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
}

.customer-desktop-shell .topbar > div:first-child::before {
  content: "dia";
  min-width: 55px;
  height: 29px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background:
    linear-gradient(180deg, #3169b1 0 calc(100% - 4px), #f58b11 calc(100% - 4px) 100%);
  color: #ffffff;
  font-size: 20px;
  font-weight: 950;
  line-height: 1;
  text-transform: lowercase;
}

.customer-desktop-shell #topEyebrow {
  color: #b7dbff;
  text-transform: uppercase;
  font-size: 12px;
}

.customer-desktop-shell #pageTitle {
  margin: 0;
  color: #ffffff;
  font-size: 17px;
  line-height: 1;
}

.customer-desktop-shell .top-actions {
  margin-left: auto;
  gap: 8px;
}

.customer-desktop-shell .top-home-btn {
  display: inline-flex;
}

.customer-desktop-shell .soft-btn,
.customer-desktop-shell .icon-btn {
  min-height: 28px;
  height: 28px;
  border-radius: 8px;
  background: #f8fbff;
  color: #142230;
}

.customer-desktop-shell .tenant-select {
  display: none;
}

.view-tabs {
  display: none;
}

.view-tabs.is-hidden {
  display: none;
}

.customer-desktop-shell .view-tabs {
  display: block;
  padding: 0 10px;
  border-bottom: 1px solid #b7c4d1;
  background: linear-gradient(180deg, #e5ecf3, #d7e0ea);
}

.view-tabs-strip {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  overflow-x: auto;
  padding: 6px 0 0;
}

.view-tab {
  min-width: 0;
  max-width: 290px;
  min-height: 35px;
  border: 1px solid #9fb0c3;
  border-bottom: 0;
  border-radius: 11px 11px 0 0;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  background: linear-gradient(180deg, #f0f4f8, #d8e2ec);
  color: #27405b;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.view-tab.active {
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  color: #132a44;
}

.view-tab-icon {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  color: #3c6fb1;
}

.view-tab-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.view-tab strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.view-tab-close {
  margin-left: auto;
  color: #7b8898;
  font-size: 19px;
  line-height: 1;
}

.customer-desktop-shell .view:not(#dashboard).active-view {
  min-height: calc(100vh - 74px);
  padding: 28px;
}

.customer-desktop-shell #dashboard.active-view {
  gap: 0;
}

.dia-desktop {
  position: relative;
  min-height: calc(100vh - 74px);
  padding: 42px 10px 350px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), transparent 26%),
    #e8edf3;
  overflow: hidden;
}

.dia-search-row {
  width: min(780px, calc(100% - 28px));
  margin: 0 auto 36px;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 48px 48px 48px;
  align-items: center;
  gap: 12px;
}

.dia-search-field {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.dia-search-field span {
  color: #132a44;
  font-size: 18px;
  text-align: right;
  text-transform: none;
}

.dia-search-field input {
  height: 50px;
  border: 1px solid #94b8db;
  border-radius: 12px;
  background: #ffffff;
  font-size: 20px;
}

.dia-tool-button {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: transparent;
  color: #1a314c;
}

.dia-tool-button svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.search-tool {
  color: #1490d1;
}

.delete-tool {
  color: #d11f1f;
}

.favorite-tool {
  color: #efb734;
}

.dia-module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(126px, 1fr));
  gap: 30px 22px;
  align-items: start;
  padding: 0 28px 34px;
}

.desktop-module {
  min-height: 118px;
  border: 0;
  padding: 0;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 8px;
  background: transparent;
  color: #183451;
  text-align: center;
}

.desktop-module.is-filtered-out {
  display: none;
}

.desktop-module.selected .desktop-module-icon,
.dia-pane-item.selected span {
  outline: 3px solid rgba(57, 117, 215, 0.32);
  outline-offset: 3px;
  background: linear-gradient(180deg, #ffffff, #e8f3ff);
}

.desktop-module-icon {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  border: 1px solid #c5d3df;
  background: linear-gradient(180deg, #ffffff, #f3f7fb);
  box-shadow: 0 14px 24px rgba(29, 53, 79, 0.12);
}

.desktop-module-icon svg {
  width: 54px;
  height: 54px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.75;
}

.desktop-module strong {
  max-width: 130px;
  color: #203955;
  font-size: 16px;
  line-height: 1.18;
}

.desktop-module.tone-teal .desktop-module-icon { color: #0f766e; }
.desktop-module.tone-blue .desktop-module-icon { color: #3975d7; }
.desktop-module.tone-amber .desktop-module-icon { color: #d58512; }
.desktop-module.tone-rose .desktop-module-icon { color: #bf3f63; }
.desktop-module.tone-green .desktop-module-icon { color: #1f9a66; }

.dia-favorite-dock {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 38px;
  z-index: 8;
  transform: translateY(calc(-1 * var(--pane-offset, 0px)));
}

.dia-pane-handle {
  width: 44px;
  height: 24px;
  margin: 0 auto 8px;
  border: 2px solid #24394f;
  border-radius: 5px;
  display: grid;
  grid-template-columns: repeat(3, 5px);
  place-content: center;
  gap: 4px;
  background: #f8fafc;
  cursor: ns-resize;
  box-shadow: 0 6px 16px rgba(31, 52, 77, 0.16);
}

.dia-pane-handle span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #596f86;
}

.dia-bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  padding: 0 8px;
}

.dia-pane {
  height: clamp(230px, 24vh, 320px);
  min-height: 230px;
  border: 1px solid #9caebe;
  border-radius: 8px;
  background: #edf2f7;
  overflow: hidden;
}

.dia-pane header {
  min-height: 39px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 12px;
  color: #ffffff;
  background: #49668a;
  font-size: 18px;
}

.dia-pane header small {
  color: #ffd9d9;
  font-size: 12px;
  font-weight: 900;
}

.dia-pane.delete-mode {
  border-color: #d11f1f;
  box-shadow: 0 0 0 2px rgba(209, 31, 31, 0.12);
}

.dia-pane.delete-mode .dia-pane-item {
  color: #a41919;
  cursor: pointer;
}

.dia-pane-list {
  display: grid;
  gap: 0;
  padding: 8px 10px;
}

.dia-empty-pane {
  min-height: 42px;
  display: flex;
  align-items: center;
  color: #62768c;
  font-size: 14px;
  font-weight: 850;
}

.dia-pane-item {
  min-height: 35px;
  border: 0;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #25425f;
  text-align: left;
}

.dia-pane-item span {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border: 1px solid #c8d4df;
  border-radius: 4px;
  background: #ffffff;
  color: #3975d7;
}

.dia-pane-item svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.dia-pane-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
}

.dia-pane-summary div {
  min-height: 58px;
  padding: 8px;
  border: 1px solid #d4dee7;
  border-radius: 8px;
  background: #ffffff;
}

.dia-pane-summary span,
.dia-pane-summary strong {
  display: block;
}

.dia-pane-summary span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.dia-pane-summary strong {
  margin-top: 5px;
  overflow-wrap: anywhere;
  color: #132a44;
  font-size: 14px;
}

.dia-statusbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  min-height: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  border-top: 1px solid #b7c4d1;
  background: #f8fafc;
  color: #1f344d;
  font-size: 14px;
}

.dia-statusbar strong {
  color: #1f344d;
}

.dia-statusbar em {
  margin-left: auto;
  color: #61758a;
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
}

@media (max-width: 1180px) {
  .app-shell,
  .login-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
  }

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

  .side-card {
    margin-top: 0;
  }

  .metric-grid,
  .grid-two,
  .workflow-layout,
  .recurring-layout,
  .gib-archive-layout,
  .form-grid,
  .company-grid,
  .module-grid,
  .sales-board,
  .health-grid,
  .vat-option-grid,
  .month-strip,
  .gib-range-shortcuts,
  .inventory-toolbar,
  .inventory-screen-grid,
  .incoming-studio-top,
  .incoming-studio-main,
  .incoming-control-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .incoming-command-panel .primary-btn,
  .incoming-search-field {
    grid-column: 1 / -1;
  }

  .incoming-board-detail {
    position: static;
  }

  .incoming-modal-body .single-column-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .incoming-hero-main,
  .incoming-hero-meta {
    align-items: stretch;
    flex-direction: column;
  }

  .incoming-hero-meta div,
  .incoming-hero-meta .incoming-total-box {
    min-width: 0;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .incoming-vat-dashboard {
    grid-template-columns: 1fr;
  }

  .incoming-studio-top {
    grid-template-columns: 1fr;
  }

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

  .inventory-entry-panel {
    grid-template-columns: 1fr;
  }

  .inventory-summary-panel {
    position: static;
  }
}

@media (max-width: 760px) {
  .login-screen,
  .main {
    padding: 16px;
  }

  .login-showcase,
  .login-panel {
    padding: 24px;
  }

  .login-showcase h1 {
    font-size: 32px;
  }

  .topbar,
  .panel-head,
  .hero-band {
    align-items: stretch;
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .top-actions,
  .button-row,
  .tenant-select,
  .primary-btn,
  .soft-btn,
  .inline-field {
    width: 100%;
  }

  .metric-grid,
  .grid-two,
  .workflow-layout,
  .recurring-layout,
  .gib-archive-layout,
  .form-grid,
  .company-grid,
  .module-grid,
  .action-grid,
  .sales-board,
  .health-grid,
  .module-strip,
  .showcase-grid,
  .vat-option-grid,
  .month-strip,
  .gib-range-shortcuts,
  .inventory-toolbar,
  .inventory-screen-grid,
  .inventory-manual-search,
  .nav {
    grid-template-columns: 1fr;
  }

  .barcode-entry {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .span-2,
  .span-3 {
    grid-column: span 1;
  }

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

  .field-row,
  .selected-cari {
    grid-template-columns: 1fr;
  }

  .search-input {
    min-width: 0;
  }

  .invoice-command-bar,
  .invoice-search-wrap,
  .year-switcher {
    align-items: stretch;
    flex-direction: column;
  }

  h1 {
    font-size: 28px;
  }
}

@media (max-width: 1180px) {
  .document-layout {
    grid-template-columns: 1fr;
  }

  .incoming-approval-panel .single-column-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .login-shell {
    width: min(820px, calc(100vw - 44px));
    min-height: min(1060px, calc(100vh - 44px));
  }

  .login-showcase {
    min-height: 410px;
  }

  .product-badge {
    width: 250px;
    aspect-ratio: 598 / 549;
  }

  .login-panel {
    width: min(540px, calc(100% - 104px));
  }

  .dia-module-grid {
    grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
    gap: 24px 16px;
  }

  .dia-bottom-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .login-shell {
    width: min(100%, 560px);
    min-height: 760px;
    border-radius: 32px;
  }

  .login-shell::after {
    bottom: -150px;
    height: 235px;
  }

  .login-showcase {
    min-height: 320px;
    padding: 0;
  }

  .login-showcase::before {
    left: -150px;
    top: -178px;
    width: 620px;
    height: 390px;
  }

  .login-showcase::after {
    right: 42px;
    bottom: 46px;
  }

  .incoming-control-grid,
  .incoming-studio-top,
  .incoming-studio-main,
  .incoming-studio-metrics,
  .incoming-command-panel,
  .incoming-modal-body .single-column-form,
  .incoming-vat-table-head,
  .incoming-vat-row,
  .incoming-approval-panel .single-column-form {
    grid-template-columns: 1fr;
  }

  .modal-backdrop {
    padding: 10px;
  }

  .incoming-modal-window {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
    border-radius: 18px;
  }

  .incoming-modal-head {
    align-items: stretch;
    flex-direction: column;
  }

  .incoming-studio-title {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .incoming-studio-title h2 {
    font-size: 24px;
  }

  .incoming-command-panel .primary-btn,
  .incoming-search-field {
    grid-column: auto;
  }

  .incoming-search-bar {
    max-width: none;
  }

  .incoming-search-bar .search-input {
    min-width: 0;
  }

  .product-badge {
    width: 190px;
    aspect-ratio: 598 / 549;
  }

  .login-panel {
    width: calc(100% - 52px);
    margin-top: -12px;
    padding: 0 0 82px;
  }

  .login-form label input {
    font-size: 17px;
  }

  .login-form .primary-btn {
    min-height: 66px;
    border-radius: 22px;
    font-size: 21px;
  }

  .login-footer-brand {
    bottom: 25px;
    font-size: 15px;
  }

  .customer-desktop-shell .topbar {
    min-height: auto;
    padding: 8px;
    align-items: stretch;
  }

  .customer-desktop-shell .main {
    padding: 0;
  }

  .customer-desktop-shell .topbar > div:first-child {
    flex-wrap: wrap;
  }

  .customer-desktop-shell .top-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .customer-desktop-shell .top-actions .soft-btn,
  .customer-desktop-shell .top-actions .icon-btn {
    width: auto;
  }

  .dia-desktop {
    padding: 22px 10px 52px;
    overflow: visible;
  }

  .dia-search-row {
    width: 100%;
    margin-bottom: 22px;
    grid-template-columns: 1fr 42px 42px 42px;
    gap: 8px;
  }

  .dia-search-field {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .dia-search-field span {
    text-align: left;
  }

  .dia-module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 12px;
    padding: 0 0 26px;
  }

  .desktop-module-icon {
    width: 74px;
    height: 74px;
  }

  .desktop-module-icon svg {
    width: 48px;
    height: 48px;
  }

  .dia-bottom-grid {
    padding: 0;
  }

  .dia-favorite-dock {
    position: static;
    transform: none;
  }

  .dia-pane-summary {
    grid-template-columns: 1fr;
  }

  .dia-statusbar {
    position: static;
    flex-wrap: wrap;
    padding: 7px 10px;
  }

  .dia-statusbar em {
    margin-left: 0;
  }
}

/* Kurumsal 2026 final override - en son katman */
:root {
  --cb-bg: #f3f7fb;
  --cb-surface: #ffffff;
  --cb-border: #dfe8f1;
  --cb-border-strong: #c8d7e4;
  --cb-text: #0f1e32;
  --cb-muted: #607389;
  --cb-teal: #078b7f;
  --cb-teal-2: #0fa391;
  --cb-blue: #2f73da;
  --cb-amber: #f5a524;
  --cb-red: #d63a60;
  --cb-shadow: 0 20px 54px rgba(15, 30, 50, 0.08);
  --cb-shadow-soft: 0 12px 30px rgba(15, 30, 50, 0.06);
}

html,
body {
  color: var(--cb-text);
  background: radial-gradient(circle at 8% 8%, rgba(7, 139, 127, 0.10), transparent 30%), radial-gradient(circle at 88% 0%, rgba(47, 115, 218, 0.08), transparent 28%), linear-gradient(180deg, #f8fbfd 0%, #eef5f9 52%, #f7f9fb 100%) !important;
}

.app-shell,
.customer-desktop-shell {
  grid-template-columns: 92px minmax(0, 1fr) !important;
  background: transparent !important;
}

.sidebar,
.customer-desktop-shell .sidebar {
  width: 92px !important;
  padding: 18px 12px !important;
  align-items: center !important;
  background: rgba(255, 255, 255, 0.94) !important;
  border-right: 1px solid var(--cb-border) !important;
  box-shadow: 12px 0 34px rgba(15, 30, 50, 0.05) !important;
  color: var(--cb-text) !important;
}

.brand,
.customer-desktop-shell .brand {
  width: 64px !important;
  min-height: 64px !important;
  padding: 0 !important;
  justify-content: center !important;
  border: 0 !important;
  border-radius: 18px !important;
  background: transparent !important;
  box-shadow: none !important;
}

.brand > div:not(.brand-mark),
.nav-item span:not(.nav-icon),
.customer-desktop-shell .nav-item span:not(.nav-icon),
.side-card > div {
  display: none !important;
}

.brand-mark {
  width: 46px !important;
  height: 46px !important;
  border-radius: 15px !important;
  background: linear-gradient(135deg, var(--cb-teal), #0f5f83) !important;
  color: #fff !important;
  box-shadow: 0 16px 28px rgba(7, 139, 127, 0.22) !important;
}

.nav,
.customer-desktop-shell .nav {
  width: 100% !important;
  gap: 14px !important;
  padding: 6px 0 !important;
  align-items: center !important;
}

.nav-item,
.customer-desktop-shell .nav-item {
  width: 56px !important;
  min-height: 56px !important;
  grid-template-columns: 1fr !important;
  padding: 0 !important;
  justify-items: center !important;
  border: 1px solid transparent !important;
  border-radius: 15px !important;
  background: transparent !important;
  color: #53667b !important;
  box-shadow: none !important;
}

.nav-icon,
.customer-desktop-shell .nav-icon {
  width: 56px !important;
  height: 56px !important;
  border-radius: 15px !important;
  background: transparent !important;
  color: currentColor !important;
}

.nav-icon svg {
  width: 25px !important;
  height: 25px !important;
}

.nav-item:hover,
.nav-item.active,
.customer-desktop-shell .nav-item:hover,
.customer-desktop-shell .nav-item.active {
  color: #fff !important;
  background: linear-gradient(135deg, var(--cb-teal), var(--cb-teal-2)) !important;
  border-color: rgba(7, 139, 127, 0.22) !important;
  box-shadow: 0 18px 32px rgba(7, 139, 127, 0.25) !important;
}

.side-card,
.customer-desktop-shell .side-card {
  width: 56px !important;
  min-height: 56px !important;
  margin-top: auto !important;
  padding: 0 !important;
  justify-content: center !important;
  border: 1px solid var(--cb-border) !important;
  border-radius: 16px !important;
  background: #fff !important;
  box-shadow: var(--cb-shadow-soft) !important;
}

.main,
.customer-desktop-shell .main {
  min-height: 100vh !important;
  padding: 0 !important;
  background: transparent !important;
}

.topbar,
.customer-desktop-shell .topbar {
  position: sticky !important;
  top: 0 !important;
  z-index: 40 !important;
  min-height: 72px !important;
  margin: 0 !important;
  padding: 0 34px !important;
  color: var(--cb-text) !important;
  background: rgba(255, 255, 255, 0.92) !important;
  border-bottom: 1px solid var(--cb-border) !important;
  backdrop-filter: blur(18px) !important;
}

.customer-desktop-shell .topbar > div:first-child {
  position: relative !important;
  gap: 18px !important;
}

.customer-desktop-shell .topbar > div:first-child::before {
  content: "ÇETİN BİLİŞİM" !important;
  min-width: 164px !important;
  height: 38px !important;
  display: inline-flex !important;
  align-items: center !important;
  padding-left: 38px !important;
  color: var(--cb-text) !important;
  font-size: 14px !important;
  font-weight: 950 !important;
}

.customer-desktop-shell .topbar > div:first-child::after {
  content: "" !important;
  position: absolute !important;
  left: 2px !important;
  width: 24px !important;
  height: 24px !important;
  border-radius: 7px !important;
  background: linear-gradient(135deg, #0f5f83 0 46%, transparent 46%), linear-gradient(45deg, var(--cb-teal) 0 52%, #12b1a2 52%) !important;
  transform: rotate(-45deg) !important;
}

#pageTitle {
  color: var(--cb-text) !important;
  font-size: 17px !important;
  font-weight: 950 !important;
}

#topEyebrow {
  color: var(--cb-muted) !important;
}

.top-actions {
  margin-left: auto !important;
}

.view.active-view {
  width: min(100%, 1780px) !important;
  margin: 0 auto !important;
  padding: 32px !important;
}

button,
input,
select,
textarea,
.search-input {
  letter-spacing: 0 !important;
}

input,
select,
textarea,
.search-input {
  border-color: var(--cb-border-strong) !important;
  border-radius: 12px !important;
  background: #fff !important;
  color: var(--cb-text) !important;
}

.primary-btn {
  border: 0 !important;
  border-radius: 13px !important;
  background: linear-gradient(135deg, var(--cb-teal), var(--cb-teal-2)) !important;
  color: #fff !important;
  box-shadow: 0 18px 34px rgba(7, 139, 127, 0.25) !important;
}

.soft-btn,
.icon-btn,
.row-action {
  border: 1px solid var(--cb-border) !important;
  border-radius: 12px !important;
  background: #fff !important;
  color: var(--cb-text) !important;
  box-shadow: var(--cb-shadow-soft) !important;
}

.panel,
.metric-card,
.sales-card,
.module-card,
.company-card,
.prepared-card,
.template-card,
.stock-pick-card,
.search-result-card,
.result-box,
.table-wrap {
  border-color: var(--cb-border) !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: var(--cb-shadow-soft) !important;
}

.dia-desktop {
  min-height: calc(100vh - 72px) !important;
  padding: 42px 34px 330px !important;
  background: radial-gradient(circle at 10% 10%, rgba(7, 139, 127, 0.08), transparent 30%), var(--cb-bg) !important;
}

.dia-search-row {
  width: min(730px, calc(100% - 28px)) !important;
  margin: 0 auto 44px !important;
  align-items: center !important;
}

.dia-module-grid {
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)) !important;
  gap: 34px 26px !important;
  padding: 0 18px 36px !important;
}

.desktop-module-icon {
  width: 78px !important;
  height: 78px !important;
  border-color: var(--cb-border) !important;
  border-radius: 18px !important;
  background: linear-gradient(180deg, #fff, #f8fbfd) !important;
  box-shadow: 0 14px 28px rgba(15, 30, 50, 0.10) !important;
}

.desktop-module:hover .desktop-module-icon,
.desktop-module.selected .desktop-module-icon {
  transform: translateY(-2px) !important;
  border-color: rgba(7, 139, 127, 0.36) !important;
  box-shadow: 0 20px 38px rgba(7, 139, 127, 0.15) !important;
}

.desktop-module strong {
  color: var(--cb-text) !important;
  font-size: 15px !important;
}

.dia-favorite-dock {
  bottom: max(26px, calc(16px + var(--pane-offset, 0px))) !important;
}

.dia-pane {
  border: 1px solid var(--cb-border-strong) !important;
  border-radius: 16px !important;
  background: rgba(255, 255, 255, 0.9) !important;
  box-shadow: var(--cb-shadow) !important;
}

.dia-pane header {
  color: #fff !important;
  background: linear-gradient(135deg, #315f91, #244564) !important;
  border-bottom: 0 !important;
}

.dia-statusbar {
  border-top: 1px solid var(--cb-border) !important;
  background: rgba(255, 255, 255, 0.96) !important;
  color: var(--cb-text) !important;
  backdrop-filter: blur(10px) !important;
}

.incoming-studio {
  width: min(100%, 1720px) !important;
  gap: 22px !important;
}

.incoming-studio-top {
  min-height: 158px !important;
  grid-template-columns: minmax(470px, 1fr) minmax(680px, 0.92fr) !important;
  gap: 24px !important;
  padding: 30px 28px !important;
  border: 1px solid var(--cb-border) !important;
  border-top: 5px solid var(--cb-teal) !important;
  border-radius: 22px !important;
  background: linear-gradient(135deg, #fff, #f8fbfd) !important;
  box-shadow: var(--cb-shadow) !important;
}

.incoming-studio-title > div {
  position: relative !important;
  padding-left: 72px !important;
}

.incoming-studio-title > div::before {
  content: "" !important;
  width: 52px !important;
  height: 52px !important;
  position: absolute !important;
  left: 0 !important;
  top: 5px !important;
  border: 1px solid #dbe8f1 !important;
  border-radius: 16px !important;
  background: linear-gradient(135deg, rgba(7, 139, 127, 0.13), rgba(47, 115, 218, 0.08)), #fff !important;
  box-shadow: 0 12px 25px rgba(15, 30, 50, 0.07) !important;
}

.incoming-studio-title > div::after {
  content: "" !important;
  width: 25px !important;
  height: 25px !important;
  position: absolute !important;
  left: 14px !important;
  top: 19px !important;
  border: 2px solid var(--cb-teal) !important;
  border-radius: 4px !important;
  box-shadow: inset 0 -7px 0 rgba(7, 139, 127, 0.15) !important;
}

.incoming-studio-title h2 {
  font-size: clamp(27px, 1.75vw, 36px) !important;
  letter-spacing: 0 !important;
}

.incoming-studio-title p:last-child {
  margin-top: 12px !important;
  max-width: 760px !important;
  color: var(--cb-muted) !important;
  font-weight: 750 !important;
  line-height: 1.55 !important;
}

.incoming-studio-metrics {
  grid-template-columns: repeat(4, minmax(145px, 1fr)) !important;
  gap: 14px !important;
}

.incoming-metric-card {
  min-height: 116px !important;
  grid-template-columns: 52px minmax(0, 1fr) !important;
  gap: 14px !important;
  padding: 18px !important;
  border-radius: 18px !important;
  background: #fff !important;
  box-shadow: var(--cb-shadow-soft) !important;
}

.incoming-metric-icon {
  width: 52px !important;
  height: 52px !important;
  border-radius: 17px !important;
}

.incoming-studio-metrics strong {
  font-size: clamp(24px, 1.45vw, 32px) !important;
}

.incoming-command-panel {
  grid-template-columns: 170px 170px 180px minmax(330px, 1fr) 310px !important;
  gap: 16px !important;
  padding: 26px !important;
  border: 1px solid var(--cb-border) !important;
  border-top: 5px solid var(--cb-amber) !important;
  border-radius: 22px !important;
  background: #fff !important;
  box-shadow: var(--cb-shadow) !important;
}

.incoming-command-panel .danger-soft {
  grid-column: 1 / span 1 !important;
  width: 100% !important;
}

.incoming-system-note {
  min-height: 62px !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  border: 1px solid #cfe4ff !important;
  border-left: 5px solid var(--cb-blue) !important;
  border-radius: 18px !important;
  background: linear-gradient(90deg, #f4f9ff, #fff) !important;
  box-shadow: var(--cb-shadow-soft) !important;
}

.incoming-board {
  padding: 22px !important;
  border: 1px solid var(--cb-border) !important;
  border-radius: 22px !important;
  background: #fff !important;
  box-shadow: var(--cb-shadow) !important;
}

.incoming-board-list {
  border-top: 5px solid var(--cb-blue) !important;
}

.incoming-board-head h3 {
  font-size: 25px !important;
}

.title-icon {
  width: 42px !important;
  height: 42px !important;
  padding: 10px !important;
  border-radius: 15px !important;
  background: linear-gradient(135deg, var(--cb-teal), var(--cb-blue)) !important;
}

.th-icon {
  width: 22px !important;
  height: 22px !important;
  margin-right: 8px !important;
  padding: 4px !important;
  border-radius: 7px !important;
  color: var(--cb-blue) !important;
  background: #eef5ff !important;
  vertical-align: middle !important;
}

.incoming-board-head > span:not(.status-chip) {
  padding: 9px 14px !important;
  color: #2f66b6 !important;
  background: #edf5ff !important;
  border-radius: 999px !important;
  font-weight: 950 !important;
}

.incoming-queue-table {
  max-height: 620px !important;
  border-radius: 18px !important;
}

.incoming-queue-table .invoice-table th,
.compact-history-table .invoice-table th {
  height: 54px !important;
  background: #f5f9fc !important;
  color: #5a6e83 !important;
}

.incoming-queue-table .invoice-table td {
  padding-top: 20px !important;
  padding-bottom: 20px !important;
}

.invoice-table tr:hover td {
  background: #f8fbfd !important;
}

.amount {
  color: var(--cb-red) !important;
}

.status-chip {
  border-radius: 999px !important;
  padding: 9px 13px !important;
  font-weight: 950 !important;
}

.row-action {
  min-height: 42px !important;
  padding: 0 18px !important;
  background: #0f1e32 !important;
  color: #fff !important;
  border-color: #0f1e32 !important;
}

.incoming-modal-window {
  border-radius: 24px !important;
}

.incoming-invoice-hero {
  background: radial-gradient(circle at 88% 65%, rgba(10, 163, 146, 0.52), transparent 22%), linear-gradient(135deg, #0f2338, #143d59 58%, #0b6271) !important;
}

@media (max-width: 1280px) {
  .incoming-studio-top,
  .incoming-command-panel {
    grid-template-columns: 1fr !important;
  }

  .incoming-studio-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  .app-shell,
  .customer-desktop-shell {
    grid-template-columns: 1fr !important;
  }

  .sidebar,
  .customer-desktop-shell .sidebar {
    position: static !important;
    width: auto !important;
    height: auto !important;
    flex-direction: row !important;
    padding: 10px !important;
    overflow-x: auto !important;
  }

  .nav,
  .customer-desktop-shell .nav {
    display: flex !important;
    width: auto !important;
  }

  .topbar,
  .customer-desktop-shell .topbar {
    padding: 10px 14px !important;
  }

  .view.active-view {
    padding: 16px !important;
  }

  .incoming-studio-metrics {
    grid-template-columns: 1fr !important;
  }
}

/* Final login guard - corporate layer */
.customer-program-mode .login-tabs,
.customer-program-mode #adminLoginForm {
  display: none !important;
}

.login-form .remember-row,
.remember-row {
  min-height: auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  padding: 0 !important;
  margin: -4px 0 8px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #1f3448 !important;
  font-size: 15px !important;
  font-weight: 850 !important;
}

.login-form .remember-row::before,
.remember-row::before {
  display: none !important;
}

.login-form .remember-row input[type="checkbox"],
.remember-row input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  flex: 0 0 auto !important;
  margin: 0 !important;
  accent-color: var(--cb-teal, #0a9d8f) !important;
}

.login-form .remember-row span,
.remember-row span {
  color: #1f3448 !important;
  font-size: 15px !important;
  font-weight: 850 !important;
}
/* Must stay last: remove rejected customer desktop blocks */
.customer-desktop-shell .top-brand-block,
.customer-desktop-shell .topbar > div:first-child::before,
.customer-desktop-shell .topbar > div:first-child::after,
.dia-favorite-dock,
.dia-pane-handle,
.dia-bottom-grid {
  display: none !important;
  content: none !important;
}

/* Final correction: keep DİA identity visible in customer header */
.customer-desktop-shell .topbar {
  grid-template-columns: auto minmax(220px, 1fr) auto !important;
}

.customer-desktop-shell .top-brand-block {
  display: flex !important;
  min-width: 260px !important;
}

.customer-desktop-shell .top-brand-block .top-brand-logo img {
  display: block !important;
  width: 42px !important;
  height: 42px !important;
  object-fit: contain !important;
}

.customer-desktop-shell .top-brand-block strong {
  color: #102236 !important;
  font-weight: 950 !important;
}

.customer-desktop-shell .top-brand-block span {
  color: #587085 !important;
  font-weight: 800 !important;
}

.dia-favorite-dock,
.dia-pane-handle,
.dia-bottom-grid {
  display: none !important;
  content: none !important;
}
