/* ПРИНУДИТЕЛЬНОЕ ПЕРЕОПРЕДЕЛЕНИЕ СТИЛЕЙ БРАУЗЕРА ДЛЯ КНОПОК */
* {
    box-sizing: border-box !important;
}

/* БАЗОВЫЕ СТИЛИ ДЛЯ ВСЕХ КНОПОК */
button {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: transparent;
    border: 0;
    margin: 0;
    padding: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
    outline: none;
    box-shadow: none;
    text-shadow: none;
}

/* УБИРАЕМ СТАНДАРТНЫЕ СТИЛИ БРАУЗЕРА */
button::-moz-focus-inner {
    border: 0;
    padding: 0;
}

button:focus {
    outline: none;
}

/* СТИЛИ ДЛЯ КНОПОК-ССЫЛОК НАВИГАЦИИ (как в оригинальном ASPX) */
.nav-link {
    color: #323D8C;
    text-decoration: underline;
    font-size: 11px;
    font-family: verdana, sans-serif;
    cursor: pointer;
    background: transparent;
    border: 0;
    padding: 2px 4px;
    margin: 0;
    display: inline-block;
    min-width: 80px;
    text-align: center;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    font-weight: normal;
}

.nav-link:hover {
    color: #5965C0;
    text-decoration: underline;
}

.nav-link:active {
    color: #5965C0;
    text-decoration: underline;
}

.nav-link:visited {
    color: #323D8C;
    text-decoration: underline;
}

/* СТИЛИ ДЛЯ ОБЫЧНЫХ КНОПОК */
.btn { 
    font-size: 10px; 
    font-weight: bold; 
    color: #FFFFFF; 
    background-color: #2A58A9; 
    border-top: 2px solid #6C9DF7; 
    border-left: 2px solid #6C9DF7; 
    border-bottom: 2px solid #033272;
    border-right: 2px solid #033272; 
    font-family: Verdana,Tahoma,Arial,sans-serif; 
    text-decoration: none;
    width: 120px;
    padding: 5px 10px;
    cursor: pointer;
    display: inline-block;
    text-align: center;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.btn:hover {
    background-color: #3A68B9;
    border-top: 2px solid #7CADF7;
    border-left: 2px solid #7CADF7;
    border-bottom: 2px solid #134282;
    border-right: 2px solid #134282;
}

.btn:active {
    background-color: #1A48A9;
    border-top: 2px solid #5C8DF7;
    border-left: 2px solid #5C8DF7;
    border-bottom: 2px solid #032272;
    border-right: 2px solid #032272;
}

BODY {font-family:verdana, sans-serif;font-size:11px;color:#000000;background-color:#FFFFFF;}
TD {font-family:verdana, sans-serif;font-size:11px;}
TH {font-family:verdana, sans-serif;font-size:11px;color: #FFFFFF;background-color:#336598;font-weight:bold;}
INPUT, SELECT, TEXTAREA {font-family:verdana, sans-serif;font-size:11px;color: #000000;}
FORM {margin-bottom : 0px;margin-left : 0px;margin-right : 0px;margin-top : 0px;}

.gridmain {border: 3 solid white;padding:5px;background-color:#ACD1E9;}
.gridheader {background-color:#11429B;color:#FFFFFF;font-weight:bold;height:30px;text-align:center;}
.gridaltitem {background-color:#8FBCD8;}

.bgstripe1 {background-color:#8FBCD8;}
.bgstripe2 {background-color:#ACD1E9;}

.bgtabactive {background-color:#5A93B7;}
.bgtabpassive {background-color:#EEEEEE;border-left: 2 solid #FFFFFF; border-bottom: 2 solid #FFFFFF;border-right: 2 solid #FFFFFF;}

P {text-align: justify;margin-top: 10px;}
LI {text-align: justify;}
UL {list-style: square;}

.header {color:#134282;font-size:17px;}
.title {font-weight:bold;}
.titlewhite {font-weight:bold;color:#FFFFFF;}

.redtext {color:#EB2A2D;}
.whitetext {color:#FFFFFF;}
.graytext {color:#727272;}

.small {font-size:11px;}

A:link {color:#323D8C;text-decoration:underline;}
A:visited {color:#323D8C;text-decoration:underline;}
A:hover {color:#5965C0;text-decoration:underline;}
A:active {color:#5965C0;text-decoration:underline;}

/* Стили для календаря */
.calendar-grid {
    width: 100%;
    border-collapse: collapse;
}

.calendar-grid th,
.calendar-grid td {
    border: 1px solid #659dc2;
    padding: 3px;
    height: 60px;
    vertical-align: top;
}

.calendar-grid th {
    background: linear-gradient(180deg, #f1f5f9, #e2e8f0);
    color: #4a5568;
    font-weight: 600;
    text-align: center;
    border: 1px solid #cbd5e1;
}

.calendar-grid tbody tr {
    background-color: rgba(248,250,252,0.6);
}

.calendar-grid tbody tr:nth-child(even) {
    background-color: rgba(241,245,249,0.8);
}

.calendar-grid tbody tr:nth-child(odd) {
    background-color: rgba(248,250,252,0.6);
}

/* Стили для панели загрузки */
.loading-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2A58A9;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

