* { box-sizing: border-box; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; background: #f4f6f8; color: #20252b; }
.page { width: 96%; max-width: 1800px; margin: 0 auto; padding: 20px 0 40px; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; background: #fff; border: 1px solid #dfe3e7; border-radius: 10px; padding: 18px 22px; margin-bottom: 15px; box-shadow: 0 2px 7px rgba(0,0,0,.05); }
.topbar h1 { margin: 0 0 6px; font-size: 28px; }
.subline { color: #626b74; font-size: 14px; }
.separator { margin: 0 8px; color: #b1b7bd; }
.user-area { display: flex; align-items: center; gap: 10px; color: #5f6870; font-size: 14px; }
.button { display: inline-block; border: 0; border-radius: 6px; padding: 9px 14px; text-decoration: none; cursor: pointer; font-size: 14px; white-space: nowrap; }
.button:disabled { opacity: .45; cursor: not-allowed; }
.button-primary { background: #1d6fd1; color: #fff; }
.button-primary:hover:not(:disabled) { background: #155cab; }
.button-secondary { background: #e9edf1; color: #26313a; }
.button-secondary:hover:not(:disabled) { background: #dce2e7; }
.new-products { background: #fff7d6; border: 1px solid #efd36a; border-radius: 8px; padding: 12px 15px; margin-bottom: 15px; }
.search-box { background: #fff; border: 1px solid #dfe3e7; border-radius: 10px; padding: 15px; margin-bottom: 15px; }
.search-box form { display: flex; gap: 9px; align-items: center; }
.search-box select, .search-box input { height: 40px; border: 1px solid #cdd3d8; border-radius: 6px; padding: 0 11px; font-size: 14px; background: #fff; }
.search-box select { min-width: 160px; }
.search-box input { flex: 1; min-width: 180px; }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid #dfe3e7; border-radius: 10px; box-shadow: 0 2px 7px rgba(0,0,0,.04); }
.product-table { width: 100%; border-collapse: collapse; min-width: 1050px; }
.product-table th { background: #eef1f4; text-align: left; padding: 11px 10px; font-size: 13px; color: #46515a; border-bottom: 1px solid #d6dce1; }
.product-table td { padding: 9px 10px; border-bottom: 1px solid #edf0f2; vertical-align: middle; font-size: 13px; }
.product-row { cursor: pointer; }
.product-row:hover { background: #f7fafc; }
.image-col, .image-cell { width: 90px; }
.image-cell { text-align: center; }
.image-cell img { display: block; width: 65px; height: 65px; object-fit: contain; margin: 0 auto; }
.no-image { color: #9aa2a9; font-size: 11px; }
.empty { text-align: center; padding: 40px !important; color: #707980; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.pager-form { margin: 0; }
.page-info { color: #69737b; font-size: 13px; padding: 0 7px; }
.log-table { min-width: 1200px; }
.log-table td { vertical-align: top; }
.details-cell { max-width: 650px; word-break: break-word; }
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.login-box { width: 100%; max-width: 390px; background: #fff; border: 1px solid #dfe3e7; border-radius: 12px; padding: 30px; box-shadow: 0 5px 25px rgba(0,0,0,.08); }
.login-box h1 { margin: 0 0 5px; text-align: center; }
.login-subtitle { text-align: center; color: #727b82; margin: 0 0 25px; }
.login-box label { display: block; margin: 13px 0 6px; font-size: 14px; font-weight: bold; }
.login-box input { width: 100%; height: 42px; border: 1px solid #cdd3d8; border-radius: 6px; padding: 0 11px; font-size: 15px; }
.login-button { width: 100%; margin-top: 20px; height: 42px; }
.error-box { background: #fde7e7; color: #a52b2b; border: 1px solid #efb6b6; border-radius: 6px; padding: 10px; font-size: 14px; }
@media (max-width: 800px) {
  .topbar { flex-direction: column; align-items: flex-start; }
  .user-area { width: 100%; flex-wrap: wrap; }
  .search-box form { flex-wrap: wrap; }
  .search-box select, .search-box input { width: 100%; }
  .search-box .button { flex: 1; text-align: center; }
}
