/* HYDRATED LIME RECEIPTS V2 R2 TIME INPUT */

#efficiencyLimestoneTab {
  white-space: normal;
  line-height: 1.15;
}

.hydrated-lime-receipts-v2 {
  display: grid;
  gap: 12px;
  padding: 10px 12px 16px;
  background: #f7fafc;
}

.hydrated-lime-receipts-v2[hidden] {
  display: none !important;
}

.hlr-month-card {
  min-height: 48px;
  padding: 8px 12px;
  box-sizing: border-box;
  border: 1px solid #cfddeb;
  border-radius: 10px;
  background: #f9fbfd;
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 8px;
}

.hlr-month-field {
  display: grid;
  gap: 4px;
  min-width: 220px;
  color: #33536d;
  font-size: 10px;
  font-weight: 800;
}

.hlr-month-field input {
  width: 100%;
  height: 34px;
  padding: 0 12px;
  box-sizing: border-box;
  border: 1px solid #b9cee3;
  border-radius: 7px;
  background: #fff;
  color: #123d64;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
}

.hlr-date-arrow,
.hlr-current-button {
  height: 34px;
  min-width: 36px;
  padding: 0 12px;
  border: 1px solid #b9cee3;
  border-radius: 7px;
  background: #fff;
  color: #1e5f99;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.hlr-date-arrow:hover,
.hlr-current-button:hover {
  background: #eef6ff;
}

.hlr-month-note {
  align-self: center;
  margin-left: 8px;
  color: #71879a;
  font-size: 10px;
  font-weight: 700;
}

.hlr-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.hlr-summary-card {
  min-height: 62px;
  padding: 10px 14px;
  box-sizing: border-box;
  border: 1px solid #cfddeb;
  border-left: 4px solid #2677bf;
  border-radius: 9px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.hlr-summary-card.is-green {
  border-left-color: #1b9a72;
}

.hlr-summary-card.is-purple {
  border-left-color: #7b52aa;
}

.hlr-summary-card.is-orange {
  border-left-color: #ce7907;
}

.hlr-summary-card > span {
  color: #405c74;
  font-size: 12.5px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: -0.015em;
}

.hlr-summary-card > strong {
  color: #155b9f;
  font-size: 25px;
  line-height: 1;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.hlr-summary-card.is-green > strong {
  color: #18825f;
}

.hlr-summary-card.is-purple > strong {
  color: #70469f;
}

.hlr-summary-card.is-orange > strong {
  color: #a95e00;
}

.hlr-summary-card small {
  margin-left: 3px;
  color: #657d92;
  font-size: 10.5px;
  font-weight: 900;
}

.hlr-history-card {
  min-height: 300px;
  overflow: hidden;
  border: 1px solid #cfddeb;
  border-radius: 10px;
  background: #fff;
}

.hlr-history-head {
  min-height: 46px;
  padding: 8px 12px;
  box-sizing: border-box;
  border-bottom: 1px solid #dbe5ee;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #f8fafc;
}

.hlr-history-head > div {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.hlr-history-head span {
  color: #1763a2;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.hlr-history-head strong {
  color: #173f61;
  font-size: 15px;
  font-weight: 900;
}

.hlr-history-head em {
  padding: 4px 8px;
  border-radius: 999px;
  background: #edf5fc;
  color: #1963a0;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.hlr-table-wrap {
  overflow-x: auto;
}

.hlr-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  color: #244760;
  font-size: 10.5px;
}

.hlr-table th {
  height: 34px;
  padding: 6px 8px;
  border-bottom: 1px solid #d8e3ed;
  background: #eaf1f8;
  color: #123f65;
  font-weight: 900;
  text-align: center;
}

.hlr-table td {
  height: 42px;
  padding: 7px 9px;
  border-bottom: 1px solid #e5edf4;
  text-align: center;
  vertical-align: middle;
}

.hlr-table tbody tr:hover {
  background: #f7fbff;
}

.hlr-table th:nth-child(1),
.hlr-table td:nth-child(1) {
  width: 11%;
}

.hlr-table th:nth-child(2),
.hlr-table td:nth-child(2) {
  width: 10%;
}

.hlr-table th:nth-child(3),
.hlr-table td:nth-child(3) {
  width: 13%;
}

.hlr-table th:nth-child(4),
.hlr-table td:nth-child(4) {
  width: 13%;
}

.hlr-table th:nth-child(5),
.hlr-table td:nth-child(5) {
  width: 12%;
}

.hlr-table th:nth-child(6),
.hlr-table td:nth-child(6) {
  width: 27%;
}

.hlr-table th:nth-child(7),
.hlr-table td:nth-child(7) {
  width: 14%;
}

.hlr-ton,
.hlr-cumulative {
  color: #1666ad;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.hlr-note {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hlr-actions {
  display: flex;
  justify-content: center;
  gap: 5px;
}

.hlr-actions button {
  min-height: 28px;
  padding: 3px 10px;
  border: 1px solid #b9cee3;
  border-radius: 6px;
  background: #fff;
  color: #1d5f99;
  font-size: 9.5px;
  font-weight: 900;
  cursor: pointer;
}

.hlr-actions button.danger {
  border-color: #efc5c5;
  color: #c44343;
}

.hlr-empty {
  height: 100px !important;
  color: #7a8fa2;
  font-weight: 700;
}

.hlr-editor-backdrop {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(18, 37, 54, 0.35);
}

.hlr-editor-backdrop[hidden] {
  display: none !important;
}

.hlr-editor {
  width: min(580px, calc(100vw - 32px));
  overflow: hidden;
  border: 1px solid #c9d8e6;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(24, 53, 77, 0.24);
}

.hlr-editor > header {
  min-height: 60px;
  padding: 12px 16px;
  box-sizing: border-box;
  border-bottom: 1px solid #dce6ef;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
}

.hlr-editor > header > div {
  display: grid;
  gap: 3px;
}

.hlr-editor > header span {
  color: #1d6ca9;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.hlr-editor > header strong {
  color: #173f61;
  font-size: 17px;
  font-weight: 900;
}

.hlr-editor-close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: #edf2f6;
  color: #5b7287;
  font-size: 22px;
  cursor: pointer;
}

.hlr-editor-body {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
}

.hlr-editor-body label {
  display: grid;
  gap: 6px;
  color: #435e75;
  font-size: 10px;
  font-weight: 900;
}

.hlr-editor-body label.is-wide {
  grid-column: 1 / -1;
}

.hlr-editor-body input,
.hlr-editor-body textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #c6d6e4;
  border-radius: 8px;
  background: #fff;
  color: #183c5a;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
}

.hlr-editor-body input {
  height: 38px;
  padding: 0 11px;
}

.hlr-editor-body textarea {
  min-height: 76px;
  padding: 10px 11px;
  resize: vertical;
}

.hlr-editor-status {
  margin: -5px 18px 12px;
  padding: 8px 10px;
  border: 1px solid #efb8b8;
  border-radius: 7px;
  background: #fff4f4;
  color: #b83d3d;
  font-size: 10px;
  font-weight: 800;
}

.hlr-editor > footer {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  padding: 12px 18px 16px;
  border-top: 1px solid #e2e9f0;
}

@media (max-width: 900px) {
  .hlr-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hlr-month-card {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .hlr-month-note {
    width: 100%;
    margin-left: 0;
  }

  .hlr-editor-body {
    grid-template-columns: 1fr;
  }

  .hlr-editor-body label.is-wide {
    grid-column: auto;
  }
}


/* R2: direct keyboard time entry */
.hlr-editor-body input[data-hlr-time] {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
