body, input, textarea, select, button {
  font-family: Arial, Helvetica, sans-serif;
}

.infoBox {
  border: thin solid #999999;
  padding: 20px;
  margin: 20px auto;
  border-radius: 10px;
}

.workUnitHistoryInfoBox {
  --border-left: thin solid #999999;
  padding-left: 5px;
  margin: 0px auto;
  --border-radius: 10px;
}

.loginBox {
  border: thin solid #999999;
  padding: 20px;
  margin: 20px auto;
  width: 450px;
  --margin-top: 20px;
  --margin-left: 0px;
  border-radius: 10px;
  --min-height: 290px;
}

.clearfix {
	clear: both;
}

.timeBox {
  width: 70px;
  height: 33px;
  line-height: 33px;
  float: left;
  text-align: center;
  box-sizing: border-box;
}

.timeBoxShort {
  width: 70px;
  height: 17px;
  line-height: 17px;
  float: left;
  text-align: center;
  box-sizing: border-box;
}

.workUnitColumnHeader {
  width : 170px;
  height : 40px;
  float : left;
  text-align: center;
  font-size: 12pt;
  margin-right: 6px;
  --padding-top: 3px;
  --padding-bottom: 3px;
}

.calendarHeaderRow {
  background: white;
  z-index: 50;
}

.calendarHeaderRow.is-sticky {
  position: fixed;
  top: 0;
  z-index: 50;
  background: white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.roomHeaderBt {
  background-color: var(--room-bg, #c8f0c8);
  border: 1px solid var(--room-border, #7acc7a);
  color: var(--room-text, #1f2d3d);
  cursor: pointer;
  font-weight: bold;
}

.roomHeaderBt:hover {
  background-color: var(--room-hover, #aee8ae);
}

.workUnit {
  width : 170px;
  height : 33px;
  float : left;
  text-align: center;
  border: 1px solid grey;
  margin-right: 6px;
  --white-space: normal;
}

.workUnitShort {
  width : 170px;
  height : 17px;
  float : left;
  text-align: center;
  border: 1px solid grey;
  margin-right: 6px;
}

.workUnitDef {
  width : 170px;
  height : 33px;
  float : left;
  text-align: center;
  font-size: 1.5em;
  border: 1px solid grey;
  margin-right: 6px;
}

.workUnitFreeText
{
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 110px !important;
  min-height: 110px !important;
  max-height: 110px !important;
  box-sizing: border-box !important;
}

.btDefaultWidth
{
	margin-left:10px;
	width:200px;
}

.btBackToMainPage
{
	margin-left:10px;
	width:200px;
	background-color: #c8d0d8;
	color: #333;
}

.btDelete
{
	background-color: #d9534f;
	color: white;
}

.btDelete:hover
{
	background-color: #b52b27;
}

.btCancelLogoffColor
{
	background-color: #ff6663;
	color: white;
}

/*	
.myList
{
  list-style-type:decimal;
}


.centeredBlock {
  display: block;
  margin: 0 auto;
  width: auto;
}


.infoVLine {
  border-bottom: thin solid #999999;
  padding-top: 20px;
  padding-bottom: 20px;
}

*/

/*********************************************************************************/
/* Modal dialog                                                                         */
/*********************************************************************************/

/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 100;
    padding-top: 10px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

.modal-header {
    padding: 20px 20px;
    background-color: #5cb85c;
    background-color: var(--th-header, #5cb85c); /* barva horniho pruhu podle palety uzivatele */
    color: white;
}

/* Modal Content */
.modal-content {
    background-color: #fefefe;
    margin: 10px auto;
    padding: 20px;
    border: 1px solid #888;
    width: fit-content;
    max-width: 96vw;
}

/* The Close Button */
.close {
    color: #ffffff;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 640px) {
    .loginBox {
        width: 95%;
        max-width: 450px;
        box-sizing: border-box;
    }
    .infoBox {
        margin: 8px;
        padding: 12px;
    }
    .btDefaultWidth,
    .btBackToMainPage {
        width: 160px;
        margin-left: 4px;
    }
}

/*********************************************************************************/
/* Telefon (uzky displej do 767 px) - kalendar a prihlaseni                      */
/*********************************************************************************/
/* Plati jen na strankach, kde skript nastavi tridu na <html>: "mob" = stranka je  */
/* pripravena na telefon (prihlaseni, kalendar), "mobcal" = kalendar v rezimu      */
/* objednavani. Ostatni stranky (nastaveni, statistiky...) a tablet a pocitac      */
/* zustavaji beze zmeny. Zobrazeny sloupec kalendare (ordinace, v tydennim pohledu */
/* den) je v atributu data-mcol na <html>, viz mobCalSetCol v usercalendar.php.    */

#mobTop,
.psMobBar {
    display: none;
}

@media (max-width: 767px) {
    html.mob .container {
        width: auto;
    }
    html.mob #header-wrapper {
        padding: 0.5em 0;
    }
    html.mob #logo {
        width: auto;
    }
    html.mob #logo h1 {
        font-size: 1.6em;
    }
    html.mob #page {
        border-radius: 0;
        padding-bottom: 1em;
    }
    html.mob #content {
        border: none;
        padding: 0 12px;
    }

    /* prihlaseni */
    html.mob .loginBox {
        margin: 14px auto;
        padding: 16px;
    }
    html.mob .pinKey,
    html.mob #pinClearBt,
    html.mob #pinBackspaceBt {
        padding: 16px 0;
    }

    /* kalendar: misto zahlavi stranky, nastrojove listy a zahlavi sloupcu vlastni horni listy (#mobTop) */
    html.mobcal #header-wrapper,
    html.mobcal .calToolbar,
    html.mobcal .calendarHeaderRow,
    html.mobcal .calendarHeaderRowPlaceholder,
    html.mobcal .calendarHeaderRow + br,
    html.mobcal .calendarHeaderRowPlaceholder + br {
        display: none !important;
    }
    html.mobcal #page {
        overflow: visible; /* overflow:hidden by vyradil prilepeni hornich list (position:sticky) */
        padding-bottom: 24px;
    }
    html.mobcal #content {
        padding: 0 16px 0 0; /* mezera vpravo, aby kalendar nekoncil az na okraji displeje (pusobilo to jako preteceni) */
    }
    html.mobcal #mobTop {
        display: block;
        position: -webkit-sticky;
        position: sticky;
        top: 0;
        z-index: 60;
        margin: 0 -16px 8px 0; /* horni listy dal pres celou sirku */
        background: #fff;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
    }

    html.mobcal .mobAppbar {
        display: flex;
        align-items: center;
        height: 48px;
        padding: 0 4px;
        background: #777;
        color: #fff;
    }
    html.mobcal .mobTitle {
        flex: 1;
        min-width: 0;
        text-align: center;
        font-size: 15px;
        font-weight: bold;
        letter-spacing: 0.1em;
        line-height: 1.2;
        text-transform: uppercase;
    }
    html.mobcal .mobWho {
        display: block;
        font-size: 10px;
        font-weight: normal;
        letter-spacing: 0.04em;
        text-transform: none;
        opacity: 0.85;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    html.mobcal .mobIconBtn {
        flex: none;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        padding: 0;
        border: 0;
        border-radius: 10px;
        background: transparent;
        color: inherit;
        cursor: pointer;
        -webkit-appearance: none;
        appearance: none;
    }
    html.mobcal .mobIconBtn svg {
        display: block;
    }
    html.mobcal .mobLogoutForm {
        flex: none;
        margin: 0;
    }
    html.mobcal .mobLogout {
        height: 34px;
        padding: 0 12px;
        margin-right: 4px;
        border: 1px solid rgba(255, 255, 255, 0.6);
        border-radius: 17px;
        background: transparent;
        color: #fff;
        font-size: 13px;
        cursor: pointer;
        -webkit-appearance: none;
        appearance: none;
    }

    html.mobcal .mobDatebar {
        display: flex;
        align-items: center;
        height: 48px;
        margin: 0;
        padding: 0 4px;
        background: #fff;
        color: #363636;
        border-bottom: 1px solid #dcdcdc;
    }
    html.mobcal .mobDate {
        position: relative;
        flex: 1;
        min-width: 0;
        text-align: center;
        font-size: 16px;
        font-weight: bold;
        line-height: 1.2;
        cursor: pointer;
    }
    html.mobcal .mobDate small {
        display: block;
        font-size: 11px;
        font-weight: normal;
        color: #7b8794;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    /* nativni vyber data pres cely popisek data - tuknutim na datum se otevre kalendar telefonu */
    html.mobcal .mobDatePick {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        margin: 0;
        padding: 0;
        border: 0;
        opacity: 0;
        font-size: 16px; /* mensi pismo by na iPhonu pri tuknuti priblizilo stranku */
        cursor: pointer;
        -webkit-appearance: none;
        appearance: none;
    }
    html.mobcal .mobPill {
        flex: none;
        height: 34px;
        padding: 0 14px;
        margin-right: 4px;
        border: 1px solid #b9c2cc;
        border-radius: 17px;
        background: #fff;
        color: #363636;
        font-size: 13px;
        cursor: pointer;
        -webkit-appearance: none;
        appearance: none;
    }
    html.mobcal .mobPill.on {
        background: #3cb371;
        border-color: #2f9d5f;
        color: #fff;
        font-weight: bold;
    }

    html.mobcal .mobRoombar {
        display: flex;
        align-items: center;
        padding: 7px 8px;
        background: #f4f7fa;
        border-bottom: 1px solid #d3d8e0;
    }
    html.mobcal .mobChips {
        position: relative;
        display: flex;
        flex: 1;
        min-width: 0;
        overflow-x: auto;
        padding: 6px 4px 4px 0;
        margin: -6px 0 -4px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    html.mobcal .mobChips::-webkit-scrollbar {
        display: none;
    }
    html.mobcal .mobChip {
        position: relative;
        flex: 0 0 auto;
        height: 38px;
        padding: 0 10px;
        border: 1px solid #b9c2cc;
        border-radius: 19px;
        background: #fff;
        color: #363636;
        font-size: 13.5px;
        cursor: pointer;
        -webkit-appearance: none;
        appearance: none;
    }
    html.mobcal .mobChip + .mobChip {
        margin-left: 5px;
    }
    html.mobcal .mobChip[aria-pressed="true"] {
        background: #3cb371;
        border-color: #2f9d5f;
        color: #fff;
        font-weight: bold;
    }
    html.mobcal .mobBadge {
        position: absolute;
        top: -5px;
        right: -4px;
        min-width: 17px;
        height: 17px;
        line-height: 17px;
        padding: 0 4px;
        border: 2px solid #f4f7fa;
        border-radius: 9px;
        box-sizing: content-box;
        background: #e0554e;
        color: #fff;
        font-size: 10px;
        font-weight: bold;
        text-align: center;
    }
    html.mobcal .mobDocForm {
        display: flex;
        align-items: center;
        flex: 1;
        min-width: 0;
        margin: 0;
        font-size: 13px;
        color: #5a6b7a;
    }
    html.mobcal .mobDocForm select {
        flex: 1;
        min-width: 0;
        height: 38px;
        margin-left: 8px;
        border: 1px solid #b9c2cc;
        border-radius: 8px;
        background: #fff;
        font-size: 16px;
    }

    /* jeden sloupec kalendare, radek 15 minut = 36 px */
    html.mobcal .timeBox,
    html.mobcal .timeBoxShort {
        width: 50px;
        padding-right: 8px;
        text-align: right;
        font-size: 12px;
        color: #7b8794;
    }
    html.mobcal .timeBox {
        height: 36px;
        line-height: 36px;
    }
    html.mobcal .tbHour {
        font-weight: bold;
        color: #363636;
    }
    html.mobcal .mcell {
        display: none;
    }
    /* sloupce 1 az 8 (ordinace, v tydennim pohledu dny); bez atributu (selhany skript) aspon prvni */
    html.mobcal:not([data-mcol]) .mc1,
    html.mobcal[data-mcol="1"] .mc1,
    html.mobcal[data-mcol="2"] .mc2,
    html.mobcal[data-mcol="3"] .mc3,
    html.mobcal[data-mcol="4"] .mc4,
    html.mobcal[data-mcol="5"] .mc5,
    html.mobcal[data-mcol="6"] .mc6,
    html.mobcal[data-mcol="7"] .mc7,
    html.mobcal[data-mcol="8"] .mc8 {
        display: block;
    }
    html.mobcal .workUnit,
    html.mobcal .workUnitShort {
        width: calc(100% - 50px);
        margin-right: 0;
        box-sizing: border-box;
        padding: 1px 10px;
        border-radius: 0;
        text-align: left;
        font-size: 14px;
        color: #000;
        -webkit-appearance: none;
        appearance: none;
    }
    html.mobcal .workUnit {
        height: 36px;
    }
    html.mobcal .workUnit strong,
    html.mobcal .workUnitShort strong {
        display: block;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* hledani pacienta pres celou obrazovku */
    html.mobcal #patientSearchDialog {
        background: #fff !important;
    }
    html.mobcal .psBox {
        width: auto !important;
        height: 100%;
        max-height: none !important;
        margin: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }
    html.mobcal .psHead {
        display: none !important;
    }
    html.mobcal .psMobBar {
        display: flex;
        align-items: center;
        flex: none;
        padding: 8px 4px 10px 10px;
        background: #777;
    }
    html.mobcal .psMobBar input {
        flex: 1;
        min-width: 0;
        height: 44px;
        box-sizing: border-box;
        padding: 0 12px;
        border: 1px solid #b0c4de;
        border-radius: 8px;
        background: #eef3ff;
        color: #000;
        font-size: 16px; /* mensi pismo by na iPhonu pri psani priblizilo stranku */
        -webkit-appearance: none;
        appearance: none;
    }
    html.mobcal .psMobGo {
        flex: none;
        height: 44px;
        padding: 0 14px;
        margin-left: 6px;
        border: 0;
        border-radius: 8px;
        background: #4a7cc7;
        color: #fff;
        font-size: 15px;
        font-weight: bold;
        cursor: pointer;
        -webkit-appearance: none;
        appearance: none;
    }
    html.mobcal .psMobBar .mobIconBtn {
        margin-left: 2px;
        color: #fff;
    }
    html.mobcal #patientSearchResults {
        max-height: none !important;
    }
    html.mobcal .searchResultRow {
        padding: 11px 14px !important;
    }
    html.mobcal .psHint {
        padding: 14px;
        font-size: 13px;
        line-height: 1.5;
        color: #7b8794;
    }
}

/*********************************************************************************/
/* Telefon - karta rezervace (dialog addWorkUnitDialog v usercalendar.php)        */
/*********************************************************************************/
/* Pres celou obrazovku, jeden sloupec, pole 48 px s pismem 16 px (iPhone pri      */
/* psani stranku nepriblizi), Historie navstev / E-maily pacienta / Zakladni       */
/* informace jako rozbalovaci sekce, tlacitka dole. Schovane prvky (Editovat       */
/* udaje, Tisk QR platby, omluven, neprisel, urgentni) se pri ulozeni posilaji     */
/* beze zmeny. Tridy wu* jsou v dialogu, cv* posila ajaxgetcustomervisits.php,     */
/* pm* a wrGrid pridava skript (displayPatientEmails, displayWebRequest).          */

.wuMobHead,
.wuMobOnly {
    display: none;
}

@media (max-width: 767px) {
    html.mobcal #addWorkUnitDialog {
        padding-top: 0;
        overflow: hidden;
        background: #fff;
    }
    html.mobcal #addWorkUnitDialog .wuContent {
        width: 100% !important;
        max-width: none !important;
        height: 100%;
        max-height: none !important;
        margin: 0;
        padding: 0;
        border: 0;
        overflow-y: auto !important;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        color: #1f2d3d;
    }

    /* zelena hlavicka: jmeno lekare, pod nim ordinace, den a cas; vpravo zavrit */
    html.mobcal #addWorkUnitDialog .modal-header {
        position: -webkit-sticky;
        position: sticky;
        top: 0;
        z-index: 10;
        display: flex;
        align-items: flex-start;
        padding: 8px 4px 10px 16px;
    }
    html.mobcal #addWorkUnitDialog_title {
        display: none;
    }
    html.mobcal .wuMobHead {
        display: block;
        flex: 1;
        min-width: 0;
        padding-top: 4px;
    }
    html.mobcal #wuMobTitle {
        display: block;
        font-size: 18px;
        line-height: 1.25;
    }
    html.mobcal #wuMobSub {
        display: block;
        margin-top: 2px;
        font-size: 12.5px;
        opacity: 0.95;
    }
    html.mobcal #addWorkUnitDialog_CloseBt {
        order: 2;
        flex: none;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        float: none;
        color: #fff;
        font-size: 30px;
        line-height: 1;
    }

    /* jeden sloupec; poradi: pripominka, delka, jmeno, telefon, e-mail, poznamka, typ vykonu, barvy, SMS */
    html.mobcal .wuRow {
        flex-direction: column;
        align-items: stretch !important;
        gap: 0 !important;
        margin-top: 0 !important;
        padding: 14px 16px 100px;
    }
    html.mobcal .wuMain,
    html.mobcal .wuSide {
        display: flex;
        flex-direction: column;
        flex: none !important;
        width: auto !important;
        max-width: none !important;
        min-width: 0 !important;
    }
    html.mobcal .wuMain > * {
        order: 5;
    }
    html.mobcal .wuColors {
        order: 6;
    }
    html.mobcal .wuChecks {
        order: 7;
    }
    html.mobcal .wuActions {
        order: 8;
    }
    html.mobcal .wuWhenRow,
    html.mobcal .wuMobHide,
    html.mobcal #addWorkUnitDialog_editCustomerBt,
    html.mobcal .wuMain > br,
    html.mobcal .wuDeskOnly {
        display: none !important;
    }

    html.mobcal .wuDurRow {
        margin-bottom: 16px !important;
    }
    html.mobcal .wuDurRow button {
        height: 42px;
        padding: 0 !important;
        border-radius: 8px !important;
        font-size: 14px !important;
    }
    html.mobcal .wuFld {
        flex-direction: column;
        align-items: stretch !important;
        margin-bottom: 12px !important;
    }
    html.mobcal .wuFldLabel,
    html.mobcal .wuMobLabel {
        display: block;
        min-width: 0 !important;
        margin-bottom: 4px;
        font-size: 12.5px !important;
        color: #5a6b7a;
    }
    html.mobcal .wuFld input {
        flex: none !important;
        height: 48px;
        box-sizing: border-box;
        padding: 0 12px !important;
        border-radius: 8px !important;
        font-size: 16px !important;
    }
    /* existujici pacient: udaje jen ke cteni (tlacitko Editovat udaje na telefonu neni) */
    html.mobcal .wuFld input:disabled {
        opacity: 1;
        color: #1f2d3d;
        -webkit-text-fill-color: #1f2d3d;
        background: #f6f2df !important;
    }
    html.mobcal #addWorkUnitDialog_freeText {
        height: 84px !important;
        min-height: 84px !important;
        max-height: none !important;
        margin-bottom: 12px;
        padding: 10px 12px;
        border: 1px solid #767676;
        border-radius: 8px;
        font-size: 16px !important;
        resize: none;
    }
    html.mobcal #addWorkUnitDialog_procedureType {
        height: 48px !important;
        margin: 0 0 14px !important;
        padding: 0 12px !important;
        border: 1px solid #767676;
        border-radius: 8px;
        font-size: 16px !important;
    }
    html.mobcal .wuColors {
        margin: 2px 0 12px !important;
    }
    html.mobcal .wuColor {
        display: inline-flex;
        align-items: center;
        height: 40px;
        box-sizing: border-box;
        padding: 0 12px !important;
        border-radius: 20px !important;
        font-size: 13.5px !important;
    }
    html.mobcal .wuColor input {
        width: 18px;
        height: 18px;
        margin: 0 6px 0 0;
    }
    html.mobcal .wuChecks {
        display: block !important;
        margin: 0 0 12px !important;
        font-size: 15px !important;
        color: #1f2d3d !important;
    }
    html.mobcal #addWorkUnitDialog_sendSmsContainer {
        display: flex;
        align-items: center;
        min-height: 50px;
        border-top: 1px solid #eee;
        border-bottom: 1px solid #eee;
    }
    html.mobcal #addWorkUnitDialog_sendSmsContainer input {
        width: 22px;
        height: 22px;
        margin: 0 12px 0 0;
    }
    html.mobcal #addWorkUnitDialog_sendSmsContainer label {
        flex: 1;
        padding: 14px 0;
    }
    /* naseptavac jmen pacientu (jQuery UI autocomplete) - radky dost vysoke pro prst */
    html.mobcal .ui-autocomplete .ui-menu-item-wrapper {
        padding: 11px 12px;
        font-size: 15px;
    }

    /* tlacitka dole pod palcem; nova rezervace jen "Rezervovat" */
    html.mobcal .wuActions {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 20;
        display: flex;
        padding: 10px 12px 14px;
        background: #fff;
        border-top: 1px solid #e0e0e0;
        box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
    }
    html.mobcal .wuActions input {
        flex: 1;
        min-width: 0;
        height: 52px !important;
        margin: 0;
        padding: 0 !important;
        float: none !important;
        border: 0;
        border-radius: 8px;
        font-size: 15px;
        -webkit-appearance: none;
        appearance: none;
    }
    html.mobcal .wuActions input + input {
        margin-left: 10px;
    }
    html.mobcal #addWorkUnitDialog_CancelBt {
        background-color: #ff6663 !important; /* bez sede barvy po tuknuti (input[type=submit]:hover z default.css) */
    }
    html.mobcal #addWorkUnitDialog.wuIsNew #addWorkUnitDialog_CancelBt {
        display: none;
    }

    /* rozbalovaci sekce: Historie navstev, E-maily pacienta (jen s e-mailem), Zakladni informace (jen s pozadavkem z webu) */
    html.mobcal .wuSide {
        margin-top: 8px !important;
    }
    html.mobcal .wuNoPatientNote {
        order: 0;
        margin: 4px 0 0;
        padding: 10px 2px;
        font-size: 12.5px;
        line-height: 1.5;
        font-style: italic;
        color: #9aa5b1;
    }
    html.mobcal #addWorkUnitDialog.wuNoPatient .wuNoPatientNote {
        display: block;
    }
    html.mobcal #addWorkUnitDialog.wuNoPatient .wuSecHist {
        display: none !important;
    }
    html.mobcal .wuSecHist {
        order: 1;
    }
    html.mobcal .wuSecMail {
        order: 2;
    }
    html.mobcal .wuSecWeb {
        order: 3;
    }
    html.mobcal .wuSec {
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        border-top: 1px solid #e3e6ea !important;
        border-radius: 0 !important;
        background: none !important;
    }
    html.mobcal .wuSecHead {
        display: flex !important;
        align-items: center;
        min-height: 52px;
        margin: 0 !important;
        padding: 0 !important;
        border-bottom: 0 !important;
        cursor: pointer;
    }
    html.mobcal .wuSecTitle {
        display: block;
        flex: 1;
        min-width: 0;
        font-size: 15px !important;
        font-weight: bold !important;
        color: #1f2d3d !important;
    }
    html.mobcal .wuSecCount,
    html.mobcal #addWorkUnitDialog_webRequestDate {
        display: block;
        margin-left: 8px;
        font-size: 12.5px !important;
        color: #7b8794 !important;
    }
    html.mobcal #addWorkUnitDialog_emailRefresh {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 36px;
        margin-left: 4px;
        font-size: 20px !important;
    }
    html.mobcal .wuChev {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 20px;
        height: 20px;
        margin-left: 8px;
        color: #5a6b7a;
        transition: transform 0.15s;
    }
    html.mobcal .wuSec.wuOpen .wuChev {
        transform: rotate(180deg);
    }
    html.mobcal .wuSecBody {
        padding-bottom: 12px;
    }
    html.mobcal .wuSec:not(.wuOpen) .wuSecBody {
        display: none !important;
    }

    /* historie navstev: datum a cas + stav, pod tim lekar a poznamka (zrusena navsteva preskrtnuta) */
    html.mobcal .cvHead {
        display: block !important;
        margin: 6px 0 4px;
        font-size: 12px !important;
        font-weight: bold;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: #7b8794 !important;
    }
    html.mobcal .cvGap,
    html.mobcal .cvDash,
    html.mobcal .cvSep,
    html.mobcal .cvNoteSp {
        display: none;
    }
    html.mobcal .cvRow {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        grid-template-areas: "when when status" "doc note note";
        column-gap: 6px;
        padding: 9px 10px !important;
        border-bottom: 1px solid #eef1f4;
        line-height: 1.35 !important;
        font-size: 13px;
    }
    html.mobcal .cvSel {
        border-radius: 6px;
        font-weight: normal !important;
    }
    html.mobcal .cvWhen {
        grid-area: when;
        font-size: 14px;
        font-weight: bold;
    }
    html.mobcal .cvStatus {
        grid-area: status;
        white-space: nowrap;
    }
    html.mobcal .cvDoc {
        grid-area: doc;
        font-size: 12px;
        white-space: nowrap;
        color: #5a6b7a;
    }
    html.mobcal .cvNote {
        grid-area: note;
        min-width: 0;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        font-size: 12px !important;
        color: #5a6b7a !important;
    }
    html.mobcal .cvNote::before {
        content: "\00B7  ";
    }

    /* e-maily pacienta: datum, odesilatel - predmet, 3 radky nahledu; tuknuti otevre cely text a prilohy */
    html.mobcal .pmCard {
        margin-bottom: 8px !important;
        border-radius: 8px !important;
        overflow: hidden;
    }
    html.mobcal .pmHead {
        flex-direction: column;
        gap: 2px !important;
        padding: 10px 12px !important;
    }
    html.mobcal .pmDate {
        font-size: 12px;
    }
    html.mobcal .pmText {
        width: 100%;
    }
    html.mobcal .pmSubj {
        font-size: 13.5px;
        font-weight: bold !important;
    }
    html.mobcal .pmPrev {
        font-size: 12.5px !important;
    }
    html.mobcal .pmBody {
        max-height: none !important;
        font-size: 13.5px !important;
    }
    html.mobcal .pmAtt {
        padding: 8px 12px !important;
        font-size: 12.5px !important;
    }
    html.mobcal .pmAtt a {
        display: block !important;
        margin-top: 6px !important;
    }

    /* zakladni informace (pozadavek z webu) vcetne prepinace OPG */
    html.mobcal .wrGrid {
        grid-template-columns: minmax(0, 118px) minmax(0, 1fr) !important;
        gap: 9px 10px !important;
        font-size: 13.5px;
    }
    html.mobcal .opgToggleBtn {
        padding: 0 16px !important;
        line-height: 36px;
        font-size: 13px !important;
    }

    /* potvrzeni zruseni rezervace (jen telefon) */
    html.mobcal #wuCancelAsk {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 50;
    }
    html.mobcal .wuAskDim {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        background: rgba(15, 23, 32, 0.5);
    }
    html.mobcal .wuAskBox {
        position: absolute;
        left: 12px;
        right: 12px;
        bottom: 14px;
        padding: 18px 16px 14px;
        border-radius: 16px;
        background: #fff;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }
    html.mobcal .wuAskBox h3 {
        margin: 0 0 10px;
        font-size: 19px;
        color: #1f2d3d;
    }
    html.mobcal .wuAskWho {
        font-size: 16px;
        font-weight: bold;
        color: #1f2d3d;
    }
    html.mobcal .wuAskWhen {
        margin: 2px 0 14px;
        font-size: 13.5px;
        line-height: 1.45;
        color: #5a6b7a;
    }
    html.mobcal .wuAskBox button {
        display: block;
        width: 100%;
        height: 52px;
        border-radius: 8px;
        font-size: 15px;
        font-weight: bold;
        cursor: pointer;
        -webkit-appearance: none;
        appearance: none;
    }
    html.mobcal .wuAskYes {
        border: 1px solid #e0504d;
        background: #ff6663;
        color: #fff;
    }
    html.mobcal .wuAskNo {
        margin-top: 10px;
        border: 2px solid #8aaad4;
        background: #fff;
        color: #2a4a80;
    }
}

/*********************************************************************************/
/* Pokladna v karte pacienta (sekce "Platba", javascript/payment.js) a stitek     */
/* zaplaceneho terminu v kalendari (.wuPaidChip)                                  */
/*********************************************************************************/

#wuPayBody .payMuted { color: #7b8794; font-size: 12px; }
#wuPayBody .payNote { color: #5a6b7a; font-size: 12px; background: #f3f5f7; border-radius: 6px; padding: 8px 10px; }
#wuPayBody .payError { color: #aa0000; font-size: 12px; min-height: 0; }
#wuPayBody .payError:empty { display: none; }
#wuPayBody .payError.payInfo { color: #2a4a80; }
#wuPayBody .payForm { display: flex; flex-direction: column; gap: 8px; }
/* oblibene polozky: stejne velke dlazdice v mrizce, cena tucne dole, pocet kusu v rohu (payment.js) */
#wuPayBody .payFav { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; padding-top: 6px; }
#wuPayBody .payFavChip {
    position: relative; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: 4px;
    min-height: 62px; padding: 8px 10px; font-size: 12.5px; line-height: 1.25; cursor: pointer; text-align: left;
    border: 1px solid #d3d8e0; border-radius: 8px; background: #fff; color: #1f2d3d;
}
#wuPayBody .payFavName { overflow-wrap: anywhere; }
#wuPayBody .payFavPrice { font-size: 14px; white-space: nowrap; }
#wuPayBody .payFavChip:hover { background: #eef8f1; border-color: #3cb371; }
#wuPayBody .payFavChip.payFavOn { padding: 7px 9px; border: 2px solid #3cb371; background: #f0faf4; }
#wuPayBody .payFavCount {
    position: absolute; top: -7px; right: -7px; min-width: 20px; height: 20px; box-sizing: border-box; padding: 0 5px;
    border-radius: 10px; background: #2f9d5f; color: #fff; font-size: 11px; font-weight: bold; line-height: 20px; text-align: center;
}
#wuPayBody .payFavCount:empty { display: none; }
#wuPayBody .payFav .payLink { grid-column: 1 / -1; justify-self: start; }
#wuPayBody .payBtn {
    padding: 5px 9px; font-size: 12px; font-weight: 500; cursor: pointer;
    border: 1px solid #c9d0d6; border-radius: 5px; background: #fff; color: #1f2d3d;
}
#wuPayBody .payBtn:hover { background: #eef3ff; border-color: #b0c4de; }
#wuPayBody .payBtnMain {
    flex: 1; height: 34px; padding: 0 10px; font-size: 13px; font-weight: bold; cursor: pointer;
    border: 1px solid #2f9d5f; border-radius: 5px; background: #3cb371; color: #fff;
}
#wuPayBody button:disabled { opacity: 0.5; cursor: default; }
#wuPayBody .payBtnMain:disabled { opacity: 1; background: #eef0f2; border-color: #d3d8e0; color: #9aa5b1; }
#wuPayBody .payAdd { display: flex; gap: 6px; }
#wuPayBody .payAdd input {
    min-width: 0; padding: 5px 8px; font-size: 13px; color: #1f2d3d;
    border: 1px solid #d3d8e0; border-radius: 5px; background: #fff; box-sizing: border-box;
}
#wuPayBody #wuPayDescr { flex: 1; }
#wuPayBody #wuPayPrice { width: 80px; }
#wuPayBody .payItems {
    display: flex; flex-direction: column; gap: 4px;
    background: #ccffaa; border: 1px solid #00aa00; border-radius: 6px; padding: 8px 10px;
}
#wuPayBody .payItem { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: #fff; border: 1px solid #b9d9a0; border-radius: 4px; padding: 3px 4px 3px 8px; }
#wuPayBody .payItem b { font-weight: 500; white-space: nowrap; }
#wuPayBody .payItemDel { border: none; background: none; color: #aa0000; font-size: 16px; line-height: 1; cursor: pointer; padding: 0 4px 0 8px; }
#wuPayBody .payTotal { display: flex; justify-content: space-between; font-size: 15px; font-weight: bold; padding-top: 2px; }
#wuPayBody .payPayer { display: flex; align-items: center; gap: 8px; }
#wuPayBody .payPayer label { font-size: 13px; color: #5a6b7a; min-width: 64px; }
#wuPayBody .payPayer input {
    flex: 1; min-width: 0; padding: 5px 8px; font-size: 13px; color: #1f2d3d;
    background: #fbf4d0; border: 1px solid #e4d9a3; border-radius: 5px; box-sizing: border-box;
}
/* pokladni sloupec: vlevo vyber polozek, vpravo uctenka s platbou (v uzke karte pod sebou) */
#wuPayBody .payPos { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 14px; }
#wuPayBody .payPick { flex: 1.6 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
#wuPayBody .payTill {
    flex: 1 1 250px; min-width: 0; display: flex; flex-direction: column; gap: 8px;
    background: #ccffaa; border: 1px solid #00aa00; border-radius: 8px; padding: 10px 12px;
}
#wuPayBody .payTill .payItems { background: transparent; border: none; padding: 0; }
#wuPayBody .payTill .payTotal { border-top: 1px solid #8fd18f; padding-top: 6px; font-size: 16px; }
#wuPayBody .payTill .payPayer { flex-direction: column; align-items: stretch; gap: 3px; }
#wuPayBody .payTill .payPayer label { min-width: 0; font-size: 12px; }
#wuPayBody .payMethods { display: flex; border: 1px solid #8fd18f; border-radius: 6px; overflow: hidden; background: #fff; }
#wuPayBody .payMethod {
    flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 5px;
    padding: 7px 4px; border: none; border-left: 1px solid #d7e9de; background: #fff;
    color: #3a4a55; font-size: 12px; cursor: pointer;
}
#wuPayBody .payMethod:first-child { border-left: none; }
#wuPayBody .payMethod:hover { background: #eef8f1; }
#wuPayBody .payMethod[aria-pressed="true"] { background: #3cb371; color: #fff; font-weight: bold; }
#wuPayBody .payConfirm { flex: none; width: 100%; height: 42px; font-size: 14px; }
#wuPayBody .payIssuer { font-size: 11px; color: #9aa5b1; line-height: 1.6; }
#wuPayBody .payIssuer select { font-size: 11px; }
#wuPayBody .payPaid {
    display: flex; flex-direction: column; gap: 2px; margin-bottom: 8px;
    background: #e7f7ee; border: 1px solid #9fd8b5; border-radius: 6px; padding: 8px 10px; color: #1d5e3a;
}
#wuPayBody .payPaidTop b { font-size: 14px; }
#wuPayBody .payPaidSub { font-size: 12px; color: #3a6e50; }
#wuPayBody .payLink { align-self: flex-start; border: none; background: none; padding: 2px 0; color: #2a4a80; font-size: 12px; text-decoration: underline; cursor: pointer; }
/* storno a oprava uctenky (stornovana uctenka preskrtnuta, storno cervene se zapornou castkou) */
#wuPayBody .payPaidActions { display: flex; flex-wrap: wrap; gap: 14px; }
#wuPayBody .payLinkDanger { color: #aa0000; }
#wuPayBody .payPaid.payPaidStorno { background: #f6f7f8; border-color: #d8dde2; color: #7b8794; }
#wuPayBody .payPaidStorno .payPaidSub { color: #8a96a3; }
#wuPayBody .payStornoLine { margin-top: 6px; padding-top: 6px; border-top: 1px dashed #e3b5b5; color: #aa0000; }
#wuPayBody .payStornoLine .payPaidSub { color: #b55a5a; }
#wuPayBody .payNoteStorno { margin-bottom: 8px; background: #fdeeee; color: #8a1f1f; }
#wuPayBody .payStorno {
    display: flex; flex-direction: column; gap: 6px; margin-top: 8px; padding: 8px 10px;
    background: #fff; border: 1px solid #e3b5b5; border-radius: 6px; color: #1f2d3d;
}
#wuPayBody .payStornoHead { color: #aa0000; font-weight: bold; font-size: 13px; }
#wuPayBody .payStorno .payPaidSub { color: #5a6b7a; }
#wuPayBody .payStornoReasons { display: flex; flex-wrap: wrap; gap: 4px; }
#wuPayBody .payStornoReason {
    padding: 3px 8px; font-size: 11px; cursor: pointer;
    border: 1px solid #d3d8e0; border-radius: 12px; background: #fff; color: #3a4a55;
}
#wuPayBody .payStornoReason:hover { background: #fdeeee; border-color: #e3b5b5; color: #aa0000; }
#wuPayBody #wuPayStornoReason {
    padding: 5px 8px; font-size: 13px; color: #1f2d3d;
    border: 1px solid #d3d8e0; border-radius: 5px; background: #fff; box-sizing: border-box;
}
#wuPayBody .payStornoButtons { display: flex; gap: 6px; }
#wuPayBody .payBtnDanger {
    flex: 1; height: 32px; padding: 0 10px; font-size: 13px; font-weight: bold; cursor: pointer;
    border: 1px solid #a32d2d; border-radius: 5px; background: #c94040; color: #fff;
}
#wuPayBody .payBtnDanger:hover { background: #b33636; }
#wuPayBody .payQrBox { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 6px 0; }
#wuPayBody .payQrBox .payBtnMain { flex: none; width: 100%; }
#wuPayBody .payQrBox .payBtn { width: 100%; }
#wuPayBody .payQrCode img, #wuPayBody .payQrCode canvas { margin: 0 auto; }
#wuPayBody .payHistory { margin-top: 12px; border-top: 1px solid #eef1f4; padding-top: 8px; font-size: 12px; }
#wuPayBody .payHistoryTitle { color: #5a6b7a; font-weight: 500; margin-bottom: 4px; }
#wuPayBody .payHistoryRow { display: flex; justify-content: space-between; gap: 10px; padding: 2px 0; }
#wuPayBody .payHistoryRow b { font-weight: 500; color: #2f9d5f; white-space: nowrap; }

/* zalozky Navstevy / E-maily / Platba v prave casti karty (jen pocitac, javascript/payment.js wuTabsOpen) */
.wuTabsBar { display: flex; gap: 4px; border-bottom: 1px solid #e5e7eb; margin-bottom: 12px; }
.wuTabBt {
    display: inline-flex; align-items: center; gap: 6px; margin-bottom: -1px; padding: 8px 14px;
    border: none; border-bottom: 2px solid transparent; background: none;
    font-size: 14px; color: #5a6b7a; cursor: pointer;
}
.wuTabBt:hover { color: #1f2d3d; }
.wuTabBt.wuTabOn { color: #1f2d3d; font-weight: bold; border-bottom-color: #3cb371; }
.wuTabBadge { padding: 0 7px; border-radius: 999px; background: #3cb371; color: #fff; font-size: 11px; font-weight: bold; line-height: 17px; }
.wuTabBadge:empty { display: none; }
.wuTabBadge.wuTabBadgePaid { background: #dcf3e5; color: #1d6b40; }
.wuSide.wuTabbed.wuTab-visits [data-wutab="mail"],
.wuSide.wuTabbed.wuTab-visits [data-wutab="pay"],
.wuSide.wuTabbed.wuTab-mail [data-wutab="visits"],
.wuSide.wuTabbed.wuTab-mail [data-wutab="pay"],
.wuSide.wuTabbed.wuTab-pay [data-wutab="visits"],
.wuSide.wuTabbed.wuTab-pay [data-wutab="mail"] { display: none !important; }
.wuSide.wuTabbed #wuPaySection .wuSecHead { display: none !important; } /* nazev a castku ukazuje zalozka */

.wuPaidChip {
    position: absolute; right: 3px; bottom: 2px; pointer-events: none;
    padding: 0 5px; border-radius: 8px; background: #dcf3e5; color: #1d6b40;
    font-size: 10px; font-weight: bold; line-height: 15px; white-space: nowrap;
}

@media (max-width: 767px) {
    html.mobcal #wuPayBody .payAdd input,
    html.mobcal #wuPayBody .payPayer input { font-size: 16px; min-height: 40px; }
    html.mobcal #wuPayBody .payBtnMain { height: 44px; }
    html.mobcal #wuPayBody .payMethod { padding: 11px 4px; font-size: 14px; }
    html.mobcal .wuTabsBar { display: none !important; }
}
/* prehled Trzby (tlacitko v hornim pruhu, javascript/payment.js trzbyRender) */
.trzbyWrap { position: relative; display: inline-block; }
.trzbyPop {
    position: absolute; right: 0; top: calc(100% + 8px); z-index: 1500; width: 300px; box-sizing: border-box;
    display: flex; flex-direction: column; gap: 10px; padding: 10px 12px; text-align: left;
    background: #fff; border: 1px solid #d3d8e0; border-radius: 8px; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    font-size: 13px; font-weight: normal; color: #1f2d3d;
}
.trzbySec { display: flex; flex-direction: column; gap: 3px; }
.trzbySec + .trzbySec { border-top: 1px solid #eef1f4; padding-top: 8px; }
.trzbySecHead { font-weight: bold; margin-bottom: 2px; }
.trzbySecHead span { font-weight: normal; color: #7b8794; font-size: 12px; }
.trzbyRow { display: flex; justify-content: space-between; gap: 12px; }
.trzbyRow span { color: #5a6b7a; }
.trzbyRow b { white-space: nowrap; }
.trzbyTypes { font-size: 12px; color: #7b8794; }
.trzbyPrev span { color: #7b8794; font-size: 12px; }
.trzbyLinks { display: flex; justify-content: space-between; gap: 10px; margin-top: 4px; font-size: 12px; }
.trzbyLinks a { color: #2a4a80; }

/*********************************************************************************/
/* Statistiky (adminstatistics.php) a Aktualizace databaze (dbupgrade.php)        */
/* - prevzato z rehabilitace (REZ), barvy podle tohoto kalendare                   */
/*********************************************************************************/

.btPrimary,
input.btPrimary {
	background-color: var(--acc, #3cb371);
	color: white;
	border: 1px solid var(--acc-dark, #2f9d5f);
	font-weight: bold;
	cursor: pointer;
}

.btSecondary,
input.btSecondary {
	background-color: #c8dcf4;
	color: #2a4a80;
	border: 1px solid #8aaad4;
	cursor: pointer;
}

.btSecondary:hover,
input.btSecondary:hover {
	background-color: #4a7cc7;
	color: white;
}

.btOn,
input.btOn {
	background-color: #3cb371;
	color: white;
}

button.btPrimary, button.btSecondary, button.btGhost {
	padding: 6px 14px;
	border-radius: 5px;
	font-size: 13px;
}

button.btGhost {
	background: transparent;
	border: 1px solid #b0c4de;
	color: #2a4a80;
	cursor: pointer;
}

.pageHead {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}

.pageHead > strong {
	font-size: 1.1em;
}

.pageHead form {
	margin: 0;
}

.card {
	background: #fafbfc;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	padding: 14px 16px;
	margin-bottom: 14px;
	color: #1f2d3d;
	font-size: 14px;
}

.cardTitle {
	display: block;
	font-size: 14px;
	font-weight: bold;
	color: #1f2d3d;
	border-bottom: 1px solid #eef1f4;
	padding-bottom: 8px;
	margin-bottom: 10px;
}

.sectionLabel {
	display: block;
	font-size: 13px;
	font-weight: bold;
	color: #555;
	text-transform: uppercase;
	letter-spacing: .5px;
	border-bottom: 1px solid #ddd;
	padding-bottom: 4px;
	margin: 14px 0 10px;
}

.okLine { color: #2f8f4f; }
.errLine { color: #c00; }
.pendLine { color: #a06a00; }

.upgradeList {
	list-style: none;
	padding: 0;
	line-height: 2;
}

.noticeBar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	background: #fff8e1;
	border: 1px solid #f0d58a;
	border-radius: 8px;
	padding: 8px 14px;
	margin: 10px 0;
	font-size: 13px;
	color: #6b5200;
}

.noticeBar form { margin: 0; }

.statsFilters {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    align-items: flex-end;
    margin-bottom: 16px;
    font-size: 13px;
}

.statsFilters .lbl {
    color: #7b8794;
    margin-bottom: 4px;
}

.statsFilters select,
.statsFilters input[type=date] {
    height: 34px;
    min-width: 150px;
    padding: 6px 10px;
    font-size: 13px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.kpiGrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.kpi {
    background: #fafbfc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px 12px;
}

.kpi .v {
    font-size: 24px;
    font-weight: bold;
    color: #1f2d3d;
    line-height: 1.2;
}

.kpi .l {
    font-size: 12px;
    color: #5a6b7a;
}

.kpi .d {
    font-size: 11px;
    color: #9aa5b1;
    margin-top: 2px;
}

.kpi.good .v { color: #2f8f4f; }
.kpi.bad .v { color: #c0392b; }

.statsTabs {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    border-bottom: 2px solid #e5e7eb;
    margin: 6px 0 14px;
}

.statsTabs button {
    border: 1px solid #e5e7eb;
    border-bottom: none;
    background: #f4f6f8;
    padding: 8px 14px;
    font-size: 13px;
    border-radius: 6px 6px 0 0;
    cursor: pointer;
    color: #5a6b7a;
}

.statsTabs button.on {
    background: #fff;
    color: #1f2d3d;
    font-weight: bold;
    border-color: #cfd5dc;
    position: relative;
    top: 2px;
}

.statsPane {
    display: none;
}

.statsPane.on {
    display: block;
}

.chartRow {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
    gap: 14px;
    margin-bottom: 14px;
}

.chartBox {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px 14px;
}

.chartBox h3 {
    font-size: 14px;
    color: #1f2d3d;
    margin: 0 0 8px;
}

.chartBox .chartHolder {
    position: relative;
    height: 260px;
}

.statsTable {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    background: #fff;
}

.statsTable th,
.statsTable td {
    padding: 6px 8px;
    border-bottom: 1px solid #eef1f4;
    text-align: right;
    white-space: nowrap;
}

.statsTable th {
    background: #f4f6f8;
    color: #5a6b7a;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    position: sticky;
    top: 0;
}

.statsTable th:first-child,
.statsTable td:first-child,
.statsTable td.tl,
.statsTable th.tl {
    text-align: left;
}

.statsTable tr:hover td {
    background: #f9fbff;
}

.statsTable tfoot td {
    font-weight: bold;
    border-top: 2px solid #ccc;
}

.tableWrap {
    max-height: 520px;
    overflow: auto;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 14px;
}

.bar {
    display: inline-block;
    height: 8px;
    border-radius: 4px;
    background: #3cb371;
    vertical-align: middle;
    margin-left: 6px;
}

.statsHint {
    font-size: 12px;
    color: #9aa5b1;
    margin: 4px 0 12px;
}

.statusPill {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: bold;
    background: #eee;
    color: #555;
}

.statusPill.Delivered { background: #d4f4dc; color: #1e7a3a; }
.statusPill.Sent, .statusPill.Processed { background: #e3ecfb; color: #2a4a80; }
.statusPill.Pending { background: #fff3cd; color: #8a6d00; }
.statusPill.Failed, .statusPill.Error { background: #f8d7da; color: #a12531; }

/*********************************************************************************/
/* Vzhled: barevne palety, horni pruh a lista kalendare v jednom radku             */
/* - prevzato z rehabilitace (REZ). Paletu si voli uzivatel v Nastaveni (Vzhled),  */
/*   ulozi se do user.colorTheme a index.php ji da do <html data-theme>.           */
/*   Barvy rezervaci (casovek) se nemeni.                                          */
/*********************************************************************************/

:root,
html[data-theme="green"] {
  --th-header: #3a8f5c;
  --acc: #3cb371;
  --acc-dark: #2f9d5f;
  --room-bg: #c8f0c8;
  --room-border: #7acc7a;
  --room-hover: #aee8ae;
  --room-text: #1f2d3d;
}

html[data-theme="teal"] {
  --th-header: #1a9aa8;
  --acc: #1a9aa8;
  --acc-dark: #147f8b;
  --room-bg: #d4eef0;
  --room-border: #7cc7cf;
  --room-hover: #bfe5e9;
  --room-text: #105f68;
}

html[data-theme="raspberry"] {
  --th-header: #b03566;
  --acc: #c8436f;
  --acc-dark: #a8365b;
  --room-bg: #f8e1e9;
  --room-border: #e7a9bf;
  --room-hover: #f2ccd9;
  --room-text: #7d2446;
}

html[data-theme="petrol"] {
  --th-header: #1f4e5f;
  --acc: #2a7088;
  --acc-dark: #215b6f;
  --room-bg: #dcebf0;
  --room-border: #97c0cd;
  --room-hover: #c8dfe7;
  --room-text: #173f4d;
}

html[data-theme="steel"] {
  --th-header: #4f6d8a;
  --acc: #5b7d9e;
  --acc-dark: #4a6884;
  --room-bg: #e3eaf1;
  --room-border: #a8bccf;
  --room-hover: #d2dde8;
  --room-text: #34495e;
}

/* Puvodni = dosavadni vzhled kalendare se sedym pruhem */
html[data-theme="original"] {
  --th-header: #777777;
  --acc: #3cb371;
  --acc-dark: #2f9d5f;
  --room-bg: #c8f0c8;
  --room-border: #7acc7a;
  --room-hover: #aee8ae;
  --room-text: #1f2d3d;
}

/* horni pruh */
#header-wrapper.appHeader {
  background: var(--th-header);
  padding: 0;
  overflow: visible; /* nabidky (uzivatel, Trzby) presahuji pod pruh */
  position: relative;
  z-index: 60; /* nad lepicim zahlavim kalendare (50), pod dialogy */
}

.appHeader #header {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 46px;
  box-sizing: border-box;
  padding: 0 20px;
  overflow: visible;
  text-align: left;
}

.appBrand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #fff;
  text-decoration: none;
  font: 17px Arial, Helvetica, sans-serif;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.appBrand:hover { color: #fff; }

.appHeaderDate {
  margin-left: 4px;
  color: #fff;
  opacity: 0.85;
  font: 13px Arial, Helvetica, sans-serif;
  white-space: nowrap;
}

.appHeaderTools,
.calHeaderTools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.calHeaderTools {
  margin-left: 0;
  display: none; /* zobrazi se az po presunu do pruhu */
}

.appHeaderTools .calHeaderTools { display: flex; }

.appHeaderBt {
  position: relative;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.38);
  color: #fff;
  border-radius: 5px;
  padding: 4px 10px;
  font: 13px Arial, Helvetica, sans-serif;
  line-height: 18px;
  cursor: pointer;
  white-space: nowrap;
}

.appHeaderBt:hover,
.appHeaderBt[aria-expanded="true"] { background: rgba(255, 255, 255, 0.3); }

.appHeader .patientSearchBox {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.appHeader .patientSearchBox input[type=text] {
  width: 210px;
  padding: 4px 9px;
  font-size: 13px;
  line-height: 18px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: #1f2d3d;
}

.appHeader .patientSearchBox input[type=text]:focus {
  background: #fff;
  outline: 2px solid rgba(255, 255, 255, 0.6);
}

.appUserMenu { position: relative; }

.appUserCaret {
  font-size: 10px;
  opacity: 0.85;
  margin-left: 2px;
}

.appUserMenuList {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 1500;
  min-width: 170px;
  margin: 0;
  padding: 4px 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
}

.appUserMenuList.isOpen { display: block; }

.appUserMenuList button {
  display: block;
  width: 100%;
  border: none;
  background: none;
  text-align: left;
  padding: 8px 14px;
  font: 13px Arial, Helvetica, sans-serif;
  color: #1f2d3d;
  cursor: pointer;
}

.appUserMenuList button:hover { background: #f3f5f7; }
.appUserMenuList .appUserLogout { color: #c0392b; border-top: 1px solid #eef1f4; }

/* lista kalendare v jednom radku: datum, posun dni, najit termin | vpravo vyber lekare a prepinac pohledu */
.calToolbarRow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.calToolbarRow form {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.calToolbarRow .spacer { flex: 1; }

.calWeekDay {
  font-size: 0.9em;
  min-width: 64px;
}

.calDateForm #startTime { width: 97px; }

.calDoctorForm label { color: #5a6b7a; font-size: 13px; }
.calDoctorForm select { height: 30px; max-width: 190px; }

.calToolbar input[type=submit],
.calToolbar input[type=button] { cursor: pointer; }

.calToolbar .navSeg,
.calToolbar .viewSeg {
  display: inline-flex;
  align-items: stretch;
}

.calToolbar .navSeg input[type=submit],
.calToolbar .viewSeg input[type=submit] {
  margin: 0;
  width: auto;
  height: auto;
  border: 1px solid #c3ccd5;
  border-radius: 0;
  padding: 5px 12px;
  font-size: 13px;
  color: #1f2d3d;
  background: #fff;
}

.calToolbar .navSeg input[type=submit] + input[type=submit],
.calToolbar .viewSeg form + form input[type=submit] { border-left: 0; }

.calToolbar .navSeg input[type=submit]:first-child,
.calToolbar .viewSeg form:first-child input[type=submit] { border-radius: 5px 0 0 5px; }

.calToolbar .navSeg input[type=submit]:last-child,
.calToolbar .viewSeg form:last-child input[type=submit] { border-radius: 0 5px 5px 0; }

.calToolbar .navSeg .navWeek { background: #e9edf1; }

.calToolbar .navSeg input[type=submit]:hover,
.calToolbar .viewSeg input[type=submit]:hover { background: #f3f5f7; }

.calToolbar .navSeg input.on[type=submit],
.calToolbar .viewSeg input.on[type=submit] {
  background: var(--acc);
  border-color: var(--acc-dark);
  color: #fff;
  font-weight: bold;
}

.calToolbar .findFreeBt {
  padding: 5px 12px;
  font-size: 13px;
  border-radius: 5px;
  width: auto;
  height: auto;
}

.btGhostSmall {
  background: #fff;
  color: #2a4a80;
  border: 1px solid #b0c4de;
  border-radius: 5px;
  font-size: 12px;
  padding: 5px 10px;
  cursor: pointer;
}

/* Nastaveni -> Vzhled */
.themeOptions { display: flex; flex-direction: column; gap: 4px; }
.themeOption {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
}
.themeOption input { margin: 0; }
.themeOption.isActive { border-color: #c3ccd5; background: #f6f8fa; }
.themeSwatch { width: 34px; height: 16px; border-radius: 4px; display: inline-block; }

/* telefon: kalendar ma vlastni horni listy (pruh je skryty v html.mobcal); ostatni stranky jen zuzeny pruh */
@media (max-width: 767px) {
  html.mob .appHeader #header { padding: 0 12px; }
  html.mob .appHeaderDate { display: none; }
}

/* presun rezervace na jiny termin (usercalendar.php startMove, ajaxmoveworkunit.php) */
.moveBanner {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: calc(100% - 32px);
  box-sizing: border-box;
  padding: 10px 16px;
  background: #fff8e1;
  border: 1px solid #f0d58a;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  font-size: 14px;
  color: #6b5200;
}
.moveBanner button {
  flex: none;
  padding: 6px 12px;
  border: 1px solid #d9b44a;
  border-radius: 5px;
  background: #fff;
  color: #6b5200;
  font-weight: bold;
  cursor: pointer;
}
body.moveMode .wuMoveSource {
  outline: 3px dashed #d9a400;
  outline-offset: -3px;
  opacity: 0.7;
}
/* behem presunu: volne casovky v pracovnich hodinach lekare jako cile (usercalendar.php wuFreeSlot) - jako v REZ */
body.moveMode .wuFreeSlot {
  outline: 2px dashed #e0b93f;
  outline-offset: -3px;
  cursor: copy;
}
body.moveMode .wuFreeSlot:hover {
  background-color: #fff3c4 !important;
  outline-color: #d9a400;
}

/* dotaz Ano / Ne (usercalendar.php askYesNo) */
.yesNoDialog {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
}
.yesNoBox {
  width: 420px;
  max-width: calc(100% - 32px);
  box-sizing: border-box;
  padding: 18px 20px 16px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  color: #1f2d3d;
  font-size: 14px;
}
.yesNoBox strong { display: block; font-size: 16px; margin-bottom: 10px; }
.yesNoText { white-space: pre-line; line-height: 1.5; margin-bottom: 16px; }
.yesNoButtons { display: flex; justify-content: flex-end; gap: 10px; }
.yesNoButtons button {
  min-width: 90px;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
}
.yesNoYes { background: var(--acc, #3cb371); border: 1px solid var(--acc-dark, #2f9d5f); color: #fff; }
.yesNoNo { background: #fff; border: 1px solid #c3ccd5; color: #1f2d3d; }

/* absence lekare a statni svatek v kalendari (usercalendar.php, weekgridcalendar.php) - prevzato z REZ:
   svetle sede srafovani misto tmave sede; paleta "Puvodni" ma puvodni tmave sedou */
.wuAbsence {
  background-color: #f1f2f4 !important;
  background-image: repeating-linear-gradient(135deg, transparent 0, transparent 6px, #d3d7dc 6px, #d3d7dc 7px) !important;
  border-color: #c9ced4 !important;
  color: #6b7580 !important;
}
.wuHoliday {
  background-color: #f6efe3 !important;
  background-image: repeating-linear-gradient(135deg, transparent 0, transparent 6px, #e3d3b8 6px, #e3d3b8 7px) !important;
  border-color: #d8c8a8 !important;
  color: #7a6440 !important;
}
html[data-theme="original"] .wuAbsence {
  background-color: #555555 !important;
  background-image: none !important;
  border-color: #808080 !important;
  color: #fff !important;
}

/*********************************************************************************/
/* Vyber data (jQuery UI datepicker) - vzhled jako v rehabilitaci (REZ), barvy podle */
/* palety uzivatele. V tydnu je zvyrazneny zobrazeny tyden (usercalendar.php).      */
/* "html" na zacatku: jquery-ui.min.css se nacita az po tomto souboru              */
/*********************************************************************************/

html .ui-datepicker.ui-widget {
  width: 252px;
  padding: 8px;
  font: 13px Arial, Helvetica, sans-serif;
  color: #1f2d3d;
  background: #fff;
  border: 1px solid #d6dde3;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
  z-index: 1200 !important; /* nad prilepenou listou kalendare */
}

html .ui-datepicker .ui-datepicker-header {
  padding: 2px 0 8px;
  background: none;
  border: 0;
  color: #1f2d3d;
}

html .ui-datepicker .ui-datepicker-title {
  line-height: 28px;
  font-size: 14px;
  font-weight: bold;
}

html .ui-datepicker .ui-datepicker-prev,
html .ui-datepicker .ui-datepicker-next {
  top: 2px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 6px;
  background: #f3f5f7;
  cursor: pointer;
}

html .ui-datepicker .ui-datepicker-prev { left: 2px; }
html .ui-datepicker .ui-datepicker-next { right: 2px; }

html .ui-datepicker .ui-datepicker-prev-hover,
html .ui-datepicker .ui-datepicker-next-hover {
  top: 2px;
  border: 0;
  background: var(--room-bg);
  box-shadow: inset 0 0 0 1px var(--acc);
}

html .ui-datepicker .ui-datepicker-prev-hover { left: 2px; }
html .ui-datepicker .ui-datepicker-next-hover { right: 2px; }

/* sipky mesicu: misto ikon z obrazku jednoduche znaky v barve palety */
html .ui-datepicker .ui-datepicker-prev span,
html .ui-datepicker .ui-datepicker-next span {
  display: none;
}

html .ui-datepicker .ui-datepicker-prev:after,
html .ui-datepicker .ui-datepicker-next:after {
  display: block;
  text-align: center;
  line-height: 28px;
  font-size: 20px;
  color: var(--room-text);
}

html .ui-datepicker .ui-datepicker-prev:after { content: "\2039"; }
html .ui-datepicker .ui-datepicker-next:after { content: "\203A"; }

html .ui-datepicker table {
  margin: 0;
  border-collapse: separate;
  border-spacing: 0 2px;
  font-size: 13px;
}

html .ui-datepicker th {
  padding: 4px 0;
  font-size: 11px;
  font-weight: bold;
  color: #7b8794;
}

html .ui-datepicker td { padding: 0; }

html .ui-datepicker td a.ui-state-default,
html .ui-datepicker td span.ui-state-default {
  margin: 0 1px;
  padding: 6px 0;
  text-align: center;
  color: #1f2d3d;
  background: none;
  border: 0;
  border-radius: 6px;
}

html .ui-datepicker td a.ui-state-default:hover,
html .ui-datepicker td a.ui-state-hover {
  background: var(--room-bg);
  color: var(--room-text);
}

/* sobota a nedele svetlejsi */
html .ui-datepicker .ui-datepicker-week-end a.ui-state-default { color: #9aa5b1; }

/* dny sousednich mesicu */
html .ui-datepicker .ui-datepicker-other-month a.ui-state-default { color: #c3ccd5; }

/* dnesek obtazeny, vybrany den plne v barve palety */
html .ui-datepicker td a.ui-state-highlight {
  box-shadow: inset 0 0 0 1.5px var(--acc);
  color: var(--room-text);
  font-weight: bold;
}

html .ui-datepicker td a.ui-state-active,
html .ui-datepicker td a.ui-state-active:hover {
  background: var(--acc);
  color: #fff;
  font-weight: bold;
}

/* tydenni pohled: zobrazeny tyden svetle podbarveny jako jeden pruh, pondeli plne; najeti mysi zvyrazni radek */
html .ui-datepicker td.dpInWeek a.ui-state-default {
  margin: 0;
  border-radius: 0;
  background: var(--room-bg);
  color: var(--room-text);
}

html .ui-datepicker td.dpWeekFirst a.ui-state-default {
  border-radius: 6px 0 0 6px;
  background: var(--acc);
  color: #fff;
  font-weight: bold;
}

html .ui-datepicker td.dpWeekLast a.ui-state-default { border-radius: 0 6px 6px 0; }

html .ui-datepicker.dpWeekMode td a.ui-state-active:not(:hover) { box-shadow: none; }

html .ui-datepicker.dpWeekMode tbody tr:hover td:not(.dpInWeek) a.ui-state-default { background: #f3f5f7; }

/* pocitac: horni pruh a lista kalendare s tlacitky zustavaji pri rolovani nahore, zahlavi s ordinacemi se prilepi
   pod ne (usercalendar.php calTopBarsHeight) - prevzato z REZ. Telefon (do 767 px) ma vlastni horni listy. */
@media (min-width: 768px) {
  #header-wrapper.appHeader {
    position: sticky;
    top: 0;
  }
  #page {
    overflow: clip; /* jako drive "hidden", ale bez rolovaciho kontejneru - jinak by lepeni listy nefungovalo */
  }
  .infoBox.calToolbar {
    position: sticky;
    top: 46px; /* pod hornim pruhem */
    z-index: 58; /* nad zahlavim ordinaci (50), pod hornim pruhem (60) */
    background: #fff;
  }
}

/* SMS pacientovi z karty rezervace (tlacitko "Poslat SMS…", okno #smsComposeDialog - pouziva vzhled .yesNoDialog) */
.wuSmsArea { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; }
.wuSmsSendBt {
  padding: 4px 10px;
  font-size: 12px;
  white-space: nowrap;
  border-radius: 5px;
  border: 1px solid #8aaad4;
  background: #c8dcf4;
  color: #2a4a80;
  cursor: pointer;
}
.wuSmsSendBt:hover { background: #4a7cc7; color: #fff; }
.wuSmsConfirmed { font-size: 12px; color: #2a6fb0; line-height: 1.5; margin-bottom: 2px; }
.wuSmsConfirmed a { color: #7b8794; margin-left: 6px; }
.smsComposeBox { width: 480px; }
.smsComposeRecipient { font-size: 13px; color: #5a6b7a; margin-bottom: 10px; }
.smsComposeTemplates { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.smsComposeTemplates button {
  padding: 4px 10px;
  font-size: 12px;
  border: 1px solid #c3ccd5;
  border-radius: 14px;
  background: #fff;
  color: #1f2d3d;
  cursor: pointer;
}
.smsComposeTemplates button:hover { border-color: var(--acc, #3cb371); }
.smsComposeText {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  font: 14px Arial, Helvetica, sans-serif;
  border: 1px solid #c3ccd5;
  border-radius: 6px;
  resize: vertical;
}
.smsComposeMeta { display: flex; justify-content: space-between; gap: 10px; font-size: 11px; color: #9aa5b1; margin: 4px 0 8px; }
.smsComposeResult { min-height: 18px; font-size: 13px; margin-bottom: 8px; }
.smsComposeResult.errLine { color: #c00; }
.smsComposeResult.okLine { color: #2f8f4f; }
/* karta rezervace: mezera mezi poznamkou / typem vykonu / Presunout a tlacitky Rezervovat / Zrusit */
#addWorkUnitDialog .wuActions { margin-top: 16px; }

/* Nastaveni -> Zrusene rezervace (cancelledreservations.php); potvrzeni pouziva vzhled .yesNoDialog */
.crFilters { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin: 0 0 10px; font-size: 13px; }
.crFilters select { margin-left: 6px; height: 30px; }
.crHint { font-size: 12px; color: #7b8794; margin-bottom: 10px; }
.crTable { width: 100%; border-collapse: collapse; font-size: 13px; background: #fff; }
.crTable th { text-align: left; padding: 6px 8px; background: #f4f6f8; color: #5a6b7a; border-bottom: 1px solid #e5e7eb; }
.crTable td { padding: 7px 8px; border-bottom: 1px solid #eef1f4; vertical-align: top; }
.crTable small { color: #7b8794; }
.crTable .crPast td { color: #7b8794; }
.crNote { max-width: 260px; color: #5a6b7a; font-size: 12px; }
.crAction { text-align: right; white-space: nowrap; }
.crRestoreBt {
  padding: 5px 14px;
  font-size: 13px;
  font-weight: bold;
  border-radius: 5px;
  border: 1px solid var(--acc-dark, #2f9d5f);
  background: var(--acc, #3cb371);
  color: #fff;
  cursor: pointer;
}
.crState { font-size: 12px; color: #7b8794; }
.crState.crBusy { color: #a06a00; }
.crState.crDone { color: #2f8f4f; font-weight: bold; }
.crGoTo { font-size: 12px; margin-left: 6px; }
.crError { color: #c00; font-size: 13px; min-height: 0; margin-bottom: 8px; }

/* pokladna: doklad e-mailem (payment.js wuPayEmail*) */
#wuPayBody .payEmailCheck { display: flex; align-items: flex-start; gap: 6px; font-size: 12px; color: #1f2d3d; cursor: pointer; margin: 2px 0; }
#wuPayBody .payEmailCheck input { margin: 2px 0 0; }
#wuPayBody .payEmailCheck small { display: block; color: #7b8794; font-size: 11px; word-break: break-all; }
#wuPayBody div.payEmailCheck { cursor: default; display: block; }
#wuPayBody .payEmailState { font-size: 12px; margin-top: 3px; color: #7b8794; }
#wuPayBody .payEmailState_sent { color: #2f8f4f; }
#wuPayBody .payEmailState_error { color: #c00; }

/* lista kalendare nizsi a posun dni barevne jako UPG RHB: tyden sedy, den bily, dnes v barve palety (plny = zobrazen dnesek) */
@media (min-width: 768px) {
  .infoBox.calToolbar {
    margin: 8px auto 6px;
    padding: 7px 14px;
    top: 54px; /* pri rolovani zustane mezera 8px pod hornim pruhem (46px) */
  }
  /* bile pruhy v mezere nad a pod prilepenou listou - kalendar pod nimi neprosvita; zahlavi ordinaci se lepi
     az pod spodni mezeru (calTopBarsHeight v usercalendar.php pocita s okraji listy) */
  .infoBox.calToolbar::before,
  .infoBox.calToolbar::after {
    content: '';
    position: absolute;
    left: -1px;
    right: -1px;
    background: #fff;
    pointer-events: none;
  }
  .infoBox.calToolbar::before { top: -9px; height: 8px; }
  .infoBox.calToolbar::after { bottom: -7px; height: 6px; }
}

.calToolbar .navSeg input[type=submit] {
  transition: background-color 0.1s, border-color 0.1s, box-shadow 0.1s;
}
.calToolbar .navSeg input.navWeek[type=submit] { background: #e9edf1; }
.calToolbar .navSeg input.navDay[type=submit] { background: #fff; }
.calToolbar .navSeg input.navWeek[type=submit]:hover {
  background: #cbd3db;
  border-color: var(--acc);
  box-shadow: inset 0 0 0 1px var(--acc);
}
.calToolbar .navSeg input.navDay[type=submit]:hover {
  background: #dde3e9;
  border-color: var(--acc);
  box-shadow: inset 0 0 0 1px var(--acc);
}
.calToolbar .navSeg input.navWeek[type=submit]:active,
.calToolbar .navSeg input.navDay[type=submit]:active { background: #b8c2cc; }

.calToolbar .navSeg input.navToday[type=submit] {
  background: var(--room-bg);
  border-color: var(--room-border);
  color: var(--room-text);
  font-weight: bold;
  min-width: 58px;
}
.calToolbar .navSeg input.navToday[type=submit]:hover {
  background: var(--room-hover);
  border-color: var(--acc);
  box-shadow: inset 0 0 0 1px var(--acc);
}
.calToolbar .navSeg input.navToday.on[type=submit] {
  background: var(--acc);
  border-color: var(--acc-dark);
  color: #fff;
}
.calToolbar .navSeg input.navToday.on[type=submit]:hover { box-shadow: inset 0 0 0 1px var(--acc-dark); }
.calToolbar .navSeg input.navToday[type=submit]:active { background: var(--acc-dark); color: #fff; }

/* Nastaveni uzivatele (usersettings.php): vlevo formular, vpravo seznam odkazu po sekcich, dole vzhled - jako UPG RHB */
.setHead { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 16px; }
.setHead > strong { font-size: 1.1em; }
.setHead form { margin: 0; }
.settingsGrid { display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap; }
.settingsGrid .loginBox { margin: 0; }
.settingsMenu { flex: 1; min-width: 260px; }
.settingsMenu form { margin: 0 0 6px; }
.settingsMenu input[type=submit] { width: 100%; max-width: 320px; text-align: left; padding: 7px 14px; cursor: pointer; }
.setLabel {
  display: block;
  font-size: 13px;
  font-weight: bold;
  color: #555;
  text-transform: uppercase;
  letter-spacing: .5px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 4px;
  margin: 16px 0 10px;
  max-width: 320px;
}
.setCard { border: thin solid #999; border-radius: 10px; padding: 14px 20px; margin-top: 20px; }
.setCard .setLabel { max-width: none; }
.themeOptions.themeOptionsRow { flex-direction: row; flex-wrap: wrap; gap: 6px; }
.themeOptionsRow .themeOption { border-color: #e1e5ea; }
.themeOptionsRow .themeOption.isActive { border-color: var(--acc); background: #f6f8fa; }

/* pod barevnym hornim pruhem bez sede cary - horni okraj obsahu stranky (#content) by lezel hned pod pruhem */
#header-wrapper.appHeader ~ #page > #content {
  border-top: 0;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

/* paleta Puvodni ma sedy horni pruh - hlavicky dialogu zustavaji puvodni zelene */
html[data-theme="original"] .modal-header { background-color: #5cb85c; }

/* pokladna v karte pacienta tonovana podle palety uzivatele (varianta C): svetly odstin palety, hlavni tlacitko
   a vybrany zpusob platby v barve palety. Paleta Puvodni a Zelena = zelene odstiny jako drive */
#wuPayBody .payTill,
#wuPayBody .payItems {
    background: #eef9ee;
    background: color-mix(in srgb, var(--room-bg) 45%, #fff);
    border-color: var(--room-border);
}
#wuPayBody .payTill .payItems { background: transparent; border: none; }
#wuPayBody .payItem { border-color: var(--room-hover); }
#wuPayBody .payTill .payTotal { border-top-color: var(--room-border); }
#wuPayBody .payPayer input { background: #fff; border-color: var(--room-border); }
#wuPayBody .payMethods { border-color: var(--room-border); }
#wuPayBody .payMethod { border-left-color: var(--room-bg); }
#wuPayBody .payMethod:hover { background: var(--room-bg); }
#wuPayBody .payMethod[aria-pressed="true"] { background: var(--acc); color: #fff; }
#wuPayBody .payBtnMain { background: var(--acc); border-color: var(--acc-dark); }
#wuPayBody .payBtnMain:disabled { background: #eef0f2; border-color: #d3d8e0; color: #9aa5b1; }

/* pokladna: nezaplacena QR faktura v karte pacienta (payment.js wuPayInvoiceHtml) */
#wuPayBody .payInvoice { background: #fff8e6; border-color: #f0d9a0; }
#wuPayBody .payInvoice .payPaidTop b { color: #8a5a00; }
#wuPayBody .payOverdue { color: #c00; font-weight: bold; }
.trzbyInvoices a { font-size: 13px; color: #8a5a00; }

/* zahlavi ordinaci / dnu: mezera od listy kalendare (odznak e-mailu nad tlacitkem neni zakryty bilym pruhem listy)
   a mensi mezera k prvni casovce - misto prazdneho radku <br> za zahlavim jen okraj */
@media (min-width: 768px) {
  .calendarHeaderRow { padding-top: 10px; padding-bottom: 6px; }
  .calendarHeaderRow + br,
  .calendarHeaderRowPlaceholder + br { display: none; }
}

/* posun dni vycentrovany nad sloupci (usercalendar.php calAlignNavSeg) */
.calToolbarRow { position: relative; }
.calToolbar .navSeg.navCentered { position: absolute; top: 50%; transform: translateY(-50%); }
