/* ATi - 2026-02-15 23:22:22 */
/* UI.CSS - Stiluri principale */
body { font-family: sans-serif; margin: 20px; color: #333; }
h1, h2, h3 { color: #8f0000; }

/* Container Antet (Sigla + Meniu) */
.container-antet {
    display: flex;
    align-items: center;
    background-color: #f9ebeb;
    border-bottom: 2px solid #8f0000;
    margin-bottom: 20px;
}

/* Meniu Navigare */
.nav-principal {
    padding: 10px;
}

.nav-principal ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 15px;
}

.nav-principal a {
    text-decoration: none;
    color: #8f0000;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-principal a:hover {
    background-color: #eecbcb;
    color: #600000;
}

.nav-principal a.activ {
    background-color: #8f0000;
    color: #ffffff;
}

/* Sigla */
.container-sigla {
    text-align: left;
    padding: 5px 20px;
    background-color: transparent;
}

.container-sigla a {
    display: block; /* Asigură că link-ul învelește corect imaginea */
}

.container-sigla img {
    height: 60px; /* Înălțime fixă pentru a micșora logo-ul */
    width: auto;  /* Păstrează proporțiile */
    display: block;
}

/* Elemente UI Generale (Butoane, Tabele) */
.bara-actiuni {
    margin-bottom: 20px;
    text-align: right;
}

.buton {
    display: inline-block;
    padding: 10px 20px;
    background-color: #8f0000;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    border: none;
    cursor: pointer;
}

.buton:hover {
    background-color: #600000;
}

.tabel-date {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.tabel-date th, .tabel-date td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

.tabel-date th {
    background-color: #f9ebeb;
    color: #8f0000;
}

.tabel-date tr:nth-child(even) {
    background-color: #f9f9f9;
}

.tabel-date tr:hover {
    background-color: #f1f1f1;
}

/* Formulare */
input[type="text"], input[type="number"], input[type="date"], select, textarea {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 10px;
    width: 100%;
    box-sizing: border-box; /* Include padding în lățime */
}

fieldset {
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

legend { font-weight: bold; color: #8f0000; padding: 0 5px; }

/* Stiluri pentru Factură (Vizualizare) */
.factura-container {
    background: white;
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid #eee;
}

.factura-antet {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    border-bottom: 2px solid #8f0000;
    padding-bottom: 20px;
}

.factura-detalii {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.factura-box {
    width: 45%;
}

.factura-totaluri {
    margin-top: 20px;
    text-align: right;
}

.factura-totaluri table {
    width: 300px;
    margin-left: auto;
}

/* Stiluri specifice pentru IMPRIMARE */
@media print {
    body {
        margin: 0;
        padding: 0;
        background: white;
        color: black;
    }

    .container-antet, 
    .bara-actiuni, 
    .nav-principal,
    .buton {
        display: none !important;
    }

    .factura-container {
        border: none;
        width: 100%;
        max-width: 100%;
        padding: 0;
        margin: 0;
    }
}
