/* Oaxis plugin styles - final v4 */
.oaxis-tabs{ display:flex; gap:8px; margin-bottom:12px; flex-wrap:wrap; }
.oaxis-tab{ background:#2f8f1a; color:#fff; border-radius:6px; padding:8px 14px; cursor:pointer; font-weight:700; border:none; transition:all .12s ease; }
.oaxis-tab:hover{ transform:translateY(-2px); box-shadow:0 6px 14px rgba(0,0,0,0.08); }
.oaxis-tab.oaxis-tab-active{ background:#5cc02a; color:#000; }
.oaxis-table{ width:100%; border-collapse:collapse; margin-top:6px; }
.oaxis-table th, .oaxis-table td{ border:1px solid #e6e6e6; padding:8px; text-align:left; font-size:13px; vertical-align:middle; }
.oaxis-table thead th{ background:#f4f9f4; position: sticky; top:0; z-index:2; }
.oaxis-table tbody tr:nth-child(odd){ background:#ffffff; }
.oaxis-table tbody tr:nth-child(even){ background:#fbfbfb; }
.oaxis-table tbody tr:hover{ background:#eaf9ea !important; transition:background .12s ease; }
.oaxis-highlight{ background:#dff7df !important; font-weight:600; }
.oaxis-button{ background:#2f8f1a; color:#fff; padding:8px 12px; border-radius:6px; border:none; cursor:pointer; }
.oaxis-qty{ width:80px; padding:6px; border-radius:6px; border:1px solid #dcdcdc; }
.oaxis-myorders-table{ width:100%; border-collapse:collapse; }
.oaxis-myorders-table th, .oaxis-myorders-table td{ border:1px solid #ddd; padding:8px; }
@media (max-width:800px){ .oaxis-table td, .oaxis-table th{ font-size:12px; padding:6px; } .oaxis-qty{ width:60px; } }
.oaxis-badge {
    display:inline-block;
    padding:4px 8px;
    border-radius:6px;
    font-weight:700;
    font-size:12px;
    color:#fff;
}

.oaxis-badge-wait { background:#f0ad4e; }      /* Čeká na zpracování – oranžová */
.oaxis-badge-process { background:#ffb400; }   /* V řešení – žlutá */
.oaxis-badge-sent { background:#2f8f1a; }      /* Odesláno – zelená */
.oaxis-badge-hand { background:#0073aa; }      /* Předáno osobně – modrá */

/* Moderní Oaxis login styl */
/* OAXIS modern login adjustments */
.oaxis-login {
  max-width: 520px;
  margin: 36px auto;
  padding: 32px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.06);
  border: 1px solid #eef2f1;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}


.oaxis-login-title {
  margin: 0 0 18px 0;
  font-size: 28px;
  font-weight: 800;
  color: #111;
}

.oaxis-field-label {
  display: block;
  margin: 0 0 10px 0;
  font-weight: 700;
  color: #444;
  font-size: 14px;
}

.oaxis-input {
  display: block;
  width: 100%;
  padding: 12px 14px;
  margin-top: 8px;
  border-radius: 10px;
  border: 1px solid #d6dbe0;
  background: #f5f8fb;
  font-size: 15px;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.oaxis-input:focus {
  outline: none;
  border-color: #1fa12e;
  box-shadow: 0 0 0 4px rgba(31,161,46,0.12);
  background: #fff;
}

/* checkbox aligned with label */
.oaxis-remember {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  color: #333;
  font-weight: 600;
}
.oaxis-remember input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  transform: scale(1.05);
}

/* actions */
.oaxis-actions {
  margin-top: 18px;
}
.oaxis-button {
  background: #1fa12e;
  color: #fff;
  border: 0;
  padding: 11px 20px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s ease, transform .05s ease;
}
.oaxis-button:hover { background: #14851f; transform: translateY(-1px); }

/* lost password */
.oaxis-lostpass { margin-top: 14px; }
.oaxis-lostpass a { color: #1fa12e; font-weight: 700; text-decoration:none; }
.oaxis-lostpass a:hover { text-decoration:underline; }

/* responsive */
@media (max-width: 560px) {
  .oaxis-login { margin: 18px; padding: 20px; }
  .oaxis-button { width: 100%; text-align: center; }
}
/* Fix: checkbox musí být kliknutelný */
.oaxis-remember input[type="checkbox"] {
    position: static !important;
    opacity: 1 !important;
    width: auto !important;
    height: auto !important;
    appearance: auto !important;
    pointer-events: auto !important;
}

/* Fix: label musí být kliknutelný */
.oaxis-remember {
    pointer-events: auto !important;
}

/* Fix: odstranění podivné tečky před textem */
.oaxis-remember::before {
    content: "" !important;
}


.oaxis-change-password input {
    width: 280px;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.oaxis-change-password label {
    font-weight: 600;
    display: block;
    margin-bottom: 6px;
}
.oaxis-price-highlight {
    background: #fff5ce !important;
    font-weight: 600;
}
.oaxis-success { padding:10px; background:#e8f5e9; border-left:4px solid #4caf50; margin-bottom:15px; }
.oaxis-error { padding:10px; background:#ffebee; border-left:4px solid #c62828; margin-bottom:15px; }





/* Zebra */
.oaxis-table tbody tr:nth-child(odd){ background:#fff; }
.oaxis-table tbody tr:nth-child(even){ background:#fbfbfb; }

.oaxis-table tbody tr:hover{
    background:#eaf9ea !important;
}
/* =============================================
   OAXIS MODERN TABLE STYLE — FINAL CLEAN BUILD
   ============================================= */

/* ------------- ZÁKLAD TABULKY ------------- */
/* =============================================
   OAXIS MODERN TABLE STYLE — FINAL CLEAN BUILD
   ============================================= */

/* ----- ZÁKLAD TABULKY ----- */
.oaxis-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 15px;
    color: #333;
    table-layout: auto !important;
}

.oaxis-table th,
.oaxis-table td {
    white-space: normal;
    word-break: break-word;
}

/* ----- HLAVIČKA ----- */
.oaxis-table thead th {
    background: #f8fbf7;
    font-weight: 700;
    color: #444;
    border-bottom: 2px solid #dfe4dd;

    white-space: nowrap !important;
    word-break: normal !important;
    hyphens: none !important;

    line-height: 1.25 !important;
    text-align: left;
    position: relative;

    padding: 10px 10px 28px !important;
    height: 55px !important;
    vertical-align: bottom;
}

/* hlavičky s <br> */
.oaxis-table thead th br {
    display: block;
    line-height: 1.15 !important;
}
.oaxis-table tbody {
    position: relative;
    z-index: 5;
}


/* ----- ŠIPKY DATATABLES – DOLE ----- */
.oaxis-table thead th.sorting:before,
.oaxis-table thead th.sorting_asc:before,
.oaxis-table thead th.sorting_desc:before,
.oaxis-table thead th.sorting:after,
.oaxis-table thead th.sorting_asc:after,
.oaxis-table thead th.sorting_desc:after {
    bottom: 6px !important;
    top: auto !important;
    position: absolute !important;

    color: #2f8f1a !important;
    opacity: 0.9 !important;
    transform: scale(1.15);
}

/* neaktivní */
.oaxis-table thead th.sorting:before,
.oaxis-table thead th.sorting:after {
    opacity: 0.45 !important;
}

/* ----- TĚLO TABULKY ----- */
.oaxis-table tbody td {
    padding: 12px 10px;
    border-bottom: 1px solid #eef1ec;
}

.oaxis-table tbody td:first-child {
    font-weight: 600;
    color: #222;
}

/* hover */
.oaxis-table tbody tr:hover {
    background: #f5faf2;
}

/* alternating */
.oaxis-table tbody tr:nth-child(even) {
    background: #fafdf9;
}

/* ----- ZÁKAZNICKÁ CENA ----- */
.oaxis-price-highlight-value {
    background: #d7f6d7 !important;
    border-radius: 6px;
    padding: 4px 8px;
    font-weight: 700;
    display: inline-block;
    min-width: 48px;
    text-align: center;
    color: #000;
}

/* ----- INPUT ----- */
.oaxis-table input.oaxis-qty {
    width: 80px;
    padding: 6px 10px;
    font-size: 15px;
    border-radius: 6px;
    border: 1px solid #cdd7c6;
    background: #fff;
}

.oaxis-table input.oaxis-qty:focus {
    border-color: #2f8f1a;
    box-shadow: 0 0 3px rgba(47,143,26,0.4);
    outline: none;
}

/* ----- WRAP ----- */
.oaxis-scroll-wrap {
    overflow-x: auto;
    overflow-y: visible;
    position: relative;
}



/* ----- BUTTON ----- */
.oaxis-button {
    background:#2f8f1a;
    color:#fff !important;
    padding:10px 20px;
    border-radius:6px;
    border:none;
    cursor:pointer;
    font-weight:600;
}

.oaxis-button:hover {
    background:#276f16;
}

/* =============================================
   FIX: PEVNÁ ŠÍŘKA PRO PRVNÍ SLOUPEC
   ============================================= */
/* ⭐ sloupec */
.oaxis-table th.oaxis-fav-col,
.oaxis-table td.oaxis-fav {
    width: 18px !important;
    min-width: 18px !important;
    max-width: 18px !important;
    padding: 0 !important;
}

/* Objednací číslo – DRUHÝ sloupec */
.oaxis-table th:nth-child(2),
.oaxis-table td:nth-child(2) {
    width: 95px !important;
    min-width: 95px !important;
}


/* ZRUŠENÍ KONFLIKTNÍCH GLOBAL WIDTH */
table.dataTable th,
table.dataTable td {
    width: auto !important;
}
.oaxis-expedice-box {
    padding: 15px;
    margin: 15px 0;
    background: #fff8d8;
    border: 1px solid #e6d28c;
    border-radius: 8px;
}

.oaxis-expedice-option {
    display: block;
    margin: 8px 0;
    padding: 10px 12px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
}

.oaxis-expedice-option.active {
    background: #e7ffe7;
    border-color: #49b749;
}
.oaxis-fav {
    cursor: pointer;
    text-align: center;
    font-size: 14px;
    width: 18px;
    min-width: 18px;
    max-width: 18px;
    padding: 0 !important;
    pointer-events: auto;
    user-select: none;
}
.oaxis-fav * {
    pointer-events: none;
}
/* ⭐ HLAVIČKA */
.oaxis-table thead th.oaxis-fav-col {
    padding: 0 !important;
    height: auto !important;
    pointer-events: none !important;
}

/* ⭐ BUŇKA */
.oaxis-table td.oaxis-fav {
    width: 18px !important;
    min-width: 18px !important;
    max-width: 18px !important;
    padding: 0 !important;
    text-align: center;
    cursor: pointer;
    pointer-events: auto !important;
}
.oaxis-fav-col {
    pointer-events: none;
}

.oaxis-fav-star {
    pointer-events: auto;
    cursor: pointer;
    display: inline-block;
    width: 18px;
    line-height: 18px;
}
/* ⭐ FAVORITES – FORCE CLICK */
.oaxis-fav-col {
    padding: 0 !important;
    text-align: center;
}

.oaxis-fav-btn {
    all: unset;
    cursor: pointer;
    font-size: 14px;
    line-height: 18px;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto !important;
    z-index: 9999;
}

.oaxis-fav-btn:focus {
    outline: none;
}
.oaxis-row-fav .oaxis-fav-btn { color: gold; }
/* ⭐ Oblíbené – skrýt Show X entries */
#oblibene .dataTables_length {
    display: none !important;
}


/* ⭐ Oblíbené – skrýt filtr podle popisu */
#oblibene .oaxis-filter-popis {
    display: none !important;
}
/* ⭐ Oblíbené – skrýt "Showing X of Y entries" */
#oblibene .dataTables_info {
    display: none !important;
}
/* =========================
   Moje šablony – MINIMAL
========================= */

/* celý řádek */
.oaxis-template-row{
    background: #f6f6f6;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 12px;
}

/* horní část */
.tpl-main{
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

/* info vlevo */
.tpl-info{
    display: flex;
    flex-direction: column;
}

/* název */
.tpl-name{
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 4px;
}

/* toggle – jediný klikací prvek */
.tpl-toggle{
    font-size: 14px;
    color: #4a4a4a;
    cursor: pointer;
    user-select: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.tpl-toggle:hover{
    text-decoration: underline;
}

.tpl-arrow{
    font-size: 14px;
    line-height: 1;
}

/* akce vpravo */
.tpl-actions{
    display: flex;
    gap: 8px;
}

.tpl-actions a{
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    text-decoration: none;
    color: #fff;
    background: #7bc043;
}

/* položky – výchozí stav skryté */
.tpl-items{
    display: none;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #ddd;

    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px 18px;

    font-size: 14px;
    color: #333;
}

/* jednotlivá položka */
.tpl-item{
    white-space: nowrap;
}

/* responzivita */
@media (max-width: 900px){
    .tpl-items{
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px){
    .tpl-items{
        grid-template-columns: repeat(2, 1fr);
    }
}
/* =========================
   Akční tlačítka – lepší vzhled
========================= */

.tpl-actions a{
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 10px 18px;
    min-height: 38px;

    border-radius: 999px; /* plně zaoblené */
    font-size: 14px;
    font-weight: 600;
    line-height: 1;

    background: #7bc043;
    color: #fff;
    text-decoration: none;

    transition: background 0.15s ease, transform 0.1s ease;
}

/* hover */
.tpl-actions a:hover{
    background: #000;
    transform: translateY(-1px);
}

/* tlačítko X – menší, ale pořád hezké */
.tpl-actions .tpl-del{
    padding: 10px 14px;
    font-size: 16px;
}
.tpl-items{
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #ddd;

    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px 24px;

    font-size: 14px;
    color: #333;
}
.oaxis-recap-del{
    font-size: 18px;
    color: #999;
    text-decoration: none;
}
.oaxis-recap-del:hover{
    color: #c00;
}

.oaxis-recap-del-wrap{
    text-align: center;
    width: 36px;
}
/* ❌ skryje "Show X entries" pro všechny DataTables */
.dataTables_length {
    display: none !important;
}
.oaxis-register-form {
    max-width:400px;
}
.oaxis-register-form input {
    width:100%;
    padding:8px;
}
.oaxis-register-form button {
    background:#6bbf2d;
    color:#fff;
    border:none;
    padding:10px 18px;
    cursor:pointer;
}
.oaxis-locked {
    text-align: center;
    color: #999;
    font-weight: 600;
    cursor: help;
}
.oaxis-locked::after {
    content: ' 🔒';
    font-size: 11px;
}



.oaxis-popup a{
    position: relative;
}

/* čára POD každou položkou */
.oaxis-popup a:not(.logout)::after{
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 0;
    height: 1px;
    background: #dcdcdc;
    pointer-events: none;
}

/* silnější oddělení nad Odhlásit se */
.oaxis-popup a.logout::before{
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    top: 0;
    height: 1px;
    background: #bdbdbd;
}
.delivery-inline {
    display:flex;
    align-items:center;
    gap:8px;
    font-weight:600;
    margin-bottom:4px;
    cursor:pointer;
}

.delivery-inline input {
    transform:scale(1.15);
}

.delivery-hint {
    font-size:13px;
    color:#666;
    margin:0 0 12px 24px;
}
.oaxis-product-wrap {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
}

.oaxis-product-badge {
    display: inline-block;
    background: #4caf50;
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 10px;
}

.oaxis-product-params {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 30px 0;
}

.oaxis-param span {
    color: #666;
    font-size: 14px;
}

.oaxis-product-pdf {
    margin: 20px 0;
    font-weight: 600;
}

.oaxis-product-note {
    margin-top: 30px;
    color: #666;
}
.oaxis-product-subinfo {
    font-size: 15px;
    color: #666;
    margin: -8px 0 20px;
}

.oaxis-product-top {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 32px;
    align-items: start;
    margin-bottom: 32px;
}

.oaxis-product-image {
    background: #f7f7f7;
    border-radius: 10px;
    padding: 16px;
}

.oaxis-product-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.oaxis-product-price {
    margin-top: 16px;
    font-size: 1.2em;
}

.oaxis-product-params {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-top: 24px;
}

.oaxis-param {
    background: #fafafa;
    padding: 10px 14px;
    border-radius: 6px;
}

@media (max-width: 768px) {
    .oaxis-product-top {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 768px) {
    .oaxis-scroll-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .oaxis-table {
        min-width: 1100px;
    }

    .oaxis-table th:first-child,
    .oaxis-table td:first-child {
        position: sticky;
        left: 0;
        background: #fff;
        z-index: 3;
    }

    .oaxis-table th:nth-child(2),
    .oaxis-table td:nth-child(2) {
        position: sticky;
        left: 32px;
        background: #fff;
        z-index: 2;
    }
}





.oaxis-hover-preview {
    position: fixed;
    width: 220px;
    height: 160px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(0,0,0,.18);
    padding: 10px;
    z-index: 999999;
    pointer-events: none;
    display: none;
}

/* ==============================
   OAXIS – PRODUKT DETAIL
   ============================== */

/* schovat theme breadcrumb */
#breadcrumb,
.breadcrumb-trail,
.breadcrumbs,
.trail-items {
    display: none !important;
}

/* náš breadcrumb */
.oaxis-breadcrumb {
    margin: 10px 0 24px;
    font-size: 14px;
}
.oaxis-breadcrumb a {
    color: #6bbf2d;
    text-decoration: none;
}
.oaxis-breadcrumb a:hover {
    text-decoration: underline;
}
/* ZABÍT THEME BREADCRUMB NA PRODUKTU */
.oaxis-product-page #breadcrumb,
.oaxis-product-page .breadcrumb-trail,
.oaxis-product-page .breadcrumbs {
    display: none !important;
}

/* schovat THEME breadcrumb na detailech produktu */
.oaxis-product-page #breadcrumb,
.oaxis-product-page .breadcrumb-trail,
.oaxis-product-page .breadcrumbs {
    display: none !important;
}
button.markDelivered{
    background:#28a745;
}
button.markDelivered:hover{
    background:#218838;
}
