﻿/* General Styles */
body {
    font-family: Arial, Helvetica, Verdana, sans-serif;
    font-size: 13px;
    color: #000000;
}

/* Tables */
table {
    width: 700px;
    border-collapse: collapse;
    margin: 20px auto;
    background-color: #ffffff;
    font-family: inherit;
    font-size: inherit;
}

td {
    padding: 5px;
    border: 1px solid #000000;
    vertical-align: middle;
}

/* Table Variants */
table.tbl1, table.tbl3, table.tbl4 {
    margin-top: 20px;
}

td.tbl1grey, td.tbl3grey, td.tbl4grey {
    background-color: #E9E9E9;
    font-weight: bold;
    text-align: center;
}

td.tbl1white, td.tbl3white, td.tbl4white {
    background-color: #ffffff;
}

td.tbl3greyrez, td.tbl4greyrez {
    background-color: #E9E9E9;
    font-weight: bold;
}

td.tbl3whiterez, td.tbl4whiterez {
    background-color: #ffffff;
}

/* Inputs */
input, textarea, select {
    border: none;
    outline: none;
    background-color: #ffffff;
    font-size: inherit;
    color: inherit;
}

input[type="number"] {
    width: 90%;
}

input::placeholder {
    color: #888888;
}

/* Hide spinner for number inputs */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type="number"] {
    -moz-appearance: textfield;
}

/* Buttons */
div.mybestbutton {
    display: inline-block;
    border: 2px solid;
    border-radius: 20px;
    font-weight: bold;
    width: 300px;
    text-align: center;
    padding: 10px;
    margin: 0 auto;
    background-color: #005DBC;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
}

div.mybestbutton:hover {
    background-color: #ffffff;
    color: #005DBC;
}

div.mybestbuttonred
{
display: inline-block; border: 2px solid; border-radius: 20px; font-weight: bold; width: 300px; text-align: center; padding: 10px; margin-left: auto; margin-right: auto; background-color: #cc0000; color: #ffffff;
}
div.mybestbuttonred:hover
{
background-color: #ffffff; color: #cc0000;
}

button, input.izchisli, input.dobavired {
    font-weight: bold;
    color: #ff0000;
}

/* Print-specific styles */
@media print {
    div.mymenu, div.mybestbutton, div.mybestbuttonred, button, h2, h5, hr, table.tblbtn, div.infoceni {
        display: none !important;
    }

    @page {
        margin: 0;
    }
  }

/* Additional Utility Classes */
div.mymenu {
    text-align: center;
    margin: 0;
}

textarea {
    width: 100%;
    padding: 10px;
    resize: vertical;
}

div.infoceni {
    padding: 10px;
    margin: 10px;
}

textarea {
    width: calc(100% - 20px); /* Account for padding */
    padding: 10px;
    border: 1px solid #000000;
    resize: vertical;
    box-sizing: border-box; /* Include padding and border in width/height */
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    color: #000000;
    background-color: #ffffff;
}

/* Responsive стилове за мобилни устройства */
@media only screen and (max-width: 768px) {
    body {
        font-size: 14px; /* Регулиране на основния шрифт за по-добра четливост */
        padding: 0;
        margin: 0;
    }

    table {
        width: 98%; /* Намаляване на ширината на таблиците */
    }

    td, input, textarea {
        font-size: 14px; /* По-малък размер на текста */
        padding: 8px; /* Увеличаване на пространството за удобство при докосване */
    }

    input[type="text"], input[type="number"], textarea {
        width: 95%; /* Автоматично адаптиране на ширината на полетата за въвеждане */
        box-sizing: border-box; /* Включване на padding в ширината */
    }

    div.mybestbutton {
        width: 90%; /* Увеличаване на ширината на бутоните, за да се впишат добре на малки екрани */
        font-size: 16px; /* По-голям шрифт за мобилни устройства */
    }

    div.mybestbuttonred {
        width: 90%; /* Увеличаване на ширината на бутоните, за да се впишат добре на малки екрани */
        font-size: 16px; /* По-голям шрифт за мобилни устройства */
    }

    button, input.izchisli {
        width: 90%; /* Бутоните също да заемат повече място */
        font-size: 16px; /* Увеличаване на размера на текста */
    }

    h2 {
        font-size: 18px; /* По-малък размер на заглавието */
        text-align: center; /* Центриране на заглавието */
    }
}