/*
 * Design tokens: the visual contract shared by the legacy stylesheets and the
 * React islands (app/javascript). Required first by application.css, which is
 * loaded on every page, so React CSS Modules can read them as var(--*) and
 * never repeat a literal value. See doc/tasks/002_ui_update_plan.md, Phase 1.
 *
 * Change a value here and both worlds follow. Add a token only for a value that
 * is shared or carries meaning; one-off legacy values stay literal.
 */
:root {
    /* Typography */
    --font-family: Tahoma, Geneva, sans-serif;
    --font-size-base: 15px;
    --font-size-control: 14px;      /* inputs, labels */
    --font-size-small: 13px;        /* submenus */
    --font-size-tiny: 11px;         /* footer small print */

    /* Layout */
    --page-width: 1080px;
    /*
     * Breakpoints, for reference: custom properties cannot be used in media
     * queries, so responsive.css and the React CSS write them literally.
     *   1080px  the page column fills the window, with a side gutter
     *   720px   phone: header stacks, menu folds, forms go one column
     */
    --bp-mid: 1080px;
    --bp-narrow: 720px;
    --tap-target: 44px;             /* minimum touch target height */

    /* Colour */
    --color-ink: #000;              /* text, borders, rules, buttons */
    --color-on-dark: #fff;          /* text on brand / ink backgrounds */
    --color-brand: #2F415F;         /* navy: table heads, info headers, toolbars */
    --color-link-hover: #0618ff;
    --color-error: red;
    --color-border-muted: #ccc;
    --color-shade: rgba(0, 0, 0, 0.105);   /* form panel, odd rows */
    --color-tint: rgba(0, 0, 0, 0.020);    /* even rows */
    --color-overlay: rgba(255, 255, 255, .95);

    /* Borders */
    --border-thin: 1px solid var(--color-ink);
    --border-rule: 4px solid var(--color-ink);   /* header, splitters, pane rules */

    /* Spacing scale */
    --space-1: 2px;
    --space-2: 4px;
    --space-3: 10px;
    --space-4: 20px;

    /* Components */
    --cell-padding: var(--space-3);
    --panel-padding: var(--space-4);
    --button-padding: 13px 24px;
    --button-padding-small: 4px 10px;
    --input-width: 310px;
    --label-width: 150px;

    /*
     * jQuery UI widgets: the "UI lightness" theme (jquery-ui-1.8.23.custom.css)
     * that dialogs, the datepicker, autocomplete and flash notices use, with
     * application.css's navy .ui-widget-header override. The React widgets
     * (app/javascript/styles/jquery-ui-theme) read these; the vendor file is
     * not rewritten.
     */
    --ui-font-family: "Trebuchet MS", Tahoma, Verdana, Arial, sans-serif;
    --ui-font-size: 1.1em;
    --ui-radius: 4px;
    --ui-content-bg: #eee;
    --ui-content-border: #ddd;
    --ui-content-fg: #333;
    --ui-header-bg: var(--color-brand);
    --ui-header-border: var(--color-ink);
    --ui-header-fg: var(--color-on-dark);
    --ui-default-bg: #f6f6f6;
    --ui-default-border: #ccc;
    --ui-default-fg: #1c94c4;
    --ui-hover-bg: #fdf5ce;
    --ui-hover-border: #fbcb09;
    --ui-hover-fg: #c77405;
    --ui-active-bg: #fff;
    --ui-active-border: #fbd850;
    --ui-active-fg: #eb8f00;
    --ui-highlight-bg: #ffe45c;
    --ui-highlight-border: #fed22f;
    --ui-highlight-fg: #363636;
    --ui-error-bg: #b81900;
    --ui-error-border: #cd0a0a;
    --ui-error-fg: #fff;
    --ui-overlay-bg: #666;
    --ui-overlay-opacity: .5;
    --ui-disabled-opacity: .35;
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
 * or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the top of the
 * compiled file, but it's generally better to create a new file per style scope.
 *
 * _tokens must stay first: every other stylesheet, and the React bundles,
 * read its custom properties.
 *



 *
 * jQuery UI's stylesheet is not bundled here: layouts/_legacy_assets links it
 * (right after this file, as before) on the pages that use it.
 */

html {
    overflow-y: scroll;
    height: 100%;
}

body {
    line-height: 1.5;
    font-size: 87.5%;
    word-wrap: break-word;
    margin: 0 !important;
    font-family: var(--font-family) !important;
    font-size: var(--font-size-base) !important;
    padding: 0;
    border: 0;
    outline: 0;
    height: 100%;
}

#page_wrapper {
    min-height: 100%;
    position: relative;
}

/*
.wrapper {
    min-height:100%;
    height:auto!important;
    height: 100%;
    margin: 0 auto -140px!important;
} */
#page {
    font-family: var(--font-family) !important;
    height: 100%;
    padding-bottom: 75px;
}

#header {
    padding-top: 15px;
    max-width: var(--page-width);
    margin-left: auto;
    margin-right: auto;
    position: relative;
    border-bottom: var(--border-rule);
}

#logo {
    position: relative;
    float: left;
    min-height: 120px;

}

#logo img {
    max-height: 120px;
    height: 120px;
    padding-top: 12px;
    padding-left: 20px;
}

.clearfix:after {
    content: ".";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
}

#header_top_links {
    float: left;
    width: 100%;
    margin-top: 15px;
}

#header_top_links #languages {
    width: 50px;
    float: left;
    margin: 0;
    padding: 0;
    font-family: Arial;
    font-size: 11px;
    color: #979797;
    text-decoration: none;
}

#menu_links {
    /*margin-top: -24px;*/
    line-height: 1em !important;
    clear: both;
    float: right;
    text-align: left;
    font-size: 0.929em;

    padding: 0 0px;
}

ul.menu_all {
    border: none;
    list-style: none;
    text-align: left;
    margin: 0;

}

ul.menu_all li > a {
    color: var(--color-ink) !important;
    font-weight: bold;
    height: 2.4em;
    line-height: 2.4em;
    padding: 0 1.2em;
    text-transform: uppercase;
    text-decoration: none;
}

ul.menu_all > li {
    float: left;
    list-style: none;
    padding: 0 1px;
    margin: 0 0px;
}

ul.menu_all ul > li {
    width: 100%;

}

ul.menu_all ul {
    display: none;
    list-style: none;
    padding-left: 0px;
}

ul.menu_all ul {
    font-size: var(--font-size-small) !important;
    background: #fff;
    z-index: 9999999999;
    border-left: var(--border-thin);
    border-right: var(--border-thin);
    border-bottom: var(--border-thin);
    border-top: 1px dashed var(--color-ink);
    position: absolute;
    /* background: red; */
    width: 238px !important;
    background: #fff !important;
}

ul.menu_all ul li {
    padding: 4px 8px;
    width: 230px;
}

ul.menu_all ul li a {
    color: var(--color-ink) !important;
    text-transform: none !important;
    line-height: 1.5em !important;
}

li:hover > ul {
    display: block;
    z-index: 500;
}

ul.menu_all a:hover {
    color: var(--color-link-hover) !important;
}

ul.menu_all li a.selected {
    color: var(--color-link-hover);
}

#header_right {
    width: 410px;
    float: right;
}

#up_line {
    float: right;
    width: 405px;
    padding: 0.2em 0em;
    margin-bottom: 1.2em;
    border-bottom: var(--border-rule);
    font-size: 0.821em;
    font-weight: bold;
    text-align: right;
}

#links {
    float: right;
    width: 100%;
    margin: 0px 0px;
    padding: 0px 0px;
}

#links #languages {
    float: right;
    width: 20px;
    margin-left: 8px;
    padding: 3px 8px 4px 8px !important;
    margin-top: 2px !important;
    position: relative;
    background: #fff;
    border: 1px solid var(--color-border-muted);
    /* height: 3.2em; */
    text-transform: uppercase;
    padding: 15px 0px;
    font-weight: bold;
    font-size: 12px !important;
    color: var(--color-ink) !important;
}

a:link, a:visited {
    text-decoration: none;
}

#main {
    margin-top: 20px;
    margin-bottom: 40px;
    max-width: var(--page-width);
    margin-left: auto;
    margin-right: auto;
    padding: 0 0px;
}

#footer {
    background: url(/assets/darkBgr-9a874a69e003bd943712611e8e0e2e65ce41f4337495d9838f56899023085694.png);
    padding: 15px 0px 40px 0px;
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 20px; /* Height of the footer */
}

#footer #copyright {
    max-width: var(--page-width);
    margin-left: auto;
    margin-right: auto;
    color: var(--color-border-muted);
    font-size: var(--font-size-tiny);
}

#footer a:hover,
#footer a:focus {
    color: #fefefe;
    color: rgba(255, 255, 255, 0.95);
    text-decoration: underline;
}

#footer  a {
    color: var(--color-on-dark) !important;
}

#footer .contact {
    max-width: var(--page-width);
    margin-left: auto;
    margin-right: auto;
    padding: 5px;
    font-size: var(--font-size-control);
    color: var(--color-border-muted);
}

.div_form {
    /*background: #ACDACA;*/
    background: var(--color-shade);
    border-top: var(--border-thin);
    border-left: var(--border-thin);
    border-right: var(--border-thin);
    border-bottom: var(--border-thin);
    /*margin-top: 20px;*/

    padding: var(--panel-padding);
}

.div_form h1 {
    margin-top: 0;
}

.div_table {
    display: table;
    width: auto;

    border-spacing: var(--space-3); /*cellspacing:poor IE support for  this*/
}

.div_row {
    display: table-row;
    width: auto;
    padding: 0px;
    margin: 0px;
}

.div_cell {
    float: left; /*fix for  buggy browsers*/
    display: table-column;
    width: 250px;
}

/*.div_cell input, select*/
/*{*/
/*width: 314px;*/
/*}*/

/*
 * The global form and table rules below skip React islands and their portals:
 * the `:not(:where(...))` suffix keeps them off anything inside
 * [data-react-component] or [data-react-portal], whose components style
 * themselves from _tokens.css. :where() has zero specificity, so for every
 * legacy element these selectors weigh exactly what they did before.
 */
#content form input[type='text']:not(:where([data-react-component] *, [data-react-portal] *)), #content form input[type='password']:not(:where([data-react-component] *, [data-react-portal] *)), select:not(:where([data-react-component] *, [data-react-portal] *)) {
    padding: var(--space-1);
    width: var(--input-width);
    margin-top: 1px;
    margin-right: var(--space-3);
    font-size: var(--font-size-control);
}

#content form label:not(:where([data-react-component] *, [data-react-portal] *)) {
    padding: var(--space-1);
    width: var(--label-width);
    margin-top: 1px !important;
    margin-right: var(--space-3);
    font-size: var(--font-size-control) !important;
}

#content form input[type='submit']:not(:where([data-react-component] *, [data-react-portal] *)), #content form button[type='submit']:not(:where([data-react-component] *, [data-react-portal] *)) {
    background: var(--color-ink);
    text-transform: uppercase;
    color: var(--color-on-dark) !important;
    border-radius: 0px !important;
    border: none !important;
    padding: var(--button-padding);
    margin-top: var(--space-1);
}



.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: var(--color-overlay)
}

.modal .text2 {
    text-align: center;
    font-size: 30px;
    margin-top: 15%;
    color: var(--color-error);

}

.modal .spinner {
    width: 50px;
    height: 50px;
    background: url(/assets/ajax-loader-75f5b4e793980c53dbb103a9482f3674256b119f99b7d03e33b72334099932cf.gif) no-repeat;
    margin-left: 50%;
    margin-right: 50%;
}

body.loading {
    overflow: hidden;
}

body.loading .modal {
    display: block;
}

table:not(:where([data-react-component] *, [data-react-portal] *)) {
    border: 0;
    border-spacing: 0;
    font-size: var(--font-size-base);
    margin: var(--space-3) 0;
    width: 100%;
}

table thead:not(:where([data-react-component] *, [data-react-portal] *)) {
    background: var(--color-brand);
    text-align: left;
}

table thead tr th:not(:where([data-react-component] *, [data-react-portal] *)) {
    color: var(--color-on-dark);
    font-weight: bold;
    padding: var(--cell-padding);
}

table tbody:not(:where([data-react-component] *, [data-react-portal] *)) {
    border-top: 1px solid var(--color-border-muted);
}

table tbody tr.odd:not(:where([data-react-component] *, [data-react-portal] *)) {
    background: var(--color-shade);
}

table tbody tr.even:not(:where([data-react-component] *, [data-react-portal] *)) {
    background: var(--color-tint);
}

table tbody tr td:not(:where([data-react-component] *, [data-react-portal] *)) {
    padding: var(--cell-padding);
}

.errors ul {
    color: var(--color-error);
}

.info ul {
    color: var(--color-brand);
}

.field_with_errors input, .field_with_errors select {
    border: 2px solid var(--color-error);
}

.pane-content {
    padding: 1.8em 0em;
    border-bottom: var(--border-rule);
}

.div_info_text {
    background: #fff;
    border: var(--border-thin);
    width: 41.8%;
    padding: 1.500em 2.5em 3.333em 2.5em;
    position: relative;
    float: left;
    height: 223px;
}

.div_image {
    overflow: hidden;
    border: var(--border-thin);
    height: 295px;
    float: right;
    /*width: 50%;*/
}

.div_image img {
    width: 530px;
    height: auto;
    margin: 0;
    padding: 0;
}

.dots {
    width: 5px;
    height: 5px;
    background: var(--color-ink);
    position: absolute;
}

.dots.dot-top-left {
    top: 0;
    left: 0;
    margin: -3px 0px 0px -3px;
}

.dots.dot-top-right {
    top: 0;
    right: 0;
    margin: -3px -3px 0px 0px;
}

.dots.dot-bottom-left {
    bottom: 0;
    left: 0;
    margin: 0px 0px -3px -3px;
}

.dots.dot-bottom-right {
    bottom: 0;
    right: 0;
    margin: 0px -3px -3px 0px;
}

.clearfix:after {
    content: ".";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
}

.div_info {

}

.div_info_header {
    /*background: rgb(217, 224, 38);*/
    background: var(--color-brand);
    color: var(--color-on-dark);
    padding: var(--space-3);
    padding-left: var(--space-4);
    /* border-top: 200px; */

    margin-top: var(--space-4);
    text-transform: uppercase;
    font-weight: bold;
}

.div_info_line {
    padding: var(--space-3);
    padding-left: var(--space-4);
    border-spacing: var(--space-3);
}

.small_button
{
    padding: var(--button-padding-small) !important;

}
.fl
{
    float: left;
    padding-top: 2px;
    padding-right: 10px;
}

.ui-widget-header {
    border: var(--border-thin) !important;
    background: var(--color-brand) !important;
}

.dialog_button {
    background: var(--color-ink) !important;
    text-transform: uppercase;
    color: var(--color-on-dark) !important;
    border-radius: 0px !important;
    border: none !important;
    /*padding: 13px 24px !important;*/
    margin-top: var(--space-1) !important;
}

.small_label
{
    font-size: 10px;
}

h2.splitter {
    width: 100%;
    text-align: center;
    border-bottom: var(--border-rule);
    line-height: 0.1em;
    margin: var(--space-3) 0 var(--space-4);
}

h2.splitter span {
    background: #fff;
    padding: 0 10px;
    background: #e4e4e4;
}
div.menu
{
	clear:both;
}
#menu_c
{
	width: 1200px;
	padding-top: 10px;
	padding-bottom: 10px;
	margin-left:auto;
	margin-right:auto;
}

ul.menu
{
	/*font-family: Segoe UI, Arial, sans-serif;	*/
	height: 21px;
	clear:both;
	list-style:none;
	margin-top: 0;
	margin-left: 0;
	margin-right:0;
	margin-bottom: 20px;
	padding: 0;
}


ul.menu li
{
	position: relative;
	text-align: left;
	padding-top: 5px;
	padding-bottom : 5px;
}

ul.menu li > a
{
	display: block;
}

ul.menu > li
{
	float: left;
	width: 238px;
	
}

ul.menu ul > li
{
	width: 100%;
}

ul.menu  ul
{
	position: absolute;
	display: none;
	width: 100%;
	list-style:none;
	margin: 5px 0 0 0;
	padding: 0;
}

.ui-state-default_m > a , .ui-state-default_m > a:link, .ui-state-default_m > a:visited , .ui-state-default_m > a:hover 
{
	color:white;
	text-decoration : none;
	text-align: center;
}

ul.menu ul ul 
{
	position: absolute;
	top: 0;
	left: 100%;
	width: 100%;
}

li:hover > ul
{
	display: block;
	z-index: 500;
}



/*
 * The layout on narrow screens and touch devices
 * (doc/tasks/004_ui_update_public_plan.md, step 0). Colours, fonts and
 * backgrounds stay as application.css sets them; only sizes and flow change.
 *
 * Breakpoints (see _tokens.css): 1080px, below which the page fills the
 * window with a side gutter instead of a fixed 1080px column, and 720px, below
 * which the header stacks and the menu folds behind a toggle button.
 *
 * Public pages (body.fluid-page) reflow all the way down. Admin pages keep
 * their fixed-width content: below 1080px it scrolls sideways inside #main,
 * while the header, menu and footer around it still fit the screen.
 */

.dev-marker {
    color: #ff0000;
    font-weight: bold;
}

.menu-toggle {
    display: none;
}

/* Keyboard users open the hover dropdowns too */
ul.menu_all li:focus-within > ul {
    display: block;
    z-index: 500;
}

/* Admin content keeps the width it was designed for */
body:not(.fluid-page) #content {
    min-width: var(--page-width);
    box-sizing: border-box;
}

@media (max-width: 1080px) {
    #header,
    #main,
    #footer .contact,
    #footer #copyright {
        box-sizing: border-box;
        padding-left: var(--space-3);
        padding-right: var(--space-3);
    }

    body:not(.fluid-page) #main {
        overflow-x: auto;
    }

    /* The footer grows with wrapped text instead of overlapping the page */
    #footer {
        position: static;
        height: auto;
    }

    #page {
        padding-bottom: 0;
    }
}

@media (max-width: 720px) {
    #logo {
        min-height: 0;
    }

    #logo img {
        height: 64px;
        max-height: 64px;
        padding: 6px 0 6px 0;
    }

    #header_right {
        width: auto;
        max-width: 50%;
    }

    #up_line {
        width: auto;
        margin-bottom: var(--space-2);
    }

    /* The menu: a toggle button, then a vertical list of tap targets */
    .menu-toggle {
        display: flex;
        align-items: center;
        gap: var(--space-3);
        clear: both;
        width: 100%;
        min-height: 44px;
        margin: var(--space-2) 0;
        padding: 0 var(--space-3);
        background: var(--color-ink);
        color: var(--color-on-dark);
        border: none;
        border-radius: 0;
        font: inherit;
        font-weight: bold;
        text-transform: uppercase;
        cursor: pointer;
    }

    .menu-toggle-bars,
    .menu-toggle-bars::before,
    .menu-toggle-bars::after {
        display: block;
        width: 18px;
        height: 2px;
        background: currentColor;
    }

    .menu-toggle-bars {
        position: relative;
    }

    .menu-toggle-bars::before,
    .menu-toggle-bars::after {
        content: "";
        position: absolute;
        left: 0;
    }

    .menu-toggle-bars::before {
        top: -6px;
    }

    .menu-toggle-bars::after {
        top: 6px;
    }

    #menu_links {
        display: none;
        float: none;
        clear: both;
        width: 100%;
    }

    body.nav-open #menu_links {
        display: block;
    }

    ul.menu_all {
        padding: 0;
    }

    ul.menu_all > li {
        float: none;
        padding: 0;
        border-top: 1px solid var(--color-border-muted);
    }

    ul.menu_all li > a {
        display: block;
        height: auto;
        min-height: 44px;
        line-height: 44px;
    }

    /* Submenus open in place, on a tap (layout.js) */
    ul.menu_all ul,
    li:hover > ul {
        display: none;
        position: static;
        width: auto !important;
        border: none;
        border-top: 1px dashed var(--color-ink);
    }

    ul.menu_all li.sub-open > ul {
        display: block;
    }

    ul.menu_all ul li {
        width: auto;
        padding: 0 0 0 var(--space-4);
    }

    ul.menu_all ul li a {
        line-height: 44px !important;
    }

    /* Public pages still in HAML (etapatybe) stack their form tables */
    body.fluid-page .div_table,
    body.fluid-page .div_row,
    body.fluid-page .div_cell {
        display: block;
        float: none;
        width: auto;
    }

    body.fluid-page #content form input[type='text']:not(:where([data-react-component] *)),
    body.fluid-page #content form input[type='password']:not(:where([data-react-component] *)) {
        box-sizing: border-box;
        width: 100%;
        max-width: var(--input-width);
        font-size: 16px;
    }

    body.fluid-page .div_info_text {
        float: none;
        width: auto;
        height: auto;
    }

    body.fluid-page .div_image {
        display: none;
    }
}
