﻿/* Extra enterprise polish layered on top of the prototype without touching core layout. */
.enterprise-clock {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-size: 13px;
}

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

.health-ribbon .health-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 12px;
}

.health-ribbon strong {
  display: block;
  font-size: 13px;
  margin-bottom: 6px;
}

.health-ribbon span {
  color: var(--muted);
  font-size: 12px;
}

.audit-flash {
  animation: auditFlash 0.9s ease;
}

@keyframes auditFlash {
  0% {
    outline: 0 solid color-mix(in srgb, var(--primary) 0%, transparent);
  }
  35% {
    outline: 4px solid color-mix(in srgb, var(--primary) 26%, transparent);
  }
  100% {
    outline: 0 solid color-mix(in srgb, var(--primary) 0%, transparent);
  }
}

.command-palette {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(0, 0, 0, 0.48);
  display: none;
  place-items: start center;
  padding-top: 12vh;
}

.command-palette.show {
  display: grid;
}

.command-box {
  width: min(620px, calc(100vw - 28px));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.command-box input {
  width: 100%;
  height: 54px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  padding: 0 16px;
  outline: 0;
}

.command-list {
  display: grid;
  max-height: 320px;
  overflow: auto;
}

.command-list button {
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  min-height: 46px;
  padding: 0 16px;
  text-align: start;
  cursor: pointer;
}

.command-list button:hover {
  background: var(--primary-2);
}

@media (max-width: 900px) {
  .health-ribbon {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .health-ribbon {
    grid-template-columns: 1fr;
  }

  .enterprise-clock {
    width: 100%;
    justify-content: center;
  }
}

/* Keep the RTL sidebar readable after login. */
.app {
  grid-template-columns: minmax(280px, 320px) minmax(0, 1fr);
}

.sidebar {
  width: 100%;
  min-width: 280px;
  overflow-x: hidden;
  overflow-y: auto;
}

.brand,
.nav button,
.nav button span {
  min-width: 0;
}

.brand > div,
.nav button span em {
  min-width: 0;
  overflow: visible;
  white-space: normal;
  text-overflow: clip;
}

.nav button {
  gap: 10px;
  text-align: start;
}

.nav button span {
  flex: 1 1 auto;
}

@media (max-width: 900px) {
  .app {
    grid-template-columns: minmax(240px, 290px) minmax(0, 1fr);
  }

  .sidebar {
    min-width: 240px;
    padding: 14px;
  }
}

