﻿/* #BEGIN ***skladito/shared/styles/base.css*** */
/* 2026-03-15 */
:root {
    --brand-primary: #667eea;
    --brand-secondary: #764ba2;
    --brand-primary-light: #dde0ff;
    --brand-primary-border: #c0c7ff;
    --brand-primary-12: rgba(102, 126, 234, 0.13);
    --brand-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --brand-light: #f0f0ff;
    --brand-chip: #dde4ff;
    --brand-chip-active: #c8d2ff;
    --brand-focus: #667eea;
    --brand-active: #764ba2;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Roboto', 'Segoe UI', sans-serif; background: #F5F5F5; color: #333; padding-bottom: 200px; }

.header {
    background: var(--brand-gradient);
    color: white;
    padding: 15px 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-content { display: flex; align-items: center; }
.back-btn { background: none; border: none; color: white; font-size: 24px; cursor: pointer; padding: 5px 10px; margin-right: 10px; }
.header-title { flex: 1; }
.header h1 { font-size: 22px; font-weight: 600; }
.burger-btn { background: none; border: none; color: white; font-size: 24px; cursor: pointer; padding: 5px 10px; }

.burger-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 199; display: none; }
.burger-overlay.active { display: block; }
.burger-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    height: 100dvh;
    background: white;
    box-shadow: -2px 0 10px rgba(0,0,0,0.2);
    z-index: 200;
    transition: right 0.3s;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 40px;
}
.burger-menu.active { right: 0; }
.burger-header { background: var(--brand-gradient); color: white; padding: 20px; }
.burger-header h2 { font-size: 20px; margin-bottom: 5px; }
.burger-header p { font-size: 12px; opacity: 0.9; }
.burger-content { padding: 20px; }
.burger-item { padding: 15px; border-bottom: 1px solid #eee; cursor: pointer; display: flex; align-items: center; gap: 12px; }
.burger-item:active { background: #f5f5f5; }
.burger-item-icon { font-size: 24px; }
.burger-item-text { flex: 1; }
.burger-item-title { font-weight: 600; font-size: 16px; }
.burger-item-subtitle { font-size: 12px; color: #555; margin-top: 2px; }

.storage-indicator { background: #f5f5f5; padding: 12px 15px; margin: 15px 0; border-radius: 8px; }
.storage-bar { height: 6px; background: #e0e0e0; border-radius: 3px; overflow: hidden; margin-top: 8px; }
.storage-fill { height: 100%; background: var(--brand-primary); transition: width 0.3s, background 0.3s; }
.storage-fill.warning { background: #ff9800; }
.storage-fill.danger { background: #f44336; }

.container { max-width: 800px; margin: 0 auto; padding: 20px; }

.empty-state { text-align: center; padding: 60px 20px; color: #555; }
.empty-state-icon { font-size: 64px; margin-bottom: 15px; }
.empty-state-text { font-size: 18px; margin-bottom: 20px; }

.card {
    background: white;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: transform 0.2s;
}
.card:active { transform: scale(0.98); }
.card-header { display: flex; align-items: center; margin-bottom: 8px; }
.card-icon { font-size: 32px; margin-right: 12px; flex-shrink: 0; }
.card-thumb { width: 50px; height: 50px; border-radius: 8px; object-fit: cover; margin-right: 12px; flex-shrink: 0; }
.card-title { flex: 1; font-size: 18px; font-weight: 600; }
.card-badge { background: var(--brand-primary); color: white; padding: 4px 10px; border-radius: 12px; font-size: 12px; font-weight: 600; }
.card-info { color: #444; font-size: 14px; margin-top: 5px; }
.card-photo { width: 100%; max-height: 200px; object-fit: cover; border-radius: 8px; margin-top: 10px; }

.card-with-photo {
    position: relative;
    height: 120px;
    overflow: hidden;
    padding: 0;
    margin-bottom: 12px;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s;
}
.card-with-photo:active { transform: scale(0.98); }
.card-photo-bg { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-size: cover; background-position: center; }
.card-photo-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 12px 15px; background: linear-gradient(transparent, rgba(0,0,0,0.7)); color: white; }
.card-photo-overlay .card-title { color: white; font-size: 16px; text-shadow: 0 1px 3px rgba(0,0,0,0.5); }
.card-photo-overlay .card-title span { color: white !important; opacity: 0.9; }

.received-badge { display: inline-block; background: #17a2b8; color: white; padding: 4px 10px; border-radius: 12px; font-size: 11px; font-weight: 600; margin-left: 8px; }

.cards-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.cards-grid.single-column { grid-template-columns: 1fr; }
.cards-grid .card-new { margin-bottom: 0; }
@media (max-width: 360px) {
    .cards-grid { grid-template-columns: 1fr; }
}
@media (min-width: 768px) {
    .cards-grid { grid-template-columns: repeat(3, 1fr); }
}

.view-toggle { display: flex; gap: 4px; margin-left: auto; }
.view-toggle button { background: none; border: 2px solid #ddd; border-radius: 8px; padding: 6px 10px; cursor: pointer; font-size: 16px; color: #555; }
.view-toggle button.active { border-color: var(--brand-primary); color: var(--brand-primary); background: var(--brand-light); }

.breadcrumb-chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    background: var(--brand-chip);
    color: var(--brand-primary);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    white-space: nowrap;
}
.breadcrumb-chip:active { transform: scale(0.95); background: var(--brand-chip-active); }
.breadcrumb-chip--current { background: var(--brand-primary); color: white; cursor: default; }
.breadcrumb-chip--current:active { transform: none; background: var(--brand-primary); }
.breadcrumb-separator { color: #555; font-size: 14px; margin: 0 2px; }

.btn {
    background: var(--brand-primary);
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
    transition: background 0.2s;
}
.btn:active { background: var(--brand-secondary); }
.btn-secondary { background: #6c757d; }
.btn-danger { background: #dc3545; }
.btn-small { padding: 8px 16px; font-size: 14px; width: auto; display: inline-block; margin: 5px; }

.action-bar {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    position: sticky;
    bottom: 0;
    background: white;
    padding: 12px 0;
    border-top: 1px solid #eee;
    z-index: 10;
}
.action-bar .action-btn { flex: 1; padding: 14px; border: none; border-radius: 12px; font-size: 22px; cursor: pointer; text-align: center; transition: transform 0.15s; }
.action-bar .action-btn:active { transform: scale(0.93); }
.action-btn-save { background: #28a745; color: white; }
.action-btn-delete { background: #dc3545; color: white; }
.action-btn-cancel { background: #dc3545; color: white; }

.modal { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 1000; padding: 20px; overflow-y: auto; }
.modal.active { display: flex; align-items: center; justify-content: center; }
.modal-content { background: white; border-radius: 16px; padding: 24px; padding-bottom: 24px; max-width: 500px; width: 100%; max-height: 90vh; overflow-y: auto; position: relative; }
.modal.modal-full-height { padding: 0 12px; overflow: hidden; align-items: flex-end; }
.modal.modal-full-height.active { align-items: flex-end; justify-content: center; }
.modal-full-height-content { height: var(--modal-full-height, 90vh); max-height: var(--modal-full-height, 90vh); display: flex; flex-direction: column; overflow: hidden; border-radius: 16px 16px 0 0; }
.modal-header { font-size: 20px; font-weight: 600; margin-bottom: 20px; padding-right: 42px; }
.modal-standard-close { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border: none; border-radius: 50%; background: #f0f0f0; color: #333; font-size: 20px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 5; padding: 0; }
.modal-standard-close:active { background: #e0e0e0; transform: scale(0.96); }
.edit-modal-head { display: flex; align-items: center; gap: 10px; padding-right: 42px; margin-bottom: 20px; }
.edit-modal-head .modal-header { margin: 0; padding-right: 0; flex: 1; min-width: 0; }
.edit-delete-btn { flex: none; width: 40px; height: 40px; border-radius: 50%; font-size: 18px; padding: 0; display: flex; align-items: center; justify-content: center; }
#langModal { z-index: 2001 !important; }

.form-group { margin-bottom: 20px; }
.form-label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 14px; }
.form-input { width: 100%; padding: 12px; border: 2px solid #ddd; border-radius: 8px; font-size: 16px; }
.form-input:focus { outline: none; border-color: var(--brand-primary); }
.form-select { width: 100%; padding: 12px; border: 2px solid #ccc; border-radius: 8px; font-size: 16px; background: white; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }

.search-bar { position: relative; margin-bottom: 20px; }
.search-input { width: 100%; padding: 12px 40px 12px 12px; border: 2px solid #ddd; border-radius: 12px; font-size: 16px; }
.search-icon { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 20px; color: #555; }

.fab {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 56px;
    height: 56px;
    background: var(--brand-primary);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    cursor: pointer;
    z-index: 101;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.fab:active { transform: scale(0.95); }
.fab.active { background: #dc3545; box-shadow: 0 6px 18px rgba(220,53,69,0.35); }
.fab-scan {
    position: fixed;
    bottom: 80px;
    left: 20px;
    width: 56px;
    height: 56px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    cursor: pointer;
    z-index: 100;
}
body.fab-menu-open::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,0.24);
    z-index: 98;
    pointer-events: none;
}
.fab-menu { position: fixed; bottom: 150px; right: 20px; z-index: 100; display: none; }
.fab-menu.active {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    padding: 10px;
    border-radius: 18px;
    background: rgba(17,24,39,0.72);
    box-shadow: 0 10px 28px rgba(0,0,0,0.28);
}
.fab-menu-item { background: white; padding: 14px 20px; min-width: 176px; border-radius: 18px; box-shadow: 0 3px 12px rgba(0,0,0,0.24); cursor: pointer; white-space: nowrap; transition: transform 0.2s; font-weight: 700; text-align: left; }
.fab-menu-item:active { transform: scale(0.95); }

.red-report-btn {
    position: fixed;
    right: 18px;
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    width: 54px;
    height: 54px;
    background: #e53935;
    color: white;
    border: 2px solid rgba(255,255,255,0.9);
    border-radius: 50%;
    font-size: 30px;
    line-height: 1;
    font-weight: 800;
    box-shadow: 0 6px 18px rgba(229,57,53,0.45);
    cursor: pointer;
    z-index: 12000;
}
.red-report-btn:active { transform: scale(0.94); }

#modal-support,
#modal-support-ticket {
    z-index: 13000;
}

#support-fab {
    touch-action: none;
}

.support-modal {
    max-width: 520px;
    position: relative;
}

.support-modal .modal-header {
    padding-right: 44px;
}

.support-modal .modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin: 0;
    border-radius: 50%;
    background: #f5f5f5;
    color: #555;
    cursor: pointer;
}

.support-ticket-modal {
    max-height: 88vh;
}

.support-hint,
.support-state-note,
.support-empty,
.support-empty-inline,
.support-loading {
    color: #666;
    font-size: 14px;
}

.support-page {
    padding-bottom: 80px;
}

.support-page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.support-page-title {
    font-size: 20px;
    font-weight: 700;
}

.support-filter-bar {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.support-filter-btn {
    border: 1px solid #ddd;
    border-radius: 999px;
    background: #fff;
    color: #555;
    padding: 8px 12px;
    white-space: nowrap;
    cursor: pointer;
}

.support-filter-btn.active {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #fff;
}

.support-ticket-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    padding: 14px;
    margin-bottom: 12px;
    cursor: pointer;
}

.support-ticket-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.support-status {
    display: inline-flex;
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 700;
}

.support-status-new { background: #fff3e0; color: #e65100; }
.support-status-fixed { background: #e8f5e9; color: #2e7d32; }
.support-status-rework { background: #fce4ec; color: #ad1457; }
.support-status-closed { background: #eceff1; color: #455a64; }

.support-date {
    color: #888;
    font-size: 12px;
}

.support-ticket-title {
    color: #222;
    font-weight: 600;
    white-space: pre-wrap;
}

.support-ticket-response,
.support-fix-meta {
    background: #f0f7ff;
    border-radius: 10px;
    color: #1565c0;
    font-size: 14px;
    margin-top: 10px;
    padding: 10px;
    white-space: pre-wrap;
}

.support-screenshot {
    width: 100%;
    border-radius: 12px;
    margin: 12px 0;
}

.support-timeline {
    border-top: 1px solid #eee;
    margin-top: 12px;
    padding-top: 12px;
}

.support-timeline-row {
    border-left: 3px solid #e0e0e0;
    margin-bottom: 10px;
    padding-left: 10px;
}

.support-timeline-meta {
    color: #888;
    font-size: 12px;
    margin-bottom: 3px;
}

.support-timeline-text {
    white-space: pre-wrap;
}

.support-pull-indicator {
    display: none;
    color: #888;
    font-size: 13px;
    text-align: center;
    padding: 6px;
}

.support-pull-indicator.visible {
    display: block;
}

.photo-preview { width: 100%; max-height: 300px; object-fit: cover; border-radius: 8px; margin-top: 10px; }
.photo-upload { display: none; }
.photo-upload-btn { display: flex; align-items: center; justify-content: center; padding: 14px; border: none; border-radius: 10px; cursor: pointer; background: var(--brand-primary); color: white; font-size: 15px; font-weight: 600; transition: all 0.2s; margin-top: 10px; }
.photo-upload-btn:active { transform: scale(0.95); opacity: 0.9; }
.photo-actions { display: flex; gap: 10px; margin-top: 10px; }

.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; }
.alert-error { background: #f8d7da; color: #721c24; }

.toast-msg {
    background: #333;
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 3000;
    max-width: 80%;
    text-align: center;
    pointer-events: none;
    white-space: nowrap;
}
.toast-msg.show {
    opacity: 1;
}

.lang-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.7); z-index: 9999; display: flex; align-items: center; justify-content: center; flex-direction: column; }
.lang-overlay-flag { font-size: 80px; animation: langPulse 0.8s infinite; }
@keyframes langPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.migration-screen { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: var(--brand-gradient); z-index: 9999; color: white; justify-content: center; align-items: center; flex-direction: column; }
.migration-screen.active { display: flex; }
.migration-spinner { border: 4px solid rgba(255,255,255,0.3); border-top: 4px solid white; border-radius: 50%; width: 48px; height: 48px; animation: mspin 1s linear infinite; margin-bottom: 20px; }
@keyframes mspin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.note-card {
    align-items: flex-start;
    border-left: 4px solid #6f42c1;
}

.note-card-content {
    min-width: 0;
    padding-right: 4px;
}

.note-card-title {
    color: #2f2f2f;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 6px;
}

.note-card-text {
    color: #444;
    display: -webkit-box;
    font-size: 14px;
    line-height: 1.35;
    overflow: hidden;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.note-card-text-empty {
    color: #999;
    font-style: italic;
}

.note-card-meta {
    color: #6f42c1;
    font-size: 12px;
    font-weight: 600;
    margin-top: 8px;
}

.note-screen {
    padding-bottom: 24px;
}

.note-page {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-left: 4px solid #6f42c1;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    margin-bottom: 14px;
    padding: 16px;
    position: relative;
}

.note-page-editable {
    cursor: pointer;
}

.note-page-title {
    color: #222;
    font-size: 22px;
    line-height: 1.25;
    margin: 0 42px 10px 0;
}

.note-page-meta {
    color: #6f42c1;
    font-size: 13px;
    font-weight: 700;
    margin: 0 42px 10px 0;
}

.note-page-text {
    color: #333;
    font-size: 15px;
    line-height: 1.5;
    white-space: normal;
}

.note-page-text-empty {
    color: #999;
    font-style: italic;
}

.note-page-photos {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.note-page-photos img {
    border-radius: 10px;
    cursor: pointer;
    height: 72px;
    object-fit: cover;
    width: 72px;
}

.note-page-photo-more {
    align-items: center;
    background: #f0e8ff;
    border-radius: 10px;
    color: #5e35b1;
    display: inline-flex;
    font-weight: 700;
    height: 72px;
    justify-content: center;
    width: 72px;
}

.note-actions {
    position: absolute;
    right: 10px;
    top: 10px;
    z-index: 2;
}

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

.note-actions-menu {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    display: none;
    min-width: 190px;
    overflow: hidden;
    position: absolute;
    right: 0;
    top: 40px;
}

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

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

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

.note-actions-menu button.note-actions-danger {
    color: #dc3545;
    font-weight: 700;
}

.note-section-title {
    color: #555;
    font-weight: 700;
    margin: 18px 0 10px;
}

.note-editor-modal-content {
    max-width: 640px;
}

.note-editor-textarea {
    line-height: 1.45;
    min-height: 180px;
    resize: vertical;
}
/* #END ***skladito/shared/styles/base.css*** */
