.enterprise-global-search {
  position: relative;
  flex: 1 1 280px;
  max-width: 440px;
  min-width: 180px;
}
.enterprise-search-row { display: flex; gap: 6px; }
.enterprise-search-row input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line, #dbe3ea);
  border-radius: 9px;
  background: var(--panel, #fff);
  color: var(--ink, #0f172a);
  padding: 8px 34px 8px 11px;
}
.enterprise-search-kbd {
  position: absolute;
  right: 9px;
  top: 8px;
  color: var(--muted, #64748b);
  font: 11px/20px ui-monospace, SFMono-Regular, Menlo, monospace;
  pointer-events: none;
}
.enterprise-search-results {
  position: absolute;
  z-index: 80;
  left: 0;
  right: 0;
  top: calc(100% + 7px);
  max-height: min(64vh, 520px);
  overflow: auto;
  border: 1px solid var(--line, #dbe3ea);
  border-radius: 12px;
  background: var(--panel, #fff);
  box-shadow: 0 18px 45px rgba(15, 23, 42, .18);
  padding: 6px;
}
.enterprise-search-status { padding: 9px 10px; color: var(--muted, #64748b); font-size: 12px; }
.enterprise-search-item {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  padding: 9px 10px;
  text-align: left;
  cursor: pointer;
}
.enterprise-search-item:hover,
.enterprise-search-item[aria-selected="true"] { background: rgba(15, 118, 110, .09); }
.enterprise-search-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 650; }
.enterprise-search-meta { color: var(--muted, #64748b); font-size: 12px; }
.enterprise-search-type { grid-row: 1 / span 2; grid-column: 2; align-self: center; }

.app:has(.enterprise-app-nav) { grid-template-rows: max-content minmax(0, 1fr); }
.app:has(.enterprise-app-nav):not(.side-collapsed) { grid-template-columns: 240px minmax(0, 1fr); }
.app:has(.enterprise-app-nav):not(.side-collapsed) .side { display: flex; }
.app:has(.enterprise-app-nav):not(.side-collapsed) .main { grid-column: 2; }
.app:has(.enterprise-app-nav) .side-toggle { display: inline-flex; }
.app-header:has(.enterprise-app-nav) {
  height: auto;
  min-height: 56px;
  align-self: start;
}
.app-nav.enterprise-app-nav {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: thin;
}
.enterprise-app-nav .app-nav-item {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
  color: var(--ink-2, var(--ink, #0f172a));
  font-family: inherit;
  font-size: var(--fs-sm, 14px);
  font-weight: var(--fw-sb, 600);
  line-height: 1.3;
  white-space: nowrap;
  cursor: pointer;
}
.enterprise-app-nav .app-nav-item:hover {
  background: var(--hover, rgba(15, 23, 42, .06));
  color: var(--ink, #0f172a);
}
.enterprise-app-nav .app-nav-item.is-on {
  color: var(--brand, var(--primary, #0f766e));
  background: var(--brand-soft, rgba(15, 118, 110, .09));
}
.enterprise-app-nav .app-nav-item[hidden] { display: none !important; }
.enterprise-center-shell { display: grid; gap: 16px; }
.enterprise-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--line, #dbe3ea);
  border-radius: 14px;
  padding: 18px;
  background: linear-gradient(135deg, rgba(15,118,110,.09), rgba(14,165,233,.05));
}
.enterprise-hero h2 { margin: 0 0 6px; font-size: 18px; }
.enterprise-hero p { margin: 0; color: var(--muted, #64748b); line-height: 1.55; }
.enterprise-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.enterprise-kpi { border: 1px solid var(--line, #dbe3ea); border-radius: 12px; padding: 14px; background: var(--panel, #fff); }
.enterprise-kpi strong { display: block; margin-top: 5px; font-size: 24px; font-variant-numeric: tabular-nums; }
.enterprise-kpi span { color: var(--muted, #64748b); font-size: 12px; }
.enterprise-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.enterprise-actions a,
.enterprise-actions button { text-decoration: none; }
.enterprise-note { border-left: 3px solid var(--primary, #0f766e); padding: 10px 12px; background: rgba(15,118,110,.06); border-radius: 0 8px 8px 0; }
.enterprise-kpi small { display: block; margin-top: 4px; color: var(--muted, #64748b); font-size: 12px; font-weight: 400; }
.enterprise-chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.enterprise-chip { border: 1px solid var(--line, #dbe3ea); background: var(--panel, #fff); color: inherit; border-radius: 999px; padding: 6px 12px; cursor: pointer; }
.enterprise-chip.is-on { background: rgba(15,118,110,.1); border-color: #0f766e; color: #0f766e; }
.enterprise-project-scroll { overflow: auto; border: 1px solid var(--line, #dbe3ea); border-radius: 12px; background: var(--panel, #fff); }
.enterprise-project-loading, .enterprise-project-more { margin: 0; padding: 14px 16px; }
.enterprise-project-empty { display: grid; gap: 8px; justify-items: start; padding: 28px 20px; }
.enterprise-project-empty p { margin: 0; color: var(--muted, #64748b); }
.enterprise-project-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.enterprise-project-table th, .enterprise-project-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line, #e2e8f0); vertical-align: middle; }
.enterprise-project-table th { font-size: 12px; color: var(--muted, #64748b); font-weight: 600; }
.enterprise-project-table td small { display: block; margin-top: 3px; color: var(--muted, #64748b); }
.enterprise-project-table tbody tr { cursor: pointer; }
.enterprise-project-table tbody tr:hover, .enterprise-project-table tbody tr:focus { background: rgba(15,118,110,.05); outline: none; }
.enterprise-project-table tr.is-overdue td:first-child { box-shadow: inset 3px 0 0 #b45309; }
.enterprise-progress { height: 6px; border-radius: 99px; background: var(--line, #e2e8f0); overflow: hidden; }
.enterprise-progress i { display: block; height: 100%; background: #0f766e; }
.enterprise-flag-panel { padding: 16px 18px 8px; }
.enterprise-flag-panel .hint { margin: 0 0 14px; }
.enterprise-flag-form { display: grid; grid-template-columns: minmax(120px, 1.3fr) minmax(100px, 1fr) minmax(100px, 1fr) 88px auto auto; gap: 10px 12px; align-items: end; margin: 0 0 8px; }
.enterprise-flag-field { display: grid; gap: 4px; min-width: 0; color: var(--muted, #64748b); font-size: 12px; font-weight: 600; }
.enterprise-flag-field input,
.enterprise-flag-field select { width: 100%; min-width: 0; border: 1px solid var(--line, #dbe3ea); border-radius: 8px; padding: 8px 10px; background: var(--panel, #fff); color: var(--ink, #0f172a); font-weight: 450; }
.enterprise-flag-form .enterprise-checkbox { margin-bottom: 8px; }
.enterprise-flag-form .btn { margin-bottom: 1px; }
.enterprise-checkbox { display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; color: var(--ink, #0f172a); font-size: 13px; }
.enterprise-flag-table { width: 100%; border-collapse: collapse; }
.enterprise-flag-table th { text-align: left; color: var(--muted, #64748b); font-size: 12px; font-weight: 600; padding: 8px 12px 8px 0; }
.enterprise-flag-table td { padding: 11px 12px 11px 0; border-top: 1px solid var(--line, #e2e8f0); vertical-align: middle; }
.enterprise-flag-table th:last-child,
.enterprise-flag-table td:last-child { text-align: right; width: 88px; padding-right: 0; }
.enterprise-flag-percent { font-variant-numeric: tabular-nums; }

.enterprise-drawer-backdrop { position: fixed; inset: 0; z-index: 9990; background: rgba(15, 23, 42, .42); }
.enterprise-drawer {
  position: fixed;
  z-index: 9991;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(620px, 94vw);
  display: flex;
  flex-direction: column;
  background: var(--panel, #fff);
  color: var(--ink, #0f172a);
  box-shadow: -18px 0 50px rgba(15, 23, 42, .2);
}
.enterprise-drawer-head { display: flex; gap: 12px; align-items: flex-start; padding: 18px 20px; border-bottom: 1px solid var(--line, #e2e8f0); }
.enterprise-drawer-head > div { min-width: 0; flex: 1; }
.enterprise-drawer-head h2 { margin: 5px 0 4px; font-size: 20px; overflow-wrap: anywhere; }
.enterprise-drawer-head p { margin: 0; color: var(--muted, #64748b); }
.enterprise-drawer-body { overflow: auto; padding: 18px 20px 36px; }
.enterprise-object-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; margin: 14px 0; }
.enterprise-object-field { border: 1px solid var(--line, #e2e8f0); border-radius: 9px; padding: 10px; }
.enterprise-object-field span { display: block; color: var(--muted, #64748b); font-size: 11px; margin-bottom: 4px; }
.enterprise-object-field strong { overflow-wrap: anywhere; }
.enterprise-section-title { margin: 22px 0 8px; font-size: 14px; }
.enterprise-related { display: grid; gap: 7px; }
.enterprise-related button { width: 100%; display: flex; justify-content: space-between; gap: 10px; text-align: left; }
.enterprise-timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.enterprise-timeline li { position: relative; padding: 0 0 2px 18px; }
.enterprise-timeline li::before { content: ''; position: absolute; left: 2px; top: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--primary, #0f766e); }
.enterprise-timeline time { display: block; color: var(--muted, #64748b); font-size: 11px; }
.enterprise-sr-status { position: fixed; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.enterprise-data { display: grid; gap: 16px; }
.enterprise-data-section { display: grid; gap: 10px; }
.enterprise-data-head h3, .enterprise-data-sub { margin: 0; font-size: 16px; }
.enterprise-data-sub { font-size: 13px; }
.enterprise-data-head p, .enterprise-data-foot { margin: 0; color: var(--muted, #64748b); font-size: 12px; line-height: 1.5; }
a.enterprise-kpi { display: block; color: inherit; text-decoration: none; }
a.enterprise-kpi:hover, a.enterprise-kpi:focus-visible { border-color: var(--primary, #0f766e); outline: none; }
.enterprise-kpi.is-hold strong { color: var(--muted, #64748b); font-size: 18px; }
.enterprise-kpi.is-alert strong { color: #b45309; }
.enterprise-kpi-hint { display: block; margin-top: 6px; line-height: 1.45; }
.enterprise-source-list { list-style: none; margin: 0; padding: 0; display: grid; }
.enterprise-source-list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line, #e2e8f0); }
.enterprise-source-list b { font-variant-numeric: tabular-nums; }
.enterprise-sales-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .9fr); gap: 16px; align-items: start; }
.enterprise-service-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.enterprise-service-search { display: flex; gap: 8px; min-width: min(100%, 280px); flex: 1; }
.enterprise-service-search input { flex: 1; min-width: 0; border: 1px solid var(--line, #dbe3ea); border-radius: 8px; padding: 8px 10px; background: var(--panel, #fff); color: var(--ink, #0f172a); }
.enterprise-chip em { margin-left: 6px; font-style: normal; font-variant-numeric: tabular-nums; }
.enterprise-alert-list { display: grid; gap: 8px; }
.enterprise-alert-list .enterprise-note { margin: 0; }
.enterprise-seat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.enterprise-seat { border: 1px solid var(--line, #dbe3ea); border-radius: 12px; padding: 12px; background: var(--panel, #fff); display: grid; gap: 4px; }
.enterprise-seat.is-offline { opacity: .72; }
.enterprise-seat header { display: flex; align-items: center; gap: 8px; min-width: 0; }
.enterprise-seat header strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.enterprise-seat b { font-variant-numeric: tabular-nums; }
.enterprise-seat-dot { width: 8px; height: 8px; border-radius: 50%; background: #94a3b8; flex: none; }
.enterprise-seat-dot.is-online { background: #0f766e; }
.enterprise-seat-dot.is-busy { background: #b45309; }
.enterprise-project-table td .btn { margin-right: 6px; }
.enterprise-funnel { display: grid; gap: 10px; padding: 4px 2px 2px; }
.enterprise-funnel-row { display: grid; grid-template-columns: 4.5em minmax(80px, 1fr) minmax(0, 16em); gap: 10px; align-items: center; font-size: 13px; }
.enterprise-funnel-name { color: var(--ink, #0f172a); }
.enterprise-funnel-meta { color: var(--muted, #64748b); font-size: 12px; font-variant-numeric: tabular-nums; text-align: right; }
.enterprise-progress i.is-won { background: #0f766e; }
.enterprise-progress i.is-lost { background: #94a3b8; }
.enterprise-sales-table tbody tr { cursor: default; }
.enterprise-apps { width: 100%; border-collapse: collapse; }
.enterprise-apps th, .enterprise-apps td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line, #e2e8f0); vertical-align: top; }
.enterprise-apps th { color: var(--muted, #64748b); font-size: 12px; font-weight: 650; }
.enterprise-apps td { font-size: 13px; overflow-wrap: anywhere; }
.enterprise-apps td small { display: block; margin-top: 3px; color: var(--muted, #64748b); }
.enterprise-order-tools { display: grid; gap: 10px; justify-items: end; }
.enterprise-order-site { display: grid; gap: 4px; justify-items: end; color: var(--muted, #64748b); font-size: 12px; font-weight: 650; }
.enterprise-order-site select { min-width: 180px; border: 1px solid var(--line, #dbe3ea); border-radius: 8px; padding: 8px 10px; background: var(--panel, #fff); color: var(--ink, #0f172a); font-weight: 450; }
.enterprise-order-site strong { color: var(--ink, #0f172a); font-size: 13px; }
.enterprise-order-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.enterprise-order-filters input[type="search"] { flex: 1 1 220px; min-width: 0; border: 1px solid var(--line, #dbe3ea); border-radius: 8px; padding: 8px 10px; background: var(--panel, #fff); color: var(--ink, #0f172a); }
.enterprise-order-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); gap: 16px; align-items: start; }
.enterprise-order-status-mix .enterprise-funnel-row { grid-template-columns: 5.5em minmax(80px, 1fr) 4.5em; }
.enterprise-progress i.is-warn { background: #b45309; }
.enterprise-order-trend { display: flex; align-items: flex-end; gap: 8px; min-height: 168px; overflow-x: auto; padding-top: 8px; }
.enterprise-order-bar { display: grid; gap: 6px; justify-items: center; min-width: 36px; flex: 1; }
.enterprise-order-bars { display: flex; align-items: flex-end; gap: 3px; height: 128px; }
.enterprise-order-bars i { display: block; width: 14px; border-radius: 4px 4px 0 0; background: #0f766e; }
.enterprise-order-bars i.is-refund { background: #b45309; }
.enterprise-order-bar > span { color: var(--muted, #64748b); font-size: 10px; font-variant-numeric: tabular-nums; }
.enterprise-order-stack { display: grid; gap: 8px; }
.enterprise-order-queue, .enterprise-order-exception { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; width: 100%; text-align: left; border: 1px solid var(--line, #dbe3ea); border-radius: 12px; padding: 10px 12px; background: var(--panel, #fff); color: inherit; }
.enterprise-order-exception { grid-template-columns: auto minmax(0, 1fr); cursor: pointer; }
.enterprise-order-exception:hover, .enterprise-order-exception:focus-visible { border-color: var(--primary, #0f766e); outline: none; }
.enterprise-order-queue strong, .enterprise-order-exception strong { display: block; }
.enterprise-order-queue span, .enterprise-order-exception small { display: block; margin-top: 3px; color: var(--muted, #64748b); font-size: 12px; }
.enterprise-order-queue b { font-size: 20px; font-variant-numeric: tabular-nums; }
.enterprise-order-queue b.is-warn, .enterprise-order-status.is-warn { color: #b45309; }
.enterprise-order-status { display: inline-flex; align-items: center; border-radius: 999px; padding: 2px 8px; background: rgba(15,118,110,.1); color: #0f766e; font-size: 12px; font-weight: 650; }
.enterprise-order-status.is-warn { background: rgba(180,83,9,.12); }
.enterprise-order-status.is-bad { background: rgba(100,116,139,.16); color: #475569; }
.enterprise-order-sev { border-radius: 999px; padding: 2px 8px; font-size: 11px; font-weight: 700; }
.enterprise-order-sev.is-critical, .enterprise-order-sev.is-warning { background: rgba(180,83,9,.12); color: #b45309; }
.enterprise-order-sev.is-info { background: rgba(15,118,110,.1); color: #0f766e; }
.enterprise-order-exception-copy { min-width: 0; }
.enterprise-order-exception-copy strong, .enterprise-order-exception-copy small { overflow-wrap: anywhere; }
.enterprise-order-batch { margin: 8px 0 0; font-size: 13px; color: var(--muted, #64748b); }
.enterprise-order-platforms { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.enterprise-order-platform { border: 1px solid var(--line, #dbe3ea); border-radius: 12px; padding: 12px; background: var(--panel, #fff); display: grid; gap: 6px; }
.enterprise-order-platform p, .enterprise-order-platform small { margin: 0; color: var(--muted, #64748b); font-size: 12px; line-height: 1.45; }
.enterprise-order-platform-head { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.enterprise-order-platform-head b { font-size: 12px; letter-spacing: .04em; }
.enterprise-order-platform-head b.is-hold { color: #b45309; }
.enterprise-order-platform-head b.is-verify { color: #0f766e; }
.enterprise-order-platform-head b.is-done { color: #0f766e; }
.enterprise-inline-link { color: var(--primary, #0f766e); font-size: 13px; font-weight: 650; text-decoration: none; }
.enterprise-inline-link:hover, .enterprise-inline-link:focus-visible { text-decoration: underline; }
#view-enterprise-integrations { align-content: start; }
#view-enterprise-integrations .enterprise-actions { margin-bottom: 4px; }

@media (max-width: 1080px) {
  .app-header { flex-wrap: wrap; }
  .enterprise-global-search { order: 3; flex-basis: 100%; max-width: none; }
  .app-nav.enterprise-app-nav { order: 4; width: 100%; flex-wrap: wrap; overflow-x: visible; }
}
@media (max-width: 960px) {
  .enterprise-sales-grid, .enterprise-order-grid { grid-template-columns: 1fr; }
  .enterprise-order-tools, .enterprise-order-site { justify-items: start; }
  .enterprise-funnel-row { grid-template-columns: 4.5em minmax(0, 1fr); }
  .enterprise-funnel-meta { grid-column: 2; text-align: left; }
}
@media (max-width: 640px) {
  .enterprise-object-grid { grid-template-columns: 1fr; }
  .enterprise-hero { display: block; }
  .enterprise-hero .enterprise-actions { margin-top: 12px; }
  .enterprise-flag-form { grid-template-columns: 1fr 1fr; }
  .enterprise-flag-form .enterprise-checkbox,
  .enterprise-flag-form .btn { grid-column: auto; }
}
