/* The cabinet frame of the redesign «Г» (owner, 23.10.2026): the navigation
   moves from the top bar to a side menu on the left, in the top bar's dark
   colour, with the cabinet name at its top and the user and «Вийти» at its
   bottom. On a phone the menu sits above the content. The look stays v119:
   Arial, the #2563eb chrome blue for the current item, bold buttons. */
.cabinet-frame {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
  /* The menu column stays dark below the sticky menu on a long page. */
  background: linear-gradient(to right, #111827 248px, transparent 248px);
}
.side-nav {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 20px 14px;
  background: #111827;
  color: #ffffff;
}
.side-brand { display: grid; gap: 2px; padding: 0 8px; }
.side-eyebrow { margin: 0; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #d1d5db; }
.side-title { margin: 0; font-size: 20px; font-weight: 700; }
.side-subtitle { margin: 0; font-size: 12px; color: #d1d5db; }
.side-menu { display: grid; gap: 6px; }
.side-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 11px 12px;
  border: 0;
  border-radius: 8px;
  background: #1f2937;
  color: #f3f4f6;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.side-menu button:not([aria-current="page"]):hover:not(:disabled) { background: #374151; filter: none; }
/* «Нова форма» while its draft is being created. */
.side-menu button:disabled { opacity: .55; cursor: not-allowed; }
.side-menu button[aria-current="page"] { background: #2563eb; color: #ffffff; }
.side-menu-label { flex: 1; }
.side-icon { flex: none; }
.side-menu .nav-count {
  flex: none;
  min-width: 20px;
  padding: 1px 7px;
  margin-left: 0;
  border-radius: 999px;
  background: #2563eb;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}
.side-menu button[aria-current="page"] .nav-count { background: #ffffff; color: #1d4ed8; }
.side-count { color: #d1d5db; font-size: 13px; font-weight: 400; }
.side-menu button[aria-current="page"] .side-count { color: #ffffff; }
.side-nav :focus-visible { outline: 2px solid #1a73e8; outline-offset: 2px; }
.side-user {
  display: grid;
  gap: 10px;
  margin-top: auto;
  padding: 14px 8px 0;
  border-top: 1px solid #374151;
}
.side-user-name { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.side-user-email { margin: 0; font-size: 12px; color: #d1d5db; overflow-wrap: anywhere; }
.side-logout {
  justify-self: start;
  min-height: 40px;
  padding: 10px 14px;
  border: 0;
  border-radius: 8px;
  background: #ffffff;
  color: #111827;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.side-logout:hover { background: #e5e7eb; filter: none; }

.page-column { min-width: 0; display: flex; flex-direction: column; }
.page-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}
.page-header-text { display: grid; gap: 4px; min-width: 0; }
.page-title { margin: 0; font-size: 24px; font-weight: 700; color: #111827; }
.page-title:focus { outline: none; }
.page-title:focus-visible { outline: 2px solid #1a73e8; outline-offset: 2px; }

@media (max-width: 900px) {
  .cabinet-frame { grid-template-columns: minmax(0, 1fr); min-height: 0; background: none; }
  .side-nav { position: static; height: auto; gap: 14px; padding: 14px 16px; }
  .side-brand { padding: 0; }
  .side-menu { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .side-user {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    margin-top: 0;
    padding: 12px 0 0;
  }
  .side-logout { justify-self: end; }
  .page-header { position: static; padding: 14px 16px; }
}
