/* SECOND DASH */
.card-link+.card-link {
  margin-left: 0;
}

.card {
  margin-bottom: 25px;
  border: 1px solid #E6E9EB !important;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
  border-radius: 8px;
  -webkit-box-shadow: 0px 9px 20px rgba(46, 35, 94, 0.07);
  box-shadow: 0px 9px 20px rgba(46, 35, 94, 0.07);
}

.card:hover {
  -webkit-box-shadow: 0 0 40px rgba(8, 21, 66, 0.05);
  box-shadow: 0 0 40px rgba(8, 21, 66, 0.05);
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

.dash-heading {
  font-size: 18px;
  font-weight: 500;
}

.project-details {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
}

.project-details.new-project {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  justify-content: space-between
}

.project-details .project-counter {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: start;
  -ms-flex-align: start;
  align-items: start;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  gap: 6px;
}

.project-details .project-counter span {
  font-weight: 400;

  font-size: 11px;
}

.small-widget .product-sub {
  height: 45px;
  width: 45px;
  border-radius: 6px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

.f-w-600 {
  font-weight: 600;
}

.f-12 {
  font-size: 12px !important;
}

.f-11 {
  font-size: 11px !important;
}


.f-light {
  color: #86909C;
}

h2 {
  font-size: 26px;
  font-weight: 600;
}

.product-sub.light svg.stroke-icon {
  stroke: var(--text-gray);
  width: 25px;
}


.product-sub.bg-blue-light svg.stroke-icon {
  stroke: var(--primary);
  width: 25px;
}

.project-counter h2 {
  color: var(--dark-gray);
}

.bg-yellow-light {
  background-color: #FFEEDF !important;
}

.bg-yellow-light-2 {
  background-color: rgba(255, 238, 223, 0.5) !important;
}


.bg-blue-light {
  background-color: #1a5f7f1a !important
}

.bg-green-light {
  background-color: rgba(141, 212, 180, 0.3) !important
}


.bg-green-light-2 {
  background-color: rgba(141, 212, 180, 0.1) !important
}

.bg-red-light {
  background-color: rgba(234, 111, 78, .1) !important
}

.bg-red-light-2 {
  background-color: rgba(234, 111, 78, .05) !important
}

.bg-purple-light {
  background-color: #A4508B30 !important
}


.bg-grey-light {
  background-color: rgba(230, 233, 235, 0.8) !important;
}

.bg-primary {
  background-color: var(--primary) !important;
}

.bg-red {
  background-color: var(--red) !important;
}

.bg-yellow {
  background-color: var(--yellow) !important;
}

.bg-green {
  background-color: var(--green) !important;
}

.bg-grey {
  background-color: var(--grey) !important;
}


.yellow-image {
  max-width: 25px;
}

.f-yellow {
  color: var(--yellow);
}

.f-green {
  color: var(--green);
}

.f-red {
  color: var(--red);
}

.f-purple {
  color: var(--purple);
}

.f-grey {
  color: #86909C;
}

.f-primary {
  color: var(--primary);
}

.f-white {
  color: var(--white);
}


.border-b-yellow {
  border-bottom: 1px solid var(--yellow) !important;
  border-bottom-width: 1px;
}

.border-b-primary {
  border-bottom: 1px solid var(--primary) !important;
  border-bottom-width: 1px;
}

.border-b-green {
  border-bottom: 1px solid var(--green) !important;
  border-bottom-width: 1px;
}

.border-b-grey {
  border-bottom: 1px solid #86909c !important;
  border-bottom-width: 1px;
}

.border-2 {
  border-width: 2px !important;
}

.zadaci-small-widget .card-body {
  padding: 10px;
}

.zadaci-small-widget {

  min-height: auto;
  background-color: var(--white) !important;
}

.zadaci-small-widget .project-details {
  justify-content: flex-start;
}

.zadaci-small-widget .card-body .product-sub {
  height: 30px;
  width: 30px;
  border-radius: 6px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}





.dashboard_default table thead tr th {
  color: #848789;
  font-weight: 500;
}

.dashboard_default td {
  color: #2f2f3b;
  font-weight: 500;
}


.table> :not(:last-child)> :last-child>* {
  border-bottom-color: #ecf3fa;
}


.dashboard_default table thead tr th {
  border-width: 0;
  border-bottom-width: 0px;
  border-bottom: 1px solid #ededed;
  border-bottom-color: rgb(237, 237, 237);
  color: #848789;
  padding: 10px !important;
  padding-bottom: 8px;
  white-space: nowrap;
}


.dashboard_default table tbody tr td,
.detail-table tbody tr td {
  border-bottom: 1px solid #ededed;
  padding: 10px;
}

.top-product-card ul {
  padding: 0;
}

.top-product-card ul li.top-product:first-child {
  padding-top: 0px;
}

.top-product-card ul li.top-product:last-child {
  border: none;
  padding-bottom: 0px;
}

.top-product-card ul li .product-details {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: 3px;
}

.top-product-card ul li .product-details a {
  font-weight: 500;
  font-size: 12px;
  color: var(--dark-text) !important;
  display: block;
  margin-bottom: 0;
}

.top-product-card ul li .product-details span {
  font-weight: 400;
  font-size: 11px;
  color: var(--text-gray);
  display: block;
}

.top-product-card ul li .product-items {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: end;
  -ms-flex-align: end;
  align-items: end;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  gap: 3px;
}

.common-space {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  color: var(--dark-gray);
}

.gap-1 {
  gap: 0.25rem !important;
}

.top-product-card ul li.top-product {
  border-bottom: 1px solid #E6E9EB;
  padding-top: 16px;
  padding-bottom: 6px;
}

.deliveries-percentage .percentage-data thead tr th {
  padding-top: 0px;
  padding-bottom: 8px;
}

.deliveries-percentage .percentage-data tbody tr td {
  padding-top: 10px;
  padding-bottom: 5px;
}

.progress-bar {
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  border-radius: 0.25rem;
  text-align: center;
  white-space: nowrap;
  background-color: var(--light-grey);
  transition: width 1s ease-in-out;
}

.progress-value .progress {
  margin-top: -2px !important;
  height: 3px;
  width: 100%;
}

.percentage-data {
  table-layout: fixed;
}

.percentage-data td:first-child,
.percentage-data th:first-child {
  width: 150px;
  /* ili max-width: 150px; */
  white-space: nowrap;
}

.percentage-data th:nth-child(1),
.percentage-data td:nth-child(1) {
  width: 140px;
}

.percentage-data th:nth-child(2),
.percentage-data td:nth-child(2) {
  width: 160px;
}

.percentage-data th:nth-child(3),
.percentage-data td:nth-child(3) {
  width: auto;
  /* ili fiksno ako želiš preciznu kontrolu */
}

.progress-bar.nizak {
  background-color: var(--primary);
}

.progress-bar.normal {
  background-color: var(--green);
}

.progress-bar.hitno {
  background-color: var(--yellow);
}

.progress-bar.kriticno {
  background-color: var(--red);
}

.project-box .project-deadline .text-start {
  opacity: .5;
  font-size: 12px;
  letter-spacing: .7px;
  line-height: 1.7;
  padding: 0px 20px;
}

.range_4 .slider-container {
  position: relative;
  height: 45px;
  margin: 0 20px;
}


.tiket-naslov {
  color: var(--dark-gray) !important;
}


.range_4 .slider-container .range-slider_thumb {
  width: 46px;
  height: 20px;
  border-radius: 6px;
  position: absolute;
  left: 0;
  top: 50%;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
  background-color: var(--primary);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  font-weight: 500;
  font-size: 11px;
  color: #fff;
  z-index: 2;
}

.range_4 .slider-container .range-slider_line {
  height: 7px;
  width: 100%;
  background-color: #e9ecef;
  border-radius: 10px;
  top: 50%;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
  left: 0;
  position: absolute;
  z-index: 1;
}

.range_4 .slider-container .range-slider_line .range-slider_line-fill {
  position: absolute;
  height: 7px;
  width: 0;
  background-color: var(--primary);
  border-radius: 10px 0 0 10px;
}


.range_4 .slider-container .range-slider_input {
  width: 100%;
  position: absolute;
  top: 50%;
  z-index: 3;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  opacity: 0;
  margin: 0;
}

.range_4 .slider-container .range-slider_thumb.na-cekanju {
  background-color: var(--yellow);
}

.range_4 .slider-container .range-slider_thumb.u-toku {
  background-color: var(--primary);
}

.range_4 .slider-container .range-slider_thumb.testiranje {
  background-color: #86909C;
}


.range_4 .slider-container .range-slider_line .range-slider_line-fill.na-cekanju {
  background-color: var(--yellow);
}

.range_4 .slider-container .range-slider_line .range-slider_line-fill.u-toku {
  background-color: var(--primary);
}

.range_4 .slider-container .range-slider_line .range-slider_line-fill.testiranje {
  background-color: #86909C;
}

.project-box .project-deadline .ikonice-wrapper.text-end {
  opacity: 1;
  font-size: 12px;
  letter-spacing: .7px;
  line-height: 1.7;
  color: var(--second-text);
  padding: 0px 20px;
}

.project-box .project-deadline .ikonice-wrapper.text-start {
  opacity: 1;
  font-size: 12px;
  letter-spacing: .7px;
  line-height: 1.7;
  color: var(--second-text);
  padding: 0px 20px;
}



.sale-chart .card-body .d-flex {
  align-items: center;
  gap: 5px;
  justify-content: space-between;
}

.sale-chart .card-body .sale-detail {
  align-items: center;
  display: flex;
}

.sale-chart .card-body .sale-detail .icon {
  align-items: center;
  border-radius: 5px;
  display: flex;
  height: 50px;
  justify-content: center;
  width: 50px;
}

.sale-chart .card-body .sale-detail .sale-content {
  margin-left: 12px;
}

.sale-chart .card-body .sale-detail .sale-content h5 {

  margin-bottom: 0;
}

.sale-chart .card-body .sale-detail .sale-content p {
  color: #212529;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: .5px;
  margin: 0;
  line-height: 20px;
}

.sale-chart .card-body .small-chart-view {
  margin-left: auto;
  margin-top: -25px;
  max-height: 90px;
  min-height: 90px !important;
  width: 100%;
}

.sale-chart .card-body .product-sub {
  height: 40px;
  width: 40px;
  border-radius: 6px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

.chart-wrapper {
  max-width: 80px !important;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  min-width: 70px !important;
}

.bar-container {
  width: 7px;
  /* širina stupca */
  height: 40px;
  /* visina stupca */
  background-color: #FFEEDF;
  /* svetla pozadina */
  border-radius: 2px;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  cursor: pointer;
}

.bar-fill {
  background-color: #FFC38D;
  /* tamna popunjena boja */
  width: 100%;
  border-radius: 0px 0px 0 0;
  position: absolute;
  bottom: 0;
}

.bar-group {
  position: relative;
  /* važno za tooltip */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  /* minimalni razmak */

}

.tooltip {
  position: absolute;
  bottom: 75%;
  right: 0;
  /* malo iznad bar-container */
  background-color: #333;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  user-select: none;
  z-index: 10;
}

.bar-group:hover .tooltip {
  opacity: 1;
  pointer-events: auto;
}

/* Stilovi za red grafikon */
.red .bar-container {
  background-color: rgba(234, 111, 78, .1) !important
}

.red .bar-fill {
  background-color: var(--red) !important;
}


/* Stilovi za plavi grafikon */
.blue .bar-container {
  background-color: #1a5f7f1a !important;
}

.blue .bar-fill {
  background-color: #1a5f7f !important;
}

/* Stilovi za zelenbi grafikon */
.green .bar-container {
  background-color: rgba(141, 212, 180, 0.3) !important
}

.green .bar-fill {
  background-color: var(--green) !important;
}



/* Stilovi za zelenbi grafikon */
.grey .bar-container {
  background-color: rgba(230, 233, 235, 0.8) !important
}

.grey .bar-fill {
  background-color: #86909C !important;
}


.ticket-priority-bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 500px;
}

.priority-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bar-bg {
  background-color: #e9ecef;
  flex: 1;
  height: 14px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.bar-fill {
  height: 100%;
  color: white;
  font-size: 11px;
  padding-left: 6px;
  display: flex;
  align-items: center;
  border-radius: 8px;
  white-space: nowrap;
}

/* Boje po prioritetu */
.bg-nizak {
  background-color: #33b2df;
}

.bg-nizak-light {
  background-color: rgba(51, 178, 223, 0.1) !important;
}

.bg-normalan {
  background-color: #546E7A;
}

.bg-normalan-light {
  background-color: rgba(84, 110, 122, 0.1) !important;
}

.bg-hitno {
  background-color: #d4526e;
}

.bg-hitno-light {
  background-color: rgba(212, 82, 110, 0.1) !important;
}

.bg-kriticno {
  background-color: #13d8aa;
}

.bg-kriticno-light {
  background-color: rgba(19, 216, 170, 0.1) !important;
}

.horizontal-chart {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.horizontal-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.horizontal-bar-label {
  width: 250px;
  font-weight: 500;
  font-size: 12px;
  white-space: nowrap;
}

.horizontal-bar-container {
  flex: 1;
  background-color: #1a5f7f1a;
  height: 10px;
  border-radius: 3px;
  position: relative;
  overflow: hidden;
}

.horizontal-bar-fill {
  background-color: #1a5f7f;
  height: 100%;
  transition: width 0.3s ease;
}

#trend-tiketa-meseci .apexcharts-legend {
  margin-top: 40px !important;
}


.apexcharts-menu-icon {
  position: absolute;
  top: -50px;
  right: -2px
}


.apexcharts-menu {
  top: -25px !important;
  right: 0 !important;

}

.sale-chart .card-body {
  padding: 15px 10px;
}

.project-counter h6 {
  font-size: 12px;
  margin-bottom: 0;
}

.pr-0 {
  padding-right: 0 !important;
}

.vesti-tekst {
  font-size: 12px !important;
  color: #848789;
}

.datum-objave {
  font-weight: 400;
  font-size: 11px;
  color: var(--text-gray);
  margin-top: 10px;
}

/* Kartica nikad ne pušta sadržaj napolje */
.card,
.card .card-body {
  overflow: hidden;
}

/* Tabela je “fixed layout”, kolone imaju tvrde širine */
.working-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}

.working-table th:nth-child(1),
.working-table td:nth-child(1) {
  width: 40%;
}

/* Tiket */
.working-table th:nth-child(2),
.working-table td:nth-child(2) {
  width: 18%;
}

/* Rok */
.working-table th:nth-child(3),
.working-table td:nth-child(3) {
  width: 20%;
}

/* Zadužen/a */
.working-table th:nth-child(4),
.working-table td:nth-child(4) {
  width: 16%;
}

/* Status */

.working-table td .badge {

  padding: 8px 10px;

  font-size: 11px;
}

.zadaci-2-small-widget .card-body .product-sub {
  width: 55px;
  height: 55px;
}

.zadaci-2-small-widget .card-body .product-sub img {
  width: 30px !important;
}

.procenat-zadaci {
  font-size: 14px !important;
  color: #8D8D8D;
}

.zadaci-2-small-widget .project-details {
  align-items: end !important;
}

.uloge {
  border-radius: 5px;
}

.uloga {

  padding: 3px 10px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row;
}

.uloga h4 {
  font-weight: 600
}

.satnica {
  font-size: 21px;
  font-weight: bold;
  margin-bottom: 10px
}


.status-dash {
  font-size: 12px;
  font-weight: 400;
}

.dropdown-toggle::after {
  display: none;
  margin-left: 0.255em;
  vertical-align: 0.255em;
  content: "";
  border-top: 0.3em solid;
  border-right: 0.3em solid transparent;
  border-bottom: 0;
  border-left: 0.3em solid transparent;
}

.icon-dropdown .btn {
  padding: 0 10px !important;
}

.chart-details .badge {
  font-weight: 400;
  padding: 5px 10px;
  text-align: center;
}


.chart-details .badge-green {
  background-color: rgba(141, 212, 180, 0.3) !important;
  color: var(--green);
}

.chart-details .badge-blue {
  background-color: #1a5f7f1a !important;
  color: var(--primary);
}

.chart-details .badge-yellow {
  background-color: #FFEEDF !important;
  color: var(--yellow);
}

.chart-details .badge-red {
  background-color: rgba(234, 111, 78, .1) !important;
  color: var(--red);
}


.prioritet-broj {
  color: var(--dark-text);
  font-size: 18px;
}

.light-bg {
  background-color: #5c61f20d;
}

.zadaci-tab-content {
  display: none;
}

.zadaci-tab-buttons {
  border-bottom: 2px solid #E6E9EB !important;
}

.zadaci-tab-content.active {
  display: block;
}


.zadaci-tab-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-gray) !important;
  background-color: transparent;
  border: none;
  border-bottom: 2px solid transparent !important;
  padding: 0 20px 0 0;
}

.zadaci-tab-link.active {
  font-size: 14px;
  font-weight: 500;
  color: var(--primary) !important;
  border: none;
  border-bottom: 2px solid var(--primary) !important;
  background-color: transparent;

}

.sale-chart.card {
  margin-bottom: 5px;
}


.table-responsive.dashboard_default {
    width: 100%;
    max-width: 100%;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    position: relative;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    border-radius: 12px;
}

/* Dok vučeš */
.table-responsive.dashboard_default.dragging {
    cursor: grabbing;
    scroll-behavior: auto !important;
}

.table-responsive.dashboard_default.dragging,
.table-responsive.dashboard_default.dragging * {
    user-select: none !important;
    -webkit-user-select: none !important;
}

/* Scrollbar */
.table-responsive.dashboard_default::-webkit-scrollbar {
    height: 8px;
}

.table-responsive.dashboard_default::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 20px;
}

.table-responsive.dashboard_default::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 20px;
}
 

/* Tabela */
.detail-table.detail-scroll {
    width: max-content !important;
    min-width: 1400px !important;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: auto;
    background: #fff;
}

/* Celije */
.detail-table.detail-scroll th,
.detail-table.detail-scroll td {
    white-space: nowrap;
    vertical-align: middle;
 
    position: relative;
}

/* Header */
.detail-table.detail-scroll thead th {
    position: sticky;
    top: 0;
    z-index: 4;
 
 
}

/* Sticky prva kolona */
.detail-table.detail-scroll th:first-child,
.detail-table.detail-scroll td:first-child {
    position: sticky;
    left: 0;
    z-index: 6;
    min-width: 150px;
    max-width: 240px;
    background: #fff;
   border-right: 1px solid #ededed;  
}

/* Sticky prvi header */
.detail-table.detail-scroll thead th:first-child {
    z-index: 10;
 
}

/* Tekst prve kolone */
.detail-table.detail-scroll td:first-child p {
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Hover */
.detail-table.detail-scroll tbody tr:hover td {
    background: #fafafa;
}

/* Sticky kolona mora ostati bela */
.detail-table.detail-scroll tbody tr:hover td:first-child {
    background: #fafafa;
}

 

/* Responsive */
@media (max-width: 768px) {

    .detail-table.detail-scroll {
        min-width: 1200px !important;
    }

 

    .detail-table.detail-scroll th:first-child,
    .detail-table.detail-scroll td:first-child {
        min-width: 180px;
        max-width: 180px;
    }
}


td .badge-green {
  background-color: rgba(141, 212, 180, 0.3) !important;
  color: var(--green);
}

td .badge-light {
  background-color: #f5f5f5 !important;
  color: var(--dark-gray) !important;
}

td .badge-red {
  color: var(--red) !important;
  background-color: rgba(234, 111, 78, .1) !important;
}

#datatable_statistika_popis thead{
background-color: #5c61f20d;
}

#datatable_statistika_popis th {
  border-bottom-color: rgb(237, 237, 237);
  color: #848789;
  font-size: 12px !important;
  font-weight: 500;
}

#datatable_statistika_popis td {
  border: none;
border-bottom: 1px solid #ededed  !important;
  padding: 10px  !important;
  color: #2f2f3b  !important;
  font-weight: 500  !important;
  font-size: 12px;
}

.table > :not(:last-child) > :last-child > * {
  border: none;
 border-bottom: 1px solid #dadada !important;
}

#Aktuelno [id^="miniChart-tiketi-"],
#Aktuelno .chart-details {
  display: none !important;
}

#Aktuelno .sale-chart.card {
  margin-bottom: 5px !important;
} 