/* Requests (permission / overtime / letters) + notifications bell */
.rq-kind { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 8px; flex-shrink: 0; }
.rq-kind.lg { width: 44px; height: 44px; border-radius: 12px; }

.rq-seg { display: flex; gap: 6px; padding: 4px; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; }
.rq-seg-btn { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px; min-height: 44px; border: 0; border-radius: 9px; background: transparent;
  font: inherit; font-size: 13.5px; color: var(--muted); cursor: pointer; }
.rq-seg.small .rq-seg-btn { flex-direction: row; justify-content: center; padding: 8px 6px; min-height: 40px; }
.rq-seg-btn.active { background: var(--surface); color: var(--brand-text); font-weight: 600; box-shadow: var(--shadow); }
.rq-times .input { text-align: center; }

.rq-new-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.pt-section .rq-new-grid { margin-bottom: 0; gap: 8px; }
.rq-new { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--border); font: inherit; color: inherit; cursor: pointer; text-align: start; min-height: 64px; }
.rq-new:hover { border-color: var(--brand-200); background: var(--brand-50); }
.pt-section .rq-new { flex-direction: column; text-align: center; gap: 6px; padding: 12px 6px; box-shadow: none; font-size: 13px; }

.rq-cards { display: none; flex-direction: column; gap: 10px; padding: 12px; }
.rq-letter-frame { width: 100%; height: 70vh; height: 70dvh; border: 1px solid var(--border); border-radius: 10px; background: #fff; }

@media (max-width: 640px) {
  .rq-new-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .rq-new { flex-direction: column; text-align: center; gap: 6px; padding: 12px 6px; font-size: 12.5px; }
  .rq-new .rq-kind.lg { width: 38px; height: 38px; }
  .hide-xs-table { display: none; }
  .rq-cards { display: flex; }
  .rq-letter-frame { height: 62vh; height: 62dvh; }
}

/* Notifications bell */
.nt-btn { position: relative; }
.nt-dot { position: absolute; top: 2px; inset-inline-end: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--danger); color: #fff;
  font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; border: 2px solid var(--surface); }
.nt-menu { width: 360px; max-width: calc(100vw - 20px); padding: 0; overflow: hidden; }
.nt-head { padding: 10px 14px; border-bottom: 1px solid var(--border); min-height: 46px; }
.nt-list { max-height: 60vh; max-height: 60dvh; overflow-y: auto; }
.nt-item { display: flex; gap: 10px; width: 100%; text-align: start; padding: 12px 14px; border: 0; border-bottom: 1px solid var(--border); background: var(--surface); font: inherit; color: inherit; cursor: pointer; }
.nt-item:last-child { border-bottom: 0; }
.nt-item:hover { background: var(--bg); }
.nt-item.unread { background: var(--brand-50); }
.nt-item.unread .nt-t::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); margin-inline-end: 6px; vertical-align: middle; }
.nt-ic { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: var(--info-bg); color: var(--brand-text); }
.nt-ic.request_approved { background: var(--success-bg); color: var(--success); }
.nt-ic.request_rejected { background: var(--danger-bg); color: var(--danger); }
.nt-ic.approval_needed { background: var(--warning-bg); color: var(--warning); }
.nt-t { display: block; font-weight: 600; font-size: 13.5px; line-height: 1.5; }
.nt-b { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.5; margin-top: 2px; overflow-wrap: anywhere; }
.nt-time { display: block; color: var(--muted); font-size: 11.5px; margin-top: 4px; }
@media (max-width: 900px) { .nt-menu { width: auto; } }