* {
  box-sizing: border-box;
}

body {
  font-family: "Inter", "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.45;
  margin: 0;
  background-color: #f5f5f5;
  color: #333;
}

.login-page {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: radial-gradient(circle at top, rgba(37, 99, 235, 0.1), transparent),
    #f5f7fb;
}

.login-card {
  background: #fff;
  padding: 2rem;
  border-radius: 14px;
  width: min(380px, 92vw);
  box-shadow: 0 25px 80px rgba(15, 23, 42, 0.15);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.login-card__subtitle {
  margin: 0;
  color: #4b5563;
  font-size: 0.95rem;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.login-form label {
  font-weight: 600;
  color: #374151;
}

.login-form input {
  padding: 0.55rem 0.6rem;
  border: 1px solid #cfd6dc;
  border-radius: 6px;
  font-size: 0.95rem;
}

.login-form__submit {
  margin-top: 0.75rem;
}

.login-error {
  padding: 0.85rem;
  border-radius: 8px;
  background-color: #fee4e2;
  color: #b42318;
  font-weight: 600;
}

.page {
  width: 100%;
}

.form-wrapper {
  width: 100%;
  padding: 1.5rem 10px 0;
  display: flex;
  justify-content: center;
}

.form-card {
  width: min(1100px, 100%);
  background: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.data-wrapper {
  width: 100%;
  padding: 1.5rem 10px 2.5rem;
}

h1,
h2 {
  color: #2c3e50;
  margin-top: 0;
}

h1 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.35rem;
  font-weight: 500;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-grid {
  display: grid;
  gap: 1rem;
}

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

.form-grid--details {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: flex-start;
}

.time-logs-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-field label {
  font-weight: 600;
  font-size: 0.9rem;
}

.form-field input,
.form-field textarea {
  padding: 0.55rem 0.6rem;
  border: 1px solid #cfd6dc;
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
  background-color: #fff;
}

.form-field textarea {
  resize: vertical;
  min-height: 100%;
}

.form-field--description textarea {
  min-height: 9rem;
}

select {
  padding: 0.5rem 0.6rem;
  border: 1px solid #cfd6dc;
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
  background-color: #fff;
}

.time-logs {
  background-color: #f7f9fc;
  border: 1px solid #d9e2ec;
  border-radius: 10px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.time-logs__rows {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.time-log-row input {
  width: 100%;
}

.time-log-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) 36px 36px;
  gap: 0.75rem;
  align-items: end;
}

.time-log-row__total-control {
  display: flex;
}

.time-log-row__remove-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.time-log-row__add-wrapper {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
}

.time-log-row__add-wrapper {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
}

.add-time-log-button {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background-color: #16a34a;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0px 5px rgba(22, 163, 74, 0.35);
}

.add-time-log-button span {
  display: inline-block;
  line-height: 1;
}

.add-time-log-button:hover {
  background-color: #14833d;
}

.time-log-row__remove {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background-color: #ffe8e6;
  color: #c0392b;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0px 5px rgba(163, 38, 22, 0.35);
}

.time-log-row__remove:hover {
  background-color: #ffd6d2;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.75rem;
}

.cancel-button {
  background-color: #e4e7eb;
  color: #374151;
  border: none;
  border-radius: 6px;
  padding: 0.45rem 1.2rem;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.cancel-button:hover {
  background-color: #d2d6dc;
}

.submit-button {
  background-color: #2c7be5;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.45rem 1.4rem;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.submit-button:hover {
  background-color: #1b63c3;
}

.logout-button {
  border: 1px solid #d4dbe8;
  border-radius: 999px;
  background-color: #fff;
  color: #1f2933;
  padding: 0.35rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.logout-button:hover {
  background-color: #eff3fb;
  color: #0f172a;
}

.primary-button,
.secondary-button {
  border-radius: 8px;
  padding: 0.45rem 1.2rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-size: 0.95rem;
  transition: background-color 0.2s ease;
}

.primary-button {
  background-color: #2563eb;
  color: #fff;
}

.primary-button:hover {
  background-color: #1e4fc4;
}

.is-loading {
  position: relative;
  pointer-events: none;
  color: transparent !important;
}

.is-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-top-color: #fff;
  animation: spinner 0.6s linear infinite;
}

@keyframes spinner {
  to {
    transform: rotate(360deg);
  }
}

.secondary-button {
  background-color: #f1f5fb;
  color: #1f2933;
}

.secondary-button:hover {
  background-color: #e2e8f7;
}

.is-hidden {
  display: none !important;
}

.selection-banner {
  position: fixed;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.9);
  color: #fff;
  padding: 1.25rem 2rem;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  z-index: 1500;
}

.selection-banner p {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
}

.selection-banner__actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}

.selection-banner__actions button {
  width: 220px;
}

.summary-title-mobile {
  display: none;
}

.invoice-cards {
  display: none;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.invoice-card {
  border: 1px solid #e5e9f2;
  border-radius: 12px;
  padding: 1rem;
  background: #fff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.invoice-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.invoice-card__title {
  font-weight: 600;
  color: #111827;
}

.invoice-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.invoice-card__pair {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.invoice-card__label {
  font-size: 0.8rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.invoice-card__value {
  font-weight: 600;
  color: #111827;
}

.invoice-card__value--muted {
  font-weight: 400;
  color: #374151;
}

.invoice-card__field {
  flex: 1 1 0;
}

.invoice-card__field--full {
  flex-basis: 100%;
}

.invoice-card__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

.entries-cards {
  display: none;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.entry-card {
  border: 1px solid #e5e9f2;
  border-radius: 12px;
  padding: 1rem;
  background: #fff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.entry-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.entry-card__header-title {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.entry-card__date {
  font-weight: 600;
  color: #111827;
}

.entry-card__select {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: #4b5563;
}

.entry-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.entry-card__pair {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.entry-card__field {
  flex: 1 1 0;
}

.entry-card__field--full {
  flex: 1 1 100%;
}

.entry-card__label {
  display: block;
  font-size: 0.8rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.entry-card__value {
  font-weight: 600;
  color: #111827;
}

.entry-card__value--muted {
  font-weight: 400;
  color: #374151;
}

.entry-card__logs {
  border-top: 1px solid #e5e9f2;
  padding-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.entry-card__logs .entry-card__label {
  margin-bottom: 0.2rem;
}

.entry-card__log {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: #111827;
}

.entry-card__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

.entry-card__actions .icon-button {
  width: 34px;
  height: 34px;
}

.page-footer {
  width: 100%;
  padding: 2rem 0 2.5rem;
  display: flex;
  justify-content: center;
}

.page-footer .logout-button {
  min-width: 200px;
}

.data-card {
  background: #fff;
  padding: 1.25rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  margin-bottom: 2rem;
  width: 100%;
}

.data-wrapper .report-controls {
  width: 100%;
  margin: 0 0 1.25rem;
  padding: 0 0.5rem;
}

.data-wrapper .data-card {
  margin-left: auto;
  margin-right: auto;
}

.entries-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.entries-header__left {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.entries-header__left h2 {
  margin: 0;
}

.entries-header__right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
}

.entries-header__meta {
  margin: 0;
  font-size: 0.9rem;
  color: #4b5563;
}

.entries-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

  .entries-filter__field {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

.entries-filter__range {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.entries-filter__range-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.entries-filter__range-field {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.entries-filter__range input {
  min-width: 140px;
  padding: 0.5rem 0.6rem;
  border: 1px solid #cfd6dc;
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
  background-color: #fff;
  cursor: pointer;
}

.entries-filter__label {
  font-weight: 600;
  font-size: 0.85rem;
  color: #4b5563;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 1rem;
  font-size: 0.95rem;
  background-color: #fff;
  border: 1px solid #e3e7ef;
  border-radius: 12px;
  overflow: hidden;
}

table th,
table td {
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid #e5e9f2;
  text-align: left;
  vertical-align: middle;
}

table thead th {
  background-color: #eef2f7;
  font-weight: 600;
}

#entries-table thead th {
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #4b5563;
}

table tbody td {
  vertical-align: top;
  color: #1f2933;
}

#entries-table tfoot td {
  font-weight: 600;
  background-color: #f1f5fb;
  border-bottom: none;
}

#summary-table tfoot td {
  font-weight: 600;
  background-color: #f9fafb;
  border-top: 1px solid #dfe7f3;
}

.summary__footer-label {
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  color: #4b5563;
}

.summary__footer-value {
  text-align: center !important;
  font-variant-numeric: tabular-nums;
}

.summary__footer-value--currency {
  color: #2563eb;
  text-align: right !important;
}

#summary-table th:nth-child(3),
#summary-table td:nth-child(3) {
  text-align: center;
}

#summary-table th:nth-child(4),
#summary-table td:nth-child(4) {
  text-align: right;
}

#invoices-table th:nth-child(4),
#invoices-table td:nth-child(4) {
  text-align: center;
}

#invoices-table th:nth-child(5),
#invoices-table th:nth-child(6),
#invoices-table th:nth-child(7),
#invoices-table td:nth-child(5),
#invoices-table td:nth-child(6),
#invoices-table td:nth-child(7) {
  text-align: right;
}

#invoices-table td {
  vertical-align: middle;
}

#entries-table th:nth-child(3),
#entries-table th:nth-child(4),
#entries-table th:nth-child(5),
#entries-table td:nth-child(3),
#entries-table td:nth-child(4),
#entries-table td:nth-child(5) {
  text-align: center;
}

#entries-table th:nth-child(6),
#entries-table td:nth-child(6),
#entries-table th:nth-child(7),
#entries-table td:nth-child(7) {
  text-align: right;
}

#entries-table th:nth-child(8),
#entries-table td:nth-child(8) {
  text-align: center;
}

.entries__select-column {
  width: 36px;
  text-align: center;
}

.entries__select-column input {
  width: 16px;
  height: 16px;
}

.entries__status-cell {
  text-align: center;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

.status-badge--unbilled {
  background-color: #fff4e3;
  color: #b45309;
}

.status-badge--billed {
  background-color: #e0f7f1;
  color: #0f766e;
}

.status-badge--paid {
  background-color: #e0f2fe;
  color: #0369a1;
}

.status-actions {
  margin-top: 0.35rem;
  display: flex;
  justify-content: center;
}

.status-actions button {
  background: none;
  border: none;
  color: #2563eb;
  cursor: pointer;
  font-size: 0.8rem;
}

.invoice-row__actions {
  display: flex;
  gap: 0.4rem;
  justify-content: flex-end;
}
#invoices-table tbody tr {
  cursor: pointer;
}
#invoices-table tbody tr {
  cursor: pointer;
}


.invoice-row__actions button {
  border: none;
  border-radius: 6px;
  padding: 0.35rem 0.9rem;
  cursor: pointer;
  font-weight: 600;
}

.invoice-row__actions .mark-paid {
  background-color: #16a34a;
  color: #fff;
}

.invoice-row__actions .mark-paid:hover {
  background-color: #15803d;
}

.invoice-row__actions .mark-billed {
  background-color: #fbbf24;
  color: #92400e;
}

.invoice-row__actions .mark-billed:hover {
  background-color: #f59e0b;
}

.multiline-cell {
  display: grid;
  gap: 0.2rem;
}

.multiline-cell--numbers {
  justify-items: center;
  text-align: center;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.multiline-cell--align-right {
  justify-items: flex-end;
  text-align: right;
}

.entries-log-sum {
  margin-top: 0.35rem;
  display: block;
  font-weight: 700;
}

.entries-cost-line {
  display: flex;
  align-items: baseline;
  gap: 0.15rem;
}

.entries-cost-asterisk {
  color: #b45309;
  margin-left: 0.15rem;
  font-weight: 700;
}


.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.modal-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  width: min(420px, 90vw);
  max-width: 800px;
  max-height: 95vh;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.25);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.modal-card--wide {
  width: min(800px, 95vw);
}
#invoice-modal .modal-card {
  width: min(800px, 95vw);
  max-width: 800px;
}

.invoice-title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: flex-start;
}

.invoice-title-row h3 {
  margin: 0;
}

.invoice-title-edit {
  border: none;
  background: none;
  cursor: pointer;
  color: #2563eb;
  font-size: 1rem;
}

.invoice-title-download {
  border: none;
  background: none;
  cursor: pointer;
  color: #2563eb;
  font-size: 1rem;
}

.invoice-title-excel {
  border: none;
  background: none;
  cursor: pointer;
  color: #059669;
  font-size: 1rem;
}

.invoice-title-edit-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto auto;
  gap: 0.5rem;
  align-items: end;
  margin-top: 0.5rem;
}

.invoice-title-edit-form input {
  width: 100%;
}

.invoice-title-edit-form .inline-btn {
  border: none;
  background: none;
  cursor: pointer;
  font-size: 1.1rem;
}

.invoice-title-edit-form .inline-btn--save {
  color: #16a34a;
}

.invoice-title-edit-form .inline-btn--cancel {
  color: #c0392b;
}
.summary-edit-button {
  border: none;
  background: none;
  cursor: pointer;
  color: #2563eb;
  font-size: 1rem;
}

.summary-inline-form {
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
}

.summary-inline-form input {
  width: 120px;
}

.summary-inline-form .inline-btn {
  border: none;
  background: none;
  cursor: pointer;
  font-size: 1rem;
}

.summary-inline-form .inline-btn--save {
  color: #16a34a;
}

.summary-inline-form .inline-btn--cancel {
  color: #c0392b;
}

.invoice-summary-table {
  width: 100%;
  margin-top: 0.75rem;
  border-collapse: collapse;
}

.invoice-summary-table td {
  padding: 0.35rem 0.4rem;
}

.invoice-summary-heading {
  margin: 1rem 0 0.35rem;
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
}

.invoice-summary-label {
  font-weight: 600;
  color: #374151;
}

.invoice-summary-value {
  text-align: right;
  font-weight: 600;
}

.invoice-summary-edit {
  width: 36px;
  text-align: left;
}
#invoice-modal .modal-card {
  width: min(800px, 95vw);
}

.modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.6rem;
  border: none;
  background: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #475569;
}

.modal-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.modal-field label {
  font-weight: 600;
  color: #1f2933;
}

.modal-field input,
.modal-field textarea,
.modal-field select {
  padding: 0.55rem 0.6rem;
  border: 1px solid #cfd6dc;
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
}

.modal-actions {
  margin-top: 0.5rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
}

.modal-field--existing {
  display: none;
}

.modal-card[data-mode="add"] .modal-field--existing {
  display: flex;
}

.modal-card[data-mode="add"] .modal-field:not(.modal-field--existing) {
  display: none;
}

.invoice-detail-entries {
  flex: 1;
  min-height: 0;
  overflow: auto;
  margin-top: 0;
}

.invoice-detail-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0;
  font-size: 0.92rem;
}

.invoice-detail-table th,
.invoice-detail-table td {
  padding: 0.5rem 0.65rem;
  border-bottom: 1px solid #eaeef5;
}

.invoice-detail-table th {
  background: #f5f7fb;
  font-weight: 600;
}

.invoice-detail-remove {
  color: #c0392b;
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 600;
}

.invoice-detail-table th:nth-child(3),
.invoice-detail-table td:nth-child(3),
.invoice-detail-table th:nth-child(4),
.invoice-detail-table td:nth-child(4),
.invoice-detail-table th:nth-child(5),
.invoice-detail-table td:nth-child(5) {
  text-align: right;
}

.invoice-summary-label {
  text-align: right;
  font-weight: 600;
  color: #1f2933;
}

.invoice-summary-value {
  text-align: right;
  font-weight: 600;
}

.invoice-detail-divider td {
  border-bottom: 2px solid #cbd5f5;
}

.invoice-detail-group-header td {
  font-weight: 600;
  padding-top: 0.9rem;
}
.multiline-cell--text {
  justify-items: flex-start;
  white-space: normal;
}

.multiline-cell__value--strong {
  font-weight: 700;
  color: #111827;
}

.multiline-cell__value--muted {
  color: #6b7280;
  font-size: 0.85rem;
}

.entries__date-cell {
  font-weight: 600;
  color: #111827;
  white-space: nowrap;
}

.entries__company-cell {
  min-width: 200px;
}

.entries__cost-cell {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.entries-cost-line span {
  font-weight: 400;
}

.entries__actions-cell {
  text-align: center;
}

.entry-actions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 0.45rem;
}

.entries__footer-value {
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.entries__footer-value span {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #6b7280;
}

.entries__footer-value strong {
  display: block;
  font-size: 1.1rem;
  color: #0f172a;
}

.entries__footer-value--currency {
  text-align: right;
}

.entries__time-total--single span,
.entries__cost-total--single span {
  font-weight: 700;
}

.icon-button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: #2c3e50;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.icon-button:hover,
.icon-button:focus-visible {
  background-color: #eef2f7;
  outline: none;
}

.icon-button:focus-visible {
  box-shadow: 0 0 0 2px rgba(44, 123, 229, 0.35);
}

.icon-button--info::before {
  content: "";
}

.icon-button svg {
  width: 16px;
  height: 16px;
}

.icon-button--delete::before {
  content: "✖";
  font-size: 1.05rem;
}

.icon-button--delete {
  color: #c0392b;
}

.icon-button--muted {
  color: #9aa5b1;
}

.entries-row--editing {
  background-color: #fef3c7;
}

.entries-row--clickable {
  cursor: pointer;
}

.entries-row--clickable:hover {
  background-color: #f3f4f6;
}

.invoice-row--clickable {
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.invoice-row--clickable:hover {
  background-color: #f3f4f6;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

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

  .form-grid--details {
    grid-template-columns: 1fr;
  }

  .form-actions {
    justify-content: flex-start;
  }

  .cancel-button,
  .submit-button {
    width: 100%;
  }
}

@media (max-width: 720px) {
  #entries-table {
    display: none;
  }

  .entries-cards {
    display: flex;
  }

  .summary-title-full {
    display: none;
  }

  .summary-title-mobile {
    display: inline;
  }

  #summary-table th:nth-child(2),
  #summary-table td:nth-child(2) {
    display: none;
  }

  #invoices-table {
    display: none;
  }

  .invoice-cards {
    display: flex;
  }
}

@media (max-width: 540px) {
  body {
    font-size: 14px;
  }

  .form-grid--primary {
    grid-template-columns: 1fr;
  }

  .entries-header__right {
    width: 100%;
    justify-content: flex-start;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .entries-filters {
    width: 100%;
    flex-direction: column;
    gap: 0.65rem;
  }

  .entries-filter__field,
  .entries-filter__range-group,
  .entries-filter__range-field {
    width: 100%;
  }

  .entries-filter__field {
    display: flex;
    align-items: center;
    gap: 0.65rem;
  }

  .entries-filter__range-group {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
  }

  .entries-filter__range-field {
    display: flex;
    align-items: center;
    gap: 0.65rem;
  }

  .entries-filter__range-field label,
  .entries-filter__field label {
    flex: 0 0 25%;
  }

  .entries-filter__range-field input,
  .entries-filter__field select {
    flex: 1 1 auto;
  }

  .entries-filter__range {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
  }

  .entries-filter__field select,
  .entries-filter__range-field input {
    min-width: 0;
  }

  .time-log-row {
    grid-template-columns: repeat(3, minmax(0, 1fr)) 32px 32px;
    gap: 0.5rem;
  }

  .time-log-row .form-field label {
    font-size: 0.8rem;
    white-space: nowrap;
  }

  .time-log-row__remove-wrapper,
  .time-log-row__add-wrapper {
    justify-content: center;
  }
}
