/*
-------------------------------------------
GENERAL
-------------------------------------------
*/

a {
    text-decoration: none;
    -webkit-transition: all .2s ease-in-out;
	-moz-transition: all .2s ease-in-out;
	-o-transition: all .2s ease-in-out;
	-ms-transition: all .2s ease-in-out;
	transition: all .2s ease-in-out;
}

a:hover {
    text-decoration: underline;
}

table {
    text-align: left;
}

body {
    margin: 0px;
    font: 85% 'Open Sans', Arial, sans-serif;
}

th {
    text-align: left;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

h1, h2, h3, h4, h5, h6 {
	font-family: 'Open Sans', Arial, sans-serif;
	font-style: italic;
	font-weight: 300;
}

h1 {
	font-size: 2.4em;
}

/*
-------------------------------------------
BASIC
-------------------------------------------
*/

.b-vlist {
    list-style: none;
    margin: 0;
    padding: 0;
}


.b-field__label, .b-ifield__label {
    color: #686868;
    font-size: 13px;
    font-weight: bolder;
    margin-bottom: 5px;
}

.b-inline {
    display: inline;
}

.b-error {
    color: #f00;
}


/*
-------------------------------------------
DIALOGS
-------------------------------------------
*/
.b-dialog { font-size: 12px; }
.b-dialog__content {}



/*
-------------------------------------------
LAYOUT
-------------------------------------------
*/
.b-buttons {
    display: inline-block;
    margin: 0;
    padding: 0;
}

.b-hidden { display: none; }

.b-row {
    min-width: 960px; 
    position: relative;
}

.b-row__content:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
}

.b-row-gray { background-color: lightgray; }
.b-row__content { width: 960px; margin: 0 auto; position:relative; }

.b-3col { float: left; width: 33.333%; }
.b-3col__1 { margin-right: 20px; }
.b-3col__2 { margin: 0 10px; }
.b-3col__3 { margin-left: 20px; }

.b-3col__1-close { margin-right: 20px; }
.b-3col__2-close { margin: 0 10px; }
.b-3col__3-close { margin-left: 20px; }


.b-2col { float: left; width: 50%; }
.b-2col-large { width: 66.666%;}
.b-2col-small { width: 33.333%;}
.b-2col__1 { margin-right: 10px;}
.b-2col__2 { margin-left: 20px;}

.b-2col__1-close { margin-right: 2px;}
.b-2col__2-close { margin-left: 2px;}


.b-col-two { width: 475px; margin-right: 10px; }
.b-col-two:last-child { margin-right: 0;}

.b-content {
    margin: 60px auto auto;
    width: 960px;
}

.b-nooverflow { overflow: hidden; }

.b-cfoot { width: 100%; position: relative; }

.b-bottom { position: absolute; bottom: 0; }

.b-fluid-toplevel { min-width: 960px; }

.b-widecontainer {
    padding: 25px 0;
}

.b-right {
    text-align: right;
}

/*
-------------------------------------------
ADMIN MENU
-------------------------------------------
*/

.b-adminmenu {
    background-color: #3b3b3b;
}

/*
-------------------------------------------
LINKS
-------------------------------------------
*/
.b-link { color: #E23548; }
.b-link-green {
    color: #032C00;
    font-style: italic;
    font-weight: bolder;
}

.b-link-grey {
    color: #656565;
    font-weight: bolder;
}

.b-link-black {
    color: #000;
}

.b-separator {
    border-right: 2px solid #032C00;
    margin-right: 4px;
    padding-right: 10px;
}

.b-separator:last-child {
    border-right: 0;
}


/*
-------------------------------------------
BUTTONS
-------------------------------------------
*/
.b-btn, .b-linkbtn {
    border-radius: 4px;
    font-weight: bolder;
    border: 0;
    background-color: #333;
    color: #fff;
    padding: 6px 8px;
    display: inline-block;
    font-style: italic;
    white-space: nowrap;
}

.b-btn-logout {
    background-color: #f5e3e3;
    margin: 0 6px;
    color: #e12d48;
}

.b-btn-red { background-color: #dc253d; }
.b-btn-yellow { background-color: #fa8809; }
.b-btn-green { background-color: #3da533; }

.b-linkbtn {}

.b-btn-admin {
    height: 39px;
    background-color: #666666;
    color: #FFFFFF;
    margin: 2px 0;
    padding: 9px 0 0 8px;
    width: 300px;
    font-weight: 300;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    font-size: 1.2em;
	line-height: 1em;
}

.b-btn-admin:hover {
	color: #333;
    background-color: #fff;
}

.b-btn__name-admin {
    font-weight: 600;
}


.b-btn-admin-selected {
    background-color: #e12130;
}

.b-btn-admin-short {
    height: 28px;
    padding: 5px 0px 0px 8px;
}

/* A small button beside an admin menu button ("UNITS" beside ADMINISTRERA ANVÄNDARE,
   users-by-unit.md UB-02): the pair is as wide as one button. The row is a flex line and the
   big button takes what the small one leaves, so the pair is 300px in every font. With fixed
   widths the pair was 301px when Open Sans had not loaded, and UNITS fell onto its own line. */
.b-btn-admin-pair { display: flex; }
.b-btn-admin-with-side { flex: 1 1 auto; width: auto; min-width: 0; overflow: hidden; }
.b-btn-admin-side { flex: 0 0 auto; width: auto; font-size: 1em; padding: 11px 6px 0; margin-left: 4px; }


/*
-------------------------------------------
SEARCH
-------------------------------------------
*/
.b-usersearch {
    background-color: #e9e9e9;
    border-top: 10px solid #bababa;
    border-bottom: 10px solid #ccc;
}

.b-usersearch__buttoncol {
    position: relative;
}

.b-usersearch__search {
    width: 134px;
}

.b-usersearch__reset {
    width: 154px;
    position: absolute;
    right: 0;
}

.b-searchtoggle {
    position: absolute;
    right: 0;
    background-color: #ccc;
    display: block;
    min-width: 110px;
    white-space: nowrap;
    border-radius: 0 0 15px 15px;
	padding: 0px 15px 10px 15px;
}

.b-selection__label {
    font-weight: normal;
}

/*
-------------------------------------------
PAGINATION
-------------------------------------------
*/
.b-pagination {}

.b-hlist {
    list-style: none outside none;
    margin: 0;
    padding: 0;
}

.b-hlist__item {
    display: inline;
    float: left;
    margin-right: 10px;
}

.b-pagecount {
    text-align:right;
    display:inline;
    float: right;
}



/*
-------------------------------------------
LOGIN
-------------------------------------------
*/
.b-login { margin-top: 20px;}
.b-login-legacy { margin-top: 10px; }
.b-login-legacy summary { cursor: pointer; font-size: 0.9em; color: #555; margin: 6px 0; }
/* "Glömt lösenord?", "Skicka ny kod", "Avbryt": submit buttons that look like links. */
.b-login-links { font-size: 0.9em; margin: 6px 0; }
.b-login-links button.b-link { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-decoration: underline; }
.b-login-step { margin: 0 0 10px; }


/*
-------------------------------------------
EDIT TOOLBAR
-------------------------------------------
*/
.b-etoolbar { line-height: 2em; }
.b-etoolbar__h1 { margin-top: 0;}
.b-etoolbar__name { font-weight: bolder; }
.b-etoolbar__tools { font-size: 1.4em;}
.b-etoolbar__print { float: right; }

/*
-------------------------------------------
SUBFORMS
-------------------------------------------
*/
.b-subform {
    border-top: 3px solid #656565;
    margin-bottom: 35px;
    width: 100%;
}

.b-subform__hdr {
    width: 140px;
    padding: 8px 0;
}

.b-subform__input {
    background-color: #eee;
    border: 0 none;
    border-radius: 4px;
    //width: 100%;
    width: 300px;
	padding: 3px 5px;
}

.b-subform__row {
    border-bottom: 1px solid #d8d8d8;
}

/*
-------------------------------------------
FOOTER
-------------------------------------------
*/

.b-footer {
    margin: auto;
    text-align: center;
    width: 960px;
    border-top: 1px solid #bfbfbf;
    padding-top: 16px;
}

.b-frow {
    margin-top: 14px;
}

.b-ffield {
    display: inline;
    margin: 0 10px;
}

.b-ffield__label {
    font-style: italic;
    font-weight: bolder;
}

.b-ffield__value {
}

/*
-------------------------------------------
INPUTS
-------------------------------------------
*/
.b-textbox {
    vertical-align: top;
    border: 1px solid #000;
    border-radius: 6px;
    box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.25) inset;
    line-height: 16px;
    padding: 10px 8px 11px;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.b-textbox-green {
    color: #032C00;
    font-style: italic;
}

.b-textbox-short {
    padding-top: 5px;
    padding-bottom: 6px;
}

.b-textbox-narrow {
    width: 50px;
}

.b-input-date {
    width: 90px;
}

/*
-------------------------------------------
FIELDS
-------------------------------------------
*/
.b-field {
    display: block;
    margin-bottom: 25px;
}
.b-field-right {
    text-align: right;
}
.b-field__label {
    display: block;
}

.b-field__input {
    width: 100%;
}

.b-field__select {
    width: 100%;
    position: relative;
}

.b-button-red {
    color: #fff;
    background-color: #E45859;
    border: 1px solid #000;
    height: 43px;
}

.b-ifield {
    display: table;
    margin-bottom: 25px;
}

.b-ifield__item {
    display: table-cell;
    width: 100%;
    vertical-align: middle;
}

.b-ifield__label {
    vertical-align: middle;
    margin: 0 0 0 5px;
}


/*
-------------------------------------------
HEADER
-------------------------------------------
*/

.b-header {
    background-color: #f8f7f5;
    /* 160px, and taller rather than cut off when the identity row wraps (see .b-account). */
    min-height: 160px;
    margin: auto;
    overflow: hidden;
}

.b-logo {}

.b-logo-left {
    width: 94px;
    height: 94px;
    margin-top: 30px;
    float: left;
}

.b-logo-right {
    width: 181px;
    height: 37px;
    margin-top: 60px;
    float: right;
}

.b-logo__image {
    width: 100%;
}

.b-account {
    margin: 45px 0px 0px 20px;
    float: left;
    /* No wider than what is left beside the two logos (960 - 94 - 20 - 181): a long identity
       row ("DU ÄR INLOGGAD MED EN GEMENSAM INLOGGNING: … · <namn> föreslagen, väntar på
       Flowsys", replace-shared-login.md LR-10a) otherwise floats below the left logo and is cut
       off by the header's height (seen 2026-10-18). The text wraps inside the cell instead. */
    max-width: 665px;
}

.headerButton {
    background-color: #666666;
    padding: 4px 8px 0px 8px;
    height: 22px;
    float: left;
}


/*
-------------------------------------------
DATA TABLES
-------------------------------------------
*/

.b-list {
    width: 100%;
    margin-bottom: 40px;
    display: table;
    border-collapse: collapse;
}

.b-list__head { display: table-header-group; }
.b-list__body { display: table-row-group; }

.b-list__row {
    border-bottom: 1px solid #D6D5D3;
    display: table-row;
    list-style: none;
}

.b-list__rowodd {
    background-color: #F6F5F3;
}

.b-underline, .b-list__hrow {
    border-bottom: 3px solid #656565;
}

.b-list__hrow {
    color: #656565;
    font-style: italic;
    display: table-row;
}

.b-list__hlink, .b-title {
    color: #656565;
}


.b-list__td {
    padding: 6px;
    display: table-cell;
    vertical-align: middle;
}

.b-list__td-shrink {
    width: 1px;
}

.b-title {
    font-weight: normal;
}

.b-title__count {
    font-weight: bold;
}


.b-filelist {
    list-style: none;
    margin: 0 0 10px 0;
    padding: 0;
}

.b-filelist__item {
    margin: 0 0 5px 0;
    padding: 0 80px 0 0;
    position: relative;
    min-height: 32px;
}

.b-filelist__link {

}

.b-filelist__ctrl {
    float: right;
    min-height: 32px;
    position: absolute;
    right: 0;
    top: 0;
}
td.b-subform__field.b-subform__editable{
	width: 230px;
}

/*
-------------------------------------------
TOOLBARS
-------------------------------------------
*/
.b-toolbar {
    position: relative;
    background-color: #D2F4C4;
    margin-bottom: 20px;
    overflow: hidden;
    padding: 14px;
    font-weight: bold;
    font-style: italic;
    font-size: 14px;
}

.b-toolbar__left { float: left; }
.b-toolbar__right { float: right; }

.b-toolbar__right-pos { padding: 4px 0; }

.b-admsearch { display: inline; margin-left: 10px;  }
.b-admsearch__input { background-color: #B3D7A7; line-height: 14px; padding-top: 4px; padding-bottom: 5px; }
.b-admsearch__btn { height: 28px; padding: 4px 8px; }



@media print {
    .b-noprint {
        display: none;
    }
    .b-content {
        margin-top: 0;
    }
}
/* The version in the footer, next to the copyright (templates/base.tpl, httpdocs/version.php). */
.b-version { margin-left: 0.6em; opacity: 0.7; white-space: nowrap; }

/*
-------------------------------------------
PERMISSION SWITCHES (personal user page, User/personal.tpl, assets/js/user-permissions.js)
-------------------------------------------
*/
.b-perms__head { min-height: 1.5em; }
.b-perm {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}
.b-perm__label { min-width: 220px; font-weight: bold; }
.b-perm__text { color: #555; }
.b-switch {
    position: relative;
    flex: none;
    width: 48px;
    height: 26px;
    padding: 0;
    border: 0;
    border-radius: 13px;
    background: #b5b5b5;
    cursor: pointer;
    transition: background .15s;
}
.b-switch__knob {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .3);
    transition: left .15s;
}
.b-switch[aria-checked="true"] { background: #3c9a3c; }
.b-switch[aria-checked="true"] .b-switch__knob { left: 25px; }
/* Unknown (loading, uncertain, unreadable): neither on nor off. data-position, not
   aria-checked="mixed", which a switch does not have (a screen reader would say "off"). */
.b-switch[data-position="unknown"] { background: #e2e2e2; }
.b-switch[data-position="unknown"] .b-switch__knob { left: 14px; }
.b-switch:disabled { opacity: .5; cursor: default; }
.b-switch:focus-visible { outline: 2px solid #333; outline-offset: 2px; }

/* The user list's times (docs/specifications/pages/user-list.md UL-05): one line each. */
.b-list__td.created, .b-list__td.updated { white-space: nowrap; }

/* "Behörigheter": a row unfolded into the account as Microsoft has it (permissions-matrix.js). */
.b-unfold { border: 0; background: none; cursor: pointer; padding: 0 4px; font-size: 1em; }
.b-unfold:focus-visible { outline: 2px solid #333; outline-offset: 2px; }
.b-unfold__row > td { background: #f6f6f6; padding: 8px 12px 8px 28px; }
.b-unfold__facts th { text-align: left; font-weight: bold; padding: 2px 12px 2px 0; vertical-align: top; white-space: nowrap; }
.b-unfold__facts td { padding: 2px 0; }
.b-unfold__tools { margin: 6px 0; }
.b-unfold__json { font-family: monospace; font-size: 0.85em; white-space: pre; overflow: auto; max-height: 400px;
    background: #fff; border: 1px solid #ddd; padding: 8px; }
.b-unfold__perms { margin: 8px 0; }
.b-unfold__h { font-size: 1em; font-weight: bold; margin: 6px 0 2px; }

/* The notice about personal accounts for a shared login (base.tpl, replace-shared-login.md). */
.b-notice { border: 1px solid #c9a227; background: #fdf6dc; padding: 8px 12px; margin: 8px 0; }
.b-notice p { margin: 0; }

/* "Användare per fabriksenhet" (users-by-unit.md, assets/js/users-by-unit.js): a tbody per unit,
   the users in a row under the unit's row, as the unfolded row on Behörigheter. */
.b-list__row[hidden], .b-unit[hidden], .b-unfold__row[hidden] { display: none; }
.b-unit__row .name { cursor: pointer; }
.b-unit__row .users, .b-unit__row .latest { white-space: nowrap; }
.b-unit__table { width: 100%; margin: 0; }
.b-unit__table .b-list__hrow { border-bottom-width: 1px; font-size: 0.9em; }
.b-unit__table .b-list__row:last-child { border-bottom: 0; }
.b-unit-empty .b-list__row { color: #888; }
.b-by-unit__bar { margin: 0 0 14px; }
.b-by-unit__bar label { margin-right: 18px; }
.b-by-unit__bar .b-textbox { width: 260px; }
.b-by-unit__bar .js-fold { margin-left: 6px; }
.b-by-unit__shown { float: right; color: #656565; font-style: italic; }
.b-unit__new { text-align: right; }
.b-btn-plus { padding: 1px 8px 2px; font-style: normal; font-size: 1.1em; line-height: 1.2; }
.b-list__hlink.is-sorted:after { content: " \25B2"; font-size: 0.8em; }
.b-list__hlink.is-sorted-desc:after { content: " \25BC"; }

/* "Positioner" in the browser (assets/js/positions-list.js): the column chooser above the list. */
.b-poslist__bar { position: relative; margin: -10px 0 10px; text-align: right; }
.b-poslist__colbtn { font-style: normal; }
.b-poslist__chooser { position: absolute; right: 0; top: 100%; z-index: 10; margin-top: 4px; width: 460px;
    text-align: left; background: #fff; border: 1px solid #ccc; box-shadow: 0 2px 8px rgba(0,0,0,.15); padding: 10px 12px; }
.b-poslist__chooser[hidden] { display: none; }
.b-poslist__chooserhead { font-weight: bold; margin-bottom: 6px; }
.b-poslist__chooserhead .b-link { font-weight: normal; margin-left: 10px; }
.b-poslist__close { float: right; border: 0; background: none; cursor: pointer; font-size: 1.1em; }
.b-poslist__collist { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 16px; }
.b-poslist__collist li { padding: 2px 0; break-inside: avoid; }

/* The form's lists as fields with suggestions (positions-list.js, docs/tasks/1027-page-work/06). */
.b-suggest { position: relative; margin-bottom: 18px; }
.b-suggest__input { padding-right: 28px; }
.b-suggest__clear { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); border: 0; background: none;
    cursor: pointer; color: #656565; font-size: 1em; }
.ui-autocomplete { max-height: 260px; overflow-y: auto; overflow-x: hidden; font-size: 13px; }
.ui-menu.ui-autocomplete .ui-menu-item a { display: flex; justify-content: space-between; gap: 12px; }
/* Every suggestion the same size: jQuery UI's highlight adds a border and a -1px margin, which made
   the list jump under the mouse. The same transparent border on all, the highlight only a colour. */
.ui-menu.ui-autocomplete .ui-menu-item a { border: 1px solid transparent; margin: 0; }
.ui-menu.ui-autocomplete .ui-menu-item a.ui-state-focus,
.ui-menu.ui-autocomplete .ui-menu-item a.ui-state-active { margin: 0; border-color: transparent; background: #e8e8e8; color: #222; }
.b-suggest__input:placeholder-shown + .b-suggest__clear { display: none; }
.b-suggest__count { color: #656565; }
.ui-menu.ui-autocomplete .b-suggest__none a { color: #aaa; }

/* "Ditt urval": an ✕ after each filter removes it (positions-list.js, PL-34). */
.b-selection__item { white-space: nowrap; }
.b-selection__remove { border: 0; background: none; cursor: pointer; padding: 0 2px; color: #656565; font-size: 0.9em; }
.b-selection__remove:hover { color: #dc253d; }
.b-selection__remove:focus-visible { outline: 2px solid #333; outline-offset: 1px; }

/* The fields' choices as pills under the field (positions-list.js), at most three. */
.b-pills { list-style: none; margin: -12px 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.b-pills:empty { display: none; }
.b-pill { display: inline-flex; align-items: center; gap: 2px; background: #e8e8e8; border: 1px solid #ccc; border-radius: 12px;
    padding: 1px 4px 1px 10px; font-size: 12px; max-width: 100%; }
.b-pill__remove { border: 0; background: none; cursor: pointer; color: #656565; padding: 0 4px; font-size: 1em; }
.b-pill__remove:hover { color: #dc253d; }
.b-pill__remove:focus-visible { outline: 2px solid #333; outline-offset: 1px; }
.b-suggest__input:disabled { background: #f0f0f0; }

/* Axel Ø with =, <, ≤, >, ≥, mellan (positions-list.js, docs/tasks/1027-page-work/07). */
.b-field-cmp > .b-field__label { display: inline-block; margin-right: 6px; }
.b-cmp { font-size: 12px; padding: 0 2px; margin-bottom: 2px; vertical-align: baseline; }
.b-cmp__box { margin-bottom: 14px; }
.b-cmp__box .b-textbox { width: 90px; }
.b-cmp__unit { color: #656565; }
.b-cmp__hint { color: #656565; font-size: 12px; margin-top: 3px; min-height: 1em; }
.b-poslist__per { margin-right: 18px; font-size: 13px; font-weight: normal; }
.b-poslist__per select { margin-left: 4px; font-size: 13px; font-style: normal; }
.b-poslist__csvbtn { font-style: normal; margin-left: 6px; }

/* Kolumner and Ladda ner CSV as in the sketch for #6: light, a thin border, an icon before the text. */
.b-poslist__btn { background: #f6f6f6; color: #333; border: 1px solid #c8c8c8; border-radius: 4px; font-style: normal;
    font-weight: normal; padding: 5px 12px; }
.b-poslist__btn:hover, .b-poslist__btn[aria-expanded="true"] { background: #e8e8e8; border-color: #999; }
.b-poslist__btn .fa { margin-right: 5px; color: #555; }
.b-searchtoggle .fa { font-size: 0.8em; margin-right: 3px; }

/* Filter: fields for chosen columns on rows under Fritext (positions-list.js, docs/tasks/1027-page-work/09). */
.b-extra-filters { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 30px; margin-top: 34px; margin-bottom: 6px; }
.b-extra-filters:empty { display: none; }
.b-extra { position: relative; margin-bottom: 0; }
.b-extra__remove { position: absolute; right: 0; top: 0; border: 0; background: none; cursor: pointer; color: #656565; }
.b-extra__remove:hover { color: #dc253d; }
.b-extra__hidden { position: absolute; right: 22px; top: 1px; font-size: 11px; color: #a06000; font-style: italic; }
.b-extra__hidden[hidden] { display: none; }
.b-poslist__filters { width: 300px; }
.b-poslist__addlist { columns: 1; }
.b-poslist__add { border: 0; background: none; cursor: pointer; padding: 2px 0; font: inherit; text-align: left; }
.b-poslist__none { color: #656565; font-style: italic; }
.b-poslist__more { margin-top: 8px; border-top: 1px solid #e2e2e2; padding-top: 6px; }
.js-filters-clear[hidden] { display: none; }

/* Ladda ner CSV: a menu with the table's columns or all of them (positions-list.js, issue #24). */
.b-poslist__csvmenu { width: 260px; }
.b-poslist__csvmenu .b-poslist__collist { columns: 1; }
.b-poslist__csvcount { margin-top: 8px; border-top: 1px solid #e2e2e2; padding-top: 6px; color: #656565; font-size: 12px; }
.b-poslist__btn .fa-caret-down { margin: 0 0 0 5px; }
/* "inte tomt" (docs/tasks/1027-page-work/10): first among the suggestions, and a pill of its own. */
.ui-menu.ui-autocomplete .b-suggest__special a { font-style: italic; border-bottom-color: #e2e2e2; }
.b-pill-flag { background: #fff; border-style: dashed; border-color: #999; }
