.gantt-module{
    display:flex;
    flex-direction:column;
    gap:18px;
}

.gantt-header{
    background:white;
    border-radius:18px;
    padding:24px;
    box-shadow:0 6px 18px rgba(15,23,42,0.06);
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
}

.gantt-header h1{
    margin:0 0 8px 0;
    color:#0f172a;
}

.gantt-header p{
    margin:0;
    color:#64748b;
}


.gantt-filters{
    background:white;
    border-radius:18px;
    padding:18px;
    box-shadow:0 6px 18px rgba(15,23,42,0.06);
    display:flex;
    flex-wrap:wrap;
    gap:12px;
}

.gantt-filters input,
.gantt-filters select{
    padding:12px;
    border:1px solid #cbd5e1;
    border-radius:10px;
    min-width:220px;
}

.gantt-counters{
    display:grid;
    grid-template-columns:repeat(4, 1fr);
    gap:16px;
}

.gantt-counter{
    background:white;
    border-radius:18px;
    padding:20px;
    box-shadow:0 6px 18px rgba(15,23,42,0.06);
}

.gantt-counter span{
    display:block;
    color:#64748b;
    font-size:13px;
    margin-bottom:8px;
}

.gantt-counter strong{
    font-size:28px;
    color:#0f172a;
}

.gantt-chart-empty{
    background:white;
    border-radius:18px;
    padding:36px;
    box-shadow:0 6px 18px rgba(15,23,42,0.06);
    min-height:260px;
}

.gantt-chart-empty h2{
    margin-top:0;
    color:#0f172a;
}

.gantt-chart-empty p{
    color:#64748b;
}

.gantt-chart{

    background:white;

    border-radius:22px;

    box-shadow:
        0 10px 30px rgba(15,23,42,0.08),
        0 4px 10px rgba(15,23,42,0.04);

    display:flex;

    height:auto;
    max-height:78vh;
    min-height:260px;

    overflow:hidden;

    border:1px solid #e2e8f0;
}

.gantt-left{

    width:360px;
    min-width:360px;

    border-right:1px solid #e2e8f0;

    background:white;

    z-index:3;

    overflow:auto;
}
.gantt-left::-webkit-scrollbar{
    width:0;
    height:0;
}

.gantt-left-header{
    height:48px;
    padding:14px 16px;
    box-sizing:border-box;
    font-weight:800;
    color:#334155;
    background:#f8fafc;
    border-bottom:1px solid #e2e8f0;
    position:sticky;
    top:0;
}

.gantt-left-row{

    height:88px;

    padding:12px 16px;

    box-sizing:border-box;

    border-bottom:1px solid #eef2ff;

    display:flex;
    flex-direction:column;
    justify-content:center;

    gap:4px;

    transition:background 0.15s ease;
}

.gantt-left-row:hover{
    background:#f8fafc;
}

.gantt-left-row strong{
    font-size:13px;
    color:#0f172a;
}

.gantt-left-row span{
    font-size:12px;
    color:#475569;
}

.gantt-left-row small{
    font-size:11px;
    color:#64748b;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.gantt-timeline{
    flex:1;
    overflow:auto;
    position:relative;
}

.gantt-timeline-inner{
    position:relative;
    min-height:100%;
}

.gantt-days{
    height:48px;
    display:flex;
    position:sticky;
    top:0;
    z-index:2;
    background:#f8fafc;
    border-bottom:1px solid #e2e8f0;
}

.gantt-day{

    width:var(--day-width);
    min-width:var(--day-width);

    height:54px;

    font-size:11px;

    color:#475569;

    display:flex;
    align-items:center;
    justify-content:center;

    border-right:1px solid #e2e8f0;

    box-sizing:border-box;

    font-weight:700;

    background:white;
}

.gantt-day.weekend{
    background:#f1f5f9;
}

.gantt-body{
    position:relative;
    min-height:100%;
}

.gantt-day-bg{

    position:relative;

    float:left;

    width:var(--day-width);
    min-width:var(--day-width);

    height:100%;

    border-right:1px solid #f1f5f9;

    box-sizing:border-box;
}

.gantt-day-bg.weekend{
    background:#f8fafc;
}

.gantt-today-line{
    position:absolute;
    top:0;
    bottom:0;
    width:2px;
    background:#dc2626;
    z-index:4;
}

.gantt-bar{

    position:absolute;

    height:38px;

    border-radius:14px;

    padding:10px 14px;

    box-sizing:border-box;

    color:white;

    font-size:12px;
    font-weight:800;

    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;

    cursor:pointer;

    z-index:5;

    display:flex;
    align-items:center;

    box-shadow:
        0 10px 18px rgba(37,99,235,0.22),
        0 2px 6px rgba(37,99,235,0.12);

    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease;
}

.gantt-project-bar{
    background:linear-gradient(135deg, #2563eb, #1d4ed8);
}

.gantt-bar:hover{

    transform:translateY(-2px);

    box-shadow:
        0 14px 22px rgba(37,99,235,0.28),
        0 4px 8px rgba(37,99,235,0.14);
}

.gantt-left{
    position:sticky;
    left:0;
}

.gantt-days{
    z-index:10;
}

.gantt-timeline{
    overflow:auto;
    background:white;
}

.gantt-timeline::-webkit-scrollbar{
    height:14px;
    width:14px;
}

.gantt-timeline::-webkit-scrollbar-thumb{
    background:#cbd5e1;
    border-radius:999px;
}

.gantt-timeline::-webkit-scrollbar-track{
    background:#f8fafc;
}

.gantt-timeline{
    cursor:grab;
}

.gantt-timeline.dragging{
    cursor:grabbing;
    user-select:none;
}

.gantt-left-row{
    min-height:88px;
}
.gantt-left-row-employee{
    padding-left:34px;
    background:#fafafa;
}

.gantt-left-row-resource{
    padding-left:34px;
    background:#f8fafc;
}

.gantt-left-row-employee strong,
.gantt-left-row-resource strong{
    font-size:12px;
}

.gantt-left-row-employee span,
.gantt-left-row-resource span{
    font-size:11px;
}

.gantt-employee-bar{
    background:linear-gradient(135deg, #16a34a, #15803d);
    box-shadow:
        0 10px 18px rgba(22,163,74,0.20),
        0 2px 6px rgba(22,163,74,0.10);
}

.gantt-resource-bar{
    background:linear-gradient(135deg, #f97316, #ea580c);
    box-shadow:
        0 10px 18px rgba(249,115,22,0.20),
        0 2px 6px rgba(249,115,22,0.10);
}

.gantt-project-bar{
    background:linear-gradient(135deg, #2563eb, #1d4ed8);
}

.gantt-conflict-bar{
    background:linear-gradient(135deg, #dc2626, #991b1b) !important;
    box-shadow:
        0 10px 18px rgba(220,38,38,0.28),
        0 2px 6px rgba(220,38,38,0.14) !important;
}

.gantt-conflict-bar:hover{
    box-shadow:
        0 14px 22px rgba(220,38,38,0.35),
        0 4px 8px rgba(220,38,38,0.18) !important;
}

.gantt-side-panel{
    position:fixed;
    top:0;
    right:-420px;
    width:420px;
    max-width:92vw;
    height:100vh;
    background:white;
    z-index:100020;
    box-shadow:-12px 0 30px rgba(15,23,42,0.18);
    transition:right 0.2s ease;
    display:flex;
    flex-direction:column;
}

.gantt-side-panel.open{
    right:0;
}

.gantt-side-header{
    padding:22px;
    border-bottom:1px solid #e2e8f0;
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.gantt-side-header h2{
    margin:0;
    color:#0f172a;
}

.gantt-side-header button{
    width:38px;
    height:38px;
    border:none;
    border-radius:10px;
    background:#e5e7eb;
    color:#111827;
    font-size:24px;
    cursor:pointer;
}

.gantt-side-content{
    padding:22px;
    overflow:auto;
}

.gantt-side-content label{
    display:block;
    font-size:12px;
    font-weight:800;
    color:#64748b;
    text-transform:uppercase;
    letter-spacing:0.04em;
    margin-top:16px;
    margin-bottom:4px;
}

.gantt-side-content p{
    margin:0;
    padding:10px 12px;
    background:#f8fafc;
    border-radius:10px;
    color:#0f172a;
    font-weight:600;
}

.gantt-action-button{

    width:100%;

    padding:12px 16px;

    border:none;

    border-radius:12px;

    background:linear-gradient(
        135deg,
        #2563eb,
        #1d4ed8
    );

    color:white;

    font-weight:700;

    font-size:14px;

    cursor:pointer;

    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;

    margin-bottom:12px;

    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease;
}

.gantt-danger-button{
    background:linear-gradient(
        135deg,
        #dc2626,
        #991b1b
    ) !important;
}

.gantt-danger-button:hover{
    box-shadow:
        0 8px 18px rgba(220,38,38,0.25),
        0 2px 6px rgba(220,38,38,0.15) !important;
}

.gantt-action-button:hover{

    transform:translateY(-1px);

    box-shadow:
        0 8px 18px rgba(37,99,235,0.25),
        0 2px 6px rgba(37,99,235,0.15);
}

.gantt-action-button i{
    font-size:13px;
}

.gantt-side-panel{
    position:fixed;
    top:0;
    right:-420px;
    width:420px;
    max-width:92vw;
    height:100vh;
    background:white;
    z-index:100020;
    box-shadow:-12px 0 30px rgba(15,23,42,0.18);
    transition:right 0.2s ease;
    display:flex;
    flex-direction:column;
}

.gantt-side-panel.open{
    right:0;
}

.gantt-side-header{
    padding:22px;
    border-bottom:1px solid #e2e8f0;
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.gantt-side-header h2{
    margin:0;
    color:#0f172a;
}

.gantt-side-header button{
    width:38px;
    height:38px;
    border:none;
    border-radius:10px;
    background:#e5e7eb;
    color:#111827;
    font-size:24px;
    cursor:pointer;
}

.gantt-side-content{
    padding:22px;
    overflow:auto;
}

.gantt-side-content label{
    display:block;
    font-size:12px;
    font-weight:800;
    color:#64748b;
    text-transform:uppercase;
    letter-spacing:0.04em;
    margin-top:16px;
    margin-bottom:4px;
}

.gantt-side-content p{
    margin:0;
    padding:10px 12px;
    background:#f8fafc;
    border-radius:10px;
    color:#0f172a;
    font-weight:600;
}

.gantt-zoom-buttons{
    display:flex;
    gap:8px;
    margin-right:10px;
}

.gantt-zoom-buttons button{
    background:#e5e7eb;
    color:#334155;
}

.gantt-zoom-buttons button.active{
    background:#2563eb;
    color:white;
}

.gantt-zoom-buttons button{

    display:flex;
    align-items:center;
    gap:8px;
}

.gantt-zoom-buttons button i{
    font-size:13px;
}
.gantt-weeks{
    background:#f8fafc;
}

.gantt-week{

    height:54px;

    display:flex;
    align-items:center;
    justify-content:center;

    border-right:1px solid #e2e8f0;

    font-size:12px;
    font-weight:800;

    color:#334155;

    background:
        linear-gradient(
            180deg,
            #f8fafc,
            #eef2ff
        );

    white-space:nowrap;
}
.gantt-week{
    font-size:11px;
    overflow:hidden;
    text-overflow:ellipsis;
    padding:0 6px;
    box-sizing:border-box;
}

.gantt-months{
    background:#f8fafc;
}

.gantt-month{

    height:54px;

    display:flex;
    align-items:center;
    justify-content:center;

    border-right:1px solid #e2e8f0;

    font-size:12px;
    font-weight:800;

    color:#334155;

    background:
        linear-gradient(
            180deg,
            #f8fafc,
            #eef2ff
        );

    white-space:nowrap;

    overflow:hidden;
    text-overflow:ellipsis;

    padding:0 8px;
    box-sizing:border-box;
}

.gantt-bar{
    user-select:none;
}

.gantt-bar-dragging{
    cursor:grabbing !important;
}

.gantt-bar-dragging *{
    cursor:grabbing !important;
}

.gantt-bar:active{
    opacity:0.92;
}

.gantt-bar{
    position:absolute;
    overflow:visible;
}

.gantt-bar-label{
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    width:100%;
    text-align:center;
    pointer-events:none;
}

.gantt-resize-handle{

    position:absolute;

    top:0;
    bottom:0;

    width:10px;

    z-index:10;

    opacity:0;

    transition:opacity 0.15s ease;
}

.gantt-bar:hover .gantt-resize-handle{
    opacity:1;
}

.gantt-resize-left{
    left:-2px;
    cursor:w-resize;
}

.gantt-resize-right{
    right:-2px;
    cursor:e-resize;
}

.gantt-resize-left::after,
.gantt-resize-right::after{

    content:"";

    position:absolute;

    top:6px;
    bottom:6px;

    width:4px;

    border-radius:999px;

    background:rgba(255,255,255,0.85);
}

.gantt-resize-left::after{
    left:2px;
}

.gantt-resize-right::after{
    right:2px;
}

.gantt-date-tooltip{
    position:fixed;
    z-index:100050;
    background:#0f172a;
    color:white;
    padding:8px 12px;
    border-radius:10px;
    font-size:12px;
    font-weight:800;
    box-shadow:0 10px 22px rgba(15,23,42,0.25);
    pointer-events:none;
    white-space:nowrap;
}

.gantt-dependency-layer{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    pointer-events:none;
    z-index:4;
}

.gantt-dependency-line{
    fill:none;
    stroke:#475569;
    stroke-width:2;
    marker-end:url(#gantt-arrow);
}

.gantt-dependency-line-shadow{
    fill:none;
    stroke:rgba(15,23,42,0.15);
    stroke-width:5;
}

.gantt-dependency-form{
    display:flex;
    flex-direction:column;
    gap:10px;
    margin-top:10px;
}

.gantt-dependency-form select{
    width:100%;
}

.gantt-dependency-list{
    margin-top:18px;
    display:flex;
    flex-direction:column;
    gap:10px;
}

.gantt-dependency-item{
    display:flex;
    align-items:center;
    justify-content:space-between;
    background:#f8fafc;
    border-radius:12px;
    padding:10px 12px;
}

.gantt-dependency-item small{
    display:block;
    color:#64748b;
    margin-top:4px;
}

.gantt-dependency-item button{
    width:34px;
    height:34px;
    border:none;
    border-radius:10px;
    background:#fee2e2;
    color:#b91c1c;
    cursor:pointer;
}

.gantt-dependency-empty{
    margin-top:14px;
    color:#64748b;
    font-size:13px;
}

.gantt-dependency-form{
    display:flex;
    flex-direction:column;
    gap:12px;
    margin-top:8px;
    margin-bottom:14px;
}

.gantt-dependency-form select{
    width:100%;
    box-sizing:border-box;
    border:1px solid #cbd5e1;
    border-radius:12px;
    padding:12px 14px;
    background:#f8fafc;
    color:#0f172a;
    font-size:14px;
    font-weight:600;
    outline:none;
}

.gantt-dependency-form select:focus{
    border-color:#2563eb;
    background:white;
    box-shadow:0 0 0 4px rgba(37,99,235,0.12);
}

.gantt-dependency-form button{
    width:100%;
    border:none;
    border-radius:12px;
    padding:12px 14px;
    background:linear-gradient(135deg, #2563eb, #1d4ed8);
    color:white;
    font-size:14px;
    font-weight:800;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
}

.gantt-dependency-form button:hover{
    transform:translateY(-1px);
    box-shadow:0 8px 18px rgba(37,99,235,0.25);
}

.gantt-dependency-empty{
    margin-top:12px;
    padding:12px;
    border-radius:12px;
    background:#f8fafc;
    color:#64748b;
    font-size:13px;
    font-weight:600;
}

.gantt-dependency-list{
    margin-top:14px;
    display:flex;
    flex-direction:column;
    gap:10px;
}

.gantt-dependency-item{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    background:#f8fafc;
    border:1px solid #e2e8f0;
    border-radius:14px;
    padding:12px;
}

.gantt-dependency-item strong{
    color:#0f172a;
    font-size:14px;
}

.gantt-dependency-item small{
    display:block;
    color:#64748b;
    margin-top:4px;
    font-size:12px;
}

.gantt-dependency-item button{
    width:36px;
    height:36px;
    min-width:36px;
    border:none;
    border-radius:12px;
    background:#fee2e2;
    color:#b91c1c;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
}

.gantt-dependency-item button:hover{
    background:#fecaca;
}

.gantt-view-modes{
    background:white;
    border-radius:18px;
    padding:14px 18px;
    box-shadow:0 6px 18px rgba(15,23,42,0.06);
    display:flex;
    flex-wrap:wrap;
    gap:10px;
}

.gantt-view-modes button{
    border:none;
    border-radius:12px;
    padding:12px 16px;
    background:#e5e7eb;
    color:#334155;
    font-weight:800;
    cursor:pointer;
    display:flex;
    align-items:center;
    gap:8px;
}

.gantt-view-modes button.active{
    background:linear-gradient(135deg, #2563eb, #1d4ed8);
    color:white;
}

.gantt-left-row-employee-group{
    background:#eef2ff;
    border-left:4px solid #2563eb;
}

.gantt-left-row-employee-group strong{
    color:#1d4ed8;
}

.gantt-employee-group-bar{
    background:linear-gradient(135deg, #6366f1, #4338ca);
    opacity:0.85;
}

.gantt-left-row-resource-group{
    background:#fff7ed;
    border-left:4px solid #ea580c;
}

.gantt-left-row-resource-group strong{
    color:#c2410c;
}

.gantt-resource-group-bar{
    background:linear-gradient(135deg, #f97316, #ea580c);
    opacity:0.88;
}


.gantt-visibility-toggles{
    display:flex;
    align-items:center;
    gap:10px;
    flex-wrap:wrap;
}

.gantt-visibility-toggles button{

    border:none;

    border-radius:12px;

    padding:12px 16px;

    background:#e2e8f0;

    color:#334155;

    font-size:14px;
    font-weight:800;

    cursor:pointer;

    display:flex;
    align-items:center;
    gap:8px;

    transition:all 0.18s ease;
}

.gantt-visibility-toggles button:hover{
    transform:translateY(-1px);
}

.gantt-visibility-toggles button.active{
    color:#0f172a;
    box-shadow:0 6px 16px rgba(15,23,42,0.08);
}

.gantt-visibility-toggles button:nth-child(1).active{
    background:#dbeafe;
    color:#1d4ed8;
}

.gantt-visibility-toggles button:nth-child(2).active{
    background:#dcfce7;
    color:#15803d;
}

.gantt-visibility-toggles button:nth-child(3).active{
    background:#ffedd5;
    color:#ea580c;
}

.gantt-visibility-toggles button:nth-child(4).active{
    background:#fee2e2;
    color:#dc2626;
}


.gantt-fullscreen .gantt-chart{
    height:calc(100vh - 360px);
    max-height:none;
}

.gantt-fullscreen .gantt-header{
    position:sticky;
    top:0;
    z-index:20;
}

.gantt-fullscreen .gantt-header,
.gantt-fullscreen .gantt-filters,
.gantt-fullscreen .gantt-toolbar,
.gantt-fullscreen .gantt-counters{
    flex-shrink:0;
}

.gantt-fullscreen .gantt-chart{
    flex:1;
    height:auto !important;
    max-height:none !important;
    min-height:0 !important;
}

.gantt-fullscreen .gantt-timeline{
    height:100%;
}

.gantt-fullscreen .gantt-left{
    height:100%;
}

.gantt-fullscreen .gantt-body{
    min-height:100%;
}


body:has(.gantt-fullscreen) .content{
    overflow:visible;
}

body:has(.gantt-fullscreen) #schedule{
    position:static !important;
}

body:has(.gantt-fullscreen) #harmonogram-root{
    position:static !important;
}

.gantt-fullscreen .gantt-chart{
    width:100%;
    overflow:hidden;
}

.gantt-fullscreen .gantt-timeline{
    overflow:auto;
}

.gantt-body-fullscreen{
    overflow:hidden !important;
}

#harmonogram-fullscreen-root{
    position:fixed;
    inset:0;
    z-index:99990;
    background:#eef2ff;
}

#harmonogram-fullscreen-root .gantt-fullscreen{
    width:100vw;
    height:100vh;
    margin:0;
    padding:20px;
    box-sizing:border-box;
    display:flex;
    flex-direction:column;
    overflow:hidden;
}

#harmonogram-fullscreen-root .gantt-header,
#harmonogram-fullscreen-root .gantt-filters,
#harmonogram-fullscreen-root .gantt-toolbar,
#harmonogram-fullscreen-root .gantt-counters{
    flex-shrink:0;
}

#harmonogram-fullscreen-root .gantt-chart{
    flex:1;
    min-height:0 !important;
    height:auto !important;
    max-height:none !important;
    width:100% !important;
    overflow:hidden;
}

#harmonogram-fullscreen-root .gantt-left{
    height:100%;
}

#harmonogram-fullscreen-root .gantt-timeline{
    height:100%;
    overflow:auto !important;
}

#harmonogram-fullscreen-root .gantt-body{
    min-height:100%;
}

.gantt-toolbar-modern{
    display:flex;
    align-items:center;
    gap:18px;
    flex-wrap:wrap;
}

.gantt-zoom-switch{
    display:flex;
    align-items:center;
    background:#e2e8f0;
    border-radius:16px;
    padding:4px;
    gap:4px;
}

.gantt-zoom-switch button{

    border:none;

    background:transparent;

    color:#334155;

    border-radius:12px;

    padding:12px 16px;

    font-size:14px;
    font-weight:800;

    cursor:pointer;

    display:flex;
    align-items:center;
    gap:8px;

    transition:all 0.18s ease;
}

.gantt-zoom-switch button.active{
    background:linear-gradient(135deg, #2563eb, #1d4ed8);
    color:white;
    box-shadow:0 4px 12px rgba(37,99,235,0.25);
}

.gantt-toolbar-main-actions{
    display:flex;
    align-items:center;
    gap:10px;
}

.gantt-toolbar-main-actions button{

    border:none;

    border-radius:14px;

    padding:12px 18px;

    background:white;

    color:#334155;

    font-size:14px;
    font-weight:800;

    cursor:pointer;

    display:flex;
    align-items:center;
    gap:8px;

    box-shadow:0 4px 12px rgba(15,23,42,0.06);

    transition:all 0.18s ease;
}

.gantt-toolbar-main-actions button:hover{
    transform:translateY(-1px);
}

.gantt-toolbar-mini-actions{
    display:flex;
    align-items:center;
    gap:10px;
    margin-left:auto;
}

.gantt-toolbar-mini-actions button{

    width:46px;
    height:46px;

    border:none;

    border-radius:14px;

    background:white;

    color:#334155;

    cursor:pointer;

    display:flex;
    align-items:center;
    justify-content:center;

    font-size:16px;

    box-shadow:0 4px 12px rgba(15,23,42,0.06);

    transition:all 0.18s ease;
}

.gantt-toolbar-mini-actions button:hover{
    transform:translateY(-1px);
    background:#f8fafc;
}

.gantt-toolbar{
    background:white;
    border-radius:20px;
    padding:16px 18px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    box-shadow:0 8px 24px rgba(15,23,42,0.06);
    flex-wrap:wrap;
}

.gantt-toolbar .gantt-view-modes{
    margin-right:auto;
}

.gantt-toolbar .gantt-visibility-toggles{
    margin-left:auto;
}

.gantt-task-bar{
    background:linear-gradient(135deg, #7c3aed, #5b21b6);
    box-shadow:
        0 10px 18px rgba(124,58,237,0.22),
        0 2px 6px rgba(124,58,237,0.12);
}

.gantt-left-row-task{
    padding-left:34px;
    background:#faf5ff;
}

.gantt-left-row-task strong{
    font-size:12px;
}

.gantt-left-row-task span{
    font-size:11px;
}
/* PROJEKTY */

.gantt-visibility-toggles button:nth-child(1).active{
    background:#dbeafe;
    color:#1d4ed8;
}

/* PRACOWNICY */

.gantt-visibility-toggles button:nth-child(2).active{
    background:#dcfce7;
    color:#15803d;
}

/* ZASOBY */

.gantt-visibility-toggles button:nth-child(3).active{
    background:#ffedd5;
    color:#ea580c;
}

/* ZADANIA */

.gantt-visibility-toggles button:nth-child(4).active{
    background:#ede9fe;
    color:#6d28d9;
}

/* KONFLIKTY */

.gantt-visibility-toggles button:nth-child(5).active{
    background:#fee2e2;
    color:#dc2626;
}

.gantt-task-employee-bar{
    background:linear-gradient(135deg, #22c55e, #16a34a);
    box-shadow:
        0 10px 18px rgba(34,197,94,0.20),
        0 2px 6px rgba(34,197,94,0.10);
}

.gantt-task-resource-bar{
    background:linear-gradient(135deg, #fb923c, #f97316);
    box-shadow:
        0 10px 18px rgba(251,146,60,0.20),
        0 2px 6px rgba(251,146,60,0.10);
}

.gantt-left-row-task-employee{
    padding-left:58px;
    background:#f0fdf4;
}

.gantt-left-row-task-resource{
    padding-left:58px;
    background:#fff7ed;
}

.gantt-left-row-task-employee strong,
.gantt-left-row-task-resource strong{
    font-size:12px;
}

.gantt-left-row-task-employee span,
.gantt-left-row-task-resource span{
    font-size:11px;
}

.gantt-left-header-actions{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:8px;
}

.gantt-left-header-actions div{
    display:flex;
    gap:4px;
}

.gantt-left-header-actions button{
    width:24px;
    height:24px;
    border:none;
    border-radius:7px;
    background:#e2e8f0;
    color:#0f172a;
    font-weight:900;
    cursor:pointer;
    padding:0;
}

.gantt-left-header-actions button:hover{
    background:#cbd5e1;
}

.gantt-collapse-button{
    width:22px;
    height:22px;
    border:none;
    border-radius:6px;
    background:#e2e8f0;
    color:#334155;
    font-size:11px;
    font-weight:900;
    cursor:pointer;
    padding:0;
    margin-right:6px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
}

.gantt-collapse-button:hover{
    background:#cbd5e1;
}

.gantt-collapse-spacer{
    display:inline-block;
    width:28px;
}

.gantt-counter-clickable{
    cursor:pointer;
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease;
}

.gantt-counter-clickable:hover{
    transform:translateY(-2px);
    box-shadow:
        0 10px 22px rgba(15,23,42,0.14),
        0 4px 8px rgba(15,23,42,0.08);
}

.gantt-conflicts-box{
    width:1100px;
    max-width:95vw;
}

.gantt-conflicts-table{
    margin-top:10px;
}

.gantt-conflicts-table td{
    vertical-align:top;
    line-height:1.45;
}

.gantt-conflicts-table th{
    white-space:nowrap;
}
.gantt-search-match{
    outline:4px solid #facc15;
    outline-offset:3px;
    box-shadow:
        0 0 0 6px rgba(250,204,21,0.25),
        0 12px 24px rgba(15,23,42,0.22) !important;
}

.gantt-search-match .gantt-bar-label{
    text-decoration:underline;
}

.gantt-search-wrapper{
    position:relative;
    display:flex;
    align-items:center;
}

.gantt-search-wrapper input{
    padding-right:42px !important;
}

.gantt-search-clear{

    position:absolute;

    right:10px;

    width:24px;
    height:24px;

    border:none;

    border-radius:50%;

    background:#e2e8f0;

    color:#475569;

    font-size:18px;
    font-weight:700;

    cursor:pointer;

    display:flex;
    align-items:center;
    justify-content:center;

    padding:0;
}

.gantt-search-clear:hover{
    background:#cbd5e1;
    color:#0f172a;
}

.calendar-tabs{

    display:flex;
    gap:10px;

    margin-bottom:20px;
    flex-wrap:wrap;
}

.calendar-tab{

    background:#e5e7eb;
    color:#374151;

    border:none;

    padding:12px 18px;

    border-radius:10px;

    cursor:pointer;

    font-weight:700;
}

.calendar-tab.active{

    background:#2563eb;
    color:white;
}

.gantt-left-row-selected{
    background:#e0f2fe !important;
    border-left:4px solid #0284c7;
}

.gantt-left-row-selected strong,
.gantt-left-row-selected span,
.gantt-left-row-selected small{
    color:#075985 !important;
}

.gantt-selected-row-bg{
    position:absolute;
    left:0;
    right:0;
    background:rgba(224,242,254,0.55);
    border-top:1px solid rgba(2,132,199,0.25);
    border-bottom:1px solid rgba(2,132,199,0.25);
    z-index:1;
    pointer-events:none;
}

.gantt-selected-bar{
    outline:4px solid rgba(2,132,199,0.45);
    outline-offset:3px;
    box-shadow:
        0 0 0 6px rgba(14,165,233,0.18),
        0 14px 24px rgba(15,23,42,0.22) !important;
}

.gantt-toolbar-button-active{
    background:#2563eb !important;
    color:white !important;
    border-color:#2563eb !important;
}