/* ==========================================================================
   Sevenex HMR — Shared Design System
   Red / White theme, derived from client reference mockup
   ========================================================================== */

:root {
  --hp-red: #E8344D;
  --hp-red-dark: #C81E36;
  --hp-red-light: #FDEAEC;
  --hp-red-soft: #FCC6CD;
  --hp-ink: #1C2331;
  --hp-ink-soft: #5B6472;
  --hp-muted: #8A93A1;
  --hp-line: #ECEEF2;
  --hp-bg: #F5F6FA;
  --hp-card: #FFFFFF;
  --hp-success: #2BB673;
  --hp-warning: #F0A93B;
  --hp-grey-bar: #E3E6EC;
  --hp-sidebar-w: 248px;
  --hp-radius-lg: 18px;
  --hp-radius-md: 14px;
  --hp-radius-sm: 10px;
  --hp-shadow: 0 6px 24px rgba(28, 35, 49, 0.06);
  --hp-shadow-md: 0 10px 30px rgba(28, 35, 49, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  width: 100%;
}

body {
  margin: 0;
  background: var(--hp-bg);
  font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--hp-ink);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* ---------- Layout shell ---------- */
.hp-shell {
  display: flex;
  min-height: 100vh;
}

.hp-main {
  flex: 1;
  margin-left: var(--hp-sidebar-w);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-width: 0;
}

.hp-content {
  padding: 24px 28px 60px;
  flex: 1;
}

@media (max-width: 1100px) {
  .hp-main {
    margin-left: 0;
  }

  .hp-sidebar {
    transform: translateX(-100%);
  }

  .hp-sidebar.is-open {
    transform: translateX(0);
  }
}

/* ---------- Sidebar ---------- */
.hp-sidebar {
  width: var(--hp-sidebar-w);
  background: #fff;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  border-right: 1px solid var(--hp-line);
  display: flex;
  flex-direction: column;
  z-index: 40;
  transition: transform .25s ease;
}

.hp-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 24px 22px 18px;
}

.hp-brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--hp-red);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  flex-shrink: 0;
}

.hp-brand-text {
  font-weight: 800;
  font-size: 17px;
  letter-spacing: .2px;
}

.hp-brand-text span {
  color: var(--hp-red);
}

.hp-brand-sub {
  font-size: 10px;
  color: var(--hp-muted);
  font-weight: 700;
  letter-spacing: .5px;
  margin-top: -2px;
}

.hp-nav {
  padding: 8px 14px;
  overflow-y: auto;
  flex: 1;
}

.hp-nav-section-label {
  font-size: 11px;
  color: var(--hp-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  padding: 14px 12px 6px;
}

.hp-nav li {
  margin-bottom: 3px;
}

.hp-nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 13px;
  border-radius: 10px;
  color: var(--hp-ink-soft);
  font-weight: 500;
  font-size: 13.5px;
  transition: background .15s, color .15s;
}

.hp-nav a:hover {
  background: var(--hp-red-light);
  color: var(--hp-red-dark);
}

.hp-nav a.is-active {
  background: var(--hp-red);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(232, 52, 77, 0.28);
}

.hp-nav a .hp-ico {
  width: 18px;
  text-align: center;
  font-size: 15px;
  flex-shrink: 0;
}

.hp-sidebar-foot {
  margin: 14px;
  padding: 18px 16px;
  border-radius: var(--hp-radius-md);
  background: var(--hp-red-light);
  text-align: center;
}

.hp-sidebar-foot .hp-help-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid var(--hp-red-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  color: var(--hp-red);
  font-size: 18px;
}

.hp-sidebar-foot h6 {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 700;
}

.hp-sidebar-foot p {
  margin: 0 0 12px;
  font-size: 11.5px;
  color: var(--hp-ink-soft);
  line-height: 1.4;
}

.hp-btn-outline-sm {
  display: inline-block;
  border: 1.5px solid var(--hp-red);
  color: var(--hp-red);
  font-size: 12px;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: 30px;
  background: #fff;
}

.hp-btn-outline-sm:hover {
  background: var(--hp-red);
  color: #fff;
}

/* ---------- Topbar ---------- */
.hp-topbar {
  background: #fff;
  border-bottom: 1px solid var(--hp-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  position: sticky;
  top: 0;
  z-index: 30;
}

.hp-topbar-title h1 {
  font-size: 19px;
  font-weight: 700;
  margin: 0;
}

.hp-topbar-title p {
  margin: 1px 0 0;
  font-size: 12.5px;
  color: var(--hp-muted);
}

.hp-topbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hp-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--hp-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hp-ink-soft);
  font-size: 15px;
  position: relative;
  border: none;
}

.hp-icon-btn:hover {
  background: var(--hp-red-light);
  color: var(--hp-red);
}

.hp-icon-btn .hp-dot {
  position: absolute;
  top: 7px;
  right: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--hp-red);
  border: 1.5px solid #fff;
}

.hp-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 14px;
  border-left: 1px solid var(--hp-line);
}

.hp-profile img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--hp-red-light);
}

.hp-profile-name {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.2;
}

.hp-profile-role {
  font-size: 11.5px;
  color: var(--hp-muted);
}

.hp-toggle-btn {
  display: none;
  border: none;
  background: none;
  font-size: 22px;
  color: var(--hp-ink);
}

@media (max-width:1100px) {
  .hp-toggle-btn {
    display: block;
  }
}

/* ---------- Buttons ---------- */
.hp-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  border: none;
  transition: transform .12s, box-shadow .12s, background .15s;
}

.hp-btn-primary {
  background: var(--hp-red);
  color: #fff;
  box-shadow: 0 6px 16px rgba(232, 52, 77, 0.25);
}

.hp-btn-primary:hover {
  background: var(--hp-red-dark);
}

.hp-btn-outline {
  background: #fff;
  border: 1.5px solid var(--hp-line);
  color: var(--hp-ink-soft);
}

.hp-btn-outline:hover {
  border-color: var(--hp-red);
  color: var(--hp-red);
}

.hp-btn-ghost-danger {
  background: var(--hp-red-light);
  color: var(--hp-red-dark);
}

.hp-btn-sm {
  padding: 6px 13px;
  font-size: 12.5px;
  border-radius: 8px;
}

/* ---------- Cards ---------- */
.hp-card {
  background: var(--hp-card);
  border-radius: var(--hp-radius-lg);
  box-shadow: var(--hp-shadow);
  padding: 24px;
}

.hp-card-flat {
  background: var(--hp-card);
  border-radius: var(--hp-radius-lg);
  border: 1px solid var(--hp-line);
  padding: 22px;
}

.hp-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.hp-card-head h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
}

.hp-link-red {
  color: var(--hp-red);
  font-size: 13px;
  font-weight: 600;
}

/* ---------- Stat cards ---------- */
.hp-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 22px;
}

@media (max-width:1200px) {
  .hp-stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width:600px) {
  .hp-stat-grid {
    grid-template-columns: 1fr;
  }
}

.hp-stat-card {
  background: #fff;
  border-radius: var(--hp-radius-lg);
  box-shadow: var(--hp-shadow);
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.hp-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  background: var(--hp-red-light);
  color: var(--hp-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.hp-stat-label {
  font-size: 13px;
  color: var(--hp-ink-soft);
  font-weight: 500;
  margin: 0 0 4px;
}

.hp-stat-value {
  font-size: 26px;
  font-weight: 800;
  margin: 0 0 4px;
  line-height: 1;
}

.hp-stat-delta {
  font-size: 12px;
  font-weight: 700;
  color: var(--hp-red);
}

.hp-stat-delta.down {
  color: var(--hp-success);
}

/* ---------- Tables ---------- */
.hp-table-wrap {
  overflow-x: auto;
}

table.hp-table {
  width: 100%;
  border-collapse: collapse;
}

table.hp-table th {
  text-align: left;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: var(--hp-muted);
  font-weight: 700;
  padding: 12px 14px;
  border-bottom: 1px solid var(--hp-line);
  white-space: nowrap;
}

table.hp-table td {
  padding: 14px;
  font-size: 13.5px;
  border-bottom: 1px solid var(--hp-line);
  vertical-align: middle;
}

table.hp-table tr:last-child td {
  border-bottom: none;
}

table.hp-table tr:hover td {
  background: #FBFBFD;
}

.hp-row-person {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hp-row-person img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
}

.hp-row-person .nm {
  font-weight: 600;
  font-size: 13.5px;
}

.hp-row-person .sub {
  font-size: 11.5px;
  color: var(--hp-muted);
}

/* ---------- Badges / pills ---------- */
.hp-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 20px;
}

.hp-pill-green {
  background: #E6F7EE;
  color: var(--hp-success);
}

.hp-pill-red {
  background: var(--hp-red-light);
  color: var(--hp-red-dark);
}

.hp-pill-amber {
  background: #FFF3E0;
  color: #C77B1B;
}

.hp-pill-grey {
  background: var(--hp-bg);
  color: var(--hp-ink-soft);
}

.hp-pill-blue {
  background: #E8F0FE;
  color: #3366CC;
}

/* ---------- Forms ---------- */
.hp-field {
  margin-bottom: 16px;
}

.hp-field label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--hp-ink-soft);
  margin-bottom: 6px;
}

.hp-input,
.hp-select,
textarea.hp-input {
  width: 100%;
  padding: 10px 13px;
  border: 1.5px solid var(--hp-line);
  border-radius: 10px;
  font-size: 13.5px;
  font-family: inherit;
  background: #fff;
  color: var(--hp-ink);
}

.hp-input:focus,
.hp-select:focus {
  outline: none;
  border-color: var(--hp-red);
  box-shadow: 0 0 0 3px var(--hp-red-light);
}

.hp-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width:600px) {
  .hp-row-2 {
    grid-template-columns: 1fr;
  }
}

/* ---------- Filter bar ---------- */
.hp-filterbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.hp-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1.5px solid var(--hp-line);
  border-radius: 10px;
  padding: 9px 14px;
  flex: 1;
  min-width: 200px;
  color: var(--hp-muted);
}

.hp-search input {
  border: none;
  outline: none;
  font-size: 13.5px;
  width: 100%;
  font-family: inherit;
}

/* ---------- Avatar grid (employee cards) ---------- */
.hp-emp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}

.hp-emp-card {
  background: #fff;
  border-radius: var(--hp-radius-lg);
  box-shadow: var(--hp-shadow);
  padding: 20px;
  text-align: center;
}

.hp-emp-card img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 10px;
  border: 3px solid var(--hp-red-light);
}

.hp-emp-card h4 {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 2px;
}

.hp-emp-card .role {
  font-size: 12px;
  color: var(--hp-muted);
  margin-bottom: 10px;
}

.hp-emp-card .meta {
  font-size: 11.5px;
  color: var(--hp-ink-soft);
  border-top: 1px solid var(--hp-line);
  padding-top: 10px;
  margin-top: 4px;
}

/* ---------- Progress bars (department overview) ---------- */
.hp-progress-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
}

.hp-progress-row .lbl {
  width: 84px;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
}

.hp-progress-track {
  flex: 1;
  height: 7px;
  border-radius: 6px;
  background: var(--hp-grey-bar);
  overflow: hidden;
}

.hp-progress-fill {
  height: 100%;
  background: var(--hp-red);
  border-radius: 6px;
}

.hp-progress-row .val {
  width: 30px;
  text-align: right;
  font-size: 13px;
  font-weight: 700;
}

/* ---------- Donut legend ---------- */
.hp-legend-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 0;
  font-size: 13px;
}

.hp-legend-row .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
}

.hp-legend-row .lbl {
  display: flex;
  align-items: center;
  color: var(--hp-ink-soft);
}

.hp-legend-row .val {
  font-weight: 700;
}

/* ---------- Activity list ---------- */
.hp-activity-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--hp-line);
}

.hp-activity-item:last-child {
  border-bottom: none;
}

.hp-activity-item img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}

.hp-activity-item .nm {
  font-size: 13.5px;
  font-weight: 600;
}

.hp-activity-item .time {
  font-size: 11.5px;
  color: var(--hp-muted);
}

/* ---------- Misc ---------- */
.hp-grid-2 {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}

@media (max-width:1100px) {
  .hp-grid-2 {
    grid-template-columns: 1fr;
  }
}

.hp-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width:1100px) {
  .hp-grid-3 {
    grid-template-columns: 1fr;
  }
}

.hp-empty {
  text-align: center;
  padding: 50px 20px;
  color: var(--hp-muted);
}

.hp-empty .ico {
  font-size: 34px;
  color: var(--hp-red-soft);
  margin-bottom: 10px;
}

.hp-breadcrumb {
  font-size: 12.5px;
  color: var(--hp-muted);
  margin-bottom: 4px;
}

.hp-breadcrumb a {
  color: var(--hp-muted);
}

.hp-breadcrumb .sep {
  margin: 0 4px;
}

.hp-breadcrumb .cur {
  color: var(--hp-red);
  font-weight: 600;
}

.hp-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28, 35, 49, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.hp-modal-overlay.is-open {
  display: flex;
}

.hp-modal {
  background: #fff;
  border-radius: var(--hp-radius-lg);
  padding: 26px;
  width: 480px;
  max-width: 92vw;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
}

.hp-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.hp-modal-head h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}

.hp-modal-close {
  border: none;
  background: var(--hp-bg);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 15px;
  color: var(--hp-ink-soft);
}

.hp-tabs {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--hp-line);
  margin-bottom: 20px;
}

.hp-tabs a {
  padding: 11px 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--hp-muted);
  border-bottom: 2px solid transparent;
}

.hp-tabs a.is-active {
  color: var(--hp-red);
  border-bottom-color: var(--hp-red);
}

.hp-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 18px;
}

.hp-pager button {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--hp-line);
  background: #fff;
  font-size: 13px;
}

.hp-pager button.is-active {
  background: var(--hp-red);
  color: #fff;
  border-color: var(--hp-red);
}

/* ==========================================================================
   Mobile responsiveness (added)
   ========================================================================== */

/* Generic auto-wrapping grid helper */
.hp-autorow {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

/* Sidebar backdrop for mobile off-canvas */
.hp-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(28, 35, 49, 0.42);
  z-index: 35;
}

.hp-backdrop.is-open {
  display: block;
}

@media (min-width:1101px) {
  .hp-backdrop {
    display: none !important;
  }
}

/* Collapse any inline fixed multi-column grid to a single column on phones */
@media (max-width:760px) {

  .hp-content [style*="grid-template-columns:repeat("],
  .hp-content [style*="grid-template-columns: repeat("],
  .hp-content [style*="grid-template-columns:1fr 1fr"],
  .hp-content [style*="grid-template-columns: 1fr 1fr"],
  .hp-content [style*="grid-template-columns:2fr"],
  .hp-content [style*="grid-template-columns: 2fr"] {
    grid-template-columns: 1fr !important;
  }
}

/* Tablet: shrink the densest grids */
@media (max-width:1000px) and (min-width:761px) {

  .hp-content [style*="grid-template-columns:repeat(5"],
  .hp-content [style*="grid-template-columns: repeat(5"] {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

/* Phone layout tweaks */
@media (max-width:600px) {
  .hp-content {
    padding: 16px 14px 48px;
  }

  .hp-topbar {
    padding: 11px 14px;
  }

  .hp-topbar-title h1 {
    font-size: 16px;
  }

  .hp-topbar-title p {
    display: none;
  }

  .hp-topbar-actions {
    gap: 8px;
  }

  .hp-profile-name,
  .hp-profile-role {
    display: none;
  }

  .hp-profile {
    padding-left: 8px;
    border-left: none;
  }

  .hp-profile img {
    width: 34px;
    height: 34px;
  }

  .hp-icon-btn {
    width: 34px;
    height: 34px;
    font-size: 14px;
  }

  .hp-card {
    padding: 18px 16px;
  }

  .hp-card-flat {
    padding: 16px 14px;
  }

  .hp-modal {
    padding: 20px 18px;
  }

  .hp-stat-value {
    font-size: 22px;
  }

  .hp-stat-card {
    padding: 16px;
  }

  .hp-filterbar .hp-btn,
  .hp-filterbar form>.hp-btn {
    flex: 1;
    justify-content: center;
  }

  .hp-search {
    min-width: 0;
  }
}

/* Make canvases never overflow their card on small screens */
.hp-card canvas {
  max-width: 100%;
}

/* Two-column profile layout (fixed avatar card + flexible info card).
   Uses its own class instead of an inline style override so it collapses
   on tablets/phones the same way .hp-grid-2 already does. */
.hp-grid-profile {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 20px;
  align-items: start;
}

@media (max-width:1100px) {
  .hp-grid-profile {
    grid-template-columns: 1fr;
  }
}

/* Calendar week grid: always 7 columns (a calendar with fewer columns isn't
   a calendar) — cells just narrow on small screens instead of collapsing.
   Kept as a dedicated class so the generic mobile grid-collapse rule below
   (which targets "repeat(" in inline styles) does not catch it. */
.hp-cal-grid-7 {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

@media (max-width:480px) {
  .hp-cal-grid-7 {
    gap: 4px;
  }
}

/* Chat / inbox two-column layout */
.hp-chat-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 20px;
  align-items: start;
}

@media (max-width:900px) {
  .hp-chat-grid {
    grid-template-columns: 1fr;
  }
}

.hp-chatbox {
  height: 460px;
  overflow-y: auto;
  background: var(--hp-bg);
  border: 1px solid var(--hp-line);
  border-radius: var(--hp-radius-md);
  padding: 14px;
}

@media (max-width:600px) {
  .hp-chatbox {
    height: 340px;
  }
}

.hp-msg-in {
  background: #fff;
  border: 1px solid var(--hp-line);
  border-radius: 12px 12px 12px 2px;
  padding: 9px 12px;
  margin: 6px 0;
  max-width: 80%;
  font-size: 13.5px;
}

.hp-msg-out {
  background: var(--hp-red-light);
  color: var(--hp-ink);
  border-radius: 12px 12px 2px 12px;
  padding: 9px 12px;
  margin: 6px 0 6px auto;
  max-width: 80%;
  font-size: 13.5px;
}

.hp-emp-list {
  max-height: 520px;
  overflow-y: auto;
}

.hp-emp-list .employee {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 13px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--hp-ink-soft);
}

.hp-emp-list .employee:hover {
  background: var(--hp-red-light);
  color: var(--hp-red-dark);
}

.hp-emp-list .employee.active-chat {
  background: var(--hp-red);
  color: #fff;
}

/* ---------- Chat attachments ---------- */
.hp-chat-file {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 7px;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid var(--hp-line);
  border-radius: 9px;
  text-decoration: none;
  color: inherit;
  font-size: 12.5px;
  max-width: 280px;
  transition: background .15s ease;
}

.hp-chat-file:hover {
  background: rgba(0, 0, 0, 0.09);
  color: inherit;
}

.hp-chat-file>.fa-solid:first-child {
  font-size: 17px;
  color: var(--hp-red);
  flex-shrink: 0;
}

.hp-chat-file-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.hp-chat-file-name {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hp-chat-file-size {
  font-size: 11px;
  color: var(--hp-muted);
}

.hp-attach-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border: 1px solid var(--hp-line);
  border-radius: 10px;
  background: #fff;
  color: var(--hp-ink-soft);
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease;
}

.hp-attach-btn:hover {
  border-color: var(--hp-red);
  color: var(--hp-red);
}

.hp-attach-preview {
  display: none;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 7px 10px;
  background: var(--hp-red-light);
  border-radius: 8px;
  font-size: 12.5px;
}

.hp-attach-preview.is-on {
  display: flex;
}

.hp-attach-preview .name {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hp-attach-remove {
  margin-left: auto;
  border: none;
  background: none;
  color: var(--hp-red);
  cursor: pointer;
  font-size: 14px;
}