/* === Кабинет пользователя === */

/* Хедер кабинета */
.cab-header {
    display: table;
    width: 100%;
    padding: 20px 25px;
    background: #f8f8f6;
    border-radius: 6px;
    margin-bottom: 0;
    box-sizing: border-box;
}
.cab-header-info {
    display: table-cell;
    vertical-align: middle;
}
.cab-header-actions {
    display: table-cell;
    vertical-align: middle;
    text-align: right;
    white-space: nowrap;
}
.cab-title {
    font-size: 22px;
    font-weight: 700;
    color: #3A3A3A;
    margin: 0 0 4px 0;
    padding: 0;
}
/* Кнопка копирования номера заказа */
.order-copy-btn {
    background: none;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 3px 5px;
    cursor: pointer;
    color: #999;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    margin-left: 4px;
    transition: color 0.15s, border-color 0.15s;
    position: relative;
}
.order-copy-btn:hover { color: #046189; border-color: #046189; }
.order-copied { color: #19a24d !important; border-color: #19a24d !important; }
.order-copied::after {
    content: '\2713';
    position: absolute;
    top: -22px;
    left: 50%;
    transform: translateX(-50%);
    background: #19a24d;
    color: #fff;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
}

.cab-user-email {
    font-size: 14px;
    color: #888;
}

/* Кнопки хедера */
.cab-btn {
    display: inline-block;
    padding: 8px 18px;
    font-size: 13px;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s;
}
.cab-btn-edit {
    background: #19a24d;
    color: #fff;
    margin-right: 8px;
}
.cab-btn-edit:hover {
    background: #04ab5a;
    color: #fff;
    text-decoration: none;
}
.cab-icon-edit {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 6px;
    vertical-align: -2px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04a1 1 0 000-1.41l-2.34-2.34a1 1 0 00-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
}
.cab-btn-logout {
    background: transparent;
    color: #999;
    border: 1px solid #ddd;
}
.cab-btn-logout:hover {
    background: #f0f0f0;
    color: #666;
    text-decoration: none;
}

/* Навигация */
.cab-nav {
    display: block;
    border-bottom: 2px solid #e8e8e8;
    margin-bottom: 20px;
    padding: 0;
}
.cab-nav-item {
    display: inline-block;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    color: #888;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color 0.2s, border-color 0.2s;
}
.cab-nav-item:hover {
    color: #3A3A3A;
    text-decoration: none;
}
.cab-nav-active {
    color: #19a24d;
    border-bottom-color: #19a24d;
}

/* Карточки статистики */
.cab-stats {
    display: table;
    width: 100%;
    margin-bottom: 24px;
    table-layout: fixed;
}
.cab-stat-card {
    display: table-cell;
    width: 50%;
    padding: 18px 24px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    text-align: center;
}
.cab-stat-card:first-child {
    margin-right: 16px;
    border-right: none;
    border-radius: 6px 0 0 6px;
}
.cab-stat-card:last-child {
    border-radius: 0 6px 6px 0;
}
.cab-stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #3A3A3A;
    line-height: 1.2;
}
.cab-stat-currency {
    font-size: 18px;
    font-weight: 400;
    color: #888;
}
.cab-stat-label {
    font-size: 13px;
    color: #999;
    margin-top: 4px;
    text-transform: lowercase;
}

/* Таблица заказов */
.cab-orders {
    width: 100%;
    overflow-x: auto;
}
.cab-orders-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
}
.cab-orders-table thead th {
    background: #f8f8f6;
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left;
    border-bottom: 2px solid #e8e8e8;
}
.cab-orders-table thead th:first-child {
    border-radius: 6px 0 0 0;
}
.cab-orders-table thead th:last-child {
    border-radius: 0 6px 0 0;
    text-align: center;
}
.cab-orders-table tbody td {
    padding: 14px 16px;
    font-size: 14px;
    color: #3A3A3A;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}
.cab-orders-table tbody tr:hover {
    background: #fafff6;
}
.cab-orders-table tbody tr:last-child td {
    border-bottom: none;
}
.cab-order-id {
    font-weight: 600;
    color: #046189;
}
.cab-order-time {
    color: #bbb;
    font-size: 13px;
}
.cab-order-sum {
    font-weight: 600;
}
.cab-order-link {
    display: inline-block;
    padding: 5px 14px;
    font-size: 13px;
    color: #19a24d;
    border: 1px solid #19a24d;
    border-radius: 4px;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s;
}
.cab-order-link:hover {
    background: #19a24d;
    color: #fff;
    text-decoration: none;
}
.cab-orders-table tbody td:last-child {
    text-align: center;
}

/* Секция скидок */
.cab-discounts {
    margin-top: 30px;
}
.cab-section-title {
    font-size: 18px;
    font-weight: 700;
    color: #3A3A3A;
    margin: 0 0 16px 0;
}

/* === Страница редактирования профиля === */
.user-data input {width: 240px; font-size: 15px;}
.user-data tr td:first-child {text-align: right; padding-right: 10px;}
.user-data .send-button {
    border: none;
    background-color: #19a24d;
    color: #fff;
    font-family: Arial, Verdana, sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    width: 100%;
    max-width: 400px;
    padding: 12px 24px;
    height: auto;
    cursor: pointer;
    border-radius: 4px;
    margin-top: 15px;
    transition: background-color 0.2s;
}
.user-data .send-button:hover {
    background-color: #04ab5a;
}

/* === Пагинация кабинета === */
.cab-pagination {
    padding: 20px 0 10px;
    text-align: center;
}
.cab-page-btn {
    display: inline-block;
    min-width: 36px;
    height: 36px;
    line-height: 36px;
    padding: 0 10px;
    margin: 0 2px;
    font-size: 14px;
    color: #3A3A3A;
    text-decoration: none;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    text-align: center;
    transition: all 0.2s;
    box-sizing: border-box;
    vertical-align: middle;
}
.cab-page-btn:hover {
    background: #f8f8f6;
    border-color: #ccc;
    text-decoration: none;
    color: #3A3A3A;
}
.cab-page-active {
    background: #19a24d;
    color: #fff;
    border-color: #19a24d;
}
.cab-page-active:hover {
    background: #19a24d;
    color: #fff;
    border-color: #19a24d;
}
.cab-page-disabled {
    color: #ddd;
    border-color: #f0f0f0;
    cursor: default;
}
.cab-page-disabled:hover {
    background: transparent;
    border-color: #f0f0f0;
    color: #ddd;
}
.cab-page-dots {
    display: inline-block;
    min-width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    color: #999;
    vertical-align: middle;
}
.cab-page-info {
    display: inline-block;
    margin-left: 12px;
    font-size: 13px;
    color: #999;
    vertical-align: middle;
    line-height: 36px;
}

/* === Форма редактирования профиля === */
.cab-edit-form {
    max-width: 600px;
}
.cab-form-group {
    margin-bottom: 16px;
}
.cab-form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #888;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.cab-form-input {
    display: block;
    width: 100%;
    padding: 10px 14px;
    font-size: 15px;
    color: #3A3A3A;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.2s;
    font-family: Arial, Verdana, sans-serif;
}
.cab-form-input:focus {
    border-color: #19a24d;
    outline: none;
}
select.cab-form-input {
    height: 42px;
}
.cab-form-row {
    overflow: hidden;
    margin-left: -8px;
    margin-right: -8px;
}
.cab-form-col {
    float: left;
    width: 50%;
    padding: 0 8px;
    box-sizing: border-box;
}
.cab-form-col-sm {
    width: 25%;
}
.cab-form-divider {
    border-top: 1px solid #e8e8e8;
    margin: 24px 0;
}
.cab-error {
    background: #fff2f2;
    color: #d01d1d;
    padding: 10px 16px;
    border-radius: 4px;
    margin-bottom: 16px;
    font-size: 14px;
    border-left: 3px solid #d01d1d;
}
.cab-success {
    background: #f0fff4;
    color: #19a24d;
    padding: 10px 16px;
    border-radius: 4px;
    margin-bottom: 16px;
    font-size: 14px;
    border-left: 3px solid #19a24d;
}

/* === Избранное (legacy) === */
.menu-cab li {display: inline; margin: 0; list-style-type: none; margin-right: 20px;}
ul.menu-cab li a {font-size: 16px;}
ul.menu-cab {margin-bottom: 20px;}

.favorite {
    border: 1px dotted #D6D5D5;
    padding: 15px;
    height: 268px;
    margin-bottom: 25px;
}
.fvt-container {position: relative; overflow: hidden;}
.fvt-img {width: 31%; height: 20px; float: left;}
.fvt-info {width: 22%; float: left; color: green; font-weight: bold;}
.fvt-price {width: 42%; float: right; overflow: hidden; height: 219px;}
.favorite .mass-info {width: 25%;}
.favorite .aprice {width: 70%;}
.favorite .aprice1 {width: 45%; float: left; text-align: right;}
.favorite .pr-and-buy {width: 70%;}
.pr-and-buy a {display: block; float: right; margin-top: 7px;}
.favorite .itemHarList li {padding: 6px 0;}
.favorite .itemHarList {margin: 0;}
.fvt-name a {text-decoration: none; font-weight: bold; font-size: 16px; color: #000;}
.favorite .available img {margin: 7px 0 0}
.favorite .available span {color: #2E8852; font-weight: bold;}
.fvt-del {margin-top: 15px; font-weight: normal; border-bottom: 1px dashed #000; cursor: pointer; width: 49px;}
a.buy_cab {color: #2E8852; font-weight: bold;}
.available button {
    font-size: 12px;
    background-color: #DFDEC8;
    border: 1px solid grey;
    cursor: pointer;
}
