/*
    TLP Framework styles.
*/

/*@import url(/static/admin/css/fonts.css?b4ffcf5a4620);*/

/* VARIABLE DEFINITIONS */
:root {
  --primary: #79aec8;
  --secondary: #417690;
  --accent: #1B4253;
  --primary-fg: #fff;

  --body-fg: #333;
  --body-bg: #fff;
  --body-quiet-color: #666;
  --body-quiet-darker-color: #999;
  --body-loud-color: #000;
  --body-module-bg: #D4D4D4;

  --header-color: #fff;
  --header-branding-color: var(--accent);
  --header-bg: var(--secondary);
  --header-background-color: #eef1f3;
  --header-link-color: black;
  --header-bottom-bar: #1b4253;
  --header-action-link-color: #cdd6de;
  --header-action-link-visited: #daebf3;
  --header-action-link-focused: #afc8d9;

  --compact-user-tools-background-color: #fff;

  --breadcrumbs-fg: var(--body-bg);
  --breadcrumbs-link-fg: var(--body-bg);
  --breadcrumbs-bg: var(--primary);

  --link-fg: #333333;
  --link-hover-color: #036;
  --menu-link-hover-color: #036;
  --link-selected-fg: #5b80b2;

  --hairline-color: #eee;
  --hairline-darker-color: #ddd;
  --hairline-button-darker-color: #aaa;
  --border-color: #ccc;

  --error-fg: #fff;
  --error-bg: red;

  --message-success-bg: #F0F0F0;
  --message-warning-bg: #ffc;
  --message-error-bg: #ffefef;

  --darkened-bg: #eee; /* A bit darker than --body-bg */
  --selected-bg: white; /* E.g. selected table cells */
  --selected-row: #ffc;
  --alt-bg: #f6f6f6;
  --heading-bg: #e1e1e1; /* th backgrounds */

  --form-button-bg: white;
  --form-button-fg: black;
  --form-button-border: #bbb;

  --button-fg: #fff;
  --button-bg: var(--primary);
  --button-hover-bg: #609ab6;
  --default-button-bg: var(--secondary);
  --default-button-hover-bg: #205067;
  --close-button-bg: #bbb; /* Previously #888, contrast 1.92 */
  --close-button-hover-bg: #747474;
  --delete-button-bg: #ba2121;
  --delete-button-hover-bg: #a41515;
  --calendar-buttons-bg: #C9DBED;
  --calendar-buttons-fg: #fff;
  --calendar-links-fg: #444;
  --calendar-today-fg: #ffc;

  --object-tools-fg: var(--button-fg);
  --object-tools-bg: #999;
  --object-tools-hover-bg: #5b80b2;

  /* barvy pro jednotlive typy tlacitek */
  --btn_primary: #1f497d;
  --btn_primary_filter: invert(27%) sepia(7%) saturate(7270%) hue-rotate(178deg) brightness(88%) contrast(92%);
  --btn_l_primary_hover: #000000;
  --btn_l_primary_hover_filter: invert(0%) sepia(0%) saturate(7481%) hue-rotate(322deg) brightness(88%) contrast(102%);
  --btn_i_primary_hover: #000000;
  --btn_i_primary_hover_filter: invert(0%) sepia(0%) saturate(7481%) hue-rotate(322deg) brightness(88%) contrast(102%);

  --btn_secondary: #666;
  --btn_secondary_filter: invert(40%) sepia(11%) saturate(0%) hue-rotate(232deg) brightness(95%) contrast(92%);
  --btn_l_secondary_hover: #a3a3a3;
  --btn_l_secondary_hover_filter: invert(70%) sepia(0%) saturate(582%) hue-rotate(177deg) brightness(96%) contrast(82%);
  --btn_i_secondary_hover: #3d3d3d;
  --btn_i_secondary_hover_filter: invert(23%) sepia(0%) saturate(44%) hue-rotate(235deg) brightness(91%) contrast(89%);

  --btn_danger: #bd0000;
  --btn_danger_filter: invert(14%) sepia(78%) saturate(4749%) hue-rotate(355deg) brightness(78%) contrast(118%);
  --btn_l_danger_hover: #f8d1d3;
  --btn_l_danger_hover_filter: invert(74%) sepia(37%) saturate(156%) hue-rotate(308deg) brightness(109%) contrast(95%);
  --btn_i_danger_hover: #970000;
  --btn_i_danger_hover_filter: invert(7%) sepia(76%) saturate(6597%) hue-rotate(8deg) brightness(104%) contrast(114%);

  --btn_warning: #cf9200;
  --btn_warning_filter: invert(68%) sepia(11%) saturate(6699%) hue-rotate(5deg) brightness(87%) contrast(101%);
  --btn_l_warning_hover: #fff4da;
  --btn_l_warning_hover_filter: invert(95%) sepia(10%) saturate(1162%) hue-rotate(311deg) brightness(104%) contrast(108%);
  --btn_i_warning_hover: var(--btn_danger); /* hover na warning ikone chceme jako danger bez hoveru */
  --btn_i_warning_hover_filter: var(--btn_danger_filter);

  --btn_success: #5b9f28; /* COLOR_ZELENA_2 */
  --btn_success_filter: invert(50%) sepia(77%) saturate(428%) hue-rotate(51deg) brightness(92%) contrast(88%); /* SVG_FILTERS[COLOR_ZELENA_2] */

  --btn_info: #309bbf;
  --btn_info_filter: invert(47%) sepia(57%) saturate(581%) hue-rotate(149deg) brightness(101%) contrast(83%);
  --btn_l_info_hover: #e3f3f8;
  --btn_l_info_hover_filter: invert(89%) sepia(28%) saturate(92%) hue-rotate(157deg) brightness(102%) contrast(95%);
  --btn_i_info_hover: #1d5d73;
  --btn_i_info_hover_filter: invert(28%) sepia(77%) saturate(492%) hue-rotate(149deg) brightness(88%) contrast(85%);

  --row1-color: #EDF3FE;
  --row2-color: white;
  --result-header-bg: #FFFFCC; /* pri zmene zmenit tez tlp.common.utils */
  --result-header-1-bg: #e5f5d7; /* pri zmene zmenit tez tlp.common.utils */
  --result-header-2-bg: #FFFFCC; /* pri zmene zmenit tez tlp.common.utils */
  --result-header-3-bg: #fdeada; /* pri zmene zmenit tez tlp.common.utils */
  --total-results-border: #EEEEEE;
  --row-selected: #FFFFCC;

  --module-caption-title: #666666;
  --index-caption-title: #eee;
  --nested-inline-caption-title: #7CA0C7;
  --example-bg: #efefef;

  --actions-selected-bg: #fffccf;
  --actions-selected-border-top: #fffee8;
  --actions-selected-border-bottom: #edecd6;

  --index-selected-icon: lightblue;
  --index-header-row: #ffc;
  --index-errors: #d7d7d7;
  --index-row-warning-bg: #f66e74;

  --active-widget-link: #333;
  --active-widget-background: #ffe9e9;
  --active-widget-border: #bebebe;

  --tool-action-link-color: #309bbf;

  --add-link-color: #1b8618;
}

@view-transition {
  navigation: auto;
}

html::view-transition-new(root) {
  animation-duration: 0.5s;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
    font-size: 12px;
    font-family: Arial,sans-serif;
    color: var(--body-fg);
    background: var(--body-bg);
}

/* LINKS */

a:link, a:visited {
    color: var(--link-fg);
    text-decoration: none;
}

a:focus, a:hover {
    color: var(--link-hover-color);
}

#middle-bar #menu a, #middle-bar #menu a:hover {
    color: var(--menu-link-hover-color);
}

#changelist a:focus,
#changelist a:hover {
    text-decoration: underline;
}

a img {
    border: none;
}

a.section:link, a.section:visited {
    color: var(--header-link-color);
    text-decoration: none;
}

/* GLOBAL DEFAULTS */

p, ol, ul, dl {
    margin: .2em 0 .8em 0;
}

p {
    padding: 0;
    line-height: 140%;
}

h1,h2,h3,h4,h5 {
    font-weight: bold;
}

h1 {
    font-size: 18px;
    color: var(--body-quiet-color);
    padding: 0 6px 0 0;
    margin: 0 0 .2em 0;
}

h2 {
    font-size: 16px;
    margin: 1em 0 .5em 0;
}

h2.subhead {
    font-weight: normal;
    margin-top: 0;
}

h3 {
    font-size: 14px;
    margin: .8em 0 .3em 0;
    color: var(--body-quiet-color);
    font-weight: bold;
}

h4 {
    font-size: 12px;
    margin: 1em 0 .8em 0;
    padding-bottom: 3px;
}

h5 {
    font-size: 10px;
    margin: 1.5em 0 .5em 0;
    color: var(--body-quiet-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

ul li {
    list-style-type: square;
    padding: 1px 0;
}
ul.plainlist {
    margin-left: 0 !important;
}

ul.plainlist li {
    list-style-type: none;
}

li ul {
    margin-bottom: 0;
}

li, dt, dd {
    font-size: 11px;
    line-height: 14px;
}

dt {
    font-weight: bold;
    margin-top: 4px;
}

dd {
    margin-left: 0;
}

form {
    margin: 0;
    padding: 0;
}

fieldset {
    margin: 0;
    padding: 0;
}

blockquote {
    font-size: 11px;
    color: #777;
    margin-left: 2px;
    padding-left: 10px;
    border-left: 5px solid var(--hairline-darker-color);
}

code, pre {
    font-family: Monaco, "Courier New", Courier, monospace;
    color: var(--body-quiet-color);
    background: inherit;
    font-size: 11px;
}

pre.literal-block {
    margin: 10px;
    background: var(--darkened-bg);
    padding: 6px 8px;
}

code strong {
    color: #930;
}

hr {
    clear: both;
    color: var(--hairline-color);
    background-color: var(--hairline-color);
    height: 1px;
    border: none;
    margin: 0;
    padding: 0;
    font-size: 1px;
    line-height: 1px;
    width: 100%;
}

/* TEXT STYLES & MODIFIERS */

.small {
    font-size: 11px;
}

.tiny {
    font-size: 10px;
}

p.tiny {
    margin-top: -2px;
}

.mini {
    font-size: 9px;
}

p.mini {
    margin-top: -3px;
}

.help, p.help, form p.help, div.help, form div.help, div.help li {
    font-size: 10px !important;
    color: var(--body-quiet-darker-color);
}

div.help ul {
     margin-bottom: 0;
}

img.help-tooltip {
    cursor: help;
    filter: var(--btn_primary_filter);
}

p img, h1 img, h2 img, h3 img, h4 img, td img {
    vertical-align: middle;
}

.quiet, a.quiet:link, a.quiet:visited {
    color: var(--body-quiet-darker-color) !important;
    font-weight: normal !important;
}

.quiet strong {
    font-weight: bold !important;
}

.float-right {
    float: right;
}

.float-left {
    float: left;
}

.clear {
    clear: both;
}

.align-left {
    text-align: left;
}

.align-center {
    text-align: center;
}

.align-right {
    text-align: right;
}

.example {
    margin: 10px 0;
    padding: 5px 10px;
    background: var(--example-bg);
}

.nowrap {
    white-space: nowrap;
}

.wrap_enabled {
    white-space: normal !important;
}

.hidden {
    display: none;
}

/* DATE & TIME */

.responsive_date_time {
    display: inline-flex;
    flex-wrap: wrap;
}

.responsive_date_time .responsive_date {
    white-space: nowrap;
    margin-right: 5px;
}

.responsive_date_time .responsive_time {
    white-space: nowrap;
}

/* TABLES */

table {
    border-collapse: collapse;
    border-color: var(--border-color);
}

th,
td {
    font-size: 12px;
    line-height: 14px;
    border-bottom: 1px solid var(--hairline-color);
    vertical-align: top;
    padding: 5px;
}

th.min_width_100,
th.min_width_100.display_link,
td.min_width_100 {
    min-width: 100px;
}

th.min_width_200,
th.min_width_200.display_link,
td.min_width_200 {
    min-width: 200px;
}

th.min_width_300,
th.min_width_300.display_link,
td.min_width_300 {
    min-width: 300px;
}

th.min_width_400,
th.min_width_400.display_link,
td.min_width_400 {
    min-width: 400px;
}

th.min_width_500,
th.min_width_500.display_link,
td.min_width_500 {
    min-width: 500px;
}

th.min_width_600,
th.min_width_600.display_link,
td.min_width_600 {
    min-width: 600px;
}

th.min_width_700,
th.min_width_700.display_link,
td.min_width_700 {
    min-width: 700px;
}

th.min_width_800,
th.min_width_800.display_link,
td.min_width_800 {
    min-width: 800px;
}

th.min_width_900,
th.min_width_900.display_link,
td.min_width_900 {
    min-width: 900px;
}

th {
    text-align: left;
    font-size: 12px;
    font-weight: bold;
}

thead th,
tr.heading th,
tfoot td {
    color: var(--body-quiet-color);
    padding: 2px 5px;
    font-size: 11px;
    background: var(--heading-bg) url(/static/admin/img/nav-bg.gif?b4ffcf5a4620) top left repeat-x;
    border-left: 1px solid var(--hairline-darker-color);
    border-bottom: 1px solid var(--hairline-darker-color);
}

tfoot td {
    border-bottom: none;
    border-top: 1px solid var(--hairline-darker-color);
}

thead th:first-child,
tr.heading th:first-child,
tfoot td:first-child {
    border-left: none !important;
}

thead th.optional {
    font-weight: normal !important;
}

fieldset table {
    border-right: 1px solid var(--hairline-color);
}

tr.row-label td {
    font-size: 9px;
    padding-top: 2px;
    padding-bottom: 0;
    border-bottom: none;
    color: var(--body-quiet-color);
    margin-top: -1px;
}

tr.alt {
    background: var(--alt-bg);
}

.row1 {
    background: var(--row1-color); /* pri zmene zmenit tez tlp.common.utils */
    /* pro prezentaci: */
    /* background: #EDF3FE; */
}

.row2 {
    background: var(--row2-color); /* pri zmene zmenit tez tlp.common.utils */
}
.result-header {
    /*background: url("/static/admin/img/admin/nav-bg.gif?b4ffcf5a4620") repeat-x scroll left top #E1E1E1;*/
    background: var(--result-header-bg); /* pri zmene zmenit tez tlp.common.utils */
    padding-top: 10px;
    padding-bottom: 10px;
    font-weight: bold;
    font-size: 13px;
}
.result-header-1 {
    background: var(--result-header-1-bg);
    padding-top: 20px;
    padding-bottom: 10px;
    font-weight: bold;
    font-size: 13px;
}
.result-header-2 {
    /*background: url("/static/admin/img/admin/nav-bg.gif?b4ffcf5a4620") repeat-x scroll left top #E1E1E1;*/
    background: var(--result-header-2-bg); /* pri zmene zmenit tez tlp.common.utils */
    padding-top: 10px;
    padding-bottom: 10px;
    font-size: 13px;
    font-weight: bold;
}
.result-header-3 {
    background: var(--result-header-3-bg); /* pri zmene zmenit tez tlp.common.utils */
    padding-top: 10px;
    padding-bottom: 10px;
    font-size: 13px;
    font-weight: bold;
}
.first-row .result-header-1 {
    padding-top: 10px;
}
.section_table {
    width: 100%;
}
table.html_table {
    border-right: 1px solid var(--hairline-darker-color);
}
thead th.html_table_heading {
    padding-left: 1.2em;
    line-height: 20pt;
    background: var(--header-background-color);
    font-size: 12px;
    color: var(--link-fg);
    border-left: 1px solid var(--hairline-darker-color) !important;
}
thead th.html_table_heading:first-child {
    border-left: 1px solid var(--hairline-darker-color) !important;
}
td.html_table_row {
    padding-left: 1.2em;
    border-bottom: 1px solid var(--hairline-darker-color);
    border-left: 1px solid var(--hairline-darker-color);
}
td.html_table_header {
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 1em;
    font-size: 13px;
    font-weight: normal;
    line-height: 8px;
    border-bottom: 1px solid var(--hairline-darker-color);
    border-left: 1px solid var(--hairline-darker-color);
}
td.first_column {
    padding-left: 1.2em;
}
.submit_table tr td {
    border: none;
    padding-right: 10px;
}
th.display_link {
    min-width: 14em;
}
th.display_link.display_link_width_small {
    min-width: 7em;
}
th.display_link.display_link_width_medium {
    min-width: 10em;
}
/* SORTABLE TABLES */

thead th {
    padding: 2px 5px;
    line-height: normal;
}

thead th a:link, thead th a:visited, tr.heading th a:link, tr.heading th a:visited {
    color: var(--link-fg);
    display: block;
}

thead th.sorted {
    /* toto nechceme - je to rusive */
    /*background: #c5c5c5 url(/static/admin/img/nav-bg-selected.gif?b4ffcf5a4620) top left repeat-x; */
}

table thead th .text span {
    padding: 2px 5px;
    display:block;
}

table thead th .text a {
    display: block;
    cursor: pointer;
    padding: 2px 5px;
}

table thead th.sortable .text a:focus, table thead th.sortable .text a:hover {
    background: var(--selected-bg) url(/static/admin/img/nav-bg-reverse.gif?b4ffcf5a4620) 0 -5px repeat-x;
}

thead th.sorted a.sortremove {
    visibility: hidden;
}

table thead th.sorted:hover a.sortremove {
    visibility: visible;
}

table thead th.sorted .sortoptions {
    display: block;
    padding: 2px 5px 1px 5px;
    float: right;
    text-align: right;
}

table thead th.sorted .sortpriority {
    font-size: .8em;
    min-width: 12px;
    text-align: center;
    vertical-align: top;
}

table thead th.sorted .sortoptions a {
    width: 14px;
    height: 12px;
    display: inline-block;
    background: url(/static/admin/img/sorting-icons.svg?b4ffcf5a4620) 0 0 no-repeat;
    background-size: 14px auto;
}

table thead th.sorted .sortoptions a.sortremove {
    background-position: 0 0;
}

table thead th.sorted .sortoptions a.sortremove:focus,
table thead th.sorted .sortoptions a.sortremove:hover {
    background-position: 0 -14px;
}

table thead th.sorted .sortoptions a.ascending {
    background-position: 0 -28px;
}

table thead th.sorted .sortoptions a.ascending:focus,
table thead th.sorted .sortoptions a.ascending:hover {
    background-position: 0 -42px;
}

table thead th.sorted .sortoptions a.descending {
    top: 1px;
    background-position: 0 -56px;
}

table thead th.sorted .sortoptions a.descending:focus,
table thead th.sorted .sortoptions a.descending:hover {
    background-position: 0 -70px;
}

/* u viceurovnoveho result headeru je heading v tbody, nikoli v thead */
table tbody tr.heading th .text a,
table tbody tr.heading th .text span {
    padding: 2px 5px;
}

table thead th.sorted .text,
table tbody tr.heading th.sorted .text {
    /* odsazeni nutne kvuli float: right .sortoptions, tak aby byly ve stejne urovni jako .text */
    margin-right: 60px;
}

/* ORDERABLE TABLES */

table.orderable tbody tr td:focus,
table.orderable tbody tr td:hover {
    cursor: move;
}

table.orderable tbody tr td:first-child {
    padding-left: 14px;
    background-image: url(/static/admin/img/nav-bg-grabber.gif?b4ffcf5a4620);
    background-repeat: repeat-y;
}

table.orderable-initalized .order-cell, body>tr>td.order-cell {
    display: none;
}

/* FORM DEFAULTS */

input, textarea, select, .form-row p {
    margin: 2px 0;
    padding: 2px 3px;
    vertical-align: middle;
    font-weight: normal;
    font-size: 11px;
}

textarea {
    vertical-align: top !important;
}

input[type=text], input[type=password], textarea, select, .vTextField {
    border: 1px solid var(--border-color);
}

/* FORM BUTTONS */

.button, input[type=submit], input[type=button], .submit-row input {
    background: var(--form-button-bg) url(/static/admin/img/nav-bg.gif?b4ffcf5a4620) bottom repeat-x;
    padding: 3px 5px;
    color: var(--form-button-fg);
    border: 1px solid var(--form-button-border);
    border-color: var(--hairline-darker-color) var(--hairline-button-darker-color) var(--hairline-button-darker-color) var(--hairline-darker-color);
}

.button:active, input[type=submit]:active, input[type=button]:active {
    background-image: url(/static/admin/img/nav-bg-reverse.gif?b4ffcf5a4620);
    background-position: top;
}

.button[disabled], input[type=submit][disabled], input[type=button][disabled] {
       background-image: url(/static/admin/img/nav-bg.gif?b4ffcf5a4620);
       background-position: bottom;
       opacity: 0.4;
}

.button.default, input[type=submit].default, .submit-row input.default {
    font-weight: bold;
    color: white;
    /*float: right;*/
}

.button.default:active, input[type=submit].default:active {
    background-image: url(/static/admin/img/default-bg-reverse.gif?b4ffcf5a4620);
    background-position: top;
}

.button[disabled].default, input[type=submit][disabled].default, input[type=button][disabled].default {
       background-image: url(/static/admin/img/default-bg.gif?b4ffcf5a4620);
       background-position: bottom;
       opacity: 0.4;
}

.submit-row a {
    font-weight:bold;
}


/* MODULES */

.module {
    background:none repeat scroll 0 0 var(--body-bg);
    border:1px solid var(--body-module-bg);
    margin-bottom:5px;
}

form .module {
    border-radius:5px 5px 5px 5px;
}

.module p, .module ul, .module h3, .module h4, .module dl, .module pre {
    padding-left: 10px;
    padding-right: 10px;
}

.module blockquote {
    margin-left: 12px;
}

.module ul, .module ol {
    margin-left: 1.5em;
}

.module h3 {
    margin-top: .6em;
}

.module h2, .module caption, .inline-group h2 {
    margin: 0;
    padding: 2px 5px 3px 5px;
    font-size: 11px;
    text-align: left;
    color: var(--module-caption-title);
}
.nestedinline.module h2, .nestedinline.module caption, .nestedinline.inline-group h2 {
    background: var(--nested-inline-caption-title) url(/static/admin/img/admin/default-bg-nestedinline.gif?b4ffcf5a4620) top left repeat-x;
}
.nestedinlinefirst.module h2, .nestedinlinefirst.module caption, .nestedinlinefirst.inline-group h2 {
    background: var(--nested-inline-caption-title) url(/static/admin/img/default-bg-reverse.gif?b4ffcf5a4620) top left repeat-x;
}

.module table {
    border-collapse: collapse;
}
caption.index-caption {
    background: var(--index-caption-title) url(/static/admin/img/nav-bg.gif?b4ffcf5a4620) bottom left repeat-x;
}

/* MESSAGES & ERRORS */
ul.messagelist,
ul.messagelist li,
ul.messagelist li span,
ul.errorlist li,
.errornote,
.errorhint {
    font-size: 12px;
    line-height: 17px;
}

ul.messagelist {
    margin: 0;
    padding: 0 0 5px 0;
}

ul.messagelist li,
ul.errorlist li,
.errornote,
.errorhint {
    display: flex;
    align-items: center;
    min-height: 24px;
    margin: 0 0 3px 0;
    box-sizing: border-box;
}

ul.messagelist li {
    padding: 0 7px 0 30px;
    border: 1px solid var(--hairline-darker-color);
    /* 20px na 20px jsou rozmery a.messages-deletelink */
    background: var(--message-success-bg) url(/static/admin/img/icon_success_colored.svg?b4ffcf5a4620) 5px center / 20px 20px no-repeat;
    color: var(--body-quiet-color);
}

ul.messagelist.warnings li {
    background-color: var(--message-warning-bg);
    background-image: url(/static/admin/img/alert-circle-colored.svg?b4ffcf5a4620);
    list-style-type: none;
}

ul.messagelist li span {
    /* umozni zabrat dostupny prostor v li,
     * a.messages-deletelink tak bude vizualne pozicovan uplne vpravo */
    flex-grow: 1;
    /* umozni zalomeni na vice radku */
    flex-shrink: 1;
}

ul.messagelist li p {
    margin: auto;
}

ul.messagelist a {
    text-decoration: underline;
}

ul.messagelist li.warning{
    background-image: url(/static/admin/img/alert-circle-colored.svg?b4ffcf5a4620);
}

ul.messagelist li.error{
    background-image: url(/static/admin/img/icon_error_colored.svg?b4ffcf5a4620);
}

.errornote {
    padding: 0 7px 0 30px;
    border: 1px solid var(--btn_danger);
    background: var(--message-warning-bg) url(/static/admin/img/icon_error_colored.svg?b4ffcf5a4620) 5px center / 20px 20px no-repeat;
    color: var(--btn_danger);
}

.errorhint {
    padding: 0 7px;
    border: 1px solid var(--body-module-bg);
    background-color: var(--row1-color);
}

ul.errorlist {
    margin: 0 !important;
    padding: 0 !important;
}

ul.errorlist li {
    padding: 0 7px;
    background-color: var(--btn_danger);
    color: var(--error-fg);
}

ul.errorlist li a {
    color: var(--error-fg);
    text-decoration: underline;
}

td ul.errorlist {
    margin: 0 !important;
    padding: 0 !important;
}

td ul.errorlist li {
    margin: 0 !important;
}

.errors {
    background: var(--message-warning-bg);
}

.errors input, .errors select, .errors textarea,
td ul.errorlist + input, td ul.errorlist + select, td ul.errorlist + textarea {
    border: 1px solid red;
}

div.system-message {
    background: var(--message-warning-bg);
    margin: 10px;
    padding: 6px 8px;
    font-size: .8em;
}

div.system-message p.system-message-title {
    padding: 4px 5px 4px 25px;
    margin: 0;
    color: red;
    background: var(--message-warning-bg) url(/static/admin/img/icon_error_colored.svg?b4ffcf5a4620) 5px center no-repeat;
}

.description {
    font-size: 12px;
    padding-left: 12px;
}

.description-inner {
    font-size: 12px;
    padding: 5px 0 0 8px;
}

table.inner td {
    border: none;
}

.messages-deletelink {
    flex-shrink: 0; /* zabrani zmensovani ikony ve flex boxu */
    order: 9999; /* zajisti, ze ikona bude vizualne v li jako posledni */
    width: 20px;
    height: 20px;
    margin-left: 10px; /* minimalni odstup mezi textem spanu a ikonou */
    background: transparent url(/static/admin/img/close-circle.svg?b4ffcf5a4620) no-repeat;
    filter: var(--btn_primary_filter);
    border: none;
    outline: 0; /* Remove dotted border around link */
    cursor: pointer;
}

.messages-deletelink:focus,
.messages-deletelink:hover {
    filter: var(--btn_i_primary_hover_filter);
}

/* BREADCRUMBS */

div.breadcrumbs {
    line-height: 22px;
    font-size: 11px;
    padding: 0 8px 0 8px;
    color: var(--breadcrumbs-fg);
}
@media print {
    div.breadcrumbs { display: none;}
}
div.breadcrumbs a:link, div.breadcrumbs a:visited {
    text-decoration: underline;
    color: var(--primary-fg);
}
div.breadcrumbs a:focus,
div.breadcrumbs a:hover {
    text-decoration: none;
}

/* BUTTONS */

.btn_l,
a.btn_l,
.btn_i,
a.btn_i,
.btn_il,
.btn_li {
    margin: 0 !important;
}

/* ICON-LABEL BUTTONS - wrapper .btn_il
   LABEL-ICON BUTTONS - wrapper .btn_li */

.btn_il,
.btn_li {
    display: flex !important;
    align-items: center;
}

/* ICON-LABEL BUTTONS - label cast .btn_il_l
   LABEL-ICON BUTTONS - label cast .btn_li_l */

.btn_il .btn_il_l {
    margin-left: 2px;
}

.btn_li .btn_li_l {
    margin-right: 2px;
}

/* ICON BUTTONS - .btn_i,
   ICON-LABEL BUTTONS - icon cast .btn_il_i
   LABEL-ICON BUTTONS - icon cast .btn_li_i */

.btn_i,
a.btn_i,
.btn_i.btn_has_background_image,
a.btn_i.btn_has_background_image,
.btn_i img,
a.btn_i img,
img.btn_i,
.btn_il img.btn_il_i,
.btn_li img.btn_li_i {
    width: 20px !important;
    height: 20px !important;
}

.btn_i.btn_has_background_image,
a.btn_i.btn_has_background_image {
    background-position: 0 0 !important;
    background-repeat: no-repeat !important;
}

.btn_i.btn_primary.btn_has_background_image,
a.btn_i.btn_primary.btn_has_background_image,
.btn_i.btn_primary img,
a.btn_i.btn_primary img,
img.btn_i.btn_primary,
.btn_il img.btn_il_i.btn_primary,
.btn_il.btn_primary img.btn_il_i:not(.btn_secondary, .btn_danger, .btn_warning),
.btn_li img.btn_li_i.btn_primary,
.btn_li.btn_primary img.btn_li_i:not(.btn_secondary, .btn_danger, .btn_warning) {
    filter: var(--btn_primary_filter) !important;
}

.btn_i.btn_primary.btn_has_background_image:hover,
a.btn_i.btn_primary.btn_has_background_image:hover,
.btn_i.btn_primary img:hover,
a.btn_i.btn_primary img:hover,
img.btn_i.btn_primary:hover {
    filter: var(--btn_i_primary_hover_filter) !important;
}

.btn_i.btn_secondary.btn_has_background_image,
a.btn_i.btn_secondary.btn_has_background_image,
.btn_i.btn_secondary img,
a.btn_i.btn_secondary img,
img.btn_i.btn_secondary,
.btn_il img.btn_il_i.btn_secondary,
.btn_il.btn_secondary img.btn_il_i:not(.btn_primary, .btn_danger, .btn_warning),
.btn_li img.btn_li_i.btn_secondary,
.btn_li.btn_secondary img.btn_li_i:not(.btn_primary, .btn_danger, .btn_warning) {
    filter: var(--btn_secondary_filter) !important;
}

.btn_i.btn_secondary.btn_has_background_image:hover,
a.btn_i.btn_secondary.btn_has_background_image:hover,
.btn_i.btn_secondary img:hover,
a.btn_i.btn_secondary img:hover,
img.btn_i.btn_secondary:hover {
    filter: var(--btn_i_secondary_hover_filter) !important;
}

.btn_i.btn_danger.btn_has_background_image,
a.btn_i.btn_danger.btn_has_background_image,
.btn_i.btn_danger img,
a.btn_i.btn_danger img,
img.btn_i.btn_danger,
.btn_il img.btn_il_i.btn_danger,
.btn_il.btn_danger img.btn_il_i:not(.btn_primary, .btn_secondary, .btn_warning),
.btn_li img.btn_li_i.btn_danger,
.btn_li.btn_danger img.btn_li_i:not(.btn_primary, .btn_secondary, .btn_warning) {
    filter: var(--btn_danger_filter) !important;
}

.btn_i.btn_danger.btn_has_background_image:hover,
a.btn_i.btn_danger.btn_has_background_image:hover,
.btn_i.btn_danger img:hover,
a.btn_i.btn_danger img:hover,
img.btn_i.btn_danger:hover {
    filter: var(--btn_i_danger_hover_filter) !important;
}

.btn_i.btn_warning.btn_has_background_image,
a.btn_i.btn_warning.btn_has_background_image,
.btn_i.btn_warning img,
a.btn_i.btn_warning img,
img.btn_i.btn_warning,
.btn_il img.btn_il_i.btn_warning,
.btn_il.btn_warning img.btn_il_i:not(.btn_primary, .btn_secondary, .btn_danger),
.btn_li img.btn_li_i.btn_warning,
.btn_li.btn_warning img.btn_li_i:not(.btn_primary, .btn_secondary, .btn_danger) {
    filter: var(--btn_warning_filter) !important;
}

.btn_i.btn_warning.btn_has_background_image:hover,
a.btn_i.btn_warning.btn_has_background_image:hover,
.btn_i.btn_warning img:hover,
a.btn_i.btn_warning img:hover,
img.btn_i.btn_warning:hover {
    filter: var(--btn_i_warning_hover_filter) !important;
}

.btn_il img.btn_il_i,
.btn_li img.btn_li_i {
    margin: 0 !important;
}

/* ACTION ICONS */

.addlink {
    padding-left: 12px;
    background: url(/static/admin/img/icon_addlink.gif?b4ffcf5a4620) 0 .2em no-repeat;
}

.changelink, .inlinechangelink {
    padding-left: 12px;
    background: url(/static/admin/img/icon_changelink.gif?b4ffcf5a4620) 0 .2em no-repeat;
}

.viewlink, .inlineviewlink {
    padding-left: 12px;
    background: url(/static/admin/img/icon_viewlink.gif?b4ffcf5a4620) 0 .2em no-repeat;
}

.reloadlink {
    padding-left: 12px;
    background: url(/static/admin/img/admin/reload_button_mini.png?b4ffcf5a4620) -0.3em 0em no-repeat;
}

.stoplink {
    padding-left: 15px;
    background: url(/static/admin/img/admin/icon_stop.gif?b4ffcf5a4620) 0 0 no-repeat;
}

.pauselink {
    padding-left: 16px;
    background: url(/static/admin/img/admin/icon_pause.png?b4ffcf5a4620) -0.1em -0.1em no-repeat;
}

.continuelink {
    padding-left: 17px;
    background: url(/static/admin/img/admin/icon_continue.png?b4ffcf5a4620) -0.1em -0.1em no-repeat;
}

.deletelink {
    padding-left: 12px;
    background: url(/static/admin/img/icon_deletelink.gif?b4ffcf5a4620) 0 .25em no-repeat;
}
.deletelink-inline {
    background: url(/static/admin/img/icon_deletelink.gif?b4ffcf5a4620) 0 .25em no-repeat;
    cursor: pointer;
    margin-left:5px;
    padding-right:4px;
}
a.deletelink:link, a.deletelink:visited {
    color: #CC3434;
}

a.deletelink:focus, a.deletelink:hover {
    color: #993333;
}

.wordlink {
    padding-right: 14px;
    background: url(/static/admin/img/admin/mimetypes_icon/icon_word.gif?b4ffcf5a4620) 100% .25em no-repeat;
}
.excellink {
    padding-right: 14px;
    background: url(/static/admin/img/admin/mimetypes_icon/icon_excel.gif?b4ffcf5a4620) 100% .25em no-repeat;
}
.pdflink {
    padding-right: 14px;
    background: url(/static/admin/img/admin/mimetypes_icon/icon_pdf.gif?b4ffcf5a4620) 100% .25em no-repeat;
}
.txtlink {
    padding-right: 14px;
    background: url(/static/admin/img/admin/mimetypes_icon/icon_txt.gif?b4ffcf5a4620) 100% .25em no-repeat;
}
.imagelink {
    padding-right: 14px;
    background: url(/static/admin/img/admin/mimetypes_icon/icon_image.gif?b4ffcf5a4620) 100% .25em no-repeat;
}
.unknownlink {
    padding-right: 14px;
    background: url(/static/admin/img/admin/mimetypes_icon/icon_unknown.gif?b4ffcf5a4620) 100% .25em no-repeat;
}

/* OBJECT TOOLS */

.object-tools {
    font-size: 11px;
    font-weight: bold;
    padding-left: 0;
    float: right;
    position: relative;
    margin-top: -2.4em;
    margin-bottom: -2em;
}

.form-row .object-tools {
    margin-top: 5px;
    margin-bottom: 5px;
    float: none;
    height: 2em;
    padding-left: 3.5em;
}

.object-tools li {
    display: block;
    float: left;
    margin: 0;
    padding: 0;
    height: 16px;
    background: url(/static/admin/img/tool-left.gif?b4ffcf5a4620) 0 0 no-repeat;
}

.object-tools li:focus, .object-tools li:hover {
    background: url(/static/admin/img/tool-left_over.gif?b4ffcf5a4620) 0 0 no-repeat;
}

.object-tools li.icon, .object-tools li.icon:focus,
.object-tools li.icon, .object-tools li.icon:hover {
    /* zabranime sedemu/modremu pozadi.
       kazda ikonka si musi definovat svoje pozadi nize */ 
    background: none;
}

.object-tools a:link, .object-tools a:visited {
    display: block;
    float: left;
    color: var(--object-tools-fg);
    padding: .1em 14px .1em 8px;
    height: 14px;
    background: var(--object-tools-bg) url(/static/admin/img/tool-right.gif?b4ffcf5a4620) 100% 0 no-repeat;
}

.object-tools a:focus, .object-tools li:focus a,
.object-tools a:hover, .object-tools li:hover a {
    background: var(--object-tools-hover-bg) url(/static/admin/img/tool-right_over.gif?b4ffcf5a4620) 100% 0 no-repeat;
}

.object-tools a.viewsitelink, .object-tools a.golink {
    background: var(--object-tools-bg) url(/static/admin/img/tooltag-arrowright.gif?b4ffcf5a4620) top right no-repeat;
    padding-right: 28px;
}

.object-tools a.viewsitelink:focus, .object-tools a.golink:focus,
.object-tools a.viewsitelink:hover, .object-tools a.golink:hover {
    background: var(--object-tools-hover-bg) url(/static/admin/img/tooltag-arrowright_over.gif?b4ffcf5a4620) top right no-repeat;
}

.object-tools a.addlink {
    background: var(--object-tools-bg) url(/static/admin/img/tlp/changelist_add_16_white.png?b4ffcf5a4620) top right no-repeat;
    padding-right: 28px;
}

.object-tools a.addlink:focus,
.object-tools a.addlink:hover {
    background: var(--object-tools-hover-bg) url(/static/admin/img/tlp/changelist_add_16_white.png?b4ffcf5a4620) top right no-repeat;
}

.object-tools a.reloadlink {
    background: var(--object-tools-bg) url(/static/admin/img/admin/tooltag-reload.gif?b4ffcf5a4620) top right no-repeat;
    padding-right: 28px;
}

.object-tools a.reloadlink:focus,
.object-tools a.reloadlink:hover {
    background: var(--object-tools-hover-bg) url(/static/admin/img/admin/tooltag-reload_over.gif?b4ffcf5a4620) top right no-repeat;
}

.object-tools li.icon a {
    display: block;
    background: none;
    width: 16px;
    height: 16px;
    padding: 0;
    cursor: pointer;
}

div#content ul.object-tools li.icon a.print,
div#content ul.object-tools li.icon a.gisview,
div#content ul.object-tools li.icon a.xlsxexport,
div#content ul.object-tools li.icon a.csvexport,
div#content ul.object-tools li.icon a.tableview,
div#content ul.object-tools li.icon a.hromadnyvyberview,
div#content ul.object-tools li.icon a.rssview,
div#content ul.object-tools li.icon a.photogallery {
    width: 20px !important;
    height: 20px !important;
    background-position: 0 0;
    background-repeat: no-repeat;
    filter: var(--btn_primary_filter) !important;
}

div#content ul.object-tools li.icon a.print:focus,
div#content ul.object-tools li.icon a.print:hover,
div#content ul.object-tools li.icon a.gisview:focus,
div#content ul.object-tools li.icon a.gisview:hover,
div#content ul.object-tools li.icon a.xlsxexport:focus,
div#content ul.object-tools li.icon a.xlsxexport:hover,
div#content ul.object-tools li.icon a.csvexport:focus,
div#content ul.object-tools li.icon a.csvexport:hover,
div#content ul.object-tools li.icon a.tableview:focus,
div#content ul.object-tools li.icon a.tableview:hover,
div#content ul.object-tools li.icon a.hromadnyvyberview:focus,
div#content ul.object-tools li.icon a.hromadnyvyberview:hover,
div#content ul.object-tools li.icon a.rssview:focus,
div#content ul.object-tools li.icon a.rssview:hover,
div#content ul.object-tools li.icon a.photogallery:focus,
div#content ul.object-tools li.icon a.photogallery:hover {
    filter: var(--btn_i_primary_hover_filter) !important;
}

div#content ul.object-tools li.icon a.print {
    background-image: url(/static/admin/img/tlp/printer.svg?b4ffcf5a4620);
}

div#content ul.object-tools li.icon a.gisview {
    background-image: url(/static/admin/img/tlp/world.svg?b4ffcf5a4620);
}

div#content ul.object-tools li.icon a.xlsxexport {
    background-image: url(/static/admin/img/tlp/fileicons/file-excel.svg?9f3b0f4b7c97);
}

div#content ul.object-tools li.icon a.csvexport {
    background-image: url(/static/admin/img/tlp/excel_csv.svg?b4ffcf5a4620);
}

div#content ul.object-tools li.icon a.tableview {
    background-image: url(/static/admin/img/tlp/evidence.svg?b4ffcf5a4620);
}

div#content ul.object-tools li.icon a.hromadnyvyberview {
    background-image: url(/static/admin/img/tlp/changelist_multiple_add.svg?b4ffcf5a4620);
}

div#content ul.object-tools li.icon a.rssview {
    background-image: url(/static/admin/img/tlp/rss-box.svg?b4ffcf5a4620);
}

div#content ul.object-tools li.icon a.photogallery {
    background-image: url(/static/admin/img/tlp/multimedia.svg?b4ffcf5a4620);
}

div#content ul.object-tools li.icon img.csv_export_loader {
    width: 20px !important;
    height: 20px !important;
    filter: var(--btn_primary_filter) !important;
}

/* OBJECT HISTORY */

table#change-history {
    width: 100%;
}

table#change-history tbody th {
    width: 16em;
}

/* PAGE STRUCTURE */

#container {
    position: relative;
    width: 99.98%; /* fix horizontalniho scrollbaru v IE */
    /*min-width: 760px;*/
    padding: 0;
}

#content {
    margin: 10px 15px;
}

#container.sticky_breadcrumbs #bottom-bar {
    min-height: 22px;
    position: -webkit-sticky; /* Safari */
    position: sticky;
    top: 0;
    z-index: 999;
}

#header {
    width: 100%;
}
@media print {
    #header { display: none;}
}

#content-main {
    float: left;
    width: 100%;
}

#content-related {
    float: right;
    width: 18em;
    position: relative;
    margin-right: -19em;
}

#footer {
    clear: both;
    width: 100%;
    margin: 0;
    padding: 0;
}

#footer #footer-wrapper {
    padding: 10px 15px;
}

/* COLUMN TYPES */

.colMS {
    /*margin-right: 20em !important;*/
}

.colSM {
    /*margin-left: 20em !important;*/
}

.colSM #content-related {
    float: left;
    margin-right: 0;
    /*margin-left: -19em;*/
}

.colSM #content-main {
    float: none;
    margin-left: 320px;
    width: auto;
}

.popup .colM {
    width: 95%;
}

.subcol {
    float: left;
    width: 46%;
    margin-right: 15px;
}

.dashboard #content {
    width: 500px;
}

/* HEADER */

#header {
    color: var(--header-bg);
    overflow: hidden;
    background-color: var(--header-background-color);
}
#header #top-bar {
    height: 20px;
}
#header #middle-bar {
    position: relative;
    height: 46px;
}
#header #bottom-bar,
#container.sticky_breadcrumbs #bottom-bar {
    min-height: 22px;
    background-color: var(--header-bottom-bar);
}
#branding {
    /* u absolutniho pozicovani nehrozi odpluti sitename pri 'textovem' zoomu ve FF (narozdil od puvodniho float: right) */
    position: absolute;
    right: 14px;
}
#branding #header-logo {
    float: left; 
} 
#branding #site-name { 
    float: left; 
    margin-left: 20px; 
}
#branding #site-name h1 {
    margin: 0;
    padding: 0;
    line-height: 46px;
    font-size: 23px;
    font-weight: bold;
    color: var(--accent);
}
#branding #site-name h1 #short_site_name_text {
    display: none;
}
#user-tools {
    float: right;
    margin-right: 14px;
    line-height: 20px;
    font-size: 11px;
    color: var(--accent);
}
#user-tools a:link, #user-tools a:visited {
    color: var(--accent);
}
#user-tools a:focus,
#user-tools a:hover {
    text-decoration: underline;
}
#user-tools #user {
    float: left;
    font-size: 11px;
}
#user-tools #userlinks {
    float: left;
    margin-left: 3px;
    font-size: 11px;
}
#user-tools .system_debug_toggle {
    float: left;
    margin-left: 3px;
}
#user-tools .system_debug_toggle.active {
    background-color: red;
}
#user-tools .system_debug_toggle img {
    position: relative;
    bottom: 1px;
    height: 14px;
    vertical-align: middle;
    filter: var(--btn_primary_filter);
}
#user-tools #language-switcher {
    float: left;
    height: 20px; /* stejne jako top-bar */
    margin-left: 8px;
}
#user-tools #language-switcher td,
#user-tools #language-switcher th {
    padding: 0;
    border: medium none;
}
#user-tools #language-switcher input {
    border: medium none;
}

/* COMPACT USER TOOLS */

.classic_responsive_design div#header div#user_tools_toggler {
    display: none;
}

.classic_responsive_design div#header.compact_user_tools div#user_tools_toggler {
    display: block;
    float: right;
    margin-right: 12px;
}

.classic_responsive_design div#header.compact_user_tools div#user-tools {
    float: none;
    position: absolute;
    top: 23px;
    right: 13px;
    min-width: 256px;
    margin: 0;
    z-index: 1000;
    background-color: var(--compact-user-tools-background-color);
    border: 1px solid var(--border-color);
    line-height: 25px;
    white-space: nowrap;
    font-size: 12px;
    font-weight: bold;
    text-decoration: none;
    color: var(--body-quiet-color);
}

.classic_responsive_design div#header.compact_user_tools.user_tools_collapsed div#user-tools {
    display: none;
}

.classic_responsive_design div#header.compact_user_tools.user_tools_expanded div#user-tools {
    display: block;
}

.classic_responsive_design div#header.compact_user_tools div#user-tools > * {
    float: none;
    margin: 0;
    padding: 0 9px;
    border-bottom: 4px double var(--border-color);
}

.classic_responsive_design div#header.compact_user_tools div#user-tools > *:last-child {
    border-bottom: none;
}

.classic_responsive_design div#header.compact_user_tools div#user-tools a:focus,
.classic_responsive_design div#header.compact_user_tools div#user-tools a:hover {
    text-decoration: none;
}

.classic_responsive_design div#header.compact_user_tools div#user-tools a:link,
.classic_responsive_design div#header.compact_user_tools div#user-tools a:visited {
    color: var(--body-quiet-color);
}

.classic_responsive_design div#header.compact_user_tools div#user-tools div#user {
    font-size: 12px;
}

.classic_responsive_design div#header.compact_user_tools div#user-tools div#user span.username_delimiter {
    display: none;
}

.classic_responsive_design div#header.compact_user_tools div#user-tools div#userlinks {
    padding: 0;
    font-size: 12px;
}

.classic_responsive_design div#header.compact_user_tools div#user-tools div#userlinks a {
    display: block;
    padding: 0 9px;
    border-bottom: 4px double var(--border-color);
}

.classic_responsive_design div#header.compact_user_tools div#user-tools div#userlinks a:last-child {
    border-bottom: none;
}

.classic_responsive_design div#header.compact_user_tools div#user-tools div#userlinks span.userlinks_delimiter {
    display: none;
}

.classic_responsive_design div#header.compact_user_tools div#user-tools div#system_debug_toggle a.system_debug_toggle {
    margin: 0;
}

.classic_responsive_design div#header.compact_user_tools div#user-tools div#system_debug_toggle div#system_debug_toggle_title {
    margin-left: 12px;
    padding-left: 5px;
    cursor: pointer;
}

.classic_responsive_design div#header.compact_user_tools div#user-tools div#language-switcher {
    height: 26px;
}

.classic_responsive_design div#header.compact_user_tools div#user-tools div#language-switcher input[type="image"] {
    margin: 5px 0;
}

/* HORIZONTAL NAVIGATION MENU */

#header #middle-bar ul#menu {
    position: absolute;
    left: 3.3%; /* 40/1200 */
    bottom: 0;
    display: block;
    height: 23px;
    width: 96%;
    padding: 0;
    margin: 0;
    list-style: none;
}
#header #middle-bar ul#menu li {
    float: left;
    margin-right: 1.25%; /* 15/1200 */
    padding: 0;
    list-style: none;
    font-size: 12px;
}
#header #middle-bar ul#menu li a,
#header #middle-bar ul#menu li a:visited {
    display: block;
    height: 22px;
    padding: 0 15px;
    line-height: 1.8em;
    border-top: 1px var(--header-action-link-color) solid;
    border-right: 1px var(--header-action-link-color) solid;
    border-left: 1px var(--header-action-link-color) solid;
    text-decoration: none;
}
#header #middle-bar ul#menu li a,
#header #middle-bar ul#menu li a:visited {
    background: var(--header-action-link-visited);
}
#header #middle-bar ul#menu li a:focus,
#header #middle-bar ul#menu li a:hover {
    background: var(--header-action-link-focused);
}
#header #middle-bar ul#menu li.active a,
#header #middle-bar ul#menu li.active a:visited {
    background: var(--header-bottom-bar);
    color: var(--primary-fg);
    border-top: 1px var(--header-bottom-bar) solid;
    border-right: 1px var(--header-bottom-bar) solid;
    border-left: 1px var(--header-bottom-bar) solid;
}
#header #middle-bar ul#menu li.active a:focus,
#header #middle-bar ul#menu li.active a:hover {
    background: var(--header-action-link-focused);
    color: var(--header-bottom-bar);
    border: 1px var(--header-action-link-color) solid;
    border-bottom: none;
}

@media only screen {
    .classic_responsive_design #header #middle-bar #short_site_name_text,
    .classic_responsive_design #header #middle-bar #site_name_text {
        display: none;
    }

    .classic_responsive_design:is(.xs, .sm) #header #middle-bar #short_site_name_text,
    .classic_responsive_design:is(.md, .lg, .xl, .xxl) #header #middle-bar #site_name_text {
        display: inline !important;
    }
}

/* COMPACT VERTICAL NAVIGATION MENU */
.classic_responsive_design #header.compact_menu #middle-bar {
    position: static;
}

.classic_responsive_design #container:not(.compactMap) #header.compact_menu.menu_expanded #middle-bar #compact_menu_close {
    display: block !important;
    position: fixed;
    top: 0;
    left: 280px;
    z-index: 1100;
    filter: invert(1);
    cursor: pointer;
}

.classic_responsive_design #header #middle-bar #compact_menu_toggler {
    display: none;
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 5px 15px;
    border-radius: 5px;
    cursor: pointer;
}

.classic_responsive_design #header.compact_menu #middle-bar #compact_menu_toggler {
    display: block;
}

.classic_responsive_design #header.compact_menu.menu_collapsed #middle-bar #compact_menu_toggler {
    background-color: var(--header-bottom-bar);
}

.classic_responsive_design #header.compact_menu.menu_expanded #middle-bar #compact_menu_toggler {
    background-color: var(--header-bottom-bar);
}

.classic_responsive_design #header.compact_menu #middle-bar #compact_menu_toggler .line {
    width: 25px;
    height: 3px;
    margin: 4px 0;
    background-color: white;
}

.classic_responsive_design #header.compact_menu #middle-bar ul#menu {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    height: calc(100% - 1px);
    width: auto;
    width: 300px;
    padding-top: 23px;
    border-right: 1px solid #333;
    box-sizing: border-box;
    background-color: var(--header-bottom-bar);
    z-index: 1000;
    overflow: auto;
}

.classic_responsive_design #header.compact_menu.menu_collapsed #middle-bar ul#menu {
    display: none;
}

.classic_responsive_design #header.compact_menu.menu_expanded #middle-bar ul#menu {
    display: block;
}

.classic_responsive_design #header.compact_menu #middle-bar ul#menu li {
    float: none;
    margin-right: 0;
}

.classic_responsive_design #header.compact_menu #middle-bar ul#menu li a {
    height: auto;
    padding: 8px 30px;
    border: none;
    background-color: var(--header-bottom-bar);
    color: #bbb;
    line-height: normal;
}

.classic_responsive_design #header.compact_menu #middle-bar ul#menu li a:hover {
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), var(--header-bottom-bar);
    color: var(--primary-fg);
}

.classic_responsive_design #header.compact_menu #middle-bar ul#menu li.active a,
.classic_responsive_design #header.compact_menu #middle-bar ul#menu li.active a:visited {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--primary-fg);
    box-shadow: inset 3px 0 0 var(--primary-fg);
}

.classic_responsive_design #header.compact_menu #middle-bar ul#menu li a.empty-page {
    cursor: pointer;
}

/* HEADER SEARCH (with partially responsive features) */
/* input#searchquery a #searchbtn pro vyhledavani na mape - iskr_django/templates/gis/mapa.html */
#header #bottom-bar #header-search,
#container.sticky_breadcrumbs #bottom-bar #header-search {
    float: right;
    margin: 2px 14px 0 14px;
}
#header #bottom-bar #header-search form#header-search-form,
#header #bottom-bar #header-search form#header-search-form,
#container.sticky_breadcrumbs #bottom-bar #header-search form#header-search-form {
    height: 18px;
    background-color: var(--primary-fg);
}
#header #bottom-bar #header-search form#header-search-form input#header-search-field,
#header #bottom-bar #header-search form#header-search-form input#searchquery,
#container.sticky_breadcrumbs #bottom-bar #header-search form#header-search-form input#header-search-field,
#container.sticky_breadcrumbs #bottom-bar #header-search form#header-search-form input#searchquery {
    width: 230px;
    margin: 0;
    padding: 0 0 0 2px;
    border: none;
}
.classic_responsive_design:is(.xs, .sm) #header #bottom-bar #header-search form#header-search-form input#header-search-field,
.classic_responsive_design:is(.xs, .sm) #header #bottom-bar #header-search form#header-search-form input#searchquery,
.classic_responsive_design:is(.xs, .sm) #container.sticky_breadcrumbs #bottom-bar #header-search form#header-search-form input#header-search-field,
.classic_responsive_design:is(.xs, .sm) #container.sticky_breadcrumbs #bottom-bar #header-search form#header-search-form input#searchquery {
    width: 150px;
}
#header #bottom-bar #header-search form#header-search-form input#header-search-button,
#header #bottom-bar #header-search form#header-search-form #searchbtn,
#container.sticky_breadcrumbs #bottom-bar #header-search form#header-search-form input#header-search-button,
#container.sticky_breadcrumbs #bottom-bar #header-search form#header-search-form #searchbtn {
    width: 20px;
    height: 18px;
    margin: 0;
    padding: 0;
    border: none;
    background: url("/static/admin/img/admin/search-but.png?b4ffcf5a4620") no-repeat scroll 0 0 transparent;
    cursor: pointer;
}
#header #bottom-bar #header-search form#header-search-form #searchbtn,
#container.sticky_breadcrumbs #bottom-bar #header-search form#header-search-form #searchbtn {
    float: right;
}
#header #bottom-bar #header-search form#header-search-form input#header-search-button:focus,
#header #bottom-bar #header-search form#header-search-form input#header-search-button:hover,
#header #bottom-bar #header-search form#header-search-form #searchbtn:focus,
#header #bottom-bar #header-search form#header-search-form #searchbtn:hover,
#container.sticky_breadcrumbs #bottom-bar #header-search form#header-search-form input#header-search-button:focus,
#container.sticky_breadcrumbs #bottom-bar #header-search form#header-search-form input#header-search-button:hover,
#container.sticky_breadcrumbs #bottom-bar #header-search form#header-search-form #searchbtn:focus,
#container.sticky_breadcrumbs #bottom-bar #header-search form#header-search-form #searchbtn:hover {
    background-position: 0 -20px;
}

/* SIDEBAR */

#content-related h3 {
    font-size: 12px;
    color: var(--body-quiet-color);
    margin-bottom: 3px;
}

#content-related h4 {
    font-size: 11px;
}

#content-related .module h2 {
    background: var(--hairline-color) url(/static/admin/img/nav-bg.gif?b4ffcf5a4620) bottom left repeat-x;
    color: var(--body-quiet-color);
}

.delete-confirmation form input[type="submit"] {
    background: var(--delete-button-bg);
    border-radius: 4px;
    padding: 10px 15px;
    color: var(--button-fg);
    cursor: pointer;
}

.delete-confirmation form input[type="submit"]:active,
.delete-confirmation form input[type="submit"]:focus,
.delete-confirmation form input[type="submit"]:hover {
    background: var(--delete-button-hover-bg);
}

.delete-confirmation form input[type="submit"]#nosubmit {
    background: var(--close-button-bg);
    cursor: pointer;
}
.delete-confirmation form input[type="submit"]#nosubmit:active,
.delete-confirmation form input[type="submit"]#nosubmit:focus,
.delete-confirmation form input[type="submit"]#nosubmit:hover {
    background: var(--close-button-hover-bg);
}

.delete-confirmation form input.cancel-link {
    display: inline-block;
    vertical-align: middle;
    height: 40px;
    line-height: 15px;
    border-radius: 4px;
    padding: 10px 15px;
    color: var(--button-fg);
    background: var(--close-button-bg);
    margin: 0 0 0 10px;
}

.delete-confirmation form input.cancel-link:active,
.delete-confirmation form input.cancel-link:focus,
.delete-confirmation form input.cancel-link:hover {
    background: var(--close-button-hover-bg);
}

select.icon-menu option {
	background-repeat:no-repeat;
	background-position:bottom left;
	padding-left:30px;
}

/* custom shared model related css */
.form-row.obec, .form-row.cast_obce, .form-row.orp,
.form-row.idob, .form-row.idco, .form-row.idul,
.form-row.idadr, .form-row.point, .form-row.precision,
.form-row.mestska_cast, .form-row.idmomc {
        display: none;
}
/* spadove objekty v panelu lokalizace */
#catchment_objects .form-row.obec,
#catchment_objects .form-row.cast_obce,
#catchment_objects .form-row.orp,
#catchment_objects .form-row.mestska_cast {
        display: block;
}
#content-main .module, #content .module {
	/*background:none repeat scroll 0 0 #EEEEEE;*/
}

p.delete_batch {
    padding-left: 12px;
}
/* Batch delete */
p.delete_batch_heading, p.delete_batch {
    font-size: 11px;
}
img.batch_delete_alert {
    filter: invert(11%) sepia(67%) saturate(6881%) hue-rotate(8deg) brightness(91%) contrast(120%);
    height: 30px;
    width: 30px;
}

/* GROWL okNotify styles */

.ui-widget-overlay {
  background:#000;
  opacity:0.5;
}

.ui-notification {
  padding: 10px;
  z-index:9999;
  width:350px;
  text-align:left;
  margin-bottom:10px;
  border-radius: 8px 8px 8px 8px;
  box-shadow: 4px 4px 8px rgba(0,0,0,0.5);
  background-color: var(--row1-color);
  border: 1px solid var(--body-module-bg);
  font-size: 1em;
  opacity: 0.95;
}

.ui-notification.success {
  width: auto;
  background-color: #effa92;
  padding-top: 10px;
  padding-bottom: 10px;
}

.ui-notification .ui-notification-content {
    position:relative;
}

.ui-notification .ui-notification-content p {
      margin:4px 0;
}

.ui-notification .ui-notification-content a {
	color: gray;
	text-decoration: underline;
}
.ui-notification .ui-notification-content h1,
.ui-notification .ui-notification-content h2,
.ui-notification .ui-notification-content h3,
.ui-notification .ui-notification-content h4,
.ui-notification .ui-notification-content h5
{
	margin-top: 4px;
}
.ui-notification .ui-notification-content h1 { font-size: 14px; }
.ui-notification .ui-notification-content h2 { font-size: 13px; }
.ui-notification .ui-notification-content h3 { font-size: 12px; }
.ui-notification .ui-notification-content h4 { font-size: 12px; }
.ui-notification .ui-notification-titlebar {
    position:relative;
    min-height:15px;
}

.ui-notification .ui-notification-title {
    position:relative;
    display:inline-block;
    margin-bottom:8px;
    font-size:0.85em;
}

.ui-notification .ui-notification-close {
    position:absolute;
    top:8px;
    right:0;
    width:15px;
    height:15px;
    margin:-15px -5px 0;
    padding:1px;
    font-size:1em;
    z-index: 99;
    text-decoration: none;
}

.ui-notification .ui-notification-helplink {
    position:absolute;
    top:8px;
    right:15px;
    width:15px;
    height:15px;
    margin:-15px -5px 0;
    padding:1px;
    font-size:1em;
    z-index: 99;
    text-decoration: none;
}

.center .ui-notification {
	margin-left: 		auto;
	margin-right:  	auto;
}

/* MISC STYLES */

sup {
    position: relative;
    top: -3px;
    vertical-align: top;
}


/* pri zobrazovani ikonek potrebujeme ikonku od textu lehce odsadit.. */
img.model_icon_img {
    margin-right: 5px;
}
img.svg_icon_img {
    /* defaultni obarveni ikon */
    filter: var(--btn_primary_filter);
}
img.doc_icon_img {
    margin-right: 5px;
    vertical-align: middle;
}
img.svg_icon_img.external_link {
    margin-left: 5px;
    margin-right: 0px;
    margin-bottom: 2px;
    width: 20px;
}
.rozcestnik img.doc_icon_img {
    width: 20px;
    height: 20px;
}
.change-list img.doc_icon_img {
    margin-left: 5px;
    margin-right: 0;
}
.map-change-list img.doc_icon_img {
    margin-left: 0;
    margin-right: 5px;
}

#top-bar-close {
    display: none;
}

.interactive_button {
    cursor: pointer;
}

a#license_link.invalid {
	background: #f8d1d3 none repeat scroll 0 0;
	padding: 2px;
	padding-left: 4px;
	padding-right: 4px;
}

a.tool_action_link {
        font-size: 12px;
        height: 22px !important;
        line-height: 20px;
        border: medium none;
        border-radius: 5px;
	background: var(--tool-action-link-color) none repeat scroll 0 0 !important;
	position: relative;
	top: -3px;
	margin-right: 5px;
}
a.tool_action_link:focus,
a.tool_action_link:hover {
        background: var(--header-link-color) none repeat scroll 0 0 !important;
}

a.golink {
    background: var(--object-tools-bg) url(/static/admin/img/tooltag-arrowright.gif?b4ffcf5a4620) top right no-repeat;
    padding-right: 28px;
}
a.golink:focus,
a.golink:hover {
    background: var(--object-tools-hover-bg) url(/static/admin/img/tooltag-arrowright_over.gif?b4ffcf5a4620) top right no-repeat;
}

#password_reset_form label {
    width: 120px;
    display: block;
    float: left;
}
#password_reset_form input {
    display: block;
}
#password_reset_form input[type=submit] {
    margin-left: 120px;
    margin-top: 20px;
}

.actions button,
a.actions,
a.actions:hover,
a.actions:focus,
.object-tools a.actions,
.object-tools a.actions:hover,
.object-tools a.actions:focus
{
    padding: 4px 5px 5px;
    color: #fff;
    margin: 0;
    vertical-align: middle;
    font-size: 12px;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    outline: none;
    cursor: pointer;
    width: auto;
    height: 25px;
    background: var(--tool-action-link-color);
}
a.actions,
a.actions:hover,
a.actions:focus,
.object-tools a.actions,
.object-tools a.actions:hover,
.object-tools a.actions:focus {
    position: relative;
    bottom: 3px;
    height: auto;
    padding-left: 7px;
    padding-right: 7px;
}

.object-tools a.actions,
.object-tools a.actions:hover,
.object-tools a.actions:focus {
    margin-left: 5px;
}

img.user_icon {
    width: 20px;
    filter: invert(18%) sepia(71%) saturate(434%) hue-rotate(153deg) brightness(97%) contrast(92%);
    cursor: pointer;
}

/* callables pro akce na CHANGELIST VIEW */

#changelist table#result_list td.col_actions > a {
    display: block;
    margin-top: 10px;
    text-decoration: none;
    color: #036;
}

#changelist table#result_list td.col_actions > a:first-of-type {
    margin-top: 0;
}

#changelist table#result_list td.col_actions > a > img {
    float: left;
    margin-left: 0;
}

#changelist table#result_list td.col_actions > a > span {
    display: block;
    padding-left: 25px;
    line-height: 140%;
}

#changelist table#result_list td.col_actions > a.field_action_link {
    display: inline-block;
    padding-left: 25px;
    line-height: 140%;
    min-height: 30px;
}

#nav-sidebar .field_action_link,
table.rozcestnik td.description .field_action_link,
.html_table_row .field_action_link,
.change-form .field_action_link,
.search_result_description_part .field_action_link,
#changelist .field_action_link {
    display: inline-flex;
    align-items: center;
    background-image: none;
    background-color: #f2efe9;
    padding: 5px 10px;
    margin: 4px;
    border: 1px solid #ccc;
    border-radius: 7px;
}
#nav-sidebar .field_action_link {
    display: flex;
}
#changelist .field_action_link.empty {
    background-color: #fbfbfb;
    opacity: 0.9;
}
#nav-sidebar .field_action_link.selected {
    background-color: #fafdd7;
}

#changelist table#result_list tbody a.field_action_link {
    text-decoration: none;
}

#nav-sidebar .field_action_link_title,
#changelist .field_action_link_title,
.html_table_row .field_action_link_title,
table.rozcestnik td.description #changelist .field_action_link_title,
.change-form .field_action_link_title {
    margin-left: 5px;
    color: var(--link-fg);
}
#changelist .field_action_link.empty .field_action_link_title {
    color: var(--body-quiet-color);
}
table.rozcestnik td.description .field_action_link_title {
    margin-left: 5px;
    font-weight: normal;
}
table.rozcestnik td.description .field_action_link_icon,
table.rozcestnik td.description .svg_icon_img,
.html_table_row .field_action_link_icon,
#changelist .field_action_link_icon,
.search_result_description_part .field_action_link_icon,
.change-form .field_action_link_icon {
    width: 20px;
    filter: var(--btn_primary_filter);
}
#nav-sidebar .field_action_link_icon,
#nav-sidebar .svg_icon_img,
.is_bootstrap table.rozcestnik td.description .field_action_link_icon,
.is_bootstrap table.rozcestnik td.description .svg_icon_img,
.is_bootstrap #changelist .field_action_link_icon,
.is_bootstrap.change-form .field_action_link_icon {
    width: 30px;
}
#nav-sidebar .field_action_link_icon,
table.rozcestnik td.description .field_action_link_icon,
.html_table_row .field_action_link_icon,
#nav-sidebar .svg_icon_img {
    width: 25px;
}
#nav-sidebar .nav_sidebar_heading {
    background-color: #daebf3;
}
#nav-sidebar .nav_sidebar_section_heading {
    background-color: #f2f4fa;
}
#changelist .field_value {
    display: inline-block;
    margin-right: 15px;
}
