:root {
  color-scheme: light;
  --bg: #eef3f1;
  --ink: #121821;
  --muted: #6a7280;
  --panel: rgba(255, 255, 255, 0.82);
  --panel-strong: #ffffff;
  --dark: #0d1420;
  --dark-2: #151e2b;
  --line: rgba(18, 24, 33, 0.1);
  --green: #79f2a6;
  --mint: #45d6b2;
  --blue: #37a8ff;
  --violet: #8d7cff;
  --coral: #ff876d;
  --danger: #df3f51;
  --shadow: 0 24px 80px rgba(28, 44, 58, 0.14);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Tahoma, Arial, sans-serif;
  background:
    radial-gradient(circle at 18% 12%, rgba(121, 242, 166, 0.28), transparent 26rem),
    radial-gradient(circle at 82% 0%, rgba(141, 124, 255, 0.2), transparent 24rem),
    linear-gradient(135deg, #f7faf8 0%, var(--bg) 45%, #e9edf6 100%);
  color: var(--ink);
}

body.modal-open {
  overflow: hidden;
}

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

button,
input,
select {
  font: inherit;
}

.sidebar {
  position: fixed;
  inset: 24px 24px 24px auto;
  width: 245px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(16, 29, 42, 0.96), rgba(5, 12, 22, 0.94));
  box-shadow: var(--shadow);
  color: #fff;
  z-index: 20;
}

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

.brand-mark,
.user-chip b {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 16px;
  background: linear-gradient(145deg, var(--green), var(--mint));
  color: #07120f;
  font-weight: 800;
}

.brand strong {
  display: block;
  font-size: 15px;
}

.brand small {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
}

.nav {
  display: grid;
  gap: 8px;
}

.nav a,
.ghost-button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px 12px;
  border-radius: 18px;
  color: rgba(255, 255, 255, 0.78);
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav a.active,
.nav a:hover {
  color: #06130f;
  background: linear-gradient(135deg, #fff, var(--green));
}

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

.nav-badge {
  position: absolute;
  top: 4px;
  left: 8px;
  display: grid;
  place-items: center;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(223, 63, 81, 0.32);
}

.logout-form {
  margin-top: auto;
}

.ghost-button {
  width: 100%;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.shell {
  margin-right: 292px;
  padding: 26px 28px 42px;
}

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

.currency-switcher {
  margin-inline-start: auto;
}

.currency-switcher label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 6px 10px 6px 6px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 12px 32px rgba(28, 44, 58, 0.08);
}

.currency-switcher select {
  min-width: 128px;
  min-height: 32px;
  padding: 4px 10px;
  border: 0;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
}

.live-refresh {
  position: sticky;
  top: 12px;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(69, 214, 178, 0.34);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 46px rgba(28, 44, 58, 0.12);
  color: var(--ink);
  font-weight: 900;
}

.live-refresh button {
  min-height: 34px;
  padding: 6px 14px;
  border: 0;
  border-radius: 12px;
  background: var(--dark);
  color: #fff;
  cursor: pointer;
  font-weight: 900;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--mint);
  font-weight: 700;
  font-size: 13px;
}

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

.topbar h1,
.login-card h1 {
  margin-bottom: 0;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: 0;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 8px 8px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.stat-card,
.panel,
.login-card {
  border: 1px solid rgba(255, 255, 255, 0.78);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.stat-card {
  min-height: 154px;
  padding: 22px;
  border-radius: 26px;
  overflow: hidden;
  position: relative;
}

.stat-card.gradient {
  background:
    linear-gradient(135deg, rgba(121, 242, 166, 0.95), rgba(215, 255, 127, 0.8)),
    #c7f98b;
}

.stat-card.net-card {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(121, 242, 166, 0.24)),
    var(--panel);
}

.stat-card.gradient::after {
  content: "";
  position: absolute;
  inset: auto -40px -70px auto;
  width: 180px;
  height: 180px;
  border-radius: 55px;
  transform: rotate(28deg);
  background: rgba(255, 255, 255, 0.28);
}

.stat-card span,
.section-title span,
.hint,
.empty-inline {
  color: var(--muted);
}

.stat-card strong {
  display: block;
  margin: 14px 0 8px;
  font-size: clamp(26px, 4vw, 42px);
}

.stat-card small {
  color: rgba(18, 24, 33, 0.64);
}

.dashboard-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.85fr;
  gap: 16px;
}

.currency-dashboard-section {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.currency-dashboard-section > .section-title {
  margin-bottom: 14px;
}

.panel {
  padding: 20px;
  border-radius: 26px;
}

.panel.employees-profit {
  grid-column: 1 / -1;
}

.profit-breakdown {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(220px, 300px) 1fr;
  align-items: center;
  gap: 18px;
}

.profit-breakdown .section-title {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

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

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

.section-title h2 {
  margin-bottom: 0;
  font-size: 20px;
}

.bar-chart {
  height: 260px;
  display: flex;
  align-items: end;
  gap: 16px;
  padding-top: 16px;
}

.bar-chart div {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: center;
  gap: 10px;
}

.bar-chart i {
  width: 100%;
  min-height: 8px;
  border-radius: 18px 18px 6px 6px;
  background: linear-gradient(180deg, var(--violet), var(--blue));
}

.bar-chart span {
  color: var(--muted);
  font-size: 12px;
}

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

.ring-row {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 74px;
}

.ring-row b {
  --p: 60;
  display: grid;
  place-items: center;
  flex: 0 0 62px;
  height: 62px;
  border-radius: 50%;
  background:
    radial-gradient(circle, var(--panel-strong) 53%, transparent 54%),
    conic-gradient(var(--blue) calc(var(--p) * 1%), rgba(18, 24, 33, 0.08) 0);
}

.ring-row span,
.employee-card b {
  display: grid;
  gap: 4px;
}

.ring-row small,
.employee-card span {
  color: var(--muted);
  font-size: 12px;
}

.profit-donut {
  --net: 120deg;
  --employee: 240deg;
  width: min(260px, 100%);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  justify-self: center;
  border-radius: 50%;
  background:
    radial-gradient(circle, var(--panel-strong) 0 54%, transparent 55%),
    conic-gradient(var(--green) 0 var(--net), var(--violet) var(--net) var(--employee), var(--coral) var(--employee) 360deg);
  box-shadow: 0 20px 60px rgba(28, 44, 58, 0.12);
  text-align: center;
}

.profit-donut strong,
.profit-donut span {
  grid-area: 1 / 1;
}

.profit-donut strong {
  align-self: center;
  margin-top: -16px;
  font-size: 24px;
}

.profit-donut span {
  align-self: center;
  margin-top: 38px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

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

.breakdown-list span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
  color: #323b48;
  font-weight: 800;
}

.breakdown-list i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-left: 8px;
}

.breakdown-list b {
  margin-right: auto;
  color: var(--ink);
}

.net-dot { background: var(--green); }
.employee-dot { background: var(--violet); }
.ads-dot { background: var(--coral); }

.profit-line {
  display: grid;
  grid-template-columns: minmax(110px, 160px) 1fr minmax(95px, auto);
  align-items: center;
  gap: 12px;
  padding: 10px 0;
}

.profit-line div {
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(18, 24, 33, 0.08);
}

.profit-line i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--mint), var(--green));
}

.split-layout,
.settings-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(340px, 1.08fr);
  gap: 16px;
  margin-bottom: 16px;
}

.catalog-section {
  width: 100%;
}

.catalog-panel,
.employee-main-panel {
  width: 100%;
}

.settings-grid {
  grid-template-columns: repeat(2, minmax(240px, 360px));
}

.security-entry-card {
  display: grid;
  align-content: center;
  min-height: 126px;
  border: 0;
  text-align: right;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  text-decoration: none;
}

.security-entry-card span {
  display: block;
  color: var(--ink);
  font-size: 28px;
  font-weight: 900;
}

.account-settings {
  display: grid;
  gap: 14px;
}

.account-settings h3 {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
}

.account-page-panel {
  width: 100%;
  margin-bottom: 16px;
}

.account-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.account-actions {
  margin-top: 16px;
}

.muted {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.error-text {
  margin: 0;
  color: var(--danger);
  font-weight: 800;
}

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

.inline-actions form {
  flex: 1 1 220px;
}

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

.backup-log-row {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(18, 29, 45, 0.08);
}

.backup-log-row span {
  font-weight: 900;
}

.backup-log-row.is-success span {
  color: #16a66a;
}

.backup-log-row.is-failed span {
  color: var(--danger);
}

.backup-log-row small {
  color: var(--muted);
  font-weight: 700;
}

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

.legal-link-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 18px;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(18, 29, 45, 0.08);
  color: var(--ink);
}

.legal-link-card span {
  font-size: 22px;
  font-weight: 900;
}

.legal-link-card small,
.google-link-summary {
  color: var(--muted);
  font-weight: 700;
}

.google-link-summary {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.6);
}

.google-link-summary p {
  margin: 0;
  overflow-wrap: anywhere;
}

.public-page {
  min-height: 100vh;
  padding: 32px;
}

.public-document {
  width: min(960px, 100%);
  margin-inline: auto;
  display: grid;
  gap: 22px;
}

.public-document h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
}

.public-document section {
  display: grid;
  gap: 8px;
}

.public-document h2,
.public-document p {
  margin: 0;
}

.public-document h2 {
  color: var(--ink);
  font-size: 24px;
}

.public-document p {
  color: var(--muted);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.8;
}

.public-document code {
  direction: ltr;
  display: inline-block;
  padding: 2px 6px;
  border-radius: 8px;
  background: rgba(18, 29, 45, 0.08);
  color: var(--ink);
}

.public-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.public-links a {
  padding: 12px 18px;
  border-radius: 14px;
  color: var(--ink);
  background: var(--mint);
  text-decoration: none;
  font-weight: 900;
}

.landing-page {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 28px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 12%, rgba(81, 232, 151, 0.32), transparent 24rem),
    radial-gradient(circle at 82% 18%, rgba(128, 112, 255, 0.22), transparent 26rem),
    linear-gradient(135deg, #edf8f2 0%, #f6f7fb 48%, #e9eef7 100%);
}

.landing-nav {
  width: min(1120px, 100%);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.landing-brand,
.landing-login,
.landing-actions a {
  text-decoration: none;
}

.landing-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}

.landing-brand strong {
  font-size: 22px;
  font-weight: 900;
}

.landing-login {
  padding: 13px 22px;
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  font-weight: 900;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(18, 29, 45, 0.08);
}

.landing-main {
  width: min(1120px, 100%);
  margin-inline: auto;
  display: grid;
  align-items: center;
}

.landing-hero {
  position: relative;
  min-height: 590px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  align-items: center;
  gap: 32px;
  padding: clamp(28px, 5vw, 56px);
  overflow: hidden;
  border-radius: 42px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.58)),
    linear-gradient(120deg, rgba(81, 232, 151, 0.24), rgba(128, 112, 255, 0.16));
  box-shadow: 0 26px 80px rgba(18, 29, 45, 0.14);
}

.landing-copy {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: center;
  gap: 18px;
}

.landing-hero h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(44px, 7vw, 92px);
  line-height: 0.98;
}

.landing-hero p {
  width: min(720px, 100%);
  margin: 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.75;
  font-weight: 800;
}

.landing-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.landing-tags span {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(18, 29, 45, 0.08);
  font-weight: 900;
  box-shadow: 0 10px 26px rgba(18, 29, 45, 0.08);
}

.landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.landing-actions .primary-button,
.landing-actions .ghost-light-button {
  width: auto;
  min-width: 170px;
  text-align: center;
}

.landing-visual {
  position: relative;
  min-height: 420px;
}

.landing-visual::before {
  content: "";
  position: absolute;
  inset: 28px 36px 24px 12px;
  border-radius: 36px;
  background:
    linear-gradient(rgba(18, 29, 45, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 29, 45, 0.06) 1px, transparent 1px),
    linear-gradient(145deg, rgba(15, 28, 44, 0.94), rgba(18, 54, 58, 0.92));
  background-size: 42px 42px, 42px 42px, auto;
  box-shadow: 0 30px 70px rgba(18, 29, 45, 0.22);
  transform: perspective(900px) rotateY(-10deg) rotateX(5deg);
}

.visual-pill,
.visual-card {
  position: absolute;
  z-index: 2;
  display: block;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--mint), var(--green));
  box-shadow: 0 18px 42px rgba(80, 226, 147, 0.34);
  animation: landingFloat 5.8s ease-in-out infinite;
}

.visual-pill {
  width: 68%;
  height: 18px;
  right: 17%;
}

.visual-pill-top {
  top: 108px;
}

.visual-pill-mid {
  top: 178px;
  width: 52%;
  animation-delay: -1.4s;
}

.visual-pill-bottom {
  top: 248px;
  width: 60%;
  animation-delay: -2.6s;
}

.visual-card {
  border-radius: 28px;
}

.visual-card-main {
  width: 44%;
  height: 124px;
  right: 17%;
  bottom: 52px;
  background: linear-gradient(180deg, #73eaa4 0%, #81a8f6 54%, #8174f4 100%);
}

.visual-card-small {
  width: 24%;
  height: 86px;
  left: 10%;
  bottom: 78px;
  background: linear-gradient(180deg, #f8fff8 0%, #c6ffd7 100%);
  animation-delay: -3.4s;
}

@keyframes landingFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

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

.form-grid label,
.permissions {
  display: grid;
  gap: 8px;
  color: #323b48;
  font-weight: 700;
  font-size: 13px;
}

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

input,
select {
  width: 100%;
  min-height: 46px;
  padding: 10px 13px;
  border: 1px solid rgba(18, 24, 33, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--mint);
  box-shadow: 0 0 0 4px rgba(69, 214, 178, 0.14);
}

.permissions {
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.permissions legend {
  padding: 0 8px;
}

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

.permissions input {
  width: 18px;
  min-height: 18px;
}

.primary-button,
.small-button,
.danger-button {
  min-height: 46px;
  border: 0;
  border-radius: 16px;
  padding: 10px 18px;
  font-weight: 800;
  cursor: pointer;
}

.primary-button {
  background: linear-gradient(135deg, var(--dark), #273548);
  color: #fff;
}

.fab-button {
  position: fixed;
  left: max(28px, env(safe-area-inset-left));
  bottom: max(28px, env(safe-area-inset-bottom));
  z-index: 50;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--green), var(--mint));
  color: #06130f;
  box-shadow: 0 18px 46px rgba(69, 214, 178, 0.36);
  font-size: 34px;
  font-weight: 700;
  line-height: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.fab-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 54px rgba(69, 214, 178, 0.44);
}

.fab-button:active {
  transform: translateY(0) scale(0.98);
}

.small-button {
  background: var(--ink);
  color: #fff;
}

.danger-button {
  min-height: 38px;
  background: rgba(223, 63, 81, 0.12);
  color: var(--danger);
}

.ghost-light-button,
.danger-solid-button {
  min-height: 46px;
  border: 0;
  border-radius: 16px;
  padding: 10px 18px;
  font-weight: 900;
  cursor: pointer;
}

.ghost-light-button {
  background: rgba(18, 24, 33, 0.06);
  color: var(--ink);
}

.danger-solid-button {
  background: linear-gradient(135deg, #f35c70, var(--danger));
  color: #fff;
  box-shadow: 0 16px 38px rgba(223, 63, 81, 0.24);
}

.primary-button:disabled,
.small-button:disabled,
.icon-action:disabled {
  cursor: not-allowed;
  opacity: 0.44;
  box-shadow: none;
}

.trash-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.check-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 12px;
  border-radius: 16px;
  background: rgba(18, 24, 33, 0.05);
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}

.check-control input,
.trash-checkbox {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
  cursor: pointer;
}

.trash-selected-count {
  color: var(--muted);
  font-weight: 800;
}

.trash-permanent-button .nav-icon {
  width: 19px;
  height: 19px;
}

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

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

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

.entity-card {
  position: relative;
  min-height: 190px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.92), rgba(255,255,255,0.66)),
    var(--panel-strong);
  box-shadow: 0 18px 52px rgba(28, 44, 58, 0.1);
}

.entity-card-link {
  display: grid;
  min-height: 100%;
  gap: 10px;
}

.employee-tile {
  display: grid;
  gap: 14px;
}

.employee-tile .entity-card-link {
  min-height: 0;
}

.entity-avatar {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 20px;
  background: linear-gradient(145deg, var(--green), var(--mint));
  color: #06130f;
  font-weight: 900;
  font-size: 22px;
}

.entity-avatar.large {
  width: 76px;
  height: 76px;
  border-radius: 26px;
  font-size: 30px;
}

.entity-card strong {
  align-self: end;
  font-size: 24px;
}

.entity-card small,
.catalog-type {
  color: var(--muted);
}

.entity-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.entity-metrics span {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px;
  border-radius: 16px;
  background: rgba(18, 24, 33, 0.05);
}

.entity-metrics b {
  overflow-wrap: anywhere;
}

.entity-metrics .multi-money {
  display: grid;
  gap: 2px;
}

.entity-metrics .multi-money small {
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.tile-actions {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 8px;
  padding-top: 2px;
}

.tile-actions form {
  margin: 0;
}

.edit-action svg,
.delete-action svg,
.confirm-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.catalog-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.catalog-card {
  display: grid;
  gap: 12px;
}

.catalog-card b {
  font-size: 28px;
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}

.card-actions form {
  margin: 0;
}

.employee-profile {
  display: grid;
  grid-template-columns: minmax(260px, 0.34fr) minmax(0, 1fr);
  gap: 16px;
}

.mini-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.mini-summary-card {
  min-height: 112px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.88), rgba(255,255,255,0.68)),
    var(--panel-strong);
  box-shadow: 0 18px 52px rgba(28, 44, 58, 0.1);
}

.mini-summary-card.accent {
  background: linear-gradient(135deg, rgba(121, 242, 166, 0.92), rgba(215, 255, 127, 0.76));
}

.mini-summary-card span {
  display: block;
  color: var(--muted);
  font-weight: 800;
  margin-bottom: 12px;
}

.mini-summary-card strong {
  display: block;
  font-size: clamp(24px, 3vw, 34px);
  overflow-wrap: anywhere;
}

.mini-summary-card small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.7;
}

.profile-tabs {
  display: inline-flex;
  gap: 8px;
  margin-bottom: 16px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 16px 44px rgba(28, 44, 58, 0.08);
}

.profile-tabs a {
  min-width: 120px;
  min-height: 42px;
  display: grid;
  place-items: center;
  padding: 8px 18px;
  border-radius: 14px;
  color: var(--muted);
  font-weight: 900;
}

.profile-tabs a.active {
  background: linear-gradient(135deg, var(--dark), #273548);
  color: #fff;
}

.account-filter {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) repeat(2, minmax(150px, 0.8fr)) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 16px;
}

.account-filter label {
  display: grid;
  gap: 8px;
  color: #323b48;
  font-weight: 800;
  font-size: 13px;
}

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

.profile-card {
  display: grid;
  align-content: start;
  gap: 12px;
}

.profile-card h2 {
  margin-bottom: 0;
  font-size: 30px;
}

.profile-card p {
  color: var(--muted);
}

.back-link,
.inline-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-bottom: 14px;
  padding: 8px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  border: 1px solid rgba(18, 24, 33, 0.1);
  font-weight: 800;
}

.employee-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid transparent;
}

.employee-card a {
  flex: 1;
}

.icon-action {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(18, 24, 33, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
  appearance: none;
  -webkit-appearance: none;
}

.delete-action {
  color: var(--danger);
  background: rgba(223, 63, 81, 0.1);
  border-color: rgba(223, 63, 81, 0.16);
}

.close-action {
  flex: 0 0 40px;
  border-radius: 50%;
  background: rgba(18, 24, 33, 0.08);
  font-size: 0;
  line-height: 0;
}

.close-action::before,
.close-action::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: #26313f;
}

.close-action::before {
  transform: rotate(45deg);
}

.close-action::after {
  transform: rotate(-45deg);
}

.employee-card.selected {
  border-color: var(--mint);
  background: rgba(121, 242, 166, 0.18);
}

.table-wrap {
  overflow-x: auto;
}

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

th,
td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: right;
  vertical-align: middle;
}

th {
  color: var(--muted);
  font-size: 12px;
}

td form {
  margin: 0;
}

.receipt-uploader {
  display: grid;
  gap: 8px;
  color: #323b48;
  font-weight: 700;
  font-size: 13px;
}

.receipt-file-input {
  position: absolute;
  width: 1px;
  min-height: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.receipt-upload-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 120px;
  padding: 12px;
  border: 1px solid rgba(18, 24, 33, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
}

.receipt-preview {
  display: none;
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
}

.receipt-uploader.has-image .receipt-preview {
  display: block;
}

.receipt-uploader.has-image .receipt-empty {
  display: none;
}

.receipt-empty {
  display: grid;
  gap: 4px;
  min-height: 96px;
  place-content: center;
  text-align: center;
  color: var(--muted);
  border: 1px dashed rgba(18, 24, 33, 0.16);
  border-radius: 16px;
}

.receipt-empty strong {
  color: var(--ink);
  font-size: 15px;
}

.receipt-empty small {
  font-size: 12px;
}

.receipt-uploader.is-removed .receipt-empty {
  border-color: rgba(223, 63, 81, 0.28);
  background: rgba(223, 63, 81, 0.06);
}

.receipt-upload-actions {
  display: grid;
  gap: 8px;
  min-width: 136px;
}

.flash {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(121, 242, 166, 0.2);
  color: #0e5a38;
}

.flash.error {
  background: rgba(223, 63, 81, 0.12);
  color: var(--danger);
}

.password-field {
  position: relative;
  display: block;
}

.password-field input {
  padding-left: 54px;
}

.toggle-password {
  position: absolute;
  left: 7px;
  top: 50%;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 13px;
  background: rgba(18, 24, 33, 0.06);
  transform: translateY(-50%);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.toggle-password svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: #526070;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.toggle-password::after {
  content: "";
  position: absolute;
  width: 23px;
  height: 2px;
  border-radius: 999px;
  background: #526070;
  transform: rotate(-42deg);
  pointer-events: none;
}

.toggle-password.is-visible {
  background: rgba(69, 214, 178, 0.18);
}

.toggle-password.is-visible svg {
  stroke: #0f7a5b;
}

.toggle-password.is-visible::after {
  opacity: 0;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
}

.modal.is-open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 16, 25, 0.56);
  backdrop-filter: blur(10px);
}

.modal-card {
  position: relative;
  width: min(780px, 100%);
  max-height: min(86vh, 760px);
  overflow: auto;
  animation: modal-in 160ms ease-out;
  border-radius: 28px;
}

.confirm-card {
  width: min(430px, 100%);
  display: grid;
  gap: 12px;
  text-align: center;
}

.confirm-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 4px;
  border-radius: 22px;
  color: var(--danger);
  background:
    linear-gradient(145deg, rgba(255,255,255,0.92), rgba(255,255,255,0.7)),
    rgba(223, 63, 81, 0.12);
  border: 1px solid rgba(223, 63, 81, 0.14);
}

.confirm-card h2 {
  margin-bottom: 0;
  font-size: 24px;
}

.confirm-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.confirm-card p strong {
  color: var(--ink);
  font-size: 20px;
}

.confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 8px;
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.login-body {
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(6, 15, 26, 0.96), rgba(24, 37, 54, 0.9)),
    radial-gradient(circle at 30% 18%, rgba(121, 242, 166, 0.5), transparent 26rem);
}

.login-shell {
  width: min(520px, 100%);
  display: grid;
  grid-template-columns: 1fr;
}

.login-card {
  display: grid;
  align-content: center;
  gap: 16px;
  padding: 34px;
  border-radius: 34px;
}

.login-card label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

.error-card {
  width: min(560px, 100%);
}

.empty-state {
  text-align: center;
  padding: 48px;
}

@media (max-width: 980px) {
  .sidebar {
    inset: auto 12px 12px;
    width: auto;
    height: 72px;
    flex-direction: row;
    align-items: center;
    border-radius: 24px;
    padding: 10px;
  }

  .brand span:not(.brand-mark),
  .logout-form {
    display: none;
  }

  .nav {
    display: flex;
    flex: 1;
    overflow-x: auto;
  }

  .nav a {
    min-width: 52px;
    justify-content: center;
    font-size: 0;
  }

  .nav-icon {
    margin: 0;
  }

  .shell {
    margin-right: 0;
    padding: 18px 14px 104px;
  }

  .topbar {
    flex-wrap: wrap;
  }

  .currency-switcher {
    order: 3;
    width: 100%;
    margin-inline-start: 0;
  }

  .currency-switcher label {
    justify-content: space-between;
    width: 100%;
  }

  .receipt-upload-box {
    grid-template-columns: 1fr;
  }

  .receipt-upload-actions {
    grid-template-columns: 1fr auto;
    min-width: 0;
  }

  .fab-button {
    left: 18px;
    bottom: calc(94px + env(safe-area-inset-bottom));
  }

  .hero-grid,
  .dashboard-layout,
  .landing-hero,
  .split-layout,
  .settings-grid,
  .employee-profile,
  .profit-breakdown,
  .account-filter,
  .account-status-grid,
  .login-shell {
    grid-template-columns: 1fr;
  }

  .landing-hero {
    min-height: auto;
  }

  .landing-visual {
    min-height: 300px;
    order: -1;
  }

}

@media (max-width: 640px) {
  .topbar {
    align-items: start;
  }

  .user-chip span {
    display: none;
  }

  .panel,
  .stat-card,
  .login-card {
    border-radius: 20px;
    padding: 16px;
  }

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

  .section-title {
    display: grid;
  }

  .profit-line {
    grid-template-columns: 1fr;
  }

  .entity-grid,
  .catalog-grid {
    grid-template-columns: 1fr;
  }

  .profile-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .profile-tabs a {
    min-width: 0;
  }

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

  .login-body {
    padding: 12px;
  }

  .public-page {
    padding: 16px;
  }

  .landing-nav {
    align-items: stretch;
  }

  .landing-brand strong {
    font-size: 18px;
  }

  .landing-hero {
    border-radius: 28px;
    padding: 24px 18px;
  }

  .landing-tags span {
    width: 100%;
    text-align: center;
  }

  .landing-actions .primary-button,
  .landing-actions .ghost-light-button {
    width: 100%;
  }

  .landing-visual {
    min-height: 230px;
  }

  .modal {
    align-items: end;
    padding: 10px;
  }

  .modal-card {
    width: 100%;
    max-height: 88vh;
    border-radius: 22px 22px 18px 18px;
  }
}
