/* ---------- БАЗОВЫЕ ЦВЕТА И ПЕРЕМЕННЫЕ ---------- */
:root {
    --bg: #eef8f0;         /* светло-зелёный фон сайта */
    --card: #ffffff;       /* карточки и блоки */
    --line: #e8efe9;       /* разделительные линии */
    --text: #233234;       /* основной текст */
    --muted: #5d6a6d;      /* приглушённый текст */

    /* Цвета кнопок */
    --green: #39a96b;
    --green-2: #2f8e5a;
    --green-soft: #e6f5eb;

    --blue: #2f6fed;
    --blue-2: #2356b6;

    --red: #f44336;
    --red-2: #d32f2f;

    --teal: #1fa29b;
    --teal-2: #16807a;

    --shadow: 0 6px 18px rgba(24, 46, 32, .08);
    --radius: 14px;
}

/* ---------- ГЛОБАЛЬНЫЙ ФОН И ТЕКСТ ---------- */
html, body {
    background: var(--bg);
    color: var(--text);
    font-family: "Segoe UI", Roboto, sans-serif;
    margin: 0;
    padding: 0;
}

/*  ОСНОВНАЯ СТРУКТУРА СТРАНИЦЫ */
.recipe-page-container {
    display: flex;
    gap: 30px;
}

/* Плашка-обёртка «окна» страницы рецептов */
.recipes-surface{
    background: var(--bg);
    border: 1px solid #d7ecd9;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 16px;
}


/* --- Боковая панель --- */
.sidebar {
    width: 250px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sidebar button {
    padding: 10px 15px;
    font-size: 16px;
    cursor: pointer;
    background-color: #d4f5d1;
    color: #000;
    border: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.sidebar button:hover {
    background-color: #a1c2bf;
}

/* --- Основной контент --- */
.main-content {
    width: 100%;
    margin: 0 auto;
    transition: max-width 0.3s ease;
    padding: 20px;
}

.main-wide { max-width: 1200px; }
.main-narrow { max-width: 600px; }

/* новый класс под "Меню на день" */
.main-full {
    max-width: 1720px;
}

/* --- Кнопка "Назад" --- */
#backBtn {
    display: inline-block;
    background-color: #d4f5d1;
    color: #000;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease, transform .2s ease;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    border: 1px solid #a1c2bf;
}

#backBtn:hover {
    background-color: #a1c2bf;
    transform: translateY(-2px);
}

/*  ВСПОМОГАТЕЛЬНЫЕ ЭЛЕМЕНТЫ */
.placeholder-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
}

#placeholderImage {
    width: 80%;
    max-width: 900px;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* СПИСОК РЕЦЕПТОВ */

/* Заголовок страницы */
.page-title {
    text-align: center;
    font-size: clamp(28px, 3.2vw, 40px);
    font-weight: 800;
    letter-spacing: .2px;
    margin: 6px 0 18px;
}
.page-title::after {
    content: "";
    display: block;
    width: 120px;
    height: 4px;
    margin: 12px auto 0;
    background: linear-gradient(90deg, var(--green) 0%, #77c593 100%);
    border-radius: 4px;
}

/* --- Форма фильтра и поиска --- */
.recipe-filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 20px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 14px;
}

.recipe-filter-form select,
.recipe-filter-form input {
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid var(--line);
    background: #fbfdfb;
}

.recipe-filter-form select:focus,
.recipe-filter-form input:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(57,169,107,.12);
}
.recipe-filter-form .recipe-btn{
    padding: 8px 12px;
    font-size: 14px;
    line-height: 1.1;
}


/* КНОПКИ (ЕДИНАЯ СИСТЕМА) */
.recipe-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid transparent;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Общие эффекты */
.recipe-btn:hover {
    transform: translateY(-2px);
}

/* Кнопка "Найти" */
.recipe-btn.search {
    background-color: var(--green);
    color: #fff;
}
.recipe-btn.search:hover {
    background-color: var(--green-2);
}

/* Добавить рецепт */
.recipe-btn.add {
    background: var(--teal);
    color: #fff;
}
.recipe-btn.add:hover {
    background: var(--teal-2);
}

/* Подробнее */
.recipe-btn.view {
    background: var(--green-soft);
    color: var(--green-2);
    border-color: #cfe7d7;
}
.recipe-btn.view:hover {
    background: #dff0e6;
    color: var(--green);
}

/* Кнопка закрытия / назад для детальной страницы */
.detail-close {
    position: fixed;
    top: 14px;
    right: 18px;
    z-index: 1000;
    font-size: 28px;
    font-weight: 700;
    color: var(--muted);
    cursor: pointer;
    background: #fff;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
    transition: all .2s ease;
}
.detail-close:hover {
    color: var(--red);
    background: #ffecec;
    transform: scale(1.05);
}

/* Редактировать */
.recipe-btn.edit {
    background-color: #eaf0ff;
    color: var(--blue);
}
.recipe-btn.edit:hover {
    background-color: #dfe8ff;
    color: var(--blue-2);
}

/* Удалить */
.recipe-btn.delete {
    background-color: #ffeded;
    color: var(--red);
}
.recipe-btn.delete:hover {
    background-color: #ffe3e3;
    color: var(--red-2);
}

/* Вперёд / Назад (пагинация) */
.recipe-btn.pager {
    background: #fff;
    color: var(--green-2);
    border: 1px solid #cfe7d7;
}
.recipe-btn.pager:hover {
    background: var(--green-soft);
    color: var(--green);
}

/* КАРТОЧКИ РЕЦЕПТОВ */
.recipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 16px;
    padding: 16px;
    max-width: 1200px;
    margin: 0 auto 20px;
}

.recipe-card {
    min-height: 520px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.recipe-card:hover {
    transform:translateY(-2px);
    box-shadow:0 6px 20px rgba(0,0,0,.08);
}

/* Карточка — информативный вариант (фото слева, текст справа) */
.recipe-card--rich{
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.recipe-card--rich .card-body{
    padding: 2px 6px 0 6px;
}

.recipe-card:not(.recipe-card--rich){
    min-height: 340px;
}

@media (max-width:1280px){
    .recipe-card--rich{
    grid-template-columns: 300px 1fr;
    gap: 16px;
    }
}

/* Фото */
.recipe-list-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 10px;
    border:1px solid var(--line);
    margin-bottom:10px;
}
/* Тело карточки */
.card-body{
    flex:1 1 auto;
    display:flex;
    flex-direction:column;
    gap:10px;
}

.card-title{
    margin:0 0 4px 0;
    font-size:18px;
    font-weight:800;
}

/* Пара «ключ—значение» */
.card-row .kv{
    font-size:14px;
    color:var(--text);
    }

.card-row .k{
    color:var(--muted);
    margin-right:6px;
}

/* КБЖУ */
.kbju{
    display: grid;
    grid-template-columns: repeat(4, 1fr);  /* жёстко 4 столбца */
    gap: 8px;
    margin: 4px 0;
    text-align: center;
}

.kbju-block{ margin-top: 4px; }
.kbju-badge{
    display:inline-block;
    font-size: 12px;
    color: var(--muted);
    background: #f1f7f2;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 3px 8px;
    margin-bottom: 6px;
}

.kbju > div{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f6fbf7;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 8px 10px;
}
.kbju dt{
    margin: 0;
    font-size: 11px;
    color: var(--muted);
    line-height: 1.1;
}
.kbju dd{
    margin: 2px 0 0;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.1;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

/* Краткие тексты, аккуратная обрезка */
.desc{
    margin:0;
    color:var(--text);
    line-height:1.45;
    padding-top:8px;
    border-top:1px dashed var(--line);
    overflow:hidden;
    max-height:128px;
    text-overflow:ellipsis;
    font-size:14px;
}

.desc > span{
    color:var(--muted);
    font-weight:600;
    margin-right:6px;
}

/* Кнопки внизу карточки — три равных */
.card-actions{
    margin-top:auto;
    display:flex;
    justify-content:space-between;
    gap:8px;
}

.card-actions .recipe-btn{
    flex:1 1 33%;
    text-align:center;
    padding:8px 0;
    font-size:14px;
}

/* Разделители описания (как в модалке календаря) */
.recipe-card p + p {
    padding-top: 8px;
    border-top: 1px dashed var(--line);
}

/* ДЕТАЛЬНАЯ СТРАНИЦА РЕЦЕПТА */
.detail-wrap {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
    margin: 0 auto;
    max-width: 1100px;
}

.detail-header {
    display: grid;
    grid-template-columns: minmax(260px, 36%) 1fr;
    gap: 16px;
    align-items: start;
}

.recipe-detail-image {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid var(--line);
}

/* Таблицы КБЖУ */
.table-box {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
}

.table-box thead th {
    background: #f6fbf7;
    border-bottom: 1px solid var(--line);
    padding: 10px 12px;
}
.table-box td {
    padding: 10px 12px;
    border-top: 1px solid var(--line);
}

/* Ингредиенты + Способ */
.recipe-columns {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 16px;
}
.recipe-columns .col {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px;
}

/* Текст рецепта — аккуратное выравнивание */
.recipe-text {
    text-align: justify;
    hyphens: auto;
    line-height: 1.6;
    color: var(--text);
}

/* АДАПТИВ */
@media (max-width: 880px) {
    .recipe-columns { grid-template-columns: 1fr; }
    .detail-header { grid-template-columns: 1fr; }
}

/* пагинация — отдельный белый блок, не перекрывает сетку */
.pagination{
    position: relative;
    z-index: 1;
    display:flex;
    justify-content:center;
    align-items:center;
    gap:10px;
    margin: 10px auto 0;
    padding: 10px 12px;
    max-width: 1200px;
    background:#fff;
    border:1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}


/* СТРАНИЦА ФОРМЫ РЕЦЕПТА */
.form-page {
    background: var(--bg);
    padding: 30px 10px 30px;
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.recipe-form {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px 24px;
    max-width: 650px;
    width: 100%;
    border: 1px solid var(--line);
    font-size: 14px;              /* общий размер шрифта */
    line-height: 1.5;
}

.recipe-form label {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
}

.recipe-form input,
.recipe-form textarea,
.recipe-form select {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px;
    font-size: 16px;
    background: #fbfdfb;
    transition: border-color .2s ease;
}

/* Увеличенные поля для текста */
.recipe-form textarea[name="ingredients"],
.recipe-form textarea[name="preparation"] {
    min-height: 140px;
    resize: none; /* запрет растягивания */
}

.recipe-form input:focus,
.recipe-form textarea:focus,
.recipe-form select:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(57,169,107,.15);
    outline: none;
}

.help-text {
    color: var(--muted);
    font-size: 12px;
    margin-top: 3px;
}

.error {
    color: var(--red);
    font-size: 13px;
    margin-top: 4px;
}

/* КБЖУ в одну строку */
.kbju-inline {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    align-items: end;
}

.kbju-inline input {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdfb;
    transition: border-color 0.2s ease;
}

.kbju-inline input:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(57,169,107,.12);
    outline: none;
}

/* на узких экранах — 2x2, чтобы не ломалось */
@media (max-width: 560px){
    .kbju-inline{
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* выравнивание блока по сетке */
.form-group.kbju-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Кнопка загрузки файла */
input[type="file"] {
    display: none;
}

.file-upload-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.file-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #eaf0ff;
    color: var(--blue);
    border-radius: 10px;
    padding: 8px 16px;
    border: 1px solid #d6e3ff;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.file-label:hover {
    background-color: #dfe8ff;
    color: var(--blue-2);
    transform: translateY(-1px);
}

.file-name {
    font-size: 13px;
    color: var(--muted);
}

/* Кнопки внизу формы */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 20px;
}

.recipe-btn.save {
    background-color: var(--green);
    color: #fff;
}
.recipe-btn.save:hover {
    background-color: var(--green-2);
}

.recipe-btn.cancel {
    background-color: #ffecec;
    color: var(--red-2);
}
.recipe-btn.cancel:hover {
    background-color: #ffdede;
}

/* Подтверждение удаления */
.confirm-page{
    background: var(--bg);
    padding: 30px 16px 60px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.confirm-card{
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 16px;
    width: 100%;
    max-width: 720px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px;
}

.confirm-icon{
    display:flex; align-items:flex-start; justify-content:center;
    font-size: 36px;
    line-height: 1;
    width: 72px; height: 72px;
    background: #fff5f5;
    border: 1px solid #ffd3d3;
    color: var(--red-2);
    border-radius: 14px;
}

.confirm-title{
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 6px;
}

.confirm-text{
    color: var(--muted);
    margin: 0 0 10px 0;
}

.confirm-thumb{
    display:block;
    width: 100%;
    max-width: 360px;
    height: 160px;
    object-fit: cover;
    border: 1px solid var(--line);
    border-radius: 10px;
    margin: 6px 0 12px;
}

.confirm-actions{
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 6px;
}

/* Кнопки: красная — опасное действие, ghost — отмена */
.recipe-btn.danger{
    background: var(--red);
    color: #fff;
}
.recipe-btn.danger:hover{
    background: var(--red-2);
}

.recipe-btn.ghost{
    background: #fff;
    color: var(--text);
    border: 1px solid var(--line);
}
.recipe-btn.ghost:hover{
    background: #f6fbf7;
}

/* Мобильная адаптация */
@media (max-width: 560px){
    .confirm-card{ grid-template-columns: 1fr; }
    .confirm-icon{ width: 56px; height: 56px; font-size: 28px; }
    .confirm-actions{ flex-direction: column; }
    .confirm-actions .recipe-btn{ width: 100%; }
}

/* Семейные рецепты: список карточек */

.recipes-list-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 10px 0 30px;
}

.recipes-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

/* Сетка карточек семейных рецептов */
.recipe-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

/* Используем общую логика карточек, просто дополняем базовый стиль */
.recipe-card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 10px;
    border: 1px solid var(--line);
    text-decoration: none;
    color: var(--text);
}

.recipe-card-image-wrapper {
    width: 100%;
    height: 170px;
    border-radius: 10px;
    overflow: hidden;
    background: #f3f5f3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.recipe-card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recipe-card-placeholder {
    font-size: 0.9rem;
    color: var(--muted);
}

.recipe-card-body {
    margin-top: 8px;
}

.recipe-card-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 4px;
}

.recipe-card-category {
    font-size: 0.85rem;
    color: var(--muted);
    margin: 0;
}

.empty-state {
    margin-top: 20px;
    text-align: center;
    color: var(--muted);
}

/* СЕМЕЙНЫЕ РЕЦЕПТЫ: СПИСОК КАРТОЧЕК */

.recipes-list-page {
    max-width: 1100px;
    margin: 0 auto 40px;
    padding-top: 10px;
}

.recipes-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

/* Сетка 3 в ряд (на широком экране), адаптивно сжимается до 2/1 */
.recipe-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
}

/* Карточка семейного рецепта внутри сетки */
.recipe-cards-grid .recipe-card {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
    background: var(--card);
    text-decoration: none;
    min-height: auto !important;
}

/* Область с картинкой в карточке */
.recipe-card-image-wrapper {
    position: relative;
    width: 100%;
    height: 190px;
    overflow: hidden;
}

.recipe-card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.recipe-card-placeholder {
    width: 100%;
    height: 100%;
    background: #f4f4f4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: var(--muted);
}

/* затемняющая подложка и текст поверх картинки */
.recipe-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.55), rgba(0,0,0,0.15), rgba(0,0,0,0));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 10px 12px;
    box-sizing: border-box;
}

.recipe-card-title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.recipe-card-category {
    margin: 0;
    font-size: 12px;
    color: #f5f5f5;
}

/* ховер-эффект */
.recipe-cards-grid .recipe-card:hover .recipe-card-image-wrapper img {
    transform: scale(1.03);
    transition: transform 0.2s ease-out;
}

.recipe-cards-grid .recipe-card:hover {
    box-shadow: 0 8px 20px rgba(24, 46, 32, 0.18);
}

/* когда рецептов нет */
.empty-state {
    margin-top: 20px;
    text-align: center;
    color: var(--muted);
    font-size: 14px;
}

/* Компактная кнопка Добавить рецепт */
.recipe-btn.small {
    padding: 6px 10px;
    font-size: 13px;
    border-radius: 8px;
}

/* СЕМЕЙНЫЕ РЕЦЕПТЫ: ДЕТАЛЬНАЯ СТРАНИЦА */

.recipe-detail-page {
    max-width: 1100px;
    margin: 0 auto 40px;
    padding-top: 10px;
}

.recipe-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.recipe-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Основной контент рецепта */
.recipe-detail-content {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
    padding: 16px 18px 22px;
}

/* картинка – центр, ограниченная ширина, без жёсткой высоты */
.family-recipe-detail-image {
    max-width: 700px;
    margin: 0 auto 16px;
    border-radius: 14px;
    border: 1px solid var(--line);
    overflow: hidden;
}

.family-recipe-detail-image img {
    display: block;
    width: 100%;
    height: auto;
}

/* Подпись категории */
.recipe-detail-category {
    font-size: 13px;
    color: var(--muted);
    margin: 0 0 10px;
}

/* Блок КБЖУ */
.recipe-detail-kbju {
    background: #f7fbf7;
    border-radius: 12px;
    border: 1px solid var(--line);
    padding: 10px 14px;
    margin-bottom: 16px;
}

.recipe-detail-kbju h2 {
    font-size: 15px;
    margin: 0 0 6px;
}

.recipe-detail-kbju ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    font-size: 14px;
}

/* Блоки текста – ингредиенты и приготовление */
.recipe-detail-block {
    margin-bottom: 14px;
}

.recipe-detail-block h2 {
    font-size: 16px;
    margin: 0 0 6px;
}

.recipe-detail-text {
    font-size: 14px;
    line-height: 1.5;
    white-space: pre-wrap;
}

.file-upload {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    opacity: 0;
}

/* Прячем "На данный момент" и чекбокс "Очистить" у стандартного виджета Django */
.file-upload a,                     /* ссылка с текущим файлом */
.file-upload input[type="checkbox"],/* чекбокс очистки */
.file-upload label[for$="-clear_id"],/* подпись "Очистить" */
.file-upload br {                   /* перевод строки между ними и "Изменить:" */
    display: none !important;
}
