.fc-event-tachographExpirationDate {
    background-color: #3e3ed2;
}

.fc-event-ocExpirationDate {
    background-color: #238e23;
}

.fc-event-acExpirationDate {
    background-color: #238e23;
}

.fc-event-reviewDate {
    background-color: #d61d1d;
}

.fc-event-vetReviewDate {
    background-color: #d61d1d;
}

.fc-event-counterLegalizationDate {
    background-color: #3e3ed2;
}

.fc-event-atpCertyficateDate {
    background-color: #3e3ed2;
}

.fc-event-plannedMessages {
    background-color: #0c121c;
}

.fc-event-drivingLicenseValidity {
    background-color: #19692d;
}

.fc-event-epidemiologicalValidity {
    background-color: #9c4624;
}

.fc-event-heightTestsValidity {
    background-color: #6425da;
}

.fc-event-pinDkvExpirationDate {
    background-color: #92af10;
}

.fc-event-pinOrlenExpirationDate {
    background-color: #752456;
}

.fc-event-operation-todo {
    background-color: #cb171e;
}

.fc-event-operation-finished {
    background-color: #439a46;
}

.marker-color-form {
    color: #777777;
}

.color-picker-wrapper .input-group .color-picker-input-swatch {
    width: 100%;
    border: 1px solid #ccc;
    height: 36px;
}

.menu-group-buttons {
    margin-top: 2px;
}

.archive-checkbox {
    width: 30px;
    height: 30px;
}

.archive-label {
    font-size: 120%;
    font-weight: 400;
}

.btn-history {
    color: #ffffff;
    background-color: #620679;
}

@media (min-width: 1200px) {
  .container {
    width: 100%;
  }
}

.table-striped > tbody > tr:nth-of-type(even) {
    background-color: #f0f0f0;
}

html {
    font-family: 'Lucida Sans';
}

thead {
    color: #94999d;
}

.table a {
    color: #313092;
    font-weight: 500;
}

.table > thead > tr > th,
.table > tbody > tr > th,
.table > tfoot > tr > th,
.table > thead > tr > td,
.table > tbody > tr > td,
.table > tfoot > tr > td {
  border-top: none;
}

.btn-info {
    background-color: #313092;
}

.btn-info:hover,
.btn-info:focus,
.btn-info.focus {
  color: #ffffff;
  background-color: #232294;
  border-color: rgba(0, 0, 0, 0);
}

.input-group .form-control {
    padding-left: 7px;
}

.gi-2x {
    font-size: 2em;
}

.tour-taken {
    text-align: center;
    vertical-align: middle;
}

.tour-taken-warn-td {
    color: #E51C23;
    font-weight: bolder;
}

.planning-right-panel {
    min-height: 500px;
    max-height: 700px;
    /* same height as .planned-map */
}

.planning-monospaced {
      font-family: monospace;
  }

.panel-info-margin-bottom {
    margin-bottom: 5px !important;
}

/* =====================================================
   GDPR Cookie Consent – Blocking Overlay
   ===================================================== */

/* Overlay covers the entire viewport, blocks interaction */
.cc-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.72);
    z-index: 9998;
    overflow-y: auto;
}
.cc-overlay.cc-visible {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Prevent scrolling / interaction with page content while overlay is shown */
body.cc-blocked {
    overflow: hidden;
    pointer-events: none;
}
body.cc-blocked .cc-overlay {
    pointer-events: auto;
}

/* Dialog box */
.cc-dialog {
    background: #fff;
    border-radius: 8px;
    max-width: 560px;
    width: 100%;
    padding: 32px 28px 24px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.28);
    position: relative;
}
.cc-dialog-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}
.cc-dialog-icon {
    font-size: 26px;
    line-height: 1;
}
.cc-dialog-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #222;
}
.cc-dialog-body {
    font-size: 13.5px;
    color: #444;
    line-height: 1.6;
    margin-bottom: 20px;
}
.cc-dialog-body a {
    color: #1a7340;
    text-decoration: underline;
}

/* Category panel (hidden until "Dostosuj" is clicked) */
.cc-categories {
    display: none;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 18px;
    overflow: hidden;
}
.cc-categories.cc-open {
    display: block;
}
.cc-category-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 13px 16px;
    border-bottom: 1px solid #f0f0f0;
    gap: 12px;
}
.cc-category-row:last-child {
    border-bottom: none;
}
.cc-category-info {
    flex: 1;
}
.cc-category-name {
    font-weight: 600;
    font-size: 13.5px;
    color: #222;
    display: block;
    margin-bottom: 2px;
}
.cc-category-desc {
    font-size: 12px;
    color: #777;
    line-height: 1.4;
}
.cc-category-always {
    font-size: 11px;
    color: #1a7340;
    font-weight: 600;
    white-space: nowrap;
    margin-top: 4px;
}

/* Toggle switch */
.cc-toggle {
    position: relative;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}
.cc-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}
.cc-toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #ccc;
    border-radius: 24px;
    transition: background-color .2s;
}
.cc-toggle-slider:before {
    content: '';
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: transform .2s;
}
.cc-toggle input:checked + .cc-toggle-slider {
    background-color: #1a7340;
}
.cc-toggle input:checked + .cc-toggle-slider:before {
    transform: translateX(20px);
}
.cc-toggle input:disabled + .cc-toggle-slider {
    background-color: #1a7340;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Buttons */
.cc-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}
.cc-btn {
    border: none;
    border-radius: 5px;
    padding: 9px 18px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .15s, opacity .15s;
    white-space: nowrap;
}
.cc-btn-primary {
    background-color: #1a7340;
    color: #fff;
}
.cc-btn-primary:hover {
    background-color: #155c33;
}
.cc-btn-secondary {
    background-color: #f0f0f0;
    color: #333;
}
.cc-btn-secondary:hover {
    background-color: #e0e0e0;
}
.cc-btn-outline {
    background-color: transparent;
    color: #1a7340;
    border: 1.5px solid #1a7340;
}
.cc-btn-outline:hover {
    background-color: #f0faf4;
}

/* Footer link */
.cc-footer-link {
    background: none;
    border: none;
    padding: 0;
    margin-left: 8px;
    font-size: inherit;
    color: inherit;
    cursor: pointer;
    text-decoration: underline;
    opacity: 0.75;
}
.cc-footer-link:hover {
    opacity: 1;
}

/* end cookie consent */

/* ==========================================================================
   App Footer & Send Suggestion
   ========================================================================== */

/* Extra bottom space so page content isn't hidden behind the fixed footer */
body {
    padding-bottom: 50px;
}

.app-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 998;
    background: #2c2c2c;
    border-top: 2px solid #313092;
    color: #bbb;
    padding: 7px 0;
    font-size: 13px;
}

.footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left {
    color: #bbb;
}

.footer-icon {
    margin-right: 4px;
    opacity: 0.6;
}

.footer-brand {
    color: #e0e0e0;
    letter-spacing: 0.4px;
}

.footer-sep {
    margin: 0 8px;
    opacity: 0.35;
}

.footer-copy {
    font-size: 12px;
    opacity: 0.55;
}

/* ---- Suggestion toggle button ---- */
.footer-right {
    position: relative;
}

.btn-suggestion-toggle {
    background: #313092;
    border: 1px solid #313092;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 16px;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
    line-height: 1.6;
    letter-spacing: 0.2px;
}

.btn-suggestion-toggle:hover,
.btn-suggestion-toggle:focus {
    background: #232294;
    border-color: #232294;
    color: #fff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(49, 48, 146, 0.35);
}

.btn-suggestion-toggle-active,
.btn-suggestion-toggle-active:focus {
    background: #232294;
    border-color: #232294;
    color: #fff;
}

/* Attention pulse — plays 3× on page load, removed after first click */
@keyframes suggestion-attention {
    0%   { box-shadow: 0 0 0 0 rgba(49, 48, 146, 0.7); transform: scale(1); }
    50%  { box-shadow: 0 0 0 10px rgba(49, 48, 146, 0); transform: scale(1.04); }
    100% { box-shadow: 0 0 0 0 rgba(49, 48, 146, 0); transform: scale(1); }
}

.btn-suggestion-pulse {
    animation: suggestion-attention 1s ease-out 1s 3;
}

/* ---- Flyout panel ---- */
.suggestion-flyout {
    position: absolute;
    bottom: calc(100% + 10px);
    right: 0;
    width: 340px;
    background: #fff;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    box-shadow: 0 -4px 22px rgba(0, 0, 0, 0.18);
    z-index: 1001;
}

.suggestion-flyout-header {
    background: #313092;
    color: #fff;
    padding: 9px 14px;
    border-radius: 4px 4px 0 0;
    font-size: 13px;
    display: flex;
    align-items: center;
}

.suggestion-flyout-header strong {
    flex: 1;
}

.suggestion-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 20px;
    line-height: 1;
    opacity: 0.75;
    cursor: pointer;
    padding: 0;
    margin-left: 8px;
}

.suggestion-close:hover {
    opacity: 1;
}

.suggestion-flyout-body {
    padding: 14px 14px 10px;
}

.suggestion-flyout-body .form-group {
    margin-bottom: 9px;
}

.suggestion-flyout-body .form-control {
    font-size: 12px;
}

.suggestion-flyout-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 11px;
    min-height: 28px;
}

.suggestion-status {
    font-size: 12px;
}

.suggestion-btns {
    display: flex;
    gap: 6px;
}

/* Glyphicon spin animation (Bootstrap 3 doesn't include one) */
@keyframes suggestion-spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.glyphicon-spin-custom {
    display: inline-block;
    animation: suggestion-spin 0.9s linear infinite;
}

/* ==========================================================================
   First-visit Spotlight
   ========================================================================== */

/* Raise footer above the overlay when spotlight is active */
.suggestion-spotlight-active {
    z-index: 1050 !important;
}

/* Full-screen dimming overlay */
.suggestion-spotlight-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 1049;
    cursor: pointer;
}

/* Callout tooltip above the button */
.suggestion-spotlight-callout {
    position: absolute;
    bottom: calc(100% + 18px);
    right: 0;
    width: 260px;
    z-index: 1051;
    animation: ssc-enter 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes ssc-enter {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

.ssc-content {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.35);
    padding: 16px 16px 12px;
}

.ssc-title {
    color: #313092;
    font-size: 14px;
    margin: 0 0 8px;
}

.ssc-text {
    font-size: 13px;
    color: #444;
    line-height: 1.6;
    margin: 0 0 12px;
}

.ssc-dismiss {
    background: #313092;
    color: #fff;
    border: none;
    width: 100%;
    padding: 8px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.15s ease;
}

.ssc-dismiss:hover {
    background: #232294;
}

/* Downward-pointing CSS arrow */
.ssc-arrow {
    width: 0;
    height: 0;
    border-left: 11px solid transparent;
    border-right: 11px solid transparent;
    border-top: 11px solid #fff;
    margin-left: auto;
    margin-right: 18px;
    filter: drop-shadow(0 3px 2px rgba(0, 0, 0, 0.12));
}

/* Pulsing ring on the button while spotlight is visible */
.suggestion-spotlight-active .btn-suggestion-toggle {
    animation: ssc-button-pulse 1.4s ease-in-out infinite;
}

@keyframes ssc-button-pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(255,255,255,0.25), 0 0 0 7px rgba(49,48,146,0.45); }
    50%       { box-shadow: 0 0 0 3px rgba(255,255,255,0.25), 0 0 0 14px rgba(49,48,146,0); }
}

/* =====================================================
   Modern Navbar Styling - Custom Menu Design
   ===================================================== */

/* Main navbar container */
.navbar-custom {
    background-color: #f5f5f5;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid #e0e0e0;
    padding: 10px 0;
}

/* Custom navbar list */
.navbar-custom-list {
    display: flex;
    gap: 2px;
}

/* Custom nav items */
.nav-item-custom {
    position: relative;
}

/* Custom nav links styling */
.nav-link-custom {
    display: block;
    padding: 8px 16px !important;
    color: #333 !important;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    font-weight: 500;
}

/* Hover effect on nav links - underline + text color change */
.nav-link-custom:hover {
    color: #313092 !important;
    border-bottom-color: #313092;
    background-color: transparent;
}

/* Active state - underline */
.nav-item-custom.active > .nav-link-custom {
    color: #313092 !important;
    border-bottom-color: #313092;
    background-color: transparent;
}

/* Custom dropdown menu styling */
.dropdown-menu-custom {
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-top: 2px;
    transition: all 0.14s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: none;
}

/* Show dropdown when parent has .open class */
.dropdown.open > .dropdown-menu-custom,
.nav-item-custom.open > .dropdown-menu-custom {
    display: block;
    animation: slideDown 0.14s ease forwards;
}

.dropdown-menu-custom > li > a {
    padding: 10px 16px !important;
    color: #333 !important;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    opacity: 0;
    transform: translateX(-5px);
    animation: slideInLeft 0.168s ease forwards;
}

.dropdown-menu-custom > li:nth-child(1) > a { animation-delay: 0.028s; }
.dropdown-menu-custom > li:nth-child(2) > a { animation-delay: 0.056s; }
.dropdown-menu-custom > li:nth-child(3) > a { animation-delay: 0.084s; }
.dropdown-menu-custom > li:nth-child(4) > a { animation-delay: 0.112s; }
.dropdown-menu-custom > li:nth-child(5) > a { animation-delay: 0.14s; }
.dropdown-menu-custom > li:nth-child(6) > a { animation-delay: 0.168s; }
.dropdown-menu-custom > li:nth-child(n+7) > a { animation-delay: 0.196s; }

.dropdown-menu-custom > li > a:hover {
    background-color: #f9f9f9;
    color: #313092 !important;
    border-left-color: #313092;
}

.dropdown-menu-custom > li.active > a {
    background-color: #f0f0f0;
    color: #313092 !important;
    border-left-color: #313092;
}

/* =====================================================
   Rounded Corners for UI Elements
   ===================================================== */

/* Buttons - subtle rounded corners 4-6px */
.btn {
    border-radius: 4px;
    transition: all 0.2s ease;
}

.btn-primary {
    border-radius: 5px;
}

.btn-info {
    border-radius: 5px;
}

.btn-default {
    border-radius: 4px;
}

.btn-success {
    border-radius: 4px;
}

.btn-danger {
    border-radius: 4px;
}

.btn-warning {
    border-radius: 4px;
}

/* Form controls - 4px rounded corners */
.form-control {
    border-radius: 4px;
    transition: border-color 0.2s ease;
}

.form-control:focus {
    border-radius: 4px;
}

.input-group-btn .btn {
    border-radius: 4px;
}

/* Well and card-like containers - 6-8px rounded corners */
.well {
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid #e0e0e0;
}

.panel {
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.panel-default {
    border: 1px solid #e0e0e0;
}

.panel-default > .panel-heading {
    background-color: #f5f5f5;
    border-radius: 6px 6px 0 0;
}

.panel-default > .panel-footer {
    border-radius: 0 0 6px 6px;
}

/* Modals - 8px rounded corners */
.modal-content {
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Alerts - 4px rounded corners */
.alert {
    border-radius: 4px;
}

/* Tables - subtle rounded corners */
.table-responsive {
    border-radius: 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table {
    border-radius: 4px;
}

table tr:first-child td,
table tr:first-child th {
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}

/* Pagination buttons */
.pagination > li > a,
.pagination > li > span {
    border-radius: 4px;
    margin: 0 2px;
}

/* Dropdowns - rounded corners */
.dropdown-menu {
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* List groups - rounded corners */
.list-group {
    border-radius: 6px;
    overflow: hidden;
}

.list-group-item:first-child {
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
}

.list-group-item:last-child {
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
}

/* Badge/Label - 3px rounded */
.badge,
.label {
    border-radius: 3px;
}

/* Breadcrumbs - no corners needed, but add subtle styling */
.breadcrumb {
    border-radius: 4px;
    background-color: #f9f9f9;
}

/* Responsive navbar adjustments for mobile */
@media (max-width: 767px) {
    /* Make hamburger icon bars visible against the light background */
    .navbar-custom .navbar-toggle {
        border-color: #ccc;
        margin-top: 8px;
    }
    .navbar-custom .navbar-toggle:hover,
    .navbar-custom .navbar-toggle:focus {
        background-color: #e8e8e8;
    }
    .navbar-custom .navbar-toggle .icon-bar {
        background-color: #555;
    }

    /* Prevent navbar-right float from pushing menu off-screen */
    .navbar-custom .navbar-right {
        float: none !important;
        margin-right: 0;
        margin-left: 0;
    }

    /* Allow expanded menu to scroll if too tall */
    .navbar-custom .navbar-collapse {
        max-height: calc(100vh - 56px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .navbar-custom-list {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .nav-item-custom {
        width: 100%;
    }

    .nav-link-custom {
        border-bottom: 1px solid #e0e0e0;
        border-left: none !important;
        padding: 10px 16px !important;
    }

    .dropdown-menu-custom {
        position: static !important;
        float: none;
        border: none;
        box-shadow: none;
        background-color: #fafafa;
        margin: 0;
        border-top: 1px solid #e0e0e0;
        width: 100%;
    }
}

/* =====================================================
   Dropdown Animation - Slide In
   ===================================================== */

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-5px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
