/* ACP Nexus Business ERP — professional responsive interface layer */
:root {
  --ui-blue: #1267d6;
  --ui-blue-dark: #0a4fae;
  --ui-navy: #0c2340;
  --ui-gold: #d49a12;
  --ui-focus: rgba(18, 103, 214, 0.26);
  --ui-button-shadow: 0 7px 18px rgba(18, 103, 214, 0.18);
}

button,
[role="button"],
[data-route] {
  -webkit-tap-highlight-color: transparent;
}

.btn,
.close,
.tab,
.enterprise-tab,
.quick-action {
  min-height: 44px;
  border-radius: 11px;
  font-weight: 800;
  letter-spacing: 0.005em;
  line-height: 1.2;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease,
    background-color 160ms ease, color 160ms ease;
}

.btn {
  justify-content: center;
  padding: 11px 16px;
  border: 1px solid transparent;
}

.btn-primary,
.btn-brand {
  border-color: var(--ui-blue);
  background: linear-gradient(180deg, #1974df, var(--ui-blue));
  color: #fff;
  box-shadow: var(--ui-button-shadow);
}

.btn-primary:hover,
.btn-brand:hover {
  border-color: var(--ui-blue-dark);
  background: linear-gradient(180deg, var(--ui-blue), var(--ui-blue-dark));
  box-shadow: 0 10px 24px rgba(18, 103, 214, 0.24);
  transform: translateY(-1px);
}

.btn-success {
  border-color: #15803d;
  background: linear-gradient(180deg, #19934a, #14733a);
  box-shadow: 0 7px 18px rgba(21, 128, 61, 0.17);
}

.btn-danger {
  border-color: #b91c1c;
  background: linear-gradient(180deg, #cf2e2e, #a91515);
  box-shadow: 0 7px 18px rgba(185, 28, 28, 0.16);
}

.btn-warning {
  border-color: #d89305;
  background: linear-gradient(180deg, #fbbf24, #e6a40a);
  color: #422006;
  box-shadow: 0 7px 18px rgba(217, 119, 6, 0.14);
}

.btn-outline {
  border-color: #c5d2e1;
  background: var(--panel);
  color: var(--ui-navy);
  box-shadow: 0 2px 7px rgba(15, 23, 42, 0.05);
}

body.dark .btn-outline {
  border-color: #475569;
  color: #e7eef8;
}

.btn-outline:hover,
.quick-action:hover,
.enterprise-tab:hover {
  border-color: var(--ui-blue);
  color: var(--ui-blue);
  box-shadow: 0 7px 18px rgba(18, 103, 214, 0.11);
  transform: translateY(-1px);
}

.btn-light {
  border-color: #d3dce8;
  background: #edf2f7;
  color: var(--ui-navy);
}

.btn-sm {
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 9px;
}

.btn:active,
.close:active,
.tab:active,
.enterprise-tab:active,
.quick-action:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn:disabled,
.close:disabled,
.tab:disabled,
.enterprise-tab:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
  box-shadow: none;
}

.btn:focus-visible,
.close:focus-visible,
.tab:focus-visible,
.enterprise-tab:focus-visible,
.quick-action:focus-visible,
.nav-btn:focus-visible,
.nav-parent:focus-visible,
.software-brand:focus-visible,
.client-card:focus-visible {
  outline: 3px solid var(--ui-focus);
  outline-offset: 2px;
}

.icon-only {
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border-radius: 11px;
}

.button-row,
.route-actions,
.enterprise-page-actions,
.top-actions {
  gap: 10px;
}

.page-action-card {
  flex-wrap: wrap;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, var(--panel), var(--soft));
}

.topbar {
  box-shadow: 0 5px 18px rgba(15, 23, 42, 0.045);
}

.nav-btn,
.nav-parent {
  border: 1px solid transparent;
}

.nav-btn:hover,
.nav-parent:hover {
  border-color: rgba(255, 255, 255, 0.09);
}

input,
select,
textarea {
  min-height: 44px;
  border-radius: 10px;
}

.card,
.enterprise-panel,
.dashboard-panel {
  border-radius: 13px;
}

.table-wrap {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

.table-wrap > table {
  min-width: 680px;
}

/* About ACP Nexus */
.about-page {
  display: grid;
  gap: 16px;
}

.about-hero {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  overflow: hidden;
  padding: clamp(22px, 4vw, 38px);
  border: 0;
  background: linear-gradient(135deg, #091c34 0%, #0d3b72 62%, #1267d6 100%);
  color: #fff;
  box-shadow: 0 20px 45px rgba(12, 35, 64, 0.2);
}

.about-hero::after {
  content: "";
  position: absolute;
  right: -85px;
  top: -105px;
  width: 280px;
  height: 280px;
  border: 50px solid rgba(255, 255, 255, 0.065);
  border-radius: 50%;
}

.about-hero > * {
  position: relative;
  z-index: 1;
}

.about-hero .about-logo {
  width: clamp(112px, 13vw, 164px) !important;
  height: clamp(82px, 10vw, 112px) !important;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  box-shadow: 0 15px 34px rgba(2, 8, 23, 0.3);
}

.about-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: #f5c95a;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.about-kicker::before {
  content: "";
  width: 25px;
  height: 3px;
  border-radius: 999px;
  background: var(--ui-gold);
}

.about-hero h2 {
  margin: 0;
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.08;
}

.about-hero p {
  max-width: 800px;
  margin: 12px 0 0;
  color: #d7e7fb;
  font-size: 14px;
  line-height: 1.65;
}

.about-capabilities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.about-capabilities span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.about-section-title {
  margin: 0 0 5px;
  font-size: 20px;
}

.about-section-copy {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.55;
}

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

.about-benefit {
  min-height: 150px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft);
}

.about-benefit-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(18, 103, 214, 0.11);
  color: var(--ui-blue);
  font-size: 12px;
  font-weight: 900;
}

.about-benefit strong {
  display: block;
  margin-top: 13px;
  font-size: 14px;
}

.about-benefit p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

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

.about-developer-card {
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 3.2vw, 34px);
  background: linear-gradient(135deg, #0b1f3a, #122f53);
  color: #fff;
}

.about-developer-card::before {
  content: "ACP";
  position: absolute;
  right: 18px;
  bottom: -24px;
  color: rgba(255, 255, 255, 0.045);
  font-size: 120px;
  font-weight: 950;
  letter-spacing: -0.08em;
}

.about-developer-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.4fr);
  gap: 26px;
  align-items: center;
}

.about-developer-label {
  color: #f5c95a;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.about-developer-name {
  margin: 7px 0 0;
  font-size: clamp(23px, 2.8vw, 34px);
  line-height: 1.12;
}

.about-developer-role {
  margin: 7px 0 0;
  color: #bfdbfe;
  font-size: 13px;
  font-weight: 700;
}

.about-developer-copy {
  margin: 0;
  color: #d6e2f0;
  font-size: 13px;
  line-height: 1.65;
}

.about-powered {
  margin-top: 13px;
  color: #f5c95a;
  font-size: 12px;
  font-weight: 850;
}

.about-support-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.about-support-item {
  padding: 12px 13px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.07);
}

.about-support-item span,
.about-support-item strong {
  display: block;
}

.about-support-item span {
  color: #9fb4ca;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.about-support-item strong {
  margin-top: 5px;
  color: #fff;
  font-size: 12px;
  overflow-wrap: anywhere;
}

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

.about-policy-block {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--soft);
}

.about-policy-block h3 {
  margin: 0 0 8px;
}

.about-policy-block p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

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

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

@media (max-width: 980px) {
  .topbar {
    padding: 11px 14px;
  }

  .content {
    padding: 16px;
  }

  .about-developer-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 760px) {
  .route-head,
  .enterprise-page-header {
    gap: 13px;
  }

  .route-actions,
  .enterprise-page-actions,
  .page-action-card,
  .doc-toolbar {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .route-actions .btn,
  .enterprise-page-actions .btn,
  .page-action-card .btn,
  .doc-toolbar .btn {
    width: 100%;
  }

  .about-hero {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .about-hero .about-logo {
    width: 126px !important;
    height: 88px !important;
  }

  .about-support-grid,
  .about-policy-grid {
    grid-template-columns: 1fr;
  }

  .modal-head {
    align-items: flex-start;
  }

  .toast {
    left: 12px;
    right: 12px;
    bottom: 12px;
    text-align: center;
  }
}

@media (max-width: 560px) {
  .content {
    padding: 12px;
  }

  .card {
    padding: 14px;
  }

  .top-actions .btn {
    flex: 1 1 calc(50% - 5px);
  }

  .about-benefits,
  .about-detail-card .detail-grid {
    grid-template-columns: 1fr;
  }

  .about-benefit {
    min-height: 0;
  }

  .about-hero,
  .about-developer-card {
    padding: 20px;
  }

  .button-row:not(.table-actions) > .btn {
    flex: 1 1 100%;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .close,
  .tab,
  .enterprise-tab,
  .quick-action,
  .sidebar {
    scroll-behavior: auto;
    transition: none !important;
  }
}
