/*
 * Aplikace ChatGo pro eshop-rychle (/espr/**).
 * Samostatne stranky (prihlaseni, hesla, potvrzeni poptavky) maji <body class="espr-page">, stranky administrace
 * maji layout espr/layout (Paper Dashboard jako administrace ChatGo) a z tohoto souboru berou jen tridy espr-*.
 */
body.espr-page {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 11pt;
    color: #333333;
    background: #f4f5f7;
}

.espr-page a {
    color: #443DB2;
}

/* barevne logo nad kartou (fragment page-logo) - karta se k nemu priblizi */
.espr-page-logo {
    text-align: center;
    margin: 50px auto 0 auto;
}

.espr-page-logo a,
.espr-page-logo a:hover {
    font-size: 26pt;
    font-weight: 800;
    letter-spacing: 1px;
    color: #443DB2;
    text-decoration: none;
}

.espr-page-logo a span {
    color: #2fbf5a;
    font-weight: 600;
}

/* souhlas s podminkami pri registraci (nastaveni hesla) */
.espr-checkbox.espr-terms {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 16px;
    font-weight: normal;
    font-size: 10pt;
    line-height: 1.5;
}

.espr-checkbox.espr-terms input {
    margin-top: 3px;
    flex-shrink: 0;
}

/* chybova stranka (espr/error) */
.espr-error {
    text-align: center;
}

.espr-error p {
    color: #66615b;
    margin: 0 0 22px 0;
    line-height: 1.5;
}

.espr-page a.espr-error-button {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 6px;
    background: #443DB2;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
}

.espr-page-footer {
    max-width: 440px;
    margin: 0 auto 30px auto;
    padding: 0 20px;
    text-align: center;
    font-size: 9pt;
    line-height: 1.8;
    color: #8a8797;
}

.espr-page-footer a {
    color: #66615b;
}

/* paticka administrace - za kontaktem obchodni podminky a ochrana osobnich udaju */
.footer .espr-footer-links a {
    color: #66615b;
}

/* e-mail v patice oranzove jako v ChatGo */
.footer .espr-footer-links a.espr-footer-email,
.espr-page-footer a.espr-footer-email {
    color: #EB5E28;
}

.espr-page-logo + .espr-box {
    margin-top: 24px;
}

.espr-box {
    max-width: 380px;
    margin: 60px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.espr-box.wide {
    max-width: 760px;
}

.espr-box h1 {
    font-size: 16pt;
    margin: 0 0 20px 0;
}

.espr-box label {
    display: block;
    margin: 12px 0 4px 0;
    font-weight: bold;
}

.espr-box input[type=text],
.espr-box input[type=email],
.espr-box input[type=tel],
.espr-box input[type=password] {
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    border: 1px solid #cccccc;
    border-radius: 6px;
    font-size: 11pt;
}

.espr-box button {
    width: 100%;
    margin-top: 20px;
    padding: 11px;
    border: 0;
    border-radius: 6px;
    background: #443DB2;
    color: #ffffff;
    font-size: 12pt;
    cursor: pointer;
}

.espr-msg {
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 12px;
}

.espr-msg.error {
    background: #fdecea;
    color: #b3261e;
}

.espr-msg.ok {
    background: #e7f5ea;
    color: #1e6b34;
}

.espr-links {
    margin-top: 16px;
    font-size: 10pt;
    text-align: center;
}

.espr-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.espr-header h1 {
    margin: 0;
}

.espr-table {
    width: 100%;
    border-collapse: collapse;
}

.espr-table td, .espr-table th {
    text-align: left;
    padding: 8px;
    border-bottom: 1px solid #eeeeee;
}

/* pole pro heslo s okem pro zobrazeni hesla */
.espr-password {
    position: relative;
}

.espr-box .espr-password input {
    padding-right: 44px;
}

.espr-box .espr-eye {
    position: absolute;
    top: 0;
    right: 0;
    width: 44px;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #666666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.espr-box .espr-eye:hover,
.espr-box .espr-eye:focus-visible {
    color: #443DB2;
}

.espr-eye .espr-eye-closed,
.espr-eye[aria-pressed="true"] .espr-eye-open {
    display: none;
}

.espr-eye[aria-pressed="true"] .espr-eye-closed {
    display: block;
}

/* pravidla pro heslo - splnene pravidlo se zazelena */
.espr-rules {
    margin-top: 8px;
    font-size: 10pt;
    color: #666666;
}

.espr-rules ul {
    margin: 4px 0 0 0;
    padding-left: 0;
    list-style: none;
}

.espr-rules li::before {
    content: "\2717";
    display: inline-block;
    width: 18px;
    color: #b3261e;
}

.espr-rules li.ok {
    color: #1e6b34;
}

.espr-rules li.ok::before {
    content: "\2713";
    color: #1e6b34;
}

.espr-box button.espr-link-button {
    width: auto;
    margin: 0;
    padding: 0;
    background: none;
    color: #443DB2;
    font-size: inherit;
    text-decoration: underline;
}

/* administrace aplikace - sekce nastaveni */
.espr-subtitle {
    margin: -12px 0 16px 0;
    color: #6b6990;
}

.espr-section {
    border-top: 1px solid #eeeeee;
    padding-top: 16px;
    margin-top: 20px;
}

.espr-section h2 {
    font-size: 13pt;
    margin: 0 0 8px 0;
}

.espr-section h3 {
    font-size: 11pt;
    margin: 20px 0 4px 0;
}

.espr-hint {
    font-size: 10pt;
    color: #666666;
    line-height: 1.5;
}

.espr-hint-title {
    margin: 12px 0 4px 0;
    font-weight: bold;
}

.espr-steps {
    margin: 4px 0;
    padding-left: 22px;
    line-height: 1.6;
}

.espr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0 16px;
}

.espr-field-wide {
    grid-column: 1 / -1;
}

.espr-box input[type=number] {
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    border: 1px solid #cccccc;
    border-radius: 6px;
    font-size: 11pt;
}

.espr-box input[type=color] {
    width: 100%;
    height: 40px;
    padding: 2px;
    border: 1px solid #cccccc;
    border-radius: 6px;
    background: #ffffff;
    cursor: pointer;
}

.espr-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    padding: 14px;
    background: #f7f7fb;
    border-radius: 8px;
    font-size: 10pt;
    color: #666666;
}

.espr-box button.espr-preview-button {
    width: auto;
    margin: 0;
    padding: 11px 24px;
    cursor: default;
}

.espr-checkbox {
    display: flex !important;
    align-items: center;
    gap: 8px;
    font-weight: normal !important;
}

/* vysledek akce pro zakaznika e-shopu - napr. potvrzeni poptavky */
.espr-result {
    text-align: center;
    padding: 40px 32px;
}

.espr-result h1 {
    margin: 0 0 12px 0;
    font-size: 20pt;
    color: #1f1d4d;
}

.espr-result p {
    margin: 0 0 8px 0;
    font-size: 12pt;
    line-height: 1.6;
    color: #444444;
}

.espr-result-icon {
    width: 76px;
    height: 76px;
    margin: 0 auto 20px auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.espr-result-icon.ok {
    background: #e3f6e8;
    color: #1e8e3e;
    box-shadow: 0 0 0 8px #f1fbf3;
}

.espr-result-icon.error {
    background: #fdf0e1;
    color: #c26a00;
    box-shadow: 0 0 0 8px #fef8f0;
}

.espr-button {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 32px;
    background: #443DB2;
    color: #ffffff !important;
    border-radius: 8px;
    font-size: 12pt;
    font-weight: bold;
    text-decoration: none;
}

.espr-button:hover {
    opacity: .9;
}

/* obsah v layoutu administrace (espr/layout) */
.main-panel .espr-box {
    margin: 0 auto 30px auto;
    max-width: none;
}


/* karta aplikace - ikona vlevo od nazvu */
.espr-app-card-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.espr-app-card-head .title {
    margin: 0;
}

.espr-app-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 14px;
}

.espr-app-icon-letter {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #443DB2;
    color: #ffffff;
    font-size: 22pt;
    font-weight: 700;
}

.espr-app-card .content {
    padding-bottom: 20px;
}

/* prepinac jazyka administrace v horni liste pred uctem - aktualni vlajecka se sipkou, pod ni druhy jazyk */
.navbar .espr-language-switch > a.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
}

.espr-language-switch img {
    display: block;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.navbar .espr-language-menu {
    min-width: 0;
}

.espr-language-form {
    margin: 0;
}

.navbar .espr-language-menu .espr-language-form button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 16px;
    border: 0;
    background: none;
    color: #66615b;
    font-size: 14px;
    white-space: nowrap;
    cursor: pointer;
}

.navbar .espr-language-menu .espr-language-form button:hover {
    background: #f5f5f5;
    color: #443DB2;
}

/* vlajecka jazyka e-shopu u nazvu e-shopu */
.espr-flag {
    display: inline-block;
    width: 18px;
    height: 12px;
    margin-right: 5px;
    vertical-align: -1px;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
}

/* menu layoutu administrace */
.sidebar[data-background-color] .logo .espr-brand-logo {
    font-size: 22pt;
    font-weight: 800;
    letter-spacing: 1px;
    color: #443DB2;
    text-transform: none;
}

.sidebar[data-background-color] .logo .espr-brand-logo span {
    color: #2fbf5a;
    font-weight: 600;
}

.espr-menu-separator {
    height: 1px;
    border-bottom: 1px solid rgba(102, 97, 91, 0.3);
    margin: 10px 22px;
}

/* vysouvaci prepinac aplikaci (jako vyber facebookove stranky v ChatGo) - kolecko, nazev aplikace a cela domena */
.sidebar .nav .espr-app-switch a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-right: 40px;
    text-transform: none;
    opacity: 1;
}

.espr-app-avatar {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #443DB2;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14pt;
    font-weight: bold;
}

.espr-app-avatar-icon {
    border-radius: 10px;
    object-fit: cover;
    background: none;
}

.espr-app-avatar-add {
    background: #68a4f5;
    font-size: 18pt;
    font-weight: normal;
}

.espr-app-switch-text {
    min-width: 0;
}

.espr-app-switch-name {
    display: block;
    font-size: 11pt;
    font-weight: bold;
    color: #1f1d4d;
    line-height: 1.3;
    white-space: normal;
}

.espr-app-switch-domain {
    display: block;
    font-size: 9pt;
    color: #66615b;
    line-height: 1.3;
    white-space: normal;
    word-break: break-all;
}

.espr-app-switch-chevron {
    position: absolute;
    right: 20px;
    top: 50%;
    margin-top: -7px;
    color: #66615b;
}

.sidebar .nav .espr-app-switch-list > li > a {
    margin: 4px 0;
    opacity: 1;
}

.sidebar .nav .espr-app-switch-list > li > a:hover {
    opacity: 1;
}

/* Moje aplikace - karty aplikaci */
.espr-app-card .header .title {
    font-weight: bold;
}

.espr-app-card .espr-app-card-domain {
    color: #66615b;
    font-size: 11pt;
    word-break: break-all;
}

/* datum aktivace aplikace - sede pod e-shopem v hlavicce karty Moje aplikace */
.espr-app-card .espr-app-card-activated {
    display: block;
    margin-top: 2px;
    color: #9a98a8;
    font-size: 9.5pt;
}

/* Moje aplikace bez aplikaci */
.main-panel .espr-box.espr-card.espr-no-apps {
    text-align: center;
    padding: 30px 20px;
}

.espr-no-apps i {
    font-size: 30pt;
    color: #c9c7d9;
}

.espr-no-apps p {
    margin: 10px 0 6px 0;
    font-size: 12pt;
    color: #2c2a4a;
}

.espr-no-apps a {
    color: #443DB2;
    font-weight: 600;
}

.espr-all-apps-title {
    margin-top: 30px;
}

.sidebar .nav .espr-menu-separator-item .espr-menu-separator {
    margin: 10px 22px;
}

/* nadpisy sekci na strance Vsechny aplikace */
.espr-apps-title {
    margin-top: 0;
}

.espr-all-apps-title {
    margin-top: 30px;
}

/* prvni sekce stranky bez cary nahore */
.espr-section-first {
    border-top: 0;
    padding-top: 0;
    margin-top: 0;
}

/* Cena na dotaz - prazdny seznam */
.espr-empty {
    text-align: center;
    padding: 40px 20px;
    color: #66615b;
}

.espr-empty i {
    font-size: 36pt;
    color: #c9c7d9;
}

/* tabulka poptavek se strankovanim (espr/quote/inquiries) */
.main-panel .espr-box.espr-card.espr-table-card {
    padding: 0;
    overflow: hidden;
}

.espr-table-card .espr-empty {
    padding: 50px 20px;
}

.espr-table-wrap {
    overflow-x: auto;
}

.espr-table {
    width: 100%;
    border-collapse: collapse;
}

.espr-table th {
    text-align: left;
    font-size: 9pt;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #66615b;
    background: #f7f7fb;
    padding: 12px 16px;
    border-bottom: 1px solid #ececf4;
}

.espr-table td {
    padding: 13px 16px;
    border-bottom: 1px solid #f0f0f5;
    vertical-align: top;
    font-size: 10.5pt;
    color: #2c2a4a;
}

/* cely radek je odkaz na detail - ::after odkazu v prvni bunce se roztahne pres radek */
.espr-table tbody tr {
    position: relative;
    transform: scale(1);
}

.espr-table tbody tr:hover td {
    background: #f6f5ff;
}

.espr-table .espr-row-link {
    color: #2c2a4a;
}

.espr-table .espr-row-link::after {
    content: "";
    position: absolute;
    inset: 0;
}

.espr-table-message {
    color: #66615b;
    min-width: 220px;
}

/* zacatek zpravy na max. dva radky, cela zprava je v detailu */
.espr-table-message div {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 991px) {
    .espr-table .espr-col-message {
        display: none;
    }
}

.espr-nowrap {
    white-space: nowrap;
}

.espr-muted {
    color: #8a8797;
    font-size: 9.5pt;
}

.espr-block {
    display: block;
}

/* stav poptavky (fragment inquiry-status) */
.espr-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 9pt;
    font-weight: 600;
    white-space: nowrap;
}


.espr-status.new {
    background: #e7e5ff;
    color: #443DB2;
}

.espr-status.in_progress {
    background: #fff1d6;
    color: #a86400;
}

.espr-status.done {
    background: #dcf5e3;
    color: #1d8a3e;
}

.espr-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    flex-wrap: wrap;
    gap: 8px;
}

.espr-pagination .pagination {
    margin: 0;
}

.espr-pagination .pagination > li > a,
.espr-pagination .pagination > li > span {
    color: #443DB2;
    border-color: #e3e2ee;
    min-width: 36px;
    text-align: center;
}

.espr-pagination .pagination > .active > a,
.espr-pagination .pagination > .active > a:hover {
    background: #443DB2;
    border-color: #443DB2;
    color: #fff;
}

.espr-pagination .pagination > .disabled > a,
.espr-pagination .pagination > .disabled > span {
    color: #c3c1cf;
}

/* detail poptavky (espr/quote/inquiry) */
.espr-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    color: #443DB2;
    font-weight: 600;
}

.espr-detail-label {
    font-size: 9pt;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #8a8797;
    margin: 18px 0 6px 0;
}

.espr-detail-label:first-child {
    margin-top: 0;
}

.espr-detail-product {
    font-size: 14pt;
    font-weight: 600;
}

.espr-detail-message {
    margin: 0 0 20px 0;
    padding: 14px 16px;
    background: #f7f7fb;
    border-radius: 8px;
    white-space: pre-line;
    font-size: 11pt;
    line-height: 1.55;
    color: #2c2a4a;
}

.espr-inquiry-detail .espr-detail-label {
    margin-top: 0;
}

/* produkt, e-mail a telefon vedle sebe */
.espr-inquiry-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px 24px;
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid #f0f0f5;
}

@media (max-width: 767px) {
    .espr-inquiry-facts {
        grid-template-columns: minmax(0, 1fr);
    }
}

.espr-detail-strong {
    font-size: 12pt;
    font-weight: 600;
    word-break: break-word;
}

.espr-external-link i {
    margin-left: 6px;
    font-size: 0.7em;
    vertical-align: 0.1em;
    opacity: 0.8;
}

.espr-inquiry-detail .espr-detail-message {
    margin: 0;
}

.espr-detail-history {
    margin: 12px 0 0 0;
}

/* smazani poptavky v detailu */
.espr-delete-form {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f5;
    text-align: right;
}

/* .espr-box button je tlacitko formulare prihlaseni (cela sirka) - tady male tlacitko vpravo */
.espr-box button.espr-delete-button {
    width: auto;
    margin: 0;
    font-size: 10pt;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    color: #c0392b;
    border: 1px solid #e6b0aa;
    border-radius: 8px;
    padding: 8px 14px;
    font-weight: 600;
    cursor: pointer;
}

.espr-box button.espr-delete-button:hover {
    background: #fdecea;
}

/* stav vyrizeni v hlavicce detailu - select v barve stavu, uklada se hned po zmene */
.espr-progress-form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.espr-progress-form label {
    margin: 0;
    color: #66615b;
    font-weight: 600;
}

.espr-progress-select {
    height: 38px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid #e3e2ee;
    font-weight: 600;
    cursor: pointer;
}

.espr-progress-select.new {
    background: #e7e5ff;
    color: #443DB2;
}

.espr-progress-select.in_progress {
    background: #fff1d6;
    color: #a86400;
}

.espr-progress-select.done {
    background: #dcf5e3;
    color: #1d8a3e;
}

.espr-progress-select option {
    background: #fff;
    color: #2c2a4a;
}

.espr-saved-note {
    color: #1d8a3e;
    font-size: 10pt;
}

/* bez posuvniku v levem menu - Paper Dashboard ma overflow-y: scroll */
.sidebar .sidebar-wrapper {
    overflow-y: auto;
    scrollbar-width: none;
}

.sidebar .sidebar-wrapper::-webkit-scrollbar {
    display: none;
}

/* vyraznejsi ovladaci prvky v administraci espr (layout espr/layout) - vychozi Paper Dashboard je moc svetly */
.sidebar[data-background-color] .nav li:not(.active) > a {
    opacity: 1;
    color: #2c2a4a;
}

/* ikony cerne jako text polozky */
.sidebar[data-background-color] .nav li:not(.active) > a i {
    color: #2c2a4a;
}

.sidebar .nav p {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .3px;
}

.sidebar[data-background-color] .nav li:not(.active):hover > a,
.sidebar[data-background-color] .nav li:not(.active):hover > a i {
    color: #443DB2;
}

/* aktivni polozka - fialovy text na jemnem fialovem podkladu */
.sidebar[data-background-color][data-active-color] .nav li.active > a,
.sidebar[data-background-color][data-active-color] .nav li.active > a i {
    color: #443DB2;
}

/* polozky menu (bez prepinace aplikaci) - podklad odsazeny od okraju menu, ikona a text zustanou na miste */
.sidebar[data-background-color] .nav > li:not(.espr-app-switch):not(.espr-menu-separator-item) > a {
    border-radius: 8px;
    margin-left: 12px;
    margin-right: 12px;
    padding-left: 13px;
    padding-right: 13px;
}

/* aktivni polozka a polozka pod mysi maji stejny podklad */
.sidebar[data-background-color][data-active-color] .nav li.active > a,
.sidebar[data-background-color] .nav > li:not(.espr-app-switch):not(.espr-menu-separator-item):hover > a {
    opacity: 1;
    background: rgba(68, 61, 178, 0.07);
}

/* bez sipky Paper Dashboardu u aktivni polozky, staci podklad */
.sidebar .nav li.active > a:before,
.sidebar .nav li.active > a:after,
.off-canvas-sidebar .nav li.active > a:before,
.off-canvas-sidebar .nav li.active > a:after,
.navbar-collapse .nav > li.active > a:before,
.navbar-collapse .nav > li.active > a:after {
    display: none;
}

.main-panel .espr-box label {
    color: #2c2a4a;
}

.main-panel .espr-box input[type=text],
.main-panel .espr-box input[type=email],
.main-panel .espr-box input[type=tel],
.main-panel .espr-box input[type=password],
.main-panel .espr-box input[type=number],
.main-panel .espr-box input[type=color],
.main-panel .espr-box textarea {
    border: 1px solid #9a98b5;
    color: #1f1d4d;
    background: #ffffff;
}

.main-panel .espr-box input:focus,
.main-panel .espr-box textarea:focus {
    outline: none;
    border-color: #443DB2;
    box-shadow: 0 0 0 3px rgba(68, 61, 178, 0.18);
}

.main-panel .espr-box input[type=checkbox] {
    width: 18px;
    height: 18px;
    accent-color: #443DB2;
}

.main-panel .espr-hint,
.main-panel .espr-subtitle,
.main-panel .espr-rules {
    color: #4a4860;
}

.main-panel .espr-section h2,
.main-panel .espr-section h3 {
    color: #1f1d4d;
}

.main-panel .card .category {
    color: #4a4860;
}

.main-panel .btn-success {
    color: #ffffff;
    background-color: #2fa84f;
    border-color: #2fa84f;
    opacity: 1;
}

.main-panel .btn-success:hover,
.main-panel .btn-success:focus {
    color: #ffffff;
    background-color: #258a40;
    border-color: #258a40;
}

/* polozky menu - delsi nazev se zalomi vedle ikony, ne pod ni */
.sidebar[data-background-color] .nav li > a {
    display: flex;
    align-items: center;
}

.sidebar[data-background-color] .nav li > a > i {
    flex-shrink: 0;
}

.sidebar[data-background-color] .nav li > a > p {
    line-height: 1.35;
    padding: 6px 0;
}

/* ------------------------------------------------------------------------------------------------------------
 * Stranky nastaveni v administraci: hlavicka pres celou sirku, vlevo ocislovane karty kategorii,
 * vpravo pripnuty zivy nahled (static/espr/quote/settings.js). Na uzsi obrazovce je nahled pod nastavenim.
 * ------------------------------------------------------------------------------------------------------------ */
.espr-page-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin: 0 0 20px 0;
}

.espr-page-head h1 {
    margin: 0;
    font-size: 20pt;
    color: #1f1d4d;
}

/* nazev stranky je v hornim pruhu layoutu - hlavicka stranky ukazuje jen aplikaci a e-shop */
.espr-page-head .espr-subtitle {
    margin: 0;
}

.espr-save-button {
    flex-shrink: 0;
    padding: 11px 28px;
    border: 0;
    border-radius: 8px;
    background: #443DB2;
    color: #ffffff;
    font-size: 12pt;
    font-weight: bold;
    cursor: pointer;
}

.espr-save-button:hover {
    background: #362f99;
}

.espr-settings-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 400px;
    gap: 24px;
    align-items: start;
}

@media (max-width: 1199px) {
    .espr-settings-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

.main-panel .espr-box.espr-card {
    margin: 0 0 20px 0;
    padding: 24px;
}

.espr-card-head {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.espr-card-number {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #443DB2;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.espr-card-number.info {
    background: #2fbf5a;
}

.espr-card-head h2 {
    margin: 4px 0 4px 0;
    font-size: 14pt;
    color: #1f1d4d;
}

.espr-card-head .espr-hint {
    margin: 0;
}

/* obsah karty zarovnany pod nadpis - kolecko s cislem (32px + mezera 14px) zustane samo vlevo */
.espr-card > .espr-card-head ~ * {
    margin-left: 46px;
}

@media (max-width: 767px) {
    .espr-card > .espr-card-head ~ * {
        margin-left: 0;
    }
}

.espr-card .espr-steps {
    margin-top: 0;
}

/* odkaz na podrobny navod pod kroky navodu */
.espr-guide-link {
    display: inline-block;
    margin-top: 12px;
    color: #443DB2;
    font-weight: 600;
}

/* krok navodu: tucne co udelat, pod tim seda vysvetlivka proc */
.espr-card .espr-steps li {
    margin-bottom: 10px;
}

.espr-card .espr-steps li:last-child {
    margin-bottom: 0;
}

.espr-steps .espr-step-why {
    display: block;
    color: #66615b;
    font-size: 9.5pt;
    line-height: 1.5;
}

.espr-form-actions {
    text-align: right;
    margin-bottom: 30px;
}

/* pripnuty nahled */
.espr-preview-panel {
    position: sticky;
    top: 20px;
}

.espr-preview-label {
    font-size: 10pt;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #4a4860;
    margin: 0 0 8px 2px;
}

.espr-preview-stage {
    background: #8a88a0;
    border-radius: 12px;
    padding: 24px 18px;
    margin-bottom: 20px;
}

.espr-preview-stage.light {
    background: #ffffff;
    border: 1px solid #e6e6ef;
}

/* nahled formulare - stejne rozvrzeni jako formular na e-shopu (static/espr/quote/loader.js) */
.espr-mock-dialog {
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    padding: 24px 20px 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
    color: #333333;
}

.espr-mock-close {
    position: absolute;
    top: 6px;
    right: 12px;
    font-size: 22px;
    color: #666666;
}

.espr-mock-dialog h3 {
    margin: 0 20px 2px 0;
    font-size: 17px;
    font-weight: bold;
    word-break: break-word;
}

.espr-mock-product {
    margin: 0 0 12px 0;
    font-size: 13px;
    color: #666666;
}

.espr-mock-label {
    display: block;
    margin: 10px 0 4px 0;
    font-size: 13px;
    font-weight: bold;
    word-break: break-word;
}

.espr-mock-input {
    height: 34px;
    border: 1px solid #cccccc;
    border-radius: 6px;
}

.espr-mock-input.textarea {
    height: 70px;
}

.espr-mock-dialog .espr-mock-button,
.espr-mock-product-page .espr-mock-button {
    display: inline-block;
    padding: 11px 24px;
    font-size: 15px;
    font-weight: bold;
    line-height: 1.2;
    text-align: center;
    word-break: break-word;
    cursor: default;
}

.espr-mock-dialog .espr-mock-button {
    display: block;
    width: 100%;
    margin-top: 14px;
}


/* nahled detailu produktu a karty ve vypisu */
.espr-mock-product-page h3 {
    margin: 0 0 10px 0;
    font-size: 17px;
    font-weight: bold;
}

.espr-mock-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: #f7f7f7;
    border-radius: 6px;
    margin-bottom: 6px;
    font-size: 13px;
}

.espr-mock-stock {
    color: #2fa84f;
    font-weight: bold;
}

/* text misto ceny vlevo od tlacitka - jako cena v sablone e-shopu */
.espr-mock-detail-price {
    font-size: 17px;
    font-weight: bold;
    color: #1f1d4d;
    word-break: break-word;
}

.espr-mock-card {
    width: 200px;
    margin: 0 auto;
    border: 1px solid #e6e6ef;
    border-radius: 8px;
    padding: 12px;
    text-align: left;
    background: #ffffff;
}

.espr-mock-card-image {
    height: 90px;
    border-radius: 6px;
    background: linear-gradient(135deg, #ececf4, #d9d8e8);
    margin-bottom: 10px;
}

.espr-mock-card-name {
    font-size: 13px;
    font-weight: bold;
    text-decoration: underline;
    margin-bottom: 6px;
}

.espr-mock-card-price {
    font-size: 16px;
    font-weight: bold;
    color: #1f1d4d;
    margin-bottom: 10px;
    word-break: break-word;
}

.espr-mock-card-detail {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 4px;
    background: #2fa84f;
    color: #ffffff;
    font-size: 13px;
    font-weight: bold;
}

/* levy panel - bez cerneho ramecku po kliknuti mysi (bootstrap a:focus outline), pro klavesnici zustane
   viditelny ramecek pres :focus-visible */
.sidebar a:focus,
.sidebar button:focus {
    outline: none;
}

.sidebar a:focus-visible,
.sidebar button:focus-visible {
    outline: 2px solid #443DB2;
    outline-offset: -2px;
    border-radius: 6px;
}

/* --- Instagram Widget - administrace (espr/instagram) --- */
.espr-box .espr-ig-button {
    display: inline-block;
    width: auto;
    margin: 0;
    padding: 10px 22px;
    border: 1px solid #443DB2;
    border-radius: 8px;
    background: #443DB2;
    color: #ffffff;
    font-size: 11pt;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
}

.espr-box .espr-ig-button:hover {
    background: #362f99;
    color: #ffffff;
}

.espr-box .espr-ig-button.secondary {
    background: #ffffff;
    color: #443DB2;
}

.espr-box .espr-ig-button.secondary:hover {
    background: #f0effb;
}

.espr-box .espr-ig-button.danger {
    border-color: #b3261e;
    background: #ffffff;
    color: #b3261e;
}

.espr-box .espr-ig-button.danger:hover {
    background: #fdecea;
}

.espr-box .espr-ig-button.danger-solid {
    border-color: #b3261e;
    background: #b3261e;
    color: #ffffff;
}

.espr-box .espr-ig-button.danger-solid:hover {
    border-color: #8f1e18;
    background: #8f1e18;
    color: #ffffff;
}

.espr-box .espr-ig-button.small {
    padding: 7px 14px;
    font-size: 10pt;
}

.espr-box .espr-ig-link-button {
    width: auto;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: #443DB2;
    font-size: 10pt;
    text-decoration: underline;
    cursor: pointer;
}

.espr-ig-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.espr-ig-actions form {
    margin: 0;
}

.espr-ig-profile {
    display: flex;
    align-items: center;
    gap: 18px;
}

.espr-ig-profile h2 {
    margin: 0 0 2px 0;
    font-size: 15pt;
    color: #1f1d4d;
}

.espr-ig-profile p {
    margin: 6px 0 0 0;
}

.espr-ig-avatar {
    flex: 0 0 auto;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 3px #f0effb;
}

.espr-ig-avatar-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0effb;
    color: #443DB2;
    font-size: 28px;
}

.espr-ig-sync {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.espr-ig-sync-form {
    margin: 0;
}

.espr-ig-filter {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px 0 20px;
}

.main-panel .espr-box .espr-ig-filter label {
    margin: 0;
}

.main-panel .espr-box select {
    max-width: 100%;
    padding: 8px 10px;
    border: 1px solid #9a98b5;
    border-radius: 6px;
    background: #ffffff;
    color: #1f1d4d;
    font-size: 11pt;
}

.espr-ig-table td {
    vertical-align: top;
}

.espr-ig-table tr.espr-ig-row-hidden td {
    opacity: .55;
}

.espr-ig-cover-cell {
    width: 96px;
}

.espr-ig-cover {
    display: block;
    width: 80px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 6px;
}

.espr-ig-kind {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    background: #f0effb;
    color: #443DB2;
    font-size: 9pt;
    font-weight: bold;
}

.espr-ig-kind.reels {
    background: #fde7ef;
    color: #c2185b;
}

.espr-ig-kind.video {
    background: #fff3e0;
    color: #b25e00;
}

.espr-ig-kind.album {
    background: #e7f5ea;
    color: #1e6b34;
}

.espr-ig-caption {
    color: #1f1d4d;
    word-break: break-word;
}

.espr-ig-warning {
    color: #b3261e;
    font-size: 10pt;
}

.espr-ig-product-cell {
    min-width: 260px;
}

.espr-ig-product-input {
    display: flex;
    gap: 6px;
}

.main-panel .espr-box .espr-ig-product-input input[type=text] {
    width: 150px;
    padding: 7px 9px;
    font-size: 10pt;
}

#espr-ig-place-picked[hidden],
[data-ig-custom-place][hidden],
.main-panel .espr-box #followLabel[hidden] {
    display: none !important;
}

.espr-ig-product-remove {
    margin: 8px 0 0 0;
}

.espr-ig-product {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 8px;
    font-size: 10pt;
}

.espr-ig-product img {
    width: 36px;
    height: 36px;
    object-fit: cover;
    border-radius: 6px;
}

.espr-ig-product form {
    margin: 2px 0 0 0;
}

.espr-center,
.espr-table th.espr-center {
    text-align: center;
}

/* nastaveni widgetu - radky popisek | pole jako tabulka nastaveni doplnku Reels widget pro Shoptet */
.espr-ig-form {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 14px 24px;
    align-items: start;
    max-width: 860px;
}

.main-panel .espr-box .espr-ig-form > label,
.espr-ig-form-label {
    margin: 9px 0 0 0;
    font-weight: bold;
    color: #2c2a4a;
}

.espr-ig-form .espr-hint {
    margin: 6px 0 0 0;
}

.main-panel .espr-box .espr-ig-form select {
    width: 100%;
    max-width: 420px;
}

.main-panel .espr-box .espr-ig-form input[type=text] {
    width: 100%;
    max-width: 420px;
}

.espr-ig-form .espr-ig-button.small {
    margin-top: 10px;
}

.espr-ig-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.main-panel .espr-box .espr-ig-row select,
.main-panel .espr-box .espr-ig-row input[type=text] {
    width: auto;
    flex: 1 1 200px;
    max-width: 260px;
}

.espr-ig-colors {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
}

.main-panel .espr-box label.espr-ig-color {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-weight: normal;
}

.main-panel .espr-box .espr-ig-color input[type=color] {
    width: 40px;
    height: 32px;
    padding: 2px;
}

.espr-ig-card-title {
    margin: 0 0 6px 0;
    font-size: 14pt;
    color: #1f1d4d;
}

.espr-ig-card-hint {
    margin: 0 0 18px 0;
}

.espr-ig-lead {
    margin: 0 0 16px 0;
    font-size: 12pt;
    color: #1f1d4d;
}

.espr-ig-note {
    margin: 14px 0 0 0;
}

.espr-ig-inline-form {
    display: inline-block;
    margin: 0 0 0 10px;
}

.espr-ig-profile-name {
    font-size: 13pt;
    font-weight: bold;
    color: #1f1d4d;
}

.espr-ig-page-link {
    margin: 0 0 20px 0;
    padding: 14px 16px;
    border-radius: 8px;
    background: #f7f7fb;
}

.espr-ig-copy {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
}

.espr-ig-copy code,
.espr-hint code {
    padding: 3px 8px;
    border-radius: 6px;
    background: #f0effb;
    color: #1f1d4d;
    word-break: break-all;
}

/* karta nahledu neni .espr-box - styly tlacitek administrace (.espr-box button) by se uplatnily i na sipky
   a tlacitka widgetu */
.espr-ig-preview-card {
    margin: 0 0 20px 0;
    padding: 24px;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.espr-ig-preview {
    margin: 12px -10px 0 -10px;
}

@media (max-width: 767px) {
    .espr-ig-form {
        grid-template-columns: minmax(0, 1fr);
        gap: 6px;
    }

    .espr-ig-form > div {
        margin-bottom: 8px;
    }
}

/* odkaz na navod v podnadpisu stranky aplikace */
.espr-subtitle-link {
    color: #443DB2;
    font-weight: bold;
    white-space: nowrap;
}

.espr-subtitle-link:hover {
    color: #362f99;
    text-decoration: underline;
}

.espr-ig-guide-anchor {
    display: table;
    margin-top: 10px;
    color: #443DB2;
    font-weight: bold;
}

/* varovani u volby, ktera zavisi na sablone e-shopu */
.espr-ig-warning-box {
    margin: 8px 0 0 0;
    padding: 8px 12px;
    border-left: 3px solid #f0b429;
    border-radius: 4px;
    background: #fff8e6;
    color: #6b4e00;
    font-size: 10pt;
    max-width: 420px;
}

/* prepinac prispevku v galerii obrazku nad tabulkou prispevku */
.espr-ig-gallery-form {
    margin: 0;
    padding: 16px 20px;
    border-bottom: 1px solid #ececf4;
}

.main-panel .espr-box .espr-ig-gallery-form label {
    display: inline-block;
    margin: 0 10px 0 0;
}

.espr-ig-gallery-form .espr-hint {
    margin: 8px 0 0 0;
}

.espr-ig-gallery-form .espr-ig-warning-box {
    max-width: none;
}

/* dlazdice aplikaci - stejne vysoke, radky zleva doprava (sloupce Bootstrapu s ruznou vyskou karet se zasekavaly) */
.espr-app-grid {
    display: flex;
    flex-wrap: wrap;
}

.espr-app-grid::before,
.espr-app-grid::after {
    display: none;
}

.espr-app-grid > [class*="col-"] {
    display: flex;
    flex-direction: column;
}

.espr-app-grid .espr-app-card {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    /* obrazek v karte s kulatymi rohy */
    overflow: hidden;
}

/* uvodni obrazek aplikace nahore v karte Dalsi aplikace */
.espr-app-grid .espr-app-card .espr-app-banner {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-bottom: 1px solid #eeeeee;
}

/* tlacitka vzdy dole v karte */
.espr-app-grid .espr-app-card .content {
    margin-top: auto;
}

/* pripravovana aplikace (EsprApp.comingSoon) - cerveny stitek Pripravujeme pres pravy horni roh karty,
   karta bez tlacitka ma dole stejne odsazeni jako ostatni */
.espr-app-grid .espr-app-card.espr-app-coming-soon {
    position: relative;
    padding-bottom: 15px;
}

.espr-app-ribbon {
    position: absolute;
    top: 26px;
    right: -46px;
    z-index: 2;
    width: 180px;
    padding: 6px 0;
    background: #d32f2f;
    color: #ffffff;
    font-size: 9pt;
    font-weight: bold;
    letter-spacing: .04em;
    text-align: center;
    text-transform: uppercase;
    transform: rotate(45deg);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
    pointer-events: none;
}

@media (max-width: 991px) {
    .espr-app-grid > [class*="col-"] {
        width: 100%;
    }
}

/* --- WhatsApp Widget - administrace (espr/whatsapp) --- */
.main-panel .espr-wa-intro {
    margin: -6px 0 16px 0;
}

.espr-wa-avatar {
    display: block;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.espr-wa-contact-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.espr-wa-contacts td {
    vertical-align: middle;
}

.espr-wa-contacts tr.espr-wa-row-hidden td {
    opacity: .6;
}

.espr-wa-yes {
    color: #1d8a3e;
    font-weight: 600;
}

.espr-wa-no {
    color: #b3261e;
}

/* odkaz Upravit v posledni bunce radku - zarovnany uplne doprava (sloupec jen na sirku odkazu), selektor s tabulkou
   kvuli obecnemu .espr-table td { text-align: left } */
.espr-wa-edit,
.espr-table td.espr-wa-edit {
    width: 1%;
    color: #443DB2;
    font-weight: 600;
    text-align: right;
}

@media (max-width: 991px) {
    .espr-wa-col-offline {
        display: none;
    }
}

.espr-wa-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.espr-wa-grid-2 {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.main-panel .espr-box .espr-wa-grid select,
.main-panel .espr-box .espr-wa-time-row select {
    width: 100%;
}

.espr-wa-time-row {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 340px;
}

/* vyber avatara - obrazky jako prepinac, vybrany s fialovym ramem */
.espr-wa-avatars {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 10px;
}

.main-panel .espr-box label.espr-wa-avatar-option {
    position: relative;
    margin: 0;
    cursor: pointer;
}

.espr-wa-avatar-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.espr-wa-avatar-option img {
    display: block;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid transparent;
    transition: border-color .15s;
}

.espr-wa-avatar-option:hover img {
    border-color: #c9c7d9;
}

.espr-wa-avatar-option input:checked + img {
    border-color: #443DB2;
}

.espr-wa-avatar-option input:focus-visible + img {
    outline: 2px solid #443DB2;
    outline-offset: 2px;
}

.espr-wa-upload-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.espr-wa-upload-row .espr-wa-avatar {
    width: 70px;
    height: 70px;
}

.espr-wa-color-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.main-panel .espr-box .espr-wa-color-row input[type=color] {
    width: 80px;
}

#espr-wa-color-reset {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #443DB2;
    font-size: 10pt;
}

.espr-wa-swatch {
    display: inline-block;
    width: 18px;
    height: 18px;
    border-radius: 50%;
}

/* nahled widgetu - neutralni pozadi jako stranka e-shopu */
.espr-preview-stage.espr-wa-preview-stage {
    padding: 0;
    overflow: hidden;
    background: linear-gradient(180deg, #f7f7fb 0%, #ececf4 100%);
}

/* --- Mapa prodejen - administrace (espr/maps) --- */
.espr-maps-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.espr-maps-search {
    display: flex;
    gap: 8px;
    flex: 0 1 460px;
}

.main-panel .espr-maps-search input[type=search],
.main-panel .espr-maps-inline input[type=text] {
    flex: 1 1 auto;
    min-width: 0;
    padding: 9px 12px;
    border: 1px solid #9a98b5;
    border-radius: 6px;
    font-size: 11pt;
    color: #1f1d4d;
    background: #ffffff;
}

.espr-maps-search button,
.main-panel .espr-box button.espr-maps-copy-button,
.main-panel .espr-box button.espr-maps-geocode-button,
.main-panel .espr-box button.espr-maps-picker-button {
    width: auto;
    margin: 0;
    padding: 9px 16px;
    border: 1px solid #443DB2;
    border-radius: 6px;
    background: #ffffff;
    color: #443DB2;
    font-size: 10.5pt;
    font-weight: 600;
    cursor: pointer;
}

.espr-maps-add,
.main-panel .espr-box button.espr-maps-add,
.main-panel .espr-box button.espr-maps-sync {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: auto;
    margin: 0;
    padding: 10px 18px;
    border: 0;
    border-radius: 8px;
    background: #443DB2;
    color: #ffffff;
    font-size: 10.5pt;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
}

.espr-maps-add:hover,
.espr-maps-add:focus {
    background: #362f99;
    color: #ffffff;
    text-decoration: none;
}

.espr-maps-inline {
    display: flex;
    gap: 10px;
    max-width: 560px;
}

.espr-maps-table td {
    vertical-align: middle;
}

.espr-maps-warning {
    color: #b3261e;
    font-size: 9.5pt;
}

.espr-maps-geocode {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.main-panel .espr-box textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    border-radius: 6px;
    font-size: 11pt;
    resize: vertical;
}

.main-panel .espr-box input[readonly] {
    background: #f4f4f8;
    color: #4a4860;
}

.espr-maps-label {
    display: block;
    margin: 12px 0 4px 0;
    font-weight: bold;
    color: #2c2a4a;
}

.espr-maps-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 22px;
}

.espr-maps-checks .espr-checkbox {
    margin: 0;
}

/* dalsi typy prodejny pod sebou, hlavni typ se v nich skryva (hidden) */
.espr-maps-checks.espr-maps-checks-column {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 6px;
}

.espr-maps-checks .espr-checkbox[hidden] {
    display: none !important;
}

/* podvolba odsazena pod nadrazenou volbou - obsah karty je odsazeny 46 px (pod nadpisem karty) */
.espr-card > .espr-card-head ~ .espr-maps-sub {
    margin-left: 72px;
}

@media (max-width: 767px) {
    .espr-card > .espr-card-head ~ .espr-maps-sub {
        margin-left: 26px;
    }
}

/* text v prazdnem seznamu - kurziva, ne velikost ikony (.espr-empty i) */
.espr-empty p em {
    font-size: inherit;
    color: inherit;
}

.espr-maps-colors {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

.espr-maps-filter {
    max-width: 320px;
}

.espr-maps-copy {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.espr-maps-copy code {
    padding: 8px 12px;
    border-radius: 6px;
    background: #f4f4f8;
    color: #1f1d4d;
    font-size: 10.5pt;
}

.espr-maps-actions {
    text-align: left;
}

.espr-maps-delete {
    margin: -10px 0 30px 0;
}

.main-panel button.espr-maps-delete-button {
    width: auto;
    margin: 0;
    padding: 8px 0;
    border: 0;
    background: none;
    color: #b3261e;
    font-size: 10.5pt;
    cursor: pointer;
}

.espr-maps-preview-title {
    margin: 0 0 4px 0;
    font-size: 14pt;
    color: #1f1d4d;
}

.espr-maps-preview {
    margin-top: 16px;
    border: 1px solid #e6e6ef;
    border-radius: 8px;
    overflow: hidden;
}

/* Mapa prodejen - editor popisu prodejny (static/espr/maps/admin.js) */
.espr-maps-editor {
    border: 1px solid #c9c7d9;
    border-radius: 6px;
    background: #ffffff;
    overflow: hidden;
}

.espr-maps-editor:focus-within {
    border-color: #443DB2;
}

.espr-maps-editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px;
    padding: 4px 6px;
    border-bottom: 1px solid #ececf4;
    background: #f7f7fb;
}

.main-panel .espr-box .espr-maps-editor-toolbar button {
    width: auto;
    min-width: 32px;
    height: 30px;
    margin: 0;
    padding: 0 8px;
    border: none;
    border-radius: 4px;
    background: transparent;
    color: #2c2a4a;
    font-size: 11pt;
    line-height: 30px;
    cursor: pointer;
}

.main-panel .espr-box .espr-maps-editor-toolbar button:hover,
.main-panel .espr-box .espr-maps-editor-toolbar button.active {
    background: #e7e5f7;
    color: #443DB2;
}

.espr-maps-editor-separator {
    width: 1px;
    height: 20px;
    margin: 0 4px;
    background: #dcdbe8;
}

.espr-maps-editor-area {
    min-height: 120px;
    max-height: 360px;
    overflow-y: auto;
    padding: 10px 12px;
    font-size: 11pt;
    line-height: 1.5;
    color: #2c2a4a;
    outline: none;
}

.espr-maps-editor-area p,
.espr-maps-editor-area div {
    margin: 0 0 8px 0;
}

.espr-maps-editor-area ul,
.espr-maps-editor-area ol {
    margin: 0 0 8px 0;
    padding-left: 24px;
}

.espr-maps-editor-area a {
    color: #443DB2;
    text-decoration: underline;
}

/* Mapa prodejen - mapka s polohou prodejny */
.espr-maps-location-map {
    /* sirka podle karty (blok) - karty odsazuji obsah zleva, 100 % by pretekalo */
    width: auto;
    height: 320px;
    margin-top: 12px;
    border: 1px solid #c9c7d9;
    border-radius: 6px;
    z-index: 0;
}

/* Mapa prodejen - okno pro vlozeni odkazu do popisu prodejny */
.espr-maps-link-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(31, 29, 77, .45);
}

.espr-maps-link-modal[hidden] {
    display: none;
}

.espr-maps-link-dialog {
    width: 100%;
    max-width: 520px;
    padding: 24px 26px 20px;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 20px 50px rgba(20, 14, 80, .3);
}

.espr-maps-link-dialog h3 {
    margin: 0 0 16px 0;
    font-size: 15pt;
    color: #2c2a4a;
}

.espr-maps-link-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
}

.main-panel .espr-box .espr-maps-link-actions button {
    width: auto;
    margin: 0;
    padding: 10px 22px;
    border-radius: 6px;
    font-size: 11pt;
    font-weight: 600;
}

.main-panel .espr-box .espr-maps-link-actions .espr-maps-link-cancel {
    border: 1px solid #c9c7d9;
    background: #ffffff;
    color: #2c2a4a;
}

@media (max-width: 600px) {
}

/* Mapa prodejen - zaskrtavatko Na mape v tabulce prodejen a osobniho odberu - nad odkazem pres cely radek */
.espr-maps-visible-form {
    position: relative;
    z-index: 1;
    display: inline-block;
    margin: 0;
}

.main-panel .espr-maps-visible-check {
    width: 18px;
    height: 18px;
    margin: 0;
    vertical-align: middle;
    accent-color: #443DB2;
    cursor: pointer;
}

.espr-maps-visible-form.saving {
    opacity: .5;
}

/* Mapa prodejen - pole pod sebou (Zobrazeni a umisteni mapy) */
.espr-grid.espr-maps-stack {
    grid-template-columns: minmax(0, 420px);
}

/* Mapa prodejen - vlastni umisteni mapy: navod, tlacitko, Vlozit a vybrane misto pod sebou se stejnou mezerou */
.espr-maps-custom-place {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-top: 12px;
}

.espr-maps-custom-place > * {
    margin: 0;
}

.espr-maps-custom-place > [hidden] {
    display: none;
}

.espr-maps-custom-place > .espr-maps-stack {
    align-self: stretch;
}

/* umisteni nad patickou - blok vlastniho umisteni skryty (display: flex by atribut hidden prebil) */
.espr-maps-custom-place[hidden] {
    display: none;
}

/* Mapa prodejen - nahled mapy v administraci: tlacitka mapy (Zobrazit vse, Hledat) bez obecneho stylu tlacitek
   administrace (.espr-box button - plna sirka, zaobleni) - v nahledu vypadaji stejne jako na e-shopu */
.main-panel .espr-box .chatgo-maps-widget-root button {
    width: auto;
    border-radius: 0;
}

/* Mapa prodejen - nahled v administraci: filtry (select) jako na e-shopu - bez obecneho stylu selectu administrace
   (.espr-box select - zaobleni, sede oramovani, bile pozadi bez sipky), vlastni sipka odsazena od praveho okraje */
.main-panel .espr-box .chatgo-maps-widget-root .chatgo-maps-widget-controls select {
    padding: 10px 44px 10px 14px;
    border: 1px solid var(--chatgo-maps-text, #000000);
    border-radius: 0;
    background-color: var(--chatgo-maps-bg, #ffffff);
    background-image: var(--chatgo-maps-select-arrow);
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 12px 8px;
    color: var(--chatgo-maps-text, #000000);
    font: inherit;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* ===================================== Otevírací doba (espr/openinghours) ===================================== */

/* tydenni rozvrh - den, otevreno, casy s nepovinnou prestavkou */
.espr-oh-week {
    width: 100%;
    border-collapse: collapse;
}

.espr-oh-week td {
    padding: 10px 8px;
    border-bottom: 1px solid #f0f0f5;
    vertical-align: middle;
}

.espr-oh-week td.espr-oh-day-name {
    width: 110px;
    font-weight: 600;
    color: #2c2a4a;
}

.espr-oh-week td.espr-oh-switch {
    width: 120px;
}

.espr-oh-week td.espr-oh-switch .espr-checkbox {
    margin: 0;
}

.espr-oh-week tr.espr-oh-day-closed .espr-oh-times {
    opacity: .35;
}

.espr-oh-times {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.espr-oh-times .espr-oh-sep {
    color: #8a88a0;
}

.espr-oh-break {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 6px;
    padding-left: 14px;
    border-left: 1px solid #e5e3f0;
}

.espr-oh-break[hidden],
.espr-oh-times [hidden] {
    display: none;
}

.main-panel .espr-box input.espr-oh-time {
    width: 66px;
    padding: 7px 8px;
    border: 1px solid #9a98b5;
    border-radius: 6px;
    text-align: center;
}

.main-panel .espr-box button.espr-oh-link {
    width: auto;
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    color: #443DB2;
    font-size: 10pt;
    font-weight: 600;
    cursor: pointer;
}

.main-panel .espr-box button.espr-oh-link:disabled {
    cursor: default;
}

.espr-oh-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 14px;
}

/* vyjimky */
.espr-oh-badge {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 9pt;
    font-weight: 600;
    white-space: nowrap;
}

.espr-oh-badge-closed {
    background: #fdecea;
    color: #b3261e;
}

.espr-oh-badge-special {
    background: #efe8fb;
    color: #6b3fc0;
}

.espr-oh-badge-past {
    background: #f1f1f4;
    color: #8a88a0;
}

.espr-oh-radio {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 6px 0 10px;
}

.espr-oh-radio label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-weight: normal !important;
}

.espr-oh-exception-times {
    margin-left: 26px;
}

.espr-oh-disabled {
    opacity: .4;
}

.espr-oh-exception-form {
    margin-top: 24px;
    max-width: 760px;
}

/* svatky */
.espr-oh-holidays {
    margin-top: 12px;
}

.espr-oh-holidays .espr-table th.espr-oh-holiday-closed,
.espr-oh-holidays .espr-table td.espr-oh-holiday-closed {
    width: 1%;
    text-align: center;
}

.espr-oh-holidays.espr-oh-disabled {
    pointer-events: none;
}

.espr-oh-notice-fields {
    margin-top: 12px;
}

/* vzhled a texty */
.espr-oh-colors {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
}

.espr-oh-colors .espr-field {
    min-width: 150px;
}

.espr-oh-color-reset {
    display: inline-block;
    margin-top: 8px;
    color: #443DB2;
    font-weight: 600;
}

.espr-oh-sub {
    margin-left: 26px;
}

.espr-oh-closing-soon {
    margin-top: 12px;
}

/* nahled widgetu */
.espr-oh-preview-stage {
    padding: 22px 12px;
}

/* Oteviraci doba - upravitelny nazev svatku v tabulce */
.main-panel .espr-box input.espr-oh-holiday-name {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #c9c7d9;
    border-radius: 6px;
}

/* Oteviraci doba - skupiny svatku (zeme e-shopu, druha zeme) a vlastni svatky */
.espr-oh-holidays .espr-table tr.espr-oh-holiday-group td {
    padding-top: 14px;
    font-size: 9pt;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #66615b;
    background: #f7f7fb;
}

.espr-oh-custom-holidays {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.espr-oh-custom-holiday {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 520px;
}

.main-panel .espr-box input.espr-oh-custom-date {
    flex: 0 0 90px;
    width: 90px;
    padding: 7px 8px;
    border: 1px solid #9a98b5;
    border-radius: 6px;
    text-align: center;
}

.main-panel .espr-box input.espr-oh-custom-name {
    flex: 1 1 auto;
    min-width: 0;
    padding: 7px 8px;
    border: 1px solid #9a98b5;
    border-radius: 6px;
}

.espr-oh-tools [hidden] {
    display: none;
}



/* Oteviraci doba - odkaz Resetovat na vychozi text pod polem, zarovnany vpravo */
.espr-oh-reset {
    display: block;
    margin-top: 3px;
    color: #5f57c9;
    font-size: 9.5pt;
    text-align: right;
}

.espr-oh-reset:hover {
    color: #443DB2;
}

/* Oteviraci doba - vlastni vyber ikony s ikonami u polozek (admin.js), puvodni select je skryty */
.espr-oh-icon-picker {
    position: relative;
    max-width: 320px;
}

.main-panel .espr-box button.espr-oh-icon-current {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin: 0;
    padding: 8px 34px 8px 10px;
    border: 1px solid #9a98b5;
    border-radius: 6px;
    background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%231f1d4d' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 12px center;
    color: #1f1d4d;
    font-size: 11pt;
    text-align: left;
    cursor: pointer;
}

.espr-oh-icon-picker svg {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: #443DB2;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.espr-oh-icon-list {
    position: absolute;
    z-index: 20;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    margin: 0;
    padding: 4px;
    list-style: none;
    border: 1px solid #d9d7e8;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(20, 14, 80, .15);
}

.espr-oh-icon-list[hidden] {
    display: none;
}

.espr-oh-icon-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 6px;
    color: #1f1d4d;
    cursor: pointer;
    outline: none;
}

.espr-oh-icon-list li:hover,
.espr-oh-icon-list li:focus {
    background: #f1f0fb;
}

.espr-oh-icon-list li[aria-selected="true"] {
    font-weight: 600;
    background: #e9e7fb;
}

/* pole s nemennou (zasedlou) predponou pred hodnotou - odkaz tlacitka Oteviraci doby, odkaz v popisu Mapy prodejen
   (https://, tel:, mailto:) */
.espr-prefixed {
    display: flex;
    align-items: stretch;
}

.espr-prefixed .espr-prefix {
    display: flex;
    align-items: center;
    padding: 0 12px;
    border: 1px solid #9a98b5;
    border-right: 0;
    border-radius: 6px 0 0 6px;
    background: #f1f0fb;
    color: #4d4a75;
    font-size: 11pt;
    white-space: nowrap;
    user-select: none;
}

.main-panel .espr-box .espr-prefixed input {
    flex: 1 1 auto;
    min-width: 0;
    border-radius: 0 6px 6px 0;
}

/* Oteviraci doba - skryty den rozvrhu (nezobrazi se v rozpisu widgetu) - nazev dne zesedly */
.espr-oh-week tr.espr-oh-day-hidden td.espr-oh-day-name {
    color: #9a98b5;
    text-decoration: line-through;
}

/* hlavicka stranky s tlacitkem Ulozit pripnuta nahore - pri posouvani zustava videt (vsechny doplnky, page-header(withSave)) */
.espr-page-head.espr-page-head-sticky {
    position: sticky;
    top: 0;
    z-index: 20;
    margin: 0 -15px 20px;
    padding: 12px 15px;
    background: #f4f3ef;
}

/* pripnuty nahled pod pripnutou hlavickou */
.espr-page-head-sticky ~ .espr-settings-layout .espr-preview-panel,
.col-lg-12:has(> .espr-page-head-sticky) .espr-preview-panel {
    top: 96px;
}
