/* ==============================================
   ??????? CSS � ????????, ??? ??????????
   ============================================== */

/* ==============================================
   900px � ???????, ?????, ????????? ??????
   ============================================== */
@media (max-width: 900px) {

    /* Спиране на хоризонталния скрол на мобилно — независимо
       от това кой елемент е по-широк от viewport-а. */
    html, body {
        overflow-x: hidden !important;
        max-width: 100% !important;
    }

    /* ???? ????? */
    .shop-header-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 12px;
    }
    .shop-header-stats {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        width: 100%;
    }
    .shop-header-stat {
        min-width: calc(50% - 10px);
        flex: 1 1 calc(50% - 10px);
    }
    .shop-header-stat-divider { display: none; }
    .shop-header-stat-number { font-size: 16px; }

    /* ??????? ???????? � prof-tbl */
    .prof-tbl { display: block; }
    .prof-tbl thead { display: none; }
    .prof-tbl tbody { display: block; }
    .prof-tbl tbody tr {
        display: block;
        border: 1px solid #ddd;
        border-radius: 8px;
        margin-bottom: 12px;
        background: #fff;
        overflow: hidden;
    }
    .prof-tbl tbody tr.prof-total-row {
        background: #f0f4f8;
        border: 2px solid #218ADE;
    }
    .prof-tbl tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 12px;
        border: none;
        border-bottom: 1px solid #f0f0f0;
        font-size: 13px;
        text-align: right !important;
    }
    .prof-tbl tbody td:last-child { border-bottom: none; }
    .prof-tbl tbody td::before {
        content: attr(data-label);
        font-size: 11px;
        font-weight: 600;
        color: #888;
        text-transform: uppercase;
        letter-spacing: 0.3px;
        text-align: left;
        min-width: 120px;
        flex-shrink: 0;
        margin-right: 10px;
    }
    .prof-tbl tbody tr.prof-total-row td:empty { display: none; }
    .prof-tbl tbody td[data-label="????????"] {
        justify-content: flex-start;
        background: #f8fafd;
        padding: 10px 12px;
        gap: 6px;
        flex-wrap: wrap;
    }
    .prof-tbl tbody td[data-label="????????"]::before { display: none; }
    .prof-tbl tbody td[data-label="???????"] {
        font-size: 14px;
        font-weight: 600;
        background: #f5f8fc;
        padding: 10px 12px;
    }
    .prof-tbl tbody td[data-label="ROI"] { padding-bottom: 12px; }
    .prof-tbl-wrap { overflow-x: visible; }

    /* Innertable � ???????? */
    .innertable { display: block; width: 100%; }
    .innertable thead { display: none; }
    .innertable tbody { display: block; }
    .innertable tbody tr {
        display: block;
        border: 1px solid #e0e8f0;
        border-radius: 6px;
        margin-bottom: 8px;
        background: #fff;
        overflow: hidden;
    }
    .innertable tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 6px 10px;
        border: none;
        border-bottom: 1px solid #f5f5f5;
        font-size: 12px;
        text-align: right !important;
    }
    .innertable tbody td:last-child { border-bottom: none; }
    .innertable tbody td::before {
        content: attr(data-label);
        font-size: 10px;
        font-weight: 600;
        color: #888;
        text-transform: uppercase;
        letter-spacing: 0.3px;
        text-align: left;
        min-width: 80px;
        flex-shrink: 0;
    }
    .innertable tbody td[data-label="??????"] { justify-content: center; background: #f8fafd; }
    .innertable tbody td[data-label="??????"]::before { display: none; }
    .innertable tbody td[data-label="???????"] { font-size: 13px; font-weight: 600; background: #f5f8fc; }

    /* ???????? ??? */
    .easyship-table tr[id^="line"] td {
        display: block !important;
        padding: 0 !important;
        width: 100%;
    }

    /* ????????? ??????/COG/???????/??????? */
    .exp-row-summary {
        flex-direction: column !important;
        gap: 0 !important;
        padding: 8px !important;
    }
    .exp-row-sum-item {
        width: 100% !important;
        border-radius: var(--border-radius-md) !important;
        margin-bottom: 6px !important;
        padding: 10px 12px !important;
    }
    .exp-row-sum-arrow { display: none !important; }
    .exp-row-title {
        flex-direction: column !important;
        gap: 6px !important;
        padding: 10px 12px !important;
        align-items: flex-start !important;
    }

    /* ??????? ???????? ? ?????????? ??? */
    .exp-prod-tbl thead { display: none !important; }
    .exp-prod-tbl tbody tr {
        display: block !important;
        border: 1px solid #e0e8f0 !important;
        border-radius: 8px !important;
        margin-bottom: 10px !important;
        background: #fff !important;
        overflow: hidden !important;
    }
    .exp-prod-tbl tbody td {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 8px 12px !important;
        border: none !important;
        border-bottom: 1px solid #f0f0f0 !important;
        font-size: 12px !important;
        text-align: right !important;
    }
    .exp-prod-tbl tbody td:last-child { border-bottom: none !important; }
    .exp-prod-tbl tbody td::before {
        content: attr(data-label);
        font-size: 11px;
        font-weight: 600;
        color: #888;
        text-transform: uppercase;
        letter-spacing: 0.3px;
        text-align: left;
        min-width: 90px;
        flex-shrink: 0;
    }
    .exp-prod-tbl tbody td[data-label=""]::before { display: none; }
    .exp-prod-tbl tbody td[data-label=""] {
        justify-content: center !important;
        background: #f8fafd !important;
    }
    .exp-prod-tbl tbody td[data-label="???????"] {
        font-size: 13px !important;
        font-weight: 600 !important;
        background: #f5f8fc !important;
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    .exp-prod-tbl tbody td[data-label="???????"]::before { display: none !important; }
    .exp-prod-tbl tbody td[data-label="???? / ROI"] {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 6px !important;
    }
    .exp-prod-tbl tbody td[data-label="???? / ROI"] > div {
        width: 100% !important;
        justify-content: flex-start !important;
    }
    .exp-prod-tbl tbody td[data-label="???? / ROI"] > div > div:last-child { width: 100% !important; }
    .exp-prod-tbl-wrap { padding: 8px !important; }

    /* ??????? ????? */
    .business-table:not(.prof-tbl) thead .mobnsh { display: none; }
    .business-table:not(.prof-tbl) tbody tr {
        display: block;
        border: 1px solid #ddd;
        border-radius: 8px;
        margin-bottom: 12px;
        background: #fff;
        overflow: hidden;
    }
    .business-table:not(.prof-tbl) tbody td {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        padding: 8px 12px;
        border: none;
        border-bottom: 1px solid #f0f0f0;
        font-size: 13px;
        text-align: right !important;
    }
    .business-table:not(.prof-tbl) tbody td:last-child { border-bottom: none; }
    .business-table:not(.prof-tbl) tbody td::before {
        content: attr(data-label);
        font-size: 11px;
        font-weight: 600;
        color: #888;
        text-transform: uppercase;
        letter-spacing: 0.3px;
        text-align: left;
        min-width: 110px;
        flex-shrink: 0;
        margin-right: 10px;
        padding-top: 2px;
    }
    .business-table:not(.prof-tbl) tbody td[data-label="?????"] {
        font-size: 14px;
        font-weight: 600;
        background: #f5f8fc;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    .business-table:not(.prof-tbl) tbody td[data-label="?????"]::before { display: none; }
    .business-table:not(.prof-tbl) tbody td[data-label="????????"] {
        flex-direction: column;
        align-items: flex-start;
    }
    .business-table:not(.prof-tbl) tbody td[data-label="????????"]::before { margin-bottom: 4px; }
    .business-table:not(.prof-tbl) tbody td[data-label="???????"] { font-size: 14px; }
    .business-table:not(.prof-tbl) thead tr:first-child td {
        display: block !important;
        text-align: right;
        padding: 6px 12px;
        font-size: 11px;
        color: #888;
        border: none !important;
        background: white !important;
    }

    /* ??????? ?????????? */
    .exp-stats-grid { flex-wrap: wrap; }
    .exp-stat-box {
        flex: 1 1 45%;
        border-right: none;
        border-bottom: 1px solid rgba(0,0,0,0.08);
    }
    .exp-stat-box:last-child { border-bottom: none; }
    .exp-form-grid { grid-template-columns: 1fr; }
    .exp-full { grid-column: 1; }
    .exp-type-tabs { flex-direction: column; }
    .exp-type-tab { width: 90%; }
    .exp-filters form { flex-direction: column; align-items: stretch; }
    .exp-filters form input,
    .exp-filters form select { width: 100% !important; }
    .exp-vat-result { font-size: 13px; padding: 6px 10px; }
    .exp-form-wrap .ButtonStyle1 {
        width: 100% !important;
        margin-right: 0 !important;
        margin-bottom: 8px;
        text-align: center;
        display: block;
    }
    .exp-form-group div[style*="display:flex"] { flex-wrap: wrap; }

    /* ?????????? ??????? */
    .orders-stats-grid { grid-template-columns: repeat(2, 1fr); }

    /* ?????????? */
    .packing-summary-boxes { grid-template-columns: repeat(2, 1fr); }
    .packing-list-header { display: none; }
    .packing-list-row { grid-template-columns: 1fr; gap: 4px; }
    .packing-col-right { text-align: left; }
    .packing-cod { text-align: left; }

    /* ?????????? */
    .call-list-header { display: none; }
    .call-list-row { grid-template-columns: 1fr; gap: 6px; }
    .call-col-center { text-align: left; }
    .call-days-badge { padding: 0 !important; font-size: 14px; text-align: center !important; }
    .call-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 132px;
        height: 32px;
        background: #8e44ad;
        color: #fff;
        border-radius: 6px;
        text-decoration: none;
    }

    /* ?????? ??????? */
    .business-table { font-size: 11px; }
    .business-table th { padding: 8px 5px; font-size: 10px; }
    .business-table td { padding: 7px 5px; font-size: 11px; }
    .business-table td small { font-size: 9px; }
    .roas-pill { font-size: 10px; padding: 1px 5px; }

    /* ?????? */
    .order-action-btn { font-size: 16px;padding: 16px 12px;width: 100%; }

    /* ????????? */
    .msg-stats-wrapper {
        flex-direction: column;
        gap: 10px;
    }
    .msg-stat-box {
        flex: none;
        width: 100%;
        padding: 12px 15px;
        box-sizing: border-box;
    }
    .msg-stat-number { font-size: 22px; }
    .msg-stat-box.highlight { padding: 15px; }
    .btn-buy { width: 100%; text-align: center; box-sizing: border-box; }

    /* ?????? ????????? */
    .pkg-cards-wrapper { grid-template-columns: 1fr; }
    .pkg-balance-bar { flex-direction: column; align-items: flex-start; gap: 4px; }
    .pkg-history-row { grid-template-columns: 1fr 1fr; gap: 12px; }
    .pkg-history-col-center { text-align: left; }

    /* ???????? */
    .calendar-trigger { width: 100%; text-align: center; margin-bottom: 8px; }
}

/* ==============================================
   768px � ????, header, ???? ??????? ????????
   ============================================== */
@media screen and (max-width: 768px) {

    .formobile { display: block; font-size: 14px; }
    body { margin: 0; padding: 0; font-size: 14px; }
    #wrapper { width: 100%; overflow-x: hidden; }

    /* Header */
    #header {
        position: sticky;
        top: 0;
        z-index: 1000;
        background: #2196F3;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }
    .header-top-in {
        padding: 12px 15px;
        font-size: 12px;
        background: #2196F3;
        color: #fff;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    .header-top-in .container1 {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px;
    }
    .header-top-in .logo {
        float: none !important;
        text-align: center !important;
        margin: 0 !important;
        color: #fff;
        font-size: 16px;
    }

    /* Hamburger */
    .hamburger {
        display: block !important;
        position: relative;
        width: 30px;
        height: 25px;
        cursor: pointer;
        z-index: 1001;
        flex-shrink: 0;
        margin-right: 10px;
    }
    .hamburger span {
        display: block;
        position: absolute;
        height: 3px;
        width: 100%;
        background: #fff;
        border-radius: 3px;
        opacity: 1;
        left: 0;
        transform: rotate(0deg);
        transition: .25s ease-in-out;
    }
    .hamburger span:nth-child(1) { top: 0; }
    .hamburger span:nth-child(2) { top: 10px; }
    .hamburger span:nth-child(3) { top: 20px; }
    .hamburger.active span:nth-child(1) { top: 10px; transform: rotate(135deg); }
    .hamburger.active span:nth-child(2) { opacity: 0; left: -60px; }
    .hamburger.active span:nth-child(3) { top: 10px; transform: rotate(-135deg); }

    /* ???? */
    .nav-hamburger { display: flex !important; }
    #menu {
        display: flex !important;
        align-items: center;
        background: #218ADE;
        position: relative;
        min-height: 44px;
    }
    #menu .nav-hamburger { /*order: 2; margin-left: auto; */
        background: #218ADE;
        border: 0px;

        margin: 0 0 0 11px;}
    .menuTOP {
        display: none !important;
        flex-direction: column  !important;
        height: auto !important;
        padding: 0 !important;
        position: absolute;
        top: 44px;
        left: 0;
        right: 0;
        background: #218ADE;
        z-index: 1000;
        box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    }
    .menuTOP.nav-open { display: flex !important; }
    li.nav-user-bar { /*display: none !important;*/
        display: flex !important;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;

        background: #1a6bb3;
        padding: 14px 16px;
        border-bottom: 1px solid rgba(255,255,255,0.15);
        border-top: none; }
    .menuTOP li {
        display: block !important;
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    .menuTOP li a { display: block; padding: 13px 18px; font-size: 14px; color: #fff; }
    .menuTOP li .dropdown {
        display: block;
        position: static;
        background: rgba(0,0,0,0.15);
        box-shadow: none;
        padding: 0;
        min-width: 100%;
    }
    .menuTOP li .dropdown li a { padding: 11px 18px 11px 32px; font-size: 13px; }
    .dropdown-arrow { display: none; }
    li.nav-logout {
        border-top: 2px solid rgba(255,255,255,0.2) !important;
        background: #1a6bb3;
    }

    li.nav-logout a {
        display: flex !important;
        align-items: center;
        gap: 6px;
        padding: 13px 18px !important;
        font-size: 13px !important;
        font-weight: 600;
        color: #ffb347 !important;
    }

    li.nav-logout a:hover {
        background: rgba(255,255,255,0.1);
        color: #ffcc80 !important;
    }
    .nav-user-avatar {
      display: none;

    }
    .nav-user-name {
        display: none;
    }
    .nav-user-badge {
        display: none;
    }
    .nav-user-time {
        font-size: 11px;
        color: rgba(255,255,255,0.5);
        display: flex;
        align-items: center;
        gap: 4px;
    }
    .menuTOP li svg.menu {
        display: block!important;
    }
    .menuTOP li svg.menu {
        display: block !important;
        margin: 0 10px 0 21px;
        float: left;
        position: relative;
        top: 14px;
    }
    .menuTOP li svg.menu, .menu-topbar, .menu-user-block {
        display: block!important;
    }

    .nav-user-logout {
        order: 999;
        margin-top: auto;
        border-top: 1px solid rgba(255,255,255,0.15);
        padding-top: 10px;
        width: 100%;
        color: #ffb347 !important;
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 13px;
        font-weight: 600;
        text-decoration: none;
    }


    /* Topbar ????? ? ?????? */
.menu-topbar {
    background: #218ADE;
    padding: 10px 14px;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}
.menu-logo { font-size: 13px; font-weight: 700; color: #fff; letter-spacing: 0.5px; }
.menu-close { width: 28px; height: 28px; background: rgba(255,255,255,0.15); border-radius: 6px; display: flex; align-items: center; justify-content: center; cursor: pointer; }

/* User block */
.menu-user-block {
    background: #1a6bb3;
    padding: 14px;
    display: flex !important;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.menu-avatar { width: 50px; height: 50px; border-radius: 50%; background: rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 700; color: #fff; flex-shrink: 0; }
.menu-user-name { font-size: 14px; font-weight: 700; color: #fff; }
.menu-user-sub { font-size: 11px; color: rgba(255,255,255,0.6); margin-top: 2px; }
.menu-user-role { font-size: 10px; background: rgba(255,255,255,0.15); color: #fff; padding: 2px 7px; border-radius: 10px; margin-top: 4px; display: inline-block; }

/* ?????? + ????? ? li ???????? */
.menuTOP li.left a { display: flex !important; align-items: center; gap: 10px; padding: 12px 16px !important; }
.menuTOP li.left svg.menu { flex-shrink: 0; opacity: 0.8; }

/* Footer ? ???? ? ????? */
li.nav-logout { border-top: 2px solid rgba(255,255,255,0.15) !important; padding: 0 !important; }
.menu-footer {
    background: #1a6bb3;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.menu-footer-date { font-size: 11px; color: rgba(255,255,255,0.5); }
.nav-user-logout {
    font-size: 12px !important;
    color: #ffb347 !important;
    font-weight: 600;
    display: flex !important;
    align-items: center;
    gap: 5px;
    padding: 0 !important;
    text-decoration: none;
}
#Logo {
    display: none !important;
}
.menuTOP li.left:first-child {
    padding: 0px;
}


    /* ???? */
    h2 { font-size: 15px; padding: 12px 10px; margin: 10px 5px; background: #f5f5f5; border-left: 4px solid #2196F3; }
    .titlemobile { display: none; }
    .clear { clear: both; }
    .DivCourierBig { width: 100% !important; }
    .DivCourierBig2 { width: 100% !important; padding: 15px; background: #fff; border-radius: 5px; border: 1px solid #e0e0e0; }
    .DivCourier { width: 100% !important; position: relative; top: 16px; }
    .brcrlft { width: 100% !important; }
    #pages-inner { padding: 0 13px; }
    #wrapper h2 { border-left: 0 !important; margin-left: -8px !important; }
    .width200 { width: 90% !important; margin: 0 auto; }
    .marginright10 { margin-right: 0 !important; }
    .divLft, .ViberBtn, .right, .left, .ButtonStyle1, .divRight, .ButtonStyle1Long2 { width: 100% !important; }
    .ButtonStyle1 { margin-bottom: 19px; padding: 17px 0; width: 100% !important; }
    .ButtonStyle1Long2 { padding: 17px 0 !important; background-color: #4cacaf !important; }
    .GreenColor { background: #5ba95b !important; }

    /* ?????? */
    .BlueBtn { width: 58px !important; padding: 9px 0 0 0; font-size: 22px; height: 36px !important; }
    .BlueBtnWhite { width: 51px !important; padding: 10px 8px 0 8px; font-size: 21px; height: 32px !important; background: #218ade !important; }
    .RedBtn { width: 58px !important; padding: 9px 0 0 0; font-size: 22px; height: 36px !important; }

    /* Easyship ??????? � card ???? */
    .easyship-table { display: block; width: 100% !important; border: none !important; margin: 0; padding: 0 5px; }
    .easyship-table thead { display: none; }
    .easyship-table tbody { display: block; }
    .easyship-table th { display: none !important; }
    .innertable th { display: none !important; }

    .easyship-table tbody > tr:not([id^="line"]):not(:last-child):not([style*="border: 1px solid #bfbfbf"]) {
        display: block;
        margin: 10px 0;
        border: 1px solid #ddd !important;
        border-radius: 8px;
        background: #fff;
        padding: 0;
        box-shadow: 0 2px 4px rgba(0,0,0,0.08);
        overflow: hidden;
    }
    .easyship-table tbody > tr:not([id^="line"]):not(:last-child):not([style*="border: 1px solid #bfbfbf"]) td {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        padding: 10px 12px !important;
        border: none !important;
        border-bottom: 1px solid #f0f0f0 !important;
        background: #fff;
        text-align: right !important;
    }
    .easyship-table tbody > tr:not([id^="line"]):not(:last-child):not([style*="border: 1px solid #bfbfbf"]) td .titlemobile {
        display: inline-block !important;
        font-weight: 600;
        color: #666;
        font-size: 12px;
        text-align: left !important;
        flex: 1;
        padding-right: 10px;
    }
    .easyship-table tbody > tr:not([id^="line"]):not(:last-child):not([style*="border: 1px solid #bfbfbf"]) td:first-child {
        padding: 10px !important;
        display: flex !important;
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
        border-bottom: 2px solid #f0f0f0 !important;
        background: #2196F3;
        color: #fff;
    }
    .easyship-table tbody > tr:not([id^="line"]):not(:last-child):not([style*="border: 1px solid #bfbfbf"]) td:first-child .titlemobile { display: none !important; }
    .easyship-table tbody > tr:not([id^="line"]):not(:last-child):not([style*="border: 1px solid #bfbfbf"]) td:first-child a {
        display: inline-block !important;
        float: none !important;
        margin: 2px !important;
        border-radius: 4px;
        color: #fff;
        font-weight: bold;
        text-decoration: none;
    }
    .easyship-table tbody > tr:not([id^="line"]):not(:last-child):not([style*="border: 1px solid #bfbfbf"]) td:nth-child(2) {
        background: #2196F3;
        color: #000;
        font-weight: bold;
        font-size: 16px;
        padding: 12px 10px !important;
        display: block !important;
        text-align: center !important;
        border-bottom: 2px solid #1976D2 !important;
    }
    .easyship-table tbody > tr:not([id^="line"]):not(:last-child):not([style*="border: 1px solid #bfbfbf"]) td:nth-child(2) .titlemobile { display: none !important; }
    .easyship-table tbody > tr:not([id^="line"]):not(:last-child):not([style*="border: 1px solid #bfbfbf"]) td:nth-child(3) { background: #f9f9f9; font-weight: 600; }

    /* ???????? ??? */
    .easyship-table tr[id^="line"] { border: none !important; box-shadow: none !important; margin: 0 !important; padding: 0 !important; background: #f9f9f9 !important; }
    .easyship-table tr[id^="line"] td .titlemobile { display: none !important; }

    /* ??????? ??? */
    .easyship-table tbody > tr:last-child:not([style*="border: 1px solid #bfbfbf"]) {
        display: block !important;
        background: #fff9e6 !important;
        border: 2px solid #ffc107 !important;
        border-radius: 8px !important;
        margin: 20px 0 10px 0 !important;
        padding: 0 !important;
        overflow: hidden;
    }
    .easyship-table tbody > tr:last-child:not([style*="border: 1px solid #bfbfbf"]) td { display: block !important; }
    .easyship-table tbody > tr:last-child:not([style*="border: 1px solid #bfbfbf"]) td:nth-child(10),
    .easyship-table tbody > tr:last-child:not([style*="border: 1px solid #bfbfbf"]) td:nth-child(16) {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 12px 15px !important;
        border-bottom: 1px solid #e0e0e0 !important;
        background: #fff9e6 !important;
        font-weight: bold;
    }
    .easyship-table tbody > tr:last-child:not([style*="border: 1px solid #bfbfbf"]) td:nth-child(16) { border-bottom: none !important; }
    .easyship-table tbody > tr:last-child:not([style*="border: 1px solid #bfbfbf"]) td .titlemobile {
        display: inline-block !important;
        font-weight: 600;
        color: #666;
        flex: 1;
    }

    /* ?????? ? border */
    .easyship-table thead tr:first-child td {
        display: block !important;
        text-align: center !important;
        padding: 10px !important;
        background: #f5f5f5 !important;
        border: 1px solid #ddd !important;
        margin: 10px 5px !important;
        border-radius: 5px;
        font-weight: 600;
    }
    .easyship-table tbody tr[style*="border: 1px solid #bfbfbf"] {
        display: block !important;
        margin: 10px 0 !important;
        border: 1px solid #ddd !important;
        border-radius: 8px !important;
        background: #fff !important;
        padding: 0 !important;
        overflow: hidden !important;
    }
    .easyship-table tbody tr[style*="border: 1px solid #bfbfbf"] td:first-child {
        background: #4CAF50 !important;
        color: #fff !important;
        font-weight: bold !important;
        font-size: 16px !important;
        padding: 12px 10px !important;
        display: block !important;
        text-align: center !important;
        border-bottom: 2px solid #388E3C !important;
    }
    .easyship-table tbody tr[style*="border: 1px solid #bfbfbf"] td:first-child .titlemobile { display: none !important; }
    .easyship-table tbody tr[style*="border: 1px solid #bfbfbf"] td:nth-child(2) {
        display: block !important;
        padding: 12px !important;
        background: #f9f9f9 !important;
        border-bottom: 2px solid #e0e0e0 !important;
    }
    .easyship-table tbody tr[style*="border: 1px solid #bfbfbf"] td:nth-child(2) .titlemobile {
        display: block !important;
        font-weight: 600;
        color: #666;
        margin-bottom: 8px;
        font-size: 13px;
    }
    .easyship-table tbody tr[style*="border: 1px solid #bfbfbf"] td:not(:first-child):not(:nth-child(2)) {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        padding: 10px 12px !important;
        border: none !important;
        border-bottom: 1px solid #f0f0f0 !important;
        background: #fff !important;
    }
    .easyship-table tbody tr[style*="border: 1px solid #bfbfbf"] td:not(:first-child):not(:nth-child(2)) .titlemobile {
        display: inline-block !important;
        font-weight: 600;
        color: #666;
        font-size: 12px;
        flex: 1;
        padding-right: 10px;
        text-align: left;
    }

    /* ??????? */
    td[style*="color: red"], td[style*="color: red"] * { color: #d32f2f !important; }
    td[style*="color: green"], td[style*="color: green"] * { color: #388e3c !important; }
    span[style*="font-size: 11px"] { display: block; color: #999; font-size: 10px; margin-left: 5px; }

    /* Viber */
    .ViberBtn { padding: 13px 10px 20px 10px !important; width: 90% !important; border-radius: 10px; }

    /* ???? */
    .menuTOP { height: auto; }
    .menuTOP li { display: block; width: 100%; }
    .menuTOP li .dropdown { position: static; box-shadow: none; padding-left: 15px; }

    .shop-nav-tabs {
        display: block!important;
    }

    /* ?? ???????? wrapper-?, ???? tooltip-? ?? ???????????? */
    .cust-tooltip {
        display: none;
        /* ????????????? � ?? ??????? ?? ?? ?????? ????? ?????? */
        position: fixed;
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%);
        z-index: 999;
        min-width: 260px;
        box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    }

}

/* ==============================================
   480px � ????? ????????
   ============================================== */
@media (max-width: 480px) {

    .shop-header-stat {
        /*mahnati, za da move sinyata lenta pri mobilno da e na nqkolko reda, a ne edno pod drugo*/
        /*min-width: 100%;
        flex: 1 1 100%;*/
    }
    .prof-tbl tbody td {
        align-items: flex-start;
        text-align: left !important;
    }
    .prof-tbl tbody td::before { margin-bottom: 2px; }
    .innertable tbody td {
        flex-direction: column;
        align-items: flex-start;
        text-align: left !important;
    }
    .business-table:not(.prof-tbl) tbody td {
        flex-direction: column;
        align-items: flex-start;
        text-align: left !important;
    }
    .business-table:not(.prof-tbl) tbody td::before { margin-bottom: 2px; }
    .exp-stat-box { flex: 1 1 100%; }

    /* VIP / „Х поръчки" badge — на мобилно остава inline (десктоп: на собствен ред) */
    .cust-history-wrap { display: inline-block; }
    /* Име на куриера в колоната „Куриер" (.formobile = скрито на десктоп) —
       на мобилно да е inline до иконката, не block под нея */
    .mcp-courier-left .formobile { display: inline; margin-left: 4px; }
}

/* ==============================================
   400px � ???-????? ??????
   ============================================== */
@media screen and (max-width: 400px) {

    .formobile { display: block; }
    .header-top-in { padding: 10px; font-size: 11px; }
    .hamburger { width: 25px; height: 20px; }
    h2 {
        font-size: 16px;
        padding: 10px 8px;
        text-align: center;
        width: 95% !important;
        border: 0 !important;
        position: relative;
        left: -10px;
    }
    .easyship-table tbody > tr td { padding: 8px 10px !important; font-size: 12px; }
    .easyship-table tbody > tr td .titlemobile { font-size: 11px; }
    .exp-stat-num { font-size: 20px; }
}

body.menu-open { overflow: hidden; }
@media screen and (max-width: 768px) {
  .easyship-table td.m-amt, .easyship-table td.m-amt-total {
    display: flex !important; align-items: center; justify-content: space-between;
    padding: 8px 12px !important; border: none !important; border-bottom: 1px solid #f0f0f0 !important;
    background: #fff; text-align: right !important;
  }
  .easyship-table td.m-amt .titlemobile, .easyship-table td.m-amt-total .titlemobile {
    display: inline-block !important; text-align: left !important; flex: 1; padding-right: 10px;
  }
  .easyship-table td.m-amt br, .easyship-table td.m-amt-total br { display: none !important; }
  .easyship-table td.m-amt b { font-weight: 400 !important; font-size: 14px !important; }
  .easyship-table td.m-amt .titlemobile { color: #8a8a8a !important; font-weight: 400 !important; font-size: 12px !important; }
  .easyship-table td.m-amt span[style] { margin-left: 6px; }
  .easyship-table td.m-amt-total { background: #f6f9fc !important; }
  .easyship-table td.m-amt-total b { font-weight: 700 !important; font-size: 16px !important; color: #111 !important; }
  .easyship-table td.m-amt-total .titlemobile { color: #333 !important; font-weight: 600 !important; font-size: 13px !important; }
  .easyship-table td.m-amt-total span[style] { margin-left: 6px; }
}

@media screen and (max-width: 768px) {
  .easyship-table td.m-cust {
    display: flex !important; align-items: flex-start; justify-content: space-between;
    gap: 8px; text-align: left !important;
  }
  .easyship-table td.m-cust .m-cust-main {
    display: flex; flex-direction: column; align-items: flex-start; flex: 1; min-width: 0;
  }
  .easyship-table td.m-cust .m-cust-main br { display: none !important; }
  .easyship-table td.m-cust .m-cust-name { font-size: 15px; font-weight: 700; }
  .easyship-table td.m-cust .bv-tel { display: block; margin-top: 2px; color: #167dd9; font-size: 13px; }
  .easyship-table td.m-cust .m-cust-badges {
    margin-top: 0 !important; flex-shrink: 0; justify-content: flex-end; max-width: 55%;
  }
}

.m-dest { display: none; }
@media screen and (max-width: 768px) {
  .easyship-table td.m-cour { flex-wrap: wrap; }
  .easyship-table td.m-cour .m-dest {
    display: block; flex-basis: 100%; width: 100%; white-space: normal;
    text-align: left; font-size: 12px; color: #5b6472; line-height: 1.45;
    margin-top: 5px; padding-top: 5px; border-top: 1px dashed #e5e7eb;
  }
}

@media screen and (max-width: 768px) {
  .easyship-table td.m-track.m-empty { display: none !important; }
}

@media screen and (max-width: 768px) {
  .easyship-table tbody > tr:not([id^="line"]):not(:last-child):not([style*="border: 1px solid #bfbfbf"]) td.m-track.m-empty { display: none !important; }
}

@media (max-width: 900px) {
  #takenSection .packing-list { display: block; }
  #takenSection .packing-list-row {
    display: block !important; border: 1px solid #e5e7eb !important; border-radius: 10px;
    background: #fff; padding: 10px 12px !important; margin: 0 0 10px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
  }
  #takenSection .packing-list-row > div { margin: 0 0 5px !important; text-align: left !important; }
  #takenSection .packing-list-row > div:last-child { margin-bottom: 0 !important; }
  #takenSection .packing-col-right, #takenSection .packing-cod { text-align: left !important; }
  #takenSection .packing-cod { font-weight: 700; color: #1b7a40; font-size: 15px; }
  #takenSection .packing-cod-bgn { font-weight: 400; color: #8a93a6; font-size: 12px; }
  #takenSection .packing-products { font-size: 12px; color: #555; }
  #takenSection .packing-awb { font-size: 14px !important; font-weight: 700; }
  #takenSection .packing-list .packing-list-row:last-child {
    display: flex !important; justify-content: space-between; align-items: center;
    background: #f0faf4 !important; border-color: #b7e4c7 !important;
  }
  #takenSection .packing-list .packing-list-row:last-child > div { margin: 0 !important; }
  #takenSection .packing-list .packing-list-row:last-child > div:first-child { flex: 1; padding-right: 10px; }
}
