/* --- GLOBAL --- */
:root {
    --bg-body: #121212;
    --bg-card: #1e1e1e;
    --bg-input: #2c2c2c;
    --text-main: #e0e0e0;
    --text-muted: #a0a0a0;
    --accent: #00bcd4;
    --border: #333333;
    --success: #4caf50;
    --font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: var(--font-family);
    margin: 0;
    padding-bottom: 80px;
}

/* --- MAIN CONTAINER --- */
.smetakonteyner {
    max-width: 950px;
    margin: 20px auto;
    padding: 20px;
    background-color: var(--bg-card);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
}

.smetabasliq {
    text-align: center;
    color: var(--accent);
    font-size: 26px;
    margin-bottom: 10px;
}

.info-box {
    background-color: rgba(255, 255, 255, 0.03);
    padding: 10px;
    border-radius: 8px;
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 20px;
}

/* --- YEKUN PANEL --- */
.yekun-panel {
    background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%);
    padding: 15px 20px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 10px;
    z-index: 100;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    margin-bottom: 25px;
    border: 1px solid #2e7d32;
}

.yekun-label { color: #fff; font-weight: 500; font-size: 16px; }
.yekun-deyer { font-size: 26px; font-weight: 700; color: #fff; }

/* --- DÜYMƏLƏR --- */
.buttons-wrapper {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.btn {
    border: 1px solid var(--border);
    padding: 8px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-family: var(--font-family);
    background-color: var(--bg-input);
    color: var(--text-main);
    transition: 0.2s;
}
.btn:hover { background-color: var(--accent); color: #fff; border-color: var(--accent); }


/* --- CƏDVƏL SÜTUNLARININ ENİ (DÜZƏLDİLDİ) --- */
/* Ad hissəsi */
.th-item, .td-name { 
    width: 35%; 
    padding-right: 5px; 
} 

/* Miqdar (Quantity) - İndi ən geniş budur (30%) */
.th-qty, .td-qty { 
    width: 30%; 
}

/* Qiymət (Price) - İndi daha ensizdir (5%) */
.th-price, .td-price { 
    width: 5%; 
} 

/* Hasil (Total) */
.th-total, .td-total { 
    width: 18%; 
    text-align: right; 
}


/* --- CƏDVƏL HEADER --- */
.table-header-row {
    display: flex;
    border-bottom: 2px solid var(--border);
    padding-bottom: 10px;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-muted);
    font-size: 13px;
    text-align: center;
}
.th-item { text-align: left; }


/* --- SEKSİYA --- */
.section-title {
    margin-top: 35px;
    margin-bottom: 10px;
    font-size: 15px;
    font-weight: 600;
    color: var(--accent);
    border-left: 3px solid var(--accent);
    padding-left: 10px;
    background-color: rgba(255,255,255,0.02);
    padding-top: 5px;
    padding-bottom: 5px;
}

/* --- CƏDVƏL SƏTİRLƏRİ --- */
.smeta-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.smeta-table td {
    padding: 10px 5px;
    border-bottom: 1px solid #252525;
    vertical-align: middle;
    font-size: 14px;
}
.td-price { text-align: center; }
.td-total { font-weight: 600; color: var(--success); }

/* --- MİQDAR SÜTUNU (Vertikal Düzüm) --- */
.td-qty {
    display: flex; 
    flex-direction: row; 
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.unit-label {
    font-size: 11px;
    color: #777;
    line-height: 1;
}

/* --- INPUT FIELDS --- */
input[type="number"] {
    width: 100%; 
    /* Max-width artırıldı ki, 30% sütunu doldursun */
    max-width: 100%; 
    background-color: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 5px;
    color: var(--text-main);
    padding: 8px;
    text-align: center;
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 500;
    transition: 0.2s;
}
input[type="number"]:focus { outline: none; border-color: var(--accent); background-color: #383838; }
input[type="number"]:disabled { 
    opacity: 0.2; 
    background-color: transparent; 
    border-color: transparent; 
}

/* --- CHECKBOX --- */
.item-group { display: flex; align-items: center; cursor: pointer; gap: 10px; }
.item-group span { transition: 0.2s; line-height: 1.2; }
.item-group input:checked + span { color: var(--accent); }

input[type="checkbox"] {
    appearance: none; -webkit-appearance: none;
    width: 18px; height: 18px;
    border: 2px solid #555; border-radius: 4px;
    display: grid; place-content: center; flex-shrink: 0;
}
input[type="checkbox"]:checked { background-color: var(--accent); border-color: var(--accent); }
input[type="checkbox"]:checked::before { content: "✓"; color: white; font-size: 12px; font-weight: bold; }

/* --- RESPONSIVE --- */
@media (max-width: 600px) {
    .smetakonteyner { padding: 10px; margin: 5px; }

    /* --- MİQDAR SÜTUNU (Vertikal Düzüm) --- */
.td-qty {
    display: flex; 
    flex-direction: column; 
}
    
    .th-item, .td-name { width: 35%; font-size: 12px; }
    /* Mobildə də miqdara daha çox yer veririk */
    .th-qty, .td-qty { width: 32%; } 
    .th-price, .td-price { width: 8%; }
    .th-total, .td-total { width: 20%; font-size: 12px; }
    
    input[type="number"] { padding: 6px; font-size: 13px; }
}





@media print {
    body {
        background-color: white;
    }
    .smetakonteyner {
        background-color: white;
    }
    table tr td input[type=number] {
        background-color: white;
        color: black;
        border: none;
    }
    table tr td {
        color: black;
    }
    .iscixerc {
        color: black;
    }
    .btn {
        display: none;
    }
    .menu {
        display: none;
    }
    .menu2 {
        display: none;
    }
    .menudesktop {
        display: none;
    }
    .smetaqeyd {
        display: none;
    }
    .footerplan {
        display: none;
    }
    .yenimehsul {
        display: none;
    }
    #addbtn1 {
        display: none;
    }
    #addbtn2 {
        display: none;
    }
    #addbtn3 {
        display: none;
    }
    .basliq {
        display: none;
    }

    
    .yekundiv {
        border-radius: 5px;
    }
    
    .basliqtable tr td {
        border-radius: 5px;
        color: white;
    }

    .menucontainer {
        display: none;
    }

    .products-link-div {
        display: none;
    }

    .fb-iframe {
        display: none;
    }

    .topbar {
        display: none;
    }


    
}