@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap");

:root {
  --border-color-main: #c4c4c4;
  --text-color-label: #c4c4c4;
  --chmsu-green: #057a40;
  --chmsu-dark-green: #184139;
  --light-gray: #f8f9fa;
  --border-radius: 10px;
  --transition: 0.3s ease-in-out;
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background: #ececec;
  max-height: 100dvh;
  overflow: hidden;
}

body.login-page {
  min-height: 100dvh;
  max-height: none;
  overflow: auto;
  color: #18362e;
  background: #ffffff;
}

body.login-page::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdfc 100%);
  pointer-events: none;
}

.login-shell {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 48px 22px;
  position: relative;
  z-index: 1;
}

body.login-page .login-container {
  width: min(1180px, 100%);
  max-width: 1180px;
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  overflow: hidden;
  border: 1px solid #dcebe5;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 26px 70px rgba(11, 79, 57, 0.14);
}

.login-brand-panel {
  position: relative;
  min-width: 0;
  display: flex;
  align-items: center;
  padding: 44px 42px;
  color: #ffffff;
  text-align: left;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent 42%),
    linear-gradient(135deg, #34b98c 0%, #2eae84 45%, #178260 100%);
}

.login-brand-panel::before {
  content: "";
  position: absolute;
  inset: 22px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  pointer-events: none;
}

.login-brand-panel::after {
  content: "";
  position: absolute;
  right: -116px;
  bottom: -138px;
  width: 360px;
  height: 360px;
  background: url("../../images/chmsu.png") center / contain no-repeat;
  opacity: 0.055;
  pointer-events: none;
}

.login-brand-content {
  position: relative;
  z-index: 1;
  width: 100%;
}

.login-logo-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
}

.login-school-lockup {
  min-width: 0;
}

.login-school-lockup strong,
.login-school-lockup span {
  display: block;
  text-transform: uppercase;
}

.login-school-lockup strong {
  color: #ffffff;
  font-size: 2.1rem;
  line-height: 1;
  font-weight: 800;
}

.login-school-lockup span {
  color: #ffffff;
  font-size: 1.12rem;
  line-height: 1.08;
  font-weight: 700;
}

.login-emblem {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: transparent;
}

.login-emblem img {
  width: 76px;
  height: 76px;
  object-fit: contain;
}

.login-title-lockup {
  display: grid;
  gap: 3px;
  text-transform: uppercase;
}

.login-title-line {
  display: block;
  margin: 0;
  color: #ffffff;
  font-size: 2.28rem;
  line-height: 1.14;
  white-space: nowrap;
}

.login-title-strong {
  font-weight: 800;
}

.login-title-light {
  color: rgba(255, 255, 255, 0.68);
  font-weight: 400;
}

.login-title-version {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  font-weight: 600;
  text-transform: none;
}

.login-form-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 42px;
  background: #ffffff;
}

.login-form-panel::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(5, 122, 64, 0.14), transparent);
}

.login-form-inner {
  width: min(100%, 374px);
  margin: 0 auto;
}

.login-form-header {
  margin-bottom: 30px;
}

.login-form-header span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  height: 30px;
  margin-bottom: 18px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(5, 122, 64, 0.13), rgba(46, 174, 132, 0.12));
  color: var(--chmsu-green);
  font-size: 0.78rem;
  font-weight: 800;
}

.login-form-header h2 {
  margin: 0;
  color: var(--chmsu-dark-green);
  font-size: 2.1rem;
  font-weight: 800;
}

.login-form-header p {
  margin: 8px 0 0;
  color: #66756f;
  line-height: 1.6;
}

.login-form {
  display: grid;
  gap: 16px;
}

.login-field {
  position: relative;
}

.login-field > i {
  position: absolute;
  top: 50%;
  left: 17px;
  z-index: 4;
  color: #66756f;
  transform: translateY(-50%);
  pointer-events: none;
}

.login-form .form-control {
  min-height: 58px;
  border: 1px solid #dce8e3;
  border-radius: 8px;
  color: #18362e;
  background-color: #ffffff;
  box-shadow: none;
}

.login-field .form-control {
  padding-left: 46px;
}

.login-form .form-control:focus {
  border-color: var(--chmsu-green);
  box-shadow: 0 0 0 4px rgba(5, 122, 64, 0.12);
}

.login-form .form-floating > label {
  padding-left: 46px;
  color: #66756f;
}

.login-submit {
  min-height: 52px;
  margin-top: 4px;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  font-weight: 700;
  background: linear-gradient(135deg, #057a40, #184139);
  box-shadow: 0 16px 28px rgba(5, 122, 64, 0.24);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.login-submit i {
  margin-right: 8px;
}

.login-submit:hover,
.login-submit:focus {
  color: #ffffff;
  filter: brightness(1.04);
  transform: translateY(-1px);
  box-shadow: 0 18px 32px rgba(5, 122, 64, 0.3);
}

.login-submit:active {
  transform: translateY(0);
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #8a9892;
  font-size: 0.82rem;
  font-weight: 600;
}

.login-divider::before,
.login-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: #d8e2de;
}

.google-login {
  min-height: 44px;
  display: flex;
  justify-content: center;
}

.google-login > div {
  max-width: 100%;
}

.login-message {
  min-height: 20px;
  margin: -4px 0 0;
  color: #b42318;
  font-size: 0.86rem;
  line-height: 1.45;
  text-align: center;
}

.login-secondary-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
  color: #8a9892;
  font-size: 0.86rem;
}

.login-register-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--chmsu-green);
  font-weight: 700;
  text-decoration: none;
}

.login-register-link:hover,
.login-register-link:focus {
  color: var(--chmsu-dark-green);
  text-decoration: underline;
}

.register-dialog {
  width: min(980px, calc(100% - 28px));
  max-width: 980px;
}

.register-content {
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 26px 70px rgba(11, 45, 35, 0.34);
}

.register-layout {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  min-height: 640px;
}

.register-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 14px;
  padding: 36px;
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(11, 47, 38, 0.12), rgba(11, 47, 38, 0.78)),
    url("../../images/logo-original-size.jpg") center / cover;
}

.register-visual::before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  pointer-events: none;
}

.register-visual h2 {
  position: relative;
  max-width: 220px;
  margin: 0;
  font-size: 2.15rem;
  line-height: 1.08;
  font-weight: 700;
}

.register-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #ffffff;
}

.register-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 32px 34px 18px;
  border-bottom: 1px solid #edf2ef;
}

.register-header span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 10px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--chmsu-green);
  background: rgba(5, 122, 64, 0.1);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.register-header h5 {
  margin: 0;
  color: var(--chmsu-dark-green);
  font-size: 1.55rem;
  font-weight: 700;
}

.register-close {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 8px;
  background-color: #f4f8f6;
  opacity: 0.78;
}

.register-close:hover,
.register-close:focus {
  opacity: 1;
  box-shadow: 0 0 0 4px rgba(5, 122, 64, 0.12);
}

.register-body {
  padding: 26px 34px 8px;
}

.register-body .form-label {
  margin-bottom: 7px;
  color: #3d5149;
  font-size: 0.85rem;
  font-weight: 700;
}

.register-body .form-control {
  min-height: 50px;
  border: 1px solid #d8e2de;
  border-radius: 8px;
  color: #18362e;
  background-color: #fbfdfc;
  box-shadow: none;
}

.register-body .form-control:focus {
  border-color: var(--chmsu-green);
  box-shadow: 0 0 0 4px rgba(5, 122, 64, 0.12);
}

.register-body .form-control::placeholder {
  color: #8b9993;
}

.register-message {
  min-height: 24px;
  margin: 14px 0 0;
  padding: 10px 12px;
  border-radius: 8px;
  color: #6b2f18;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  font-size: 0.86rem;
  line-height: 1.45;
}

.register-message:empty {
  padding: 0;
  border: 0;
  background: transparent;
}

.register-message.is-success {
  color: #065f46;
  background: #ecfdf3;
  border-color: #bbf7d0;
}

.password-requirements {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #d8e2de;
  border-radius: 8px;
  background: #f8faf9;
}

.password-requirements strong {
  display: block;
  margin-bottom: 10px;
  color: #184139;
  font-size: 0.82rem;
  font-weight: 800;
}

.password-requirements ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.password-requirements li {
  position: relative;
  min-height: 26px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #667085;
  font-size: 0.8rem;
  line-height: 1.35;
}

.password-requirements li::before {
  content: "";
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border: 1px solid #c7d2cc;
  border-radius: 50%;
  background: #ffffff;
}

.password-requirements li.is-valid {
  color: #057a40;
  font-weight: 700;
}

.password-requirements li.is-valid::before {
  border-color: #057a40;
  background: #057a40;
  box-shadow: inset 0 0 0 4px #ffffff;
}

.admin-password-requirements {
  margin: -2px 0 16px;
}

.register-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 18px 34px 32px;
}

.register-footer .btn {
  min-height: 48px;
  border-radius: 8px;
  font-weight: 700;
}

.register-footer .login-submit {
  min-width: 190px;
  margin-top: 0;
}

.otp-modal .register-dialog {
  width: min(860px, calc(100% - 28px));
  max-width: 860px;
}

.otp-modal .register-layout {
  grid-template-columns: 300px minmax(0, 1fr);
  min-height: 480px;
}

.otp-modal .register-body {
  display: grid;
  align-content: center;
  gap: 16px;
  min-height: 250px;
}

.otp-summary {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  color: #065f46;
  background: #ecfdf3;
  font-size: 0.9rem;
  line-height: 1.5;
}

.otp-modal #otpCode {
  font-weight: 800;
}

.otp-footer {
  align-items: center;
  justify-content: space-between;
}

.otp-footer .btn {
  min-width: 140px;
}

.otp-footer .login-submit {
  min-width: 160px;
}

@media (max-width: 820px) {
  .login-shell {
    align-items: start;
    padding: 18px;
  }

  body.login-page .login-container {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .login-brand-panel {
    min-height: 410px;
    padding: 38px 34px;
  }

  .login-logo-row {
    margin-bottom: 34px;
  }

  .login-school-lockup strong {
    font-size: 1.86rem;
  }

  .login-school-lockup span {
    font-size: 1rem;
  }

  .login-title-line {
    font-size: 2.26rem;
  }

  .login-form-panel {
    padding: 34px 24px;
  }

  .login-form-inner {
    width: min(100%, 420px);
  }

  .register-dialog {
    width: min(560px, calc(100% - 24px));
  }

  .otp-modal .register-dialog {
    width: min(560px, calc(100% - 24px));
  }

  .otp-modal .register-layout {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .register-layout {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .register-visual {
    min-height: 180px;
    padding: 30px;
  }

  .register-visual h2 {
    max-width: none;
    font-size: 1.8rem;
  }

  .register-body,
  .register-header,
  .register-footer {
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media (max-width: 420px) {
  .login-shell {
    padding: 0;
  }

  body.login-page .login-container {
    min-height: 100dvh;
    border: 0;
    border-radius: 0;
  }

  .login-brand-panel {
    min-height: auto;
    padding: 28px 22px 30px;
  }

  .login-logo-row {
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
  }

  .login-emblem {
    width: 62px;
    height: 62px;
  }

  .login-emblem img {
    width: 62px;
    height: 62px;
  }

  .login-school-lockup strong {
    font-size: 1.34rem;
  }

  .login-school-lockup span {
    font-size: 0.76rem;
  }

  .login-title-line {
    font-size: 1.15rem;
    line-height: 1.18;
  }

  .login-title-version {
    font-size: 0.7rem;
  }

  .login-form-panel {
    padding: 30px 20px;
  }

  .login-form-header h2 {
    font-size: 1.72rem;
  }

  .register-dialog {
    width: 100%;
    max-width: none;
    min-height: 100%;
    margin: 0;
  }

  .otp-modal .register-dialog {
    width: 100%;
    max-width: none;
    min-height: 100%;
  }

  .register-content {
    min-height: 100dvh;
    border-radius: 0;
  }

  .register-layout {
    min-height: 100dvh;
  }

  .otp-modal .register-layout {
    min-height: 100dvh;
  }

  .register-visual {
    min-height: 150px;
    padding: 26px 22px;
  }

  .register-visual::before {
    inset: 12px;
  }

  .register-header {
    padding-top: 24px;
  }

  .register-footer {
    flex-direction: column-reverse;
    padding-bottom: 24px;
  }

  .register-footer .btn,
  .register-footer .login-submit {
    width: 100%;
  }

  .otp-footer {
    flex-direction: column;
  }

  .password-requirements ul {
    grid-template-columns: 1fr;
  }
}

/* header start */
.navbar {
  border-bottom: 3px solid var(--chmsu-green);
  padding: 0px 0px;
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin: -16px;
  height: 60px;
  position: sticky;
  top: -16px;
  z-index: 1000;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0px;
}

.navbar-brand img {
  aspect-ratio: 1 / 1;
  height: 45px;
  width: 45px;
  border-radius: 50%;
  border: 2px solid var(--chmsu-green);
}

.navbar-brand p {
  color: var(--chmsu-dark-green);
  font-size: 1.4rem;
  font-weight: bold;
  margin: 0;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.admin-welcome {
  color: #0d6efd;
  font-weight: 800;
  white-space: nowrap;
}

/* Logout Button */
.logoutbtn {
  text-decoration: none;
  display: flex;
  align-items: center;
  column-gap: 6px;
  font-size: 1rem;
  font-weight: bold;
  border: 2px solid var(--chmsu-green);
  color: var(--chmsu-green);
  padding: 6px 12px;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.logoutbtn:hover {
  background-color: var(--chmsu-green);
  color: white;
}
/* header end */

.login-container {
  max-width: 500px;
}

.box-area {
  width: 930px;
}

::placeholder {
  font-size: 16px;
}

.contentwrapper {
  padding: 20px;
  &:has(.table-responsive) {
    padding-bottom: 0px;
    margin-bottom: -16px;
  }
}

.dashboardcontent {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  & h1 {
    margin: 0;
    font-size: 4rem;
  }
}

.dashboardcontent > div {
  background-color: #ffffff;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: box-shadow 0.3s ease;
  font-size: 20px;
}

.dashboardcontent > div > div:first-child {
  font-size: 1.2rem;
  text-align: center;
  /* padding: 10px 20px; */
  font-weight: 600;
}

.dashboardcontent > div > div:last-child {
  font-size: 5rem;
  text-align: center;
  padding: 0.25em 0em;
  padding-bottom: 0;
}

/* Status Colors */
#totalPendingContainer {
  color: #9fa6b2;
  font-size: 50px;
}

#totalScheduledContainer {
  color: #f39c12;
  font-size: 50px;
}

#totalOngoingContainer {
  color: #3b71ca;
  font-size: 50px;
}

#totalPartiallyContainer {
  color: #54b4d3;
  font-size: 50px;
}

#totalCompletedContainer {
  color: #2ecc71;
  font-size: 50px;
}

#totalDeclineContainer {
  color: #ff0000;
  font-size: 50px;
}

.dashboard-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.dashboard-heading .pageTitle {
  padding-bottom: 4px;
}

.dashboard-subtitle {
  margin: 0;
  color: #667085;
  font-size: 0.92rem;
}

.dashboard-updated {
  flex: 0 0 auto;
  align-self: center;
  color: #475467;
  background: #eef6f1;
  border: 1px solid #cfe7da;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.86rem;
  font-weight: 600;
}

.dashboard-kpi-grid,
.dashboard-signal-grid,
.dashboard-analytics-grid {
  display: grid;
  gap: 16px;
}

.dashboard-kpi-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-kpi,
.dashboard-signal,
.dashboard-panel {
  background: #ffffff;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.06);
}

.dashboard-kpi {
  display: flex;
  align-items: center;
  min-height: 116px;
  gap: 14px;
  padding: 18px;
}

.dashboard-kpi span,
.dashboard-signal span,
.panel-header span {
  color: #667085;
  font-size: 0.82rem;
  font-weight: 600;
}

.dashboard-kpi strong {
  display: block;
  margin-top: 4px;
  color: #101828;
  font-size: clamp(1.8rem, 4vw, 2.55rem);
  line-height: 1;
}

.kpi-icon {
  display: grid;
  place-items: center;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  font-size: 1.2rem;
}

.kpi-icon-total {
  color: #057a40;
  background: #eaf7f0;
}

.kpi-icon-active {
  color: #2563eb;
  background: #eaf1ff;
}

.kpi-icon-rate {
  color: #16a34a;
  background: #eaf7ed;
}

.kpi-icon-time {
  color: #7c3aed;
  background: #f2ecff;
}

.dashboard-signal-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 16px;
}

.dashboard-signal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  padding: 16px 18px;
  border-left: 4px solid #98a2b3;
}

.dashboard-signal strong {
  color: #101828;
  font-size: 1.8rem;
  line-height: 1;
}

.signal-danger {
  border-left-color: #dc2626;
}

.signal-warning {
  border-left-color: #f59e0b;
}

.signal-info {
  border-left-color: #2563eb;
}

.dashboard-analytics-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  margin-top: 16px;
}

.dashboard-panel {
  min-width: 0;
  padding: 18px;
}

.dashboard-panel-wide {
  grid-column: span 1;
}

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

.panel-header h2 {
  margin: 0;
  color: #101828;
  font-size: 1rem;
  font-weight: 700;
}

.trend-chart {
  display: grid;
  grid-template-columns: repeat(6, minmax(58px, 1fr));
  align-items: end;
  gap: 12px;
  min-height: 260px;
  padding-top: 8px;
}

.trend-item {
  display: grid;
  grid-template-rows: 24px 1fr 34px;
  min-width: 0;
  height: 240px;
  text-align: center;
}

.trend-value {
  color: #344054;
  font-size: 0.82rem;
  font-weight: 700;
}

.trend-bar-wrap {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 160px;
  border-radius: 8px;
  background: linear-gradient(180deg, #f7faf9 0%, #eef4f1 100%);
}

.trend-bar {
  width: min(46px, 58%);
  min-height: 12px;
  border-radius: 7px 7px 0 0;
  background: linear-gradient(180deg, #057a40 0%, #184139 100%);
}

.trend-label {
  align-self: end;
  color: #667085;
  font-size: 0.74rem;
  line-height: 1.2;
}

.status-list,
.rank-list,
.recent-list {
  display: grid;
  gap: 14px;
}

.status-row,
.rank-row {
  display: grid;
  gap: 8px;
}

.status-row-top,
.rank-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.status-row-top span,
.rank-row-top span {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 8px;
  color: #344054;
  font-size: 0.86rem;
  font-weight: 600;
}

.rank-row-top span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-row-top strong,
.rank-row-top strong {
  color: #101828;
  font-size: 0.9rem;
}

.status-track,
.rank-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #eef2f6;
}

.status-track div,
.rank-track div {
  height: 100%;
  border-radius: inherit;
}

.rank-track div {
  background: linear-gradient(90deg, #057a40, #2563eb);
}

.recent-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) minmax(130px, 0.8fr) 100px;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid #eef2f6;
}

.recent-row:last-child {
  border-bottom: 0;
}

.recent-row strong,
.recent-row span,
.recent-row em,
.recent-row time {
  display: block;
  min-width: 0;
}

.recent-row strong {
  color: #101828;
  font-size: 0.9rem;
}

.recent-row span,
.recent-row time {
  color: #667085;
  font-size: 0.82rem;
}

.recent-row em {
  margin-top: 2px;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 700;
}

.dashboard-empty {
  display: grid;
  min-height: 110px;
  place-items: center;
  color: #667085;
  border: 1px dashed #d0d5dd;
  border-radius: 8px;
  font-size: 0.9rem;
}

@media (max-width: 1180px) {
  .dashboard-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-analytics-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .dashboard-heading {
    display: grid;
  }

  .dashboard-updated {
    justify-self: start;
  }

  .dashboard-kpi-grid,
  .dashboard-signal-grid {
    grid-template-columns: 1fr;
  }

  .trend-chart {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    min-height: auto;
  }

  .trend-item {
    height: 200px;
  }

  .recent-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

@media screen and (max-width: 575px) {
  #searchServices {
    & thead {
      display: none;
    }

    & tbody {
      tr {
        display: flex;
        flex-direction: row;
        align-items: stretch;
        flex-wrap: wrap;
        position: relative;
        & td {
          width: 100%;
          height: unset;
          display: flex;
          align-items: center;
          padding: 4px 15px;
          border: none;
          line-height: 1.25em;
          &::before {
            min-width: 95px;
            margin-right: 8px;
            font-size: 14px;
            font-weight: bold;
          }
          &:first-child {
            padding-top: 1em;
          }
          &:nth-child(1)::before {
            content: "Service:";
          }
          &:nth-child(2)::before {
            content: "Status:";
          }
          &:nth-child(3)::before {
            content: "Action:";
          }
          &:last-child {
            padding-bottom: 1em;
          }
        }
      }
    }
  }

  #searchAccount {
    & tbody {
      tr {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        position: relative;
        & td {
          width: 100%;
          height: unset;
          display: flex;
          align-items: center;
          padding: 4px 15px;
          border: none;
          line-height: 1.25em;
          &::before {
            min-width: 95px;
            margin-right: 8px;
            font-size: 14px;
            font-weight: bold;
          }
          &:first-child {
            padding-top: 1em;
          }
          &:nth-child(1)::before {
            content: "Account:";
          }
          &:nth-child(2)::before {
            content: "Username:";
          }
          &:nth-child(3)::before {
            content: "Role:";
          }
          &:nth-child(4)::before {
            content: "Action:";
          }
          &:last-child {
            padding-bottom: 1em;
          }
        }
      }
    }
  }
}

.dashboardcontent div div {
  font-size: 1.2em;
  font-weight: 500;
  color: #7f8c8d;
}

.pageTitle {
  padding: 15px 0px;
  background-color: transparent;
  transition: 250ms background-color;
  font-size: 1.5rem !important;
  &:has(.sec-side-logo) {
    font-size: 2rem;
    & img {
      aspect-ratio: 1 / 1;
      width: 70px;
    }
  }
}

.table-responsive {
  /* max-height: 800px; */
  overflow: unset;
  margin-top: -10px;
}

th,
thead {
  position: sticky;
  top: 0px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

.tblactions > div {
  display: flex;
  flex-direction: row;
  gap: 5px;
}

.tblactions {
  padding: 5px !important;
}

.tblactions button {
  width: 25px;
  height: 25px;
  padding: 4px;
  display: flex;
  border: 1px solid black;
  border-radius: 5px;
  transition: 50ms transform;
}

.tblactions button:active {
  transform: scale(0.9);
}

.tblactions button img {
  width: 100%;
}

dialog {
  border-radius: 5px;
  border: 1px solid #c4c4c4;
  margin: auto;
  min-width: 300px;
  width: 50%;
  max-width: 400px;
}

.modalTitle {
  padding: 10px;
  font-weight: 600;
  background-color: #0d1f32;
  color: #ffffff;
}

.modalCont {
  padding: 10px;
}

.modalAction {
  padding: 5px;
  background-color: #ececec;
  display: flex;
  justify-content: end;
}

.modalAction > div {
  display: flex;
  gap: 5px;
}

.modalAction .modalButtons {
  padding: 3px 10px;
  background-color: #ececec;
  border: 1px solid #c4c4c4;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: 100ms background-color, 100ms scale;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 70px;
}

.modalAction .modalButtons:hover {
  background-color: #c4c4c4;
}

.modalAction .modalButtons:active {
  scale: 0.9;
}

.modalAction .modalButtons.btn1 {
  background-color: green;
  color: white;
}

.modalAction .modalButtons.btn2 {
  background-color: yellow;
  color: black;
}

.modalAction .modalButtons.btn3 {
  background-color: blue;
  color: white;
}

.modalCont {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modalCont > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.modalCont > div :is(input, textarea) {
  padding: 5px 10px;
  border-radius: 5px;
  border: 1px solid #c4c4c4;
  resize: none;
}

.modalCont > div label {
  font-size: 0.8rem;
}

.hidden {
  display: none;
}

.dt-layout-cell {
  & .dt-length {
    & select.dt-input {
      padding: 8px 6px;
      border-radius: 8px;
      margin-right: 8px;
    }
  }
  & .dt-search {
    & input.dt-input {
      padding: 8px 6px;
      border-radius: 8px;
      margin-left: 8px;
    }
  }
  & .dt-paging {
    & .dt-paging-button {
      border-radius: 8px !important;
      padding: 6px 16px !important;
      min-width: 43px !important;
      &.current {
        padding: 6px 16px;
      }
    }
  }
}

.dt-customized-layout {
  & .dt-layout-full:has(.dt-search + div > button) {
    column-gap: 0.75em;
    display: flex !important;
    & button {
      height: 50px;
      white-space: nowrap;
      display: flex;
      align-items: center;
      border-radius: 8px;
    }
  }
  & .dt-search {
    width: 100%;
    & input.dt-input {
      padding: 12px 16px;
      margin-left: 0;
      width: 100%;
      position: relative;
      z-index: 1;
    }
  }
}
& .dt-layout-table {
  border: 1px solid #aaa;
  border-radius: 8px;
  overflow: hidden;
  margin: 15px 0;
  & table.dataTable {
    vertical-align: middle;
    & > thead {
      vertical-align: middle;
      white-space: nowrap;
      & > tr {
        & > th {
          padding: 20px 15px;
          padding-right: 35px;
          text-align: left;
          &:not(:last-child) {
            border-right: 1px solid #eeeeee;
          }
          &:first-child {
            padding-left: 20px;
          }
        }
      }
    }
    & > tbody {
      & > tr {
        & > td {
          text-align: left;
          padding: 5px 15px;
          height: 67px;
          text-wrap-style: pretty;
          text-transform: capitalize;
          & .tbl_photo {
            width: 70px;
            aspect-ratio: 4/3;
            border: none !important;
            background: unset;
            & img {
              transition: 300ms scale;
            }
            &:hover img {
              scale: 1.1;
            }
          }
          &:first-child {
            padding-left: 20px;
          }
          &:last-child {
            padding-right: 20px;
            white-space: nowrap;
          }
          &.dt-empty {
            vertical-align: middle;
            text-align: center;
          }
        }
      }
    }
  }
  & .dt-layout-cell {
    overflow: auto;
    padding: 0 !important;
  }
}

div.dt-container.dt-empty-footer tbody > tr:last-child > * {
  border-bottom: 0 !important;
}

@media screen and (max-width: 768px) {
  .pageTitle {
    padding: 20px 20px;
    margin: -20px;
    margin-bottom: 5px;
    background-color: White;
  }

  .pageTitle:has(.sec-side-logo) {
    padding: 4px 20px;
    height: 60px;
    display: flex;
    gap: 5px;
    align-items: center;
    font-size: 24px;
    & img {
      width: 50px;
    }
  }

  #viewPhoto.modal .modal-dialog:has(img#modalImage[src*="/images/uploads/"]) {
    padding: 0px 20px !important;
  }

  .navbar {
    padding-left: 50px;
    margin: 0px;
    top: 0px;
    height: auto;
    min-height: 60px;
  }

  .navbar .container-fluid {
    flex-wrap: nowrap;
    gap: 10px;
    min-width: 0;
  }

  .navbar-brand {
    flex: 1 1 auto;
    min-width: 0;
  }

  .navbar-brand p {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .navbar-actions {
    flex: 0 0 auto;
    gap: 8px;
  }

  .admin-welcome {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media screen and (max-width: 575px) {
  .dt-customized-layout {
    & .dt-layout-full:has(.dt-search + div > button) {
      column-gap: 0.75em;
      display: flex !important;
      flex-direction: column-reverse;
      & .dt-search + div {
        width: 100%;
        & button {
          width: 100%;
          justify-content: center;
        }
      }
    }
  }
  .reportInputsContainer {
    flex-wrap: wrap;
    & button {
      flex-grow: 1;
    }
  }

  .navbar-brand p {
    width: 0px;
    color: transparent;
    position: relative;
    &::before {
      content: "GSO";
      display: block;
      position: absolute;
      color: var(--chmsu-dark-green);
    }
  }

  .admin-welcome {
    display: none;
  }

  .logoutbtn {
    min-height: 40px;
    padding: 7px 12px;
    white-space: nowrap;
  }

  #workRequestTable,
  #searchScheduled,
  #searchPending {
    thead {
      display: none;
    }
    tbody {
      tr {
        display: flex;
        flex-direction: row;
        align-items: stretch;
        flex-wrap: wrap;
        & td {
          padding: 2.5px 15px;
          height: unset;
          display: flex;
          justify-content: flex-start;
          text-align: left;
          align-items: center;
          line-height: 1.25em;
          position: relative;
          border: none;
          width: 100%;
          &::before {
            display: inline;
            width: 25%;
            min-width: 85px;
            max-width: 120px;
            flex-shrink: 0;
            font-size: 14px;
            font-weight: bold;
            margin-right: 8px;
            line-height: 1.25em;
          }
          &:first-child {
            padding-top: 1em;
            border: inherit;
          }
          &:last-child {
            padding-bottom: 1em;
            & button:not(:last-child) {
              margin-right: 5px;
              border: inherit;
            }
          }
          &:nth-child(2) {
            & .badge,
            & .work-status-badge {
              position: absolute;
              right: 15px;
              top: -23px;
            }
          }
          &:nth-last-child(2),
          &:nth-last-child(1) {
            display: grid;
            grid-template-columns: 1fr 1fr 1fr;
            grid-template-rows: auto 1fr;
            align-items: center;
            flex-grow: 1;
            padding-bottom: 1em;
            justify-items: stretch;
            & .tbl_photo {
              aspect-ratio: 4 / 3;
              padding: 2px;
              background: #f0f0f0 !important;
              border: 1px solid #dee2e6 !important;
              height: 35px;
              grid-column: span 3;
              & img {
                max-width: 100% !important;
                max-height: 100% !important;
                object-fit: contain;
              }
            }

            &:nth-last-child(2) {
              width: calc(100% / 3);
              padding-right: 8px;
            }
            &:nth-last-child(1) {
              width: calc((100% / 3) * 2);
              padding-left: 8px;
              &:has(button:nth-child(3):last-child) {
                grid-template-columns: 1fr 1fr 1fr;
              }
              &:has(button:nth-child(2):last-child) {
                grid-template-columns: 1fr 1fr;
              }
            }
            &::before {
              grid-column: span 3;
              margin: 8px 0 4px 0;
            }
            & button {
              height: 100%;
              border-radius: 4px;
              border: 1px solid #dee2e6 !important;
            }
          }
          &:nth-child(1)::before {
            content: "Control #";
          }
          &:nth-child(2)::before {
            content: "Status";
            display: none;
          }
          &:nth-child(3)::before {
            content: "Requester";
          }
          &:nth-child(4)::before {
            content: "Request Type";
          }
          &:nth-child(5)::before {
            content: "Request Details";
          }
          &:nth-child(6)::before {
            content: "Facility";
          }
          &:nth-child(7)::before {
            content: "Date Requested";
          }
          &:nth-child(8)::before {
            content: "Date Accomplished";
          }
          &:nth-last-child(2)::before {
            content: "Photo";
            min-width: unset;
            max-width: unset;
          }
          &:nth-last-child(1)::before {
            content: "Actions";
            min-width: unset;
            max-width: unset;
          }
          & .tbl_photo {
            width: unset;
            aspect-ratio: 4 / 4;
          }
        }
      }
    }
  }

  #searchPer {
    & thead {
      display: none;
    }

    & tbody {
      tr {
        display: flex;
        flex-direction: row;
        align-items: stretch;
        flex-wrap: wrap;
        position: relative;
        & td {
          padding: 4px 15px;
          height: unset;
          display: flex;
          justify-content: flex-start;
          text-align: left;
          align-items: center;
          line-height: 1.25em;
          position: relative;
          border: none;
          width: 100%;
          &::before {
            display: inline;
            width: 25%;
            min-width: 80px;
            max-width: 120px;
            flex-shrink: 0;
            font-size: 14px;
            font-weight: bold;
            margin-right: 8px;
            line-height: 1.25em;
          }
          &:first-child {
            padding-top: 1em;
            border: inherit;
          }
          &:last-child {
            padding-bottom: 1em;
            & button:not(:last-child) {
              margin-right: 5px;
              border: inherit;
            }
          }
          &:nth-child(1) {
            & span {
              width: 100%;
              margin-right: 55px;
            }
          }
          &:nth-child(1)::before {
            content: "Name";
          }
          &:nth-child(2)::before {
            content: "Access Level";
          }
          &:nth-child(3)::before {
            content: "Contact Number";
          }
          &:nth-child(4)::before {
            content: "Gender";
          }
          &:nth-child(4) {
            padding-bottom: 15px;
          }
          &:nth-last-child(2) {
            position: absolute;
            padding: 0;
            & .badge {
              position: absolute;
              right: 10px;
              top: 13px;
            }
          }
          &:nth-last-child(1) {
            position: absolute;
            padding: 0;
            bottom: 0;
            & button {
              position: absolute;
              right: 10px;
              bottom: 10px;
            }
          }
          &:nth-last-child(2)::before {
            /* content: "Status"; */
          }
          &:nth-last-child(1)::before {
            /* content: "Actions"; */
          }
        }
      }
    }
  }

  #searchcat {
    & thead {
      & tr {
        & th:not(:first-child) {
          display: none;
        }
      }
    }

    & tbody {
      tr {
        display: flex;
        flex-direction: row;
        align-items: stretch;
        flex-wrap: wrap;
        position: relative;
        & td {
          padding: 4px 15px;
          height: unset;
          display: flex;
          justify-content: flex-start;
          text-align: left;
          align-items: center;
          line-height: 1.25em;
          position: relative;
          border: none;
          width: 100%;
          &::before {
            display: inline;
            width: 25%;
            min-width: 80px;
            max-width: 120px;
            flex-shrink: 0;
            font-size: 14px;
            font-weight: bold;
            margin-right: 8px;
            line-height: 1.25em;
          }
          &:first-child {
            padding-top: 1em;
            padding-bottom: 1em;
            padding-right: 80px;
            border: inherit;
          }
          &:last-child {
            padding-bottom: 1em;
            & button:not(:last-child) {
              margin-right: 5px;
              border: inherit;
            }
          }
          &:nth-child(1) {
            & span {
              width: 100%;
              margin-right: 55px;
            }
          }
          &:nth-last-child(1) {
            position: absolute;
            padding: 0;
            bottom: 0;
            & button {
              position: absolute;
              right: 15px;
              bottom: 10px;
            }
          }
        }
      }
    }
  }

  #searchAccount {
    & thead {
      & tr {
        & th {
          display: none;
        }
      }
    }

    & tbody {
      tr {
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: stretch;
        position: relative;
        & td {
          padding: 4px 15px;
          height: unset;
          display: flex;
          justify-content: flex-start;
          text-align: left;
          align-items: center;
          line-height: 1.25em;
          position: relative;
          border: none;
          width: 100%;
        }
        & td:not(:nth-child(1), :nth-child(2)) {
          grid-column: span 2;
        }
        & td:nth-child(1) {
          padding-top: 15px;
          padding-right: 0.25ch;
          &::before {
            content: "Name:";
          }
        }
        & td:nth-child(2) {
          padding-top: 15px;
          padding-left: 0.25ch;
        }
        & td:nth-child(3)::before {
          content: "Username:";
        }
        & td:nth-child(4) {
          overflow-wrap: anywhere;
          &::before {
            overflow-wrap: normal;
            content: "Password:";
          }
        }
        & td:nth-child(5) {
          padding-bottom: 15px;
          &::before {
            content: "Access Level:";
          }
        }
        & td:nth-child(6) {
          & button {
            position: absolute;
            right: 16px;
            bottom: 15px;
          }
        }
        & td::before {
          min-width: 95px;
          margin-right: 0.5ch;
          font-size: 14px;
        }
      }
    }
  }

  #viewPhoto.modal .modal-dialog:has(img#modalImage[src*="/images/uploads/"]) {
    padding: 0px !important;
  }

  .dt-layout-cell {
    & .dt-paging {
      & .dt-paging-button {
        border-radius: 8px !important;
        padding: 4px 14px !important;
        min-width: 28px !important;
      }
    }
  }

  .pageTitle:has(.sec-side-logo) {
    font-size: 20px;
    line-height: 1em;
    & img {
      width: 40px;
    }
  }
}

button[class*="-info"]:hover,
button[class*="-info"]:active {
  color: white;
}

button[class*="-warning"]:hover,
button[class*="-warning"]:active {
  color: white;
}

button[class*="-warning"],
button[class*="-info"] {
  color: white;
}

button[class*="btn-info"]:hover,
button[class*="btn-info"]:active {
  background-color: color-mix(in srgb, #ffc107, black 10%) !important;
  border-color: color-mix(in srgb, #ffc107, black 10%) !important;
}

button[class*="btn-warning"]:hover,
button[class*="btn-warning"]:active {
  background-color: color-mix(in srgb, #ffc107, black 10%) !important;
  border-color: color-mix(in srgb, #ffc107, black 10%) !important;
}

.badge-pill {
  border-radius: 1em;
  padding: 0.5em 0.75em;
  font-weight: 600;
}

.reportInputsContainer {
  gap: 0.75em;
  & input,
  select {
    padding: 12px 16px;
    margin-left: 0;
    width: 100%;
    position: relative;
    z-index: 1;
    border-radius: 8px;
    height: 50px;
    border: 1px solid #aaa;
  }
  & button {
    height: 50px;
    min-width: 110px;
    border-radius: 8px;
    white-space: nowrap;
  }
}

#modalImage {
  max-height: calc(100vh - 155px);
}

#viewPhoto.modal .modal-dialog:has(img#modalImage[src*="/images/uploads/"]) {
  width: auto;
  max-width: fit-content;
  padding: 0px 60px;
}

.work-queue-page {
  display: grid;
  gap: 16px;
}

.foreman-queue-no-scroll .main {
  overflow: hidden;
}

.foreman-queue-no-scroll .contentwrapper.work-queue-page {
  height: calc(100dvh - 104px);
  min-height: 0;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 12px;
  padding: 12px 16px 0;
  margin-bottom: 0;
}

.foreman-queue-no-scroll .work-queue-heading {
  align-items: flex-start;
}

.foreman-queue-no-scroll .work-queue-heading .pageTitle {
  padding-bottom: 2px;
}

.foreman-queue-no-scroll .work-queue-heading p {
  line-height: 1.35;
}

.foreman-queue-no-scroll .work-queue-summary {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.foreman-queue-no-scroll .work-queue-card {
  min-height: 82px;
  padding: 11px 14px;
}

.foreman-queue-no-scroll .work-queue-card strong {
  font-size: 1.75rem;
}

.foreman-queue-no-scroll .work-queue-page .table-responsive {
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 10px;
}

.foreman-queue-no-scroll .work-queue-page .dt-container,
.foreman-queue-no-scroll .work-queue-page .dt-layout-table {
  min-height: 0;
}

.foreman-queue-no-scroll .work-queue-page table.dataTable > tbody > tr > * {
  padding-top: 8px;
  padding-bottom: 8px;
}

.work-queue-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.work-queue-heading .pageTitle {
  padding: 2px 0 4px;
  margin: 0;
  color: #10251f;
  font-size: 1.65rem !important;
  font-weight: 700;
}

.work-queue-heading p {
  max-width: 720px;
  margin: 0;
  color: #667085;
  font-size: 0.92rem;
  line-height: 1.55;
}

.work-queue-eyebrow,
.work-queue-updated {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
}

.work-queue-eyebrow {
  padding: 4px 10px;
  color: #057a40;
  background: #eaf7f0;
}

.work-queue-updated {
  flex: 0 0 auto;
  padding: 7px 12px;
  color: #475467;
  background: #ffffff;
  border: 1px solid #d0d5dd;
}

.work-queue-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.work-queue-card {
  min-height: 112px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 16px 18px;
  border: 1px solid #e4e7ec;
  border-left: 4px solid #667085;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(16, 24, 40, 0.06);
}

.work-queue-card span {
  color: #667085;
  font-size: 0.8rem;
  font-weight: 700;
}

.work-queue-card strong {
  color: #101828;
  font-size: 2.15rem;
  line-height: 1;
}

.work-queue-card small {
  color: #8a94a6;
  font-size: 0.78rem;
}

.work-queue-card.accent-total {
  border-left-color: #057a40;
}

.work-queue-card.accent-pending {
  border-left-color: #667085;
}

.work-queue-card.accent-scheduled {
  border-left-color: #f59e0b;
}

.work-queue-card.accent-active {
  border-left-color: #2563eb;
}

.work-queue-card.accent-partial {
  border-left-color: #0891b2;
}

.work-queue-card.accent-completed {
  border-left-color: #16a34a;
}

.work-queue-page .table-responsive {
  margin-top: 0;
  padding: 14px;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.06);
}

.work-queue-page .dt-layout-table {
  margin-bottom: 0;
}

.backup-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
}

.backup-page-summary,
.backup-page-count {
  color: #667085;
  font-size: 0.86rem;
  font-weight: 800;
}

.backup-page-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.backup-page-btn {
  min-height: 38px;
  border-radius: 8px;
  font-weight: 800;
}

.backup-page-btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.work-queue-page table.dataTable > thead > tr > th {
  color: #344054;
  background: #f8faf9;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.work-control {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 9px;
  border-radius: 8px;
  color: #184139;
  background: #eef6f1;
  font-size: 0.82rem;
  font-weight: 800;
}

.work-person {
  display: grid;
  gap: 2px;
  text-transform: none;
}

.work-person strong,
.work-type {
  color: #101828;
  font-size: 0.9rem;
  font-weight: 700;
}

.work-person span,
.work-location,
.work-date,
.work-muted {
  color: #667085;
  font-size: 0.78rem;
}

.work-date-empty {
  color: #98a2b3;
  font-weight: 700;
}

.work-details {
  display: -webkit-box;
  max-width: 360px;
  overflow: hidden;
  color: #344054;
  font-size: 0.86rem;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.work-location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #344054;
  font-weight: 600;
}

.work-status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
}

.work-status-pending {
  color: #475467;
  background: #f2f4f7;
}

.work-status-scheduled {
  color: #92400e;
  background: #fff3d6;
}

.work-status-ongoing {
  color: #1d4ed8;
  background: #eaf1ff;
}

.work-status-partial {
  color: #0e7490;
  background: #e7f7fb;
}

.work-status-completed {
  color: #166534;
  background: #eaf7ed;
}

.work-status-declined {
  color: #991b1b;
  background: #fee2e2;
}

.work-photo-empty {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: #8a94a6;
  font-size: 0.78rem;
}

.work-action-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.work-action-btn {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border-radius: 8px;
}

.work-action-btn i {
  font-size: 0.92rem;
}

.work-queue-modal .modal-content {
  border: 0;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(16, 24, 40, 0.24);
}

.work-queue-modal .modal-header {
  border-bottom-color: #e4e7ec;
  background: #f8faf9;
}

.work-request-editor,
.work-status-editor {
  overflow: hidden;
}

.work-request-editor-header {
  align-items: flex-start;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid #e4e7ec;
  background: linear-gradient(135deg, #f8faf9, #eef8f2);
}

.work-modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.work-modal-title-wrap h5 {
  margin: 0;
  color: #10251f;
  font-size: 1.1rem;
  font-weight: 800;
}

.work-modal-title-wrap small {
  display: block;
  margin-top: 2px;
  color: #667085;
  font-size: 0.82rem;
  line-height: 1.35;
}

.work-modal-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 8px;
  color: #ffffff;
  background: #057a40;
  box-shadow: 0 10px 20px rgba(5, 122, 64, 0.18);
}

.work-queue-modal .modal-body {
  padding: 18px 20px;
}

.work-modal-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.work-modal-summary > div {
  min-height: 72px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  background: #ffffff;
}

.work-modal-summary span {
  color: #667085;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.work-modal-summary strong {
  overflow: hidden;
  color: #10251f;
  font-size: 0.95rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.work-modal-section-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: #184139;
  font-size: 0.86rem;
  font-weight: 800;
}

.work-modal-section-title i {
  color: #057a40;
}

.work-modal-grid > [class*="col-"] {
  margin-bottom: 0 !important;
}

.work-queue-modal .form-label {
  margin-bottom: 6px;
  color: #344054;
  font-size: 0.8rem;
  font-weight: 800;
}

.work-queue-modal .form-control,
.work-queue-modal .form-select {
  min-height: 42px;
  border-color: #d0d5dd;
  border-radius: 8px;
  color: #10251f;
  background-color: #fbfdfc;
  box-shadow: none;
}

.work-queue-modal .form-control:focus,
.work-queue-modal .form-select:focus {
  border-color: #057a40;
  box-shadow: 0 0 0 4px rgba(5, 122, 64, 0.12);
}

.work-queue-modal textarea.form-control {
  min-height: 96px;
}

.work-queue-modal .select2-container--default .select2-selection--multiple {
  min-height: 42px;
  border-color: #d0d5dd;
  border-radius: 8px;
  background-color: #fbfdfc;
}

.work-modal-footer {
  gap: 8px;
  padding: 14px 20px 18px;
  border-top: 1px solid #e4e7ec;
  background: #ffffff;
}

.work-modal-footer .btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  font-weight: 800;
}

.work-modal-primary-action {
  min-width: 160px;
  background: #057a40;
  border-color: #057a40;
}

.work-modal-primary-action:hover,
.work-modal-primary-action:focus {
  background: #184139;
  border-color: #184139;
}

.work-queue-alert-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1095;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(16, 24, 40, 0.42);
}

.work-queue-alert-backdrop.is-visible {
  display: flex;
}

.work-queue-alert {
  width: min(430px, 100%);
  overflow: hidden;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(16, 24, 40, 0.3);
}

.work-queue-alert-body {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  padding: 20px;
}

.work-queue-alert-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
  background: #057a40;
  font-size: 1.1rem;
}

.work-queue-alert-icon.warning {
  background: #d97706;
}

.work-queue-alert-icon.error {
  background: #dc2626;
}

.work-queue-alert-icon.success {
  background: #16a34a;
}

.work-queue-alert h2 {
  margin: 0;
  color: #10251f;
  font-size: 1.08rem;
  font-weight: 800;
}

.work-queue-alert p {
  margin: 6px 0 0;
  color: #667085;
  font-size: 0.92rem;
  line-height: 1.5;
}

.work-queue-alert-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 20px 18px;
  border-top: 1px solid #e4e7ec;
  background: #f8faf9;
}

.work-queue-alert-actions .btn {
  min-height: 40px;
  min-width: 92px;
  border-radius: 8px;
  font-weight: 800;
}

.admin-manage-page {
  display: grid;
  gap: 16px;
}

.admin-manage-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.admin-manage-heading .pageTitle {
  padding: 2px 0 4px;
  margin: 0;
  color: #10251f;
  font-size: 1.65rem !important;
  font-weight: 700;
}

.admin-manage-heading p {
  max-width: 720px;
  margin: 0;
  color: #667085;
  font-size: 0.92rem;
  line-height: 1.55;
}

.admin-manage-eyebrow,
.admin-manage-updated {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
}

.admin-manage-eyebrow {
  padding: 4px 10px;
  color: #057a40;
  background: #eaf7f0;
}

.admin-manage-updated {
  flex: 0 0 auto;
  padding: 7px 12px;
  color: #475467;
  background: #ffffff;
  border: 1px solid #d0d5dd;
}

.admin-manage-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.admin-manage-card {
  min-height: 108px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 16px 18px;
  border: 1px solid #e4e7ec;
  border-left: 4px solid #667085;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(16, 24, 40, 0.06);
}

.admin-manage-card span {
  color: #667085;
  font-size: 0.8rem;
  font-weight: 700;
}

.admin-manage-card strong {
  color: #101828;
  font-size: 2.05rem;
  line-height: 1;
}

.admin-manage-card small {
  color: #8a94a6;
  font-size: 0.78rem;
}

.admin-manage-card.accent-total {
  border-left-color: #057a40;
}

.admin-manage-card.accent-active {
  border-left-color: #16a34a;
}

.admin-manage-card.accent-service {
  border-left-color: #2563eb;
}

.admin-manage-card.accent-support {
  border-left-color: #7c3aed;
}

.admin-manage-card.accent-muted {
  border-left-color: #98a2b3;
}

.admin-manage-card.accent-completed {
  border-left-color: #0f766e;
}

.personnel-management-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(16, 24, 40, 0.05);
}

.personnel-filter-group,
.personnel-action-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.personnel-filter-btn {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  color: #344054;
  background: #ffffff;
  font-size: 0.82rem;
  font-weight: 800;
}

.personnel-filter-btn i,
.personnel-add-btn i {
  font-size: 0.92rem;
}

.personnel-filter-btn span {
  min-width: 24px;
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 7px;
  border-radius: 999px;
  color: #475467;
  background: #f2f4f7;
  font-size: 0.72rem;
}

.personnel-filter-btn.is-active {
  border-color: #057a40;
  color: #075e35;
  background: #eaf7f0;
}

.personnel-filter-btn.is-active span {
  color: #ffffff;
  background: #057a40;
}

.personnel-add-btn {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 800;
}

.admin-manage-page .table-responsive {
  margin-top: 0;
  padding: 14px;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.06);
}

.admin-manage-page .dt-layout-table {
  margin-bottom: 0;
}

.admin-manage-page table.dataTable > thead > tr > th {
  color: #344054;
  background: #f8faf9;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.manage-identity {
  display: grid;
  gap: 2px;
  text-transform: none;
}

.manage-identity strong,
.manage-name {
  color: #101828;
  font-size: 0.92rem;
  font-weight: 750;
}

.manage-identity span,
.manage-muted {
  color: #667085;
  font-size: 0.78rem;
}

.manage-pill,
.manage-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
}

.manage-pill {
  color: #184139;
  background: #eef6f1;
}

.manage-pill-blue {
  color: #1d4ed8;
  background: #eaf1ff;
}

.manage-pill-purple {
  color: #6d28d9;
  background: #f2ecff;
}

.manage-pill-gray {
  color: #475467;
  background: #f2f4f7;
}

.manage-status-active {
  color: #166534;
  background: #eaf7ed;
}

.manage-status-inactive {
  color: #991b1b;
  background: #fee2e2;
}

.manage-action-btn {
  min-width: 34px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 8px;
  font-weight: 700;
}

.admin-manage-modal .modal-content {
  border: 0;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(16, 24, 40, 0.24);
  overflow: hidden;
}

.admin-manage-modal .modal-header {
  align-items: flex-start;
  gap: 12px;
  padding: 18px 20px;
  border-bottom-color: #e4e7ec;
  background: linear-gradient(135deg, #f8faf9, #eef8f2);
}

.admin-manage-modal .modal-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #10251f;
  font-size: 1.1rem;
  font-weight: 800;
}

.admin-manage-modal .modal-title::before {
  content: "\f044";
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 8px;
  color: #ffffff;
  background: #057a40;
  font-family: "Font Awesome 6 Free";
  font-size: 0.95rem;
  font-weight: 900;
  box-shadow: 0 10px 20px rgba(5, 122, 64, 0.18);
}

.admin-manage-modal .modal-body {
  padding: 18px 20px;
}

.admin-manage-modal .form-label {
  margin-bottom: 6px;
  color: #344054;
  font-size: 0.8rem;
  font-weight: 800;
}

.admin-manage-modal .form-control,
.admin-manage-modal .form-select {
  min-height: 42px;
  border-color: #d0d5dd;
  border-radius: 8px;
  color: #10251f;
  background-color: #fbfdfc;
  box-shadow: none;
}

.admin-manage-modal .form-control:focus,
.admin-manage-modal .form-select:focus {
  border-color: #057a40;
  box-shadow: 0 0 0 4px rgba(5, 122, 64, 0.12);
}

.admin-manage-modal .modal-footer {
  gap: 8px;
  padding: 14px 20px 18px;
  border-top: 1px solid #e4e7ec;
  background: #ffffff;
}

.admin-manage-modal .modal-footer .btn,
.work-queue-modal .modal-footer .btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  font-weight: 800;
}

.admin-manage-modal .modal-footer .btn-primary,
.work-queue-modal .modal-footer .btn-primary {
  min-width: 150px;
  color: #ffffff;
  background: #057a40 !important;
  border-color: #057a40 !important;
}

.admin-manage-modal .modal-footer .btn-primary:hover,
.admin-manage-modal .modal-footer .btn-primary:focus,
.work-queue-modal .modal-footer .btn-primary:hover,
.work-queue-modal .modal-footer .btn-primary:focus {
  background: #184139 !important;
  border-color: #184139 !important;
}

.account-create-modal .register-dialog {
  width: min(980px, calc(100% - 28px));
  max-width: 980px;
}

.account-create-modal .register-layout {
  grid-template-columns: 310px minmax(0, 1fr);
  min-height: 640px;
}

.account-create-modal .register-content {
  border: 0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 26px 70px rgba(16, 24, 40, 0.28);
}

.account-create-modal .register-visual {
  background:
    linear-gradient(180deg, rgba(11, 47, 38, 0.14), rgba(11, 47, 38, 0.82)),
    url("../../images/logo-original-size.jpg") center / cover;
}

.account-create-modal .modal-title {
  display: block;
  color: var(--chmsu-dark-green);
  font-size: 1.55rem;
  font-weight: 800;
}

.account-create-modal .modal-title::before {
  content: none;
  display: none;
}

.account-create-modal .register-body .form-label {
  margin-bottom: 7px;
  color: #3d5149;
  font-size: 0.85rem;
  font-weight: 800;
}

.account-create-modal .register-body .form-control,
.account-create-modal .register-body .form-select {
  min-height: 50px;
  border: 1px solid #d8e2de;
  border-radius: 8px;
  color: #18362e;
  background-color: #fbfdfc;
  box-shadow: none;
}

.account-create-modal .register-body .form-control:focus,
.account-create-modal .register-body .form-select:focus {
  border-color: var(--chmsu-green);
  box-shadow: 0 0 0 4px rgba(5, 122, 64, 0.12);
}

.account-create-modal .admin-password-requirements {
  margin: 14px 0 0;
}

.account-create-modal .account-create-footer .btn {
  min-height: 48px;
  border-radius: 8px;
  font-weight: 800;
}

.account-create-modal .account-create-footer .btn-primary {
  min-width: 170px;
}

.account-update-modal .account-update-dialog {
  width: min(960px, calc(100% - 32px));
  max-width: 960px;
}

.account-update-modal .account-update-body {
  padding: 22px 24px;
}

.account-update-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 18px;
}

.account-update-full {
  grid-column: 1 / -1;
}

.account-update-modal .account-update-field {
  min-width: 0;
}

.account-update-modal .admin-password-requirements {
  margin: 0;
}

.account-update-modal .admin-password-requirements ul {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.report-filter-panel,
.report-preview-panel {
  padding: 16px;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.06);
}

.report-filter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: end;
}

.report-filter-grid label {
  color: #344054;
  font-size: 0.8rem;
  font-weight: 700;
}

.report-filter-grid .form-control {
  min-height: 46px;
  border-color: #d0d5dd;
  border-radius: 8px;
}

.report-filter-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.report-filter-actions .btn {
  min-height: 46px;
  border-radius: 8px;
  font-weight: 700;
  white-space: nowrap;
}

.report-preview-panel {
  overflow: auto;
  min-height: 260px;
}

.report-empty-state {
  min-height: 220px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  color: #667085;
  border: 1px dashed #d0d5dd;
  border-radius: 8px;
  font-weight: 700;
}

.report-empty-state i {
  color: #057a40;
  font-size: 2rem;
}

@media (max-width: 1100px) {
  .work-queue-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-manage-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-filter-actions {
    grid-column: span 2;
  }
}

@media (max-width: 760px) {
  .work-queue-heading {
    display: grid;
    align-items: start;
  }

  .work-queue-updated {
    justify-self: start;
  }

  .work-queue-summary {
    grid-template-columns: 1fr;
  }

  .work-queue-page .table-responsive {
    padding: 10px;
  }

  .work-modal-summary {
    grid-template-columns: 1fr;
  }

  .work-modal-footer,
  .admin-manage-modal .modal-footer,
  .work-queue-alert-actions {
    display: grid;
  }

  .work-modal-footer .btn,
  .admin-manage-modal .modal-footer .btn,
  .work-queue-alert-actions .btn {
    width: 100%;
  }

  .work-details {
    max-width: none;
  }

  .admin-manage-heading {
    display: grid;
    align-items: start;
  }

  .admin-manage-updated {
    justify-self: start;
  }

  .admin-manage-summary,
  .report-filter-grid {
    grid-template-columns: 1fr;
  }

  .personnel-management-toolbar {
    display: grid;
  }

  .personnel-filter-group,
  .personnel-action-group {
    display: grid;
  }

  .personnel-filter-btn,
  .personnel-add-btn {
    width: 100%;
    justify-content: center;
  }

  .report-filter-actions {
    grid-column: auto;
    display: grid;
  }

  .admin-manage-page .table-responsive,
  .report-filter-panel,
  .report-preview-panel {
    padding: 10px;
  }

  .account-create-modal .register-dialog {
    width: min(560px, calc(100% - 24px));
  }

  .account-create-modal .register-layout {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .account-create-modal .register-visual {
    min-height: 160px;
    padding: 28px 24px;
  }

  .account-create-modal .account-create-footer {
    flex-direction: column-reverse;
  }

  .account-create-modal .account-create-footer .btn,
  .account-create-modal .account-create-footer .btn-primary {
    width: 100%;
  }

  .account-update-modal .account-update-dialog {
    width: min(560px, calc(100% - 24px));
  }

  .account-update-modal .account-update-body {
    padding: 18px 20px;
  }

  .account-update-grid {
    grid-template-columns: 1fr;
  }

  .account-update-full {
    grid-column: auto;
  }

  .account-update-modal .admin-password-requirements ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .account-create-modal .register-dialog {
    width: 100%;
    max-width: none;
    min-height: 100%;
    margin: 0;
  }

  .account-create-modal .register-content,
  .account-create-modal .register-layout {
    min-height: 100dvh;
    border-radius: 0;
  }

  .account-create-modal .register-visual {
    min-height: 140px;
    padding: 24px 22px;
  }

  .account-update-modal .account-update-dialog {
    width: 100%;
    max-width: none;
    min-height: 100%;
    margin: 0;
  }

  .account-update-modal .modal-content {
    min-height: 100dvh;
    border-radius: 0;
  }

  .account-update-modal .admin-password-requirements ul {
    grid-template-columns: 1fr;
  }
}
