/*@003_001_001*/

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #f4f3f0;
  color: #2b2a28;
}

#linebalance-aplikacja {
  display: flex;
  flex-direction: column;
  height: 100vh;
  box-sizing: border-box;
  padding: 12px 16px 16px 16px;
  gap: 8px;
}

/*@003_002_001*/
.linebalance-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  border-bottom: 1px solid #d9d8d3;
  padding-bottom: 6px;
  position: relative;
}

.linebalance-menu-pozycja {
  position: relative;
}

.linebalance-menu-przycisk {
  background: none;
  border: none;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 13px;
  border-radius: 4px;
}

.linebalance-menu-przycisk:hover {
  background: #e9e8e3;
}

.linebalance-menu-lista {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  border: 1px solid #d9d8d3;
  border-radius: 4px;
  z-index: 20;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  min-width: 200px;
  z-index: 10;
  padding: 4px;
}

.linebalance-menu-lista-otwarta {
  display: flex;
}

.linebalance-menu-lista button {
  text-align: left;
  background: none;
  border: none;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 13px;
  border-radius: 3px;
}

.linebalance-menu-lista button:hover:not(:disabled) {
  background: #ecebe6;
}

.linebalance-menu-lista button:disabled {
  color: #b6b5b0;
  cursor: not-allowed;
}

/*@003_015_001*/
.linebalance-menu-lista button.linebalance-widok-aktywny {
  font-weight: bold;
  background: #ecebe6;
}

.linebalance-menu-lista button.linebalance-widok-aktywny::before {
  content: '✓ ';
}

.linebalance-wiersz-podzialki {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
}

.linebalance-wersja-etykieta {
  font-size: 11px;
  color: #898781;
}

/*@003_016_001*/
.linebalance-przelacznik-jezyka {
  margin-left: auto;
  display: flex;
  gap: 2px;
}

.linebalance-przelacznik-jezyka button {
  border: 1px solid #d9d8d3;
  background: #ffffff;
  border-radius: 3px;
  font-size: 11px;
  padding: 2px 8px;
  cursor: pointer;
}

.linebalance-przelacznik-jezyka button.linebalance-jezyk-aktywny {
  background: #2a78d6;
  color: #ffffff;
  border-color: #2a78d6;
  font-weight: bold;
}

/*@003_017_001*/
.linebalance-status-logowania {
  font-size: 11px;
  color: #898781;
}

/*@003_022_001*/
.linebalance-nazwa-projektu-pod-diagramem {
  font-size: 13px;
  font-weight: 600;
  color: #3b3a37;
  text-align: center;
  flex: 1 1 0;
  min-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/*@003_023_001*/

/*@003_003_001*/
.linebalance-okno-modalne {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 50;
  align-items: center;
  justify-content: center;
}

/*@003_018_001*/
#okno-modal-generyczny {
  /* Wyzszy z-index niz reszta modali (Uzgodnienie 07.21.01) - to okno bywa
     wywolywane Z WEWNATRZ innych paneli (np. potwierdzenie publikacji
     projektu z panelu Projektow), wiec musi zawsze wyladowac NA WIERZCHU,
     niezaleznie od kolejnosci w DOM. */
  z-index: 60;
}

.linebalance-okno-modalne-tresc {
  background: #ffffff;
  border-radius: 6px;
  padding: 16px;
  width: 520px;
  max-width: 90vw;
  max-height: 85vh;
  overflow-y: auto;
  box-sizing: border-box;
}

.linebalance-okno-modalne-tresc textarea {
  width: 100%;
  box-sizing: border-box;
  font-family: monospace;
  font-size: 12px;
}

.linebalance-okno-modalne-przyciski {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 8px;
}

.linebalance-komunikat-bledu {
  color: #d03b3b;
  font-size: 13px;
}

.linebalance-okno {
  background: #ffffff;
  border: 1px solid #d9d8d3;
  border-radius: 6px;
  padding: 12px;
  overflow: auto;
}

#okno-diagramu {
  flex: 1 1 55%;
  min-height: 160px;
  overflow: auto;
  position: relative;
}

.linebalance-diagram-centrujacy {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-width: 100%;
}

/*@003_021_001*/

/*@003_004_001*/
#linebalance-uchwyt {
  height: 8px;
  margin: -4px 0;
  cursor: row-resize;
  position: relative;
  z-index: 5;
}

#linebalance-uchwyt::after {
  content: '';
  display: block;
  height: 3px;
  margin: 2.5px auto;
  width: 60px;
  background: #d9d8d3;
  border-radius: 2px;
}

#okno-tabeli {
  flex: 1 1 45%;
  min-height: 140px;
  padding: 0;
  display: flex;
  flex-direction: column;
}

/*@003_005_001*/
.linebalance-tabela-wrapper {
  overflow: auto;
  flex: 1;
}

table#tabela-czynnosci {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 13px;
}

table#tabela-czynnosci th,
table#tabela-czynnosci td {
  border: 1px solid #e5e4df;
  padding: 4px 8px;
  text-align: left;
}

table#tabela-czynnosci thead th {
  position: sticky;
  top: 0;
  background: #ecebe6;
  z-index: 2;
}

.linebalance-pole-nazwa,
.linebalance-pole-nazwa-puste {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid transparent;
  font-size: 13px;
  padding: 2px 4px;
}

.linebalance-pole-czas,
.linebalance-pole-czas-puste {
  width: 70px;
  border: 1px solid transparent;
  font-size: 13px;
  padding: 2px 4px;
}

.linebalance-pole-kategoria,
.linebalance-pole-typ,
.linebalance-pole-kategoria-puste,
.linebalance-pole-typ-puste,
.linebalance-pole-stanowisko-puste {
  font-size: 12px;
  border: 1px solid transparent;
}

.linebalance-pole-nazwa:hover,
.linebalance-pole-czas:hover,
.linebalance-pole-kategoria:hover,
.linebalance-pole-typ:hover {
  border-color: #c7c6c0;
}

.linebalance-wiersz-pusty {
  color: #b6b5b0;
}

.linebalance-komorka-akcje {
  white-space: nowrap;
}

.linebalance-przycisk-akcji {
  border: 1px solid #d9d8d3;
  background: #ffffff;
  border-radius: 3px;
  cursor: pointer;
  font-size: 11px;
  padding: 2px 5px;
  margin-right: 2px;
}

.linebalance-przycisk-akcji:hover {
  background: #ecebe6;
}

.linebalance-przycisk-usun {
  color: #d03b3b;
}

tr.linebalance-podswietlone-wiersz {
  background: #fff2cc;
}

/*@003_006_001*/
td.linebalance-komorka-zaznaczona {
  background: #dce8fa;
  outline: 1px solid #2a78d6;
  outline-offset: -1px;
}

/*@003_007_001*/
.linebalance-okno-kolory-tresc {
  width: 900px;
  max-width: 95vw;
}

.linebalance-kolory-naglowek-sekcji {
  font-weight: bold;
  font-size: 12px;
  color: #52514e;
  margin: 12px 0 4px 0;
  border-bottom: 1px solid #e5e4df;
  padding-bottom: 2px;
}

.linebalance-lista-kolorow {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.linebalance-wiersz-koloru {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 0;
}

.linebalance-etykieta-koloru {
  flex: 1;
  font-size: 13px;
}

.linebalance-swatch-kolor {
  width: 32px;
  height: 24px;
  padding: 0;
  border: 1px solid #d9d8d3;
  border-radius: 3px;
  cursor: pointer;
}

.linebalance-pole-hex {
  width: 70px;
  font-family: monospace;
  font-size: 12px;
}

.linebalance-swatch-dziedziczy {
  font-size: 12px;
  color: #b6b5b0;
  font-style: italic;
}

.linebalance-etykieta-stanowiska {
  font-size: 11px;
  fill: #52514e;
}

/*@003_008_001*/
.linebalance-os-y-linia {
  stroke: #898781;
  stroke-width: 1;
}

.linebalance-os-y-kreska {
  stroke: #898781;
  stroke-width: 1;
}

.linebalance-os-y-siatka {
  stroke: #e5e4df;
  stroke-width: 1;
  stroke-dasharray: 2, 3;
}

.linebalance-os-y-etykieta {
  font-size: 11px;
  fill: #898781;
}

/*@003_009_001*/
.linebalance-takt-linia {
  stroke: #d03b3b;
  stroke-width: 2;
  stroke-dasharray: 6, 4;
}

.linebalance-takt-etykieta {
  font-size: 11px;
  font-weight: bold;
  fill: #d03b3b;
}

/*@003_019_001*/
.linebalance-takt-linia-drugorzedna {
  stroke: var(--text-muted, #898781);
  stroke-width: 1;
  stroke-dasharray: 2, 3;
}

.linebalance-takt-etykieta-drugorzedna {
  font-size: 10px;
  font-weight: normal;
  fill: var(--text-muted, #898781);
}

/*@003_010_001*/
rect.linebalance-pjo-duch {
  opacity: 0.6;
  pointer-events: none;
  stroke: #2b2a28;
  stroke-width: 2;
  stroke-dasharray: 4, 2;
}

rect.linebalance-wskaznik-wstawienia {
  fill: #2a78d6;
  pointer-events: none;
}

/*@003_011_001*/
#widok-kolumnowy {
  display: flex;
  gap: 12px;
  padding: 8px;
  overflow-x: auto;
}

.linebalance-kolumna-stanowiska {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 180px;
  flex: 1;
}

.linebalance-kolumna-naglowek {
  font-weight: bold;
  font-size: 13px;
  text-align: center;
  padding: 4px 0;
  border-bottom: 2px solid #d9d8d3;
  margin-bottom: 4px;
}

.linebalance-karta-czynnosci {
  background: #f9f9f7;
  border: 1px solid #e5e4df;
  border-left: 4px solid #999999;
  border-radius: 3px;
  padding: 6px 8px;
}

.linebalance-karta-nazwa {
  font-size: 13px;
  font-weight: 600;
}

.linebalance-karta-szczegoly {
  font-size: 11px;
  color: #898781;
  margin-top: 2px;
}

.linebalance-karta-klikalna {
  cursor: pointer;
}

.linebalance-karta-klikalna:hover {
  background: #f0f0ed;
  border-left-width: 6px;
}

/*@003_012_001*/
.linebalance-stanowisko-klikalne {
  cursor: pointer;
}

.linebalance-stanowisko-klikalne:hover {
  text-decoration: underline;
  text-decoration-style: dotted;
}

/*@003_013_001*/
.linebalance-wskaznik-cofnij {
  position: fixed;
  bottom: 16px;
  right: 16px;
  background: #2b2a28;
  color: #ffffff;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 12px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  z-index: 20;
}

.linebalance-wskaznik-cofnij:hover {
  background: #52514e;
}

/*@003_014_001*/
.linebalance-popup-szerokosci {
  position: absolute;
  background: #ffffff;
  border: 1px solid #d9d8d3;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  padding: 6px;
  display: flex;
  gap: 4px;
  z-index: 30;
}

.linebalance-popup-szerokosci input {
  width: 50px;
}

rect.linebalance-pjo {
  cursor: pointer;
}

rect.linebalance-podswietlone-pjo {
  stroke: #d03b3b;
  stroke-width: 3;
}

/*@003_020_001*/
.linebalance-belka-projektu {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 16px;
  padding: 6px 12px;
}

.linebalance-belka-skala {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  flex-shrink: 0;
}

.linebalance-belka-skala input[type="range"] {
  width: 100px;
}

/*@003_024_001*/
.linebalance-linia-pelna-szerokosc {
  height: 1px;
  background: #d8d6d0;
  margin: 16px 0;
}
