/*
 * Iseld v28
 * Ryddig kontrollfelt i dashboard-headeren på PC.
 * Mobilreglene starter først under 900 px og påvirkes ikke.
 */

@media (min-width: 901px) {
  #dashboardView .topbar {
    align-items: center !important;
    gap: 22px !important;
    margin-bottom: 18px !important;
  }

  #dashboardView .topbar > div:first-child {
    align-self: center !important;
  }

  #dashboardView .topbar h1 {
    margin: 0 !important;
    line-height: 1.05 !important;
  }

  #dashboardView .topbar #userInfo {
    margin: 8px 0 0 !important;
  }

  #dashboardView .month-controls {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 9px !important;
    width: auto !important;
    max-width: none !important;
    padding: 8px !important;
    border: 1px solid #dce5f2 !important;
    border-radius: 18px !important;
    background: rgba(255, 255, 255, .88) !important;
    box-shadow: 0 12px 34px rgba(15, 23, 42, .075) !important;
    backdrop-filter: blur(12px);
  }

  #dashboardView .month-navigation {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 6px !important;
    padding: 5px !important;
    border: 1px solid #e2e9f3 !important;
    border-radius: 13px !important;
    background: #f5f8fc !important;
  }

  #dashboardView .month-navigation h2 {
    display: none !important;
  }

  #dashboardView .month-navigation .month-nav-btn {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: #e7eefb !important;
    color: #315caa !important;
    box-shadow: none !important;
    font-size: 17px !important;
    transition: transform .16s ease, background .16s ease !important;
  }

  #dashboardView .month-navigation .month-nav-btn:hover {
    transform: translateY(-1px) !important;
    background: #dce8fb !important;
  }

  #dashboardView .month-select,
  #dashboardView .year-select {
    height: 38px !important;
    margin: 0 !important;
    border: 1px solid transparent !important;
    border-radius: 10px !important;
    background-color: #fff !important;
    box-shadow: none !important;
    color: #13213b !important;
    font-size: 13px !important;
    font-weight: 850 !important;
  }

  #dashboardView .month-select {
    width: 132px !important;
    min-width: 132px !important;
  }

  #dashboardView .year-select {
    width: 84px !important;
    min-width: 84px !important;
  }

  #dashboardView .month-select.is-current-real-month,
  #dashboardView .year-select.is-current-real-year {
    border-color: #86d9a9 !important;
    background: linear-gradient(135deg, #f1fcf6, #fff) !important;
    box-shadow: inset 0 0 0 1px rgba(34, 197, 94, .08) !important;
    color: #14532d !important;
  }

  #dashboardView .dashboard-header-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 6px !important;
    padding-left: 9px !important;
    border-left: 1px solid #dce5f2 !important;
  }

  #dashboardView .dashboard-header-actions > button {
    width: auto !important;
    min-width: 0 !important;
    height: 48px !important;
    padding: 0 15px !important;
    border-radius: 11px !important;
    box-shadow: none !important;
    font-size: 12px !important;
    font-weight: 850 !important;
  }

  #dashboardView .dashboard-header-actions > button.secondary {
    border: 1px solid #d7e1ef !important;
    background: #fff !important;
    color: #284263 !important;
  }

  #dashboardView .dashboard-header-actions > button.secondary:hover {
    border-color: #aac2e7 !important;
    background: #f3f7fd !important;
  }

  #dashboardView .dashboard-header-actions > button.danger {
    border: 1px solid #ffd6d6 !important;
    background: #fff3f3 !important;
    color: #c83232 !important;
  }

  #dashboardView .dashboard-header-actions > button.danger:hover {
    background: #ffe7e7 !important;
  }

  #dashboardView .dashboard-header-actions .iseld-notification-center.inline {
    display: inline-flex !important;
    flex: 0 0 48px !important;
    width: 48px !important;
    height: 48px !important;
  }

  #dashboardView .dashboard-header-actions .iseld-notification-bell {
    width: 48px !important;
    height: 48px !important;
    border: 1px solid #cbdcf7 !important;
    border-radius: 11px !important;
    background: #edf4ff !important;
    color: #315caa !important;
    box-shadow: none !important;
  }
}

@media (min-width: 901px) and (max-width: 1220px) {
  #dashboardView .topbar {
    align-items: flex-start !important;
  }

  #dashboardView .month-controls {
    flex-wrap: wrap !important;
    max-width: 520px !important;
  }

  #dashboardView .dashboard-header-actions {
    border-left: 0 !important;
    padding-left: 0 !important;
  }
}
