:root {
  color-scheme: dark;
  --bg: #0b0f0e;
  --panel: rgba(19, 24, 22, 0.9);
  --ink: #ecf0eb;
  --muted: #8d9790;
  --line: rgba(236, 240, 235, 0.14);
  --line-strong: rgba(236, 240, 235, 0.3);
  --accent: #70c5a8;
  --accent-soft: rgba(14, 138, 106, 0.22);
  --amber: #c58a2d;
  --amber-soft: rgba(197, 138, 45, 0.18);
  --red: #b84a3a;
  --red-soft: rgba(184, 74, 58, 0.18);
  --blue: #406f8f;
  --blue-soft: rgba(64, 111, 143, 0.18);
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 82% 8%, rgba(112, 197, 168, 0.16), transparent 29rem),
    linear-gradient(135deg, #080a09 0%, #0d1210 58%, #151916 100%);
  color: var(--ink);
  font-family: var(--font);
}

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

.timesheet-shell {
  max-width: 1220px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 30px clamp(16px, 3vw, 38px) 44px;
}

.page-head {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  margin-bottom: 24px;
}

.page-head img {
  display: block;
  width: 100%;
  height: auto;
}

.eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 8px;
  font-size: clamp(40px, 5.4vw, 76px);
  font-weight: 520;
  line-height: 0.96;
}

h2 {
  margin-bottom: 0;
  font-size: 24px;
  font-weight: 560;
}

.page-head p:not(.eyebrow),
.entry-head p:not(.eyebrow) {
  margin-bottom: 0;
  color: #b8c0ba;
  font-size: 16px;
}

.mobile-title {
  display: none;
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 18px;
}

.status-card,
.side-panel,
.entry-panel,
.approval-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
}

.status-card {
  min-height: 88px;
  padding: 14px;
}

.status-card span,
.status-card em,
.employee-card span,
.employee-card em,
label span,
.total-box span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.status-card strong,
.employee-card strong,
.total-box strong {
  display: block;
  margin-top: 7px;
  font-size: 19px;
  font-weight: 560;
}

.date-card strong {
  margin-top: 9px;
  font-size: 36px;
  line-height: 1;
  letter-spacing: 0;
  text-align: left;
}

.date-card b {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 24px;
  font-weight: 560;
  line-height: 1;
  letter-spacing: 0;
  text-align: left;
}

.date-card span,
.date-card em {
  text-align: left;
}

.total-card strong {
  margin-top: 10px;
  font-size: 48px;
  line-height: 0.92;
  letter-spacing: 0;
  text-align: right;
}

.total-card span,
.total-card em {
  text-align: right;
}

.total-card.negative strong {
  color: #ff9b8d;
}

.total-card.neutral strong {
  color: #9fc7ff;
}

.total-card.positive strong {
  color: var(--accent);
}

.status-card em,
.employee-card em {
  margin-top: 6px;
  font-style: normal;
}

.cabinet-card {
  display: grid;
  align-content: center;
  gap: 8px;
  text-align: center;
}

.cabinet-button {
  width: 100%;
  min-height: 38px;
  margin-top: 2px;
  border: 0;
  border-radius: 0;
  color: var(--ink);
  background: transparent;
  font-size: 28px;
  font-weight: 780;
  letter-spacing: 0;
  text-align: center;
  cursor: pointer;
}

.cabinet-button:hover {
  color: var(--accent);
  background: transparent;
}

.status-card-list {
  display: grid;
  gap: 4px;
  margin-top: 8px;
  max-height: 64px;
  overflow: auto;
}

.status-card-list span {
  display: block;
  min-height: 22px;
  padding: 4px 6px;
  border: 1px solid rgba(236, 240, 235, 0.11);
  border-radius: 3px;
  color: #dce3de;
  background: rgba(255, 255, 255, 0.026);
  font-size: 12px;
  line-height: 1.12;
}

.status-card-list span:only-child {
  max-width: 100%;
}

.status-card-list i,
.status-card-list b {
  display: block;
  font-style: normal;
}

.status-card-list i {
  color: #dce3de;
}

.status-card-list b {
  margin-top: 2px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
}

.employee-card select {
  width: 100%;
  min-height: 48px;
  margin-top: 8px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--ink);
  background: rgba(6, 10, 9, 0.44);
  font-weight: 700;
}

.pin-button {
  width: 100%;
  min-height: 42px;
  margin-top: 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 52%, white 8%);
  border-radius: 4px;
  color: var(--ink);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  font-weight: 700;
  cursor: pointer;
}

.pin-button.verified {
  border-color: color-mix(in srgb, var(--accent) 78%, white 10%);
  background: color-mix(in srgb, var(--accent) 28%, transparent);
}

.status-card.active,
.cabinet-card {
  border-color: color-mix(in srgb, var(--accent) 55%, white 8%);
  background: linear-gradient(180deg, var(--accent-soft), rgba(255, 255, 255, 0.02));
}

.status-card.warn {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.status-card.submitted {
  border-color: color-mix(in srgb, var(--blue) 58%, white 8%);
  background: linear-gradient(180deg, var(--blue-soft), rgba(255, 255, 255, 0.02));
}

.status-card.info-board-card {
  border-color: color-mix(in srgb, var(--accent) 38%, rgba(255, 255, 255, 0.08));
  background:
    linear-gradient(145deg, rgba(47, 118, 96, 0.18), rgba(15, 19, 18, 0.76)),
    var(--panel);
}

.status-card.info-board-card.quote-mode {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.info-board-list span {
  border-color: transparent;
  background: transparent;
}

.info-board-list b {
  color: #f1f5ef;
}

.info-board-card .status-card-list {
  margin-top: 0;
  max-height: 82px;
}

.info-board-card.quote-mode .status-card-list {
  width: 100%;
  max-height: none;
  overflow: visible;
}

.info-board-list .quote-item {
  padding: 0;
}

.info-board-card.quote-mode .quote-item {
  display: block;
  width: min(100%, 260px);
  margin: 0 auto;
  text-align: center;
}

.info-board-list .quote-item b {
  color: #eef3ef;
  font-size: 13px;
  line-height: 1.24;
}

.info-board-list .quote-item i {
  margin-top: 6px;
  color: var(--accent);
  font-size: 11px;
  text-align: right;
}

.layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.side-panel,
.entry-panel {
  padding: 20px;
}

.employee-card,
.period-card,
.calendar-card,
.legend-card {
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.025);
}

.period-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.calendar-grid button,
.ghost-button,
.main-button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.025);
  cursor: pointer;
}

.calendar-grid button.future-locked {
  opacity: 0.42;
  cursor: not-allowed;
}

.ghost-button:disabled,
.main-button:disabled {
  opacity: 0.46;
  cursor: not-allowed;
}

.period-card select {
  min-height: 42px;
  font-weight: 700;
}

.month-head,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

.month-head {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.month-head span:nth-last-child(-n + 2) {
  color: #c9b0a9;
}

.calendar-grid button {
  position: relative;
  aspect-ratio: 1;
  min-height: 38px;
  border-color: rgba(236, 240, 235, 0.18);
  border-radius: 3px;
  color: #eef3ee;
  background: #141b18;
  font-weight: 700;
  transition: border-color 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
}

.calendar-grid button.has-entry::after,
.calendar-grid button.has-birthday::before {
  content: "";
  position: absolute;
  bottom: 4px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.calendar-grid button.has-entry::after {
  right: 4px;
  background: #66a4d0;
}

.calendar-grid button.has-birthday::before {
  left: 4px;
  background: var(--accent);
}

.calendar-grid button.preholiday {
  color: #fff0c7;
  border-color: #c89138;
  background:
    linear-gradient(135deg, transparent 0 62%, rgba(236, 179, 74, 0.42) 62% 100%),
    #342a19;
}

.calendar-grid button.official-off {
  color: #fff0ec;
  border-color: #c95d4d;
  background: #642b25;
}

.calendar-grid button.weekend {
  color: #e3e9e4;
  border-color: #4d5a53;
  background: #26312c;
}

.calendar-grid button.selected {
  border-color: color-mix(in srgb, var(--accent) 86%, white 8%);
  box-shadow:
    inset 0 0 0 2px color-mix(in srgb, var(--accent) 62%, transparent),
    0 0 0 1px rgba(112, 197, 168, 0.18);
}

.legend-card {
  display: grid;
  gap: 8px;
}

.legend-card span {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #c8cec8;
  font-size: 13px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot.entry { background: var(--blue); }
.dot.birthday { background: var(--accent); }
.dot.short { background: #f1c579; }
.dot.official { background: var(--red); }
.dot.weekend { background: #8d9790; }

.calendar-note {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: #c8cec8;
  font-size: 12px;
  line-height: 1.35;
}

.birthday-greeting {
  margin-top: 10px;
  padding: 10px 11px;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, white 8%);
  border-radius: 4px;
  color: #d8efe6;
  background: color-mix(in srgb, var(--accent) 13%, transparent);
  font-size: 12px;
  line-height: 1.4;
}

.entry-head {
  margin-bottom: 16px;
}

.entry-form {
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 34%, white 8%);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(112, 197, 168, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.035);
}

.field-grid,
.time-grid {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.field-grid.two {
  grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.65fr);
}

.field-grid.work-row {
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr) minmax(0, 1.1fr);
}

.field-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

label {
  min-width: 0;
}

label span,
.total-box span {
  margin-bottom: 6px;
}

.field-hint {
  display: block;
  min-height: 16px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.field-hint.warn {
  color: #f1c579;
}

select,
input,
textarea,
.total-box {
  width: 100%;
  min-height: 50px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--ink);
  background: rgba(6, 10, 9, 0.44);
}

select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #9ca69f 50%), linear-gradient(135deg, #9ca69f 50%, transparent 50%);
  background-position: calc(100% - 18px) 21px, calc(100% - 12px) 21px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

input {
  font-weight: 700;
}

.time-input-hidden {
  display: none;
}

.time-picker {
  position: relative;
  width: 100%;
}

.time-trigger {
  position: relative;
  width: 100%;
  min-height: 50px;
  padding: 0 42px 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--ink);
  background: rgba(6, 10, 9, 0.44);
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.time-trigger::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 15px;
  height: 15px;
  border: 2px solid #dce3de;
  border-radius: 50%;
  transform: translateY(-50%);
}

.time-menu {
  position: absolute;
  z-index: 24;
  top: calc(100% + 6px);
  left: var(--time-menu-shift, 0);
  display: none;
  width: var(--time-menu-width, min(252px, calc(100vw - 40px)));
  max-height: 260px;
  padding: 8px;
  border: 1px solid color-mix(in srgb, var(--accent) 34%, white 8%);
  border-radius: 4px;
  background: #121815;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.36);
}

.time-picker.open .time-menu {
  display: grid;
  grid-template-columns: minmax(124px, 1.12fr) minmax(76px, 0.88fr);
  gap: 8px;
  align-items: stretch;
}

.time-reset-option {
  grid-column: 1 / -1;
  min-height: 34px;
  color: #f3faf7;
  border-color: color-mix(in srgb, var(--accent) 58%, white 8%);
  background: color-mix(in srgb, var(--accent) 18%, transparent);
}

.break-picker.open .time-menu {
  display: grid;
  grid-template-columns: 1fr;
  width: var(--time-menu-width, min(250px, calc(100vw - 40px)));
  max-height: none;
  padding: 7px;
  background: #16201d;
}

.time-group {
  display: grid;
  grid-template-rows: auto var(--time-wheel-height, 138px);
  gap: 6px;
  min-width: 0;
}

.time-group strong {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.time-options {
  display: grid;
  gap: 6px;
}

.hour-options {
  position: relative;
  display: block;
  height: var(--time-wheel-height, 138px);
  overflow-y: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(18, 24, 21, 0.94), rgba(18, 24, 21, 0.2) 36%, rgba(18, 24, 21, 0.2) 64%, rgba(18, 24, 21, 0.94)),
    rgba(255, 255, 255, 0.018);
  overscroll-behavior: contain;
  scroll-snap-type: none;
  scrollbar-width: none;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  contain: content;
}

.hour-options::-webkit-scrollbar {
  display: none;
}

.hour-options::after {
  content: "";
  pointer-events: none;
  position: sticky;
  z-index: 1;
  top: 48px;
  display: block;
  height: 44px;
  margin-top: -44px;
  border-top: 1px solid color-mix(in srgb, var(--accent) 55%, white 8%);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 55%, white 8%);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}

.minute-options {
  grid-template-columns: 1fr;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  height: var(--time-wheel-height, 138px);
  align-content: stretch;
}

.time-option {
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: #dce3de;
  background: rgba(255, 255, 255, 0.025);
  font-weight: 700;
  cursor: pointer;
}

.time-menu .time-reset-option {
  min-height: 34px;
  padding: 0 12px;
}

.minute-options .time-option {
  font-size: 13px;
}

.minute-options .reset-option {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.018);
}

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

.break-option {
  min-height: 42px;
  padding: 0 8px;
  border-color: color-mix(in srgb, var(--line-strong) 84%, white 6%);
  border-radius: 4px;
  color: #edf2ef;
  background: rgba(255, 255, 255, 0.034);
  font-size: 14px;
  text-align: center;
}

.break-option-wide {
  grid-column: 1 / -1;
  min-height: 34px;
  color: #f3faf7;
  border-color: color-mix(in srgb, var(--accent) 58%, white 8%);
  background: color-mix(in srgb, var(--accent) 18%, transparent);
}

.break-option-reset {
  color: #f3faf7;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  border-color: color-mix(in srgb, var(--accent) 58%, white 8%);
}

.hour-options .time-option {
  display: block;
  width: calc(100% - 16px);
  min-height: 34px;
  margin: 0 8px 5px;
  font-size: 15px;
  opacity: 0.62;
  transform: scale(0.92);
  transform-origin: center center;
  transition: transform 90ms ease, opacity 90ms ease, background-color 90ms ease;
}

.hour-options .time-option:last-child {
  margin-bottom: 0;
}

.hour-options .time-option.selected {
  box-shadow: none;
}

.hour-options .time-option.drum-center {
  position: relative;
  z-index: 2;
  font-size: 17px;
  opacity: 1;
  transform: scale(1.08);
  color: var(--accent);
  background: transparent;
}

.hour-options .time-option.drum-near {
  opacity: 0.78;
  transform: scale(0.98);
}

.time-option:hover,
.time-option.selected {
  color: var(--ink);
  border-color: color-mix(in srgb, var(--accent) 58%, white 8%);
  background: color-mix(in srgb, var(--accent) 18%, transparent);
}

textarea {
  min-height: 42px;
  padding: 9px 13px;
  resize: vertical;
}

.comment-field {
  display: block;
  width: min(100%, 380px);
}

.total-box {
  display: grid;
  align-content: center;
}

.total-box strong {
  color: var(--accent);
  font-size: 23px;
}

.form-message {
  display: none;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.ghost-button,
.main-button {
  padding: 0 16px;
}

.main-button {
  border-color: color-mix(in srgb, var(--accent) 70%, white 10%);
  background: color-mix(in srgb, var(--accent) 22%, transparent);
}

.approval-card {
  margin-top: 16px;
  min-height: var(--approval-min-height, 330px);
  padding: 18px;
}

.approval-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.approval-head h2 {
  margin-bottom: 0;
}

.chat-open-button {
  min-height: 34px;
  padding: 0 14px;
}

.entry-review {
  display: grid;
  gap: 6px;
  margin-top: 14px;
}

.entry-review-head,
.entry-review-item {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.025);
}

.entry-review-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  min-height: 34px;
  padding: 6px 10px;
  border-color: color-mix(in srgb, var(--accent) 42%, white 8%);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}

.entry-review-head span,
.entry-review-main span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.entry-review-head strong {
  color: var(--accent);
  font-size: 16px;
}

.entry-review-head em {
  color: #dce3de;
  font-size: 12px;
  font-style: normal;
}

.entry-review-list {
  display: grid;
  align-content: start;
  gap: 6px;
  min-height: var(--entry-review-min-height, 238px);
  overflow: visible;
  padding-right: 2px;
}

.entry-review-empty {
  min-height: 54px;
  display: grid;
  align-items: center;
  padding: 10px 12px;
  border: 1px dashed var(--line);
  border-radius: 4px;
  color: var(--muted);
  font-size: 13px;
}

.entry-review-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px 30px;
  gap: 6px;
  align-items: center;
  min-height: 44px;
  padding: 7px;
}

.entry-review-main {
  min-width: 0;
}

.entry-review-summary {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 760;
}

.entry-review-summary-text,
.entry-review-meta-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.entry-review-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  min-width: 0;
}

.entry-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 21px;
  width: fit-content;
  padding: 2px 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 850;
  font-style: normal;
  line-height: 1;
  white-space: nowrap;
}

.entry-status-pill.submitted {
  color: #9fc7ff;
  border-color: rgba(96, 165, 250, 0.32);
  background: rgba(96, 165, 250, 0.12);
}

.entry-status-pill.approved {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 38%, white 4%);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
}

.entry-status-pill.returned {
  color: #ffd28a;
  border-color: rgba(229, 161, 60, 0.36);
  background: rgba(229, 161, 60, 0.12);
}

.entry-status-pill.rejected {
  color: #ffd6ce;
  border-color: rgba(201, 93, 77, 0.42);
  background: rgba(201, 93, 77, 0.14);
}

.entry-status-pill.open {
  color: #dce3de;
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.026);
}

.time-diff {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 20px;
  width: fit-content;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 850;
}

.time-diff.positive {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
}

.time-diff.negative {
  color: #ffd6ce;
  background: rgba(201, 93, 77, 0.16);
}

.time-diff.neutral {
  color: #cbd7d0;
  background: rgba(255, 255, 255, 0.055);
}

.entry-action-btn {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: #cbd7d0;
  background: rgba(255, 255, 255, 0.032);
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.entry-action-btn:hover {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 42%, white 8%);
  background: color-mix(in srgb, var(--accent) 9%, transparent);
}

.entry-action-btn.danger:hover {
  border-color: rgba(201, 93, 77, 0.48);
  color: #ffd6ce;
  background: rgba(201, 93, 77, 0.13);
}

.entry-action-lock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, white 6%);
  border-radius: 3px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  font-size: 14px;
  font-weight: 900;
}

.pin-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(3, 6, 5, 0.72);
  backdrop-filter: blur(10px);
}

.pin-modal[hidden] {
  display: none;
}

.pin-dialog {
  position: relative;
  width: min(100%, 360px);
  padding: 22px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line));
  border-radius: 6px;
  background: rgba(15, 21, 18, 0.98);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

.pin-dialog span,
.pin-dialog em {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.pin-dialog strong {
  display: block;
  margin-top: 6px;
  margin-bottom: 14px;
  font-size: 24px;
  line-height: 1.12;
}

.pin-dialog input {
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.035);
  text-align: center;
  font-size: 28px;
  font-weight: 760;
  letter-spacing: 0.28em;
}

.pin-dialog em {
  min-height: 18px;
  margin-top: 10px;
  margin-bottom: 14px;
}

.pin-dialog em.error {
  color: #ffb1a6;
}

.pin-dialog .main-button {
  width: 100%;
}

.pin-passkey-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 10px;
}

.pin-passkey-actions .ghost-button {
  width: 100%;
}

.pin-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.03);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.entry-action-lock.muted {
  visibility: hidden;
}

.entry-review-item p {
  margin: 3px 0 0;
  color: #cbd7d0;
  font-size: 11px;
  font-weight: 650;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.entry-review-item p.approval-decision-meta {
  color: var(--muted);
  font-weight: 600;
}

.entry-review-item p.approval-decision-comment {
  padding: 6px 8px;
  border-left: 2px solid color-mix(in srgb, var(--accent) 56%, white 8%);
  color: #dce3de;
  background: rgba(255, 255, 255, 0.035);
}

.history-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.history-item {
  display: grid;
  grid-template-columns: minmax(120px, 0.34fr) minmax(0, 1fr);
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.025);
}

.history-item strong {
  display: block;
  font-size: 14px;
  font-weight: 650;
}

.history-item span,
.history-item em {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.native-select-hidden {
  display: none;
}

.custom-select {
  position: relative;
  width: 100%;
  min-width: 0;
}

.custom-select-trigger {
  position: relative;
  width: 100%;
  min-height: 50px;
  padding: 0 34px 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--ink);
  background: rgba(6, 10, 9, 0.44);
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.employee-card .custom-select {
  margin-top: 8px;
}

.custom-select-trigger::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 2px solid #9ca69f;
  border-bottom: 2px solid #9ca69f;
  transform: translateY(-65%) rotate(45deg);
}

.custom-select-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  left: var(--menu-shift, 0);
  display: none;
  width: var(--menu-width, 100%);
  max-height: 300px;
  overflow: auto;
  padding: 8px;
  border: 1px solid color-mix(in srgb, var(--accent) 34%, white 8%);
  border-radius: 4px;
  background: #121815;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.36);
}

.custom-select.open .custom-select-menu {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(74px, 1fr));
  gap: 6px;
}

.custom-select.tile-wide.open .custom-select-menu {
  grid-template-columns: repeat(auto-fit, minmax(138px, 1fr));
}

.custom-select.tile-compact.open .custom-select-menu {
  grid-template-columns: repeat(auto-fit, minmax(74px, 1fr));
}

.custom-select[data-select-id="project"].tile-wide.open .custom-select-menu,
.custom-select[data-select-id="tariff"].tile-compact.open .custom-select-menu,
.custom-select[data-select-id="workType"].tile-compact.open .custom-select-menu,
.custom-select[data-select-id="dayStatus"].tile-compact.open .custom-select-menu {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.custom-select[data-select-id="project"] .custom-option:first-child,
.custom-select[data-select-id="code1"] .custom-option:first-child,
.custom-select[data-select-id="code2"] .custom-option:first-child,
.custom-select[data-select-id="code3"] .custom-option:first-child,
.custom-select[data-select-id="tariff"] .custom-option:first-child,
.custom-select[data-select-id="workType"] .custom-option:first-child,
.custom-select[data-select-id="dayStatus"] .custom-option:first-child {
  grid-column: 1 / -1;
  min-height: 34px;
  color: #f3faf7;
  border-color: color-mix(in srgb, var(--accent) 58%, white 8%);
  background: color-mix(in srgb, var(--accent) 18%, transparent);
}

.custom-select[data-select-id="dayStatus"] .custom-option {
  min-height: 42px;
  padding-inline: 8px;
}

.custom-select[data-select-id="code1"].tile-compact.open .custom-select-menu,
.custom-select[data-select-id="code2"].tile-compact.open .custom-select-menu,
.custom-select[data-select-id="code3"].tile-compact.open .custom-select-menu {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.custom-option {
  display: grid;
  align-content: center;
  min-height: 42px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: #dce3de;
  background: rgba(255, 255, 255, 0.025);
  text-align: center;
  font-weight: 700;
  line-height: 1.15;
  cursor: pointer;
}

.custom-option:hover,
.custom-option.selected {
  color: var(--ink);
  border-color: color-mix(in srgb, var(--accent) 58%, white 8%);
  background: color-mix(in srgb, var(--accent) 18%, transparent);
}

.custom-option.selected {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.custom-select.tile-wide .custom-option {
  justify-content: center;
  text-align: left;
}

@media (hover: hover) {
  button:hover,
  select:hover,
  input:hover,
  textarea:hover {
    border-color: color-mix(in srgb, var(--accent) 62%, white 10%);
  }
}

@media (max-width: 920px) {
  .page-head,
  .layout,
  .status-strip,
  .field-grid.two,
  .field-grid.work-row,
  .field-grid.three,
  .time-grid {
    grid-template-columns: 1fr;
  }

  .entry-review-item {
    grid-template-columns: 1fr;
  }

  .approval-card {
    min-height: 260px;
  }

  .entry-review-list {
    min-height: 168px;
  }

  .page-head img {
    width: 190px;
  }
}

@media (max-width: 560px) {
  .timesheet-shell {
    padding: 20px 14px 32px;
  }

  h1 {
    font-size: 34px;
    line-height: 1;
  }

  .desktop-title {
    display: none;
  }

  .mobile-title {
    display: inline;
  }

  .form-actions {
    display: grid;
  }

  .entry-review-head {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .entry-review-meta {
    justify-content: flex-start;
  }
}
