:root {
  --hc-red: #b51f24;
  --hc-red-dark: #94191e;
  --hc-black: #111;
  --hc-bg: #f4f5f7;
  --hc-border: #e8e9ed;
  --hc-muted: #777;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--hc-bg);
  color: #202124;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
}
.app-shell {
  min-height: 100vh;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 250px;
  background: #111;
  color: #fff;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  z-index: 1000;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  text-decoration: none;
  padding: 0 8px 26px;
  border-bottom: 1px solid #333;
  font-weight: 800;
  letter-spacing: 0.5px;
}
.brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  background: white;
  border-radius: 7px;
}
.brand b {
  color: #e34b50;
}
.brand small {
  display: block;
  color: #999;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1px;
  margin-top: 3px;
}
.nav-label {
  font-size: 10px;
  letter-spacing: 1.4px;
  color: #858585;
  font-weight: 700;
  margin: 25px 10px 8px;
}
.sidebar .nav-link {
  display: flex;
  gap: 12px;
  align-items: center;
  color: #c4c4c4;
  padding: 11px 12px;
  border-radius: 8px;
  text-decoration: none;
  margin: 2px 0;
  font-weight: 600;
}
.sidebar .nav-link i {
  font-size: 17px;
}
.sidebar .nav-link:hover,
.sidebar .nav-link.active {
  background: #2b2021;
  color: #fff;
}
.sidebar .nav-link.active {
  box-shadow: inset 3px 0 var(--hc-red);
}
.sidebar-bottom {
  margin-top: auto;
  border-top: 1px solid #333;
  padding: 18px 4px 0;
  display: flex;
  align-items: center;
  gap: 9px;
}
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--hc-red);
  font-weight: 800;
}
.user-info {
  min-width: 0;
  flex: 1;
}
.user-info b,
.user-info small {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-info small {
  color: #aaa;
}
.icon-btn,
.actions button {
  background: none;
  border: 0;
  color: inherit;
}
.main-area {
  margin-left: 250px;
  min-height: 100vh;
}
.topbar {
  height: 88px;
  background: white;
  border-bottom: 1px solid var(--hc-border);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 34px;
  position: sticky;
  top: 0;
  z-index: 500;
}
.topbar h1 {
  font-size: 21px;
  font-weight: 800;
  margin: 3px 0 0;
}
.topbar small {
  font-size: 10px;
  letter-spacing: 1px;
  font-weight: 700;
}
.topbar-user {
  margin-left: auto;
  font-weight: 700;
  color: #555;
}
.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2ea66b;
  margin-right: 5px;
}
.content-area {
  padding: 28px 34px 50px;
  max-width: 1600px;
  margin: auto;
}
.menu-toggle {
  display: none;
  border: 0;
  background: none;
  font-size: 25px;
}
.welcome-row,
.page-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}
.welcome-row h2 {
  font-size: 23px;
  font-weight: 800;
  margin: 5px 0;
}
.eyebrow {
  font-size: 10px;
  color: var(--hc-red);
  font-weight: 800;
  letter-spacing: 1.5px;
}
.btn-hc {
  background: var(--hc-red);
  border-color: var(--hc-red);
  color: #fff;
  font-weight: 700;
}
.btn-hc:hover {
  background: var(--hc-red-dark);
  border-color: var(--hc-red-dark);
  color: #fff;
}
.btn-outline-hc {
  border: 1px solid var(--hc-red);
  color: var(--hc-red);
  font-weight: 700;
}
.btn-outline-hc:hover {
  background: var(--hc-red);
  color: #fff;
}
.stat-card,
.panel-card {
  background: #fff;
  border: 1px solid var(--hc-border);
  border-radius: 12px;
  box-shadow: 0 3px 14px rgba(20, 20, 20, 0.025);
}
.stat-card {
  padding: 19px;
  height: 100%;
  position: relative;
}
.stat-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: #f9e9e9;
  color: var(--hc-red);
  display: grid;
  place-items: center;
  font-size: 18px;
  margin-bottom: 14px;
}
.stat-value {
  font-size: 27px;
  font-weight: 800;
  line-height: 1.1;
}
.stat-label {
  color: #777;
  margin-top: 5px;
  font-size: 12px;
}
.panel-card {
  overflow: hidden;
}
.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 22px 12px;
  gap: 12px;
}
.panel-heading h3,
.panel-card h3 {
  font-size: 15px;
  font-weight: 800;
  margin: 0 0 4px;
}
.panel-heading p {
  color: #888;
  font-size: 12px;
  margin: 0;
}
.panel-heading a {
  color: var(--hc-red);
  font-weight: 700;
  text-decoration: none;
  font-size: 12px;
}
.hc-table {
  margin: 0;
  font-size: 12px;
  white-space: nowrap;
}
.hc-table thead th {
  background: #fafafa;
  color: #777;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--hc-border);
}
.hc-table td {
  padding: 13px 16px;
  vertical-align: middle;
}
.candidate-name {
  font-weight: 800;
  color: #222;
  text-decoration: none;
}
.candidate-name:hover {
  color: var(--hc-red);
}
.hc-table td small {
  display: block;
  color: #888;
  font-size: 10px;
  margin-top: 3px;
}
.stage-pill {
  display: inline-block;
  background: #f3f3f4;
  border-radius: 20px;
  padding: 5px 9px;
  font-size: 10px;
  font-weight: 700;
  color: #555;
}
.pipeline-row {
  padding: 8px 22px;
}
.pipeline-row > div:first-child {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 6px;
}
.pipeline-row b {
  font-weight: 800;
}
.progress {
  height: 5px;
  background: #f0eeee;
}
.progress-bar {
  background: var(--hc-red);
}
.page-actions {
  margin-bottom: 15px;
}
.page-actions p {
  margin: 0;
}
.filter-bar {
  display: flex;
  gap: 8px;
  padding: 16px;
  border-bottom: 1px solid var(--hc-border);
}
.filter-bar .form-control {
  max-width: 310px;
}
.filter-bar .form-select {
  max-width: 190px;
}
.actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.actions a,
.actions button {
  color: #666;
  font-size: 15px;
}
.form-panel {
  padding: 25px;
}
.form-section-title {
  font-weight: 800;
  font-size: 14px;
  margin: 0 0 15px;
}
.form-label {
  font-size: 12px;
  font-weight: 700;
  color: #555;
}
.form-control,
.form-select {
  font-size: 13px;
  border-color: #dedfe3;
  padding: 10px 12px;
}
.form-control:focus,
.form-select:focus {
  border-color: #cb6c70;
  box-shadow: 0 0 0 0.2rem rgba(181, 31, 36, 0.1);
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 24px;
}
.history-item {
  border-left: 2px solid #e6b6b8;
  padding: 0 0 14px 13px;
  margin: 12px 0;
}
.history-item small {
  display: block;
  color: #888;
  margin: 4px 0;
}
.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
  background: linear-gradient(135deg, #111 0%, #21191a 50%, #8f171c 100%);
}
.login-card {
  width: min(100%, 430px);
  background: #fff;
  padding: 38px;
  border-radius: 16px;
  box-shadow: 0 20px 80px #0005;
}
.login-logo {
  width: 74px;
  height: 74px;
  object-fit: contain;
  margin-bottom: 15px;
}
.login-card h1 {
  font-size: 27px;
  font-weight: 800;
}
.login-card p {
  font-size: 13px;
}
.login-foot {
  border-top: 1px solid #eee;
  margin-top: 25px;
  padding-top: 16px;
  color: #999;
  font-size: 9px;
  letter-spacing: 1.2px;
  text-align: center;
  font-weight: 800;
}
@media (max-width: 991px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.25s ease;
  }
  .sidebar.open {
    transform: translateX(0);
    box-shadow: 10px 0 40px #0004;
  }
  .main-area {
    margin-left: 0;
  }
  .menu-toggle {
    display: block;
  }
  .topbar {
    padding: 0 20px;
  }
  .content-area {
    padding: 22px 20px 40px;
  }
}
@media (max-width: 575px) {
  .topbar {
    height: 74px;
    padding: 0 14px;
  }
  .topbar h1 {
    font-size: 18px;
  }
  .topbar small {
    font-size: 8px;
  }
  .topbar-user {
    font-size: 11px;
  }
  .content-area {
    padding: 16px 12px 32px;
  }
  .welcome-row,
  .page-actions {
    align-items: flex-start;
    flex-direction: column;
  }
  .welcome-row h2 {
    font-size: 20px;
  }
  .page-actions > div {
    width: 100%;
    display: flex;
    gap: 6px;
  }
  .page-actions .btn {
    flex: 1;
    font-size: 12px;
    padding: 9px 6px;
  }
  .stat-card {
    padding: 13px;
  }
  .stat-value {
    font-size: 23px;
  }
  .stat-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 10px;
  }
  .stat-label {
    font-size: 10px;
  }
  .panel-heading {
    padding: 16px;
  }
  .filter-bar {
    flex-wrap: wrap;
  }
  .filter-bar .form-control,
  .filter-bar .form-select {
    max-width: none;
    width: 100%;
    flex: 1 1 100%;
  }
  .filter-bar .btn {
    flex: 1;
  }
  .form-panel {
    padding: 17px;
  }
  .login-card {
    padding: 27px 22px;
  }
  .hc-table {
    min-width: 680px;
  }
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .form-actions .btn {
    flex: 1;
  }
  .topbar-user {
    display: none;
  }
}

/* User management: prevent account inputs from being squeezed or clipped. */
.user-create-card {
  height: 100%;
}
.user-account-list {
  display: grid;
  gap: 14px;
}
.user-account-card {
  padding: 18px 20px;
  min-width: 0;
}
.user-account-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--hc-border);
}
.user-avatar {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f8e7e8;
  color: var(--hc-red);
  font-weight: 800;
  font-size: 16px;
}
.user-account-identity {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1;
}
.user-account-identity strong {
  font-size: 13px;
  overflow-wrap: anywhere;
}
.user-account-identity span {
  font-size: 11px;
  color: var(--hc-muted);
  overflow-wrap: anywhere;
}
.user-role-label {
  font-size: 12px;
  font-weight: 700;
  color: #555;
}
.status-active {
  background: #e8f6ee;
  color: #237647;
}
.status-inactive {
  background: #fcebec;
  color: #a32930;
}
.user-edit-form {
  padding-top: 14px;
  min-width: 0;
}
.user-edit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
  min-width: 0;
}
.user-edit-grid > div {
  min-width: 0;
}
.user-edit-grid .form-control,
.user-edit-grid .form-select {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: none;
  height: 38px;
}
.user-edit-grid .form-label {
  display: block;
  margin-bottom: 5px;
}
.user-status-field {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.user-active-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  font-size: 12px;
  font-weight: 600;
  color: #444;
}
.user-active-toggle input {
  width: 17px;
  height: 17px;
  accent-color: var(--hc-red);
}
.user-edit-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}
.users-list-heading h3 {
  font-size: 15px;
  font-weight: 800;
}
.users-list-heading {
  min-width: 0;
}
@media (max-width: 575px) {
  .user-account-card {
    padding: 15px;
  }
  .user-account-summary {
    flex-wrap: wrap;
    gap: 9px;
  }
  .user-account-identity {
    flex-basis: calc(100% - 55px);
  }
  .user-role-label {
    margin-left: 47px;
  }
  .user-edit-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
  .user-edit-grid .form-control,
  .user-edit-grid .form-select {
    height: 42px;
    font-size: 14px;
  }
  .user-edit-actions .btn {
    width: 100%;
    padding: 10px;
  }
  .users-list-heading {
    align-items: flex-start !important;
    gap: 8px;
  }
  .users-list-heading .stage-pill {
    white-space: nowrap;
  }
}

/* Candidates directory: full-width desktop table, no horizontal/inner scrolling. */
.content-area {
  max-width: none;
}
.candidates-panel {
  width: 100%;
  max-width: 100%;
  overflow: visible;
}
.candidate-filters {
  display: grid;
  grid-template-columns: minmax(190px, 1.45fr) minmax(180px, 1.2fr) minmax(
      110px,
      0.8fr
    ) minmax(110px, 0.8fr) 96px auto auto;
  align-items: center;
  gap: 7px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--hc-border);
}
.candidate-filters .form-control,
.candidate-filters .form-select {
  width: 100%;
  min-width: 0;
  max-width: none;
  height: 36px;
  min-height: 36px;
  padding: 5px 9px;
  font-size: 12px;
}
.candidate-filters .btn {
  height: 36px;
  min-height: 36px;
  padding: 0 11px;
  font-size: 12px;
  white-space: nowrap;
  border-radius: 7px;
}
.candidate-table-scroll,
.candidate-table-scroll.table-responsive {
  width: 100%;
  max-width: 100%;
  max-height: none !important;
  min-height: 0;
  overflow-x: hidden !important;
  overflow-y: visible !important;
}
.candidate-data-table {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  table-layout: fixed !important;
  margin: 0 !important;
  border-collapse: collapse;
  white-space: normal !important;
  font-size: 12px;
}
.candidate-data-table thead th {
  padding: 10px 5px !important;
  background: #fafafa;
  color: #777;
  font-size: 9px !important;
  line-height: 1.2;
  font-weight: 750;
  letter-spacing: 0.25px;
  white-space: normal !important;
  vertical-align: middle;
}
.candidate-data-table tbody tr {
  height: 76px;
}
.candidate-data-table tbody td {
  padding: 15px 6px !important;
  font-size: 12px !important;
  line-height: 1.4 !important;
  vertical-align: middle !important;
  white-space: normal !important;
  overflow-wrap: anywhere;
  word-break: normal;
  border-bottom: 1px solid var(--hc-border) !important;
}
.candidate-data-table .candidate-name {
  display: block;
  font-size: 13px !important;
  line-height: 1.3;
  font-weight: 800;
  overflow-wrap: anywhere;
}
.candidate-data-table .candidate-primary {
  display: block;
  font-size: 12px !important;
  line-height: 1.25;
  font-weight: 750;
  overflow-wrap: anywhere;
}
.candidate-data-table tbody td small {
  display: block;
  margin-top: 3px;
  color: #858b94;
  font-size: 10px !important;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.candidate-data-table .experience-value {
  font-size: 12px;
  font-weight: 800;
  white-space: normal;
}
.candidate-data-table .cell-wrap,
.candidate-data-table .remarks-cell {
  white-space: normal !important;
  overflow-wrap: anywhere;
}
.candidate-data-table .stage-pill {
  display: inline-flex;
  max-width: 100%;
  padding: 4px 7px;
  font-size: 10px;
  white-space: normal;
}
/* Fixed column proportions total 100%, including all action icons. */
.candidate-data-table th:nth-child(1),
.candidate-data-table td:nth-child(1) {
  width: 9%;
}
.candidate-data-table th:nth-child(2),
.candidate-data-table td:nth-child(2) {
  width: 10%;
}
.candidate-data-table th:nth-child(3),
.candidate-data-table td:nth-child(3) {
  width: 7%;
}
.candidate-data-table th:nth-child(4),
.candidate-data-table td:nth-child(4) {
  width: 7%;
}
.candidate-data-table th:nth-child(5),
.candidate-data-table td:nth-child(5) {
  width: 7.5%;
}
.candidate-data-table th:nth-child(6),
.candidate-data-table td:nth-child(6) {
  width: 7.5%;
}
.candidate-data-table th:nth-child(7),
.candidate-data-table td:nth-child(7) {
  width: 7%;
}
.candidate-data-table th:nth-child(8),
.candidate-data-table td:nth-child(8) {
  width: 7%;
}
.candidate-data-table th:nth-child(9),
.candidate-data-table td:nth-child(9) {
  width: 7%;
}
.candidate-data-table th:nth-child(10),
.candidate-data-table td:nth-child(10) {
  width: 5%;
}
.candidate-data-table th:nth-child(11),
.candidate-data-table td:nth-child(11) {
  width: 8%;
}
.candidate-data-table th:nth-child(12),
.candidate-data-table td:nth-child(12) {
  width: 6%;
}
.candidate-data-table th:nth-child(13),
.candidate-data-table td:nth-child(13) {
  width: 12%;
}
.candidate-data-table td.actions {
  display: table-cell !important;
  width: 12%;
  min-width: 0 !important;
  padding: 10px 3px !important;
  text-align: center;
  white-space: nowrap !important;
}
.candidate-data-table td.actions > a,
.candidate-data-table td.actions > form {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  margin: 0 1px !important;
}
.candidate-data-table td.actions a,
.candidate-data-table td.actions button {
  width: 24px;
  height: 26px;
  min-width: 24px;
  padding: 0 !important;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #737982 !important;
  font-size: 12px !important;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}
.candidate-data-table td.actions a:hover,
.candidate-data-table td.actions button:hover {
  color: var(--hc-red) !important;
  background: #faeeee;
}
.candidate-data-table tbody tr:hover td {
  background: #fffafa;
}

/* Pagination remains in normal document flow below the complete table. */

/* =====================================
   CANDIDATE PAGINATION - FINAL DESIGN
===================================== */

.candidates-panel .candidate-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 18px 20px;
  margin-top: 0;
  border-top: 1px solid #e9ecef;
  background: #fff;
  width: 100%;
  box-sizing: border-box;
}

.candidates-panel .candidate-pagination-summary {
  color: #6b7280;
  font-size: 13px;
  line-height: 1.5;
  white-space: nowrap;
}

.candidates-panel .candidate-pagination-summary strong {
  color: #252525;
  font-weight: 700;
}

.candidates-panel .candidate-pagination-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 7px;
}

.candidates-panel .candidate-page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid #dee2e6;
  border-radius: 7px;
  background: #fff;
  color: #454545;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none !important;
  white-space: nowrap;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.candidates-panel .candidate-page-link:hover:not(.is-disabled):not(.is-active) {
  color: #bd1e26;
  border-color: #bd1e26;
  background: #fff8f8;
}

.candidates-panel .candidate-page-link.is-active {
  color: #fff;
  background: #bd1e26;
  border-color: #bd1e26;
  cursor: default;
}

.candidates-panel .candidate-page-link.is-disabled {
  color: #b8bdc5;
  background: #f8f9fa;
  border-color: #e9ecef;
  cursor: not-allowed;
  pointer-events: none;
}

.candidates-panel .candidate-page-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  color: #777;
  font-size: 14px;
}

@media (max-width: 650px) {
  .candidates-panel .candidate-pagination {
    flex-direction: column;
    align-items: flex-start;
  }

  .candidates-panel .candidate-pagination-links {
    justify-content: flex-start;
    width: 100%;
  }
}

@media (max-width: 1100px) {
  .candidate-table-scroll,
  .candidate-table-scroll.table-responsive {
    overflow-x: auto !important;
  }
  .candidate-data-table {
    min-width: 1080px !important;
    table-layout: auto !important;
  }
}
@media (max-width: 700px) {
  .candidate-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .candidate-filters input[name="search"],
  .candidate-filters input[name="location"] {
    grid-column: 1 / -1;
  }
  .candidate-filters .btn {
    width: 100%;
  }
  .candidate-data-table tbody tr {
    height: auto;
  }
  .candidate-data-table tbody td {
    padding: 13px 7px !important;
  }
  .candidate-pagination {
    align-items: flex-start !important;
    flex-direction: column;
  }
  .candidate-pagination nav,
  .candidate-pagination-links {
    width: 100%;
    justify-content: flex-start;
    margin-left: 0;
  }
}



/* stage */

.stage-inline-select {
    width: 100%;
    min-width: 125px;
    max-width: 175px;
    padding: 7px 25px 7px 9px;
    border: 1px solid #dedede;
    border-radius: 7px;
    background-color: #fff;
    color: #333;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.stage-inline-select:focus {
    outline: none;
    border-color: #c51f2b;
    box-shadow: 0 0 0 2px rgba(197, 31, 43, 0.10);
}

.stage-inline-select:disabled {
    cursor: wait;
}


/* Fix Stage dropdown and Actions column overlap */

.candidate-data-table th:nth-child(12),
.candidate-data-table td.stage-cell {
    width: 125px;
    min-width: 125px;
}

.stage-inline-select {
    width: 115px !important;
    min-width: 0 !important;
    max-width: 115px !important;
    box-sizing: border-box;
}

.candidate-data-table th:last-child,
.candidate-data-table td.actions {
    width: 100px;
    min-width: 100px;
    white-space: nowrap;
}

.candidate-data-table td.actions {
    display: table-cell;
}

.candidate-data-table td.actions > a,
.candidate-data-table td.actions > form {
    display: inline-flex;
    vertical-align: middle;
    align-items: center;
    justify-content: center;
    margin-right: 7px;
}

.candidate-data-table td.actions > form {
    margin-right: 0;
}

.candidate-data-table td.actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}


/* stage end */




/* ===================================
   Daily Reports - Compact UI
=================================== */

.daily-report-form,
.daily-report-list {
    padding: 16px !important;
    border-radius: 11px;
}

/* Headings */
.daily-report-form h5,
.daily-report-list h5 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 3px !important;
}

.daily-report-form p,
.daily-report-list p {
    font-size: 12px;
}

/* Form spacing */
.daily-report-form .row {
    --bs-gutter-x: 12px;
    --bs-gutter-y: 10px;
}

.daily-report-form .form-label {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 4px;
}

.daily-report-form .form-control,
.daily-report-form .form-select {
    min-height: 36px;
    padding: 7px 10px;
    font-size: 12px;
    border-radius: 7px;
}

.daily-report-form textarea.form-control {
    min-height: 65px;
    height: 65px;
    resize: vertical;
    line-height: 1.4;
}

/* Buttons */
.daily-report-form .btn {
    padding: 7px 13px;
    font-size: 12px;
    border-radius: 7px;
}

/* Report list */
.daily-report-list .panel-heading {
    margin-bottom: 10px;
}

.daily-report-list .table {
    font-size: 12px;
}

.daily-report-list .table th,
.daily-report-list .table td {
    padding: 8px 10px;
}

.daily-report-list .form-control,
.daily-report-list .form-select {
    min-height: 36px;
    padding: 6px 9px;
    font-size: 12px;
}

.daily-report-list .btn {
    padding: 7px 11px;
    font-size: 12px;
}

.daily-report-list .stage-pill {
    font-size: 11px;
}

/* Mobile */
@media (max-width: 767px) {
    .daily-report-form,
    .daily-report-list {
        padding: 12px !important;
    }

    .daily-report-form h5,
    .daily-report-list h5 {
        font-size: 16px;
    }
}


/* =====================================
   SIDEBAR - FULL HEIGHT & SCROLLING
===================================== */

.sidebar {
    height: 100vh;
    height: 100dvh;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 16px 12px;
    scrollbar-width: thin;
    scrollbar-color: #444 #111;
}

.sidebar::-webkit-scrollbar {
    width: 5px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 10px;
}

.sidebar .brand {
    flex-shrink: 0;
    padding: 0 6px 16px;
}

.sidebar .nav-label {
    flex-shrink: 0;
    margin: 17px 9px 6px;
    font-size: 9px;
}

.sidebar .nav-link {
    flex-shrink: 0;
    padding: 9px 10px;
    margin: 2px 0;
    gap: 10px;
    font-size: 13px;
    min-height: 36px;
}

.sidebar .nav-link i {
    font-size: 16px;
}

.sidebar-bottom {
    position: sticky;
    bottom: 0;
    flex-shrink: 0;
    margin-top: auto;
    padding: 12px 4px 4px;
    background: #111;
    z-index: 5;
}

/* =====================================
   USER MANAGEMENT - COMPACT SPACING
===================================== */

.users-list-heading {
    margin-bottom: 10px !important;
}

.user-edit-grid {
    row-gap: 10px !important;
    column-gap: 12px !important;
}

.user-edit-grid .form-control,
.user-edit-grid .form-select {
    min-height: 36px;
    height: 36px;
    padding: 6px 9px;
    font-size: 12px;
}

.user-edit-grid label {
    font-size: 12px;
    margin-bottom: 4px;
}

.user-edit-actions {
    margin-top: 8px !important;
}

.user-edit-actions .btn {
    padding: 7px 12px;
    font-size: 12px;
}

.content-area {
    padding: 18px 22px 30px;
}

@media (max-width: 991px) {
    .sidebar {
        height: 100dvh;
    }
}


/* =====================================================
   HIRING CAMPUS - PREMIUM ADMIN DASHBOARD
===================================================== */

.hc-premium-dashboard {
    width: 100%;
    min-width: 0;
    padding-bottom: 24px;
}

.hc-premium-welcome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 22px;
}

.hc-premium-eyebrow {
    display: inline-block;
    color: #c51f2b;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.7px;
    margin-bottom: 8px;
}

.hc-premium-welcome h2 {
    font-size: clamp(23px, 3vw, 30px);
    font-weight: 800;
    letter-spacing: -1px;
    color: #202127;
    margin: 0 0 6px;
}

.hc-premium-welcome p {
    color: #777b84;
    font-size: 13px;
    margin: 0;
}

.hc-premium-welcome-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.hc-premium-date {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 13px;
    background: #fff;
    border: 1px solid #e9e9ed;
    border-radius: 10px;
    color: #555965;
    font-size: 12px;
    font-weight: 600;
}

.hc-premium-welcome-actions .btn {
    min-height: 40px;
    border-radius: 9px;
    padding: 10px 16px;
    font-size: 12px;
    font-weight: 700;
}

/* OVERVIEW PANELS */

.hc-overview-row {
    align-items: stretch;
}

.hc-overview-panel {
    height: 100%;
    padding: 21px;
    background: #fff;
    border: 1px solid #e9e9ee;
    border-radius: 15px;
    box-shadow: 0 4px 18px rgba(26, 31, 44, .035);
    transition: box-shadow .2s ease, transform .2s ease;
}

.hc-overview-panel:hover {
    box-shadow: 0 9px 28px rgba(26, 31, 44, .07);
    transform: translateY(-2px);
}

.hc-overview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 21px;
}

.hc-overview-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.hc-overview-icon {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 19px;
}

.recruitment-icon {
    color: #c51f2b;
    background: #fff0f1;
}

.employee-icon {
    color: #28745a;
    background: #eaf7f0;
}

.hc-panel-kicker {
    display: block;
    font-size: 9px;
    letter-spacing: 1.2px;
    font-weight: 800;
    color: #92949d;
    margin-bottom: 4px;
}

.hc-overview-heading h3 {
    font-size: 17px;
    font-weight: 800;
    color: #25262c;
    margin: 0 0 3px;
}

.hc-overview-heading p {
    font-size: 11px;
    color: #898b94;
    margin: 0;
}

.hc-panel-link {
    white-space: nowrap;
    color: #c51f2b;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
}

.hc-panel-link:hover {
    color: #991722;
}

/* METRIC CARDS */

.hc-metric-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
}

.hc-metric-card {
    min-width: 0;
    padding: 14px;
    border: 1px solid #ededf1;
    border-radius: 11px;
    background: #fbfbfc;
    transition: background .2s ease, border-color .2s ease;
}

.hc-metric-card:hover {
    background: #fff;
    border-color: #dedee5;
}

.hc-metric-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    color: #777b85;
    font-size: 11px;
    font-weight: 600;
}

.hc-metric-top i {
    color: #c51f2b;
    font-size: 15px;
}

.hc-employee-panel .hc-metric-top i {
    color: #28745a;
}

.hc-metric-card strong {
    display: block;
    color: #24252b;
    font-size: 27px;
    font-weight: 800;
    letter-spacing: -.8px;
    line-height: 1.25;
    margin-top: 10px;
}

.hc-metric-card small {
    display: block;
    color: #999ba3;
    font-size: 10px;
    margin-top: 4px;
}

.hc-overview-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 16px;
    padding-top: 13px;
    border-top: 1px solid #f0f0f2;
    color: #777b84;
    font-size: 11px;
}

.hc-overview-footer span {
    display: flex;
    align-items: center;
    gap: 7px;
}

.hc-overview-footer strong {
    color: #25262c;
    font-size: 14px;
}

.hc-overview-footer a {
    color: #28745a;
    font-weight: 700;
    text-decoration: none;
}

/* TABLE PANELS */

.hc-premium-table-panel {
    height: 100%;
    overflow: hidden;
    border-radius: 13px;
}

.hc-premium-table-panel .panel-heading {
    padding-bottom: 14px;
}

.hc-premium-table-panel .table {
    margin-bottom: 0;
}

.hc-premium-table-panel .hc-table th {
    white-space: nowrap;
    font-size: 10px;
    letter-spacing: .5px;
}

.hc-premium-table-panel .hc-table td {
    font-size: 12px;
    vertical-align: middle;
}

.hc-premium-table-panel .badge {
    padding: 6px 9px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
}

.hc-pipeline-list {
    padding: 0 20px 17px;
}

/* RESPONSIVE */

@media (max-width: 1199px) {
    .hc-overview-panel {
        padding: 17px;
    }
}

@media (max-width: 767px) {
    .hc-premium-welcome {
        align-items: flex-start;
    }

    .hc-premium-welcome-actions {
        width: 100%;
    }

    .hc-premium-date {
        flex: 1;
    }

    .hc-premium-welcome-actions .btn {
        flex: 1;
    }

    .hc-overview-panel {
        padding: 15px;
        border-radius: 12px;
    }

    .hc-overview-heading {
        gap: 9px;
    }

    .hc-overview-icon {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
        font-size: 16px;
    }

    .hc-overview-heading h3 {
        font-size: 15px;
    }

    .hc-overview-heading p {
        font-size: 10px;
    }

    .hc-panel-kicker {
        font-size: 8px;
    }

    .hc-panel-link {
        font-size: 10px;
    }

    .hc-metric-card {
        padding: 11px;
    }

    .hc-metric-card strong {
        font-size: 23px;
    }

    .hc-metric-top {
        font-size: 10px;
    }

    .hc-metric-card small {
        font-size: 9px;
    }
}

@media (max-width: 380px) {
    .hc-overview-header {
        align-items: flex-start;
    }

    .hc-panel-link {
        padding-top: 5px;
    }

    .hc-metric-card strong {
        font-size: 21px;
    }
}


