:root {
  --cda-blue-700: #0b61d1;
  --cda-teal-400: #238b86;
  --cda-blue-300: #4f96cf;
  --cda-gray-50: #f4f7fb;
  --cda-gray-200: #e4e9f0;
  --cda-yellow-500: #ffd400;
  --cda-text: #0f2b3d;
  --surface: #ffffff;
  --sidebar: #30383f;
  --sidebar-deep: #262d33;
  --danger: #dc3545;
  --success: #138a5b;
  --warning: #7c5a00;
  --shadow: 0 16px 34px rgba(15, 43, 61, 0.08);
  --shadow-soft: 0 10px 26px rgba(15, 43, 61, 0.07);
  --glass-surface: rgba(255, 255, 255, 0.86);
  --brand-wash: linear-gradient(135deg, rgba(11, 97, 209, 0.07), rgba(35, 139, 134, 0.06) 52%, rgba(255, 212, 0, 0.09));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top right, rgba(79, 150, 207, 0.13), transparent 34%),
    radial-gradient(circle at bottom left, rgba(255, 212, 0, 0.12), transparent 30%),
    var(--cda-gray-50);
  color: var(--cda-text);
  font-family: Arial, Helvetica, sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.app-loading [data-view] {
  visibility: hidden;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-panel {
  width: min(920px, 100%);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--cda-gray-200);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 36px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 12px;
  color: var(--cda-blue-700);
  font-size: 48px;
  line-height: 1;
}

h3 {
  margin-bottom: 4px;
}

.eyebrow {
  margin-bottom: 8px;
  color: var(--cda-teal-400);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.muted,
.hint {
  color: #496274;
}

.hint {
  margin-bottom: 0;
  font-size: 13px;
}

.stack,
label {
  display: grid;
}

.stack {
  gap: 16px;
}

label {
  gap: 7px;
  font-weight: 700;
}

label span {
  font-size: 13px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #c9d3df;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--cda-text);
  padding: 10px 12px;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--cda-blue-300);
  background: white;
  box-shadow: 0 0 0 3px rgba(79, 150, 207, 0.16);
  outline: none;
}

textarea {
  resize: vertical;
}

.btn,
.icon-btn,
.punch-btn,
.menu-btn,
.nav-button {
  border: 0;
  font-weight: 700;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 6px;
  gap: 8px;
  padding: 9px 15px;
  text-decoration: none;
  box-shadow: 0 8px 16px rgba(15, 43, 61, 0.06);
  transition: border-color 160ms ease, box-shadow 160ms ease, filter 160ms ease, transform 160ms ease;
}

.btn:hover {
  box-shadow: 0 12px 24px rgba(15, 43, 61, 0.11);
  transform: translateY(-1px);
}

.btn:active {
  box-shadow: 0 6px 12px rgba(15, 43, 61, 0.08);
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(145deg, #238be6, var(--cda-blue-700));
  color: white;
}

.btn-secondary {
  border: 1px solid #bfd3e8;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  color: var(--cda-blue-700);
}

.button-row {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 246px minmax(0, 1fr);
}

.app-shell.sidebar-collapsed {
  grid-template-columns: 0 minmax(0, 1fr);
}

.app-shell.sidebar-collapsed .sidebar {
  overflow: hidden;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  background: var(--sidebar);
  color: white;
}

.brand {
  min-height: 57px;
  display: flex;
  align-items: center;
  gap: 11px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 16px;
}

.brand-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: white;
  overflow: hidden;
}

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

.brand strong {
  display: block;
  color: #43b7ff;
  font-size: 22px;
  line-height: 1;
}

.brand span {
  color: #d5dee8;
  font-size: 12px;
}

.side-nav {
  display: grid;
  gap: 10px;
  padding: 14px 10px 28px;
}

.nav-group {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  overflow: hidden;
}

.nav-group[open] {
  background: rgba(255, 255, 255, 0.055);
}

.nav-group summary {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: white;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  list-style: none;
  padding: 11px 12px;
}

.nav-group summary::-webkit-details-marker {
  display: none;
}

.nav-group summary::after {
  content: "+";
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #caeaff;
  font-size: 14px;
  line-height: 1;
}

.nav-group[open] summary::after {
  content: "-";
}

.nav-group-items {
  display: grid;
  gap: 4px;
  padding: 0 6px 8px;
}

.nav-item {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  border-radius: 6px;
  background: transparent;
  color: #edf3f9;
  font-size: 14px;
  line-height: 1.2;
  padding: 9px 11px;
  text-align: left;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease;
}

.nav-badge {
  min-width: 22px;
  min-height: 22px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #ff9aa6;
  border-radius: 999px;
  background: #ffe8eb;
  color: #b42336;
  font-size: 12px;
  font-weight: 900;
  padding: 2px 6px;
}

.nav-item:hover,
.nav-item.active {
  background: #1681f4;
  color: white;
}

.workspace {
  min-width: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(244, 247, 251, 0.28) 220px),
    transparent;
}

.topbar {
  min-height: 57px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid rgba(216, 222, 231, 0.82);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  padding: 10px 22px;
}

.menu-btn {
  width: 36px;
  height: 34px;
  display: grid;
  align-content: center;
  gap: 4px;
  border-radius: 6px;
  background: transparent;
  padding: 8px;
}

.menu-btn span {
  display: block;
  height: 2px;
  background: #687583;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: right;
}

.user-chip span {
  display: block;
  color: #496274;
  font-size: 13px;
}

.icon-btn {
  min-width: 42px;
  min-height: 34px;
  border-radius: 6px;
  background: var(--cda-gray-200);
  color: var(--cda-blue-700);
  font-size: 12px;
}

.time-console {
  min-height: 500px;
  display: grid;
  justify-items: center;
  align-content: start;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #dbe6f2;
  background:
    linear-gradient(135deg, rgba(11, 97, 209, 0.08), rgba(35, 139, 134, 0.08) 52%, rgba(255, 212, 0, 0.13)),
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.92), rgba(244, 247, 251, 0.72) 54%, rgba(244, 247, 251, 0.92));
  padding: 34px 24px 32px;
  text-align: center;
}

.time-logo {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 14px;
  border: 4px solid rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 32px rgba(15, 43, 61, 0.14);
}

.date-line,
.time-line {
  margin-bottom: 10px;
  color: #07172b;
  font-size: 31px;
  font-weight: 300;
  line-height: 1.16;
}

.date-line strong,
.time-line strong {
  font-weight: 800;
}

.state-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 4px 0 16px;
  flex-wrap: wrap;
}

.password-required-banner {
  width: min(720px, 100%);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 14px;
  align-items: center;
  border: 1px solid #f2c94c;
  border-radius: 8px;
  background: #fff8db;
  color: #5c4300;
  margin-bottom: 16px;
  padding: 12px 14px;
  text-align: left;
}

.password-required-banner strong,
.password-required-banner span {
  display: block;
}

.password-required-banner span {
  font-size: 13px;
}

.password-required-banner .btn {
  grid-row: 1 / span 2;
  grid-column: 2;
}

.lunch-reminder {
  width: min(720px, 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid #ffd68a;
  border-left: 5px solid #f5a000;
  border-radius: 8px;
  background: #fff8e7;
  color: var(--cda-text);
  margin-bottom: 16px;
  padding: 12px 14px;
  text-align: left;
}

.lunch-reminder div {
  display: grid;
  gap: 3px;
}

.lunch-reminder span {
  color: #624800;
  font-size: 13px;
}

.remarks-card {
  width: min(520px, 100%);
  margin-bottom: 18px;
  gap: 4px;
  text-align: center;
}

.remarks-card span {
  color: #24485f;
  font-weight: 800;
}

.remarks-card textarea {
  min-height: 144px;
  border-color: #bfd2e4;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86), 0 10px 24px rgba(15, 43, 61, 0.08);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.remarks-card textarea:focus {
  border-color: var(--cda-blue-300);
  background: white;
  box-shadow: 0 0 0 3px rgba(79, 150, 207, 0.18), 0 12px 26px rgba(15, 43, 61, 0.1);
  outline: none;
}

.punch-grid {
  width: min(720px, 100%);
  display: grid;
  grid-template-columns: repeat(4, minmax(132px, 1fr));
  gap: 12px;
}

.punch-btn {
  min-height: 118px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  border-radius: 8px;
  color: white;
  padding: 14px;
  position: relative;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 14px 30px rgba(15, 43, 61, 0.16);
  transition: box-shadow 180ms ease, filter 180ms ease, transform 180ms ease;
}

.punch-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0) 48%);
  pointer-events: none;
}

.punch-btn > * {
  position: relative;
  z-index: 1;
}

.punch-btn:not(:disabled):hover {
  filter: brightness(1.05);
  box-shadow: 0 18px 36px rgba(15, 43, 61, 0.22);
  transform: translateY(-2px);
}

.punch-btn:not(:disabled):active {
  box-shadow: 0 10px 20px rgba(15, 43, 61, 0.18);
  transform: translateY(0);
}

.punch-btn:focus-visible,
.btn:focus-visible,
.nav-item:focus-visible,
.icon-btn:focus-visible,
.menu-btn:focus-visible {
  outline: 3px solid rgba(90, 175, 240, 0.7);
  outline-offset: 2px;
}

.punch-btn:disabled {
  cursor: not-allowed;
  box-shadow: none;
  filter: grayscale(0.18);
  opacity: 0.42;
}

.punch-time-in {
  background: linear-gradient(145deg, #16a36d, #0b6f50);
}

.punch-lunch-out {
  background: linear-gradient(145deg, #ffbd2e, #df8700);
  color: #102033;
}

.punch-lunch-in {
  background: linear-gradient(145deg, #238be6, #0b61d1);
}

.punch-time-out {
  background: linear-gradient(145deg, #ee4b5f, #ba2537);
}

.punch-icon {
  min-width: 42px;
  min-height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
  font-size: 12px;
  font-weight: 900;
}

.punch-btn span:not(.punch-icon) {
  font-size: 16px;
}

.punch-btn strong {
  font-size: 24px;
}

.balance-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.local-balance-strip {
  grid-template-columns: repeat(2, minmax(150px, 240px));
}

.leave-balance-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.balance-card {
  min-height: 82px;
  display: grid;
  align-content: center;
  gap: 6px;
  border: 1px solid rgba(206, 219, 233, 0.92);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 10px 22px rgba(15, 43, 61, 0.06);
  padding: 13px 14px;
}

.balance-card span {
  color: #496274;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.balance-card strong {
  color: var(--cda-blue-700);
  font-size: 20px;
  overflow-wrap: anywhere;
}

.leave-balance-grid .balance-card {
  min-height: 106px;
  border-color: #d8e5f4;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.leave-balance-grid .balance-card strong {
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.12;
}

.leave-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.75fr);
  gap: 16px;
  align-items: start;
  margin-bottom: 18px;
}

.leave-form-card,
.leave-workspace .ledger-section {
  border: 1px solid rgba(206, 219, 233, 0.92);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: 0 8px 18px rgba(15, 43, 61, 0.05);
  padding: 14px;
}

.leave-workspace .ledger-section {
  margin: 0;
}

.leave-workspace:has(.ledger-section.hidden) .leave-form-card {
  grid-column: 1 / -1;
}

.section-subhead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 4px 0 10px;
  color: var(--cda-text);
}

.dashboard-band {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  padding: 20px 24px 34px;
}

.panel {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(248, 251, 255, 0.9) 100%);
  border: 1px solid rgba(206, 219, 233, 0.92);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  padding: 18px;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--cda-blue-700), var(--cda-teal-400), var(--cda-yellow-500));
  opacity: 0.72;
}

.wide-panel {
  grid-column: 1 / -1;
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.approval-tools {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(280px, 1.1fr);
  gap: 12px;
  align-items: end;
  margin-bottom: 14px;
}

.quick-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.approval-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 10px;
}

.approval-counters {
  display: flex;
  gap: 7px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.counter-chip {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(190, 211, 232, 0.92);
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff 0%, #f5faff 100%);
  color: #496274;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 10px;
}

.counter-chip strong {
  color: var(--cda-blue-700);
  font-size: 14px;
}

.status-pill,
.state-pill {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 28px;
  border-radius: 999px;
  background: #e6f7f6;
  color: #0c5f5b;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 10px;
  white-space: nowrap;
}

.state-pill.warning {
  background: #fff7cc;
  color: var(--warning);
}

.state-pill.danger {
  background: #ffe7e3;
  color: var(--danger);
}

.calendar-event.floating,
.calendar-event.warning {
  border: 1px solid rgba(245, 158, 11, 0.42);
  background: #fff7cc;
  color: #8a5a00;
}

.calendar-event.rejected,
.calendar-event.danger {
  border: 1px solid rgba(220, 38, 38, 0.28);
  background: #ffe7e3;
  color: var(--danger);
}

.calendar-event {
  cursor: pointer;
  text-align: left;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.calendar-event:hover {
  border-color: rgba(33, 150, 243, 0.38);
  box-shadow: 0 8px 16px rgba(15, 43, 61, 0.1);
}

.calendar-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  border: 1px solid rgba(206, 219, 233, 0.92);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #f8fbff);
  box-shadow: 0 10px 24px rgba(15, 43, 61, 0.08);
  margin: 12px 0;
  padding: 12px;
}

.calendar-detail strong,
.calendar-detail small {
  display: block;
}

.my-attendance-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 16px;
  align-items: stretch;
}

.attendance-focus,
.attendance-period-card,
.attendance-exception-panel {
  border: 1px solid rgba(206, 219, 233, 0.92);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 32px rgba(15, 43, 61, 0.06);
  padding: 18px;
}

.attendance-focus {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  background:
    linear-gradient(135deg, rgba(33, 150, 243, 0.12), rgba(74, 197, 189, 0.12)),
    #fff;
}

.attendance-focus h2 {
  margin: 4px 0;
  color: var(--ink);
  font-size: 30px;
}

.section-label {
  color: var(--cda-blue-700);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

.section-heading h4 {
  margin: 4px 0 0;
  font-size: 16px;
}

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

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

.punch-timeline {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 10px;
}

.punch-step {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 76px;
  border: 1px solid rgba(206, 219, 233, 0.92);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  padding: 12px;
}

.punch-step > span {
  display: inline-grid;
  place-items: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #e8eef5;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.punch-step.complete {
  border-color: rgba(22, 163, 74, 0.24);
  background: rgba(236, 253, 245, 0.82);
}

.punch-step.complete > span {
  background: #16a34a;
  color: #fff;
}

.punch-step strong,
.punch-step small {
  display: block;
}

.punch-step strong {
  color: var(--ink);
  font-size: 18px;
}

.attendance-insights-strong {
  margin: 16px 0;
}

.attendance-insights-strong .counter-chip {
  min-height: 78px;
  background: linear-gradient(180deg, #fff, #f8fbff);
}

.attendance-split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 16px;
  align-items: start;
}

.compact-history {
  gap: 10px;
}

.exception-item {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(239, 68, 68, 0.16);
  border-radius: 8px;
  background: #fff7f5;
  padding: 12px;
}

.exception-item + .exception-item {
  margin-top: 10px;
}

.exception-item strong {
  color: var(--ink);
}

.exception-item small {
  color: #7f1d1d;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 12px;
}

.profile-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
  border: 1px solid rgba(206, 219, 233, 0.92);
  border-radius: 8px;
  background: var(--brand-wash), #fff;
  box-shadow: 0 10px 22px rgba(15, 43, 61, 0.06);
  padding: 16px;
}

.profile-hero h2 {
  margin-bottom: 4px;
  color: var(--cda-blue-700);
}

.profile-photo-wrap {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 3px solid #fff;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--cda-blue-700), var(--cda-teal-400));
  box-shadow: 0 10px 20px rgba(15, 43, 61, 0.14);
}

.profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-initials {
  color: #fff;
  font-size: 26px;
  font-weight: 900;
}

.profile-self-service {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 14px;
  margin-top: 16px;
}

.profile-self-service form,
.profile-request-list {
  border: 1px solid rgba(206, 219, 233, 0.92);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: 0 8px 18px rgba(15, 43, 61, 0.05);
  padding: 14px;
}

.profile-request-list {
  display: grid;
  gap: 8px;
}

.restricted-request-form {
  align-self: start;
}

.profile-request-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(206, 219, 233, 0.92);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  padding: 10px;
}

.profile-request-row strong,
.profile-request-row small {
  display: block;
}

.profile-request-row small {
  color: #496274;
}

.profile-grid .metric strong {
  font-size: 20px;
  overflow-wrap: anywhere;
}

.metric {
  min-height: 92px;
  display: grid;
  align-content: center;
  gap: 6px;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  border: 1px solid rgba(206, 219, 233, 0.92);
  box-shadow: 0 8px 18px rgba(15, 43, 61, 0.05);
  padding: 14px;
}

.metric span {
  color: #496274;
  font-size: 13px;
  font-weight: 700;
}

.metric strong {
  color: var(--cda-blue-700);
  font-size: 28px;
}

.team-list,
.request-list,
.audit-list,
.history-list,
.leave-list,
.overtime-list,
.offset-list,
.announcement-list,
.assignment-list {
  display: grid;
  gap: 10px;
}

.leave-list,
.overtime-list,
.offset-list,
.announcement-list {
  margin-top: 14px;
}

.ledger-section {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(206, 219, 233, 0.92);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  box-shadow: 0 8px 18px rgba(15, 43, 61, 0.05);
  margin-bottom: 14px;
  padding: 12px;
}

.ledger-head,
.ledger-row {
  display: grid;
  grid-template-columns: minmax(90px, 0.7fr) minmax(180px, 1.5fr) minmax(70px, 0.5fr) minmax(80px, 0.6fr);
  gap: 10px;
  align-items: center;
}

.ledger-head {
  grid-template-columns: 1fr auto;
  color: #496274;
  font-size: 13px;
}

.ledger-head strong {
  color: var(--cda-text);
}

.ledger-list {
  display: grid;
  gap: 7px;
}

.ledger-row {
  border: 1px solid rgba(206, 219, 233, 0.92);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 6px 14px rgba(15, 43, 61, 0.04);
  padding: 10px;
}

.ledger-row span,
.ledger-row small {
  min-width: 0;
  color: #496274;
  overflow-wrap: anywhere;
}

.ledger-row strong,
.ledger-row small {
  display: block;
}

.ledger-row strong {
  color: var(--cda-text);
}

.calendar-legend {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  color: #496274;
  font-size: 13px;
  font-weight: 800;
}

.calendar-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.holiday-list {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.holiday-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(206, 219, 233, 0.92);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 18px rgba(15, 43, 61, 0.05);
  padding: 10px 12px;
}

.holiday-row small {
  display: block;
  color: #496274;
  margin-top: 2px;
}

.danger-action {
  color: var(--danger);
  border-color: #f0b8bf;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cda-blue-700);
}

.legend-dot.holiday {
  background: var(--danger);
}

.legend-dot.leave {
  background: var(--cda-teal-400);
}

.legend-dot.overtime {
  background: var(--cda-blue-700);
}

.legend-dot.offset {
  background: #6b7cff;
}

.legend-dot.birthday {
  background: var(--cda-yellow-500);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.calendar-weekday {
  color: #496274;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.calendar-day {
  min-height: 118px;
  border: 1px solid rgba(206, 219, 233, 0.92);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 18px rgba(15, 43, 61, 0.05);
  padding: 9px;
  overflow: hidden;
}

.calendar-day.muted-day {
  background: rgba(244, 247, 251, 0.62);
  box-shadow: none;
}

.calendar-day > strong {
  color: var(--cda-text);
  font-size: 13px;
}

.calendar-events {
  display: grid;
  gap: 5px;
  margin-top: 7px;
}

.calendar-event {
  display: grid;
  gap: 2px;
  border-radius: 7px;
  padding: 6px 7px;
  background: #e6f7f6;
  color: #0c5f5b;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.calendar-event.holiday {
  background: #ffe7e3;
  color: var(--danger);
}

.calendar-event.overtime {
  background: #e9f2ff;
  color: var(--cda-blue-700);
}

.calendar-event.offset {
  background: #efedff;
  color: #3f378a;
}

.calendar-event.birthday {
  background: #fff7cc;
  color: #7a5b00;
}

.calendar-event small {
  color: inherit;
  font-size: 10px;
  opacity: 0.78;
  text-transform: uppercase;
}

.row-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(206, 219, 233, 0.92);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 18px rgba(15, 43, 61, 0.05);
  padding: 12px;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.row-card:hover {
  border-color: #b7d4ef;
  background: white;
  box-shadow: 0 12px 24px rgba(15, 43, 61, 0.08);
}

.row-card strong,
.row-card span {
  display: block;
}

.row-card small {
  color: #496274;
}

.exceptions {
  margin-top: 6px;
  color: var(--danger);
  font-size: 13px;
}

.request-note {
  margin-top: 6px;
  color: #496274;
  font-size: 13px;
}

.announcement-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: start;
  border: 1px solid rgba(206, 219, 233, 0.92);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 18px rgba(15, 43, 61, 0.05);
  padding: 14px;
}

.announcement-card strong,
.announcement-card small {
  display: block;
}

.announcement-title-row {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.announcement-card small {
  margin-top: 3px;
  color: #496274;
}

.announcement-card p {
  margin: 10px 0 0;
  color: #20384a;
  line-height: 1.45;
}

.announcement-card .btn:disabled {
  cursor: default;
  opacity: 0.72;
}

.ack-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border: 1px solid #bee7df;
  border-radius: 999px;
  background: #e6f7f6;
  color: #0c5f5b;
  font-size: 12px;
  font-weight: 900;
  padding: 4px 9px;
}

.ack-chip.warning {
  border-color: #ffd0d5;
  background: #fff0f2;
  color: #b42336;
}

.ack-panel {
  margin-top: 12px;
  border: 1px solid rgba(206, 219, 233, 0.92);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.ack-panel summary {
  cursor: pointer;
  color: var(--cda-blue-700);
  font-size: 13px;
  font-weight: 900;
  padding: 10px 12px;
}

.ack-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  border-top: 1px solid var(--cda-gray-200);
  padding: 12px;
}

.ack-grid strong {
  color: var(--cda-text);
  font-size: 13px;
}

.ack-grid ul {
  display: grid;
  gap: 5px;
  max-height: 168px;
  overflow: auto;
  margin: 8px 0 0;
  padding-left: 18px;
  color: #496274;
  font-size: 13px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(140px, 1fr));
  gap: 12px;
}

.password-form {
  display: grid;
  gap: 12px;
}

.report-form {
  margin-bottom: 14px;
}

.audit-summary {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.report-summary-grid {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.report-list {
  display: grid;
  gap: 10px;
}

.reports-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 12px;
}

.report-tile {
  min-height: 154px;
  display: grid;
  align-content: start;
  gap: 8px;
  border: 1px solid rgba(206, 219, 233, 0.92);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  color: var(--cda-text);
  box-shadow: 0 8px 18px rgba(15, 43, 61, 0.05);
  padding: 16px;
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.report-tile:hover {
  border-color: #9ec4ef;
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.report-tile span {
  color: var(--cda-teal-400);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.report-tile strong {
  color: var(--cda-blue-700);
  font-size: 18px;
}

.report-tile small {
  color: #496274;
  line-height: 1.4;
}

.wide {
  grid-column: 1 / -1;
}

.request-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.request-actions input {
  min-width: 220px;
}

.history-row {
  display: grid;
  grid-template-columns: minmax(110px, 0.8fr) minmax(180px, 1.2fr) repeat(5, minmax(82px, 0.7fr));
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(206, 219, 233, 0.92);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 6px 14px rgba(15, 43, 61, 0.04);
  padding: 12px;
}

.history-row.header {
  background: linear-gradient(180deg, #ffffff 0%, #f5faff 100%);
  color: #496274;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  box-shadow: none;
}

.history-row span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.attendance-insights {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 14px 0;
}

.attendance-day-card {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(206, 219, 233, 0.92);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 18px rgba(15, 43, 61, 0.05);
  padding: 14px;
}

.attendance-day-head,
.attendance-day-grid {
  display: grid;
  gap: 10px;
}

.attendance-day-head {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.attendance-day-head small {
  display: block;
  color: #496274;
}

.attendance-day-grid {
  grid-template-columns: repeat(4, minmax(110px, 1fr));
}

.attendance-day-grid span {
  display: grid;
  gap: 3px;
  color: #496274;
  font-size: 12px;
  font-weight: 800;
}

.attendance-day-grid strong {
  color: var(--cda-text);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.report-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(206, 219, 233, 0.92);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 6px 14px rgba(15, 43, 61, 0.04);
  padding: 12px;
}

.report-row strong,
.report-row small {
  display: block;
}

.report-row small {
  color: #496274;
}

.assignment-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 0.9fr) auto;
  gap: 12px;
  align-items: end;
  border: 1px solid rgba(206, 219, 233, 0.92);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 18px rgba(15, 43, 61, 0.05);
  padding: 12px;
}

.assignment-row strong,
.assignment-row small {
  display: block;
}

.assignment-row small {
  color: #496274;
}

.assignment-row .btn {
  min-width: 96px;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  max-width: min(420px, calc(100vw - 36px));
  border-radius: 8px;
  background: var(--cda-text);
  color: white;
  padding: 13px 15px;
  box-shadow: var(--shadow);
  z-index: 10;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .app-shell.sidebar-collapsed {
    grid-template-columns: 1fr;
  }

  .app-shell.sidebar-collapsed .sidebar {
    display: none;
  }

  .sidebar {
    position: static;
    height: auto;
  }

  .side-nav {
    grid-template-columns: 1fr;
  }

  .dashboard-band,
  .login-panel {
    grid-template-columns: 1fr;
  }

  .approval-tools {
    grid-template-columns: 1fr;
  }

  .approval-counters {
    justify-content: flex-start;
  }

  .metrics-panel,
  .punch-grid,
  .balance-strip,
  .reports-grid {
    grid-template-columns: 1fr 1fr;
  }

  .my-attendance-layout,
  .attendance-split {
    grid-template-columns: 1fr;
  }

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

  .leave-workspace {
    grid-template-columns: 1fr;
  }

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

  .profile-self-service {
    grid-template-columns: 1fr;
  }

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

  .calendar-weekday {
    display: none;
  }
}

@media (max-width: 620px) {
  h1 {
    font-size: 38px;
  }

  .login-panel,
  .time-console,
  .dashboard-band {
    padding-left: 16px;
    padding-right: 16px;
  }

  .date-line,
  .time-line {
    font-size: 24px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .user-chip {
    width: 100%;
    justify-content: space-between;
    text-align: left;
  }

  .side-nav,
  .punch-grid,
  .metrics-panel,
  .balance-strip,
  .leave-balance-grid,
  .leave-workspace,
  .approval-filters,
  .reports-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .compact-form,
  .punch-timeline,
  .my-attendance-layout,
  .attendance-split {
    grid-template-columns: 1fr;
  }

  .row-card {
    grid-template-columns: 1fr;
  }

  .profile-hero,
  .attendance-day-head,
  .attendance-day-grid {
    grid-template-columns: 1fr;
  }

  .holiday-row {
    grid-template-columns: 1fr;
  }

  .lunch-reminder {
    align-items: flex-start;
    flex-direction: column;
  }

  .password-required-banner {
    grid-template-columns: 1fr;
  }

  .password-required-banner .btn {
    grid-row: auto;
    grid-column: auto;
    width: 100%;
  }

  .history-row,
  .assignment-row,
  .ledger-head,
  .ledger-row,
  .report-row,
  .profile-request-row,
  .announcement-card,
  .ack-grid {
    grid-template-columns: 1fr;
  }

  .calendar-grid {
    grid-template-columns: 1fr;
  }

  .calendar-day.muted-day {
    display: none;
  }

  .history-row.header {
    display: none;
  }
}
