/*
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
*/

/*
    Created on : Sep 16, 2014, 1:25:36 PM
    Author     : Yorick
*/

/*Initialize*/
#pageBackEnd #navbar {
    width: 100%;
}

#pageBackEnd .cms_header,
#pageBackEnd #header,
#page .cms_header {
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-justify-content: space-between;
    justify-content: space-between;
    align-content: space-between;
    align-items: center;
}

#pageBackEnd .cms_header #taalkeuze,
#pageBackEnd #header #taalkeuze,
#page .cms_header #taalkeuze {
    -ms-flex-order: 2;
    order: 2;
    -webkit-flex: 0 1 auto;
    -ms-flex: 0 1 auto;
    flex: 0 1 auto;
    -webkit-align-self: auto;
    align-self: auto;
}

#pageBackEnd .cms_header .tall,
#pageBackEnd #header .tall,
#page .cms_header .tall {
    -ms-flex-order: 1;
    order: 1;
    -webkit-flex: 0 1 auto;
    -ms-flex: 0 1 auto;
    flex: 0 1 auto;
    -webkit-align-self: auto;
    align-self: auto;
}

#backend #pageBackEnd #header #navbar {
    width: 100%;
}

ul#menu,
ul#menu ul.sub-menu {
    margin: 0;
    padding: 0;
    float: right;
}

ul#menu.navbar-nav {
    align-content: center;
    align-items: center;
    height: inherit;
}

ul#menu li,
ul#menu ul.sub-menu li {
    list-style-type: none;
    display: inline-block;
}

@media (max-width: 768px) {
    #main {
        max-width: 90%;
    }
}

/* The bar is .navbar-expand-sm, so it collapses at 576px. These rules used to
   start at 768px, which left 576-767px with a horizontal row whose items were
   each forced to width:100%. */
@media (max-width: 575.98px) {
    .navbar-collapse ul#menu {
        width: 100%;
    }

    .navbar #logo {
        margin-left: 20px;
    }

    .navbar-collapse ul#menu li {
        width: 100%;
    }

    /* Sub-menus open on :hover, which no touch device has, so stacked they are
       always open and read as an indented group. Without this, "Uitloggen"
       and the whole Opdrachtgeverportaal group are unreachable on a phone.
       ponytail: a click-toggle would need JS in docs/jscript/_submenu.js -
       worth it only if the lists get much longer. */
    /* div#taalkeuze, not #taalkeuze: the desktop panel rule further down this
       file has the same specificity and would win on source order. */
    .navbar-collapse ul#menu li ul.sub-menu,
    div#taalkeuze ul.sub-menu {
        display: block;
        width: 100%;
        float: none;
        position: relative;
        top: 0;
        border: none;
        box-shadow: none;
        padding: 0;
    }

    ul#menu, ul#menu ul.sub-menu {
        float: none;
    }

    /* Full width so the current item's inline background-color fills the whole
       row rather than sitting as a short block inside it. */
    .navbar-collapse ul#menu .button_hoofdmenu,
    #pageBackEnd .navbar-collapse .button_hoofdmenu {
        float: none;
        border: none;
        width: 100%;
        text-align: left;
    }

    .navbar-collapse ul#menu li ul.sub-menu .new_sub_menu,
    div#taalkeuze .new_sub_menu {
        float: none;
        color: #4b7192;
        font-size: 12px;
        height: 50px;
        line-height: 50px;
        padding-left: 30px;
    }

    /* Stacked, the switcher is a row like any other: the current language on
       its own line with the alternatives listed under it, not beside it. */
    div#taalkeuze {
        display: block;
        width: 100%;
        height: auto;
    }

    div#taalkeuze #taalkeuze_current {
        width: 100%;
    }
}

@media (min-width: 576px) {
    #pageBackEnd .navbar-collapse {
        justify-content: flex-end;
        height: inherit;
    }

    ul#menu li,
    ul#menu ul.sub-menu li {
        display: inline-flex;
        height: inherit;
        align-items: center;
        z-index: 2;
    }

    ul#menu li ul.sub-menu {
        max-height: min(400px, calc(100vh - 100px));
        overflow-y: auto;
        overscroll-behavior: contain;
    }
}


/*Link Appearance*/

ul#menu li a,
ul#menu li ul.sub-menu li a {
    text-decoration: none;
    color: #ffffff;
    background: #666666;
    padding: 5px;
    display: inline-block;
}


/*Make the parent of sub-menu relative*/

ul#menu li {
    position: relative;
    padding: 0;
}


/*sub menu*/

ul#menu li ul.sub-menu,
#taalkeuze ul.sub-menu {
    background-color: white;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    display: none;
    position: absolute;
    /* Flush with the bottom of the bar - a gap here leaves a dead zone the
       pointer falls into, which closes the panel on the way down. */
    top: 100%;
    min-width: 200px;
    width: fit-content;
    left: 0;
    padding: 4px 0;
}

ul#menu li ul.sub-menu li {
    width: 100%;
}

/* The panel hangs out of the bar, but its li is a stacking context pinned at
   z-index 2, so anything under the header with a higher one paints over it
   (.toast-container is 3, the admin todo badges are 9-10). Raising the open li
   carries the panel with it. 1000 is Bootstrap's $zindex-dropdown and stays
   below the jQuery UI dialogs at 9999. */
ul#menu li:hover,
ul#menu li:focus-within {
    z-index: 1000;
}

/* :focus-within is the keyboard equivalent of :hover - without it the
   sub-menu items can be tabbed to but never become visible. */
ul#menu li:hover ul.sub-menu,
ul#menu li:focus-within ul.sub-menu,
#taalkeuze:hover ul.sub-menu,
#taalkeuze:focus-within ul.sub-menu {
    display: block;
    color: #e0e0e0;
}

/* The switcher is the last thing in the bar, so its panel hangs from the right
   edge - anchored left it would run off screen. */
#taalkeuze ul.sub-menu {
    left: auto;
    right: 0;
    min-width: 160px;
}

.new_sub_menu {
    background-color: transparent;
    border: none;
    color: #6C757D;
    cursor: pointer;
    display: block;
    font-size: 12px;
    height: 40px;
    line-height: 40px;
    margin: 0;
    padding: 0 16px;
    text-align: left;
    text-transform: capitalize;
    white-space: nowrap;
    z-index: 1;
    width: 100%;
}

.new_sub_menu:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Favorites are anchors, not <input type=button>, but must match the rows.
   Selector is deliberately as specific as the legacy "ul#menu li ul.sub-menu li a"
   rule above, which would otherwise paint them white on grey. */
ul#menu li ul.sub-menu li a.new_sub_menu {
    background: transparent;
    box-sizing: border-box;
    color: #6C757D;
    display: block;
    padding: 0 16px;
    text-decoration: none;
}

ul#menu li ul.sub-menu li a.new_sub_menu:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: #6C757D;
}

#forgot_password {
    cursor: pointer;
    color: #21479c;
}

#pageBackEnd table.samenvatting tr {
    padding: 0;
    height: 16px;
}

#pageBackEnd table.samenvatting th {
    font-size: 12px;
}

#pageBackEnd table.samenvatting {
    border: 1px solid gray;
    line-height: 12px;
    font-size: 12px;
}

div[role=dialog] div#dialog form select,
div[role=dialog] div#dialog form input[type=text],
div[role=dialog] div#dialog form textarea {
    width: 100%;
}

div[role=dialog] div#dialog form textarea {
    height: 100px;
}

.price-evaluation-list ul:nth-last-child li {
  border-bottom: 0;
}

.price-evaluation-list {
  display:table;
  margin: 10px
}

.price-evaluation-list ul {
  display:table-row;
}

.price-evaluation-list ul:first-child li {
  font-weight:bold;
}

.price-evaluation-list ul > li {
  display:table-cell;
  padding:.5em 1em;
  border-bottom: 1px solid #D3D3D3;
}


.format_input:read-only {
    border: none;
    background: transparent;
    outline: none;
    box-shadow: none;
    cursor: default;
    padding-inline: 0;
}

.format_input:read-only {
    width: 100%;
}

.button-row {
  display: flex;
  gap: 10px;
  align-items: center;
}
/* .button_hoofdmenu is styled in docs/styles/src/_header.scss, which compiles
   into each tenant bundle and can therefore use their $primary. Nothing about
   it belongs here: this file loads after that bundle and would outrank the
   per-customer overrides in docs/layouts/<customer>/<layout>/_custom.scss. */

.button_hoofdmenu:focus-visible,
.new_sub_menu:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: -2px;
}
