*, body
{
   font: 100%/1 Arial, "Helvetica Neue", Helvetica, sans-serif;
}

em
{
    font-style: italic;
}

body
{
    background-color: rgb(255,255,204);
}

strong
{
    font-weight: bold;
}

.fullwidth
{
    width: 100%;
}

.edit,
.select
{

    border: 1px solid #aaa;
    border-radius: 4px;
}

form.vertical select
{
/*
    width: 100%;
    */
    box-sizing: content-box;

    width: 306px;
}

form.vertical select.longsel
{
    width: 406px;
}

.bold
{
    font-weight: bold;
}

.nowrap
{
    white-space: nowrap;
}

.break
{
    clear: both;
}

.pull-right
{
    float: right !important;
}

.pull-left
{
    float: left !important;
}

.line
{
    display: block !important;
}

.ml10
{
    margin-left: 10px;
}

.mt10
{
    margin-top: 10px;
}

.mt15
{
    margin-top: 15px;
}

.mt20
{
    margin-top: 20px;
}


.mb5
{
    margin-bottom: 5px;
}


.mb10
{
    margin-bottom: 10px;
}

.mb15
{
    margin-bottom: 15px;
}

.mb20
{
    margin-bottom: 20px;
}

.mr10
{
    margin-right: 10px;
}


.mr20
{
    margin-right: 20px;
}

.pr10
{
    padding-right: 10px;
}

.pr20
{
    padding-right: 20px;
}

.bb10
{
    border-bottom: 10px solid transparent;
}

.bb20
{
    border-bottom: 20px solid transparent;
}

.dib
{
    display: inline-block;
}

.edit
{
    padding: 2px 3px;
}

input.edit
{
    height: 22px;
}

.edit.w100
{
    width: 100%;
    box-sizing: border-box;
    height: 28px;
}


.edit.long
{
    width: 200px;
}

.edit.longer
{
    width: 250px;
}


.edit.longest
{
    width: 300px;
}

.edit.superlong
{
    width: 400px;
}

.edit.short
{
    width: 150px;
}


.edit.shorter
{
    width: 100px;
}

.edit.shortest
{
    width: 50px;
}

span.yes:before,
span.no:before
{
    font-family: bootstrap-icons !important;
    font-style: normal;
    font-weight: 400 !important;
    font-variant: normal;
    font-size: 30px;
    line-height: 1;
    text-transform: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.smaller span.yes:before,
.smaller span.no:before
{
    font-size: 24px;
}

span.yes:before
{
    content: '\f26e';
    color: green;
}

span.no:before
{
    content: '\f62a';
    color: red;
}

span.online_payment
{
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

span.online_payment:before
{
    content: '\f2da';
    color: #15803d;
    font-family: bootstrap-icons !important;
    font-size: 24px;
    font-style: normal;
    font-weight: 400 !important;
    font-variant: normal;
    line-height: 1;
    text-transform: none;
    vertical-align: middle;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

span.online_payment.required:after
{
    content: '!';
    color: #b45309;
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
}

/*
span.blocked
{
    width: 32px;
    height: 32px;
    display: inline-block;
    background: transparent url(block_32bw.png) left top no-repeat;
}
*/

select.edit,
select.select
{
    padding: 2px 3px;
}

span.error,
span.err
{
    color: rgb(255,0,0);
}

.red
{
    color: red;
}

.green
{
    color: green;
}


input.error
{
    background-color: rgb(255,200,200);
}

a.button
{
    text-decoration: none;
}

a.link
{
    color: rgb(255,96,32);
    text-decoration: none;
}

a.link:hover
{
    text-decoration: underline;
}

a.lift_run
{
    text-decoration: none;
    color: inherit;
    display: block;
}

a.lift_run:hover
{
    color: rgb(255,96,32);
}


.bigger
{
    font-size: 120%;
}

.ta-right
{
    text-align: right;
}

.ta-left
{
    text-align: left;
}

.ta-center
{
    text-align: center;
}

.show_val_repeat
{
    color: rgb(255,96,32);
    margin-right: 10px;
    font-weight: bold;
}

.hidden,
.inithidden
{
    display: none !important;
}

.visually-hidden
{
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

div.control-section
{
    margin-top: 10px;
}

.button.inline-button
{
    display: inline-block !important;
}

.button,
.show_switch,
.hide_switch
{
    display: inline-block;
    border: none;
    background-color: rgb(255,96,32);
    color: rgb(255,255,255);
    font-size: 100%;
    cursor: pointer;

    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.button.bigbutton
{
    font-size: 120%;
    text-transform: uppercase;
    padding: 10px;
}

/* cudliky na prodej */

.button.sale,
.button.prepaid-ticket

{
    font-size: 120%;
    text-transform: uppercase;
    padding: 10px;
}

.button.prepaid-ticket
{
    color: rgb(222,222,222);
}

.button.prepaid-ticket.selected
{
    background-color: rgb(5,148,255);
    color: rgb(0,0,0);
}

.button.chip
{
    background-color: rgb(10,255,255);
    color: black;
}

.button.chip:hover
{
    background-color: rgb(20,200,200);
}
/*
.button.prepaid-ticket.selected:before
{
    content: '';
}
*/

.button.sale.ride
{
    background-color: rgb(127,0,240);
}

.button.sale.ride:hover
{
    background-color: rgb(139,55,255);
}


.button.sale.ride.prepaid
{
    background-color: rgb(212,165,29);
}

.button.sale.ride.prepaid:hover
{
    background-color: rgb(231,195,29);
}


.button.sale.equipment
{
    background-color: rgb(39,160,72);
}


.button.sale.equipment:hover
{
    background-color: rgb(79,198,72);
}


/*---*/


.singlebutton
{
    margin-top: 20px;
}

.button
{
    padding: 5px;
    text-transform: uppercase;
}

a.button,
span.button
{
    padding: 6px 5px;
}

.show_switch,
.hide_switch
{
    padding: 6px 5px;
}


.smallbutton
{
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 80%;
    color: rgb(255,255,255);
    text-decoration: none;
    background-color: rgb(255,96,32);
    padding: 2px 5px;
    vertical-align: middle;
    display: inline-block;
}

.hide_switch
{
    margin-right: 10px;
}

.spaceleft,
.leftspace
{
    margin-left: 10px;
}

.spaceright,
.rightspace
{
    margin-right: 10px;
}


.smallbutton:hover,
.show_switch:hover,
.hide_switch:hover

{
    background-color: rgb(255,128,32);
}


.button:hover
{
    /*color: rgb(220,220,220);*/
    background-color: rgb(255,128,32);
}


/*
span.form_submit
{
    cursor: pointer;
    text-transform: uppercase;
    font-weight: bold;
    color: rgb(255,96,32);
}

span.form_submit:hover
{
    color: rgb(255,128,32);
}

span.form_submit.at-right
{
    margin-left: 10px;
}
*/

form.inline
{
    display: inline-block;
    padding: 0px;
}

.button.small
{
    font-size: 80%;
}

form.inline .button.small
{
    padding: 0px;
    vertical-align: middle;
}

div.new_item form.inline
{
    padding: 5px 5px;
    background-color: rgb(210,210,210);
    border: 2px solid rgb(235,235,235);
}


/****************************************************************************************************************************************************/

#loginbox
{
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);

    /*border: 1px solid rgb(0,0,255);*/
    padding: 10px 15px;
    background-color: rgb(208,240,255);
}

#loginbox h1
{
    font-size: 125%;
    text-align: center;
    margin-bottom: 20px;
}

#loginbox td.error
{
    font-size: 80%;
    text-align: center;
}

#loginbox .edit
{
    width: 200px;
}

#loginbox td
{
    padding: 0px 0px 10px 0px;
}

#loginbox tr:last-child td
{
    padding-bottom: 0px;
}

/****************************************************************************************************************************************************/

#header
{
    background-color: rgb(200,200,200);
    /*font-weight: bolder;*/

    overflow: auto;
    width: 100%;

}

#header-inner
{
    padding: 10px;
    display: inline-block;
}

#header table
{
    width: 100%;

    text-align: center;
}

#header table td
{
    border-right: 10px solid rgb(200,200,200);
    white-space: nowrap;
}

#header table td:last-child
{
    border-right: none;
}


/*
#header table td:first-child,
#header table td:last-child
{
    width: 0px;
    white-space: nowrap;
}
*/
td.minimal,
th.minimal
{
    width: 0px;
    white-space: nowrap;
}

td.maximal,
th.maximal
{
    width: 999999px;
}

#header table .box
{
    padding: 10px 15px;
    background-color: rgb(255,224,144);
}



#resultbox
{
    display: none;
    padding: 10px 15px;
}

#resultbox.info,
#resultbox.ok
{
    background-color: rgb(204,255,153);
}


#resultbox.error,
#resultbox.err
{
    background-color: rgb(255,0,0);
    color: rgb(255,255,255);
}

#content
{
    clear: both;
    padding: 0px;
}

#workarea p
{
    line-height: 1.4;
}

#navigation
{
    overflow: auto;
    width: 100%;
    padding: 0px 10px 10px;
    box-sizing: border-box;
}

/*
#navigation-inner
{
    padding: 10px 10px 0px;
    display: inline-block;
    width: 100%;
}
*/

#lifts-overview
{
    overflow: auto;
    width: 100%;
    background-color: rgb(255,200,255);
}

#lifts-overview-inner
{
    padding: 10px;
    display: inline-block;
}


h1
{
    /*display: table;*/
    font-weight: bold;
    text-transform: uppercase;
    font-size: 120%;
    /*background-color: rgb(255,150,150);*/
    /*padding: 10px;*/
    text-decoration: underline;
}


h2
{
    display: table;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 100%;
    /*background-color: rgb(255,150,150);*/
    margin-bottom: 10px;
    margin-top: 20px;
}


#workarea
{
    background-color: rgb(235,235,235);
    overflow: auto;
    width: 100%;
}


#workarea-inner
{
    /*display: inline-block;*/
    padding: 10px;
}


/*--------------------------------------------------------------------------------------------------------------------------------------------------*/

div.table
{
    display: table;
}

div.table_row_group
{
    display: table-row-group;
}

div.tr,
form.tr
{
    display: table-row;
}

div.td,
div.th
{
    display:table-cell
}

table.table_of_items tr:first-child,
div.table.table_of_items div.tr:first-child
{
    border-bottom: 1px solid black;
}

/*table.table_of_items td,
table.table_of_items th,
div.table.table_of_items div.td,
div.table.table_of_items div.th
{
    padding: 5px 10px;
    background-color: rgb(210,210,210);
    border: 2px solid rgb(235,235,235);
}

table.table_of_items td.hilited,
table.table_of_items td.hilited *
{
    background-color: rgb(255,32,32);
}*/

table.table_of_items td,
div.table.table_of_items div.td
{
    padding: 5px 10px;
    background-color: rgb(210,210,210);
    border: 1px solid rgb(235,235,235);
    line-height: 1.25;
}

table.table_of_items th,
div.table.table_of_items div.th
{
    padding: 5px 10px;
    background-color: rgb(96,96,96);
    color: rgb(200,200,200);
    border: 1px solid rgb(235,235,235);
    vertical-align: middle;
}


table.table_of_items td.dynamic_form_container,
div.table.table_of_items div.td.dynamic_form_container
{
    width: 0px;
    white-space: nowrap;
}

table.table_of_items td.td-link
{
    cursor: pointer;
}

table.table_of_items td.smaller,
table.table_of_items th.smaller
{
    font-size: 80%;
}

table.table_of_items tr:hover td
{
    background-color: rgb(195,195,195);
}

.dynamic_form
{
    display: none;
}

label + label,
label + .button
{
    margin-left: 10px;
}

td,
div.td
{
    vertical-align: middle;
}



ul.menu
{
    list-style-type: none;
    overflow: auto;
    /*margin-bottom: 10px;*/
}
/*
ul.menu:last-child
{
    margin-bottom: 0px;
}
*/


ul.menu li
{
    margin-top: 10px;
    float: left;
    margin-right: 20px;
}

ul.menu li:last-child
{
    margin-right: 0px;
}



ul.menu .button
{
    font-size: 120%;
    text-transform: uppercase;
    padding: 10px;
}

.button.settings
{
    background-color: rgb(100,100,100);
}

.button.settings:hover
{
    background-color: rgb(126,126,126);
}


.button.superadmin
{
    background-color: rgb(150,0,150);
}

.button.superadmin:hover
{
    background-color: rgb(176,0,176);
}

.button.warning
{
    background-color: rgb(255,32,32);
}

.button.warning:hover
{
    background-color: rgb(255,96,96);
}

.button.normal
{
    background-color: rgb(5,148,255);
}

.button.normal:hover
{
    background-color: rgb(65,169,255);
}



.button.confirm
{
    background-color: rgb(0,187,0);
}

.button.confirm:hover
{
    background-color: rgb(47,210,0);
}


.button+.button
{
    margin-left: 10px;
}


/*--------------------------------------------------------------------------------------------------------------------------------------------------*/

form.vertical
{
    display: table;
    border-collapse: collapse;
}

form.vertical label,
form.vertical div.submit-section
{
    display: table-row;
}


form.vertical label.foreign_field>span:first-child
{
    color: rgb(5,108,150);
}


form.vertical label.focused>span:first-child
{
    color: rgb(255,96,32);
}

textarea.display_switch_target
{
    display: block;
    margin-top: 0px;
}

form.vertical label.focused input,
form.vertical label.focused textarea,
form.vertical label.focused .select2-selection
{
    border-color: rgb(255,96,32);
}

form.vertical label>span,
form.vertical div.submit-section>span
{
    display: table-cell;
    /*border-bottom: 10px solid rgb(235,235,235);*/
    padding-bottom: 10px;

    vertical-align: middle;
}

form.vertical div.submit-section>span
{
    padding-top: 5px;
}

form.vertical div.submit-section input,
form.vertical div.submit-section a
{
    margin-right: 20px;
    font-size: 120%;
}


form.vertical label>span:first-child
{
    padding-right: 10px;
}

form.vertical label.dynamic>span:first-child
{
    padding-left: 10px;
}

form.vertical label.dynamic > span
{
    background-color: rgb(196,196,196);
}

form.vertical label.dynamic.firstdynamic > span
{
    padding-top: 10px;
}

form.vertical label.dynamic.lastdynamic > span
{
    border-bottom: 10px solid rgb(235,235,235);
}

form.vertical label.separator span
{
    padding-top: 10px;
    padding-bottom: 20px;
    background: transparent url(blackdot.png) left center repeat-x;
}

form.vertical label.section-title
{
    text-transform: uppercase;
    font-weight: bold;
}

form.vertical label.small-section-title
{
    font-weight: bold;
}


form.vertical label.section-title .button
{
    font-weight: normal;
}


form.vertical span.ewcol
{
    display: inline-block;
}

form.vertical .form-block
{
    background-color: rgb(196, 196, 196);
}

form.vertical .form-block label>span:first-child
{
    padding-left: 10px;
}

form.vertical .form-block label>span:last-child
{
    padding-right: 0px;
}


form.vertical .form-block label:first-child span
{
    padding-top: 10px;
}

form.vertical .form-block label:last-child span
{
    padding-bottom: 10px;
}

form.vertical .form-block.not-hidden + label>span
{
    padding-top: 10px;
}


.for-deletion
{
    text-decoration: line-through;
    color: rgb(255,0,0);
}


/*-----------------------------------*/



table.calendar
{
    margin-top: 20px;
    width: 100%;
}

table.calendar th
{
    font-weight: bold;
}

table.calendar th,
table.calendar td
{
    padding: 10px;
}


table.calendar .day-title
{
    display: block;
    margin-bottom: 10px;
}

table.calendar .day-title .button
{
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}

table.calendar .hourcheck
{
    display: block;
    text-align: center;
    margin-bottom: 5px;
}

table.calendar .hourcheck.blocked
{
    /*background-color: rgb(255,192,192);*/
    color: red;
    text-decoration: line-through;
}


table.calendar .hourcheck:last-child
{
    margin-bottom: 0px;
}

table.calendar .day-line
{
    display: block;
    text-align: center;
    margin-bottom: 5px;
}

table.calendar .day-line:last-child
{
    margin-bottom: 0px;
}

.calendar .day-line.blocked
{
   background-color: rgb(255,192,192);
}

.calendar .day-line.all-free
{

}

.calendar .day-line.all-taken
{
    background-color: rgb(176,0,16);
    color: rgb(255,255,255);
}

.calendar .day-line.partial-free
{
    background-color: rgb(255,238,0);
}

.calendar .day-line.capacity-exceeded
{
    background-color: rgb(0,255,238);
}

td.spots
{
    text-align: center;
    font-weight: bold;
}

td.spots .whole-lift
{
    background-color: rgb(255,220,220)
}

td.spots .some-spots
{
    background-color: rgb(220,220,255);;
}


td.spots span
{
/*
    border-width: 1px;
    border-style:  solid;
*/
    padding: 2px 5px;
}

td.info span
{
    margin-right: 10px;
}

td.info span:last-child
{
    margin-right: 0px;
}

td.info span:before
{
    padding-right: 5px;
}


span.rname:before,
span.rphone:before,
span.remail:before,
span.rcreated:before,
span.rnote:before
{
    display: inline-block;
    padding-right: 5px;
    font-family: bootstrap-icons !important;
    font-style: normal;
    font-weight: 400 !important;
    font-variant: normal;
    line-height: 1;
    text-transform: none;
    vertical-align: -.125em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

span.rname:before
{
    content: '\f4e1';
}

span.rphone:before
{
    content: '\f5c1';
}

span.remail:before
{
    content: '\f32f';
}

span.rcreated:before
{
    content: '\f1ef';
}

span.rnote:before
{
    content: '\f58d';
}

span.rprepaid:before
{
    content: '\24C5';
}


span.rpayed_online
{
    background-color: gold;
    padding: 2px;

}

span.rpayed_online:before
{
    content: '\FF04';
    /*padding-right: px;*/
}

div.payed_online
{
    margin-bottom: 20px;
    background-color: yellow;
    color: black;
    padding: 5px;
}

div.payed_by_prepaid
{
    margin-bottom: 20px;
    background-color: orange;
    color: black;
    padding: 5px;
}


/*

table.calendar th,
table.calendar td
{
    padding: 10px;
}

form#terms_form table td
{
        text-align: center;
}



.calendar .day-line.blocked
{
   background-color: rgb(255,192,192);
}

.calendar .day-line.all-free
{

}

.calendar .day-line.all-taken
{
    background-color: rgb(176,0,16);
    color: rgb(255,255,255);
}

.calendar .day-line.partial-free
{
    background-color: rgb(255,238,0);
}

.hourcheck
{

    background-color: rgb(192,192,192);
    padding: 2px;
    margin-bottom: 2px;
    display: block;
    text-align: center;
}

.hourcheck.blocked
{
    background-color: rgb(255,192,192);
}

table.reservation-detail td .spots
{
    color: rgb(255,255,255);
    padding: 2px 5px;
}

table.reservation-detail td .spots.user-created
{
    background-color: rgb(0,0,164);
}

table.reservation-detail td .spots.admin-created
{
    background-color: rgb(164,0,0);
}

table.reservation-detail tr:hover
{
    background-color: rgb(224,224,224);
}
*/
/*
div.sale_container
{
    float: left;
    padding: 20px;
    margin-right: 20px;
    background-color: rgb(96,96,96);
}
*/

table.sale_table td
{
    vertical-align: top;
    border-right: 20px solid rgb(235,235,235);
}

table.sale_table td:last-child
{
    border-right: none;
}

div.sale_container
{
    padding: 20px;
    background-color: rgb(96,96,96);
}

div.sale_container h3
{
    text-align: center;
    margin-bottom: 20px;
    color: rgb(255,255,255);
    white-space: nowrap;
}


div.sale_container .button
{
    display: block;
    margin-bottom: 20px;
    margin-left: 0px;
    text-align: center;
}

div.sale_container .button.small
{
    display: inline-block;
    margin-left: 10px;
    text-align: center;
}


div.sale_container div.button-container
{
    margin-bottom: 20px;
}

#ticket_placeholder
{
    color: rgb(255,64,64);
    border: 1px dotted rgb(255,64,64);
    padding: 10px;
}

div.sale_container .button:last-child,
div.sale_container .button.no-bottom-margin,
div.sale_container div.button-container:last-child
{
    margin-bottom: 0px !important;
}

div.sale_container#sale_target .button.sale.prepaid
{
    margin-bottom: 20px;
}

div.sale_container#sale_target select
{
    width: 100%;
}

div.sale_container div.prepaid-ticket-info
{
    line-height: 1.5;
    text-align: center;
    color:#56c5ff;
    font-size: 110%;
    display: none;
}

div.sale_container div.prepaid-ticket-validity-info
{
    line-height: 1.5;
    text-align: center;
    color:#56c5ff;
    font-size: 110%;
    /*margin-bottom: 20px;*/
    display: none;
}

div.sale_container div#prepaid-ticket-equipment-info
{
    line-height: 1.5;
    text-align: center;
    color:#56c5ff;
    font-size: 110%;
}

div.sale_container div#prepaid-ticket-total-price-info
{
    line-height: 1.5;
    text-align: center;
    color:#56c5ff;
    font-size: 125%;
    margin-bottom: 20px;
}

div.sale_container .prepaid-ticket-equipment-desc
{
    padding: 10px 5px 0px;
    color: rgb(222,222,222);
}

div.sale_container .prepaid-ticket-equipment-desc:before
{
    content: '\21B3';
    padding-right: 5px;
}

div#sale_info,
div#sale_first_info
{
    color: rgb(255,255,255);
}

div#sale_info p
{
    /*margin-bottom: 10px;*/
}

div#sale_info p:last-child,
div#sale_first_info p:last-child,
div#sale_first_info div:last-child
{
    margin-bottom: 0px;
}

div#sale_info .value,
div#sale_first_info .value
{
    text-align: center;
    font-weight: bold;
    font-size: 120%;
    margin-bottom: 20px;
}

div#sale_info .mb20,
div#sale_first_info .mb20
{
    margin-bottom: 20px;
}

div#sale_info .value:last-child,
div#sale_first_info .value:last-child
{
    margin-bottom: 0px;
}

.countdown
{
    text-align: center;
    margin-top: 10px;
    padding: 5px;
}

.lift-spots
{
    font-size: 150%;
}

.timesup
{
    text-align: center;
    margin-top: 10px;
    font-size: 200%;
}

div.lift_run_spot
{
   display: inline-block;
   padding: 5px;
}

div.from-to
{
    /*font-size: 80%;*/
    text-align: center;
}

textarea.full
{
    resize: none;
    width: 100%;
    height: 300px;
    resize: vertical;
}


a.detail_link,
a.print_link,
a.bill_link,
a.image_link,
a.cog_edit_link,
a.stats_link,
a.settings_link
{
    display: inline-block;
    width: 32px;
    height: 32px;

    vertical-align: middle;
}

a.detail_link
{
    background: transparent url(search_32_2state.png) left top no-repeat;
}

a.print_link
{
    background: transparent url(print_2state.png) left top no-repeat;
}

a.bill_link
{
    background: transparent url(cash_register_32_2st.png) left top no-repeat;
}

a.image_link
{
    background: transparent url(voucher_32_2st.png) left top no-repeat;
}

a.cog_edit_link,
a.stats_link,
a.settings_link
{
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--primary-dark);
    border-radius: var(--radius-sm);
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 1px 2px rgba(30, 64, 175, .18);
    font-size: 22px;
    line-height: 1;
    text-decoration: none;
    transition: background .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

a.cog_edit_link:before,
a.stats_link:before,
a.settings_link:before
{
    font-family: bootstrap-icons !important;
    font-style: normal;
    font-weight: 400 !important;
    font-variant: normal;
    line-height: 1;
    text-transform: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a.cog_edit_link:before
{
    content: '\f56b';
}

a.settings_link:before
{
    content: '\f444';
}

a.stats_link:before
{
    content: '\f17c';
}


a.detail_link:hover,
a.print_link:hover,
a.bill_link:hover,
a.image_link:hover
{
    background-position: right top;
}

a.cog_edit_link:hover,
a.stats_link:hover,
a.settings_link:hover
{
    border-color: #1e3a8a;
    background: var(--primary-dark);
    color: #ffffff;
    box-shadow: 0 3px 8px rgba(30, 64, 175, .25);
}

a.cog_edit_link:active,
a.stats_link:active,
a.settings_link:active
{
    transform: translateY(1px);
}


.cap_total,
.cap_remaining,
.cap_used
{
    padding: 3px;
}

.cap_total
{
    background-color: rgb(128,192,255);
}

.cap_remaining
{
    background-color: rgb(128,255,128);
}

.cap_used
{
    background-color: rgb(255,128,128);
}

.cap_used.zero,
.cap_remaining.zero
{
    background-color: transparent;
}

.code_state
{
    padding: 3px;
}

.code_state.expended
{
    background-color: rgb(255,128,128);
}

.code_state.unexpended.payed
{
    background-color: rgb(128,255,128);
}

.code_state.unexpended.unpayed
{
    background-color: rgb(192,128,255);
}

.code_state.invalid
{
    text-decoration: line-through;
}

/*FILTER FORM*/

form.filter_form select
{
    vertical-align: middle;
}

a.button.filter,
a.button.col_show_button
{
    padding: 5px;
    margin-left: 10px;
}

form.inline,
form.filter_form,
form.pagination_form
{
    display: inline-block;
    padding: 0px;
}

form.filter_form label
{
    /*white-space: nowrap;*/
    display: inline-block;
}

.filter_form_group
{
    margin-bottom: 10px;
}

.paginator
{
    margin-top: 20px;
}

.filter_form_group_inner,
.paginator_inner
{
/*
    padding: 15px 10px;
    background-color: rgb(96,96,96);
*/
}

form.filter_form
{
    margin-right: 10px;
}

form.filter_form .labeltext
{
    margin-right: 5px;
}

form.filter_form:last-child
{
    margin-right: 0px;
}

.button.small
{
    font-size: 80%;
}

.filter_form label + label
{
    margin-left: 0px;
}

.filter_form label
{
    margin-right: 10px;
    margin-bottom: 10px;
}

.button.filter
{
    background-color: rgb(255,224,144);
    color: rgb(0,0,0);
}


.button.filter:hover
{
    background-color: rgb(255,198,0);
    color: rgb(255,255,255);
}

.filter-form-control
{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}


.button.filter_button_inactive
{
    background-color: rgb(255,209,92);
    color: rgb(196,196,196);
    cursor: default;
}

.button.filter_button_inactive:hover
{
}

.pagination_links
{
    font-weight: bold;
    margin: 0px 20px 0px 10px;
}

.pagination_links .button
{
    margin-left: 10px;
    padding-left: 15px;
    padding-right: 15px;
}

.pagination_form.goto_page .button
{
    margin-left: 10px;
}

span.ticket_sale_url,
span.voucher_sale_url
{
    display: flex !important;
    min-height: 24px;
    align-items: center;
    gap: 4px;
    padding-left: 0;
    background: none;
}

span.ticket_sale_url:before,
span.voucher_sale_url:before
{
    display: inline-block;
    width: 16px;
    color: currentColor;
    font-family: bootstrap-icons !important;
    font-size: 16px;
    font-style: normal;
    font-weight: 400 !important;
    font-variant: normal;
    line-height: 1;
    text-transform: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

span.ticket_sale_url:before
{
    content: '\f6ca';
}

span.voucher_sale_url:before
{
    content: '\f3ec';
}

.equip_title
{
    color: rgb(222,222,222);
}

.smallhint
{
    color: rgb(255,100,100);
    font-size: 80%;
}


td.reservation-term-full
{
  background: repeating-linear-gradient(
    135deg,
    #000000,
    #000000 2px,
    #FFFFFF 2px,
    #FFFFFF 4px
  );
}

a.grow
{
    display: block;
}

td.spot_count
{
    font-size: 150%;
}

td.spot_count.not-started-yet
{
    background-color: gray !important;
}

td.spot_count.running
{
background-color: green !important;
}

td.spot_count.expired
{
background-color: red !important;
}

td.spot_count.not-started-yet.payed_by_prepaid a
{
    color: orange;
}

td.spot_count.not-started-yet.payed_online a
{
    color: yellow;
}

th.liftname
{
    background-color: black !important;
}

a.subtle
{
    text-decoration: none;
    font-weight: bold;
    color: blue;
}

a.subtle:hover
{
    text-decoration: underline;
}

.table3eq
{
    width: 100%;
}

.table3eq td
{
    width: 33.33%;
    text-align: center;
}

table.table_of_items tr.nohover td,
table.table_of_items tr.nohover:hover td
{
    background-color: transparent;
}

div.rez-popup span
{
    display: block !important;
}

div.rez-popup.not-started-yet
{

}

div.rez-popup.running,
div.rez-popup.running hr
{
    color: green;
}

div.rez-popup.expired,
div.rez-popup.expired hr
{
    color: red;
}


.right-half
{
    float: right;
}

.left-half
{

}


#chip-overlay,
.chip-overlay
{
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-color: rgba(0,0,0,0.85);

    display: flex;
    justify-content: center;
    align-items: center;
}

.chip-overlay .button
{
    display: inline-block !important;
}

.chip-inside-container
{
    width: 100%;
    display: inline-flex !important;
    align-items: center;
    justify-content: space-between;
}

.chip-field-container input
{
    width: 50%;
}

.chip-field-container .button
{
    width: 40%;
    margin-bottom: 0 !important;
}

/*--------------------------------------------------------------------------------------------------*/

.stat-cell
{
    position: relative;
    text-align: left;
}

.stat-content
{
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
}

.stat-value
{
    position: relative;
    z-index: 999;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-bar
{
    height: 100%;
}

/* barva bunky podle situace */
.stat-content.no-reservation
{
    background-color: white;
}

.stat-content.valid-started
{
    background-color: green;
}

.stat-content.valid-not-started
{
    background-color: tan;
}


.stat-content.filtered
{
    background: repeating-linear-gradient(
        -45deg,
        rgb(192,192,192),
        rgb(192,192,192) 5px,
        white 5px,
        white 10px
   );
}

/* barva baru podle situace*/
.stat-bar.under-rtk
{
    background-color: red;
}

.stat-bar.over-rtk
{
    background-color: orange;
}


/*
.stat-content.reserved.payed
{
    background-color: green;
}

.stat-content.reserved.not-payed
{
    background-color: orange;
}
*/

.spans-as-blocks span
{
    display: block;
}

.spans-as-blocks span:before
{
    margin-right: 5px;
}


span.teplota
{
    color: blue;
    font-size: 80%;
}



        #lift-online-status-container {
            width: 100%;
            display: flex;
        }

        #lift-online-status-container .liftname
        {
            margin-bottom: 10px;
        }

        #lift-online-status-container>div {
            width: 20%;
            text-align: center;
            padding: 10px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
        }
        #lift-online-status-container .status {
            display: block;
            background-color: lightgray;
            width: 100%;
            height: 30px;
        }

/*
00 - černá
10 - červená
01 - zelená
11 - červená
*/

        #lift-online-status-container .status.s11{
            background-color: red;
        }
        #lift-online-status-container .status.s10{
            background-color: red;
        }
        #lift-online-status-container .status.s00{
            background-color: black;
        }
        #lift-online-status-container .status.s01{
            background-color: green;
        }

.mauto
{
    margin: auto;
}

table.calendar table.lifts_in_day td
{
    padding: 2px 5px;
    text-align: center;
}

/* =================================================================================================
   2026 UI refresh
   The legacy selectors above are intentionally preserved for backwards compatibility. These rules
   provide the shared visual system and responsive behavior for all existing administration templates.
================================================================================================= */

:root
{
    --page: #f2f5f9;
    --surface: #ffffff;
    --surface-subtle: #f8fafc;
    --ink: #172033;
    --muted: #667085;
    --line: #dfe5ee;
    --line-strong: #cbd5e1;
    --brand: rgb(251, 218, 0);
    --brand-active: rgb(222, 184, 0);
    --brand-soft: rgb(255, 248, 194);
    --nav: #0b1220;
    --nav-soft: #172033;
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --danger: #dc2626;
    --success: #16803d;
    --warning: #d97706;
    --radius-sm: 7px;
    --radius: 11px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .08);
    --shadow: 0 12px 30px rgba(15, 23, 42, .10);
}

html
{
    min-width: 0;
    background: var(--page);
    color-scheme: light;
}

*, *::before, *::after
{
    box-sizing: border-box;
}

*, body
{
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body
{
    min-width: 0;
    min-height: 100vh;
    background: var(--page);
    color: var(--ink);
    font-size: 15px;
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
}

button, input, select, textarea
{
    font: inherit;
}

a
{
    color: var(--primary);
}

.skip-link
{
    position: fixed;
    z-index: 10000;
    top: 10px;
    left: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--ink);
    box-shadow: var(--shadow);
    transform: translateY(-150%);
    transition: transform .15s ease;
}

.skip-link:focus
{
    transform: translateY(0);
}

:focus-visible
{
    outline: 3px solid rgba(37, 99, 235, .35);
    outline-offset: 2px;
}

#layout
{
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 100vh;
    min-height: 100dvh;
}

/* Header */

#header
{
    position: relative;
    z-index: 100;
    width: 100%;
    overflow: visible;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    background: var(--nav);
    color: #ffffff;
}

#header-inner
{
    display: flex;
    align-items: center;
    gap: 24px;
    width: 100%;
    min-height: 80px;
    padding: 12px clamp(16px, 2.5vw, 36px);
}

.brand
{
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 11px;
    color: #ffffff;
    text-decoration: none;
}

.brand-mark
{
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(145deg, rgb(255, 235, 92), var(--brand));
    box-shadow: 0 8px 22px rgba(251, 218, 0, .28);
    color: rgb(51, 43, 0);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: -.04em;
}

.brand-copy
{
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-copy strong
{
    font-size: 17px;
    letter-spacing: -.02em;
}

.brand-copy small
{
    margin-top: 4px;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.header-controls
{
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    min-width: 0;
}

.header-box
{
    display: flex;
    min-height: 46px;
    align-items: center;
    padding: 7px 11px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .06);
    color: #e5e7eb;
}

.header-box form
{
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-areal label
{
    color: #94a3b8;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.header-areal select.edit
{
    min-width: 130px;
    border-color: rgba(255, 255, 255, .15);
    background-color: var(--nav-soft);
    color: #ffffff;
}

select#master_areal
{
    background-color: rgb(255, 235, 92);
    color: #0f2747;
    font-weight: 700;
}

.header-areal select.edit option
{
    background: #ffffff;
    color: var(--ink);
}

.header-result
{
    display: flex;
    flex: 1 1 180px;
    justify-content: center;
    min-width: 0;
}

#resultbox
{
    max-width: 100%;
    padding: 10px 14px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    font-weight: 700;
    line-height: 1.25;
}

#resultbox.info,
#resultbox.ok
{
    border-color: #86efac;
    background: #dcfce7;
    color: #166534;
}

#resultbox.error,
#resultbox.err
{
    border-color: #fca5a5;
    background: #fee2e2;
    color: #991b1b;
}

.server-status
{
    gap: 9px;
    white-space: nowrap;
}

.server-status > span:last-child,
.user-copy
{
    display: flex;
    flex-direction: column;
}

.server-status small,
.user-copy small
{
    color: #94a3b8;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
}

.server-status strong
{
    margin-top: 3px;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}

.status-dot
{
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 0 4px rgba(52, 211, 153, .12);
}

.user-box
{
    gap: 9px;
    white-space: nowrap;
}

.user-avatar
{
    display: grid;
    width: 31px;
    height: 31px;
    place-items: center;
    border-radius: 50%;
    background: #334155;
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
}

.user-copy strong
{
    margin-top: 2px;
    font-size: 13px;
    line-height: 1.1;
}

.user-copy > span
{
    margin-top: 2px;
    color: #94a3b8;
    font-size: 10px;
    line-height: 1.1;
}

.user-box .smallbutton
{
    display: grid;
    width: 28px;
    height: 28px;
    margin-left: 3px;
    padding: 0;
    place-items: center;
    border-radius: 7px;
    background: transparent;
    color: #94a3b8;
    font-size: 16px;
}

.user-box .smallbutton:hover
{
    background: rgba(239, 68, 68, .15);
    color: #fca5a5;
}

.nav-toggle
{
    display: none;
    min-height: 42px;
    align-items: center;
    gap: 9px;
    padding: 8px 11px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, .07);
    color: #ffffff;
    cursor: pointer;
}

.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after
{
    display: block;
    width: 19px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    content: "";
    transition: transform .18s ease, opacity .18s ease;
}

.nav-toggle-icon
{
    position: relative;
}

.nav-toggle-icon::before
{
    position: absolute;
    top: -6px;
}

.nav-toggle-icon::after
{
    position: absolute;
    top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon
{
    background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before
{
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after
{
    top: 0;
    transform: rotate(-45deg);
}

.nav-toggle-label
{
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.header-item-placeholder,
.mobile-header-controls
{
    display: none;
}

/* Navigation */

#navigation
{
    width: 100%;
    overflow: visible;
    padding: 0 clamp(16px, 2.5vw, 36px);
    border-bottom: 1px solid var(--line);
    background: var(--surface);
    box-shadow: 0 2px 8px rgba(15, 23, 42, .03);
}

#navigation ul.menu
{
    display: flex;
    min-height: 62px;
    align-items: stretch;
    gap: 4px;
    overflow: visible;
}

#navigation ul.menu.main-menu
{
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    column-gap: 12px;
}

#navigation ul.main-menu > li.nav-section
{
    min-width: 0;
}

#navigation ul.main-menu > li.nav-section-left
{
    grid-column: 1;
    justify-content: flex-start;
}

#navigation ul.main-menu > li.nav-section-center
{
    grid-column: 2;
    justify-content: center;
}

#navigation ul.main-menu > li.nav-section-right
{
    grid-column: 3;
    justify-content: flex-end;
}

#navigation ul.main-menu > li.nav-section > ul
{
    display: flex;
    align-items: stretch;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

#navigation ul.menu li
{
    display: flex;
    float: none;
    align-items: center;
    margin: 0;
}

#navigation ul.menu li.nav-spacer
{
    display: none;
}

#navigation ul.menu .button
{
    display: flex;
    min-height: 42px;
    align-items: center;
    gap: 9px;
    padding: 10px 13px;
    border-color: #cbd5e1;
    border-radius: 8px;
    background: #e2e8f0;
    color: #334155;
    font-size: 13px;
    font-weight: 750;
    letter-spacing: 0;
    text-decoration: none;
    text-transform: none;
    transition: background .15s ease, color .15s ease;
}

#navigation ul.menu .button:hover
{
    border-color: #94a3b8;
    background: #cbd5e1;
    color: var(--ink);
}

#navigation ul.menu li.is-active .button
{
    border-color: rgb(184, 146, 0);
    background: var(--brand-active);
    color: rgb(51, 43, 0);
}

#navigation ul.menu li.is-active .button:hover
{
    border-color: rgb(163, 129, 0);
    background: rgb(207, 169, 0);
}

#navigation .nav-icon
{
    display: inline-flex;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    align-items: center;
    justify-content: center;
    color: currentColor;
    font-size: 18px;
    line-height: 1;
}

#navigation .nav-icon::before
{
    vertical-align: 0;
}

/* Main content */

#workarea
{
    flex: 1 0 auto;
    width: 100%;
    min-height: 0;
    overflow: visible;
    background: var(--page);
}

#workarea-inner
{
    width: 100%;
    max-width: 1720px;
    margin: 0 auto;
    padding: clamp(20px, 3vw, 38px);
}

#workarea-inner > h1:first-child,
#workarea-inner > div:first-child > h1:first-child
{
    margin-top: 0;
}

h1
{
    margin: 0 0 22px;
    color: #111827;
    font-size: clamp(22px, 2vw, 30px);
    letter-spacing: -.035em;
    line-height: 1.2;
    text-decoration: none;
    text-transform: none;
}

h1 span.areal,
h1 span.vlek
{
    padding: .02em .28em .08em;
    border-radius: 5px;
    font-weight: 800;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

h1 span.areal
{
    background: #eaf2ff;
    color: var(--primary-dark);
    box-shadow: inset 0 -2px 0 #93c5fd;
}

h1 span.vlek
{
    background: #fff7cc;
    color: #713f12;
    box-shadow: inset 0 -2px 0 #facc15;
}

.day-navigation
{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
}

.day-navigation > h1,
.day-navigation > h2
{
    display: block;
    margin: 0;
    color: #111827;
    font-size: clamp(22px, 2vw, 30px);
    font-weight: bold;
    letter-spacing: -.035em;
    line-height: 1.2;
    text-decoration: none;
    text-transform: none;
}

.day-navigation > .button,
.day-navigation > .button + .button
{
    margin: 0;
}

h2
{
    display: block;
    margin: 28px 0 12px;
    color: #1f2937;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -.015em;
    text-transform: none;
}

h3
{
    font-weight: 750;
}

#workarea p
{
    line-height: 1.55;
}

/* Buttons */

.button.icon-button
{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.button.icon-button > .bi
{
    flex: 0 0 auto;
    font-size: 1.1em;
    line-height: 1;
}

.button.icon-button.icon-only
{
    width: 34px;
    padding-right: 0;
    padding-left: 0;
}

.button,
.show_switch,
.hide_switch,
.smallbutton
{
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    background: var(--primary);
    color: #ffffff;
    font-size: 13px;
    font-weight: 750;
    letter-spacing: .01em;
    line-height: 1.2;
    text-decoration: none;
    text-transform: none;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .1);
    transition: background .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.button,
a.button,
span.button,
.show_switch,
.hide_switch
{
    min-height: 34px;
    padding: 8px 12px;
}

.button:hover,
.show_switch:hover,
.hide_switch:hover,
.smallbutton:hover
{
    background: var(--primary-dark);
    box-shadow: 0 3px 8px rgba(37, 99, 235, .18);
}

.button:active,
.show_switch:active,
.hide_switch:active
{
    transform: translateY(1px);
}

.button.settings,
.button.superadmin,
.button.normal
{
    background: #475569;
}

.button.settings:hover,
.button.superadmin:hover,
.button.normal:hover
{
    background: #334155;
}

.button.confirm
{
    background: var(--success);
}

.button.confirm:hover
{
    background: #116832;
}

.button.warning
{
    background: var(--danger);
}

.button.warning:hover
{
    background: #b91c1c;
}

a.delete_link,
a.list_link,
a.external_link
{
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    color: #ffffff;
    font-size: 16px;
    line-height: 1;
    text-decoration: none;
    vertical-align: middle;
    transition: background .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

a.delete_link
{
    border-color: #b91c1c;
    background: var(--danger);
    box-shadow: 0 1px 2px rgba(127, 29, 29, .18);
}

a.list_link
{
    border-color: var(--primary-dark);
    background: var(--primary);
    box-shadow: 0 1px 2px rgba(30, 64, 175, .18);
}

a.external_link
{
    border-color: #475569;
    background: #64748b;
    box-shadow: 0 1px 2px rgba(51, 65, 85, .18);
}

a.delete_link:hover
{
    border-color: #991b1b;
    background: #b91c1c;
    color: #ffffff;
    box-shadow: 0 3px 8px rgba(127, 29, 29, .25);
}

a.list_link:hover
{
    border-color: #1e3a8a;
    background: var(--primary-dark);
    color: #ffffff;
    box-shadow: 0 3px 8px rgba(30, 64, 175, .25);
}

a.external_link:hover
{
    border-color: #334155;
    background: #475569;
    color: #ffffff;
    box-shadow: 0 3px 8px rgba(51, 65, 85, .25);
}

a.delete_link:active,
a.list_link:active,
a.external_link:active
{
    transform: translateY(1px);
}

a.delete_link::before,
a.list_link::before,
a.external_link::before
{
    font-family: bootstrap-icons !important;
    font-style: normal;
    font-weight: 400 !important;
    font-variant: normal;
    line-height: 1;
    text-transform: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a.delete_link::before
{
    content: "\f5de";
}

a.delete_link > .bi
{
    display: none;
}

a.list_link::before
{
    content: "\f473";
}

a.external_link::before
{
    content: "\f1c5";
}

.button.filter
{
    border-color: var(--line-strong);
    background: var(--surface);
    color: #334155;
}

.button.filter:hover
{
    border-color: #94a3b8;
    background: #f8fafc;
    color: var(--ink);
}

.filter-form-control .button.filter
{
    min-height: 28px;
    margin: 0;
    padding: 4px 9px;
    border-color: #475569;
    background: #64748b;
    color: #ffffff;
    font-size: 12px;
    box-shadow: none;
}

.filter-form-control .button.filter:hover
{
    border-color: #334155;
    background: #475569;
    color: #ffffff;
    box-shadow: 0 2px 5px rgba(15, 23, 42, .18);
}

.button.filter_button_inactive,
.button.filter_button_inactive:hover
{
    border-color: var(--line);
    background: #eef2f6;
    color: #9aa5b1;
    box-shadow: none;
}

ul.menu:not(.main-menu)
{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    overflow: visible;
    margin-bottom: 12px;
}

ul.menu:not(.main-menu) li
{
    float: none;
    margin: 0;
}

ul.menu:not(.main-menu) .button
{
    padding: 11px 14px;
    font-size: 14px;
    text-transform: none;
}

/* Fields and forms */

.edit,
.select,
input.edit,
select.edit,
select.select,
textarea.edit,
.select2-container .select2-selection--single
{
    min-height: 36px;
    padding: 7px 10px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background-color: var(--surface);
    color: var(--ink);
    box-shadow: 0 1px 2px rgba(15, 23, 42, .03);
    transition: border-color .15s ease, box-shadow .15s ease;
}

.select2-container
{
    vertical-align: middle;
}

.select2-container .select2-selection--single
{
    display: flex;
    height: 36px;
    align-items: center;
    padding: 0;
}

.select2-container--default .select2-selection--single .select2-selection__rendered
{
    display: flex;
    min-width: 0;
    height: 100%;
    flex: 1 1 auto;
    align-items: center;
    padding: 0 32px 0 10px;
    line-height: 1.25;
}

.select2-container--default .select2-selection--single .select2-selection__arrow
{
    display: flex;
    width: 32px;
    height: 100%;
    align-items: center;
    justify-content: center;
    top: 0;
    right: 0;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b
{
    position: static;
    margin: 0;
}

form.filter_form label
{
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}

input.edit:focus,
select.edit:focus,
select.select:focus,
textarea.edit:focus
{
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

input.error
{
    border-color: #ef4444;
    background: #fff7f7;
}

input[type="checkbox"],
input[type="radio"]
{
    width: 17px;
    height: 17px;
    accent-color: var(--brand);
    vertical-align: middle;
}

form.vertical
{
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

form.vertical label > span,
form.vertical div.submit-section > span
{
    padding-top: 8px;
    padding-bottom: 8px;
}

form.vertical label > span:first-child
{
    padding-left: 18px;
    color: #475569;
    font-size: 13px;
    font-weight: 650;
}

form.vertical label > span:last-child
{
    padding-right: 18px;
}

form.vertical label.dynamic > span,
form.vertical .form-block
{
    background: var(--surface-subtle);
}

form.vertical label.focused > span:first-child,
form.vertical label.foreign_field > span:first-child
{
    color: var(--primary);
}

form.vertical label.focused input,
form.vertical label.focused textarea,
form.vertical label.focused .select2-selection
{
    border-color: var(--primary);
}

form.vertical label.section-title > span
{
    padding-top: 18px;
    color: #111827;
    font-size: 15px;
}

form.vertical div.submit-section > span
{
    padding: 16px 18px 18px;
}

div.new_item form.inline,
.filter_form_group,
.paginator
{
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.filter_form_group
{
    margin-bottom: 16px;
}

.paginator
{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
}

.pagination_links
{
    display: inline-flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 0 10px;
}

.pagination_links .button
{
    margin-left: 0;
}

/* Data tables */

table.table_of_items,
table.sale_table
{
    max-width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

table.table_of_items
{
    min-width: 50%;
}

table.table_of_items th,
table.table_of_items td
{
    white-space: normal;
}

table.table_of_items td
{
    overflow-wrap: anywhere;
    word-break: break-word;
}

th,
table.table_of_items th
{
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}

table.table_of_items th.minimal,
table.table_of_items td.minimal
{
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
}

table.sale_table
{
    width: 100%;
}

table.table_of_items th,
div.table.table_of_items div.th
{
    padding: 11px 12px;
    border: 0;
    border-right: 1px solid #334155;
    border-bottom: 1px solid #334155;
    background: #1e293b;
    color: #f8fafc;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .045em;
    line-height: 1.25;
    text-transform: uppercase;
}

table.table_of_items th:first-child
{
    border-top-left-radius: 10px;
}

table.table_of_items th:last-child
{
    border-top-right-radius: 10px;
    border-right: 0;
}

table.table_of_items td,
div.table.table_of_items div.td
{
    padding: 10px 12px;
    border: 0;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--surface);
    color: #334155;
    line-height: 1.35;
}

table.table_of_items td:last-child
{
    border-right: 0;
}

table.table_of_items tr:last-child > td
{
    border-bottom: 0;
}

table.table_of_items tr:hover > td
{
    background: var(--brand-soft);
}

table.table_of_items table.Xtable3eq td:not(.spot_count)
{
    background: rgb(210, 210, 210);
}

table.table_of_items table.Xtable3eq tr
{
    border-bottom: 0;
}

table.table_of_items table.Xtable3eq td
{
    border-bottom: 1px solid var(--line);
}

a.reservation_delete_link,
a.reservation_delete_link:visited
{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--danger);
    font-size: 18px;
    line-height: 1;
    text-decoration: none;
    vertical-align: middle;
}

a.reservation_delete_link:hover,
a.reservation_delete_link:focus
{
    color: #b91c1c;
    text-decoration: none;
}

table.table_of_items tr.nohover td,
table.table_of_items tr.nohover:hover td
{
    background: transparent;
}

table.table_of_items td.hilited,
table.table_of_items td.hilited *
{
    background: #fee2e2;
}

table.table_of_items td.reservation-term-full,
table.table_of_items tr:hover > td.reservation-term-full
{
    background: repeating-linear-gradient(135deg, #334155, #334155 2px, #f8fafc 2px, #f8fafc 5px);
}

th.liftname
{
    background: #0f172a !important;
}

table.calendar
{
    margin-top: 18px;
}

table.calendar th,
table.calendar td
{
    min-width: 128px;
    padding: 10px;
}

table.calendar .day-title .button
{
    box-shadow: none;
}

table.calendar .day-line,
table.calendar .hourcheck
{
    min-height: 28px;
    padding: 5px 7px;
    border-radius: 5px;
    background: #f1f5f9;
    font-size: 12px;
}

.calendar .day-line.blocked
{
    background: #fee2e2;
    color: #991b1b;
}

.calendar .day-line.all-taken
{
    background: #be123c;
    color: #ffffff;
}

.calendar .day-line.partial-free
{
    background: #fef3c7;
    color: #92400e;
}

.calendar .day-line.capacity-exceeded
{
    background: #cffafe;
    color: #155e75;
}

/* Sales cards */

.lift-sale-layout
{
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    width: 100%;
}

.lift-sale-layout > .sale_container
{
    width: 100%;
    min-width: 0;
    height: auto;
}

.prepaid-sale-layout
{
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    width: 100%;
}

.prepaid-sale-layout > .sale_container
{
    width: 100%;
    min-width: 0;
    height: auto;
}

.prepaid-sale-layout #sale_info #the_form
{
    width: 100%;
}

.prepaid-sale-layout #sale_info #the_form label > span:nth-child(2)
{
    width: 100%;
}

.prepaid-sale-layout #sale_info #the_form label > span:nth-child(2) > input:not([type="checkbox"]):not([type="radio"]),
.prepaid-sale-layout #sale_info #the_form label > span:nth-child(2) > select,
.prepaid-sale-layout #sale_info #the_form label > span:nth-child(2) > textarea,
.prepaid-sale-layout #sale_info #the_form .select2-container
{
    width: 100% !important;
    max-width: 100%;
}

.prepaid-sale-layout #sale_info #the_form .chip-inside-container
{
    gap: 10px;
}

.prepaid-sale-layout #sale_info #the_form .chip-inside-container input
{
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
}

.prepaid-sale-layout #sale_info #the_form .chip-inside-container .button
{
    flex: 0 0 auto;
    width: auto;
}

.lift-sale-layout > #sale_target
{
    border-color: rgb(220, 38, 38);
    background: rgb(254, 202, 202);
    color: rgb(69, 10, 10);
}

.lift-sale-layout > #sale_target #ticket_placeholder
{
    border-color: rgba(127, 29, 29, .55);
    color: rgb(127, 29, 29);
}

.lift-sale-layout > #sale_target .prepaid-ticket-equipment-desc
{
    color: rgb(69, 10, 10);
}

.lift-sale-back
{
    margin-top: 24px;
}

table.sale_table
{
    display: block;
    overflow-x: auto;
    border: 0;
    background: transparent;
    box-shadow: none;
}

table.sale_table td
{
    min-width: 270px;
    padding: 0 9px;
    border: 0;
    vertical-align: top;
}

table.sale_table td:first-child
{
    padding-left: 0;
}

table.sale_table td:last-child
{
    padding-right: 0;
}

div.sale_container
{
    height: 100%;
    padding: 20px;
    border: 1px solid #334155;
    border-radius: var(--radius-lg);
    background: #1e293b;
    box-shadow: var(--shadow);
}

div.sale_container h3
{
    color: #ffffff;
    font-size: 15px;
    letter-spacing: .03em;
}

div.sale_container .button
{
    padding: 11px 13px;
}

@media (min-width: 1000px)
{
    .lift-sale-layout
    {
        flex-direction: row;
    }

    .lift-sale-layout > .sale_container
    {
        flex: 1 1 0;
        width: auto;
    }

    .lift-sale-layout > #sale_info
    {
        flex: 0 1 300px;
    }
}

@media (min-width: 1200px)
{
    .prepaid-sale-layout
    {
        flex-direction: row;
    }

    .prepaid-sale-layout > .sale_container
    {
        flex: 1 1 0;
        width: auto;
    }

    .prepaid-sale-layout > #sale_info
    {
        flex-grow: 1.5;
    }
}

@media (max-width: 820px)
{
    .prepaid-sale-layout #sale_info #the_form .chip-inside-container input,
    .prepaid-sale-layout #sale_info #the_form .chip-inside-container .button
    {
        width: 100%;
    }
}

/* Login */

body.is-login
{
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(circle at 15% 15%, rgba(251, 218, 0, .18), transparent 28rem),
        radial-gradient(circle at 85% 85%, rgba(37, 99, 235, .13), transparent 28rem),
        var(--nav);
}

#loginbox
{
    position: relative;
    top: auto;
    left: auto;
    width: min(100%, 430px);
    padding: 34px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 20px;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 28px 70px rgba(0, 0, 0, .28);
    transform: none;
}

#loginbox::before
{
    display: grid;
    width: 48px;
    height: 48px;
    margin: 0 auto 15px;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(145deg, rgb(255, 235, 92), var(--brand));
    color: rgb(51, 43, 0);
    content: "WA";
    font-size: 14px;
    font-weight: 900;
}

#loginbox h1
{
    margin-bottom: 25px;
    font-size: 24px;
    text-align: center;
}

#loginbox table
{
    width: 100%;
}

#loginbox td
{
    display: block;
    width: 100%;
    padding: 0 0 8px;
}

#loginbox tr
{
    display: block;
    margin-bottom: 13px;
}

#loginbox label
{
    color: #475569;
    font-size: 13px;
    font-weight: 700;
}

#loginbox .edit
{
    width: 100%;
    min-height: 44px;
}

#loginbox .button
{
    width: 100%;
    min-height: 44px;
    margin-top: 4px;
}

#loginbox td.error
{
    color: var(--danger);
    font-size: 13px;
    text-align: left;
}

/* Attendance charts */

.attendance-chart-legend
{
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px 24px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface-subtle);
    color: var(--ink);
    font-size: 13px;
}

.attendance-chart-legend-group,
.attendance-chart-legend-item,
.attendance-chart-toggle
{
    display: inline-flex;
    align-items: center;
}

.attendance-chart-legend-group
{
    flex-wrap: wrap;
    gap: 7px 12px;
}

.attendance-chart-legend-item
{
    gap: 5px;
    white-space: nowrap;
}

.attendance-chart-toggle
{
    gap: 5px;
    padding: 2px;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
    user-select: none;
}

.attendance-chart-toggle input
{
    width: 15px;
    height: 15px;
    margin: 0 1px 0 0;
    accent-color: var(--primary);
    cursor: pointer;
}

.attendance-chart-toggle:focus-within
{
    outline: 2px solid rgba(37, 99, 235, .35);
    outline-offset: 2px;
}

.attendance-chart-toggle input:not(:checked) ~ .attendance-chart-swatch
{
    opacity: .3;
    filter: grayscale(1);
}

.attendance-chart-toggle input:not(:checked) ~ .attendance-chart-toggle-label
{
    color: var(--muted);
    text-decoration: line-through;
}

.attendance-chart-swatch
{
    display: inline-block;
    flex: 0 0 auto;
    width: 20px;
    height: 10px;
}

.attendance-chart-swatch.is-predicted
{
    border: 1px solid rgba(249, 115, 22, .72);
    background: rgba(249, 115, 22, .24);
}

.attendance-chart-swatch.is-predicted.is-bar
{
    background: rgba(249, 115, 22, .72);
}

.attendance-chart-swatch.is-actual
{
    background: rgba(4, 120, 87, .95);
}

.attendance-chart-swatch.is-temperature
{
    height: 0;
    border-top: 2px solid rgb(37, 99, 235);
}

.attendance-chart-swatch.is-weekend
{
    background: rgba(15, 23, 42, .10);
}

.attendance-weather-icon
{
    font-family: "Segoe UI Emoji", "Apple Color Emoji", sans-serif;
    font-size: 16px;
    line-height: 1;
}

/* Online lift state */

#lift-online-status-container
{
    gap: 8px;
}

#lift-online-status-container > div
{
    min-width: 100px;
    padding: 12px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, .58);
}

#lift-online-status-container .status
{
    height: 10px;
    border-radius: 20px;
}

/* Responsive */

@media (max-width: 1180px)
{
    #header-inner
    {
        flex-wrap: wrap;
        gap: 10px 20px;
    }

    .header-controls
    {
        flex-wrap: wrap;
    }

    .header-result
    {
        order: 10;
        flex-basis: 100%;
    }

    .header-result:empty
    {
        display: none;
    }

}

@media (max-width: 820px)
{
    body
    {
        font-size: 14px;
    }

    #header-inner
    {
        min-height: 68px;
        padding: 11px 15px;
    }

    .brand-mark
    {
        width: 38px;
        height: 38px;
        border-radius: 10px;
    }

    .brand-copy strong
    {
        font-size: 15px;
    }

    .brand-copy small
    {
        font-size: 9px;
    }

    .header-controls
    {
        margin-left: auto;
        flex: 0 1 auto;
    }

    .header-controls > .header-areal,
    .header-controls > .server-status,
    .header-controls > .user-box
    {
        display: none;
    }

    .header-result
    {
        position: absolute;
        top: calc(100% + 9px);
        right: 15px;
        left: 15px;
        z-index: 110;
    }

    .nav-toggle
    {
        display: inline-flex;
    }

    #navigation
    {
        position: absolute;
        z-index: 90;
        top: 68px;
        right: 0;
        left: 0;
        display: none;
        padding: 9px 15px 15px;
        border-top: 1px solid rgba(255, 255, 255, .08);
        border-bottom: 0;
        background: var(--nav);
        box-shadow: 0 18px 30px rgba(15, 23, 42, .25);
    }

    #navigation.is-open
    {
        display: block;
    }

    #navigation ul.menu,
    #navigation ul.menu.main-menu
    {
        display: block;
        min-height: 0;
    }

    #navigation ul.menu li,
    #navigation ul.menu li.nav-spacer,
    #navigation ul.menu.main-menu > li.nav-section,
    #navigation ul.menu.main-menu > li.nav-spacer
    {
        display: block;
        width: 100%;
    }

    #navigation ul.menu.main-menu > li.nav-section > ul
    {
        display: block;
    }

    #navigation ul.menu li.nav-spacer
    {
        height: 1px;
        margin: 8px 0;
        background: rgba(255, 255, 255, .1);
    }

    #navigation ul.menu li:not(.nav-spacer):not(:last-child):not(:has(+ .nav-spacer)) > .button
    {
        margin-bottom: 8px;
    }

    #navigation ul.menu .button
    {
        width: 100%;
        min-height: 46px;
        border-color: #475569;
        background: #334155;
        color: #e2e8f0;
    }

    #navigation ul.menu .button:hover
    {
        border-color: #64748b;
        background: #475569;
        color: #ffffff;
    }

    #navigation ul.menu li.is-active .button
    {
        border-color: rgb(184, 146, 0);
        background: var(--brand-active);
        color: rgb(51, 43, 0);
    }

    #navigation.is-open .mobile-header-controls
    {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px;
        margin-top: 10px;
        padding-top: 12px;
        border-top: 1px solid rgba(255, 255, 255, .1);
    }

    .mobile-header-controls .header-box
    {
        display: flex;
        min-width: 0;
    }

    .mobile-header-controls .header-areal
    {
        grid-column: 1 / -1;
    }

    .mobile-header-controls .header-areal form,
    .mobile-header-controls .header-areal select.edit
    {
        width: 100%;
    }

    .mobile-header-controls .server-status
    {
        justify-content: flex-start;
    }

    .mobile-header-controls .user-box
    {
        justify-content: flex-end;
    }

    #workarea-inner
    {
        padding: 22px 15px 34px;
    }

    h1
    {
        margin-bottom: 17px;
        font-size: 23px;
    }

    .button,
    a.button,
    span.button,
    .show_switch,
    .hide_switch
    {
        min-height: 42px;
        padding: 11px 13px;
    }

    .pull-right,
    .pull-left
    {
        float: none !important;
    }

    .dib
    {
        display: block;
    }

    h1.dib + .button,
    h1.dib + a.button
    {
        margin-left: 0;
    }

    .day-navigation
    {
        margin-bottom: 17px;
    }

    .day-navigation > h1,
    .day-navigation > h2
    {
        flex: 1 0 100%;
        width: 100%;
    }

    .edit.superlong,
    .edit.longest,
    .edit.longer,
    .edit.long,
    .edit.short,
    form.vertical select,
    form.vertical select.longsel
    {
        width: 100%;
        max-width: 100%;
    }

    form.vertical
    {
        display: block;
        width: 100%;
        padding: 5px 15px 15px;
    }

    form.vertical label,
    form.vertical div.submit-section,
    form.vertical label > span,
    form.vertical div.submit-section > span
    {
        display: block;
        width: 100%;
    }

    form.vertical label
    {
        margin: 0;
        padding: 10px 0 4px;
    }

    form.vertical label > span:first-child
    {
        padding: 0 0 6px;
    }

    form.vertical label > span:last-child
    {
        padding: 0;
    }

    form.vertical label.dynamic > span,
    form.vertical .form-block
    {
        background: transparent;
    }

    form.vertical label.dynamic
    {
        padding-left: 12px;
        border-left: 3px solid var(--line);
    }

    form.vertical div.submit-section > span
    {
        padding: 16px 0 0;
    }

    form.vertical div.submit-section input,
    form.vertical div.submit-section a
    {
        width: 100%;
        margin: 0 0 8px;
        text-align: center;
    }

    .filter_form_group,
    .paginator
    {
        padding: 12px;
    }

    form.filter_form,
    form.filter_form label,
    form.pagination_form.goto_page
    {
        display: block;
        width: 100%;
        margin-right: 0;
    }

    form.filter_form label
    {
        margin-bottom: 10px;
    }

    form.filter_form select,
    form.filter_form input.edit
    {
        width: 100%;
        margin-top: 5px;
    }

    .pagination_info
    {
        width: 100%;
    }

    .pagination_links
    {
        margin: 0;
    }

    table.table_of_items,
    table.calendar
    {
        display: block;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        -webkit-overflow-scrolling: touch;
    }

    table.table_of_items th,
    table.table_of_items td
    {
        white-space: nowrap;
    }

    table.table_of_items td .spans-as-blocks,
    table.table_of_items td.info
    {
        white-space: normal;
    }

    table.calendar
    {
        min-width: 0;
    }

    table.sale_table td
    {
        min-width: min(82vw, 340px);
    }

    ul.menu:not(.main-menu),
    ul.menu:not(.main-menu) li,
    ul.menu:not(.main-menu) .button
    {
        width: 100%;
    }

    ul.menu:not(.main-menu) .button
    {
        display: block;
        text-align: center;
    }

    #lift-online-status-container
    {
        flex-wrap: wrap;
    }

    #lift-online-status-container > div
    {
        flex: 1 1 calc(50% - 8px);
        width: auto;
    }

    .chip-inside-container
    {
        flex-direction: column;
        gap: 8px;
    }

    .chip-field-container input,
    .chip-field-container .button
    {
        width: 100%;
    }
}

@media (max-width: 480px)
{
    .brand-copy small
    {
        display: none;
    }

    .nav-toggle-label
    {
        display: none;
    }

    #loginbox
    {
        padding: 26px 20px;
        border-radius: 16px;
    }

    #loginbox h1
    {
        font-size: 21px;
    }

    .button + .button
    {
        margin-top: 7px;
        margin-left: 0;
    }

    #lift-online-status-container > div
    {
        flex-basis: 100%;
    }
}

@media (prefers-reduced-motion: reduce)
{
    *, *::before, *::after
    {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
