/*!
 * Theme Name: Default
 * Package : DashLite
 * Author: Softnio
 * Author URI: http://themeforest.net/user/softnio
 * Version	 :	1.0.0
 * Updated	 :	07.23.2020
**/

.card.drag-status.gu-mirror {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    border: 2px solid #007bff;
    opacity: 0.95;
    background: #f8f9fa;
    z-index: 9999;
}

.card.drag-status.gu-transit {
    opacity: 0.4;
    border-style: dashed;
}

.card.drag-status {
    cursor: grab;
    transition: box-shadow 0.2s;
}

.card.drag-status:active {
    cursor: grabbing;
}


[v-cloak] {
    display: none;
}

.custom-modal-width {
    width: 85% !important;
    max-width: 85% !important;
}

.booking-calendar {
    font-size: 14px;
    display: flex;
    flex-direction: column;
    overflow-x: auto;
    white-space: nowrap;
}

.booking-calendar .calendar-header,
.booking-calendar .calendar-row {
    display: flex;
    width: max-content;
}

.booking-calendar .property-col {
    width: 200px;
    min-width: 200px;
    background: #f8f9fa;
    border-right: 1px solid #dee2e6;
    border-bottom: 4px solid #ced4da;
    padding: 0.75rem;
    font-weight: 600;
    position: sticky;
    left: 0;
    z-index: 3;
}

.booking-calendar .calendar-header-scrollable {
    overflow-x: auto;
    display: flex;
    flex-grow: 1;
    white-space: nowrap;
    min-width: fit-content;
}

.booking-calendar .booking-track {
    display: flex;
    position: relative;
    flex-grow: 1;
    overflow-x: auto;
    background-color: #fff;
    z-index: 1;
    min-width: fit-content;
}

.booking-calendar .booking-cell {
    min-width: 80px;
    height: 100%;
    border-right: 1px solid #dee2e6;
    border-bottom: 4px solid #ced4da;
    background-color: #fff;
    position: relative;
    text-align: center;
    vertical-align: middle;
}

.booking-calendar .full-block {
    font-size: 13px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    padding: 0 6px;
    line-height: 1.2;
    height: 50px;
    position: absolute;
    color: #fff;
    border-radius: 0.25rem;
    z-index: 2;
}


/* .booking-calendar .full-block {
    font-size: 13px;
    white-space: normal;
    overflow: hidden;
    padding: 0.25rem 0.5rem;
    line-height: 1.2;
    position: absolute;
    color: #fff;
    border-radius: 0.25rem;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);

} */



.booking-calendar .month-separator {
    border-left: 4px double #6c757d;
    box-shadow: inset 4px 0 0 #adb5bd;
}

.today {
    background-color: #fff3cd !important;
    box-shadow: inset 0 -3px 0 #ffc107;
}

.year-row {
    height: 30px;
    background: #e9ecef;
    border-bottom: 1px solid #dee2e6;
}

.year-marker {
    font-size: 13px;
    align-items: center;
    justify-content: center;
    display: flex;
    border-right: 1px solid #dee2e6;
    background: #f1f3f5;
}

.sticky-year {
    text-align: center;
}

.tooltip-inner {
    text-align: left !important;
}

.tooltip-inner .bi {
    color: inherit !important;
}

.week-number {
    font-weight: bold;
    color: #888;
    letter-spacing: 0.5px;
}


.booking-cell {
    position: relative;
    height: 50px;
    width: 80px;
    border-right: 1px solid #eee;
    border-bottom: 1px solid #eee;
    background: #fff;
}

.booking-block {
    border-radius: 0;
    overflow: visible;
    display: flex;
    align-items: center;
    position: absolute;
    height: 40px;
    color: #fff;
    font-size: 12px;
    z-index: 10;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.07);
}

.booking-block.checkin {
    border-radius: 0 0px 0px 0;
}

.booking-block.checkout {
    border-radius: 0px 0 0 0px;
}

.booking-block.checkin-checkout {
    border-radius: 0px;
}

.booking-block.full {
    border-radius: 0;
}

.half-day {
    width: 40px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.85;
}

.left-half {
    border-right: 1px solid #fff2;
}

.right-half {
    border-left: 1px solid #fff2;
}

.booking-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.full-day {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    color: #fff;
    padding: 2px 4px;
    font-size: 12px;
    z-index: 1;
    border-radius: 2px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.top-half {
    left: 0;
    border-right: 1px solid #e0e0e0;
}

.bottom-half {
    right: 0;
    border-left: 1px solid #e0e0e0;
}

.full-day {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    color: #fff;
    padding: 2px 4px;
    font-size: 12px;
    z-index: 1;
    border-radius: 2px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .booking-calendar .property-col {
        display: none !important;
    }
}


/* Tooltip container */
.tooltip {
    background: transparent !important;
    /* Transparent jer pravi stil ide na .tooltip-inner */
    border: none !important;
    box-shadow: none !important;
    color: inherit !important;
}

/* Tooltip content */
.tooltip-inner {
    background: #fff !important;
    /* Bela pozadina */
    color: #222 !important;
    /* Crni tekst */
    border: 1px solid #000 !important;
    /* Tanak crni ram */
    border-radius: 3px !important;
    font-size: 15px;
    text-align: left !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18) !important;
    /* Shadow */
    max-width: 400px !important;
    /* Širina tooltipa */
    padding: 0.5rem 1rem;
}

/* Tooltip arrow */
.tooltip-arrow {
    border-color: #000 !important;
    /* Crna strelica */
}

.free-day {
    cursor: pointer;
    /* background: #e6ffe6 !important; */
    /* border: 1px dashed #28a745; */
}

.filter-bar {
    min-height: 80px;
    background: #fff;
    /* border-bottom: 1px solid #e5e9f2; */
}

@media (max-width: 991.98px) {
    .filter-bar {
        position: static !important;
    }
}

.select2-container {
    min-width: 150px !important;
}

/* Highlight active accordion header (when open) */
.accordion-head:not(.collapsed),
.accordion-head[aria-expanded="true"] {
    background-color: #e6f0ff !important;
    /* Light blue, change as needed */
    color: #003366 !important;
    /* Optional: darker text for contrast */
    transition: background 0.2s;
}

/* Optional: also highlight the title text inside the header */
.accordion-head:not(.collapsed) .title,
.accordion-head[aria-expanded="true"] .title {
    color: #003366 !important;
    font-weight: bold;
}


@media (max-width: 991.98px) {
    #mobileMenuToggleWrap {
        position: absolute !important;
        top: 0.3rem;
        right: 1rem;
        z-index: 100;
        text-align: right;
    }

    .nk-block-head.nk-block-head-lg {
        position: relative;
    }
}

/* ========================================
   MOBILNI PRIKAZ KARTICA - GLOBALNI STILOVI
   ======================================== */

/* Fix za horizontalno skrolovanje tabela u tab-pane (Firefox, mobilni, svi browseri) */
.nk-block .tab-content .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    display: block;
    width: 100%;
}

/* Mobilni prikaz kartica - univerzalni stilovi */
@media (max-width: 768px) {

    /* Osnovni stil kartice */
    .card.mb-2.shadow-sm {
        border-radius: 0.75rem;
        border: 1px solid #e5e9f2;
        box-shadow: 0 2px 8px rgba(44, 62, 80, 0.07);
        margin-bottom: 0.75rem;
    }

    /* Card body stilovi */
    .card-body.p-2 {
        padding: 1rem;
    }

    .card-body.p-3 {
        padding: 1.25rem;
    }

    /* Tipografija */
    .fw-bold {
        font-weight: 600;
        font-size: 1rem;
    }

    .small.text-muted {
        font-size: 0.95rem;
        color: #8094ae !important;
    }

    .small {
        font-size: 0.9rem;
    }

    .text-muted {
        color: #8094ae !important;
    }

    /* Dugmad za mobilni - opšti stilovi */
    .btn-sm {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }

    /* DUGMIĆI U KARTICAMA BEZ RAMOVA I POZADINE - SAMO MOBILNI */
    div.card .btn,
    div.card .btn-sm,
    div.card .btn-outline-primary,
    div.card .btn-outline-danger,
    div.card .btn-primary,
    div.card .btn-danger,
    div.card-body .btn,
    div.card-body .btn-sm,
    div.card-body .btn-outline-primary,
    div.card-body .btn-outline-danger,
    div.card-body .btn-primary,
    div.card-body .btn-danger {
        border: 0px !important;
        background: transparent !important;
        background-color: transparent !important;
        background-image: none !important;
        padding: 0.3rem 0.4rem !important;
        margin: 0.1rem !important;
        font-size: 0.75rem !important;
        line-height: 1.2 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.25rem !important;
        white-space: nowrap !important;
        flex: 0 0 auto !important;
        flex-shrink: 0 !important;
        min-height: 30px !important;
        max-height: 30px !important;
        min-width: fit-content !important;
        max-width: calc(33.33% - 0.4rem) !important;
        width: auto !important;
        height: 30px !important;
        box-shadow: none !important;
        outline: none !important;
        text-decoration: none !important;
        border-radius: 4px !important;
        color: #007bff !important;
        vertical-align: middle !important;
        position: relative !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
        z-index: 1 !important;
    }

    /* Boje za crvene dugmiće - mobilni */
    div.card .btn-outline-danger,
    div.card .btn-danger,
    div.card-body .btn-outline-danger,
    div.card-body .btn-danger {
        color: #dc3545 !important;
    }

    /* Hover efekti za dugmad - mobilni */
    div.card .btn:hover,
    div.card .btn-outline-primary:hover,
    div.card .btn-primary:hover,
    div.card-body .btn:hover,
    div.card-body .btn-outline-primary:hover,
    div.card-body .btn-primary:hover {
        color: #0056b3 !important;
        background: rgba(0, 123, 255, 0.1) !important;
        border: none !important;
        box-shadow: none !important;
    }

    div.card .btn-outline-danger:hover,
    div.card .btn-danger:hover,
    div.card-body .btn-outline-danger:hover,
    div.card-body .btn-danger:hover {
        color: #c82333 !important;
        background: rgba(220, 53, 69, 0.1) !important;
        border: none !important;
        box-shadow: none !important;
    }

    /* Ikone u dugmićima - mobilni */
    div.card .btn-sm .icon,
    div.card .btn .icon {
        font-size: 1.1rem;
        margin-right: 0;
        display: inline-block;
        vertical-align: middle;
    }

    /* Tekst u dugmićima - mobilni */
    div.card .btn-sm span,
    div.card .btn span {
        display: inline-block;
        vertical-align: middle;
        line-height: 1.2;
    }

    /* Badge stilovi */
    .badge {
        font-size: 0.75rem;
        padding: 0.35em 0.65em;
    }

    /* Gap između dugmića */
    .d-flex.gap-2>*+* {
        margin-left: 0.5rem;
    }

    /* Alternativno rešenje za gap ako browser ne podržava gap property */
    div.card .d-flex>.btn+.btn {
        margin-left: 0.5rem;
    }

    /* Dodatno: Osiguraj da se dugmići ne preklapaju */
    div.card .btn {
        flex: 0 0 auto !important;
        z-index: 1 !important;
    }

    /* Specifičan fix za dugmad da ostanu u kontejneru */
    div.card .d-flex .btn {
        position: relative !important;
        float: none !important;
        clear: none !important;
        transform: none !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;
        margin-bottom: 0.2rem !important;
    }

    /* Card body mora da drži svoje elemente */
    div.card .card-body {
        overflow: visible !important;
        position: relative !important;
    }

    /* Kontejner za dugmad u karticama */
    div.card .d-flex {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: visible !important;
        min-height: 40px !important;
        height: auto !important;
        padding: 0.3rem !important;
        gap: 0.2rem !important;
        box-sizing: border-box !important;
        position: relative !important;
    }

    /* Responsive slike u karticama */
    .card img {
        max-width: 100%;
        height: auto;
    }

    /* Responsivni redovi u karticama */
    .card .row.mb-2:last-child {
        margin-bottom: 0 !important;
    }

    /* Separator linija u karticama */
    .card hr {
        margin: 0.75rem 0;
        border-color: #e5e9f2;
    }

    /* Empty state poruke */
    .text-center.text-muted.py-3,
    .text-center.text-muted.py-4 {
        padding: 2rem 1rem;
        color: #8094ae !important;
        font-style: italic;
    }

    /* Hover efekti za kartice */
    .card.mb-2.shadow-sm:hover {
        box-shadow: 0 4px 12px rgba(44, 62, 80, 0.12);
        transform: translateY(-1px);
        transition: all 0.2s ease;
    }

    /* Focus stilovi za dugmad u karticama */
    div.card .btn:focus {
        box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    }

    /* Animacije za kartice */
    .card.mb-2.shadow-sm {
        transition: box-shadow 0.2s ease, transform 0.2s ease;
    }
}
