/* ============================================================
   account.css - споделени стилове за My Account страниците
   (Profile.aspx, Addresses.aspx, Orders.aspx) + dropdown менюто
   на "My Account" бутона в SiteB.master.
   Сложи в /css/account.css
   ============================================================ */

.auth-section {
    padding: 120px 0 80px;
    background: #fff;
}

.auth-container {
    max-width: 620px;
    margin: 0 auto;
    padding: 0 24px;
}

.auth-title {
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 700;
    font-size: 2.2rem;
    text-transform: uppercase;
    color: #1a3a5c;
    margin: 0 0 8px;
}

.auth-section-title {
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #1a3a5c;
    border-bottom: 2px solid #f97316;
    padding-bottom: 8px;
    margin: 40px 0 20px;
}

    .auth-section-title:first-of-type {
        margin-top: 24px;
    }

.auth-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.auth-field {
    margin-bottom: 16px;
}

    .auth-field label {
        display: block;
        font-family: "DM Sans", sans-serif;
        font-size: .82rem;
        color: #64748b;
        margin-bottom: 6px;
    }

.auth-input {
    display: block;
    width: 100%;
    height: 44px;
    padding: 0 12px;
    box-sizing: border-box;
    border: 1px solid #e2e8f0;
    font-family: "DM Sans", sans-serif;
    font-size: .95rem;
    color: #0f172a;
    background: #fff;
}

    .auth-input:focus {
        outline: none;
        border-color: #f97316;
    }

    .auth-input[readonly] {
        background: #f8fafc;
        color: #94a3b8;
    }

.auth-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f97316;
    color: #fff;
    border: none;
    cursor: pointer;
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: .9rem;
    padding: .85rem 1.8rem;
    margin-top: 8px;
}

    .auth-submit:hover {
        background: #1a3a5c;
    }

    .auth-submit.secondary {
        background: #1a3a5c;
    }

        .auth-submit.secondary:hover {
            background: #f97316;
        }

.auth-err {
    display: block;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    font-family: "DM Sans", sans-serif;
    font-size: .88rem;
    padding: 12px 14px;
    margin-bottom: 20px;
}

.auth-ok {
    display: block;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #16a34a;
    font-family: "DM Sans", sans-serif;
    font-size: .88rem;
    padding: 12px 14px;
    margin-bottom: 20px;
}

.auth-logout {
    font-family: "DM Sans", sans-serif;
    font-size: .85rem;
    color: #64748b;
    text-decoration: underline;
}

.oh-number {
    font-weight: 600;
    color: #1a3a5c;
}

.oh-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.oh-btn {
    font-family: "DM Sans", sans-serif;
    font-size: .8rem;
    font-weight: 600;
    padding: 6px 12px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #1a3a5c;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

    .oh-btn:hover {
        border-color: #f97316;
        color: #f97316;
    }

.oh-empty {
    font-family: "DM Sans", sans-serif;
    color: #64748b;
    padding: 16px 0;
}

.oh-warn {
    display: block;
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
    font-family: "DM Sans", sans-serif;
    font-size: .85rem;
    padding: 12px 14px;
    margin-bottom: 16px;
}

 
.cbs-order-grid,
.cbs-order-grid table {
    width: 100% !important;
    border: none !important;
    background: transparent !important;
    border-collapse: collapse !important;
}

.oh-gv-header {
    text-align: left;
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 600;
    font-size: .76rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #64748b;
    background: #fff;
    padding: 0 10px 10px 0;
    border-bottom: 2px solid #1a3a5c;
}

.oh-gv-row td,
.oh-gv-row-alt td {
    padding: 12px 10px 12px 0;
    border-bottom: 1px solid #e2e8f0;
    font-family: "DM Sans", sans-serif;
    font-size: .88rem;
    color: #0f172a;
    vertical-align: middle;
    background: #fff;
}

.oh-gv-row-alt td { background: #f8fafc; }

.oh-gv-cell {
    font-family: "DM Sans", sans-serif;
    font-size: .88rem;
    color: #0f172a;
}

.oh-gv-empty {
    font-family: "DM Sans", sans-serif;
    color: #64748b;
    padding: 16px 0;
    background: #fff;
}

.oh-gv-loading {
    font-family: "DM Sans", sans-serif;
    color: #64748b;
}

.oh-gv-search { margin-bottom: 14px; }
    .oh-gv-search input[type="text"] {
        font-family: "DM Sans", sans-serif;
        font-size: .88rem;
        padding: 8px 10px;
        border: 1px solid #e2e8f0;
        color: #0f172a;
    }
    .oh-gv-search input[type="text"]:focus { outline: none; border-color: #f97316; }
    .oh-gv-search input[type="button"],
    .oh-gv-search .dxbButton {
        font-family: "DM Sans", sans-serif;
        font-size: .8rem;
        font-weight: 600;
        padding: 8px 14px;
        border: 1px solid #e2e8f0;
        background: #fff;
        color: #1a3a5c;
        cursor: pointer;
    }
    .oh-gv-search input[type="button"]:hover { border-color: #f97316; color: #f97316; }

/* ============================================================
   Responsive card-stacking на телефон — същия trick като
   Cart.aspx: крием header-а, превръщаме всеки ред в блокова
   "карта", data-label атрибути (на span, не на td — виж
   поправения селектор [data-label] по-долу, не td[data-label])
   показват label-а вместо скрития колонен header. Buttons
   колоната (View/Receipt/Reorder) естествено пада под
   останалите данни на реда, вместо да прелива странично. */
@media (max-width: 640px) {
    .cbs-order-grid table thead,
    .cbs-order-grid .oh-gv-header { display: none; }

    .cbs-order-grid table,
    .cbs-order-grid tbody,
    .cbs-order-grid tr,
    .oh-gv-row,
    .oh-gv-row-alt {
        display: block !important;
        width: 100% !important;
    }

    .oh-gv-row td,
    .oh-gv-row-alt td {
        display: block;
        width: 100%;
        box-sizing: border-box;
        padding: 5px 0;
        border: none;
    }

    .oh-gv-row,
    .oh-gv-row-alt {
        margin-bottom: 16px;
        border: 1px solid #e2e8f0 !important;
        padding: 14px;
    }

    .oh-gv-row [data-label]::before,
    .oh-gv-row-alt [data-label]::before {
        content: attr(data-label);
        display: block;
        font-family: "JetBrains Mono", monospace;
        font-size: .65rem;
        letter-spacing: .08em;
        text-transform: uppercase;
        color: #94a3b8;
        margin-bottom: 2px;
    }

    .oh-actions {
        border-top: 1px solid #f1f5f9;
        margin-top: 8px;
        padding-top: 10px;
    }

    /* Същия фикс като Cart.aspx: "table { display:block !important }"
       по-горе улавя и dxgvLoadingPanel таблицата (държана скрита с
       inline style="display:none;") — !important бие inline стил
       без собствен !important. Връщаме я изрично скрита. */
    .cbs-order-grid .dxgvLoadingPanel {
        display: none !important;
    }
}

@media (max-width: 520px) {
    .auth-row {
        grid-template-columns: 1fr;
    }
}

/* ---------- Account sub-navigation (табове под заглавието) ---------- */
.auth-container.wide { max-width: 860px; }

.acct-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.acct-tabs {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin: 20px 0 8px;
    border-bottom: 1px solid #e2e8f0;
}

.acct-tab {
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 600;
    font-size: .95rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #64748b;
    text-decoration: none;
    padding: 10px 16px;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
    transition: color .15s, border-color .15s;
}

.acct-tab:hover { color: #f97316; }

.acct-tab.is-active {
    color: #1a3a5c;
    border-bottom-color: #f97316;
}

/* ---------- "My Account" dropdown в nav-а ---------- */
.nav-dropdown-panel.nav-dropdown-panel--right {
    left: auto;
    right: 0;
    transform: none;
}

.acct-menu {
    min-width: 200px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-top: 3px solid #f97316;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .12);
    padding: 6px 0;
}

.acct-menu a {
    display: block;
    padding: 10px 18px;
    font-family: "DM Sans", sans-serif;
    font-size: .88rem;
    color: #1a3a5c;
    text-decoration: none;
    white-space: nowrap;
}

.acct-menu a:hover {
    background: #f8fafc;
    color: #f97316;
}

.acct-menu hr {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 6px 0;
}

.acct-menu .acct-menu-logout { color: #64748b; }

/* Mobile menu (hamburger): линковете са просто списък */
.acct-mobile-links a {
    display: block;
    padding: 8px 0 8px 16px;
    font-family: "DM Sans", sans-serif;
    font-size: .9rem;
    color: #475569;
    text-decoration: none;
}


.auth-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: "DM Sans", sans-serif;
    font-size: .88rem;
    color: #475569;
    margin-bottom: 16px;
}
