﻿.app-shell {
  display: grid;
  grid-template-columns: 256px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-height: 100vh;
  overflow-y: auto;
  background:
    radial-gradient(circle at 20% 10%, rgba(49, 112, 88, 0.55), transparent 28%),
    linear-gradient(165deg, #0d2c21 0%, #0f211b 55%, #0b1814 100%);
  color: #f7faf8;
  padding: 24px 18px 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  margin-bottom: 28px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(145deg, #2c9b75, var(--brand));
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
  font-weight: 800;
}

.brand strong,
.brand span {
  display: block;
}

.brand span {
  color: #aebbb4;
  font-size: 13px;
  margin-top: 2px;
}

.nav-list {
  display: grid;
  gap: 18px;
}

.nav-section {
  display: grid;
  gap: 5px;
}

.nav-section-title {
  color: #91a69b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0 12px 4px;
  text-transform: uppercase;
}

.nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #d9e1dd;
  text-align: left;
  padding: 0 12px;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.nav-item:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.nav-item-main {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
}

.nav-icon {
  display: inline-grid;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  place-items: center;
  border: 1px solid rgba(217, 225, 221, 0.18);
  border-radius: 7px;
  color: #bfe3d3;
  font-size: 10px;
  font-weight: 900;
}

.nav-badge {
  display: inline-flex;
  min-width: 22px;
  min-height: 22px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  padding: 0 7px;
  font-size: 12px;
  font-weight: 800;
}

.nav-badge-warning {
  background: var(--accent);
}

.nav-badge[title] {
  cursor: pointer;
}

.nav-item.active {
  background: linear-gradient(135deg, rgba(44, 139, 105, 0.72), rgba(32, 87, 68, 0.72));
  box-shadow: inset 0 0 0 1px rgba(209, 238, 225, 0.08), 0 10px 22px rgba(0, 0, 0, 0.15);
  color: #ffffff;
}

.nav-item.active .nav-icon {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.nav-item:disabled {
  color: #77857f;
}

.notification-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 100;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(420px, calc(100vw - 32px));
  max-height: min(560px, calc(100vh - 92px));
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 18px 48px rgba(15, 35, 28, 0.2);
}

.notification-panel[hidden] {
  display: none;
}

.notification-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 62px;
  border-bottom: 1px solid var(--line);
  padding: 10px 12px 10px 16px;
  background: #f8fbf9;
}

.notification-panel-head > div:first-child {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.notification-panel-head small {
  color: var(--muted);
  font-size: 12px;
}

.notification-panel-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
}

.notification-panel-head .icon-button {
  width: 30px;
  height: 30px;
  min-height: 30px;
}

.notification-read-all {
  min-height: 30px;
  border: 0;
  background: transparent;
  color: var(--brand);
  padding: 0 8px;
  font-size: 12px;
  font-weight: 800;
}

.notification-read-all:hover:not(:disabled) {
  background: var(--soft);
}

.notification-read-all:disabled {
  color: var(--muted);
  opacity: 0.55;
}

.notification-panel-list {
  display: grid;
  align-content: start;
  gap: 0;
  min-height: 80px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 6px;
}

.notification-panel-item {
  display: grid;
  gap: 4px;
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-left: 3px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
  padding: 11px 12px;
  text-align: left;
}

.notification-panel-item:last-child {
  border-bottom-color: transparent;
}

.notification-panel-item:hover {
  background: var(--soft);
}

.notification-panel-item strong,
.notification-panel-item span,
.notification-panel-item small {
  display: block;
}

.notification-panel-item span,
.notification-panel-item small,
.notification-panel-empty {
  color: var(--muted);
  font-size: 13px;
  padding: 20px 14px;
  text-align: center;
}

.notification-panel-item.notification-response_pending {
  border-left-color: var(--brand);
}

.notification-panel-item.notification-suggestion_pending {
  border-left-color: var(--accent);
}

.notification-panel-item.notification-declined {
  border-left-color: var(--danger);
}

.notification-panel-item.notification-overdue {
  border-left-color: var(--danger);
}

.notification-panel-item.notification-read {
  opacity: 0.68;
}

.notification-panel-item.notification-unread strong::after {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 7px;
  border-radius: 999px;
  background: var(--brand);
  content: "";
  vertical-align: middle;
}

.content {
  min-width: 0;
  padding: 24px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-user {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 4px;
  padding-left: 14px;
  border-left: 1px solid var(--line);
}

.topbar-icon-button,
.topbar-profile {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--brand-strong);
}

.topbar-icon-button {
  position: relative;
  display: inline-grid;
  width: 40px;
  height: 40px;
  min-height: 40px;
  place-items: center;
  border-radius: 999px;
  font-weight: 800;
}

.topbar-badge {
  position: absolute;
  top: -5px;
  right: -4px;
  display: inline-flex;
  min-width: 18px;
  min-height: 18px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 0 5px;
}

.topbar-profile {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  border-radius: 999px;
  padding: 4px 12px 4px 4px;
  text-align: left;
}

.topbar-avatar {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 900;
}

.topbar-profile-text {
  display: grid;
  min-width: 116px;
}

.topbar-profile-text strong {
  max-width: 160px;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-profile-text small {
  color: var(--muted);
  font-size: 12px;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 28px;
  line-height: 1.2;
}

h2 {
  font-size: 18px;
}

.topbar p {
  color: var(--muted);
  margin-top: 4px;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 18px;
}

.icon-sprite {
  display: none;
}

.nav-icon svg,
.topbar-icon-button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.topbar-icon-button svg {
  width: 18px;
  height: 18px;
}

.topbar-user {
  position: relative;
}

.profile-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 40;
  display: grid;
  min-width: 220px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(15, 35, 28, 0.18);
}

.profile-menu[hidden] {
  display: none;
}

.profile-menu button {
  min-height: 42px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  padding: 0 14px;
  text-align: left;
}

.profile-menu button:hover {
  background: var(--soft);
}

.profile-menu button:last-child {
  border-bottom: 0;
  color: var(--danger);
}

.profile-info-grid {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.profile-info-grid article {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  padding: 12px;
}

.profile-info-grid strong {
  color: var(--ink);
}

.profile-info-grid span {
  color: var(--muted);
}

.company-settings-modal {
  width: min(620px, 100%);
}

.settings-section {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.settings-section h3 {
  font-size: 15px;
}

.settings-section p {
  margin: 0;
}

.settings-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.settings-chip-list span {
  border: 1px solid rgba(36, 107, 82, 0.2);
  border-radius: 999px;
  background: #e8f3ef;
  color: var(--brand-strong);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 10px;
}

