.cf-row-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.cf-row-actions form { margin: 0; }
.cf-link-button {
  appearance: none;
  border: 0;
  background: transparent;
  color: #17181a;
  font: inherit;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cf-link-danger { color: #a31f1f; }
.cf-line-description {
  display: block;
  margin-top: 5px;
  color: var(--cf-muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
}
.cf-irpf-rate select {
  width: 100%;
  border: 1px solid #d9dce1;
  border-radius: 9px;
  padding: 10px 32px 10px 11px;
  background: #fff;
  color: #161719;
}
.cf-irpf-rate select:focus { outline: 2px solid #202124; outline-offset: 1px; }
.cf-check-card {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start;
  gap: 10px !important;
  border: 1px solid var(--cf-border);
  border-radius: 11px;
  padding: 14px;
  background: #fbfbfc;
}
.cf-check-card input { width: auto !important; margin-top: 3px; }
.cf-check-card span strong,
.cf-check-card span small { display: block; }
.cf-check-card span small { font-weight: 400; margin-top: 4px; }
.cf-form-grid label small { font-weight: 400; }
.cf-status-overdue { background: #fff0f0; color: #a31f1f; }
.cf-status-cancelled { background: #f4f0f0; color: #6f3d3d; }
.cf-quarter-tools { display: flex; justify-content: flex-end; padding: 0 18px 12px; }
.cf-settings-list strong { text-align: right; overflow-wrap: anywhere; }

@media (max-width: 700px) {
  body.cf-menu-open .cf-sidebar {
    display: flex;
    width: 232px;
    box-shadow: 10px 0 30px rgba(0,0,0,.18);
  }
  body.cf-menu-open .cf-sidebar .cf-brand > span:last-child,
  body.cf-menu-open .cf-sidebar nav a > span:last-child,
  body.cf-menu-open .cf-sidebar-bottom { display: block; }
  body.cf-menu-open .cf-sidebar nav a { justify-content: flex-start; }
  .cf-row-actions { justify-content: flex-start; flex-wrap: wrap; white-space: normal; }
  .cf-check-card.cf-span-2 { grid-column: span 1; }
  .cf-form-grid select,
  .cf-form-grid input,
  .cf-form-grid textarea { min-height: 44px; }
  .cf-page-head { flex-wrap: wrap; }
  .cf-page-head > .cf-btn { width: 100%; }
  .cf-topbar { min-width: 0; }
  .cf-entity-switch { min-width: 0; flex: 1; }
  .cf-entity-switch select { width: 100%; min-width: 0; }
  .cf-settings-list > div { flex-direction: column; gap: 5px; }
  .cf-settings-list strong { text-align: left; }
}
