@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap");

:root {
  --epis-sky: #86ccf1;
  --epis-blue: #118bcc;
  --epis-lime: #b3d334;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #171717;
  background: #e7e7e7;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  font-size: 14px;
  line-height: 1.5;
  background: #e7e7e7;
  color: #171717;
}

button {
  font: inherit;
}

button:focus-visible {
  outline: 3px solid var(--epis-lime);
  outline-offset: 2px;
}

a {
  color: inherit;
  text-decoration: none;
}

/* App Shell */
.app-root {
  min-height: 100vh;
  background: #e7e7e7;
  transition: background .25s ease, color .25s ease;
}

.desktop-app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 218px minmax(650px, 1fr);
  max-width: 1600px;
  margin: 0 auto;
  background: #f5f5f3;
}

/* Sidebar */
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 30px 18px 20px;
  color: #fff;
  background: #151515;
  border-radius: 0 28px 28px 0;
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 11px 11px 11px 3px;
  background: var(--epis-lime);
  color: #111;
  transform: rotate(-4deg);
}

.brand-mark span {
  font-size: 20px;
  font-weight: 800;
  transform: rotate(4deg);
}

.brand-name {
  font-size: 20px;
  line-height: 18px;
  font-weight: 800;
  letter-spacing: -.8px;
}

.brand-sub {
  margin-top: 2px;
  color: var(--epis-lime);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2.2px;
}

.sidebar-label {
  margin: 36px 12px 10px;
  color: #777;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.sidebar-nav {
  display: grid;
  gap: 5px;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: none;
}

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

.sidebar-nav a,
.sidebar-nav button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  border: 0;
  border-radius: 11px;
  padding: 11px 12px;
  color: #999;
  background: transparent;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  transition: all .15s ease;
}

.sidebar-nav a span,
.sidebar-nav button span {
  font-size: 14px;
  font-weight: 600;
}

.sidebar-nav a:hover,
.sidebar-nav button:hover {
  color: #fff;
  background: #222;
}

.sidebar-nav a.active,
.sidebar-nav button.active {
  color: #111;
  background: var(--epis-lime);
}

.sidebar-nav a.active svg,
.sidebar-nav button.active svg {
  color: #111;
}

.sidebar-nav a small,
.sidebar-nav button small {
  margin-left: auto;
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 6px;
  background: var(--epis-blue);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.sidebar-promo {
  position: relative;
  overflow: hidden;
  margin: auto 0 16px;
  padding: 16px;
  border: 1px solid #333;
  border-radius: 18px;
  background: #222;
}

.sidebar-promo:after {
  content: "";
  position: absolute;
  width: 80px;
  height: 80px;
  right: -34px;
  bottom: -36px;
  border: 16px solid var(--epis-blue);
  border-radius: 50%;
}

.promo-spark {
  color: var(--epis-lime);
  display: flex;
  align-items: center;
}

.sidebar-promo strong {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: #fff;
}

.sidebar-promo p {
  margin: 4px 0 10px;
  color: #929292;
  font-size: 11px;
  line-height: 1.4;
}

.sidebar-promo button,
.sidebar-promo a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: 0;
  color: var(--epis-lime);
  background: none;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 4px 0;
  border: 0;
  border-top: 1px solid #292929;
  color: #fff;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.sidebar-user > span {
  min-width: 0;
  display: grid;
  text-align: left;
}

.sidebar-user b {
  font-size: 13px;
}

.sidebar-user small {
  margin-top: 3px;
  color: #777;
  font-size: 11px;
}

.sidebar-user svg {
  margin-left: auto;
  color: #777;
}

.avatar {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 3px solid var(--epis-lime);
  border-radius: 50%;
  color: #fff;
  background: var(--epis-blue);
  font-size: 15px;
  font-weight: 800;
}

.avatar-small {
  width: 34px;
  height: 34px;
  border-width: 2px;
  font-size: 13px;
}

/* Workspace & Topbar */
.workspace {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  height: 76px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0 32px;
  border-bottom: 1px solid #e3e3df;
  background: #fff;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 17px;
}

.theme-toggle {
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid #e4e4e1;
  border-radius: 11px;
  background: #f2f2ef;
  cursor: pointer;
}

.theme-toggle span {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #aaa;
  transition: all .15s ease;
}

.theme-toggle span.active {
  color: #fff;
  background: var(--epis-blue);
  box-shadow: 0 3px 8px rgba(17, 139, 204, 0.35);
}

.icon-button {
  position: relative;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid #e4e4e1;
  border-radius: 10px;
  color: #333;
  background: #fff;
  cursor: pointer;
}

.notification-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  top: 7px;
  right: 7px;
  border: 1px solid #fff;
  border-radius: 50%;
  background: var(--epis-blue);
}

.topbar-divider {
  width: 1px;
  height: 28px;
  background: #e2e2de;
}

.date {
  display: grid;
  text-align: right;
}

.date span {
  color: #888;
  font-size: 11px;
}

.date b {
  margin-top: 2px;
  font-size: 13px;
}

/* Dashboard Overview */
.dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 18px;
  padding: 26px 28px 32px;
  background: #f5f5f3;
}

.hero {
  position: relative;
  min-height: 238px;
  overflow: hidden;
  display: flex;
  border-radius: 22px;
  color: #fff;
  background: #171717;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding: 28px;
}

.eyebrow {
  display: block;
  color: var(--epis-lime);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.hero h1 {
  margin: 12px 0 10px;
  font-size: clamp(34px, 3.5vw, 54px);
  line-height: .95;
  letter-spacing: -3px;
}

.hero h1 mark {
  display: inline-block;
  padding: 3px 8px 7px;
  color: #171717;
  background: var(--epis-lime);
  border-radius: 9px;
  transform: rotate(-2deg);
}

.hero p {
  margin: 15px 0 0;
  color: #aaa;
  font-size: 13px;
  line-height: 1.6;
}

.hero p b {
  color: #fff;
}

.hero-decoration {
  position: absolute;
  inset: 0 0 0 48%;
}

.purple-loop {
  position: absolute;
  width: 230px;
  height: 230px;
  top: -92px;
  right: -35px;
  border: 48px solid var(--epis-blue);
  border-radius: 50%;
}

.lime-orbit {
  position: absolute;
  width: 115px;
  height: 220px;
  right: 18px;
  bottom: -137px;
  border: 30px solid var(--epis-lime);
  border-radius: 50%;
  transform: rotate(40deg);
}

.hero-card {
  position: absolute;
  right: 20px;
  bottom: 22px;
  width: 235px;
  display: flex;
  gap: 12px;
  padding: 14px;
  border: 1px solid #444;
  border-radius: 15px;
  background: rgba(35, 35, 35, .92);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .3);
}

.hero-card-date {
  width: 42px;
  height: 45px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #111;
  background: var(--epis-lime);
}

.hero-card-date span {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
}

.hero-card-date b {
  margin-top: -7px;
  font-size: 20px;
}

.hero-card > div:last-child {
  display: grid;
  gap: 2px;
}

.hero-card small {
  color: var(--epis-sky);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
}

.hero-card strong {
  font-size: 14px;
}

.hero-card div > span {
  color: #888;
  font-size: 11px;
}

/* Attendance Card */
.attendance-card {
  padding: 22px;
  border-radius: 22px;
  color: #fff;
  background: var(--epis-blue);
}

.attendance-head {
  display: flex;
  justify-content: space-between;
}

.dark-text {
  color: rgba(255, 255, 255, 0.9);
}

.attendance-head h2 {
  margin: 7px 0 0;
  font-size: 31px;
  letter-spacing: -1.5px;
}

.attendance-head h2 small {
  font-size: 12px;
  letter-spacing: 0;
}

.attendance-date {
  width: 47px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #111;
  background: var(--epis-lime);
}

.attendance-date b {
  margin-top: 5px;
  font-size: 11px;
  letter-spacing: 1px;
}

.attendance-date span {
  margin-top: -8px;
  font-size: 20px;
  font-weight: 800;
}

.office-status {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 22px 0;
}

.office-status > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #111;
  background: #fff;
}

.office-status div {
  display: grid;
  gap: 3px;
}

.office-status b {
  font-size: 13px;
}

.office-status small {
  color: var(--epis-sky);
  font-size: 11px;
}

.office-status i {
  margin-left: auto;
  padding: 4px 6px;
  border-radius: 5px;
  color: var(--epis-lime);
  background: rgba(0, 0, 0, 0.28);
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}

.primary-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 11px;
  padding: 11px;
  color: #111;
  background: var(--epis-lime);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: all .2s ease;
}

.primary-button span {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: #fff;
  background: #111;
}

.primary-button.completed {
  background: #fff;
  color: #118bcc;
}

.primary-button.completed span {
  background: #118bcc;
  color: #fff;
}

.attendance-note {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  margin-top: 12px;
  color: var(--epis-sky);
  font-size: 11px;
}

/* Quick access */
.content-section {
  grid-column: 1 / -1;
}

.section-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin: 5px 0 12px;
}

.section-title h2,
.summary-panel h2 {
  margin: 5px 0 0;
  font-size: 20px;
  letter-spacing: -.7px;
}

.section-title button {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  color: var(--epis-blue);
  background: none;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.quick-card {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px;
  border: 1px solid #e4e4df;
  border-radius: 15px;
  color: #222;
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease;
}

.quick-card:hover {
  border-color: var(--epis-blue);
  transform: translateY(-2px);
}

.quick-card > span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.quick-card b {
  overflow: hidden;
  font-size: 12px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.quick-card small {
  color: #999;
  font-size: 11px;
  white-space: nowrap;
}

.quick-card > svg {
  margin-left: auto;
  color: #bbb;
}

.quick-card > i {
  margin-left: auto;
  width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--epis-blue);
  font-size: 11px;
  font-style: normal;
}

.action-icon {
  flex: 0 0 auto;
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  border-radius: 11px;
}

.action-icon.lime {
  color: #4a6100;
  background: #edf7cc;
}

.action-icon.violet {
  color: var(--epis-blue);
  background: #e9f4fb;
}

.action-icon.orange {
  color: #8c5d00;
  background: #fff3d6;
}

.action-icon.sky {
  color: var(--epis-blue);
  background: #e2f2fc;
}

.action-icon.blue {
  color: var(--epis-blue);
  background: #ebf5fb;
}

/* Agenda & Summary Grid */
.bottom-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 16px;
}

.agenda-panel,
.summary-panel {
  padding: 20px;
  border: 1px solid #e4e4df;
  border-radius: 18px;
  background: #fff;
}

.compact {
  margin-top: 0;
}

.agenda-list {
  display: grid;
}

.agenda-list article {
  display: grid;
  grid-template-columns: 45px 3px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-top: 1px solid #eee;
}

.agenda-list time {
  display: grid;
  color: #999;
  font-size: 11px;
  font-style: normal;
}

.agenda-list time b {
  color: #222;
  font-size: 13px;
}

.agenda-line {
  height: 28px;
  border-radius: 3px;
  background: #ddd;
}

.agenda-line.violet {
  background: var(--epis-blue);
}

.agenda-line.lime {
  background: var(--epis-lime);
}

.agenda-line.orange {
  background: var(--epis-sky);
}

.agenda-list article > div {
  display: grid;
  gap: 4px;
}

.agenda-list article > div b {
  font-size: 12px;
}

.agenda-list article > div span {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #999;
  font-size: 11px;
}

.tag {
  padding: 4px 6px;
  border-radius: 5px;
  font-size: 11px;
  letter-spacing: .5px;
}

.tag.done {
  color: #777;
  background: #eee;
}

.tag.ongoing {
  color: #0b5883;
  background: #eaf5fc;
}

.tag.next {
  color: #0b5883;
  background: #eaf5fc;
}

.summary-panel .eyebrow {
  color: var(--epis-blue);
}

.summary-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 18px 0;
}

.progress-ring {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 57%, transparent 59%), conic-gradient(var(--epis-blue) 0 96%, #e9e9e9 96%);
}

.progress-ring b {
  font-size: 15px;
}

.summary-row > div:last-child {
  display: grid;
  gap: 4px;
}

.summary-row > div:last-child b {
  font-size: 13px;
}

.summary-row > div:last-child span {
  color: #999;
  font-size: 11px;
}

.summary-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  padding-top: 10px;
  border-top: 1px solid #eee;
}

.summary-stats div {
  display: grid;
  gap: 3px;
  padding: 8px 4px;
  text-align: center;
  border-right: 1px solid #eee;
}

.summary-stats div:nth-child(even) {
  border-right: 0;
}

.summary-stats div:nth-child(n+3) {
  border-top: 1px solid #eee;
}

.summary-stats b {
  font-size: 18px;
}

.summary-stats span {
  color: #999;
  font-size: 11px;
}

/* Monthly Attendance */
.monthly-attendance {
  grid-column: 1 / -1;
  min-width: 0;
  overflow: hidden;
  padding: 22px;
  border: 1px solid #e4e4df;
  border-radius: 20px;
  background: #fff;
}

.attendance-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.attendance-section-head .eyebrow {
  color: var(--epis-blue);
}

.attendance-section-head h2 {
  margin: 5px 0 4px;
  font-size: 22px;
  letter-spacing: -.8px;
}

.attendance-section-head p {
  margin: 0;
  color: #7f898d;
  font-size: 14px;
}

.month-chip {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid rgba(134, 204, 241, 0.45);
  border-radius: 10px;
  color: var(--epis-blue);
  background: rgba(134, 204, 241, 0.12);
  font-size: 14px;
  font-weight: 700;
}

.attendance-metrics {
  display: grid;
  grid-template-columns: repeat(11, minmax(72px, 1fr));
  gap: 8px;
  margin-bottom: 18px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.attendance-metric {
  min-width: 72px;
  display: grid;
  gap: 2px;
  padding: 11px;
  border: 1px solid #e6eaeb;
  border-radius: 12px;
  background: #fafbfb;
}

.attendance-metric > span {
  color: var(--epis-blue);
  font-size: 14px;
  font-weight: 800;
}

.attendance-metric b {
  font-size: 20px;
  line-height: 1.25;
}

.attendance-metric small {
  overflow: hidden;
  color: #8b9497;
  font-size: 13px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.attendance-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #e1e7e9;
  border-radius: 14px;
}

.attendance-table {
  width: max-content;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  color: #25292b;
  background: #fff;
}

.attendance-table th,
.attendance-table td {
  min-width: 44px;
  height: 52px;
  padding: 7px 6px;
  border-right: 1px solid #edf0f1;
  border-bottom: 1px solid #edf0f1;
  text-align: center;
}

.attendance-table thead th {
  height: 54px;
  background: #f6f8f9;
}

.attendance-table thead th span {
  display: block;
  color: #8b9497;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.attendance-table thead th b {
  display: block;
  margin-top: 2px;
  font-size: 14px;
}

.attendance-table .employee-column {
  position: sticky;
  z-index: 2;
  left: 0;
  min-width: 230px;
  text-align: left;
  background: #fff;
  box-shadow: 1px 0 #e1e7e9;
}

.attendance-table thead .employee-column {
  z-index: 3;
  color: #687175;
  background: #f6f8f9;
  font-size: 14px;
  letter-spacing: .6px;
  text-transform: uppercase;
}

.attendance-table tbody .employee-column {
  display: flex;
  align-items: center;
  gap: 10px;
}

.attendance-table tbody .employee-column > span:last-child {
  display: grid;
  gap: 2px;
}

.attendance-table tbody .employee-column b {
  font-size: 14px;
}

.attendance-table tbody .employee-column small {
  color: #8b9497;
  font-size: 13px;
  font-weight: 500;
}

.table-avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 10px;
  color: #172000;
  background: var(--epis-lime);
  font-size: 14px;
  font-weight: 800;
}

.attendance-table .weekend {
  color: #a8afb2;
  background: #f8f9f9;
}

.day-status {
  width: 27px;
  height: 27px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #e2e7e9;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 800;
}

.day-status.present {
  border-color: #d9e8b0;
  color: #597000;
  background: #f2f8df;
}

.day-status.off {
  border-color: transparent;
  color: #b0b7ba;
  background: transparent;
}

.day-status.status-lt {
  border-color: #ffd4a1;
  color: #9c5700;
  background: #fff5e8;
}

.day-status.status-la {
  border-color: #b7dff5;
  color: #086b9f;
  background: #edf8fd;
}

.day-status.status-s {
  border-color: #ffccbc;
  color: #af3d1a;
  background: #fff0eb;
}

.day-status.status-i,
.day-status.status-t {
  border-color: #bfcfff;
  color: #3656b6;
  background: #eef2ff;
}

.day-status.status-c {
  border-color: #d6e993;
  color: #607800;
  background: #f5f9e8;
}

.attendance-legend {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  margin-top: 16px;
}

.attendance-legend > strong {
  font-size: 14px;
}

.attendance-legend > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.attendance-legend span {
  color: #7f898d;
  font-size: 14px;
}

.attendance-legend span b {
  margin-right: 3px;
  color: #25292b;
}

/* Modals & Overlays */
.permission-overlay,
.feature-overlay {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(7, 13, 16, .66);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .28s cubic-bezier(0.16, 1, 0.3, 1), visibility .28s ease;
}

.permission-overlay.open,
.feature-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.permission-modal,
.feature-modal,
.request-form-modal,
.request-detail-modal {
  transform: translateY(16px) scale(0.97);
  transition: transform .32s cubic-bezier(0.16, 1, 0.3, 1);
}

.permission-overlay.open .permission-modal,
.permission-overlay.open .request-form-modal,
.permission-overlay.open .request-detail-modal,
.feature-overlay.open .feature-modal {
  transform: translateY(0) scale(1);
}

.permission-modal,
.feature-modal {
  width: min(440px, 100%);
  max-height: min(720px, calc(100vh - 40px));
  overflow-y: auto;
  padding: 24px;
  border: 1px solid #e1e7e9;
  border-radius: 24px;
  color: #171717;
  background: #fff;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .28);
}

.feature-modal {
  width: min(620px, 100%);
}

.permission-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
}

.permission-head h2 {
  margin: 6px 0 4px;
  font-size: 24px;
  letter-spacing: -1px;
}

.permission-head p {
  margin: 0;
  color: #7f898d;
  font-size: 14px;
  line-height: 1.5;
}

.permission-head > button {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid #e1e7e9;
  border-radius: 10px;
  color: #687175;
  background: #f5f7f7;
  cursor: pointer;
}

.permission-modal form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.permission-modal label {
  display: grid;
  gap: 7px;
}

.permission-modal label > span {
  font-size: 13px;
  font-weight: 700;
}

.permission-modal :is(select, input, textarea) {
  width: 100%;
  border: 1px solid #dfe5e7;
  border-radius: 10px;
  padding: 10px 11px;
  color: #25292b;
  background: #f8fafa;
  font: inherit;
  font-size: 13px;
  outline: none;
}

.permission-modal :is(select, input, textarea):focus {
  border-color: var(--epis-blue);
}

.permission-modal textarea {
  resize: vertical;
}

.permission-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.permission-modal .upload-field {
  justify-items: center;
  padding: 17px;
  border: 1px dashed var(--epis-sky);
  border-radius: 13px;
  color: var(--epis-blue);
  background: rgba(134, 204, 241, 0.09);
  text-align: center;
  cursor: pointer;
}

.upload-field input {
  display: none;
}

.upload-field i {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(134, 204, 241, 0.28);
  font-style: normal;
}

.permission-modal .upload-field small {
  color: #8b9497;
  font-size: 11px;
}

.permission-submit {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border: 0;
  border-radius: 11px;
  color: #fff;
  background: var(--epis-blue);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.approval-result {
  display: none;
  justify-items: center;
  margin-top: 22px;
  text-align: center;
}

.approval-result.show {
  display: grid;
}

.approval-check {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #172000;
  background: var(--epis-lime);
}

.approval-result h3 {
  margin: 13px 0 5px;
  font-size: 20px;
}

.approval-result > p {
  max-width: 300px;
  margin: 0;
  color: #7f898d;
  font-size: 13px;
  line-height: 1.6;
}

.approval-flow {
  width: 100%;
  display: grid;
  margin: 20px 0;
  text-align: left;
}

.approval-flow > div {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 0;
}

.approval-flow > div:not(:last-child):after {
  content: "";
  position: absolute;
  width: 1px;
  height: 16px;
  left: 13px;
  top: 35px;
  background: #dfe5e7;
}

.approval-flow i {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #8b9497;
  background: #edf1f2;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.approval-flow .done i {
  color: #172000;
  background: var(--epis-lime);
}

.approval-flow .current i {
  color: #fff;
  background: var(--epis-blue);
}

.approval-flow span {
  display: grid;
  gap: 3px;
}

.approval-flow b {
  font-size: 13px;
}

.approval-flow small {
  color: #8b9497;
  font-size: 11px;
}

/* Feature Modal Grid */
.feature-all-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.feature-all-grid > button {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px;
  border: 1px solid #e5eaec;
  border-radius: 14px;
  color: #202426;
  background: #fafbfb;
  text-align: left;
  cursor: pointer;
  transition: all .15s ease;
}

.feature-all-grid > button:hover {
  border-color: var(--epis-sky);
  background: rgba(134, 204, 241, 0.07);
}

.feature-all-grid > button > span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.feature-all-grid b {
  font-size: 13px;
}

.feature-all-grid small {
  overflow: hidden;
  color: #8b9497;
  font-size: 11px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.feature-all-grid > button > svg {
  margin-left: auto;
  color: #9aa2a6;
}

/* Forms Page */
.forms-page,
.login-preview-page,
.attendance-recap-page {
  min-height: calc(100vh - 76px);
  padding: 28px;
  background: #f5f5f3;
}

.page-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 20px;
}

.page-intro h1,
.login-preview-label h1 {
  margin: 6px 0;
  font-size: 28px;
  letter-spacing: -1.3px;
}

.page-intro p,
.login-preview-label p {
  margin: 0;
  color: #7f898d;
  font-size: 13px;
}

.page-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border: 1px solid rgba(134, 204, 241, 0.35);
  border-radius: 9px;
  color: var(--epis-blue);
  background: rgba(134, 204, 241, 0.13);
  font-size: 11px;
  font-weight: 700;
}

.form-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.form-catalog,
.employee-form-card {
  border: 1px solid #e2e7e9;
  border-radius: 18px;
  background: #fff;
}

.form-catalog {
  padding: 17px;
}

.form-catalog h2 {
  margin: 5px 0 14px;
  font-size: 18px;
}

.form-catalog > button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px;
  border: 0;
  border-radius: 10px;
  color: #596164;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: all .15s ease;
}

.form-catalog > button + button {
  margin-top: 3px;
}

.form-catalog > button > span {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 8px;
  color: #748084;
  background: #f0f3f4;
}

.form-catalog > button > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.form-catalog > button b {
  font-size: 12px;
}

.form-catalog > button small {
  overflow: hidden;
  color: #9aa2a6;
  font-size: 11px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.form-catalog > button > svg {
  margin-left: auto;
  color: #abb2b5;
}

.form-catalog > button.active {
  color: #fff;
  background: var(--epis-blue);
}

.form-catalog > button.active > span {
  color: #172000;
  background: var(--epis-lime);
}

.form-catalog > button.active small,
.form-catalog > button.active > svg {
  color: rgba(255, 255, 255, 0.8);
}

.employee-form-card {
  padding: 22px;
}

.form-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  padding-bottom: 17px;
  border-bottom: 1px solid #edf0f1;
}

.form-card-head > div {
  display: flex;
  align-items: center;
  gap: 11px;
}

.form-card-head > div > span {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #172000;
  background: var(--epis-lime);
  font-size: 13px;
  font-weight: 800;
}

.form-card-head h2 {
  margin: 0 0 3px;
  font-size: 18px;
}

.form-card-head p {
  margin: 0;
  color: #8b9497;
  font-size: 11px;
}

.form-card-head > small {
  color: #9aa2a6;
  font-size: 11px;
}

.form-success {
  display: none;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  padding: 10px;
  border-radius: 9px;
  color: #3b5000;
  background: #f1f8da;
  font-size: 11px;
  font-weight: 700;
}

.form-success.show {
  display: flex;
}

.employee-form-card form {
  margin-top: 18px;
}

.general-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.employee-form-card form label,
.login-card form > label {
  display: grid;
  gap: 6px;
}

.employee-form-card form label > span,
.login-card form label > span {
  font-size: 11px;
  font-weight: 700;
}

.employee-form-card :is(input, select, textarea),
.login-card input {
  width: 100%;
  padding: 10px 11px;
  border: 1px solid #dfe5e7;
  border-radius: 9px;
  color: #25292b;
  background: #fafbfb;
  font: inherit;
  font-size: 12px;
  outline: 0;
  transition: border-color .15s ease;
}

.employee-form-card :is(input, select, textarea):focus,
.login-card input:focus {
  border-color: var(--epis-blue);
}

.full-field {
  margin-top: 13px;
}

.employee-form-card textarea {
  resize: vertical;
}

.choice-group {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 13px;
  padding: 11px;
  border: 1px solid #edf0f1;
  border-radius: 10px;
}

.choice-group > span {
  margin-right: auto;
  font-size: 11px;
  font-weight: 700;
}

.choice-group label,
.agreement {
  display: flex !important;
  align-items: center;
  gap: 6px !important;
  font-size: 11px;
  cursor: pointer;
}

.choice-group input,
.agreement input {
  width: auto;
  accent-color: var(--epis-blue);
}

.form-upload {
  display: flex !important;
  align-items: center;
  gap: 10px !important;
  margin-top: 13px;
  padding: 12px;
  border: 1px dashed var(--epis-sky);
  border-radius: 11px;
  color: var(--epis-blue);
  background: rgba(134, 204, 241, 0.08);
  cursor: pointer;
}

.form-upload input {
  display: none;
}

.form-upload > span {
  display: grid;
  gap: 3px;
}

.form-upload b {
  font-size: 11px;
}

.form-upload small {
  color: #8b9497;
  font-size: 11px;
}

.agreement {
  margin-top: 13px;
  color: #687175;
}

.shift-summary {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 15px;
  padding: 12px;
  border-radius: 12px;
  color: #172000;
  background: rgba(179, 211, 52, 0.2);
}

.shift-summary > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 10px;
  background: var(--epis-lime);
}

.shift-summary > div {
  display: grid;
  gap: 3px;
}

.shift-summary b {
  font-size: 12px;
}

.shift-summary small {
  color: #687175;
  font-size: 11px;
}

.shift-summary > i {
  margin-left: auto;
  padding: 5px 7px;
  border-radius: 6px;
  color: #fff;
  background: var(--epis-blue);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.workday-picker {
  margin-top: 13px;
}

.workday-picker > span {
  display: block;
  margin-bottom: 7px;
  font-size: 11px;
  font-weight: 700;
}

.workday-picker > div {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.workday-picker label {
  display: grid !important;
  place-items: center;
  padding: 9px 4px;
  border: 1px solid #dfe5e7;
  border-radius: 8px;
  color: #8b9497;
  background: #fafbfb;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all .15s ease;
}

.workday-picker label.selected {
  border-color: rgba(17, 139, 204, 0.45);
  color: var(--epis-blue);
  background: rgba(134, 204, 241, 0.14);
}

.workday-picker input {
  display: none;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 17px;
  padding-top: 15px;
  border-top: 1px solid #edf0f1;
}

.form-actions button {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border: 1px solid #dfe5e7;
  border-radius: 9px;
  color: #687175;
  background: #fff;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.form-actions button:last-child {
  border-color: var(--epis-blue);
  color: #fff;
  background: var(--epis-blue);
}

/* Login Page */
.login-page-body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: #e7e7e7;
  padding: clamp(16px, 3vw, 36px);
  box-sizing: border-box;
}

.login-page-body .app-root {
  background: transparent;
  min-height: auto;
  width: 100%;
  display: grid;
  place-items: center;
}

.login-preview-label {
  margin-bottom: 18px;
}

.login-shell {
  min-height: 520px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  border: 1px solid #dfe5e7;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 24px 64px rgba(20, 40, 50, .09);
  max-width: 920px;
  width: 100%;
}

.login-visual {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 35px;
  color: #fff;
  background: #171a1c;
}

.login-visual .brand {
  position: relative;
  z-index: 2;
}

.login-message {
  position: relative;
  z-index: 2;
  margin: auto 0;
}

.login-message > span {
  color: var(--epis-sky);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.login-message h2 {
  margin: 12px 0;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.08;
  letter-spacing: -2px;
}

.login-message mark {
  display: inline-block;
  margin-top: 6px;
  padding: 4px 10px 6px;
  border-radius: 8px;
  color: #172000;
  background: var(--epis-lime);
  transform: rotate(-1.5deg);
  white-space: nowrap;
}

.login-message p {
  max-width: 330px;
  color: #9ca5a8;
  font-size: 13px;
  line-height: 1.7;
}

.login-visual > small {
  position: relative;
  z-index: 2;
  color: #6f787b;
  font-size: 11px;
}

.login-orbit {
  position: absolute;
  border: 38px solid var(--epis-blue);
  border-radius: 50%;
}

.login-orbit.one {
  width: 230px;
  height: 230px;
  top: -100px;
  right: -80px;
}

.login-orbit.two {
  width: 190px;
  height: 190px;
  right: -85px;
  bottom: -90px;
  border-color: var(--epis-lime);
}

.login-card {
  width: min(340px, calc(100% - 40px));
  margin: auto;
  padding: 25px;
}

.login-welcome {
  color: var(--epis-blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.4px;
}

.login-card > h2 {
  margin: 7px 0 5px;
  font-size: 23px;
  letter-spacing: -1px;
}

.login-card > p {
  margin: 0 0 19px;
  color: #8b9497;
  font-size: 12px;
}

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

.input-with-icon {
  position: relative;
}

.input-with-icon > svg {
  position: absolute;
  left: 11px;
  top: 50%;
  color: #929b9e;
  transform: translateY(-50%);
}

.login-card .input-with-icon input {
  padding-left: 36px;
}

.login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.login-options label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #687175;
  font-size: 11px;
  cursor: pointer;
}

.login-options input {
  width: auto;
  accent-color: var(--epis-blue);
}

.login-options button,
.login-options a {
  padding: 0;
  border: 0;
  color: var(--epis-blue);
  background: none;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.login-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: var(--epis-blue);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 17px 0;
  color: #a0a8ab;
  font-size: 11px;
}

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

.sso-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px;
  border: 1px solid #dfe5e7;
  border-radius: 10px;
  color: #4f585b;
  background: #fff;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.sso-button span {
  display: grid;
  place-items: center;
  width: 27px;
  height: 21px;
  border-radius: 5px;
  color: #fff;
  background: #171a1c;
  font-size: 11px;
}

.login-help {
  display: block;
  margin-top: 18px;
  color: #929b9e;
  font-size: 11px;
  text-align: center;
}

.login-help b,
.login-help a {
  color: var(--epis-blue);
  text-decoration: none;
}

/* Procurement Landing Page */
.procurement-page {
  min-height: calc(100vh - 76px);
  padding: 28px;
  color: #202426;
  background: #f5f5f3;
}

.procurement-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(310px, .8fr);
  gap: 24px;
  min-height: 300px;
  padding: 34px;
  border-radius: 24px;
  color: #fff;
  background: #171a1c;
}

.procurement-hero:before {
  content: "";
  position: absolute;
  width: 310px;
  height: 310px;
  top: -190px;
  left: 42%;
  border: 55px solid var(--epis-blue);
  border-radius: 50%;
  opacity: .85;
}

.procurement-hero:after {
  content: "";
  position: absolute;
  width: 170px;
  height: 170px;
  right: -80px;
  bottom: -105px;
  border: 35px solid var(--epis-lime);
  border-radius: 50%;
}

.procurement-hero-copy,
.procurement-actions {
  position: relative;
  z-index: 1;
}

.procurement-hero-copy {
  align-self: center;
}

.procurement-hero h1 {
  margin: 10px 0 12px;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.02;
  letter-spacing: -2.8px;
}

.procurement-hero h1 mark {
  display: inline-block;
  padding: 2px 8px 6px;
  border-radius: 8px;
  color: #172000;
  background: var(--epis-lime);
  transform: rotate(-1.5deg);
}

.procurement-hero-copy > p {
  max-width: 570px;
  margin: 0;
  color: #aab1b4;
  font-size: 13px;
  line-height: 1.7;
}

.procurement-search {
  max-width: 660px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 25px;
  padding: 6px 7px 6px 14px;
  border: 1px solid #3b4144;
  border-radius: 13px;
  color: var(--epis-sky);
  background: #252a2d;
}

.procurement-search input {
  min-width: 0;
  flex: 1;
  padding: 7px 0;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
  font: inherit;
  font-size: 12px;
}

.procurement-search input::placeholder {
  color: #838d91;
}

.procurement-search kbd {
  padding: 7px 9px;
  border-radius: 8px;
  color: #1c2500;
  background: var(--epis-lime);
  font-family: inherit;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.procurement-actions {
  display: grid;
  align-content: center;
  gap: 10px;
}

.ai-action,
.form-action {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px;
  border-radius: 15px;
  text-align: left;
  cursor: pointer;
  transition: all .15s ease;
}

.ai-action {
  border: 1px solid #4d5960;
  color: #fff;
  background: rgba(35, 41, 44, .92);
  backdrop-filter: blur(10px);
}

.form-action {
  border: 0;
  color: #172000;
  background: var(--epis-lime);
}

.ai-action:hover {
  border-color: var(--epis-sky);
  background: #2b3235;
}

.form-action:hover {
  background: #c3de50;
}

.ai-action > span,
.form-action > span {
  width: 43px;
  height: 43px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 12px;
}

.ai-action > span {
  color: #fff;
  background: var(--epis-blue);
}

.form-action > span {
  color: #fff;
  background: #171a1c;
}

.ai-action > div,
.form-action > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.ai-action small,
.form-action small {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.1px;
  opacity: .65;
}

.ai-action b,
.form-action b {
  font-size: 13px;
}

.ai-action p,
.form-action p {
  margin: 0;
  font-size: 10.5px;
  line-height: 1.35;
}

.ai-action p {
  color: #8f999d;
}

.form-action p {
  color: #313d09;
}

.ai-action > svg,
.form-action > svg {
  margin-left: auto;
  flex: 0 0 auto;
}

.request-success {
  display: none;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(179, 211, 52, 0.45);
  border-radius: 12px;
  color: #4a6100;
  background: #edf7d0;
  font-size: 12px;
}

.request-success.show {
  display: flex;
}

.request-success button {
  margin-left: auto;
  padding: 3px;
  border: 0;
  color: inherit;
  background: none;
  cursor: pointer;
}

/* AI Workspace */
.ai-workspace {
  overflow: hidden;
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  max-height: 0;
  opacity: 0;
  margin-top: 0;
  border: 1px solid transparent;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 14px 40px rgba(20, 40, 50, .06);
  pointer-events: none;
  visibility: hidden;
  transform: translateY(-8px);
  transition: max-height .45s cubic-bezier(0.16, 1, 0.3, 1), 
              opacity .35s ease, 
              margin-top .35s ease, 
              transform .35s ease, 
              border-color .35s ease,
              visibility .45s ease;
}

.ai-workspace.open {
  max-height: 900px;
  opacity: 1;
  margin-top: 18px;
  border-color: #dfe5e7;
  pointer-events: auto;
  visibility: visible;
  transform: translateY(0);
}

.ai-aside {
  position: relative;
  overflow: hidden;
  padding: 26px;
  color: #fff;
  background: var(--epis-blue);
}

.ai-aside:after {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  right: -70px;
  bottom: -70px;
  border: 28px solid var(--epis-lime);
  border-radius: 50%;
}

.ai-aside > span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #172000;
  background: var(--epis-lime);
}

.ai-aside > small {
  display: block;
  margin-top: 28px;
  color: var(--epis-sky);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.4px;
}

.ai-aside h2 {
  max-width: 220px;
  margin: 8px 0;
  font-size: 25px;
  line-height: 1.15;
  letter-spacing: -1px;
}

.ai-aside > p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  line-height: 1.7;
}

.ai-aside > div {
  position: absolute;
  z-index: 1;
  left: 26px;
  right: 26px;
  bottom: 24px;
  display: flex;
  align-items: start;
  gap: 7px;
  color: #d9eef9;
  font-size: 9px;
  line-height: 1.5;
}

.ai-aside > div i {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--epis-lime);
}

.ai-conversation {
  padding: 24px;
}

.ai-chat-head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 15px;
  border-bottom: 1px solid #edf0f1;
}

.ai-chat-head > span {
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: var(--epis-blue);
}

.ai-chat-head > div {
  display: grid;
  gap: 2px;
}

.ai-chat-head b {
  font-size: 12px;
}

.ai-chat-head small {
  color: #75a000;
  font-size: 10px;
}

.ai-bubble {
  width: fit-content;
  max-width: 78%;
  margin: 16px 0;
  padding: 11px 13px;
  border-radius: 4px 13px 13px 13px;
  color: #4f585b;
  background: #f0f4f5;
  font-size: 12px;
  line-height: 1.6;
}

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

.ai-profile-form label {
  display: grid;
  gap: 5px;
}

.ai-profile-form label > span {
  font-size: 10px;
  font-weight: 700;
}

.ai-profile-form :is(input, select) {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid #dfe5e7;
  border-radius: 9px;
  color: #25292b;
  background: #fafbfb;
  font: inherit;
  font-size: 11px;
  outline: 0;
}

.ai-profile-form :is(input, select):focus {
  border-color: var(--epis-blue);
}

.ai-profile-form button {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px;
  border: 0;
  border-radius: 9px;
  color: #fff;
  background: var(--epis-blue);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.ai-messages {
  min-height: 220px;
  display: none;
}

.ai-messages.show {
  display: block;
}

.user-bubble {
  width: fit-content;
  max-width: 75%;
  margin: 12px 0 12px auto;
  padding: 11px 13px;
  border-radius: 13px 4px 13px 13px;
  color: #fff;
  background: var(--epis-blue);
  font-size: 12px;
}

.ai-message-box {
  display: flex;
  gap: 7px;
  padding: 6px;
  border: 1px solid #dfe5e7;
  border-radius: 11px;
}

.ai-message-box input {
  flex: 1;
  min-width: 0;
  padding: 5px 7px;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 11px;
}

.ai-message-box button {
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 9px;
  color: #fff;
  background: var(--epis-blue);
  cursor: pointer;
}

/* Request monitoring table */
.request-section {
  overflow: hidden;
  margin-top: 18px;
  border: 1px solid #e2e7e9;
  border-radius: 20px;
  background: #fff;
}

.request-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 22px 17px;
}

.request-section-head .eyebrow {
  color: var(--epis-blue);
}

.request-section-head h2 {
  margin: 5px 0 3px;
  font-size: 21px;
  letter-spacing: -.7px;
}

.request-section-head p {
  margin: 0;
  color: #8b9497;
  font-size: 11px;
}

.request-stats {
  display: flex;
  gap: 7px;
}

.request-stats > span {
  min-width: 65px;
  display: grid;
  padding: 8px 10px;
  border-radius: 9px;
  color: #8b9497;
  background: #f3f6f7;
  font-size: 9px;
}

.request-stats b {
  color: #25292b;
  font-size: 16px;
}

.request-tabs {
  display: flex;
  gap: 3px;
  padding: 0 22px;
  border-bottom: 1px solid #e7ebec;
}

.request-tabs button {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 3px;
  border: 0;
  border-bottom: 2px solid transparent;
  color: #8b9497;
  background: none;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.request-tabs button + button {
  margin-left: 20px;
}

.request-tabs button.active {
  border-bottom-color: var(--epis-blue);
  color: var(--epis-blue);
}

.request-tabs button span {
  padding: 2px 6px;
  border-radius: 8px;
  color: #667074;
  background: #edf1f2;
  font-size: 9px;
}

.request-table-wrap {
  overflow-x: auto;
}

.request-table {
  width: 100%;
  min-width: 850px;
  border-collapse: collapse;
}

.request-table th {
  padding: 11px 14px;
  color: #7f898d;
  background: #f7f9f9;
  font-size: 9px;
  letter-spacing: .6px;
  text-align: left;
  text-transform: uppercase;
}

.request-table td {
  padding: 13px 14px;
  border-top: 1px solid #edf0f1;
  color: #4f585b;
  font-size: 11px;
}

.request-table tbody tr:hover {
  background: rgba(134, 204, 241, 0.08);
}

.request-table td > b,
.request-table td:first-child > small {
  display: block;
}

.request-table td small {
  margin-top: 3px;
  color: #99a1a4;
  font-size: 9px;
}

.request-table .request-id {
  color: var(--epis-blue);
  font-size: 11px;
}

.activity-name {
  display: block;
  max-width: 180px;
}

.quantity-cell {
  font-weight: 700;
  white-space: nowrap;
}

.process-badge,
.request-status {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 7px;
  border-radius: 7px;
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}

.process-badge {
  color: #086b9f;
  background: #e8f6fc;
}

.process-badge.ready,
.request-status.approved {
  color: #577000;
  background: #f1f7db;
}

.request-status.pending {
  color: #916100;
  background: #fff4d9;
}

.detail-button {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 8px;
  border: 1px solid #dfe5e7;
  border-radius: 7px;
  color: var(--epis-blue);
  background: #fff;
  font-size: 9px;
  font-weight: 700;
  cursor: pointer;
}

.detail-button:hover {
  border-color: var(--epis-blue);
}

.request-table .request-empty {
  height: 190px;
  text-align: center;
}

.request-empty svg {
  display: block;
  margin: 0 auto 8px;
  color: #aeb7ba;
}

.request-empty b,
.request-empty span {
  display: block;
}

.request-empty span {
  margin-top: 3px;
  color: #9aa2a6;
}

/* Modals for Procurement */
.request-form-modal,
.request-detail-modal {
  width: min(650px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  overflow-y: auto;
  padding: 24px;
  border: 1px solid #e1e7e9;
  border-radius: 24px;
  color: #171717;
  background: #fff;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .28);
}

.request-form-modal form {
  margin-top: 22px;
}

.request-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.request-form-grid label {
  display: grid;
  gap: 6px;
}

.request-form-grid label.wide {
  grid-column: 1 / -1;
}

.request-form-grid label > span {
  font-size: 11px;
  font-weight: 700;
}

.request-form-grid :is(input, select) {
  width: 100%;
  padding: 10px 11px;
  border: 1px solid #dfe5e7;
  border-radius: 9px;
  color: #25292b;
  background: #fafbfb;
  font: inherit;
  font-size: 11px;
  outline: 0;
}

.request-form-grid :is(input, select):focus {
  border-color: var(--epis-blue);
}

.request-form-grid optgroup {
  font-weight: 700;
  color: #6c787c;
  background: #ffffff;
}

.request-form-grid option {
  font-weight: 400;
  color: #25292b;
  background: #ffffff;
}

/* ── Items Section ─────────────────────────────────────────── */
.items-section {
  margin-top: 18px;
  border: 1px solid #e8ecee;
  border-radius: 13px;
  overflow: hidden;
}

.items-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  background: #f5f7f8;
  border-bottom: 1px solid #e8ecee;
}

.items-section-header > span {
  font-size: 11px;
  font-weight: 700;
  color: #454e52;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.btn-add-item {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  border: 1.5px solid var(--epis-blue);
  border-radius: 8px;
  background: rgba(0, 119, 182, 0.06);
  color: var(--epis-blue);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s, transform .12s;
}

.btn-add-item:hover {
  background: rgba(0, 119, 182, 0.13);
  transform: translateY(-1px);
}

.btn-add-item:active {
  transform: translateY(0);
}

.items-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.item-row {
  display: grid;
  grid-template-columns: 1fr 80px 1fr auto;
  gap: 8px;
  align-items: end;
  padding: 10px 14px;
  border-bottom: 1px solid #f0f3f4;
  animation: itemRowIn .18s ease;
}

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

@keyframes itemRowIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.item-row-field {
  display: grid;
  gap: 4px;
}

.item-row-field > span {
  font-size: 10px;
  font-weight: 700;
  color: #687175;
}

.item-row-field > input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #dfe5e7;
  border-radius: 8px;
  color: #25292b;
  background: #fafbfb;
  font: inherit;
  font-size: 11px;
  outline: 0;
  transition: border-color .15s;
}

.item-row-field > input:focus {
  border-color: var(--epis-blue);
}

.item-row-field > input::placeholder {
  color: #b5bec2;
}

.btn-remove-item {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid #fcd4d4;
  border-radius: 8px;
  background: #fff5f5;
  color: #e05252;
  cursor: pointer;
  transition: background .15s, transform .12s;
  flex-shrink: 0;
  margin-bottom: 1px;
}

.btn-remove-item:hover {
  background: #fee2e2;
  transform: scale(1.08);
}

.items-empty {
  padding: 16px 14px;
  font-size: 11px;
  color: #9aa5a9;
  text-align: center;
}

.items-empty b {
  color: var(--epis-blue);
}

/* ── Input Method Selector ───────────────────────────────── */
.input-method-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
  margin-bottom: 16px;
}

.input-method-option {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1.5px solid #dfe5e7;
  border-radius: 10px;
  background: #fafbfb;
  color: #5a656a;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all .18s ease;
  user-select: none;
}

.input-method-option input[type="radio"] {
  display: none;
}

.input-method-option:hover {
  border-color: #b8c8d0;
  background: #f1f6f8;
}

.input-method-option.active {
  border-color: var(--epis-blue);
  background: rgba(0, 119, 182, 0.08);
  color: var(--epis-blue);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 119, 182, 0.12);
}

.input-method-option svg {
  flex-shrink: 0;
}

/* ── File Upload / Doc Link Section ──────────────────────── */
.file-upload-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.doc-link-box {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  border: 1.5px solid #d4e2e8;
  border-radius: 12px;
  background: #f7fafc;
  transition: all .2s ease;
}

.doc-link-box:focus-within {
  border-color: var(--epis-blue);
  background: #f0f7fb;
  box-shadow: 0 0 0 3px rgba(17, 139, 204, 0.12);
}

.doc-link-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(17, 139, 204, 0.12);
  color: var(--epis-blue);
  flex-shrink: 0;
}

.doc-link-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.doc-link-label {
  display: grid;
  gap: 5px;
}

.doc-link-label > span {
  font-size: 11px;
  font-weight: 700;
  color: #4f5a60;
}

.doc-link-label > input {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #cfd9dc;
  border-radius: 8px;
  color: #25292b;
  background: #fff;
  font: inherit;
  font-size: 12px;
  outline: 0;
  transition: border-color .15s, box-shadow .15s;
}

.doc-link-label > input:focus {
  border-color: var(--epis-blue);
  box-shadow: 0 0 0 2px rgba(17, 139, 204, 0.15);
}

.doc-link-label > input::placeholder {
  color: #9aa5a9;
}

.file-dropzone {
  border: 2px dashed #cfd9dc;
  border-radius: 12px;
  background: #fafbfb;
  padding: 24px 16px;
  text-align: center;
  transition: all .2s ease;
  cursor: pointer;
}

.file-dropzone:hover,
.file-dropzone.drag-over {
  border-color: var(--epis-blue);
  background: rgba(0, 119, 182, 0.04);
}

.dropzone-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.dropzone-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(0, 119, 182, 0.1);
  color: var(--epis-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.dropzone-inner b {
  font-size: 13px;
  color: #2b3337;
}

.dropzone-inner p {
  margin: 0;
  font-size: 11px;
  color: #7b888e;
}

.btn-browse-file {
  margin-top: 8px;
  padding: 7px 16px;
  border: none;
  border-radius: 8px;
  background: var(--epis-blue);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .15s, transform .12s;
}

.btn-browse-file:hover {
  opacity: .92;
  transform: translateY(-1px);
}

/* ── File Preview Card ────────────────────────────────────── */
.file-preview-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border: 1px solid #cce3ed;
  border-radius: 10px;
  background: #f2f8fa;
  animation: itemRowIn .2s ease;
}

.file-preview-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.file-type-badge {
  padding: 5px 8px;
  border-radius: 6px;
  background: var(--epis-blue);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.file-preview-info div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.file-preview-info b {
  font-size: 12px;
  color: #1f272a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 320px;
}

.file-preview-info small {
  font-size: 10px;
  color: #728288;
}

.btn-remove-file {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid #fcd4d4;
  border-radius: 7px;
  background: #fff5f5;
  color: #e05252;
  cursor: pointer;
  transition: all .15s ease;
  flex-shrink: 0;
}

.btn-remove-file:hover {
  background: #fee2e2;
  transform: scale(1.06);
}

.file-upload-note {
  font-size: 10px;
  color: #7b888e;
  font-style: italic;
  display: block;
  text-align: right;
}

/* ── End Items Section ────────────────────────────────────── */

.request-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid #edf0f1;
}

.request-form-actions button,
.detail-close {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border: 1px solid #dfe5e7;
  border-radius: 9px;
  color: #687175;
  background: #fff;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.request-form-actions button:last-child,
.detail-close {
  border-color: var(--epis-blue);
  color: #fff;
  background: var(--epis-blue);
}

.detail-highlight {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 14px;
  padding: 15px;
  border-radius: 13px;
  background: rgba(134, 204, 241, 0.14);
}

.detail-highlight > span {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 11px;
  color: #fff;
  background: var(--epis-blue);
}

.detail-highlight > div {
  display: grid;
  gap: 2px;
}

.detail-highlight small {
  color: var(--epis-blue);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .8px;
}

.detail-highlight b {
  font-size: 14px;
}

.detail-highlight p {
  margin: 0;
  color: #788286;
  font-size: 10px;
}

.detail-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.detail-info-grid > div {
  display: grid;
  gap: 3px;
  padding: 11px;
  border: 1px solid #e8eced;
  border-radius: 10px;
}

.detail-info-grid small {
  color: #929b9e;
  font-size: 9px;
}

.detail-info-grid b {
  font-size: 11px;
}

.detail-flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 14px 0;
}

.detail-flow > div {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid #e8eced;
  border-radius: 10px;
}

.detail-flow i {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: #926100;
  background: #fff4d9;
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
}

.detail-flow .complete i {
  color: #4f6800;
  background: #eaf4c7;
}

.detail-flow span {
  display: grid;
}

.detail-flow b {
  font-size: 10px;
}

.detail-flow small {
  color: #929b9e;
  font-size: 9px;
}

.detail-close {
  width: 100%;
  justify-content: center;
}

/* ── Lihat Semua Barang ─────────────────────────────────── */
.detail-highlight {
  position: relative;
  flex-wrap: wrap;
}

.btn-lihat-semua {
  margin-left: auto;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border: 1.5px solid var(--epis-blue);
  border-radius: 7px;
  background: rgba(0,119,182,0.07);
  color: var(--epis-blue);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s, transform .12s;
  white-space: nowrap;
}

.btn-lihat-semua:hover {
  background: rgba(0,119,182,0.14);
}

.btn-lihat-semua svg {
  transition: transform .2s;
}

.btn-lihat-semua.open svg {
  transform: rotate(180deg);
}

.detail-items-panel {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height .38s cubic-bezier(0.16, 1, 0.3, 1), 
              opacity .25s ease, 
              margin-bottom .3s ease, 
              border-color .3s ease;
  border: 1px solid transparent;
  border-radius: 11px;
  margin-bottom: 0;
}

.detail-items-panel.open {
  max-height: 360px;
  opacity: 1;
  border-color: #e8eced;
  margin-bottom: 14px;
  overflow-y: auto;
}

.detail-items-list {
  display: flex;
  flex-direction: column;
}

.detail-item-row {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 9px 13px;
  border-bottom: 1px solid #f0f3f4;
}

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

.detail-item-num {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--epis-blue);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  flex-shrink: 0;
}

.detail-item-info {
  display: grid;
  gap: 2px;
}

.detail-item-info b {
  font-size: 11px;
}

.detail-item-info a {
  font-size: 10px;
  color: var(--epis-blue);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
  display: block;
}

.detail-item-info a:hover {
  text-decoration: underline;
}

.detail-item-qty {
  padding: 3px 8px;
  border-radius: 6px;
  background: #edf4ff;
  color: var(--epis-blue);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

/* dark mode */
.theme-dark .btn-lihat-semua {
  border-color: var(--epis-sky);
  color: var(--epis-sky);
  background: rgba(134,204,241,0.08);
}

.theme-dark .detail-items-panel.open {
  border-color: #2b3133;
}

.theme-dark .detail-item-row {
  border-color: #2b3133;
}

.theme-dark .detail-item-qty {
  background: rgba(0,119,182,0.2);
  color: var(--epis-sky);
}
/* ── End Lihat Semua ───────────────────────────────────── */

/* =====================================
   DARK MODE OVERRIDES (.theme-dark)
===================================== */
.theme-dark {
  color: #f5f5f3;
  background: #090b0c;
}

.theme-dark .desktop-app,
.theme-dark .dashboard,
.theme-dark .procurement-page,
.theme-dark .forms-page,
.theme-dark .login-preview-page {
  color: #f5f5f3;
  background: #101314;
}

.theme-dark .topbar {
  border-color: #2a3033;
  background: #171a1c;
}

.theme-dark .icon-button {
  border-color: #343a3d;
  color: #e9edef;
  background: #202426;
}

.theme-dark .theme-toggle {
  border-color: #343a3d;
  background: #202426;
}

.theme-dark .topbar-divider {
  background: #343a3d;
}

.theme-dark .date span,
.theme-dark .quick-card small,
.theme-dark .agenda-list time,
.theme-dark .agenda-list article > div span,
.theme-dark .summary-row > div:last-child span,
.theme-dark .summary-stats span {
  color: #879195;
}

.theme-dark .quick-card,
.theme-dark .agenda-panel,
.theme-dark .summary-panel,
.theme-dark .monthly-attendance,
.theme-dark .form-catalog,
.theme-dark .employee-form-card,
.theme-dark .login-shell,
.theme-dark .ai-workspace,
.theme-dark .request-section,
.theme-dark .permission-modal,
.theme-dark .feature-modal,
.theme-dark .request-form-modal,
.theme-dark .request-detail-modal {
  border-color: #2b3133;
  color: #f5f5f3;
  background: #191d1f;
}

.theme-dark .quick-card:hover {
  border-color: var(--epis-sky);
}

.theme-dark .quick-card > svg {
  color: #687175;
}

.theme-dark .agenda-list article,
.theme-dark .summary-stats,
.theme-dark .summary-stats div {
  border-color: #303638;
}

.theme-dark .agenda-list time b {
  color: #f5f5f3;
}

.theme-dark .progress-ring {
  background: radial-gradient(circle, #191d1f 57%, transparent 59%), conic-gradient(var(--epis-blue) 0 96%, #343a3d 96%);
}

.theme-dark .attendance-metric {
  border-color: #303638;
  background: #202426;
}

.theme-dark .month-chip {
  border-color: #31566a;
  background: #202d33;
}

.theme-dark .attendance-table-wrap {
  border-color: #303638;
}

.theme-dark .attendance-table {
  color: #e9edef;
  background: #191d1f;
}

.theme-dark .attendance-table th,
.theme-dark .attendance-table td {
  border-color: #303638;
}

.theme-dark .attendance-table thead th,
.theme-dark .attendance-table thead .employee-column,
.theme-dark .attendance-table .weekend {
  background: #202426;
}

.theme-dark .attendance-table .employee-column {
  background: #191d1f;
  box-shadow: 1px 0 #303638;
}

.theme-dark .attendance-legend span b {
  color: #e9edef;
}

.theme-dark .form-catalog > button:not(.active) {
  color: #c4cbce;
}

.theme-dark .form-catalog > button:not(.active) > span {
  color: #aeb7ba;
  background: #262c2e;
}

.theme-dark .form-card-head,
.theme-dark .form-actions,
.theme-dark .choice-group,
.theme-dark .ai-chat-head,
.theme-dark .request-tabs,
.theme-dark .request-form-actions {
  border-color: #303638;
}

.theme-dark :is(.employee-form-card, .login-card, .permission-modal, .ai-profile-form, .request-form-grid) :is(input, select, textarea) {
  border-color: #343a3d;
  color: #e9edef;
  background: #202426;
}

.theme-dark .request-form-grid optgroup {
  color: #8da0a6;
  background: #202426;
}

.theme-dark .request-form-grid option {
  color: #e9edef;
  background: #202426;
}

.theme-dark .items-section {
  border-color: #2b3133;
}

.theme-dark .items-section-header {
  background: #1e2325;
  border-color: #2b3133;
}

.theme-dark .items-section-header > span {
  color: #9aa5a9;
}

.theme-dark .item-row {
  border-color: #2b3133;
}

.theme-dark .item-row-field > span {
  color: #7a868b;
}

.theme-dark .item-row-field > input {
  border-color: #343a3d;
  color: #e9edef;
  background: #202426;
}

.theme-dark .items-empty {
  color: #5a6669;
}

.theme-dark .form-upload {
  background: rgba(17, 139, 204, 0.1);
}

.theme-dark .shift-summary {
  color: #edf3d8;
  background: rgba(179, 211, 52, 0.12);
}

.theme-dark .shift-summary small {
  color: #aeb7ba;
}

.theme-dark .workday-picker label {
  border-color: #343a3d;
  color: #9ea8ab;
  background: #202426;
}

.theme-dark .workday-picker label.selected {
  border-color: rgba(17, 139, 204, 0.6);
  color: var(--epis-sky);
  background: rgba(17, 139, 204, 0.14);
}

.theme-dark .form-actions button,
.theme-dark .sso-button,
.theme-dark .request-form-actions button,
.theme-dark .detail-button {
  border-color: #343a3d;
  color: #cbd2d4;
  background: #202426;
}

.theme-dark .form-actions button:last-child,
.theme-dark .request-form-actions button:last-child,
.theme-dark .detail-close {
  color: #fff;
  background: var(--epis-blue);
}

.theme-dark .login-divider:before,
.theme-dark .login-divider:after {
  background: #343a3d;
}

.theme-dark .ai-bubble,
.theme-dark .request-stats > span {
  color: #ccd3d5;
  background: #252b2e;
}

.theme-dark .ai-message-box input {
  color: #e9edef;
}

.theme-dark .request-stats b {
  color: #f5f5f3;
}

.theme-dark .request-table th {
  color: #9ea8ab;
  background: #202426;
}

.theme-dark .request-table td {
  border-color: #303638;
  color: #cbd2d4;
}

.theme-dark .request-table tbody tr:hover {
  background: #202d33;
}

.theme-dark .request-tabs button span {
  color: #aeb7ba;
  background: #262c2e;
}

.theme-dark .detail-highlight {
  background: #202d33;
}

.theme-dark .doc-link-box {
  background: #1e2427;
  border-color: #2e373a;
}

.theme-dark .doc-link-box:focus-within {
  background: #1c272e;
  border-color: var(--epis-sky);
  box-shadow: 0 0 0 3px rgba(134, 204, 241, 0.15);
}

.theme-dark .doc-link-icon {
  background: rgba(134, 204, 241, 0.15);
  color: var(--epis-sky);
}

.theme-dark .doc-link-label > span {
  color: #a0acb0;
}

.theme-dark .doc-link-label > input {
  background: #171a1c;
  border-color: #343c40;
  color: #e9edef;
}

.theme-dark .doc-link-label > input:focus {
  border-color: var(--epis-sky);
  box-shadow: 0 0 0 2px rgba(134, 204, 241, 0.2);
}

.theme-dark .detail-info-grid > div,
.theme-dark .detail-flow > div {
  border-color: #303638;
}

.theme-dark .feature-all-grid > button {
  border-color: #303638;
  color: #f5f5f3;
  background: #202426;
}

/* ==========================================================
   LANDING PAGE STANDALONE & SEARCH TRACKING STYLES
   ========================================================== */
.landing-page-body {
  background: #f5f5f3;
  margin: 0;
  min-height: 100vh;
}

.landing-navbar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 74px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid #e3e3df;
  display: flex;
  align-items: center;
}

.landing-nav-inner {
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.landing-menu {
  display: flex;
  align-items: center;
  gap: 24px;
}

.landing-menu a {
  font-size: 13px;
  font-weight: 600;
  color: #687175;
  text-decoration: none;
  transition: color .15s ease;
}

.landing-menu a:hover,
.landing-menu a.active {
  color: var(--epis-blue);
}

.landing-nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.landing-btn-secondary {
  padding: 8px 14px;
  border: 1px solid #dfe5e7;
  border-radius: 9px;
  color: #25292b;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: all .15s ease;
}

.landing-btn-secondary:hover {
  border-color: var(--epis-blue);
  color: var(--epis-blue);
}

.landing-btn-primary {
  padding: 8px 16px;
  border-radius: 9px;
  color: #fff;
  background: var(--epis-blue);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: all .15s ease;
}

.landing-btn-primary:hover {
  background: #0e76ae;
}

.landing-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 32px 24px 64px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Standalone Hero refinement */
.landing-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .85fr);
  gap: 28px;
  min-height: 310px;
  padding: 38px 40px;
  border-radius: 26px;
  color: #fff;
  background: #171a1c;
  box-shadow: 0 20px 50px rgba(10, 20, 25, 0.08);
}

.landing-hero:before {
  content: "";
  position: absolute;
  width: 330px;
  height: 330px;
  top: -180px;
  left: 45%;
  border: 58px solid var(--epis-blue);
  border-radius: 50%;
  opacity: .85;
}

.landing-hero:after {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  right: -90px;
  bottom: -110px;
  border: 38px solid var(--epis-lime);
  border-radius: 50%;
}

.landing-hero-copy {
  position: relative;
  z-index: 2;
  align-self: center;
}

.landing-hero-copy h1 {
  margin: 10px 0 12px;
  font-size: clamp(34px, 4vw, 50px);
  line-height: 1.05;
  letter-spacing: -2.5px;
}

.landing-hero-copy h1 mark {
  display: inline-block;
  padding: 2px 9px 6px;
  border-radius: 8px;
  color: #172000;
  background: var(--epis-lime);
  transform: rotate(-1.5deg);
}

.landing-hero-copy > p {
  max-width: 580px;
  margin: 0;
  color: #aab1b4;
  font-size: 13px;
  line-height: 1.7;
}

/* Quick Search Suggestions */
.search-suggestions-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.search-suggestions-wrap span {
  font-size: 11px;
  color: #8b9497;
  font-weight: 600;
}

.suggestion-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--epis-sky);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all .15s ease;
}

.suggestion-pill:hover {
  background: rgba(134, 204, 241, 0.22);
  border-color: var(--epis-sky);
  color: #fff;
}

/* Tracking / Search Results Section */
.tracking-results-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.results-header-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 4px;
}

.results-header-bar h2 {
  margin: 4px 0 2px;
  font-size: 22px;
  letter-spacing: -.8px;
}

.results-header-bar p {
  margin: 0;
  color: #7f898d;
  font-size: 13px;
}

.results-badge-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge-query {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 9px;
  background: rgba(17, 139, 204, 0.12);
  color: var(--epis-blue);
  font-size: 12px;
  font-weight: 700;
}

.badge-reset-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border: 1px solid #dfe5e7;
  border-radius: 8px;
  background: #fff;
  color: #687175;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.badge-reset-btn:hover {
  color: #171717;
  border-color: #adb6b9;
}

/* Tracking Card */
.tracking-cards-grid {
  display: grid;
  gap: 16px;
  transition: all .3s ease;
}

@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tracking-card {
  border: 1px solid #e1e7e9;
  border-radius: 20px;
  background: #fff;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: cardFadeIn .32s cubic-bezier(0.16, 1, 0.3, 1) both;
  transition: transform .2s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color .2s ease, 
              box-shadow .2s ease;
}

.tracking-card:hover {
  transform: translateY(-2px);
  border-color: rgba(17, 139, 204, 0.45);
  box-shadow: 0 14px 36px rgba(17, 139, 204, 0.08);
}

.tracking-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  border-bottom: 1px solid #edf0f1;
}

.tracking-card-id {
  display: flex;
  align-items: center;
  gap: 10px;
}

.id-tag {
  font-size: 16px;
  font-weight: 800;
  color: var(--epis-blue);
  background: rgba(17, 139, 204, 0.1);
  padding: 4px 10px;
  border-radius: 8px;
}

.date-tag {
  font-size: 12px;
  color: #8b9497;
}

.division-tag {
  font-size: 11px;
  font-weight: 700;
  color: #667074;
  background: #f1f4f5;
  padding: 4px 8px;
  border-radius: 6px;
}

.tracking-card-top-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Card Content Grid */
.tracking-card-main {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 1fr);
  gap: 24px;
  align-items: center;
}

.tracking-item-highlight {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.tracking-item-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--epis-blue);
  flex: 0 0 auto;
}

.tracking-item-details {
  display: grid;
  gap: 3px;
}

.tracking-item-details small {
  color: #8b9497;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.tracking-item-details b {
  font-size: 18px;
  color: #171717;
}

.tracking-item-details p {
  margin: 3px 0 0;
  color: #555e61;
  font-size: 13px;
}

.tracking-meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 10px;
}

.tracking-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #687175;
}

.tracking-meta-item b {
  color: #25292b;
}

/* Visual Approval Pipeline */
.tracking-pipeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  background: #f8fafb;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid #e8eced;
}

.pipeline-step {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pipeline-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  flex: 0 0 auto;
}

.pipeline-step.approved .pipeline-circle {
  background: #eaf4c7;
  color: #4f6800;
}

.pipeline-step.pending .pipeline-circle {
  background: #fff4d9;
  color: #926100;
}

.pipeline-info {
  display: grid;
  gap: 2px;
}

.pipeline-info b {
  font-size: 11px;
}

.pipeline-info small {
  font-size: 10px;
  color: #8b9497;
}

/* Empty & Initial States */
.tracking-prompt-box {
  padding: 40px 24px;
  border: 1px dashed #d6dcde;
  border-radius: 20px;
  background: #fff;
  text-align: center;
  display: grid;
  place-items: center;
  gap: 8px;
}

.tracking-prompt-box svg {
  color: var(--epis-blue);
  margin-bottom: 4px;
}

.tracking-prompt-box h3 {
  margin: 0;
  font-size: 18px;
  color: #25292b;
}

.tracking-prompt-box p {
  max-width: 460px;
  margin: 0;
  color: #7f898d;
  font-size: 13px;
  line-height: 1.6;
}

.tracking-prompt-box code {
  font-family: inherit;
  font-weight: 700;
  color: var(--epis-blue);
  background: rgba(17, 139, 204, 0.08);
  padding: 2px 6px;
  border-radius: 6px;
}

.theme-dark .tracking-prompt-box {
  background: #191d1f;
  border-color: #2b3133;
}

.theme-dark .tracking-prompt-box h3 {
  color: #f5f5f3;
}

.theme-dark .tracking-prompt-box p {
  color: #8f9aa0;
}

.theme-dark .tracking-prompt-box code {
  background: rgba(134, 204, 241, 0.12);
  color: var(--epis-sky);
}

/* Dark mode for Landing & Tracking */
.theme-dark .landing-page-body {
  background: #101314;
  color: #f5f5f3;
}

.theme-dark .landing-navbar {
  background: rgba(23, 26, 28, 0.92);
  border-color: #2a3033;
}

.theme-dark .landing-menu a {
  color: #9ea8ab;
}

.theme-dark .landing-menu a:hover,
.theme-dark .landing-menu a.active {
  color: var(--epis-sky);
}

.theme-dark .landing-btn-secondary {
  border-color: #343a3d;
  color: #cbd2d4;
  background: #202426;
}

.theme-dark .landing-btn-secondary:hover {
  border-color: var(--epis-sky);
  color: #fff;
}

.theme-dark .tracking-card,
.theme-dark .tracking-prompt-box {
  border-color: #2b3133;
  color: #f5f5f3;
  background: #191d1f;
}

.theme-dark .tracking-card-top {
  border-color: #303638;
}

.theme-dark .division-tag {
  background: #262c2e;
  color: #ccd3d5;
}

.theme-dark .tracking-item-details b {
  color: #f5f5f3;
}

.theme-dark .tracking-item-details p {
  color: #9ea8ab;
}

.theme-dark .tracking-meta-item {
  color: #8b9497;
}

.theme-dark .tracking-meta-item b {
  color: #e9edef;
}

.theme-dark .tracking-pipeline {
  background: #202426;
  border-color: #303638;
}

.theme-dark .badge-reset-btn {
  background: #202426;
  border-color: #343a3d;
  color: #cbd2d4;
}

.theme-dark .badge-reset-btn:hover {
  color: #fff;
}

.theme-dark .tracking-prompt-box h3 {
  color: #f5f5f3;
}

/* =====================================
   RESPONSIVE QUERIES
===================================== */
@media (max-width: 1230px) {
  .desktop-app {
    grid-template-columns: 200px minmax(620px, 1fr);
  }
  .procurement-hero,
  .landing-hero {
    grid-template-columns: 1.25fr 1fr;
    padding: 26px;
  }
  .tracking-card-main {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 850px) {
  .landing-menu {
    display: none;
  }
  .landing-hero {
    grid-template-columns: 1fr;
    padding: 24px;
  }
  .procurement-actions {
    grid-template-columns: 1fr;
  }
  .tracking-pipeline {
    grid-template-columns: 1fr;
  }
  .desktop-app {
    grid-template-columns: 80px minmax(600px, 1fr);
  }
  .sidebar {
    padding-inline: 12px;
  }
  .sidebar .brand > div:last-child,
  .sidebar-label,
  .sidebar-nav span,
  .sidebar-nav small,
  .sidebar-promo,
  .sidebar-user span,
  .sidebar-user svg {
    display: none;
  }
  .sidebar .brand {
    justify-content: center;
  }
  .sidebar-nav a,
  .sidebar-nav button {
    justify-content: center;
    padding: 12px;
  }
  .sidebar-user {
    justify-content: center;
  }
  .dashboard {
    grid-template-columns: 1fr;
  }
  .procurement-hero {
    grid-template-columns: 1fr;
  }
  .ai-workspace {
    grid-template-columns: 1fr;
  }
  .login-shell {
    grid-template-columns: 1fr;
    border-radius: 20px;
    max-width: 480px;
  }
  .login-visual {
    padding: 30px 24px;
    min-height: 220px;
  }
  .login-message h2 {
    font-size: clamp(24px, 6vw, 36px);
  }
  .login-card {
    width: 100%;
    max-width: 100%;
    padding: 28px 24px 32px;
  }
}

/* ── SweetAlert2 Custom Styling ──────────────────────────── */
.epis-swal-popup {
  border-radius: 18px !important;
  font-family: inherit !important;
  padding: 24px 20px !important;
  box-shadow: 0 16px 36px rgba(0,0,0,0.18) !important;
}

.epis-swal-popup .swal2-title {
  font-size: 19px !important;
  font-weight: 800 !important;
  color: #171717 !important;
}

.epis-swal-popup .swal2-confirm {
  border-radius: 10px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  padding: 10px 22px !important;
}

.theme-dark .epis-swal-popup {
  background: #191d1f !important;
  border: 1px solid #2b3133 !important;
}

.theme-dark .epis-swal-popup .swal2-title {
  color: #f5f5f3 !important;
}

