body {
  margin: 0;
  background: #f5f7fb;
  color: #111827;
  font-family: Arial, sans-serif;
}

a {
  color: #2563eb;
  text-decoration: none;
}

.page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px;
}

.page.wide {
  max-width: 1450px;
}

.report-header,
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}

.report-header h1,
.topbar h1 {
  margin: 0;
  font-size: 28px;
}

.report-id {
  color: #374151;
}

.badge {
  display: inline-block;
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #fed7aa;
  border-radius: 5px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: bold;
}

.section,
.box {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 16px;
}

.section h2,
.box h2 {
  margin-top: 0;
  font-size: 18px;
}

.section h2 span {
  font-weight: normal;
  color: #6b7280;
  font-size: 14px;
}

.time-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.time-grid form {
  margin: 0;
}

.time-card {
  width: 100%;
  min-height: 122px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  display: flex;
  gap: 14px;
  align-items: center;
  text-align: left;
  padding: 14px;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(15, 23, 42, 0.04);
}

.time-card:disabled {
  cursor: default;
  opacity: 1;
  background: #f9fafb;
}

.time-card:hover:not(:disabled) {
  border-color: #2563eb;
}

.time-icon {
  font-size: 30px;
}

.time-title {
  font-size: 15px;
  color: #111827;
}

.time-value {
  font-size: 28px;
  font-weight: bold;
  margin-top: 8px;
}

.time-date {
  color: #6b7280;
  font-size: 14px;
  margin-top: 4px;
}

.green .time-icon { color: #22c55e; }
.blue .time-icon { color: #3b82f6; }
.orange .time-icon { color: #f97316; }
.purple .time-icon { color: #8b5cf6; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 16px;
}

textarea,
input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 11px;
  font-size: 15px;
}

label {
  display: block;
  margin-top: 12px;
  margin-bottom: 5px;
  font-weight: bold;
}

.actions {
  margin: 16px 0;
}

.btn-main,
.btn-secondary,
.btn-approve,
button {
  border: 0;
  border-radius: 8px;
  padding: 11px 17px;
  cursor: pointer;
  font-weight: bold;
}

.btn-main {
  display: inline-block;
  background: #2563eb;
  color: white;
}

.btn-secondary {
  background: #e5e7eb;
  color: #111827;
}

.btn-approve {
  background: #f97316;
  color: white;
}

.login-box {
  max-width: 430px;
  margin: 90px auto;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
}

.error {
  background: #fee2e2;
  color: #991b1b;
  border-radius: 8px;
  padding: 10px;
  margin: 12px 0;
}

.report-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 10px;
}

.report-row span {
  display: block;
  color: #6b7280;
  margin-top: 4px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid #e5e7eb;
  padding: 10px;
  text-align: left;
  vertical-align: top;
}

th {
  background: #f9fafb;
}

@media (max-width: 900px) {
  .time-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .report-header,
  .topbar {
    display: block;
  }
}
.text-preview {
  white-space: pre-wrap;
  line-height: 1.5;
  background: #f9fafb;
  border-radius: 8px;
  padding: 12px;
  border: 1px solid #e5e7eb;
}

.approved-info {
  display: inline-block;
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
  border-radius: 8px;
  padding: 11px 16px;
  font-weight: bold;
}

.small-ok {
  margin-top: 8px;
  color: #166534;
  font-weight: bold;
  font-size: 13px;
}