Spaces:
Running
Running
| /* Основные стили */ | |
| body { | |
| font-family: Arial, sans-serif; | |
| background-color: #ffffff; | |
| color: #000000; | |
| margin: 0; | |
| padding: 0; | |
| } | |
| .container { | |
| display: flex; | |
| gap: 20px; | |
| padding: 20px; | |
| max-width: 1200px; | |
| margin: 0 auto; | |
| } | |
| .column { | |
| flex: 1; | |
| background-color: #f9f9f9; | |
| padding: 20px; | |
| border-radius: 10px; | |
| box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); | |
| } | |
| h2 { | |
| margin-top: 0; | |
| color: #000; | |
| } | |
| /* Бургер-меню */ | |
| .burger-menu { | |
| display: none; /* Скрыто по умолчанию */ | |
| position: fixed; | |
| top: 10px; | |
| left: 10px; | |
| z-index: 1000; | |
| } | |
| .burger-icon { | |
| font-size: 24px; | |
| cursor: pointer; | |
| background-color: #000; | |
| color: #fff; | |
| padding: 10px; | |
| border-radius: 5px; | |
| } | |
| .menu-items { | |
| display: none; | |
| background-color: #fff; | |
| border-radius: 5px; | |
| box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); | |
| margin-top: 10px; | |
| } | |
| .menu-items div { | |
| padding: 10px; | |
| cursor: pointer; | |
| border-bottom: 1px solid #ddd; | |
| color: #000; | |
| } | |
| .menu-items div:last-child { | |
| border-bottom: none; | |
| } | |
| .menu-items div:hover { | |
| background-color: #f1f1f1; | |
| } | |
| /* Адаптация для мобильных устройств */ | |
| @media (max-width: 768px) { | |
| .container { | |
| flex-direction: column; | |
| } | |
| .column { | |
| display: none; /* Скрываем все колонки по умолчанию */ | |
| } | |
| .burger-menu { | |
| display: block; /* Показываем бургер-меню */ | |
| } | |
| .column.active { | |
| display: block; /* Показываем активную колонку */ | |
| } | |
| } | |
| /* Форма добавления товара */ | |
| form { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 10px; | |
| margin-bottom: 20px; | |
| } | |
| input { | |
| padding: 10px; | |
| font-size: 16px; | |
| border: 1px solid #000; | |
| border-radius: 5px; | |
| background-color: #fff; | |
| color: #000; | |
| } | |
| button { | |
| padding: 10px; | |
| font-size: 16px; | |
| background-color: #000; | |
| color: #fff; | |
| border: none; | |
| border-radius: 5px; | |
| cursor: pointer; | |
| } | |
| button:hover { | |
| background-color: #333; | |
| } | |
| /* Таблицы */ | |
| table { | |
| width: 100%; | |
| border-collapse: collapse; | |
| margin-top: 20px; | |
| } | |
| th, td { | |
| padding: 12px; | |
| text-align: left; | |
| border-bottom: 1px solid #000; | |
| } | |
| th { | |
| background-color: #000; | |
| color: #fff; | |
| } | |
| tr:hover { | |
| background-color: #f1f1f1; | |
| } | |
| .actions { | |
| display: flex; | |
| gap: 5px; | |
| } | |
| .add-to-cart-btn, .add-stock-btn, .delete-btn { | |
| padding: 5px 10px; | |
| border: none; | |
| border-radius: 3px; | |
| cursor: pointer; | |
| font-size: 14px; | |
| } | |
| .add-to-cart-btn { | |
| background-color: #000; | |
| color: #fff; | |
| } | |
| .add-to-cart-btn:hover { | |
| background-color: #333; | |
| } | |
| .add-stock-btn { | |
| background-color: #000; | |
| color: #fff; | |
| } | |
| .add-stock-btn:hover { | |
| background-color: #333; | |
| } | |
| .delete-btn { | |
| background-color: #000; | |
| color: #fff; | |
| } | |
| .delete-btn:hover { | |
| background-color: #333; | |
| } | |
| /* Корзина */ | |
| .cart { | |
| background-color: #f9f9f9; | |
| } | |
| #sellCartBtn { | |
| margin-top: 10px; | |
| background-color: #000; | |
| } | |
| #sellCartBtn:hover { | |
| background-color: #333; | |
| } | |
| /* Стили для контейнера скидки */ | |
| .discount-container { | |
| margin-top: 20px; | |
| display: flex; | |
| align-items: center; | |
| gap: 10px; | |
| } | |
| .discount-container label { | |
| font-weight: bold; | |
| color: #000; | |
| } | |
| .discount-container input { | |
| padding: 10px; | |
| font-size: 16px; | |
| border: 1px solid #000; | |
| border-radius: 5px; | |
| background-color: #fff; | |
| color: #000; | |
| width: 100px; | |
| } | |
| /* Отчеты */ | |
| .stats { | |
| background-color: #f9f9f9; | |
| } | |
| .stats-content { | |
| padding: 10px; | |
| background-color: #fff; | |
| border-radius: 5px; | |
| box-shadow: 0 0 5px rgba(0, 0, 0, 0.1); | |
| } | |
| /* Стили для контейнера чеков */ | |
| .receipts-container { | |
| margin-top: 20px; | |
| padding: 10px; | |
| background-color: #fff; | |
| border-radius: 5px; | |
| box-shadow: 0 0 5px rgba(0, 0, 0, 0.1); | |
| } | |
| .receipts-container h3 { | |
| margin-top: 0; | |
| color: #000; | |
| } | |
| #receiptsList { | |
| max-height: 200px; | |
| overflow-y: auto; | |
| border: 1px solid #000; | |
| border-radius: 5px; | |
| padding: 10px; | |
| } | |
| .receipt-item { | |
| padding: 10px; | |
| border-bottom: 1px solid #000; | |
| cursor: pointer; | |
| } | |
| .receipt-item:last-child { | |
| border-bottom: none; | |
| } | |
| .receipt-item:hover { | |
| background-color: #f1f1f1; | |
| } | |
| /* Модальное окно */ | |
| .modal { | |
| display: none; | |
| position: fixed; | |
| z-index: 1000; | |
| left: 0; | |
| top: 0; | |
| width: 100%; | |
| height: 100%; | |
| background-color: rgba(0, 0, 0, 0.5); | |
| justify-content: center; | |
| align-items: center; | |
| } | |
| .modal-content { | |
| background-color: #fff; | |
| padding: 20px; | |
| border-radius: 10px; | |
| width: 400px; | |
| max-width: 90%; | |
| color: #000; | |
| position: relative; | |
| } | |
| .modal-content .close { | |
| position: absolute; | |
| top: 10px; | |
| right: 10px; | |
| font-size: 24px; | |
| cursor: pointer; | |
| color: #000; | |
| } | |
| .modal-content h2 { | |
| margin-top: 0; | |
| } | |
| #receiptTable { | |
| width: 100%; | |
| border-collapse: collapse; | |
| margin: 10px 0; | |
| } | |
| #receiptTable th, #receiptTable td { | |
| padding: 8px; | |
| border-bottom: 1px solid #000; | |
| text-align: left; | |
| } | |
| #receiptTable th { | |
| background-color: #000; | |
| color: #fff; | |
| } | |
| #confirmSaleBtn, #cancelSaleBtn { | |
| padding: 10px; | |
| margin: 5px; | |
| border: none; | |
| border-radius: 5px; | |
| cursor: pointer; | |
| font-size: 16px; | |
| background-color: #000; | |
| color: #fff; | |
| } | |
| #confirmSaleBtn:hover { | |
| background-color: #333; | |
| } | |
| #cancelSaleBtn:hover { | |
| background-color: #333; | |
| } | |
| /* Стили для контейнера фильтрации */ | |
| .filter-container { | |
| margin-bottom: 20px; | |
| display: flex; | |
| gap: 10px; | |
| align-items: center; | |
| } | |
| .filter-container input[type="date"] { | |
| padding: 10px; | |
| font-size: 16px; | |
| border: 1px solid #000; | |
| border-radius: 5px; | |
| background-color: #fff; | |
| color: #000; | |
| } | |
| .filter-container button { | |
| padding: 10px; | |
| font-size: 16px; | |
| background-color: #000; | |
| color: #fff; | |
| border: none; | |
| border-radius: 5px; | |
| cursor: pointer; | |
| } | |
| .filter-container button:hover { | |
| background-color: #333; | |
| } |