.public-body {
  background: var(--background);
}

/* Consistent compact scrollbars across panels, menus and data regions. */
* {
  scrollbar-color: #09090b transparent;
  scrollbar-width: thin;
}

*::-webkit-scrollbar {
  height: 8px;
  width: 8px;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  background: #09090b;
  border: 2px solid transparent;
  border-radius: 999px;
  background-clip: padding-box;
}

*::-webkit-scrollbar-thumb:hover {
  background: #27272a;
  background-clip: padding-box;
}

.daily-account-position-scroll {
  max-height: 352px;
  overflow: auto;
  overscroll-behavior: contain;
}

.daily-account-position-scroll .daily-compact-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f6f6f7;
  box-shadow: 0 1px 0 var(--border);
}

.integration-detail-overview,
.integration-orka-section,
.integration-history-filter {
  margin-bottom: 20px;
}

.integration-detail-overview {
  display: grid;
  gap: 22px;
  padding: clamp(20px, 2vw, 28px);
}

.integration-detail-overview-head,
.integration-section-head,
.orka-data-overview-head,
.orka-record-pagination {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

.integration-detail-overview-head {
  border-bottom: 1px solid #eceff0;
  padding-bottom: 18px;
}

.integration-detail-overview-head h3,
.integration-section-head h3,
.integration-history-filter h3 {
  margin: 4px 0 0;
}

.integration-detail-overview-head p:last-child,
.integration-section-head p:last-child,
.integration-detail-operation > div > p:last-child {
  color: var(--muted, #71717a);
  line-height: 1.55;
  margin: 7px 0 0;
}

.integration-online-pill {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 850;
  gap: 8px;
  padding: 9px 13px;
}

.integration-online-pill > span {
  border-radius: 50%;
  height: 8px;
  width: 8px;
}

.integration-online-pill.is-online {
  background: #dcfce7;
  color: #166534;
}

.integration-online-pill.is-online > span {
  background: #16a34a;
  box-shadow: 0 0 0 4px rgb(22 163 74 / 13%);
}

.integration-online-pill.is-offline {
  background: #f4f4f5;
  color: #52525b;
}

.integration-online-pill.is-offline > span {
  background: #71717a;
}

.integration-detail-overview-grid {
  align-items: stretch;
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, .75fr);
}

.integration-detail-facts {
  align-content: start;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

.integration-detail-facts > div {
  align-content: center;
  background: #f8faf9;
  border: 1px solid #e7ece9;
  border-radius: 14px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  min-height: 88px;
  padding: 14px;
}

.integration-detail-facts > div > .material-symbols-outlined {
  align-items: center;
  align-self: center;
  background: #e9f8ed;
  border-radius: 11px;
  color: #15803d;
  display: flex;
  grid-row: 1 / 3;
  height: 38px;
  justify-content: center;
  margin-right: 12px;
  width: 38px;
}

.integration-detail-facts dt {
  color: var(--muted, #71717a);
  font-size: 11px;
  font-weight: 750;
}

.integration-detail-facts dd {
  font-size: 14px;
  font-weight: 850;
  line-height: 1.4;
  margin: 4px 0 0;
  overflow-wrap: anywhere;
}

.integration-detail-facts .integration-detail-fact-wide {
  grid-column: 1 / -1;
}

.integration-detail-operation {
  align-content: start;
  background: linear-gradient(145deg, #f1fbf4, #fbfdfb);
  border: 1px solid #cee9d5;
  border-radius: 16px;
  display: grid;
  gap: 16px;
  min-width: 0;
  padding: 20px;
}

.integration-detail-operation h4 {
  font-size: 18px;
  margin: 4px 0 0;
}

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

.integration-sync-panel-form label,
.orka-record-filter label {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.integration-sync-panel-form label > span,
.orka-record-filter label > span {
  color: #3f4841;
  font-size: 11px;
  font-weight: 850;
}

.integration-sync-panel-form input,
.orka-record-filter select {
  background: #fff;
  border: 1px solid #d6ded8;
  border-radius: 11px;
  box-sizing: border-box;
  min-height: 44px;
  min-width: 0;
  padding: 0 11px;
  width: 100%;
}

.integration-sync-panel-form > .btn {
  grid-column: 1 / -1;
  min-height: 46px;
  width: 100%;
}

.integration-operation-disabled {
  background: #fff;
  border-radius: 11px;
  color: var(--muted, #71717a);
  margin: 0;
  padding: 13px;
}

.integration-danger-zone {
  border-top: 1px solid #dce8df;
  margin-top: 2px;
  padding-top: 13px;
}

.integration-danger-zone summary {
  color: #69726b;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.integration-danger-zone form {
  background: #fff7f7;
  border: 1px solid #fecaca;
  border-radius: 12px;
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 13px;
}

.integration-danger-zone p {
  color: #991b1b;
  font-size: 12px;
  line-height: 1.45;
  margin: 0;
}

.integration-danger-zone .btn {
  justify-self: start;
}

.integration-section-head {
  padding: 22px 24px;
}

.integration-section-head > div {
  min-width: 0;
}

.integration-section-head p:last-child {
  font-size: 13px;
  max-width: 820px;
}

.integration-mappings-card .table-wrap,
.orka-source-records .table-wrap {
  border-top: 1px solid var(--border);
}

.integration-mappings-card table,
.orka-source-records table {
  min-width: 840px;
}

.orka-mapping-form {
  align-items: center;
  display: grid;
  gap: 9px;
  grid-template-columns: minmax(170px, 1fr) auto;
  max-width: 410px;
}

.orka-mapping-form select {
  background: #fff;
  border: 1px solid #d8dee0;
  border-radius: 10px;
  min-height: 42px;
  min-width: 0;
  padding: 0 10px;
  width: 100%;
}

.orka-mapping-form .btn {
  min-height: 42px;
}

.orka-data-overview {
  overflow: hidden;
  padding: 0;
}

.orka-data-overview-head {
  border-bottom: 1px solid #e8ece9;
}

.orka-data-overview-head form {
  flex: 0 0 auto;
}

.orka-data-type-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 20px 24px 24px;
}

.orka-data-type-card {
  background: #fafbfa;
  border: 1px solid #e3e8e5;
  border-radius: 15px;
  display: grid;
  gap: 15px;
  min-width: 0;
  padding: 16px;
}

.orka-data-type-title {
  align-items: center;
  display: flex;
  gap: 11px;
}

.orka-data-type-title > .material-symbols-outlined {
  align-items: center;
  background: #e9f8ed;
  border-radius: 11px;
  color: #15803d;
  display: flex;
  flex: 0 0 40px;
  height: 40px;
  justify-content: center;
}

.orka-data-type-title strong,
.orka-data-type-title small {
  display: block;
}

.orka-data-type-title small {
  color: var(--muted, #71717a);
  font-size: 11px;
  margin-top: 3px;
}

.orka-data-type-card dl {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
}

.orka-data-type-card dl > div {
  background: #fff;
  border-radius: 9px;
  padding: 9px;
}

.orka-data-type-card dt {
  color: var(--muted, #71717a);
  font-size: 10px;
  line-height: 1.3;
}

.orka-data-type-card dd {
  font-size: 17px;
  font-weight: 900;
  margin: 5px 0 0;
}

.orka-data-type-card > a {
  align-items: center;
  color: #166534;
  display: inline-flex;
  font-size: 12px;
  font-weight: 850;
  gap: 4px;
  justify-self: start;
  text-decoration: none;
}

.orka-data-type-card > a .material-symbols-outlined {
  font-size: 17px;
}

.warning-text {
  color: #b45309 !important;
}

.orka-record-filter {
  align-items: end;
  background: #f8faf9;
  border-top: 1px solid #e7ece9;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(220px, 360px) auto;
  padding: 15px 24px;
}

.orka-record-filter .btn {
  min-height: 44px;
}

.orka-records-table-wrap {
  max-height: 620px;
  overflow: auto;
  overscroll-behavior: contain;
}

.orka-records-table-wrap thead th {
  background: #f5f6f6;
  position: sticky;
  top: 0;
  z-index: 2;
}

.orka-record-primary {
  display: block;
  margin-top: 8px;
}

.orka-record-details {
  margin-top: 8px;
}

.orka-record-details summary {
  color: #166534;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  width: max-content;
}

.orka-record-details dl {
  background: #f8faf9;
  border: 1px solid #e4e9e6;
  border-radius: 11px;
  display: grid;
  gap: 7px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 9px 0 0;
  padding: 10px;
}

.orka-record-details dl > div {
  min-width: 0;
}

.orka-record-details dt {
  color: var(--muted, #71717a);
  font-size: 10px;
}

.orka-record-details dd {
  font-size: 11px;
  font-weight: 750;
  margin: 3px 0 0;
  overflow-wrap: anywhere;
}

.orka-projection-status {
  border-radius: 999px;
  display: inline-flex;
  font-size: 11px;
  font-weight: 850;
  padding: 6px 9px;
}

.orka-projection-status.is-projected {
  background: #dcfce7;
  color: #166534;
}

.orka-projection-status.is-error {
  background: #fee2e2;
  color: #991b1b;
}

.orka-projection-status:not(.is-projected):not(.is-error) {
  background: #fef3c7;
  color: #92400e;
}

.orka-record-pagination {
  border-top: 1px solid #e7ece9;
  padding: 15px 24px;
}

.orka-record-pagination > span {
  color: var(--muted, #71717a);
  font-size: 12px;
  font-weight: 750;
}

.orka-record-pagination > div {
  display: flex;
  gap: 8px;
}

.integration-history-filter {
  align-items: center;
  background: linear-gradient(145deg, #fff, #fafcfb);
  gap: 24px;
  grid-template-columns: minmax(280px, .7fr) minmax(0, 1.3fr);
  padding: 22px 24px;
}

.integration-history-filter-copy {
  align-items: flex-start;
  display: flex;
  gap: 13px;
}

.integration-history-filter-copy > .material-symbols-outlined {
  align-items: center;
  background: #e9f8ed;
  border-radius: 12px;
  color: #15803d;
  display: flex;
  flex: 0 0 42px;
  height: 42px;
  justify-content: center;
}

.integration-history-filter .integration-filter-form {
  background: #f6f8f7;
  border: 1px solid #e2e7e4;
  border-radius: 14px;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(130px, 1fr)) auto;
  padding: 14px;
}

.integration-history-filter .integration-filter-form .btn {
  min-height: 44px;
  white-space: nowrap;
}

@media (max-width: 1180px) {
  .integration-detail-overview-grid,
  .integration-history-filter {
    grid-template-columns: 1fr;
  }

  .integration-history-filter .integration-filter-form {
    grid-template-columns: repeat(3, minmax(120px, 1fr)) auto;
  }
}

@media (max-width: 820px) {
  .integration-detail-overview-head,
  .integration-section-head,
  .orka-data-overview-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .integration-detail-facts,
  .orka-data-type-grid {
    grid-template-columns: 1fr;
  }

  .integration-detail-facts .integration-detail-fact-wide {
    grid-column: auto;
  }

  .orka-data-overview-head form,
  .orka-data-overview-head .btn {
    width: 100%;
  }

  .integration-history-filter .integration-filter-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .integration-history-filter .integration-filter-form .btn {
    grid-column: 1 / -1;
    width: 100%;
  }
}

@media (max-width: 560px) {
  .integration-detail-overview,
  .integration-section-head,
  .orka-data-type-grid,
  .orka-record-filter,
  .orka-record-pagination,
  .integration-history-filter {
    padding-left: 16px;
    padding-right: 16px;
  }

  .integration-detail-overview-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .integration-sync-panel-form,
  .integration-history-filter .integration-filter-form,
  .orka-record-filter {
    grid-template-columns: 1fr;
  }

  .orka-record-filter .btn {
    width: 100%;
  }

  .orka-data-type-card dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .orka-record-pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .orka-record-pagination > div,
  .orka-record-pagination .btn {
    width: 100%;
  }

  .orka-record-pagination .btn {
    flex: 1;
  }
}

/* Salt-okunur banka ve Orka entegrasyonları */
.integration-security-banner,.integration-notice{display:flex;align-items:flex-start;gap:14px}.integration-security-banner{margin-bottom:18px;padding:18px 20px;border:1px solid #bbf7d0;border-radius:18px;background:linear-gradient(135deg,#f0fdf4,#fff)}.integration-security-banner>.material-symbols-outlined{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:#dcfce7;color:#15803d}.integration-security-banner>div{flex:1}.integration-security-banner p,.integration-notice p,.integration-empty p,.integration-filter-card p{margin:4px 0 0;color:var(--muted,#71717a);line-height:1.55}.integration-notice .material-symbols-outlined{flex:0 0 auto}.integration-notice.danger{border-color:#fecaca;background:#fff7f7}.integration-notice code{word-break:break-all}.integration-connection-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-bottom:18px}.integration-empty{grid-column:1/-1;text-align:center;padding:38px}.integration-empty>.material-symbols-outlined{font-size:42px;color:#16a34a}.integration-connection-card{display:flex;flex-direction:column;gap:16px}.integration-connection-head{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:12px;align-items:center}.integration-connection-head small,.cell-meta{display:block;margin-top:3px;color:var(--muted,#71717a);font-size:12px}.integration-connection-head h3{margin:2px 0 0;font-size:18px}.integration-provider-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:#ecfdf5;color:#15803d}.integration-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0}.integration-facts>div{padding:10px 12px;border-radius:12px;background:#f8fafc}.integration-facts dt{font-size:11px;color:var(--muted,#71717a)}.integration-facts dd{margin:4px 0 0;font-weight:700;word-break:break-word}.integration-config-note,.integration-error{display:flex;align-items:flex-start;gap:8px;margin:0;padding:10px 12px;border-radius:11px;font-size:13px;line-height:1.45}.integration-config-note{background:#fffbeb;color:#92400e}.integration-error{background:#fef2f2;color:#b91c1c}.integration-config-note .material-symbols-outlined,.integration-error .material-symbols-outlined{font-size:18px}.integration-card-actions,.integration-sync-form{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.integration-card-actions{justify-content:space-between;margin-top:auto}.integration-sync-form input{max-width:145px}.integration-filter-card{display:grid;grid-template-columns:minmax(230px,.65fr) minmax(0,1.35fr);gap:22px;align-items:end;margin-bottom:18px}.integration-filter-card h3{margin:4px 0}.integration-filter-form{display:grid;grid-template-columns:repeat(4,minmax(120px,1fr)) auto;gap:10px;align-items:end}.integration-filter-form .field{margin:0}.integration-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:18px}.integration-summary-card{display:grid;grid-template-columns:auto 1fr 1fr 1fr;align-items:center;gap:12px;padding:16px}.integration-summary-card>span{display:grid;place-items:center;width:44px;height:44px;border-radius:13px;background:#18181b;color:#fff;font-weight:800}.integration-summary-card small{display:block;color:var(--muted,#71717a);font-size:11px}.integration-summary-card strong{display:block;margin-top:3px;font-size:14px;white-space:nowrap}.positive-text{color:#15803d!important}.negative-text{color:#b91c1c!important}.integration-accounts-card,.integration-transactions-card{margin-bottom:18px}.integration-review-form{display:grid;grid-template-columns:minmax(110px,1fr) minmax(120px,1fr) auto;gap:6px;min-width:340px}.integration-review-form select,.integration-review-form input{min-height:36px;padding:6px 8px;border:1px solid #e4e4e7;border-radius:9px;background:#fff}.integration-status-error,.integration-review-unmatched,.tag.warning{background:#fef3c7;color:#92400e}.integration-status-active,.integration-review-matched{background:#dcfce7;color:#166534}.integration-review-ignored{background:#f4f4f5;color:#52525b}

.statement-import-card{display:grid;gap:18px;margin-bottom:18px;border-color:#bbf7d0;background:linear-gradient(145deg,#fff 55%,#f0fdf4)}.statement-import-intro{display:flex;align-items:flex-start;gap:14px}.statement-import-intro>.material-symbols-outlined{display:grid;place-items:center;flex:0 0 46px;width:46px;height:46px;border-radius:14px;background:#dcfce7;color:#15803d;font-size:26px}.statement-import-intro h3{margin:3px 0 0}.statement-import-intro p:last-child{margin:5px 0 0;color:var(--muted,#71717a);line-height:1.5}.statement-import-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-items:end}.statement-import-form .field{margin:0}.statement-file-field{grid-column:span 2}.statement-file-field input[type=file]{padding:9px;background:#fff}.statement-import-form>.btn{min-height:44px}.statement-format-help{border-top:1px solid #dcfce7;padding-top:12px;color:var(--muted,#71717a)}.statement-format-help summary{width:max-content;max-width:100%;cursor:pointer;color:#166534;font-weight:700}.statement-format-help p{margin:9px 0 0;line-height:1.55}

@media (max-width:1180px){.integration-filter-card{grid-template-columns:1fr}.integration-filter-form{grid-template-columns:repeat(2,minmax(0,1fr))}.integration-filter-form .btn{min-height:44px}.integration-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.statement-import-form{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:760px){.integration-security-banner{align-items:flex-start;flex-wrap:wrap;padding:15px}.integration-security-banner .tag{margin-left:56px}.integration-connection-grid{grid-template-columns:1fr}.integration-connection-head{grid-template-columns:auto minmax(0,1fr)}.integration-connection-head>.tag{grid-column:1/-1;width:max-content}.integration-facts{grid-template-columns:repeat(2,minmax(0,1fr))}.integration-card-actions,.integration-sync-form{align-items:stretch;flex-direction:column}.integration-card-actions form,.integration-card-actions .btn,.integration-sync-form input{width:100%;max-width:none}.integration-filter-form{grid-template-columns:1fr}.integration-summary-grid{grid-template-columns:1fr}.integration-summary-card{grid-template-columns:auto repeat(3,minmax(0,1fr));overflow-x:auto}.integration-review-form{min-width:280px;grid-template-columns:1fr auto}.integration-review-form input{grid-column:1/-1;grid-row:2}.integration-review-form button{grid-column:2;grid-row:1}.integration-accounts-card .table-wrap,.integration-transactions-card .table-wrap{margin-inline:-16px;padding-inline:16px}.statement-import-card{padding:16px}.statement-import-form{grid-template-columns:1fr}.statement-file-field{grid-column:auto}.statement-import-form>.btn{width:100%}}

.landing-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 28px 56px;
}

.landing-nav,
.landing-actions,
.landing-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.landing-nav {
  justify-content: space-between;
  min-height: 56px;
}

.landing-brand {
  display: inline-flex;
  align-items: center;
  font-size: 24px;
  font-weight: 900;
}

.landing-brand img,
.login-wordmark img,
.login-corner-brand img,
.marketing-brand img,
.panel-brand-logo {
  display: block;
  width: auto;
  object-fit: contain;
}

.landing-brand img,
.login-wordmark img,
.login-corner-brand img {
  height: 47px;
}

.marketing-brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.marketing-brand img {
  height: 44px;
}

.marketing-hero-title {
  display: flex;
  align-items: center;
}

.marketing-hero-title img {
  display: block;
  width: min(100%, 520px);
  height: auto;
}

.panel-brand-link {
  display: inline-flex;
  align-items: center;
}

.panel-brand-logo {
  max-width: 100%;
  height: 49px;
}

.footer-brand {
  display: inline-flex !important;
  align-items: center;
  gap: 9px;
}

.footer-brand img {
  display: block;
  flex: 0 0 auto;
  object-fit: contain;
}

.pos-brand-mark {
  display: block;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  object-fit: contain;
}

@media (max-width: 760px) {
  .marketing-brand img {
    height: 38px;
  }

  .marketing-nav-inner {
    padding-right: 20px;
    padding-left: 20px;
  }
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 52px;
  align-items: center;
  min-height: calc(100vh - 120px);
}

.invite-shell {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 190px);
  padding: 64px 24px;
}

.invite-card {
  display: grid;
  gap: 20px;
  width: min(100%, 620px);
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  padding: 36px;
  box-shadow: 0 22px 70px rgba(15, 23, 42, 0.09);
}

.invite-card h1,
.invite-card p {
  margin: 0;
}

.invite-card h1 {
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.08;
}

.invite-card > p:not(.section-label),
.invite-action-form p {
  color: var(--muted);
  line-height: 1.65;
}

.invite-mark img {
  display: block;
  object-fit: contain;
}

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

.invite-facts div {
  display: grid;
  gap: 6px;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface-low);
  padding: 14px;
}

.invite-facts span,
.invite-register-form label > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.invite-facts strong {
  overflow-wrap: anywhere;
}

.invite-action-form,
.invite-register-form {
  display: grid;
  gap: 14px;
  margin-top: 4px;
}

.invite-register-form label {
  display: grid;
  gap: 7px;
}

.invite-register-form input {
  min-height: 46px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 13px;
}

.settings-subhead {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.invitation-link-box {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
  padding: 16px;
  border: 1px solid #b9e5ca;
  border-radius: var(--radius);
  background: #f0fbf4;
}

.invitation-link-box p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.invitation-link-box input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  padding: 0 12px;
}

.field select[multiple] {
  min-height: 108px;
  padding: 8px;
}

.field-help {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

@media (max-width: 620px) {
  .invite-card {
    padding: 24px;
  }

  .invite-facts {
    grid-template-columns: 1fr;
  }
}

.landing-copy h1 {
  margin: 16px 0;
  max-width: 760px;
  font-size: clamp(44px, 8vw, 88px);
  line-height: 0.96;
  font-weight: 900;
}

.landing-copy p {
  max-width: 640px;
  color: var(--muted);
  font-size: 18px;
  line-height: 30px;
  font-weight: 600;
}

.landing-preview {
  display: grid;
  gap: 16px;
}

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

.landing-module-list span {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-low);
  font-weight: 800;
}

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

.auth-shell.wide .auth-card {
  max-width: 760px;
}

.auth-card {
  width: min(100%, 460px);
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  padding: 30px;
}

.auth-card h1 {
  margin: 28px 0 8px;
  font-size: 34px;
}

.auth-card p,
.auth-link {
  color: var(--muted);
  font-weight: 650;
}

.auth-link a {
  color: var(--text);
  font-weight: 850;
}

.flash {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 120;
  transform: translateX(-50%);
  max-width: 420px;
  border: 1px solid #000;
  border-radius: var(--radius);
  background: #000;
  color: #fff;
  padding: 13px 18px;
  font-weight: 800;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.24);
}

.flash.success {
  border-color: #000;
}

.flash.error {
  border-color: #000;
}

.flash.is-hiding {
  opacity: 0;
  transform: translate(-50%, 12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.company-switcher {
  min-height: 38px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 0 12px;
  color: var(--text);
  font-weight: 800;
}

.scope-switchers {
  gap: 8px;
}

.scope-switchers form {
  min-width: 0;
}

.branch-switcher {
  min-width: 150px;
}

/* The desktop header needs more room than the original 980px sidebar
   breakpoint once company, branch and user scopes are visible together. */
@media (max-width: 1180px) {
  :root {
    --sidebar: 0;
  }

  .sidebar {
    transform: translateX(-100%);
    transition: transform 180ms ease;
  }

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

  .main {
    margin-left: 0;
    min-width: 0;
  }

  .topbar {
    padding-right: 16px;
    padding-left: 16px;
  }

  .mobile-menu-button {
    display: inline-flex;
  }
}

.product-branch-tags,
.branch-check-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.product-branch-editor {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
}

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

.product-branch-grid article {
  border: 1px solid var(--border);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 12px;
}

.product-branch-toggle,
.branch-check-grid label {
  align-items: center;
  display: flex;
  gap: 8px;
}

.product-branch-toggle input,
.branch-check-grid input {
  height: 16px;
  margin: 0;
  width: 16px;
}

.branch-check-field {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
}

.branch-check-field legend {
  font-size: 12px;
  font-weight: 700;
  padding: 0 5px;
}

.category-branch-form {
  border-top: 1px solid var(--border);
  margin-top: 16px;
  padding-top: 16px;
}

@media (max-width: 760px) {
  .topbar {
    align-items: stretch;
    flex-wrap: wrap;
    gap: 8px;
    height: auto;
    min-height: 80px;
    padding: 8px 12px;
  }

  .topbar > .top-actions:first-child {
    width: 100%;
  }

  .topbar > .top-actions:first-child .search {
    flex: 1;
    max-width: none;
    width: auto;
  }

  .scope-switchers {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    width: 100%;
  }

  .scope-switchers .user-menu-trigger {
    min-height: 38px;
  }

  .scope-switchers .company-switcher {
    min-width: 0;
    width: 100%;
  }

  .product-branch-grid {
    grid-template-columns: 1fr;
  }
}

.action-cell {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.action-cell form {
  margin: 0;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(17, 17, 17, 0.38);
}

.modal-backdrop[hidden] {
  display: none;
}

.modal {
  width: min(100%, 760px);
  max-height: min(88vh, 760px);
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  padding: 24px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.22);
}

.modal.small {
  width: min(100%, 440px);
}

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

.modal-actions {
  grid-column: 1 / -1;
  justify-content: flex-end;
  margin: 6px 0 0;
}

.compact-form,
.auth-card > form:not(.form-grid) {
  margin-top: 16px;
}

.field-check {
  align-content: end;
}

.field-check input {
  width: 24px;
  min-height: 24px;
}

.panel-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-top: 48px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

.panel-footer-links a {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.marketing-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(249, 249, 249, 0.94);
  backdrop-filter: blur(14px);
}

.marketing-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  max-width: 1240px;
  min-height: 78px;
  margin: 0 auto;
  padding: 0 40px;
}

.marketing-brand,
.login-wordmark,
.legal-back {
  color: var(--primary);
  font-size: 26px;
  font-weight: 950;
}

.marketing-links,
.marketing-actions,
.marketing-cta,
.marketing-proof,
.public-footer-inner,
.public-footer nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.marketing-links a,
.marketing-actions a,
.public-footer a,
.legal-back {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.marketing-actions .btn {
  color: #fff;
}

.marketing-main {
  overflow: hidden;
}

.marketing-hero,
.marketing-section,
.marketing-cta-band {
  max-width: 1240px;
  margin: 0 auto;
  padding: 84px 40px;
}

.marketing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.9fr);
  align-items: center;
  gap: 64px;
  min-height: 760px;
}

.marketing-hero-copy {
  display: grid;
  gap: 24px;
}

.marketing-hero-copy h1 {
  max-width: 720px;
  margin: 0;
  color: var(--primary);
  font-size: clamp(44px, 7vw, 76px);
  line-height: 0.98;
  font-weight: 950;
}

.marketing-hero-copy > p:not(.section-label) {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 30px;
  font-weight: 650;
}

.marketing-proof {
  flex-wrap: wrap;
  max-width: 430px;
  border-top: 1px solid var(--border);
  padding-top: 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.proof-dots {
  display: flex;
  margin-right: 4px;
}

.proof-dots span {
  display: block;
  width: 28px;
  height: 28px;
  margin-right: -8px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--surface-high);
}

.dashboard-mockup,
.login-preview-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.12);
}

.mockup-top {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-low);
  padding: 0 16px;
}

.mockup-top span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--outline, #7e7576);
}

.mockup-top small {
  margin-left: auto;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.mockup-body {
  display: grid;
  gap: 22px;
  min-height: 380px;
  padding: 28px;
}

.mockup-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.mockup-metrics div,
.mockup-list div {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
}

.mockup-metrics div {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.mockup-metrics small,
.mockup-list small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.mockup-metrics strong {
  font-size: 22px;
  font-weight: 950;
}

.mockup-metrics span {
  display: block;
  height: 6px;
  border-radius: 999px;
  background: #000;
}

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

.mockup-list div {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
}

.mockup-list p {
  display: grid;
  gap: 2px;
  margin: 0;
}

.mockup-list b {
  white-space: nowrap;
  font-size: 14px;
}

.section-center {
  display: grid;
  justify-items: center;
  gap: 12px;
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-center h2,
.marketing-cta-band h2,
.legal-card h1,
.login-card h1 {
  margin: 0;
  color: var(--primary);
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.12;
  font-weight: 950;
}

.section-center p,
.legal-card p,
.login-card p,
.marketing-cta-band p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 26px;
  font-weight: 650;
}

.feature-grid,
.pricing-grid,
.steps-grid,
.contact-grid {
  display: grid;
  gap: 22px;
}

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

.feature-card,
.price-card,
.step-card,
.legal-card,
.contact-grid div {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}

.feature-card {
  display: grid;
  gap: 14px;
  padding: 28px;
}

.feature-card .material-symbols-outlined {
  color: var(--muted);
  font-size: 36px;
}

.feature-card h3,
.price-card h3,
.step-card h3,
.legal-card h2 {
  margin: 0;
  font-size: 22px;
  line-height: 30px;
  font-weight: 900;
}

.feature-card p,
.price-card p,
.step-card p {
  margin: 0;
  color: var(--muted);
  line-height: 24px;
  font-weight: 650;
}

.light-band {
  max-width: none;
  background: #fff;
}

.light-band > * {
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
}

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

.step-card {
  display: grid;
  gap: 14px;
  padding: 26px;
  text-align: center;
}

.step-card span {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 6px;
  border: 1px solid var(--border);
  border-radius: 50%;
  font-size: 22px;
  font-weight: 950;
}

.pricing-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.price-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 30px;
}

.price-card.featured {
  border-color: #000;
  background: #000;
  color: #fff;
}

.price-card.featured p,
.price-card.featured li,
.price-card.featured span {
  color: rgba(255, 255, 255, 0.76);
}

.price-card.featured .btn {
  border-color: #fff;
  background: #fff;
  color: #000;
}

.price-card > small {
  align-self: flex-start;
  border-radius: 999px;
  background: #fff;
  color: #000;
  padding: 5px 10px;
  font-weight: 900;
}

.price-card strong {
  font-size: 38px;
  font-weight: 950;
}

.price-card span {
  color: var(--muted);
  font-size: 14px;
}

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

.price-card li {
  color: var(--text);
  font-weight: 750;
}

.price-card li::before {
  content: "✓";
  margin-right: 8px;
  font-weight: 950;
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 66px;
  padding: 0 22px;
  cursor: pointer;
  font-weight: 900;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  margin: 0;
  padding: 0 22px 22px;
  color: var(--muted);
  line-height: 26px;
  font-weight: 650;
}

.marketing-cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: none;
  background: #000;
  color: #fff;
}

.marketing-cta-band > * {
  max-width: 1240px;
}

.marketing-cta-band h2,
.marketing-cta-band p {
  color: #fff;
}

.marketing-cta-band p {
  opacity: 0.8;
}

.marketing-cta-band .btn {
  border-color: #fff;
  background: #fff;
  color: #000;
}

.public-footer {
  border-top: 1px solid var(--border);
  background: #fff;
}

.public-footer-inner {
  justify-content: space-between;
  max-width: 1240px;
  margin: 0 auto;
  padding: 34px 40px;
}

.public-footer strong {
  display: block;
  margin-bottom: 6px;
  font-size: 24px;
  font-weight: 950;
}

.public-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.login-screen {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(420px, 0.9fr);
  min-height: calc(100vh - 98px);
}

.login-visual {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 80px;
}

.login-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.58;
  background-image: radial-gradient(#dadada 0.7px, transparent 0.7px);
  background-size: 24px 24px;
}

.login-art {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 32px;
  width: min(100%, 680px);
}

.login-preview-card {
  padding: 8px;
}

.login-preview-body {
  display: grid;
  gap: 16px;
  min-height: 300px;
  border-radius: 10px;
  background: var(--surface-low);
  padding: 26px;
}

.preview-row {
  width: 78%;
  height: 38px;
  border-radius: 8px;
  background: #fff;
}

.preview-row.tall {
  width: 100%;
  height: 92px;
}

.preview-row.short {
  width: 56%;
}

.preview-kpi {
  align-self: end;
  justify-self: end;
  display: grid;
  gap: 4px;
  min-width: 180px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  padding: 18px;
}

.preview-kpi strong {
  font-size: 26px;
  font-weight: 950;
}

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

.login-art h2 {
  margin: 0;
  max-width: 520px;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 0.98;
  font-weight: 950;
}

.login-art p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 30px;
  font-weight: 650;
}

.login-corner-brand {
  position: absolute;
  left: 40px;
  bottom: 34px;
  font-size: 24px;
  font-weight: 950;
}

.login-form-side {
  display: grid;
  place-items: center;
  border-left: 1px solid var(--border);
  background: #fff;
  padding: 42px;
}

.login-card {
  display: grid;
  gap: 24px;
  width: min(100%, 430px);
}

.login-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.login-form {
  display: grid;
  gap: 16px;
}

.login-form label,
.password-field,
.remember-line {
  display: grid;
  gap: 8px;
}

.login-form label > span:first-child,
.remember-line span {
  color: var(--text);
  font-size: 14px;
  font-weight: 850;
}

.login-form input,
.password-field input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  padding: 0 14px;
  outline: 0;
}

.password-field {
  position: relative;
}

.password-field button {
  position: absolute;
  right: 8px;
  top: 50%;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  transform: translateY(-50%);
  cursor: pointer;
}

.remember-line {
  display: flex;
  align-items: center;
}

.remember-line input {
  width: 16px;
  min-height: 16px;
}

.legal-shell {
  min-height: calc(100vh - 98px);
  padding: 72px 24px;
}

.legal-card {
  display: grid;
  gap: 18px;
  max-width: 840px;
  margin: 0 auto;
  padding: 38px;
}

.legal-card h2 {
  margin-top: 12px;
}

.contact-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 10px 0;
}

.contact-grid div {
  display: grid;
  gap: 8px;
  padding: 20px;
}

.nav-group {
  display: grid;
  gap: 6px;
}

.nav-group summary {
  list-style: none;
  cursor: pointer;
}

.nav-group summary::-webkit-details-marker {
  display: none;
}

.nav-sub {
  display: grid;
  gap: 6px;
  padding-left: 16px;
}

.nav-sub .nav-item {
  min-height: 34px;
  font-size: 13px;
}

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

.report-card {
  display: grid;
  gap: 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  padding: 18px;
}

.report-card strong {
  font-size: 16px;
}

.pos-body {
  overflow: hidden;
  background: #f5f5f5;
}

.pos-shell {
  display: grid;
  grid-template-rows: 66px minmax(0, 1fr);
  width: 100vw;
  height: 100vh;
  border: 4px solid #6554ff;
  border-radius: 8px;
  background: #f6f6f6;
}

.pos-topbar,
.pos-top-info,
.pos-top-actions,
.pos-brand,
.pos-branch-switch {
  display: flex;
  align-items: center;
}

.pos-topbar {
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--border);
  background: #fff;
  padding: 10px 16px;
}

.pos-brand {
  gap: 4px;
  min-width: 108px;
  font-size: 18px;
}

.pos-brand span {
  color: var(--muted);
  font-weight: 700;
}

.pos-top-info {
  flex: 1;
  gap: 18px;
}

.pos-top-info > div,
.pos-branch-switch {
  min-width: 112px;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.pos-top-info small,
.pos-branch-switch small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pos-branch-switch select {
  max-width: 150px;
  border: 0;
  background: transparent;
  font-weight: 850;
  outline: 0;
}

.pos-ok {
  color: #11823b;
}

.pos-warn {
  color: var(--danger);
}

.pos-clock {
  min-width: 100px;
  color: #000;
  font-size: 20px;
  font-weight: 900;
}

.pos-top-actions {
  gap: 8px;
}

.pos-top-actions .btn {
  min-height: 38px;
  padding: 0 12px;
}

.pos-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) minmax(320px, 0.8fr) minmax(300px, 0.72fr);
  min-height: 0;
}

.pos-panel {
  min-height: 0;
  border-right: 1px solid var(--border);
  background: #fff;
}

.pos-products,
.pos-cart,
.pos-payment {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
}

.pos-products {
  background: #f0f0f1;
}

.pos-payment {
  border-right: 0;
}

.pos-search-row {
  display: grid;
  grid-template-columns: 1fr 128px;
  gap: 8px;
}

.pos-input {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  padding: 0 12px;
  color: var(--muted);
}

.pos-input input {
  width: 100%;
  border: 0;
  background: transparent;
  outline: 0;
}

.pos-tabs,
.pos-payment-methods {
  display: grid;
  gap: 8px;
}

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

.pos-tabs button,
.pos-payment-methods button {
  min-height: 38px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.pos-tabs button.is-active,
.pos-payment-methods button.is-active {
  border-color: #000;
  background: #000;
  color: #fff;
}

.pos-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(116px, 1fr));
  gap: 10px;
  overflow: auto;
  padding-right: 4px;
}

.pos-product-card {
  position: relative;
  display: grid;
  min-height: 128px;
  gap: 4px;
  justify-items: start;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  padding: 16px 10px 10px;
  text-align: left;
  cursor: pointer;
}

.pos-product-card:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.pos-product-icon {
  justify-self: center;
  margin: 12px 0 8px;
  font-size: 30px;
}

.pos-product-card strong,
.pos-product-card b {
  font-size: 12px;
  line-height: 16px;
}

.pos-product-card small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.pos-stock-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  border-radius: 999px;
  background: #efefef;
  padding: 3px 6px;
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
}

.pos-stock-badge.low,
.pos-stock-badge.empty {
  color: var(--danger);
}

.pos-stock-badge.service {
  color: #000;
}

.pos-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 36px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.icon-button.danger {
  color: var(--danger);
}

.pos-cart-list {
  display: grid;
  align-content: start;
  gap: 10px;
  flex: 1;
  overflow: auto;
}

.pos-cart-empty {
  display: grid;
  min-height: 240px;
  place-items: center;
  color: var(--muted);
  font-weight: 800;
}

.pos-cart-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.pos-cart-row small,
.pos-helper {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.pos-cart-row button[data-line-discount] {
  margin-top: 8px;
  border: 0;
  background: transparent;
  padding: 0;
  color: #000;
  font-size: 11px;
  font-weight: 850;
  text-decoration: underline;
  cursor: pointer;
}

.pos-qty {
  display: grid;
  grid-template-columns: 26px 30px 26px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
  font-weight: 850;
}

.pos-qty button,
.pos-line-total button {
  height: 28px;
  border: 0;
  background: #f7f7f7;
  cursor: pointer;
}

.pos-line-total {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.pos-line-total button {
  width: 24px;
  border-radius: 50%;
  color: var(--muted);
}

.pos-cart-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.pos-payment form {
  display: grid;
  gap: 14px;
}

.pos-payment .field {
  gap: 7px;
}

.pos-totals {
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.pos-totals div,
.pos-totals label,
.pos-change-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.pos-totals input,
.pos-cash-input input {
  width: 120px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 10px;
  text-align: right;
  font-weight: 850;
}

.pos-totals .grand {
  color: #000;
  font-size: 18px;
  font-weight: 900;
}

.pos-payment-methods {
  grid-template-columns: 1fr 1fr;
}

.pos-payment-methods button {
  display: grid;
  place-items: center;
  gap: 6px;
  min-height: 56px;
}

.pos-cash-input {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.pos-cash-input input {
  width: 100%;
  text-align: left;
}

.pos-change-box {
  border-radius: 8px;
  background: #f3f3f4;
  padding: 12px;
}

.pos-change-box strong {
  color: #000;
  font-size: 22px;
  font-weight: 900;
}

.pos-complete {
  min-height: 56px;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.18);
}

.pos-empty-state {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 16px;
  min-height: 100%;
  padding: 32px;
  text-align: center;
}

.pos-empty-state h1 {
  margin: 0;
  font-size: 34px;
}

.pos-empty-state p {
  max-width: 560px;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.6;
}

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

.held-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
}

.held-item small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-weight: 700;
}

.receipt-paper {
  max-width: 360px;
  margin: 0 auto;
  border: 1px dashed var(--border);
  border-radius: 8px;
  padding: 18px;
  background: #fff;
}

.receipt-paper h3,
.receipt-paper p {
  margin: 0 0 8px;
  text-align: center;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  font-size: 13px;
}

.receipt-row.total {
  font-size: 16px;
  font-weight: 900;
}

@media print {
  body * {
    visibility: hidden;
  }

  [data-pos-receipt],
  [data-pos-receipt] * {
    visibility: visible;
  }

  [data-pos-receipt] {
    position: absolute;
    inset: 0;
    width: 100%;
    border: 0;
    box-shadow: none;
  }
}

@media (max-width: 1100px) {
  .marketing-hero,
  .login-screen {
    grid-template-columns: 1fr;
  }

  .login-visual {
    min-height: 520px;
    padding: 48px 32px;
  }

  .login-form-side {
    border-left: 0;
    border-top: 1px solid var(--border);
  }

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

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

  .pos-grid {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.86fr);
  }

  .pos-payment {
    grid-column: 1 / -1;
    border-top: 1px solid var(--border);
  }

  .pos-payment form {
    grid-template-columns: minmax(220px, 0.8fr) minmax(260px, 1fr) minmax(260px, 0.9fr);
    align-items: start;
  }

  .pos-payment .pos-complete,
  .pos-payment .pos-helper {
    grid-column: 3;
  }
}

@media (max-width: 860px) {
  .landing-hero {
    grid-template-columns: 1fr;
  }

  .landing-actions {
    display: none;
  }

  .landing-copy h1 {
    font-size: 44px;
  }

  .report-grid,
  .pos-grid,
  .feature-grid,
  .pricing-grid,
  .steps-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .pos-body {
    overflow: auto;
  }

  .pos-shell {
    height: auto;
    min-height: 100vh;
    grid-template-rows: auto 1fr;
  }

  .pos-topbar,
  .pos-top-info {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .pos-topbar {
    gap: 12px;
    padding: 12px;
  }

  .pos-top-info {
    width: 100%;
    gap: 10px;
  }

  .pos-top-info > div,
  .pos-branch-switch {
    min-width: calc(50% - 8px);
  }

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

  .pos-top-actions .btn {
    flex: 1;
  }

  .pos-grid {
    min-height: auto;
  }

  .pos-panel {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .pos-payment form {
    grid-template-columns: 1fr;
  }

  .pos-payment .pos-complete,
  .pos-payment .pos-helper {
    grid-column: auto;
  }

  .marketing-nav-inner,
  .marketing-hero,
  .marketing-section,
  .marketing-cta-band,
  .public-footer-inner {
    padding-left: 18px;
    padding-right: 18px;
  }

  .marketing-links {
    display: none;
  }

  .marketing-nav-inner,
  .marketing-actions,
  .marketing-cta-band,
  .public-footer-inner {
    flex-wrap: wrap;
  }

  .marketing-hero {
    gap: 38px;
    min-height: auto;
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .mockup-metrics,
  .mockup-list div {
    grid-template-columns: 1fr;
  }

  .login-visual {
    display: none;
  }

  .login-form-side {
    min-height: calc(100vh - 98px);
    padding: 28px 18px;
  }

  .legal-card {
    padding: 24px;
  }
}

@media (max-width: 520px) {
  .marketing-actions {
    width: 100%;
    justify-content: space-between;
  }

  .marketing-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .marketing-cta .btn,
  .marketing-cta form,
  .marketing-cta button {
    width: 100%;
  }

  .dashboard-mockup {
    border-radius: 10px;
  }

  .mockup-body {
    padding: 16px;
  }

  .pos-search-row,
  .pos-cart-row,
  .pos-cart-actions,
  .pos-payment-methods {
    grid-template-columns: 1fr;
  }

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

  .pos-product-card {
    min-height: 118px;
  }

  .pos-totals div,
  .pos-totals label,
  .pos-change-box {
    align-items: stretch;
    flex-direction: column;
  }

  .pos-totals input,
  .pos-cash-input input {
    width: 100%;
    text-align: left;
  }

  .held-item,
  .public-footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* CEO & CFO daily finance report */
.report-view-tabs {
  background: #f4f4f5;
  border: 1px solid #e4e4e7;
  border-radius: 10px;
  display: inline-flex;
  gap: 4px;
  margin-bottom: 22px;
  padding: 4px;
}

.report-view-tabs a {
  align-items: center;
  border-radius: 7px;
  color: #52525b;
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  gap: 8px;
  padding: 10px 14px;
  text-decoration: none;
}

.report-view-tabs a.is-active { background: #050505; color: #fff; }
.report-view-tabs .material-symbols-outlined { font-size: 19px; }

.daily-report-heading {
  align-items: end;
  background: #050505;
  border-radius: 12px;
  color: #fff;
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  padding: 28px;
}

.daily-report-heading h2 { font-size: clamp(26px, 3vw, 38px); margin: 3px 0 8px; }
.daily-report-heading p { color: #a1a1aa; margin: 0; }
.daily-date-form { align-items: end; display: flex; gap: 10px; }
.daily-date-form .field span { color: #d4d4d8; }
.daily-date-form input { min-width: 160px; }
.daily-finance-form { display: grid; gap: 20px; }

.daily-report-notice {
  align-items: flex-start;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  padding: 16px;
}

.daily-report-notice p { color: #78716c; margin: 4px 0 0; }
.daily-section { padding: 22px; }
.daily-summary { background: #fff; border: 1px solid #e4e4e7; border-radius: 12px; }
.daily-section-title { align-items: center; display: flex; gap: 12px; margin-bottom: 20px; }
.daily-section-title > span { color: #a1a1aa; font-size: 12px; font-weight: 900; letter-spacing: .08em; }
.daily-section-title p { color: #71717a; font-size: 11px; font-weight: 900; letter-spacing: .08em; margin: 0 0 3px; text-transform: uppercase; }
.daily-section-title h3 { font-size: 19px; margin: 0; }
.daily-status-select { margin-left: auto; }
.daily-status-select > span { color: #71717a; display: block; font-size: 11px; font-weight: 800; margin-bottom: 5px; }
.daily-status-select select { min-width: 150px; }
.daily-auto-status { align-items: center; background: #f4f4f5; border: 1px solid #e4e4e7; border-radius: 9px; display: flex; gap: 10px; margin-left: auto; padding: 9px 12px; }
.daily-auto-status.positive { background: #f0fdf4; border-color: #bbf7d0; }
.daily-auto-status.attention { background: #fffbeb; border-color: #fde68a; }
.daily-auto-status.critical { background: #fef2f2; border-color: #fecaca; }
.daily-auto-status small { color: #71717a; display: block; font-size: 9px; font-weight: 750; margin-bottom: 2px; }
.daily-auto-status strong { font-size: 14px; }
.daily-analysis-reasons { display: flex; flex-wrap: wrap; gap: 8px; margin: -6px 0 16px; }
.daily-analysis-reasons > span { align-items: center; background: #f8fafc; border: 1px solid #e4e4e7; border-radius: 999px; color: #52525b; display: inline-flex; font-size: 10px; font-weight: 700; gap: 5px; padding: 6px 9px; }
.daily-analysis-reasons .material-symbols-outlined { font-size: 15px; }
.daily-excel-button { background: #fff; border-color: #fff; color: #18181b; white-space: nowrap; }

.daily-kpis { display: grid; gap: 12px; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.daily-kpis article { background: #f8fafc; border: 1px solid #e4e4e7; border-radius: 9px; display: grid; gap: 7px; min-width: 0; padding: 16px; }
.daily-kpis article.is-positive { background: #f0fdf4; border-color: #bbf7d0; }
.daily-kpis article.is-warning { background: #fffbeb; border-color: #fde68a; }
.daily-kpis article.is-negative { background: #fef2f2; border-color: #fecaca; }
.daily-kpis span { color: #71717a; font-size: 11px; font-weight: 800; }
.daily-kpis strong { font-size: 18px; overflow-wrap: anywhere; }
.daily-kpis small { color: #a1a1aa; font-size: 10px; }

.daily-edit-grid { border-top: 1px solid #e4e4e7; display: grid; gap: 14px; grid-template-columns: .55fr 1fr 1fr; margin-top: 18px; padding-top: 18px; }
.daily-edit-grid.single { grid-template-columns: 1fr; }
.daily-two-column { display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.daily-metric-list { display: grid; }
.daily-metric-list > div { align-items: center; border-bottom: 1px solid #f1f5f9; display: flex; justify-content: space-between; padding: 12px 0; }
.daily-metric-list > div.is-total { border-top: 2px solid #18181b; border-bottom: 0; margin-top: 5px; }
.daily-metric-list span { color: #52525b; font-size: 13px; }
.daily-metric-list strong small { color: #a1a1aa; font-size: 10px; font-weight: 700; }
.daily-compact-table { font-size: 12px; }
.daily-compact-table th, .daily-compact-table td { padding: 10px 8px; }
.daily-horizon-grid { display: grid; gap: 10px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 16px; }
.daily-horizon-grid > div { background: #f8fafc; border-radius: 8px; display: grid; gap: 5px; padding: 13px; }
.daily-horizon-grid span, .daily-horizon-grid small { color: #71717a; font-size: 10px; font-weight: 700; }
.risky-list { border-top: 1px solid #e4e4e7; margin: 14px 0 0; padding: 14px 0 0 20px; }
.risky-list li { margin: 6px 0; padding-left: 4px; }
.risky-list li span { color: #71717a; display: block; font-size: 11px; }
.daily-empty-state { align-items: flex-start; background: #fafafa; border: 1px dashed #d4d4d8; border-radius: 9px; display: flex; gap: 12px; padding: 18px; }
.daily-empty-state p { color: #71717a; font-size: 12px; line-height: 1.55; margin: 4px 0 0; }
.daily-data-note { color: #71717a; font-size: 11px; margin: 12px 0 0; }
.daily-margin-grid { display: grid; gap: 8px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 12px; }
.daily-margin-grid span { background: #f8fafc; border-radius: 7px; color: #71717a; display: grid; font-size: 10px; gap: 3px; padding: 10px; }
.daily-margin-grid strong { color: #18181b; font-size: 14px; }
.profit-source-note { background: #f4f4f5; border-radius: 9px; color: #52525b; font-size: 11px; line-height: 1.5; margin-top: 10px; padding: 9px 12px; }
.daily-legacy-note { border-top: 1px solid #e4e4e7; margin-top: 16px; padding-top: 16px; }
.daily-forecast-list { display: grid; gap: 6px; margin-top: 16px; }
.daily-forecast-list span { align-items: center; border-top: 1px solid #27272a; color: #a1a1aa; display: flex; font-size: 11px; justify-content: space-between; padding-top: 7px; }
.daily-forecast-list strong { color: #fff; }
.risk-list { display: grid; gap: 10px; }
.risk-list > div { align-items: center; border: 1px solid #e4e4e7; border-radius: 8px; display: flex; gap: 10px; padding: 12px; }
.risk-list small { color: #71717a; display: block; margin-top: 3px; }
.risk-dot { background: #22c55e; border-radius: 50%; height: 10px; width: 10px; }
.risk-dot.warning { background: #f59e0b; }
.risk-dot.critical { background: #ef4444; }
.daily-conclusion { background: #050505; border-radius: 12px; color: #fff; display: grid; gap: 28px; grid-template-columns: .8fr 1.2fr; padding: 26px; }
.daily-conclusion h3 { font-size: 22px; margin: 6px 0; }
.daily-conclusion p { color: #a1a1aa; }
.daily-conclusion .field span { color: #d4d4d8; }
.daily-report-actions { align-items: center; background: #fff; border: 1px solid #e4e4e7; border-radius: 10px; bottom: 14px; box-shadow: 0 12px 30px rgba(0,0,0,.08); display: flex; justify-content: space-between; padding: 14px 16px; position: sticky; z-index: 8; }
.daily-report-actions > span { color: #71717a; font-size: 12px; }

.finance-planning-hero { background: #050505; border-radius: 12px; color: #fff; display: grid; gap: 28px; grid-template-columns: 1fr 1fr; margin-bottom: 20px; padding: 26px; }
.finance-planning-hero h3 { font-size: 28px; margin: 4px 0 8px; }
.finance-planning-hero p { color: #a1a1aa; margin: 0; }
.finance-planning-stats { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.finance-planning-stats article { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 8px; display: grid; gap: 6px; padding: 14px; }
.finance-planning-stats span { color: #a1a1aa; font-size: 10px; font-weight: 800; }
.finance-planning-stats strong { font-size: 20px; }
.finance-module-tabs { display: flex; gap: 8px; margin-bottom: 20px; overflow-x: auto; padding-bottom: 5px; }
.finance-module-tabs a { align-items: center; background: #fff; border: 1px solid #e4e4e7; border-radius: 8px; color: #52525b; display: inline-flex; flex: 0 0 auto; font-size: 11px; font-weight: 800; gap: 6px; padding: 9px 11px; text-decoration: none; }
.finance-module-tabs a.is-active { background: #050505; border-color: #050505; color: #fff; }
.finance-module-tabs .material-symbols-outlined { font-size: 17px; }
.finance-entry-card { align-items: start; display: grid; gap: 24px; grid-template-columns: 260px 1fr; padding: 22px; }
.finance-entry-card h3 { margin: 4px 0 8px; }
.finance-entry-card p { color: #71717a; font-size: 12px; line-height: 1.55; margin: 0; }
.finance-entry-form { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.finance-save-button { align-self: end; min-height: 42px; }
.finance-snapshot-form { align-items: end; display: grid; gap: 12px; grid-template-columns: minmax(180px, 1fr) auto; }
.finance-records-card { margin-top: 20px; }
.finance-records-card form { margin: 0; }
.tcmb-sync-card { align-items: center; display: flex; justify-content: space-between; margin-bottom: 20px; padding: 18px 20px; }
.tcmb-sync-card p { color: #71717a; font-size: 12px; margin: 4px 0 0; }

@media (max-width: 1050px) {
  .finance-planning-hero, .finance-entry-card { grid-template-columns: 1fr; }
  .finance-entry-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .finance-entry-form, .finance-snapshot-form { grid-template-columns: 1fr; }
  .finance-planning-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1180px) {
  .daily-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 800px) {
  .daily-report-heading { align-items: stretch; flex-direction: column; gap: 20px; }
  .daily-date-form { align-items: stretch; flex-direction: column; }
  .daily-two-column, .daily-conclusion { grid-template-columns: 1fr; }
  .daily-edit-grid, .daily-edit-grid.single { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .report-view-tabs { display: flex; overflow-x: auto; }
  .report-view-tabs a { flex: 0 0 auto; }
  .daily-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .daily-section-title { align-items: flex-start; }
  .daily-status-select { margin-left: 0; }
  .daily-auto-status { margin-left: 0; }
  .daily-horizon-grid { grid-template-columns: 1fr; }
  .daily-margin-grid { grid-template-columns: 1fr; }
  .daily-report-actions { align-items: stretch; flex-direction: column; gap: 10px; }
}

/* Formal workspace refresh */
.global-search {
  max-width: 440px;
  position: relative;
  width: min(42vw, 440px);
}

.global-search .search {
  max-width: none;
  width: 100%;
}

.global-search-results {
  background: #fff;
  border: 1px solid #d4d4d8;
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.14);
  left: 0;
  max-height: min(62vh, 520px);
  overflow: auto;
  padding: 6px;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 120;
}

.global-search-results[hidden] {
  display: none;
}

.global-search-results a {
  align-items: center;
  border-radius: 6px;
  color: #09090b;
  display: grid;
  gap: 10px;
  grid-template-columns: 78px minmax(0, 1fr);
  min-height: 54px;
  padding: 8px 10px;
}

.global-search-results a:hover,
.global-search-results a.is-active {
  background: #f4f4f5;
}

.global-search-type {
  color: #71717a;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.global-search-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.global-search-copy strong,
.global-search-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.global-search-copy strong {
  font-size: 13px;
}

.global-search-copy small {
  color: #71717a;
  font-size: 11px;
}

.global-search-copy mark {
  background: transparent;
  color: inherit;
  font-weight: 950;
}

.global-search-empty {
  color: #71717a;
  font-size: 12px;
  font-weight: 700;
  padding: 18px 12px;
  text-align: center;
}

.page-head {
  align-items: flex-end;
  border-bottom: 1px solid #e4e4e7;
  margin-bottom: 24px;
  padding-bottom: 20px;
}

.page-title {
  font-size: 30px;
  line-height: 1.15;
}

.page-description {
  line-height: 1.55;
  max-width: 760px;
}

.catalog-product-placeholder,
.pos-product-placeholder {
  border: 3px solid #18181b;
  border-radius: 6px;
  display: block;
  height: 48px;
  position: relative;
  width: 52px;
}

.catalog-product-placeholder::before,
.pos-product-placeholder::before {
  background: #f4f4f5;
  border: 3px solid #18181b;
  border-bottom: 0;
  content: "";
  height: 14px;
  left: 8px;
  position: absolute;
  top: -12px;
  width: 28px;
}

.pos-product-placeholder.is-service {
  border-radius: 50%;
  height: 52px;
  width: 52px;
}

.invoice-modal {
  width: min(96vw, 1120px);
}

.invoice-line {
  align-items: end;
  border: 1px solid #e4e4e7;
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(170px, 1.2fr) minmax(190px, 1.4fr) repeat(5, minmax(82px, 0.62fr)) 36px;
  margin-bottom: 10px;
  padding: 12px;
}

.invoice-line label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.invoice-line label > span {
  color: #71717a;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.invoice-line input,
.invoice-line select {
  min-height: 40px;
  min-width: 0;
  width: 100%;
}

.invoice-line input[readonly] {
  background: #f4f4f5;
  color: #52525b;
}

.invoice-profit-summary {
  border-top: 1px solid #e4e4e7;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 16px;
  padding-top: 16px;
}

.invoice-profit-summary > div {
  background: #fafafa;
  border: 1px solid #e4e4e7;
  border-radius: 8px;
  display: grid;
  gap: 6px;
  padding: 12px;
}

.invoice-profit-summary span {
  color: #71717a;
  font-size: 11px;
  font-weight: 800;
}

.invoice-profit-summary span small {
  display: block;
  font-size: 9px;
  margin-top: 2px;
}

.invoice-profit-summary strong {
  font-size: 17px;
  overflow-wrap: anywhere;
}

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

.dashboard-context div {
  align-items: center;
  display: flex;
  gap: 10px;
}

.dashboard-context p {
  color: #71717a;
  font-size: 12px;
  margin: 0;
}

.dashboard-primary-grid,
.dashboard-operation-grid {
  display: grid;
  gap: 12px;
}

.dashboard-primary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-primary-grid article,
.dashboard-operation-grid article,
.admin-summary-grid article,
.admin-health-grid article {
  background: #fff;
  border: 1px solid #e4e4e7;
  border-radius: 8px;
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 18px;
}

.dashboard-primary-grid span,
.dashboard-operation-grid span,
.admin-summary-grid span,
.admin-health-grid span {
  color: #71717a;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.dashboard-primary-grid strong {
  font-size: 24px;
  overflow-wrap: anywhere;
}

.dashboard-primary-grid small,
.dashboard-operation-grid small,
.admin-summary-grid small {
  color: #71717a;
  font-size: 11px;
}

.dashboard-primary-grid .is-positive {
  border-top: 3px solid #15803d;
}

.dashboard-primary-grid .is-negative {
  border-top: 3px solid #b91c1c;
}

.dashboard-workspace {
  border-bottom: 1px solid #e4e4e7;
  border-top: 1px solid #e4e4e7;
  display: grid;
  gap: 30px;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  margin-top: 24px;
  padding: 26px 0;
}

.dashboard-panel {
  min-width: 0;
}

.dashboard-panel-head,
.dashboard-section-head {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
}

.dashboard-panel-head h3,
.dashboard-section-head h3,
.dashboard-actions-band h3,
.admin-overview-band h3,
.password-change-shell h3,
.contact-section h2 {
  font-size: 21px;
  margin: 3px 0 0;
}

.dashboard-panel-head a {
  color: #18181b;
  font-size: 12px;
  font-weight: 850;
}

.dashboard-payment-list,
.dashboard-bars {
  display: grid;
  gap: 8px;
}

.dashboard-payment-list article {
  align-items: center;
  border-bottom: 1px solid #f0f0f1;
  display: flex;
  justify-content: space-between;
  min-height: 58px;
  padding: 8px 4px;
}

.dashboard-payment-list article.is-priority {
  border-left: 3px solid #18181b;
  padding-left: 12px;
}

.dashboard-payment-list div {
  display: grid;
  gap: 5px;
}

.dashboard-payment-list small {
  color: #71717a;
}

.dashboard-bars > div {
  display: grid;
  gap: 7px;
}

.dashboard-bars p {
  display: flex;
  font-size: 12px;
  justify-content: space-between;
  margin: 0;
}

.dashboard-bar {
  background: #e4e4e7;
  display: block;
  height: 6px;
  overflow: hidden;
}

.dashboard-bar i {
  background: #18181b;
  display: block;
  height: 100%;
}

.dashboard-empty {
  border: 1px dashed #d4d4d8;
  color: #71717a;
  font-size: 12px;
  padding: 24px;
  text-align: center;
}

.dashboard-operations {
  padding: 28px 0;
}

.dashboard-operation-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.dashboard-operation-grid strong {
  font-size: 18px;
  overflow-wrap: anywhere;
}

.dashboard-operation-grid a {
  color: #52525b;
  font-size: 11px;
  font-weight: 800;
}

.dashboard-actions-band,
.admin-overview-band,
.password-change-shell {
  align-items: center;
  background: #18181b;
  color: #fff;
  display: flex;
  justify-content: space-between;
  padding: 22px 24px;
}

.dashboard-actions-band nav,
.admin-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dashboard-actions-band .section-label,
.admin-overview-band .section-label {
  color: #a1a1aa;
}

.dashboard-actions-band .btn,
.admin-overview-band .btn {
  background: transparent;
  border-color: #52525b;
  color: #fff;
}

.dashboard-actions-band .btn.primary,
.admin-overview-band .btn.primary {
  background: #fff;
  border-color: #fff;
  color: #18181b;
}

.admin-tabs {
  border-bottom: 1px solid #d4d4d8;
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  overflow-x: auto;
}

.admin-tabs a {
  border-bottom: 3px solid transparent;
  color: #71717a;
  font-size: 12px;
  font-weight: 850;
  padding: 12px 14px;
  white-space: nowrap;
}

.admin-tabs a.is-active {
  border-color: #18181b;
  color: #18181b;
}

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

.admin-summary-grid strong {
  font-size: 25px;
}

.admin-overview-band {
  align-items: flex-end;
}

.admin-overview-band p {
  color: #d4d4d8;
  line-height: 1.55;
  max-width: 680px;
}

.admin-inline-action,
.admin-plan-action {
  align-items: center;
  display: flex;
  gap: 7px;
  min-width: 360px;
}

.admin-inline-action input,
.admin-plan-action input,
.admin-plan-action select {
  min-height: 36px;
  min-width: 110px;
}

.admin-plan-action input {
  flex: 1;
}

.admin-audit-detail {
  max-width: 340px;
  overflow-wrap: anywhere;
}

.admin-payment-notice {
  margin-bottom: 16px;
}

.password-change-shell {
  align-items: start;
  gap: 44px;
}

.password-change-shell > div {
  max-width: 480px;
}

.password-change-shell p {
  color: #d4d4d8;
  line-height: 1.6;
}

.password-change-form {
  background: #fff;
  border-radius: 8px;
  color: #18181b;
  display: grid;
  gap: 14px;
  max-width: 460px;
  padding: 20px;
  width: 100%;
}

.contact-section {
  align-items: start;
  border-top: 1px solid #e4e4e7;
  display: grid;
  gap: 70px;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
}

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

.contact-section-copy p {
  color: #71717a;
  line-height: 1.65;
}

.contact-section-copy .btn {
  justify-self: start;
}

.contact-channel-list {
  border-top: 1px solid #d4d4d8;
}

.contact-channel-list article {
  border-bottom: 1px solid #d4d4d8;
  display: grid;
  gap: 6px;
  padding: 18px 4px;
}

.contact-channel-list span,
.contact-channel-list small {
  color: #71717a;
  font-size: 12px;
}

@media (max-width: 1100px) {
  .dashboard-primary-grid,
  .admin-summary-grid,
  .admin-health-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .invoice-line {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .invoice-line-title {
    grid-column: span 2;
  }
}

@media (max-width: 760px) {
  .global-search {
    max-width: none;
    width: 100%;
  }

  .global-search-results {
    position: fixed;
    left: 12px;
    right: 12px;
    top: 70px;
  }

  .dashboard-context,
  .dashboard-actions-band,
  .admin-overview-band,
  .password-change-shell {
    align-items: stretch;
    flex-direction: column;
  }

  .dashboard-context {
    gap: 8px;
  }

  .dashboard-primary-grid,
  .dashboard-operation-grid,
  .admin-summary-grid,
  .admin-health-grid,
  .invoice-profit-summary,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .dashboard-workspace {
    grid-template-columns: 1fr;
  }

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

  .invoice-line-title,
  .invoice-line > label:first-child {
    grid-column: 1 / -1;
  }

  .admin-inline-action,
  .admin-plan-action {
    align-items: stretch;
    flex-direction: column;
    min-width: 220px;
  }

  .contact-section {
    gap: 32px;
  }
}

/* Keep POS grid children inside the viewport at scrollbar-sized mobile widths. */
.pos-shell {
  grid-template-columns: minmax(0, 1fr);
}

.pos-topbar,
.pos-grid {
  min-width: 0;
  width: 100%;
}

/* Final polish overrides for the current panel iteration. */
.payment-card-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.payment-card-fields label:first-child {
  grid-column: 1 / -1;
}

.field-icon .icon-picker-groups {
  display: flex !important;
  flex-direction: row;
  gap: 14px;
  max-height: none !important;
  overflow-x: auto;
  overflow-y: hidden;
}

.field-icon .icon-picker-group div {
  display: flex !important;
  flex-direction: row;
  gap: 8px;
}

.pos-grid {
  grid-template-columns: minmax(360px, 1fr) minmax(320px, 420px) !important;
}

.pos-product-grid {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
  gap: 14px;
}

.pos-product-card {
  align-content: stretch;
  grid-template-rows: 1fr auto auto auto;
  min-height: 228px !important;
  padding: 10px !important;
}

.pos-product-card::before {
  background: linear-gradient(180deg, #f8fafc, #f1f5f9);
  border-radius: 7px;
  content: "";
  display: block;
  grid-row: 1;
  min-height: 120px;
  width: 100%;
}

.pos-product-icon {
  align-self: center;
  grid-row: 1;
  justify-self: center;
  margin: 0 !important;
  z-index: 2;
}

.pos-product-image {
  align-self: center;
  grid-row: 1;
  justify-self: center;
  max-height: 118px;
  max-width: 100%;
  object-fit: contain;
  position: relative;
  z-index: 2;
}

.pos-product-card > b {
  align-items: center;
  background: #f4f4f5;
  border-radius: 7px;
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  min-height: 38px;
  padding: 0 8px;
  width: 100%;
}

.pos-product-card > b::after {
  content: "shopping_cart";
  font-family: "Material Symbols Outlined";
  font-size: 19px;
}

.pos-product-qty {
  bottom: 14px !important;
  top: auto !important;
}

.pos-product-card.is-selected > b {
  padding-bottom: 38px;
}

.file-preview {
  border: 1px solid #e4e4e7;
  border-radius: 8px;
  display: block;
  height: 112px;
  margin: 10px auto 0;
  max-width: 190px;
  object-fit: cover;
  width: 100%;
}

.file-preview[hidden] {
  display: none !important;
}

.pos-product-grid {
  gap: 14px !important;
  grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)) !important;
}

.pos-product-card {
  align-content: stretch !important;
  background: #fff !important;
  border: 1px solid #d9d9df !important;
  border-radius: 8px !important;
  display: grid !important;
  gap: 9px !important;
  grid-template-rows: 150px auto auto auto !important;
  min-height: 284px !important;
  overflow: hidden !important;
  padding: 10px !important;
}

.pos-product-card::before {
  content: none !important;
  display: none !important;
}

.pos-product-media {
  align-items: center !important;
  background: #f3f6fa !important;
  border-radius: 8px !important;
  display: flex !important;
  height: 150px !important;
  justify-content: center !important;
  min-height: 150px !important;
  overflow: hidden !important;
  position: relative !important;
  width: 100% !important;
}

.pos-product-image {
  display: block !important;
  height: 100% !important;
  max-height: none !important;
  max-width: none !important;
  object-fit: cover !important;
  width: 100% !important;
}

.pos-product-icon {
  align-items: center !important;
  color: #050505 !important;
  display: flex !important;
  font-size: 54px !important;
  height: 100% !important;
  justify-content: center !important;
  margin: 0 !important;
  width: 100% !important;
}

.pos-stock-badge {
  left: 8px !important;
  position: absolute !important;
  top: 8px !important;
  z-index: 2 !important;
}

.pos-product-card > strong {
  display: -webkit-box !important;
  font-size: 14px !important;
  line-height: 18px !important;
  min-height: 36px !important;
  overflow: hidden !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
}

.pos-product-card > small {
  color: #64748b !important;
  font-size: 12px !important;
  font-weight: 850 !important;
}

.pos-product-card > b {
  align-items: center !important;
  background: #f4f4f5 !important;
  border-radius: 7px !important;
  display: flex !important;
  justify-content: space-between !important;
  margin-top: 0 !important;
  min-height: 42px !important;
  padding: 0 8px !important;
}

.pos-product-card > b::after {
  content: "shopping_cart" !important;
  font-family: "Material Symbols Outlined" !important;
  font-size: 19px !important;
  font-weight: 400 !important;
}

.pos-product-qty {
  align-items: center !important;
  background: #050505 !important;
  border-radius: 999px !important;
  bottom: 20px !important;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14) !important;
  display: flex !important;
  gap: 14px !important;
  height: 36px !important;
  justify-content: space-between !important;
  left: 18px !important;
  padding: 0 8px !important;
  right: 18px !important;
  top: auto !important;
  z-index: 4 !important;
}

.pos-product-qty[hidden] {
  display: none !important;
}

.pos-product-qty button {
  align-items: center !important;
  background: #27272a !important;
  border: 0 !important;
  border-radius: 999px !important;
  color: #fff !important;
  display: inline-flex !important;
  height: 26px !important;
  justify-content: center !important;
  width: 26px !important;
}

.pos-product-qty strong {
  color: #fff !important;
  font-size: 14px !important;
  line-height: 1 !important;
}

.pos-product-card.is-selected > b {
  padding-bottom: 0 !important;
}

.pos-cart-summary,
.pos-split-payments {
  border-bottom: 1px solid #e4e4e7;
  border-top: 1px solid #e4e4e7;
  margin: 2px 0;
  padding: 14px 0;
}

.pos-summary-head,
.pos-summary-row,
.pos-split-total {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.pos-summary-head {
  color: #18181b;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.pos-summary-head small,
.pos-cart-summary p {
  color: #71717a;
  font-size: 12px;
  font-weight: 700;
  margin: 0;
  text-transform: none;
}

.pos-summary-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  max-height: 140px;
  overflow: auto;
}

.pos-summary-row {
  background: #fafafa;
  border-radius: 6px;
  font-size: 13px;
  gap: 12px;
  padding: 9px 10px;
}

.pos-summary-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pos-summary-row b {
  color: #71717a;
  font-size: 11px;
}

.pos-summary-row strong,
.pos-split-total strong {
  white-space: nowrap;
}

.pos-split-payments > div[data-pos-split-lines] {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.pos-split-line {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) 120px;
}

.pos-split-line span {
  font-size: 13px;
  font-weight: 800;
}

.pos-split-line input {
  min-width: 0;
}

.pos-split-total {
  border-top: 1px dashed #d4d4d8;
  font-size: 13px;
  margin-top: 10px;
  padding-top: 10px;
}

.invoice-modal {
  max-width: 980px;
}

.invoice-lines {
  border-top: 1px solid #e4e4e7;
  margin-top: 8px;
  padding-top: 18px;
}

.invoice-line {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(160px, 2fr) repeat(4, minmax(84px, 1fr)) 38px;
  margin-top: 10px;
}

.invoice-line input {
  min-width: 0;
}

.invoice-total {
  align-items: center;
  border-top: 1px solid #18181b;
  display: flex;
  font-size: 16px;
  font-weight: 900;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 12px;
}

@media (max-width: 760px) {
  .invoice-line {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .invoice-line input:first-child {
    grid-column: 1 / -1;
  }
}

@media print {
  body * {
    visibility: hidden;
  }

  [data-pos-receipt], [data-day-report], [data-invoice-paper],
  [data-pos-receipt] *, [data-day-report] *, [data-invoice-paper] * {
    visibility: visible;
  }

  [data-pos-receipt], [data-day-report], [data-invoice-paper] {
    background: #fff !important;
    box-shadow: none !important;
    display: block !important;
    left: 0 !important;
    margin: 0 !important;
    position: absolute !important;
    top: 0 !important;
    width: 100% !important;
  }

  .modal-head > button,
  .modal-actions {
    display: none !important;
  }
}

@media (max-width: 520px) {
  .pos-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .pos-product-card {
    grid-template-rows: 132px auto auto auto !important;
    min-height: 260px !important;
  }

  .pos-product-media {
    height: 132px !important;
    min-height: 132px !important;
  }
}

/* Final mobile ergonomics: full-size touch targets, safe overlays and compact gutters. */
@media (max-width: 760px) {
  .mobile-menu-button {
    width: 44px;
    min-width: 44px;
    min-height: 44px;
  }

  .topbar > .top-actions:first-child {
    align-items: center;
  }

  .panel-footer-links a,
  .public-footer a,
  .marketing-links a,
  .marketing-actions > a:not(.btn) {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
  }

  .marketing-nav-inner {
    min-height: 64px;
    gap: 10px;
    padding-right: 18px;
    padding-left: 18px;
  }

  .modal-backdrop {
    padding: 12px;
  }

  .modal {
    max-height: 90dvh;
    padding: 18px;
  }

  .table-wrap {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }

  .flash {
    right: 12px;
    bottom: 12px;
    left: 12px;
    max-width: none;
    transform: none;
  }

  .flash.is-hiding {
    transform: translateY(12px);
  }
}

@media (max-width: 360px) {
  .topbar {
    padding-right: 10px;
    padding-left: 10px;
  }

  .content {
    padding-right: 12px;
    padding-left: 12px;
  }

  .marketing-hero,
  .marketing-section,
  .marketing-cta-band,
  .legal-shell {
    padding-right: 18px;
    padding-left: 18px;
  }
}

/* Unified UI controls and final contrast safeguards. */
:root { --control-height: 42px; --control-radius: 8px; --control-border: #cfc4c5; --control-focus: #050505; --control-disabled: #ececee; --tap-target: 44px; }
.btn, .icon-button { transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease; }
.btn:not(.primary):not(.danger), .btn.secondary { background: #fff; border-color: var(--control-border); color: #111; }
.btn.primary { background: #050505; border-color: #050505; color: #fff; }
.btn.danger { background: #b42318; border-color: #b42318; color: #fff; }
.btn:not([disabled]):hover, .icon-button:not([disabled]):hover { border-color: #050505; box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12); }
.btn[disabled], .icon-button[disabled] { background: var(--control-disabled); border-color: #d7d7db; color: #8a8a91; cursor: not-allowed; opacity: 1; }
.btn:focus-visible, .icon-button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible { outline: 3px solid rgba(5, 5, 5, 0.2); outline-offset: 2px; }

.marketing-cta .btn:not(.primary), .marketing-actions .btn:not(.primary), .admin-overview-band .btn:not(.primary) { background: #fff !important; border-color: #cfc4c5 !important; color: #111 !important; }
.marketing-cta .btn.primary, .marketing-actions .btn.primary, .admin-overview-band .btn.primary { background: #050505 !important; border-color: #050505 !important; color: #fff !important; }

:is(.field, .form-grid, .settings-module-form, .payment-form, .admin-inline-action, .admin-plan-action, .invoice-line, .product-option-group, .product-option-value) :is(input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="submit"]):not([type="button"]), select, textarea), .payment-form > label > input { box-sizing: border-box; min-height: var(--control-height); border: 1px solid var(--control-border); border-radius: var(--control-radius); background: #fff; color: #111; font: inherit; line-height: 1.3; padding: 9px 12px; }
:is(.field, .form-grid, .settings-module-form, .payment-form, .admin-inline-action, .admin-plan-action, .invoice-line, .product-option-group, .product-option-value) textarea { min-height: 108px; resize: vertical; }
:is(.field, .form-grid, .settings-module-form, .payment-form, .admin-inline-action, .admin-plan-action, .invoice-line, .product-option-group, .product-option-value) :is(input, select, textarea):focus { border-color: var(--control-focus); box-shadow: 0 0 0 3px rgba(5, 5, 5, 0.1); outline: 0; }
:is(.field, .form-grid, .settings-module-form, .payment-form, .admin-inline-action, .admin-plan-action, .invoice-line, .product-option-group, .product-option-value) :is(input, select, textarea):disabled, :is(.field, .form-grid, .settings-module-form, .payment-form, .admin-inline-action, .admin-plan-action, .invoice-line, .product-option-group, .product-option-value) :is(input, select, textarea)[readonly] { background: var(--control-disabled); color: #68686f; cursor: not-allowed; }

input[type="checkbox"], input[type="radio"] { appearance: none; width: 18px; height: 18px; flex: 0 0 18px; margin: 0; border: 1px solid #8c8c94; background: #fff; cursor: pointer; }
input[type="checkbox"] { border-radius: 5px; }
input[type="checkbox"]:checked { border-color: #050505; background-color: #050505; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3 8 3 3 7-7' fill='none' stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.2'/%3E%3C/svg%3E"); }
input[type="radio"] { border-radius: 50%; }
input[type="radio"]:checked { border-color: #050505; box-shadow: inset 0 0 0 4px #fff; background: #050505; }
input[type="checkbox"]:disabled, input[type="radio"]:disabled { background-color: var(--control-disabled); border-color: #c9c9cf; cursor: not-allowed; }
input[type="file"] { min-height: var(--control-height); border: 1px solid var(--control-border); border-radius: var(--control-radius); background: #fff; color: #303036; padding: 5px; }
input[type="file"]::file-selector-button { min-height: 30px; margin-right: 10px; border: 0; border-radius: 5px; background: #ececee; color: #111; font: inherit; font-weight: 750; padding: 0 10px; }

.settings-module-sidebar button { align-items: center; width: 100%; min-height: 42px; border: 0; border-radius: 8px; background: transparent; color: #52525b; display: flex; gap: 10px; padding: 0 10px; font: inherit; font-size: 13px; font-weight: 850; text-align: left; cursor: pointer; }
.settings-module-sidebar button:hover, .settings-module-sidebar button.is-active { background: #050505; color: #fff; }
.settings-module-card[hidden] { display: none; }

.product-price-stack { display: grid; align-content: start; gap: 12px; }
.catalog-product-foot { display: grid; gap: 8px; }
.catalog-product-foot > div { display: grid; gap: 2px; }
.catalog-product-foot span, .catalog-product-foot small { color: #667085; font-size: 12px; font-weight: 700; }
.catalog-product-foot b, .catalog-product-foot strong { color: #111; font-size: 15px; }

@media (max-width: 760px) {
  .settings-module-sidebar nav { grid-template-columns: 1fr; }
  .product-price-stack { grid-column: 1 / -1; }
}

/* Final override: POS theme, settings, responsive cards */
.product-option-group-head input[type="checkbox"] {
  height: 16px !important;
  min-height: 16px !important;
  width: 16px !important;
}

.product-option-group-head label {
  align-items: center !important;
  display: inline-flex !important;
  gap: 7px !important;
  min-height: 44px !important;
}

.product-option-group input,
.product-option-group select {
  background: #fff !important;
  border: 1px solid #cfc4c5 !important;
  border-radius: 8px !important;
  color: #111 !important;
  min-height: 44px !important;
  outline: 0 !important;
  padding: 0 14px !important;
  width: 100% !important;
}

.product-option-group input:focus,
.product-option-group select:focus {
  border-color: #050505 !important;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08) !important;
}

.pos-body,
.pos-body .pos-shell {
  background: #f9f9f9 !important;
  color: #111 !important;
}

.pos-body .pos-topbar {
  background: #fff !important;
  border-bottom: 1px solid #cfc4c5 !important;
  color: #111 !important;
}

.pos-body .pos-brand strong,
.pos-body .pos-clock,
.pos-body .pos-shift,
.pos-body .pos-payment,
.pos-body .pos-payment strong,
.pos-body .pos-payment b,
.pos-body .pos-product-card,
.pos-body .pos-product-card strong,
.pos-body .pos-product-card b,
.pos-body .pos-product-card small,
.pos-body .pos-summary-row,
.pos-body .pos-summary-row strong,
.pos-body .pos-summary-row b,
.pos-body .pos-summary-row span,
.pos-body .pos-totals strong,
.pos-body .pos-change-box strong {
  color: #111 !important;
}

.pos-body .pos-brand span,
.pos-body .pos-session-meta,
.pos-body .pos-session-meta *,
.pos-body .pos-helper,
.pos-body .pos-payment .field > span,
.pos-body .pos-payment .pos-totals span,
.pos-body .pos-payment .pos-summary-head,
.pos-body .pos-summary-row small,
.pos-body .pos-change-box span {
  color: #626262 !important;
}

.pos-body .pos-top-actions .btn,
.pos-body .pos-side-actions .btn,
.pos-body .pos-payment-methods button {
  background: #fff !important;
  border-color: #cfc4c5 !important;
  color: #111 !important;
}

.pos-body .pos-top-actions .btn.primary,
.pos-body .pos-payment-methods button.is-active,
.pos-body .pos-complete {
  background: #050505 !important;
  border-color: #050505 !important;
  color: #fff !important;
}

.pos-body .pos-complete *,
.pos-body .pos-payment-methods button.is-active * {
  color: #fff !important;
}

.pos-body .pos-grid {
  grid-template-columns: minmax(286px, 3fr) minmax(0, 7fr) !important;
}

.pos-body .pos-payment {
  background: #fff !important;
  border-right: 1px solid #cfc4c5 !important;
}

.pos-body .pos-products {
  background: #f9f9f9 !important;
}

.pos-body .pos-payment input,
.pos-body .pos-payment select,
.pos-body .pos-input {
  background: #fff !important;
  border-color: #cfc4c5 !important;
  color: #111 !important;
}

.pos-body .pos-cart-summary,
.pos-body .pos-totals,
.pos-body .pos-totals div,
.pos-body .pos-totals label,
.pos-body .pos-split-payments,
.pos-body .pos-split-total {
  border-color: #e2e2e2 !important;
}

.pos-body .pos-summary-row,
.pos-body .pos-totals .grand,
.pos-body .pos-change-box {
  background: #f3f3f4 !important;
  border-color: #e2e2e2 !important;
}

.pos-body .pos-category-tabs button {
  background: #fff !important;
  border-color: #cfc4c5 !important;
  color: #111 !important;
}

.pos-body .pos-category-tabs button.is-active {
  background: #050505 !important;
  border-color: #050505 !important;
  color: #fff !important;
}

.pos-body .pos-product-grid {
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)) !important;
  gap: 14px !important;
}

.pos-body .pos-product-card {
  background: #fff !important;
  border: 1px solid #d9d9df !important;
  border-radius: 8px !important;
  display: grid !important;
  gap: 10px !important;
  grid-template-rows: 164px minmax(38px, auto) 18px 42px !important;
  min-height: 304px !important;
  overflow: hidden !important;
  padding: 10px !important;
  position: relative !important;
}

.pos-body .pos-product-media {
  background: #f3f6fa !important;
  border-radius: 8px !important;
  height: 164px !important;
  min-height: 164px !important;
}

.pos-body .pos-product-card > b,
.pos-body .pos-product-qty {
  align-items: center !important;
  background: #f3f3f4 !important;
  border: 0 !important;
  border-radius: 7px !important;
  display: flex !important;
  height: 42px !important;
  justify-content: space-between !important;
  min-height: 42px !important;
  padding: 0 8px !important;
}

.pos-body .pos-product-card > b {
  grid-row: 4 !important;
  position: relative !important;
}

.pos-body .pos-product-card > b span {
  color: #d78317 !important;
  font-size: 14px !important;
  font-weight: 900 !important;
}

.pos-body .pos-product-card > b small {
  color: #667085 !important;
  font-size: 10px !important;
  line-height: 1.05 !important;
  text-align: right !important;
  text-transform: uppercase !important;
}

.pos-body .pos-product-card.is-selected > b {
  opacity: 0 !important;
  pointer-events: none !important;
}

.pos-body .pos-product-qty {
  bottom: 10px !important;
  box-shadow: none !important;
  color: #111 !important;
  gap: 8px !important;
  left: 10px !important;
  position: absolute !important;
  right: 10px !important;
  top: auto !important;
  z-index: 4 !important;
}

.pos-body .pos-product-qty[hidden] {
  display: none !important;
}

.pos-body .pos-product-qty button {
  align-items: center !important;
  background: #fff !important;
  border: 1px solid #d7d7dc !important;
  border-radius: 7px !important;
  color: #111 !important;
  display: inline-flex !important;
  height: 30px !important;
  justify-content: center !important;
  width: 30px !important;
}

.pos-body .pos-product-qty strong {
  color: #111 !important;
  font-size: 15px !important;
  font-weight: 900 !important;
}

.pos-settings-modal {
  max-width: 980px !important;
}

.pos-settings-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.8fr);
}

.pos-settings-block,
.pos-settings-methods {
  border: 1px solid #e2e2e2;
  border-radius: 8px;
  padding: 14px;
}

.pos-settings-methods {
  margin-top: 14px;
}

.pos-setting-rule {
  align-items: center;
  border-bottom: 1px solid #eeeeee;
  display: flex;
  justify-content: space-between;
  min-height: 38px;
}

.pos-setting-rule:last-child {
  border-bottom: 0;
}

.pos-setting-rule span {
  color: #626262;
  font-size: 13px;
  font-weight: 750;
}

.pos-setting-rule strong {
  color: #111;
  font-size: 13px;
}

@media (max-width: 980px) {
  .pos-body .pos-grid,
  .pos-settings-grid {
    grid-template-columns: 1fr !important;
  }

  .pos-body .pos-payment {
    border-right: 0 !important;
    border-top: 1px solid #cfc4c5 !important;
  }

  .pos-body .pos-products {
    order: 1;
  }

  .pos-body .pos-payment {
    order: 2;
  }
}

@media (max-width: 620px) {
  .pos-body .pos-shell {
    overflow-x: hidden !important;
  }

  .pos-body .pos-topbar,
  .pos-body .pos-session-meta,
  .pos-body .pos-top-actions,
  .pos-body .pos-search-row {
    align-items: stretch !important;
    flex-direction: column !important;
  }

  .pos-body .pos-top-actions .btn,
  .pos-body .pos-top-actions .icon-button,
  .pos-body .pos-branch-switch,
  .pos-body .pos-branch-switch select {
    width: 100% !important;
  }

  .pos-body .pos-products,
  .pos-body .pos-payment {
    padding: 12px !important;
  }

  .pos-body .pos-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .pos-body .pos-product-card {
    grid-template-rows: 126px minmax(38px, auto) 18px 42px !important;
    min-height: 258px !important;
    padding: 8px !important;
  }

  .pos-body .pos-product-media {
    height: 126px !important;
    min-height: 126px !important;
  }

  .pos-body .pos-product-card > strong {
    font-size: 13px !important;
    line-height: 17px !important;
  }

  .pos-body .pos-product-card > b,
  .pos-body .pos-product-qty {
    height: 40px !important;
    min-height: 40px !important;
  }

  .pos-body .pos-product-qty {
    bottom: 8px !important;
    left: 8px !important;
    right: 8px !important;
  }
}

/* Product stock split pages + final POS product controls */
.product-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}

.product-subnav a {
  align-items: center;
  background: #fff;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  color: #111827;
  display: inline-flex;
  font-size: 13px;
  font-weight: 850;
  min-height: 38px;
  padding: 0 14px;
  text-decoration: none;
}

.product-subnav a.is-active,
.product-subnav a:hover {
  background: #050505;
  border-color: #050505;
  color: #fff;
}

.product-list-grid {
  margin-top: 0 !important;
}

.category-dashboard-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  margin-top: 18px;
}

.category-detail-card {
  background: #fff;
  border: 1px solid #e4e7ec;
  border-radius: 10px;
  display: grid;
  gap: 16px;
  padding: 18px;
}

.category-detail-head {
  align-items: flex-start;
  display: flex;
  gap: 14px;
  justify-content: space-between;
}

.category-detail-head h3 {
  font-size: 20px;
  margin: 3px 0 0;
}

.category-detail-head strong {
  background: #050505;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  padding: 7px 10px;
  white-space: nowrap;
}

.category-detail-card summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 850;
}

.category-product-list {
  border-top: 1px solid #edf0f2;
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
}

.category-product-list > div {
  background: #f8fafc;
  border: 1px solid #eef2f6;
  border-radius: 8px;
  padding: 10px;
}

.product-category-create {
  margin-bottom: 18px;
}

.stock-table-card {
  margin-top: 18px;
}

.catalog-grid {
  align-items: stretch;
}

.catalog-product-card {
  border-radius: 10px !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
  min-height: 292px;
}

.catalog-product-media {
  height: 172px !important;
}

.catalog-product-foot b {
  color: #050505;
  font-size: 17px;
}

.catalog-product-actions {
  align-items: center;
  gap: 8px;
}

.catalog-product-actions .btn {
  flex: 1;
  justify-content: center;
}

.pos-grid {
  grid-template-columns: minmax(280px, 3fr) minmax(0, 7fr) !important;
}

.pos-product-card {
  grid-template-rows: 150px minmax(38px, auto) 18px 42px !important;
  min-height: 284px !important;
  padding: 10px !important;
  position: relative !important;
}

.pos-product-card > b {
  bottom: auto !important;
  grid-row: 4 !important;
  left: auto !important;
  min-height: 42px !important;
  overflow: hidden !important;
  position: relative !important;
  right: auto !important;
}

.pos-product-card.is-selected > b {
  opacity: 0 !important;
  pointer-events: none !important;
}

.pos-product-qty {
  background: #f4f4f5 !important;
  border-radius: 7px !important;
  bottom: 10px !important;
  box-shadow: none !important;
  color: #050505 !important;
  display: flex !important;
  height: 42px !important;
  justify-content: space-between !important;
  left: 10px !important;
  padding: 0 10px !important;
  right: 10px !important;
  top: auto !important;
}

.pos-product-qty[hidden] {
  display: none !important;
}

.pos-product-qty button {
  background: #050505 !important;
  color: #fff !important;
  height: 28px !important;
  width: 28px !important;
}

.pos-product-qty strong {
  color: #050505 !important;
  font-size: 15px !important;
}

@media (max-width: 860px) {
  .pos-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 520px) {
  .pos-product-card {
    grid-template-rows: 132px minmax(38px, auto) 18px 42px !important;
    min-height: 260px !important;
  }

  .category-dashboard-grid {
    grid-template-columns: 1fr;
  }
}

/* Final POS and product catalog polish */
.pos-body {
  background: #f9f9f9 !important;
  color: #111 !important;
}

.pos-body .pos-topbar {
  background: #fff !important;
  border-bottom: 1px solid #cfc4c5 !important;
  color: #111 !important;
}

.pos-body .pos-brand span,
.pos-body .pos-topbar small,
.pos-body .pos-session-meta {
  color: #626262 !important;
}

.pos-body .pos-clock {
  color: #111 !important;
}

.pos-body .pos-top-actions .btn {
  background: #fff !important;
  border-color: #cfc4c5 !important;
  color: #111 !important;
}

.pos-body .pos-top-actions .btn.primary {
  background: #050505 !important;
  border-color: #050505 !important;
  color: #fff !important;
}

.pos-body .pos-grid {
  grid-template-columns: minmax(280px, 3fr) minmax(0, 7fr) !important;
}

.pos-body .pos-payment {
  background: #fff !important;
  border-right: 1px solid #cfc4c5 !important;
  color: #111 !important;
}

.pos-body .pos-products {
  background: #f9f9f9 !important;
}

.pos-body .pos-payment .field > span,
.pos-body .pos-payment .pos-totals span,
.pos-body .pos-payment .pos-summary-head,
.pos-body .pos-payment .pos-helper {
  color: #626262 !important;
}

.pos-body .pos-payment input,
.pos-body .pos-payment select {
  background: #fff !important;
  border-color: #cfc4c5 !important;
  color: #111 !important;
}

.pos-body .pos-cart-summary,
.pos-body .pos-payment .pos-totals,
.pos-body .pos-payment .pos-totals div,
.pos-body .pos-payment .pos-totals label,
.pos-body .pos-split-payments,
.pos-body .pos-split-total {
  border-color: #e2e2e2 !important;
}

.pos-body .pos-summary-row,
.pos-body .pos-payment .grand,
.pos-body .pos-change-box,
.pos-body .pos-side-actions .btn,
.pos-body .pos-payment-methods button {
  background: #f3f3f4 !important;
  border-color: #e2e2e2 !important;
  color: #111 !important;
}

.pos-body .pos-summary-row small,
.pos-body .pos-summary-row b,
.pos-body .pos-summary-row strong,
.pos-body .pos-payment .pos-totals strong,
.pos-body .pos-change-box strong {
  color: #111 !important;
}

.pos-body .pos-payment-methods button.is-active,
.pos-body .pos-complete {
  background: #050505 !important;
  border-color: #050505 !important;
  color: #fff !important;
}

.pos-body .pos-product-card > b,
.pos-body .pos-product-qty {
  align-items: center !important;
  background: #f3f3f4 !important;
  border: 0 !important;
  border-radius: 7px !important;
  display: flex !important;
  height: 42px !important;
  justify-content: space-between !important;
  min-height: 42px !important;
  padding: 0 8px !important;
  width: 100% !important;
}

.pos-body .pos-product-card > b {
  grid-row: 4 !important;
  position: relative !important;
}

.pos-body .pos-product-card.is-selected > b {
  opacity: 0 !important;
  pointer-events: none !important;
}

.pos-body .pos-product-qty {
  bottom: 10px !important;
  box-shadow: none !important;
  color: #111 !important;
  gap: 8px !important;
  left: 10px !important;
  position: absolute !important;
  right: 10px !important;
  top: auto !important;
  width: auto !important;
  z-index: 4 !important;
}

.pos-body .pos-product-qty[hidden] {
  display: none !important;
}

.pos-body .pos-product-qty button {
  align-items: center !important;
  background: #fff !important;
  border: 1px solid #d7d7dc !important;
  border-radius: 7px !important;
  color: #111 !important;
  display: inline-flex !important;
  height: 30px !important;
  justify-content: center !important;
  width: 30px !important;
}

.pos-body .pos-product-qty strong {
  color: #111 !important;
  font-size: 15px !important;
  font-weight: 900 !important;
}

.product-category-table {
  margin-top: 18px;
}

.danger-icon {
  color: #d21f2b !important;
}

.category-detail-modal {
  max-width: 680px;
}

.product-option-group input,
.product-option-group select {
  background: #fff;
  border: 1px solid #cfc4c5;
  border-radius: 8px;
  color: #111;
  min-height: 44px;
  outline: 0;
  padding: 0 14px;
  width: 100%;
}

.product-option-group input:focus,
.product-option-group select:focus {
  border-color: #050505;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

/* POS cashier layout and product catalog */
.pos-topbar {
  background: #18262d !important;
  border-bottom: 1px solid #2c3a40 !important;
  color: #f8fafc;
  min-height: 58px;
  padding: 8px 14px !important;
}

.pos-brand span,
.pos-topbar small,
.pos-session-meta {
  color: #b8c5c9 !important;
}

.pos-session-meta {
  align-items: center;
  display: flex;
  flex: 1;
  gap: 14px;
}

.pos-branch-switch { display: block !important; min-width: 0 !important; }
.pos-branch-switch select { color: #fff; max-width: 180px; }
.pos-shift { font-size: 12px; white-space: nowrap; }
.pos-clock { color: #fff !important; font-size: 16px !important; min-width: auto !important; }
.pos-top-actions .btn { background: #fff; border-color: #fff; color: #111827; }
.pos-top-actions .btn.primary { background: #f0b25b; border-color: #f0b25b; color: #111827; }

.pos-grid {
  grid-template-columns: minmax(294px, 330px) minmax(0, 1fr) !important;
}

.pos-payment {
  background: #18262d !important;
  border-right: 1px solid #2c3a40 !important;
  color: #f8fafc;
  grid-column: 1;
  grid-row: 1;
  padding: 14px !important;
}

.pos-products {
  background: #f5f6f7 !important;
  grid-column: 2;
  grid-row: 1;
  padding: 18px !important;
}

.pos-payment form { display: flex !important; flex-direction: column; gap: 12px; }
.pos-payment [hidden] { display: none !important; }
.pos-payment .field > span,
.pos-payment .pos-totals span,
.pos-payment .pos-summary-head,
.pos-payment .pos-helper { color: #aebdc1 !important; }
.pos-payment input,
.pos-payment select { background: #23343a !important; border-color: #3b4e54 !important; color: #fff !important; }
.pos-payment .pos-totals { border-color: #34464d !important; }
.pos-payment .pos-totals div,
.pos-payment .pos-totals label { border-color: #34464d !important; }
.pos-payment .pos-totals strong,
.pos-payment .pos-change-box strong { color: #fff !important; }
.pos-payment .grand { background: #23343a !important; }

.pos-cart-summary { border-color: #34464d !important; order: -2; }
.pos-summary-list { max-height: 220px; }
.pos-summary-row { background: #23343a !important; color: #fff; }
.pos-summary-row small { color: #aebdc1; display: block; font-size: 10px; margin-top: 3px; }
.pos-summary-row b { color: #fff; }
.pos-side-actions { order: -1; }
.pos-side-actions .btn { background: #23343a; border-color: #3b4e54; color: #fff; }

.pos-payment-methods { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.pos-payment-methods button { background: #23343a !important; border-color: #3b4e54 !important; color: #e9eff1 !important; }
.pos-payment-methods button.is-active { background: #f0b25b !important; border-color: #f0b25b !important; color: #16242a !important; }
.pos-complete { background: #f0b25b !important; border-color: #f0b25b !important; color: #17242a !important; margin-top: auto; }
.pos-change-box { background: #23343a !important; border-color: #3b4e54 !important; }
.pos-split-payments { border-color: #34464d !important; }
.pos-split-total { border-color: #3b4e54 !important; }

.pos-category-tabs { display: flex !important; overflow-x: auto; padding-bottom: 2px; }
.pos-category-tabs button { flex: 0 0 auto; min-width: 120px; }
.pos-product-grid { grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)) !important; gap: 12px !important; }
.pos-product-card { background: #fff !important; border-color: #e0e4e6 !important; box-shadow: none !important; min-height: 262px !important; padding: 10px 10px 52px !important; }
.pos-product-card:hover, .pos-product-card.is-selected { border-color: #f0b25b !important; box-shadow: 0 0 0 2px rgba(240,178,91,.24) !important; }
.pos-product-card > b { background: transparent !important; bottom: 10px; left: 10px; min-height: auto !important; padding: 0 !important; position: absolute; right: 10px; }
.pos-product-card > b::after { content: none !important; }
.pos-product-card > b span { color: #d78317; font-size: 14px; font-weight: 900; }
.pos-product-card > b small { color: #6b7280 !important; font-size: 10px !important; text-transform: uppercase; }
.pos-product-qty { background: #eef1f3 !important; border-radius: 6px !important; bottom: 8px !important; box-shadow: none !important; height: 34px !important; left: 8px !important; padding: 0 6px !important; right: 8px !important; }
.pos-product-qty button { background: #fff !important; border: 1px solid #d6dadd !important; color: #17242a !important; height: 24px !important; width: 24px !important; }
.pos-product-qty strong { color: #17242a !important; }

.pos-options-modal { max-width: 540px; }
.pos-option-groups { display: grid; gap: 16px; }
.pos-option-group { display: grid; gap: 9px; }
.pos-option-group > strong { font-size: 14px; }
.pos-option-group > div { display: grid; gap: 8px; }
.pos-option-group label { align-items: center; border: 1px solid #e1e5e7; border-radius: 7px; cursor: pointer; display: grid; gap: 8px; grid-template-columns: 18px 1fr auto; padding: 10px; }
.pos-option-group label:has(input:checked) { background: #fff6e7; border-color: #f0b25b; }
.pos-option-group b { color: #d78317; font-size: 12px; }
.pos-option-total { border-top: 1px solid #e1e5e7; display: flex; font-weight: 850; justify-content: space-between; margin-top: 16px; padding-top: 14px; }

.catalog-category-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.catalog-category-chip { align-items: center; background: #f3f4f6; border: 1px solid #e2e5e7; border-radius: 999px; display: inline-flex; gap: 5px; padding: 5px 7px 5px 10px; }
.catalog-category-chip button { align-items: center; background: transparent; border: 0; cursor: pointer; display: inline-flex; padding: 0; }
.catalog-category-chip .material-symbols-outlined { font-size: 16px; }
.catalog-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.catalog-product-card { background: #fff; border: 1px solid #e1e5e7; border-radius: 8px; display: grid; gap: 11px; overflow: hidden; padding: 10px; }
.catalog-product-media { align-items: center; background: #f2f5f7; border-radius: 7px; display: flex; height: 154px; justify-content: center; overflow: hidden; position: relative; }
.catalog-product-media img { height: 100%; object-fit: cover; width: 100%; }
.catalog-product-media .material-symbols-outlined { font-size: 52px; }
.catalog-product-media > span:last-child { background: #fff; border-radius: 999px; font-size: 10px; font-weight: 850; left: 8px; padding: 4px 7px; position: absolute; top: 8px; }
.catalog-product-card strong { display: block; }
.catalog-product-card small { color: #667085; display: block; font-size: 12px; margin-top: 4px; }
.catalog-product-foot { align-items: start; display: grid; gap: 8px; }
.catalog-product-foot > div { display: grid; gap: 2px; }
.catalog-product-foot span, .catalog-product-foot small { color: #667085; font-size: 12px; font-weight: 700; }
.catalog-product-foot b, .catalog-product-foot strong { color: #111; font-size: 15px; }
.catalog-product-actions { display: flex; justify-content: space-between; }
.product-editor-modal { max-width: 980px; }
.product-options-editor { border-top: 1px solid #e1e5e7; margin-top: 8px; padding-top: 16px; }
.product-option-group { border: 1px solid #e1e5e7; border-radius: 8px; display: grid; gap: 10px; margin-top: 10px; padding: 12px; }
.product-option-group-head { align-items: center; display: grid; gap: 8px; grid-template-columns: minmax(0,1fr) 130px auto 36px; }
.product-option-group-head label { font-size: 12px; font-weight: 800; white-space: nowrap; }
.product-option-value { display: grid; gap: 8px; grid-template-columns: minmax(0,1fr) 130px 36px; margin-top: 8px; }

@media (max-width: 860px) {
  .pos-topbar { align-items: flex-start !important; flex-wrap: wrap; }
  .pos-session-meta { flex: 1 0 auto; }
  .pos-top-actions { width: 100%; }
  .pos-grid { display: flex !important; flex-direction: column; }
  .pos-products { order: 1; }
  .pos-payment { border-right: 0 !important; order: 2; }
}

@media (max-width: 560px) {
  .pos-body, .pos-shell { max-width: 100%; overflow-x: hidden !important; width: 100%; }
  .pos-session-meta { gap: 8px; width: 100%; }
  .pos-clock { display: none; }
  .pos-top-actions { display: grid !important; gap: 6px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 36px minmax(0, 1fr); }
  .pos-top-actions .btn { font-size: 10px; min-width: 0; padding: 0 5px; white-space: normal; }
  .pos-top-actions .icon-button { min-width: 0; width: 36px; }
  .pos-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .pos-product-card { min-height: 236px !important; }
  .pos-product-media { height: 116px !important; min-height: 116px !important; }
  .product-option-group-head, .product-option-value { grid-template-columns: 1fr 1fr; }
  .product-option-group-head > :first-child, .product-option-value > :first-child { grid-column: 1 / -1; }
}

.payment-card-fields {
  grid-template-columns: 1fr !important;
  gap: 16px !important;
}

.payment-card-fields label:first-child {
  grid-column: auto !important;
}

.file-preview {
  border: 1px solid #e4e4e7;
  border-radius: 8px;
  display: block;
  height: 112px;
  margin: 10px auto 0;
  max-width: 190px;
  object-fit: cover;
  width: 100%;
}

.file-preview[hidden] {
  display: none !important;
}

.pos-product-grid {
  gap: 14px !important;
  grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)) !important;
}

.pos-product-card {
  align-content: stretch !important;
  background: #fff !important;
  border: 1px solid #d9d9df !important;
  border-radius: 8px !important;
  display: grid !important;
  gap: 9px !important;
  grid-template-rows: 150px auto auto auto !important;
  min-height: 284px !important;
  overflow: hidden !important;
  padding: 10px !important;
}

.pos-product-card::before {
  content: none !important;
  display: none !important;
}

.pos-product-media {
  align-items: center !important;
  background: #f3f6fa !important;
  border-radius: 8px !important;
  display: flex !important;
  height: 150px !important;
  justify-content: center !important;
  min-height: 150px !important;
  overflow: hidden !important;
  position: relative !important;
  width: 100% !important;
}

.pos-product-image {
  display: block !important;
  height: 100% !important;
  max-height: none !important;
  max-width: none !important;
  object-fit: cover !important;
  width: 100% !important;
}

.pos-product-icon {
  align-items: center !important;
  color: #050505 !important;
  display: flex !important;
  font-size: 54px !important;
  height: 100% !important;
  justify-content: center !important;
  margin: 0 !important;
  width: 100% !important;
}

.pos-stock-badge {
  left: 8px !important;
  position: absolute !important;
  top: 8px !important;
  z-index: 2 !important;
}

.pos-product-card > strong {
  display: -webkit-box !important;
  font-size: 14px !important;
  line-height: 18px !important;
  min-height: 36px !important;
  overflow: hidden !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
}

.pos-product-card > small {
  color: #64748b !important;
  font-size: 12px !important;
  font-weight: 850 !important;
}

.pos-product-card > b {
  align-items: center !important;
  background: #f4f4f5 !important;
  border-radius: 7px !important;
  display: flex !important;
  justify-content: space-between !important;
  margin-top: 0 !important;
  min-height: 42px !important;
  padding: 0 8px !important;
}

.pos-product-card > b::after {
  content: "shopping_cart" !important;
  font-family: "Material Symbols Outlined" !important;
  font-size: 19px !important;
  font-weight: 400 !important;
}

.pos-product-qty {
  align-items: center !important;
  background: #050505 !important;
  border-radius: 999px !important;
  bottom: 20px !important;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14) !important;
  display: flex !important;
  gap: 14px !important;
  height: 36px !important;
  justify-content: space-between !important;
  left: 18px !important;
  padding: 0 8px !important;
  right: 18px !important;
  top: auto !important;
  z-index: 4 !important;
}

.pos-product-qty[hidden] {
  display: none !important;
}

.pos-product-qty button {
  align-items: center !important;
  background: #27272a !important;
  border: 0 !important;
  border-radius: 999px !important;
  color: #fff !important;
  display: inline-flex !important;
  height: 26px !important;
  justify-content: center !important;
  width: 26px !important;
}

.pos-product-qty strong {
  color: #fff !important;
  font-size: 14px !important;
  line-height: 1 !important;
}

.pos-product-card.is-selected > b {
  padding-bottom: 0 !important;
}

.synced-record-lock {
  color: #71717a;
  cursor: help;
  opacity: .8;
}

@media (max-width: 760px) {
  .payment-card-fields,
  .pos-grid,
  .pos-body .pos-grid {
    grid-template-columns: 1fr !important;
  }

  .daily-section-title {
    align-items: stretch;
    flex-direction: column;
  }

  .daily-section-title > span {
    align-self: flex-start;
  }

  .daily-auto-status {
    margin-left: 0;
    width: 100%;
  }
}

@media (max-width: 560px) {
  .settings-module-sidebar nav {
    grid-template-columns: 1fr;
  }

  .table-actions {
    flex-wrap: wrap;
  }
}

@media (max-width: 520px) {
  .pos-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .pos-product-card {
    grid-template-rows: 132px auto auto auto !important;
    min-height: 260px !important;
  }

  .pos-product-media {
    height: 132px !important;
    min-height: 132px !important;
  }
}

.file-preview {
  border: 1px solid #e4e4e7;
  border-radius: 8px;
  display: block;
  height: 112px;
  margin: 10px auto 0;
  max-width: 190px;
  object-fit: cover;
  width: 100%;
}

.file-preview[hidden] {
  display: none;
}

.pos-product-grid {
  gap: 14px !important;
  grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)) !important;
}

.pos-product-card {
  align-content: stretch !important;
  background: #fff !important;
  border: 1px solid #d9d9df !important;
  border-radius: 8px !important;
  display: grid !important;
  gap: 9px !important;
  grid-template-rows: 150px auto auto auto !important;
  min-height: 284px !important;
  overflow: hidden !important;
  padding: 10px !important;
}

.pos-product-card::before {
  content: none !important;
  display: none !important;
}

.pos-product-media {
  align-items: center !important;
  background: #f3f6fa !important;
  border-radius: 8px !important;
  display: flex !important;
  height: 150px !important;
  justify-content: center !important;
  min-height: 150px !important;
  overflow: hidden !important;
  position: relative !important;
  width: 100% !important;
}

.pos-product-image {
  display: block !important;
  height: 100% !important;
  max-height: none !important;
  max-width: none !important;
  object-fit: cover !important;
  width: 100% !important;
}

.pos-product-icon {
  align-items: center !important;
  color: #050505 !important;
  display: flex !important;
  font-size: 54px !important;
  height: 100% !important;
  justify-content: center !important;
  margin: 0 !important;
  width: 100% !important;
}

.pos-stock-badge {
  left: 8px !important;
  position: absolute !important;
  top: 8px !important;
  z-index: 2 !important;
}

.pos-product-card > strong {
  display: -webkit-box !important;
  font-size: 14px !important;
  line-height: 18px !important;
  min-height: 36px !important;
  overflow: hidden !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
}

.pos-product-card > small {
  color: #64748b !important;
  font-size: 12px !important;
  font-weight: 850 !important;
}

.pos-product-card > b {
  align-items: center !important;
  background: #f4f4f5 !important;
  border-radius: 7px !important;
  display: flex !important;
  justify-content: space-between !important;
  margin-top: 0 !important;
  min-height: 42px !important;
  padding: 0 8px !important;
}

.pos-product-card > b::after {
  content: "shopping_cart" !important;
  font-family: "Material Symbols Outlined" !important;
  font-size: 19px !important;
  font-weight: 400 !important;
}

.pos-product-qty {
  align-items: center !important;
  background: #050505 !important;
  border-radius: 999px !important;
  bottom: 20px !important;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14) !important;
  display: flex !important;
  gap: 14px !important;
  height: 36px !important;
  justify-content: space-between !important;
  left: 18px !important;
  padding: 0 8px !important;
  right: 18px !important;
  top: auto !important;
  z-index: 4 !important;
}

.pos-product-qty[hidden] {
  display: none !important;
}

.pos-product-qty button {
  align-items: center !important;
  background: #27272a !important;
  border: 0 !important;
  border-radius: 999px !important;
  color: #fff !important;
  display: inline-flex !important;
  height: 26px !important;
  justify-content: center !important;
  width: 26px !important;
}

.pos-product-qty strong {
  color: #fff !important;
  font-size: 14px !important;
  line-height: 1 !important;
}

.pos-product-card.is-selected > b {
  padding-bottom: 0 !important;
}

@media (max-width: 520px) {
  .pos-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .pos-product-card {
    grid-template-rows: 132px auto auto auto !important;
    min-height: 260px !important;
  }

  .pos-product-media {
    height: 132px !important;
    min-height: 132px !important;
  }
}

.pos-product-card {
  background: #fff !important;
  border: 1px solid #d9d9df !important;
  border-radius: 8px !important;
  display: grid !important;
  gap: 8px !important;
  grid-template-rows: 150px auto auto auto !important;
  min-height: 282px !important;
  overflow: hidden;
  padding: 10px !important;
}

.pos-product-card::before {
  display: none !important;
}

.pos-product-media {
  align-items: center;
  background: #f3f6fa;
  border-radius: 8px;
  display: flex;
  grid-row: 1;
  justify-content: center;
  min-height: 150px;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.pos-product-image {
  height: 100% !important;
  max-height: none !important;
  max-width: none !important;
  object-fit: cover;
  width: 100%;
}

.pos-product-icon {
  color: #0f172a;
  font-size: 48px !important;
  margin: 0 !important;
}

.pos-stock-badge {
  left: 8px !important;
  position: absolute !important;
  top: 8px !important;
  z-index: 4;
}

.pos-product-card > strong {
  font-size: 14px !important;
  line-height: 18px !important;
  min-height: 36px;
}

.pos-product-card > small {
  color: #64748b;
  font-size: 12px !important;
  font-weight: 850;
}

.pos-product-card > b {
  margin-top: 0 !important;
  min-height: 42px !important;
}

.pos-product-qty {
  bottom: 16px !important;
  left: 18px !important;
  right: 18px !important;
  top: auto !important;
  z-index: 8;
}
html {
  scroll-behavior: smooth;
}

.user-menu {
  position: relative;
}

.user-menu-trigger {
  align-items: center;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  gap: 6px;
  list-style: none;
  padding: 3px 8px 3px 3px;
}

.user-menu-trigger::-webkit-details-marker {
  display: none;
}

.user-menu-trigger .avatar {
  width: 34px;
  height: 34px;
}

.user-menu-panel {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.16);
  min-width: 230px;
  padding: 8px;
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 60;
}

.user-menu-head {
  border-bottom: 1px solid #f1f5f9;
  display: grid;
  gap: 3px;
  margin-bottom: 6px;
  padding: 10px;
}

.user-menu-head span,
.user-menu-head small {
  color: #64748b;
  font-size: 12px;
}

.user-menu-panel a,
.user-menu-panel button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 7px;
  color: #111827;
  cursor: pointer;
  display: flex;
  font: inherit;
  font-weight: 700;
  gap: 10px;
  padding: 10px;
  text-align: left;
  text-decoration: none;
  width: 100%;
}

.user-menu-panel a:hover,
.user-menu-panel button:hover {
  background: #f8fafc;
}

.nav-group {
  margin-top: 6px;
}

.nav-group > summary {
  list-style: none;
}

.nav-group > summary::-webkit-details-marker {
  display: none;
}

.nav-group > summary::after {
  content: "expand_more";
  font-family: "Material Symbols Outlined";
  font-size: 18px;
  margin-left: auto;
}

.nav-group[open] > summary::after {
  content: "expand_less";
}

.nav-sub {
  border-left: 1px solid #d4d4d8;
  display: grid;
  gap: 6px;
  margin: 8px 0 8px 24px;
  padding-left: 12px;
}

.nav-sub .nav-item {
  border-radius: 7px;
  font-size: 13px;
  min-height: 34px;
  padding-left: 12px;
}

.nav-sub .nav-item::before {
  background: #cbd5e1;
  border-radius: 50%;
  content: "";
  height: 5px;
  width: 5px;
}

.panel-footer-links {
  align-items: center;
  border-top: 1px solid #e5e7eb;
  color: #64748b;
  display: flex;
  justify-content: space-between;
  margin-top: 34px;
  padding: 22px 0 6px;
}

.panel-footer-links div {
  display: grid;
  gap: 4px;
}

.panel-footer-links strong {
  color: #111827;
}

.panel-footer-links nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.panel-footer-links a {
  color: #334155;
  font-weight: 800;
  text-decoration: none;
}

.file-picker {
  align-items: center;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  cursor: pointer;
  display: grid;
  gap: 4px;
  min-height: 96px;
  padding: 16px;
  text-align: center;
}

.file-picker:hover {
  background: #f8fafc;
  border-color: #111827;
}

.file-picker input {
  height: 1px;
  opacity: 0;
  overflow: hidden;
  position: absolute;
  width: 1px;
}

.file-picker .material-symbols-outlined {
  font-size: 30px;
}

.file-picker small {
  color: #64748b;
  overflow-wrap: anywhere;
}

.icon-picker {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px;
}

.icon-search {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 7px;
  display: flex;
  gap: 8px;
  padding: 8px 10px;
}

.icon-search input {
  background: transparent;
  border: 0;
  min-width: 0;
  outline: 0;
  width: 100%;
}

.icon-picker-groups {
  display: grid;
  gap: 10px;
  margin-top: 10px;
  max-height: 220px;
  overflow: auto;
}

.icon-picker-group small {
  color: #64748b;
  display: block;
  font-weight: 800;
  margin-bottom: 6px;
}

.icon-picker-group div {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(auto-fit, minmax(116px, 1fr));
}

.icon-picker button {
  align-items: center;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 7px;
  cursor: pointer;
  display: flex;
  gap: 8px;
  min-height: 38px;
  padding: 8px;
}

.icon-picker button.is-selected {
  background: #111827;
  border-color: #111827;
  color: #fff;
}

.public-footer {
  background: #0a0a0a;
  border-top: 1px solid #18181b;
  color: #a1a1aa;
}

.public-footer-inner {
  align-items: flex-start;
  display: grid;
  gap: 24px;
  grid-template-columns: 1.4fr 1fr;
  margin: 0 auto;
  max-width: 1180px;
  padding: 34px 24px;
}

.public-footer strong {
  color: #fff;
  display: block;
  font-size: 18px;
  margin-bottom: 8px;
}

.public-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  justify-content: flex-end;
}

.public-footer a {
  color: #f4f4f5;
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 760px) {
  .panel-footer-links,
  .public-footer-inner {
    grid-template-columns: 1fr;
  }

  .panel-footer-links {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .public-footer nav {
    justify-content: flex-start;
  }
}

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

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

.field-icon {
  align-self: stretch;
}

.field-icon > label {
  margin-bottom: 8px;
}

.field-icon .icon-picker {
  display: grid;
  gap: 10px;
}

.field-icon .icon-search {
  max-width: 280px;
}

.field-icon .icon-picker-groups {
  display: flex;
  gap: 14px;
  max-height: none;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 2px 10px;
}

.field-icon .icon-picker-group {
  flex: 0 0 auto;
  min-width: 260px;
}

.field-icon .icon-picker-group div {
  display: flex;
  gap: 8px;
}

.field-icon .icon-picker button {
  flex: 0 0 auto;
  min-width: 118px;
  white-space: nowrap;
}

.sidebar {
  overflow: hidden;
}

.nav {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-color: #050505 transparent;
  scrollbar-width: thin;
}

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

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

.nav::-webkit-scrollbar-thumb {
  background: #050505;
  border-radius: 999px;
  transition: width 180ms ease, background 180ms ease;
}

.nav:hover::-webkit-scrollbar {
  width: 9px;
}

.nav:hover::-webkit-scrollbar-thumb {
  background: #111827;
}

.pos-product-grid {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}

.pos-product-card {
  align-content: stretch;
  background: #fff;
  border-color: #d7d7dc;
  grid-template-rows: 1fr auto auto auto;
  min-height: 228px;
  padding: 10px;
}

.pos-product-card::before {
  background: linear-gradient(180deg, #f8fafc, #f1f5f9);
  border-radius: 7px;
  content: "";
  display: block;
  grid-row: 1;
  min-height: 120px;
  width: 100%;
}

.pos-product-icon {
  align-self: center;
  grid-row: 1;
  justify-self: center;
  margin: 0;
  z-index: 2;
}

.pos-product-card > strong {
  font-size: 13px;
  line-height: 17px;
  margin-top: 8px;
}

.pos-product-card > small {
  font-size: 11px;
}

.pos-product-card > b {
  align-items: center;
  background: #f4f4f5;
  border-radius: 7px;
  display: flex;
  font-size: 13px;
  justify-content: space-between;
  margin-top: 10px;
  min-height: 38px;
  padding: 0 8px;
  width: 100%;
}

.pos-product-card > b::after {
  content: "shopping_cart";
  font-family: "Material Symbols Outlined";
  font-size: 19px;
}

.pos-stock-badge {
  left: 14px;
  right: auto;
  top: 14px;
  z-index: 3;
}

.pos-product-qty {
  bottom: 14px;
  left: 14px;
  right: 14px;
  top: auto;
}

.pos-product-card.is-selected > b {
  padding-bottom: 38px;
}

@media (max-width: 520px) {
  .pos-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pos-product-card {
    min-height: 210px;
  }
}

.settings-section {
  margin-top: 24px;
}

.settings-inline-form {
  align-items: end;
  border-bottom: 1px solid #e5e7eb;
  display: grid;
  gap: 12px;
  grid-template-columns: 160px minmax(220px, 1fr) auto;
  padding: 0 18px 18px;
}

.report-filter-form {
  grid-template-columns: repeat(2, minmax(144px, 1fr)) auto auto;
}

.report-filter-form .btn {
  align-self: end;
  white-space: nowrap;
}

.payment-method-actions {
  align-items: center;
  display: inline-flex;
  gap: 6px;
  justify-content: flex-end;
}

.payment-method-actions form {
  margin: 0;
}

.dashboard-panel {
  background: #fff;
  border: 1px solid #e4e4e7;
  border-radius: 8px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  padding: 20px;
}

.dashboard-payment-list,
.dashboard-bars {
  max-height: 192px;
  overflow: auto;
  padding-right: 6px;
}

.profile-layout {
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1fr) 360px;
}

.profile-card {
  align-items: center;
  display: grid;
  gap: 22px;
  grid-template-columns: auto 1fr;
}

.profile-avatar {
  background: #050505;
  border-radius: 50%;
  color: #fff;
  display: grid;
  font-size: 30px;
  font-weight: 900;
  height: 86px;
  place-items: center;
  width: 86px;
}

.profile-facts {
  display: grid;
  gap: 10px;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.profile-facts div {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  display: grid;
  gap: 5px;
  padding: 14px;
}

.profile-facts span {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.profile-actions {
  display: grid;
  gap: 10px;
}

.reports-hero {
  background: #050505;
  border-radius: 10px;
  color: #fff;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1fr);
  margin-bottom: 22px;
  padding: 28px;
}

.reports-hero h3 {
  font-size: 34px;
  line-height: 1.1;
  margin: 0 0 10px;
}

.reports-hero p {
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.6;
  margin: 0;
}

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

.report-kpi-grid article {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 16px;
}

.report-kpi-grid span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 800;
}

.report-kpi-grid strong {
  font-size: 18px;
  overflow-wrap: anywhere;
}

.report-summary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 22px;
}

.report-name {
  align-items: center;
  display: flex;
  gap: 10px;
}

.compact-report {
  min-height: 36px;
  padding: 0 12px;
}

.payment-page {
  display: grid;
  gap: 42px;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 0.8fr);
  margin: 0 auto;
  max-width: 1180px;
  padding: 70px 24px;
  width: 100%;
}

.payment-copy {
  align-content: center;
  display: grid;
  gap: 22px;
}

.payment-copy h1 {
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1;
  margin: 0;
}

.payment-copy p {
  color: #52525b;
  font-size: 17px;
  line-height: 1.7;
  margin: 0;
}

.payment-plan-switch {
  display: grid;
  gap: 10px;
  max-width: 520px;
}

.payment-plan-switch a {
  align-items: center;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  padding: 16px;
}

.payment-plan-switch a.is-active {
  background: #050505;
  border-color: #050505;
  color: #fff;
}

.payment-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 22px 70px rgba(15, 23, 42, 0.12);
  padding: 24px;
}

.payment-summary {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
  padding: 16px;
}

.payment-summary div {
  display: flex;
  justify-content: space-between;
}

.payment-summary span,
.payment-form span {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.payment-form {
  display: grid;
  gap: 14px;
}

.payment-form label {
  display: grid;
  gap: 7px;
}

.payment-form input {
  border: 1px solid #d4d4d8;
  border-radius: 8px;
  min-height: 44px;
  padding: 0 12px;
}

.payment-card-fields {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 100px 90px;
}

.payment-form p {
  color: #64748b;
  font-size: 12px;
  line-height: 1.5;
  margin: 0;
}

.paytr-iframe {
  border: 0;
  min-height: 720px;
  width: 100%;
}

.status-pill {
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  color: #166534;
  font-size: 12px;
  font-weight: 900;
  padding: 7px 10px;
}

.profile-subscription {
  display: grid;
  gap: 18px;
}

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

.profile-facts div,
.subscription-facts div {
  min-width: 0;
}

.profile-facts strong,
.subscription-facts strong {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: normal;
  line-height: 1.25;
}

.settings-module-layout {
  align-items: start;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
}

.settings-module-sidebar {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 18px;
  position: sticky;
  top: 104px;
  min-width: 0;
}

.settings-module-sidebar nav,
.settings-module-content {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.settings-module-sidebar a {
  align-items: center;
  border-radius: 8px;
  color: #52525b;
  display: flex;
  gap: 10px;
  min-height: 42px;
  min-width: 0;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 850;
  overflow: hidden;
}

.settings-module-sidebar a:hover {
  background: #f4f4f5;
  color: #050505;
}

.settings-module-card,
.subscription-panel,
.subscription-payment-box {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.06);
}

.settings-module-card {
  display: grid;
  gap: 18px;
  min-width: 0;
  overflow: hidden;
  padding: 22px;
  scroll-margin-top: 112px;
}

.settings-module-head,
.subscription-panel-head {
  align-items: flex-start;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

.settings-module-head h3,
.subscription-panel-head h3 {
  margin: 0;
  font-size: 22px;
}

.settings-fact-grid,
.settings-check-list {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.settings-fact-grid div,
.settings-check-list div {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  display: grid;
  gap: 5px;
  padding: 14px;
  min-width: 0;
}

.settings-check-list div {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.settings-fact-grid span,
.settings-check-list span:first-child {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.settings-fact-grid strong,
.settings-check-list strong,
.settings-module-card p,
.settings-module-card b {
  min-width: 0;
  overflow-wrap: anywhere;
}

.settings-module-card .table-wrap {
  max-width: 100%;
}

@media (min-width: 761px) {
  .settings-module-card .table-wrap table {
    table-layout: fixed;
  }

  .settings-module-card .table-wrap th,
  .settings-module-card .table-wrap td {
    padding-left: 10px;
    padding-right: 10px;
    overflow-wrap: anywhere;
  }

  .settings-module-card .action-cell {
    flex-wrap: wrap;
  }
}

.settings-module-form {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.settings-module-form .btn {
  justify-self: start;
}

/* Shared panel rhythm: keep independent modules visually separated on every page. */
.content > :where(section, article, form, .card, .grid, .notice) + :where(section, article, form, .card, .grid, .notice) {
  margin-top: 24px;
}

.content :where(.card, .dashboard-panel, .settings-module-card, .reports-hero) {
  min-width: 0;
}

.content :where(.card-title-row, .table-head, .dashboard-panel-head, .dashboard-section-head, .settings-module-head) {
  row-gap: 12px;
}

.field textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font: inherit;
  line-height: 1.5;
  min-height: 108px;
  padding: 11px 12px;
  resize: vertical;
  width: 100%;
}

.field textarea:focus {
  border-color: var(--primary);
  outline: 0;
}

@media (max-width: 760px) {
  .content > :where(section, article, form, .card, .grid, .notice) + :where(section, article, form, .card, .grid, .notice) {
    margin-top: 18px;
  }

  .content :where(.card-title-row, .table-head, .dashboard-panel-head, .dashboard-section-head, .settings-module-head) {
    align-items: stretch;
    flex-direction: column;
  }

  .content :where(.table-actions, .page-head > div:last-child, .dashboard-actions-band nav) {
    width: 100%;
  }

  .content :where(.table-actions, .page-head > div:last-child) .btn {
    flex: 1 1 auto;
  }

  .table-head,
  .card-pad,
  .settings-module-card {
    padding: 18px;
  }

  th,
  td {
    padding-left: 16px;
    padding-right: 16px;
  }
}

.subscription-checkout {
  align-items: start;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 460px);
}

.subscription-panel,
.subscription-payment-box {
  padding: 26px;
}

.subscription-panel-head p {
  color: #64748b;
  font-weight: 650;
  line-height: 1.6;
  margin: 8px 0 0;
  max-width: 640px;
}

.subscription-price {
  color: #050505;
  font-size: 30px;
  font-weight: 950;
  white-space: nowrap;
}

.subscription-price small {
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
}

.subscription-plan-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.subscription-plan-list a {
  align-items: center;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 16px 48px 16px 16px;
  position: relative;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease, color 160ms ease;
}

.subscription-plan-list a::before {
  background: transparent;
  border: 2px solid #cbd5e1;
  border-radius: 999px;
  content: "";
  height: 14px;
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
}

.subscription-plan-list a.is-active {
  background: #050505;
  border-color: #050505;
  box-shadow: 0 18px 40px rgba(5, 5, 5, 0.22);
  color: #fff;
}

.subscription-plan-list a.is-active::before {
  background: #22c55e;
  border: 2px solid #fff;
  border-radius: 999px;
  content: "";
  height: 12px;
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
}

.subscription-plan-list span {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.subscription-plan-list small {
  color: #64748b;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.subscription-plan-list a.is-active small {
  color: rgba(255, 255, 255, 0.72);
}

.subscription-plan-list em {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  color: #fff;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  padding: 5px 9px;
  white-space: nowrap;
}

.subscription-plan-list b {
  white-space: nowrap;
}

.payment-summary.premium strong {
  overflow-wrap: anywhere;
  text-align: right;
}

.subscription-assurance {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 24px;
}

.subscription-assurance div {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  display: grid;
  gap: 7px;
  padding: 16px;
}

.subscription-assurance small,
.premium-payment-form p {
  color: #64748b;
  line-height: 1.5;
}

.payment-summary.premium {
  background: #050505;
  border-color: #050505;
  color: #fff;
}

.payment-summary.premium span {
  color: rgba(255, 255, 255, 0.65);
}

.paytr-iframe.premium {
  border-radius: 8px;
  min-height: 760px;
}

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

.payment-card-fields label:first-child {
  grid-column: 1 / -1;
}

@media (max-width: 980px) {
  .sidebar:not(.open) {
    pointer-events: none;
    visibility: hidden;
  }

  .sidebar.open {
    pointer-events: auto;
    visibility: visible;
  }

  .settings-module-layout,
  .subscription-checkout {
    grid-template-columns: 1fr;
  }

  .settings-module-sidebar {
    position: static;
  }

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

  .settings-module-form,
  .settings-fact-grid,
  .settings-check-list,
  .subscription-assurance {
    grid-template-columns: 1fr;
  }
}

.legal-shell {
  margin: 0 auto;
  max-width: 960px;
  padding: 76px 24px;
  width: 100%;
}

.legal-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

.legal-card h1 {
  border-bottom: 1px solid #e5e7eb;
  font-size: clamp(36px, 5vw, 56px);
  margin-bottom: 24px;
  padding-bottom: 22px;
}

.legal-card h2 {
  font-size: 22px;
  margin-top: 34px;
}

.pos-grid {
  grid-template-columns: minmax(360px, 1fr) minmax(320px, 420px);
}

.pos-products {
  border-right: 1px solid var(--border);
}

.pos-product-card {
  isolation: isolate;
  overflow: hidden;
}

.pos-product-card.is-selected {
  border-color: #050505;
  box-shadow: inset 0 0 0 1px #050505;
}

.pos-product-qty {
  align-items: center;
  background: #050505;
  border-radius: 999px;
  color: #fff;
  display: grid;
  gap: 4px;
  grid-template-columns: 26px 30px 26px;
  left: 8px;
  min-height: 30px;
  padding: 2px;
  position: absolute;
  right: 8px;
  top: 8px;
  z-index: 3;
}

.pos-product-qty button {
  background: rgba(255, 255, 255, 0.16);
  border: 0;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  height: 26px;
  width: 26px;
}

.pos-product-qty strong {
  text-align: center;
}

.pos-side-actions {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pos-side-actions .btn {
  min-height: 42px;
  padding: 0 8px;
}

@media (max-width: 980px) {
  .payment-page,
  .profile-layout,
  .reports-hero {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .settings-inline-form,
  .profile-facts,
  .report-summary-grid,
  .payment-card-fields,
  .pos-grid,
  .pos-side-actions {
    grid-template-columns: 1fr;
  }

  .report-filter-form {
    grid-template-columns: 1fr;
  }
}

body.public-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body.public-body > main,
body.public-body > .marketing-main,
body.public-body > .login-screen,
body.public-body > .legal-shell {
  flex: 1;
}

.app {
  min-height: 100vh;
}

.main {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.content {
  flex: 1;
  width: 100%;
}

.panel-footer-links {
  align-items: center;
  background: #050505;
  border-top: 1px solid #18181b;
  color: #a1a1aa;
  display: flex;
  justify-content: space-between;
  margin-top: auto;
  padding: 26px 40px;
  width: 100%;
}

.panel-footer-links div {
  display: grid;
  gap: 5px;
}

.panel-footer-links strong {
  color: #fff;
}

.panel-footer-links span {
  color: #a1a1aa;
  font-size: 12px;
  font-weight: 700;
}

.panel-footer-links nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.panel-footer-links a,
.public-footer a {
  color: #f4f4f5;
}

.public-footer {
  background: #050505;
  border-top: 1px solid #18181b;
  margin-top: auto;
  width: 100%;
}

.public-footer-inner {
  min-height: 110px;
}

@media (max-width: 760px) {
  .panel-footer-links {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding: 24px 20px;
  }
}

@media (min-width: 761px) {
  .payment-card-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .payment-card-fields label:first-child {
    grid-column: 1 / -1;
  }
}

.field-icon .icon-picker-groups {
  display: flex !important;
  flex-direction: row;
  gap: 14px;
  max-height: none !important;
  overflow-x: auto;
  overflow-y: hidden;
}

.field-icon .icon-picker-group div {
  display: flex !important;
  flex-direction: row;
  gap: 8px;
}

@media (min-width: 981px) {
  .pos-grid {
    grid-template-columns: minmax(360px, 1fr) minmax(320px, 420px) !important;
  }
}

.file-preview {
  border: 1px solid #e4e4e7;
  border-radius: 8px;
  display: block;
  height: 112px;
  margin: 10px auto 0;
  max-width: 190px;
  object-fit: cover;
  width: 100%;
}

.file-preview[hidden] {
  display: none !important;
}

.pos-product-grid {
  gap: 14px !important;
  grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)) !important;
}

.pos-product-card {
  align-content: stretch !important;
  background: #fff !important;
  border: 1px solid #d9d9df !important;
  border-radius: 8px !important;
  display: grid !important;
  gap: 9px !important;
  grid-template-rows: 150px auto auto auto !important;
  min-height: 284px !important;
  overflow: hidden !important;
  padding: 10px !important;
}

.pos-product-card::before {
  content: none !important;
  display: none !important;
}

.pos-product-media {
  align-items: center !important;
  background: #f3f6fa !important;
  border-radius: 8px !important;
  display: flex !important;
  height: 150px !important;
  justify-content: center !important;
  min-height: 150px !important;
  overflow: hidden !important;
  position: relative !important;
  width: 100% !important;
}

.pos-product-image {
  display: block !important;
  height: 100% !important;
  max-height: none !important;
  max-width: none !important;
  object-fit: cover !important;
  width: 100% !important;
}

.pos-product-icon {
  align-items: center !important;
  color: #050505 !important;
  display: flex !important;
  font-size: 54px !important;
  height: 100% !important;
  justify-content: center !important;
  margin: 0 !important;
  width: 100% !important;
}

.pos-stock-badge {
  left: 8px !important;
  position: absolute !important;
  top: 8px !important;
  z-index: 2 !important;
}

.pos-product-card > strong {
  display: -webkit-box !important;
  font-size: 14px !important;
  line-height: 18px !important;
  min-height: 36px !important;
  overflow: hidden !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
}

.pos-product-card > small {
  color: #64748b !important;
  font-size: 12px !important;
  font-weight: 850 !important;
}

.pos-product-card > b {
  align-items: center !important;
  background: #f4f4f5 !important;
  border-radius: 7px !important;
  display: flex !important;
  justify-content: space-between !important;
  margin-top: 0 !important;
  min-height: 42px !important;
  padding: 0 8px !important;
}

.pos-product-card > b::after {
  content: "shopping_cart" !important;
  font-family: "Material Symbols Outlined" !important;
  font-size: 19px !important;
  font-weight: 400 !important;
}

.pos-product-qty {
  align-items: center !important;
  background: #050505 !important;
  border-radius: 999px !important;
  bottom: 20px !important;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14) !important;
  display: flex !important;
  gap: 14px !important;
  height: 36px !important;
  justify-content: space-between !important;
  left: 18px !important;
  padding: 0 8px !important;
  right: 18px !important;
  top: auto !important;
  z-index: 4 !important;
}

.pos-product-qty[hidden] {
  display: none !important;
}

.pos-product-qty button {
  align-items: center !important;
  background: #27272a !important;
  border: 0 !important;
  border-radius: 999px !important;
  color: #fff !important;
  display: inline-flex !important;
  height: 26px !important;
  justify-content: center !important;
  width: 26px !important;
}

.pos-product-qty strong {
  color: #fff !important;
  font-size: 14px !important;
  line-height: 1 !important;
}

.pos-product-card.is-selected > b {
  padding-bottom: 0 !important;
}

@media (max-width: 520px) {
  .pos-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .pos-product-card {
    grid-template-rows: 132px auto auto auto !important;
    min-height: 260px !important;
  }

  .pos-product-media {
    height: 132px !important;
    min-height: 132px !important;
  }
}

/* Responsive stabilization layer. Keep overrides scoped to the affected layouts. */
img {
  max-width: 100%;
}

.page-head,
.page-head > div:first-child,
.page-title,
.page-description {
  text-align: left;
}

.page-head {
  align-items: flex-start;
}

.page-head > div:first-child {
  flex: 1 1 auto;
  min-width: 0;
}

.page-title,
.page-description {
  margin-left: 0;
  margin-right: auto;
}

.nav-group {
  align-self: stretch;
  display: block;
  flex: 0 0 auto;
}

.nav-group > .nav-sub {
  align-content: start;
  height: max-content;
}

.table-section-head {
  align-items: flex-start;
}

.table-section-head .section-label {
  margin-bottom: 6px;
}

.table-section-description {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  margin: 7px 0 0;
}

.salary-expenses-card {
  margin-top: 32px !important;
}

.marketing-nav {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06), 0 10px 30px rgba(15, 23, 42, 0.04);
}

.marketing-nav-inner {
  min-height: 76px;
}

.marketing-links a {
  border-radius: 999px;
  padding: 10px 13px;
  transition: background-color 160ms ease, color 160ms ease;
}

.marketing-links a:hover {
  background: #f4f4f5;
  color: #050505;
}

.marketing-login-link {
  align-items: center;
  background: #050505;
  border: 1px solid #050505;
  border-radius: 999px;
  color: #fff !important;
  display: inline-flex;
  gap: 8px;
  min-height: 44px;
  padding: 0 17px;
  white-space: nowrap;
}

.marketing-login-link .material-symbols-outlined {
  font-size: 19px;
}

body.sidebar-open,
body.modal-open {
  overflow: hidden;
}

.sidebar-backdrop {
  background: rgba(5, 5, 5, 0.48);
  border: 0;
  inset: 0;
  padding: 0;
  position: fixed;
  z-index: 25;
}

.sidebar-backdrop[hidden],
.sidebar-close-button {
  display: none;
}

.table-scroll-hint {
  align-items: center;
  background: #f4f4f5;
  border-bottom: 1px solid #e4e4e7;
  color: #52525b;
  display: flex;
  font-size: 12px;
  font-weight: 800;
  gap: 6px;
  margin: 0;
  padding: 9px 16px;
}

.table-scroll-hint::before {
  content: "swap_horiz";
  font-family: "Material Symbols Outlined";
  font-size: 18px;
}

.table-scroll-hint[hidden] {
  display: none;
}

.table-wrap:focus-visible {
  box-shadow: inset 0 0 0 3px rgba(5, 5, 5, 0.18);
  outline: 0;
}

a:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid rgba(5, 5, 5, 0.22);
  outline-offset: 2px;
}

.content :where(.card, .dashboard-panel, .settings-module-card, .reports-hero, .payment-copy, .payment-card),
.content :where(.card, .dashboard-panel, .settings-module-card, .reports-hero, .payment-copy, .payment-card) > * {
  min-width: 0;
}

.content :where(p, small, strong, .item-title, .item-meta, .field-help),
.payment-page :where(p, small, strong) {
  overflow-wrap: anywhere;
}

@media (max-width: 1180px) {
  .sidebar-close-button {
    display: inline-flex;
    position: absolute;
    right: 12px;
    top: 12px;
    z-index: 2;
  }

  .sidebar {
    max-width: none;
    width: min(86vw, 288px);
  }

  .sidebar .brand {
    padding-right: 40px;
  }

}

@media (max-width: 980px) {
  .pos-grid {
    grid-template-columns: 1fr !important;
  }

  .pos-products {
    border-right: 0;
  }

  .pos-body,
  .pos-body .pos-shell {
    height: auto;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .pos-body .pos-grid,
  .pos-body .pos-products,
  .pos-body .pos-payment {
    min-width: 0;
    width: 100%;
  }

  .pos-body .pos-payment {
    min-height: auto;
  }
}

@media (max-width: 760px) {
  :root {
    --control-height: 44px;
  }

  .page-title {
    font-size: clamp(26px, 8vw, 32px);
    line-height: 1.2;
  }

  .page-description {
    font-size: 14px;
    line-height: 1.55;
  }

  .page-head {
    align-items: flex-start;
  }

  .page-head > .btn {
    align-self: flex-start;
    width: auto;
  }

  .nav-item,
  .nav-sub .nav-item,
  .company-switcher,
  .user-menu-trigger,
  .settings-module-sidebar button,
  .panel-footer-links a,
  .public-footer a,
  .marketing-brand,
  .marketing-actions > a:not(.btn) {
    min-height: var(--tap-target);
  }

  .icon-button.compact {
    height: var(--tap-target);
    min-height: var(--tap-target);
    min-width: var(--tap-target);
    width: var(--tap-target);
  }

  .field-check > label {
    align-items: center;
    cursor: pointer;
    display: flex;
    min-height: var(--tap-target);
  }

  .payment-page {
    gap: 28px;
    grid-template-columns: minmax(0, 1fr);
    max-width: 100%;
    padding: 40px 16px;
  }

  .payment-copy,
  .payment-card,
  .payment-plan-switch {
    max-width: 100%;
    min-width: 0;
  }

  .payment-copy h1 {
    font-size: clamp(32px, 11vw, 44px);
  }

  .payment-plan-switch a,
  .payment-summary div {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px 14px;
  }

  .payment-card {
    padding: 18px;
  }

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

  .payment-card-fields label:first-child {
    grid-column: auto;
  }

  .modal-backdrop {
    align-items: center;
    padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  }

  .modal {
    display: flex;
    flex-direction: column;
    max-height: calc(100dvh - 24px);
    max-width: 100%;
    overscroll-behavior: contain;
    padding: 18px;
    width: 100%;
  }

  .modal-head {
    background: var(--surface);
    flex: 0 0 auto;
    margin-bottom: 16px;
    padding-bottom: 10px;
    position: sticky;
    top: -18px;
    z-index: 3;
  }

  .modal-actions {
    background: var(--surface);
    bottom: -18px;
    flex-wrap: wrap;
    padding-top: 12px;
    position: sticky;
    z-index: 3;
  }

  .modal-actions .btn {
    flex: 1 1 140px;
  }

  .flash {
    overflow-wrap: anywhere;
    padding-bottom: max(13px, env(safe-area-inset-bottom));
  }

  .integration-review-form {
    min-width: 260px;
  }

  .integration-security-banner > div,
  .integration-notice > div,
  .statement-import-intro > div,
  .integration-connection-head > div {
    min-width: 0;
  }

  .integration-security-banner :where(strong, p),
  .integration-notice :where(strong, p),
  .statement-import-intro :where(h3, p),
  .integration-connection-card :where(h3, dt, dd, p) {
    overflow-wrap: break-word;
    word-break: normal;
  }

  .statement-import-intro {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .integration-summary-card {
    grid-template-columns: 44px minmax(0, 1fr);
    overflow: visible;
  }

  .integration-summary-card > span {
    grid-row: 1 / span 3;
  }

  .integration-summary-card > div {
    align-items: baseline;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    min-width: 0;
  }

  .integration-summary-card strong {
    margin-top: 0;
    text-align: right;
  }

  .pos-body .pos-topbar {
    align-items: flex-start;
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(0, 1fr) auto;
    height: auto;
    padding: 14px 16px;
  }

  .pos-body .pos-top-info,
  .pos-body .pos-session-meta {
    display: grid;
    gap: 8px;
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .pos-body .pos-top-actions {
    align-items: stretch;
    display: flex;
    flex-wrap: wrap;
    grid-column: 1 / -1;
    justify-content: flex-end;
  }

  .pos-body .pos-search-row {
    grid-template-columns: 1fr;
  }

  .pos-body .pos-tabs,
  .pos-body .pos-category-tabs {
    display: flex !important;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
  }

  .pos-body .pos-tabs button,
  .pos-body .pos-category-tabs button {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .pos-body .pos-summary-row,
  .pos-body .pos-totals div,
  .pos-body .pos-totals label,
  .pos-body .pos-change-box {
    gap: 10px;
    min-width: 0;
  }

  .pos-body .pos-summary-row > span,
  .pos-body .pos-summary-row > strong,
  .pos-body .pos-payment :where(label, span, small, strong, b) {
    min-width: 0;
    overflow-wrap: break-word;
    word-break: normal;
  }

  .pos-product-qty {
    bottom: 12px !important;
    gap: 2px !important;
    height: 48px !important;
    left: 8px !important;
    padding: 2px !important;
    right: 8px !important;
  }

  .pos-product-qty button {
    height: 44px !important;
    min-height: 44px !important;
    min-width: 44px !important;
    width: 44px !important;
  }
}

@media (max-width: 430px) {
  .invoice-line {
    grid-template-columns: minmax(0, 1fr);
  }

  .invoice-line > *,
  .invoice-line-title {
    grid-column: auto !important;
  }

  .scope-switchers {
    gap: 6px;
  }

  .scope-switchers .company-switcher {
    font-size: 12px;
    padding-left: 8px;
    padding-right: 8px;
  }

  .public-footer-inner,
  .panel-footer-links {
    padding-left: 16px;
    padding-right: 16px;
  }

  .integration-security-banner {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .integration-security-banner .tag {
    grid-column: 1 / -1;
    margin-left: 0;
    width: max-content;
  }

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

  .pos-body .pos-topbar {
    grid-template-columns: 1fr;
  }

  .pos-body .pos-top-actions {
    justify-content: flex-start;
  }

  .pos-body .pos-top-info,
  .pos-body .pos-session-meta {
    grid-template-columns: 1fr;
  }

  .pos-body .pos-products,
  .pos-body .pos-payment {
    padding: 14px;
  }

  .pos-body .pos-product-grid {
    gap: 10px !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .pos-body .pos-product-card {
    grid-template-rows: 116px auto auto auto !important;
    min-height: 238px !important;
  }

  .pos-body .pos-product-media {
    height: 116px !important;
    min-height: 116px !important;
  }

  .pos-body .pos-product-card > strong {
    font-size: 13px !important;
    line-height: 17px !important;
    min-height: 34px !important;
  }

  .pos-body .pos-product-card > small {
    font-size: 11px !important;
  }
}

@media (max-width: 520px) {
  .marketing-nav-inner {
    flex-wrap: nowrap;
    gap: 12px;
    min-height: 70px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .marketing-brand img {
    height: 36px;
  }

  .marketing-actions {
    flex: 0 0 auto;
    justify-content: flex-end;
    width: auto;
  }

  .marketing-login-link {
    min-height: 42px;
    padding: 0 14px;
  }
}

@media (hover: none), (pointer: coarse) {
  tr[data-row] {
    transform: none !important;
  }

  .btn:not([disabled]):hover,
  .icon-button:not([disabled]):hover {
    box-shadow: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Entegrasyon merkezi */
.integration-catalog-toolbar {
  align-items: center;
  background:
    radial-gradient(circle at 90% 10%, rgb(34 197 94 / 12%), transparent 34%),
    linear-gradient(135deg, #ffffff, #f7fef9);
  border-color: #d8f3df;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  margin-bottom: 18px;
  overflow: hidden;
  padding: 24px;
}

.integration-catalog-toolbar h3,
.integration-provider-hero h3,
.integration-connection-hero h3,
.integration-provider-setup h3 {
  margin: 4px 0 0;
}

.integration-catalog-toolbar p:not(.section-label),
.integration-provider-hero p:not(.section-label),
.integration-connection-hero p:not(.section-label),
.integration-provider-setup > p {
  color: var(--muted, #71717a);
  line-height: 1.55;
  margin: 7px 0 0;
}

.integration-catalog-search {
  align-items: center;
  background: #fff;
  border: 1px solid #dfe7e2;
  border-radius: 14px;
  box-shadow: 0 10px 28px rgb(15 23 42 / 6%);
  display: flex;
  gap: 10px;
  min-height: 48px;
  padding: 0 14px;
}

.integration-catalog-search .material-symbols-outlined {
  color: #16a34a;
}

.integration-catalog-search input {
  background: transparent;
  border: 0;
  box-shadow: none;
  min-width: 0;
  outline: 0;
  padding: 0;
  width: 100%;
}

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

.integration-catalog-card {
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 270px;
  padding: 20px;
  text-decoration: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.integration-catalog-card[hidden] {
  display: none !important;
}

.integration-catalog-card:hover,
.integration-catalog-card:focus-visible {
  border-color: #86d99c;
  box-shadow: 0 18px 42px rgb(22 101 52 / 12%);
  outline: 0;
  transform: translateY(-3px);
}

.integration-catalog-card-head,
.integration-catalog-footer,
.integration-connection-controls,
.integration-detail-buttons {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.integration-catalog-icon {
  align-items: center;
  background: linear-gradient(135deg, #dcfce7, #f0fdf4);
  border: 1px solid #bbf7d0;
  border-radius: 15px;
  color: #15803d;
  display: inline-flex;
  height: 48px;
  justify-content: center;
  width: 48px;
}

.integration-catalog-icon.large {
  border-radius: 18px;
  flex: 0 0 58px;
  font-size: 30px;
  height: 58px;
  width: 58px;
}

.integration-catalog-copy {
  flex: 1;
}

.integration-catalog-copy small {
  color: #15803d;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.integration-catalog-copy h3 {
  font-size: 18px;
  margin: 7px 0 0;
}

.integration-catalog-copy p {
  color: var(--muted, #71717a);
  display: -webkit-box;
  font-size: 13px;
  line-height: 1.55;
  margin: 8px 0 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.integration-catalog-footer {
  border-top: 1px solid #eef2ef;
  color: var(--muted, #71717a);
  font-size: 12px;
  padding-top: 14px;
}

.integration-card-link {
  align-items: center;
  color: #15803d;
  display: inline-flex;
  font-weight: 800;
  gap: 4px;
}

.integration-card-link .material-symbols-outlined {
  font-size: 17px;
}

.integration-catalog-state-connected,
.integration-status-active {
  background: #dcfce7;
  color: #166534;
}

.integration-catalog-state-disabled,
.integration-status-disabled {
  background: #f4f4f5;
  color: #52525b;
}

.integration-catalog-state-setup_required,
.integration-status-setup_required,
.integration-status-error {
  background: #fef3c7;
  color: #92400e;
}

.integration-catalog-state-available,
.integration-status-ready {
  background: #e0f2fe;
  color: #075985;
}

.integration-breadcrumb {
  align-items: center;
  color: var(--muted, #71717a);
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  gap: 4px;
  margin: -4px 0 14px;
}

.integration-breadcrumb a {
  color: #15803d;
  font-weight: 700;
  text-decoration: none;
}

.integration-breadcrumb .material-symbols-outlined {
  font-size: 17px;
}

.integration-provider-hero,
.integration-connection-hero {
  align-items: center;
  display: flex;
  gap: 16px;
  margin-bottom: 18px;
  padding: 20px;
}

.integration-provider-hero > div,
.integration-connection-identity > div {
  flex: 1;
  min-width: 0;
}

.integration-provider-hero > .tag {
  margin-left: auto;
}

.integration-provider-layout {
  align-items: start;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, .8fr);
}

.integration-provider-main,
.integration-provider-main > .card {
  min-width: 0;
}

.orka-install-guide {
  background: #fff;
  border-color: #d9e7dd;
  display: grid;
  gap: 0;
  margin-bottom: 18px;
  overflow: hidden;
  padding: clamp(22px, 2.2vw, 30px);
}

.orka-guide-heading {
  align-items: flex-start;
  border-bottom: 1px solid #e8eeea;
  display: flex;
  gap: 16px;
  padding-bottom: 24px;
}

.orka-guide-icon {
  align-items: center;
  background: linear-gradient(145deg, #dcfce7, #bbf7d0);
  border: 1px solid #a7e7b7;
  border-radius: 16px;
  color: #15803d;
  display: flex;
  flex: 0 0 52px;
  height: 52px;
  justify-content: center;
  overflow: hidden;
  width: 52px;
}

.orka-guide-icon svg {
  fill: none;
  height: 28px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  width: 28px;
}

.orka-guide-heading h3 {
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.25;
  margin: 5px 0 0;
}

.orka-guide-heading p:last-child {
  color: var(--muted, #71717a);
  font-size: 14px;
  line-height: 1.65;
  margin: 9px 0 0;
  max-width: 720px;
}

.orka-install-steps {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
}

.orka-download-panel {
  align-items: center;
  background: linear-gradient(135deg, #f0fdf4, #fff);
  border: 1px solid #bbf7d0;
  border-radius: 16px;
  display: grid;
  gap: 16px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  margin-top: 24px;
  padding: 18px;
}

.orka-download-icon {
  align-items: center;
  background: #dcfce7;
  border-radius: 14px;
  color: #15803d;
  display: flex;
  font-size: 26px;
  height: 48px;
  justify-content: center;
  width: 48px;
}

.orka-download-panel strong,
.orka-download-panel small {
  display: block;
}

.orka-download-panel p {
  color: var(--muted, #71717a);
  font-size: 13px;
  line-height: 1.6;
  margin: 5px 0 7px;
}

.orka-download-panel small {
  color: #647067;
  font-size: 11px;
}

.orka-download-panel > .btn {
  min-height: 46px;
  white-space: nowrap;
}

.orka-install-steps li {
  align-items: flex-start;
  background: #fbfcfb;
  border: 1px solid #e2e9e4;
  border-radius: 16px;
  display: flex;
  gap: 14px;
  min-height: 112px;
  min-width: 0;
  padding: 18px;
}

.orka-install-steps li > span {
  align-items: center;
  background: #18181b;
  border-radius: 999px;
  color: #fff;
  display: flex;
  flex: 0 0 28px;
  font-size: 12px;
  font-weight: 900;
  height: 28px;
  justify-content: center;
}

.orka-install-steps strong {
  display: block;
  font-size: 14px;
  line-height: 1.4;
}

.orka-install-steps p {
  color: var(--muted, #71717a);
  font-size: 13px;
  line-height: 1.6;
  margin: 7px 0 0;
}

.orka-command-section {
  background: #18181b;
  border-radius: 16px;
  display: grid;
  gap: 12px;
  margin-top: 24px;
  min-width: 0;
  padding: 18px 20px 20px;
}

.orka-command-title {
  align-items: center;
  color: #86efac;
  display: flex;
  font-size: 12px;
  gap: 8px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.orka-command-title .material-symbols-outlined {
  font-size: 20px;
}

.orka-command-box {
  max-width: 100%;
  overflow-x: auto;
  scrollbar-color: #52525b #18181b;
}

.orka-command-box code {
  color: #f8fafc;
  display: block;
  font-size: 13px;
  line-height: 1.7;
  min-width: max-content;
  white-space: nowrap;
}

.orka-command-box code > span {
  display: block;
}

.orka-command-box code > span + span {
  border-top: 1px solid #303036;
  margin-top: 10px;
  padding-top: 10px;
}

.orka-command-row {
  align-items: stretch;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.orka-command-row .orka-command-box {
  align-items: center;
  background: #09090b;
  border: 1px solid #34343a;
  border-radius: 11px;
  display: flex;
  min-height: 50px;
  padding: 0 14px;
}

.orka-command-copy {
  background: #f8fafc;
  border-color: #f8fafc;
  color: #18181b;
  min-width: 116px;
}

.orka-command-copy.is-copied {
  background: #dcfce7;
  border-color: #86efac;
  color: #166534;
}

.orka-command-note {
  align-items: flex-start;
  color: #d4d4d8;
  display: flex;
  font-size: 12px;
  gap: 8px;
  line-height: 1.55;
  margin: 0;
}

.orka-command-note .material-symbols-outlined {
  color: #86efac;
  font-size: 18px;
}

.orka-command-legend {
  color: #59625b;
  display: grid;
  font-size: 12px;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 14px;
}

.orka-command-legend > span {
  background: #f7faf8;
  border: 1px solid #e1e9e3;
  border-radius: 12px;
  line-height: 1.5;
  min-width: 0;
  padding: 12px 14px;
}

.orka-command-legend b {
  color: #15803d;
  display: block;
  font-size: 13px;
  margin-bottom: 6px;
}

.orka-command-legend small {
  color: #69726b;
  display: block;
  font-size: 12px;
  line-height: 1.55;
}

.orka-setup-values {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 22px;
}

.orka-setup-values article {
  align-items: flex-start;
  background: #fff;
  border: 1px solid #dfe7e1;
  border-radius: 16px;
  display: flex;
  gap: 13px;
  min-width: 0;
  padding: 18px;
}

.orka-setup-values article > .material-symbols-outlined {
  align-items: center;
  background: #eefaf1;
  border-radius: 11px;
  color: #15803d;
  display: flex;
  flex: 0 0 38px;
  height: 38px;
  justify-content: center;
}

.orka-setup-values strong,
.orka-setup-values small,
.orka-setup-values article > div > code {
  display: block;
}

.orka-setup-values p {
  color: var(--muted, #71717a);
  font-size: 13px;
  line-height: 1.6;
  margin: 7px 0 12px;
}

.orka-setup-values article > div > code {
  background: #f4f6f4;
  border-radius: 9px;
  color: #18181b;
  font-size: 12px;
  overflow-wrap: anywhere;
  padding: 9px 10px;
}

.orka-setup-values small {
  color: #647067;
  font-size: 11px;
  line-height: 1.5;
  margin-top: 9px;
}

.orka-install-help {
  background: #f7fef9;
  border: 1px solid #d7ebdc;
  border-radius: 14px;
  margin-top: 22px;
  padding: 16px 18px;
}

.orka-install-help summary {
  color: #166534;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.5;
}

.orka-install-help ul {
  color: var(--muted, #71717a);
  display: grid;
  font-size: 13px;
  gap: 10px;
  line-height: 1.6;
  margin: 16px 0 2px;
  padding-left: 22px;
}

.orka-diagnostic-commands {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.orka-diagnostic-commands > div {
  align-items: center;
  background: #18181b;
  border-radius: 12px;
  color: #f8fafc;
  display: grid;
  gap: 8px 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 12px 14px;
}

.orka-diagnostic-commands span:first-child {
  color: #86efac;
  font-size: 11px;
  font-weight: 800;
  grid-column: 1 / -1;
}

.orka-diagnostic-commands code {
  font-size: 12px;
  min-width: 0;
  overflow-x: auto;
  white-space: nowrap;
}

.orka-diagnostic-commands .icon-button {
  background: #f8fafc;
  color: #18181b;
}

.orka-pairing-code {
  margin-top: 18px;
  padding: 16px;
}

.orka-pairing-code small,
.orka-pairing-code strong {
  display: block;
}

.orka-pairing-code small {
  color: var(--muted, #71717a);
  font-size: 11px;
  margin-bottom: 3px;
}

.orka-pairing-code strong {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 19px;
  letter-spacing: .08em;
  margin: 5px 0 7px;
}

.integration-provider-setup > .integration-setup-form {
  background: #fafcfb;
  border: 1px solid #e3eae5;
  border-radius: 16px;
  padding: 18px;
}

.integration-provider-setup > .notice {
  border-radius: 14px;
  margin-top: 18px;
  padding: 16px;
}

.integration-provider-connections {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.integration-provider-connection {
  align-items: center;
  border: 1px solid #e7ece9;
  border-radius: 14px;
  color: inherit;
  display: grid;
  gap: 12px;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  padding: 13px;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease;
}

.integration-provider-connection:hover,
.integration-provider-connection:focus-visible {
  background: #f7fef9;
  border-color: #a7e7b7;
  outline: 0;
}

.integration-provider-connection strong,
.integration-provider-connection small {
  display: block;
}

.integration-provider-connection small {
  color: var(--muted, #71717a);
  font-size: 12px;
  margin-top: 4px;
}

.integration-inline-empty {
  color: var(--muted, #71717a);
  padding: 34px 16px;
  text-align: center;
}

.integration-inline-empty > .material-symbols-outlined {
  color: #16a34a;
  display: block;
  font-size: 36px;
  margin-bottom: 8px;
}

.integration-inline-empty strong {
  color: #18181b;
  display: block;
}

.integration-inline-empty p {
  margin: 6px 0 0;
}

.integration-provider-setup {
  background:
    radial-gradient(circle at 100% 0, rgb(34 197 94 / 10%), transparent 30%),
    #fff;
  border: 1px solid #dce8df;
  border-radius: 18px;
  box-shadow: 0 18px 50px rgb(15 23 42 / 8%);
  box-sizing: border-box;
  container-type: inline-size;
  min-width: 0;
  overflow: hidden;
  padding: clamp(22px, 2.2vw, 30px);
  position: sticky;
  top: 92px;
}

.integration-setup-head {
  align-items: center;
  display: flex;
  gap: 14px;
  margin-bottom: 14px;
}

.integration-setup-head > .material-symbols-outlined {
  align-items: center;
  background: #dcfce7;
  border: 1px solid #bbf7d0;
  border-radius: 15px;
  color: #15803d;
  display: flex;
  flex: 0 0 50px;
  font-size: 25px;
  height: 50px;
  justify-content: center;
  width: 50px;
}

.integration-setup-head .section-label {
  color: #15803d;
  font-size: 11px;
  letter-spacing: .07em;
  margin-bottom: 4px;
}

.integration-provider-setup h3 {
  font-size: clamp(19px, 2vw, 23px);
  line-height: 1.2;
}

.integration-provider-setup > p {
  border-bottom: 1px solid #edf2ee;
  font-size: 14px;
  line-height: 1.65;
  margin: 0 !important;
  padding: 0 0 20px;
}

.integration-setup-form {
  display: grid;
  gap: 17px;
  grid-template-columns: minmax(0, 1fr) !important;
  margin-top: 22px;
  min-width: 0;
}

.integration-setup-form > *,
.integration-setup-form .field,
.integration-setup-form .integration-form-row {
  grid-column: 1 / -1;
  margin: 0;
  min-width: 0;
  width: 100%;
}

.integration-setup-form :where(input, select, textarea) {
  background: #fff;
  border-color: #d7dfd9;
  border-radius: 12px;
  box-sizing: border-box;
  font-size: 14px;
  height: 50px;
  max-width: 100%;
  min-width: 0;
  padding-inline: 14px;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
  width: 100%;
}

.integration-setup-form :where(input, select, textarea):hover {
  border-color: #aebdb3;
}

.integration-setup-form :where(input, select, textarea):focus {
  background: #fff;
  border-color: #22a447;
  box-shadow: 0 0 0 4px rgb(34 164 71 / 10%);
}

.integration-setup-form .field {
  gap: 8px;
}

.integration-setup-form .field > span {
  color: #2f3a32;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .01em;
}

.integration-setup-form .field-help {
  color: #758078;
  font-size: 11px;
  line-height: 1.5;
  margin-top: 1px;
}

.integration-setup-form input[type="file"] {
  height: auto;
  min-height: 52px;
  padding: 6px;
}

.integration-setup-form input[type="file"]::file-selector-button {
  background: #eefaf1;
  border: 0;
  border-radius: 9px;
  color: #126b2b;
  cursor: pointer;
  font-weight: 800;
  margin-right: 10px;
  min-height: 38px;
  padding: 0 14px;
}

.integration-setup-form > .btn {
  border-radius: 12px;
  box-shadow: 0 10px 24px rgb(5 5 5 / 16%);
  font-size: 14px;
  margin-top: 3px;
  min-height: 52px;
  transition: box-shadow 160ms ease, transform 160ms ease;
}

.integration-setup-form > .btn:hover {
  box-shadow: 0 14px 30px rgb(5 5 5 / 22%);
  transform: translateY(-1px);
}

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

.integration-connection-hero {
  justify-content: space-between;
}

.integration-connection-identity {
  align-items: center;
  display: flex;
  gap: 14px;
  min-width: 0;
}

.integration-connection-controls {
  flex: 0 0 auto;
}

.integration-paused-notice {
  border-color: #d4d4d8;
  margin-bottom: 18px;
}

.integration-detail-actions {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-bottom: 18px;
}

.integration-detail-actions .integration-facts {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.integration-detail-buttons {
  align-items: flex-end;
  flex-direction: column;
}

.integration-detail-buttons .integration-sync-form {
  justify-content: flex-end;
}

.integration-filter-card .integration-filter-form {
  grid-template-columns: repeat(3, minmax(120px, 1fr)) auto;
}

.nav-sub > .nav-item {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1500px) {
  .integration-provider-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .integration-provider-setup {
    position: static;
  }
}

@container (max-width: 420px) {
  .integration-provider-setup {
    border-radius: 14px;
    padding: 18px;
  }

  .integration-provider-setup .integration-form-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .integration-provider-setup > .integration-setup-form {
    padding: 15px;
  }
}

@media (max-width: 1180px) {
  .integration-catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .integration-provider-layout,
  .integration-detail-actions {
    grid-template-columns: 1fr;
  }

  .integration-provider-setup {
    position: static;
  }

  .integration-detail-buttons {
    align-items: stretch;
    flex-direction: row;
    flex-wrap: wrap;
  }
}

@media (max-width: 760px) {
  .integration-catalog-toolbar {
    grid-template-columns: 1fr;
    padding: 18px;
  }

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

  .integration-catalog-card {
    min-height: 240px;
  }

  .orka-install-steps {
    grid-template-columns: 1fr;
  }

  .orka-download-panel {
    align-items: flex-start;
    grid-template-columns: auto minmax(0, 1fr);
  }

  .orka-download-panel > .btn {
    grid-column: 1 / -1;
    width: 100%;
  }

  .orka-setup-values {
    grid-template-columns: 1fr;
  }

  .orka-command-legend {
    grid-template-columns: 1fr;
  }

  .orka-guide-heading {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .orka-install-guide {
    padding: 20px;
  }

  .orka-install-steps li {
    min-height: 0;
  }

  .integration-provider-hero,
  .integration-connection-hero {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .integration-provider-hero > .tag {
    margin-left: 74px;
  }

  .integration-connection-controls {
    align-items: stretch;
    flex: 1 0 100%;
    flex-direction: column;
  }

  .integration-connection-controls form,
  .integration-connection-controls .btn {
    width: 100%;
  }

  .integration-provider-connection {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .integration-provider-connection > .tag {
    grid-column: 2 / -1;
    justify-self: start;
  }

  .integration-detail-actions .integration-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .integration-detail-buttons,
  .integration-detail-buttons form,
  .integration-detail-buttons .btn,
  .integration-detail-buttons .integration-sync-form {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .integration-form-row,
  .integration-filter-card .integration-filter-form {
    grid-template-columns: 1fr;
  }
}

/* Keep the redesigned history filter authoritative over legacy integration rules. */
.integration-filter-card.integration-history-filter {
  align-items: center;
  gap: 24px;
  grid-template-columns: minmax(280px, .7fr) minmax(0, 1.3fr);
  padding: 22px 24px;
}

.integration-filter-card.integration-history-filter .integration-filter-form {
  grid-template-columns: repeat(3, minmax(130px, 1fr)) auto;
}

@media (max-width: 1400px) {
  .integration-filter-card.integration-history-filter {
    grid-template-columns: 1fr;
  }

  .integration-filter-card.integration-history-filter .integration-filter-form {
    grid-template-columns: repeat(3, minmax(120px, 1fr)) auto;
  }
}

@media (max-width: 820px) {
  .integration-filter-card.integration-history-filter .integration-filter-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .integration-filter-card.integration-history-filter .integration-filter-form .btn {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .integration-filter-card.integration-history-filter {
    padding-left: 16px;
    padding-right: 16px;
  }

  .integration-filter-card.integration-history-filter .integration-filter-form {
    grid-template-columns: 1fr;
  }
}
.table-tools{display:flex;align-items:end;gap:12px;flex-wrap:wrap;padding:12px 16px;border-top:1px solid #e4e4e7;border-bottom:1px solid #e4e4e7;background:#fafafa}.table-tools label{display:grid;gap:5px;min-width:180px}.table-tools label span{font-size:12px;font-weight:700;color:#52525b}.table-tools input,.table-tools select{min-height:38px;padding:8px 10px;border:1px solid #d4d4d8;border-radius:9px;background:#fff}.table-tools .btn{min-height:38px}.table-tools-count{margin-left:auto;color:#71717a;font-size:13px;font-weight:700}
.bank-dashboard-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px;margin-bottom:18px}.bank-dashboard-summary article{display:grid;gap:7px;padding:18px}.bank-dashboard-summary small{color:#71717a}.bank-dashboard-summary strong{font-size:22px}.bank-accounts-card,.bank-transactions-card{margin-bottom:18px}.bank-account-inline-form{display:flex;align-items:center;gap:6px;min-width:430px}.bank-account-inline-form input,.bank-account-inline-form select{min-height:36px;padding:6px 8px;border:1px solid #d4d4d8;border-radius:8px;max-width:150px}.bank-account-inline-form .btn{min-height:36px;padding:7px 12px}@media(max-width:760px){.bank-account-inline-form{min-width:320px;flex-wrap:wrap}.bank-account-inline-form input{max-width:130px}}
.bank-data-notice,.orka-official-note{display:flex;align-items:flex-start;gap:14px;margin-bottom:18px;padding:18px 20px;border:1px solid #bbf7d0;background:linear-gradient(135deg,#f0fdf4,#fff)}.bank-data-notice>.material-symbols-outlined,.orka-official-note>.material-symbols-outlined{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;border-radius:12px;background:#dcfce7;color:#15803d}.bank-data-notice p,.orka-official-note p{margin:6px 0;color:#52525b;line-height:1.6}.bank-data-notice a,.orka-official-note a{color:#15803d;font-size:13px;font-weight:800}.orka-official-note div>div{display:flex;gap:16px;flex-wrap:wrap;margin-top:9px}.bank-dashboard-summary article>span{color:#71717a;font-size:12px}.orka-accounting-kpis,.orka-product-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px}.orka-accounting-kpis>a,.orka-product-stats>article{display:grid;gap:5px;padding:17px;text-decoration:none;color:inherit}.orka-accounting-kpis>a.is-active{border-color:#22c55e;box-shadow:0 0 0 3px rgb(34 197 94 / 10%)}.orka-accounting-kpis small,.orka-product-stats small{color:#71717a}.orka-accounting-kpis strong,.orka-product-stats strong{font-size:24px}.orka-accounting-kpis span{color:#15803d;font-size:12px;font-weight:800}.orka-accounting-filter,.orka-product-toolbar{display:grid;grid-template-columns:minmax(230px,.7fr) minmax(0,1.3fr);gap:22px;align-items:end;margin-bottom:18px;padding:20px}.orka-accounting-filter h3,.orka-product-toolbar h3{margin:4px 0}.orka-accounting-filter p:last-child,.orka-product-toolbar p:last-child{margin:6px 0 0;color:#71717a}.orka-accounting-filter form,.orka-product-toolbar form{display:grid;grid-template-columns:repeat(3,minmax(120px,1fr)) auto;gap:10px;align-items:end}.orka-accounting-filter label,.orka-product-toolbar label{display:grid;gap:6px}.orka-accounting-filter label>span,.orka-product-toolbar label>span{font-size:11px;font-weight:800;color:#52525b}.orka-accounting-filter input,.orka-accounting-filter select,.orka-product-toolbar input,.orka-product-toolbar select{min-height:42px;border:1px solid #d4d4d8;border-radius:10px;background:#fff;padding:0 10px}.orka-accounting-table{margin-bottom:18px}.orka-product-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:18px}.orka-product-card{display:flex;flex-direction:column;gap:16px;padding:17px}.orka-product-card-head{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:11px}.orka-product-card-head>.material-symbols-outlined{display:grid;place-items:center;width:40px;height:40px;border-radius:11px;background:#e9f8ed;color:#15803d}.orka-product-card h3{margin:3px 0 0;font-size:16px}.orka-product-card-head small{color:#71717a}.orka-product-card dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0}.orka-product-card dl>div{padding:9px 10px;border-radius:10px;background:#f8faf9}.orka-product-card dt{font-size:10px;color:#71717a}.orka-product-card dd{margin:3px 0 0;font-size:12px;font-weight:750;overflow-wrap:anywhere}.orka-product-warning{margin:0;padding:9px 10px;border-radius:10px;background:#fff7ed;color:#9a3412;font-size:12px}.orka-product-actions{margin-top:auto}.orka-product-actions form,.orka-product-actions .btn{width:100%}.orka-product-actions .btn{justify-content:center}.orka-record-pagination.card{margin-bottom:18px;padding:14px 18px}@media(max-width:1180px){.orka-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.orka-accounting-filter,.orka-product-toolbar{grid-template-columns:1fr}}@media(max-width:760px){.orka-accounting-kpis,.orka-product-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.orka-accounting-filter form,.orka-product-toolbar form{grid-template-columns:1fr}.orka-product-grid{grid-template-columns:1fr}.bank-data-notice,.orka-official-note{padding:15px}}
.orka-module-nav {
  margin-bottom: 18px;
}

.integration-danger-action {
  display: grid;
  gap: 10px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border, #e5e7eb);
}

.integration-danger-action p {
  margin: 0;
  color: var(--muted, #64748b);
  line-height: 1.55;
}

.btn.danger-outline {
  color: #b42318;
  background: #fff;
  border-color: #f1b7b2;
}

.btn.danger-outline:hover {
  background: #fff4f2;
}

.orka-delete-modal {
  width: min(640px, calc(100vw - 32px));
}

.orka-delete-modal form,
.orka-delete-stage {
  display: grid;
  gap: 18px;
}

.orka-delete-scope {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.orka-delete-scope li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: #344054;
  line-height: 1.5;
}

.orka-delete-scope .material-symbols-outlined {
  color: #067647;
  font-size: 20px;
  margin-top: 1px;
}

.danger-ack {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid #f0c4bf;
  border-radius: 12px;
  background: #fff8f7;
  line-height: 1.5;
  cursor: pointer;
}

.danger-ack input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex: 0 0 auto;
}

.orka-delete-final-copy {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  border-radius: 14px;
  background: #f8fafc;
}

.orka-delete-final-copy > .material-symbols-outlined {
  padding: 9px;
  border-radius: 10px;
  color: #b42318;
  background: #fee4e2;
}

.orka-delete-final-copy strong,
.orka-delete-final-copy p {
  display: block;
  margin: 0;
}

.orka-delete-final-copy p {
  margin-top: 4px;
  color: var(--muted, #64748b);
  line-height: 1.5;
}
/* Employee record actions */
.employee-record-actions{margin:18px 0;border-top:1px solid var(--border,#e2e8f0);padding-top:14px}.employee-record-form{display:grid;grid-template-columns:repeat(5,minmax(110px,1fr)) 40px;gap:7px;align-items:center;margin-top:8px}.employee-delete-form{display:flex;justify-content:flex-end;margin-top:-42px}.employee-advance-edit{grid-template-columns:140px 160px minmax(180px,1fr) 40px}.employee-advance-reverse{grid-template-columns:minmax(180px,1fr) 40px;margin-left:140px}@media(max-width:800px){.employee-record-form,.employee-advance-edit,.employee-advance-reverse{grid-template-columns:1fr 1fr;margin-left:0}.employee-delete-form{margin-top:6px}}

/* Accounting workspace */
.accounting-code-input{min-width:105px;max-width:130px}.accounting-panel table input,.accounting-panel table select{min-height:36px}.accounting-archive-row{display:grid;grid-template-columns:minmax(180px,1fr) minmax(180px,2fr) 40px;gap:8px;align-items:center;margin-top:8px}
.accounting-rules{display:grid;gap:8px;margin-top:14px}.accounting-rules form{display:grid;grid-template-columns:minmax(150px,1fr) minmax(180px,1fr) minmax(180px,1fr) minmax(150px,1fr) 40px;gap:8px;align-items:end}.accounting-rules label{display:grid;gap:3px}.accounting-rules label span{font-size:12px;color:var(--muted,#64748b)}
.accounting-toolbar{display:flex;align-items:end;justify-content:space-between;gap:16px;margin-bottom:20px;border-bottom:1px solid var(--border,#e2e8f0)}
.accounting-tabs{display:flex;gap:4px;overflow-x:auto;white-space:nowrap}.accounting-tabs a{padding:10px 12px;color:var(--muted,#64748b);border-bottom:2px solid transparent;text-decoration:none}.accounting-tabs a.is-active{color:var(--primary,#2563eb);border-color:currentColor;font-weight:700}
.accounting-period-picker label{display:grid;gap:4px;min-width:190px}.accounting-period-picker span,.accounting-account-form label span{font-size:12px;color:var(--muted,#64748b)}
.accounting-export-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin:-8px 0 18px}.accounting-export-actions>span{color:var(--muted,#64748b);font-size:13px}
.accounting-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:18px}.accounting-kpis>div{padding:16px 0;border-top:3px solid #2563eb}.accounting-kpis>div:nth-child(2){border-color:#dc2626}.accounting-kpis>div:nth-child(3){border-color:#16a34a}.accounting-kpis>div:nth-child(4){border-color:#d97706}.accounting-kpis span{display:block;color:var(--muted,#64748b);font-size:13px}.accounting-kpis strong{display:block;margin-top:6px;font-size:22px;letter-spacing:0}
.accounting-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.accounting-panel{padding:18px 0;margin-bottom:20px;border-top:1px solid var(--border,#e2e8f0)}.accounting-panel h3{margin:0 0 6px;font-size:17px;letter-spacing:0}.accounting-panel p{margin:0;color:var(--muted,#64748b)}
.accounting-facts{display:grid;gap:9px;margin:16px 0 0}.accounting-facts>div{display:flex;justify-content:space-between;gap:16px;border-bottom:1px solid var(--border,#e2e8f0);padding-bottom:8px}.accounting-facts dt{color:var(--muted,#64748b)}.accounting-facts dd{margin:0;font-weight:700;text-align:right}
.accounting-opening{margin-top:20px}.accounting-opening form{margin-top:16px}.accounting-opening .table-wrap{margin:14px 0}.accounting-account-form{display:grid;grid-template-columns:140px minmax(220px,1fr) 180px 150px auto;gap:10px;align-items:end}.accounting-account-form label{display:grid;gap:4px}
.status-dot{font-size:12px;font-weight:700;text-transform:uppercase}.status-dot.running,.status-dot.idle{color:#15803d}.status-dot.error,.status-dot.offline{color:#b91c1c}
@media(max-width:900px){.accounting-toolbar{align-items:stretch;flex-direction:column}.accounting-period-picker label{min-width:0}.accounting-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.accounting-grid{grid-template-columns:1fr}.accounting-account-form{grid-template-columns:1fr 1fr}.accounting-account-form .btn{width:100%}.accounting-rules form{grid-template-columns:1fr 1fr}}
@media(max-width:560px){.accounting-kpis{grid-template-columns:1fr}.accounting-kpis strong{font-size:19px}.accounting-account-form{grid-template-columns:1fr}.accounting-panel{padding-top:14px}.accounting-export-actions{justify-content:flex-start;overflow-x:auto}.accounting-export-actions>span{display:none}}
@media print{.sidebar,.topbar,.page-head,.accounting-toolbar,.btn,.icon-button{display:none!important}.main-content{padding:0!important}.accounting-panel{border:0}.table-wrap{overflow:visible}table{font-size:10px}}

/* EDM zero-code onboarding and approval workflow */
.integration-live-status{display:grid;grid-template-columns:auto minmax(0,1fr);gap:14px;align-items:start;padding:18px;margin-bottom:18px;border-left:4px solid #2563eb}.integration-live-status.is-success{border-left-color:#16a34a}.integration-live-status.is-error{border-left-color:#dc2626}.integration-live-status-icon{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:#eff6ff;color:#2563eb}.integration-live-status.is-success .integration-live-status-icon{background:#dcfce7;color:#15803d}.integration-live-status.is-error .integration-live-status-icon{background:#fee2e2;color:#b91c1c}.integration-live-status h4{margin:2px 0 4px}.integration-live-status p{margin:0;color:var(--muted,#64748b)}.integration-progress{height:8px;margin-top:13px;overflow:hidden;border-radius:999px;background:#e2e8f0}.integration-progress span{display:block;width:8%;height:100%;border-radius:inherit;background:linear-gradient(90deg,#2563eb,#06b6d4);transition:width .35s ease}.integration-credential-update{padding:16px 18px;margin-bottom:18px}.integration-credential-update summary{cursor:pointer;font-weight:700}.integration-credential-update form{margin-top:16px}.integration-detail-operation[data-edm-workflow-status]{gap:14px}.integration-detail-operation[data-edm-workflow-status] form+form{padding-top:12px;border-top:1px solid var(--border,#e2e8f0)}
@media(max-width:640px){.integration-live-status{grid-template-columns:1fr}.integration-live-status-icon{width:38px;height:38px}.integration-detail-operation[data-edm-workflow-status] .btn{width:100%;justify-content:center}}
