body {
    background: #e9edf0;
}
.overlay {
	position: fixed;
    top: 0;
    width: 100%;
    height: 100%;
    background: #00000080;
    z-index: 1200;
}
.spinnerContainer {
	background: #ddd;
    position: absolute;
	top: 30%;
	left: 50%;
	border-radius: 10%;
	text-align: center
}
.table td input { width: 100%; }
.table td,
.table th {
    white-space: nowrap;
}
.ukupno-red { text-align: right; }

.print-only { display: none !important; }
.no-print { display: block !important; }

.form-control {
    padding: .275rem .55rem;
}
.form-control,
.card,
.select2-container--bootstrap-5 .select2-selection {
    border: 1px solid #7f7f7f !important;
}

.attachmentBox {
	border: 1px solid #999;
	padding: 10px;
	background: #f5f5f5;
	margin-right: 10px;
}
@media print {
    .print-only {
        display: block !important;
    }

    .no-print {
        display: none !important;
    }

    .print {
        display: block !important;
    }

    .print-only .row {
        display: flex !important;
        flex-wrap: wrap !important;
    }

    .print-only .col-md-3 {
        flex: 0 0 25% !important; /* 4 u retku */
        max-width: 25% !important;
    }
	
	.print-only .col-md-6 {
        flex: 0 0 50% !important; /* 2 u retku */
        max-width: 50% !important;
    }

    .print-only .col-md-3,
	.print-only .col-md-6	{
        margin-bottom: 10px !important;
    }

    /* Tabela boja */
    .print-only .colorTable {
        page-break-inside: avoid; /* ne razdvajaj na više stranica */
    }

}

.error-border {
    border: 2px solid red !important;
}

.form-label { margin-bottom: 0; }

.row>* { margin-top: 0.5rem; }

.table.posTable:not(.defTable) > :not(caption) > * > * {
    padding: 0;
}

.form-control:focus {
    box-shadow: none !important;
    outline: none !important;
    border-color: #00aff0 !important; /* ili neka tvoja boja */
}

input[readonly] {
    background-color: #f0f0f0 !important;
    cursor: not-allowed;
}

.card-header {
    cursor: pointer;
    border-bottom: 1px solid #343a40;
}
.card-body {
    background: #fdfdfd;
    border-radius: 6px;
}
a {
    color: #0065bf;
    text-decoration: none;
}
.btn-group-sm>.btn, .btn-sm { --bs-btn-padding-y: 0rem; }

.totalClass strong { padding-left: 30px; }

li.dcListDefault {
    background: #f0f7ff;
}

li.dcListRed {
    background: #ffefef;
}

.dot {
    height: 11px;
    width: 11px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
}
.dotUnknown {
    background-color: #bbb;
}
.dotGreen {
    background-color: #00a04f;
}
.dotRed {
    background-color: #ff4848;
}
.dotOrange {
    background-color: #e48200;
}
.navbarDomo {
    position: sticky;
    top: 0;
    z-index: 1000;

    background: #343a40;
    padding: 12px;

    border-bottom: 1px solid #a8a8a8;
    border-radius: 0 0 8px 8px;

    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
}

.navbarDomoItem {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.navbarDomoBtn {
    display: inline-block;
    color: #9d9d9d;
    text-decoration: none;
    margin: 0 10px;
    cursor: pointer;
    transition: color .15s ease;
}

.navbarDomoItem:hover > .navbarDomoBtn,
.navbarDomoItem.active > .navbarDomoBtn {
    color: #fff;
}

.verticalDivider {
    display: inline-block;
    flex: 0 0 1px;

    width: 1px;
    height: 24px;

    background: #5b6065;

    margin: 0 4px;
}

.navbarDomoUser {
    margin-left: auto;
    color: #82c4ff !important;
}

.navbarDomo > .navbarDomoItem,
.navbarDomo > .verticalDivider,
.navbarDomo > .navbarDomoUser {
    flex: 0 0 auto;
}


/* =========================
   DROPDOWN
   ========================= */

.navbarDomoDropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;

    min-width: 190px;

    background: #343a40;
    border: 1px solid #4d5359;
    border-radius: 7px;

    padding: 6px 0;

    box-shadow: 0 8px 20px rgba(0, 0, 0, .25);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform: translateY(-5px);

    transition:
            opacity .15s ease,
            transform .15s ease,
            visibility .15s ease;
}

.navbarDomoDropdown::before {
    content: "";
    position: absolute;

    top: -8px;
    left: 0;
    right: 0;

    height: 8px;
}

.navbarDomoItem:hover .navbarDomoDropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transform: translateY(0);
}

.navbarDomoDropdown a {
    display: block;

    padding: 9px 14px;

    color: #b8b8b8;
    text-decoration: none;

    font-size: 14px;
    white-space: nowrap;

    margin: 0;
}

.navbarDomoDropdown a:hover {
    background: #454b51;
    color: #fff;
}
span.verticalDivider {
    border: 1px solid #9d9d9d;
}

/* PRINT OPTIMIZACIJA */
@media print {
    body {
        background: #fff;
        padding-bottom: 20mm;
        font-size: 12px;
    }
    /* GLOBALNI FONT */
    .offer-wrapper,
    .offer-wrapper * {
        font-family: "Calibri", "Segoe UI", Arial, sans-serif !important;
    }

    /* GLOBALNO SMANJENJE FONTA */
    .offer-wrapper {
        font-size: 11px;
    }

    .offer-wrapper h3 {
        font-size: 17px;
    }

    .offer-wrapper h5 {
        font-size: 14px;
    }

    .offer-wrapper h6 {
        font-size: 12px;
    }

    /* TABLICE */
    .offer-table th,
    .offer-table td {
        padding: 3px 5px !important;
        font-size: 10px;
    }

    .offer-table th {
        font-weight: 600;
    }

    /* TOTALI */
    .totals-table td {
        font-size: 11px;
        padding: 2px 0 !important;
    }

    .totals-table .fs-5 {
        font-size: 13px !important;
    }

    /* PRINT OPTIMIZACIJA */
    /* GLOBALNI FONT */
    .offer-wrapper,
    .offer-wrapper * {
        font-family: "Calibri", "Segoe UI", Arial, sans-serif !important;
    }

    /* GLOBALNO SMANJENJE FONTA */
    .offer-wrapper {
        font-size: 11px;
    }

    .offer-wrapper h3 {
        font-size: 17px;
    }

    .offer-wrapper h5 {
        font-size: 14px;
    }

    .offer-wrapper h6 {
        font-size: 12px;
    }

    /* TABLICE */
    .offer-table th,
    .offer-table td {
        padding: 3px 5px !important;
        font-size: 10px;
    }

    .offer-table th {
        font-weight: 600;
    }

    /* TOTALI */
    .totals-table td {
        font-size: 11px;
        padding: 2px 0 !important;
    }

    .totals-table .fs-5 {
        font-size: 13px !important;
    }

    /* potpuno uklanja Bootstrap max-width */
    .container {
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* wrapper preko cijele širine */
    .offer-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* tablica preko cijele širine */
    table {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* stranica bez velikih margina */
    @page {
        size: A4 portrait;
        margin: 6mm 6mm 10mm 6mm;
    }
    .offerPDFPrint {
        min-height: calc(297mm - 12mm);
        display: flex;
        flex-direction: column;
    }

    .print-footer {
        margin-top: 50px;
    }

    .print-footer,
    .print-footer a,
    .printLink {
        color: #212529;
        text-decoration: none;
    }

}

span.btnStatus {
    margin: 0 10px;
}
span.btnStatus.active {
    background: #e4ebff;
    padding: 5px 5px 5px 10px;
    border-radius: 5px;
    border: 1px solid #c5caff;
}

@media screen {
    .webViewPrint {
        width: 1080px;
        background: #fff;
        padding: 30px
    }
}

.projectStatus-bar {
    display: flex;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.projectStatus {
    flex: 1;
    padding: 12px 20px;
    background: #e9ecef;
    color: #6c757d;
    text-align: center;
    cursor: pointer;
    border-right: 1px solid #cfcfcf;
    transition: .2s;
}

.projectStatus:last-child {
    border-right: 0;
}

.projectStatus.active {
    background: #343a40;
    color: white;
}

.projectStatus:hover {
    background: #343a40;
    color: white;
}

.projectStatus span {
    font-weight: bold;
    margin-right: 5px;
}
.project-tabs-wrapper {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    padding: 6px;
    overflow-x: auto;
}

.project-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 3px;
    border: 0;
    min-width: max-content;
}

.project-tabs .nav-item {
    margin: 0;
}

.project-tabs .nav-link {
    display: flex;
    align-items: center;
    gap: 7px;
    border: 0;
    border-radius: 8px;
    padding: 9px 13px;
    color: #6c757d;
    background: transparent;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.project-tabs .nav-link i {
    font-size: 16px;
}

.project-tabs .nav-link:hover {
    background: #e9ecef;
    color: #212529;
}

.project-tabs .nav-link.active {
    background: #212529;
    color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.12);
}

.project-tabs .nav-link.active i {
    color: #fff;
}

.tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    background: #e9ecef;
    color: #495057;
    font-size: 11px;
    font-weight: 600;
}

.project-tabs .nav-link.active .tab-count {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

@media (max-width: 768px) {

    .project-tabs-wrapper {
        border-radius: 10px;
    }

    .project-tabs .nav-link {
        padding: 8px 11px;
        font-size: 13px;
    }

}
.task-item {
    cursor: pointer;
}
.task-item:hover {
    background-color: #f8f9fa;
}
.phase-row {
    cursor: pointer;
}

.phase-row:hover {
    background-color: #f8f9fa;
}

.phase-row .phase-action {
    cursor: default;
}
.project-section-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #f1f3f5;
    color: #343a40;
    font-size: 18px;
}

.dashboard-label {
    color: #6c757d;
    font-size: 13px;
    font-weight: 500;
}

.project-stat {
    height: 100%;
    padding: 18px;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    background: #fafafa;
    transition: all .15s ease;
}

.project-stat:hover {
    background: #fff;
    border-color: #dee2e6;
    transform: translateY(-1px);
}

.project-stat-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    font-size: 17px;
}

.project-stat-value {
    margin-top: 4px;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -.4px;
}

.project-stat-value span {
    font-size: 14px;
    font-weight: 400;
    color: #6c757d;
}

.project-info-list {
    border-top: 1px solid #f0f0f0;
}

.project-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.project-info-label {
    color: #6c757d;
}

.project-info-row a {
    color: #212529;
}

.project-info-row a:hover {
    text-decoration: underline !important;
}

.project-stat .bg-primary-subtle {
    background: rgba(13, 110, 253, .10) !important;
}

.project-stat .bg-warning-subtle {
    background: rgba(255, 193, 7, .12) !important;
}

.project-stat .bg-success-subtle {
    background: rgba(25, 135, 84, .10) !important;
}

@media (max-width: 767px) {

    .project-info-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .project-info-row .text-end {
        text-align: left !important;
    }

}

.pagination .page-link {
    border-radius: 8px;
    margin: 0 2px;
    border: 1px solid #e9ecef;
    color: #495057;
    background: #fff;
    min-width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: all .15s ease;
}

.pagination .page-link:hover {
    background: #f8f9fa;
    border-color: #dee2e6;
    color: #212529;
}

.pagination .page-item.active .page-link {
    background: #212529;
    border-color: #212529;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0,0,0,.08);
}

.pagination .page-item.disabled .page-link {
    background: #f8f9fa;
    color: #adb5bd;
    border-color: #e9ecef;
}

.pagination .page-item.disabled span.page-link.border-0 {
    background: transparent;
    border: 0 !important;
}