/* Plugin: redmine_dflex
 * Modul: Hours — dashboard godzin projektu (gwarancja / ryczalt / platne).
 * Override Opale: wszedzie #wrapper + !important dla specyficznosci.
 */

#wrapper .dfx-hours-years {
  margin: 0 0 14px 0;
  font-size: 0.95em;
}
#wrapper .dfx-hours-years-label {
  color: #6b7280 !important;
  margin-right: 8px;
}
#wrapper a.dfx-hours-year {
  display: inline-block;
  padding: 3px 10px !important;
  margin: 0 4px 4px 0;
  border: 1px solid #d1d5db !important;
  border-radius: 12px;
  color: #374151 !important;
  text-decoration: none !important;
  background: #fff !important;
}
#wrapper a.dfx-hours-year.selected {
  background: #4aa171 !important;
  border-color: #4aa171 !important;
  color: #fff !important;
  font-weight: 600;
}

#wrapper .dfx-hours-limit {
  margin: 0 0 16px 0;
  padding: 12px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #f9fafb;
}
#wrapper .dfx-hours-limit-head {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  margin-bottom: 8px;
  color: #374151 !important;
}
#wrapper .dfx-hours-over { color: #b45309 !important; }
#wrapper .dfx-hours-nolimit { margin: 0 0 16px 0; }

#wrapper .dfx-bar {
  position: relative;
  height: 18px;
  background: #e5e7eb;
  border-radius: 9px;
  overflow: hidden;
}
#wrapper .dfx-bar-small { height: 14px; min-width: 120px; }
#wrapper .dfx-bar-fill {
  height: 100%;
  border-radius: 9px;
}
#wrapper .dfx-bar-ok   { background: #4aa171 !important; }
#wrapper .dfx-bar-warn { background: #d97706 !important; }
#wrapper .dfx-bar-over { background: #b91c1c !important; }
#wrapper .dfx-bar-text {
  position: absolute;
  top: 0; left: 0; right: 0;
  text-align: center;
  font-size: 11px;
  line-height: 18px;
  color: #111827 !important;
  font-weight: 600;
}
#wrapper .dfx-bar-small .dfx-bar-text { line-height: 14px; font-size: 10px; }

#wrapper table.dfx-hours-table th.dfx-col-num,
#wrapper table.dfx-hours-table td.dfx-col-num {
  text-align: right !important;
  white-space: nowrap;
}
#wrapper table.dfx-hours-table td.dfx-col-month { white-space: nowrap; }
#wrapper table.dfx-hours-table tr.dfx-row-empty td { color: #9ca3af !important; }
#wrapper table.dfx-hours-table td.dfx-cell-warranty { color: #6b7280 !important; }
#wrapper table.dfx-hours-table td.dfx-cell-paid     { color: #b45309 !important; font-weight: 600; }
#wrapper table.dfx-hours-table td.dfx-cell-settled  { color: #6b7280 !important; }
#wrapper table.dfx-hours-table td.dfx-cell-total    { font-weight: 600; }
#wrapper table.dfx-hours-table tr.dfx-row-total td {
  font-weight: 700 !important;
  border-top: 2px solid #d1d5db !important;
  background: #f3f4f6 !important;
}
#wrapper table.dfx-hours-table td.dfx-cell-paid a,
#wrapper table.dfx-hours-table td.dfx-cell-warranty a,
#wrapper table.dfx-hours-table td.dfx-cell-settled a,
#wrapper table.dfx-hours-table td.dfx-cell-total a { color: inherit !important; }
#wrapper table.dfx-hours-table td.dfx-col-bar { min-width: 140px; }
#wrapper .dfx-hours-missing { color: #b91c1c !important; font-style: italic; }

#wrapper table.dfx-hours-table th.dfx-th-help {
  cursor: help;
  text-decoration: underline dotted #9ca3af;
  text-underline-offset: 3px;
}
#wrapper .dfx-hours-limit-head span[title] { cursor: help; }
