:root {
  --om-teal: #0d9f87;
  --om-ink: #10213b;
  --om-placeholder: #98a2b3;
  --om-line: #d9e1ea;
  --om-warning-bg: #fffaf0;
  --om-warning: #f6c444;
  --om-warning-text: #d65f00;
  --om-shadow: 0 18px 46px rgba(16, 33, 59, .08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--om-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
  cursor: pointer;
}

svg {
  display: block;
}

.login-demo-page {
  min-height: 100vh;
  display: grid;
  align-items: start;
  justify-items: center;
  padding: 0 24px 28px;
  background: linear-gradient(90deg, rgba(232, 249, 241, .95) 0%, rgba(255, 255, 255, .96) 52%, rgba(245, 253, 249, .95) 100%);
}

.login-demo-shell {
  width: min(448px, 100%);
  padding-top: 1px;
}

.login-demo-brand {
  display: grid;
  justify-items: center;
  text-align: center;
  padding: 0 0 32px;
}

.login-demo-logo {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(155deg, #0fc098, #08947e);
  color: #fff;
  box-shadow: 0 12px 24px rgba(7, 138, 118, .22);
}

.login-demo-logo svg {
  width: 38px;
  height: 38px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.login-demo-brand h1 {
  margin: 16px 0 4px;
  color: #079477;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: 0;
  font-weight: 800;
}

.login-demo-brand p {
  margin: 0;
  color: #5f6b7a;
  font-size: 16px;
}

.login-demo-card {
  width: 100%;
  padding: 32px;
  border: 1px solid #e8edf3;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--om-shadow);
}

.login-demo-alert {
  min-height: 70px;
  display: grid;
  justify-items: center;
  gap: 4px;
  margin-bottom: 24px;
  padding: 16px;
  border: 1px solid var(--om-warning);
  border-radius: 8px;
  background: var(--om-warning-bg);
  color: var(--om-warning-text);
}

.login-demo-alert strong {
  font-size: 14px;
  font-weight: 700;
}

.login-demo-alert span {
  font-size: 12px;
}

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

.login-demo-field {
  display: grid;
  gap: 7px;
  color: #12264b;
  font-size: 14px;
}

.login-demo-input {
  min-height: 50px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  border: 1px solid var(--om-line);
  border-radius: 11px;
  background: #fff;
}

.login-demo-input:focus-within {
  border-color: #0fa88e;
  box-shadow: 0 0 0 4px rgba(15, 168, 142, .12);
}

.login-demo-input svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--om-placeholder);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.login-demo-input input {
  width: 100%;
  min-width: 0;
  height: 48px;
  border: 0;
  outline: 0;
  color: var(--om-ink);
  background: transparent;
  font-size: 17px;
}

.login-demo-input input::placeholder {
  color: var(--om-placeholder);
}

.login-demo-button {
  min-height: 48px;
  border: 0;
  border-radius: 11px;
  background: linear-gradient(90deg, #16bd8d, #099681);
  color: #fff;
  cursor: default;
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 12px 20px rgba(13, 159, 135, .24);
}

.login-demo-hint {
  margin-top: 16px;
  padding: 10px 12px;
  border: 1px solid #b7eadb;
  border-radius: 8px;
  background: #effcf6;
  color: #06745f;
  font-size: 13px;
  text-align: center;
}

.mobile-login-page {
  align-items: center;
  padding: 24px 14px;
}

.mobile-login-shell {
  width: min(390px, 100%);
}

.mobile-login-shell .login-demo-brand {
  padding-bottom: 22px;
}

.mobile-login-shell .login-demo-logo {
  width: 58px;
  height: 58px;
}

.mobile-login-shell .login-demo-brand h1 {
  font-size: 27px;
}

.mobile-login-card {
  padding: 24px 18px;
  border-radius: 14px;
}

@media (max-width: 560px) {
  .login-demo-page {
    padding: 22px 14px;
  }

  .login-demo-brand {
    padding-bottom: 22px;
  }

  .login-demo-card {
    padding: 24px 18px;
  }

  .login-demo-brand h1 {
    font-size: 27px;
  }

}

.inside-demo-app {
  position: fixed;
  inset: 0;
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  background: #f7faf9;
  color: #111827;
}

.inside-demo-app[hidden],
.login-demo-shell[hidden] {
  display: none;
}

.inside-sidebar {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  border-right: 1px solid #e6ebf0;
  background: #fff;
  box-shadow: 10px 0 28px rgba(15, 23, 42, .05);
}

.inside-sidebar-head {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 8px;
  border-bottom: 1px solid #edf1f5;
}

.inside-sidebar-head strong {
  color: #079477;
  font-size: 20px;
  line-height: 1;
}

.inside-logo {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(155deg, #0fc098, #08947e);
  color: #fff;
}

.inside-logo svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.inside-close,
.inside-menu,
.inside-top-actions button {
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
}

.inside-close {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 3px 10px rgba(15, 23, 42, .12);
}

.inside-close svg,
.inside-menu svg,
.inside-top-actions svg,
.inside-nav svg,
.metric-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.inside-close svg,
.inside-menu svg,
.inside-top-actions svg {
  width: 21px;
  height: 21px;
}

.inside-nav {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 16px 16px 16px 8px;
}

.inside-nav button {
  min-height: 44px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #536174;
  text-align: left;
  font-weight: 650;
}

.inside-nav button.active {
  background: linear-gradient(90deg, #15b98f, #0c957f);
  color: #fff;
  box-shadow: 0 8px 16px rgba(12, 149, 127, .22);
}

.inside-nav svg {
  width: 20px;
  height: 20px;
}

.inside-demo-note {
  display: grid;
  gap: 3px;
  margin: 0 16px 16px 8px;
  padding: 13px 14px;
  border: 1px solid #ffe083;
  border-radius: 8px;
  background: #fff9e8;
  color: #a86500;
  font-size: 12px;
}

.inside-demo-note strong {
  font-size: 13px;
}

.inside-main {
  min-width: 0;
  min-height: 100vh;
  overflow: auto;
  background: #f7faf9;
}

.inside-topbar {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  border-bottom: 1px solid #e6ebf0;
  background: #fff;
}

.inside-menu {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  color: #536174;
}

.inside-top-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
  color: #536174;
}

.inside-top-actions button {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.inside-top-actions button:hover,
.inside-menu:hover {
  background: #eef7f4;
  color: #079477;
}

.notify::after {
  content: "";
  position: absolute;
  top: 7px;
  right: 8px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #c43d35;
}

.inside-user {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 14px;
  border-left: 1px solid #e6ebf0;
  color: #111827;
}

.inside-user div:first-child {
  display: grid;
  text-align: right;
}

.inside-user strong {
  font-size: 14px;
  line-height: 1.1;
}

.inside-user span {
  color: #536174;
  font-size: 13px;
}

.inside-avatar {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(155deg, #146b62, #0b9a82);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.inside-content {
  display: grid;
  gap: 18px;
  padding: 28px 24px;
}

.inside-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.inside-heading span {
  color: #079477;
  font-size: 13px;
  font-weight: 800;
}

.inside-heading h2 {
  margin: 2px 0 0;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: 0;
}

.inside-primary {
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: #079477;
  color: #fff;
  font-weight: 800;
}

.inside-metrics,
.inside-panels {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.inside-card {
  border: 1px solid #e5ebef;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 7px 18px rgba(15, 23, 42, .04);
}

.inside-card[role="button"]:hover,
.demo-table-row:hover,
.inside-list-row:hover,
.demo-secondary:hover,
.action-row button:hover {
  border-color: #b7eadb;
  box-shadow: 0 10px 22px rgba(7, 148, 119, .10);
  transform: translateY(-1px);
}

.metric-card {
  position: relative;
  min-height: 142px;
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 20px;
}

.metric-card strong {
  margin-top: 10px;
  color: #111827;
  font-size: 27px;
  line-height: 1;
}

.metric-card span {
  color: #424f60;
}

.metric-card em {
  position: absolute;
  top: 30px;
  right: 20px;
  color: #078064;
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}

.metric-card em.down {
  color: #a83b38;
}

.metric-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #fff;
}

.metric-icon svg {
  width: 20px;
  height: 20px;
}

.metric-icon.teal {
  background: #078064;
}

.metric-icon.blue {
  background: #2563eb;
}

.metric-icon.amber {
  background: #b66b0f;
}

.metric-icon.red {
  background: #b3443c;
}

.inside-panels {
  grid-template-columns: 1.45fr .85fr;
}

.inside-panel {
  padding: 18px;
}

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

.panel-head h3 {
  margin: 0;
  font-size: 17px;
}

.panel-head span {
  padding: 4px 9px;
  border-radius: 999px;
  background: #eef7f4;
  color: #079477;
  font-size: 12px;
  font-weight: 800;
}

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

.inside-list div {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 11px 12px;
  border: 1px solid #e8eef2;
  border-radius: 8px;
  background: #fbfdfc;
}

.inside-list-row {
  width: 100%;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 11px 12px;
  border: 1px solid #e8eef2;
  border-radius: 8px;
  background: #fbfdfc;
  text-align: left;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.inside-list strong {
  color: #079477;
}

.inside-list span,
.inside-panel p {
  color: #536174;
}

.inside-list em {
  color: #079477;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.action-row button,
.demo-secondary,
.demo-modal-close {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #d9e7e2;
  border-radius: 8px;
  background: #fff;
  color: #087b66;
  font-weight: 800;
}

.demo-table {
  overflow: hidden;
  border: 1px solid #e8eef2;
  border-radius: 10px;
}

.demo-table-head,
.demo-table-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: center;
}

.demo-table-head {
  padding: 11px 14px;
  background: #f4faf8;
  color: #536174;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.demo-table-row {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 0;
  border-top: 1px solid #e8eef2;
  background: #fff;
  color: #1f2937;
  text-align: left;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.demo-big-number {
  display: block;
  margin: 4px 0 8px;
  font-size: 24px;
}

.demo-profile {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid #e8eef2;
  border-radius: 10px;
  background: #fbfdfc;
}

.demo-profile strong {
  font-size: 20px;
}

.demo-profile span,
.demo-check {
  color: #536174;
}

.demo-check {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 36px;
}

.demo-empty {
  margin-top: 14px;
  padding: 18px;
  border: 1px dashed #b9d9cf;
  border-radius: 10px;
  background: #f4faf8;
  color: #087b66;
  font-weight: 800;
}

.demo-toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 20;
  max-width: min(360px, calc(100vw - 28px));
  padding: 13px 15px;
  border: 1px solid #b7eadb;
  border-radius: 10px;
  background: #ecfff8;
  color: #066b59;
  box-shadow: 0 14px 32px rgba(15, 23, 42, .18);
  font-weight: 800;
}

.demo-modal-shell {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 23, 42, .45);
}

.demo-modal-shell[hidden],
.demo-toast[hidden] {
  display: none;
}

.demo-modal {
  width: min(520px, 100%);
  padding: 18px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .25);
}

.demo-modal-body {
  display: grid;
  gap: 14px;
}

.demo-search-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.demo-search-box input {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid #d9e1ea;
  border-radius: 9px;
  outline: 0;
}

.demo-search-box input:focus {
  border-color: #0fa88e;
  box-shadow: 0 0 0 4px rgba(15, 168, 142, .12);
}

.rips-workspace {
  display: grid;
  grid-template-columns: minmax(320px, .92fr) minmax(360px, 1.08fr);
  gap: 16px;
}

.rips-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}

.rips-actions button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid #cfe5dd;
  border-radius: 8px;
  background: #fff;
  color: #087b66;
  font-weight: 800;
}

.rips-actions button:hover {
  background: #eefaf6;
  border-color: #85d6c2;
}

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

.rips-status {
  display: grid;
  gap: 3px;
  padding: 11px 12px;
  border-radius: 9px;
  border: 1px solid #d9e1ea;
  background: #fbfdfc;
}

.rips-status strong {
  font-size: 13px;
}

.rips-status span {
  color: #536174;
  font-size: 13px;
}

.rips-status.ok {
  border-color: #b7eadb;
  background: #f0fff8;
}

.rips-status.warning {
  border-color: #ffe083;
  background: #fff9e8;
}

.rips-status.error {
  border-color: #ffc7c2;
  background: #fff4f2;
}

.rips-preview-card {
  min-width: 0;
}

.rips-preview {
  max-height: 520px;
  overflow: auto;
  margin: 0;
  padding: 14px;
  border: 1px solid #d8e3df;
  border-radius: 10px;
  background: #0f172a;
  color: #d1fae5;
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  line-height: 1.5;
  white-space: pre;
}

.rips-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.rips-flow div {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid #d9e7e2;
  border-radius: 9px;
  background: #f7fbf9;
}

.rips-flow strong {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #079477;
  color: #fff;
}

.rips-flow span {
  color: #536174;
  font-size: 13px;
}

.sispro-response {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid #ffc7c2;
  border-radius: 10px;
  background: #fff4f2;
}

.sispro-response strong {
  color: #9f2d27;
}

.sispro-response span {
  color: #087b66;
  font-weight: 800;
}

.inside-overlay {
  display: none;
}

@media (max-width: 760px) {
  .inside-demo-app {
    grid-template-columns: 1fr;
  }

  .inside-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(248px, 84vw);
    transform: translateX(-100%);
    transition: transform .18s ease;
  }

  .inside-demo-app.sidebar-open .inside-sidebar {
    transform: translateX(0);
  }

  .inside-demo-app.sidebar-open .inside-overlay {
    position: fixed;
    inset: 0;
    z-index: 3;
    display: block;
    background: rgba(17, 24, 39, .48);
  }

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

  .inside-panels {
    grid-template-columns: 1fr;
  }

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

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

@media (min-width: 761px) {
  .inside-menu {
    visibility: hidden;
  }
}

@media (max-width: 680px) {
  .inside-topbar {
    padding: 0 12px;
  }

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

  .inside-user div:first-child {
    display: none;
  }

  .inside-content {
    padding: 18px 12px;
  }

  .inside-heading {
    align-items: stretch;
    flex-direction: column;
  }

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

  .inside-list div {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .inside-list-row,
  .demo-table-head,
  .demo-table-row {
    grid-template-columns: 1fr;
  }

  .inside-list em {
    grid-column: 2;
    width: fit-content;
  }

  .demo-search-box {
    grid-template-columns: 1fr;
  }

  .rips-flow {
    grid-template-columns: 1fr;
  }
}
