@import url("/assets/readiness-alert-latest.css");

/*
 * The legacy POLHIS theme contains global `header` rules with a grey top
 * border and a forced 62 px height. Keep those rules on the application
 * header, but fully isolate every header inside the readiness-alarm page.
 */
#app .shell main.readiness-latest-page {
  box-sizing: border-box;
  min-width: 0;
  min-height: calc(100vh - 62px);
  padding: 28px 32px 56px !important;
  overflow-x: hidden;
  background: #0c1830 !important;
}

#app .readiness-latest-page .readiness-latest-panel > header {
  position: static !important;
  inset: auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 11px !important;
  width: auto !important;
  height: auto !important;
  min-height: 69px !important;
  margin: 0 !important;
  padding: 15px 17px !important;
  border: 0 !important;
  border-bottom: 1px solid #2d4c6b !important;
  border-radius: 0 !important;
  color: #eef5f8 !important;
  background: #0c1830 !important;
  box-shadow: none !important;
}

#app .readiness-latest-page .readiness-latest-panel > header > div {
  display: grid;
  align-content: center;
  gap: 2px;
  min-width: 0;
  background: transparent !important;
}

#app .readiness-latest-page .readiness-latest-panel > header small {
  display: block;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.2 !important;
}

#app .readiness-latest-page .readiness-latest-panel > header h2 {
  margin: 3px 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
  line-height: 1.05 !important;
  white-space: normal;
}

#app .readiness-latest-page .readiness-latest-panel > header > button {
  flex: 0 0 32px;
  min-height: 32px !important;
  margin: 0 0 0 auto !important;
  padding: 0 !important;
}

#app .readiness-latest-page :is(.readiness-latest-hero, .readiness-latest-panel, .readiness-latest-feedback) {
  background-color: #0c1830 !important;
  background-image: none !important;
}

@media (max-width: 760px) {
  #app .shell main.readiness-latest-page {
    padding: 18px 14px 44px !important;
  }
}

/* Rich Discord preview matching the real alarm embed. */
#app .readiness-latest-page .readiness-latest-discord {
  align-items: start;
  padding: 17px;
}

#app .readiness-latest-page .readiness-latest-embed {
  position: relative;
  grid-column: 2;
  min-width: 0;
  margin-top: 2px;
  padding: 14px 15px 12px !important;
  overflow: hidden;
  border: 0 !important;
  border-left: 5px solid #d9ff22 !important;
  border-radius: 0 7px 7px 0 !important;
  color: #dcdee5;
  background: #202337 !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .075) !important;
}

#app .readiness-latest-page .readiness-latest-embed-author {
  display: block;
  margin: 0 0 9px;
  color: #b7bbc8 !important;
  font-size: 9px !important;
  font-weight: 700;
  letter-spacing: .15px;
}

#app .readiness-latest-page .readiness-latest-embed h3 {
  margin: 0;
  color: #f3f4f7;
  font: 700 17px/1.25 Inter, sans-serif;
  overflow-wrap: anywhere;
}

#app .readiness-latest-page .readiness-latest-embed h3 b {
  color: #8fc8ff;
  font: inherit;
}

#app .readiness-latest-page .readiness-latest-embed-rule {
  height: 1px;
  margin: 10px 0;
  background: #ffffff18 !important;
}

#app .readiness-latest-page .readiness-latest-embed > p {
  margin: 0 0 8px;
  color: #c6c9d2;
  font-size: 10px !important;
  line-height: 1.5 !important;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

#app .readiness-latest-page .readiness-latest-embed > p strong {
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

/* Compact Discord-style formatting toolbar for the alarm message. */
#app .readiness-latest-page .readiness-message-field {
  display: grid;
  gap: 0;
}

#app .readiness-latest-page .readiness-message-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

#app .readiness-latest-page .readiness-message-heading > span {
  color: #86a3ba;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

#app .readiness-latest-page .readiness-message-heading > small {
  color: #6687a2;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .6px;
}

#app .readiness-latest-page .readiness-format-toolbar {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 38px;
  padding: 5px 7px;
  border: 1px solid #2d4c6b;
  border-bottom: 0;
  border-radius: 7px 7px 0 0;
  background: #101f39 !important;
}

#app .readiness-latest-page .readiness-format-toolbar > span {
  align-self: stretch;
  width: 1px;
  margin: 2px 3px;
  background: #2d4c6b;
}

#app .readiness-latest-page .readiness-format-toolbar button {
  display: grid;
  width: 28px;
  height: 27px;
  place-items: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 4px;
  color: #bfd0dc;
  background: transparent;
  cursor: pointer;
}

#app .readiness-latest-page .readiness-format-toolbar button:hover,
#app .readiness-latest-page .readiness-format-toolbar button:focus-visible {
  border-color: #456b8a;
  color: #d9ff22;
  background: #142946;
  outline: 0;
}

#app .readiness-latest-page .readiness-format-toolbar button > :is(b, i, u, s) {
  color: inherit;
  font: 800 13px/1 Inter, sans-serif;
}

#app .readiness-latest-page .readiness-format-toolbar .material-symbols-outlined {
  font-size: 18px;
}

#app .readiness-latest-page .readiness-message-field textarea {
  min-height: 154px;
  border-radius: 0 0 7px 7px;
}

#app .readiness-latest-page .readiness-format-hint {
  margin-top: 6px;
  color: #6f8ca4;
  font-size: 8px;
  line-height: 1.4;
}

/* The message is its own full-width section in the Discord embed. */
#app .readiness-latest-page .readiness-latest-embed-message {
  display: grid;
  gap: 6px;
  margin: 11px 0;
  padding: 10px 11px;
  border: 1px solid #ffffff16;
  border-radius: 5px;
  background: #171a2b !important;
}

#app .readiness-latest-page .readiness-latest-embed-message > small {
  color: #a6abb9 !important;
  font-size: 7px !important;
  font-weight: 800;
  letter-spacing: .65px;
}

#app .readiness-latest-page .readiness-latest-embed-message > div {
  display: grid;
  gap: 3px;
  color: #eef0f4;
  font-size: 10px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

#app .readiness-latest-page .readiness-markdown-line {
  display: block;
  min-height: 1.5em;
}

#app .readiness-latest-page .readiness-markdown-line.empty {
  min-height: .65em;
}

#app .readiness-latest-page .readiness-markdown-line.muted {
  color: #8f94a3;
}

#app .readiness-latest-page .readiness-markdown-line.list {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 4px;
}

#app .readiness-latest-page .readiness-markdown-line.list > i {
  color: #d9ff22;
  font-style: normal;
  font-weight: 800;
}

#app .readiness-latest-page .readiness-latest-embed-message :is(strong, b) {
  color: #fff !important;
  font-weight: 800;
}

#app .readiness-latest-page .readiness-latest-embed-message :is(em, u, s, code) {
  color: inherit;
}

#app .readiness-latest-page .readiness-latest-embed-message code {
  padding: 1px 3px;
  border-radius: 3px;
  background: #0e1220;
  font: 9px/1.4 Consolas, monospace;
}

#app .readiness-latest-page .readiness-latest-embed-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 11px 0;
  background: transparent !important;
}

#app .readiness-latest-page .readiness-latest-embed-fields > div {
  display: grid;
  align-content: start;
  gap: 3px;
  min-width: 0;
  padding: 8px 9px;
  border: 1px solid #ffffff12;
  border-radius: 5px;
  background: #171a2b !important;
}

#app .readiness-latest-page .readiness-latest-embed-fields small {
  color: #989dab !important;
  font-size: 7px !important;
  font-weight: 800;
  letter-spacing: .6px;
}

#app .readiness-latest-page .readiness-latest-embed-fields b {
  color: #f2f3f5 !important;
  font: 700 9px/1.35 Inter, sans-serif !important;
  overflow-wrap: anywhere;
}

#app .readiness-latest-page .readiness-latest-embed-callout {
  display: grid;
  grid-template-columns: 3px minmax(0, 1fr);
  gap: 10px;
  margin-top: 10px;
  padding: 3px 0;
  background: transparent !important;
}

#app .readiness-latest-page .readiness-latest-embed-callout > i {
  width: 3px;
  min-height: 38px;
  border-radius: 99px;
  background: #a8b0bf;
}

#app .readiness-latest-page .readiness-latest-embed-callout > span {
  display: grid;
  gap: 3px;
}

#app .readiness-latest-page .readiness-latest-embed-callout b {
  color: #fff !important;
  font-size: 9px;
  font-weight: 800;
}

#app .readiness-latest-page .readiness-latest-embed-callout small {
  color: #aeb2bd !important;
  font-size: 8px !important;
  line-height: 1.4 !important;
}

#app .readiness-latest-page .readiness-latest-embed > footer {
  margin-top: 11px;
  padding-top: 9px;
  border-top: 1px solid #ffffff18;
  color: #8f94a3;
  font-size: 7px;
  background: transparent !important;
}

#app .readiness-latest-page .readiness-latest-embed > footer b {
  color: #c8cbd3 !important;
  font-weight: 700;
}

@media (max-width: 460px) {
  #app .readiness-latest-page .readiness-latest-embed-fields {
    grid-template-columns: 1fr;
  }
}

/* Stempeluhr und Stempelkarten – direkt im aktuellen WWW-Build */
#app .time-clock-www-page {
  grid-area: main;
  min-width: 0;
  min-height: calc(100vh - var(--header-height, 72px));
  padding: 24px 28px 40px;
  color: #f4f8ff;
  background: #09162c !important;
}

#app .time-clock-www-page *,
#app .time-clock-www-page *::before,
#app .time-clock-www-page *::after { box-sizing: border-box; }

#app .time-clock-www-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
  padding: 25px 28px;
  border: 1px solid #285078;
  border-left: 4px solid #caff00;
  border-radius: 12px;
  background: linear-gradient(135deg,#102442 0%,#0c1b34 68%,#0a1930 100%) !important;
  box-shadow: 0 20px 50px #02091355;
}

#app .time-clock-www-hero small,
#app .time-clock-www-panel header small,
#app .time-clock-www-status-copy > small,
#app .time-clock-www-profile small,
#app .time-clock-www-kpis small,
#app .time-clock-www-detail header small,
#app .time-clock-www-detail-summary small {
  display: block;
  color: #79b9ec !important;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .11em;
}

#app .time-clock-www-hero h1 {
  margin: 5px 0 4px;
  color: #fff !important;
  font-family: Oswald,Impact,sans-serif;
  font-size: clamp(27px,3vw,40px);
  line-height: 1;
}

#app .time-clock-www-hero p,
#app .time-clock-www-detail header p { margin: 0; color: #8fa8c5 !important; }

#app .time-clock-www-live {
  display: grid;
  grid-template-columns: 10px auto;
  align-items: center;
  min-width: 180px;
  padding: 13px 16px;
  border: 1px solid #315a82;
  border-radius: 9px;
  background: #08162c !important;
}

#app .time-clock-www-live > span {
  grid-row: 1/3;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #caff00;
  box-shadow: 0 0 14px #caff00aa;
}

#app .time-clock-www-live b { font-size: 21px; letter-spacing: .08em; }
#app .time-clock-www-live small { color: #7190af !important; font-size: 9px; letter-spacing: .16em; }

#app .time-clock-www-status {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
  padding: 25px;
  border: 1px solid #315577;
  border-radius: 12px;
  background: #0d203d !important;
}

#app .time-clock-www-status.active { border-color: #5f8c3b; background: linear-gradient(110deg,#10283b,#122d32) !important; }
#app .time-clock-www-status-icon { display: grid; place-items: center; width: 58px; height: 58px; border: 1px solid #3c6285; border-radius: 12px; background: #0b192f !important; color: #8fb8df; }
#app .time-clock-www-status.active .time-clock-www-status-icon { border-color: #8dbb36; color: #caff00; background: #192d26 !important; }
#app .time-clock-www-status-icon span { font-size: 29px; }
#app .time-clock-www-status-copy h2 { margin: 4px 0; color: #fff !important; font-size: 23px; }
#app .time-clock-www-status-copy p { margin: 0; color: #8ea5c0 !important; }
#app .time-clock-www-status-copy strong { display: inline-block; margin-top: 8px; color: #caff00; font-size: 20px; }

#app .time-clock-www-page button { font: inherit; }
#app .time-clock-www-status > button,
#app .time-clock-www-refresh {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid #caff00;
  border-radius: 8px;
  background: #caff00 !important;
  color: #061123 !important;
  font-weight: 900;
  cursor: pointer;
}

#app .time-clock-www-status > button.danger { border-color: #ff6b7d; background: #381c2a !important; color: #ff9aaa !important; }
#app .time-clock-www-status > button:disabled { opacity: .55; cursor: wait; }

#app .time-clock-www-profile {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  padding: 15px 18px;
  border: 1px solid #264a70;
  border-radius: 10px;
  background: #0b1b35 !important;
}

#app .time-clock-www-avatar,
#app .time-clock-www-person > span {
  display: grid;
  place-items: center;
  overflow: hidden;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border: 1px solid #3e678e;
  border-radius: 50%;
  background: #12304d !important;
  color: #caff00;
  font-size: 12px;
  font-weight: 900;
}

#app .time-clock-www-avatar img,
#app .time-clock-www-person img { width: 100%; height: 100%; object-fit: cover; }
#app .time-clock-www-profile h3 { margin: 2px 0; color: #fff !important; font-size: 17px; }
#app .time-clock-www-profile p { margin: 0; color: #8099b5 !important; font-size: 12px; }
#app .time-clock-www-badge { margin-left: auto; padding: 6px 10px; border: 1px solid #3d607f; border-radius: 99px; color: #9bb1c8; font-size: 10px; font-weight: 900; letter-spacing: .06em; }

#app .time-clock-www-kpis {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 14px;
  margin-bottom: 16px;
}

#app .time-clock-www-kpis article {
  position: relative;
  min-width: 0;
  padding: 18px 18px 17px;
  border: 1px solid #285078;
  border-top: 2px solid #4c7aa5;
  border-radius: 9px;
  background: #0d203d !important;
}

#app .time-clock-www-kpis article.active { border-top-color: #caff00; }
#app .time-clock-www-kpis .material-symbols-outlined { float: right; color: #75b7ec; }
#app .time-clock-www-kpis article.active .material-symbols-outlined { color: #caff00; }
#app .time-clock-www-kpis b { display: block; overflow: hidden; margin-top: 9px; color: #fff !important; font-size: 18px; text-overflow: ellipsis; white-space: nowrap; }

#app .time-clock-www-panel,
#app .time-clock-www-detail {
  overflow: hidden;
  border: 1px solid #285078;
  border-radius: 11px;
  background: #0b1b35 !important;
}

#app .time-clock-www-panel > header,
#app .time-clock-www-detail > header {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: auto !important;
  padding: 17px 20px !important;
  border: 0 !important;
  border-bottom: 1px solid #274a6e !important;
  background: #0e2241 !important;
  box-shadow: none !important;
}

#app .time-clock-www-panel header h2,
#app .time-clock-www-detail header h2 { margin: 3px 0 0; color: #fff !important; font-size: 19px; }
#app .time-clock-www-panel header button,
#app .time-clock-www-detail header button,
#app .time-clock-www-open {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid #315c84;
  border-radius: 7px;
  background: #0a192f !important;
  color: #bcd0e6 !important;
  font-weight: 800;
  cursor: pointer;
}

#app .time-clock-www-entry-list { display: grid; gap: 0; }
#app .time-clock-www-entry-list > article { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 15px 20px; border-bottom: 1px solid #1f405f; background: #0b1b35 !important; }
#app .time-clock-www-entry-list > article:last-child { border-bottom: 0; }
#app .time-clock-www-entry-list > article > .material-symbols-outlined { color: #72a7d2; }
#app .time-clock-www-entry-list > article.running > .material-symbols-outlined,
#app .time-clock-www-entry-list > article.running > strong { color: #caff00; }
#app .time-clock-www-entry-list b { display: block; color: #f6f9ff !important; }
#app .time-clock-www-entry-list small { display: block; margin-top: 3px; color: #7793b1 !important; }
#app .time-clock-www-entry-list strong { color: #bcd0e4; font-size: 12px; }

#app .time-clock-www-feedback { display: flex; align-items: center; gap: 9px; margin-bottom: 16px; padding: 12px 14px; border: 1px solid #914256; border-radius: 8px; background: #351b2a !important; color: #ffb2bf; }
#app .time-clock-www-feedback.success { border-color: #628d37; background: #172d25 !important; color: #d8ff92; }
#app .time-clock-www-feedback[hidden] { display: none !important; }

#app .time-clock-www-loading,
#app .time-clock-www-empty { display: grid; place-items: center; gap: 7px; min-height: 170px; padding: 24px; text-align: center; color: #8da5c0; }
#app .time-clock-www-loading .material-symbols-outlined,
#app .time-clock-www-empty .material-symbols-outlined { color: #77add8; font-size: 30px; }
#app .time-clock-www-loading.error .material-symbols-outlined { color: #ff7186; }
#app .time-clock-www-loading button { min-height: 36px; padding: 0 14px; border: 1px solid #456f95; border-radius: 7px; background: #102846 !important; color: #fff !important; cursor: pointer; }
#app .time-clock-www-empty b { color: #e9f2fc !important; }
#app .time-clock-www-empty p { margin: 0; }

#app .time-clock-www-toolbar { flex-wrap: wrap; }
#app .time-clock-www-toolbar label { display: flex; align-items: center; gap: 8px; min-width: min(330px,100%); min-height: 40px; padding: 0 12px; border: 1px solid #31587f; border-radius: 7px; background: #08172d !important; }
#app .time-clock-www-toolbar label span { color: #7da9d2; }
#app .time-clock-www-toolbar input { width: 100%; border: 0; outline: 0; background: transparent !important; color: #fff !important; }
#app .time-clock-www-toolbar select { min-height: 40px; padding: 0 34px 0 12px; border: 1px solid #31587f; border-radius: 7px; background: #08172d !important; color: #d9e7f7 !important; }

#app .time-clock-www-table-wrap { overflow: auto; }
#app .time-clock-www-table-wrap table { width: 100%; border-collapse: collapse; }
#app .time-clock-www-table-wrap th { padding: 11px 14px; border-bottom: 1px solid #274a6d; background: #09182e !important; color: #6f91b4 !important; font-size: 10px; letter-spacing: .08em; text-align: left; white-space: nowrap; }
#app .time-clock-www-table-wrap td { padding: 12px 14px; border-bottom: 1px solid #1f405f; color: #bfd0e3; vertical-align: middle; }
#app .time-clock-www-table-wrap tr.active td { background: #0d2538 !important; }
#app .time-clock-www-table-wrap td > b { color: #f2f7fd !important; font-size: 12px; white-space: nowrap; }
#app .time-clock-www-table-wrap td > small { display: block; margin-top: 3px; color: #7593b1 !important; }
#app .time-clock-www-person { display: flex; align-items: center; gap: 11px; width: 100%; padding: 0; border: 0; background: transparent !important; color: inherit; text-align: left; cursor: pointer; }
#app .time-clock-www-person > span { width: 37px; height: 37px; }
#app .time-clock-www-person b { display: block; color: #fff !important; }
#app .time-clock-www-person small { display: block; margin-top: 3px; color: #7392b1 !important; }
#app .time-clock-www-state { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border: 1px solid #365876; border-radius: 99px; color: #9bb0c6; font-size: 9px; font-weight: 900; white-space: nowrap; }
#app .time-clock-www-state i { width: 6px; height: 6px; border-radius: 50%; background: #607e9a; }
#app .time-clock-www-state.active { border-color: #658c39; color: #d4ff7f; }
#app .time-clock-www-state.active i { background: #caff00; box-shadow: 0 0 8px #caff00aa; }
#app .time-clock-www-running { color: #caff00 !important; }

#app .time-clock-www-detail { margin-top: 16px; }
#app .time-clock-www-detail[hidden] { display: none !important; }
#app .time-clock-www-detail-summary { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1px; border-bottom: 1px solid #274a6d; background: #274a6d !important; }
#app .time-clock-www-detail-summary article { min-width: 0; padding: 15px 18px; background: #0b1b35 !important; }
#app .time-clock-www-detail-summary b { display: block; margin-top: 6px; color: #fff !important; }
#app .time-clock-www-detail-summary span { display: block; margin-top: 3px; color: #caff00; font-size: 12px; }

@media (max-width: 1050px) {
  #app .time-clock-www-kpis,
  #app .time-clock-www-detail-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 720px) {
  #app .time-clock-www-page { padding: 16px 12px 30px; }
  #app .time-clock-www-hero,
  #app .time-clock-www-status { grid-template-columns: 1fr; flex-direction: column; align-items: stretch; }
  #app .time-clock-www-live { width: 100%; }
  #app .time-clock-www-status > button { width: 100%; }
  #app .time-clock-www-kpis,
  #app .time-clock-www-detail-summary { grid-template-columns: 1fr; }
  #app .time-clock-www-toolbar label { order: 3; width: 100%; }
}

/*
 * Stable v5: these overrides are deliberately limited to the two time-clock
 * routes. No global POLHIS panel, table, page or typography selector belongs
 * in this block.
 */
#app .time-clock-www-page {
  --time-clock-navy: #0c1830;
  --time-clock-navy-deep: #081326;
  --time-clock-line: #2b4762;
  --time-clock-line-strong: #3b5b76;
  --time-clock-neon: #d9ff22;
  --time-clock-muted: #91a4b7;
  background: var(--time-clock-navy) !important;
}

#app .time-clock-www-page :is(h1, h2, h3, b, strong, button) {
  font-family: Inter, Arial, sans-serif !important;
  font-weight: 650 !important;
}

#app .time-clock-www-hero,
#app .time-clock-www-status,
#app .time-clock-www-status.active,
#app .time-clock-www-profile,
#app .time-clock-www-kpis article,
#app .time-clock-www-panel,
#app .time-clock-www-panel > header,
#app .time-clock-www-entry-list > article,
#app .time-clock-www-table-wrap :is(table, thead, tbody, tr, th, td),
#app .time-clock-www-detail-summary,
#app .time-clock-www-detail-summary article {
  background: var(--time-clock-navy) !important;
  background-image: none !important;
}

#app .time-clock-www-hero,
#app .time-clock-www-status,
#app .time-clock-www-profile,
#app .time-clock-www-kpis article,
#app .time-clock-www-panel {
  border-color: var(--time-clock-line) !important;
  box-shadow: none !important;
}

#app .time-clock-www-hero {
  padding: 20px 22px;
  border-left-color: var(--time-clock-neon) !important;
}

#app .time-clock-www-hero h1 {
  font-size: clamp(25px, 2vw, 31px) !important;
  line-height: 1.12 !important;
}

#app .time-clock-www-status-copy h2 {
  font-size: 19px !important;
}

#app .time-clock-www-profile h3,
#app .time-clock-www-panel header h2,
#app .time-clock-www-detail h2 {
  font-size: 16px !important;
}

#app .time-clock-www-kpis b {
  font-size: 16px !important;
}

#app .time-clock-www-hero small,
#app .time-clock-www-panel header small,
#app .time-clock-www-status-copy > small,
#app .time-clock-www-profile small,
#app .time-clock-www-kpis small,
#app .time-clock-www-detail small,
#app .time-clock-www-table-wrap th {
  color: var(--time-clock-neon) !important;
  font-size: 9px !important;
  font-weight: 650 !important;
}

#app .time-clock-www-page :is(.time-clock-www-status-icon, .time-clock-www-avatar, .time-clock-www-person > span, .time-clock-www-live, .time-clock-www-toolbar label, .time-clock-www-toolbar select, .time-clock-www-open) {
  border-color: var(--time-clock-line) !important;
  background: var(--time-clock-navy-deep) !important;
}

#app .time-clock-www-page :is(.time-clock-www-status-icon, .time-clock-www-kpis .material-symbols-outlined, .time-clock-www-entry-list .material-symbols-outlined, .time-clock-www-toolbar .material-symbols-outlined) {
  color: var(--time-clock-neon) !important;
}

#app .time-clock-www-status > button:not(.danger),
#app .time-clock-www-refresh {
  min-height: 40px;
  border-color: var(--time-clock-neon) !important;
  color: var(--time-clock-navy-deep) !important;
  background: var(--time-clock-neon) !important;
}

#app .time-clock-www-status > button.danger {
  background: var(--time-clock-navy-deep) !important;
}

body.polhis-dialog-open {
  overflow: hidden;
}

#app .time-clock-www-detail {
  position: fixed !important;
  inset: 0 !important;
  z-index: 3000;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  margin: 0 !important;
  padding: 24px;
  overflow: auto;
  border: 0 !important;
  border-radius: 0 !important;
  background: rgba(3, 10, 23, .78) !important;
  backdrop-filter: blur(7px);
}

#app .time-clock-www-detail[hidden] {
  display: none !important;
}

#app .time-clock-www-detail-dialog {
  width: min(860px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border: 1px solid var(--time-clock-line-strong);
  border-top: 3px solid var(--time-clock-neon);
  border-radius: 12px;
  background: var(--time-clock-navy) !important;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .48);
}

#app .time-clock-www-detail-dialog > header {
  position: sticky !important;
  top: 0;
  z-index: 2;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: auto !important;
  padding: 17px 20px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--time-clock-line) !important;
  background: var(--time-clock-navy) !important;
}

#app .time-clock-www-detail-dialog > header p {
  margin: 3px 0 0;
  color: var(--time-clock-muted) !important;
}

#app .time-clock-www-detail-dialog > header button,
#app .time-clock-www-detail-dialog .time-clock-www-loading button {
  display: inline-grid;
  min-width: 38px;
  min-height: 38px;
  place-items: center;
  border: 1px solid var(--time-clock-neon) !important;
  border-radius: 7px;
  color: var(--time-clock-neon) !important;
  background: var(--time-clock-navy-deep) !important;
  cursor: pointer;
}

#app .time-clock-www-detail-dialog .time-clock-www-entry-list {
  max-height: min(46vh, 520px);
  overflow: auto;
}

#app .time-clock-www-detail-dialog .time-clock-www-entry-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

#app .time-clock-www-detail-dialog .time-clock-www-entry-delete {
  display: inline-grid;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  border: 1px solid #a8495c !important;
  border-radius: 7px;
  background: #321826 !important;
  color: #ff8294 !important;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}

#app .time-clock-www-detail-dialog .time-clock-www-entry-delete:hover {
  border-color: #ff7086 !important;
  background: #4a1d2d !important;
  transform: translateY(-1px);
}

#app .time-clock-www-detail-dialog .time-clock-www-entry-delete:disabled {
  opacity: .5;
  cursor: wait;
  transform: none;
}

#app .time-clock-www-detail-dialog .time-clock-www-entry-delete .material-symbols-outlined {
  font-size: 19px;
}

@media (max-width: 720px) {
  #app .time-clock-www-detail { padding: 10px; }
  #app .time-clock-www-detail-dialog { max-height: calc(100vh - 20px); }
}
