/* ================================================================
   Нижняя навигация с вкладками
   Добавить в конец site.css (или в отдельный area.css)
   ================================================================ */

/* Отступ снизу у основного контента, чтобы не перекрывался навигацией */
.page_body {
    padding-bottom: 90px;
}

/* Переопределяем старый .footer — он становится нижней навигацией */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    border-radius: 0;
    background-color: #fff;
    border-top: 1px solid #d7e3ed;
    opacity: 1;
    z-index: 100;
}

.footer_navigation {
    display: flex;
    justify-content: space-around;
    padding: 6px 0 14px;
}

.footer_link {
    flex: 1;
    width: auto;
    color: #7b98b8;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 4px 0;
    transition: color 0.15s;
}

    .footer_link.active {
        color: #003A6E;
    }

.footer_link_icon .material-symbols-outlined {
    font-size: 24px;
}

.footer_link_name {
    font-size: 10px;
    font-weight: 600;
}

/* ================================================================
   Страница «На территории» — зоны и карточки объектов
   ================================================================ */

.area_zone {
    margin: 24px 12px 0;
}

    .area_zone:first-child {
        margin-top: 12px;
    }

.area_zone_header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1.5px solid #d7e3ed;
}

.area_zone_dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
}

.area_zone_name {
    font-size: 16px;
    font-weight: 700;
    color: #003A6E;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    flex: 1;
}

.area_zone_badge {
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    border-radius: 8px;
    padding: 3px 9px;
    vertical-align: middle;
    white-space: nowrap;
}

/* Три счётчика баланса */
.area_balance_row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-bottom: 8px;
}

.area_balance_cell {
    border-radius: 10px;
    padding: 8px 6px;
    text-align: center;
    border: 0.5px solid #d4dde8;
    background: #fff;
}

    .area_balance_cell.occupied {
        background: #fff4f0;
        border-color: #f5c4b3;
    }

        .area_balance_cell.occupied .area_balance_num {
            color: #d85a30;
        }

    .area_balance_cell.free {
        background: #f0faf5;
        border-color: #9fe1cb;
    }

        .area_balance_cell.free .area_balance_num {
            color: #1d9e75;
        }

    .area_balance_cell.overdue {
        background: #fff1f1;
        border-color: #f7c1c1;
    }

        .area_balance_cell.overdue .area_balance_num {
            color: #a32d2d;
        }

.area_balance_num {
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    color: #003A6E;
}

.area_balance_label {
    font-size: 10px;
    color: #6b8aaa;
    margin-top: 3px;
    line-height: 1.3;
}

/* Список карточек */
.area_entries {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Одна карточка объекта */
.area_entry {
    border-radius: 12px;
    border: 0.5px solid #d4dde8;
    overflow: hidden;
    background: #fff;
}

    .area_entry.warning {
        border-color: #f5c4b3;
        background: #fffaf7;
    }

    .area_entry.overdue {
        border-color: #f7c1c1;
        background: #fff5f5;
    }

/* Верхняя часть карточки */
.area_entry_top {
    padding: 10px 13px 9px;
}

.area_entry_obj_row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.area_entry_icon {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .area_entry_icon .material-symbols-outlined {
        font-size: 18px;
    }

.area_entry_name {
    font-size: 13px;
    font-weight: 700;
    color: #003A6E;
    line-height: 1.2;
}

.area_entry_subtext {
    font-size: 11px;
    color: #7b98b8;
    margin-top: 2px;
}

/* Плашки «Заезд» / «Осталось» */
.area_entry_meta_row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.area_entry_meta_cell {
    background: #f3f7fb;
    border-radius: 8px;
    padding: 6px 9px;
}

.area_entry.warning .area_entry_meta_cell {
    background: #fdf5ec;
}

.area_entry.overdue .area_entry_meta_cell {
    background: #fef0f0;
}

.area_entry_meta_cell.unlimited {
    background: #eef4fc;
    border: 0.5px solid #b5d4f4;
}

.area_meta_label {
    font-size: 10px;
    color: #7a9bbf;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 3px;
}

.area_entry.warning .area_meta_label {
    color: #ba7517;
}

.area_entry.overdue .area_meta_label {
    color: #e24b4a;
}

.area_entry_meta_cell.unlimited .area_meta_label {
    color: #185fa5;
}

.area_meta_val {
    font-size: 13px;
    font-weight: 700;
    color: #003A6E;
    line-height: 1.2;
}

.area_entry.warning .area_meta_val {
    color: #854f0b;
}

.area_entry.overdue .area_meta_val {
    color: #a32d2d;
}

.area_meta_sub {
    font-size: 10px;
    color: #8aaccc;
    margin-top: 1px;
}

/* Символ бесконечности */
.area_infinity_val {
    font-size: 22px;
    font-weight: 700;
    color: #185fa5;
    line-height: 1;
}

/* Футер карточки — кнопки и статусы */
.area_entry_footer {
    border-top: 0.5px solid #edf1f6;
    padding: 10px 13px 14px;
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.area_entry.warning .area_entry_footer {
    border-top-color: #f5d5c8;
}

.area_entry.overdue .area_entry_footer {
    border-top-color: #f7c1c1;
}

/* Кнопки действий */
.area_btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    border-radius: 25px;
    border: 1.5px solid;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    background: #fff;
    white-space: nowrap;
    font-family: 'Rubik';
}

    .area_btn .material-symbols-outlined {
        font-size: 18px;
    }

.area_btn_exit {
    border-color: #d85a30;
    color: #993c1d;
}

.area_btn_extend {
    border-color: #185fa5;
    color: #0c447c;
}

/* Статус-пиллы */
.area_status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

    .area_status .material-symbols-outlined {
        font-size: 18px;
    }

.area_status_exit_pending {
    background: #e8eef5;
    color: #3a5a7a;
}

.area_status_extend_pending {
    background: #faeeda;
    color: #854f0b;
}

.area_status_extend_approved {
    background: #eaf3de;
    color: #3b6d11;
}

.area_status_extend_rejected {
    background: #fcebeb;
    color: #a32d2d;
}
