.tooltip .tooltip-inner {
  background-color: #ff6600; /* Zmena farby pozadia */
  color: #fff; /* Zmena farby textu */
}

.tooltip.bs-tooltip-top .tooltip-arrow::before,
.tooltip.bs-tooltip-auto[data-popper-placement^="top"] .tooltip-arrow::before {
  border-top-color: #ff6600; /* Zmena farby šípky */
}

.tooltip.bs-tooltip-bottom .tooltip-arrow::before,
.tooltip.bs-tooltip-auto[data-popper-placement^="bottom"] .tooltip-arrow::before {
  border-bottom-color: #ff6600;
}

.tooltip.bs-tooltip-start .tooltip-arrow::before,
.tooltip.bs-tooltip-auto[data-popper-placement^="left"] .tooltip-arrow::before {
  border-left-color: #ff6600;
}

.tooltip.bs-tooltip-end .tooltip-arrow::before,
.tooltip.bs-tooltip-auto[data-popper-placement^="right"] .tooltip-arrow::before {
  border-right-color: #ff6600;
}

.work-buttons {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Základný vzhľad */
.btn-work {
    width: 100%;
    padding: 18px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 12px;
    text-align: center;
}

/* AKCIA - ŠTART */
.btn-start {
    background-color: #198754;
    color: #ffffff;
    border: none;
}

/* AKCIA - KONIEC */
.btn-end {
    background-color: #DC3545;
    color: #ffffff;
    border: none;
}

/* STAV - ZAHÁJENÉ */
.btn-zahajene {
    background-color: #e9f7ef;
    color: #146c43;
    border: 2px solid #198754;
}

/* STAV - HOTOVÉ */
.btn-hotove {
    background-color: #fdeaea;
    color: #842029;
    border: 2px solid #DC3545;
}

/* KPI karty */
.kpi-card { border-left: 5px solid #dee2e6; border-radius:0.75rem; transition: all 0.3s ease;}
.kpi-card:hover { transform: translateY(-3px); box-shadow: 0 .5rem 1rem rgba(0,0,0,.1); }

.kpi-up    { border-left-color: #198754; }
.kpi-down  { border-left-color: #dc3545; }
.kpi-new   { border-left-color: #0d6efd; }
.kpi-flat  { border-left-color: #6c757d; }

.kpi-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: .05rem;
    color: #6c757d;
}

.kpi-value {
    font-size: 1.6rem;
    font-weight: 600;
}

.kpi-sub {
    font-size: 0.85rem;
}
/* tmavý režim */
body.dark-mode { background-color:#121212; color:#e0e0e0; }
body.dark-mode .card { background-color:#1f1f1f; color:#e0e0e0; }
body.dark-mode .kpi-card { border-color: #0d6efd; }

/* tooltip */
.spark-tooltip {
    position:absolute;
    background: rgba(0,0,0,0.8);
    color:#fff;
    padding:2px 6px;
    font-size:0.75rem;
    border-radius:3px;
    pointer-events:none;
    white-space:nowrap;
    opacity:0;
    transition: opacity 0.2s ease;
}

/* Pozadie */

.bg-orange       { background-color:#fd7e14 !important; }
.bg-amber        { background-color:#ffc107 !important; }
.bg-lime         { background-color:#84cc16 !important; }
.bg-olive        { background-color:#6b8e23 !important; }
.bg-teal         { background-color:#20c997 !important; }
.bg-turquoise    { background-color:#40e0d0 !important; }
.bg-cyan         { background-color:#0dcaf0 !important; }
.bg-sky          { background-color:#87ceeb !important; }
.bg-indigo       { background-color:#6610f2 !important; }
.bg-violet       { background-color:#8a2be2 !important; }
.bg-purple       { background-color:#6f42c1 !important; }
.bg-pink         { background-color:#e83e8c !important; }
.bg-magenta      { background-color:#d63384 !important; }
.bg-brown        { background-color:#8b4513 !important; }
.bg-maroon       { background-color:#800000 !important; }
.bg-navy         { background-color:#001f3f !important; }
.bg-silver       { background-color:#c0c0c0 !important; }
.bg-gold         { background-color:#ffd700 !important; }
.bg-mint         { background-color:#98ff98 !important; }
.bg-lavender     { background-color:#e6e6fa !important; }

/* Text */

.text-orange     { color:#fd7e14 !important; }
.text-amber      { color:#ffc107 !important; }
.text-lime       { color:#84cc16 !important; }
.text-olive      { color:#6b8e23 !important; }
.text-teal       { color:#20c997 !important; }
.text-turquoise  { color:#40e0d0 !important; }
.text-cyan       { color:#0dcaf0 !important; }
.text-sky        { color:#87ceeb !important; }
.text-indigo     { color:#6610f2 !important; }
.text-violet     { color:#8a2be2 !important; }
.text-purple     { color:#6f42c1 !important; }
.text-pink       { color:#e83e8c !important; }
.text-magenta    { color:#d63384 !important; }
.text-brown      { color:#8b4513 !important; }
.text-maroon     { color:#800000 !important; }
.text-navy       { color:#001f3f !important; }
.text-silver     { color:#6c757d !important; }
.text-gold       { color:#b8860b !important; }
.text-mint       { color:#198754 !important; }
.text-lavender   { color:#6f42c1 !important; }

.bg-orange-subtle   { background-color:#fff3e6 !important; }
.bg-green-subtle    { background-color:#eafaf1 !important; }
.bg-blue-subtle     { background-color:#e7f5ff !important; }
.bg-red-subtle      { background-color:#fdecec !important; }
.bg-purple-subtle   { background-color:#f3e8ff !important; }
.bg-brown-subtle    { background-color:#f5ebe0 !important; }


.note {
    white-space: pre-line;
}

.note-card{
    break-inside: avoid;
    border:1px solid rgba(0,0,0,0.15);
    overflow:visible;
	transition: all 0.2s ease, box-shadow 0.15s ;

}

.note-card:hover{
    transform: translateY(-4px);
    box-shadow:0 8px 18px rgba(0,0,0,0.25);
}
/* pripináčik */
.note-card::before{
    content:'';
    position:absolute;
    top:-6px;
    left:50%;
    transform:translateX(-50%);
    width:12px;
    height:12px;
    background: radial-gradient(circle at 30% 30%, #ff6666, #990000);
    border-radius:50%;
    box-shadow:0 2px 4px rgba(0,0,0,0.4);
}

.note-card.done {
    position: relative;
    opacity: 0.95; /* mierne zoslabenie uzavretej karty */
}

.note-card.done::after {
    content: "VYBAVENÉ";
    position: absolute;
    top: 6px;
    right: -50px;
    width: 140px;
    text-align: center;
    font-weight: bold;
    font-size: 0.85rem;
    color: #fff;
    text-shadow: 0 1px 1px rgba(0,0,0,0.3);
    
    background: linear-gradient(135deg, rgba(200,0,0,0.85) 0%, rgba(220,30,30,0.7) 100%);
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    
    transform: rotate(45deg);
    pointer-events: none; /* neprekáža klikaniu */
    border-radius: 2px;
}
.btn-xs {
    padding: .15rem .40rem;
    font-size: .70rem;
    line-height: 1.2;
    border-radius: .20rem;
}
.btn-xxs {
    padding: .10rem .30rem;
    font-size: .65rem;
    line-height: 1.1;
    border-radius: .15rem;
}

.size-small .col{
  flex: 0 0 20%;
}

.size-medium .col{
  flex: 0 0 33.333%;
}

.size-large .col{
  flex: 0 0 100%;
}
.card-text{
  display:-webkit-box;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.size-small .card-text{
  -webkit-line-clamp:2;
}

.size-medium .card-text{
  -webkit-line-clamp:4;
}

.size-large .card-text{
  -webkit-line-clamp:unset;
}



.autocomplete-results .active{
    background:#0d6efd;
    color:#fff;
}

.autocomplete-results .active:hover{
    background:#0b5ed7;
    color:#fff;
}
.gc-allday {
    background: #f8f9fa;
    padding: 5px;
    border-bottom: 1px solid #ddd;
    min-height: 30px;
	display:block;
}

.gc-bar {
    display:block;
    width:100%;
    margin-bottom:1px;
    padding: 3px 8px;
    margin: 2px;
    border-radius: 4px;
    font-size: 12px;
    color: #fff;
}

.gc-timeline {
    padding: 5px;
}

.gc-event {
    padding: 4px 6px;
    margin: 2px 0;
    border-left: 3px solid #666;
    background: #fff;
    font-size: 13px;
}

.gc-time {
    font-weight: bold;
    margin-right: 6px;
}

.gc-empty {
    color: #999;
    font-size: 12px;
}
.gc-timeline {
    padding: 5px;
}

.gc-time-group {
    margin-bottom: 6px;
}

.gc-time-header {
    font-weight: bold;
    font-size: 12px;
    color: #555;
    margin: 4px 0;
}

.gc-title {
    display: inline-block;
}
.gc-hour-group {
    margin-bottom: 10px;
    padding-left: 6px;
    border-left: 3px solid #ddd;
}

.gc-hour-header {
    font-weight: bold;
    font-size: 12px;
    color: #444;
    margin-bottom: 4px;
}

.gc-event {
    margin: 2px 0;
    padding: 3px 6px;
    border-radius: 4px;
    color: #fff;
    font-size: 13px;
}
.gc-single{
    border-radius:6px;
}
.gc-first{
    border-radius:6px 0 0 6px;
}
.gc-middle{
    border-radius:0;
}
.gc-last{
    border-radius:0 6px 6px 0;
}

.upload-zone {

	border: 2px dashed #6c757d;
	border-radius: 12px;
	padding: 45px 20px;
	text-align:center;
	background:#fff;
	transition:.2s;
	cursor:pointer;
}

.upload-zone.drag {
	border-color:#0d6efd;
	background:#e7f1ff;
}

.upload-zone:hover {
	background:#f8f9fa;
}

.upload-icon {
	font-size: 35px;
	margin-bottom: 10px;
	color: #6c757d;
}

.upload-file {
	border:1px solid #ddd;
	border-radius:5px;
	padding:8px;
	margin-bottom:5px;
	background:white;
}

.upload-file small {
	color:#777;
}

/* =========================================================
   FMC CALENDAR - DENNÝ POHĽAD
   ========================================================= */

.gc-day-timeline {
    width: 100%;
}

.gc-day-hour-row {
    display: flex;
    width: 100%;
    min-height: 70px;
    border-top: 1px solid #dee2e6;
}

.gc-day-hour-row:last-child {
    border-bottom: 1px solid #dee2e6;
}

/* ľavá časová os */
.gc-day-hour {
    flex: 0 0 85px;
    width: 85px;
    padding: 12px 12px 10px 4px;
    text-align: right;
    font-size: 0.90rem;
    font-weight: 600;
    color: #6c757d;
    border-right: 1px solid #dee2e6;
}

/* pravá časť */
.gc-day-hour-events {
    flex: 1;
    min-width: 0;
    padding: 8px 10px;
}

/* jedna udalosť */
.gc-day-event {
    position: relative;
    padding: 8px 12px;
    margin-bottom: 6px;
    border-radius: 5px;
    border-left: 3px solid #666;
    min-height: 48px;
}

.gc-day-event:last-child {
    margin-bottom: 0;
}

/* čas udalosti */
.gc-day-event-time {
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 2px;
    opacity: 0.85;
}

/* názov udalosti */
.gc-day-event-title {
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.3;
}

.gc-day-event-link {
    cursor: pointer;
}

.gc-day-event-link:hover {
    text-decoration: underline;
}

/* =========================================================
   FMC CALENDAR - TÝŽDENNÝ POHĽAD
   ========================================================= */

.gc-week {
    width: 100%;
    overflow-x: auto;
    min-width: 1000px;
}

.gc-week-header {
    display: grid;
    grid-template-columns: 70px repeat(7, 1fr);
    border-top: 1px solid #dee2e6;
    border-left: 1px solid #dee2e6;
}

.gc-week-time-head,
.gc-week-day-head {
    border-right: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
}

.gc-week-day-head {
    text-align: center;
    padding: 8px 4px;
}

.gc-week-day-name {
    font-weight: 600;
}

.gc-week-day-date {
    font-size: 0.82rem;
    color: #6c757d;
}

.gc-week-hour-row {
    display: grid;
    grid-template-columns: 70px repeat(7, 1fr);
    border-left: 1px solid #dee2e6;
}

.gc-week-time {
    padding: 8px 6px;
    text-align: right;
    font-size: 0.78rem;
    font-weight: 600;
    color: #6c757d;
    border-right: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
}

.gc-week-cell {
    min-height: 60px;
    padding: 4px;
    border-right: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
}

/* položka v týždennom kalendári */
.gc-week-event {
    padding: 4px 6px;
    margin-bottom: 4px;
    border-radius: 4px;
    border-left: 3px solid #666;
    color: #fff;
	font-size: 0.78rem;
    line-height: 1.2;
}


.gc-week-event:last-child {
    margin-bottom: 0;
}

.gc-week-event-time {
    font-size: 0.70rem;
    font-weight: 600;
    margin-bottom: 2px;
    opacity: 0.85;
}

.gc-week-event-title {
    font-size: 0.76rem;
    font-weight: 500;
    overflow-wrap: anywhere;
}

.gc-week-event-link {
    cursor: pointer;
}

.gc-week-event-link:hover {
    text-decoration: none;
}
.gc-week-day-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.gc-week-day-link:hover {
    text-decoration: none;
}

.gc-week-day-link:hover .gc-week-day-name,
.gc-week-day-link:hover .gc-week-day-date {
    text-decoration: none;
}
.gc-week-day-head.gc-week-today {
    font-weight: 600;
    background: rgba(13, 110, 253, 0.08);
}

.gc-week-day-head.gc-week-today .gc-week-day-date {
    display: inline-block;
    margin-top: 3px;
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: 700;
    background: rgba(13, 110, 253, 0.15);
}

.gc-week-cell-today {
    background: rgba(13, 110, 253, 0.025);
}

.gc-week-allday-row {
    display: grid;
    grid-template-columns: 70px repeat(7, 1fr);
    border-left: 1px solid #dee2e6;
}

.gc-week-allday-label {
    padding: 8px 6px;
    text-align: right;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6c757d;
    border-right: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
}

.gc-week-allday-cell {
    min-height: 44px;
    padding: 4px;
    border-right: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
}

.gc-week-allday-event {
    padding: 4px 6px;
    margin-bottom: 3px;
    border-radius: 4px;
    font-size: 0.75rem;
    line-height: 1.2;
    cursor: pointer;
}

.gc-week-allday-event:last-child {
    margin-bottom: 0;
}
.gc-staff-week {
    width: 100%;
    min-width: 1100px;
    overflow-x: auto;
}

.gc-staff-week-header,
.gc-staff-week-row {
    display: grid;
    grid-template-columns: 190px repeat(7, 1fr);
}

.gc-staff-week-header {
    border-top: 1px solid #dee2e6;
    border-left: 1px solid #dee2e6;
}

.gc-staff-name-head,
.gc-staff-day-head,
.gc-staff-name,
.gc-staff-day-cell {
    border-right: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
}

.gc-staff-name-head,
.gc-staff-day-head {
    padding: 8px;
    text-align: center;
}

.gc-staff-name {
    padding: 8px;
}

.gc-staff-day-cell {
    min-height: 80px;
    padding: 5px;
}

.gc-staff-event {
    padding: 5px 6px;
    margin-bottom: 4px;
    border-radius: 4px;
    font-size: 0.76rem;
}

.gc-staff-event-time {
    font-weight: 600;
    font-size: 0.70rem;
    margin-bottom: 2px;
}

.gc-staff-event-name {
    line-height: 1.2;
}

.gc-staff-assign {
    display: inline-block;
    cursor: pointer;
    opacity: 0.65;
}

.gc-staff-assign:hover {
    opacity: 1;
}

.gc-staff-assign i {
    font-size: 0.85rem;
}

.gc-staff-conflict {
    border: 2px solid #dc3545 !important;
    background: rgba(220, 53, 69, 0.04);
}

/* =========================================================
   HARMONOGRAM - časový konflikt
   ========================================================= */

.gc-staff-day-conflict {
    position: relative;
    border: 2px solid #dc3545 !important;
    background: rgba(220, 53, 69, 0.05);
}

.gc-staff-conflict-warning {
    margin-bottom: 5px;
    padding: 4px 6px;

    border-radius: 4px;

    font-size: 0.72rem;
    font-weight: 700;

    color: #842029;
    background: #f8d7da;
    border: 1px solid #f5c2c7;
}

/* ======================================================
   GALÉRIA - LIGHTBOX
====================================================== */

#galleryLightboxModal {
    --bs-modal-width: 95vw;
}

#galleryLightboxModal .gallery-lightbox-dialog {
    width: fit-content;
    max-width: 95vw;
}

#galleryLightboxModal .gallery-lightbox-image {
    display: block;
    width: auto;
    height: auto;

    max-width: 90vw;
    max-height: 70vh;

    margin-left: auto;
    margin-right: auto;

    object-fit: contain;
}

.gallery-lightbox-modal {
    width: auto;
    max-width: 95vw;
}


.gallery-lightbox-image.image-landscape {
    max-height: 68vh;
}


.gallery-lightbox-navigation {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 1rem;
    padding: 0.5rem 1rem;
}

.gallery-lightbox-nav {
    min-width: 48px;
    min-height: 42px;
}

.gallery-lightbox-counter {
    min-width: 70px;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.70);
}

/* ======================================================
   MOBIL
====================================================== */

@media (max-width: 767.98px) {

    #galleryLightboxModal .gallery-lightbox-dialog {
        width: auto;
        max-width: calc(100vw - 1rem);
        margin: 0.5rem;
    }

    #galleryLightboxModal .gallery-lightbox-modal {
        max-width: 100%;
    }

    #galleryLightboxModal .gallery-lightbox-image {
        max-width: 100%;
        max-height: 50vh;
    }

}