/* ============================================
   人財マネジメントシステム - 共通スタイル（上部ナビ版）
   ============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #1a56db;
  --primary-dark: #1e429f;
  --primary-light: #e8f0fe;
  --nav-bg: #1e2a4a;
  --nav-text: #c8d3e8;
  --nav-hover: #2d3f6b;
  --nav-active: #1a56db;
  --header-bg: #1e2a4a;
  --body-bg: #f0f4f8;
  --card-bg: #ffffff;
  --text-primary: #1a202c;
  --text-secondary: #4a5568;
  --text-muted: #718096;
  --border: #e2e8f0;
  --success: #38a169;
  --success-light: #f0fff4;
  --warning: #d69e2e;
  --warning-light: #fffff0;
  --danger: #e53e3e;
  --danger-light: #fff5f5;
  --info: #3182ce;
  --info-light: #ebf8ff;
  --orange: #dd6b20;
  --orange-light: #fffaf0;
  --purple: #805ad5;
  --purple-light: #faf5ff;
  --teal: #2c7a7b;
  --teal-light: #e6fffa;
}

body {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'メイリオ', sans-serif;
  background: var(--body-bg);
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.5;
}

/* ============ LAYOUT ============ */
.app-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ============ TOP HEADER BAR ============ */
.app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 52px;
  background: var(--header-bg);
  display: flex;
  align-items: center;
  padding: 0 20px;
  z-index: 1000;
  gap: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: white;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}

.header-logo .logo-icon {
  width: 30px;
  height: 30px;
  background: var(--primary);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.header-search {
  flex: 1;
  max-width: 360px;
  position: relative;
}

.header-search input {
  width: 100%;
  padding: 7px 12px 7px 34px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.1);
  color: white;
  font-size: 13px;
  outline: none;
  transition: background 0.2s;
}

.header-search input:focus {
  background: rgba(255,255,255,0.18);
}

.header-search input::placeholder {
  color: rgba(255,255,255,0.45);
}

.header-search .search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.45);
  font-size: 12px;
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-icon-btn {
  width: 34px;
  height: 34px;
  border: none;
  background: rgba(255,255,255,0.1);
  color: white;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  position: relative;
  transition: background 0.15s;
}

.header-icon-btn:hover {
  background: rgba(255,255,255,0.22);
}

.notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #e53e3e;
  color: white;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  font-size: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.header-user {
  display: flex;
  align-items: center;
  gap: 8px;
  color: white;
  padding: 4px 10px;
  background: rgba(255,255,255,0.1);
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.15s;
}

.header-user:hover { background: rgba(255,255,255,0.18); }

.header-user .user-avatar {
  width: 26px;
  height: 26px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

/* ============ TOP NAV BAR (secondary) ============ */
.top-nav {
  position: fixed;
  top: 52px;
  left: 0;
  right: 0;
  height: 44px;
  background: #253356;
  display: flex;
  align-items: stretch;
  padding: 0 16px;
  z-index: 990;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 2px solid #1a56db;
}

.top-nav::-webkit-scrollbar { display: none; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  color: var(--nav-text);
  text-decoration: none;
  font-size: 12.5px;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  border: none;
  background: none;
  height: 100%;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
}

.nav-item:hover {
  background: rgba(255,255,255,0.08);
  color: white;
}

.nav-item.active {
  background: rgba(26,86,219,0.25);
  color: white;
  border-bottom-color: #60a5fa;
}

.nav-item .nav-icon {
  font-size: 13px;
  flex-shrink: 0;
}

.nav-item .nav-label {
  font-size: 12.5px;
  font-weight: 500;
}

.nav-divider {
  width: 1px;
  background: rgba(255,255,255,0.1);
  margin: 8px 4px;
  flex-shrink: 0;
}

/* ============ MAIN CONTENT ============ */
.main-content {
  margin-top: 96px; /* header(52) + topnav(44) */
  flex: 1;
  overflow-y: auto;
  min-height: calc(100vh - 96px);
  padding: 0;
}

.page-container {
  padding: 20px 28px;
  max-width: 1600px;
}

/* ============ BREADCRUMB ============ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.breadcrumb a {
  color: var(--primary);
  text-decoration: none;
}

.breadcrumb a:hover { text-decoration: underline; }

/* ============ PAGE HEADER ============ */
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
}

.page-title-area h1 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.page-title-area .page-desc {
  font-size: 13px;
  color: var(--text-secondary);
}

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

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.15s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover { background: var(--primary-dark); }

.btn-secondary {
  background: white;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover { background: #f7fafc; }

.btn-success {
  background: var(--success);
  color: white;
}

.btn-danger {
  background: var(--danger);
  color: white;
}

.btn-sm {
  padding: 5px 11px;
  font-size: 12px;
}

.btn-xs {
  padding: 3px 8px;
  font-size: 11px;
}

/* ============ STATS CARDS ============ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.stat-card {
  background: white;
  border-radius: 10px;
  padding: 16px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.stat-card .stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.stat-card .stat-body { flex: 1; }

.stat-card .stat-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.stat-card .stat-value {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
}

.stat-card .stat-value .stat-unit {
  font-size: 14px;
  font-weight: 500;
}

.stat-card .stat-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.stat-card .stat-trend {
  font-size: 11px;
  font-weight: 600;
}

.stat-trend.up { color: var(--success); }
.stat-trend.down { color: var(--danger); }
.stat-trend.neutral { color: var(--text-muted); }

/* ============ CARD ============ */
.card {
  background: white;
  border-radius: 10px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.card-header {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-body {
  padding: 16px;
}

/* ============ TABLE ============ */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table th {
  background: #f7fafc;
  padding: 9px 12px;
  text-align: left;
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
  font-size: 12px;
}

.data-table td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
}

.data-table tbody tr:hover {
  background: #f7fafc;
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

/* ============ BADGES / TAGS ============ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}

.badge-green { background: #c6f6d5; color: #276749; }
.badge-blue { background: #bee3f8; color: #2a4a8a; }
.badge-orange { background: #feebc8; color: #9c4221; }
.badge-red { background: #fed7d7; color: #9b2c2c; }
.badge-gray { background: #e2e8f0; color: #4a5568; }
.badge-purple { background: #e9d8fd; color: #553c9a; }
.badge-yellow { background: #fefcbf; color: #7b6b00; }
.badge-teal { background: #b2f5ea; color: #234e52; }

/* ============ STATUS BADGES ============ */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}

.status-complete { background: #c6f6d5; color: #276749; }
.status-pending { background: #feebc8; color: #9c4221; }
.status-waiting { background: #bee3f8; color: #2a4a8a; }
.status-overdue { background: #fed7d7; color: #9b2c2c; }
.status-scheduled { background: #e9d8fd; color: #553c9a; }
.status-valid { background: #c6f6d5; color: #276749; }
.status-warning { background: #fefcbf; color: #7b6b00; }
.status-unsubmitted { background: #fed7d7; color: #9b2c2c; }

/* ============ AVATAR ============ */
.avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--primary-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  flex-shrink: 0;
  overflow: hidden;
}

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

/* ============ FILTERS BAR ============ */
.filters-bar {
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
  align-items: flex-end;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.filter-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.filter-select,
.filter-input {
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 12px;
  color: var(--text-primary);
  background: white;
  cursor: pointer;
  min-width: 120px;
}

.filter-select:focus,
.filter-input:focus {
  outline: none;
  border-color: var(--primary);
}

/* ============ TABS ============ */
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 16px;
}

.tab-item {
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  transition: all 0.15s;
}

.tab-item:hover { color: var(--primary); }

.tab-item.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 600;
}

/* ============ PAGINATION ============ */
.pagination {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  justify-content: space-between;
}

.pagination-info {
  font-size: 12px;
  color: var(--text-muted);
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}

.page-btn {
  width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  background: white;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 12px;
  color: var(--text-primary);
}

.page-btn:hover { background: var(--primary-light); color: var(--primary); }
.page-btn.active { background: var(--primary); color: white; border-color: var(--primary); }

.page-size-select {
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: 5px;
  font-size: 12px;
  background: white;
}

/* ============ ALERT LIST ITEMS ============ */
.alert-list-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}

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

.day-badge {
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.day-overdue { background: #fed7d7; color: #9b2c2c; }
.day-soon { background: #feebc8; color: #9c4221; }
.day-warning { background: #fefcbf; color: #7b6b00; }
.day-ok { background: #c6f6d5; color: #276749; }

/* ============ PROGRESS BAR ============ */
.progress-wrap {
  background: #e2e8f0;
  border-radius: 999px;
  height: 6px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--primary);
  transition: width 0.3s;
}

/* ============ LINK ============ */
.link {
  color: var(--primary);
  text-decoration: none;
  font-size: 12px;
}

.link:hover { text-decoration: underline; }

/* ============ SCORE BUBBLE ============ */
.score-bubble {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: white;
}

.score-5 { background: #e53e3e; }
.score-4 { background: #ed8936; }
.score-3 { background: #ecc94b; color: #7b6b00; }
.score-2 { background: #63b3ed; }
.score-1 { background: #a0aec0; }
.score-0 { background: #e2e8f0; color: #718096; font-size: 10px; }

/* ============ STAR RATING ============ */
.stars { display: inline-flex; gap: 2px; }
.star { color: #fbbf24; font-size: 14px; }
.star.empty { color: #e2e8f0; }

/* ============ GRID LAYOUTS ============ */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }

/* ============ HIDDEN PAGES ============ */
.page-view { display: none; }
.page-view.active { display: block; }

/* ============ EMPLOYEE NAME CELL ============ */
.emp-name-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.emp-info .name { font-weight: 600; font-size: 13px; }
.emp-info .branch { font-size: 11px; color: var(--text-muted); }

/* ============ HR CARD SPECIFIC ============ */
.karute-layout {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}

.emp-profile-header {
  background: white;
  border-radius: 10px;
  border: 1px solid var(--border);
  padding: 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--primary);
  font-weight: 700;
  flex-shrink: 0;
}

.profile-main { flex: 1; }
.profile-id { font-size: 11px; color: var(--text-muted); margin-bottom: 4px; }
.profile-name { font-size: 22px; font-weight: 700; color: var(--text-primary); display: flex; align-items: center; gap: 8px; }
.profile-kana { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.profile-quote { font-size: 12px; color: var(--text-secondary); font-style: italic; margin-bottom: 12px; }

.profile-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}

.profile-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}

.profile-meta-item .meta-icon {
  color: var(--primary);
  width: 14px;
  text-align: center;
  flex-shrink: 0;
}

.strength-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 500;
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid #bee3f8;
  margin: 2px;
}

/* ============ ORG CHART ============ */
.org-tree-container {
  overflow-x: auto;
  padding: 20px 16px;
}

.org-box {
  border-radius: 8px;
  padding: 8px 14px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: box-shadow 0.15s;
  white-space: nowrap;
  min-width: 100px;
}

.org-box:hover { box-shadow: 0 2px 10px rgba(0,0,0,0.15); }

.org-box-hq {
  background: #1e2a4a;
  color: white;
  min-width: 170px;
  padding: 10px 22px;
  font-size: 13px;
}

.org-box-corp {
  background: #bee3f8;
  color: #1e2a4a;
  border: 1px solid #90cdf4;
}

.org-box-branch {
  background: #e6fffa;
  color: #234e52;
  border: 1px solid #81e6d9;
  font-size: 11px;
  padding: 6px 10px;
  min-width: 82px;
}

.org-connector-v {
  width: 2px;
  height: 20px;
  background: #cbd5e0;
  margin: 0 auto;
}

.count-badge {
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 10px;
  color: var(--text-secondary);
  white-space: nowrap;
  display: block;
  text-align: center;
}

/* ============ SKILL TABLE ============ */
.skill-table-wrap { overflow-x: auto; }

.skill-table {
  border-collapse: collapse;
  font-size: 12px;
  min-width: 900px;
}

.skill-table th {
  background: #ebf8ff;
  padding: 6px 8px;
  text-align: center;
  font-weight: 600;
  font-size: 11px;
  border: 1px solid #bee3f8;
  white-space: nowrap;
}

.skill-table td {
  padding: 6px 8px;
  border: 1px solid var(--border);
  text-align: center;
  vertical-align: middle;
}

.skill-group-header {
  background: #dbeafe;
  font-weight: 700;
  text-align: center;
  padding: 5px;
  font-size: 11px;
  color: #1d4ed8;
}

.skill-group-mgmt { background: #fef3c7; color: #92400e; }
.skill-group-it { background: #d1fae5; color: #065f46; }

/* ============ EVAL RIGHT PANEL ============ */
.eval-right-panel {
  width: 270px;
  flex-shrink: 0;
}

/* ============ EVAL CRITERIA ============ */
.eval-criteria-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}

.eval-criteria-card {
  background: white;
  border-radius: 8px;
  border: 1px solid var(--border);
  padding: 14px;
}

.criteria-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 5px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.criteria-desc {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.criteria-item {
  background: #f7fafc;
  border-radius: 6px;
  padding: 6px 9px;
  margin-bottom: 5px;
}

.criteria-item-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1px;
}

.criteria-item-desc {
  font-size: 11px;
  color: var(--text-muted);
}

/* ============ QUAL HORIZ BAR ============ */
.bar-chart-horiz .bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.bar-row .bar-label {
  width: 150px;
  text-align: right;
  color: var(--text-secondary);
  flex-shrink: 0;
  font-size: 11px;
}

.bar-row .bar-fill-wrap {
  flex: 1;
  height: 14px;
  background: #e2e8f0;
  border-radius: 7px;
  overflow: hidden;
}

.bar-row .bar-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 7px;
}

.bar-row .bar-value {
  width: 28px;
  font-size: 12px;
  font-weight: 600;
  text-align: right;
}

/* ============ TALENT CARD ============ */
.talent-card {
  background: var(--primary-light);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.talent-card .talent-info { flex: 1; }
.talent-card .talent-name { font-size: 13px; font-weight: 700; margin-bottom: 2px; }
.talent-card .talent-role { font-size: 11px; color: var(--text-muted); margin-bottom: 4px; }

.talent-tag {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 600;
  margin: 2px 2px 0 0;
}

.tag-green { background: #c6f6d5; color: #276749; }
.tag-orange { background: #feebc8; color: #9c4221; }
.tag-blue { background: #bee3f8; color: #2a4a8a; }
.tag-purple { background: #e9d8fd; color: #553c9a; }

/* ============ NOTIFICATION ============ */
.notification-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}

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

.notif-time {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  margin-top: 2px;
  flex-shrink: 0;
}

.notif-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
}

/* ============ ALLOC ITEM ============ */
.alloc-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}

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

.priority-tag {
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.priority-high { background: #fed7d7; color: #9b2c2c; }
.priority-mid { background: #feebc8; color: #9c4221; }
.priority-low { background: #bee3f8; color: #2a4a8a; }

/* ============ SCROLLBAR ============ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f0f4f8; }
::-webkit-scrollbar-thumb { background: #c8d3e8; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #a0aec0; }
