:root {
  --pri: #891811;
  --pri-l: #6E120D;
  --ink-900: #2C2420;
  --ink-600: #57534E;
  --ink-400: #A8A29E;
  --ink-200: #E7E5E4;
  --ink-100: #F5F4F2;
  --card: #fff;
  --fg: var(--ink-900);
  --mut: var(--ink-600);
  --mut-l: var(--ink-400);
  --brd: var(--ink-200);
  --r-md: 12px;
  --sh-2: 0 8px 25px -5px rgba(44,36,32,.08), 0 4px 10px -6px rgba(44,36,32,.04);
}

body.recopad-sidebar #page-topbar {
  height: 56px;
  background: var(--card);
  border-bottom: 1px solid var(--brd);
  box-shadow: none;
}

body.recopad-sidebar #page-topbar .navbar-header {
  height: 56px;
  padding: 0 24px;
  margin: 0;
  width: 100%;
  max-width: none;
}

body.recopad-sidebar .main-content {
  padding-top: 56px;
}

.tb {
  width: 100%;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.tb-l {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.tb-r {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.tb-burger {
  display: none;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: var(--ink-100);
  color: var(--mut);
  font-size: 14px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.tb-burger:hover {
  background: var(--ink-200);
  color: var(--fg);
}

.ib {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--ink-100);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: background 0.2s;
  border: none;
  color: var(--mut);
  font-size: 15px;
  padding: 0;
}

.ib:hover {
  background: var(--ink-200);
  color: var(--fg);
}

.nb {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  background: #ef4444;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid #fff;
  line-height: 1;
}

.td {
  width: 1px;
  height: 22px;
  background: var(--brd);
}

.tb-profile {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: default;
  text-decoration: none;
  color: inherit;
  border: none;
  background: none;
  padding: 0;
  font-family: inherit;
  pointer-events: none;
}

.ta {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pri), var(--pri-l));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
  overflow: hidden;
}

.ta img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tb-chev {
  font-size: 11px;
  color: var(--ink-400);
}

.tb-profile-menu {
  min-width: 180px;
  border: 1px solid var(--brd);
  border-radius: 10px;
  box-shadow: var(--sh-2);
  padding: 6px;
  margin-top: 8px !important;
}

.tb-profile-menu .dropdown-item {
  border-radius: 8px;
  font-size: 13px;
  padding: 8px 12px;
}

.tb-profile-head {
  padding: 8px 12px 10px;
  border-bottom: 1px solid var(--brd);
  margin-bottom: 4px;
}

.tb-profile-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--fg);
  line-height: 1.3;
}

.tb-profile-sub {
  font-size: 11px;
  color: var(--mut-l);
  margin-top: 2px;
}

/* Notifications dropdown */
.tb-notif {
  position: relative;
  display: flex;
}

.notif-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 340px;
  max-width: calc(100vw - 32px);
  background: #fff;
  border: 1px solid var(--brd);
  border-radius: var(--r-md);
  box-shadow: var(--sh-2);
  z-index: 1060;
  overflow: hidden;
}

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

.np-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 15px;
  border-bottom: 1px solid var(--brd);
}

.np-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--fg);
  display: flex;
  align-items: center;
  gap: 7px;
}

.np-count {
  font-size: 9.5px;
  font-weight: 700;
  color: var(--pri);
  background: rgba(137, 24, 17, 0.09);
  padding: 2px 7px;
  border-radius: 999px;
}

.np-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.np-mark,
.np-delete {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.np-mark {
  color: var(--pri);
}

.np-delete {
  color: #b91c1c;
}

.np-mark:hover,
.np-delete:hover {
  text-decoration: underline;
}

.np-delete[hidden] {
  display: none;
}

.np-list {
  max-height: 320px;
  overflow-y: auto;
}

.np-item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 12px 15px;
  border-bottom: 1px solid #f3f4f6;
  cursor: pointer;
  transition: background 0.12s;
  position: relative;
  text-decoration: none;
  color: inherit;
}

.np-item:last-child {
  border-bottom: none;
}

.np-item:hover {
  background: #fafafb;
  text-decoration: none;
  color: inherit;
}

.np-item.unread {
  background: #fcf5f5;
}

.np-empty {
  padding: 28px 18px;
  text-align: center;
  color: #9ca3af;
  font-size: 13px;
  line-height: 1.45;
}

.np-ico {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
  background: rgba(137, 24, 17, 0.08);
  color: var(--pri);
}

.np-ico.gn { background: #dcfce7; color: #16a34a; }
.np-ico.bl { background: rgba(59, 130, 246, 0.12); color: #2563eb; }
.np-ico.or { background: rgba(245, 158, 11, 0.14); color: #b45309; }

.np-body { flex: 1; min-width: 0; }
.np-t { font-size: 12px; font-weight: 700; color: var(--fg); margin-bottom: 2px; }
.np-d { font-size: 11px; color: var(--mut); line-height: 1.4; margin-bottom: 3px; }
.np-time { font-size: 10px; color: var(--mut-l); }
.np-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--pri); flex-shrink: 0; margin-top: 6px;
}

.np-foot {
  padding: 11px 15px;
  border-top: 1px solid var(--brd);
  text-align: center;
}

.np-all {
  font-size: 12px;
  font-weight: 700;
  color: var(--pri);
  text-decoration: none;
}

.np-all:hover {
  text-decoration: underline;
}

@media (max-width: 991.98px) {
  .tb-burger {
    display: inline-flex;
  }

  body.recopad-sidebar #page-topbar .navbar-header {
    padding: 0 16px;
  }
}

@media (max-width: 600px) {
  .notif-panel {
    position: fixed;
    top: 62px;
    left: 10px;
    right: 10px;
    width: auto;
    max-width: none;
  }
}
