/* VARIABLES */
:root {
    --main: #F04A2A ;
    --aux: #ABE;
    --lightblue: #489;
    --darkblue:#267;
    --green:#26b77f;
    --white:#ffffff;
    --orange:#E46A07;
    --lightgrey:#F5F5F5;
    --darkgrey:#515151;
    --black:#000000;
    --fn:1rem;
    --fl:18px;
    --fxl:22px;
    --fxxl:28px;
    --fs:13px;
    --fxs:10px;
}

@font-face {font-family: icons; src: url('font-awesome/fonts/FontAwesome.otf');}
.icons{font-family: icons}
*{padding:0;margin:0;}
.hidden{display:none !important;}
HTML{width:100%;overflow-y: scroll; overflow-x: hidden;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    height: 100%}
body{width:100%;
    font-family: arial, sans-serif; 
    height:100%;

}
a{
    text-decoration: none;
    display: block;
    color:inherit;
}
i{font-style: initial}

img{display: block; width: 100%}
input:focus{outline:2px solid var(--main); border: none; background:#f331}

.page{position: relative; margin: 0;}

/*header*/
.index_page .header{position: absolute; top:0;left:0; right:0; background: #fffc}

.header-inner{display: flex; justify-content: space-between;padding: 10px; box-sizing: border-box;}
.header-inner img{height: 40px;}
.glavni-meni img{padding: 7px; box-sizing:border-box;}
.homePage{min-height: 80vh;}

/*meni*/
.menu-list{position: fixed; background: #fff;width: 100%; z-index:1000}
.index_page .menu-list{top:56px}
.meni-lista li{list-style: none;padding: 16px 0 14px 12px;border-bottom:1px dashed var(--main); color:var(--main)}

/*home*/
.homePageCnt{display: flex; flex-wrap: wrap;gap: 10px; justify-content: center}
.homePageCnt .baner-home{flex: 0 0 100%; width: 100%;height:24vh;margin-top:0px;}
.homePageCnt .baner-home img{height: 100%}
.homePageBox { 
    flex: 0 0 calc(50% - 18px); 
    box-sizing: border-box;
    border:8px double #f336;
    border-radius:50%;
    _border-top:none;
    border-right:none;
    border-bottom:none;
    border-left:none;
    padding: 20px;
}

.homePageBox a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    height: 100%;
    box-sizing: border-box;
    color:var(--main);
}
.homePageBox .img_menu{
    width:100px;
}
.homePageBox .img_menu img{
    opacity: .86
}

/*elements*/

.content{}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: var(--fn);
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
    text-align: center;
    box-sizing: border-box;
}

.btn-primary {
    background-color: var(--main);
    color: var(--white);
    border: none;
}

.btn.btn-transparent{
   background: none;
    border:1px solid var(--main);
}

.btn-add-item{
    margin-top:14px;
    padding-right: 20px; padding-left:16px;
}
.button_bar {display: flex; justify-content: center;gap:20px; margin:0 auto; padding:8px 16px }
.button_bar a{
    flex: 1;
    background: var(--white);
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    font-weight: bold;
    border: 1px solid #ddd;
    display: block; 
}

.button_column{display: flex; flex-direction: column;}
.button_column button,
.button_column .btn{margin: 6px 0}

.form-group {
    width: 100%;
    margin-bottom: 15px;
}

.form-label {
    display: block;
    font-size: 11px;
    color: var(--darkgrey);
    text-transform: uppercase;
    margin-bottom: 4px;
    font-weight: bold;
}

.input-select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: var(--fn);
    background: #fafafa;
    box-sizing: border-box;
}

.input-text, .input-date {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: var(--fn);
    box-sizing: border-box;
    transition: border-color 0.3s;
}
.input-text:focus {
    outline: none;
    border-color: var(--main);
}

.tab-bar { display: flex;  position: sticky; top: 0; z-index: 100;gap:1px; background: #fff}
.tab-btn { flex: 1; padding: 12px 0; 
    text-align: center; 
    font-weight: normal; 
    color: var(--main);border:none; 
    border-bottom: 3px solid transparent; 
    background: #f332;
    border:1px solid var(--main);

    border-radius: 6px 6px 0 0;
  

}
.tab-btn.active { color: var(--main);  border-bottom: none; background:transparent; font-weight:bold}        
.tab-content { display: none; padding: 15px; }
.tab-content.active { display: block; }


/*page header*/

.subheader_cnt{
    box-shadow: 0 4px 12px rgba(0,0,0,0.08); padding: 15px; }

.search-action-bar {
    position: sticky;
    top: 0;
    z-index: 99;
    background-color: var(--white);
    display: flex;
    flex-direction: column;
    gap: 15px; 
}

.search-action-bar input{padding: 6px; border-radius: 8px; border: solid 1px #ddd}
.title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin: 13px 0 0 0 ;
}

/* Skladiste */

.skladiste_page .homePageCnt{
    padding: 30px 15px;
}

/* PONUDE */
.page_ponude_detalji .app-content{
    
    width:92%;
    margin: 20px auto;
    color:var(--main);
    
}
.page_ponude_detalji .app-content label{
     color:var(--main);
}
.page_ponude_detalji .app-content h2{
    padding: 0;
    _border-bottom: 1px dashed var(--main);
    margin-bottom: 20px;
    font-size:var(--fl)
}

.form-row{
    display: flex;
    gap:10px;
}

.recap-box{
   border:1px dashed var(--main);
   box-sizing: border-box;
    padding: 10px;
    font-size:var(--fxs)
}
.sections_recap_tbl tr td,
.finances_recap_tbl tr td,
.razlika_recap_tbl tr td{
    border-bottom:1px dashed var(--main);
    padding: 1px 0 4px;
    text-align: right;
    
}
.sections_recap_tbl tr:last-child td,
.finances_recap_tbl tr:last-child td,
.razlika_recap_tbl tr:last-child td{
    border: none;
    padding-bottom: 0
}
.sections_recap_tbl .space_table,
.finances_recap_tbl .space_table,
.razlika_recap_tbl .space_table{
    width:80%;
    text-align: left;
}

/* ==========================================================================
   Options & Sorting List
   ========================================================================== */
.option-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ddd;
    margin-bottom: 5px;
}
.option-title {
    font-size: 14px;
    font-weight: bold;
    flex: 1;
}
.option-actions {
    display: flex;
    gap: 10px;
}
.option-icon {
    font-size: 16px;
    padding: 5px;
    cursor: pointer;
}
.option-icon.edit { color: #f39c12; }
.option-icon.active { color: #3498db; }
.option-icon.disabled { color: #ccc; cursor: default; }

/* ==========================================================================
   Sections & Items List
   ========================================================================== */
.section-card {

    margin-bottom: 35px;
    padding:15px;
    border:1px dashed var(--main)
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom:.5px dashed var(--main);
    padding: 0 0 10px 0
}
.section-title {
    flex: 1;
    line-height: 1em;
    font-weight: bold;
    letter-spacing: -.6px
}
.section-delete {
    color: #e74c3c;
    margin-right: 10px;
    cursor: pointer;
}
.section-sum {
    font-weight: bold;
}

/* Item Rows */
.item-row {
    padding: 10px 12px;
    border-bottom: .5px dashed #888;
    background: #fff;
    cursor: pointer;
}
.item-col {
    display: flex;
    flex-direction: column;
    width: 100%;
}
.item-meta {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #95a5a6;
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.item-code {
   
}
.item-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4px;
}
.item-name {
    font-size: 13px;
    color: #2c3e50;
    line-height: 1.3;
    padding-right: 10px;
    letter-spacing: -.3px;
}
.item-icons {
    display: flex;
    flex-wrap: nowrap;
    padding-top: 2px;
}
.item-icon {
    margin-left: 6px;
    font-size: 14px;
    cursor: pointer;
}
.item-icon.info { color: #3498db; }
.item-icon.note { color: #f39c12; }

/* Pricing Row */
.item-pricing {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #3331;
    padding: 4px 8px;
    border-radius: 4px;
    margin-bottom: 2px;
}
.item-calc {
    font-size: 12px;
    color: #555;
}
.item-qty {
    font-weight: 700;
}
.item-unit {
    font-size: 11px;
    color: #7f8c8d;
}
.item-multi {
    font-size: 10px;
    margin: 0 2px;
}
.item-total {
    font-size: 13px;
    font-weight: 700;
}
.item-curr {
    font-size: 10px;
    font-weight: normal;
}
.item-cost {
    font-size: 9px;
    color: #c0392b;
    text-align: right;
}


/* UPRAVLJANJE SEKCIJAMA */ 
#options_sections_list{
    display:flex; flex-direction:column; gap:8px;
}

/* ==========================================================================
   Snapshots List
   ========================================================================== */
.snapshot-card {
    background: #f331;
    
    border: 1px solid var(--main);
    padding: 15px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
    margin-bottom: 8px;
    cursor: pointer;
  
}
.snapshot-card .icons{
    font-size:var(--fl);
}
.snapshot-title {
    font-size: 14px;
    font-weight: bold;
    color:var(--main);
}
.snapshot-icon {
    margin-right: 8px;
}
.snapshot-icon.locked { color: #27ae60; }
.snapshot-icon.unlocked { color: #f39c12; }

.snapshot-arrow {
    color: #bdc3c7;
}
.snapshots-empty {
    font-size: 13px;
    color: #7f8c8d;
    font-style: italic;
    padding: 10px;
}


.tab-panel {
      display: none;
      animation: fadeIn 0.25s ease-in-out;
    }

    .tab-panel.active {
      display: flex;
      flex-direction: column;
      gap: 1rem;
    }
    
    .modal-content {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-52%, 2%);
    width: 92vw;
    max-width: 96vw;
    background: #fff;
    padding: 20px 14px;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    overflow-y:scroll;
    max-height: 95vh;
}
.modal-overlay { position: fixed; top:0; left:0; right:0; bottom:0; background: rgba(0,0,0,0.5); display: none; z-index: 1000;}
.modal-close { position: absolute; top: 15px; right: 15px; font-size: 20px; color: #888; }

/*kontakti*/

.alpha-header {
    background: var(--lightgrey);
    padding: 6px 15px;
    font-weight: bold;
    color: var(--darkgrey);
    font-size: 12px;
    position: sticky;
    top: 110px; /* Sits below the sticky nav-bar */
    z-index: 90;
    border-bottom: 1px solid #e1e1e1;
    background: linear-gradient(-135deg, #f334 34%, #fff 84%);
}

.list-item-contact {
    background: var(--white);
    padding: 12px 15px;
    border-bottom: 1px solid #f1f2f6;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: background 0.2s;
    background: linear-gradient(-135deg, #f334 , #fff 34%);
}
.list-item-contact:hover{
    background: linear-gradient(-135deg, #f334 20%, #fff 54%);
}
.list-item-contact:active {
    background: #f0f0f0;
}
.avatar {
    min-width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fff3 , var(--main) 34%);
    color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 18px;
    margin-right: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    opacity: .9;
}
.contact-info .contact-name{
    color:var(--main);
    
}
.contact-info .contact-meta {
    font-size:var(--fxs)
}

/*kontakti detalji*/
.contact-header {
    text-align: center;
    margin-bottom: 20px;
}

.panel{padding: 20px 0}
.panel .subtitle{color: var(--darkblue);line-height: 2em;}
.panel.panel-info{
    padding: 20px 20px 60px 20px;
    
}

.avatar-large {
    width: 80px; 
    height: 80px; 
    border-radius: 50%; 
    background: linear-gradient(135deg, var(--main), var(--orange)); 
    color: var(--white); 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    font-size: 32px; 
    font-weight: bold; 
    margin: 0 auto 15px auto; 
    border:1px solid var(--lightgrey)
}

.title-section {
    font-size: var(--fxl);
    color: var(--main);
    margin-bottom: 5px;
}
.title-sub {
    font-size: var(--fs);
    color: var(--darkgrey);
    font-weight: normal;
}

/* ==========================================================================
   Offer Cards (Ponude)
   ========================================================================== */

.search-data {
    display: none;
}

.offer-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.offer-number {
    color: #2c3e50;
    font-size: 16px;
}

.offer-title {
    font-size: 14px;
    font-weight: bold;
    color: #34495e;
    margin-bottom: 4px;
    line-height: 1.2;
}

.offer-customer-wrapper {
    font-size: 12px;
    color: #7f8c8d;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.offer-customer-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.offer-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px dashed #eee;
    padding-top: 10px;
}

.offer-meta {
    font-size: 11px;
    color: #95a5a6;
}

.offer-total {
    font-size: 15px;
    font-weight: bold;
    _color: #27ae60;
    color:#666
}

/* Status Colors */
.offer-card { 
    background: #fff; 
    width:94%;
    padding: 15px; margin: 12px auto; 
    box-shadow: 0 2px 8px #9995; 
    position: relative; 
    _overflow: hidden; 
    border-radius: 4px; 
    border:1px solid #9993;
    border-left: 20px solid #ccc; cursor: pointer; 
    transition: background 0.2s;
    box-sizing: border-box;

}
.offer-card:active { background: #f8f9fa; }

.status-1 { border-left-color: #3498db; 
    background: linear-gradient(-90deg, #fff2 10%, #3498db55 40%)
} /* Formirana - Blue */
.status-2 { border-left-color: #f1c40f;
  background: linear-gradient(-90deg, #fff2 10%, #f1c40f55 40%)
} /* Zapoceta - Yellow */
.status-3 { border-left-color: #e67e22; 
  background: linear-gradient(-90deg, #fff2 10%, #e67e2255 40%)
} /* U toku - Orange */
.status-4 { border-left-color: #2ecc71; 
  background: linear-gradient(-90deg, #fff2 10%, #2ecc7155 40%)
} /* Zavrsena - Green */

.badge { display: inline-block; 
    
    padding: 3px 8px; border-radius: 4px; font-size: 11px; font-weight: bold; color: #fff;
    position: absolute;
    bottom:4px;left:0;rotate: -90deg;
    transform-origin: 0px 20px;
    z-index: 1000;

}
.badge-1 { background: #3498db; }
.badge-2 { background: #f1c40f; color:#333; }
.badge-3 { background: #e67e22; }
.badge-4 { background: #2ecc71; }

/* ==========================================================================
   SKLADISTE / WAREHOUSE MODULE
   Uses existing global variables & scoped under .skladiste_page
   ========================================================================== */

/* 1. Page Scoped Structure & Search Bar Override */
.skladiste_page .content.ponude {
    padding-bottom: 30px;
}

.skladiste_page .search-action-bar {
    margin-top: 10px;
}

.skladiste_page .search-action-bar input {
    width: 100%;
    box-sizing: border-box;
    font-size: var(--fn);
    padding: 10px 12px;
}

/* 2. Warehouse KPI Badges */
.wh-kpi-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 10px 0;
}

.kpi-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid #ddd;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    box-sizing: border-box;
    transition: transform 0.15s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.kpi-badge:active {
    transform: scale(0.95);
}

.kpi-badge__val {
    font-size: var(--fxl);
    font-weight: bold;
    line-height: 1;
    color: var(--black);
}

.kpi-badge__val span {
    font-size: var(--fxs);
    color: var(--darkgrey);
}

.kpi-badge__label {
    font-size: var(--fxs);
    font-weight: bold;
    text-transform: uppercase;
    color: var(--darkgrey);
    margin-top: 4px;
}

/* Alarm State using brand --main */
.kpi-badge--alarm {
    border-color: var(--main);
}

.kpi-badge--alarm .kpi-badge__val {
    color: var(--main);
}

.kpi-badge--alarm.active {
    background-color: #f332; /* Tint matching your tab active state */
    box-shadow: 0 0 0 3px var(--main);
}

/* 3. Procurement Action Button */
.btn-procure {
    width: 100%;
    padding: 12px;
    background: var(--darkblue);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: var(--fn);
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 10px 0;
    box-sizing: border-box;
    transition: background-color 0.2s ease, opacity 0.1s ease;
}

.btn-procure:active {
    opacity: 0.9;
}

.btn-procure--alert {
    background: var(--main); /* Alerts switch to primary brand orange/red */
}

/* 4. Article List & Column Headers */
.skladiste_page .skladiste_cnt {
    margin-top: 10px;
}

.article-list-card {
    background: var(--white);
    border-radius: 6px;
    border: 1px solid #ddd;
    overflow: hidden;
}

.article-list-header {
    padding: 8px 12px;
    background: var(--lightgrey);
    border-bottom: 1px solid #ddd;
}

.article-list-header__title {
    font-size: var(--fs);
    font-weight: bold;
    text-transform: uppercase;
    color: var(--darkgrey);
    margin-bottom: 4px;
}

.article-list-cols {
    display: grid;
    grid-template-columns: 1fr 50px 65px;
    font-size: var(--fxs);
    font-weight: bold;
    color: var(--darkgrey);
    text-transform: uppercase;
}

/* 5. Swipe Wrapper & Action Buttons */
.swipe-item-wrapper {
    position: relative;
    overflow: hidden;
    background: var(--lightgrey);
    border-bottom: 1px solid #eaeaea;
}

.swipe-item-wrapper:last-child {
    border-bottom: none;
}

.swipe-actions {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    z-index: 1;
}

.swipe-btn {
    width: 70px;
    height: 100%;
    border: none;
    font-size: var(--fxl);
    font-weight: bold;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.swipe-btn--minus { 
    background: var(--main); 
}

.swipe-btn--plus { 
    background: var(--green); 
}

/* 6. Foreground Sliding Article Row */
.article-row {
    position: relative;
    background: var(--white);
    padding: 10px 12px;
    display: grid;
    grid-template-columns: 1fr 50px 65px;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    z-index: 2;
    transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.article-row__main {
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow: hidden;
}

.article-row__tag {
    font-size: var(--fxs);
    font-weight: bold;
    color: var(--darkblue);
}

.article-row__name {
    font-size: var(--fs);
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.3;
}

.article-row__code {
    font-size: var(--fxs);
    color: var(--darkgrey);
}

.article-row__qty {
    font-size: var(--fl);
    font-weight: bold;
    text-align: right;
    color: var(--darkblue);
}

.article-row__qty--low {
    color: var(--main);
}

.article-row__price {
    font-size: var(--fs);
    font-weight: bold;
    text-align: right;
    color: var(--darkgrey);
}

/* 7. Loading / Empty State Feedback */
.wh-loading-state, 
.wh-empty-state, 
.wh-error-state {
    padding: 25px 15px;
    text-align: center;
    font-size: var(--fs);
    color: var(--darkgrey);
    background: var(--white);
    border-radius: 6px;
    border: 1px dashed #ddd;
    margin-top: 10px;
}

.wh-error-state {
    color: var(--main);
    border-color: var(--main);
}



/* ==========================================================================
   SKLADISTE ARTIKAL DETAILS (Appended to style.css)
   ========================================================================== */

.article_details_page .content {
    margin-top: 15px;
}

.article_details_page .article-title-card {
    background: var(--white);
    border-radius: 6px;
    padding: 12px 15px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

.article_details_page .article-title-card__name {
    font-size: var(--fn);
    font-weight: bold;
    color: var(--black);
    line-height: 1.35;
    text-transform: uppercase;
}

/* Stepper Widget Container */
.article_details_page .stock-widget {
    background: var(--white);
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #ccc;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-sizing: border-box;
    margin: 15px 0;
    transition: border-color 0.2s, background-color 0.2s;
}

.article_details_page .stock-widget--alarm {
    border-color: var(--main);
    background-color: #f331; /* Light tint of main color */
}

/* Stepper Layout */

.stockWidgetInfoBoxMessage{
    font-size: var(--fs);
    border:1px solid var(--main);
    padding: 8px;
    color:var(--main);
    line-height:1.1em;
    background: #f332;
    display: block;
}
.article_details_page .stock-capsule {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--lightgrey);
    border-radius: 8px;
    border: 1px solid #ddd;
    overflow: hidden;
}

.article_details_page .stock-btn {
    flex: 0 0 60px;
    height: 60px;
    background: #e2e8f0;
    border: none;
    font-size: var(--fxxl);
    font-weight: bold;
    color: var(--darkgrey);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.article_details_page .stock-btn:active {
    background: #cbd5e1;
}

.article_details_page .stock-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
}

.article_details_page .stock-stat--limit {
    opacity: 0.65;
}

.article_details_page .stock-stat__val {
    font-size: var(--fl);
    font-weight: bold;
    color: var(--black);
}

.article_details_page .stock-stat__label {
    font-size: var(--fxs);
    font-weight: bold;
    text-transform: uppercase;
    color: var(--darkgrey);
}

.article_details_page .stock-stat--current .stock-stat__val {
    font-size: 32px;
    font-weight: 900;
    color: var(--darkblue);
    line-height: 1;
}

.article_details_page .stock-stat--current .stock-stat__label {
    font-size: var(--fs);
    color: var(--darkgrey);
}

/* Dynamic Context Buttons */
.article_details_page .btn-action-context {
    width: 100%;
    padding: 12px;
    border-radius: 6px;
    font-size: var(--fn);
    font-weight: bold;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-sizing: border-box;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.article_details_page .btn-action-context--out {
    background-color: var(--main);
    color: var(--white);
}

.article_details_page .btn-action-context--in {
    background-color: var(--green);
    color: var(--white);
}

/* Relocate Action Button */
.article_details_page .btn-relocate {
    width: 100%;
    padding: 12px;
    background: var(--white);
    color: var(--darkblue);
    border: 2px solid var(--darkblue);
    border-radius: 6px;
    font-size: var(--fn);
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-sizing: border-box;
}

.article_details_page .btn-icon-left {
    margin-right: 5px;
}

.article_details_page .btn-relocate:active {
    background: var(--lightgrey);
}

/* Data Tables */
.article_details_page .data-card {
    background: var(--white);
    border-radius: 6px;
    padding: 12px 15px;
    border: 1px solid #ddd;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.article_details_page .data-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--fs);
    border-bottom: 1px dashed #eee;
    padding-bottom: 6px;
}

.article_details_page .data-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.article_details_page .data-row__label {
    color: var(--darkgrey);
    font-weight: bold;
    text-transform: uppercase;
    font-size: var(--fxs);
}

.article_details_page .data-row__val {
    font-weight: bold;
    color: var(--black);
}

.article_details_page .data-row__val--link {
    color: var(--darkblue);
    text-decoration: underline;
}

/* ==========================================================================
   MODAL SPECIFIC REPLACEMENTS (Extracted from inline HTML)
   ========================================================================== */

.article_details_page .modal-title {
    margin-top: 0;
}

.article_details_page .modal-spacing {
    margin-bottom: 12px;
}

.article_details_page .modal-spacing--top {
    margin-top: 15px;
}

.article_details_page .modal-checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.article_details_page .modal-checkbox {
    width: 18px;
    height: 18px;
}

.article_details_page .modal-checkbox-label {
    margin-bottom: 0;
    text-transform: none;
    cursor: pointer;
}

.article_details_page .modal-btn-bar {
    display: flex;
    gap: 10px;
    width: 100%;
}

.article_details_page .modal-btn-cancel {
    background: #eee;
    color: #333;
    flex: 1;
}

.article_details_page .modal-btn-confirm {
    flex: 1;
}

/* Active Order Bar Positioning Override */
.article_details_page .fab-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--orange);
    padding: 15px;
    text-align: center;
    z-index: 100;
    cursor: pointer;
}

.article_details_page .fab-order-text {
    color: var(--white);
    font-size: var(--fs);
}

/* ==========================================================================
   SKLADISTE - DETALJI NABAVKE / NALOGA
   ========================================================================== */

.order_details_page .data-card {
    background: var(--white);
    border-radius: 6px;
    padding: 15px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

.order_details_page .order-title {
    font-size: var(--fxl);
    color: var(--darkblue);
    margin: 0 0 5px 0;
    font-weight: 800;
}

.order_details_page .order-meta {
    font-size: var(--fs);
    color: var(--darkgrey);
    margin: 0 0 12px 0;
}

.order_details_page .section-title {
    font-size: var(--fn);
    color: var(--black);
    margin: 0 0 10px 0;
    font-weight: bold;
    text-transform: uppercase;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: var(--fxs);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge--pending {
    background-color: #f3e8ff; /* Light purple/blue */
    color: #7e22ce;
    border: 1px solid #d8b4fe;
}

.status-badge--success {
    background-color: #dcfce7; /* Light green */
    color: #166534;
    border: 1px solid #bbf7d0;
}

/* Comment Box */
.comment-box {
    width: 100%;
    min-height: 80px;
    resize: vertical;
    padding: 10px;
    font-family: inherit;
    font-size: var(--fs);
    border-radius: 6px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

/* Button Variants */
.btn-procure--dark { background: var(--darkgrey); }
.btn-procure--success { background: var(--green); }

/* Static Article Row Override (No Swiping needed here) */
.article-row--static {
    grid-template-columns: 1fr 60px 40px; /* Space for Name, Qty, Remove btn */
    padding: 12px;
    border-bottom: 1px solid #eee;
    background: transparent;
    cursor: default;
}

.article-row--static:last-child {
    border-bottom: none;
}

/* Remove Item Button */
.btn-remove-item {
    width: 35px;
    height: 35px;
    border-radius: 6px;
    background: #ffe4e6; /* light red */
    color: var(--main);
    border: 1px solid #fda4af;
    font-weight: bold;
    font-size: var(--fl);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.1s;
}

.btn-remove-item:active {
    background: #fecdd3;
    transform: scale(0.95);
}

/* ==========================================================================
   SKLADISTE - DETALJI NABAVKE / NALOGA
   ========================================================================== */

/* State Classes */
.is-processing {
    opacity: 0.7;
    pointer-events: none;
    cursor: wait !important;
}

/* Order Details Layout */
.order_details_page .data-card {
    background: var(--white);
    border-radius: 6px;
    padding: 15px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

.order_details_page .data-card--order-header {
    margin-bottom: 15px;
}

.order_details_page .data-card--comment {
    margin-bottom: 15px;
}

.order_details_page .order-title {
    font-size: var(--fxl);
    color: var(--darkblue);
    margin: 0 0 5px 0;
    font-weight: 800;
}

.order_details_page .order-meta {
    font-size: var(--fs);
    color: var(--darkgrey);
    margin: 0 0 12px 0;
}

.order_details_page .section-title {
    font-size: var(--fn);
    color: var(--black);
    margin: 0 0 10px 0;
    font-weight: bold;
    text-transform: uppercase;
}

.order_details_page .section-title--items {
    margin: 20px 0 10px 0;
}

.order_details_page .items-wrapper {
    margin: 15px;
    
}
.order_details_page .items-wrapper h4{
    text-align: center;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: var(--fxs);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge--pending {
    background-color: #f3e8ff; 
    color: #7e22ce;
    border: 1px solid #d8b4fe;
}

.status-badge--success {
    background-color: #dcfce7; 
    color: #166534;
    border: 1px solid #bbf7d0;
}

/* Buttons and Form Elements */
.comment-box {
    width: 100%;
    min-height: 80px;
    resize: vertical;
    padding: 10px;
    font-family: inherit;
    font-size: var(--fs);
    border-radius: 6px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

.order-actions {
    margin-top: 15px;
}

.btn-icon {
    margin-right: 8px;
}


.btn-procure--dark { 
    background: var(--darkgrey); 
}

.btn-procure--success { 
    background: var(--green); 
}

.btn-procure--pdf {
    margin-bottom: 8px;
}

.btn-save-comment {
    margin-top: 10px;
    padding: 10px;
}

.delete-action-wrapper {

    width:90%;
    margin: 20px auto;
}

/* Static Article Row Override */
.article-row--static {
    grid-template-columns: 1fr 60px 40px; 
    padding: 12px;
    border-bottom: 1px solid #eee;
    background: transparent;
    cursor: default;
}

.article-row--static:last-child {
    border-bottom: none;
}

.article-row__qty--highlight {
    color: var(--darkblue);
}

.article-row__unit {
    font-size: 10px;
    color: var(--darkgrey);
}

/* Remove Item Action Button */
.btn-remove-item {
    width: 35px;
    height: 35px;
    border-radius: 6px;
    background: #ffe4e6; 
    color: var(--main);
    border: 1px solid #fda4af;
    font-weight: bold;
    font-size: var(--fl);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.1s;
}

.btn-remove-item:active {
    background: #fecdd3;
    transform: scale(0.95);
}


/* ==========================================================================
   SKLADISTE - NALOZI (Orders List Page)
   ========================================================================== */

.orders_page .content {
    margin-top: 15px;
}

.orders_page .subheader_cnt {
    margin-bottom: 15px;
}

.orders-list-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.order-card {
    background: var(--white);
    border-radius: 6px;
    border: 1px solid #ddd;
    border-left: 12px solid #ccc;
    padding: 12px 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
    cursor: pointer;
    transition: background 0.15s, opacity 0.2s;
    box-sizing: border-box;
}

.order-card:active {
    background: var(--lightgrey);
}

.order-card.is-processing {
    opacity: 0.6;
    pointer-events: none;
}

/* Modifikatori leve ivice (Type Indicators) */
.order-card--nabavka {
    border-left-color: #a855f7; /* Purple for Nabavka */
}

.order-card--otpremnica {
    border-left-color: var(--darkblue); /* Blue for Otpremnica */
}

/* Komponente Kartice */
.order-card__type {
    font-size: 11px;
    font-weight: 800;
    color: var(--darkgrey);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.order-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.order-card__title {
    font-size: var(--fl);
    color: var(--black);
    font-weight: 800;
}

.order-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--fs);
    color: var(--darkgrey);
}

.order-card__items-count {
    color: var(--black);
    font-weight: 800;
}

/* Dodatni Status Bedževi */
.status-badge--purple {
    background-color: #f3e8ff; 
    color: #7e22ce;
    border: 1px solid #d8b4fe;
}

.status-badge--danger {
    background-color: #fee2e2; 
    color: #be123c;
    border: 1px solid #fecdd3;
}

.status-badge--info {
    background-color: #e0f2fe; 
    color: #0369a1;
    border: 1px solid #bae6fd;
}


/* ==========================================================================
   SKLADISTE - NALOZI (Orders List Page)
   ========================================================================== */

.orders-content {
    margin-top: 15px;
}

.orders-search {
    margin-bottom: 15px;
    padding: 0 15px;
}

.orders-search input {
    width: 100%;
    box-sizing: border-box;
    font-size: var(--fn);
    padding: 10px 12px;
}

.orders_page .subheader_cnt {
    padding: 0 15px;
    box-shadow: none; /* Uklanjamo globalni box shadow iz ovog kontejnera da ne pravi problem sa tabovima */
}

/* Tabs styling extensions */
.orders-tabs {
    margin-top: 15px;
    margin-bottom: 15px;
}

.orders-list-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 15px 30px 15px;
}

/* KARTICE */
.order-card {
    background: var(--white);
    border-radius: 6px;
    border: 1px solid #ddd;
    border-left: 12px solid #ccc;
    padding: 12px 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
    cursor: pointer;
    transition: background 0.15s, opacity 0.2s;
    box-sizing: border-box;
}

.order-card:active {
    background: var(--lightgrey);
}

.order-card.is-processing {
    opacity: 0.6;
    pointer-events: none;
}

/* Modifikatori leve ivice */
.order-card--nabavka {
    border-left-color: #a855f7; 
}

.order-card--otpremnica {
    border-left-color: var(--darkblue); 
}

/* Komponente Kartice */
.order-card__type {
    font-size: 11px;
    font-weight: 800;
    color: var(--darkgrey);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.order-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.order-card__title {
    font-size: var(--fl);
    color: var(--black);
    font-weight: 800;
}

.order-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--fs);
    color: var(--darkgrey);
}

.order-card__items-count {
    color: var(--black);
    font-weight: 800;
}

/* ==========================================================================
   SKLADISTE - POPIS (Inventory List)
   ========================================================================== */

.inventory-action-wrapper {
    padding: 15px;
    margin-bottom: 20px;
}

.subheader_cnt--history {
    margin-top: 25px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    box-shadow: none;
}

.inventory-history-list {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Base Inventory Card */
.inventory-card {
    background: var(--white);
    border-radius: 6px;
    border: 1px solid #ddd;
    padding: 12px 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.inventory-card__content {
    flex: 1;
}

.inventory-card__title {
    font-size: var(--fn);
    color: var(--black);
    font-weight: 800;
    margin: 0 0 4px 0;
}

.inventory-card__meta {
    font-size: var(--fs);
    color: var(--darkgrey);
    margin: 0;
    line-height: 1.4;
}

/* Active Inventory Card Modifier */
.inventory-card--active {
    margin: 15px;
    border-left: 8px solid var(--main); /* Rema Orange */
    cursor: pointer;
    background: #fff8f6; /* Subtle orange tint */
    transition: background 0.15s, opacity 0.2s;
    justify-content: flex-start;
}

.inventory-card--active:active {
    background: #ffe4e0;
}

.inventory-card--active.is-processing {
    opacity: 0.6;
    pointer-events: none;
}

.inventory-card__icon {
    font-size: 24px;
    margin-right: 15px;
}

.inventory-card--active .inventory-card__title {
    color: var(--main);
    font-size: var(--fl);
}

/* PDF Download Button for History */
.btn-download-pdf {
    background-color: var(--darkblue);
    color: var(--white);
    font-size: var(--fs);
    font-weight: bold;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.15s;
}

.btn-download-pdf:active {
    background-color: var(--darkgrey);
}



/* ==========================================================================
   SKLADISTE - PROCES POPISA (Inventory Process)
   ========================================================================== */

.popis-actions {
    padding: 0 15px 15px 15px;
}

/* Stats Grid */
.stats-grid {
    display: flex;
    justify-content: space-between;
    background: var(--white);
    border-radius: 6px;
    padding: 15px;
    margin: 0 15px 15px 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
    border: 1px solid #eee;
}

.stat-box {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.stat-box--center {
    border-left: 1px solid #eee;
    border-right: 1px solid #eee;
    padding: 0 15px;
    margin: 0 15px;
}

.stat-label {
    font-size: 11px;
    color: var(--darkgrey);
    text-transform: uppercase;
    font-weight: bold;
}

.stat-value {
    font-size: var(--fxl);
    margin-top: 5px;
    color: var(--black);
}

.text-danger { color: #e11d48; }
.text-success { color: #16a34a; }

/* Sticky Search Bar */
.sticky-search {
    position: sticky;
    top: 60px; /* Adjust based on your header height */
    z-index: 10;
    padding: 10px 15px;
    background: #f4f6f9; /* Match body background */
}

/* Inventory Items Wrapper */
.inv-items-wrapper {
    padding: 0 15px 30px 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Inventory Item Card */
.inv-item {
    background: var(--white);
    border-radius: 6px;
    padding: 12px;
    border: 1px solid #ddd;
    border-left: 6px solid #ccc;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
    cursor: pointer;
    transition: opacity 0.2s, background 0.1s;
}

.inv-item:active {
    background: var(--lightgrey);
}

.inv-item__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.inv-item__title {
    font-size: var(--fl);
    color: var(--black);
    font-weight: 800;
}

.inv-item__name {
    font-size: var(--fs);
    color: var(--darkgrey);
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.inv-item__footer {
    text-align: right;
}

.inv-item__qty-label {
    font-size: var(--fs);
    color: var(--green); /* Success green text */
}

.inv-item__qty-val {
    font-size: var(--fl);
}

/* State Modifiers */
.inv-item--open {
    border-left-color: #fca5a5; /* Red edge */
}

.inv-item--counted {
    border-left-color: #7dd3fc; /* Blue edge */
}

.inv-item--confirmed {
    border-left-color: #86efac; /* Green edge */
    opacity: 0.6;
    pointer-events: none; /* Cannot tap confirmed items */
}

/* ==========================================================================
   SKLADISTE - MATRICA POLICA (Matrix)
   ========================================================================== */

/* Aisle Wrapper */
.matrix-aisle {
    margin: 15px;
    background: var(--white);
    border-radius: 6px;
    border: 1px solid #ddd;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

.matrix-aisle__title {
    margin: 0;
    padding: 12px 15px;
    background: #f8fafc; /* Subtle blue-grey */
    border-bottom: 1px solid #ddd;
    color: var(--darkblue);
    font-size: var(--fn);
    font-weight: 800;
}

/* The Grid */
.matrix-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1px;
    background: #eee; /* Creates the border lines between cells */
}

/* Individual Cell */
.matrix-cell {
    background: var(--white);
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 80px;
    cursor: pointer;
    transition: background 0.1s;
}

.matrix-cell:active {
    background: var(--lightgrey);
}

.matrix-cell.is-processing {
    opacity: 0.5;
    pointer-events: none;
}

/* Cell States */
.matrix-cell--empty {
    opacity: 0.6; /* visually deprioritize empty shelves */
}

.matrix-cell--active {
    border-top: 3px solid var(--green); /* Green accent for non-empty */
}

.matrix-cell__header {
    margin-bottom: 8px;
}

.matrix-cell__name {
    display: block;
    font-size: var(--fn);
    color: var(--black);
    font-weight: 800;
    line-height: 1.2;
}

.matrix-cell__coord {
    display: block;
    font-size: 10px;
    color: var(--darkgrey);
    margin-top: 2px;
}

.matrix-cell__footer {
    text-align: right;
    color: var(--main);
}

.matrix-cell__qty {
    font-size: var(--fl);
    font-weight: 800;
}


/* ==========================================================================
   FLOATING MODAL OVERLAY (Used for Matrix & others)
   ========================================================================== */



.modal-overlay.hidden {
    display: none !important;
}


.modal-header {
  color: var(--main);
    padding: 0px 0 3px 0;
    position: relative;
    border-bottom: 1px dashed var(--main);

    
}

.modal-header .close_modal{
    position: absolute;
    top: -8px;
    right: -4px;
    font-size:var(--fl)
}


.modal-title-main {
    font-size: var(--fl);
    max-width: 80%
}


.modal-body{
    padding: 20px 0;
}

.modal-body .form-row{
    display: flex;
    gap:10px;
    justify-content: space-between;
    align-items: center;
}

.modal-body .form-row .form-col{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
}

.modal-body .form-row input{
    width:100%;
    max-width: 100px;
    display: flex;
    text-align: center;
    box-sizing: border-box;
    padding: 8px;
}
.modal-body .form-row label{
    padding: 0 0 6px 0;
    box-sizing: border-box;
    text-align: center;
    display: flex;
}

.modal-body .form-group{
    display: flex;
    flex-direction: column;
    padding: 10px 0 10px 0;
    border-top:1px dashed #aaa;
    margin: 10px 0 0 0;
}
.modal-body textarea{
    margin: 10px 0 0 0;
    padding: 6px
}
.modal-footer-actions{
    display: flex;
    gap:10px
}


/* Modifiers for table inside modal */
.table-data {
    width: 100%;
    border-collapse: collapse;
}

.table-data th {
    font-size: var(--fs);
    color: var(--darkgrey);
    text-align: left;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.table-row-clickable {
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
}

.table-row-clickable:last-child {
    border-bottom: none;
}

.table-row-clickable:active {
    background: #f8fafc;
}

.table-row-clickable td {
    padding: 10px 0;
}

.tag-blue {
    background: #e0f2fe;
    color: #0369a1;
    padding: 3px 6px;
    border-radius: 4px;
    font-weight: bold;
    font-size: var(--fs);
}

.total-banner {
    margin-top: 15px;
    background: #fff8f6;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #fcd34d;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ==========================================================================
   SNAPSHOT / SITUACIJE MODULE
   ========================================================================== */

.situacija_detalji{
    width:96%;
    margin: auto;
    box-sizing: border-box;
}

.situacija_detalji .button_column{
    width:80%;
    margin: auto;
}


.snap-section-header {
    font-size: var(--fn);
    padding: 12px 15px 2px 4px;
    margin: 25px 0 10px 0;
    color:var(--main);
    font-weight: bold;
    letter-spacing: -.4px

}

.snap-item-card {
    border: 1px dashed var(--main);
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 15px;
    background:#f331

}

.snap-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
       
}

.snap-item-title {
    flex: 1;
    font-size:var(--fs);
    font-weight: bold;
    padding-right: 10px;
    line-height: 1.1em;
    color:var(--main);
}

.snap-item-price-box {
    text-align: right;
}

.snap-price-val {
    font-size: var(--fs);
    font-weight: bold;
    color:var(--main)
}

.snap-label {
    font-size: var(--fxs);
    color: #999;
    text-transform: uppercase;
    font-weight: 600;
    margin-top: 2px;
}

/* Badges */
.snap-badges {
    display: flex;
    gap: 10px;
    margin-bottom: 5px;
}

.snap-badge {
    background: #eee;
    padding: 6px 12px;
    border-radius: 3px;
    flex: 1;
}

.snap-badge--purple {
    background: #6662;
    border-left-color: #a855f7;
}

.snap-badge-val {
    font-size: var(--fn);
    font-weight: 700;
    color: var(--main);
    margin-top: 2px;
}

/* Input Area */
.snap-input-area {
    background: #f331;
    border-radius: 3px;
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.snap-input-area--disabled {
    background: #f1f5f9;
    opacity: 0.8;
}

.snap-input-title {
    font-size: var(--fn);
    font-weight: 700;
    color: var(--main);
}

.snap-icon {
    margin-right: 5px;
    color: var(--main);
}

.snap-input-wrapper {
    display: flex;
    align-items: center;
}

.snap-input {
    width: 80px;
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: var(--fn);
    font-weight: 700;
    text-align: center;
}

.snap-input:disabled {
    background: #e9ecef;
    color: #777;
}

.snap-unit {
    font-size: 13px;
    font-weight: 800;
    margin-left: 8px;
}

.snap-unit--active { color: var(--main); }
.snap-unit--muted { color: #666; }

/* Progress Bar */
.snap-progress-container {
    margin-top: 5px;
}

.snap-prog-header {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 6px;
}

.snap-prog-track {
    background: #e2e8f0;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
}

.snap-prog-bar {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease, background-color 0.3s ease;
}


/* ==========================================================================
   LIVE SEARCH RESULTS
   ========================================================================== */

.input-field{
    padding: 8px;
    border-radius: 6px;
    border:1px solid #999;
}

.search-results {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow-y: scroll;
    max-height: 70vh;
}

.search-item {
    padding: 2px 10px;
    background: #fee;
    border: 1px solid #fee;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.1s, border-color 0.1s;
   
}

.search-item:active {
    background: #e2e8f0;
    border-color: #cbd5e1;
}

.search-item__main {
    flex: 1;
    padding-right: 10px;
}

.search-item__code {
    font-size: var(--fxs);
    color: var(--darkgrey);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-item__name {
    font-size: var(--fxs);
    line-height: 1.2;
    margin-top: 3px;
    display: block;
}

.search-item__price {
    font-size: var(--fxs);
    white-space: nowrap;
    text-align: right;
    
}

/* ==========================================================================
   DOKUMENTI LISTA (BAZIRANO NA DB ENTITETIMA)
   ========================================================================== */

.dokumenti {
    padding: 15px;
}

.doc-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.doc-card__header {
    display: flex;
    align-items: center;
    gap: 15px;
}

.doc-card__icon {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.doc-card__main {
    flex: 1;
    min-width: 0;
}

.doc-card__type {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
}

.doc-card__title {
    font-size: 14px;
    font-weight: 700;
    color: #2c3e50;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.doc-card__meta {
    font-size: 11px;
    color: #7f8c8d;
    display: flex;
    gap: 12px;
}

/* Red sa dugmićima za preuzimanje */
.doc-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border-top: 1px dashed #eee;
    padding-top: 12px;
}

.btn-doc {
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: opacity 0.2s;
}

.btn-doc:active { opacity: 0.7; }
.btn-doc:disabled { opacity: 0.5; cursor: not-allowed; }


.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

/* Paleta boja za dugmad */
.btn-doc--blue { background: #ebf5fb; color: #2980b9; }
.btn-doc--orange { background: #fef5e7; color: #d35400; }
.btn-doc--yellow { background: #fef9e7; color: #f39c12; }
.btn-doc--purple { background: #f4ecf7; color: #8e44ad; }
.btn-doc--green { background: #eafaf1; color: #27ae60; }
.btn-doc--teal { background: #e8f8f5; color: #16a085; }
.btn-doc--dark { background: #f4f6f7; color: #34495e; }


/* KORISNIK */ 
.podaci_o_korisniku{
    width:90%;
    margin: auto;
    color:var(--main);
}
.podaci_o_korisniku label{
    color:var(--main);
}
.podaci_o_korisniku input{
    border: 1px solid var(--main);
}
.podaciKorisnik .title-section{
    padding: 20px 0;
}
.logout_cnt{
    padding: 20px;
    cursor:pointer;
}
.logout_cnt .logout{
    color:var(--main);
    font-size:36px;
    border:2px solid var(--main);
    margin: auto;
    display: block;
    text-align: center;
    padding: 10px;
    border-radius: 6px;
}

.layout-fullscreen{
    background:linear-gradient(to top, #e66a 10%, #fff 40%)
}

.login-box{
    width:90%;
    margin:auto;
}
.login-box .brand-logo-large{
    width: 260px;
    margin: auto;
    padding: 40px;
}

.login-box .form-group{
    width:80%;
    margin: 20px auto;
    
    
}
.login-box #dugmePrijava{
    width:200px;
    margin: 50px auto 10px;
    display: block;
    padding: 14px
}

/* Status Colors */
.snap-text-muted { color: #7f8c8d; }
.snap-text-success { color: var(--main); }
.snap-text-warning { color: #e67e22; }

.snap-prog-bar--success { background-color: #e33; }
.snap-prog-bar--warning { background-color: #e67e22; }

/*foooter*/
.footer{padding: 10px; background:var(--lightgrey)}
.footer h3{font-size: var(--fxs); font-weight: normal; text-align: right; }