.budget-counts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0;
}
.budget-counts > div {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 19px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.budget-counts strong {
  font-size: 23px;
  font-weight: 600;
}
.budget-counts > div > span:last-child {
  font-size: 11px;
  color: var(--muted);
}
.budget-list-toolbar .search-field {
  max-width: 340px;
}
.budget-list-toolbar #budget-archive {
  margin-left: auto;
}
.budget-card .project-card-title {
  font-size: 15px;
}
.budget-client {
  display: flex !important;
  align-items: center;
  gap: 6px;
  color: var(--text) !important;
  min-height: 20px !important;
  margin-top: 13px !important;
  font-size: 11px !important;
}
.budget-client svg {
  width: 13px;
  height: 13px;
  color: var(--muted);
}
.budget-state {
  display: inline-block;
  border-radius: 5px;
  padding: 5px 9px;
  font-size: 10px;
  font-weight: 550;
  white-space: nowrap;
}
.budget-card .budget-state {
  margin-left: auto;
}
.budget-amount {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin: 23px 0 5px;
}
.budget-amount strong {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.7px;
}
.budget-amount > span {
  font-size: 10px;
  color: var(--muted);
}
.budget-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
  margin-top: 25px;
  gap: 15px;
}
.budget-pagination > div {
  display: flex;
  gap: 9px;
}
.budget-pagination button {
  font-size: 11px;
  padding: 8px 12px;
}
.budget-back {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.budget-back .text-button {
  font-size: 10px;
  color: var(--muted);
  margin-right: auto;
}
.budget-back .text-button svg {
  width: 12px;
  height: 12px;
  transform: rotate(180deg);
}
.budget-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(
      80px,
      0.5fr
    ) minmax(0, 1fr);
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface);
  padding: 22px 24px;
  gap: 20px;
  margin-top: 28px;
}
.budget-summary > div {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.budget-summary > div > span {
  font-size: 10px;
  color: var(--muted);
}
.budget-summary strong {
  font-size: 12px;
  font-weight: 550;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.budget-summary .budget-total {
  text-align: right;
  border-left: 1px solid var(--border);
  padding-left: 15px;
}
.budget-summary .budget-total strong {
  font-size: 23px;
  letter-spacing: -0.7px;
  font-weight: 600;
  line-height: 1.1;
}
.budget-observation {
  font-size: 12px;
  color: var(--muted);
  margin: 18px 1px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-width: 1000px;
}
.budget-task-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 22px 0 17px;
}
.budget-task-toolbar > p {
  font-size: 11px;
  color: var(--muted);
}
.budget-task-toolbar .text-button {
  font-size: 10px;
  color: var(--muted);
}
.budget-task-toolbar svg {
  width: 13px;
  height: 13px;
}
.budget-table table {
  min-width: 850px;
  font-size: 11px;
}
.budget-table th {
  font-size: 10px;
  height: 38px;
}
.budget-table td {
  padding: 14px 13px;
  line-height: 1.6;
}
.budget-table th:first-child {
  min-width: 250px;
  width: 29%;
}
.budget-table th:nth-child(2),
.budget-table th:nth-child(3) {
  white-space: nowrap;
  min-width: 110px;
}
.budget-table th:nth-child(4) {
  min-width: 120px;
  text-align: right;
}
.budget-table th:nth-child(5) {
  width: 25%;
  min-width: 190px;
}
.budget-task-title {
  display: block;
  text-align: left;
  justify-content: flex-start;
  padding: 0;
  border: 0;
  background: transparent !important;
  line-height: 1.6;
  font-size: 11px;
  font-weight: 550;
  color: var(--text);
}
.add-budget-sub {
  display: flex;
  align-items: center;
  font-size: 9px;
  padding: 0;
  margin-top: 6px;
  color: var(--muted);
}
.add-budget-sub svg {
  width: 11px;
  height: 11px;
}
.budget-note-cell {
  font-size: 10px;
  color: var(--muted);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-width: 350px;
}
.amount-cell {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  white-space: nowrap;
}
.budget-sub-row {
  background: color-mix(in srgb, var(--background) 45%, var(--surface));
}
.budget-sub-row td {
  padding-top: 10px;
  padding-bottom: 10px;
  font-size: 10px;
  color: var(--muted);
}
.budget-sub-row td:first-child {
  position: relative;
  padding-left: 30px;
}
.budget-sub-row input[type="checkbox"] {
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
  width: 12px;
  height: 12px;
}
.budget-sub-row td:first-child .text-button {
  display: inline;
  font-size: 10px;
  line-height: 1.6;
  text-align: left;
  color: var(--text);
  padding: 0;
  font-weight: 400;
}
.budget-sub-indent {
  position: absolute;
  left: 12px;
  top: 13px;
  opacity: 0.5;
}
.done-text {
  text-decoration: line-through;
  color: var(--muted) !important;
}
.budget-total-line {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 30px;
  margin: 25px 2px;
  color: var(--muted);
  font-size: 12px;
}
.budget-total-line > strong {
  font-size: 24px;
  letter-spacing: -0.7px;
  color: var(--text);
  font-weight: 600;
}
.budget-money-note {
  font-size: 10px;
  line-height: 1.8;
  margin-top: 24px;
}
.gantt-toolbar {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 25px 0 20px;
}
.gantt-toolbar > div {
  margin-right: auto;
}
.gantt-toolbar h2 {
  font-size: 16px;
}
.gantt-toolbar p {
  font-size: 10px;
  color: var(--muted);
  margin-top: 6px;
}
.gantt-toolbar select {
  width: 150px;
  font-size: 11px;
  padding: 9px;
}
.gantt-toolbar button {
  font-size: 11px;
}
.gantt-toolbar button svg {
  width: 15px;
  height: 15px;
}
.gantt-scroll {
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  max-height: 70vh;
}
.gantt-sheet {
  width: var(--gantt-width);
  min-width: 100%;
}
.gantt-row {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 64px;
}
.gantt-label {
  position: sticky;
  left: 0;
  z-index: 3;
  background: var(--surface);
  padding: 12px 15px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  min-width: 0;
}
.gantt-label > strong {
  font-size: 11px;
  font-weight: 550;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.gantt-label > small {
  font-size: 9px;
  color: var(--muted);
  line-height: 1.5;
}
.gantt-track {
  position: relative;
  border-bottom: 1px solid var(--border);
  min-height: 64px;
}
.gantt-header {
  position: sticky;
  top: 0;
  z-index: 5;
  min-height: 43px;
  background: var(--background);
}
.gantt-header .gantt-label,
.gantt-header .gantt-track {
  min-height: 43px;
  background: var(--background);
}
.gantt-header .gantt-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
}
.gantt-tick {
  position: absolute;
  top: 15px;
  font-size: 9px;
  color: var(--muted);
  padding-left: 7px;
  white-space: nowrap;
}
.gantt-gridline {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: color-mix(in srgb, var(--border) 65%, var(--surface));
}
.gantt-today {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  border-left: 1px dashed var(--accent);
  opacity: 0.7;
  z-index: 1;
}
.gantt-bar {
  position: absolute;
  top: 19px;
  height: 27px;
  min-width: 3px;
  border: 0;
  background: color-mix(in srgb, var(--primary) 78%, var(--surface));
  color: #fff;
  border-radius: 5px;
  padding: 3px 8px;
  justify-content: flex-start;
  overflow: hidden;
  z-index: 2;
  box-shadow: 0 2px 5px #25223708;
}
.gantt-bar:hover {
  background: var(--primary);
}
.gantt-bar > span {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  font-size: 9px;
}
.gantt-sub {
  min-height: 50px;
}
.gantt-sub .gantt-label {
  padding-left: 30px;
  background: color-mix(in srgb, var(--background) 40%, var(--surface));
}
.gantt-sub .gantt-label strong {
  font-size: 10px;
  font-weight: 400;
}
.gantt-sub .gantt-track {
  min-height: 55px;
}
.gantt-sub .gantt-bar {
  top: 17px;
  height: 20px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--accent) 70%, var(--surface));
  color: #fff;
}
.gantt-sub .gantt-bar.completed {
  background: #668779;
}
.gantt-undated {
  position: absolute;
  left: 10px;
  top: 21px;
  color: var(--muted);
  font-size: 9px;
  font-style: italic;
  opacity: 0.7;
}
.gantt-print-heading {
  display: none;
}
@media (max-width: 1000px) {
  .budget-summary {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 20px;
  }
  .budget-summary .budget-total {
    border-left: 0;
    padding-left: 0;
    text-align: left;
  }
  .budget-summary > div > strong {
    font-size: 12px;
  }
  .budget-summary .budget-total strong {
    font-size: 23px;
  }
  .budget-counts {
    gap: 9px;
  }
  .budget-counts > div {
    gap: 7px;
    padding: 15px 12px;
  }
  .budget-counts strong {
    font-size: 21px;
  }
  .budget-counts > div > span:last-child {
    font-size: 9px;
  }
  .gantt-toolbar select {
    width: 120px;
  }
  .gantt-toolbar button {
    font-size: 10px;
    padding: 10px;
  }
  .gantt-toolbar h2 {
    font-size: 14px;
  }
  .gantt-row {
    grid-template-columns: 240px minmax(0, 1fr);
  }
}
@media (max-width: 600px) {
  .budget-counts {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .budget-counts > div {
    padding: 18px;
  }
  .budget-counts > div > span:last-child {
    font-size: 11px;
  }
  .budget-summary {
    padding: 18px;
    gap: 22px 18px;
  }
  .budget-summary > div > span {
    font-size: 9px;
  }
  .budget-summary > div > strong {
    font-size: 11px;
  }
  .budget-summary .budget-total strong {
    font-size: 21px;
  }
  .budget-back {
    gap: 7px;
    margin-bottom: 20px;
  }
  .budget-back .budget-state {
    font-size: 9px;
  }
  .budget-task-toolbar {
    align-items: flex-start;
  }
  .budget-task-toolbar > p {
    font-size: 10px;
    max-width: 180px;
  }
  .budget-task-toolbar .text-button {
    font-size: 9px;
    text-align: right;
  }
  .budget-total-line {
    margin: 19px 0;
  }
  .budget-total-line strong {
    font-size: 23px;
  }
  .budget-pagination {
    font-size: 9px;
  }
  .budget-pagination button {
    font-size: 9px;
    padding: 7px 10px;
  }
  .gantt-toolbar {
    flex-wrap: wrap;
    gap: 9px;
  }
  .gantt-toolbar > div {
    width: 100%;
    margin-bottom: 4px;
  }
  .gantt-toolbar select {
    width: 150px;
    flex: 1;
  }
  .gantt-scroll {
    max-height: 65vh;
  }
  .gantt-row {
    grid-template-columns: 170px minmax(0, 1fr);
  }
  .gantt-label {
    padding: 10px;
  }
  .gantt-label > strong {
    font-size: 10px;
  }
  .gantt-label > small {
    font-size: 8px;
  }
  .gantt-sub .gantt-label {
    padding-left: 19px;
  }
  .budget-money-note {
    font-size: 9px;
  }
}
@media print {
  body:has(.gantt-sheet) {
    background: white;
    color: #222;
  }
  body:has(.gantt-sheet) .sidebar,
  body:has(.gantt-sheet) .topbar,
  body:has(.gantt-sheet) .page-footer,
  body:has(.gantt-sheet) .heading-actions,
  body:has(.gantt-sheet) .budget-back,
  body:has(.gantt-sheet) .board-tabs,
  body:has(.gantt-sheet) .gantt-toolbar,
  body:has(.gantt-sheet) .view-hint,
  body:has(.gantt-sheet) #toast {
    display: none !important;
  }
  body:has(.gantt-sheet) .main {
    margin: 0;
    width: 100%;
  }
  body:has(.gantt-sheet) .content {
    padding: 0;
    max-width: none;
    min-height: 0;
  }
  body:has(.gantt-sheet) .page-heading h1 {
    font-size: 24px;
  }
  body:has(.gantt-sheet) .budget-summary {
    padding: 12px;
    margin: 14px 0;
    break-inside: avoid;
  }
  body:has(.gantt-sheet) .budget-observation {
    font-size: 10px;
  }
  .gantt-scroll {
    overflow: visible;
    max-height: none;
    border-radius: 0;
  }
  .gantt-sheet {
    width: 100% !important;
    min-width: 0;
  }
  .gantt-row {
    grid-template-columns: 190px minmax(0, 1fr);
    break-inside: avoid;
    min-height: 55px;
  }
  .gantt-label {
    position: static;
    padding: 8px;
  }
  .gantt-header {
    position: static;
  }
  .gantt-tick {
    font-size: 7px;
    padding-left: 3px;
    white-space: normal;
  }
  .gantt-bar {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
  .gantt-bar > span {
    display: none;
  }
  .gantt-label strong {
    font-size: 9px;
  }
  .gantt-label small {
    font-size: 8px;
  }
  .gantt-track {
    min-height: 55px;
  }
  .gantt-today {
    display: none;
  }
}
