* { margin: 0; padding: 0; box-sizing: border-box; }

.hidden { display: none !important; }

body {
    font-family: Arial, sans-serif;
    font-size: 8pt;
    background-color: #ffffff;
    color: #333;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

/* ============================================
   LOGIN OVERLAY
   ============================================ */
.login-overlay {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #000000 0%, #999999 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9000;
}

.login-box {
    background: white;
    border-radius: 12px;
    width: 360px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.login-header {
    background: linear-gradient(135deg, #000000 0%, #999999 100%);
    padding: 24px 24px 20px;
    text-align: center;
    position: relative;
}

.login-logo-bar {
    width: 48px; height: 4px;
    background: #eb3c24;
    border-radius: 2px;
    margin: 0 auto 12px;
}

.login-title { color: white; font-size: 16pt; font-weight: 700; margin-bottom: 4px; }
.login-subtitle { color: rgba(255,255,255,0.75); font-size: 9pt; }

.login-user-list {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 320px;
    overflow-y: auto;
}

.login-user-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border: 1.5px solid #cccccc;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    text-align: left;
    transition: all 0.15s ease;
    width: 100%;
}

.login-user-btn:hover { border-color: #0d9695; background: #f0fafa; }

.login-user-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #005a5f, #000000);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11pt;
    font-weight: bold;
    flex-shrink: 0;
}

.login-user-info { flex: 1; }
.login-user-name { font-size: 9pt; font-weight: bold; color: #222; }
.login-user-nik { font-size: 7.5pt; color: #999999; }

.login-info { padding: 16px; color: #999999; font-size: 8pt; text-align: center; line-height: 1.5; }

#login-step-pin, #login-step-set-pin { padding: 20px 24px 24px; }

.login-selected-user {
    text-align: center;
    font-size: 10pt;
    font-weight: bold;
    color: #222;
    margin-bottom: 14px;
    padding: 8px 12px;
    background: #d6d0b1;
    border-radius: 6px;
}

.login-pin-label { text-align: center; font-size: 8pt; color: #5f5f5f; margin-bottom: 12px; }

.pin-dots {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-bottom: 20px;
}

.pin-dots span {
    width: 14px; height: 14px;
    border-radius: 50%;
    border: 2px solid #cccccc;
    background: white;
    transition: all 0.15s ease;
}

.pin-dots span.filled { background: #005a5f; border-color: #005a5f; }

.pin-keypad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.pin-key {
    padding: 0; height: 44px;
    border: 1.5px solid #cccccc;
    border-radius: 8px;
    background: white;
    font-size: 14pt;
    font-weight: bold;
    color: #222;
    cursor: pointer;
    transition: all 0.1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pin-key:hover { background: #f0fafa; border-color: #0d9695; }
.pin-key:active { background: #d6d0b1; transform: scale(0.95); }
.pin-key-back { font-size: 13pt; color: #5f5f5f; }
.pin-key-ok { background: #005a5f; color: white; border-color: #005a5f; font-size: 10pt; }
.pin-key-ok:hover { background: #0d9695; }

.login-error { text-align: center; color: #eb3c24; font-size: 8pt; margin-bottom: 8px; font-weight: bold; }

.btn-link {
    background: none; border: none;
    color: #999999; font-size: 8pt; cursor: pointer;
    padding: 4px 0; display: block; margin: 0 auto;
    text-decoration: underline;
}

.btn-link:hover { color: #005a5f; }

/* ============================================
   MAIN UI
   ============================================ */
#main-ui { display: flex; flex-direction: column; position: fixed; top: 0; left: 0; right: 0; bottom: 0; }

.app-header {
    background: linear-gradient(135deg, #000000 0%, #999999 100%);
    color: white;
    padding: 0.6rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    flex-shrink: 0;
}

.app-title { font-size: 1.3rem; font-weight: 600; }

.header-user { display: flex; align-items: center; gap: 12px; font-size: 8.5pt; color: rgba(255,255,255,0.85); }

.btn-logout {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 7.5pt;
    cursor: pointer;
    transition: background 0.15s;
}

.btn-logout:hover { background: rgba(255,255,255,0.25); }

/* ============================================
   TABS
   ============================================ */
.tab-bar {
    display: flex;
    background-color: white;
    border-bottom: 2px solid #cccccc;
    padding: 0 2rem;
    flex-shrink: 0;
}

.tab-btn {
    background: none; border: none;
    padding: 0.75rem 1.5rem;
    font-size: 10pt; font-family: Arial, sans-serif; font-weight: bold;
    cursor: pointer; color: #5f5f5f;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s ease;
}

.tab-btn:hover { color: #005a5f; background-color: #d6d0b1; }
.tab-btn.active { color: #eb3c24; border-bottom-color: #eb3c24; font-weight: 600; }

/* ============================================
   TAB CONTENT
   ============================================ */
.tab-content { flex: 1; min-height: 0; padding: 0; overflow: hidden; display: none; flex-direction: column; gap: 1rem; }
.tab-content.active { display: flex; padding: 1.5rem 2rem; box-sizing: border-box; }
.tab-content.gantt-active { overflow: auto; }

/* ============================================
   TOOLBAR
   ============================================ */
.toolbar { display: flex; gap: 1rem; margin-bottom: 1rem; align-items: center; flex-wrap: wrap; flex-shrink: 0; }
.toolbar label { font-weight: bold; white-space: nowrap; }

/* ============================================
   BUTTONS
   ============================================ */
.btn, button {
    padding: 6px 14px;
    border-radius: 4px;
    font-family: Arial, sans-serif;
    font-size: 8.5pt;
    cursor: pointer;
    border: 1px solid #cccccc;
    background-color: white;
    color: #333;
    transition: all 0.15s ease;
}

.btn:hover, button:hover { background-color: #d6d0b1; }

.btn-primary, button.btn-primary {
    background-color: #005a5f;
    color: white;
    border-color: #005a5f;
}
.btn-primary:hover, button.btn-primary:hover { background-color: #0d9695; border-color: #0d9695; }

.btn-success, button.btn-success {
    background-color: #005a5f;
    color: white;
    border-color: #005a5f;
}
.btn-success:hover, button.btn-success:hover { background-color: #0d9695; border-color: #0d9695; }

.btn-secondary, button.btn-secondary {
    background-color: white;
    color: #5f5f5f;
    border-color: #cccccc;
}
.btn-secondary:hover, button.btn-secondary:hover { background-color: #d6d0b1; border-color: #999999; }

.btn-danger, button.btn-danger {
    background-color: #eb3c24;
    color: white;
    border-color: #eb3c24;
}
.btn-danger:hover, button.btn-danger:hover { background-color: #c92d18; }

.btn-warning, button.btn-warning {
    background-color: #d6d0b1;
    color: #333;
    border-color: #999999;
}
.btn-warning:hover, button.btn-warning:hover { background-color: #c5be9e; }

.btn-small, button.btn-small { padding: 3px 8px; font-size: 7.5pt; }

.btn-icon, button.btn-icon {
    padding: 4px 8px;
    font-size: 11pt;
    line-height: 1;
    border-radius: 4px;
    background: #d6d0b1;
    border-color: #999999;
    color: #333;
}
.btn-icon:hover, button.btn-icon:hover { background: #0d9695; color: white; border-color: #0d9695; }

/* ============================================
   INPUTS
   ============================================ */
input[type="text"], input[type="number"], input[type="date"],
input[type="email"], input[type="password"], select, textarea {
    width: 100%;
    padding: 5px 8px;
    border: 1px solid #cccccc;
    border-radius: 4px;
    font-family: Arial, sans-serif;
    font-size: 8.5pt;
    color: #333;
    background-color: white;
    transition: border-color 0.2s ease;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #0d9695;
    box-shadow: 0 0 0 2px rgba(13,150,149,0.15);
}

.input-with-btn { display: flex; gap: 6px; align-items: center; }

/* ============================================
   TABLE
   ============================================ */
.table-container { flex: 1; overflow-y: auto; min-height: 0; }

.data-table { width: 100%; border-collapse: collapse; }
.data-table thead { background-color: #d6d0b1; }

.data-table thead th {
    position: sticky; top: 0; z-index: 10;
    background-color: #d6d0b1; padding: 0.5rem;
    text-align: left; font-weight: bold; font-family: Arial, sans-serif;
    font-size: 8pt; color: #333; border-bottom: 2px solid #999999;
    white-space: nowrap; box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.data-table tbody tr { border-bottom: 1px solid #cccccc; transition: background-color 0.15s ease; cursor: pointer; }
.data-table tbody tr:hover { background-color: #f0fafa; }
.data-table tbody tr.selected { background-color: #d6d0b1; border-left: 4px solid #005a5f; }
.data-table tbody td { padding: 0.5rem; color: #333; font-family: Arial, sans-serif; font-size: 8pt; vertical-align: middle; }

/* ============================================
   FORM SECTION
   ============================================ */
.form-section { background: white; border-radius: 6px; padding: 12px 14px; box-shadow: 0 2px 8px rgba(0,0,0,0.07); margin-bottom: 10px; flex-shrink: 0; }
.form-section h4 { font-size: 9pt; font-weight: bold; color: #eb3c24; margin-bottom: 8px; padding-bottom: 5px; border-bottom: 1px solid #d6d0b1; text-transform: uppercase; letter-spacing: 0.4px; }
.form-group { margin-bottom: 8px; }
.form-group label { display: block; margin-bottom: 3px; font-weight: bold; font-size: 7.5pt; color: #5f5f5f; }

/* ============================================
   OFERTA LAYOUT
   ============================================ */
.oferta-layout { display: flex; gap: 14px; flex: 1; min-height: 0; overflow: hidden; }
.oferta-col { flex: 1; min-width: 0; overflow: hidden; min-height: 0; display: flex; flex-direction: column; }
.oferta-col:first-child { flex: 0 0 15%; min-width: 160px; }
.oferta-col:nth-child(2) { flex: 1; min-width: 180px; }
.oferta-col:last-child   { flex: 0 0 55%; min-width: 300px; }
.oferta-col:first-child .form-section { overflow-y: auto; flex: 1; }
.oferta-actions { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; flex-shrink: 0; }
.oferta-actions button { width: 100%; }

.auto-badge {
    display: inline-block;
    font-size: 6.5pt;
    font-weight: bold;
    background: #d6d0b1;
    color: #005a5f;
    border: 1px solid #999999;
    border-radius: 4px;
    padding: 1px 5px;
    vertical-align: middle;
    margin-left: 4px;
    letter-spacing: 0.3px;
}

/* Rabat */
.rabat-row { display: flex; align-items: center; gap: 10px; }
.rabat-row input { width: 80px !important; }
.rabat-preview { font-size: 8pt; color: #005a5f; font-weight: bold; white-space: nowrap; }

/* Nagłówek prawej kolumny oferty */
.oferta-right-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding-bottom: 5px;
    border-bottom: 1px solid #d6d0b1;
}

.oferta-right-header h4 {
    border: none;
    margin: 0;
    padding: 0;
}

/* ============================================
   QUILL
   ============================================ */
.ql-toolbar.ql-snow { border-radius: 4px 4px 0 0; border-color: #cccccc; font-family: Arial, sans-serif; font-size: 8pt; padding: 4px; flex-shrink: 0; }
.ql-container.ql-snow { border-radius: 0 0 4px 4px; border-color: #cccccc; font-family: Arial, sans-serif; font-size: 8pt; flex: 1; overflow-y: auto; min-height: 0; }
.ql-editor { min-height: 200px; font-size: 8pt; line-height: 1.5; }
#quill-editor { display: flex; flex-direction: column; flex: 1; min-height: 0; overflow: hidden; }

/* ============================================
   MODAL
   ============================================ */
.modal-overlay { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.5); align-items: center; justify-content: center; }
.modal-overlay:not(.hidden) { display: flex; }
.modal { background-color: white; padding: 0; border-radius: 8px; width: 90%; max-width: 520px; max-height: 90vh; overflow-y: auto; box-shadow: 0 4px 20px rgba(0,0,0,0.3); }
.modal-wide { max-width: 860px; }
.modal h3 { margin: 0; font-size: 11pt; font-weight: bold; color: white; background: linear-gradient(135deg, #000000 0%, #005a5f 100%); padding: 14px 20px; border-radius: 8px 8px 0 0; }
.modal-inner { padding: 16px 20px; }
.modal-header { background: linear-gradient(135deg, #000000 0%, #005a5f 100%); padding: 14px 20px; border-radius: 8px 8px 0 0; }
.modal-header h3 { background: none; padding: 0; border-radius: 0; }
.modal-body { padding: 16px 20px; }
.modal-footer { display: flex; gap: 8px; justify-content: flex-end; padding: 10px 20px 16px; border-top: 1px solid #cccccc; }
.modal-buttons { display: flex; gap: 8px; justify-content: flex-end; padding: 10px 20px 16px; border-top: 1px solid #cccccc; }

/* ============================================
   PRODUCT LINE BADGE
   ============================================ */
.pl-badge-row { display: flex; align-items: center; gap: 10px; background: #d6d0b1; border: 1px solid #cccccc; border-radius: 6px; padding: 8px 12px; margin-bottom: 14px; }
.pl-badge-label { font-size: 8pt; font-weight: bold; color: #5f5f5f; white-space: nowrap; }
.pl-badge { font-size: 9pt; font-weight: bold; color: white; background: linear-gradient(135deg, #000000 0%, #005a5f 100%); padding: 3px 12px; border-radius: 12px; flex: 1; }

/* ============================================
   ŚLEDZENIE FORM GRID
   ============================================ */
.sledzenie-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }

/* ============================================
   DETAILS GRID
   ============================================ */
.details-grid { display: grid; grid-template-columns: 190px 1fr; gap: 6px 12px; font-size: 8pt; }
.details-grid .dl { font-weight: bold; color: #5f5f5f; white-space: nowrap; }
.details-grid .dv { color: #222; }

/* ============================================
   SEARCH
   ============================================ */
#sledzenie-search { max-width: 360px; padding: 0.5rem; border: 2px solid #cccccc; border-radius: 8px; font-size: 8pt; transition: border-color 0.2s ease; width: auto; }
#sledzenie-search:focus { outline: none; border-color: #0d9695; }

/* ============================================
   ACTION BUTTONS
   ============================================ */
.action-btns { display: flex; gap: 4px; }
.action-btns button { padding: 3px 8px; font-size: 7.5pt; }

/* ============================================
   ADMINISTRACJA
   ============================================ */
#uprawnienia-list { display: flex; flex-direction: column; gap: 10px; }

.uprawnienie-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border: 1px solid #cccccc;
    border-radius: 6px;
    background: #d6d0b1;
    cursor: pointer;
    user-select: none;
}

.uprawnienie-row:hover { background: #f0fafa; border-color: #0d9695; }

.uprawnienie-label { flex: 1; font-size: 9pt; font-weight: bold; color: #333; }

.uprawnienie-row input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.uprawnienie-toggle-track {
    position: relative;
    width: 36px;
    height: 20px;
    flex-shrink: 0;
    background: #cccccc;
    border-radius: 10px;
    transition: background 0.2s;
}

.uprawnienie-toggle-track::after {
    content: '';
    position: absolute;
    top: 2px; left: 2px;
    width: 16px; height: 16px;
    background: white;
    border-radius: 50%;
    transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.uprawnienie-row input[type="checkbox"]:checked ~ .uprawnienie-toggle-track {
    background: #005a5f;
}

.uprawnienie-row input[type="checkbox"]:checked ~ .uprawnienie-toggle-track::after {
    transform: translateX(16px);
}

.admin-badge { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 7pt; font-weight: bold; }
.admin-badge.yes { background: #d6d0b1; color: #005a5f; border: 1px solid #999999; }
.admin-badge.no  { background: #f1f1f1; color: #999999; border: 1px solid #cccccc; }

.data-table thead th.sortable { cursor: pointer; user-select: none; }
.data-table thead th.sortable:hover { background-color: #c5be9e; }
.data-table thead th.sort-asc::after  { content: ' ▲'; font-size: 7pt; color: #eb3c24; }
.data-table thead th.sort-desc::after { content: ' ▼'; font-size: 7pt; color: #eb3c24; }

/* ============================================
   MENU KONTEKSTOWE
   ============================================ */
.context-menu {
    position: fixed;
    z-index: 5000;
    background: white;
    border: 1px solid #cccccc;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    padding: 4px 0;
    min-width: 130px;
}

.context-menu button {
    display: block;
    width: 100%;
    text-align: left;
    padding: 7px 16px;
    background: none;
    border: none;
    border-radius: 0;
    font-size: 8.5pt;
    font-weight: normal;
    color: #333;
    cursor: pointer;
}

.context-menu button:hover { background: #f0fafa; color: #005a5f; }
.context-menu .ctx-danger { color: #eb3c24; }
.context-menu .ctx-danger:hover { background: #fff0ee; }

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #d6d0b1; }
::-webkit-scrollbar-thumb { background: #999999; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #5f5f5f; }

/* ── Analityki ────────────────────────────────────────────── */
.analiza-item { border-left: 3px solid transparent; padding: 10px 14px; cursor: pointer; font-size: 9pt; transition: all .15s; }
.analiza-item:hover { background: #d6d0b1; border-left-color: #005a5f; }
.analiza-item.active { background: #d6d0b1; border-left-color: #eb3c24; font-weight: 600; color: #eb3c24; }

/* ── Toast ────────────────────────────────────────────────── */
.toast { background: #000000; color: #fff; padding: 10px 16px; border-radius: 6px; font-size: 9pt; pointer-events: all; box-shadow: 0 4px 12px rgba(0,0,0,.2); max-width: 320px; }
.toast.success { background: #005a5f; }
.toast.error   { background: #eb3c24; }

/* ── Oferta data islands (Quill) ──────────────────────────── */
.oferta-tabela-wrap {
  border: 1px solid #cccccc;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 12px;
  font-size: 9pt;
  user-select: none;
}
.oferta-tabela-header,
.oferta-row,
.oferta-tabela-footer {
  display: grid;
  grid-template-columns: 4% 13% 38% 8% 7% 10% 12%;
  gap: 0;
}
.oferta-tabela-header {
  background: #f8f9fa;
  border-bottom: 2px solid #cccccc;
  font-size: 8pt;
  font-weight: 700;
  color: #5f5f5f;
}
.oferta-tabela-header span,
.oferta-row-cell,
.oferta-tabela-footer span {
  padding: 5px 6px;
  border-right: 1px solid #cccccc;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.oferta-tabela-header span:last-child,
.oferta-tabela-footer span:last-child { border-right: none; }
.oferta-row { border-bottom: 1px solid #eeeeee; }
.oferta-row:nth-child(even) { background: #f8f9fa; }
.oferta-row:last-of-type { border-bottom: none; }
.oferta-tabela-footer {
  background: #f8f9fa;
  border-top: 2px solid #cccccc;
  font-weight: 700;
  font-size: 9pt;
  justify-content: end;
}
.oferta-footer-wartosc { text-align: right; }
.oferta-col-lp    { text-align: center; }
.oferta-col-jm    { text-align: center; font-size: 7.5pt; color: #5f5f5f; }
.oferta-col-ilosc,
.oferta-col-cena,
.oferta-col-wartosc { text-align: right; }

/* ── Oferta tabela footer label ───────────────────────────── */
.oferta-tabela-footer { display:flex; justify-content:flex-end; align-items:center; }
.oferta-footer-label { padding:5px 10px; font-weight:700; color:#5f5f5f; font-size:9pt; }
.oferta-footer-wartosc { padding:5px 10px; font-weight:700; font-size:9pt; min-width:100px; text-align:right; }

/* ── Frappe Gantt — schemat kolorystyczny Szarika ─────────── */
#gantt-container { background: #fff; padding: 8px; }

/* Siatka */
.gantt .grid-row    { fill: #ffffff !important; }
.gantt .grid-row:nth-child(even) { fill: #f8f9fa !important; }
.gantt .row-line    { stroke: #d6d0b1 !important; }
.gantt .tick        { stroke: #d6d0b1 !important; stroke-width: 1; }
.gantt .tick.thick  { stroke: #999999 !important; stroke-width: 2; }

/* Nagłówek dat */
.gantt .lower-text,
.gantt .upper-text  { fill: #5f5f5f !important; font-size: 11px !important; }
.gantt .upper-text  { fill: #000000 !important; font-weight: 600 !important; }

/* Linia dzisiejsza */
.gantt .today-highlight { fill: rgba(235,60,36,0.08) !important; }

/* Paski — domyślny kolor (Szarik teal) */
.gantt .bar          { fill: #005a5f !important; rx: 4; }
.gantt .bar-progress { opacity: 0.85 !important; }
.gantt .bar:hover    { fill: #0d9695 !important; }

/* Etykiety na paskach */
.gantt .bar-label { fill: #000000 !important; font-size: 10px !important; font-family: Arial, sans-serif !important; }

/* Strzałki zależności */
.gantt .arrow { stroke: #999999 !important; }

/* Kolory wg szansy — zharmonizowane z Szarikiem */
/* Kolory pasków Gantta zarządzane przez słownik szans w DB */

/* Tooltip */
#gantt-tooltip {
  font-family: Arial, sans-serif !important;
  background: #000000 !important;
  color: #ffffff !important;
  border-left: 3px solid #eb3c24 !important;
  border-radius: 4px !important;
  font-size: 8.5pt !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4) !important;
}

/* ── Gantt — tylko jeden zestaw pasków przewijania ─────────── */
#sledzenie-gantt-view {
  overflow-x: hidden !important;
  overflow-y: auto !important;
}
#gantt-scroll-flip {
  overflow-x: scroll !important;
  overflow-y: visible !important;
  scrollbar-width: none !important;
}
#gantt-scroll-flip::-webkit-scrollbar { display: none !important; }
#gantt-fake-scroll { background: #fff; }
#gantt-container {
  overflow-x: visible !important;
  overflow-y: visible !important;
}
#gantt-container .gantt-container {
  overflow: visible !important;
}
.gantt-container {
  overflow: visible !important;
}

/* ── Gantt — kamienie milowe (follow-up) ──────────────────── */
.gantt-milestone .bar {
  fill: #eb3c24 !important;
  opacity: 0.9 !important;
}
.gantt-milestone .bar-label { display: none !important; }
.gantt-milestone .bar-progress { display: none !important; }

/* ── Gantt — zablokuj przesuwanie paska, tylko zmiana daty końca ── */
.gantt .bar-wrapper { cursor: default !important; pointer-events: all !important; }
.gantt .bar-wrapper .bar { cursor: default !important; pointer-events: none !important; }
.gantt .bar-wrapper .bar-progress { pointer-events: none !important; }
.gantt .bar-wrapper .bar-label { pointer-events: none !important; }
.gantt .bar-wrapper .handle.left  { display: none !important; }
.gantt .bar-wrapper .handle.progress { display: none !important; }
/* Prawy uchwyt — zmiana daty realizacji */
.gantt .bar-wrapper .handle.right { display: block !important; cursor: ew-resize !important; pointer-events: all !important; }



/* ── Gantt — ukryj sticky side-header (Today + etykieta miesiąca) ── */
.gantt-container .side-header { display: none !important; }
.gantt-container .current-ball-highlight { display: none !important; }
.gantt-container .upper-text.current-upper { display: none !important; }


/* ── Gantt — uchwyt milestone ponad tab-content ─────────── */
#gantt-scroll-flip { position: relative; z-index: 1; }
#gantt-container   { position: relative; z-index: 1; }

/* ── Administracja — wyłącz sticky nagłówek tabeli ─────── */
#tab-administracja .data-table thead th {
  position: static !important;
}

/* ── Systemy RS — layout poziomy ────────────────────────── */
#tab-systemy-rs.active { flex-direction: row !important; padding: 0 !important; }
