/* Employee portal shell */
.employee-page .page-shell {
  max-width: 1080px;
}

.employee-account-chip {
  align-items: center;
  display: flex;
  gap: 8px;
  margin-left: auto;
  text-decoration: none;
  color: var(--ink);
}

.employee-account-chip .avatar {
  width: 30px;
  font-size: 10px;
}

.employee-account-chip span:last-child {
  display: grid;
  gap: 1px;
}

.employee-account-chip strong {
  font-size: 12px;
}

.employee-account-chip small {
  color: var(--ink-muted);
  font-size: 9px;
}

/* Home */
.employee-greeting {
  margin-bottom: 20px;
}

.employee-greeting h1 {
  font-size: 26px;
  margin: 0 0 6px;
}

.employee-greeting p {
  color: var(--ink-muted);
  margin: 0;
}

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

.employee-stack {
  display: grid;
  gap: 16px;
}

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

.content-card-heading h2 {
  margin: 0;
}

.content-card-heading a {
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
}

.action-list {
  display: grid;
  gap: 0;
}

.action-row {
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--ink);
  display: grid;
  gap: 12px;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  padding: 11px 0;
  text-decoration: none;
}

.action-row:first-child {
  border-top: 0;
}

.action-row[hidden] {
  display: none;
}

.action-row:hover strong {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.action-mark {
  align-items: center;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink-muted);
  display: inline-flex;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.action-mark svg {
  height: 16px;
  width: 16px;
}

.action-row strong {
  display: block;
  font-size: 12px;
}

.action-row small {
  color: var(--ink-muted);
  display: block;
  font-size: 10px;
  margin-top: 2px;
}

.action-row .status-badge {
  justify-self: end;
}

.all-clear {
  color: var(--ink-muted);
  font-size: 12px;
  padding: 18px 0 6px;
  text-align: center;
}

.all-clear[hidden] {
  display: none;
}

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

.notice-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 6px;
  padding: 13px 14px;
}

.notice-card[hidden] {
  display: none;
}

.notice-card-top {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.notice-card strong {
  font-size: 12px;
}

.notice-card p {
  color: var(--ink-muted);
  font-size: 11px;
  line-height: 1.5;
  margin: 0;
}

.notice-card-meta {
  color: var(--ink-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 10px;
  gap: 4px 10px;
}

.notice-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.work-summary {
  display: grid;
  gap: 10px;
  margin: 0;
}

.work-summary div {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 3px;
  grid-template-columns: 110px minmax(0, 1fr);
  padding-top: 9px;
}

.work-summary div:first-child {
  border-top: 0;
  padding-top: 0;
}

.work-summary dt {
  color: var(--ink-muted);
  font-size: 10px;
  font-weight: 750;
}

.work-summary dd {
  font-size: 12px;
  margin: 0;
}

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

.quick-link {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: flex;
  font-size: 11px;
  font-weight: 750;
  gap: 8px;
  padding: 10px 12px;
  text-decoration: none;
}

.quick-link:hover {
  background: var(--paper-soft);
}

.quick-link svg {
  height: 15px;
  width: 15px;
}

/* Profile */
.pending-chip {
  background: var(--paper-soft);
  border: 1px dashed var(--line-strong);
  border-radius: 999px;
  color: var(--ink-muted);
  display: inline-flex;
  font-size: 9px;
  font-weight: 800;
  margin-left: 6px;
  padding: 2px 7px;
  text-transform: uppercase;
  vertical-align: middle;
}

.pending-chip[hidden] {
  display: none;
}

.profile-photo-row {
  align-items: center;
  display: flex;
  gap: 14px;
  margin-bottom: 16px;
}

.profile-photo-row .avatar {
  font-size: 18px;
  width: 72px;
}

.profile-photo-row p {
  color: var(--ink-muted);
  font-size: 10px;
  margin: 4px 0 0;
}

.readonly-list {
  display: grid;
  gap: 10px;
  margin: 0 0 14px;
}

.readonly-list div {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 3px;
  grid-template-columns: 130px minmax(0, 1fr);
  padding-top: 9px;
}

.readonly-list div:first-child {
  border-top: 0;
  padding-top: 0;
}

.readonly-list dt {
  color: var(--ink-muted);
  font-size: 10px;
  font-weight: 750;
}

.readonly-list dd {
  font-size: 12px;
  margin: 0;
}

.request-note {
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink-muted);
  font-size: 11px;
  line-height: 1.5;
  margin-bottom: 12px;
  padding: 10px 12px;
}

.request-note[hidden] {
  display: none;
}

/* Work */
.assignment-hero {
  align-items: center;
  display: flex;
  gap: 16px;
}

.assignment-hero .avatar {
  width: 56px;
}

.assignment-hero h2 {
  font-size: 18px;
  margin: 0 0 3px;
}

.assignment-hero p {
  color: var(--ink-muted);
  font-size: 12px;
  margin: 0;
}

.reporting-line {
  display: grid;
  gap: 8px;
}

.reporting-person {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 10px;
  padding: 10px 12px;
}

.reporting-person.is-self {
  border-color: var(--line-strong);
  background: var(--paper-soft);
}

.reporting-person strong {
  display: block;
  font-size: 12px;
}

.reporting-person small {
  color: var(--ink-muted);
  display: block;
  font-size: 10px;
  margin-top: 2px;
}

.reporting-person .status-badge {
  margin-left: auto;
}

.team-tools {
  margin-bottom: 12px;
}

.team-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.team-card {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 10px;
  padding: 11px 12px;
}

.team-card[hidden] {
  display: none;
}

.team-card strong {
  display: block;
  font-size: 12px;
}

.team-card small {
  color: var(--ink-muted);
  display: block;
  font-size: 10px;
  margin-top: 2px;
}

/* Forms, documents, notices lists */
.record-list {
  display: grid;
}

.record-row {
  align-items: center;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  grid-template-columns: 38px minmax(0, 1fr) auto auto;
  padding: 12px 0;
}

.record-row:first-child {
  border-top: 0;
}

.record-row[hidden] {
  display: none;
}

.record-row strong {
  display: block;
  font-size: 12px;
}

.record-row small {
  color: var(--ink-muted);
  display: block;
  font-size: 10px;
  margin-top: 3px;
}

.record-row .status-badge {
  justify-self: end;
}

.record-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

.record-mark {
  align-items: center;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink-muted);
  display: inline-flex;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.record-mark svg {
  height: 17px;
  width: 17px;
}

.load-more-row {
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: center;
  padding-top: 14px;
}

.load-more-row[hidden] {
  display: none;
}

.list-empty {
  color: var(--ink-muted);
  font-size: 12px;
  padding: 28px 0 10px;
  text-align: center;
}

.list-empty[hidden] {
  display: none;
}

/* Tasks */
.task-progress {
  display: grid;
  gap: 8px;
  margin-bottom: 4px;
}

.task-progress-top {
  align-items: baseline;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.task-progress-top strong {
  font-size: 13px;
}

.task-progress-top span {
  color: var(--ink-muted);
  font-size: 11px;
}

.task-group {
  border-top: 1px solid var(--line);
  padding: 14px 0 4px;
}

.task-group-heading {
  align-items: baseline;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  margin-bottom: 6px;
}

.task-group-heading h3 {
  font-size: 12px;
  margin: 0;
}

.task-group-heading span {
  color: var(--ink-muted);
  font-size: 10px;
}

.task-row {
  align-items: flex-start;
  display: grid;
  gap: 10px;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  padding: 8px 0;
}

.task-row input {
  margin: 2px 0 0;
  min-height: auto;
  width: auto;
}

.task-row label {
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.task-row.is-done label {
  color: var(--ink-muted);
  text-decoration: line-through;
}

.task-row small {
  color: var(--ink-muted);
  display: block;
  font-size: 10px;
  margin-top: 2px;
}

.task-row .status-badge {
  justify-self: end;
}

/* Account */
.session-list {
  display: grid;
}

.session-row {
  align-items: center;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 10px 0;
}

.session-row:first-child {
  border-top: 0;
}

.session-row strong {
  display: block;
  font-size: 12px;
}

.session-row small {
  color: var(--ink-muted);
  display: block;
  font-size: 10px;
  margin-top: 2px;
}

.signed-out-panel {
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  display: grid;
  gap: 10px;
  margin: 40px auto 0;
  max-width: 460px;
  padding: 28px;
  text-align: center;
}

.signed-out-panel[hidden] {
  display: none;
}

.signed-out-panel h1 {
  font-size: 20px;
  margin: 0;
}

.signed-out-panel p {
  color: var(--ink-muted);
  font-size: 12px;
  margin: 0;
}

/* Acknowledge dialog */
.ack-summary {
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  font-size: 12px;
  padding: 12px;
}

.ack-summary small {
  color: var(--ink-muted);
  font-size: 10px;
}

.dialog-copy {
  color: var(--ink-muted);
  font-size: 12px;
  line-height: 1.55;
  margin: 0;
}

@media (max-width: 900px) {
  .employee-grid {
    grid-template-columns: minmax(0, 1fr);
  }

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

@media (max-width: 680px) {
  .employee-account-chip span:last-child {
    display: none;
  }

  .team-grid,
  .quick-links {
    grid-template-columns: minmax(0, 1fr);
  }

  .record-row {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .record-row .status-badge,
  .record-actions {
    grid-column: 2;
    justify-self: start;
  }

  .work-summary div,
  .readonly-list div {
    grid-template-columns: minmax(0, 1fr);
  }

  .action-row {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .action-row .status-badge {
    grid-column: 2;
    justify-self: start;
  }
}

/* Notice detail */
.notice-page {
  max-width: 820px;
}

.notice-article {
  margin-top: 14px;
}

.notice-article-header {
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
  padding-bottom: 16px;
}

.notice-article-header h1 {
  font-size: 24px;
  margin: 10px 0 6px;
}

.notice-article-meta {
  color: var(--ink-muted);
  font-size: 12px;
  margin: 0;
}

.notice-article-body {
  font-size: 13px;
  line-height: 1.6;
}

.notice-article-body p,
.notice-article-body ul,
.notice-article-body ol {
  margin: 0 0 12px;
}

.notice-article-body ul,
.notice-article-body ol {
  padding-left: 22px;
}

.notice-article-body li + li {
  margin-top: 4px;
}

.notice-attachment {
  margin-top: 6px;
}

.notice-attachment .file-row {
  font-size: 12px;
}

.notice-attachment .button {
  margin-left: auto;
}

.notice-article-footer {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 16px;
}

.notice-ack-row {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: space-between;
}

.notice-ack-row[hidden] {
  display: none;
}

.notice-ack-row strong {
  display: block;
  font-size: 12px;
}

.notice-ack-row small {
  color: var(--ink-muted);
  display: block;
  font-size: 11px;
  margin-top: 2px;
}

.notice-ack-stamp,
.notice-info-note {
  align-items: center;
  color: var(--ink-muted);
  display: flex;
  font-size: 12px;
  gap: 8px;
  margin: 0;
}

.notice-ack-stamp[hidden],
.notice-info-note[hidden] {
  display: none;
}

.notice-ack-stamp svg {
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  height: 22px;
  padding: 4px;
  width: 22px;
}

.notice-pager {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 16px;
}

.notice-pager a {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  text-decoration: none;
}

.notice-pager a:hover {
  background: var(--paper-soft);
}

.notice-pager strong {
  font-size: 12px;
}

.notice-pager small {
  color: var(--ink-muted);
  font-size: 10px;
}

.notice-card-link {
  color: var(--ink);
  text-decoration: none;
}

.notice-card-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 680px) {
  .notice-ack-row {
    align-items: stretch;
    flex-direction: column;
  }

  .notice-pager {
    grid-template-columns: minmax(0, 1fr);
  }
}

.notice-ack-row:has([data-ack-open][hidden]) {
  display: none;
}

/* Multiple task cards */
.task-card.is-complete .task-progress-top strong {
  color: var(--ink-muted);
}

.task-card-toggle {
  border-top: 1px solid var(--line);
  margin-top: 12px;
  padding-top: 12px;
}

.task-card-body[hidden] {
  display: none;
}

.task-row input:disabled + label {
  cursor: default;
}
