html {
    font-size: 72%;
}

body {
    /* Модерен стек от системни шрифтове - изглежда страхотно на всяко устройство */
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    padding:            0;
    margin:             0.1em;
    color:              #2d3748; /* По-меко, модерно тъмно сиво вместо агресивно черно */
    background:         #f8fafc; /* Леко, свежо сивкаво-бяло за модерен изглед */
}

body:before {
    content: "";
    position: fixed;
    top: -10px;
    left: 0;
    width: 100%;
    height: 10px;
    box-shadow: 0px 0px 15px rgba(0,0,0,0.08); /* Изключително фина и мека сянка */
    z-index: 100;
}

input, select, textarea, file {
    font-size: 1em;
}

input.small, select.small, textarea.small, file.small {
    font-size: 0.9em;
}

h1 {
    font-size: 1.3em;
    color: #1a202c; /* Модерен тъмен цвят вместо бял на светъл фон */
    font-weight: 600;
    display: inline;
    margin: 0px 0px 0px 0px;
}

h1.message_red {
    font-size: 1.1em;
    color: #e53e3e; /* Приятно, неослепяващо модерно червено */
    font-weight: 600;
    margin: 0px 0px 0px 0px;
}

table {
    margin-top:         0.1em;
    margin-bottom:      0.1em;
    padding:            0.1em;
    border: 1px solid #e2e8f0;
    border-collapse: collapse; /* За по-изчистени линии */
}

table.hidden {
    margin-top:         0.1em;
    margin-bottom:      0.1em;
    padding:            0.1em;
    border: 0px;
}

tr.header {
    background: #edf2f7; /* Чист, светъл заглавен ред */
    color: #4a5568;
    font-weight: 600;
}

tr.content {
    background: #ffffff;
    color: #2d3748;
    font-weight: normal;
    border-bottom: 1px solid #f1f5f9;
}

tr.content:hover {
    background: #f1f5f9; /* Мек ефект при посочване */
    color: #1a202c;
    font-weight: normal;
}

tr.content_bold {
    background: #ffffff;
    color: #1a202c;
    font-weight: 600;
    border-bottom: 1px solid #f1f5f9;
}

tr.content_bold:hover {
    background: #f1f5f9;
    color: #1a202c;
    font-weight: 600;
}

tr.footer {
    background: #edf2f7;
    color: #4a5568;
    font-weight: 600;
}

a {
    color: #2563eb; /* Красиво, модерно линк синьо (тип Tailwind/Google) */
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

a.menu {
    font-weight: 600;
    color: #4a5568;
    float: right;
    margin-left: 1em;
}

a.menu:hover {
    color: #1a202c;
    text-decoration: underline;

}

div.container {
    text-align: left;
    width: 100%;
    margin: 0 auto;
}

div.container24 {
    text-align: left;
    width: 24em;
    margin: 0 auto;
}

label {
    margin-top: 0.7em;
    float: left;
    font-weight: 600;
    color: #4a5568;
}

label.orig {
    width: 8em;
}

/* Модернизирани полета (Cards) */
fieldset {
    margin-top:         0.5em;
    margin-bottom:      0.5em;
    border-radius:      6px; /* Леко по-меко заобляне */
    padding:            0.5em;
    border:             1px solid #e2e8f0;
    background:         #ffffff; /* Изцяло чист бял фон за вътрешността */
    box-shadow:         0 1px 3px rgba(0,0,0,0.05); /* Елегантна дълбочина */
}

fieldset.menu {
    margin-top:         0.5em;
    margin-bottom:      0;
    border-radius:      6px;
    padding:            0.5em;
    border:             1px solid #e2e8f0;
    background:         #dadbdd; /* Модерен "сивкав" панел за меню */
    box-shadow:         0 1px 3px rgba(0,0,0,0.05);
}

fieldset.whitHeadersFooters {
    border-radius:      0px;
    margin-top:         0em;
    margin-bottom:      0em;
    padding:            0.5em;
    border:             1px solid #e2e8f0;
    background:         #ffffff;
}

fieldset.whitFooters {
    margin-top:         0.5em;
    margin-bottom:      0;
    border-radius:      6px 6px 0 0;
    padding:            0.5em;
    border:             1px solid #e2e8f0;
    background:         #ffffff;
}

fieldset.whitHeaders {
    margin-top:         0;
    margin-bottom:      0.5em;
    border-radius:      0 0 6px 6px;
    padding:            0.5em;
    border:             1px solid #e2e8f0;
    background:         #ffffff;
}

.tblHeaders {
    font-weight:        normal;
    color:              #4a5568;
    background:         #e6e8e9;
}

fieldset.tblHeaders {
    margin-top:         0.5em;
    margin-bottom:      0;
    border-bottom:      0;
    text-align:         left;
    float:              none;
    clear:              both;
    border-radius:      6px 6px 0 0;
}

.tblFooters {
    font-weight:        normal;
    color:              #4a5568;
    background:         #e6e8e9;
}

fieldset.tblFooters {
    margin-top:         0;
    margin-bottom:      0.5em;
    border-top:         0;
    text-align:         right;
    float:              none;
    clear:              both;
    border-radius:      0 0 6px 6px;
}

fieldset legend {
    font-weight:        600;
    color:              #1a202c;
    padding:            3px 10px;
    border-radius:      4px;
    border:             1px solid #e2e8f0;
    background-color:   #efeded;
    box-shadow:         0 2px 4px rgba(0,0,0,0.02);
}

div.h1 {
    font-size: 1.3em;
    color: #1a202c;
    font-weight: 600;
    text-align: left;
    float: left;
    clear: both;
    margin: 0px 0px 0px 0px;
}

div.h1_right {
    text-align: right;
    float: right;
    margin: 0px 0px 0px 0px;
}

div.item {
    float: none;
    color: #2d3748;
}

div.menu {
    float: none;
    color: #4a5568;
}

div.item_red {
    float: none;
    color: #e53e3e;
}

div.item_red_bold {
    float: none;
    color: #e53e3e;
    font-weight: 600;
}

.icon {
    vertical-align: middle; /* По-добро съвременно подравняване на икони */
    margin-right:       0.3em;
    margin-left:        0.3em;
}

/* Модерни текстови полета и селекти */
input[type=text], input[type=password], input[type=file], input[type=reset], textarea, select {
    transition: all 0.2s ease-in-out;
    outline: none;
    padding: 3px 0px 3px 3px;
    margin: 5px 1px 3px 0px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    background: #ffffff;
    color: #2d3748;
}
 
input[type=text]:focus, input[type=password]:focus, input[type=file]:focus, input[type=reset]:focus, textarea:focus, select:focus {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15); /* Модерен мек "пръстен" около полето при фокус */
    border-color: #2563eb; /* Сини нюанси при фокус */
}

/* Елегантни бутони в плосък (Flat) стил */
input[type=submit], input[type=button] {
    transition: all 0.2s ease-in-out;
    font-weight: 500;
    margin-left: 14px;
    border: 1px solid #cbd5e1;
    padding: 1px 7px;
    color: #334155;
    text-decoration: none;
    background: #f1f5f9;
    border-radius: 6px; /* Леко намалено от 12px за по-професионален вид, съобразен с размера */
    cursor: pointer;
}

input[type=submit]:hover, input[type=button]:hover {
    background: #e2e8f0;
    border-color: #94a3b8;
    color: #0f172a;
}

input[type=submit]:active, input[type=button]:active {
    background: #cbd5e1;
    transform: translateY(1px); /* Модерен ефект на натискане вместо ретро позициониране */
}

a img {
    border: 0;
}