﻿/**
 * HRMS - modern app theme
 * Teal / ink palette, desktop-first, mobile drawer sidebar
 */

:root {
  --hrms-primary: #0f766e;
  --hrms-primary-dark: #115e59;
  --hrms-primary-hover: #0d9488;
  --hrms-primary-light: #ccfbf1;
  --hrms-primary-soft: #f0fdfa;
  --hrms-sidebar-bg: #0b1618;
  --hrms-sidebar-text: #d2e0de;
  --hrms-sidebar-text-muted: #7f9b98;
  --hrms-sidebar-hover: #143033;
  --hrms-sidebar-active: #0f766e;
  --hrms-sidebar-border: rgba(255, 255, 255, 0.06);
  --hrms-card-bg: #ffffff;
  --hrms-border: #e2e8e6;
  --hrms-page-bg: #eef3f2;
  --hrms-ink: #0f172a;
  --hrms-muted: #64748b;
  --hrms-success: #059669;
  --hrms-warning: #d97706;
  --hrms-danger: #e11d48;
  --hrms-info: #0284c7;
  --hrms-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(15, 23, 42, 0.04);
  --hrms-shadow-lg: 0 10px 28px rgba(15, 23, 42, 0.08);
  --hrms-radius: 14px;
  --hrms-radius-sm: 10px;
  --hrms-topbar-h: 64px;
  --hrms-sidebar-w: 268px;
  --hrms-font: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body.hrms-app {
  background: var(--hrms-page-bg);
  color: #334155;
  font-family: var(--hrms-font);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

body.hrms-sidebar-open {
  overflow: hidden;
}

a {
  color: var(--hrms-primary);
}

a:hover {
  color: var(--hrms-primary-dark);
}

/* ----- Layout ----- */
.hrms-wrapper {
  display: flex;
  min-height: 100vh;
  padding-top: var(--hrms-topbar-h);
}

/* ----- Top bar ----- */
.hrms-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--hrms-topbar-h);
  background: #ffffff;
  border-bottom: 1px solid var(--hrms-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px 0 16px;
  z-index: 1000;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
}

.hrms-topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.hrms-menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  background: var(--hrms-primary-soft);
  border-radius: 10px;
  cursor: pointer;
  padding: 10px 9px;
  flex-direction: column;
  justify-content: space-between;
}

.hrms-menu-toggle span {
  display: block;
  height: 2px;
  background: var(--hrms-primary-dark);
  border-radius: 2px;
}

.hrms-topbar-brand {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--hrms-ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.02em;
}

.hrms-topbar-brand:hover {
  color: var(--hrms-primary);
  text-decoration: none;
}

.hrms-brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(145deg, #14b8a6 0%, #0f766e 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0;
  box-shadow: 0 4px 10px rgba(15, 118, 110, 0.28);
}

.hrms-brand-logo {
  height: 38px;
  width: auto;
  max-width: 168px;
  display: block;
  object-fit: contain;
}

.hrms-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.hrms-brand-text strong {
  font-size: 15px;
  color: var(--hrms-ink);
}

.hrms-brand-text small {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--hrms-muted);
}

.hrms-topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hrms-topbar-date {
  font-size: 13px;
  color: var(--hrms-muted);
  font-weight: 500;
}

.hrms-topbar-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hrms-user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 10px 4px 4px;
  border-radius: 999px;
  background: var(--hrms-page-bg);
  color: var(--hrms-ink) !important;
  text-decoration: none !important;
  border: 1px solid var(--hrms-border);
}

.hrms-user-chip:hover {
  background: var(--hrms-primary-soft);
  border-color: #99f6e4;
}

.hrms-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--hrms-primary);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hrms-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hrms-user-name {
  font-size: 13px;
  font-weight: 600;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hrms-topbar-user .dropdown-menu {
  margin-top: 10px;
  right: 0 !important;
  left: auto !important;
  min-width: 168px;
  border-radius: 12px;
  box-shadow: var(--hrms-shadow-lg);
  border: 1px solid var(--hrms-border);
  padding: 6px 0;
}

.hrms-topbar-user .dropdown-menu a {
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #334155;
  font-size: 13px;
}

.hrms-topbar-user .dropdown-menu a:hover {
  background: var(--hrms-primary-soft);
  color: var(--hrms-primary-dark);
}

/* ----- Sidebar ----- */
.hrms-sidebar {
  width: var(--hrms-sidebar-w);
  min-width: var(--hrms-sidebar-w);
  height: calc(100vh - var(--hrms-topbar-h));
  max-height: calc(100vh - var(--hrms-topbar-h));
  background: var(--hrms-sidebar-bg);
  color: var(--hrms-sidebar-text);
  flex-shrink: 0;
  overflow-y: auto;
  overflow-x: hidden;
  border-right: 1px solid var(--hrms-sidebar-border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: var(--hrms-topbar-h);
}

.hrms-sidebar::-webkit-scrollbar {
  width: 6px;
}
.hrms-sidebar::-webkit-scrollbar-track {
  background: transparent;
}
.hrms-sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 6px;
}

.hrms-sidebar-overlay {
  display: none;
}

.hrms-sidebar-nav {
  list-style: none;
  margin: 0;
  padding: 14px 12px 28px;
  flex: 1 1 auto;
  min-height: 0;
}

.hrms-sidebar-nav > li {
  margin: 2px 0;
}

.hrms-sidebar-nav > li > a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  color: var(--hrms-sidebar-text);
  text-decoration: none;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
}

.hrms-sidebar-nav > li > a:hover {
  background: var(--hrms-sidebar-hover);
  color: #fff;
  text-decoration: none;
}

.hrms-sidebar-nav > li > a .menu-icon {
  flex: 0 0 22px;
  width: 22px;
  text-align: center;
  font-size: 15px;
  line-height: 1;
  color: #8fb8b4;
}

.hrms-sidebar-nav > li > a > span {
  flex: 1 1 auto;
  min-width: 0;
  padding-left: 12px;
  text-align: left;
}

.hrms-sidebar-nav > li > a .chevron {
  flex: 0 0 16px;
  width: 16px;
  font-size: 11px;
  text-align: center;
  color: var(--hrms-sidebar-text-muted);
  transition: transform 0.2s ease;
}

.hrms-sidebar-nav > li.active > a {
  background: var(--hrms-sidebar-active);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(15, 118, 110, 0.28);
}

.hrms-sidebar-nav > li.active > a .menu-icon,
.hrms-sidebar-nav > li.active > a .chevron {
  color: #fff;
}

.hrms-sidebar-nav > li > a[aria-expanded="true"] .chevron {
  transform: rotate(180deg);
}

.hrms-sidebar-nav .submenu {
  list-style: none;
  margin: 0;
  padding: 4px 0 8px 34px;
  overflow: hidden;
}

.hrms-sidebar-nav .submenu.collapse {
  display: none;
  max-height: 0;
}

.hrms-sidebar-nav .submenu.collapse.in {
  display: block;
  max-height: 520px;
}

.hrms-sidebar-nav .submenu a {
  display: block;
  min-height: 36px;
  padding: 0 12px;
  line-height: 36px;
  color: rgba(210, 224, 222, 0.88);
  text-decoration: none;
  border-radius: 8px;
  font-size: 13px;
}

.hrms-sidebar-nav .submenu a:hover {
  background: var(--hrms-sidebar-hover);
  color: #fff;
  text-decoration: none;
}

.hrms-sidebar-nav .submenu a.active {
  color: #5eead4;
  font-weight: 600;
}

.hrms-sidebar-nav .submenu-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  text-align: left;
}

.hrms-sidebar-divider {
  list-style: none !important;
  height: 1px;
  min-height: 1px;
  padding: 0;
  margin: 12px 10px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.hrms-sidebar-divider a {
  display: none;
}

.hrms-sidebar-label {
  list-style: none !important;
  padding: 8px 12px 6px;
  margin: 0;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--hrms-sidebar-text-muted);
}

.hrms-sidebar-label span {
  display: block;
}

/* ----- Main content ----- */
.hrms-main {
  flex: 1;
  min-width: 0;
  padding: 18px 22px 0;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

.hrms-page-title {
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--hrms-ink);
  margin: 0 0 12px;
  letter-spacing: -0.03em;
}

.hrms-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.hrms-page-sub {
  margin: 0;
  color: var(--hrms-muted);
  font-size: 14px;
}

/* ----- Cards ----- */
.hrms-card {
  background: var(--hrms-card-bg);
  border-radius: var(--hrms-radius);
  box-shadow: var(--hrms-shadow);
  border: 1px solid var(--hrms-border);
  margin-bottom: 14px;
  overflow: hidden;
}

.hrms-card-header {
  padding: 11px 16px;
  border-bottom: 1px solid var(--hrms-border);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--hrms-ink);
  background: #fbfcfc;
}

.hrms-card-body {
  padding: 14px 16px;
}

/* Stat cards */
.hrms-stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}

.hrms-stat-row > a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.hrms-stat-card {
  background: var(--hrms-card-bg);
  border-radius: var(--hrms-radius);
  padding: 18px 18px 16px;
  border: 1px solid var(--hrms-border);
  box-shadow: var(--hrms-shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 96px;
}

a > .hrms-stat-card,
a.hrms-stat-card {
  color: inherit;
}

.hrms-stat-card:hover {
  box-shadow: var(--hrms-shadow-lg);
  border-color: #99f6e4;
  transform: translateY(-2px);
}

.hrms-stat-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  background: var(--hrms-primary-light);
  color: var(--hrms-primary-dark);
}

.hrms-stat-card.primary .hrms-stat-icon {
  background: #ccfbf1;
  color: #0f766e;
}

.hrms-stat-card.success .hrms-stat-icon {
  background: #d1fae5;
  color: #047857;
}

.hrms-stat-card.warning .hrms-stat-icon {
  background: #fef3c7;
  color: #b45309;
}

.hrms-stat-card.danger .hrms-stat-icon {
  background: #ffe4e6;
  color: #be123c;
}

.hrms-stat-card .stat-value {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--hrms-ink);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.hrms-stat-card .stat-label {
  font-size: 12px;
  color: var(--hrms-muted);
  margin-top: 2px;
  font-weight: 600;
}

.hrms-stat-card.primary .stat-value { color: var(--hrms-primary-dark); }
.hrms-stat-card.success .stat-value { color: var(--hrms-success); }
.hrms-stat-card.warning .stat-value { color: var(--hrms-warning); }
.hrms-stat-card.danger .stat-value { color: var(--hrms-danger); }

.hrms-kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.hrms-kpi-item {
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--hrms-primary-soft);
  border: 1px solid #ccfbf1;
}

.hrms-kpi-item span {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--hrms-muted);
  margin-bottom: 4px;
}

.hrms-kpi-item strong {
  font-size: 1.35rem;
  color: var(--hrms-ink);
  letter-spacing: -0.02em;
}

.hrms-dash-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 22px;
  margin-bottom: 8px;
}

.hrms-dash-grid .hrms-card {
  margin-bottom: 0;
}

.hrms-leave-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hrms-leave-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--hrms-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.hrms-leave-list li:last-child {
  border-bottom: none;
}

.hrms-leave-meta {
  color: var(--hrms-muted);
  font-size: 13px;
  margin-left: 6px;
}

/* ----- Tables ----- */
.hrms-table-wrap,
.hrms-app-table-wrap {
  background: var(--hrms-card-bg);
  border-radius: var(--hrms-radius);
  border: 1px solid var(--hrms-border);
  overflow: auto;
  box-shadow: var(--hrms-shadow);
  -webkit-overflow-scrolling: touch;
}

.hrms-card .hrms-table-wrap {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.hrms-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 560px;
}

.hrms-table thead th {
  background: var(--hrms-primary-soft);
  color: #115e59;
  padding: 8px 12px;
  text-align: left;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid #ccfbf1;
  white-space: nowrap;
}

.hrms-table tbody td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--hrms-border);
  color: #334155;
  vertical-align: middle;
}

.hrms-table tbody tr:last-child td {
  border-bottom: none;
}

.hrms-table tbody tr:hover {
  background: #f8fafc;
}

.hrms-table tfoot td,
.hrms-table tr.hrms-table-total td {
  background: #f8fafc;
  font-weight: 700;
}

/* ----- Buttons ----- */
.hrms-export-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  height: 36px;
  background: var(--hrms-success);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}

.hrms-export-btn:hover {
  background: #047857;
  color: #fff;
  text-decoration: none;
}

.hrms-toolbar,
.leave-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.hrms-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px 12px;
  background: #fff;
  border: 1px solid var(--hrms-border);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 12px;
  box-shadow: var(--hrms-shadow);
}

.hrms-filter-bar .hrms-form-field {
  min-width: 110px;
  gap: 4px;
}

.hrms-filter-bar .hrms-form-field label {
  font-size: 11px;
}

.hrms-filter-bar input,
.hrms-filter-bar select {
  height: 36px;
  min-width: 118px;
  border-radius: 8px;
  font-size: 13px;
}

.hrms-filter-bar .hrms-btn-submit,
.hrms-filter-bar .hrms-export-btn {
  height: 36px;
  padding: 0 14px;
  font-size: 13px;
  border-radius: 8px;
}

.hrms-filter-actions {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-end;
}

.hrms-form-card {
  background: var(--hrms-card-bg);
  border: 1px solid var(--hrms-border);
  border-radius: var(--hrms-radius);
  padding: 14px 16px;
  margin-bottom: 14px;
  box-shadow: var(--hrms-shadow);
}

.hrms-form-card h3 {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--hrms-ink);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--hrms-border);
}

.hrms-form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: flex-end;
  margin-bottom: 0;
}

.hrms-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
}

.hrms-form-grid textarea {
  min-height: 64px;
  height: auto;
  padding: 8px 10px;
}

.hrms-form-grid .hrms-form-field {
  min-width: 0;
}

.hrms-form-grid .hrms-form-field input,
.hrms-form-grid .hrms-form-field select,
.hrms-form-grid .hrms-form-field textarea,
.hrms-filter-bar input,
.hrms-filter-bar select {
  width: 100%;
  min-width: 0;
  max-width: none !important;
}

.hrms-form-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 4px;
}

.hrms-btn-ghost {
  height: 36px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  border: 1px solid var(--hrms-border);
  background: #fff;
  color: #475569;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

.hrms-btn-ghost:hover {
  background: var(--hrms-primary-soft);
  color: var(--hrms-primary-dark);
  text-decoration: none;
}

.hrms-form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 6px;
  width: 100%;
}

.hrms-form-hint {
  display: block;
  font-size: 12px;
  color: var(--hrms-muted);
  margin-top: 4px;
}

.hrms-form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 140px;
}

.hrms-form-field label {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
}

.hrms-form-field input,
.hrms-form-field select,
.hrms-form-field textarea,
input.hrms-form-field,
select.hrms-form-field,
textarea.hrms-form-field {
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--hrms-border);
  border-radius: 8px;
  font-size: 13px;
  min-width: 140px;
  background: #fff;
  color: var(--hrms-ink);
  font-family: inherit;
}

input.hrms-form-field,
select.hrms-form-field,
textarea.hrms-form-field {
  display: block;
  width: 100%;
  max-width: 480px;
  min-width: 0;
}

.hrms-form-field textarea,
textarea.hrms-form-field {
  height: auto;
  min-height: 88px;
  padding: 10px 12px;
}

.hrms-form-field input:focus,
.hrms-form-field select:focus,
.hrms-form-field textarea:focus,
input.hrms-form-field:focus,
select.hrms-form-field:focus,
textarea.hrms-form-field:focus {
  outline: none;
  border-color: var(--hrms-primary);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.14);
}

.hrms-btn-submit {
  height: 36px;
  padding: 0 16px;
  background: var(--hrms-primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s;
  white-space: nowrap;
}

.hrms-btn-submit:hover {
  background: var(--hrms-primary-dark);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

.hrms-app-table-wrap .table {
  margin: 0;
  font-size: 13px;
}

.hrms-app-table-wrap thead th {
  background: var(--hrms-primary-soft) !important;
  color: #115e59 !important;
  padding: 8px 12px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
  border-bottom: 1px solid #ccfbf1;
}

.hrms-app-table-wrap tbody td {
  padding: 8px 12px;
  vertical-align: middle;
}

.hrms-badge-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.hrms-badge-active {
  background: #d1fae5;
  color: #065f46;
}

.hrms-badge-inactive {
  background: #ffe4e6;
  color: #9f1239;
}

.hrms-status {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.hrms-status-pending,
.hrms-status-Pending {
  background: #fef3c7;
  color: #92400e;
}

.hrms-status-approved,
.hrms-status-Approved {
  background: #d1fae5;
  color: #065f46;
}

.hrms-status-rejected,
.hrms-status-Rejected {
  background: #ffe4e6;
  color: #9f1239;
}

.hrms-btn-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: var(--hrms-primary);
  color: #fff !important;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s;
  margin-right: 4px;
}

.hrms-btn-action:hover {
  background: var(--hrms-primary-dark);
  color: #fff !important;
  text-decoration: none;
}

.hrms-actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.hrms-btn-icon {
  width: 28px;
  height: 28px;
  padding: 0;
  margin: 0;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff !important;
  text-decoration: none;
  font-size: 12px;
  line-height: 1;
  background: var(--hrms-primary);
}

.hrms-btn-icon:hover {
  opacity: 0.9;
  color: #fff !important;
  text-decoration: none;
}

.hrms-btn-icon.is-profile { background: #0f766e; }
.hrms-btn-icon.is-view { background: #0284c7; }
.hrms-btn-icon.is-delete { background: var(--hrms-danger); }

.hrms-chip {
  height: 30px;
  padding: 0 10px;
  border: 1px solid var(--hrms-border);
  background: #fff;
  color: #475569;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.hrms-chip.is-on {
  background: var(--hrms-primary);
  color: #fff;
  border-color: var(--hrms-primary);
}

.hrms-chip.is-success.is-on { background: var(--hrms-success); border-color: var(--hrms-success); }
.hrms-chip.is-danger.is-on { background: var(--hrms-danger); border-color: var(--hrms-danger); }
.hrms-chip.is-muted.is-on { background: #64748b; border-color: #64748b; }

.hrms-filter-bar-compact {
  padding: 8px 10px;
  gap: 8px;
  align-items: center;
}

.hrms-filter-bar-compact .hrms-form-field {
  min-width: 0;
}

.hrms-filter-bar-compact .hrms-form-field label {
  display: none;
}

.hrms-filter-search {
  width: 200px;
  min-width: 160px !important;
  height: 30px !important;
}

.hrms-table-compact td,
.hrms-table-compact th,
.hrms-app-table-wrap.hrms-table-compact tbody td,
.hrms-app-table-wrap.hrms-table-compact thead th,
.hrms-main .hrms-table-compact.table tbody td,
.hrms-main .hrms-table-compact.table thead th {
  padding: 6px 10px !important;
  white-space: nowrap;
  vertical-align: middle !important;
}

.hrms-table-compact td.col-email {
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ----- Login ----- */
.hrms-login-page {
  min-height: 100vh;
}

.hrms-login-split {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
}

.hrms-login-brand {
  background:
    radial-gradient(circle at 20% 20%, rgba(45, 212, 191, 0.22), transparent 38%),
    radial-gradient(circle at 80% 80%, rgba(15, 118, 110, 0.4), transparent 42%),
    linear-gradient(160deg, #0b1618 0%, #115e59 55%, #0f766e 100%);
  color: #fff;
  padding: 56px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hrms-login-brand::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  border: 40px solid rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  right: -80px;
  bottom: -80px;
}

.hrms-login-mark {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 28px;
}

.hrms-login-logo-wrap {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  width: max-content;
  max-width: 100%;
  background: #fff;
  border-radius: 16px;
  padding: 12px 16px;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.hrms-login-logo {
  height: 58px;
  width: auto;
  max-width: 200px;
  display: block;
  object-fit: contain;
}

.hrms-login-card-logo {
  display: block;
  height: 44px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  margin: 0 0 14px;
}

.hrms-login-brand h1 {
  font-size: 2.25rem;
  font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: -0.04em;
  color: #fff;
  position: relative;
  z-index: 1;
}

.hrms-login-brand p {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
  max-width: 380px;
  margin: 0;
  position: relative;
  z-index: 1;
}

.hrms-login-points {
  margin-top: 36px;
  padding: 0;
  list-style: none;
  position: relative;
  z-index: 1;
}

.hrms-login-points li {
  margin: 10px 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.82);
  padding-left: 22px;
  position: relative;
}

.hrms-login-points li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #5eead4;
  position: absolute;
  left: 0;
  top: 6px;
}

.hrms-login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: #f7faf9;
}

.hrms-login-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--hrms-shadow-lg);
  border: 1px solid var(--hrms-border);
  overflow: hidden;
}

.hrms-login-card .card-head {
  padding: 28px 28px 8px;
  text-align: left;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--hrms-ink);
  letter-spacing: -0.03em;
  background: transparent;
}

.hrms-login-card .card-head span {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--hrms-muted);
  margin-top: 6px;
  letter-spacing: 0;
}

.hrms-login-card .card-body {
  padding: 16px 28px 28px;
}

.hrms-login-card .form-group {
  margin-bottom: 16px;
}

.hrms-login-card label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 6px;
}

.hrms-login-card .form-control {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--hrms-border);
  border-radius: 10px;
  font-size: 15px;
  box-shadow: none;
}

.hrms-login-card .form-control:focus {
  outline: none;
  border-color: var(--hrms-primary);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.14);
}

.hrms-login-card .btn-primary {
  width: 100%;
  height: 46px;
  padding: 0;
  background: var(--hrms-primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 6px;
}

.hrms-login-card .btn-primary:hover {
  background: var(--hrms-primary-dark);
  color: #fff;
}

.hrms-login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--hrms-page-bg);
  padding: 20px;
}

/* ----- Alerts ----- */
.hrms-alert {
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 13px;
}

.hrms-alert-error {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: var(--hrms-danger);
}

/* ----- Footer ----- */
.hrms-footer {
  margin-top: auto;
  padding: 18px 0 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--hrms-muted);
  font-size: 12px;
  border-top: 1px solid var(--hrms-border);
}

/* ----- Legacy module / forms / tables ----- */
.hrms-main .module {
  background: var(--hrms-card-bg);
  border-radius: var(--hrms-radius);
  border: 1px solid var(--hrms-border);
  box-shadow: var(--hrms-shadow);
  margin-bottom: 14px;
  overflow: hidden;
}

.hrms-main .module-body {
  padding: 14px 16px;
  overflow-x: auto;
}

.hrms-main .module-head {
  padding: 10px 16px;
  border-bottom: 1px solid var(--hrms-border);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--hrms-ink);
  background: #fbfcfc;
}

.hrms-main .module-head .btn,
.hrms-main .module-head button {
  padding: 8px 16px;
  font-size: 13px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 600;
}

.hrms-main .module-head .btn-success {
  background: var(--hrms-success);
  color: #fff;
}

.hrms-main .form-horizontal.row-fluid,
.hrms-main .form-horizontal {
  margin: 0;
}

.hrms-main .control-group {
  margin-bottom: 10px;
}

.hrms-main .control-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 6px;
}

.hrms-main .controls {
  margin: 0;
}

.hrms-main .controls input,
.hrms-main .controls select,
.hrms-main .controls textarea,
.hrms-main input[type="text"],
.hrms-main input[type="password"],
.hrms-main input[type="email"],
.hrms-main input[type="date"],
.hrms-main input[type="number"],
.hrms-main input[type="time"],
.hrms-main select,
.hrms-main textarea {
  padding: 8px 12px !important;
  font-size: 14px !important;
  border: 1px solid var(--hrms-border) !important;
  border-radius: 10px !important;
  min-height: 40px !important;
  box-sizing: border-box !important;
  width: 100%;
  max-width: 340px;
  background: #fff;
  box-shadow: none !important;
}

.hrms-main .controls textarea,
.hrms-main textarea {
  min-height: 88px;
  resize: vertical;
}

.hrms-main .controls input:focus,
.hrms-main .controls select:focus,
.hrms-main .controls textarea:focus,
.hrms-main input:focus,
.hrms-main select:focus,
.hrms-main textarea:focus {
  outline: none !important;
  border-color: var(--hrms-primary) !important;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.14) !important;
}

.hrms-main .controls input:disabled {
  background: #f1f5f9;
  cursor: not-allowed;
}

.hrms-main .span6,
.hrms-main .span8,
.hrms-main .span12 {
  width: 100%;
  max-width: 340px;
  margin-left: 0;
}

.hrms-main .table {
  width: 100%;
  font-size: 13px;
  margin: 0;
  border-collapse: collapse;
}

.hrms-main .table thead th {
  background: var(--hrms-primary-soft) !important;
  color: #115e59 !important;
  padding: 8px 12px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: none !important;
  border-bottom: 1px solid #ccfbf1 !important;
}

.hrms-main .table tbody td {
  padding: 8px 12px !important;
  border-bottom: 1px solid var(--hrms-border);
  color: #334155;
}

.hrms-main .table tbody tr:hover {
  background: #f8fafc;
}

.hrms-main .table-striped tbody > tr:nth-child(odd) > td {
  background-color: #f8fafc;
}

.hrms-main .table-bordered,
.hrms-main .table-bordered td,
.hrms-main .table-bordered th {
  border-color: var(--hrms-border) !important;
}

.hrms-main .btn {
  padding: 8px 16px !important;
  font-size: 13px !important;
  border-radius: 10px !important;
  font-weight: 600;
  cursor: pointer;
  border: none;
}

.hrms-main .btn-primary,
.hrms-main .btn-info {
  background: var(--hrms-primary) !important;
  color: #fff !important;
  border: none !important;
}

.hrms-main .btn-primary:hover,
.hrms-main .btn-info:hover {
  background: var(--hrms-primary-dark) !important;
  color: #fff !important;
}

.hrms-main .btn-success {
  background: var(--hrms-success) !important;
  color: #fff !important;
}

.hrms-main .btn-danger {
  background: var(--hrms-danger) !important;
  color: #fff !important;
}

.hrms-main .btn-warning {
  background: var(--hrms-warning) !important;
  color: #fff !important;
}

.hrms-main .badge-complete,
.hrms-main .badge.badge-complete {
  background: #d1fae5 !important;
  color: #065f46 !important;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.hrms-main .badge-delete,
.hrms-main .badge.badge-delete {
  background: #ffe4e6 !important;
  color: #9f1239 !important;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.hrms-main .badge-edit,
.hrms-main .badge.badge-edit {
  background: var(--hrms-primary) !important;
  color: #fff !important;
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
}

.hrms-main .text-color {
  color: inherit !important;
  text-decoration: none;
}

.hrms-main .badge a {
  color: inherit !important;
  text-decoration: none;
}

.hrms-main .profile-tab.nav-tabs {
  border-bottom: 1px solid var(--hrms-border);
  margin-bottom: 16px;
}

.hrms-main .profile-tab-content.tab-content {
  padding: 0;
}

.hrms-main .module-option.clearfix {
  margin-bottom: 16px;
}

/* ----- Social feed ----- */
.hrms-feed {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 0 24px;
}

.hrms-feed-page-title {
  margin-bottom: 24px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--hrms-ink);
}

.hrms-feed-card {
  background: var(--hrms-card-bg);
  border-radius: var(--hrms-radius);
  box-shadow: var(--hrms-shadow);
  border: 1px solid var(--hrms-border);
  margin-bottom: 22px;
  overflow: hidden;
}

.hrms-feed-post {
  display: flex;
  gap: 16px;
  padding: 20px;
  align-items: flex-start;
}

.hrms-feed-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--hrms-primary-light);
}

.hrms-feed-avatar-sm {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--hrms-primary-light);
}

.hrms-feed-post-body {
  flex: 1;
  min-width: 0;
}

.hrms-feed-author {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}

.hrms-feed-author-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--hrms-ink);
}

.hrms-feed-time {
  font-size: 12px;
  color: #94a3b8;
}

.hrms-feed-subject {
  font-weight: 600;
  font-size: 15px;
  color: #334155;
  margin-bottom: 8px;
  line-height: 1.4;
}

.hrms-feed-text {
  font-size: 14px;
  line-height: 1.6;
  color: #475569;
  margin-bottom: 12px;
  word-break: break-word;
}

.hrms-feed-html p {
  margin: 0 0 10px;
}

.hrms-feed-html p:last-child {
  margin-bottom: 0;
}

.hrms-feed-html a {
  color: var(--hrms-primary);
}

.hrms-feed-html img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 8px 0;
}

.hrms-feed-attachment {
  margin-top: 12px;
  border-radius: 8px;
  overflow: hidden;
  background: #f1f5f9;
}

.hrms-feed-attachment img,
.hrms-feed-attachment video {
  display: block;
  max-width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: contain;
}

.hrms-feed-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-top: 1px solid var(--hrms-border);
  background: #fbfcfc;
}

.hrms-feed-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  background: transparent;
  border: none;
  text-decoration: none;
  cursor: pointer;
}

.hrms-feed-btn:hover {
  background: var(--hrms-primary-light);
  color: var(--hrms-primary);
}

.hrms-feed-btn.active {
  background: var(--hrms-primary);
  color: #fff;
}

.hrms-feed-comments-wrap {
  padding: 16px 20px 20px;
  border-top: 1px solid var(--hrms-border);
  background: #f8fafc;
}

.hrms-feed-comments-title {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.hrms-feed-comment {
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  background: var(--hrms-card-bg);
  border-radius: 10px;
  margin-bottom: 10px;
  border: 1px solid var(--hrms-border);
}

.hrms-feed-comment-name {
  font-weight: 600;
  font-size: 13px;
  color: var(--hrms-ink);
}

.hrms-feed-comment-time {
  font-size: 11px;
  color: #94a3b8;
}

.hrms-feed-comment-text {
  font-size: 13px;
  line-height: 1.5;
  color: #475569;
  word-break: break-word;
}

/* ----- Responsive ----- */
@media (max-width: 1100px) {
  .hrms-stat-row,
  .hrms-kpi-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .hrms-dash-grid {
    grid-template-columns: 1fr;
  }

  .hrms-login-split {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

@media (max-width: 991px) {
  .hrms-menu-toggle {
    display: flex;
  }

  .hrms-topbar-date {
    display: none;
  }

  .hrms-sidebar {
    position: fixed;
    left: 0;
    top: var(--hrms-topbar-h);
    z-index: 1100;
    width: min(280px, 86vw);
    min-width: 0;
    transform: translateX(-105%);
    transition: transform 0.22s ease;
    box-shadow: var(--hrms-shadow-lg);
  }

  body.hrms-sidebar-open .hrms-sidebar {
    transform: translateX(0);
  }

  .hrms-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    top: var(--hrms-topbar-h);
    background: rgba(11, 22, 24, 0.46);
    z-index: 1080;
  }

  body.hrms-sidebar-open .hrms-sidebar-overlay {
    display: block;
  }

  .hrms-sidebar-nav > li > a span,
  .hrms-sidebar-nav .submenu,
  .hrms-sidebar-label {
    display: block;
  }

  .hrms-main {
    padding: 18px 16px 0;
  }
}

@media (max-width: 768px) {
  .hrms-user-name {
    display: none;
  }

  .hrms-user-chip {
    padding: 2px;
    background: transparent;
    border: 0;
  }

  .hrms-stat-row,
  .hrms-kpi-strip {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .hrms-stat-card {
    min-height: 84px;
    padding: 14px;
  }

  .hrms-stat-card .stat-value {
    font-size: 1.35rem;
  }

  .hrms-login-split {
    grid-template-columns: 1fr;
  }

  .hrms-login-brand {
    padding: 28px 24px 24px;
    min-height: auto;
  }

  .hrms-login-brand h1 {
    font-size: 1.6rem;
  }

  .hrms-login-logo-wrap {
    margin-bottom: 16px;
    padding: 8px 12px;
  }

  .hrms-login-logo {
    height: 44px;
    max-width: 160px;
  }

  .hrms-login-card-logo {
    height: 38px;
    max-width: 150px;
  }

  .hrms-brand-text {
    display: none;
  }

  .hrms-brand-logo {
    height: 32px;
    max-width: 140px;
  }

  .hrms-login-points {
    display: none;
  }

  .hrms-page-title {
    font-size: 1.3rem;
  }

  .hrms-btn-submit,
  .hrms-export-btn {
    min-height: 42px;
  }

  .hrms-form-row {
    flex-direction: column;
    align-items: stretch;
  }

  .hrms-form-grid {
    grid-template-columns: 1fr;
  }

  .hrms-filter-actions {
    margin-left: 0;
    width: 100%;
  }

  .hrms-filter-bar .hrms-form-field,
  .hrms-filter-bar input,
  .hrms-filter-bar select {
    width: 100%;
    min-width: 0;
  }

  .hrms-form-field,
  input.hrms-form-field {
    width: 100%;
    max-width: none;
    min-width: 0;
  }

  .hrms-toolbar,
  .leave-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .hrms-toolbar .hrms-export-btn,
  .hrms-toolbar .hrms-btn-submit,
  .leave-toolbar .hrms-export-btn,
  .leave-toolbar .hrms-btn-submit {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hrms-stat-row {
    grid-template-columns: 1fr;
  }

  .hrms-login-card .card-head,
  .hrms-login-card .card-body {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* ----- Roster ----- */
.hrms-flash-ok,
.hrms-flash-warn {
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
  margin-bottom: 8px;
}
.hrms-flash-ok {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}
.hrms-flash-warn {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}
.hrms-flash-warn a {
  color: #0f766e;
  font-weight: 600;
}

.hrms-roster-page .hrms-page-head {
  margin-bottom: 8px;
  align-items: center;
}
.hrms-roster-page .hrms-page-title {
  font-size: 1.05rem;
  margin: 0;
}
.hrms-roster-links {
  display: flex;
  gap: 10px;
  font-size: 12px;
}
.hrms-roster-links a {
  color: #0f766e;
  font-weight: 600;
}

.hrms-roster-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  background: #fff;
  border: 1px solid var(--hrms-border);
  border-radius: 10px;
  padding: 6px 8px;
  margin-bottom: 8px;
  box-shadow: var(--hrms-shadow);
}
.hrms-roster-toolbar form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0;
}
.hrms-roster-toolbar input[type="month"],
.hrms-roster-toolbar input[type="text"],
.hrms-roster-toolbar .hrms-btn-submit,
.hrms-roster-toolbar .hrms-export-btn {
  height: 26px !important;
  min-height: 26px !important;
  font-size: 12px !important;
  padding: 0 8px !important;
  border-radius: 6px !important;
  margin: 0;
}
.hrms-roster-toolbar input[type="month"] {
  width: 138px;
}
.hrms-roster-toolbar input[type="text"] {
  width: 150px;
}
.hrms-roster-toolbar .hrms-export-btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
}
.hrms-roster-meta {
  font-size: 12px;
  color: var(--hrms-muted);
  font-weight: 600;
}
.hrms-roster-check {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  color: #475569;
}

.hrms-roster-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0 0 6px;
}
.hrms-roster-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 3px;
  line-height: 16px;
  border: 1px solid #d0d5dd;
  color: #111;
}
.hrms-roster-chip em {
  font-style: normal;
  font-weight: 500;
  opacity: .85;
}
.hrms-roster-chip.mark-p { background: #fff; }
.hrms-roster-chip.mark-off { background: #ffeb9c; }
.hrms-roster-chip.mark-lv { background: #f8cbad; }
.hrms-roster-chip.mark-co { background: #d5b8ff; }
.hrms-roster-chip.mark-ho { background: #f4b183; }

.hrms-roster-wrap {
  overflow: auto;
  max-height: calc(100vh - 200px);
  border: 1px solid var(--hrms-border);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--hrms-shadow);
}

.hrms-roster-table {
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 10px;
  width: max-content;
  min-width: 100%;
}
.hrms-roster-table th,
.hrms-roster-table td {
  padding: 1px 3px !important;
  text-align: center;
  border: 1px solid #bbb;
  white-space: nowrap;
  vertical-align: middle !important;
  line-height: 1.15;
  color: #111;
  background: #fff;
}
.hrms-roster-table thead th {
  position: sticky;
  z-index: 4;
  font-size: 10px;
  font-weight: 700;
  color: #111;
}
.hrms-roster-table thead tr.head-week th {
  top: 0;
  height: 18px;
  background: #f3f4f6;
}
.hrms-roster-table thead tr.head-date th {
  top: 18px;
  height: 18px;
  background: #f3f4f6;
}
.hrms-roster-table .sticky-block {
  position: sticky;
  left: 0;
  z-index: 8;
  min-width: 550px;
  background: #0f766e !important;
  color: #fff !important;
  text-align: left !important;
  padding-left: 8px !important;
  font-size: 12px !important;
}
.hrms-roster-table .sticky-col {
  position: sticky;
  z-index: 3;
  background: #fff;
  font-size: 10px;
}
.hrms-roster-table thead th.sticky-col {
  z-index: 6;
  background: #e8eef0;
}
.hrms-roster-table tbody td.sticky-col {
  background: #fff;
}
.hrms-roster-table .c-sl { left: 0; min-width: 28px; width: 28px; }
.hrms-roster-table .c-shift { left: 28px; min-width: 108px; width: 108px; text-align: left !important; }
.hrms-roster-table .c-team { left: 136px; min-width: 52px; width: 52px; }
.hrms-roster-table .c-process { left: 188px; min-width: 72px; width: 72px; text-align: left !important; }
.hrms-roster-table .c-empid { left: 260px; min-width: 50px; width: 50px; }
.hrms-roster-table .c-name { left: 310px; min-width: 108px; width: 108px; text-align: left !important; }
.hrms-roster-table .c-lv { left: 418px; min-width: 32px; width: 32px; }
.hrms-roster-table .c-co { left: 450px; min-width: 28px; width: 28px; }
.hrms-roster-table .c-off { left: 478px; min-width: 30px; width: 30px; }
.hrms-roster-table .c-work { left: 508px; min-width: 42px; width: 42px; box-shadow: 2px 0 4px rgba(15, 23, 42, .08); }

.hrms-roster-table thead th.day-h.is-holiday {
  background: #f4b183 !important;
  color: #111;
}
.hrms-holiday-note {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin: 0 0 6px;
  font-size: 11px;
  color: #9a3412;
}
.hrms-holiday-note span {
  background: #ffedd5;
  border: 1px solid #fdba74;
  border-radius: 4px;
  padding: 1px 6px;
}
.hrms-roster-table thead th.is-today,
.hrms-roster-table td.is-today {
  box-shadow: inset 0 -2px 0 #0f766e;
}
.hrms-roster-table td.roster-day {
  position: relative;
  min-width: 34px;
  width: 34px;
  height: 20px;
  padding: 0 !important;
}
.hrms-roster-table td.roster-day.is-weekend {
  background-image: none;
}
.hrms-roster-table .cell-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  line-height: 20px;
  pointer-events: none;
}
.hrms-roster-table select.roster-cell {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  border: 0;
  padding: 0;
  margin: 0;
}
.hrms-roster-table td.mark-p { background: #fff; }
.hrms-roster-table td.mark-off { background: #ffeb9c; }
.hrms-roster-table td.mark-lv { background: #f8cbad; }
.hrms-roster-table td.mark-co { background: #d5b8ff; }
.hrms-roster-table td.mark-ho { background: #f4b183; }
.hrms-roster-table .roster-count {
  font-weight: 700;
  font-size: 10px;
}

@media (max-width: 768px) {
  .hrms-roster-wrap {
    max-height: calc(100vh - 180px);
  }
}

.hrms-day-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.hrms-day-check {
  margin: 0 !important;
  cursor: pointer;
}
.hrms-day-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.hrms-day-check span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 26px;
  padding: 0 6px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #475569;
  background: #fff;
}
.hrms-day-check input:checked + span {
  background: #0f766e;
  border-color: #0f766e;
  color: #fff;
}
.hrms-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 36px;
  align-items: center;
}
.hrms-sat-shift {
  min-width: 150px;
}

.hrms-att-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 10px;
}
.hrms-att-stats div {
  background: #fff;
  border: 1px solid var(--hrms-border);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
  color: #475569;
}
.hrms-att-stats b {
  color: var(--hrms-ink);
  margin-right: 4px;
}
.hrms-att-rules {
  margin: 0 0 12px;
  max-width: 720px;
  background: #fff;
  border: 1px solid var(--hrms-border);
  border-radius: 8px;
  overflow: hidden;
}
.hrms-att-rules .hrms-table {
  margin: 0;
}
.hrms-att-rules th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #64748b;
}
.hrms-att-rules td {
  font-size: 13px;
}
.hrms-att-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}
.hrms-att-pill.mark-p { background: #d1fae5; color: #065f46; }
.hrms-att-pill.mark-lt { background: #fef3c7; color: #92400e; }
.hrms-att-pill.mark-hd { background: #ffedd5; color: #9a3412; }
.hrms-att-pill.mark-lv { background: #f8cbad; color: #9a3412; }
.hrms-att-pill.mark-a { background: #fee2e2; color: #991b1b; }
.hrms-roster-chip.mark-a,
.hrms-att-days td.mark-a { background: #fee2e2; color: #991b1b; }
.hrms-roster-chip.mark-lop,
.hrms-att-days td.mark-lop { background: #fecaca; color: #7f1d1d; }
.hrms-att-days td.mark-p { background: #fff; }
.hrms-att-days td.mark-lt { background: #fde68a; color: #92400e; }
.hrms-att-days td.mark-hd { background: #ffedd5; color: #9a3412; }
.hrms-att-days td.mark-sh { background: #ffe4e6; color: #9f1239; }
.hrms-att-days td.mark-lv { background: #f8cbad; }
.hrms-att-days td.mark-off { background: #ffeb9c; }
.hrms-att-days td.mark-ho { background: #f4b183; }
.hrms-att-days td.mark-fut { background: #f8fafc; color: #94a3b8; }
.hrms-att-daywrap {
  overflow: auto;
  border: 1px solid var(--hrms-border);
  border-radius: 8px;
  background: #fff;
}
.hrms-att-days {
  margin: 0;
  font-size: 10px;
}
.hrms-att-days th,
.hrms-att-days td {
  text-align: center;
  padding: 3px 4px !important;
  border: 1px solid #ddd;
  min-width: 28px;
  font-weight: 700;
}
.hrms-att-days th {
  background: #f3f4f6;
  line-height: 1.1;
}
.hrms-att-days th small {
  display: block;
  font-weight: 500;
  color: #64748b;
  font-size: 9px;
}
.hrms-att-days th.is-weekend { background: #00b050; }
.hrms-att-days th.is-holiday { background: #f4b183; }

/* ----- Payroll / payslip (Jul-26 Excel format) ----- */
.hrms-table-compact input[type="text"],
.hrms-table-compact input[type="number"],
.hrms-table-compact input[type="email"] {
  min-height: 26px;
  padding: 2px 5px;
  font-size: 11px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  background: #fff;
}
.hrms-wd-col,
.hrms-table-compact th.hrms-wd-col,
.hrms-table-compact td.hrms-wd-col {
  background: #d1fae5 !important;
}
.hrms-wd-col input {
  background: #ecfdf5;
  font-weight: 700;
}

/* Payroll master: full values visible, scroll sideways if needed */
.hrms-pay-wrap {
  overflow-x: auto;
  overflow-y: visible;
}
.hrms-main table.hrms-pay-sheet.table {
  width: max-content !important;
  min-width: 100%;
  table-layout: auto;
  margin-bottom: 0;
}
.hrms-main .hrms-pay-sheet.table thead th,
.hrms-app-table-wrap.hrms-table-compact .hrms-pay-sheet thead th {
  font-size: 9px !important;
  padding: 3px 4px !important;
  white-space: nowrap;
  line-height: 1.2;
}
.hrms-main .hrms-pay-sheet.table tbody td,
.hrms-app-table-wrap.hrms-table-compact .hrms-pay-sheet tbody td {
  padding: 1px 3px !important;
  font-size: 10px !important;
  overflow: visible !important;
  white-space: nowrap;
  line-height: 1.2;
  vertical-align: middle !important;
}
.hrms-table-compact.hrms-pay-wrap .hrms-pay-sheet input[type="text"],
.hrms-table-compact.hrms-pay-wrap .hrms-pay-sheet input[type="number"],
.hrms-pay-sheet input[type="text"],
.hrms-pay-sheet input[type="number"] {
  height: 18px !important;
  min-height: 18px !important;
  padding: 0 4px !important;
  font-size: 10px !important;
  line-height: 16px !important;
  width: auto;
  max-width: none;
  box-sizing: border-box;
  -moz-appearance: textfield;
  appearance: textfield;
  border-radius: 3px;
}
.hrms-pay-sheet input[type="number"]::-webkit-outer-spin-button,
.hrms-pay-sheet input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.hrms-pay-sheet .col-name { min-width: 120px; }
.hrms-pay-sheet .col-name input { width: 138px; min-width: 138px; }
.hrms-pay-sheet .col-id { min-width: 52px; font-size: 10px; }
.hrms-pay-sheet .col-text input { width: 100px; min-width: 100px; }
.hrms-pay-sheet .col-mail input { width: 168px; min-width: 168px; }
.hrms-pay-sheet .col-bank input { width: 168px; min-width: 168px; }
.hrms-pay-sheet .col-num input { width: 76px; min-width: 76px; }
.hrms-pay-sheet .col-sal input,
.hrms-pay-sheet .col-loprs input { width: 92px; min-width: 92px; }
.hrms-pay-sheet .col-wd input,
.hrms-pay-sheet .col-days input { width: 50px; min-width: 50px; }
.hrms-pay-actions {
  white-space: nowrap;
}
.hrms-pay-actions a,
.hrms-pay-actions button,
.hrms-pay-actions span {
  font-size: 10px;
  margin-left: 4px;
  vertical-align: middle;
}
.hrms-mail-one {
  display: inline;
  margin: 0;
}
.hrms-mail-one button {
  background: none;
  border: 0;
  padding: 0;
  color: #0f766e;
  cursor: pointer;
  font-size: 10px;
}
.hrms-pay-actions span {
  color: #94a3b8;
}
.hrms-payslip-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  align-items: center;
}
.hrms-payslip {
  --ps-navy: #0b2f5c;
  --ps-teal: #1aa89a;
  --ps-ink: #0b2f5c;
  --ps-muted: #8a94a6;
  --ps-line: #e6ebf0;
  --ps-wash: #f4f6f9;
  --ps-lop: #fde4e6;
  max-width: 820px;
  margin: 0 auto 28px;
  background: #fff;
  border: 1px solid #d9e2ea;
  border-radius: 6px;
  overflow: hidden;
  color: var(--ps-ink);
  font-size: 12px;
  line-height: 1.4;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  box-shadow: 0 10px 28px rgba(11, 47, 92, 0.08);
  border-bottom: 5px solid var(--ps-teal);
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}
.hrms-payslip .ps-brand {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 20px 12px;
}
.hrms-payslip .ps-brand-left {
  min-width: 0;
}
.hrms-payslip .ps-logo {
  display: block;
  height: 52px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  margin-bottom: 6px;
}
.hrms-payslip .ps-addr {
  font-size: 11px;
  color: var(--ps-muted);
  line-height: 1.35;
}
.hrms-payslip .ps-brand-right {
  text-align: right;
  flex: 0 0 auto;
}
.hrms-payslip .ps-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ps-navy);
  line-height: 1.1;
}
.hrms-payslip .ps-month {
  margin-top: 4px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ps-teal);
}
.hrms-payslip .ps-issued {
  margin-top: 6px;
  font-size: 11px;
  color: var(--ps-muted);
}
.hrms-payslip .ps-rule {
  height: 2px;
  margin: 0 20px;
  background: var(--ps-teal);
}
.hrms-payslip .ps-meta-wrap {
  margin: 10px 20px 12px;
}
.hrms-payslip .ps-meta-wrap::before {
  content: "";
  display: block;
  width: 46px;
  height: 4px;
  background: var(--ps-teal);
  border-radius: 2px;
  margin-bottom: 8px;
}
.hrms-payslip .ps-meta {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 0;
  padding: 0;
  border: 1px solid #e4e9ee;
  background: #f7f9fb;
}
.hrms-payslip .ps-meta-split {
  background: #e4e9ee;
}
.hrms-payslip .ps-meta-col {
  border-right: none;
  padding: 4px 0;
}
.hrms-payslip .ps-meta-col:last-child {
  border-right: none;
  padding-right: 0;
}
.hrms-payslip .ps-meta-item {
  display: grid;
  grid-template-columns: 118px 1fr;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-bottom: none;
}
.hrms-payslip .ps-meta-item span {
  display: block;
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8b95a5;
  margin: 0;
}
.hrms-payslip .ps-meta-item strong {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #1e293b;
  word-break: break-word;
}
.hrms-payslip .ps-block {
  padding: 10px 20px 4px;
}
.hrms-payslip h2,
.hrms-payslip .ps-help h2,
.hrms-payslip .ps-terms h2 {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ps-navy);
}
.hrms-payslip .ps-att-table,
.hrms-payslip .ps-money {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
}
.hrms-payslip .ps-att-table thead th,
.hrms-payslip .ps-money thead th {
  background: var(--ps-navy) !important;
  color: #fff !important;
  font-size: 9px !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: left;
  padding: 8px 10px !important;
  border: 0 !important;
}
.hrms-payslip .ps-att-table thead th {
  text-align: center;
}
.hrms-payslip .ps-att-table tbody td {
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--ps-navy);
  padding: 9px 6px !important;
  border: 1px solid var(--ps-line) !important;
  background: #fff;
}
.hrms-payslip .ps-att-table tbody td.is-lop {
  background: var(--ps-lop) !important;
  color: #b42318;
}
.hrms-payslip .ps-att-note {
  margin: 7px 0 6px;
  color: var(--ps-muted);
  font-size: 10.5px;
}
.hrms-payslip .ps-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 6px 20px 8px;
}
.hrms-payslip .ps-money tbody td {
  padding: 6px 10px !important;
  border-bottom: 1px solid var(--ps-line) !important;
  background: #fff;
  font-size: 12px;
  color: #1e293b;
}
.hrms-payslip .ps-money tbody tr:nth-child(even) td {
  background: #f8fafc;
}
.hrms-payslip .ps-money .num,
.hrms-payslip .ps-money th.num {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.hrms-payslip .ps-money tfoot th {
  padding: 8px 10px !important;
  border-top: 2px solid var(--ps-navy) !important;
  background: #fff !important;
  color: var(--ps-navy) !important;
  font-size: 12px;
  font-weight: 800;
}
.hrms-payslip .ps-netbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 6px 20px 10px;
  background: var(--ps-navy);
  color: #fff;
  border-radius: 4px;
  padding: 12px 18px 12px 16px;
  box-shadow: inset 6px 0 0 var(--ps-teal);
}
.hrms-payslip .ps-net-lab {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hrms-payslip .ps-net-words {
  margin-top: 4px;
  font-size: 11px;
  opacity: 0.9;
}
.hrms-payslip .ps-net-amt {
  font-size: 26px;
  font-weight: 800;
  white-space: nowrap;
  letter-spacing: -0.02em;
}
.hrms-payslip .ps-acctbar,
.hrms-payslip .ps-lopbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 20px 8px;
  padding: 9px 12px;
  background: var(--ps-wash);
  border-radius: 4px;
  font-size: 11px;
}
.hrms-payslip .ps-acct-id span {
  display: block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ps-muted);
}
.hrms-payslip .ps-acct-id strong {
  font-size: 13px;
  color: var(--ps-navy);
}
.hrms-payslip .ps-acctbar p {
  margin: 0;
  max-width: 58%;
  text-align: right;
  color: var(--ps-muted);
  font-size: 10.5px;
}
.hrms-payslip .ps-lopbar {
  display: block;
  color: #475569;
}
.hrms-payslip .ps-help {
  margin: 4px 20px 8px;
  padding: 10px 12px;
  background: var(--ps-wash);
  border-left: 4px solid var(--ps-teal);
  border-radius: 0 4px 4px 0;
}
.hrms-payslip .ps-help p {
  margin: 0;
  color: var(--ps-muted);
  font-size: 11px;
}
.hrms-payslip .ps-help-num {
  font-size: 14px !important;
  font-weight: 700;
  color: var(--ps-navy) !important;
  margin-bottom: 2px !important;
}
.hrms-payslip .ps-terms {
  padding: 2px 20px 8px;
}
.hrms-payslip .ps-terms ol {
  margin: 0;
  padding-left: 16px;
  color: #5b6575;
  font-size: 8px;
  line-height: 1.35;
}
.hrms-payslip .ps-terms li {
  margin-bottom: 3px;
}
.hrms-payslip .ps-legal {
  padding: 9px 20px;
  border-top: 1px solid var(--ps-line);
  font-size: 10px;
  color: var(--ps-muted);
  background: #fbfcfd;
}
@media (max-width: 720px) {
  .hrms-payslip .ps-brand,
  .hrms-payslip .ps-cols,
  .hrms-payslip .ps-netbar,
  .hrms-payslip .ps-acctbar {
    display: block;
  }
  .hrms-payslip .ps-meta {
    grid-template-columns: 1fr;
  }
  .hrms-payslip .ps-meta-split {
    display: none;
  }
  .hrms-payslip .ps-meta-item {
    grid-template-columns: 110px 1fr;
  }
  .hrms-payslip .ps-brand-right,
  .hrms-payslip .ps-acctbar p {
    text-align: left;
    max-width: none;
    margin-top: 10px;
  }
  .hrms-payslip .ps-meta-col {
    border-right: 0;
    padding-right: 0;
  }
  .hrms-payslip .ps-net-amt {
    margin-top: 6px;
    font-size: 22px;
  }
}
@media print {
  .hrms-topbar,
  .hrms-sidebar,
  .hrms-footer,
  .hrms-sidebar-overlay,
  .hrms-payslip-actions {
    display: none !important;
  }
  .hrms-wrapper { display: block; }
  .hrms-main { padding: 0 !important; margin: 0 !important; }
  .hrms-app { background: #fff; }
  .hrms-payslip {
    break-after: page;
    box-shadow: none;
    max-width: none;
    margin: 0 0 8px;
    border-radius: 0;
  }
}

/* ----- Call monitoring form ----- */
.hrms-cm-form .hrms-cm-score-card {
  padding-bottom: 8px;
}
.hrms-cm-table {
  margin-bottom: 0;
}
.hrms-main .hrms-cm-table thead th,
.hrms-app-table-wrap .hrms-cm-table thead th {
  background: #0f766e !important;
  color: #fff !important;
  font-size: 11px !important;
  font-weight: 600;
  padding: 7px 8px !important;
  white-space: nowrap;
}
.hrms-main .hrms-cm-table tbody td,
.hrms-app-table-wrap .hrms-cm-table tbody td {
  padding: 6px 8px !important;
  vertical-align: middle !important;
  font-size: 12px;
  background: #fff;
}
.hrms-cm-table tbody tr:nth-child(even) td {
  background: #f8fafc;
}
.hrms-cm-table .cm-pts {
  width: 48px;
  text-align: center;
  font-weight: 700;
  color: #0f766e;
}
.hrms-cm-table .cm-yn {
  width: 130px;
}
.hrms-cm-table select,
.hrms-cm-table textarea {
  width: 100%;
  border: 1px solid var(--hrms-border);
  border-radius: 6px;
  font-size: 12px;
  font-family: inherit;
  background: #fff;
}
.hrms-cm-table select {
  height: 30px;
  padding: 0 8px;
}
.hrms-cm-table textarea {
  min-height: 44px;
  padding: 6px 8px;
  resize: vertical;
}
.hrms-cm-rubric {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  color: #fff !important;
  font-size: 10px;
  font-weight: 600;
  text-decoration: none;
  vertical-align: middle;
}
.hrms-cm-rubric:hover {
  background: #fff;
  color: #0f766e !important;
  text-decoration: none;
}
.hrms-cm-table .cm-pill {
  display: inline-block;
  min-width: 44px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}
.hrms-cm-table .cm-pill.cm-yes { background: #d1fae5; color: #065f46; }
.hrms-cm-table .cm-pill.cm-no { background: #fee2e2; color: #991b1b; }
.hrms-cm-table .cm-pill.cm-na { background: #e2e8f0; color: #475569; }
.hrms-cm-table .cm-score {
  width: 56px;
  text-align: center;
  font-weight: 700;
}
.hrms-cm-table .cm-note {
  color: #475569;
  white-space: pre-wrap;
  font-size: 12px;
}
.hrms-cm-table tfoot .cm-total td {
  background: #ecfdf5 !important;
  font-weight: 700;
  color: #0f766e;
}
.hrms-cm-final {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--hrms-border);
  margin-bottom: 14px;
}
.hrms-cm-final.is-pass { background: #ecfdf5; border-color: #a7f3d0; }
.hrms-cm-final.is-fail { background: #fef2f2; border-color: #fecaca; }
.hrms-cm-final span { display: block; font-size: 12px; color: #64748b; font-weight: 600; }
.hrms-cm-final strong { font-size: 28px; line-height: 1.1; color: #0f766e; }
.hrms-cm-final.is-fail strong { color: #b91c1c; }
.hrms-cm-final small { font-size: 12px; color: #64748b; }
.hrms-cm-plan {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #334155;
  white-space: pre-wrap;
}

/* ----- Engaging add / edit screens ----- */
.hrms-main {
  background-image:
    radial-gradient(ellipse 80% 50% at 0% -10%, rgba(15, 118, 110, 0.07), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(13, 148, 136, 0.05), transparent 50%);
}

.hrms-screen-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  margin-bottom: 16px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 92% 0%, rgba(94, 234, 212, 0.32), transparent 42%),
    linear-gradient(135deg, #0f766e 0%, #134e4a 58%, #0b1618 100%);
  color: #fff;
  box-shadow: 0 12px 28px rgba(15, 118, 110, 0.18);
}

.hrms-screen-hero-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.hrms-screen-kicker {
  margin: 0 0 2px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #99f6e4;
  font-weight: 700;
}

.hrms-screen-hero h1,
.hrms-screen-hero .hrms-page-title {
  margin: 0;
  font-size: 1.32rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
}

.hrms-screen-hero p,
.hrms-screen-hero .hrms-page-sub {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.hrms-screen-hero-actions {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hrms-screen-hero .hrms-btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.hrms-screen-hero .hrms-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.hrms-screen-hero .hrms-btn-submit,
.hrms-screen-hero .hrms-export-btn {
  box-shadow: none;
}

.hrms-form-card-lg {
  padding: 20px 22px 18px;
}

.hrms-form-section-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0f766e;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #ccfbf1;
}

.hrms-form-section + .hrms-form-section {
  margin-top: 18px;
}

.hrms-choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hrms-choice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--hrms-border);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  color: #334155;
  margin: 0;
}

.hrms-choice:hover,
.hrms-choice:has(input:checked) {
  border-color: #0f766e;
  background: #f0fdfa;
  color: #115e59;
}

.hrms-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
}

.hrms-detail-item {
  padding: 12px 14px;
  border: 1px solid var(--hrms-border);
  border-radius: 10px;
  background: #f8fafc;
}

.hrms-detail-item label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  font-weight: 700;
  margin-bottom: 4px;
}

.hrms-detail-item strong,
.hrms-detail-item span {
  display: block;
  font-size: 14px;
  color: #0f172a;
  font-weight: 600;
  word-break: break-word;
}

.hrms-audit-card {
  border: 1px solid var(--hrms-border);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 10px;
  background: #fff;
}

.hrms-audit-card h4 {
  margin: 0 0 6px;
  font-size: 14px;
  color: var(--hrms-ink);
}

.hrms-audit-card p {
  margin: 0 0 10px;
  font-size: 12px;
  color: var(--hrms-muted);
}

.hrms-flash-ok,
.hrms-flash-warn {
  padding: 10px 14px;
  border-radius: 10px;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 600;
}

.hrms-flash-ok {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.hrms-flash-warn {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.leave-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.leave-badge-pending { background: #fef3c7; color: #92400e; }
.leave-badge-approved { background: #d1fae5; color: #065f46; }
.leave-badge-rejected { background: #fee2e2; color: #991b1b; }

@media (max-width: 768px) {
  .hrms-screen-hero {
    flex-wrap: wrap;
  }
  .hrms-screen-hero-actions {
    margin-left: 0;
    width: 100%;
  }
  .hrms-detail-grid {
    grid-template-columns: 1fr;
  }
}

/* ----- Dashboard ----- */
.hrms-dash-hero .hrms-dash-rate {
  margin-left: auto;
  min-width: 168px;
  text-align: right;
}

.hrms-dash-hero .hrms-dash-rate strong {
  display: block;
  font-size: 1.7rem;
  line-height: 1;
  letter-spacing: -0.03em;
}

.hrms-dash-hero .hrms-dash-rate span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.78);
}

.hrms-dash-rate-bar {
  height: 8px;
  margin-top: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  overflow: hidden;
}

.hrms-dash-rate-bar em {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: #5eead4;
  font-style: normal;
}

.hrms-dash-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.hrms-dash-action {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 14px 14px 12px;
  background: #fff;
  border: 1px solid var(--hrms-border);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--hrms-shadow);
  min-height: 92px;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.hrms-dash-action:hover {
  transform: translateY(-2px);
  box-shadow: var(--hrms-shadow-lg);
  border-color: #99f6e4;
  text-decoration: none;
  color: inherit;
}

.hrms-dash-action i {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #f0fdfa;
  color: #0f766e;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hrms-dash-action strong {
  font-size: 13px;
  color: var(--hrms-ink);
}

.hrms-dash-action span {
  font-size: 12px;
  color: var(--hrms-muted);
  line-height: 1.35;
}

.hrms-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.hrms-card-header a {
  font-size: 12px;
  font-weight: 600;
  color: var(--hrms-primary);
}

.hrms-people-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hrms-people-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--hrms-border);
}

.hrms-people-list li:last-child {
  border-bottom: none;
}

.hrms-avatar-sm {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ccfbf1;
  color: #115e59;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.hrms-people-list strong {
  display: block;
  font-size: 13px;
  color: var(--hrms-ink);
}

.hrms-people-list small {
  display: block;
  font-size: 12px;
  color: var(--hrms-muted);
}

.hrms-empty-note {
  margin: 0;
  color: var(--hrms-muted);
  font-size: 13px;
}

@media (max-width: 1100px) {
  .hrms-dash-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .hrms-dash-hero .hrms-dash-rate {
    margin-left: 0;
    width: 100%;
    text-align: left;
  }
  .hrms-dash-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ----- Tickets alignment ----- */
.hrms-tickets-page .hrms-screen-hero {
  align-items: center;
}

.hrms-tickets-page .hrms-filter-bar {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(150px, 1fr) minmax(180px, 1.2fr) minmax(140px, 1fr) auto;
  align-items: end;
  gap: 12px 14px;
}

.hrms-tickets-page .hrms-filter-bar .hrms-form-field {
  width: 100%;
  min-width: 0;
}

.hrms-tickets-page .hrms-filter-bar input,
.hrms-tickets-page .hrms-filter-bar select {
  width: 100%;
  min-width: 0;
  height: 36px;
}

.hrms-tickets-page .hrms-filter-actions {
  margin-left: 0;
  align-items: center;
  align-self: end;
  height: 36px;
}

.hrms-tickets-page .hrms-filter-bar .hrms-btn-submit,
.hrms-tickets-page .hrms-filter-bar .hrms-btn-ghost {
  margin: 0;
  height: 36px;
}

.hrms-tickets-table {
  table-layout: fixed;
  width: 100%;
  min-width: 1180px;
}

.hrms-tickets-table th,
.hrms-tickets-table td {
  padding: 10px 12px;
  line-height: 1.4;
  vertical-align: middle;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hrms-tickets-table thead th {
  line-height: 1.4;
}

.hrms-tickets-table td small {
  display: block;
  white-space: nowrap;
  color: #64748b;
}

.hrms-tickets-table td:nth-child(8),
.hrms-tickets-table td:nth-child(9) {
  white-space: normal;
}

@media (max-width: 900px) {
  .hrms-tickets-page .hrms-filter-bar {
    grid-template-columns: 1fr 1fr;
  }
  .hrms-tickets-page .hrms-filter-actions {
    grid-column: 1 / -1;
  }
}

/* ----- Payroll master / generate ----- */
.hrms-payroll-page {
  margin-bottom: 12px;
}
.hrms-payroll-page .hrms-screen-hero-actions {
  align-items: center;
  gap: 10px;
}
.hrms-pay-status {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.hrms-pay-status-not_started {
  background: #e2e8f0;
  color: #334155;
}
.hrms-pay-status-draft {
  background: #fef3c7;
  color: #92400e;
}
.hrms-pay-status-generated {
  background: #dbeafe;
  color: #1e40af;
}
.hrms-pay-status-approved {
  background: #d1fae5;
  color: #065f46;
}
.hrms-payroll-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #a7f3d0;
  background: #ecfdf5;
}
.hrms-payroll-banner.is-locked {
  background: #f1f5f9;
  border-color: #cbd5e1;
}
.hrms-payroll-banner strong {
  display: block;
  font-size: 13px;
  color: #065f46;
}
.hrms-payroll-banner.is-locked strong {
  color: #334155;
}
.hrms-payroll-banner span {
  font-size: 12px;
  color: #64748b;
}
.hrms-payroll-banner form {
  margin: 0;
}
.hrms-payroll-panel {
  background: #fff;
  border: 1px solid var(--hrms-border);
  border-radius: 12px;
  box-shadow: var(--hrms-shadow);
  padding: 12px 14px 10px;
  margin-bottom: 10px;
}
.hrms-payroll-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.hrms-payroll-kpis div {
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--hrms-primary-soft);
  border: 1px solid #ccfbf1;
}
.hrms-payroll-kpis span {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--hrms-muted);
  margin-bottom: 2px;
}
.hrms-payroll-kpis strong {
  font-size: 1.05rem;
  color: var(--hrms-ink);
}
.hrms-payroll-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.hrms-payroll-nav,
.hrms-payroll-actions,
.hrms-payroll-actions form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0;
}
.hrms-payroll-toolbar input[type="month"],
.hrms-payroll-toolbar .hrms-btn-submit,
.hrms-payroll-toolbar .hrms-export-btn {
  height: 32px !important;
  min-height: 32px !important;
  font-size: 12px !important;
  padding: 0 10px !important;
  border-radius: 7px !important;
  margin: 0;
}
.hrms-payroll-toolbar input[type="month"] {
  width: 150px;
}
.hrms-payroll-toolbar .hrms-export-btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.hrms-btn-submit.hrms-pay-approve {
  background: #047857;
  border-color: #047857;
}
.hrms-btn-submit.hrms-pay-approve:hover {
  background: #065f46;
}
.hrms-payroll-sheet-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 8px;
  padding: 8px 0;
  font-size: 12px;
  color: var(--hrms-muted);
}
.hrms-payroll-sheet-bar span:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.hrms-payroll-empty {
  background: #fff;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  padding: 28px 20px;
  text-align: center;
  color: var(--hrms-muted);
}
.hrms-payroll-empty p {
  margin: 0 0 6px;
}
.hrms-payroll-empty a {
  color: #0f766e;
  font-weight: 700;
}
.hrms-pay-locked input[type="text"],
.hrms-pay-locked input[type="number"] {
  background: #f8fafc !important;
  color: #334155;
  pointer-events: none;
}
.hrms-dash-payroll {
  margin-bottom: 16px;
}
.hrms-dash-payroll-body {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px 16px;
}
.hrms-dash-payroll-main p {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--hrms-muted);
}
.hrms-dash-payroll-meta {
  display: flex;
  gap: 16px;
  margin-top: 10px;
  font-size: 13px;
  color: var(--hrms-ink);
}
.hrms-dash-payroll-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.hrms-dash-payroll-links form {
  margin: 0;
}
.hrms-dash-payroll-links .hrms-export-btn,
.hrms-dash-payroll-links .hrms-btn-submit {
  height: 34px;
  min-height: 34px;
  padding: 0 12px;
  margin: 0;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
@media (max-width: 800px) {
  .hrms-payroll-kpis {
    grid-template-columns: 1fr 1fr;
  }
}

.hrms-login-switch {
  margin: 0;
  font-size: 13px;
  color: var(--hrms-muted);
  text-align: center;
}
.hrms-login-switch a {
  font-weight: 700;
}
.hrms-emp-clock {
  text-align: center;
  margin-bottom: 14px;
}
.hrms-emp-clock strong {
  display: block;
  font-size: 14px;
  color: var(--hrms-muted);
}
.hrms-emp-clock em {
  display: block;
  font-style: normal;
  font-size: 2rem;
  font-weight: 800;
  color: var(--hrms-ink);
  letter-spacing: -0.03em;
  margin-top: 4px;
}
.hrms-emp-punch-times {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}
.hrms-emp-punch-times div {
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--hrms-primary-soft);
  border: 1px solid #ccfbf1;
}
.hrms-emp-punch-times span {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--hrms-muted);
}
.hrms-emp-punch-times strong {
  font-size: 14px;
}
.hrms-emp-punch-card .hrms-btn-submit {
  width: 100%;
}

.hrms-roster-table tbody tr.is-me td {
  background: #ecfdf5 !important;
  font-weight: 600;
}
.hrms-roster-table tbody tr.is-me td.sticky-col {
  background: #d1fae5 !important;
}
.hrms-roster-table tbody tr.is-me .c-name em {
  font-style: normal;
  color: #0f766e;
  font-size: 10px;
}
.hrms-table tr.is-monthly td {
  background: #f0fdfa;
}
.hrms-emp-photo-card {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 16px;
}
.hrms-emp-photo-preview {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  overflow: hidden;
  flex: 0 0 112px;
  border: 3px solid #99f6e4;
  background: #f0fdfa;
}
.hrms-emp-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hrms-emp-photo-card form {
  flex: 1;
  min-width: 0;
}
@media (max-width: 640px) {
  .hrms-emp-photo-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

.hrms-emp-page .hrms-screen-hero {
  margin-bottom: 14px;
}
.hrms-emp-cal {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}
.hrms-emp-cal-head {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--hrms-muted);
  padding: 4px 0 2px;
}
.hrms-emp-cal-empty {
  min-height: 78px;
}
.hrms-emp-cal-day {
  min-height: 104px;
  padding: 8px 8px 6px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hrms-emp-cal-day em {
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
}
.hrms-emp-cal-day strong {
  font-size: 15px;
  letter-spacing: 0.02em;
}
.hrms-emp-cal-day small {
  font-size: 10px;
  color: #64748b;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hrms-emp-cal-status {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  color: #475569;
}
.hrms-emp-cal-status.is-in {
  color: #0f766e;
}
.hrms-emp-cal-status.is-out {
  color: #0369a1;
}
.hrms-emp-cal-day.is-today {
  box-shadow: 0 0 0 2px #0f766e inset;
}
.hrms-emp-cal-day.mark-p {
  background: #ecfdf5;
  border-color: #a7f3d0;
}
.hrms-emp-cal-day.mark-lt {
  background: #fffbeb;
  border-color: #fde68a;
}
.hrms-emp-cal-day.mark-off {
  background: #f1f5f9;
  border-color: #cbd5e1;
}
.hrms-emp-cal-day.mark-lv,
.hrms-emp-cal-day.mark-lop {
  background: #fef2f2;
  border-color: #fecaca;
}
.hrms-emp-cal-day.mark-ho {
  background: #fffbeb;
  border-color: #fde68a;
}
.hrms-emp-cal-day.mark-hd {
  background: #fff7ed;
  border-color: #fed7aa;
}
.hrms-emp-cal-day.mark-sh {
  background: #fff1f2;
  border-color: #fecdd3;
}
.hrms-roster-chip.mark-hd {
  background: #ffedd5;
  color: #9a3412;
}
.hrms-roster-chip.mark-lt {
  background: #fef3c7;
  color: #92400e;
}
.hrms-roster-chip.mark-sh {
  background: #ffe4e6;
  color: #9f1239;
}
.hrms-emp-cal-day.mark-co {
  background: #f5f3ff;
  border-color: #ddd6fe;
}
.hrms-emp-cal-day.mark-a {
  background: #fff1f2;
  border-color: #fecdd3;
}
.hrms-emp-cal-day.mark-fut {
  background: #f8fafc;
  opacity: 0.65;
}
.hrms-roster-chip.mark-a {
  background: #ffe4e6;
  color: #9f1239;
}
.hrms-table tr.is-past td {
  color: #94a3b8;
}
.hrms-table tr.is-next td {
  background: #ecfdf5;
}
@media (max-width: 700px) {
  .hrms-emp-cal {
    gap: 5px;
  }
  .hrms-emp-cal-day,
  .hrms-emp-cal-empty {
    min-height: 92px;
    padding: 6px;
  }
  .hrms-emp-cal-day small {
    font-size: 9px;
    white-space: normal;
  }
}

.hrms-pay-months {
  margin-bottom: 12px;
}
.hrms-pay-months-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--hrms-muted);
}
.hrms-pay-months .hrms-table td,
.hrms-pay-months .hrms-table th {
  padding: 10px 14px;
  vertical-align: middle;
}
.hrms-pay-months tr.is-open td {
  background: #f0fdfa;
}
.hrms-pay-this-month {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 600;
  color: #0f766e;
}
.hrms-pay-months-go {
  white-space: nowrap;
}
.hrms-pay-months-go a {
  margin-left: 10px;
  font-size: 12px;
  font-weight: 700;
  color: #0f766e;
}
.hrms-pay-months-go a:first-child {
  margin-left: 0;
}

/* ----- Team feed ----- */
.hrms-feed-avatar-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(180deg, #0f766e, #115e59);
  font-size: 16px;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.12);
}
.hrms-feed-avatar-sm.hrms-feed-avatar-letter {
  font-size: 13px;
}
.hrms-fb-page {
  max-width: 1040px;
  margin: 0 auto 40px;
}
.hrms-fb-hero {
  margin-bottom: 18px;
}
.hrms-fb-count {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #ecfdf5;
  font-size: 13px;
  font-weight: 700;
}
.hrms-fb-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 276px;
  gap: 18px;
  align-items: start;
}
.hrms-fb-aside {
  position: sticky;
  top: 82px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hrms-fb-side-card {
  background: #fff;
  border: 1px solid var(--hrms-border);
  border-radius: 14px;
  box-shadow: var(--hrms-shadow);
  padding: 16px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.hrms-fb-side-avatar {
  width: 52px;
  height: 52px;
}
.hrms-fb-side-card strong {
  display: block;
  font-size: 14px;
  color: var(--hrms-ink);
}
.hrms-fb-side-card span {
  display: block;
  font-size: 12px;
  color: var(--hrms-muted);
  margin-top: 2px;
}
.hrms-fb-side-note {
  display: block;
}
.hrms-fb-side-note h4 {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 800;
  color: var(--hrms-ink);
}
.hrms-fb-side-note ul {
  margin: 0;
  padding-left: 18px;
  color: var(--hrms-muted);
  font-size: 12px;
  line-height: 1.55;
}
.hrms-fb-side-note p,
.hrms-fb-side-stat {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--hrms-muted);
}
.hrms-fb-side-cta {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--hrms-primary);
}
.hrms-fb-composer {
  background: #fff;
  border: 1px solid var(--hrms-border);
  border-radius: 14px;
  box-shadow: var(--hrms-shadow);
  padding: 14px 16px 12px;
  margin-bottom: 16px;
}
a.hrms-fb-composer-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
a.hrms-fb-composer-link:hover {
  border-color: #cbd5d1;
}
.hrms-fb-file {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}
.hrms-fb-composer-top {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.hrms-fb-composer-top textarea,
.hrms-fb-fake-input {
  flex: 1;
  min-height: 44px;
  border: none;
  background: #f3f4f6;
  border-radius: 22px;
  padding: 11px 16px;
  font-size: 15px;
  line-height: 1.4;
  color: var(--hrms-ink);
  font-family: inherit;
}
.hrms-fb-composer-top textarea {
  resize: none;
  max-height: 180px;
  overflow: hidden;
}
.hrms-fb-fake-input {
  display: flex;
  align-items: center;
  color: #64748b;
}
.hrms-fb-composer-top textarea:focus {
  outline: none;
  background: #eef2f1;
}
.hrms-fb-preview {
  position: relative;
  margin: 12px 0 4px;
  border-radius: 12px;
  overflow: hidden;
  background: #0f172a;
}
.hrms-fb-preview img,
.hrms-fb-preview video {
  display: block;
  width: 100%;
  max-height: 280px;
  object-fit: contain;
}
.hrms-fb-preview-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.78);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.hrms-fb-composer-bar {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 8px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #eef2f1;
}
.hrms-fb-pick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 10px;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  background: #f8fafc;
  text-decoration: none;
}
.hrms-fb-pick-photo {
  color: #15803d;
}
.hrms-fb-pick-video {
  color: #b45309;
}
.hrms-fb-pick:hover {
  background: #f1f5f9;
}
.hrms-fb-post-btn {
  border: none;
  background: var(--hrms-primary);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  border-radius: 10px;
  padding: 9px 18px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.hrms-fb-post-btn:hover,
.hrms-fb-post-btn:disabled {
  background: var(--hrms-primary-hover);
  color: #fff;
}
.hrms-fb-card {
  margin-bottom: 14px;
  border-radius: 14px;
  overflow: hidden;
}
.hrms-fb-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px 8px;
}
.hrms-fb-card-who {
  flex: 1;
  min-width: 0;
}
.hrms-fb-card-who .hrms-feed-author-name {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.hrms-fb-card-body {
  padding: 0 16px 10px;
}
.hrms-fb-card .hrms-feed-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: #1e293b;
}
.hrms-fb-card .hrms-feed-subject {
  font-size: 16px;
  font-weight: 800;
  color: var(--hrms-ink);
  margin-bottom: 6px;
}
.hrms-fb-more {
  border: none;
  background: none;
  color: #475569;
  font-weight: 800;
  font-size: 13px;
  padding: 4px 0 0;
  cursor: pointer;
}
.hrms-fb-more:hover {
  text-decoration: underline;
}
.hrms-fb-media {
  margin: 0;
  background: #0b1220;
}
.hrms-fb-media img,
.hrms-fb-media video {
  display: block;
  width: 100%;
  max-height: 540px;
  object-fit: contain;
}
.hrms-fb-photo {
  cursor: zoom-in;
}
.hrms-fb-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 16px 8px;
  font-size: 13px;
  color: var(--hrms-muted);
}
.hrms-fb-like-side {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hrms-fb-like-chip {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--hrms-primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}
.hrms-fb-comment-count {
  border: none;
  background: none;
  color: var(--hrms-muted);
  font-size: 13px;
  cursor: pointer;
  padding: 0;
}
.hrms-fb-comment-count:hover {
  text-decoration: underline;
}
.hrms-fb-actions {
  display: flex;
  align-items: stretch;
  gap: 6px;
  margin: 0 10px;
  padding: 4px 0 8px;
  border-top: 1px solid #eef2f1;
}
.hrms-fb-like-form {
  flex: 1;
  margin: 0;
  display: flex;
}
.hrms-fb-act {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 8px;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
}
.hrms-fb-act:hover {
  background: #f8fafc;
  color: var(--hrms-ink);
}
.hrms-fb-act.is-on {
  color: var(--hrms-primary);
  background: var(--hrms-primary-soft);
}
.hrms-fb-comments {
  padding: 4px 16px 14px;
  background: #fff;
}
.hrms-fb-view-all {
  border: none;
  background: none;
  color: #475569;
  font-weight: 700;
  font-size: 13px;
  padding: 4px 0 8px;
  cursor: pointer;
}
.hrms-fb-comment-list .hrms-feed-comment {
  background: transparent;
  border: none;
  padding: 4px 0;
  margin: 0;
  align-items: flex-start;
}
.hrms-feed-comment.is-hidden {
  display: none;
}
.hrms-fb-comment-bubble {
  background: #f3f4f6;
  border-radius: 16px;
  padding: 8px 12px;
  display: inline-block;
  max-width: 100%;
}
.hrms-feed-comment-body {
  flex: 1;
  min-width: 0;
}
.hrms-fb-comment-bubble .hrms-feed-comment-author {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 2px;
}
.hrms-fb-delete,
.hrms-fb-comment-del {
  margin: 0;
}
.hrms-fb-delete button,
.hrms-fb-comment-del button {
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 20px;
  line-height: 1;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
}
.hrms-fb-delete button:hover,
.hrms-fb-comment-del button:hover {
  background: #f1f5f9;
  color: var(--hrms-danger);
}
.hrms-fb-comments .hrms-feed-comment-time {
  display: block;
  padding: 2px 12px 0;
}
.hrms-fb-comment-form {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.hrms-fb-comment-input {
  flex: 1;
  border: none;
  background: #f3f4f6;
  border-radius: 20px;
  padding: 9px 14px;
  font-size: 13px;
  font-family: inherit;
  color: var(--hrms-ink);
}
.hrms-fb-comment-input:focus {
  outline: none;
  background: #e8eaed;
}
.hrms-fb-comment-send {
  border: none;
  background: transparent;
  color: var(--hrms-primary);
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  padding: 6px 4px;
}
.hrms-fb-empty {
  background: #fff;
  border: 1px dashed #cbd5d1;
  border-radius: 14px;
  padding: 36px 20px;
  text-align: center;
  color: var(--hrms-muted);
}
.hrms-fb-empty i {
  font-size: 28px;
  color: var(--hrms-primary);
}
.hrms-fb-empty h3 {
  margin: 10px 0 6px;
  color: var(--hrms-ink);
  font-size: 18px;
}
.hrms-fb-empty p {
  margin: 0 0 14px;
}
.hrms-fb-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(15, 23, 42, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}
.hrms-fb-lightbox[hidden] {
  display: none !important;
}
.hrms-fb-lightbox img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 8px;
}
.hrms-fb-lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
}
@media (max-width: 980px) {
  .hrms-fb-layout {
    grid-template-columns: 1fr;
  }
  .hrms-fb-aside {
    position: static;
    display: none;
  }
}
@media (max-width: 700px) {
  .hrms-fb-composer-bar {
    grid-template-columns: 1fr 1fr;
  }
  .hrms-fb-post-btn {
    grid-column: 1 / -1;
  }
  .hrms-fb-card-head,
  .hrms-fb-card-body,
  .hrms-fb-stats,
  .hrms-fb-comments {
    padding-left: 12px;
    padding-right: 12px;
  }
}

.hrms-nca-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hrms-nca-chip {
  border: 1px solid var(--hrms-border);
  background: #f8fafc;
  color: #334155;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.hrms-nca-chip:hover {
  border-color: #99f6e4;
  background: #f0fdfa;
  color: var(--hrms-primary-dark);
}
.hrms-nca-chip.is-on {
  background: var(--hrms-primary);
  border-color: var(--hrms-primary);
  color: #fff;
}
.hrms-form-field input[readonly],
.hrms-form-field textarea[readonly] {
  background: #f8fafc;
  color: #64748b;
  cursor: default;
}
.hrms-nca-time-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
}
.hrms-nca-time-row input {
  flex: 1;
}
.hrms-nca-btn {
  min-width: 88px;
  height: 38px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  padding: 0 16px;
}
.hrms-nca-btn-start {
  background: #0f766e;
  color: #fff;
}
.hrms-nca-btn-start:hover:not(:disabled) {
  background: #0d9488;
}
.hrms-nca-btn-end {
  background: #e11d48;
  color: #fff;
}
.hrms-nca-btn-end:hover:not(:disabled) {
  background: #be123c;
}
.hrms-nca-btn:disabled {
  background: #cbd5e1;
  color: #64748b;
  cursor: not-allowed;
}

.hrms-avatar-sm img,
img.hrms-avatar-sm {
  width: 32px;
  height: 32px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.hrms-celeb-strip {
  background: #fff;
  border: 1px solid var(--hrms-border);
  border-radius: 14px;
  padding: 12px 14px 10px;
  margin-bottom: 14px;
  box-shadow: var(--hrms-shadow);
}
.hrms-celeb-strip-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--hrms-muted);
  margin-bottom: 8px;
}
.hrms-celeb-strip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hrms-celeb-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 6px 10px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 13px;
}
.hrms-celeb-chip strong {
  font-weight: 800;
}
.hrms-celeb-chip em {
  font-style: normal;
  color: inherit;
  opacity: 0.8;
  font-size: 12px;
}
.hrms-celeb-chip-birthday {
  background: #fff1f2;
  color: #9f1239;
}
.hrms-celeb-chip-work {
  background: #f0fdfa;
  color: #115e59;
}
.hrms-celeb-chip-marriage {
  background: #f5f3ff;
  color: #6d28d9;
}
.hrms-celeb-highlight {
  margin: 0 0 22px;
  padding: 16px 18px 14px;
  border-radius: 16px;
  background:
    linear-gradient(135deg, #fff7ed 0%, #fff1f2 55%, #fdf4ff 100%);
  border: 1px solid #fecdd3;
  box-shadow: 0 10px 28px rgba(190, 18, 60, 0.08);
}
.hrms-celeb-highlight-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.hrms-celeb-highlight-head strong {
  display: block;
  font-size: 16px;
  color: #9f1239;
}
.hrms-celeb-highlight-head span {
  display: block;
  font-size: 12px;
  color: #be123c;
  font-weight: 600;
}
.hrms-celeb-highlight-head a {
  flex-shrink: 0;
  background: #be123c;
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
  border-radius: 999px;
  padding: 8px 14px;
}
.hrms-celeb-highlight-head a:hover {
  background: #9f1239;
  color: #fff;
}
.hrms-celeb-highlight-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}
.hrms-celeb-highlight-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  border: 1px solid #fecdd3;
}
.hrms-celeb-highlight-card.hrms-celeb-chip-work {
  border-color: #99f6e4;
}
.hrms-celeb-highlight-card.hrms-celeb-chip-marriage {
  border-color: #ddd6fe;
}
.hrms-celeb-highlight-card.is-me {
  box-shadow: 0 0 0 2px #fb7185;
}
.hrms-celeb-highlight-card img,
.hrms-celeb-highlight-letter {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.hrms-celeb-highlight-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff1f2;
  color: #9f1239;
  font-weight: 800;
}
.hrms-celeb-highlight-card em {
  display: block;
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #be123c;
}
.hrms-celeb-highlight-card.hrms-celeb-chip-work em {
  color: #0f766e;
}
.hrms-celeb-highlight-card.hrms-celeb-chip-marriage em {
  color: #6d28d9;
}
.hrms-celeb-highlight-card strong {
  display: block;
  font-size: 15px;
  color: var(--hrms-ink);
}
.hrms-celeb-highlight-card small {
  display: block;
  font-size: 12px;
  color: var(--hrms-muted);
}
.hrms-celeb-banner {
  margin: 0 0 16px;
}
.hrms-celeb-banner-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, #fff7ed 0%, #fff1f2 100%);
  border: 1px solid #fecdd3;
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 10px;
}
.hrms-celeb-banner-item.hrms-celeb-chip-work {
  background: linear-gradient(135deg, #f0fdfa 0%, #ecfeff 100%);
  border-color: #99f6e4;
}
.hrms-celeb-banner-item.hrms-celeb-chip-marriage {
  background: linear-gradient(135deg, #f5f3ff 0%, #fdf2f8 100%);
  border-color: #ddd6fe;
}
.hrms-celeb-banner-emoji {
  font-size: 28px;
  line-height: 1;
}
.hrms-celeb-banner-item strong {
  display: block;
  font-size: 16px;
  color: var(--hrms-ink);
}
.hrms-celeb-banner-item p {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--hrms-muted);
}
.hrms-celeb-banner-item .hrms-btn-submit {
  margin-left: auto;
  white-space: nowrap;
}
.hrms-celeb-dash {
  margin-top: 16px;
}
.hrms-celeb-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #fff1f2;
  color: #9f1239;
  font-size: 11px;
  font-weight: 800;
  vertical-align: middle;
}
.hrms-fb-card.is-celeb-work .hrms-celeb-badge {
  background: #f0fdfa;
  color: #115e59;
}
.hrms-fb-card.is-celeb-marriage .hrms-celeb-badge {
  background: #f5f3ff;
  color: #6d28d9;
}
.hrms-fb-card.is-celeb {
  border: 1px solid #fecdd3;
}
.hrms-fb-card.is-celeb-work {
  border-color: #99f6e4;
}
.hrms-fb-card.is-celeb-marriage {
  border-color: #ddd6fe;
}
.hrms-celeb-card {
  border-radius: 12px;
  overflow: hidden;
}
.hrms-celeb-hero {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0 10px;
}
.hrms-celeb-photo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #ccfbf1;
}
.hrms-celeb-photo-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  color: #115e59;
}
.hrms-celeb-hero-text {
  min-width: 0;
}
.hrms-celeb-kicker {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #be123c;
  margin-bottom: 2px;
}
.hrms-celeb-work .hrms-celeb-kicker {
  color: #0f766e;
}
.hrms-celeb-marriage .hrms-celeb-kicker {
  color: #6d28d9;
}
.hrms-celeb-hero-text strong {
  display: block;
  font-size: 18px;
  line-height: 1.3;
  color: var(--hrms-ink);
}
.hrms-celeb-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: #334155;
}
@media (max-width: 720px) {
  .hrms-celeb-banner-item {
    flex-wrap: wrap;
  }
  .hrms-celeb-banner-item .hrms-btn-submit {
    margin-left: 0;
  }
  .hrms-celeb-highlight-head {
    flex-wrap: wrap;
  }
}
