/* ACP Nexus Business ERP - organised full-edition finance and workflow layer */

.software-brand {
  justify-content: flex-start !important;
  gap: 12px !important;
  min-height: 66px;
}

.software-brand .app-logo {
  width: 84px !important;
  height: 56px !important;
  padding: 0 !important;
  border: 1px solid rgba(96, 165, 250, 0.32);
  border-radius: 10px !important;
  background: #020817 !important;
  object-fit: contain;
  box-shadow: 0 8px 20px rgba(2, 8, 23, 0.35);
}

.software-brand .product-name {
  min-width: 0;
}

.software-brand .product-name strong {
  font-size: 17px !important;
  letter-spacing: 0.035em !important;
  white-space: nowrap;
}

.software-brand .product-name span {
  font-size: 10px !important;
  letter-spacing: 0.18em !important;
  white-space: nowrap;
}

.login-app-logo {
  width: 118px !important;
  height: 79px !important;
  padding: 0 !important;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: #020817 !important;
  object-fit: contain;
}

.about-logo {
  width: 168px !important;
  height: 112px !important;
  padding: 0 !important;
  background: #020817 !important;
  object-fit: contain;
}

.content > .client-demo-label {
  display: inline-flex;
  align-items: center;
  width: auto;
  min-height: 32px;
  margin: 0 0 16px auto;
  padding: 6px 12px;
  border-color: rgba(245, 158, 11, 0.45);
  border-radius: 999px;
  background: rgba(254, 243, 199, 0.9);
  color: #854d0e;
  font-size: 10px;
  letter-spacing: 0.1em;
  box-shadow: none;
}

body.dark .content > .client-demo-label {
  background: rgba(120, 53, 15, 0.28);
  border-color: rgba(251, 191, 36, 0.34);
  color: #fde68a;
}

.footer {
  padding-bottom: 62px !important;
}

.enterprise-page {
  display: grid;
  gap: 16px;
}

.enterprise-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 4px 2px;
}

.enterprise-page-header h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(23px, 2.4vw, 31px);
  line-height: 1.15;
}

.enterprise-page-header p {
  max-width: 760px;
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

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

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

.enterprise-kpi {
  min-height: 116px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: 0 8px 22px rgba(2, 6, 23, 0.06);
}

.enterprise-kpi span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.enterprise-kpi strong {
  display: block;
  margin-top: 10px;
  font-size: 23px;
  line-height: 1.15;
}

.enterprise-kpi small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
}

.enterprise-kpi.positive strong { color: #15803d; }
.enterprise-kpi.negative strong { color: #b91c1c; }
.enterprise-kpi.accent { border-top: 3px solid #1d4ed8; }
.enterprise-kpi.gold { border-top: 3px solid #d4a72c; }

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

.enterprise-panel {
  margin: 0;
  border-radius: 12px;
}

.page-action-card {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-height: 74px;
  padding: 14px 16px;
  border-radius: 12px;
  box-shadow: none;
}

.page-action-card .btn {
  min-height: 42px;
}

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

.enterprise-panel-head h3 {
  margin: 0;
}

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

.enterprise-toolbar .form-group {
  min-width: 150px;
  margin: 0;
}

.enterprise-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--soft);
}

.enterprise-tab {
  min-height: 38px;
  padding: 7px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.enterprise-tab:hover,
.enterprise-tab.active {
  border-color: var(--line);
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(2, 6, 23, 0.06);
}

.workflow-guide {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  padding: 15px 16px;
  border: 1px solid rgba(29, 78, 216, 0.24);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(219, 234, 254, 0.72), rgba(255, 255, 255, 0.86));
}

body.dark .workflow-guide {
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.18), rgba(15, 23, 42, 0.62));
}

.workflow-guide-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: #1d4ed8;
  color: white;
  font-size: 20px;
  font-weight: 900;
}

.workflow-guide h3 {
  margin: 0;
  font-size: 15px;
}

.workflow-guide p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.prerequisite-summary {
  display: grid;
  gap: 10px;
}

.prerequisite-intro {
  padding: 13px 14px;
  border: 1px solid #f5c66b;
  border-radius: 10px;
  background: #fff8e6;
  color: #713f12;
  line-height: 1.5;
}

body.dark .prerequisite-intro {
  background: rgba(120, 53, 15, 0.22);
  color: #fde68a;
}

.prerequisite-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--soft);
}

.prerequisite-status {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 900;
}

.prerequisite-item.ready .prerequisite-status {
  background: #dcfce7;
  color: #166534;
}

.prerequisite-item.missing .prerequisite-status {
  background: #fee2e2;
  color: #991b1b;
}

.prerequisite-item strong,
.prerequisite-item small {
  display: block;
}

.prerequisite-item small {
  margin-top: 3px;
  color: var(--muted);
  line-height: 1.4;
}

.enterprise-account-code {
  display: inline-flex;
  min-width: 58px;
  justify-content: center;
  padding: 4px 7px;
  border-radius: 7px;
  background: rgba(29, 78, 216, 0.1);
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 900;
}

.enterprise-balance {
  font-weight: 900;
  white-space: nowrap;
}

.enterprise-balance.debit { color: #1d4ed8; }
.enterprise-balance.credit { color: #7c3aed; }
.enterprise-balance.positive { color: #15803d; }
.enterprise-balance.negative { color: #b91c1c; }

.enterprise-report-title {
  margin: 0 0 4px;
  font-size: 21px;
}

.enterprise-report-subtitle {
  margin: 0 0 15px;
  color: var(--muted);
  font-size: 12px;
}

.enterprise-report-total td {
  border-top: 2px solid var(--line);
  background: var(--soft);
  font-weight: 900;
}

.journal-line-grid {
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) minmax(170px, 1fr) 130px 130px 42px;
  gap: 8px;
  align-items: end;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--soft);
  margin-bottom: 8px;
}

.journal-line-grid .form-group {
  margin: 0;
}

.enterprise-empty {
  padding: 34px 18px;
  text-align: center;
  color: var(--muted);
}

.enterprise-empty strong {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 15px;
}

.enterprise-disclosure {
  padding: 11px 13px;
  border-left: 4px solid #d4a72c;
  border-radius: 7px;
  background: rgba(254, 243, 199, 0.7);
  color: #713f12;
  font-size: 11px;
  line-height: 1.5;
}

body.dark .enterprise-disclosure {
  background: rgba(120, 53, 15, 0.2);
  color: #fde68a;
}

@media (max-height: 690px) {
  .software-brand .app-logo {
    width: 72px !important;
    height: 48px !important;
  }
}

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

@media (max-width: 820px) {
  .enterprise-page-header,
  .workflow-guide {
    grid-template-columns: 1fr;
    display: grid;
  }

  .enterprise-page-actions {
    justify-content: flex-start;
  }

  .enterprise-grid-2,
  .journal-line-grid {
    grid-template-columns: 1fr;
  }

  .workflow-guide-icon {
    display: none;
  }
}

@media (max-width: 520px) {
  .software-brand .app-logo {
    width: 76px !important;
    height: 51px !important;
  }

  .enterprise-kpis {
    grid-template-columns: 1fr;
  }

  .content > .client-demo-label {
    margin-left: 0;
  }
}
