﻿/* #BEGIN ***skladito/shared/styles/components.css*** */
/* 2026-06-17 14:40 */
/* =============================================
   components.css — shared component styles v2.18.47
   ============================================= */

/* === НОВЫЕ КАРТОЧКИ === */

.card-new {
    position: relative;
    background: white;
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: transform 0.2s;
    overflow: hidden;
    min-height: 70px;
    display: flex;
    flex-direction: row;
}

.card-new:active {
    transform: scale(0.98);
}

.card-new.has-photo {
    min-height: 70px;
}

.card-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-photo-wrap {
    position: relative;
    align-self: stretch;
    flex: 0 0 38%;
    max-width: 38%;
    min-height: 88px;
    margin-left: -8px;
    overflow: hidden;
}

.card-photo-right {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-photo-qty-badge {
    position: absolute;
    right: 6px;
    top: 6px;
    min-width: 24px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    background: rgba(255,255,255,0.92);
    color: #222;
    font-size: 12px;
    font-weight: 800;
    line-height: 22px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    pointer-events: none;
}

.card-new .card-top {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px 4px;
    font-size: 15px;
    font-weight: 600;
    z-index: 1;
}

.card-new .card-top .card-picto {
    font-size: 20px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: white;
    border: 1.5px solid #333;
}

.card-new .card-top .card-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    word-break: break-word;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.cards-grid.single-column .card-new .card-top .card-name {
    -webkit-line-clamp: 3;
}

.cards-grid.single-column .card-new.has-photo {
    min-height: 112px;
}

.cards-grid.single-column .card-photo-wrap {
    flex-basis: 36%;
    max-width: 36%;
    min-height: 112px;
}

.card-new.container-card.has-photo,
.card-new.item-card.has-photo {
    display: block;
}

.card-new.container-card.has-photo .card-content,
.card-new.item-card.has-photo .card-content {
    position: relative;
    display: flex;
    min-height: 92px;
}

.card-new.container-card.has-photo .card-photo-wrap,
.card-new.item-card.has-photo .card-photo-wrap {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28%;
    height: 84px;
    max-width: 28%;
    min-height: 84px;
    margin: 0;
    border-radius: 8px;
}

.card-new.container-card.has-photo .card-top,
.card-new.container-card.has-photo .card-bottom,
.card-new.item-card.has-photo .card-top,
.card-new.item-card.has-photo .card-bottom {
    padding-right: calc(28% + 18px);
}

.card-new.container-card.has-photo .card-top .card-name,
.card-new.item-card.has-photo .card-top .card-name {
    -webkit-line-clamp: 3;
}

.item-card-flow {
    padding: 12px;
    min-height: 96px;
    max-height: 96px;
    overflow: hidden;
    color: #222;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.28;
}

.container-card-flow::after,
.item-card-flow::after {
    content: "";
    display: block;
    clear: both;
}

.container-card-flow .card-name,
.item-card-flow .card-name {
    display: inline;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    word-break: normal;
    overflow-wrap: anywhere;
}

.container-card-flow .card-number {
    color: var(--brand-primary);
    font-family: 'Courier New', monospace;
    font-weight: 800;
}

.container-card-flow .card-picto-inline {
    display: inline-block;
    font-size: 15px;
    line-height: 1;
    vertical-align: -1px;
}

.cards-grid:not(.single-column) .card-new.has-photo {
    min-height: 92px;
}

.cards-grid:not(.single-column) .card-photo-wrap {
    flex-basis: 42%;
    max-width: 42%;
    min-height: 92px;
    margin-left: -4px;
}

.cards-grid:not(.single-column) .card-new .card-top {
    align-items: flex-start;
    gap: 6px;
    padding: 8px 8px 3px;
    font-size: 13px;
}

.cards-grid:not(.single-column) .card-new .card-top .card-picto {
    width: 26px;
    height: 26px;
    font-size: 17px;
}

.cards-grid:not(.single-column) .card-new .card-bottom {
    padding: 3px 8px 8px;
    font-size: 12px;
}

.cards-grid:not(.single-column) .card-new.item-card.has-photo {
    min-height: 69px;
}

.cards-grid:not(.single-column) .card-new.container-card.has-photo {
    min-height: 92px;
}

.cards-grid:not(.single-column) .card-new.item-card.has-photo .card-content {
    display: flex;
    min-height: 69px;
}

.cards-grid:not(.single-column) .card-new.container-card.container-card-flow-layout .card-content,
.cards-grid:not(.single-column) .card-new.item-card.item-card-flow-layout .card-content {
    display: block;
}

.cards-grid:not(.single-column) .card-new.container-card.container-card-flow-layout .card-photo-wrap,
.cards-grid:not(.single-column) .card-new.item-card.item-card-flow-layout .card-photo-wrap {
    position: relative;
    float: right;
    width: 56px;
    height: 56px;
    max-width: none;
    min-height: 56px;
    margin: 0 0 4px 6px;
    border-radius: 8px;
    border: 3px solid white;
}

.cards-grid:not(.single-column) .card-new.item-card.has-photo .card-bottom {
    padding-right: 8px;
}

.cards-grid:not(.single-column) .card-new.item-card.has-photo .item-card-flow {
    min-height: 69px;
    max-height: 69px;
    padding: 4px;
    font-size: 13px;
    line-height: 1.25;
    overflow: hidden;
}

.cards-grid:not(.single-column) .card-new.container-card.has-photo .container-card-flow {
    min-height: 92px;
    max-height: 92px;
    padding: 4px;
    overflow: hidden;
    color: #222;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
}

.card-new.has-internal-badge .card-top {
    padding-right: 48px;
}

.card-internal-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 3;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    background: #dc3545;
    color: white;
    font-size: 12px;
    font-weight: 800;
    line-height: 22px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.35);
    pointer-events: none;
}

.card-new .card-bottom {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 4px 12px 10px;
    font-size: 13px;
    z-index: 1;
}

.card-path {
    font-size: 13px;
    color: #444;
    padding: 4px 0 0;
    line-height: 1.3;
    word-break: break-word;
    width: 100%;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.wine-item-meta {
    width: 100%;
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.3;
    color: #4b5563;
}

.wine-item-meta-line {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wine-item-meta-muted {
    color: #6b7280;
}

.card-new .card-bottom .card-number {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    font-size: 14px;
}

.card-new .card-bottom .card-qty {
    font-weight: 700;
    font-size: 15px;
}

.card-new .card-bottom .card-qr-icon {
    font-size: 16px;
    opacity: 0.7;
}


/* Без фото — цветные акценты */
.card-new:not(.has-photo) .card-number {
    color: var(--brand-primary);
}

.card-new:not(.has-photo) .card-qty {
    color: var(--brand-primary);
}

/* Предмет ниже минимума */
.card-new.below-min {
    border-left: 4px solid #dc3545;
}

.card-new.below-min .card-qty {
    color: #dc3545 !important;
}

.container-nav-sticky {
    position: sticky;
    top: 74px;
    z-index: 90;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 0 10px;
    margin: -8px 0 10px;
    background: #F5F5F5;
}

.breadcrumbs-list {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    min-width: 0;
}

.sticky-view-toggle-btn {
    display: none;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* === ОНБОРДИНГ === */

.onboarding,
.onboarding-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--brand-gradient);
    z-index: 2000;
    color: white;
    overflow: hidden;
    height: 100vh;
    height: 100dvh;
}

.onboarding.active,
.onboarding-overlay.active {
    display: flex;
    flex-direction: column;
}

.onboarding-slides {
    flex: 1;
    min-height: 0;
    display: flex;
    transition: transform 0.3s ease;
}

.onboarding-slide {
    min-width: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 30px;
    text-align: center;
    scroll-snap-align: start;
    overflow-y: auto;
}

.onboarding-icon {
    font-size: 80px;
    margin-bottom: 30px;
}

.onboarding-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
}

.onboarding-text {
    font-size: 18px;
    opacity: 0.9;
    line-height: 1.6;
    max-width: 320px;
}

.onboarding-footer,
.onboarding-nav {
    flex-shrink: 0;
    padding: 20px 30px calc(20px + env(safe-area-inset-bottom, 0px));
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

@media (max-height: 680px) {
    .onboarding-slide {
        padding: 24px 24px;
        justify-content: flex-start;
    }

    .onboarding-icon {
        font-size: 56px;
        margin-bottom: 18px;
    }

    .onboarding-title {
        font-size: 24px;
        margin-bottom: 14px;
    }

    .onboarding-text {
        font-size: 16px;
        line-height: 1.45;
    }

    .onboarding-footer,
    .onboarding-nav {
        gap: 14px;
        padding: 14px 24px calc(14px + env(safe-area-inset-bottom, 0px));
    }
}

.onboarding-dots {
    display: flex;
    gap: 10px;
}

.onboarding-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    transition: all 0.3s;
}

.onboarding-dot.active {
    background: white;
    width: 24px;
    border-radius: 5px;
}

.onboarding-btn {
    background: white;
    color: var(--brand-primary);
    border: none;
    padding: 16px 48px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.onboarding-btn:active {
    transform: scale(0.95);
}

.onboarding-skip {
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    cursor: pointer;
    padding: 10px;
}

/* === SCANNER MODE BUTTONS === */
.scanner-mode-btn {
    flex: 1;
    padding: 10px;
    border: 2px solid var(--brand-primary);
    border-radius: 10px;
    background: white;
    color: var(--brand-primary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
}

.scanner-mode-btn.active {
    background: var(--brand-primary);
    color: white;
}

/* === Container Action Buttons === */
.container-actions { display: flex; gap: 8px; margin-bottom: 12px; position: relative; }
.container-actions-secondary { display: flex; gap: 8px; margin-bottom: 12px; }

.container-summary-card {
    position: relative;
}

.container-summary-card .card-title {
    margin-right: 44px;
}

.container-summary-card .container-actions {
    margin: 0;
    position: absolute;
    right: 10px;
    top: 10px;
    z-index: 2;
}

.container-actions-toggle {
    background: #f2f2f2;
    border: none;
    border-radius: 50%;
    color: #333;
    cursor: pointer;
    font-size: 22px;
    height: 44px;
    line-height: 1;
    width: 44px;
}

.container-actions-toggle.active,
.container-actions-toggle:active {
    background: var(--brand-primary);
    color: white;
}

.container-actions-overlay {
    background: transparent;
    bottom: 0;
    left: 0;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 9000;
}

.container-actions-menu {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    display: none;
    max-width: calc(100vw - 16px);
    min-width: 240px;
    overflow: hidden;
    position: fixed;
}

.container-actions-menu.active {
    display: block;
}

.container-actions-menu button {
    background: #fff;
    border: 0;
    border-bottom: 1px solid #eee;
    color: #222;
    cursor: pointer;
    display: block;
    font-size: 14px;
    min-height: 44px;
    padding: 12px 14px;
    text-align: left;
    width: 100%;
}

.container-actions-menu button:active {
    background: #f2f2f2;
}

.container-actions-menu button:last-child {
    border-bottom: 0;
}

.action-edit-btn {
    padding: 10px 16px;
    border: none;
    border-radius: 10px;
    background: var(--brand-primary);
    color: white;
    font-size: 18px;
    cursor: pointer;
}
.action-qr-btn {
    padding: 10px 16px;
    border: none;
    border-radius: 10px;
    background: #fd7e14;
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.action-print-btn {
    flex: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    border-radius: 10px;
    background: #2f9e44;
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.action-share-btn {
    padding: 10px 16px;
    border: none;
    border-radius: 10px;
    background: #17a2b8;
    color: white;
    font-size: 18px;
    cursor: pointer;
}
.action-access-btn {
    padding: 10px 16px;
    border: none;
    border-radius: 10px;
    background: #6f42c1;
    color: white;
    font-size: 18px;
    cursor: pointer;
}
.action-move-btn {
    flex: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    border-radius: 10px;
    background: #6f42c1;
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.action-return-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: #fd7e14;
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}
.action-force-return-btn {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: 10px;
    background: #fd7e14;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
.action-delete-readonly-btn {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: 10px;
    background: #dc3545;
    color: white;
    font-size: 14px;
    cursor: pointer;
}

/* ===== Context Actions (кнопки добавления) ===== */
.context-actions {
    display: flex;
    gap: 10px;
    margin: 24px 0 16px;
    justify-content: center;
    padding: 0 4px;
}

.context-btn {
    padding: 12px 20px;
    border-radius: 24px;
    background: var(--brand-primary);
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    border: none;
    transition: transform 0.15s, background 0.15s;
}

.context-btn:active {
    transform: scale(0.95);
    background: var(--brand-secondary);
}

/* ===== View Toggle Button ===== */
.view-toggle-btn {
    background: none;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 16px;
    color: #555;
    transition: transform 0.15s;
    flex: none;
}

.view-toggle-btn:active {
    transform: scale(0.95);
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}

/* === Photos Gallery (edit forms) === */
.photos-gallery { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.photos-gallery-item { position: relative; width: 80px; height: 80px; border-radius: 8px; overflow: hidden; border: 2px solid #ddd; }
.photos-gallery-item.is-main { border-color: var(--brand-primary); }
.photos-gallery-item img { width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.photos-gallery-add { width: 80px; height: 80px; border: 2px dashed #ccc; border-radius: 8px; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 28px; color: #999; }
.photo-gallery-action { flex-direction: column; gap: 4px; font-size: 24px; color: #666; }
.photo-gallery-action small { display: block; font-size: 11px; line-height: 1; font-weight: 600; color: #666; }
.photos-gallery-add:active { background: #f0f0f0; }
.item-quantity-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; align-items: start; }
.item-quantity-row .form-group { margin-bottom: 20px; }
.item-quantity-row .form-label { min-height: 34px; }

.wine-fields-block {
    margin-top: 6px;
    padding: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fffaf2;
}

.wine-fields-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #7c2d12;
}

.wine-fields-grid {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.wine-fields-grid label,
.wine-note-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
    color: #4b5563;
}

.wine-note-field {
    margin-top: 8px;
}

.wine-filter-panel {
    margin: 16px 0 10px;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #fffaf2;
}

.wine-filter-panel-title {
    font-size: 14px;
    font-weight: 700;
    color: #7c2d12;
    margin-bottom: 8px;
}

.wine-filter-grid {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.wine-filter-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
    color: #4b5563;
}

.wine-filter-field select {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 13px;
    background: white;
}

.wine-filter-panel-footer {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.wine-filter-reset {
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: white;
    color: #374151;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 13px;
}

.wine-filter-counter {
    font-size: 12px;
    color: #6b7280;
}

.wine-ocr-panel {
    margin-top: 10px;
    padding: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
}

.wine-ocr-title {
    font-size: 13px;
    font-weight: 700;
    color: #7c2d12;
}

.wine-ocr-hint {
    margin-top: 4px;
    font-size: 12px;
    color: #6b7280;
}

.wine-ocr-actions {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.wine-ocr-btn {
    border: none;
    border-radius: 8px;
    background: #7c2d12;
    color: #fff;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.wine-ocr-btn:disabled {
    opacity: 0.6;
    cursor: default;
}

.wine-ocr-btn-secondary {
    background: #374151;
}

.wine-ocr-error {
    margin-top: 8px;
    font-size: 12px;
    color: #b42318;
}

.wine-ocr-result {
    margin-top: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px;
    background: #f9fafb;
}

.wine-ocr-result-best {
    border-color: #84cc16;
    background: #f7fee7;
}

.wine-ocr-result-head {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: baseline;
}

.wine-ocr-result-title {
    font-size: 13px;
    font-weight: 700;
    color: #111827;
}

.wine-ocr-result-conf {
    font-size: 12px;
    color: #6b7280;
}

.wine-ocr-fields {
    margin: 8px 0;
    padding-left: 18px;
    font-size: 12px;
    color: #111827;
}

.wine-ocr-fields li {
    margin: 2px 0;
}

.wine-ocr-empty {
    margin: 8px 0;
    font-size: 12px;
    color: #6b7280;
}

.wine-ocr-text {
    margin-top: 8px;
}

.wine-ocr-text summary {
    cursor: pointer;
    font-size: 12px;
    color: #4b5563;
}

.wine-ocr-text pre {
    margin: 6px 0 0;
    padding: 8px;
    max-height: 120px;
    overflow: auto;
    border-radius: 6px;
    background: #fff;
    border: 1px solid #e5e7eb;
    font-size: 11px;
    white-space: pre-wrap;
    word-break: break-word;
}

/* === Photo Fullscreen Overlay === */
.photo-fullscreen-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 10vh 10vw; box-sizing: border-box; }
.photo-fullscreen-wrap { position: relative; width: 80vw; height: 80vh; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.photo-fullscreen-wrap img { display: block; width: 100%; height: 100%; object-fit: contain; touch-action: none; user-select: none; transform-origin: center center; }
.photo-fullscreen-close { position: absolute; top: 8px; right: 8px; z-index: 2; background: rgba(0,0,0,0.7); border: 2px solid white; color: white; font-size: 20px; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.photo-fullscreen-close:active { background: rgba(0,0,0,0.9); }
.photo-fullscreen-icon,
.photo-fullscreen-main-indicator { position: absolute; top: 8px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 22px; line-height: 1; box-shadow: 0 2px 10px rgba(0,0,0,0.25); }
.photo-fullscreen-icon { border: 2px solid white; background: rgba(0,0,0,0.7); color: white; cursor: pointer; }
.photo-fullscreen-icon:active { background: rgba(0,0,0,0.9); }
.photo-fullscreen-delete { left: 8px; }
.photo-fullscreen-main { left: 50%; transform: translateX(-50%); color: #FFD54F; }
.photo-fullscreen-main-indicator { left: 50%; transform: translateX(-50%); background: rgba(0,0,0,0.62); border: 2px solid rgba(255,213,79,0.95); color: #FFD54F; }
.photo-fullscreen-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 42px; height: 56px; border: none; border-radius: 8px; background: rgba(0,0,0,0.55); color: white; font-size: 42px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.photo-fullscreen-nav:active { background: rgba(0,0,0,0.75); }
.photo-fullscreen-prev { left: 8px; }
.photo-fullscreen-next { right: 8px; }
.photo-fullscreen-counter { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); z-index: 2; background: rgba(0,0,0,0.62); color: white; border-radius: 999px; padding: 5px 10px; font-size: 13px; line-height: 1.2; }
.photo-fullscreen-actions { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; gap: 10px; justify-content: center; padding: 0 12px; }
.photo-fullscreen-action { border: none; border-radius: 10px; background: rgba(255,255,255,0.94); color: #222; font-size: 15px; font-weight: 600; padding: 12px 14px; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,0.25); }
.photo-fullscreen-action.danger { background: rgba(220,53,69,0.94); color: white; }

/* === MODAL CONTENT === */
.modal-content {
    max-height: 90vh;
    overflow-y: auto;
}

.modal-full-height-content {
    max-height: var(--modal-full-height, 90vh);
    overflow: hidden;
}

.cloud-access-manager {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 0;
}

#familyModalContent {
    flex: 1;
    min-height: 0;
    width: 100%;
}

#familyModalContent.cloud-access-manager-host {
    display: flex;
    flex: 1;
    min-height: 0;
}

#familyModalContent.family-invite-content,
#familyModalContent.family-modal-loading {
    display: block;
    overflow-y: auto;
}

.cloud-access-manager-header {
    flex: 0 0 auto;
    padding-right: 42px;
}

.cloud-access-manager-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.cloud-access-manager-subtitle {
    color: #666;
    font-size: 13px;
    margin-bottom: 8px;
}

.cloud-access-tabs {
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
    margin: 12px 0;
}

.cloud-access-tab {
    border: none;
    border-radius: 10px;
    flex: 1;
    font-weight: 600;
    padding: 10px;
}

.cloud-access-tab.active {
    background: var(--brand-primary);
    color: white;
}

.cloud-access-tab.inactive {
    background: #f1f5f9;
    color: #334155;
}

.cloud-access-manager-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

.cloud-access-manager-footer {
    border-top: 1px solid #eee;
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 12px;
}

.cloud-access-list {
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
}

.cloud-access-row {
    align-items: center;
    border-bottom: 1px solid #f5f5f5;
    cursor: pointer;
    display: flex;
    padding: 12px;
}

.cloud-access-row:last-child,
.cloud-access-edit-row:last-child {
    border-bottom: none;
}

.cloud-access-row-icon {
    font-size: 20px;
    margin-right: 10px;
}

.cloud-access-row-main {
    flex: 1;
    min-width: 0;
}

.cloud-access-row-title {
    font-size: 14px;
    font-weight: 600;
}

.cloud-access-row-subtitle {
    color: #888;
    font-size: 12px;
    margin-top: 2px;
}

.cloud-access-row-arrow {
    color: #94a3b8;
}

.cloud-access-back {
    background: #f1f5f9;
    border: none;
    border-radius: 8px;
    color: #334155;
    margin-bottom: 10px;
    padding: 8px 10px;
}

.cloud-access-detail-title {
    font-weight: 700;
    margin-bottom: 2px;
}

.cloud-access-detail-subtitle {
    color: #888;
    font-size: 12px;
    margin-bottom: 10px;
}

.cloud-access-empty {
    border: 1px solid #eee;
    border-radius: 10px;
    color: #777;
    padding: 12px;
}

.cloud-access-edit-row {
    border-bottom: 1px solid #f5f5f5;
    padding: 10px;
}

.cloud-access-edit-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cloud-access-edit-actions select {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    flex: 1 1 150px;
    padding: 8px;
}

.move-picker-modal {
    padding: 10px;
}

.move-picker-modal.active {
    align-items: stretch;
}

.move-picker-modal-content {
    height: calc(100vh - 20px);
    max-height: calc(100vh - 20px);
    display: flex;
    flex-direction: column;
}

.move-picker-modal-content > div {
    min-height: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.move-picker-list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    border: 1px solid #eee;
    border-radius: 10px;
    margin-bottom: 16px;
}

.move-conteiner-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
}

.move-conteiner-crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin-bottom: 12px;
}

.move-conteiner-crumb {
    background: var(--brand-primary-light, #eef3ff);
    border-radius: 14px;
    color: var(--brand-primary);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    padding: 6px 10px;
}

.move-conteiner-crumb.active {
    background: var(--brand-primary);
    color: white;
    cursor: default;
}

.move-conteiner-crumb-separator {
    color: #888;
    font-size: 12px;
}

.move-conteiner-row {
    align-items: center;
    background: white;
    border: 0;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    display: flex;
    gap: 10px;
    padding: 12px;
    text-align: left;
    width: 100%;
}

.move-conteiner-row-icon {
    font-size: 20px;
}

.move-conteiner-row-title {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
}

.move-conteiner-row-arrow {
    color: #bbb;
    font-size: 18px;
}

.move-conteiner-empty {
    color: #999;
    font-size: 14px;
    padding: 18px;
    text-align: center;
}

.move-conteiner-actions {
    display: flex;
    gap: 10px;
}

.move-conteiner-confirm,
.move-conteiner-cancel {
    flex: 1;
    margin: 0;
}

.move-conteiner-confirm {
    background: #28a745;
}

.move-conteiner-placeholder-text {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

.move-conteiner-placeholder-ok {
    margin: 0;
}

/* === Photo Carousel (container-view) === */
.photo-carousel { position: relative; width: 64px; height: 64px; flex-shrink: 0; border-radius: 10px; overflow: hidden; }
.photo-carousel-track { width: 100%; height: 100%; position: relative; }
.photo-carousel-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.3s; cursor: pointer; }
.photo-carousel-slide.active { opacity: 1; }
.photo-carousel-prev, .photo-carousel-next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.4); color: white; border: none; width: 20px; height: 20px; border-radius: 50%; font-size: 14px; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 2; padding: 0; line-height: 1; }
.photo-carousel-prev { left: 1px; }
.photo-carousel-next { right: 1px; }
.photo-carousel-prev:active, .photo-carousel-next:active { background: rgba(0,0,0,0.7); }
.photo-carousel-dots { position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%); display: flex; gap: 3px; z-index: 2; }
.photo-carousel-dot { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; }
.photo-carousel-dot.active { background: white; }

/* === BURGER HEADER === */
.burger-header { background: var(--brand-gradient); color: white; padding: 20px; position: relative; }
.burger-header h2 { font-size: 20px; margin-bottom: 5px; }
.burger-header p { font-size: 12px; opacity: 0.9; }
.burger-header .sound-toggle-btn { position: absolute; top: 12px; right: 12px; background: none; border: none; font-size: 22px; cursor: pointer; padding: 8px; opacity: 0.8; color: white; }
.burger-header .sound-toggle-btn:active { opacity: 1; transform: scale(0.95); }
.burger-header .sound-toggle-btn.muted { opacity: 0.4; }

/* === LOADER BAR (shared) === */
.loader-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 7px;
    z-index: 99999;
    display: none;
    overflow: hidden;
    background: rgba(0,0,0,0.1);
}
.loader-bar.active {
    display: block;
}
.loader-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -40%;
    width: 40%;
    height: 100%;
    background: #dc3545;
    animation: loaderSlide 1s ease-in-out infinite;
}
@keyframes loaderSlide {
    0% { left: -40%; }
    100% { left: 100%; }
}

/* === NOTIFICATION BELL === */
.header-notif { position: relative; cursor: pointer; padding: 5px; }
.notif-badge {
    position: absolute; top: -4px; right: -4px;
    background: #dc3545; color: white;
    border-radius: 50%; min-width: 18px; height: 18px;
    font-size: 11px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    padding: 0 4px;
}

/* Settings */
.settings-screen { padding: 16px; }
.settings-section { background: white; border-radius: 12px; margin-bottom: 12px; overflow: hidden; }
.settings-section-title { font-size: 13px; font-weight: 600; color: #888; text-transform: uppercase; padding: 12px 16px 6px; }
.settings-item { display: flex; align-items: center; padding: 14px 16px; gap: 12px; cursor: pointer; transition: background 0.15s; }
.settings-item:active { background: #f5f5f5; transform: scale(0.98); }
.settings-item-icon { font-size: 20px; width: 28px; text-align: center; }
.settings-item-text { flex: 1; }
.settings-item-title { font-size: 15px; color: #333; }
.settings-item-value { font-size: 13px; color: #888; margin-top: 2px; }

.settings-pm-btn {
    width: 44px;
    height: 44px;
    border: 1px solid #ccc;
    border-radius: 10px;
    background: #f5f5f5;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
}
.settings-pm-btn:active {
    transform: scale(0.95);
    background: #e0e0e0;
}

/* #END ***skladito/shared/styles/components.css*** */
