.gantt .grid-background {
    fill: none;
  }

  .gantt .schedule-readonly .handle,
  .gantt .schedule-readonly .handle-group {
    display: none;
  }
  .gantt .schedule-readonly .bar {
    fill: #64747b;
  }
  .gantt .schedule-readonly .bar-label {
    fill: #ffffff;
  }
  .gantt .schedule-readonly .bar-label.big {
    fill: #333333;
  }
  .gantt.schedule-saving {
    pointer-events: none;
    cursor: wait;
  }
  .gantt .grid-header {
    fill: #ffffff;
    stroke: #e0e0e0;
    stroke-width: 1.4;
  }
  .gantt .grid-row {
    fill: #ffffff;
  }
  .gantt .grid-row:nth-child(even) {
    fill: #f5f5f5;
  }
  .gantt .row-line {
    stroke: #ebeff2;
  }
  .gantt .tick {
    stroke: #e0e0e0;
    stroke-width: 0.2;
  }
  .gantt .tick.thick {
    stroke-width: 0.4;
  }
  .gantt .today-highlight {
    fill: #efdc7b;
    opacity: 0.5;
  }
  .gantt .arrow {
    fill: none;
    stroke: #0ea2bd;
    stroke-width: 1.4;
  }
  .gantt .bar {
    fill: #0ea2bd;
    stroke: #8D99A6;
    stroke-width: 0;
    transition: stroke-width 0.3s ease;
    user-select: none;
  }
  .gantt .bar-progress {
    fill: #ffa30c;
  }
  .gantt .bar-invalid {
    fill: transparent;
    stroke: #8D99A6;
    stroke-width: 1;
    stroke-dasharray: 5;
  }
  .gantt .bar-invalid ~ .bar-label {
    fill: #555;
  }
  .gantt .bar-label {
    fill: black;
    dominant-baseline: central;
    text-anchor: middle;
    font-size: 14px;
    font-weight: bold;
  }
  .gantt .bar-label.big {
    fill: #555;
    text-anchor: start;
  }
  .gantt .handle {
    fill: #ddd;
    cursor: ew-resize;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
  }
  .gantt .bar-wrapper {
    cursor: pointer;
    outline: none;
  }
  .gantt .bar-wrapper:hover .bar {
    fill: #a9e5ec;
  }
  .gantt .bar-wrapper:hover .bar-progress {
    fill: #ffa30c;
  }
  .gantt .bar-wrapper:hover .handle {
    visibility: visible;
    opacity: 1;
  }
  .gantt .bar-wrapper.active .bar {
    fill: #a9e5ec;
  }
  .gantt .bar-wrapper.active .bar-progress {
    fill: #ffa30c;
  }
  .gantt .lower-text, .gantt .upper-text {
    font-size: 12px;
    text-anchor: middle;
  }
  .gantt .upper-text {
    fill: #555;
  }
  .gantt .lower-text {
    fill: #333;
  }
  .gantt .hide {
    display: none;
  }
  
  .gantt-container {
    position: relative;
    overflow: auto;
    font-size: 12px;
  }
  .gantt-container .popup-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    background: #ffffff;
    border: 1px solid #b8c8ce;
    box-shadow: 0 4px 12px #0000001a;
    padding: 0;
    color: black;
    border-radius: 3px;
  }
  .gantt-container .popup-wrapper .title {
    border-bottom: 1px solid #dce5e9;
    padding: 10px;
  }
  .gantt-container .popup-wrapper .subtitle {
    padding: 10px;
    color: #42545d;
  }
  .gantt-container .popup-wrapper .pointer {
    position: absolute;
    height: 5px;
    margin: 0 0 0 -5px;
    border: 5px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.8);
  }


.details-container {
  width: 280px;
  max-width: calc(100vw - 48px);
  padding: 12px;
  font-size: small;

}
.details-container strong, .details-container span { display: block; overflow-wrap: anywhere; }
.details-container span { color: #42545d; margin-bottom: 4px; }
.details-container p { margin: 8px 0 0; }
.gantt .bar-wrapper:focus-visible .bar { stroke: #14252e; stroke-width: 3px; }
.gantt .bar-wrapper:focus-visible { outline: none; }
.gantt .bar-wrapper:focus-visible .handle { visibility: visible; opacity: 1; }
.gantt .schedule-readonly:hover .bar, .gantt .schedule-readonly.active .bar { fill: #42545d; }
.gantt .schedule-readonly .bar-progress { fill: #37604b; }
.app-schedule-review { color: #8a3900; font-size: 14px; font-weight: 600; }
.app-schedule-conflict-values { margin: 12px 0; display: grid; gap: 8px; font-size: 14px; }
.app-schedule-conflict-values dt { font-size: 13px; }
.app-schedule-conflict-values dd { margin: 2px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.app-schedule-draft-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.app-schedule-draft-actions button, #task-load-latest { min-height: 44px; }
#task-conflict p, #task-discard-title { font-size: 14px; line-height: 1.5; }
@media (prefers-reduced-motion: reduce) {
  .gantt .bar { transition: none; }
}

#project-schedule { min-width: 0; }
.app-schedule-filters { display: grid; grid-template-columns: minmax(160px, 2fr) minmax(120px, 1fr) minmax(120px, 1fr) 44px; align-items: end; gap: 12px; margin-bottom: 8px; }
.app-schedule-filters > div { min-width: 0; }
.app-schedule-filters .form-label { font-size: 14px; margin-bottom: 4px; }
.app-schedule-filters input, .app-schedule-filters select { min-width: 0; min-height: 44px; width: 100%; }
.app-schedule-filters select { font-size: 14px; }
.app-schedule-summary { display: grid; grid-template-columns: repeat(3, minmax(75px, 1fr)) minmax(0, 3fr); gap: 12px 20px; padding: 12px 0; margin: 0 0 16px; border-top: 1px solid #dce5e9; border-bottom: 1px solid #dce5e9; }
.app-schedule-summary > div { min-width: 0; }
.app-schedule-summary dt { font-size: 13px; font-weight: 500; color: #42545d; overflow-wrap: anywhere; }
.app-schedule-summary dd { font-size: 20px; font-variant-numeric: tabular-nums; margin: 4px 0 0; }
.app-schedule-next dd { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr); align-items: center; gap: 2px 12px; font-size: 14px; }
#schedule-next-record { min-width: 0; }
.app-schedule-next .app-schedule-task-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; min-height: 0; }
.app-schedule-next button.app-schedule-task-title, .app-schedule-next a.app-schedule-task-title { min-height: 44px; }
.app-schedule { background: #fff; border: 1px solid #dce5e9; border-radius: 6px; min-width: 0; }
.app-schedule > .card-header { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 12px 16px; border-bottom: 1px solid #dce5e9; }
.app-schedule > .card-body { padding: 16px; min-width: 0; }
.app-schedule-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin-left: auto; }
.app-schedule-actions a, .app-schedule-actions button { min-height: 44px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px; font-size: 14px; }
.app-schedule-toolbar, .app-schedule-chart-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.app-schedule-toolbar { justify-content: space-between; margin-bottom: 12px; }
.app-schedule-toolbar button, .app-schedule-toolbar select { min-height: 44px; }
.app-schedule .app-icon-button { min-width: 44px; min-height: 44px; flex-shrink: 0; }
.app-schedule-toolbar [aria-pressed="true"] { background: #087c8b; border-color: #087c8b; color: #fff; }
.app-schedule-chart-tools select { width: auto; min-width: 110px; }
.app-schedule [hidden] { display: none !important; }
.app-schedule-viewport { min-width: 0; max-width: 100%; overflow: hidden; }
.app-schedule-viewport .gantt-container { max-width: 100%; max-height: min(65vh, 600px); overflow: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.app-schedule-viewport .gantt { display: block; }
.app-schedule :focus-visible { outline: 3px solid #087c8b; outline-offset: 3px; }
.app-schedule-date-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.app-schedule-date-fields input { width: 100%; min-width: 0; }
.app-schedule-date-fields label { display: flex; align-items: flex-end; min-height: 3em; }
.app-schedule-editor-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 8px; }
.app-schedule-editor-actions button { min-height: 44px; }
#taskModal .modal-body { max-height: calc(100dvh - 120px); overflow-y: auto; }
#taskModal .modal-dialog { margin-left: auto; margin-right: auto; max-width: min(540px, calc(100% - 24px)); }
#taskModal textarea, #task-delete-name { overflow-wrap: anywhere; }
.app-schedule-list-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, 230px) 130px; align-items: center; gap: 12px 20px; padding: 12px 4px; border-bottom: 1px solid #dce5e9; }
.app-schedule-task-heading { min-width: 0; display: grid; gap: 2px; }
.app-schedule-task-title { appearance: none; background: none; border: 0; padding: 0; text-align: left; font: inherit; line-height: 1.5; overflow-wrap: anywhere; color: #087c8b; }
button.app-schedule-task-title, a.app-schedule-task-title { min-height: 44px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
span.app-schedule-task-title { color: #23333a; }
.app-schedule-task-dates { font-size: 14px; color: #42545d; }
.app-schedule-task-progress { display: flex; align-items: center; gap: 8px; font-size: 14px; font-variant-numeric: tabular-nums; }
.app-schedule-task-progress progress { width: 80px; height: 8px; accent-color: #087c8b; }
@media (max-width: 767px) {
  .app-schedule-filters { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 44px; gap: 8px; }
  .app-schedule-search { grid-column: 1 / -1; }
  .app-schedule-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .app-schedule-next { grid-column: 1 / -1; }
  .app-schedule > .card-body { padding: 12px; }
  .app-schedule-toolbar { align-items: flex-start; }
  .app-schedule-list-row { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; }
  .app-schedule-task-heading { grid-column: 1 / -1; }
  .app-schedule-task-dates { min-width: 0; overflow-wrap: anywhere; }
  .app-schedule-task-progress progress { width: 48px; }
}
@media (max-width: 359px) {
  .app-schedule-filters { grid-template-columns: minmax(0, 1fr) 44px; }
  .app-schedule-filters > div:nth-child(2) { grid-column: 1 / -1; }
  .app-schedule-date-fields { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .app-schedule-list-row { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 479px) {
  .app-schedule-editor-actions { display: grid; grid-template-columns: 44px minmax(0, 1fr) minmax(0, 1.35fr); align-items: stretch; }
  #task-editor-cancel { grid-column: 2; margin-left: 0 !important; }
  #updateNameBtn, #task-confirm-delete { grid-column: 3; overflow-wrap: anywhere; }
}


.gantt .schedule-milestone .bar,
.gantt .schedule-milestone .bar-progress {
  fill: transparent !important;
  stroke: none;
}
.gantt .schedule-milestone .handle-group { display: none; }
.gantt .schedule-milestone .milestone-marker {
  fill: #fff;
  stroke: #087f8c;
  stroke-width: 2;
}
.gantt .schedule-milestone.milestone-completed .milestone-marker { fill: #087f8c; }
.gantt .schedule-milestone:focus .milestone-marker { stroke: #182b35; stroke-width: 3; }
.app-schedule .modal-body { color: #24343d; }
.app-schedule .form-check-label { color: #24343d; }
.gantt .handle.progress { display: none; }
.app-schedule-viewport .gantt { touch-action: pan-x pan-y; }
.app-progress-editor { display: grid; gap: 12px; }
.app-progress-stepper { display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px; gap: 12px; align-items: center; }
.app-progress-stepper button { width: 48px; height: 48px; touch-action: manipulation; }
.app-progress-value { position: relative; min-width: 0; }
.app-progress-value input { min-height: 48px; width: 100%; padding-right: 36px; margin: 0 !important; text-align: center; font-size: 20px; font-variant-numeric: tabular-nums; }
.app-progress-value > span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; color: #42545d; }
.app-progress-range { appearance: none; -webkit-appearance: none; width: 100%; height: 48px; padding: 0; margin: 0; background: transparent; cursor: pointer; touch-action: pan-y; }
.app-progress-range::-webkit-slider-runnable-track { height: 8px; border-radius: 4px; background: linear-gradient(to right, #087c8b var(--progress-fill), #dce5e9 var(--progress-fill)); }
.app-progress-range::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 32px; height: 32px; margin-top: -12px; border: 3px solid #fff; border-radius: 50%; background: #087c8b; box-shadow: 0 0 0 2px #087c8b; }
.app-progress-range::-moz-range-track { height: 8px; background: #dce5e9; border-radius: 4px; }
.app-progress-range::-moz-range-progress { height: 8px; background: #087c8b; }
.app-progress-range::-moz-range-thumb { width: 28px; height: 28px; border: 3px solid #fff; border-radius: 50%; background: #087c8b; box-shadow: 0 0 0 2px #087c8b; }
.app-progress-presets { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.app-progress-presets button { min-height: 44px; padding: 6px 2px; font-size: 14px; touch-action: manipulation; }
.app-progress-presets [aria-pressed="true"] { background: #087c8b; color: #fff; border-color: #087c8b; }
.app-progress-list-button { min-width: 64px; min-height: 44px; font-variant-numeric: tabular-nums; }
.app-task-progress-heading { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 20px; }
.app-task-progress-heading p { flex: 1; min-width: 0; overflow-wrap: anywhere; margin: 0; }
#taskModal[data-editor-mode="progress"] [data-task-details] { display: none; }
#taskModal[data-editor-mode="progress"] .app-schedule-editor-actions { display: flex; justify-content: flex-end; }
.app-schedule-import { padding-block: 24px; min-width: 0; }
.app-import-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.app-import-heading h1 { font-size: 22px; }
.app-import-heading p { overflow-wrap: anywhere; margin-bottom: 0; }
.app-import-counts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-block: 24px; padding-block: 16px; border-block: 1px solid #d8e2e6; }
.app-import-counts dt { font-size: 14px; font-weight: 400; }
.app-import-counts dd { font-size: 20px; margin: 0; }
.app-import-table { overflow: auto; max-height: 65vh; background: #fff; border: 1px solid #d8e2e6; }
.app-import-table table { min-width: 1650px; }
.app-import-table thead th { position: sticky; top: 0; background: #edf4f6; color: #24343d; z-index: 1; }
.app-import-table th, .app-import-table td { padding: 12px 16px; }
.app-import-table td:nth-child(3) { min-width: 150px; word-break: normal; overflow-wrap: normal; }
.app-import-table td:nth-child(2) { min-width: 280px; max-width: 320px; overflow-wrap: anywhere; }
.app-import-table td:nth-child(8) { min-width: 220px; max-width: 280px; overflow-wrap: anywhere; }
.app-import-table td:nth-child(4) { min-width: 150px; }
.app-import-table td:last-child { min-width: 300px; }
.app-import-table td:nth-child(5), .app-import-table td:nth-child(6) { white-space: nowrap; }
.app-import-invalid { background: #fff5f4; }
.app-import-footer { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; padding-block: 20px; }
.app-import-footer .btn, .app-import-heading .btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.app-import-table:focus-visible { outline: 3px solid #087f8c; outline-offset: 2px; }
.app-import-changes { margin-top: 8px; font-size: 14px; }
.app-import-changes summary { color: #087f8c; cursor: pointer; min-height: 44px; padding-block: 10px; }
.app-import-changes dd { overflow-wrap: anywhere; }
.app-import-changes ins { text-decoration: none; font-weight: 600; }
@media (max-width: 575px) { .app-import-counts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
