.dashboard-page {
  background: #f3f6f4;
}

.dashboard-main {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 0 auto;
  max-width: 1080px;
  padding: 18px 20px 84px;
}

.dashboard-today-hero,
.dashboard-attendance-card {
  background: #ffffff;
  border: 1px solid #d3ded8;
  border-radius: 8px;
}

.dashboard-today-hero {
  align-items: center;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  overflow: hidden;
  padding: 18px 20px 18px 28px;
  position: relative;
}

.dashboard-today-hero::before {
  background: #1f7a6c;
  content: "";
  inset: 0 auto 0 0;
  position: absolute;
  width: 4px;
}

.dashboard-date-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dashboard-date {
  color: #5e6f67;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.45;
  margin: 0;
}

.dashboard-today-state {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

.dashboard-today-state div {
  background: #f7f9f8;
  border: 1px solid #dce5e0;
  border-radius: 8px;
  padding: 10px 12px;
}

.dashboard-today-state dt {
  color: #68776f;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 5px;
}

.dashboard-today-state dd {
  color: #23372f;
  font-size: 14px;
  font-weight: 900;
  margin: 0;
}

.dashboard-today-state dd[data-state="incomplete"],
.dashboard-today-state dd[data-state="warning"],
.dashboard-today-state dd[data-state="invalid"] {
  color: #9a3e32;
}

.dashboard-attendance-card {
  overflow: hidden;
}

.status {
  background: #ffffff;
  border: 1px solid #b9d2c9;
  border-radius: 999px;
  color: #2b6258;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  margin: 0;
  padding: 7px 10px;
  white-space: nowrap;
}

.dashboard-date-status {
  flex: 0 0 auto;
}

.status.loading {
  background: #fff8e8;
  border-color: #ead39d;
  color: #735815;
}

.status.success {
  background: #e8f5ef;
  border-color: #a9d3c1;
  color: #17624f;
}

.status.error {
  background: #fbeeee;
  border-color: #e0b4b4;
  color: #8b3333;
}

.dashboard-attendance-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px;
}

.dashboard-input-category {
  border: 1px solid #d5e1db;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
}

.dashboard-input-category-quick {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}

.dashboard-input-category-details {
  background: #fbfcfc;
}

.dashboard-input-category-header {
  align-items: center;
  border-bottom: 1px solid #dce7e1;
  display: flex;
  min-height: 30px;
  padding-bottom: 10px;
}

.dashboard-input-category-header h3 {
  color: #243b33;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.2;
  margin: 0;
}

.dashboard-clock-actions {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-clock-button {
  align-items: center;
  border: 1px solid;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  min-height: 78px;
  padding: 14px 18px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.dashboard-clock-button span {
  font-size: 20px;
  font-weight: 900;
}

.dashboard-clock-button strong {
  font-size: 18px;
  font-weight: 900;
}

.dashboard-clock-button.is-clock-in {
  background: #e6f5ee;
  border-color: #8dc8b2;
  color: #155c49;
}

.dashboard-clock-button.is-clock-out {
  background: #eaf2f8;
  border-color: #9bbdd2;
  color: #285d77;
}

.dashboard-clock-button:not(:disabled):hover {
  box-shadow: 0 6px 16px rgba(31, 74, 62, 0.15);
  transform: translateY(-1px);
}

.dashboard-clock-button:focus-visible,
.dashboard-time-field input:focus-visible,
.dashboard-note-field textarea:focus-visible,
.dashboard-project-field input:focus-visible,
.dashboard-save-button:focus-visible {
  outline: 3px solid rgba(31, 122, 108, 0.2);
  outline-offset: 2px;
}

.dashboard-clock-button:disabled {
  background: #f4f6f5;
  border-color: #d9dfdc;
  color: #89948f;
  cursor: default;
}

.dashboard-project-picker {
  align-items: center;
  background: #f7faf8;
  border: 1px solid #d5e1db;
  border-radius: 8px;
  display: grid;
  gap: 5px 12px;
  grid-template-columns: 130px minmax(220px, 360px) minmax(0, 1fr);
  padding: 11px 13px;
}

.dashboard-project-picker[hidden] {
  display: none;
}

.dashboard-project-picker > span {
  color: #334d44;
  font-size: 12px;
  font-weight: 900;
}

.dashboard-project-picker select {
  background: #ffffff;
  border: 1px solid #b9c9c1;
  border-radius: 7px;
  color: #243a32;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  height: 38px;
  padding: 0 10px;
}

.dashboard-project-picker small {
  color: #64746d;
  font-size: 11px;
  line-height: 1.4;
}

.dashboard-time-fields {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-time-field,
.dashboard-actual-field,
.dashboard-note-field,
.dashboard-project-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dashboard-time-field > span,
.dashboard-actual-field > span,
.dashboard-note-field > span {
  color: #4f625a;
  font-size: 12px;
  font-weight: 800;
}

.dashboard-time-field input,
.dashboard-note-field textarea,
.dashboard-project-field input {
  background: #ffffff;
  border: 1px solid #bdcbc4;
  border-radius: 7px;
  color: #1f322b;
  font: inherit;
}

.dashboard-time-field input {
  font-size: 18px;
  font-weight: 900;
  height: 46px;
  padding: 0 12px;
  text-align: center;
}

.dashboard-actual-field {
  background: #f4f8f6;
  border: 1px solid #d1dfd8;
  border-radius: 7px;
  justify-content: center;
  min-height: 70px;
  padding: 9px 12px;
}

.dashboard-actual-field strong {
  color: #1c5e4e;
  font-size: 21px;
  font-weight: 900;
}

.dashboard-note-field textarea {
  line-height: 1.5;
  min-height: 76px;
  padding: 10px 12px;
  resize: vertical;
}

.dashboard-time-field input:disabled,
.dashboard-note-field textarea:disabled,
.dashboard-project-field input:disabled {
  background: #f1f3f2;
  color: #7b8781;
}

.dashboard-project-section {
  border-top: 1px solid #dce4e0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 18px;
}

.dashboard-project-section[hidden] {
  display: none;
}

.dashboard-project-section > header {
  align-items: flex-end;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.dashboard-project-section h3 {
  color: #263b33;
  font-size: 16px;
  margin: 0;
}

.dashboard-project-section header p {
  color: #66766f;
  font-size: 12px;
  margin: 3px 0 0;
}

.dashboard-project-section .dashboard-project-summary {
  background: #f0f5f3;
  border: 1px solid #d2dfda;
  border-radius: 999px;
  color: #315f54;
  font-weight: 900;
  padding: 6px 10px;
  white-space: nowrap;
}

.dashboard-project-section .dashboard-project-summary.has-gap {
  background: #fff5e6;
  border-color: #ead19b;
  color: #7a5710;
}

.dashboard-project-fields {
  display: grid;
  gap: 10px 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-project-field {
  align-items: center;
  background: #fafbfa;
  border: 1px solid #dce4e0;
  border-radius: 7px;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) 92px;
  padding: 9px 10px;
}

.dashboard-project-field > span {
  min-width: 0;
}

.dashboard-project-field strong,
.dashboard-project-field small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-project-field strong {
  color: #263d35;
  font-size: 13px;
}

.dashboard-project-field small {
  color: #6b7973;
  font-size: 11px;
  margin-top: 2px;
}

.dashboard-project-field input {
  font-size: 14px;
  font-weight: 800;
  height: 36px;
  padding: 0 8px;
  text-align: center;
  width: 100%;
}

.dashboard-validation-panel {
  background: #fff8e8;
  border: 1px solid #ead39d;
  border-radius: 7px;
  color: #6e5418;
  padding: 11px 13px;
}

.dashboard-validation-panel[hidden] {
  display: none;
}

.dashboard-validation-panel strong {
  font-size: 12px;
}

.dashboard-validation-panel ul {
  font-size: 12px;
  line-height: 1.5;
  margin: 5px 0 0;
  padding-left: 20px;
}

.dashboard-attendance-footer {
  align-items: center;
  border-top: 1px solid #dce4e0;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding-top: 14px;
}

.dashboard-attendance-footer p {
  color: #65736d;
  font-size: 12px;
  line-height: 1.45;
  margin: 0;
}

.dashboard-footer-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.dashboard-save-button {
  min-height: 42px;
  min-width: 170px;
  padding: 9px 16px;
}

@media (max-width: 900px) {
  .dashboard-today-hero {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 700px) {
  .dashboard-main {
    padding: 12px 10px 72px;
  }

  .dashboard-today-hero {
    gap: 14px;
    padding: 15px 14px 15px 22px;
  }

  .dashboard-clock-actions,
  .dashboard-time-fields,
  .dashboard-project-fields {
    grid-template-columns: 1fr;
  }

  .dashboard-today-state {
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-project-picker {
    grid-template-columns: 1fr;
  }

  .dashboard-attendance-footer,
  .dashboard-project-section > header {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-attendance-form {
    padding: 14px;
  }

  .dashboard-today-state div {
    padding: 9px 10px;
  }

  .dashboard-input-category {
    padding: 13px;
  }

  .dashboard-clock-button {
    min-height: 68px;
  }

  .dashboard-footer-actions,
  .dashboard-save-button {
    width: 100%;
  }
}
