/* Monthly owner overview and employee workspace. */
.acct-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.acct-header h2 {
  margin: 0;
  font-size: 20px;
}

.acct-header small {
  display: block;
  margin-top: 5px;
  color: #64748b;
}

.acct-month {
  display: flex;
  align-items: center;
  gap: 8px;
}

.acct-month select {
  width: auto;
  min-width: 180px;
  min-height: 44px;
  background: #fff;
  color: #24334d;
  border: 1px solid #cbd6ec;
  border-radius: 12px;
  padding: 10px 14px;
  font: inherit;
}

.acct-month button {
  min-width: 40px;
  padding: 10px;
}

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

.acct-stat {
  background: #fff;
  border: 1px solid #dce3f1;
  border-radius: 18px;
  padding: 20px;
  min-width: 0;
}

.acct-stat .acct-label {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #526582;
  font-size: 13px;
}

.acct-label svg {
  width: 19px;
  height: 19px;
  color: #4f65a7;
  flex: none;
}

.acct-stat strong {
  display: block;
  margin: 12px 0 8px;
  font-size: 25px;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.acct-stat small {
  display: block;
  color: #64748b;
  line-height: 1.5;
  font-size: 12px;
}

.acct-stat.incomplete strong {
  font-size: 20px;
  color: #975100;
}

.acct-note {
  margin-top: 12px;
  background: #fffbeb;
  border: 1px solid #f4dfad;
  padding: 12px 16px;
  border-radius: 12px;
  color: #854d0e;
  font-size: 13px;
  line-height: 1.6;
}

.acct-panel {
  background: #fff;
  border: 1px solid #dce3f1;
  border-radius: 18px;
  padding: 22px;
  margin-top: 18px;
  min-width: 0;
}

.acct-panel h3 {
  margin: 0 0 16px;
  font-size: 17px;
}

.acct-subtle {
  color: #64748b;
  font-size: 13px;
  line-height: 1.6;
}

.acct-chart {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 158px;
  padding-top: 10px;
}

.acct-day {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: stretch;
  height: 100%;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  border-radius: 3px !important;
  color: #64748b !important;
}

.acct-bar {
  background: #6377b8;
  width: 100%;
  min-height: 2px;
  border-radius: 4px 4px 0 0;
}

.acct-day:hover .acct-bar,
.acct-day:focus-visible .acct-bar {
  background: #2d5fec;
}

.acct-day-label {
  display: block;
  text-align: center;
  height: 22px;
  margin-top: 8px;
  font-size: 11px;
  line-height: 22px;
}

.acct-chart-caption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
  font-size: 12px;
  color: #64748b;
}

.acct-details {
  padding: 0;
}

.acct-details summary {
  padding: 20px 22px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  min-height: 54px;
}

.acct-details-body {
  padding: 0 22px 22px;
}

.acct-totals {
  display: flex;
  gap: 14px 30px;
  flex-wrap: wrap;
  padding: 12px 0 20px;
}

.acct-totals span {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.acct-totals small {
  color: #64748b;
}

.acct-totals b {
  font-size: 17px;
}

.acct-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  table-layout: fixed;
}

.acct-table th {
  text-align: left;
  color: #64748b;
  font-size: 11px;
  padding: 12px 8px;
  border-bottom: 1px solid #dce3f1;
}

.acct-table td {
  padding: 16px 8px;
  border-bottom: 1px solid #edf0f6;
  vertical-align: middle;
  overflow-wrap: anywhere;
}

.acct-table th:first-child {
  width: 32%;
}

.acct-table td:not(:first-child),
.acct-table th:not(:first-child) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.acct-table b,
.acct-table small {
  display: block;
}

.acct-table small {
  margin-top: 5px;
  color: #64748b;
}

.acct-table tr:last-child td {
  border: 0;
}

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

.work-actions button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 22px;
  min-height: 112px;
  background: #fff;
  color: #26354b;
  border: 1px solid #dce3f1;
  box-shadow: none;
  border-radius: 18px;
  text-align: left;
}

.work-actions svg {
  width: 25px;
  height: 25px;
  color: #4c65aa;
}

.work-actions button:hover {
  background: #f5f7ff;
}

.work-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.work-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #edf0f6;
}

.work-row:last-child {
  border: 0;
}

.work-row b,
.work-row small {
  display: block;
}

.work-row small {
  margin-top: 6px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
}

.work-row button {
  flex: none;
}

.acct-empty {
  padding: 26px 0;
  color: #64748b;
  text-align: center;
  font-size: 14px;
}

.work-row > span:last-child:not(:first-child) {
  white-space: nowrap;
  flex: none;
}

@media (max-width: 1200px) {
  .acct-stats,
  .work-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .work-columns {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 650px) {
  .acct-stats {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .acct-stat {
    padding: 16px;
  }
  .acct-stat strong {
    font-size: 21px;
  }
  .acct-panel {
    padding: 16px;
  }
  .acct-details {
    padding: 0;
  }
  .acct-details-body {
    padding: 0 16px 16px;
  }
  .acct-table thead {
    display: none;
  }
  .acct-table,
  .acct-table tbody,
  .acct-table tr {
    display: block;
  }
  .acct-table tr {
    padding: 12px 0;
    border-bottom: 1px solid #dce3f1;
  }
  .acct-table td {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    border: 0;
    padding: 7px 0;
    text-align: right !important;
  }
  .acct-table td:first-child {
    display: block;
    text-align: left !important;
  }
  .acct-table td:not(:first-child)::before {
    content: attr(data-label);
    color: #64748b;
    text-align: left;
  }
  .acct-chart {
    gap: 2px;
  }
  .acct-day-label {
    font-size: 10px;
  }
  .acct-header {
    align-items: flex-start;
  }
  .acct-month {
    width: 100%;
  }
  .acct-month select {
    flex: 1;
    min-width: 0;
  }
  .work-actions button {
    padding: 16px;
    font-size: 13px;
  }
}

@media (max-width: 380px) {
  .acct-stats,
  .work-actions {
    grid-template-columns: 1fr;
  }
  .acct-stat strong {
    font-size: 24px;
  }
}
