/* ============================================================
   MPMS Wireframe Shell — Shared Sidebar and Topbar CSS
   Canonical source of truth for all shell chrome styles.
   Do NOT duplicate these rules in individual page stylesheets.
   ============================================================ */

/* === BODY LAYOUT === */
body {
  display: flex;
  min-height: 100vh;
}

/* === SKIP LINK === */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: #333;
  color: #fff;
  padding: 8px 16px;
  z-index: 1000;
  font-size: 14px;
  text-decoration: none;
}
.skip-link:focus {
  top: 0;
}

/* === SIDEBAR === */
.sidebar {
  width: 240px;
  min-height: 100vh;
  border-right: 1px solid #cccccc;
  background: #f5f5f5;
  flex-shrink: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: width 0.2s ease;
  overflow: hidden;
}
.sidebar.collapsed {
  width: 56px;
}

/* === SIDEBAR HEADER === */
.sidebar-header {
  padding: 16px;
  border-bottom: 1px solid #cccccc;
  font-weight: 600;
}
.sidebar-logo {
  display: inline-block;
  margin-right: 8px;
  font-size: 18px;
}
.sidebar-municipality-name {
  font-weight: 600;
  font-size: 13px;
}
.sidebar.collapsed .sidebar-municipality-name {
  display: none;
}

/* === SIDEBAR NAV LIST === */
.sidebar-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
}
.sidebar-nav-list li {
  margin: 0;
  padding: 0;
}
.sidebar-nav-list a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  color: #333;
  text-decoration: none;
  border-bottom: 1px solid #e5e5e5;
  font-size: 14px;
}
.sidebar-nav-list a:hover {
  background: #e5e5e5;
}
.sidebar-nav-list a:focus-visible {
  outline: 2px solid #333;
  outline-offset: -2px;
}
.sidebar-nav-list a.active {
  background: #e5e5e5;
  font-weight: 600;
  border-left: 3px solid #333;
}
.sidebar.collapsed .sidebar-nav-list a {
  padding: 12px;
  justify-content: center;
}
.sidebar.collapsed .nav-label {
  display: none;
}

/* === SIDEBAR TOGGLE BUTTON === */
.sidebar-toggle-btn {
  display: block;
  width: 100%;
  padding: 10px 16px;
  background: none;
  border: none;
  border-top: 1px solid #ccc;
  cursor: pointer;
  text-align: left;
  font-size: 13px;
}
.sidebar-toggle-btn:hover {
  background: #f0f0f0;
}
.sidebar-toggle-btn:focus-visible {
  outline: 2px solid #333;
  outline-offset: -2px;
}
.sidebar.collapsed .sidebar-toggle-btn {
  text-align: center;
  padding: 10px;
}

/* === MAIN CONTENT === */
.main-content {
  flex: 1;
  overflow: auto;
}

/* === TOP HEADER === */
.top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  border-bottom: 1px solid #ccc;
  background: #fff;
}
.top-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.top-header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* === FY BADGE === */
.fy-badge {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #f5f5f5;
}

/* === NOTIFICATION BELL === */
.notification-bell-wrapper {
  position: relative;
}
.notification-bell {
  background: none;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 13px;
}
.notification-bell:hover {
  background: #f0f0f0;
}
.notification-bell:focus-visible {
  outline: 2px solid #333;
}

/* === NOTIFICATION PANEL === */
.notification-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  width: 320px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 200;
}
.notification-panel[hidden] {
  display: none;
}
.notification-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #e5e5e5;
  font-weight: 600;
}
.notification-item {
  padding: 10px 16px;
  border-bottom: 1px solid #e5e5e5;
  font-size: 13px;
}
.notification-timestamp {
  display: block;
  font-size: 11px;
  color: #666;
  margin-bottom: 2px;
}
.notification-panel-footer {
  padding: 10px 16px;
  text-align: center;
}

/* === USER INFO / USER MENU === */
.user-info {
  position: relative;
}
.user-menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  padding: 4px 8px;
  border-radius: 4px;
}
.user-menu-btn:hover {
  background: #f0f0f0;
}
.user-menu-btn:focus-visible {
  outline: 2px solid #333;
  outline-offset: 2px;
}
.user-name {
  font-weight: 600;
  font-size: 13px;
}
.user-role {
  font-size: 11px;
  color: #666;
}
.user-menu-dropdown {
  position: absolute;
  right: 0;
  top: 100%;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  min-width: 180px;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.user-menu-dropdown[hidden] {
  display: none;
}
.user-menu-item {
  display: block;
  width: 100%;
  padding: 10px 16px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 14px;
}
.user-menu-item:hover {
  background: #f5f5f5;
}
.user-menu-item--danger {
  color: #cc0000;
}
