




:root {
  --primary: #3b7ddd;
  --primary-dark: #2f64b1;
  --primary-soft: #d8e5f8;
  --success: #1cbb8c;
  --success-soft: #d2f1e8;
  --warning: #fcb92c;
  --warning-soft: #fef1d5;
  --danger: #dc3545;
  --danger-soft: #f8d7da;
  --info: #17a2b8;
  --info-soft: #d1ecf1;
  --heading: #000;
  --text: #495057;
  --muted: #6c757d;
  --muted-2: #adb5bd;
  --border: #dee2e6;
  --border-light: #e9ecef;
  --page: #f5f7fb;
  --surface: #fff;
  --surface-soft: #f8f9fa;
  --sidebar-bg: #222e3c;
  --sidebar-width: 260px;
  --topbar-height: 64px;
  --radius: .25rem;
  --radius-sm: .2rem;
  --shadow-card: 0 0 .875rem rgba(33, 37, 41, .05);
  --shadow-float: 0 .2rem .2rem rgba(0, 0, 0, .05);
  --transition: .1s ease-in-out;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-height: 100%;
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--text);
  background: var(--page);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: .875rem;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  display: none;
}

::selection {
  color: #fff;
  background: var(--primary);
}

:focus-visible {
  outline: 2px solid rgba(59, 125, 221, .45);
  outline-offset: 2px;
}

img {
  display: block;
  max-width: 100%;
}

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

a:hover {
  color: var(--primary-dark);
}

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

button {
  color: inherit;
}

form {
  margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--heading);
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: 0;
}

h1 {
  font-size: 1.75rem;
}

h2 {
  font-size: 1.3125rem;
}

h3 {
  font-size: 1.09375rem;
}

p {
  color: var(--text);
}

small {
  line-height: 1.4;
}

code {
  padding: .15rem .35rem;
  color: #e83e8c;
  background: #f8f9fa;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: .82em;
}



.guest-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: linear-gradient(135deg, #f5f7fb 0%, #eaf1fa 100%);
}

.guest-shell {
  width: min(100%, 430px);
}

.guest-shell:has(.auth-card-wide) {
  width: min(100%, 900px);
}

.guest-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  margin: 0 0 1rem;
  color: var(--heading);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
}

.guest-brand:hover {
  color: var(--heading);
}

.guest-brand .brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  color: #fff;
  background: var(--primary);
  border-radius: var(--radius-sm);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .03em;
}

.auth-card,
.guest-shell > .card {
  width: 100%;
  padding: 2rem;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  box-shadow: 0 1rem 3rem rgba(32, 37, 43, .12);
}

.auth-card-wide {
  width: min(100%, 900px);
}

.auth-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-top: 1rem;
}

.resend-box {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

.resend-box summary {
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
}

.compact-form {
  margin-top: 1rem;
}

.code-input {
  text-align: center;
  font-size: 1.6rem;
  letter-spacing: .25em;
  font-weight: 600;
}

.footer {
  margin-top: 1rem;
  color: var(--muted);
  font-size: .72rem;
  text-align: center;
}



.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  background: var(--page);
  transition: grid-template-columns .2s ease;
}

.sidebar {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100vh;
  min-width: 0;
  overflow: hidden;
  color: rgba(233, 236, 239, .5);
  background: var(--sidebar-bg);
  border: 0;
  box-shadow: none;
  transition: transform .2s ease;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: .75rem;
  width: 100%;
  padding: 1.15rem 1.5rem .8rem;
  color: #f8f9fa;
  background: transparent;
  border: 0;
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
}

.sidebar-brand:hover,
.sidebar-brand:focus-visible {
  color: #fff;
  background: transparent;
}

.sidebar-brand .brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  color: #fff;
  background: var(--primary);
  border-radius: var(--radius-sm);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .03em;
}

.sidebar-nav {
  display: block;
  flex: 1 1 auto;
  min-height: 0;
  padding: .6rem 0 1rem;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .2) transparent;
}

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: .75rem;
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: .625rem 1.625rem;
  color: rgba(233, 236, 239, .5);
  background: var(--sidebar-bg);
  border: 0;
  border-left: 3px solid transparent;
  border-radius: 0;
  box-shadow: none;
  font-size: .875rem;
  font-weight: 400;
  line-height: 1.5;
  text-decoration: none;
  transition: background .1s ease-in-out, color .1s ease-in-out, border-color .1s ease-in-out;
}

.nav-link:hover {
  color: rgba(233, 236, 239, .75);
  background: var(--sidebar-bg);
  border-left-color: transparent;
}

.nav-link.active {
  color: #e9ecef;
  background: linear-gradient(90deg, rgba(59, 125, 221, .1), rgba(59, 125, 221, .088) 50%, transparent);
  border-left-color: var(--primary);
}

.app-main {
  min-width: 0;
  background: var(--page);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--topbar-height);
  padding: .55rem 1.375rem;
  background: #fff;
  border: 0;
  box-shadow: 0 0 2rem rgba(33, 37, 41, .1);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: .35rem .65rem;
  color: #495057;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .8125rem;
  font-weight: 600;
  cursor: pointer;
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-left: auto;
}

.topbar-user > div {
  min-width: 0;
  text-align: right;
}

.topbar-user strong,
.topbar-user small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-user strong {
  color: var(--heading);
  font-size: .8125rem;
  font-weight: 600;
}

.topbar-user small {
  color: var(--muted);
  font-size: .7rem;
}

.page {
  width: min(100%, 1680px);
  margin-inline: auto;
  padding: 2rem;
  overflow-x: clip;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.page-header p {
  max-width: 850px;
  margin-top: .25rem;
  color: var(--muted);
  font-size: .875rem;
}



.card,
.box,
.stat-card,
.profile-copy,
.copy-block,
.address-box,
.document-status-banner {
  min-width: 0;
  background: #fff;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.card,
.box {
  margin-bottom: 1rem;
  padding: 1.25rem;
}

.card + .card {
  margin-top: 1.25rem;
}

.card:hover,
.stat-card:hover {
  box-shadow: var(--shadow-card);
  transform: none;
}

.card h2 {
  margin: 0;
  font-size: 1.3125rem;
  font-weight: 600;
}

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: .75rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
}

.card-header p {
  margin-top: .2rem;
  color: var(--muted);
  font-size: .8125rem;
}

.narrow-card {
  max-width: 620px;
}

.hero-card {
  max-width: 760px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.stat-card {
  position: relative;
  min-height: 0;
  padding: 1.25rem;
}

.stat-card > span {
  display: block;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 400;
}

.stat-card > strong {
  display: block;
  margin-top: .45rem;
  color: var(--heading);
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.stat-link {
  color: inherit;
  text-decoration: none;
}

.grid-two {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr);
  gap: 1rem;
}

.grid-form {
  align-items: start;
}

.settings-grid,
.template-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}

.module-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.module-tiles > a {
  display: grid;
  gap: .45rem;
  min-height: 130px;
  padding: 1.25rem;
  color: var(--text);
  background: #fff;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  text-decoration: none;
  transition: box-shadow var(--transition), color var(--transition);
}

.module-tiles > a:hover {
  color: var(--text);
  box-shadow: 0 0 1.25rem rgba(33, 37, 41, .09);
  transform: none;
}

.module-tiles strong {
  color: var(--heading);
  font-size: 1rem;
  font-weight: 600;
}

.module-tiles small {
  color: var(--muted);
  font-size: .8125rem;
  line-height: 1.45;
}

.tile-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: var(--radius-sm);
  font-size: .75rem;
  font-weight: 600;
}



.section-heading {
  margin-bottom: 1.25rem;
}

.section-heading h1 {
  margin: 0;
  font-size: 1.75rem;
}

.section-heading p {
  max-width: 850px;
  margin-top: .25rem;
  color: var(--muted);
  font-size: .875rem;
}

.eyebrow {
  display: block;
  margin-bottom: .35rem;
  color: var(--muted) !important;
  font-size: .75rem !important;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.section-divider {
  margin-top: 1.25rem !important;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-light);
}



.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .42rem;
  min-height: 36px;
  padding: .4rem .75rem;
  color: #fff;
  background: var(--primary);
  border: 1px solid var(--primary);
  border-radius: var(--radius-sm);
  box-shadow: none;
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition);
}

.button:hover {
  color: #fff;
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  text-decoration: none;
}

.button-block {
  width: 100%;
}

.button-small {
  min-height: 30px;
  padding: .3rem .55rem;
  font-size: .75rem;
}

.button-secondary {
  color: #fff;
  background: #6c757d;
  border-color: #6c757d;
}

.button-secondary:hover {
  color: #fff;
  background: #5c636a;
  border-color: #565e64;
}

.button-ghost {
  color: #495057;
  background: #fff;
  border-color: #dee2e6;
}

.button-ghost:hover {
  color: #212529;
  background: #e9ecef;
  border-color: #dee2e6;
}

.button-danger {
  color: #fff;
  background: var(--danger);
  border-color: var(--danger);
}

.button-danger:hover {
  color: #fff;
  background: #bb2d3b;
  border-color: #b02a37;
}

.button-row,
.action-stack,
.compact-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
}

.action-stack {
  align-items: stretch;
  flex-direction: column;
  margin-top: 1rem;
}

.action-card {
  max-width: 900px;
  margin-top: 1rem;
}

.text-link,
.inline-link,
.activity-link {
  color: var(--primary);
  font-size: .8125rem;
  font-weight: 600;
  text-decoration: none;
}

.text-link:hover,
.inline-link:hover,
.activity-link:hover {
  color: var(--primary-dark);
}

.text-button {
  padding: 0;
  color: var(--primary);
  background: transparent;
  border: 0;
  font-size: .8125rem;
  font-weight: 600;
  cursor: pointer;
}



.form-stack,
.form-grid {
  display: grid;
  min-width: 0;
  gap: 1rem;
}

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

.field {
  display: grid;
  min-width: 0;
  gap: .35rem;
}

.field > span,
label {
  min-width: 0;
  color: #495057;
  font-size: .8125rem;
  font-weight: 600;
}

.field small,
.field-help {
  margin: 0;
  color: var(--muted);
  font-size: .75rem;
  line-height: 1.4;
}

.field input:not([type="checkbox"]):not([type="radio"]),
.field select,
.field textarea,
.search-field input,
.toolbar select,
.time-range-row select {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 38px;
  padding: .45rem .65rem;
  color: #495057;
  background: #fff;
  border: 1px solid #ced4da;
  border-radius: var(--radius-sm);
  box-shadow: none;
  outline: none;
  font-size: .875rem;
  font-weight: 400;
  line-height: 1.3;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.search-field input:focus,
.toolbar select:focus,
.time-range-row select:focus {
  border-color: #9bbbe8;
  box-shadow: 0 0 0 .2rem rgba(59, 125, 221, .18);
}

.field input:disabled,
.field select:disabled,
.field textarea:disabled {
  color: var(--muted);
  background: var(--surface-soft);
}

.check {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  color: #495057;
  font-size: .8125rem;
  line-height: 1.45;
}

.check input {
  margin-top: .15rem;
}

.inline-test {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: .75rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-light);
}

.filters,
.toolbar {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1rem;
}

.search-field {
  flex: 1 1 auto;
}

.filters select {
  width: auto;
  min-width: 210px;
}



.table-wrap {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  color: var(--text);
  font-size: .8125rem;
}

th,
td {
  padding: .75rem;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--border-light);
}

th {
  color: #495057;
  background: var(--surface-soft);
  font-size: .75rem;
  font-weight: 600;
  white-space: nowrap;
}

td strong,
td small {
  display: block;
}

td small {
  margin-top: .15rem;
  color: var(--muted);
}

.align-right {
  text-align: right;
}

.empty-cell,
.empty-inline {
  padding: 1.5rem;
  color: var(--muted);
  text-align: center;
}

.pagination {
  display: flex;
  justify-content: flex-end;
  gap: .35rem;
  margin-top: 1rem;
}

.pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 .45rem;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .75rem;
}

.pagination a.active {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}



.alert {
  margin: 0 0 1rem;
  padding: .75rem 1rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: .8125rem;
  line-height: 1.45;
}

.alert-success {
  color: #0b6b50;
  background: var(--success-soft);
  border-color: #bce9da;
}

.alert-warning {
  color: #805500;
  background: var(--warning-soft);
  border-color: #f7ddb0;
}

.alert-error,
.alert-danger {
  color: #9f2430;
  background: var(--danger-soft);
  border-color: #f2c1c6;
}

.alert-info {
  color: #0d6370;
  background: var(--info-soft);
  border-color: #bde7ed;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: .2rem .45rem;
  color: var(--text);
  background: var(--surface-soft);
  border-radius: var(--radius-sm);
  font-size: .68rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.badge-active,
.badge-accepted {
  color: #0b6b50;
  background: var(--success-soft);
}

.badge-invited,
.badge-pending_approval,
.badge-paid {
  color: #245ea9;
  background: var(--primary-soft);
}

.badge-pending,
.badge-email_pending {
  color: #805500;
  background: var(--warning-soft);
}

.badge-blocked,
.badge-archived,
.badge-correction {
  color: #9f2430;
  background: var(--danger-soft);
}

.badge-generated,
.badge-cancelled {
  color: var(--text);
  background: var(--surface-soft);
}

.status-line {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-size: .75rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  background: var(--muted-2);
  border-radius: 50%;
}

.status-dot.ok {
  background: var(--success);
}

.status-dot.off {
  background: var(--warning);
}



.activity-list,
.device-list,
.announcements-list,
.announcement-admin-list,
.download-list,
.file-list {
  display: grid;
  gap: 0;
}

.activity-item,
.device-item,
.announcement-admin-list article,
.download-item,
.file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .75rem 0;
  border-bottom: 1px solid var(--border-light);
}

.activity-item:first-child,
.device-item:first-child {
  padding-top: 0;
}

.activity-item:last-child,
.device-item:last-child,
.announcement-admin-list article:last-child,
.download-item:last-child,
.file-item:last-child {
  border-bottom: 0;
}

.activity-item div,
.device-item div,
.announcement-admin-list article > div:first-child {
  display: grid;
  gap: .15rem;
}

.activity-item small,
.device-item small,
.announcement-admin-list small,
.download-item small,
.file-item small {
  color: var(--muted);
  font-size: .75rem;
}

.activity-item time {
  color: var(--muted);
  font-size: .72rem;
  white-space: nowrap;
}

.download-item,
.file-item {
  padding: .75rem;
  color: var(--text);
  background: var(--surface-soft);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  margin-bottom: .5rem;
}

.download-item:hover,
.file-item:hover {
  color: var(--text);
  background: #fff;
}

.file-item > b {
  color: var(--primary);
  font-size: .75rem;
}

.detail-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.detail-list div {
  display: grid;
  grid-template-columns: minmax(120px, .42fr) minmax(0, 1fr);
  gap: 1rem;
  padding: .65rem 0;
  border-bottom: 1px solid var(--border-light);
}

.detail-list dt {
  color: var(--muted);
  font-size: .75rem;
  font-weight: 600;
}

.detail-list dd {
  margin: 0;
  color: #343a40;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.profile-copy,
.copy-block,
.address-box,
.document-status-banner {
  margin-bottom: 1rem;
  padding: 1rem;
  background: var(--surface-soft);
  border: 1px solid var(--border-light);
  box-shadow: none;
}

.profile-copy p,
.copy-block p {
  margin-top: .5rem;
  line-height: 1.65;
}

.address-box {
  display: grid;
  gap: .25rem;
  margin-top: 1rem;
}

.address-box span {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 600;
}

.document-status-banner {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
  background: #fff;
}

.document-status-banner > span {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 600;
}

.document-status-banner > div {
  width: 100%;
  padding-top: .75rem;
  border-top: 1px solid var(--border-light);
  line-height: 1.55;
}

.prose {
  line-height: 1.7;
}

.sensitive-value {
  max-width: 300px;
  white-space: normal;
}



.announcements-section,
.module-history {
  margin-top: 1rem;
}

.announcements-list {
  gap: 1rem;
}

.announcements-list article {
  padding: 1rem;
  background: #fff;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.announcements-list time {
  color: var(--muted);
  font-size: .72rem;
}

.announcements-list h3 {
  margin: .25rem 0 .5rem;
  font-size: 1rem;
}

.announcements-list article div {
  line-height: 1.6;
}

.template-form {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}



.timesheet-editor {
  display: grid;
  gap: .5rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

.timesheet-day {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 110px 110px;
  align-items: center;
  gap: .75rem;
  padding: .65rem;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
}

.timesheet-day.weekend {
  background: var(--surface-soft);
}

.timesheet-day-label {
  display: grid;
  text-align: center;
}

.timesheet-day-label strong {
  color: var(--heading);
  font-size: 1rem;
  font-weight: 600;
}

.timesheet-day-label small {
  color: var(--muted);
  font-size: .7rem;
}

.time-ranges {
  display: grid;
  gap: .4rem;
}

.time-range-row {
  display: grid;
  grid-template-columns: minmax(90px, 1fr) auto minmax(90px, 1fr) auto;
  align-items: center;
  gap: .45rem;
}

.time-range-row select {
  min-height: 34px;
  padding: .35rem .5rem;
}

.timesheet-day-sum {
  color: var(--heading);
  font-weight: 600;
  text-align: center;
}

.timesheet-total {
  padding: .75rem 0;
  color: var(--heading);
  font-size: 1rem;
  font-weight: 600;
  text-align: right;
}



.empty-state {
  max-width: none;
  margin: 0;
  padding: 2.5rem 1.25rem;
  text-align: center;
}

.error-code {
  margin-bottom: .75rem;
  color: var(--primary);
  font-size: 3rem;
  font-weight: 600;
  line-height: 1;
}

.empty-state h1 {
  margin-bottom: .35rem;
  font-size: 1.3125rem;
  font-weight: 600;
}

.empty-state p {
  max-width: 620px;
  margin: 0 auto 1rem;
  color: var(--muted);
  font-size: .875rem;
}



.meta {
  color: var(--muted);
  font-size: .75rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

  .settings-grid,
  .template-grid,
  .grid-two {
    grid-template-columns: 1fr;
  }
}

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

  .sidebar {
    position: fixed;
    left: 0;
    z-index: 70;
    width: var(--sidebar-width);
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .menu-toggle {
    display: inline-flex;
  }

  .topbar {
    padding: .55rem 1rem;
  }

  .topbar-user > div {
    display: none;
  }

  .page {
    padding: 1.25rem .9rem;
  }

  .page-header {
    align-items: stretch;
    flex-direction: column;
  }

  .module-tiles,
  .form-grid,
  .inline-test {
    grid-template-columns: 1fr;
  }

  .auth-card,
  .guest-shell > .card {
    padding: 1.5rem;
  }

  .auth-actions,
  .toolbar,
  .filters,
  .activity-item,
  .device-item,
  .announcement-admin-list article {
    align-items: stretch;
    flex-direction: column;
  }

  .filters select {
    width: 100%;
  }

  .timesheet-day {
    grid-template-columns: 50px minmax(0, 1fr);
  }

  .timesheet-day-sum {
    grid-column: 1;
  }

  .timesheet-day > [data-add-range] {
    grid-column: 2;
  }

  .time-range-row {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  }

  .time-range-row [data-remove-range] {
    grid-column: 1 / -1;
    justify-self: end;
  }

  .detail-list div {
    grid-template-columns: 1fr;
    gap: .2rem;
  }
}


.setup-body {
  align-items: start;
  padding: 3rem 1.25rem;
  background: var(--page);
}

.setup-shell {
  width: min(100%, 760px);
}

.setup-shell .guest-brand {
  justify-content: flex-start;
  margin-bottom: 1.25rem;
}

.setup-card {
  padding: 1.5rem;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.setup-card h1 {
  margin-bottom: .25rem;
}

.setup-card form {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}

.setup-card .grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.setup-card label {
  display: block;
  margin-bottom: .35rem;
}

.setup-card input:not([type="checkbox"]):not([type="radio"]) {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  padding: .45rem .65rem;
  color: #495057;
  background: #fff;
  border: 1px solid #ced4da;
  border-radius: var(--radius-sm);
  box-shadow: none;
  outline: none;
  font-size: .875rem;
  font-weight: 400;
  line-height: 1.3;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.setup-card input:focus {
  border-color: #9bbbe8;
  box-shadow: 0 0 0 .2rem rgba(59, 125, 221, .18);
}

.setup-card .help {
  margin-top: .25rem;
  color: var(--muted);
  font-size: .8125rem;
}

.setup-card .alert {
  color: #9f2430;
  background: var(--danger-soft);
  border-color: #f2c1c6;
}

.setup-card .alert.ok {
  color: #0b6b50;
  background: var(--success-soft);
  border-color: #bce9da;
}

.setup-card .button {
  justify-self: start;
  margin-top: .25rem;
}

@media (max-width: 760px) {
  .setup-body {
    padding: 1.25rem .9rem;
  }

  .setup-card {
    padding: 1.25rem;
  }

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



.setup-body {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 2rem 1.25rem;
  background: linear-gradient(135deg, #f5f7fb 0%, #eaf1fa 100%);
}

.setup-shell {
  width: min(100%, 620px);
}

.setup-brand {
  display: flex;
  align-items: center;
  width: fit-content;
  margin: 0 auto 1.4rem;
  gap: .9rem;
  color: var(--heading);
  font-size: 1.22rem;
  font-weight: 700;
}

.setup-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: #fff;
  background: var(--primary);
  border-radius: var(--radius);
  font-size: .82rem;
  font-weight: 800;
}

.setup-card {
  padding: 2rem;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  box-shadow: 0 1rem 3rem rgba(32, 37, 43, .12);
}

.setup-card h1 {
  margin: 0;
  color: var(--heading);
  font-size: 1.75rem;
  font-weight: 600;
}

.setup-card .help {
  margin: .45rem 0 1.35rem;
  color: var(--muted);
}

.setup-card form {
  display: grid;
  gap: 1rem;
}

.setup-card .field {
  display: grid;
  gap: .4rem;
}

.setup-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(140px, .42fr);
  gap: 1rem;
}

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

.setup-button-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .2rem;
}

.setup-button {
  min-height: 38px;
}

.setup-button-secondary {
  color: var(--text);
  background: #fff;
  border-color: var(--border);
}

.setup-button-secondary:hover {
  color: #212529;
  background: var(--border-light);
  border-color: var(--border);
}

.setup-alert {
  margin: 0 0 1rem;
  padding: .8rem .9rem;
  color: #842029;
  background: #f8d7da;
  border: 1px solid #f5c2c7;
  border-radius: var(--radius-sm);
}

.setup-alert-ok {
  color: #0f5132;
  background: #d1e7dd;
  border-color: #badbcc;
}

.setup-note {
  margin: .1rem 0 0;
  color: var(--muted);
  font-size: .78rem;
}

.setup-separator {
  height: 1px;
  margin: .25rem 0;
  background: var(--border-light);
  border: 0;
}

@media (max-width: 640px) {
  .setup-body {
    padding: 1rem;
  }

  .setup-card {
    padding: 1.3rem;
  }

  .setup-grid,
  .setup-grid-equal {
    grid-template-columns: 1fr;
  }

  .setup-button-row {
    align-items: stretch;
  }

  .setup-button-row .setup-button {
    width: 100%;
  }
}



.nav-icon {
  display: inline-flex;
  flex: 0 0 18px;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: currentColor;
  opacity: .65;
}

.nav-icon svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-link:hover .nav-icon,
.nav-link.active .nav-icon {
  opacity: 1;
}


.address-section {
  display: grid;
  gap: .85rem;
  margin: 0;
  padding: 1rem;
  background: var(--surface-soft);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
}

.address-section legend {
  padding: 0 .25rem;
  color: var(--heading);
  font-size: .875rem;
  font-weight: 600;
}

.address-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(90px, .6fr) minmax(90px, .6fr);
  gap: .85rem;
}

.address-grid-secondary {
  grid-template-columns: minmax(130px, .65fr) minmax(0, 1.35fr);
}

.address-copy {
  margin-bottom: .15rem;
}

.address-section.is-copied {
  opacity: .72;
}


.danger-zone {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

.danger-zone h3 {
  margin-bottom: .35rem;
  color: var(--danger);
}

.danger-zone p {
  margin-bottom: .75rem;
  color: var(--muted);
  font-size: .8125rem;
}

.danger-zone .field {
  margin-bottom: .75rem;
}

@media (max-width: 760px) {
  .address-grid,
  .address-grid-secondary {
    grid-template-columns: 1fr;
  }
}





:root {
  --brand-navy: #0d304d;
  --brand-navy-dark: #08253c;
  --brand-purple: #682c6f;
  --brand-purple-dark: #54225b;
  --brand-purple-soft: #f1e8f2;
  --brand-pink: #ef3db7;
  --brand-cyan: #19c9df;
  --brand-charcoal: #383838;
  --brand-page: #f2f4f5;
  --primary: var(--brand-purple);
  --primary-dark: var(--brand-purple-dark);
  --primary-soft: var(--brand-purple-soft);
  --heading: var(--brand-navy);
  --text: #272e34;
  --muted: #68737c;
  --muted-2: #a4adb3;
  --border: #dce2e5;
  --border-light: #e8ecee;
  --page: var(--brand-page);
  --surface: #fff;
  --surface-soft: #f7f8f8;
  --sidebar-bg: #fff;
  --radius: 2px;
  --radius-sm: 2px;
  --shadow-card: 0 12px 34px rgba(13, 48, 77, .07);
  --shadow-float: 0 18px 48px rgba(13, 48, 77, .12);
  --transition: .18s ease;
}

html,
body,
button,
input,
select,
textarea {
  font-family: "Poppins", "Avenir Next", "Century Gothic", "Trebuchet MS", Arial, sans-serif;
}

body {
  color: var(--text);
  background: var(--page);
  font-size: .875rem;
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--brand-navy);
  font-weight: 800;
  letter-spacing: -.025em;
}

h1 {
  font-size: clamp(1.8rem, 2.6vw, 2.55rem);
}

h2 {
  font-size: 1.35rem;
}

a {
  color: var(--brand-purple);
}

a:hover {
  color: var(--brand-purple-dark);
}

::selection {
  color: #fff;
  background: var(--brand-purple);
}

:focus-visible {
  outline-color: rgba(104, 44, 111, .55);
}



.brand-logo {
  display: block;
  width: auto;
  height: auto;
  object-fit: contain;
}

.brand-copy {
  display: grid;
  gap: .05rem;
  min-width: 0;
}

.brand-copy strong,
.brand-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-copy strong {
  color: var(--brand-navy);
  font-size: .9rem;
  font-weight: 800;
  letter-spacing: -.02em;
}

.brand-copy small {
  color: var(--muted);
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}



.guest-body {
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
  background:
    linear-gradient(90deg, transparent 0 7%, rgba(104, 44, 111, .055) 7% 28%, transparent 28% 100%),
    var(--brand-page);
}

.guest-body::before {
  content: "ART JTM";
  position: fixed;
  z-index: -2;
  right: -1.5vw;
  bottom: -4vw;
  color: rgba(13, 48, 77, .045);
  font-size: clamp(7rem, 17vw, 18rem);
  font-weight: 800;
  line-height: .8;
  letter-spacing: -.08em;
  pointer-events: none;
}

.guest-body::after {
  content: "";
  position: fixed;
  z-index: -1;
  top: 9vh;
  left: 0;
  width: min(34vw, 420px);
  height: min(30vh, 280px);
  background: var(--brand-purple);
  opacity: .96;
  pointer-events: none;
}

.guest-shell {
  position: relative;
  z-index: 1;
}

.guest-brand {
  justify-content: flex-start;
  gap: .9rem;
  width: fit-content;
  margin: 0 auto 1.15rem;
  padding: 0;
  background: transparent;
}

.guest-brand .brand-logo {
  width: 114px;
  max-height: 66px;
}

.auth-card,
.guest-shell > .card {
  position: relative;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  overflow: hidden;
  background: rgba(255, 255, 255, .985);
  border: 0;
  border-top: 6px solid var(--brand-purple);
  border-radius: 2px;
  box-shadow: var(--shadow-float);
}

.auth-card::after,
.guest-shell > .card::after {
  content: "";
  position: absolute;
  right: -42px;
  bottom: -42px;
  width: 105px;
  height: 105px;
  background: linear-gradient(135deg, var(--brand-cyan) 0 48%, var(--brand-pink) 48% 72%, var(--brand-purple) 72% 100%);
  opacity: .12;
  transform: rotate(18deg);
  pointer-events: none;
}

.section-heading {
  position: relative;
  padding-bottom: 1.05rem;
  margin-bottom: 1.45rem;
}

.section-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 112px;
  height: 4px;
  background: var(--brand-purple);
}

.section-heading h1 {
  color: var(--brand-navy);
  font-size: clamp(1.8rem, 4vw, 2.35rem);
  font-weight: 800;
}

.section-heading p {
  color: #4c565e;
  line-height: 1.65;
}

.eyebrow {
  color: var(--brand-purple) !important;
  font-size: .72rem !important;
  font-weight: 700;
  letter-spacing: .095em;
  text-transform: uppercase;
}

.footer {
  color: #66727b;
}



.field > span,
label {
  color: var(--brand-navy);
  font-weight: 700;
}

.field input:not([type="checkbox"]):not([type="radio"]),
.field select,
.field textarea,
.search-field input,
.toolbar select,
.time-range-row select {
  min-height: 44px;
  padding: .62rem .78rem;
  color: #262e34;
  background: #fff;
  border: 1px solid #cfd7db;
  border-radius: 0;
  font-weight: 500;
}

.field textarea {
  min-height: 125px;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.search-field input:focus,
.toolbar select:focus,
.time-range-row select:focus {
  border-color: var(--brand-purple);
  box-shadow: 0 0 0 3px rgba(104, 44, 111, .12);
}

.field input:disabled,
.field select:disabled,
.field textarea:disabled {
  color: #66717a;
  background: #edf0f1;
}

.check input {
  accent-color: var(--brand-purple);
}

.address-section {
  padding: 1.15rem;
  background: #f8f9f9;
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand-purple);
}

.address-section legend {
  padding: 0 .35rem;
  color: var(--brand-navy);
  font-weight: 800;
}



.button {
  min-height: 42px;
  padding: .62rem 1rem;
  color: #fff;
  background: var(--brand-purple);
  border-color: var(--brand-purple);
  border-radius: 0;
  font-weight: 700;
  letter-spacing: -.01em;
}

.button:hover {
  color: #fff;
  background: var(--brand-purple-dark);
  border-color: var(--brand-purple-dark);
}

.button-secondary {
  color: #fff;
  background: var(--brand-navy);
  border-color: var(--brand-navy);
}

.button-secondary:hover {
  background: var(--brand-navy-dark);
  border-color: var(--brand-navy-dark);
}

.button-ghost {
  color: var(--brand-navy);
  background: #fff;
  border-color: #cfd7db;
}

.button-ghost:hover {
  color: var(--brand-purple);
  background: #fff;
  border-color: var(--brand-purple);
}

.button-danger {
  background: #b83245;
  border-color: #b83245;
}

.text-link,
.inline-link,
.activity-link,
.text-button {
  color: var(--brand-purple);
  font-weight: 700;
}



.app-shell {
  background: var(--brand-page);
}

.sidebar {
  color: #4b555d;
  background: #fff;
  border-right: 1px solid var(--border);
  box-shadow: 8px 0 28px rgba(13, 48, 77, .04);
}

.sidebar-brand {
  gap: .75rem;
  min-height: 92px;
  padding: .85rem 1.15rem;
  color: var(--brand-navy);
  background: #fff;
  border-bottom: 4px solid var(--brand-purple);
}

.sidebar-brand:hover,
.sidebar-brand:focus-visible {
  color: var(--brand-navy);
  background: #fff;
}

.sidebar-brand .brand-logo {
  flex: 0 0 auto;
  width: 84px;
  max-height: 52px;
}

.sidebar-brand .brand-copy {
  flex: 1 1 auto;
  max-width: none;
  min-width: 0;
}

.sidebar-brand .brand-copy strong {
  overflow: visible;
  color: var(--brand-navy);
  font-size: .82rem;
  line-height: 1.2;
  text-overflow: clip;
  white-space: normal;
}

.sidebar-brand .brand-copy small {
  display: none;
}

.sidebar-nav {
  padding-top: 1rem;
}

.nav-link {
  gap: .8rem;
  min-height: 44px;
  padding: .68rem 1.15rem;
  color: #424b52;
  background: #fff;
  border-left: 5px solid transparent;
  font-size: .79rem;
  font-weight: 600;
}

.nav-link:hover {
  color: var(--brand-navy);
  background: #f5f1f6;
  border-left-color: rgba(104, 44, 111, .32);
}

.nav-link.active {
  color: var(--brand-purple);
  background: var(--brand-purple-soft);
  border-left-color: var(--brand-purple);
  font-weight: 800;
}

.nav-icon {
  color: var(--brand-navy);
  opacity: .82;
}

.nav-link.active .nav-icon {
  color: var(--brand-purple);
  opacity: 1;
}

.nav-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-main {
  position: relative;
  isolation: isolate;
  background: var(--brand-page);
}

.app-main::before {
  content: "ART JTM";
  position: fixed;
  z-index: -1;
  right: 1.5vw;
  bottom: 1vw;
  color: rgba(13, 48, 77, .035);
  font-size: clamp(7rem, 15vw, 17rem);
  font-weight: 800;
  line-height: .85;
  letter-spacing: -.08em;
  pointer-events: none;
}

.topbar {
  min-height: 72px;
  padding: .65rem 1.65rem;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--border);
  box-shadow: none;
}

.topbar::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--brand-purple);
}

.menu-toggle {
  color: var(--brand-navy);
  border-radius: 0;
}

.topbar-user strong {
  color: var(--brand-navy);
  font-weight: 800;
}

.page {
  padding: clamp(1.25rem, 3vw, 2.5rem);
}

.page-header {
  position: relative;
  padding-bottom: 1.1rem;
  margin-bottom: 1.65rem;
  border-bottom: 1px solid var(--border);
}

.page-header::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 150px;
  height: 4px;
  background: var(--brand-purple);
}

.page-header h1 {
  color: var(--brand-navy);
  font-weight: 800;
}

.page-header p {
  color: #5f6a72;
}



.card,
.box,
.stat-card,
.profile-copy,
.copy-block,
.address-box,
.document-status-banner {
  background: rgba(255, 255, 255, .98);
  border: 1px solid var(--border);
  border-radius: 0;
  box-shadow: var(--shadow-card);
}

.card,
.box {
  padding: 1.35rem;
}

.card-header {
  border-bottom-color: var(--border);
}

.card h2,
.card-header h2 {
  color: var(--brand-navy);
  font-weight: 800;
}

.stats-grid {
  gap: 1.1rem;
}

.stat-card {
  padding: 1.3rem;
  border-left: 5px solid var(--brand-purple);
}

.stat-card:nth-child(2n) {
  border-left-color: var(--brand-navy);
}

.stat-card > span {
  color: #68727a;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.stat-card > strong {
  color: var(--brand-navy);
  font-size: 1.8rem;
  font-weight: 800;
}

.module-tiles {
  gap: 1.1rem;
}

.module-tiles > a {
  position: relative;
  min-height: 155px;
  padding: 1.35rem;
  overflow: hidden;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  border-top: 6px solid var(--brand-purple);
  border-radius: 0;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.module-tiles > a:nth-child(4n + 2) {
  border-top-color: var(--brand-navy);
}

.module-tiles > a:nth-child(4n + 3) {
  border-top-color: var(--brand-cyan);
}

.module-tiles > a:nth-child(4n) {
  border-top-color: var(--brand-pink);
}

.module-tiles > a:hover {
  color: var(--text);
  border-color: var(--brand-purple);
  box-shadow: 0 18px 42px rgba(13, 48, 77, .13);
  transform: translateY(-3px);
}

.module-tiles strong {
  color: var(--brand-navy);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.3;
}

.module-tiles small {
  color: #667179;
}

.tile-icon {
  width: 42px;
  height: 42px;
  color: #fff;
  background: var(--brand-purple);
  border-radius: 50%;
  font-size: .82rem;
  font-weight: 800;
}

.module-tiles > a:nth-child(4n + 2) .tile-icon {
  background: var(--brand-navy);
}

.module-tiles > a:nth-child(4n + 3) .tile-icon {
  color: var(--brand-navy);
  background: var(--brand-cyan);
}

.module-tiles > a:nth-child(4n) .tile-icon {
  background: var(--brand-pink);
}

.announcements-list article {
  border: 1px solid var(--border);
  border-left: 5px solid var(--brand-purple);
  border-radius: 0;
  box-shadow: none;
}

.announcements-list time {
  color: var(--brand-purple);
  font-weight: 700;
}

.announcements-list h3 {
  color: var(--brand-navy);
  font-weight: 800;
}



.table-wrap {
  border: 1px solid var(--border);
}

table {
  background: #fff;
}

th {
  color: #fff;
  background: var(--brand-navy);
  border-bottom-color: var(--brand-navy);
  font-weight: 700;
}

td {
  border-bottom-color: var(--border-light);
}

tbody tr:nth-child(even) td {
  background: #fafbfb;
}

tbody tr:hover td {
  background: var(--brand-purple-soft);
}

.download-item,
.file-item {
  background: #f8f9f9;
  border-radius: 0;
}

.download-item:hover,
.file-item:hover {
  border-color: var(--brand-purple);
}

.file-item > b {
  color: var(--brand-purple);
}

.detail-list dt {
  color: var(--brand-purple);
}

.detail-list dd {
  color: var(--brand-navy);
}



.badge {
  border-radius: 999px;
  font-weight: 700;
}

.badge-invited,
.badge-pending_approval,
.badge-paid {
  color: var(--brand-navy);
  background: rgba(25, 201, 223, .2);
}

.pagination a {
  border-radius: 0;
}

.pagination a.active {
  background: var(--brand-purple);
  border-color: var(--brand-purple);
}



.timesheet-day {
  border-radius: 0;
}

.timesheet-day.weekend {
  background: #f4eef5;
}

.timesheet-day-label strong,
.timesheet-day-sum,
.timesheet-total {
  color: var(--brand-navy);
  font-weight: 800;
}



.error-code {
  color: var(--brand-purple);
  font-size: clamp(4rem, 10vw, 7rem);
  font-weight: 800;
}

.empty-state {
  border-top: 6px solid var(--brand-purple);
}



.setup-body {
  background:
    linear-gradient(90deg, transparent 0 7%, rgba(104, 44, 111, .055) 7% 28%, transparent 28% 100%),
    var(--brand-page) !important;
}

.setup-brand {
  padding: 0 !important;
  color: var(--brand-navy) !important;
  background: transparent !important;
}

.setup-brand .brand-logo {
  width: 112px;
  max-height: 65px;
}

.setup-card {
  border-top: 6px solid var(--brand-purple) !important;
  border-radius: 2px !important;
}

.setup-card h1 {
  color: var(--brand-navy) !important;
  font-weight: 800 !important;
}

.setup-button {
  background: var(--brand-purple) !important;
  border-color: var(--brand-purple) !important;
  border-radius: 0 !important;
}

.setup-button:hover {
  background: var(--brand-purple-dark) !important;
  border-color: var(--brand-purple-dark) !important;
}

@media (max-width: 760px) {
  .guest-body::after {
    width: 42vw;
    height: 22vh;
  }

  .guest-brand {
    justify-content: center;
  }

  .sidebar-brand .brand-copy {
    max-width: none;
  }

  .topbar {
    min-height: 64px;
  }

  .page-header::after {
    width: 100px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .module-tiles > a {
    transition: none;
  }

  .module-tiles > a:hover {
    transform: none;
  }
}


.badge-mailed {
  color: #6f2b75;
  background: rgba(111, 43, 117, .14);
}

.badge-received {
  color: #0b5d69;
  background: rgba(25, 201, 223, .18);
}

.badge-accepted_pending {
  color: #714c00;
  background: #fff0c2;
}
.module-tiles > a {
  --tile-accent: var(--brand-purple);
  --tile-icon-color: #fff;
  border-top-color: var(--tile-accent);
}

.module-tiles > a:nth-child(4n + 2) {
  --tile-accent: var(--brand-navy);
}

.module-tiles > a:nth-child(4n + 3) {
  --tile-accent: var(--brand-cyan);
  --tile-icon-color: var(--brand-navy);
}

.module-tiles > a:nth-child(4n) {
  --tile-accent: var(--brand-pink);
}

.module-tiles > a:hover,
.module-tiles > a:focus-visible {
  border-color: var(--tile-accent);
  outline: 0;
  box-shadow: inset 0 0 0 2px var(--tile-accent), 0 18px 42px rgba(13, 48, 77, .13);
}

.tile-icon {
  color: var(--tile-icon-color);
  background: var(--tile-accent);
}

.tile-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button:disabled,
button:disabled,
select:disabled,
input:disabled {
  cursor: not-allowed;
}

.button:disabled,
button:disabled {
  opacity: .55;
}

.app-main {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page {
  flex: 1 0 auto;
  width: 100%;
}

.panel-footer {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  padding: .75rem 1.25rem 1rem;
  color: #69747c;
  font-size: .68rem;
}

.panel-footer-guest {
  margin-top: 1rem;
  padding: .35rem 0 0;
}

.codergo-credit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  color: #69747c;
  text-decoration: none;
  opacity: .82;
  transition: opacity .15s ease;
}

.codergo-credit:hover,
.codergo-credit:focus-visible {
  color: #39434a;
  opacity: 1;
}

.codergo-credit img {
  display: block;
  width: auto;
  height: 18px;
  max-width: 92px;
  object-fit: contain;
}

.registration-verification {
  position: relative;
  max-width: 360px;
  padding: 1rem;
  background: rgba(104, 44, 111, .055);
  border-left: 4px solid var(--brand-purple);
}

.registration-verification .field {
  margin: 0;
}

.anti-spam-field {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

@media (max-width: 640px) {
  .panel-footer {
    padding-inline: .75rem;
  }

  .codergo-credit {
    flex-wrap: wrap;
  }
}

.toolbar-compact {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.toolbar .search-field {
    flex: 1 1 280px;
    min-width: min(100%, 240px);
}

.toolbar.filters .search-field {
    flex-basis: 360px;
}

[data-live-list] {
    transition: opacity .15s ease;
}

[data-live-list].is-loading {
    pointer-events: none;
    opacity: .48;
}

@media (max-width: 760px) {
    .toolbar.filters > * {
        width: 100%;
    }
}

.hr-alerts {
  display: grid;
  gap: .65rem;
  margin-bottom: 1rem;
}

.hr-alert {
  padding: .85rem 1rem;
  color: #1f2933;
  background: #eef5ff;
  border-left: 4px solid #3b7ddd;
  font-weight: 700;
  line-height: 1.45;
}

.hr-alert-success {
  color: #155f49;
  background: #e7f7f1;
  border-left-color: #1cbb8c;
}

.hr-alert-warning {
  color: #714c00;
  background: #fff6dc;
  border-left-color: #f0a500;
}

.hr-alert-danger {
  color: #842029;
  background: #fdebed;
  border-left-color: #dc3545;
}

.table-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-top: .4rem;
}

.badge-warning,
.badge-documents_accepted {
  color: #714c00;
  background: #fff0c2;
}

.badge-success,
.badge-signed {
  color: #155f49;
  background: #d9f3e9;
}

.badge-danger {
  color: #842029;
  background: #f8d7da;
}

.employee-list-flags {
  display: grid;
  gap: .18rem;
  align-content: start;
}

.employee-list-flags strong {
  color: #b4232f;
  font-size: .75rem;
  font-weight: 700;
  line-height: 1.3;
}

.employee-list-flags .text-muted {
  font-size: .8125rem;
}

.employee-list-status{display:flex;flex-direction:column;gap:.2rem}.employee-list-status span{font-size:.78rem;font-weight:500;color:var(--text)}.employee-list-status .text-muted{color:var(--muted)!important}

.file-list,
.download-list {
  overflow: visible;
  padding-bottom: 1px;
}

.file-list .file-item,
.download-list .download-item {
  box-sizing: border-box;
  border: 1px solid var(--border-light);
  margin-bottom: .5rem;
}

.file-list .file-item:last-child,
.download-list .download-item:last-child {
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 0;
}

.file-list .file-item:hover,
.download-list .download-item:hover {
  border: 1px solid var(--brand-purple);
}

.generated-upload{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem;border:1px solid var(--border);background:var(--surface-soft)}
.generated-upload p{margin-top:.2rem;color:var(--muted);font-size:.8125rem}
.generator-section{padding:1rem;border:1px solid var(--border);background:#fff}
.generator-section legend{padding:0 .35rem;font-size:.875rem}
.choice-row{display:flex;flex-wrap:wrap;gap:.75rem 1.5rem;margin:.35rem 0}
.choice-row label{display:inline-flex;align-items:center;gap:.45rem;font-weight:500}
.conditional-fields{margin-top:.85rem;padding-top:.85rem;border-top:1px solid var(--border-light)}
.refund-items{display:grid;gap:.75rem}
.refund-item{display:grid;grid-template-columns:minmax(0,1fr) 140px auto;gap:.75rem;align-items:end;padding:.8rem;border:1px solid var(--border-light);background:var(--surface-soft)}
.refund-remove{margin-bottom:1px}
.refund-total{display:flex;align-items:center;justify-content:flex-end;gap:1rem;padding:.75rem 0;border-top:1px solid var(--border-light)}
.refund-total strong{font-size:1.05rem;color:var(--heading)}
@media(max-width:760px){.generated-upload{align-items:flex-start;flex-direction:column}.refund-item{grid-template-columns:1fr}.refund-remove{justify-self:start}.choice-row{flex-direction:column;gap:.45rem}}
.hr-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.hr-alert a {
  flex: 0 0 auto;
  color: inherit;
  font-size: .8125rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 640px) {
  .hr-alert {
    align-items: flex-start;
    flex-direction: column;
  }
}
.employee-documents-summary{margin-bottom:1.25rem}.employee-document-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:1rem}.employee-document-item{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;min-width:0;padding:1rem;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface)}.employee-document-item>div{min-width:0}.employee-document-item strong{display:block;color:var(--heading);font-size:.9rem}.employee-document-item p{margin-top:.35rem;color:var(--muted);font-size:.8rem}.employee-document-item small{display:block;margin-top:.3rem;color:var(--muted);font-size:.75rem}.employee-document-item .button{flex:0 0 auto}.document-state{display:inline-block;margin-top:.35rem;font-size:.75rem;font-weight:700}.document-state-ok{color:#167957}.document-state-warning{color:#9a6700}.document-state-missing{color:#a61b29}@media(max-width:640px){.employee-document-grid{grid-template-columns:1fr}.employee-document-item{flex-direction:column}.employee-document-item .button{width:100%}}
.document-form-section{display:grid;gap:.8rem;padding-top:1rem;border-top:1px solid var(--border-light)}
.document-form-section h3{margin:0;color:var(--heading);font-size:1rem}
.document-form-section .generated-upload p+p{margin-top:.45rem}
.document-review-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:1rem}
.document-review-item{display:grid;gap:.8rem;padding:1rem;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface)}
.document-review-head{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem}
.document-review-head strong{display:block;color:var(--heading);font-size:.9rem}
.document-review-head small{display:block;margin-top:.25rem;color:var(--muted);font-size:.75rem}
.review-notes{padding:.75rem;border:1px solid var(--border-light);background:var(--surface-soft);font-size:.82rem;line-height:1.5}
@media(max-width:640px){.document-review-grid{grid-template-columns:1fr}.document-review-head{flex-direction:column}.document-review-item .button-row{align-items:stretch;flex-direction:column}.document-review-item .button{width:100%}}

.file-item > span {
  display: grid;
  gap: .15rem;
  min-width: 0;
}

.file-item small {
  overflow-wrap: anywhere;
}

.anchor-section{scroll-margin-top:24px}
.employee-profile-nav{display:flex;flex-wrap:wrap;gap:.55rem;margin:0 0 1rem;padding:.75rem;border:1px solid var(--border);background:var(--surface)}
.employee-profile-nav a{display:inline-flex;align-items:center;min-height:36px;padding:.45rem .75rem;color:var(--brand-navy);background:var(--surface-soft);border:1px solid var(--border-light);font-size:.8rem;font-weight:800;text-decoration:none}
.employee-profile-nav a:hover{color:#fff;background:var(--brand-purple);border-color:var(--brand-purple)}
.page-header-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:.55rem}
.document-count{display:inline-flex;align-items:center;justify-content:center;min-width:34px;height:34px;padding:0 .65rem;color:#fff;background:var(--brand-purple);font-size:.8rem;font-weight:800}
.employee-document-link{display:grid;gap:.15rem;color:inherit;text-decoration:none}
.employee-document-link strong{color:var(--heading)}
.employee-document-link:hover strong{color:var(--brand-purple)}
@media(max-width:760px){.employee-profile-nav{display:grid;grid-template-columns:1fr 1fr}.employee-profile-nav a{justify-content:center;text-align:center}.page-header-actions{width:100%;justify-content:stretch}.page-header-actions .button{flex:1 1 180px}}
@media(max-width:480px){.employee-profile-nav{grid-template-columns:1fr}}

.unavailability-layout {
  align-items: start;
}

.calendar-toolbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1rem;
}

.calendar-toolbar > strong {
  color: var(--brand-navy);
  font-size: 1.05rem;
  font-weight: 800;
  text-align: center;
  text-transform: capitalize;
}

.calendar-toolbar-large {
  margin-bottom: 1.25rem;
}

.availability-calendar {
  width: 100%;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  background: #fff;
}

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

.calendar-weekdays span {
  padding: .55rem .25rem;
  color: #fff;
  background: var(--brand-navy);
  border-right: 1px solid rgba(255,255,255,.15);
  font-size: .72rem;
  font-weight: 700;
  text-align: center;
}

.calendar-weekdays span:last-child {
  border-right: 0;
}

.calendar-day {
  position: relative;
  min-width: 0;
  min-height: 64px;
  padding: .5rem;
  color: var(--text);
  background: #fff;
  border: 0;
  border-right: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  border-radius: 0;
  font: inherit;
  text-align: left;
}

button.calendar-day {
  cursor: pointer;
}

.calendar-day:nth-child(7n) {
  border-right: 0;
}

.calendar-day > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  color: var(--brand-navy);
  border-radius: 50%;
  font-size: .78rem;
  font-weight: 700;
}

.calendar-day.outside {
  background: #fafbfc;
}

.calendar-day.outside > span {
  color: #a3abb1;
}

.calendar-day.weekend:not(.outside) {
  background: #fbfafc;
}

.calendar-day.today > span {
  color: #fff;
  background: var(--brand-purple);
}

button.calendar-day:hover:not(:disabled) {
  background: #f3effa;
}

button.calendar-day:disabled {
  cursor: default;
}

.calendar-day.disabled:not(.unavailable) {
  opacity: .48;
}

.calendar-day.unavailable {
  background: #f7f3f8;
}

.calendar-day.unavailable small {
  display: block;
  margin-top: .3rem;
  color: var(--brand-purple);
  font-size: .62rem;
  font-weight: 700;
}

.calendar-day.range-selected {
  background: #eee7f6;
  box-shadow: inset 0 0 0 1px rgba(92, 45, 145, .16);
}

.calendar-day.range-start,
.calendar-day.range-end {
  background: #e4d8f1;
}

.admin-calendar .calendar-day {
  min-height: 118px;
}

.calendar-day-entries {
  display: grid;
  gap: .22rem;
  margin-top: .35rem;
}

.calendar-day-entries a {
  display: block;
  overflow: hidden;
  padding: .22rem .3rem;
  color: #fff;
  background: var(--brand-purple);
  font-size: .62rem;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-day-entries a:hover {
  color: #fff;
  background: var(--brand-navy);
}

.calendar-day-entries small {
  color: var(--muted);
  font-size: .62rem;
}

.availability-list {
  display: grid;
  gap: .65rem;
}

.availability-list article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem 0;
  border-bottom: 1px solid var(--border-light);
}

.availability-list article:last-child {
  border-bottom: 0;
}

.availability-list article > div {
  display: grid;
  gap: .18rem;
}

.availability-list article strong {
  color: var(--brand-navy);
}

.availability-list article small {
  color: var(--muted);
}

@media (max-width: 760px) {
  .calendar-toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .calendar-toolbar > strong {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .calendar-day {
    min-height: 48px;
    padding: .3rem;
  }

  .admin-calendar .calendar-day {
    min-height: 76px;
  }

  .calendar-day-entries a {
    padding: .15rem;
    font-size: 0;
  }

  .calendar-day-entries a::after {
    content: '•';
    font-size: .8rem;
  }

  .availability-list article {
    align-items: flex-start;
    flex-direction: column;
  }
}
