/*--- základ ---------------------------------------------------------------- */
body, td, input, textarea { font: 12px "Helvetica CE", "Helvetica", sans-serif; }
a { color: #666; text-decoration: none; }
a:hover { color: #333; text-decoration: underline; }


/* --- barvy ---------------------------------------------------------------- */
.whiteB { background-color: #fff !important; }
.blueB { background-color: #e0e0ff !important; }
.greenB { background-color: #cfc !important; }
.redB { background-color: #ffe0e0 !important; }
.darkRedB { background-color: #ffc0c0 !important; }
.gray { color: #7d7d7d !important; }
.grayB { background-color: #d0d0d0 !important; }
.yellowB { background-color: #fff8cb !important; }
.yellow { color: #ccb000 !important; }
.purpleB { background-color: rgb(237, 178, 217) !important; }
.purple { color: #7f56a8 !important; }
.silver { color: #aaa; }

.red { color: #f77 !important; }
.blue { color: #68f !important; }
.darkRed { color: #f33 !important; }
.green { color: #0a0 !important; }
.darkGreen { color: #193 !important; }


/* --- obrázky -------------------------------------------------------------- */
img { border: 0; }

.imgWrap {
  /* height: ...; nutno doplnit v kontextu */
  display: flex;
  justify-content: center;
  align-items: center;
}
.imgWrap .in { max-width: 100%; }
.imgWrap .in img, .imgWrap .in .dummy {
 /* max-height: ...; nutno doplnit v kontextu */
  max-width: auto;
}

.dummy { position: relative;  max-height: 105px; margin: 0 auto; }
.dummy:after {
  left: 0;
  background: url('/img/dummy.svg');
  background-size: 140% 140%;
  background-position: 50% 50%;
  opacity: 0.05;
  display: block;
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
}

.image-tn { padding: 1px; border: 1px solid #aaa; border-radius: 3px; }
.image-tn:hover { border: 1px solid #37558e; }
.image-tn.highlight { border: 2px solid #f00 !important; padding: 0; }
.image-tn.highlight:hover { border: 2px solid #f66 !important; }


/* --- text ----------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6, h7 { margin: 5px 0; line-height: 1.3; }

h1, .h1 {	font-size: 150%; font-weight: normal; text-transform: uppercase; border-bottom: 1px solid #aaa; color: #31508b; }
h1 { padding: 2px 0 5px 0; }

h2, .h2 { font-size: 135%; color: #444; border-bottom: 1px solid #ccc; }
h2 { padding: 3px 0 3px 0; }
h2:first-letter { text-transform: uppercase; }

h3, .h3 { font-size: 120%; font-weight: bold; color: #442017; }

.text-max {	font-size: 200%; line-height: 135%; }
.text-huge { font-size: 170%; line-height: 135%; }
.text-bigger { font-size: 135%; line-height: 135%; }
.text-big { font-size: 120%; line-height: 135%; }
.text-normal { font-size: 110%; line-height: 135%; }
.text-small { font-size: 85%; line-height: 135%; }
.text-min { font-size: 85%; }
td .h1, td .h2 { border-bottom: none; display: block; text-transform: none; color: #000; line-height: 30px; }

ins { background: #dfd none repeat scroll 0 0; color: green; text-decoration: none; display: inline-block; }
del { background: #fdd none repeat scroll 0 0; color: red; text-decoration: line-through; display: inline-block; }


/* --- kategorie ------------------------------------------------------------ */
.level-0, .level-1, .level-2 { color: #888; }
.level-3, .level-4, .level-5, .level-6  { font-size: 95%; color: #888; }
.level-0 p, .level-1 p, .level-2 p { margin: 7px 0; }
.level-3 p, .level-4 p, .level-5 p, .level-6 p { margin: 3px 0; }

.level-0 h3 { font-size: 140%; padding: 0 5px; }
.level-0 h3:first-child { padding-left: 0; }
.level-1 h3 { font-size: 140%; padding: 0 5px; }
.level-1 h3:first-child { padding-left: 0; }
.level-2 h3 { font-size: 125%; padding: 0 5px; }
.level-2 h3:first-child { padding-left: 0; }
.level-3 h3 { font-size: 120%; padding: 0 5px; }
.level-3 h3:first-child { padding-left: 0; }
.level-4 h3 { padding: 0 5px; }
.level-4 h3:first-child { padding-left: 0; }
.level-5 h3 { padding: 0 5px; }
.level-5 h3:first-child { padding-left: 0; }
.level-6 h3 { padding: 0 5px; }
.level-6 h3:first-child { padding-left: 0; }

/* o úroveň v kategoriích výš */
.level-0 .levelUp, .level-1 .levelUp, .level-2 .levelUp, .level-3 .levelUp, .level-4 .levelUp, .level-5 .levelUp, .level-6 .levelUp {
  opacity: 0.2;
}
.level-2 .levelUp, .level-3 .levelUp, .level-4 .levelUp, .level-5 .levelUp, .level-6 .levelUp {
  position: relative;
  left: -18px;
  margin-right: -17px;  
}
  
/* --- formuláře ------------------------------------------------------------ */
.o { font-weight: bold; }
.o td:first-child { font-weight: bold; }
.disabled {	background-color: #999; }
.submit { height: 25px; margin: 0 0 5px 0; } /* tlacitko odeslat */
.submit-big { font-weight: bold; font-size: 125%; padding:10px !important; text-align: center !important; box-sizing: border-box; cursor: default; }
form[data-submitted='submitted'] [type='submit'] { cursor: wait; opacity: 0.5; } /* prevent double submittion - stav po odeslání */
.noborder { border: 0 !important; margin-top: 0; margin-bottom: 0; padding-top: 0; padding-bottom: 0; }
.numbersonly { text-align: center; }
table.noborder td { border: 0; }
input[type='checkbox'], input[type='radio'] { padding: 1px; border: 0; border-radius: 0; }
input[type='checkbox']+label { padding-left: 5px; }
input[disabled], input[readonly] { color: #888; border-color: #888;  }
input.invisible { border: 0; background-color: transparent; }
.checkbox { border: 0; margin-left: 5px !important; margin-right: 5px !important; vertical-align: middle; }

.table-form input[type='file'] { margin-bottom: 3px; width: 300px; border: 0; padding-left: 0; }
.d-ib { display: inline-block; }
.gentle { background-color: #f2f2f2; color: #666; }
.grayscale { filter: grayscale(100%); }
.p-rel { position: relative; }

.wholeCellLabel { display: block; min-height: 40px; position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; }
.wholeCellLabel:hover { background-color: rgba(255,255,255,0.33); }
.wholeCellLabel.slim { min-height: 30px; }
input:checked+.wholeCellLabel { background-color: rgba(255,255,255,0.33); }

.maxFormWidth { max-width: 900px; }
.checkboxNeat { z-index: 10; visibility: hidden; position: absolute; }
.checkboxNeat+label, .labelNeat { color: #999; position: relative; z-index: 9; padding: 0 10px !important; margin: 0 5px 5px 0; display: inline-block; line-height: 30px; height: 30px; box-sizing: border-box; border-radius: 4px; cursor: pointer; background-color: #f5f5f5; }
.checkboxNeat+label:hover { background-color: #fff; }
.checkboxNeat:checked+label { color: #187300; background-color: #e0ffe0; }
.form-right .checkboxNeat+label { top: 4px;  line-height: 25px; height: 25px; }
.form-right input:not(.checkboxNeat)+label { vertical-align: sub; }

input, textarea, select, button, .button {
    border: 1px solid #888;
		padding: 2px 5px;
		color: #000;
    vertical-align: middle;
    border-radius: 3px;
    overflow:hidden;
    position:relative;
}
input, select, button, .button {
  line-height: 19px;
}
button, .button { background-color: #d4d0c8; display: inline-block; cursor: default; text-decoration: none; }
.button:hover { text-decoration: none; }
a>.button, a>button { text-decoration: none; cursor: pointer !important; }

.searchInput { background-color: #ddd; text-align: center; width: 150px; }

/* formulář vpravo */
.form-right {
  position: relative;
  text-align: right;
  padding-left: 8px;
  background: #e5e4e4;
  top: -10px;
  float: right;
}
.form-right~h2 { clear: both; }
.form-right input, .form-right select, .form-right .select2 { margin-top: 5px; margin-left: 5px; text-align: left; }
form.form-right+h2:after {
    content: " ";
    display: table;
    clear: both;
}
.form-right select[id='id'], .form-right select[id='id_category'], .form-right select[id='id_tag'] { max-width:350px; } /* aby select s kategoriemi neprelezal neunosnou sirku */

h1+form[name='zaznamy'] { padding-top: 10px; }

/* samostatná buňka s hromadnými akcemi */
.multipleActionsCell {
  width: 100px; padding: 10px 0 3px 0; text-align: center; font-weight: bold;
}
.multipleActionsCell span, .dataSelect span { font-size: 18px; padding: 5px; display: inline-block; }
.dataSelect span { padding-bottom: 0; }
.multipleActionsCell:after { clear: both; content: ''; display: table; line-height: 0; }

/* buňka s hromadnými záznamy bez tabulky */
.dataSelectAlone { padding: 4px 8px 4px 10px; letter-spacing: 4px; font-weight: bold; display: inline-block; color: #666; background-color: #f2f2f2; border-radius: 4px; float: left; margin-right: 8px; border: 1px solid #999; }
.dataSelectAlone span { display: inline-block; transform: scale(1.1, 1.1); }
.dataSelectAlone span:hover { color: #444; }


/* --- tabulky -------------------------------------------------------------- */
table { margin: auto; } /* opravuje bug FF, kdy se tabulky nevycentruji na stred */
.table {
		width: 100%;
		border-spacing: 0;
		text-align: center;
}
.table tr:first-child td:first-child { border-top-left-radius: 5px; }
.table tr:first-child td:last-child { border-top-right-radius: 5px; }
.table tr:last-child td:first-child { border-bottom-left-radius: 5px; }
.table tr:last-child td:last-child { border-bottom-right-radius: 5px; }
.table td.notfirstChild { border-bottom-left-radius: 0 !important; border-left: 0 !important; }

.table td	{
		padding: 5px;
		border-right: 1px solid #37558e;
    border-bottom: 1px solid #37558e;
    transition: background-color 0.2s ease;
}
.table tr:first-child td { border-top: 1px solid #37558e; }
.table tr:last-child td { border-bottom: 1px solid #37558e; }
.table tr td:first-child { border-left: 1px solid #37558e; }

.table-head td {
		background-color: #37558e;
		color: #fff;
		text-align: center;
		font-weight: bold;
}

.table-head td a, .table-head td a:hover {
		color: #fff;
		text-decoration: underline;
}
.table-head td .note { line-height:100%; font-weight:normal; }

.table-row-1>td, .whiteB>td { background-color: #fff; } /* bílá */
.table-row-2>td, .grayB>td { background-color: #eee; } /* světle šedá */
.table-row-3>td, .redB>td { background-color: #ffe0e0; } /* červená */
.table-row-4>td, .greenB>td { background-color: #cfc; } /* zelená */
.table-row-5>td, .blueB>td { background-color: #cae0ff; } /* modrá */
.table-row-6>td, .darkRedB>td { background-color: #ffc0c0; } /* tmavě červená */
.table-row-7>td { background-color: #ccc; } /* šedá */
.table-row-8>td, .yellowB>td { background-color: #fff8cb; } /* žlutá */
.table-row-9>td, .purpleB>td { background-color: rgb(237, 178, 217); } /* fialová */

.table-form td { padding: 5px 3px 0 3px; line-height: 19px; }
.table-form input, .table-form textarea { margin: 0; }
.table-grid td { padding: 0 3px 0 3px; border-bottom: 1px solid #ccc; }

tr.separator {
    line-height: 200%;
    text-align: left;   
    position: relative;   
}
tr.separator>td { border-left: 0 !important; border-right: 0 !important; }
tr.separator:first-child td { border-top: 0 !important; }
tr:last-child.separator td { border-bottom: 0; }
td.first-after-span { border-left: 0 !important; }

td.separator {
    line-height: 33px;
    padding: 0 10px 0 10px;
    color: #555;
    font-weight: bold;
    font-size: 110%;
    background: #f5f5f5;
    border-top: 15px solid #e5e4e4;    
    position: relative;        
}

.table-form td textarea td { padding: 0; }
.clickable-row:hover td, .clickable-row.hover td { background-color: #deecf9 !important; }


/* tabulka v podobe bunky */
.table-cell {
  float: left; height: 265px; width: 175px;
  margin: 5px 10px 5px 0; overflow: hidden;
  text-align: center; border: 1px solid #aaa;
  border-radius: 5px;
  border-spacing: 0;
}
.table-cell td { background: #eee; padding-right: 10px; padding-left: 10px; }
.table-cell-head td { height: 34px; overflow: hidden; text-align: left; position: relative; min-width: 20px; }
.table-cell-head div.ord, .table-cell-head .headNote { position: absolute; right: 5px; top: 5px; z-index: 1; }
.table-cell-head td label { display:block; cursor: pointer; height: 34px; width: 100%; }
.table-cell-head td input[type='checkbox'] { padding: 1px; border: 0; position: absolute; left: 12px; top: 12px; z-index: 1; }
.table-cell-head td input[type='checkbox']:checked+label:after { display:block; content:''; position: absolute; top: 0; left:0; width: 100%; height: 34px; background-color: rgb(204, 255, 204); }
.table-cell-head td input[type='text'] { width: 30px; text-align: center; }
.table-cell-main td { padding: 8px; background: #fff !important; min-width: 120px; height: 171px; }
.table-cell-main .name { display: inline-block; max-height: 30px; max-width: 180px; overflow: hidden; margin-bottom: 8px; }
.table-cell-main td>div { height: 200px; overflow: hidden; white-space: nowrap; }
.table-cell-main td img { border: 0 !important; max-width: 120px; height: auto; max-height: 120px; width: auto; vertical-align: middle; }
.table-cell-foot td { padding: 4px 10px 4px 10px; height: 34px; }
.table-cell-foot td>div { overflow: hidden; opacity: 0.7; max-height: 30px; }
.table-cell-main a { white-space: initial; }

.table-cell.active { border: 2px solid rgb(54, 137, 55) !important; margin: 4px 8px 4px 0; }

.table-cell.flexible { height: auto; width: auto; }
.table-cell.flexible .table-cell-main td { height: auto; }
.table-cell.flexible .table-cell-main td>div { height: auto; }

tr.quiet td { opacity: 0.5; }

.visibleOnTrHover { visibility: hidden; }
tr:hover td .visibleOnTrHover { visibility: visible; }

table.noborder>tbody>tr>td { border: 0 !important; }
table.nopadding>tbody>tr>td { padding: 0 !important; }

/* --- seznamy -------------------------------------------------------------- */
:not(.select2-results, #tracy-debug-bar)>ul>li {
		margin: 2px 0; padding: 0 0 0 12px;
		background: url('../img/li.gif') no-repeat transparent 0 2.5px;
		list-style-type: none;
}
.select2-results>ul>li {
  padding-top: 2px;
  padding-bottom: 2px;
}
.select2-container--default .select2-results__option--highlighted[aria-selected] { background-color:#5897fb !important; } /* přepíšu případný inline styl zděděný z klasického selectu */
.select2-container--default .select2-selection--single { border-radius: 3px !important; border-color: #888 !important; }
.select2-container .select2-selection--single { height: 26px !important; }
.select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 26px !important; }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 24px !important; }
 
ul.gray li { background-image: url('../img/li-gray.gif'); }
li.normal { background-image: url('../img/li.gif') !important; }

ul ul li {
		margin: 2px 0; padding: 0 0 0 17px;
		background: url('../img/li2.gif') no-repeat transparent 5px center;
		list-style-type: none;
}

ul, ol {
		margin: 5px 0 5px 5px; padding: 0;
}
ul ol { margin-left: 30px; }

.ul-big {
   font-size: 15px;
   line-height: 140%;
}
.ul-big em {
   color: #000;
   font-style: normal;
   font-weight: bold;
}
#main-in ul { display: inline-block; margin-top: 5px; padding-bottom: 5px; }
#main-in .table ul { display: block; margin-top: 0; padding-bottom: 0; }


/* --- různé ---------------------------------------------------------------- */
.bold { font-weight: bold; font-size: 110%; }
.not-bold { font-weight: normal !important; }

.centred, .a-c { text-align: center; }
.float-right, .fl-r { float: right; }
.float-left, .fl-l { float: left; }
.va-m { vertical-align: middle; }
td.va-m img { vertical-align: middle; }
.a-r { text-align: right; }

.margin-bottom { margin-bottom: 4px; }
.margin-top { margin-top: 4px; }
.margin-right { margin-right: 4px; }

.error { color: #f00; }
.ok { color: #090; }
.back-em { background-color: #eee; }

.href { cursor: pointer; }
.href:not(td):hover { text-decoration: underline; }
.hide { display: none; }
.show { display: block; }
.ajaxWaiting { cursor: wait !important; }

.read-more a, .read-less a { cursor: pointer; text-decoration: underline; } /* expander */

/* padding, např pro ikoky */
.padRight { padding-right: 6px; }
.padRight2 { padding-right: 10px; }
.padLeft { padding-left: 6px; }
.padLeft2 { padding-left: 10px; }

hr { border: 0; background-color: #aaa; height: 1px; line-height: 1px; width: 100%; margin: 5px 0; padding: 0; }

.help { cursor: help; border-bottom: 1px dotted; }
img.help { border-bottom: none; }

h1 .note, h2 .note, h3 .note { padding-left: 15px; font-weight: normal; font-size: 12px; text-transform: none; }

em, .em { font-style: normal; color: #c00; font-weight: bold; }
.em2 { font-style: normal; color: #a3a727; font-weight: bold; }
.em3, .em3 a, .em3 a:hover { font-style: normal; color: #37558e; font-size: 12px; font-weight: bold; }

.message { text-align: center; color: #31508b; margin-top: 18px; font-weight: bold; }
.message.error { color: #f00; }
td>.message:first-child { margin-top: 8px; }

.spaceM { height: 14px; line-height: 14px; overflow: hidden; }
.spaceB { height: 18px; line-height: 18px; overflow: hidden; }
.space { height: 10px; line-height: 10px; overflow: hidden; }
.spaceS { height: 6px; line-height: 6px; overflow: hidden; }

.o50 { opacity: 0.5; }
.o75 { opacity: 0.75; }

.more { border-bottom: 1px dotted; cursor: pointer; }

.popupBox { position: absolute; padding: 4px 8px; background-color: #fff; border: 1px solid #37558e; font-size: 15px !important; color: #000; text-align: left; border-radius: 5px; z-index: 100; }
.popupBox a {	color: #37558e; text-decoration: none; }
.popupBox a:hover {	text-decoration: underline; }

pre { white-space: pre-wrap !important; word-wrap: break-word !important; }
pre.code { padding:8px 12px; background-color:#fff; border: 1px solid #aaa; }
textarea.code { padding:8px 12px; background-color:#fff; border: 1px solid #aaa; width:100%; box-sizing: border-box; font-family: monospace; }

.clear { clear: both; }
.clearL { clear: left; }
.clearR { clear: right; }


.batchOperation { margin: 10px 0; } /* hromadne operace*/


/* --- css taby ------------------------------------------------------------- */
.tab { display: inline-block; height: 25px; line-height: 23px; padding: 0 15px !important; margin: 0; cursor: pointer; color: #fff; font-weight: bold; background-color: #37558e; }
.tab.opened { background-color: #8092b4; color: #fff; }
.tab:hover { background-color: #9aa7c3; color: #fff; }


/* --- stránkování ---------------------------------------------------------- */
.paging { font-weight: bold; line-height: 35px; font-size: 15px; text-align: right; text-align: center; clear: both; min-height: 43px; margin: 3px 0 7px 0; color: #888 !important; }
.paging a, .paging strong { display: inline-block; height: 19px; padding: 6px 11px; text-decoration: none; line-height: 22px;
   background-color: #f6f6f6; border: 1px solid #d2d2d2;
  border-radius: 5px;
  color: #888 !important;
 
}
.paging a:hover { text-decoration: underline; }
.paging strong { color: #0a0 !important; background: #cfc; font-weight: bold; }

.paging-order { text-align: center; font-size: 125%; padding: 5px 0 10px 0; }


/* --- multiselectInput ----------------------------------------------------- */
.multiselectInput { position: relative; display: block; max-width: 1100px; font-size: 16px; }
@media only screen and (max-width: 90em) {
  .multiselectInput { font-size: 14px; }
}
.multiselectInputCol-3 { float: left; width: 22em; margin: 0; padding: 0; overflow: hidden; }
.multiselectInputCol-4 { float: left; width: 13.5em; margin: 0; padding: 0; overflow: hidden; }
.multiselectInputCol-5 { float: left; width: 13.5em; margin: 0; padding: 0; overflow: hidden; }
.multiselectInputRow { display: block; line-height: 1.25em; padding: 0; font-weight: bold; font-size: 0.8em; height: 1.25em; }
.multiselectInput.cols-3 { column-count: 3; column-gap: 0; column-width: 22em; }
.multiselectInput.cols-4 { column-count: 4; column-gap: 0; column-width: 13.5em; }
.multiselectInput.cols-5 { column-count: 5; column-gap: 0; column-width: 13.5em; }

.multiselectInputWrap { position: relative; clear: both; width: 13.5em; height: 1.25em; } /* overflow: hidden; - in chrome 47 nefunguje s css column-count, viz https://code.google.com/p/chromium/issues/detail?id=527709 */
.multiselectInputCol-3 .multiselectInputWrap { width: 22em; }
.multiselectInputWrap input[type=checkbox] { position: absolute; top: 0.3em; left: 0.2em; }
.multiselectInputWrap input[type=radio] { position: absolute; top: 0.3em; right: 0.2em; border: 0; padding: auto; }
.multiselectInputWrap label { margin: 0; padding: 0; line-height: 1.25em; width: 13.5em; display: block; cursor: pointer; white-space: nowrap; }
.multiselectInputCol-3 .multiselectInputWrap label { width: 22em; }
.multiselectInputWrap.checked { background: #e0ffe0; }
.multiselectInputWrap label>span { overflow: hidden; box-sizing: border-box; text-overflow: ellipsis; }
.multiselectInputWrap label .level-1 { display:block; width:100%; padding: 0 1em 0 1.55em; font-size:0.85em; font-weight: bold; text-decoration: underline; height: 1.45em; line-height:1.45em; color: #444; }
.multiselectInputWrap label .level-2 { display:block; width:100%; padding: 0 1em 0 1.75em; font-size:0.8em; font-weight: bold; height: 1.5em; line-height: 1.5em; color: #666; }
.multiselectInputWrap label .level-3 { display:block; width:100%; padding: 0 1em 0 3em; font-size:0.75em; height: 1.55em; line-height: 1.55em; color: #666; }
.multiselectInputWrap label .level-4 { display:block; width:100%; padding: 0 1em 0 4.2em; font-size:0.7em; height: 1.55em; line-height: 1.55em; color: #666; }
.multiselectInputWrap label .level-5 { display:block; width:100%; padding: 0 1em 0 5.7em; font-size:0.7em; height: 1.55em; line-height: 1.55em; color: #666; }
.multiselectInputWrap label .level-6 { display:block; width:100%; padding: 0 1em 0 7.2em; font-size:0.7em; height: 1.55em; line-height: 1.55em; color: #666; }
.multiselectInputWrap label .level-7 { display:block; width:100%; padding: 0 1em 0 8.7em; font-size:0.7em; height: 1.55em; line-height: 1.55em; color: #666; }
.multiselectInputWrap:hover label .level-1, .multiselectInputWrap:hover label .level-2, .multiselectInputWrap:hover label .level-3, .multiselectInputWrap:hover label .level-4, .multiselectInputWrap:hover label .level-5, .multiselectInputWrap:hover label .level-6, .multiselectInputWrap:hover label .level-7  { background: #f7f7f7; }
.multiselectInputWrap.checked:hover label .level-1, .multiselectInputWrap.checked:hover label .level-2, .multiselectInputWrap.checked:hover label .level-3, .multiselectInputWrap.checked:hover label .level-4, .multiselectInputWrap.checked:hover label .level-5, .multiselectInputWrap.checked:hover label .level-6, .multiselectInputWrap.checked:hover label .level-7 { background: #e0ffe0; }
.multiselectInputWrap label .disabled { background: #ffe0e0; }
.multiselectInputWrap label .disabled i { font-size: 0.6em; color: #999; }
.multiselectInputWrap label .note { font-size: 0.6em; color: #999; }

.multiselectInputInfo { display: none; }


/* --- řazení --------------------------------------------------------------- */
.orderWrap { line-height: 30px; vertical-align: middle; background-color: #f6f6f6; border: 1px solid #d2d2d2; margin: 13px 0; padding: 5px 17px;
  border-radius: 5px;
}
.orderWrap a { line-height: 22px; padding: 0 12px 2px; vertical-align: middle; color: #888 !important; font-weight: bold; text-decoration: none; display: inline-block; border-radius: 4px; margin: 2px 0 2px 5px; }
.orderWrap a:hover { text-decoration: underline; }
.orderWrap a.active { color: #0a0 !important; }

.orderWrap .more { display: none; }
.orderWrap.collapsed a.active { display: inline-block; }
.orderWrap.collapsed a { display: none; }
.orderWrap.collapsed { position: relative; }
.orderWrap.collapsed .more { position: absolute; top: 13px; right: 18px; display: inline-block; cursor: pointer; line-height: 14px; opacity: 0.6; }
.orderWrap.collapsed .more:hover { opacity: 1; }
.orderWrap.collapsed .more:after { content: ' \25BC'; display: inline; }
/* obsah ve výpisu kategorií mezi kategoriemi */
.orderWrap.h4 { margin-top: -5px; border-top-left-radius: 0; border-top-right-radius: 0; margin-left: -5px; margin-right: -5px; }

div.orderWrap+div.productContent { margin-top: -15px; }
#contentBox .order a.active { font-weight: bold; color: #ec008c !important; }


/* --- hodnocení ------------------------------------------------------------ */
.votes {
  display: inline-block;
  box-sizing: content-box;
  width: 80px;
}
.votes>div {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 20%; /* 5:1 */
}    
.votes>div>div {
  position: absolute;
  width: 100%;
  height: 100%;
  background: url("/img/star-gray.png") repeat-x transparent;
  background-size: contain;
}
.votes>div>div>div {
  position: absolute;
  height: 100%;
  background: url("/img/star.png") repeat-x transparent;
  background-size: contain;
}

.votesWrap .percent {
  color: $color-gold-dark;
  font-size: 1.2rem;
  font-weight: bold;
  vertical-align: top;
  line-height: inherit;
  padding-left: 0.4rem;
  position: relative;
  top: -0.1rem;
}

.votes-big { width: 100px; margin-bottom: -2px; }


/* --- taby ----------------------------------------------------------------- */
.tabs { }
.tabBar { border-bottom: 1px solid #aaa; padding: 0 10px; font-size: 15px; margin: 5px 0 10px 0; }
.tabBar .tab {
  border: 1px solid #aaa; border-bottom: 1px solid #aaa; border-top-left-radius: 4px; border-top-right-radius: 4px;
  background: #e5e5e5;
  position: relative; top: 1px;
  display: inline-block;
  padding: 3px 8px; 
  margin: 5px 4px 0;
  line-height: 30px; height: 30px;
  color: #666;
  text-decoration: none;
  transition: border-color 0.15s ease-in-out; 
}
.tabBar .tab:hover { text-decoration: none; background: linear-gradient(to bottom, rgba(245,245,245,1) 0%,rgba(255,255,255,0) 100%); border-bottom: 1px solid #ccc; }
.tabBar .tab:active, .tabBar .tab.active { background: linear-gradient(to bottom, rgba(245,245,245,1) 0%,rgba(255,255,255,0) 100%); border-bottom: 1px solid #e5e5e5; color: #37558e; }
.tabBar .tab.disabled, .tabBar .tab.disabled:hover { background: #e5e5e5 !important; color: #999 !important; border-color: #aaa; cursor: auto; border-bottom: 1px solid #aaa; } 


/* --- našeptávač ----------------------------------------------------------- */
#searchHelper {
  display: none; position: absolute; z-index: 9999; /* defaultně je skytý, zobrazuje se až při načtení dat */ 
  background-color: #fff;
  overflow: hidden;
  border-radius: 5px;
  border-color: #37558e;
  -webkit-box-shadow: 0 0 10px rgba(0,0,0,0.5);
  -moz-box-shadow: 0 0 10px rgba(0,0,0,0.5);
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
}
#searchHelper ul { padding: 0; margin: 0 0 5px 0; }
#searchHelper ul li {  margin: 0; background: none; padding: 0; font-size: 0.8rem; line-height: 1rem; }
#searchHelper ul li.darkRedB { background-color: #ffc0c0; }
#searchHelper ul li.redB { background-color: #ffe0e0; }
#searchHelper ul li.disabled { color: #999; }

/* univerzalni refaktoring */
.searchHelper {
  display: none; position: absolute; z-index: 9999; /* defaultně je skytý, zobrazuje se až při načtení dat */ 
  background-color: #fff;
  overflow: hidden;
  border-radius: 5px;
  border-color: #37558e;
  -webkit-box-shadow: 0 0 10px rgba(0,0,0,0.5);
  -moz-box-shadow: 0 0 10px rgba(0,0,0,0.5);
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
}
.searchHelper ul { padding: 0; margin: 0 0 5px 0; }
.searchHelper ul li {  margin: 0; background: none; padding: 0; font-size: 0.8rem; line-height: 1rem; }
.searchHelper ul li.darkRedB { background-color: #ffc0c0; }
.searchHelper ul li.redB { background-color: #ffe0e0; }
.searchHelper ul li.disabled { color: #999; }
/* end - univerzalni refaktoring */


.nextRow { width: 100%; border-top: 1px solid #d2d2d2; }
.searchProds { display: block; float: right; width: 349px; }
.searchProds { padding: 0; margin: 0 0 0 -1px; }
.searchProds ul li a { display: block; padding: 2px 8px 2px 0; height: 60px; text-decoration: none; cursor: pointer; border-bottom: rgba(0,0,0,0.04); }
.searchProds ul li a.noImg { padding-left: 10px; } 
.searchProds ul li a:hover { background-color: rgba(0,0,0,0.04); }
.searchProds ul li:last-child { margin-bottom: 5px; }
.searchProds span.name { padding: 8px 0 6px 0; font-size: 1rem; line-height: 20px; display: block; height: 18px; overflow: hidden; text-decoration: underline; }
.searchProds span.img { float: left; width: 60px; height: 60px; text-align: center; display: block; }
.searchProds span.img img { position: relative; top: 5px; }
.searchProds ul li a p { text-decoration: none !important; color: #666; padding: 10px 0 0 0; display: block; }
.searchProds ul li a p .price { word-spacing: -2px; }
.searchProds ul li a p .price span { padding-left: 2px; }


/* --- příslušenství -------------------------------------------------------- */
.hoverBox { padding: 0; border: 1px solid #aaa; position: relative; display: inline-block; overflow: hidden; border-radius: 4px; }
.hoverBox .actionLabel { display: none; }
.hoverBox:hover .actionLabel { display: block; position: absolute; top: 0; right: 0; left: 0; background-color: #fee; padding: 2px; border-bottom: 1px solid #aaa; }
.hoverBox:hover .actionLabel:hover { background-color: #faa; }
.hoverBox.disabled { border: 3px solid #f33; }


/* --- obrázkový label k checkboxům ----------------------------------------- */
.checkboxImage { z-index: 10; visibility: hidden; position: absolute; }
.checkboxImage+label { color: #999; z-index: 9; cursor: pointer; }
.checkboxImage+label img { opacity: 0.3; filter: grayscale(100%); }
.checkboxImage+label:hover img { opacity: 0.55; }
.checkboxImage:checked+label img { opacity: 1; filter: grayscale(0%); }


/* --- tooltipy ------------------------------------------------------------- */
.loading { position: relative; }
.loading:before { position: absolute; content: ''; display: block; z-index:100; top: 0; left: 110%; width: 40px; height:40px; background: url('../img/loading.gif') no-repeat transparent 0 center; background-size: 40px 40px; }
.tooltipContent {
  display: none; position: absolute; z-index: 9999; /* defaultně je skytý, zobrazuje se až při načtení dat */ 
  background-color: #fff;
  overflow: hidden;
  border-radius: 5px;
  border-color: #37558e;
  -webkit-box-shadow: 0 0 10px rgba(0,0,0,0.5);
  -moz-box-shadow: 0 0 10px rgba(0,0,0,0.5);
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
}


/* --- multiselectTiles - multiselect dlaždice ------------------------------ */
#relatedSearchWrap, #relatedSearchResultsWrap, #relatedShopSearchWrap, #relatedShopSearchResultsWrap, #relatedTagSearchWrap, #relatedTagSearchResultsWrap { position: relative; display: block; max-width: 1100px; }
.multiselectTiles { position: relative; float: left; width: 255px; height: 86px; margin: 5px; overflow: hidden; border: 1px solid #bbb; z-index: 1; border-radius: 4px; background: #fff; }
.multiselectTiles.cell { width: 140px; height: 165px; }
.multiselectTiles input[type=checkbox] { position: absolute; visibility: hidden; }
.multiselectTiles label { width: 100%; height: 100%; padding: 0 !important; margin: 0 !important; display: block; cursor: pointer; z-index: 5; position: relative; }
.multiselectTiles label:after { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.07); content:''; }
.multiselectTiles label>.in { padding: 5px 5px 0 7px; display: block; width: 100%; height: 100%; box-sizing: border-box; }

.multiselectTiles h4 { line-height: 23px; font-size: 15px; padding: 0; margin: 0; }
.multiselectTiles.cell h4 { text-align: center; font-size: 12px; line-height: 15px; height: 50px; display: flex; align-items: center; justify-content: center; }
.multiselectTiles.cell.product h4 { font-weight: normal; }
.multiselectTiles .relatedDesc { font-size: 10px; line-height: 18px; width: 100%; display: inline-block; }
.multiselectTiles .relatedImg { display: block; }
.multiselectTiles .relatedImg img { z-index: -1; }
.multiselectTiles.cell .imgWrap { height: 105px; margin: 0 auto; }
.multiselectTiles.cell .imgWrap .in .dummy, .multiselectTiles.cell .imgWrap .in img { max-height: 105px; }
.multiselectTiles:hover label:after {  background-color: rgba(0,0,0,0.03); }
.multiselectTiles.checked:hover label:after { background-color: rgba(0,255,0,0.09); }
.multiselectTiles.checked label:after { background-color: rgba(0,255,0,0.09); }

.multiselectTiles.category label:before { content: ''; position: absolute; top: 0; right: 0; border-color: transparent; border-style: solid; }
.multiselectTiles.category label:before { border-radius: 0; border-width: 16px; border-right-color: #eee; border-top-color: #eee; }
.multiselectTiles.checked.category label:before { border-right-color: #cec; border-top-color: #cec; }


/* --- dlaždice - např. pro manuály ----------------------------------------- */
.multiselectTiles.manual {
  width: auto;
  height: auto;
  text-align: center;
}
.multiselectTiles.manual .in {
  padding: 5px 5px 10px 7px;
}
.multiselectTiles.manual h5 {
  max-width: 110px;
  margin-left: auto;
  margin-right: auto;
}
#manualSearchResultsWrap .manual h5 {
 max-width: 130px;
}

.multiselectTiles.manual img {
  max-height: 120px;
  max-width: 150px;
  width: auto;
  height: auto;
}
.closeButton { display: block; position: absolute; right: 4px; top: 4px; width: 23px; height: 23px; background: url("../img/icon-delete-23.png") transparent no-repeat; transform: scale(0.7); cursor: pointer; }
.printButton { display: block; position: absolute; left: 4px; top: 3px; width: 24px; height: 24px; background: url("../img/icon-print-24.png") transparent no-repeat; transform: scale(0.7); cursor: pointer; }
.printButton.big { display: block; position: absolute; left: auto; right: -18px; top: -18px; width: 36px; height: 36px; background: url("../img/icon-print-24.png") rgb(227, 255, 204) no-repeat center center; transform: scale(0.8); cursor: pointer; border-radius: 20px; border: 2px solid rgb(87, 153, 17); }

 

/* --- tinymce -------------------------------------------------------------- */
.mce-tinymce { box-shadow: none !important; border-radius: 3px !important; border-color: #aaa !important; overflow: hidden !important; }
.mce-stack-layout { border-radius: 3px !important; border-color: #888 !important; }
.mce-branding-powered-by, .mce-branding { display: none !important; }



/* --- klávesnice ----------------------------------------------------------- */
#enterBarcode_keyboard .ui-keyboard-accept, div[id^='keyboardMock_'] .ui-keyboard-accept { min-width: 7.3rem !important; }
#enterBarcode_keyboard .ui-keyboard-button, div[id^='keyboardMock_'] .ui-keyboard-button { height: 3.5rem; min-width: 3.5rem; margin: 0.15rem; line-height: 3.5rem; font-size: 1.5rem; }
.ui-keyboard-input-current { box-shadow: none !important; }
#searchProduct_keyboard .ui-keyboard-button { height: 2.2rem; min-width: 2.2rem; margin: 0.15rem; line-height: 2rem; font-size: 1.2rem; margin: 0.2rem; }

input.keyboardMock { background: url('../img/icon-keyboard.png') no-repeat center #d4d4d4; background-size: contain; width: 30px; height: 25px; box-sizing: border-box; }
input.keyboardMock[data-layout='amount'] { }
.ui-keyboard-preview-wrapper input.keyboardMock { background: #fff; width: 180px; height: auto; top: 0 !important; font-size: 1.5rem !important; line-height: 2rem !important; }


/* --- zprávy --------------------------------------------------------------- */
.msgBox { border-radius: 5px; padding: 10px 15px; border: 1px solid #aaa; background-color: #eee; }
.msgBox.ok { border: 1px solid #cfc; background-color: #a0a; }
.msgBox.error { border: 1px solid #f77; background-color: #ffe0e0; }



/* --- jquery ui sortable --------------------------------------------------- */
.ui-draggable-handle {
	-ms-touch-action: none;
	touch-action: none
}
.ui-helper-hidden {
	display: none
}
.ui-helper-hidden-accessible {
	border: 0;
	clip: rect(0 0 0 0);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px
}
.ui-helper-reset {
	margin: 0;
	padding: 0;
	border: 0;
	outline: 0;
	line-height: 1.3;
	text-decoration: none;
	font-size: 100%;
	list-style: none
}
.ui-helper-clearfix:before, .ui-helper-clearfix:after {
	content: "";
	display: table;
	border-collapse: collapse
}
.ui-helper-clearfix:after {
	clear: both
}
.ui-helper-zfix {
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	position: absolute;
	opacity: 0;
	filter: Alpha(Opacity=0)
}
.ui-front {
	z-index: 100
}
.ui-state-disabled {
	cursor: default!important;
	pointer-events: none
}
.ui-icon {
	display: inline-block;
	vertical-align: middle;
	margin-top: -.25em;
	position: relative;
	text-indent: -99999px;
	overflow: hidden;
	background-repeat: no-repeat
}
.ui-widget-icon-block {
	left: 50%;
	margin-left: -8px;
	display: block
}
.ui-widget-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%
}
.ui-resizable {
	position: relative
}
.ui-sortable-handle{
  -ms-touch-action:none;
  touch-action:none;
}
.ui-state-highlight td {
  border-left: none !important;
  border-right: none;
  border-top: none;
  border-bottom: 1px solid #37558e; 
}
.ui-sortable-helper>td {
  border-top: 1px solid #37558e;
}
.handle { position: absolute; top: 0; height: 100%; left: -6px; width: 1px; border-left: 6px solid #ccc; border-top-left-radius: 5px; border-bottom-left-radius: 5px; opacity: 0.5; display: block; opacity: 0; cursor: move; }
tr:hover td>div.handle { opacity: 1; }  


/* --- shame - ostatní, různé přepisy a nevím co je ------------------------- */
#id_transfer_type_branch_selector { min-width: 350px; } /* výběr pobočky u doprace s pobočkovou sítí */

/* kontexty pro defaultní obrázky produktů */
.default-picture-detail { position: absolute; bottom: -120px; left: 0; width: 150px; text-align: center; display: none; } /* obrázek na detailu produktu */
.default-picture-table { text-align: center; display: none; } /* obrázek v tabulce */

#productInfo p { padding-bottom: 10px; }
#productInfo a { text-decoration: underline; color: #333; }
