.ttk8sr-portal {
  --ttk-line: #d8ded6;
  --ttk-accent: #0f766e;
  --ttk-muted: #64748b;
  color: #1f2933;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.ttk8sr-dynamic-entry-form,
.ttk8sr-sick-leave-form,
.ttk8sr-family-leave-form,
.ttk8sr-message-compose-form,
.ttk8sr-message-reply-form,
.ttk8sr-front-template-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

.ttk8sr-dynamic-entry-form .ttk8sr-wide-field,
.ttk8sr-sick-leave-form .ttk8sr-wide-field,
.ttk8sr-family-leave-form .ttk8sr-wide-field,
.ttk8sr-message-compose-form .ttk8sr-wide-field,
.ttk8sr-message-reply-form .ttk8sr-wide-field,
.ttk8sr-front-template-form .ttk8sr-wide-field,
.ttk8sr-dynamic-entry-form button,
.ttk8sr-sick-leave-form button,
.ttk8sr-family-leave-form button {
  grid-column: 1 / -1;
}

.ttk8sr-radio-line,
.ttk8sr-check-row {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.ttk8sr-total-alert {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.ttk8sr-sick-notify-warning,
.ttk8sr-sick-other-note {
  margin: 8px 0 0;
  color: #b91c1c;
  font-weight: 700;
}

.ttk8sr-family-leave-options,
.ttk8sr-message-card-list,
.ttk8sr-admin-message-list {
  display: grid;
  gap: 10px;
}

.ttk8sr-family-leave-option,
.ttk8sr-message-card,
.ttk8sr-message-compose,
.ttk8sr-front-template-tools {
  border: 1px solid #dbe3ea;
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.ttk8sr-family-leave-dates,
.ttk8sr-event-times {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.ttk8sr-message-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

.ttk8sr-message-card > summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
}

.ttk8sr-message-card > summary span {
  color: #64748b;
  font-size: 13px;
}

.ttk8sr-message-thread {
  display: grid;
  gap: 10px;
  margin: 12px 0;
}

.ttk8sr-message-comment {
  border-left: 4px solid #94a3b8;
  background: #f8fafc;
  padding: 10px 12px;
}

.ttk8sr-message-comment.is-employee {
  border-left-color: #0f766e;
}

.ttk8sr-message-comment.is-supervisor,
.ttk8sr-message-comment.is-hr {
  border-left-color: #2563eb;
}

.ttk8sr-message-comment header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #475569;
  font-size: 13px;
  margin-bottom: 4px;
}

.ttk8sr-payroll-summary {
  margin-top: 16px;
  border-top: 1px solid #e2e8f0;
  padding-top: 12px;
}

.ttk8sr-payroll-summary table {
  width: 100%;
  border-collapse: collapse;
}

.ttk8sr-payroll-summary th,
.ttk8sr-payroll-summary td {
  border-bottom: 1px solid #e2e8f0;
  padding: 6px 4px;
  text-align: left;
}

.ttk8sr-front-template-tools {
  margin-top: 14px;
}

.ttk8sr-front-template-tools .ttk8sr-compact-list {
  margin: 0 0 10px;
}

.ttk8sr-front-schedule-footer-action {
  margin-top: 12px;
}

.ttk8sr-small-link {
  width: fit-content;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #0f172a;
}

.ttk8sr-public-body {
  margin: 0;
  background: #eef4f3;
  color: #1f2933;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.ttk8sr-public-shell {
  min-height: 100vh;
  display: grid;
  place-items: start center;
  padding: 32px 14px;
}

.ttk8sr-public-card {
  width: min(720px, 100%);
  box-sizing: border-box;
  border: 1px solid #d8ded6;
  border-radius: 8px;
  background: #fff;
  padding: 24px;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.10);
}

.ttk8sr-public-card h1 {
  margin: 0 0 18px;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: 0;
}

.ttk8sr-public-language {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin: 0 0 14px;
}

.ttk8sr-public-language a {
  border: 1px solid #d8ded6;
  border-radius: 999px;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  padding: 8px 10px;
  text-decoration: none;
}

.ttk8sr-public-language a.is-active {
  background: #0f766e;
  border-color: #0f766e;
  color: #fff;
}

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

.ttk8sr-public-card [hidden],
.ttk8sr-public-form [hidden] {
  display: none !important;
}

.ttk8sr-public-form label,
.ttk8sr-public-summary div {
  display: grid;
  gap: 6px;
}

.ttk8sr-public-form input,
.ttk8sr-public-form select,
.ttk8sr-public-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
}

.ttk8sr-public-form button {
  grid-column: 1 / -1;
  border: 0;
  border-radius: 8px;
  background: #0f766e;
  color: #fff;
  padding: 12px 16px;
  font-weight: 800;
  cursor: pointer;
}

.ttk8sr-public-actions {
  display: flex;
  gap: 10px;
}

.ttk8sr-public-actions button {
  flex: 1 1 0;
}

.ttk8sr-public-actions .ttk8sr-public-back {
  background: #fff;
  border: 1px solid #cbd5e1;
  color: #334155;
}

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

.ttk8sr-public-step {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: auto 1fr;
  padding: 12px;
}

.ttk8sr-public-step h2 {
  align-items: center;
  background: #0f766e;
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 14px;
  height: 28px;
  justify-content: center;
  margin: 0;
  width: 28px;
}

.ttk8sr-public-step p {
  color: #475569;
  font-weight: 800;
  margin: 0;
}

.ttk8sr-public-request-choices {
  border: 1px solid #d8ded6;
  border-radius: 8px;
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 12px;
}

.ttk8sr-public-request-choices legend {
  color: #334155;
  font-weight: 900;
  padding: 0 6px;
}

.ttk8sr-public-request-choices label,
.ttk8sr-public-check {
  align-items: center;
  display: flex;
  gap: 8px;
  margin: 0;
}

.ttk8sr-public-request-choices input,
.ttk8sr-public-check input {
  flex: 0 0 auto;
  width: auto;
}

.ttk8sr-public-request-panel {
  border: 1px solid #d8ded6;
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 14px;
}

.ttk8sr-public-panel-grid,
.ttk8sr-public-time-wheels {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ttk8sr-public-field-title {
  color: #334155;
  font-weight: 900;
  margin: 0;
}

.ttk8sr-public-time-picker {
  display: block;
}

.ttk8sr-public-time-display {
  background: #fff;
  cursor: pointer;
  font-weight: 900;
  text-align: center;
}

.ttk8sr-fi-date[readonly] {
  cursor: pointer;
  background: #fff;
}

.ttk8sr-public-time-dialog {
  align-items: center;
  background: rgba(15, 23, 42, 0.42);
  bottom: 0;
  display: flex;
  justify-content: center;
  left: 0;
  padding: 18px;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 100000;
}

.ttk8sr-public-time-dialog[hidden] {
  display: none !important;
}

.ttk8sr-public-time-dialog-panel {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.24);
  max-width: 360px;
  padding: 16px;
  width: min(100%, 360px);
}

.ttk8sr-public-time-dialog-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 0 12px;
}

.ttk8sr-public-time-dialog-head strong {
  font-size: 18px;
}

.ttk8sr-public-time-dialog-head button {
  align-items: center;
  background: #f1f5f9;
  border: 0;
  border-radius: 999px;
  color: #334155;
  display: inline-flex;
  font-size: 22px;
  font-weight: 900;
  height: 36px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  width: 36px;
}

.ttk8sr-public-time-wheel {
  align-items: stretch;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  display: grid;
  gap: 6px;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  padding: 8px;
}

.ttk8sr-public-wheel-column {
  display: grid;
  gap: 6px;
  max-height: 168px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 2px;
  scroll-snap-type: y mandatory;
}

.ttk8sr-public-wheel-column button {
  background: #fff;
  border: 1px solid #d8ded6;
  border-radius: 10px;
  color: #334155;
  font-size: 18px;
  font-weight: 900;
  min-height: 38px;
  padding: 7px 8px;
  scroll-snap-align: center;
}

.ttk8sr-public-wheel-column button.is-selected {
  background: #0f766e;
  border-color: #0f766e;
  color: #fff;
}

.ttk8sr-public-wheel-separator {
  align-self: center;
  color: #334155;
  font-size: 24px;
  font-weight: 900;
  padding: 0 2px;
}

.ttk8sr-public-time-dialog-ok {
  background: #0f766e;
  border: 0;
  border-radius: 12px;
  color: #fff;
  cursor: pointer;
  font-weight: 900;
  margin-top: 12px;
  padding: 12px 16px;
  width: 100%;
}

.ttk8sr-public-message {
  border-radius: 8px;
  padding: 12px 14px;
  margin: 0 0 14px;
  font-weight: 700;
}

.ttk8sr-public-message.is-success {
  background: #dcfce7;
  color: #14532d;
}

.ttk8sr-public-message.is-error {
  background: #fee2e2;
  color: #991b1b;
}

.ttk8sr-public-summary {
  display: grid;
  gap: 10px;
  margin: 0 0 16px;
}

.ttk8sr-public-summary div {
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 8px;
}

.ttk8sr-public-summary dt {
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
}

.ttk8sr-public-summary dd {
  margin: 0;
}

.ttk8sr-public-report-shell {
  place-items: start center;
}

.ttk8sr-public-report-card {
  width: min(1500px, 100%);
}

.ttk8sr-public-report-head {
  color: #475569;
  margin: 0 0 16px;
}

.ttk8sr-public-table-scroll {
  border: 1px solid #d8ded6;
  border-radius: 8px;
  margin: 0 0 22px;
  overflow: auto;
}

.ttk8sr-public-report-table {
  border-collapse: collapse;
  min-width: 1180px;
  width: 100%;
}

.ttk8sr-public-report-table th,
.ttk8sr-public-report-table td {
  border-bottom: 1px solid #e2e8f0;
  border-right: 1px solid #e2e8f0;
  padding: 8px 10px;
  text-align: right;
  white-space: nowrap;
}

.ttk8sr-public-report-table th {
  background: #f8fafc;
  color: #0f172a;
  font-size: 13px;
}

.ttk8sr-public-report-table th:first-child,
.ttk8sr-public-report-table td:first-child {
  left: 0;
  min-width: 220px;
  position: sticky;
  text-align: left;
  z-index: 1;
}

.ttk8sr-public-report-table th:first-child {
  z-index: 2;
}

.ttk8sr-public-report-table td:first-child {
  background: #fff;
}

.ttk8sr-public-report-table small {
  color: #64748b;
}

.ttk8sr-public-filter-form {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  margin: 0 0 18px;
  padding: 12px;
  border: 1px solid #d8ded6;
  border-radius: 8px;
  background: #f8fafc;
}

.ttk8sr-public-filter-form fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.ttk8sr-public-filter-form legend {
  margin: 0 0 7px;
  color: #0f172a;
  font-size: 13px;
  font-weight: 800;
}

.ttk8sr-public-filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.ttk8sr-public-filter-options label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
}

.ttk8sr-public-filter-form button {
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 7px;
  background: #0f766e;
  color: #fff;
  font-weight: 800;
}

.ttk8sr-public-vv-scroll {
  max-width: 720px;
}

.ttk8sr-public-report-table.ttk8sr-public-vv-table {
  min-width: 0;
}

.ttk8sr-public-vv-table th:first-child,
.ttk8sr-public-vv-table td:first-child {
  min-width: 0;
  width: 72%;
}

.ttk8sr-public-click-row {
  cursor: pointer;
}

.ttk8sr-public-click-row:hover td {
  background: #f0fdfa;
}

.ttk8sr-public-row-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.ttk8sr-public-row-open strong,
.ttk8sr-public-row-open small {
  display: block;
}

.ttk8sr-public-dialog {
  width: min(640px, calc(100vw - 28px));
  padding: 24px;
  border: 0;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .28);
}

.ttk8sr-public-dialog::backdrop {
  background: rgba(15, 23, 42, .42);
}

.ttk8sr-public-dialog h2 {
  margin: 0 44px 4px 0;
}

.ttk8sr-public-dialog p {
  margin: 0 0 18px;
  color: #64748b;
  font-weight: 700;
}

.ttk8sr-public-dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
}

.ttk8sr-public-dialog-close button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: #e2e8f0;
  color: #0f172a;
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
}

.ttk8sr-public-vv-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 0;
}

.ttk8sr-public-vv-detail div {
  display: grid;
  grid-template-columns: minmax(130px, 190px) 1fr;
  gap: 14px;
  padding: 9px 0;
  border-top: 1px solid #e2e8f0;
}

.ttk8sr-public-vv-detail dt {
  color: #475569;
  font-weight: 800;
}

.ttk8sr-public-vv-detail dd {
  margin: 0;
  text-align: right;
}

.ttk8sr-public-vv-muted {
  color: #64748b;
  font-size: 13px;
}

.ttk8sr-public-vv-months {
  margin-top: 20px;
  padding-top: 12px;
  border-top: 1px solid #cbd5e1;
}

.ttk8sr-public-vv-month-row {
  display: grid;
  grid-template-columns: minmax(130px, 190px) 1fr;
  gap: 14px;
  padding: 7px 0;
  border-top: 1px solid #e2e8f0;
}

.ttk8sr-public-vv-month-row:first-child {
  border-top: 0;
}

.ttk8sr-public-vv-month-row span {
  color: #475569;
  font-weight: 400;
}

.ttk8sr-public-vv-month-row p {
  margin: 0;
  text-align: right;
}

.ttk8sr-public-vacation-gantt .ttk8sr-vacation-gantt-name small {
  color: #94a3b8;
  display: block;
  font-size: 11px;
  margin-top: 3px;
}

@media (max-width: 720px) {
  .ttk8sr-public-filter-form {
    align-items: stretch;
    flex-direction: column;
  }

  .ttk8sr-public-vv-detail div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .ttk8sr-public-vv-detail dd {
    text-align: left;
  }

  .ttk8sr-public-vv-month-row {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .ttk8sr-public-vv-month-row p {
    text-align: left;
  }

  .ttk8sr-dynamic-entry-form,
  .ttk8sr-sick-leave-form,
  .ttk8sr-family-leave-form,
  .ttk8sr-message-compose-form,
  .ttk8sr-message-reply-form,
  .ttk8sr-front-template-form,
  .ttk8sr-family-leave-dates,
  .ttk8sr-event-times {
    grid-template-columns: 1fr;
  }

  .ttk8sr-message-card > summary {
    display: block;
  }

  .ttk8sr-public-card {
    padding: 18px;
  }

  .ttk8sr-public-card h1 {
    font-size: 26px;
  }

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

  .ttk8sr-public-panel-grid,
  .ttk8sr-public-time-wheels {
    grid-template-columns: 1fr;
  }
}

.ttk8sr-employee-shell {
  margin: 0;
  background: #f8fafc;
}

.ttk8sr-employee-shell-main {
  min-height: 100vh;
  padding: 24px 12px;
}

.ttk8sr-portal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
}

.ttk8sr-portal-topbar span {
  color: var(--ttk-muted);
  font-size: 14px;
  font-weight: 800;
}

.ttk8sr-portal-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid var(--ttk-line);
  border-radius: 8px;
  background: #fff;
  color: #334155;
  font-weight: 800;
  text-decoration: none;
}

.ttk8sr-portal-logout:hover,
.ttk8sr-portal-logout:focus {
  color: #0f766e;
  border-color: #99f6e4;
}

.ttk8sr-portal h2 {
  font-size: 22px;
  margin: 28px 0 12px;
}

.ttk8sr-portal-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0 20px;
}

.ttk8sr-portal table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 16px;
}

.ttk8sr-portal th,
.ttk8sr-portal td {
  border-bottom: 1px solid var(--ttk-line);
  padding: 10px 8px;
  text-align: left;
}

.ttk8sr-confirm-card,
.ttk8sr-request-form {
  border: 1px solid var(--ttk-line);
  border-radius: 8px;
  padding: 16px;
  margin: 0 0 14px;
  background: #fff;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.ttk8sr-onboarding-card {
  max-width: 860px;
  border: 1px solid var(--ttk-line);
  border-radius: 8px;
  background: #fff;
  padding: 20px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.ttk8sr-onboarding-card h2 {
  margin-top: 0;
}

.ttk8sr-onboarding-readonly {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.ttk8sr-onboarding-readonly div {
  border: 1px solid var(--ttk-line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #f8fafc;
}

.ttk8sr-onboarding-readonly dt {
  color: var(--ttk-muted);
  font-size: 12px;
  font-weight: 800;
  margin: 0 0 3px;
}

.ttk8sr-onboarding-readonly dd {
  margin: 0;
  font-weight: 700;
}

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

.ttk8sr-onboarding-wide,
.ttk8sr-onboarding-note,
.ttk8sr-onboarding-form button {
  grid-column: 1 / -1;
}

.ttk8sr-optional-label {
  color: var(--ttk-muted);
  display: block;
  font-size: 12px;
  font-weight: 600;
}

.ttk8sr-onboarding-conditional[hidden] {
  display: none;
}

.ttk8sr-onboarding-note {
  color: var(--ttk-muted);
  margin: 2px 0 0;
}

.ttk8sr-confirm-card p,
.ttk8sr-confirm-card strong,
.ttk8sr-request-form button,
.ttk8sr-confirm-card button {
  grid-column: 1 / -1;
}

.ttk8sr-portal label {
  display: block;
  font-weight: 700;
}

.ttk8sr-portal input,
.ttk8sr-portal select,
.ttk8sr-portal textarea {
  width: 100%;
  margin-top: 4px;
}

.ttk8sr-portal input[type="checkbox"] {
  width: auto;
  margin: 0 8px 0 0;
}

.ttk8sr-24h-time {
  max-width: 120px;
}

.ttk8sr-portal textarea {
  min-height: 80px;
}

.ttk8sr-portal button {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  background: var(--ttk-accent);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.ttk8sr-demo-banner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 18px;
  padding: 8px 10px;
  border: 2px solid #dc2626;
  border-radius: 8px;
  background: #fff7ed;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.ttk8sr-demo-summary {
  flex: 1 1 230px;
}

.ttk8sr-demo-banner h2 {
  margin: 0 0 2px;
  font-size: 15px;
}

.ttk8sr-demo-banner p {
  margin: 0;
  font-size: 12px;
}

.ttk8sr-demo-banner .ttk8sr-kicker {
  font-size: 10px;
}

.ttk8sr-demo-observation {
  position: relative;
}

.ttk8sr-demo-observation summary {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  background: #fff;
  color: #9a3412;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 10px;
}

.ttk8sr-demo-observation-form {
  display: grid;
  gap: 8px;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 20;
  width: min(360px, calc(100vw - 32px));
  border: 1px solid #fed7aa;
  border-radius: 8px;
  background: #fff;
  padding: 10px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
}

.ttk8sr-demo-observation-form textarea {
  min-height: 58px;
  background: #fff;
}

.ttk8sr-demo-stop-form button {
  min-height: 30px;
  font-size: 12px;
  padding: 4px 10px;
  background: #991b1b;
}

.ttk8sr-date-text.is-red-day {
  color: #b91c1c;
  font-weight: 800;
}

.ttk8sr-autohide-notice {
  opacity: 1;
  transition: opacity 300ms ease;
}

.ttk8sr-autohide-notice.is-hidden {
  visibility: hidden;
  opacity: 0;
}

.ttk8sr-date-picker {
  position: absolute;
  z-index: 100010;
  width: 280px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.2);
  padding: 10px;
}

.ttk8sr-date-picker[hidden] {
  display: none;
}

.ttk8sr-date-picker-head,
.ttk8sr-date-picker-weekdays,
.ttk8sr-date-picker-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.ttk8sr-date-picker-head {
  grid-template-columns: 34px 1fr 34px;
  align-items: center;
  margin-bottom: 8px;
}

.ttk8sr-date-picker-head strong {
  text-align: center;
}

.ttk8sr-date-picker button {
  min-height: 32px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: #f8fafc;
  color: #0f172a;
}

.ttk8sr-date-picker-weekdays {
  margin-bottom: 4px;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.ttk8sr-date-picker-days .is-outside {
  color: #94a3b8;
}

.ttk8sr-date-picker-days .is-selected {
  background: #0f766e;
  color: #fff;
}

.ttk8sr-front-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.45);
}

.ttk8sr-front-modal.is-visible {
  display: flex;
}

.ttk8sr-front-modal-panel {
  position: relative;
  width: min(980px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  overflow: auto;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
  padding: 22px;
}

.ttk8sr-front-modal-panel h2 {
  margin-top: 0;
}

.ttk8sr-front-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  min-height: 36px;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
}

.ttk8sr-toggle-panel {
  margin: 0 0 12px;
}

.ttk8sr-check-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ttk8sr-entry-type {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  border: 1px solid var(--ttk-line);
  border-radius: 8px;
  padding: 10px 12px;
}

.ttk8sr-entry-type legend {
  padding: 0 6px;
  font-weight: 800;
}

.ttk8sr-entry-type label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.ttk8sr-entry-type input {
  width: auto;
  margin: 0;
}

.ttk8sr-wide-field,
.ttk8sr-licensee-times {
  grid-column: 1 / -1;
}

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

.ttk8sr-licensee-times[hidden] {
  display: none !important;
}

.ttk8sr-entry-comment-wrap {
  border: 1px dashed var(--ttk-line);
  border-radius: 8px;
  padding: 10px 12px;
}

.ttk8sr-entry-comment-wrap summary {
  cursor: pointer;
  font-weight: 800;
}

.ttk8sr-entry-comment-wrap label {
  display: block;
  margin-top: 10px;
}

.ttk8sr-detail-toggle {
  cursor: pointer;
}

.ttk8sr-open-entry-row {
  cursor: pointer;
}

.ttk8sr-time-change-marker {
  color: #b91c1c;
  font-weight: 900;
}

.ttk8sr-time-table tr.ttk8sr-time-status-unconfirmed td {
  background: #fef9c3;
}

.ttk8sr-time-table tr.ttk8sr-time-status-pending_supervisor td,
.ttk8sr-time-table tr.ttk8sr-time-status-exception td {
  background: #ffedd5;
}

.ttk8sr-time-table tr.ttk8sr-time-status-returned td {
  background: #fee2e2;
}

.ttk8sr-time-table tr.ttk8sr-time-status-approved td {
  background: transparent;
  color: #111827;
}

.ttk8sr-time-table tr.ttk8sr-time-status-empty td {
  background: #fff;
  color: #94a3b8;
}

.ttk8sr-status-approved-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  font-size: 11px;
  line-height: 1;
}

.ttk8sr-day-detail-row td {
  background: #f8fafc;
}

.ttk8sr-detail-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 16px;
  margin: 0;
}

.ttk8sr-detail-list div {
  min-width: 0;
}

.ttk8sr-detail-list dt {
  color: var(--ttk-muted);
  font-size: 12px;
}

.ttk8sr-detail-list dd {
  margin: 0;
  font-weight: 700;
}

.ttk8sr-message {
  background: #dcfce7;
  color: #166534;
  border-radius: 8px;
  padding: 10px 12px;
}

.ttk8sr-error-message {
  background: #fee2e2;
  color: #991b1b;
}

.ttk8sr-return-note {
  background: #fff7ed;
  color: #7c2d12;
  border: 1px solid #fdba74;
}

.ttk8sr-portal-alerts {
  margin: 12px 0 20px;
}

.ttk8sr-portal-alerts h2 {
  margin-top: 0;
}

.ttk8sr-returned-alert {
  border: 2px solid #f97316;
  border-radius: 8px;
  background: #fff7ed;
  color: #7c2d12;
  padding: 16px;
  margin: 12px 0 18px;
}

.ttk8sr-returned-alert h2 {
  margin: 0 0 10px;
}

.ttk8sr-returned-alert h3,
.ttk8sr-request-decision-alert h3 {
  margin: 0 0 10px;
}

.ttk8sr-returned-alert ul {
  margin: 0 0 12px;
  padding-left: 20px;
}

.ttk8sr-returned-alert li span,
.ttk8sr-request-decision-alert li span {
  display: block;
  margin-top: 4px;
  font-weight: 700;
}

.ttk8sr-request-decision-alert {
  border: 1px solid #93c5fd;
  border-radius: 8px;
  background: #eff6ff;
  color: #1e3a8a;
  padding: 16px;
  margin: 12px 0 18px;
}

.ttk8sr-request-decision-alert ul {
  margin: 0 0 12px;
  padding-left: 20px;
}

.ttk8sr-note-history {
  margin-top: 14px;
}

.ttk8sr-note-history h3 {
  margin: 12px 0 8px;
  font-size: 14px;
}

.ttk8sr-note-item {
  border-left: 3px solid #94a3b8;
  padding: 8px 10px;
  margin: 0 0 8px;
  background: #f8fafc;
}

.ttk8sr-note-item p {
  margin: 4px 0 0;
}

.ttk8sr-note-late {
  border-left-color: #2563eb;
  background: #dbeafe;
}

.ttk8sr-late-reason {
  grid-column: 1 / -1;
}

.ttk8sr-shift-parts {
  grid-column: 1 / -1;
  display: flex;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--ttk-line);
  border-radius: 8px;
  padding: 10px;
}

.ttk8sr-shift-parts[hidden] {
  display: none;
}

.ttk8sr-free-multiple[hidden],
.ttk8sr-request-end-date[hidden] {
  display: none !important;
}

.ttk8sr-shift-swap-options form.is-highlighted {
  outline: 3px solid #2563eb;
  outline-offset: 3px;
}

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

.ttk8sr-balance-grid div {
  border: 1px solid var(--ttk-line);
  border-radius: 8px;
  padding: 14px;
}

.ttk8sr-balance-grid span {
  display: block;
  color: var(--ttk-muted);
}

.ttk8sr-balance-grid strong {
  display: block;
  font-size: 26px;
}

.ttk8sr-personnel-letter {
  border-left: 4px solid var(--ttk-primary);
  max-width: 820px;
  padding: 26px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.ttk8sr-guide-version {
  margin-left: 6px;
  color: var(--ttk-muted);
  font-size: 12px;
  font-weight: 400;
}

.ttk8sr-personnel-guide-content {
  color: #111827;
  font-size: 17px;
  line-height: 1.65;
  white-space: normal;
}

.ttk8sr-personnel-guide-content p,
.ttk8sr-personnel-guide-content ul,
.ttk8sr-personnel-guide-content ol,
.ttk8sr-personnel-guide-content blockquote {
  margin: 0 0 16px;
  white-space: normal;
}

.ttk8sr-personnel-guide-content h2,
.ttk8sr-personnel-guide-content h3,
.ttk8sr-personnel-guide-content h4 {
  margin: 26px 0 12px;
  line-height: 1.2;
}

.ttk8sr-personnel-guide-content hr {
  border: 0;
  border-top: 1px solid var(--ttk-line);
  margin: 24px 0;
}

.ttk8sr-text-large {
  font-size: 1.22em;
}

.ttk8sr-text-small {
  color: var(--ttk-muted);
  font-size: 0.9em;
}

.ttk8sr-indent {
  border-left: 3px solid var(--ttk-line);
  margin: 16px 0;
  padding-left: 18px;
}

.ttk8sr-guide-diff {
  display: grid;
  gap: 10px;
  margin: 16px 0 22px;
}

.ttk8sr-guide-diff div {
  border: 1px solid var(--ttk-line);
  border-radius: 8px;
  padding: 12px;
}

.ttk8sr-guide-diff strong {
  display: block;
  margin-bottom: 6px;
}

.ttk8sr-guide-diff p {
  margin: 0;
  white-space: pre-wrap;
}

.ttk8sr-letter-queue-note {
  color: var(--ttk-muted);
}

.ttk8sr-personnel-archive {
  margin-top: 18px;
}

.ttk8sr-supervisor-portal {
  max-width: 1180px;
  margin: 0 auto;
}

.ttk8sr-supervisor-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0 10px;
}

.ttk8sr-supervisor-hero h1 {
  margin: 0;
  font-size: 34px;
  letter-spacing: 0;
}

.ttk8sr-kicker,
.ttk8sr-supervisor-hero p {
  margin: 0 0 6px;
  color: var(--ttk-muted);
}

.ttk8sr-supervisor-mode {
  border: 1px solid #fed7aa;
  border-radius: 8px;
  background: #fff7ed;
  color: #9a3412;
  font-weight: 800;
  padding: 8px 10px;
}

.ttk8sr-supervisor-scope,
.ttk8sr-supervisor-inline-filter {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
  border: 1px solid var(--ttk-line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  margin: 10px 0 14px;
}

.ttk8sr-supervisor-card-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.ttk8sr-supervisor-card {
  min-height: 118px;
  border: 1px solid var(--ttk-line) !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: #0f172a !important;
  padding: 14px !important;
  text-align: left;
}

.ttk8sr-supervisor-card strong {
  display: block;
  margin: 8px 0;
  font-size: 28px;
}

.ttk8sr-supervisor-card small {
  color: var(--ttk-muted);
}

.ttk8sr-supervisor-card:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.ttk8sr-module-frame-warning {
  border: 2px solid #ef4444;
  border-radius: 8px;
  background: #fff;
  color: #991b1b;
  font-weight: 700;
  padding: 10px 12px;
  margin: 10px 0;
}

.ttk8sr-supervisor-stack {
  display: grid;
  gap: 12px;
}

.ttk8sr-supervisor-item {
  border: 1px solid var(--ttk-line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.ttk8sr-supervisor-item h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.ttk8sr-supervisor-actions {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 8px;
  align-items: end;
}

.ttk8sr-schedule-visibility-toggle {
  display: inline-flex;
  gap: 4px;
  margin: 0 0 10px;
  border: 1px solid var(--ttk-line);
  border-radius: 999px;
  background: #f8fafc;
  padding: 3px;
}

.ttk8sr-schedule-visibility-toggle button {
  min-height: 30px;
  border-radius: 999px;
  background: transparent;
  color: #334155;
  font-size: 12px;
  padding: 5px 10px;
}

.ttk8sr-schedule-visibility-toggle button.is-active {
  background: #0f766e;
  color: #fff;
}

.ttk8sr-upcoming-schedule-table tbody tr.is-day-start td {
  border-top: 3px solid #94a3b8;
}

.ttk8sr-upcoming-schedule-table tbody tr.is-own-shift {
  font-weight: 900;
}

.ttk8sr-upcoming-schedule-table tbody tr.is-own-shift td {
  background: #f0fdf4;
}

.ttk8sr-upcoming-schedule-table tbody tr.is-empty-day td {
  height: 24px;
  padding-top: 3px;
  padding-bottom: 3px;
  background: #fff;
  color: #94a3b8;
  font-weight: 600;
}

.ttk8sr-upcoming-schedule-table tbody tr.is-colleague-shift td {
  background: #fff;
}

.ttk8sr-upcoming-schedule-table {
  font-size: 13px;
}

.ttk8sr-upcoming-time {
  min-width: 46px;
}

.ttk8sr-time-stack {
  display: inline-grid;
  grid-template-rows: auto auto auto;
  align-items: center;
  justify-items: center;
  gap: 0;
  line-height: 1.05;
  font-weight: 800;
}

.ttk8sr-time-stack-dash {
  color: #64748b;
  font-weight: 700;
}

.ttk8sr-absence-chip {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #f1f5f9;
  color: #0f172a;
  font-size: 12px;
  font-weight: 900;
  padding: 2px 8px;
}

.ttk8sr-supervisor-swap-group h3 {
  margin-bottom: 10px;
}

.ttk8sr-swap-impact {
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
  padding: 10px 12px;
  margin: 0 0 12px;
}

.ttk8sr-swap-impact ul {
  margin: 6px 0 0;
  padding-left: 18px;
}

.ttk8sr-supervisor-swap-list {
  display: grid;
  gap: 10px;
}

.ttk8sr-supervisor-swap-item {
  border-top: 1px solid var(--ttk-line);
  padding-top: 10px;
}

.ttk8sr-supervisor-swap-item h4 {
  margin: 0 0 6px;
  font-size: 15px;
}

.ttk8sr-mobile-schedule-days {
  display: grid;
  gap: 14px;
}

.ttk8sr-mobile-schedule-day {
  border: 1px solid var(--ttk-line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.ttk8sr-mobile-schedule-day h3 {
  position: sticky;
  top: 0;
  z-index: 1;
  margin: 0;
  border-bottom: 1px solid var(--ttk-line);
  background: #f8fafc;
  padding: 10px 12px;
  font-size: 16px;
}

.ttk8sr-mobile-shift-open {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 54px;
  border-radius: 0 !important;
  background: #fff !important;
  color: #0f172a !important;
  padding: 10px 12px !important;
  text-align: left;
}

.ttk8sr-mobile-shift-card {
  border-bottom: 1px solid #eef2f7;
}

.ttk8sr-mobile-shift-card:last-child {
  border-bottom: 0;
}

.ttk8sr-mobile-shift-open strong {
  min-width: 82px;
  border-radius: 6px;
  background: #ecfeff;
  color: #155e75;
  padding: 6px 8px;
  text-align: center;
}

.ttk8sr-mobile-shift-card.is-readonly .ttk8sr-mobile-shift-open strong {
  background: #f1f5f9;
  color: #64748b;
}

.ttk8sr-supervisor-savebar {
  position: sticky;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--ttk-line);
  background: rgba(255, 255, 255, .96);
  padding: 12px 0 0;
  margin-top: 12px;
}

.ttk8sr-hidden-form {
  display: none;
}

.ttk8sr-supervisor-save-actions {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.ttk8sr-publish-button,
.ttk8sr-publish-button:hover {
  background: #0f172a !important;
  color: #fff !important;
}

#ttk8sr-mobile-shift-editor .ttk8sr-front-modal-panel {
  width: min(460px, 100%);
}

.ttk8sr-mobile-shift-context {
  color: var(--ttk-muted);
  font-weight: 800;
}

.ttk8sr-supervisor-portal #ttk8sr-supervisor-schedule-modal .ttk8sr-front-modal-panel {
  width: min(1780px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 18px;
}

.ttk8sr-front-schedule-shell {
  overflow: hidden;
  border: 1px solid var(--ttk-line);
  border-radius: 8px;
  background: #fff;
}

.ttk8sr-front-schedule-shell.is-schedule-draft {
  border-color: rgba(245, 158, 11, .58);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, .16), 0 0 22px rgba(245, 158, 11, .2);
}

.ttk8sr-front-schedule-shell.is-schedule-published {
  border-color: rgba(16, 185, 129, .58);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, .14), 0 0 22px rgba(16, 185, 129, .18);
}

.ttk8sr-front-schedule-shell.is-published-edit-locked:not(.is-published-edit-enabled) .ttk8sr-front-add-row-wrap,
.ttk8sr-front-schedule-shell.is-published-edit-locked:not(.is-published-edit-enabled) .ttk8sr-front-template-tools,
.ttk8sr-front-schedule-shell.is-published-edit-locked:not(.is-published-edit-enabled) .ttk8sr-front-schedule-footer-action {
  display: none;
}

.ttk8sr-front-schedule-options {
  margin: 0;
  border-bottom: 1px solid var(--ttk-line);
  padding: 8px 10px;
}

.ttk8sr-front-schedule-scroll {
  max-height: min(70vh, 760px);
  border: 0;
}

.ttk8sr-front-schedule-table {
  border-collapse: separate !important;
  border-spacing: 0;
  min-width: 1680px;
  margin: 0 !important;
}

.ttk8sr-front-schedule-table th,
.ttk8sr-front-schedule-table td {
  border-right: 1px solid var(--ttk-line);
  border-bottom: 1px solid var(--ttk-line);
  padding: 4px;
  text-align: center;
  vertical-align: middle;
}

.ttk8sr-front-schedule-table thead th {
  position: sticky;
  top: 0;
  z-index: 6;
}

.ttk8sr-front-schedule-table .sticky-name {
  position: sticky;
  left: 0;
  z-index: 7;
}

.ttk8sr-front-schedule-table thead .sticky-name {
  z-index: 8;
}

.ttk8sr-front-schedule-table .ttk8sr-name-cell {
  text-align: center;
}

.ttk8sr-front-schedule-table .ttk8sr-row-name,
.ttk8sr-front-schedule-table .ttk8sr-row-hours {
  display: block;
}

.ttk8sr-front-schedule-table .ttk8sr-row-last,
.ttk8sr-front-schedule-table .ttk8sr-row-first {
  display: block;
  max-width: 8ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ttk8sr-front-schedule-table .ttk8sr-row-hours {
  margin-top: 3px;
  color: #64748b;
  font-size: 12px;
}

.ttk8sr-front-row-menu-button {
  min-height: 54px;
  padding: 4px 6px;
  border: 0 !important;
  background: #fff !important;
  color: #0f172a !important;
  box-shadow: none !important;
  text-align: center;
}

.ttk8sr-front-schedule-table .ttk8sr-name-cell {
  background: #fff !important;
}

.ttk8sr-front-schedule-table .ttk8sr-row-name {
  color: #0f172a;
}

.ttk8sr-front-add-row-wrap {
  display: flex;
  justify-content: flex-start;
  padding: 8px 0 0 8px;
}

.ttk8sr-front-add-row-button,
.ttk8sr-front-add-row-button:hover {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-height: 28px;
  border-radius: 999px;
  background: #e2e8f0 !important;
  color: #0f172a !important;
  font-size: 19px;
  font-weight: 900;
  line-height: 1;
}

.ttk8sr-front-cell-fields {
  display: grid;
  gap: 2px;
  min-height: 58px;
  align-content: center;
}

.ttk8sr-front-cell-fields input.ttk8sr-time-input[type="text"] {
  width: 100%;
  min-height: 19px;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #0f172a;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
}

.ttk8sr-front-cell-fields .ttk8sr-cell-total {
  min-height: 14px;
  color: #0f172a;
  font-size: 11px;
  font-weight: 900;
}

.ttk8sr-front-shift-pill {
  display: none;
}

.ttk8sr-front-schedule-cell {
  cursor: pointer;
}

.ttk8sr-front-schedule-cell .ttk8sr-cell-alert,
.ttk8sr-front-schedule-cell .ttk8sr-cell-alert:hover,
.ttk8sr-front-schedule-cell .ttk8sr-cell-alert:focus {
  position: absolute;
  top: 5px;
  left: 5px;
  z-index: 4;
  display: block;
  width: 12px !important;
  min-width: 12px !important;
  max-width: 12px !important;
  height: 12px !important;
  min-height: 12px !important;
  max-height: 12px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 2px solid #fff !important;
  border-radius: 999px !important;
  background: #dc2626 !important;
  color: transparent !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .25) !important;
  font-size: 0 !important;
  line-height: 0 !important;
}

.ttk8sr-note-dot {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #dc2626;
  box-shadow: 0 0 0 2px #fff;
}

.ttk8sr-note-dot-only {
  position: static;
  width: 13px;
  height: 13px;
  box-shadow: none;
}

.ttk8sr-mobile-shift-sheet .ttk8sr-front-modal-panel {
  width: min(560px, 100%);
}

.ttk8sr-mobile-sheet-handle {
  display: none;
}

.ttk8sr-mobile-quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin: 0 0 10px;
}

.ttk8sr-mobile-quick-grid button {
  display: grid;
  gap: 2px;
  min-height: 36px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #f8fafc;
  color: #0f172a;
  font-size: 12px;
  line-height: 1.1;
  text-align: center;
}

.ttk8sr-mobile-quick-grid small {
  display: none;
  color: #64748b;
  font-size: 11px;
}

.ttk8sr-mobile-timewheel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 12px;
}

.ttk8sr-mobile-timewheel label {
  margin: 0;
  color: #475569;
  font-size: 11px;
  font-weight: 900;
  text-align: center;
}

.ttk8sr-mobile-timewheel select {
  min-height: 42px;
  margin-top: 3px;
  border-radius: 10px;
  text-align: center;
  font-size: 17px;
  font-weight: 900;
}

.ttk8sr-mobile-warning-preview,
.ttk8sr-mobile-note-preview {
  border: 1px solid #fecaca;
  border-radius: 12px;
  background: #fff7f7;
  color: #111827;
  padding: 9px 10px;
  margin: 0 0 10px;
}

.ttk8sr-mobile-warning-preview strong,
.ttk8sr-mobile-note-preview strong {
  display: block;
  margin-bottom: 4px;
  color: #b91c1c;
  font-size: 12px;
}

.ttk8sr-mobile-warning-preview p,
.ttk8sr-mobile-note-preview p {
  margin: 0;
  white-space: pre-line;
}

@media (max-width: 780px) {
  .ttk8sr-confirm-card,
  .ttk8sr-request-form,
  .ttk8sr-balance-grid,
  .ttk8sr-detail-list,
  .ttk8sr-licensee-times,
  .ttk8sr-portal-actions,
  .ttk8sr-supervisor-scope,
  .ttk8sr-supervisor-inline-filter,
  .ttk8sr-supervisor-card-grid,
  .ttk8sr-supervisor-actions {
    grid-template-columns: 1fr;
  }

  .ttk8sr-supervisor-hero {
    display: block;
  }

  .ttk8sr-supervisor-hero h1 {
    font-size: 27px;
  }

  .ttk8sr-supervisor-card {
    min-height: 92px;
  }

  .ttk8sr-front-modal {
    padding: 8px;
  }

  .ttk8sr-front-modal-panel {
    max-height: calc(100vh - 16px);
    padding: 18px 14px;
  }

  .ttk8sr-supervisor-portal #ttk8sr-supervisor-schedule-modal {
    padding: 8px;
  }

  .ttk8sr-supervisor-portal #ttk8sr-supervisor-schedule-modal .ttk8sr-front-modal-panel {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
    border-radius: 22px;
    padding: 14px;
  }

  .ttk8sr-front-schedule-shell {
    border-radius: 24px;
  }

  .ttk8sr-front-schedule-options {
    padding: 8px 10px;
  }

  .ttk8sr-front-schedule-scroll {
    max-height: calc(100vh - 230px);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  .ttk8sr-front-schedule-table {
    min-width: max-content;
  }

  .ttk8sr-front-schedule-table th,
  .ttk8sr-front-schedule-table td {
    padding: 6px;
  }

  .ttk8sr-front-schedule-table thead th {
    min-width: 62px;
    height: 46px;
    font-size: 12px;
  }

  .ttk8sr-front-schedule-table .sticky-name {
    min-width: 70px;
    max-width: 86px;
    width: 1%;
  }

  .ttk8sr-front-schedule-table .ttk8sr-name-cell {
    text-align: left;
    padding-right: 8px;
    background: #fff !important;
  }

  .ttk8sr-front-schedule-table .ttk8sr-row-name {
    color: #0f172a;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.15;
  }

  .ttk8sr-front-schedule-table .ttk8sr-row-hours {
    color: #334155;
    font-size: 12px;
    font-weight: 900;
  }

  .ttk8sr-front-schedule-cell {
    position: relative;
    height: 62px;
    min-width: 62px;
  }

  .ttk8sr-front-schedule-table th.day-sunday,
  .ttk8sr-front-schedule-table th.day-holiday,
  .ttk8sr-front-schedule-table th.day-eve,
  .ttk8sr-front-schedule-table th.day-event,
  .ttk8sr-front-schedule-table td.day-sunday,
  .ttk8sr-front-schedule-table td.day-holiday,
  .ttk8sr-front-schedule-table td.day-eve,
  .ttk8sr-front-schedule-table td.day-event {
    color: #111827;
  }

  .ttk8sr-front-schedule-cell .ttk8sr-cell-alert,
  .ttk8sr-front-schedule-cell .ttk8sr-cell-alert:hover,
  .ttk8sr-front-schedule-cell .ttk8sr-cell-alert:focus {
    position: absolute;
    top: 6px;
    left: 6px;
    z-index: 4;
    display: block;
    width: 13px !important;
    min-width: 13px !important;
    max-width: 13px !important;
    height: 13px !important;
    min-height: 13px !important;
    max-height: 13px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 2px solid #fff !important;
    border-radius: 999px !important;
    background: #dc2626 !important;
    color: transparent !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .25) !important;
    font-size: 0 !important;
    line-height: 0 !important;
  }

  .ttk8sr-front-cell-fields {
    display: none;
  }

  .ttk8sr-front-shift-pill {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 54px;
    min-height: 48px;
    border: 1px solid #166534;
    border-radius: 12px;
    background: #15803d;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.25;
    padding: 4px;
    text-align: center;
  }

  .ttk8sr-front-shift-pill strong {
    font-size: 12px;
  }

  .ttk8sr-front-empty-pill {
    color: #64748b;
  }

  .ttk8sr-front-schedule-cell.code-note .ttk8sr-front-shift-pill {
    width: 24px;
    min-height: 24px;
    border-color: transparent;
    background: transparent;
    color: #dc2626;
    padding: 0;
  }

  .ttk8sr-front-schedule-cell.code-v .ttk8sr-front-shift-pill,
  .ttk8sr-front-schedule-cell.code-x .ttk8sr-front-shift-pill {
    border-color: #bae6fd;
    background: #e0f2fe;
    color: #111827;
  }

  .ttk8sr-front-schedule-cell.code-vv .ttk8sr-front-shift-pill {
    border-color: #c4b5fd;
    background: #ede9fe;
    color: #111827;
  }

  .ttk8sr-front-schedule-cell.code-vl .ttk8sr-front-shift-pill {
    border-color: #fde68a;
    background: #fef3c7;
    color: #111827;
  }

  .ttk8sr-front-schedule-cell.code-sl .ttk8sr-front-shift-pill {
    border-color: #fecaca;
    background: #fee2e2;
    color: #111827;
  }

  .ttk8sr-front-schedule-cell.code-dash .ttk8sr-front-shift-pill {
    border-color: #e2e8f0;
    background: #f1f5f9;
    color: #111827;
  }

  .ttk8sr-front-schedule-cell.code-note .ttk8sr-note-dot-only {
    width: 14px;
    height: 14px;
  }

  #ttk8sr-mobile-shift-editor {
    align-items: flex-end;
    padding: 10px;
  }

  #ttk8sr-mobile-shift-editor .ttk8sr-front-modal-panel {
    width: 100%;
    max-height: min(58vh, 460px);
    border-radius: 24px;
    padding: 14px;
  }

  .ttk8sr-mobile-sheet-handle {
    display: block;
    width: 78px;
    height: 6px;
    border-radius: 999px;
    background: #cbd5e1;
    margin: -4px auto 14px;
  }

  .ttk8sr-mobile-shift-context {
    margin-top: -4px;
  }

  .ttk8sr-mobile-quick-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
