/* Общие стили для всех страниц */
TH                    {padding-left: 3px; padding-right: 3px; font-weight:normal; text-align: left; background-color: #FFFFB0;}
TD                    {padding-left: 3px; padding-right: 3px; }
TABLE                 {background-color: #FFFFE0;}
H3                    {font-weight: normal; margin-top: 15px; margin-bottom: 15px}
A                     {color: #0000FF;}

TABLE.invisible       {background-color: transparent; padding: 0px;}
DIV.main              {padding-left: 4px; margin-bottom: 23px; width: 91%}
DIV.main_full         {padding-left: 4px; margin-bottom: 23px;}
A.always_blue:visited {color: #0000FF;}

SPAN.name_string    {}
SPAN.time_separator {color: grey; font-size: small;}

SPAN.warning_string          {color: DarkOrange;}
SPAN.warning_string SPAN     {color: DarkOrange;}

SPAN.danger_string           {color: red;}
SPAN.danger_string SPAN      {color: red;}

SPAN.achievement_string      {color: #0099ff;}
SPAN.achievement_string SPAN {color: #0099ff;}

SPAN.unknown_string          {color: grey;}
SPAN.unknown_string SPAN     {color: grey;}

TABLE.colored TR TH   {background-color: #0000CD; color: #FFFFFF; font-weight: normal}

/* Раздел лога */
TD.log_edit          {background-color: #6060FF; color: white}  
TD.log_edit A        {color: white}    

TD.log_add           {background-color: #10A010; color: white}  
TD.log_add A         {color: white}    

TD.log_delete        {background-color: #FF6060; color: white}  
TD.log_delete A      {color: white}    

TD.log_name_unknown  {background-color: #EEEEDD}                /* Пользователи без привязки */

/*Заголовок с выбором параметров*/
DIV.selector_header {margin-top:  -10px;}

DIV.selector_header + DIV.selector_header  {margin-top:  5px;}

DIV.selector_header DIV.subheader          {display: inline-block; margin-top: 5px; padding: 2px; padding-left: 8px; padding-right: 8px; font-size: 18px; background: #F2F2F2;}     
DIV.selector_header DIV.subheader        A {color: black; text-decoration: none}

DIV.selector_header DIV.subheader.subheader_active   {background: #4040F0}    
DIV.selector_header DIV.subheader.subheader_active A {color: white;}

/*Заголовок - надо переделать!*/
TABLE.header         {border-collapse: collapse}

TD.header_inactive   {padding: 2px; font-size: 24px;  background: #F2F2F2; color: black}
TD.header_pilots     {padding: 2px; font-size: 24px;  background: #3030E0; color: white}
TD.header_technics   {padding: 2px; font-size: 24px;  background: #A0522D; color: white}
TD.header_finance    {padding: 2px; font-size: 24px;  background: #2E8B57; color: white}
TD.header_settings   {padding: 2px; font-size: 24px;  background: #303030; color: white}
TD.header_sublinks   {padding: 2px; font-size: 22px;  background: #D0D0D0; color: #404040}

TD.page_active       {padding: 2px; padding-left: 8px; padding-right: 8px; font-size: 21px; background: #4040F0; border: 1px solid #F2F2F2}
TD.page_active     A {color: white; text-decoration: none}

TD.page              {padding: 2px; padding-left: 8px; padding-right: 8px; font-size: 21px; background: #F2F2F2; border: 1px solid #F2F2F2}
TD.page            A {color: black; text-decoration: none}

TD.subheader_active   {padding: 2px; padding-left: 8px; padding-right: 8px; font-size: 18px; background: #4040F0; border: 1px solid #F2F2F2}    
TD.subheader_active A {color: white; text-decoration: none}

TD.subheader         {padding: 2px; padding-left: 8px; padding-right: 8px; font-size: 18px; background: #F2F2F2; border: 1px solid #F2F2F2}     
TD.subheader       A {color: black; text-decoration: none}

DIV.subheader_active {font-size: 12px; color: #F0F0F0;}
DIV.subheader        {font-size: 12px; color: #303030;}

A.header             {color: #0040B0}
A.header_main        {color: #0040A0}

/*Динамическая таблица*/

/*Кнопки*/
BUTTON.styled              {background: #3030E0; color: white; display: inline; padding-top: 5px; padding-bottom: 5px; padding-left: 10px; padding-right: 10px; border: 0; box-shadow: none; border-radius: 0px;}
BUTTON.styled:hover        {background-color: #3030FF;}
BUTTON.styled:disabled     {background: #AAA; color: black;}

.single_button.single_button.single_button.single_button.single_button.single_button                       {top: 0px; right: -22px; height: 100%; position: absolute;}
.single_button.single_button.single_button.single_button.single_button.single_button A                     {position: absolute; top: 44%; right: 0; transform: translateY(-50%); color: grey !important; cursor: default !important; text-decoration: none;}
.single_button.single_button.single_button.single_button.single_button.single_button A.button_copy:hover   {color: #3030FF !important;}
.single_button.single_button.single_button.single_button.single_button.single_button A.button_delete:hover {color: red !important;}

.double_buttons.double_buttons.double_buttons.double_buttons.double_buttons.double_buttons                       {top: 0px; right: -22px; height: 100%; position: absolute;}
.double_buttons.double_buttons.double_buttons.double_buttons.double_buttons.double_buttons A                     {position: absolute; top: 44%; transform: translateY(-50%); color: grey !important; cursor: default !important; text-decoration: none;}
.double_buttons.double_buttons.double_buttons.double_buttons.double_buttons.double_buttons A.button_copy         {right: 0px;}
.double_buttons.double_buttons.double_buttons.double_buttons.double_buttons.double_buttons A.button_delete       {right: -18px;}
.double_buttons.double_buttons.double_buttons.double_buttons.double_buttons.double_buttons A.button_copy:hover   {color: #3030FF !important;}
.double_buttons.double_buttons.double_buttons.double_buttons.double_buttons.double_buttons A.button_delete:hover {color: red !important;}

.button_send                 {margin-top: 10px;}
.button_send:enabled::after  {content:"Отправить";}
.button_send:disabled::after {content:"Заполните все фиолетовые поля";}

.button_add         {margin-left: 10px;}

/*Ошибка*/
.error		 	          {background-color: #CC0000 !important; color: white !important;}   /* Ячейка с ошибкой */
.error.tech_alarm   TD:last-child  {background-color: #CC0000 !important; color: white !important;}   /* Специальное выделение комментария техники */
.error.tech_danger  TD:last-child  {background-color: #CC0000 !important; color: white !important;}   /* Специальное выделение комментария техники */
.error.tech_unknown TD:last-child  {background-color: #CC0000 !important; color: white !important;}   /* Специальное выделение комментария техники */

.error A                         {color: white !important;}
.error DIV.not_important_text    {color: white !important;}
.error DIV.important_text        {color: white !important;}
.error DIV.grey_text             {color: white !important;}
.error DIV.attachment_counter    {color: white !important;}
.error TEXTAREA                  {color: white !important;}
.error INPUT                     {color: white !important;}
.error INPUT::-webkit-calendar-picker-indicator {filter: invert(1)}
.error INPUT::-webkit-datetime-edit {color: white !important;}

.error .editable:hover           {background-color: #FF0000 !important;}                            
.error .editable:focus           {background-color: #FF0000 !important;}                            

/*Счетчики и серые надписи*/
DIV.attachment_counter      {color: #404040}
DIV.attachment_counter IMG  {padding-right: 2px; vertical-align: top;}
DIV.not_important_text      {display: inline; color: #404040}
DIV.important_text          {display: inline; color: red}
DIV.grey_text               {display: inline; color: #A0A0A0}

/*Выпадающие подсказки*/
DIV.tooltip            {cursor: default; position: relative;}
DIV.tooltip span       {display:none; width:250px; text-align: left; }
DIV.tooltip:hover span {display:block; position:absolute; z-index: 100; top: 20px; left: 45px; border: 1px solid #565656; padding: 5px 5px; background: #FFFFFF; color:#3A3A3A; }

/*Таблички с привязанными взносами*/
TABLE.transactions_span                  {background-color: #FFFFFF; border-collapse: collapse;}
TABLE.transactions_span TR               {height: 22px;}
TABLE.transactions_span TR TD            {border-right: 1px solid #404040;}
TABLE.transactions_span TR TD:last-child {border-right: 0px; background-color: #FFFFFF;}
TABLE.transactions_span TR TD A          {color: #0000FF !important;}

/*Подсветки и раскаска*/
A.grey_normal           {color: #606060; text-decoration: none}
A.grey_normal:hover     {color: #303030; text-decoration: underline}

A.colored               {color: #000000; text-decoration: none}
A.colored:hover         {color: #606060; text-decoration: underline}

/*Активные поля по умолчанию*/
.editable:hover         {background-color: #CCFFCC;}
.editable:focus         {background-color: #CCFFCC;}

/*В процессе отправки*/
/*
.pending.ready                            {background-color: #00B0F0 !important; color: white !important;}
.pending.ready          .editable         {background-color: #00B0F0 !important; color: white !important;}
.pending.ready          .grey_text        {color: white !important;}
.pending.ready          .editable:hover   {background-color: #00BFFF !important; color: white !important;}

.pending.ready_to_input                   {background-color: #F000F0 !important; color: white !important;}
.pending.ready_to_input .editable         {background-color: #F000F0 !important; color: white !important;}
.pending.ready_to_input .grey_text        {color: white !important;}
.pending.ready_to_input .editable:hover   {background-color: #FF00FF !important; color: white !important;}

.pending.not_ready                        {background-color: #A0A0A0 !important; color: black !important;}
.pending.not_ready      .editable         {background-color: #A0A0A0 !important; color: black !important;}
.pending.not_ready      .editable:hover   {background-color: #A0A0A0 !important; color: black !important;}
*/

.ready                              {background-color: #00B0F0 !important; color: white !important;}
.ready          .editable           {background-color: #00B0F0 !important; color: white !important;}
.ready          .grey_text          {color: white !important;}
.ready		.not_important_text {color: white !important;}
.ready		.important_text     {color: white !important;}
.ready		.attachment_counter {color: white !important;}
.ready          .editable:hover     {background-color: #00BFFF !important; color: white !important;}
.ready          A                   {color: white !important;}

.ready_to_input                     {background-color: #F000F0 !important; color: white !important;}
.ready_to_input .editable           {background-color: #F000F0 !important; color: white !important;}
.ready_to_input .grey_text          {color: white !important;}
.ready_to_input .not_important_text {color: white !important;}
.ready_to_input .important_text     {color: white !important;}
.ready_to_input .attachment_counter {color: white !important;}
.ready_to_input .editable:hover     {background-color: #FF00FF !important; color: white !important;}
.ready_to_input A                   {color: white !important;}

.not_ready                        {background-color: #A0A0A0 !important; color: black !important;}
.not_ready      .editable         {background-color: #A0A0A0 !important; color: black !important;}
.not_ready      .editable:hover   {background-color: #A0A0A0 !important; color: black !important;}

/*Выделение*/
TR.hilight                                   {background-color: #FFFF60}   /* Обычная желтая подсвеченная строчка  */

TR.tech_alarm TD:last-child                        {color: white; background-color: #FF8000}   /* Специальное выделение комментария техники */
TR.tech_alarm TD:last-child DIV.attachment_counter {color: white !important;}
TR.tech_alarm TD:last-child .editable              {color: white;}                             /* Специальное выделение комментария техники */
TR.tech_alarm TD:last-child .editable:hover        {background-color: #FFA000}                 /* Специальное выделение комментария техники */
TR.tech_alarm TD:last-child .editable:focus        {background-color: #FFA000}                 /* Специальное выделение комментария техники */

TR.tech_danger TD:last-child                        {color: white; background-color: #FF0000}   /* Специальное выделение комментария техники */
TR.tech_danger TD:last-child DIV.attachment_counter {color: white !important;}
TR.tech_danger TD:last-child .editable              {color: white;}                             /* Специальное выделение комментария техники */
TR.tech_danger TD:last-child .editable:hover        {background-color: #FF5050}                 /* Специальное выделение комментария техники */
TR.tech_danger TD:last-child .editable:focus        {background-color: #FF5050}                 /* Специальное выделение комментария техники */

TR.tech_unknown TD:last-child                        {color: black; background-color: #DDDDDD}   /* Специальное выделение комментария техники */
TR.tech_unknown TD:last-child DIV.attachment_counter {color: black !important;}
TR.tech_unknown TD:last-child .editable              {color: black;}                             /* Специальное выделение комментария техники */
TR.tech_unknown TD:last-child .editable:hover        {background-color: #F0F0F0}                 /* Специальное выделение комментария техники */
TR.tech_unknown TD:last-child .editable:focus        {background-color: #F0F0F0}                 /* Специальное выделение комментария техники */

/*Красные*/
TR.red                                  {background-color: #FFD0D0}       /*Либо #FFD0D0, #FFC7CE, #FFCCCC*/
TR.red.hilight                          {background-color: #A03030; color: white}
TR.red.hilight A                        {color: white}
TR.red.hilight DIV.not_important_text   {color: white}
TR.red.hilight DIV.important_text       {color: white}
TR.red.hilight DIV.grey_text            {color: white}
TR.red.hilight DIV.attachment_counter   {color: white}
TR.red.hilight SPAN TABLE A             {all: revert}
TR.red.hilight TEXTAREA                 {color: white}
TR.red.hilight INPUT                    {color: white}
TR.red.hilight INPUT::-webkit-calendar-picker-indicator {filter: invert(1)}

TR.red         .editable:hover          {background-color: #FFAAAA}
TR.red         .editable:focus          {background-color: #FFAAAA}
TR.red.hilight .editable:hover          {background-color: #C03030}
TR.red.hilight .editable:focus          {background-color: #C03030}

TR.red A.colored                        {color: #8B0000;}
TR.red A.colored:hover                  {color: #E00000;}

/*Синие*/
TR.blue                                  {background-color: #D6EAF8}       /*Либо #FFD0D0, #FFC7CE, #FFCCCC*/
TR.blue.hilight                          {background-color: #3030A0; color: white}
TR.blue.hilight A                        {color: white}
TR.blue.hilight DIV.not_important_text   {color: white}
TR.blue.hilight DIV.important_text       {color: white}
TR.blue.hilight DIV.grey_text            {color: white}
TR.blue.hilight DIV.attachment_counter   {color: white}
TR.blue.hilight SPAN TABLE A             {all: revert}
TR.blue.hilight TEXTAREA                 {color: white}
TR.blue.hilight INPUT                    {color: white}
TR.blue.hilight INPUT::-webkit-calendar-picker-indicator {filter: invert(1)}

TR.blue         .editable:hover          {background-color: #AED6F1}
TR.blue         .editable:focus          {background-color: #AED6F1}
TR.blue.hilight .editable:hover          {background-color: #3030C0}
TR.blue.hilight .editable:focus          {background-color: #3030C0}

/*Серые*/
TR.grey                                  {background-color: #DDDDDD}
TR.grey.hilight                          {background-color: #808080; color: white}
TR.grey.hilight A                        {color: white}
TR.grey.hilight DIV.not_important_text   {color: white}
TR.grey.hilight DIV.important_text       {color: white}
TR.grey.hilight DIV.grey_text            {color: white}
TR.grey.hilight DIV.attachment_counter   {color: white}
TR.grey.hilight SPAN TABLE A             {all: revert}
TR.grey.hilight TEXTAREA                 {color: white}
TR.grey.hilight INPUT                    {color: white}
TR.grey.hilight INPUT::-webkit-calendar-picker-indicator {filter: invert(1)}

TR.grey         .editable:hover          {background-color: #F0F0F0}
TR.grey         .editable:focus          {background-color: #F0F0F0}
TR.grey.hilight .editable:hover          {background-color: #606060}
TR.grey.hilight .editable:focus          {background-color: #606060}

TR.grey A.colored                        {color: #606060; text-decoration: none}
TR.grey A.colored:hover                  {color: #303030; text-decoration: underline}

/*Зеленые*/
TR.green                                  {background-color: #D0F0D0}       /*Либо #CCFFCC*/
TR.green.hilight                          {background-color: #308030; color: white}
TR.green.hilight A                        {color: white}
TR.green.hilight DIV.not_important_text   {color: white}
TR.green.hilight DIV.important_text       {color: white}
TR.green.hilight DIV.grey_text            {color: white}
TR.green.hilight DIV.attachment_counter   {color: white}
TR.green.hilight SPAN TABLE A             {all: revert}
TR.green.hilight TEXTAREA                 {color: white}
TR.green.hilight INPUT                    {color: white}
TR.green.hilight INPUT::-webkit-calendar-picker-indicator {filter: invert(1)}

TR.green.hilight .editable:hover          {background-color: #30A030}
TR.green.hilight .editable:focus          {background-color: #30A030}

TR.green A.colored                        {color: #006400;}
TR.green A.colored:hover                  {color: #00C000;}

/*Ширины и стиль колонок*/
TABLE.record                                    {background-color: transparent; width: 100%;}
TABLE.record TR 				{height: 22px;}
TABLE.record TR TD:nth-child(1)                 {white-space: nowrap; padding-right: 20px;}
TABLE.record TR TD:nth-child(2)                 {width: 100%;}
TABLE.record TR TD:nth-child(2) .editable       {background-color: white; border: 1px solid black;}
TABLE.record TR TD:nth-child(2) .editable:hover {background-color: #CCFFCC;}
TABLE.record TR TD:nth-child(2) .editable:focus {background-color: #CCFFCC;}

/*
TABLE.new_record .pending.ready .editable       {background-color: white !important; color: black !important;}
TABLE.new_record .pending.ready .editable:hover {background-color: #CCFFCC !important;}
TABLE.new_record .pending.ready .grey_text      {color: #A0A0A0 !important;}
*/
TABLE.new_record .ready .editable               {background-color: white !important; color: black !important;}
TABLE.new_record .ready .editable:hover         {background-color: #CCFFCC !important;}
TABLE.new_record .ready .grey_text              {color: #A0A0A0 !important;}
TABLE.new_record .ready .not_important_text     {color: #404040 !important;}
TABLE.new_record .ready .important_text         {color: red !important;}
TABLE.new_record .ready A                       {color: #0000FF !important;}

/*Пилоты*/
TABLE.pilots   	   		   {width: 100%}
TABLE.pilots TR TH:nth-child(1)    {width:  13%}
TABLE.pilots TR TH:nth-child(2)    {width:   8%}
TABLE.pilots TR TH:nth-child(3)    {width:  30%}
TABLE.pilots TR TH:nth-child(4)    {width:   6%}
TABLE.pilots TR TH:nth-child(5)    {width:   6%}
TABLE.pilots TR TH:nth-child(6)    {width:   9%}
TABLE.pilots TR TH:nth-child(7)    {width:   9%}
TABLE.pilots TR TH:nth-child(8)    {width:   9%}
TABLE.pilots TR TH:nth-child(9)    {width:   9%}

/*Техника*/
TABLE.technics   	   	   {width: 100%;}

TABLE.technics TR TH:nth-child(1)  {width: 8%}
TABLE.technics TR TH:nth-child(2)  {width: 19%}
TABLE.technics TR TH:nth-child(3)  {width: 11%}
TABLE.technics TR TH:nth-child(4)  {width: 8%}
TABLE.technics TR TH:nth-child(5)  {width: 9%}
TABLE.technics TR TD:nth-child(5)  {text-align: right;}
TABLE.technics TR TH:nth-child(6)  {width: 9%}
TABLE.technics TR TD:nth-child(6)  {text-align: right;}
/*
TABLE.technics TR TH:nth-child(7)  {width: 6%}
TABLE.technics TR TD:nth-child(7)  {text-align: right;}
TABLE.technics TR TH:nth-child(8)  {width: 6%}
TABLE.technics TR TD:nth-child(8)  {text-align: right;}
*/

TABLE.technics TR TH:nth-child(7)  {width: 6%}
TABLE.technics TR TH:nth-child(8) {width: 6%}

TABLE.technics.glider TR TH:nth-child(8)  {display: none;}
TABLE.technics.glider TR TD:nth-child(8)  {display: none;}

TABLE.technics.tow TR TH:nth-child(7)  {display: none;}
TABLE.technics.tow TR TD:nth-child(7)  {display: none;}

TABLE.technics.common TR TH:nth-child(7)  {display: none;}
TABLE.technics.common TR TD:nth-child(7)  {display: none;}
TABLE.technics.common TR TH:nth-child(8) {display: none;}
TABLE.technics.common TR TD:nth-child(8) {display: none;}

TABLE.technics.null_club TR TH:nth-child(5)  {display: none;}
TABLE.technics.null_club TR TD:nth-child(5)  {display: none;}
TABLE.technics.null_club TR TH:nth-child(6)  {display: none;}
TABLE.technics.null_club TR TD:nth-child(6)  {display: none;}
/*
TABLE.technics.null_club TR TH:nth-child(7)  {display: none;}
TABLE.technics.null_club TR TD:nth-child(7)  {display: none;}
TABLE.technics.null_club TR TH:nth-child(8)  {display: none;}
TABLE.technics.null_club TR TD:nth-child(8)  {display: none;}
*/

/*Расходы*/
TABLE.spendings TR:last-child TD   {font-weight: bold}
TABLE.spendings TR TH:nth-child(2) {text-align: center}
TABLE.spendings TR TH:nth-child(3) {text-align: center}
TABLE.spendings TR TH:nth-child(4) {text-align: center}
TABLE.spendings TR TD:nth-child(2) {text-align: right}
TABLE.spendings TR TD:nth-child(3) {text-align: right}
TABLE.spendings TR TD:nth-child(4) {text-align: right}

/*Касса*/
TABLE.money TR:last-child TD   {font-weight: bold}
TABLE.money TR TH:nth-child(2) {text-align: center}
TABLE.money TR TD:nth-child(2) {text-align: right}

/*Долги*/
TABLE.debts                     {width: 100%}
TABLE.debts TR TH:nth-child(1)  {width: 13%}
TABLE.debts TR TH:nth-child(2)  {width:  8%}
TABLE.debts TR TH:nth-child(3)  {width: 43%}
TABLE.debts TR TH:nth-child(4)  {width:  6%}
TABLE.debts TR TD:nth-child(4)  {}
TABLE.debts TR TH:nth-child(5)  {width:  6%}
TABLE.debts TR TH:nth-child(6)  {width:  6%}
TABLE.debts TR TH:nth-child(7)  {width: 20%}
TABLE.debts TR TH:nth-child(8)  {text-align: center;}

/*Взносы*/
TABLE.payments                          {}
TABLE.payments TR TH:nth-child(2)       {display: none;}
TABLE.payments TR TD:nth-child(2)       {display: none;}
TABLE.payments TR TH:nth-child(4)       {text-align: center;}
TABLE.payments TR TD:nth-child(4)       {text-align: right;}
TABLE.payments TR TD:nth-child(4) INPUT {text-align: right; width: 7ch;}

/*Тарифы*/
TABLE.tariffs                           {width: 95%}
TABLE.tariffs TR TD:nth-child(1)        {width: 5%}
TABLE.tariffs TR TD:nth-child(2)        {width: 4%}
TABLE.tariffs TR TD:nth-child(2) INPUT  {text-align: right; width: 10ch;}
TABLE.tariffs TR TD:nth-child(3)        {width: 30%}
TABLE.tariffs TR TD:nth-child(4)        {width: 5%}
TABLE.tariffs TR TD:nth-child(5)        {width: 3%}
TABLE.tariffs TR TD:nth-child(5) INPUT  {text-align: right; width: 7ch;}
TABLE.tariffs TR TD:nth-child(6)        {width: 3%}
TABLE.tariffs TR TD:nth-child(6) INPUT  {text-align: right; width: 7ch;}
TABLE.tariffs TR TD:nth-child(7)        {width: 3%}
TABLE.tariffs TR TD:nth-child(7) INPUT  {text-align: right; width: 7ch;}

/*События*/
TABLE.events                              {}

TABLE.events.inventory TR TH:nth-child(4) {display: none}
TABLE.events.inventory TR TD:nth-child(4) {display: none}

TABLE.events.inventory TR TH:nth-child(5) {display: none}
TABLE.events.inventory TR TD:nth-child(5) {display: none}

TABLE.events.inventory TR TH:nth-child(6) {display: none}
TABLE.events.inventory TR TD:nth-child(6) {display: none}

TABLE.events.people    TR TH:nth-child(2) {display: none}
TABLE.events.people    TR TD:nth-child(2) {display: none}

TABLE.events.people    TR TH:nth-child(4) {display: none}
TABLE.events.people    TR TD:nth-child(4) {display: none}

TABLE.events.hide_club TR TH:nth-child(3) {display: none}
TABLE.events.hide_club TR TD:nth-child(3) {display: none}

TABLE.events.hide_type TR TH:nth-child(5) {display: none}
TABLE.events.hide_type TR TD:nth-child(5) {display: none}

TABLE.events.hide_object TR TH:nth-child(6) {display: none}
TABLE.events.hide_object TR TD:nth-child(6) {display: none}

/*Платежи*/
TABLE.holder_payments                          {}
TABLE.holder_payments TR TH:nth-child(3)       {text-align: center;}
TABLE.holder_payments TR TD:nth-child(3)       {text-align: right;}
TABLE.holder_payments TR TD:nth-child(3) INPUT {text-align: right; width: 7ch;}

TABLE.holder_transfers                          {}
TABLE.holder_transfers TR TH:nth-child(2)       {display: none;}
TABLE.holder_transfers TR TD:nth-child(2)       {display: none;}
TABLE.holder_transfers TR TH:nth-child(5)       {text-align: center;}
TABLE.holder_transfers TR TD:nth-child(5)       {text-align: right;}
TABLE.holder_transfers TR TD:nth-child(5) INPUT {text-align: right; width: 7ch;}

TABLE.holder_spendings                          {}
TABLE.holder_spendings TR TH:nth-child(2)       {display: none;}
TABLE.holder_spendings TR TD:nth-child(2)       {display: none;}
TABLE.holder_spendings TR TH:nth-child(4)       {text-align: center;}
TABLE.holder_spendings TR TD:nth-child(4)       {text-align: right;}
TABLE.holder_spendings TR TD:nth-child(4) INPUT {text-align: right; width: 7ch;}

TABLE.single_column   	   	         {width: 9%;}
TABLE.single_column TR TH:nth-child(1)   {width: 100%}

TABLE.properties TR TH:nth-child(1)  	 {display: none;}
TABLE.properties TR TD:nth-child(1)  	 {display: none;}

TABLE.clubs TR TH:nth-child(1)  	 {display: none;}
TABLE.clubs TR TD:nth-child(1)  	 {display: none;}

TABLE.values TR TD:nth-child(3) INPUT 	 {width: 19ch;}

/*Комментарии*/
TABLE.comments                           {width: 100%;}
TABLE.comments TR TH:nth-child(1)        {width:  25%;}
TABLE.comments TR TD:nth-child(1)        {vertical-align: top;}

/*Табличка с детализацией взносов*/
TABLE.detail                        {width: 70%}
TABLE.detail TR TH:nth-child(1)     {width:  7%}
TABLE.detail TR TH:nth-child(2)     {width: 23%}
TABLE.detail TR TH:nth-child(3)     {width: 28%}
TABLE.detail TR TH:last-child       {width:  5%; text-align: center}
TABLE.detail TR TD:last-child       {text-align: right}

TABLE.detail TR TD DIV SPAN TABLE.detail_span                   {border-collapse: collapse; width: 100%; border: 1px solid #404040;}
TABLE.detail TR TD DIV SPAN TABLE.detail_span TR TD             {border: 1px solid #404040; text-align: left}
TABLE.detail TR TD DIV SPAN TABLE.detail_span TR TH             {border: 1px solid #404040; text-align: left; width: 50%}

TABLE.detail TR TD DIV SPAN TABLE.tariff_span TR TD             {text-align: left;}
TABLE.detail TR TD DIV SPAN TABLE.formula_span TR TD            {text-align: left;}

TABLE.flight_places                           {width: 70%;}
TABLE.flight_places TR TH:nth-child(1)        {width: 15%;}
TABLE.flight_places TR TD:nth-child(1) INPUT  {width: 25ch;}
TABLE.flight_places TR TH:nth-child(2)        {width:  8%;}
TABLE.flight_places TR TH:nth-child(3)        {width: 12%; text-align: center}
TABLE.flight_places TR TD:nth-child(3) INPUT  {width: 22ch; text-align: right}
TABLE.flight_places TR TD:nth-child(3)        {text-align: right}
TABLE.flight_places TR TH:nth-child(4)        {width:  7%;}

TABLE.flight_starts                           {width: 65%;}
TABLE.flight_starts TR TH:nth-child(1)        {width: 15%;}
TABLE.flight_starts TR TH:nth-child(2)        {width: 18%;}
TABLE.flight_starts TR TH:nth-child(2) INPUT  {width: 25ch;}
TABLE.flight_starts TR TH:nth-child(3)        {width: 15%; text-align: center}
TABLE.flight_starts TR TD:nth-child(3) INPUT  {width: 21ch; text-align: right}
TABLE.flight_starts TR TD:nth-child(3)        {text-align: right}
TABLE.flight_starts TR TH:nth-child(4)        {width: 8%}

TABLE.flight_plans                               {width: 95%;}
TABLE.flight_plans TR TH:nth-child(1)            {width:  6%;}
TABLE.flight_plans TR TH:nth-child(2)            {width:  7%;}
TABLE.flight_plans TR TH:nth-child(3)            {width: 10%;}
TABLE.flight_plans TR TH:nth-child(4)            {width:  6%;}
TABLE.flight_plans TR TH:nth-child(5)            {width: 10%;}
TABLE.flight_plans TR TH:nth-child(6)            {width: 34%;}
TABLE.flight_plans TR TH:nth-child(7)            {width: 34%;}
TABLE.flight_plans TR TH:nth-child(8)            {width:  8%;}

TABLE.flight_plans TR.other_club TD:nth-child(2) DIV.grey_text {color: #4040F0;}

/*В общих скрыта колонка налета*/
TABLE.flight_plans.total TR TH:nth-child(7)      {display: none}
TABLE.flight_plans.total TR TD:nth-child(7)      {display: none}

/*В пилотских скрыта колонка аппаратов и участников, поуже колонка инструкторов*/
TABLE.flight_plans.book TR TH:nth-child(5)      {display: none}
TABLE.flight_plans.book TR TD:nth-child(5)      {display: none}
TABLE.flight_plans.book TR TH:nth-child(6)      {display: none}
TABLE.flight_plans.book TR TD:nth-child(6)      {display: none}
TABLE.flight_plans.book TR TH:nth-child(8)      {width: 7%;}

/*В инструкторских скрыты инструктора и налет*/
TABLE.flight_plans.instructor TR TH:nth-child(7)  {display: none}
TABLE.flight_plans.instructor TR TD:nth-child(7)  {display: none}
TABLE.flight_plans.instructor TR TH:nth-child(8)  {display: none}
TABLE.flight_plans.instructor TR TD:nth-child(8)  {display: none}

/*В аппаратах скрыт аппарат и налет*/
TABLE.flight_plans.glider TR TH:nth-child(5)  {display: none}
TABLE.flight_plans.glider TR TD:nth-child(5)  {display: none}
TABLE.flight_plans.glider TR TH:nth-child(7)  {display: none}
TABLE.flight_plans.glider TR TD:nth-child(7)  {display: none}

/*В буксировках скрыт налет и сделана поуже колонка участников*/
TABLE.flight_plans.tow TR TH:nth-child(6)     {width: 32%;}
TABLE.flight_plans.tow TR TH:nth-child(7)     {display: none}
TABLE.flight_plans.tow TR TD:nth-child(7)     {display: none}
TABLE.flight_plans.tow TR TH:nth-child(8)     {width:  6%;}

TABLE.flight_records                          {width: 95%;}
TABLE.flight_records TR TH:nth-child(1)       {display: none;}
TABLE.flight_records TR TD:nth-child(1)       {display: none;}
TABLE.flight_records TR TH:nth-child(2)       {display: none;}
TABLE.flight_records TR TD:nth-child(2)       {display: none;}
TABLE.flight_records TR TH:nth-child(3)       {width: 10%;}
TABLE.flight_records TR TH:nth-child(4)       {width:  3%; text-align: center}
TABLE.flight_records TR TD:nth-child(4) INPUT {width: 9ch; text-align: right}
TABLE.flight_records TR TD:nth-child(4)       {text-align: right}
TABLE.flight_records TR TH:nth-child(5)       {width:  8%;}
TABLE.flight_records TR TH:nth-child(6)       {width:  7%;}
TABLE.flight_records TR TH:nth-child(7)       {width: 14%;}
TABLE.flight_records TR TH:nth-child(8)       {width: 12%;}
TABLE.flight_records TR TH:nth-child(9)       {width:  5%;}
TABLE.flight_records TR TH:nth-child(10)      {width:  5%;}
TABLE.flight_records TR TH:nth-child(11)      {width: 10%;}

TABLE.flight_records_tow                          {width: 95%;}
TABLE.flight_records_tow TR TH:nth-child(1)       {display: none;}
TABLE.flight_records_tow TR TD:nth-child(1)       {display: none;}
TABLE.flight_records_tow TR TH:nth-child(2)       {display: none;}
TABLE.flight_records_tow TR TD:nth-child(2)       {display: none;}
TABLE.flight_records_tow TR TH:nth-child(3)       {width: 10%;}
TABLE.flight_records_tow TR TH:nth-child(4)       {width:  3%; text-align: center}
TABLE.flight_records_tow TR TD:nth-child(4) INPUT {width: 9ch; text-align: right}
TABLE.flight_records_tow TR TD:nth-child(4)       {text-align: right}
TABLE.flight_records_tow TR TH:nth-child(5)       {width:  8%;}
TABLE.flight_records_tow TR TH:nth-child(6)       {width:  7%;}
TABLE.flight_records_tow TR TH:nth-child(7)       {width: 14%;}
TABLE.flight_records_tow TR TH:nth-child(8)       {width: 12%;}
TABLE.flight_records_tow TR TH:nth-child(9)       {width:  5%;}
TABLE.flight_records_tow TR TH:nth-child(10)      {width:  5%;}
TABLE.flight_records_tow TR TH:nth-child(11)      {width: 10%;}
TABLE.flight_records_tow TR TH:nth-child(12)      {width:  7%;}


/*Редактор вложений*/

/*Фотографии*/
TABLE.photo_gallery                        {display: inline-block; border: 0px; background: transparent; width: 100%; margin: 0; padding: 0; margin-bottom: -12px;}
TABLE.photo_gallery THEAD                  {display: none;}
TABLE.photo_gallery TR                     {display: inline-block; height: 180px !important; margin-bottom: 12px;}
TABLE.photo_gallery TR TD                  {display: inline-block; height: auto !important; border: 0px; margin-right: 18px; padding-top: 0px; white-space: nowrap; position: relative;}
TABLE.photo_gallery TR TD .single_button   {right: -15px !important;}
TABLE.photo_gallery TR TD .single_button A {top: 0% !important; transform: translateY(-5px) !important;}

div.photo                                 {display: inline-block; height: 180px;}
div.photo a img                           {max-width: 100%; max-height: 100%;}

TABLE.video_gallery                        {display: inline-block; border: 0px; background: transparent; width: 100%; margin: 0; padding: 0; margin-bottom: -12px;}
TABLE.video_gallery THEAD                  {display: none;}
TABLE.video_gallery TR                     {display: inline-block; height: 270px !important; margin-bottom: 12px;}
TABLE.video_gallery TR TD                  {display: inline-block; height: auto !important; border: 0px; margin-right: 30px; padding-top: 0px; white-space: nowrap; position: relative;}
TABLE.video_gallery TR TD .single_button   {right: -20px !important;}
TABLE.video_gallery TR TD .single_button A {top: 0% !important; transform: translateY(-5px) !important;}

TABLE.defect_journal                       {width: 98%;}

/*Добавление комментариев*/
A.add_comment       {background-image:url('images/plus_grey.png'); text-decoration: none}
A.add_comment:hover {background-image:url('images/plus.png'); text-decoration: none}

/*Форма логина*/
DIV.login_parent       {width: 100%; height: 60%; position: fixed; top: 0; left: 0; display: flex; align-items: center; align-content: center; justify-content: center; overflow: auto;}
DIV.login_block        {display: block;}
DIV.login_block P      {font-size: 20;}
DIV.login_block INPUT  {font-size: 16;}
DIV.login_block BUTTON {font-size: 16; margin-bottom: 10px;}