body {
  background: #f7f8fa;
  color: #20242a;
}

.app-brand {
  align-items: center;
  display: inline-flex;
  gap: .65rem;
}

.app-brand-logo,
.login-brand-logo {
  background: #ffffff;
  border-radius: 999px;
  object-fit: contain;
}

.app-brand-logo {
  height: 32px;
  padding: 2px;
  width: 32px;
}

.icon-sprite {
  display: none;
}

.app-shell {
  display: block;
}

.sidebar {
  background: #ffffff;
  border-right: 1px solid #d9dee7;
  flex: 0 0 284px;
  flex-direction: column;
  gap: .35rem;
  min-height: calc(100vh - 56px);
  overflow-x: hidden;
  padding: .75rem;
  transition: flex-basis .18s ease, width .18s ease;
  width: 284px;
}

.sidebar-nav {
  display: grid;
  gap: .2rem;
}

.sidebar a {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: .375rem;
  color: #2d3748;
  display: flex;
  gap: .7rem;
  min-height: 42px;
  padding: .55rem .75rem;
  position: relative;
  text-decoration: none;
  width: 100%;
}

.sidebar a:hover {
  background: #eef2f7;
}

.sidebar a.is-active {
  background: #eaf6ee;
  color: #17623a;
  font-weight: 700;
}

.sidebar a.is-active::before {
  background: #2e8b57;
  border-radius: 999px;
  bottom: .5rem;
  content: "";
  left: .28rem;
  position: absolute;
  top: .5rem;
  width: 3px;
}

.navbar-nav .nav-link.is-active {
  background: rgba(255, 255, 255, .14);
  border-radius: .375rem;
  color: #ffffff;
  font-weight: 700;
  padding-left: .75rem;
  padding-right: .75rem;
}

.sidebar-footer {
  border-top: 1px solid #e4e7ec;
  margin-top: auto;
  padding-top: .65rem;
}

.sidebar-toggle {
  align-items: center;
  background: #ffffff;
  border: 1px solid #d9dee7;
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .06);
  color: #475467;
  display: flex;
  height: 42px;
  justify-content: center;
  margin: 0 auto;
  padding: 0;
  transition: background .16s ease, border-color .16s ease, color .16s ease;
  width: 42px;
}

.sidebar-toggle:hover {
  background: #eef2f7;
  border-color: #c7ceda;
  color: #111827;
}

.sidebar-icon {
  flex: 0 0 20px;
  height: 20px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 20px;
}

.sidebar-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-section {
  color: #667085;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: 0;
  margin: .9rem .75rem .35rem;
  min-height: 18px;
  text-transform: uppercase;
}

.app-main {
  min-width: 0;
  width: 100%;
}

@media (min-width: 768px) {
  .app-shell {
    display: flex;
  }

  .app-main {
    flex: 1 1 auto;
  }
}

html.sidebar-collapsed-preload .sidebar,
body.sidebar-collapsed .sidebar {
  flex-basis: 72px;
  width: 72px;
}

html.sidebar-collapsed-preload .sidebar a,
body.sidebar-collapsed .sidebar a {
  justify-content: center;
  padding-left: .5rem;
  padding-right: .5rem;
}

html.sidebar-collapsed-preload .sidebar a.is-active::before,
body.sidebar-collapsed .sidebar a.is-active::before {
  left: .2rem;
}

html.sidebar-collapsed-preload .sidebar-label,
body.sidebar-collapsed .sidebar-label {
  display: none;
}

html.sidebar-collapsed-preload .sidebar-section,
body.sidebar-collapsed .sidebar-section {
  border-top: 1px solid #e4e7ec;
  margin: .75rem .35rem .35rem;
}

html.sidebar-collapsed-preload .sidebar-toggle .sidebar-icon,
body.sidebar-collapsed .sidebar-toggle .sidebar-icon {
  transform: rotate(180deg);
}

.status-card {
  background: #fff;
  border: 1px solid #d9dee7;
  border-radius: .5rem;
  padding: 1rem;
  min-height: 96px;
}

.status-card span {
  display: block;
  color: #657083;
  font-size: .875rem;
}

.status-card strong {
  display: block;
  margin-top: .35rem;
  overflow-wrap: anywhere;
}

.history-empty,
.history-item span,
.history-item time {
  color: #667085;
}

.history-modal-body {
  max-height: min(68vh, 620px);
  overflow-y: auto;
}

.history-list {
  display: grid;
  gap: .65rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.history-item {
  align-items: center;
  border-left: 3px solid #2e8b57;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: .15rem 0 .15rem .75rem;
}

.history-item strong,
.history-item span {
  display: block;
}

.history-item strong {
  color: #151a22;
}

.history-item time {
  flex: 0 0 auto;
  font-size: .9rem;
}

.history-empty {
  margin: 0;
}

.inline-icon {
  fill: none;
  height: 18px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 18px;
}

.modal-subtitle {
  color: #667085;
  font-size: .9rem;
  margin: .15rem 0 0;
}

.page-header {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.page-header h1 {
  color: #151a22;
  font-weight: 700;
  margin-bottom: .25rem;
}

.page-subtitle {
  color: #667085;
  margin: 0;
}

.table-surface {
  background: #ffffff;
  border: 1px solid #d9dee7;
  border-radius: .5rem;
  overflow: hidden;
}

.app-table {
  min-width: 760px;
}

.app-table thead th {
  background: #f8fafc;
  color: #475467;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.app-table tbody td {
  color: #344054;
  font-size: .92rem;
  padding-bottom: .85rem;
  padding-top: .85rem;
}

.table-strong {
  color: #151a22;
  font-weight: 700;
}

.table-count {
  color: #151a22;
  font-weight: 800;
}

.table-action {
  color: #1f2937;
  font-weight: 700;
  text-decoration: none;
}

.table-action:hover {
  color: #111827;
  text-decoration: underline;
}

.status-pill {
  border-radius: 999px;
  display: inline-flex;
  font-size: .78rem;
  font-weight: 700;
  line-height: 1;
  padding: .35rem .55rem;
}

.date-select-control {
  display: grid;
  gap: .5rem;
  grid-template-columns: minmax(72px, .7fr) minmax(130px, 1.2fr) minmax(92px, .8fr);
  width: 100%;
}

.date-select-control select {
  background-color: #fff;
  border: 1px solid #d0d5dd;
  border-radius: .375rem;
  color: #20242a;
  min-height: 42px;
  padding: .5rem .75rem;
  width: 100%;
}

.date-select-control select:focus {
  border-color: #98a2b3;
  box-shadow: 0 0 0 .2rem rgb(152 162 179 / 18%);
  outline: 0;
}

.status-active {
  background: #e8f5ee;
  color: #17643a;
}

.status-muted {
  background: #eef2f7;
  color: #475467;
}

.status-deleted {
  background: #fbeaea;
  color: #9f1d1d;
}

.empty-table {
  color: #667085;
  padding: 2rem !important;
  text-align: center;
}

.admin-section {
  margin-top: 1rem;
}

.admin-section-header {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
  margin-bottom: .75rem;
}

.admin-section-header h2 {
  color: #151a22;
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0 0 .2rem;
}

.admin-section-header p {
  color: #667085;
  margin: 0;
}

.view-toggle {
  align-items: center;
  background: #eef2f7;
  border: 1px solid #d9dee7;
  border-radius: .5rem;
  display: inline-flex;
  gap: .15rem;
  padding: .2rem;
}

.view-toggle-option {
  border-radius: .375rem;
  color: #475467;
  font-size: .88rem;
  font-weight: 800;
  min-height: 34px;
  padding: .4rem .75rem;
  text-decoration: none;
}

.view-toggle-option:hover {
  color: #151a22;
}

.view-toggle-option.active {
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .08);
  color: #151a22;
}

.position-activity-grid {
  display: grid;
  gap: .75rem;
}

.position-activity-drawer {
  background: #ffffff;
  border: 1px solid #d9dee7;
  border-radius: .5rem;
  overflow: hidden;
}

.position-activity-drawer summary {
  align-items: center;
  cursor: pointer;
  display: grid;
  gap: .75rem;
  grid-template-columns: auto minmax(140px, 1fr) auto auto auto;
  list-style: none;
  min-height: 58px;
  padding: .85rem 1rem;
}

.position-activity-drawer summary::-webkit-details-marker {
  display: none;
}

.position-activity-drawer summary:hover {
  background: #f8fafc;
}

.drawer-chevron {
  border-bottom: 2px solid #475467;
  border-right: 2px solid #475467;
  display: inline-block;
  height: 9px;
  transform: rotate(-45deg);
  transition: transform .16s ease;
  width: 9px;
}

.position-activity-drawer[open] .drawer-chevron {
  transform: rotate(45deg);
}

.drawer-title {
  color: #151a22;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.drawer-count {
  color: #667085;
  font-size: .88rem;
  font-weight: 700;
  white-space: nowrap;
}

.drawer-action {
  justify-self: end;
}

.drawer-body {
  border-top: 1px solid #e4e7ec;
}

.position-activity-table {
  min-width: 980px;
}

.activity-panel {
  background: #ffffff;
  border: 1px solid #d9dee7;
  border-radius: .5rem;
  margin-top: 1rem;
  overflow: hidden;
}

.activity-panel-empty {
  color: #667085;
  padding: 1.25rem;
}

.activity-panel-empty h2 {
  color: #151a22;
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: .25rem;
}

.activity-panel-empty p {
  margin: 0;
}

.activity-panel-header {
  align-items: flex-start;
  border-bottom: 1px solid #e4e7ec;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 1rem 1.25rem;
}

.activity-panel-header h2 {
  color: #151a22;
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 0 .2rem;
}

.activity-panel-header p,
.activity-section-header p {
  color: #667085;
  margin: 0;
}

.activity-panel-actions,
.activity-section-header {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  justify-content: space-between;
}

.activity-summary-grid {
  border-bottom: 1px solid #e4e7ec;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 1rem 1.25rem;
}

.activity-summary-grid span:first-child {
  color: #667085;
  display: block;
  font-size: .78rem;
  font-weight: 800;
  margin-bottom: .25rem;
  text-transform: uppercase;
}

.activity-summary-grid strong {
  color: #151a22;
  display: block;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.activity-panel-section {
  border-bottom: 1px solid #e4e7ec;
  padding: 1rem 1.25rem;
}

.activity-panel-section:last-child {
  border-bottom: 0;
}

.activity-section-header {
  margin-bottom: .75rem;
}

.activity-section-header h3 {
  color: #151a22;
  font-size: 1rem;
  font-weight: 800;
  margin: 0 0 .2rem;
}

.activity-config-table {
  min-width: 860px;
}

.table-row-selected td {
  background: #f8fafc;
}

.table-row-toggle svg {
  transition: transform .16s ease;
}

.table-row-toggle.active svg {
  transform: rotate(90deg);
}

.table-detail-row > td {
  background: #fbfcfe;
  border-top: 0;
  padding: 0 !important;
}

.position-inline-detail {
  border-top: 1px solid #e4e7ec;
  padding: .75rem;
}

.position-inline-detail-header {
  align-items: center;
  display: flex;
  gap: .75rem;
  justify-content: space-between;
  margin-bottom: .75rem;
}

.activity-empty-state {
  border: 1px dashed #cfd6e1;
  border-radius: .5rem;
  color: #667085;
  padding: 1rem;
}

.activity-empty-state p {
  margin: 0 0 .75rem;
}

.form-surface {
  background: #ffffff;
  border: 1px solid #d9dee7;
  border-radius: .5rem;
  padding: 1.25rem;
}

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

.form-section {
  border-bottom: 1px solid #e4e7ec;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
}

.form-section h2 {
  color: #151a22;
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.form-field {
  min-width: 0;
}

.form-field label {
  color: #344054;
  display: block;
  font-size: .875rem;
  font-weight: 700;
  margin-bottom: .4rem;
}

.form-field input:not([type="checkbox"]),
.form-field select,
.form-field textarea {
  border: 1px solid #cfd6e1;
  border-radius: .375rem;
  color: #151a22;
  min-height: 42px;
  padding: .6rem .7rem;
  width: 100%;
}

.form-field textarea {
  resize: vertical;
}

.form-help {
  color: #667085;
  font-size: .85rem;
  margin: .35rem 0 0;
}

.document-list {
  border-top: 1px solid #e4e7ec;
  margin-top: 1rem;
  padding-top: 1rem;
}

.document-list h3 {
  color: #344054;
  font-size: .95rem;
  font-weight: 800;
  margin-bottom: .5rem;
}

.document-list ul {
  color: #475467;
  margin-bottom: 0;
  padding-left: 1.2rem;
}

.identity-document-upload {
  display: grid;
  gap: .5rem;
}

.employee-document-image {
  background: #101828;
  border-radius: .375rem;
  display: block;
  max-height: 70vh;
  object-fit: contain;
  width: 100%;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: #475467;
  box-shadow: 0 0 0 3px rgb(71 84 103 / 12%);
  outline: none;
}

.worklog-mobile-flow {
  display: grid;
  gap: .75rem;
}

.worklog-wizard {
  max-width: 980px;
}

.worklog-step {
  border: 1px solid #e4e7ec;
  border-radius: .5rem;
  padding: 1rem;
}

.worklog-step[hidden] {
  display: none !important;
}

.worklog-step.is-active {
  border-color: #b8c0cc;
  box-shadow: 0 1px 2px rgb(16 24 40 / 6%);
}

.worklog-step-heading {
  align-items: center;
  display: flex;
  gap: .55rem;
  margin-bottom: .75rem;
}

.worklog-step-heading h2 {
  color: #151a22;
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0;
}

.worklog-step-heading p {
  color: #667085;
  font-size: .9rem;
  margin: .15rem 0 0;
}

.worklog-step-number {
  align-items: center;
  background: #151a22;
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  font-size: .8rem;
  font-weight: 800;
  height: 1.65rem;
  justify-content: center;
  width: 1.65rem;
}

.worklog-step-note {
  background: #f2f4f7;
  border-radius: .375rem;
  color: #344054;
  font-size: .9rem;
  margin: .75rem 0 0;
  padding: .65rem .75rem;
}

.worklog-search-help {
  color: #667085;
  font-size: .88rem;
  margin: .5rem 0 0;
}

.choice-native {
  display: none;
}

.choice-button-list {
  display: grid;
  gap: .6rem;
}

.choice-button {
  align-items: flex-start;
  background: #ffffff;
  border: 1px solid #cfd6e1;
  border-radius: .5rem;
  color: #151a22;
  display: flex;
  flex-direction: column;
  font-weight: 700;
  justify-content: flex-start;
  min-height: 52px;
  padding: .75rem .85rem;
  text-align: left;
  width: 100%;
}

.choice-button.active {
  background: #151a22;
  border-color: #151a22;
  color: #ffffff;
}

.choice-button-label {
  display: block;
  font-size: .98rem;
  line-height: 1.25;
}

.choice-button-description {
  color: #667085;
  display: block;
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.25;
  margin-top: .25rem;
}

.choice-button.active .choice-button-description {
  color: #d0d5dd;
}

.choice-selected-label {
  color: #17643a;
  display: block;
  font-size: .78rem;
  font-weight: 800;
  margin-top: .35rem;
}

.choice-button.active .choice-selected-label {
  color: #ffffff;
}

.choice-button:focus {
  box-shadow: 0 0 0 3px rgb(71 84 103 / 18%);
  outline: none;
}

.selection-summary {
  background: #e8f5ee;
  border-radius: .375rem;
  color: #17643a;
  font-weight: 800;
  margin-top: .75rem;
  padding: .65rem .75rem;
}

@media (min-width: 768px) {
  .worklog-step {
    padding: 1.25rem;
  }

  .choice-button-list {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

  .worklog-step[data-worklog-step="empleado"] .choice-button-list,
  .worklog-step[data-worklog-step="proyecto"] .choice-button-list {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }
}

.worklog-empty-message {
  color: #9f1d1d;
  font-size: .9rem;
  font-weight: 700;
  margin: .75rem 0 0;
}

.worklog-search-input {
  border: 1px solid #cfd6e1;
  border-radius: .5rem;
  color: #151a22;
  margin-bottom: .6rem;
  min-height: 48px;
  padding: .7rem .85rem;
  width: 100%;
}

.stepper-control {
  align-items: center;
  display: grid;
  gap: .5rem;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
}

.stepper-button {
  align-items: center;
  background: #ffffff;
  border: 1px solid #98a2b3;
  border-radius: .5rem;
  color: #151a22;
  display: inline-flex;
  font-size: 1.35rem;
  font-weight: 800;
  height: 52px;
  justify-content: center;
}

.stepper-button:focus {
  box-shadow: 0 0 0 3px rgb(71 84 103 / 18%);
  outline: none;
}

.review-list {
  display: grid;
  gap: .65rem;
  margin: 0;
}

.review-list div {
  border-bottom: 1px solid #eef2f7;
  display: grid;
  gap: .25rem;
  padding-bottom: .6rem;
}

.review-list div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.review-list dt {
  color: #667085;
  font-size: .82rem;
  font-weight: 800;
}

.review-list dd {
  color: #151a22;
  font-weight: 800;
  margin: 0;
}

.form-field-check {
  align-items: end;
  display: flex;
}

.check-control {
  align-items: center;
  display: inline-flex !important;
  gap: .5rem;
  margin: 0;
  min-height: 42px;
}

.check-control input {
  height: 18px;
  width: 18px;
}

.multi-check-list > div,
.multi-check-list li {
  list-style: none;
}

.multi-check-list ul {
  margin: 0;
  padding: 0;
}

.multi-check-list > div:not(.field-help) {
  border: 1px solid #cfd6e1;
  border-radius: .375rem;
  max-height: 220px;
  overflow: auto;
  padding: .35rem;
}

.multi-check-list label {
  align-items: center;
  border-radius: .25rem;
  color: #344054;
  display: flex;
  font-weight: 600;
  gap: .55rem;
  margin: 0;
  min-height: 36px;
  padding: .4rem .5rem;
}

.multi-check-list label:has(input:checked) {
  background: #f2f4f7;
  color: #151a22;
}

.multi-check-list input {
  height: 16px;
  width: 16px;
}

.field-help {
  color: #667085;
  font-size: .82rem;
  margin-top: .35rem;
}

.password-summary {
  color: #344054;
  font-weight: 700;
  margin-bottom: .65rem;
}

.field-error {
  color: #b42318;
  font-size: .85rem;
  margin-top: .35rem;
}

.form-actions {
  border-top: 1px solid #e4e7ec;
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
}

.header-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  justify-content: flex-end;
}

.calendar-layout {
  display: block;
}

.calendar-panel {
  align-self: start;
  background: #fff;
  border: 1px solid #d8dee8;
  border-radius: .5rem;
  padding: .75rem;
}

.calendar-panel-wide {
  margin-bottom: 1rem;
  width: 100%;
}

.calendar-toolbar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: space-between;
  margin-bottom: .75rem;
}

.calendar-nav,
.calendar-view-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

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

.calendar-head {
  color: #667085;
  font-size: .78rem;
  font-weight: 800;
  margin-bottom: .35rem;
  text-align: center;
}

.calendar-day {
  align-items: center;
  aspect-ratio: 1;
  border: 1px solid transparent;
  border-radius: .5rem;
  color: #344054;
  display: flex;
  font-size: 1.05rem;
  font-weight: 800;
  justify-content: center;
  min-height: 68px;
  text-decoration: none;
}

.calendar-day:hover {
  background: #f2f4f7;
  color: #151a22;
}

.calendar-muted {
  color: #98a2b3;
}

.calendar-has-records {
  background: #fff3e6;
  border-color: #ffd7a8;
  color: #9a4d00;
}

.calendar-closed {
  background: #e8f5ee;
  border-color: #b7dfc8;
  color: #166534;
}

.calendar-needs-review {
  background: #fee4e2;
  border-color: #fda29b;
  color: #b42318;
}

.calendar-selected {
  border-color: #151a22;
  box-shadow: inset 0 0 0 2px #151a22;
}

.calendar-selected:hover {
  border-color: #151a22;
  box-shadow: inset 0 0 0 2px #151a22;
}

.table-surface-full {
  width: 100%;
}

.table-controls {
  align-items: center;
  border-bottom: 1px solid #e4e7ec;
  display: block;
  min-height: 59px;
  padding: .75rem 1rem;
  position: relative;
}

.table-controls-main {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  padding-right: 9.5rem;
}

.table-toggle {
  align-items: center;
  display: flex;
  gap: .45rem;
  min-height: 36px;
}

.table-toggle span {
  color: #344054;
  font-size: .85rem;
  font-weight: 800;
}

.table-page-size {
  align-items: center;
  background: #fff;
  border: 1px solid #d0d5dd;
  border-radius: .375rem;
  display: flex;
  min-height: 34px;
  overflow: hidden;
}

.table-page-size span {
  background: #f8fafc;
  border-right: 1px solid #d0d5dd;
  color: #475467;
  font-size: .85rem;
  font-weight: 800;
  line-height: 1;
  padding: .55rem .65rem;
}

.table-page-size select {
  background-color: #fff;
  border: 0;
  color: #151a22;
  font-weight: 800;
  min-height: 32px;
  padding: .35rem 1.85rem .35rem .6rem;
}

.table-page-size select:focus {
  box-shadow: none;
  outline: 2px solid #98a2b3;
  outline-offset: -2px;
}

.table-export-button {
  min-height: 34px;
}

.app-table tbody tr.row-warning-soft > td {
  background: #fff7ed;
}

.table-control-actions,
.table-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.table-control-actions {
  justify-content: flex-end;
  position: absolute;
  right: 1rem;
  top: .75rem;
}

.table-sort {
  align-items: center;
  color: inherit;
  display: inline-flex;
  gap: .35rem;
  text-decoration: none;
}

.table-sort:hover {
  color: #151a22;
}

.table-sort-muted {
  color: #98a2b3;
}

.table-pagination {
  align-items: center;
  border-top: 1px solid #e4e7ec;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: space-between;
  padding: .9rem 1rem;
}

.table-page-summary {
  color: #667085;
  font-size: .9rem;
  font-weight: 700;
}

.icon-action {
  align-items: center;
  background: transparent;
  border: 1px solid #d0d5dd;
  border-radius: .375rem;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.icon-action.danger {
  color: #b42318;
}

.icon-action:hover {
  background: #f9fafb;
}

.icon-action:disabled,
.icon-action.disabled {
  background: #f2f4f7;
  color: #98a2b3;
  cursor: not-allowed;
  opacity: .7;
  pointer-events: none;
}

.inline-extra-hours,
.inline-extra-hours-form {
  align-items: center;
  display: inline-flex;
  gap: .35rem;
}

.inline-extra-hours-value {
  min-width: 3.2rem;
}

.inline-extra-hours-input {
  border: 1px solid #d0d5dd;
  border-radius: .375rem;
  color: #20242a;
  height: 34px;
  padding: .25rem .45rem;
  width: 4.8rem;
}

.inline-extra-hours-save {
  color: #027a48;
}

.inline-extra-hours-cancel {
  color: #b42318;
}

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

.payment-summary-item {
  background: #f8fafc;
  border: 1px solid #e4e7ec;
  border-radius: .5rem;
  padding: .75rem;
}

.payment-summary-item label {
  color: #667085;
  display: block;
  font-size: .78rem;
  font-weight: 800;
  margin-bottom: .25rem;
  text-transform: uppercase;
}

.payment-summary-value {
  color: #101828;
  font-size: 1.05rem;
  font-weight: 800;
  min-height: 1.5rem;
}

.payment-method-field,
.payment-modal-grid .form-field:has(textarea) {
  grid-column: 1 / -1;
}

.payment-method-options {
  display: grid;
  gap: .5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.payment-method-option {
  align-items: center;
  border: 1px solid #d0d5dd;
  border-radius: .5rem;
  cursor: pointer;
  display: flex;
  gap: .5rem;
  min-height: 44px;
  padding: .65rem .75rem;
}

.payment-method-option:has(input:checked) {
  border-color: #101828;
  box-shadow: 0 0 0 1px #101828;
}

.payment-method-option input {
  margin: 0;
}

.worklog-danger-actions {
  border-top: 1px solid #fecdca;
  justify-content: flex-start;
  margin-top: 1rem;
  padding-top: 1rem;
}

.worklog-duplicate-alert {
  align-items: flex-start;
  display: flex;
  gap: .4rem;
  padding-right: 3rem;
}

.worklog-duplicate-alert strong {
  flex: 0 0 auto;
}

@media (max-width: 767.98px) {
  .page-header,
  .admin-section-header,
  .activity-panel-header,
  .activity-section-header {
    display: grid;
    gap: .75rem;
    grid-template-columns: 1fr;
  }

  .view-toggle {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .view-toggle-option {
    text-align: center;
  }

  .position-activity-drawer summary {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .drawer-count {
    grid-column: 2 / 4;
    white-space: normal;
  }

  .drawer-action {
    grid-column: 3;
    grid-row: 1;
  }

  .activity-panel {
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    margin-left: -.75rem;
    margin-right: -.75rem;
  }

  .activity-panel-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .activity-panel-actions .btn,
  .activity-section-header .btn {
    width: 100%;
  }

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

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

  .table-controls {
    display: grid;
    gap: .75rem;
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .table-controls-main {
    padding-right: 0;
  }

  .table-control-actions {
    justify-content: flex-end;
    position: static;
  }

  .worklog-wizard {
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    margin-left: -.75rem;
    margin-right: -.75rem;
    padding: .85rem;
  }

  .worklog-wizard .form-actions {
    align-items: stretch;
    display: grid;
    gap: .6rem;
  }

  .worklog-wizard .form-actions .btn {
    min-height: 50px;
    width: 100%;
  }

  .calendar-day {
    min-height: 44px;
  }
}

.auth-page {
  background: #f4f6f8;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.login-panel {
  width: min(100%, 400px);
  background: #ffffff;
  border: 1px solid #d9dee7;
  border-radius: .5rem;
  padding: 2rem;
}

.login-brand {
  align-items: center;
  color: #4d596a;
  display: flex;
  font-size: .875rem;
  font-weight: 700;
  gap: .75rem;
  margin-bottom: 1.5rem;
}

.login-brand-logo {
  height: 56px;
  width: 56px;
}

.login-panel h1 {
  color: #151a22;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

.login-copy {
  color: #667085;
  font-size: .95rem;
  margin: .5rem 0 1.5rem;
}

.login-alert {
  border-radius: .375rem;
  font-size: .9rem;
  padding: .75rem;
}

.field-group {
  margin-bottom: 1rem;
}

.field-group label {
  display: block;
  color: #344054;
  font-size: .875rem;
  font-weight: 600;
  margin-bottom: .4rem;
}

.field-group input {
  width: 100%;
  border: 1px solid #cfd6e1;
  border-radius: .375rem;
  color: #151a22;
  font: inherit;
  min-height: 44px;
  padding: .65rem .75rem;
}

.field-group input:focus {
  border-color: #475467;
  box-shadow: 0 0 0 3px rgb(71 84 103 / 12%);
  outline: none;
}

.login-submit {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: .375rem;
  background: #1f2937;
  color: #ffffff;
  font-weight: 700;
  margin-top: .25rem;
}

.login-submit:hover {
  background: #111827;
}

.login-link {
  display: inline-block;
  color: #475467;
  font-size: .9rem;
  margin-top: 1rem;
  text-decoration: none;
}

.login-link:hover {
  color: #111827;
  text-decoration: underline;
}

.htmx-indicator {
  display: none;
}

.htmx-request .htmx-indicator {
  display: block;
}
