* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: #111827;
  background-color: #f9fafb;
  min-height: 100vh;
}
.main-content {
  min-height: calc(100vh - 60px);
  padding: 1.5rem 0;
}
.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 150ms ease-in-out;
  white-space: nowrap;
}
.btn:focus {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.btn-primary {
  background-color: #2563eb;
  color: #ffffff;
}
.btn-primary:hover:not(:disabled) {
  background-color: #1e40af;
}
.btn-secondary {
  background-color: #64748b;
  color: #ffffff;
}
.btn-secondary:hover:not(:disabled) {
  background-color: #475569;
}
.btn-success {
  background-color: #10b981;
  color: #ffffff;
}
.btn-success:hover:not(:disabled) {
  background-color: #0c8a60;
}
.btn-danger {
  background-color: #ef4444;
  color: #ffffff;
}
.btn-danger:hover:not(:disabled) {
  background-color: #eb1515;
}
.btn-sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
}
.btn-lg {
  padding: 1rem 1.5rem;
  font-size: 1.125rem;
}
input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"],
input[type="date"],
textarea,
select {
  padding: 0.5rem 1rem;
  font-size: 1rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #111827;
  background-color: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  transition: all 150ms ease-in-out;
  width: 100%;
}
input[type="text"]:focus,
input[type="number"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="date"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px #dbeafe;
}
input[type="text"]:disabled,
input[type="number"]:disabled,
input[type="email"]:disabled,
input[type="password"]:disabled,
input[type="date"]:disabled,
textarea:disabled,
select:disabled {
  background-color: #f3f4f6;
  color: #6b7280;
  cursor: not-allowed;
}
.text-center {
  text-align: center;
}
.text-left {
  text-align: left;
}
.text-right {
  text-align: right;
}
.mt-sm {
  margin-top: 0.5rem;
}
.mt-md {
  margin-top: 1rem;
}
.mt-lg {
  margin-top: 1.5rem;
}
.mb-sm {
  margin-bottom: 0.5rem;
}
.mb-md {
  margin-bottom: 1rem;
}
.mb-lg {
  margin-bottom: 1.5rem;
}
.module-toolbar {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
.module-toolbar .toolbar-header {
  font-size: 1.125rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #2563eb;
}
.module-toolbar .toolbar-form {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
}
.module-toolbar .toolbar-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
  min-width: 200px;
}
.module-toolbar .toolbar-form .form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
}
.module-toolbar .toolbar-form .form-group label .required {
  color: #ef4444;
  margin-left: 0.25rem;
}
.module-toolbar .toolbar-form .form-group input,
.module-toolbar .toolbar-form .form-group select {
  padding: 0.5rem 1rem;
  font-size: 1rem;
  color: #111827;
  background-color: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  transition: all 150ms ease-in-out;
}
.module-toolbar .toolbar-form .form-group input:focus,
.module-toolbar .toolbar-form .form-group select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px #dbeafe;
}
.module-toolbar .toolbar-form .form-group input::placeholder,
.module-toolbar .toolbar-form .form-group select::placeholder {
  color: #9ca3af;
}
.module-toolbar .toolbar-form .form-group select {
  cursor: pointer;
}
.module-toolbar .toolbar-form .toolbar-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.module-toolbar .toolbar-form .toolbar-actions button {
  padding: 0.5rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 150ms ease-in-out;
  white-space: nowrap;
}
.module-toolbar .toolbar-form .toolbar-actions button:focus {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
.module-toolbar .toolbar-form .toolbar-actions button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.module-toolbar .toolbar-form .toolbar-actions button.btn-add {
  background-color: #2563eb;
  color: #ffffff;
}
.module-toolbar .toolbar-form .toolbar-actions button.btn-add:hover:not(:disabled) {
  background-color: #1e40af;
}
.module-toolbar .toolbar-form .toolbar-actions button.btn-clear {
  background-color: #e5e7eb;
  color: #374151;
}
.module-toolbar .toolbar-form .toolbar-actions button.btn-clear:hover:not(:disabled) {
  background-color: #d1d5db;
}
@media (max-width: 768px) {
  .module-toolbar {
    padding: 1rem;
  }
  .module-toolbar .toolbar-form {
    flex-direction: column;
  }
  .module-toolbar .toolbar-form .form-group {
    width: 100%;
  }
  .module-toolbar .toolbar-form .toolbar-actions {
    width: 100%;
  }
  .module-toolbar .toolbar-form .toolbar-actions button {
    flex: 1;
  }
}
.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #dbeafe 0%, #2563eb 100%);
  padding: 1.5rem;
}
.login-container.project-demo {
  background: linear-gradient(135deg, #555555 0%, #222222 100%);
}
.login-container.project-gastone {
  background: linear-gradient(135deg, #3480cf 0%, #235a94 100%);
}
.login-container.project-italianjob {
  background: linear-gradient(135deg, #c8688a 0%, #a63d62 100%);
}
.login-card {
  background-color: #ffffff;
  border-radius: 0.5rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  padding: 3rem;
  width: 100%;
  max-width: 420px;
}
.login-header {
  text-align: center;
  margin-bottom: 2rem;
}
.login-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.5rem;
}
.login-header p {
  font-size: 1rem;
  color: #4b5563;
}
.login-error {
  background-color: #fde8e8;
  color: #ef4444;
  padding: 1rem;
  border-radius: 0.375rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid #f9b9b9;
}
.login-form .form-group {
  margin-bottom: 1.5rem;
}
.login-form .form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.25rem;
}
.login-form .form-group input {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  color: #111827;
  background-color: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  transition: all 150ms ease-in-out;
}
.login-form .form-group input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px #dbeafe;
}
.login-form .form-group input::placeholder {
  color: #9ca3af;
}
.login-form .btn-block {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  font-weight: 600;
  margin-top: 1rem;
}
@media (max-width: 640px) {
  .login-container {
    padding: 1rem;
  }
  .login-card {
    padding: 1.5rem;
  }
  .login-header h1 {
    font-size: 1.25rem;
  }
}
.header {
  background-color: #ffffff;
  border-bottom: 2px solid #e5e7eb;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1.5rem;
  min-height: 60px;
}
.header.project-demo {
  background-color: #222222;
}
.header.project-gastone {
  background-color: #235a94;
}
.header.project-italianjob {
  background-color: #a63d62;
}
.header.project-demo .nav-button,
.header.project-gastone .nav-button,
.header.project-italianjob .nav-button {
  color: #ffffff;
}
.header.project-demo .nav-button:hover,
.header.project-gastone .nav-button:hover,
.header.project-italianjob .nav-button:hover {
  background-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}
.header.project-demo .logout-button,
.header.project-gastone .logout-button,
.header.project-italianjob .logout-button {
  background-color: rgba(255, 255, 255, 0.2);
}
.header.project-demo .logout-button:hover,
.header.project-gastone .logout-button:hover,
.header.project-italianjob .logout-button:hover {
  background-color: rgba(255, 255, 255, 0.3);
}
.navigation {
  display: flex;
  gap: 0.25rem;
  align-items: center;
  flex-wrap: wrap;
  flex: 1;
}
.navigation .nav-button {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  color: #374151;
  text-decoration: none;
  border-radius: 0.375rem;
  transition: all 150ms ease-in-out;
  position: relative;
  white-space: nowrap;
}
.navigation .nav-button:hover {
  background-color: #dbeafe;
  color: #1e40af;
}
.navigation .nav-button.active {
  background-color: #d1d5db;
  color: #111827;
  font-weight: 600;
}
.navigation .nav-button.active:hover {
  background-color: #9ca3af;
  color: #111827;
}
.navigation .nav-button:focus {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}
.nav-right {
  display: flex;
  align-items: center;
  margin-left: 1.5rem;
}
.nav-right .logout-button {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  color: #ffffff;
  background-color: #64748b;
  text-decoration: none;
  border-radius: 0.375rem;
  transition: all 150ms ease-in-out;
  white-space: nowrap;
}
.nav-right .logout-button:hover {
  background-color: #475569;
}
.nav-right .logout-button:focus {
  outline: 2px solid #64748b;
  outline-offset: 2px;
}
.user-menu {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: 1.5rem;
}
.user-menu #userName {
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
}
.user-menu #logoutBtn {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #ffffff;
  background-color: #64748b;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: background-color 150ms ease-in-out;
}
.user-menu #logoutBtn:hover {
  background-color: #475569;
}
.user-menu #logoutBtn:focus {
  outline: 2px solid #64748b;
  outline-offset: 2px;
}
@media (max-width: 768px) {
  .header {
    flex-direction: column;
    padding: 0.5rem 1rem;
    gap: 0.5rem;
  }
  .navigation {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
  }
  .navigation .nav-button {
    font-size: 0.875rem;
    padding: 0.5rem;
  }
  .nav-right {
    width: 100%;
    margin-left: 0;
    justify-content: center;
  }
  .nav-right .logout-button {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
  }
  .user-menu {
    width: 100%;
    margin-left: 0;
    justify-content: space-between;
  }
}
.settings-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
}
.settings-container h1 {
  font-size: 1.875rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 2rem;
}
.settings-list {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}
.setting-item {
  display: grid;
  grid-template-columns: 200px 1fr 120px 100px;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #f3f4f6;
  transition: background-color 150ms ease-in-out;
}
.setting-item:last-child {
  border-bottom: none;
}
.setting-item:hover {
  background-color: #f9fafb;
}
.setting-item.editing {
  background-color: #dbeafe;
}
.setting-name {
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
  font-family: "Courier New", Courier, monospace;
  word-break: break-word;
}
.setting-value {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.setting-value input {
  flex: 1;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: #374151;
  background-color: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  transition: all 150ms ease-in-out;
  font-family: "Courier New", Courier, monospace;
}
.setting-value input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px #dbeafe;
}
.setting-value input:disabled {
  background-color: #f3f4f6;
  color: #6b7280;
  cursor: not-allowed;
}
.setting-value .value-display {
  font-size: 0.875rem;
  color: #374151;
  font-family: "Courier New", Courier, monospace;
  padding: 0.5rem 1rem;
}
.setting-type {
  display: flex;
  align-items: center;
  justify-content: center;
}
.setting-type .type-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  border-radius: 0.25rem;
  letter-spacing: 0.5px;
}
.setting-type .type-badge.type-string {
  background-color: #cffafe;
  color: #036171;
}
.setting-type .type-badge.type-number {
  background-color: #d1fae5;
  color: #085b40;
}
.setting-type .type-badge.type-boolean {
  background-color: #fef3c7;
  color: #945f06;
}
.setting-type .type-badge.type-json {
  background-color: #dbeafe;
  color: #1e40af;
}
.setting-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}
.setting-actions button {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 150ms ease-in-out;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.setting-actions button:focus {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
.setting-actions button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.setting-actions .btn-save {
  background-color: #10b981;
  color: #ffffff;
}
.setting-actions .btn-save:hover:not(:disabled) {
  background-color: #0c8a60;
}
.setting-actions .btn-delete {
  background-color: #ef4444;
  color: #ffffff;
}
.setting-actions .btn-delete:hover:not(:disabled) {
  background-color: #eb1515;
}
.settings-loading {
  text-align: center;
  padding: 4rem 1.5rem;
  color: #6b7280;
  font-size: 1.125rem;
}
.settings-empty {
  text-align: center;
  padding: 4rem 1.5rem;
  color: #6b7280;
  font-size: 1.125rem;
}
.settings-error {
  background-color: #fee2e2;
  color: #bd1010;
  padding: 1rem 1.5rem;
  border-radius: 0.375rem;
  margin-bottom: 1.5rem;
  border-left: 4px solid #ef4444;
}
.settings-success {
  background-color: #d1fae5;
  color: #085b40;
  padding: 1rem 1.5rem;
  border-radius: 0.375rem;
  margin-bottom: 1.5rem;
  border-left: 4px solid #10b981;
}
@media (max-width: 1024px) {
  .setting-item {
    grid-template-columns: 180px 1fr 100px 80px;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
  }
  .setting-name {
    font-size: 0.875rem;
  }
  .setting-value input {
    font-size: 0.75rem;
  }
  .setting-actions button {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
  }
}
@media (max-width: 768px) {
  .settings-container {
    padding: 1.5rem 1rem;
  }
  .setting-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 1rem;
  }
  .setting-name {
    font-size: 1rem;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid #e5e7eb;
  }
  .setting-type {
    justify-content: flex-start;
  }
  .setting-actions {
    justify-content: flex-start;
  }
}
.data-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
}
.data-container h1 {
  font-size: 1.875rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 2rem;
}
.data-submenu {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}
.button-group-left,
.button-group-right {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.btn-action {
  padding: 1rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 150ms ease-in-out;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 140px;
  justify-content: center;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
.btn-action:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
.btn-action:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
.btn-action:focus {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
.btn-action:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
.btn-action.btn-primary {
  background-color: #2563eb;
  color: #ffffff;
}
.btn-action.btn-primary:hover:not(:disabled) {
  background-color: #1e40af;
}
.btn-action.btn-secondary {
  background-color: #64748b;
  color: #ffffff;
}
.btn-action.btn-secondary:hover:not(:disabled) {
  background-color: #4f5b6d;
}
.btn-action.btn-danger {
  background-color: #ef4444;
  color: #ffffff;
}
.btn-action.btn-danger:hover:not(:disabled) {
  background-color: #eb1515;
}
.data-message {
  padding: 1rem 1.5rem;
  border-radius: 0.375rem;
  margin-bottom: 1.5rem;
  border-left: 4px solid;
  font-size: 1rem;
  font-weight: 500;
}
.data-success {
  background-color: #d1fae5;
  color: #085b40;
  border-left-color: #10b981;
}
.data-error {
  background-color: #fee2e2;
  color: #bd1010;
  border-left-color: #ef4444;
}
.data-info {
  background-color: #cffafe;
  color: #036171;
  border-left-color: #06b6d4;
}
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
.modal-content {
  background-color: #ffffff;
  border-radius: 0.5rem;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  animation: modalFadeIn 0.2s ease-out;
}
.modal-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.modal-content p {
  font-size: 1rem;
  color: #374151;
  line-height: 1.6;
  margin-bottom: 1rem;
}
.modal-content p:last-of-type {
  margin-bottom: 2rem;
}
.modal-content p strong {
  color: #ef4444;
  font-weight: 700;
}
.modal-buttons {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}
.modal-buttons .btn-action {
  min-width: 100px;
}
@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
@media (max-width: 768px) {
  .data-container {
    padding: 1.5rem 1rem;
  }
  .data-container h1 {
    font-size: 1.5rem;
  }
  .data-submenu {
    flex-direction: column;
    padding: 1.5rem 1rem;
  }
  .button-group-left,
  .button-group-right {
    width: 100%;
    justify-content: center;
  }
  .btn-action {
    width: 100%;
    min-width: unset;
  }
  .modal-content {
    padding: 1.5rem;
  }
  .modal-content h2 {
    font-size: 1.25rem;
  }
}
.stats-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
}
.stats-filters {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  padding: 2rem;
  margin-bottom: 2rem;
}
.filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}
.filter-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin: 0;
}
.filter-row-single {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: flex-end;
}
.filter-group {
  flex: 1;
  min-width: 200px;
}
.filter-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.25rem;
}
.filter-button-wrapper {
  display: flex;
  align-items: flex-end;
  margin-left: auto;
}
.filter-button-wrapper button {
  white-space: nowrap;
}
.filter-input {
  width: 100%;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  transition: all 150ms ease-in-out;
}
.filter-input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.filter-input:disabled {
  background-color: #f3f4f6;
  cursor: not-allowed;
}
.filter-actions {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}
#messageArea {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  min-width: 300px;
  max-width: 400px;
}
.stats-message {
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  border-left: 4px solid;
  font-size: 1rem;
  font-weight: 500;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  animation: slideInRight 0.3s ease-out;
}
@keyframes slideInRight {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
.stats-success {
  background-color: #d1fae5;
  color: #085b40;
  border-left-color: #10b981;
}
.stats-error {
  background-color: #fee2e2;
  color: #bd1010;
  border-left-color: #ef4444;
}
.stats-info {
  background-color: #cffafe;
  color: #036171;
  border-left-color: #06b6d4;
}
.stat-box-bar {
  background: linear-gradient(135deg, #2563eb 0%, #134cca 100%);
  color: #ffffff;
  border: none;
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  padding: 2rem;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}
.stat-box-bar .stat-box-left {
  flex: 0 0 auto;
}
.stat-box-bar .stat-box-left .stat-box-value {
  font-size: 1.875rem;
  font-weight: 700;
  color: #ffffff;
}
.stat-box-bar .stat-box-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-end;
}
.stat-box-bar .stat-box-right .stat-box-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
}
.stat-box-bar .stat-box-right .stat-box-item .stat-label {
  color: #ffffff;
  font-weight: 500;
}
.stat-box-bar .stat-box-right .stat-box-item .stat-amount {
  color: #ffffff;
  font-weight: 700;
  font-size: 1.125rem;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.stat-box {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  padding: 1.5rem;
  transition: all 150ms ease-in-out;
}
.stat-box:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
}
.stat-box h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e5e7eb;
}
.stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  margin-bottom: 0.5rem;
  background-color: #f9fafb;
  border-radius: 0.375rem;
  transition: all 150ms ease-in-out;
}
.stat-item:hover {
  background-color: #f3f4f6;
}
.stat-item.stat-highlight {
  background: linear-gradient(135deg, #2563eb 0%, #134cca 100%);
  color: #ffffff;
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
.stat-item.stat-highlight .stat-label {
  color: #ffffff;
  font-size: 1.125rem;
}
.stat-item.stat-void {
  background-color: rgba(239, 68, 68, 0.1);
  border-left: 3px solid #ef4444;
}
.stat-item.stat-void:hover {
  background-color: rgba(239, 68, 68, 0.15);
}
.stat-label {
  font-size: 1rem;
  font-weight: 500;
  color: #374151;
}
.stat-value {
  font-size: 1.125rem;
  font-weight: 700;
  color: #111827;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.stat-value.stat-large {
  font-size: 1.875rem;
  color: #ffffff;
}
.stat-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  background-color: #2563eb;
  color: #ffffff;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  min-width: 45px;
  text-align: center;
}
.count-badge {
  display: inline-block;
  padding: 2px 8px;
  background-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  min-width: 30px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.stat-item .count-badge {
  background-color: #d1d5db;
  color: #1f2937;
  border: 1px solid #9ca3af;
}
@media (max-width: 768px) {
  .stats-container {
    padding: 1.5rem 1rem;
  }
  .stats-filters {
    padding: 1.5rem;
  }
  .filter-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .filter-header h2 {
    font-size: 1.25rem;
  }
  .filter-header button {
    width: 100%;
  }
  .filter-row-single {
    flex-direction: column;
    gap: 1rem;
  }
  .filter-group {
    min-width: 100%;
  }
  .filter-button-wrapper {
    width: 100%;
    margin-left: 0;
  }
  .filter-button-wrapper button {
    width: 100%;
  }
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .stat-box h3 {
    font-size: 1rem;
  }
  .stat-box-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
  }
  .stat-box-bar .stat-box-left .stat-box-value {
    font-size: 1.5rem;
    text-align: center;
  }
  .stat-box-bar .stat-box-right {
    align-items: stretch;
  }
  .stat-box-bar .stat-box-right .stat-box-item {
    flex-wrap: wrap;
    justify-content: space-between;
    font-size: 0.875rem;
  }
  .stat-box-bar .stat-box-right .stat-box-item .stat-amount {
    font-size: 1rem;
  }
  .stat-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .stat-item .stat-value {
    align-self: flex-end;
  }
}
.daily-income-container {
  margin-bottom: 1.5rem;
}
.daily-income-month {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.375rem;
  margin-bottom: 0.5rem;
  overflow: hidden;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  transition: box-shadow 150ms ease-in-out;
}
.daily-income-month:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
.daily-income-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #2563eb 0%, #1350d4 100%);
  color: #ffffff;
  cursor: pointer;
  user-select: none;
  transition: background 150ms ease-in-out;
}
.daily-income-header:hover {
  background: linear-gradient(135deg, #1555e2 0%, #1147bc 100%);
}
.daily-income-header.expanded {
  border-bottom: 1px solid #e5e7eb;
}
.daily-income-header .expand-icon {
  font-size: 0.75rem;
  font-weight: 700;
  transition: transform 150ms ease-in-out;
  min-width: 12px;
}
.daily-income-header .month-label {
  font-size: 1rem;
  font-weight: 600;
  flex: 1;
}
.daily-income-header .month-total-label {
  font-size: 0.875rem;
  font-weight: 700;
  background-color: rgba(255, 255, 255, 0.2);
  padding: 2px 0.5rem;
  border-radius: 9999px;
}
.daily-income-content {
  background-color: #f9fafb;
}
.daily-income-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 4px;
  padding: 6px;
}
.day-card {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.25rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: all 150ms ease-in-out;
  font-size: 0.75rem;
  line-height: 1.4;
  overflow: hidden;
}
.day-card:hover {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
  transform: translateY(-1px);
}
.day-card .day-number {
  font-weight: 700;
  color: #374151;
  font-size: 14px;
  background-color: #e5e7eb;
  padding: 4px 8px;
  text-align: center;
  width: 100%;
}
.day-card .day-total {
  font-weight: 700;
  color: #111827;
  font-size: 1rem;
  padding: 6px 10px 4px;
  text-align: center;
  width: 100%;
}
.day-card .day-breakdown {
  color: #374151;
  font-size: 13px;
  padding: 0 10px;
  text-align: left;
  word-break: break-word;
}
.day-card .day-payments {
  color: #4b5563;
  font-size: 13px;
  padding: 0 10px 8px;
  text-align: left;
  word-break: break-word;
}
@media (max-width: 768px) {
  .daily-income-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 4px;
    padding: 6px;
  }
  .day-card .day-number {
    font-size: 10px;
    padding: 3px 6px;
  }
  .day-card .day-total {
    font-size: 0.875rem;
    padding: 4px 8px 3px;
  }
  .day-card .day-breakdown {
    color: #374151;
    font-size: 12px;
    padding: 0 10px;
    word-break: break-word;
  }
  .day-card .day-payments {
    color: #4b5563;
    font-size: 11px;
    padding: 0 10px 8px;
    word-break: break-word;
  }
  .day-card .month-total-label {
    font-size: 0.75rem;
    padding: 2px 6px;
  }
}
@media (max-width: 640px) {
  .daily-income-grid {
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
  }
}
.monthly-graphs-container {
  margin-top: 2rem;
}
.no-data-message {
  text-align: center;
  padding: 2rem;
  color: #6b7280;
  font-size: 1.125rem;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
}
.month-graph-wrapper {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  padding: 1.5rem;
  margin-bottom: 2rem;
}
.month-graph-wrapper:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
.month-graph-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #2563eb;
}
.month-graph-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  margin: 0;
}
.month-graph-header .month-total {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2563eb;
}
.graph-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background-color: #f9fafb;
  border-radius: 0.375rem;
}
.legend-item {
  display: flex;
  align-items: center;
}
.legend-item input[type="checkbox"] {
  width: auto;
  margin: 0;
  cursor: pointer;
  accent-color: #2563eb;
}
.legend-item label {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: 0.25rem;
  cursor: pointer;
  user-select: none;
  font-size: 0.875rem;
  transition: all 150ms ease-in-out;
}
.legend-item label:hover {
  opacity: 0.8;
}
.legend-item .legend-color {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 0.25rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
}
.legend-item .legend-label {
  font-weight: 500;
  color: #374151;
}
.legend-item .legend-value {
  font-weight: 700;
  color: #111827;
  background-color: #ffffff;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
}
.graph-canvas-wrapper {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 1rem 0;
  border-radius: 0.375rem;
  background-color: #ffffff;
}
.graph-canvas-wrapper::-webkit-scrollbar {
  height: 8px;
}
.graph-canvas-wrapper::-webkit-scrollbar-track {
  background: #f3f4f6;
  border-radius: 0.25rem;
}
.graph-canvas-wrapper::-webkit-scrollbar-thumb {
  background: #9ca3af;
  border-radius: 0.25rem;
}
.graph-canvas-wrapper::-webkit-scrollbar-thumb:hover {
  background: #6b7280;
}
.month-graph-canvas {
  display: block;
  cursor: crosshair;
}
.graph-tooltip {
  position: fixed;
  display: none;
  background-color: rgba(0, 0, 0, 0.9);
  color: #ffffff;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  pointer-events: none;
  z-index: 1100;
  max-width: 250px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
.graph-tooltip .tooltip-date {
  font-weight: 700;
  font-size: 1rem;
  padding-bottom: 0.25rem;
  margin-bottom: 0.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.graph-tooltip .tooltip-item {
  padding: 0.25rem 0;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.75;
}
.graph-tooltip .tooltip-total {
  font-weight: 700;
  font-size: 1rem;
  padding-top: 0.25rem;
  margin-top: 0.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
}
@media (max-width: 768px) {
  .month-graph-wrapper {
    padding: 1rem;
  }
  .month-graph-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .month-graph-header h3 {
    font-size: 1.125rem;
  }
  .month-graph-header .month-total {
    font-size: 1.25rem;
  }
  .graph-legend {
    flex-direction: column;
    gap: 0.5rem;
  }
  .legend-item {
    width: 100%;
  }
  .legend-item label {
    flex: 1;
    justify-content: space-between;
  }
  .graph-tooltip {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    max-width: 200px;
  }
  .graph-tooltip .tooltip-date {
    font-size: 0.875rem;
  }
  .graph-tooltip .tooltip-total {
    font-size: 0.875rem;
  }
}
.bill-details-modal .modal-content {
  max-width: 1100px;
  width: 90%;
}
.bill-details-content {
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}
.bill-details-content .modal-header {
  padding: 0.5rem;
  border-bottom: none;
  justify-content: flex-end;
}
.bill-details-body {
  overflow-y: auto;
  flex: 1;
  padding: 1rem;
}
.bill-details-header {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, #ffffff 100%);
  border: 1px solid rgba(37, 99, 235, 0.3);
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 1rem;
  display: flex;
  gap: 1rem;
}
.bill-info-left {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.5rem;
}
.bill-info-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-left: 2px solid rgba(37, 99, 235, 0.3);
  min-width: 180px;
}
.bill-info-total-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #2563eb;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.bill-info-total-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: #2563eb;
  font-family: "Courier New", Courier, monospace;
}
.bill-info-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.bill-info-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #4b5563;
  text-transform: uppercase;
}
.bill-info-value {
  font-size: 1rem;
  font-weight: 500;
  color: #111827;
}
.bill-info-total {
  grid-column: span 2;
}
.bill-info-total .bill-info-label {
  font-size: 0.875rem;
  color: #2563eb;
}
.bill-info-total .bill-info-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2563eb;
  font-family: "Courier New", Courier, monospace;
}
.bill-void-indicator {
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background-color: #fee2e2;
  color: #ef4444;
  border: 2px solid #ef4444;
  border-radius: 0.375rem;
  font-weight: 700;
  text-align: center;
  font-size: 0.875rem;
}
.bill-details-items {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 1.5rem;
}
.bill-details-section-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #374151;
  text-transform: uppercase;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #d1d5db;
}
.bill-details-item {
  display: grid;
  grid-template-columns: auto 1fr auto auto auto;
  gap: 1rem;
  align-items: center;
  padding: 0.5rem 1rem;
  margin-bottom: 0.25rem;
  border-radius: 0.375rem;
  transition: all 150ms ease-in-out;
  background-color: #f9fafb;
}
.bill-details-item:hover {
  background-color: #f3f4f6;
  transform: translateX(4px);
}
.bill-item-icon {
  font-size: 1.125rem;
  width: 24px;
  text-align: center;
}
.bill-item-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: #111827;
}
.bill-item-quantity {
  font-size: 0.875rem;
  font-weight: 600;
  color: #4b5563;
  min-width: 40px;
  text-align: right;
  font-family: "Courier New", Courier, monospace;
}
.bill-item-price {
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  min-width: 70px;
  text-align: right;
  font-family: "Courier New", Courier, monospace;
}
.bill-item-subtotal {
  font-size: 0.875rem;
  font-weight: 700;
  color: #111827;
  min-width: 80px;
  text-align: right;
  font-family: "Courier New", Courier, monospace;
}
.bill-item-food {
  background-color: rgba(16, 185, 129, 0.08);
  border-left: 3px solid #10b981;
}
.bill-item-drink {
  background-color: rgba(6, 182, 212, 0.08);
  border-left: 3px solid #06b6d4;
}
.bill-item-discount {
  background-color: rgba(245, 158, 11, 0.1);
  border-left: 3px solid #f59e0b;
}
.bill-item-discount .bill-item-name {
  color: #945f06;
}
.bill-item-discount .bill-item-subtotal {
  color: #f59e0b;
}
.bill-item-tip {
  background-color: rgba(37, 99, 235, 0.08);
  border-left: 3px solid #2563eb;
}
.bill-item-tip .bill-item-name {
  color: #2563eb;
}
.bill-item-tip .bill-item-subtotal {
  color: #2563eb;
}
.bill-details-empty {
  text-align: center;
  padding: 2rem;
  color: #6b7280;
  font-style: italic;
}
.bill-details-total-separator {
  height: 2px;
  background-color: #d1d5db;
  margin: 1rem 0;
}
.bill-details-total {
  display: grid;
  grid-template-columns: auto 1fr auto auto auto;
  gap: 1rem;
  align-items: center;
  padding: 0.5rem 1rem;
  margin-bottom: 0.25rem;
  background-color: transparent;
}
.bill-details-total .bill-item-name {
  color: #2563eb;
  font-weight: 700;
  text-transform: uppercase;
}
.bill-details-total .bill-item-subtotal {
  color: #2563eb;
  font-weight: 700;
}
@media (max-width: 768px) {
  .bill-details-modal .modal-content {
    width: 95%;
    max-height: 95vh;
  }
  .bill-info-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .bill-info-total {
    grid-column: span 1;
  }
  .bill-details-item {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: 0.25rem 0.5rem;
  }
  .bill-item-icon {
    grid-row: span 2;
    align-self: start;
  }
  .bill-item-name {
    grid-column: 2;
  }
  .bill-item-quantity,
  .bill-item-price,
  .bill-item-subtotal {
    grid-column: 2;
    text-align: left;
    font-size: 0.75rem;
  }
  .bill-item-quantity::before {
    content: "Qty: ";
    font-weight: 400;
  }
  .bill-item-price::before {
    content: "Price: ";
    font-weight: 400;
  }
  .bill-item-subtotal::before {
    content: "Subtotal: ";
    font-weight: 400;
  }
}
@media (max-width: 640px) {
  .bill-details-header {
    padding: 1rem;
  }
  .bill-details-items {
    padding: 1rem;
  }
  .bill-details-section-title {
    font-size: 0.75rem;
  }
}
.btn-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 150ms ease-in-out;
  white-space: nowrap;
}
.btn-action:focus {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
.btn-action:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.btn-action.btn-primary {
  background-color: #2563eb;
  color: #ffffff;
}
.btn-action.btn-primary:hover:not(:disabled) {
  background-color: #1e40af;
}
.btn-action.btn-secondary {
  background-color: #64748b;
  color: #ffffff;
}
.btn-action.btn-secondary:hover:not(:disabled) {
  background-color: #475569;
}
.payments-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
}
.payments-filters {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.filter-row-single {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: flex-end;
}
.filter-group {
  flex: 1;
  min-width: 140px;
}
.filter-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 4px;
}
.filter-button-wrapper {
  display: flex;
  align-items: flex-end;
}
.filter-button-wrapper button {
  white-space: nowrap;
}
.filter-input {
  width: 100%;
  padding: 6px 8px;
  font-size: 0.875rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  transition: all 150ms ease-in-out;
}
.filter-input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}
.filter-input:disabled {
  background-color: #f3f4f6;
  cursor: not-allowed;
}
.payments-stats-box {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  padding: 1rem;
  margin-bottom: 1.5rem;
}
.payments-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}
.payments-stats-col {
  display: flex;
  flex-direction: column;
}
.payments-stat-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.payments-stat-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: #4b5563;
  text-transform: uppercase;
  margin-bottom: 4px;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 2px;
}
.payments-stat-main {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2563eb;
  font-family: monospace;
}
.payments-stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  padding: 2px 0;
  gap: 0.25rem;
}
.payments-stat-label {
  color: #374151;
  font-weight: 500;
  white-space: nowrap;
}
.payments-stat-value {
  color: #111827;
  font-weight: 700;
  font-family: monospace;
  text-align: right;
}
#messageArea {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  min-width: 300px;
  max-width: 400px;
}
.payments-message {
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  border-left: 4px solid;
  font-size: 1rem;
  font-weight: 500;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  animation: slideInRight 0.3s ease-out;
}
.payments-success {
  background-color: #d1fae5;
  color: #085b40;
  border-left-color: #10b981;
}
.payments-error {
  background-color: #fee2e2;
  color: #bd1010;
  border-left-color: #ef4444;
}
.payments-info {
  background-color: #cffafe;
  color: #036171;
  border-left-color: #06b6d4;
}
.payments-table-wrapper {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  overflow-x: auto;
  margin-top: 2rem;
}
.payments-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.payments-table thead {
  background: linear-gradient(135deg, #2563eb 0%, #134cca 100%);
  color: #ffffff;
}
.payments-table thead th {
  padding: 1rem 0.5rem;
  text-align: left;
  font-weight: 700;
  font-size: 0.875rem;
  white-space: nowrap;
  border-bottom: 2px solid #1043b3;
}
.payments-table thead th:first-child {
  padding-left: 1.5rem;
  border-top-left-radius: 0.5rem;
}
.payments-table thead th:last-child {
  padding-right: 1.5rem;
  border-top-right-radius: 0.5rem;
}
.payments-table tbody tr {
  transition: all 150ms ease-in-out;
  border-bottom: 1px solid #e5e7eb;
}
.payments-table tbody tr:hover {
  background-color: rgba(37, 99, 235, 0.03);
  transform: scale(1.002);
}
.payments-table tbody tr:last-child {
  border-bottom: none;
}
.payments-table tbody tr td {
  padding: 1rem 0.5rem;
  vertical-align: middle;
  border-right: 1px solid #e5e7eb;
}
.payments-table tbody tr td:first-child {
  padding-left: 1.5rem;
}
.payments-table tbody tr td:last-child {
  padding-right: 1.5rem;
  border-right: none;
}
.payment-row-check {
  background-color: rgba(16, 185, 129, 0.12);
}
.payment-row-check:hover {
  background-color: rgba(16, 185, 129, 0.18) !important;
}
.payment-row-precheck {
  background-color: rgba(245, 158, 11, 0.12);
}
.payment-row-precheck:hover {
  background-color: rgba(245, 158, 11, 0.18) !important;
}
.payment-row-void {
  background-color: rgba(239, 68, 68, 0.15);
  border-left: 4px solid #ef4444;
}
.payment-row-void:hover {
  background-color: rgba(239, 68, 68, 0.22) !important;
}
.bill-type-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  text-align: center;
  min-width: 55px;
}
.bill-type-check {
  background-color: #10b981;
}
.bill-type-precheck {
  background-color: #f59e0b;
}
.payment-mode-cell {
  cursor: pointer;
  transition: all 150ms ease-in-out;
}
.payment-mode-cell:hover {
  transform: scale(1.05);
}
.payment-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
  transition: all 150ms ease-in-out;
  white-space: nowrap;
}
.payment-badge:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
.payment-badge-cash {
  background-color: #10b981;
}
.payment-badge-digital {
  background-color: #06b6d4;
}
.payment-badge-grab {
  background-color: #00b14f;
}
.payment-badge-panda {
  background-color: #d4237a;
}
.payment-badge-gateway {
  background-color: #2563eb;
}
.void-badge {
  display: inline-block;
  padding: 4px 10px;
  background-color: #ef4444;
  color: #ffffff;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}
.discount-badge {
  display: inline-block;
  padding: 4px 10px;
  background-color: #f59e0b;
  color: #ffffff;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: monospace;
}
.tip-badge {
  display: inline-block;
  padding: 4px 10px;
  background-color: #06b6d4;
  color: #ffffff;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: monospace;
}
.date-time-cell {
  display: flex;
  align-items: center;
  white-space: nowrap;
}
.date-part {
  display: inline-block;
  min-width: 85px;
  font-weight: 500;
  color: #111827;
}
.time-badge {
  display: inline-block;
  padding: 2px 8px;
  background-color: #d1d5db;
  color: #374151;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 500;
  min-width: 45px;
  text-align: center;
  font-family: monospace;
}
.amount-cell {
  font-weight: 700;
  color: #111827;
  text-align: right;
  font-family: monospace;
}
.btn-view {
  background-color: #06b6d4;
  color: #ffffff;
  border: none;
  border-radius: 0.375rem;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 0.875rem;
  transition: all 150ms ease-in-out;
  margin-right: 0.25rem;
}
.btn-view:hover {
  background-color: #058ba2;
  transform: scale(1.1);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
.btn-view:active {
  transform: scale(0.95);
}
.btn-delete {
  background-color: #ef4444;
  color: #ffffff;
  border: none;
  border-radius: 0.375rem;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 0.875rem;
  transition: all 150ms ease-in-out;
}
.btn-delete:hover {
  background-color: #eb1515;
  transform: scale(1.1);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
.btn-delete:active {
  transform: scale(0.95);
}
.payments-empty {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  padding: 2rem;
  text-align: center;
  margin-top: 2rem;
}
.payments-empty p {
  font-size: 1.125rem;
  color: #4b5563;
  margin: 0;
}
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.2s ease-out;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.modal-content {
  background-color: #ffffff;
  border-radius: 0.5rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease-out;
}
@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid #e5e7eb;
}
.modal-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
}
.modal-close {
  background: none;
  border: none;
  font-size: 1.875rem;
  color: #6b7280;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
  transition: all 150ms ease-in-out;
}
.modal-close:hover {
  background-color: #f3f4f6;
  color: #111827;
}
.modal-body {
  padding: 2rem;
}
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  padding: 1.5rem 2rem;
  border-top: 1px solid #e5e7eb;
}
.payment-mode-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.payment-mode-option {
  display: flex;
  align-items: center;
  padding: 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 150ms ease-in-out;
}
.payment-mode-option:hover {
  border-color: #2563eb;
  background-color: rgba(37, 99, 235, 0.05);
}
.payment-mode-option input[type="radio"] {
  margin-right: 1rem;
  cursor: pointer;
  width: 18px;
  height: 18px;
}
.payment-mode-option input[type="radio"]:checked + span {
  font-weight: 700;
  color: #2563eb;
}
.payment-mode-option span {
  font-size: 1rem;
  color: #374151;
  transition: all 150ms ease-in-out;
}
.payment-mode-option:has(input[type="radio"]:checked) {
  border-color: #2563eb;
  background-color: rgba(37, 99, 235, 0.1);
}
@media (max-width: 768px) {
  .payments-container {
    padding: 1.5rem 1rem;
  }
  .payments-filters {
    padding: 1.5rem;
  }
  .payments-table {
    font-size: 0.75rem;
  }
  .payments-table thead th,
  .payments-table tbody td {
    padding: 0.5rem 0.25rem;
  }
  .payment-badge {
    font-size: 10px;
    padding: 3px 8px;
  }
  .modal-content {
    width: 95%;
    max-height: 95vh;
  }
  .modal-header,
  .modal-body,
  .modal-footer {
    padding: 1rem;
  }
}
.products-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 20px;
  height: calc(100vh - 60px - 40px);
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.products-left-column {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  position: relative;
  max-width: 100%;
}
.products-right-column {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}
.column-header {
  padding: 20px;
  border-bottom: 2px solid #e0e0e0;
  background: #f5f5f5;
}
.column-header h2 {
  margin: 0 0 10px 0;
  font-size: 1.5rem;
  color: #333;
}
.column-controls {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  align-items: center;
  max-width: 100%;
  overflow: hidden;
}
.search-input {
  width: 100%;
  max-width: 300px;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}
.search-input:focus {
  outline: none;
  border-color: #4caf50;
}
.filter-select {
  width: auto;
  max-width: 200px;
  min-width: 150px;
  margin-left: auto;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  background: white;
  cursor: pointer;
}
.filter-select:focus {
  outline: none;
  border-color: #4caf50;
}
.items-list {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 10px;
  max-width: 100%;
}
.item-group {
  margin-bottom: 20px;
}
.item-group-header {
  font-weight: bold;
  font-size: 1.1rem;
  color: #555;
  padding: 10px;
  background: #f0f0f0;
  border-left: 4px solid #4caf50;
  margin-bottom: 10px;
  border-radius: 4px;
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s;
}
.item-group-header:hover {
  background: #e8e8e8;
}
.item-group-header .toggle-icon {
  font-size: 0.8rem;
  transition: transform 0.2s;
}
.item-group-header.collapsed .toggle-icon {
  transform: rotate(-90deg);
}
.item-group-items {
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-height: 2000px;
  overflow: hidden;
  transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
  opacity: 1;
}
.item-group-items.collapsed {
  max-height: 0;
  opacity: 0;
}
.item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  background: #fafafa;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  transition: all 0.2s;
  max-width: 100%;
  min-width: 0;
}
.item-row:hover {
  background: #f0f0f0;
}
.item-row.item-linked {
  background: #e8f5e9;
  border-color: #4caf50;
}
.item-label {
  flex: 1;
  font-size: 14px;
  color: #333;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.item-dropdown {
  width: 30%;
  max-width: 200px;
  min-width: 100px;
  padding: 6px 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 13px;
  background: white;
  cursor: pointer;
  flex-shrink: 0;
}
.item-dropdown:focus {
  outline: none;
  border-color: #4caf50;
}
.category-management-box {
  padding: 20px;
  border-bottom: 2px solid #e0e0e0;
}
.category-mgmt-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}
.category-mgmt-header h3 {
  margin: 0;
  font-size: 1.2rem;
  color: #333;
}
.categories-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 200px;
  overflow-y: auto;
}
.category-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  transition: background 0.2s;
}
.category-item:hover {
  background: #f0f0f0;
}
.category-color-badge {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #ccc;
  flex-shrink: 0;
}
.category-name {
  flex: 1;
  font-size: 14px;
  color: #333;
  font-weight: 500;
}
.category-actions {
  display: flex;
  gap: 5px;
}
.products-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 20px;
  overflow: hidden;
}
.products-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}
.products-header h3 {
  margin: 0;
  font-size: 1.2rem;
  color: #333;
}
.products-controls {
  display: flex;
  gap: 10px;
  align-items: center;
}
.products-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.product-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: #fafafa;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  transition: all 0.2s;
}
.product-item:hover {
  background: #f0f0f0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.product-info {
  flex: 1;
}
.product-name {
  font-size: 15px;
  font-weight: 500;
  color: #333;
  margin-bottom: 5px;
}
.product-meta {
  display: flex;
  gap: 10px;
  align-items: center;
}
.category-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.linked-count {
  font-size: 12px;
  color: #666;
}
.product-actions {
  display: flex;
  gap: 5px;
}
.btn-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 150ms ease-in-out;
  white-space: nowrap;
}
.btn-action:focus {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
.btn-action:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.btn-action.btn-primary {
  background-color: #2563eb;
  color: #ffffff;
}
.btn-action.btn-primary:hover:not(:disabled) {
  background-color: #1e40af;
}
.btn-action.btn-secondary {
  background-color: #64748b;
  color: #ffffff;
}
.btn-action.btn-secondary:hover:not(:disabled) {
  background-color: #475569;
}
.btn-add {
  padding: 8px 16px;
  background: #4caf50;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-add:hover {
  background: #45a049;
}
.btn-add:active {
  transform: translateY(1px);
}
.btn-icon {
  padding: 6px 10px;
  background: transparent;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-icon:hover {
  background: #f0f0f0;
  border-color: #999;
}
.btn-icon.btn-edit:hover {
  background: #e3f2fd;
  border-color: #2196f3;
}
.btn-icon.btn-delete:hover {
  background: #ffebee;
  border-color: #f44336;
}
.modal-small {
  max-width: 500px;
}
.form-group {
  margin-bottom: 15px;
}
.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: #555;
  font-size: 14px;
}
.form-input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  box-sizing: border-box;
}
.form-input:focus {
  outline: none;
  border-color: #4caf50;
}
.form-input-color {
  width: 100%;
  height: 50px;
  padding: 5px;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
}
.form-input-color:focus {
  outline: none;
  border-color: #4caf50;
}
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1050;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.2s ease-out;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.modal-content {
  background-color: #ffffff;
  border-radius: 0.5rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease-out;
}
@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid #e5e7eb;
}
.modal-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
}
.modal-close {
  background: none;
  border: none;
  font-size: 1.875rem;
  color: #6b7280;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
  transition: all 150ms ease-in-out;
}
.modal-close:hover {
  background-color: #f3f4f6;
  color: #111827;
}
.modal-body {
  padding: 2rem;
}
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  padding: 1.5rem 2rem;
  border-top: 1px solid #e5e7eb;
}
.message-area {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 1100;
  pointer-events: none;
}
.message {
  padding: 15px 20px;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  font-size: 14px;
  min-width: 300px;
  animation: slideIn 0.3s ease-out;
  pointer-events: auto;
}
.message.message-success {
  background: #4caf50;
  color: white;
}
.message.message-error {
  background: #f44336;
  color: white;
}
.message.message-info {
  background: #2196f3;
  color: white;
}
@keyframes slideIn {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
.empty-state {
  padding: 40px;
  text-align: center;
  color: #999;
  font-size: 14px;
}
.empty-state-small {
  padding: 20px;
  text-align: center;
  color: #999;
  font-size: 13px;
}
.items-list::-webkit-scrollbar,
.categories-list::-webkit-scrollbar,
.products-list::-webkit-scrollbar {
  width: 8px;
}
.items-list::-webkit-scrollbar-track,
.categories-list::-webkit-scrollbar-track,
.products-list::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}
.items-list::-webkit-scrollbar-thumb,
.categories-list::-webkit-scrollbar-thumb,
.products-list::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}
.items-list::-webkit-scrollbar-thumb:hover,
.categories-list::-webkit-scrollbar-thumb:hover,
.products-list::-webkit-scrollbar-thumb:hover {
  background: #555;
}
@media (max-width: 1200px) {
  .products-container {
    grid-template-columns: 1fr;
    height: auto;
  }
  .products-left-column,
  .products-right-column {
    height: 500px;
  }
}
.sales-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
}
.sales-filters {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.sales-data-mode-toggle {
  display: flex;
  gap: 2px;
  flex-shrink: 0;
}
.data-mode-btn {
  height: 36px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  border: 1px solid #d1d5db;
  background-color: #f3f4f6;
  color: #4b5563;
  cursor: pointer;
  transition: all 150ms ease-in-out;
  border-radius: 0.375rem;
}
.data-mode-btn:hover {
  background-color: #e5e7eb;
  border-color: #9ca3af;
}
.data-mode-btn.active {
  background-color: #2563eb;
  color: #ffffff;
  border-color: #1e40af;
}
.data-mode-btn:first-child {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
.data-mode-btn:last-child {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}
.sales-sort-toggle {
  display: flex;
  gap: 2px;
  flex-shrink: 0;
}
.sort-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  border: 1px solid #d1d5db;
  background-color: #f3f4f6;
  color: #4b5563;
  cursor: pointer;
  transition: all 150ms ease-in-out;
  padding: 0;
  border-radius: 0.375rem;
}
.sort-btn:hover {
  background-color: #e5e7eb;
  border-color: #9ca3af;
}
.sort-btn.active {
  background-color: #2563eb;
  color: #ffffff;
  border-color: #1e40af;
}
.sort-btn:first-child {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
.sort-btn:last-child {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}
.sort-btn:not(:first-child):not(:last-child) {
  border-radius: 0;
}
.filter-row-single {
  flex: 1;
  min-width: 0;
}
.sales-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}
.category-block {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  break-inside: avoid;
}
.category-header {
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #f3f4f6 0%, #f9fafb 100%);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  transition: all 150ms ease-in-out;
  user-select: none;
  border-bottom: 1px solid #e5e7eb;
}
.category-header:hover {
  background: linear-gradient(135deg, #e5e7eb 0%, #f3f4f6 100%);
}
.category-header:active {
  transform: scale(0.99);
}
.category-header-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
}
.category-indicator {
  font-size: 0.875rem;
  font-weight: 700;
  color: #4b5563;
  transition: transform 150ms ease-in-out;
  min-width: 16px;
  text-align: center;
  flex-shrink: 0;
}
.category-name {
  font-size: 1rem;
  font-weight: 700;
  color: #1f2937;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.category-total {
  font-size: 0.75rem;
  font-weight: 600;
  color: #4b5563;
  white-space: nowrap;
  font-family: monospace;
  flex-shrink: 0;
}
.category-products {
  max-height: 9999px;
  overflow: hidden;
  transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
  opacity: 1;
}
.category-products.collapsed {
  max-height: 0;
  opacity: 0;
}
.product-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 1rem;
  border-bottom: 1px solid #f3f4f6;
  gap: 0.5rem;
  transition: background-color 150ms ease-in-out;
}
.product-row:last-child {
  border-bottom: none;
}
.product-row:hover {
  background-color: rgba(37, 99, 235, 0.03);
}
.product-name {
  font-size: 0.875rem;
  color: #374151;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.product-metrics {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  white-space: nowrap;
}
.product-qty {
  background-color: #d1d5db;
  color: #1f2937;
  font-weight: 600;
  font-family: monospace;
  padding: 2px 8px;
  border-radius: 0.25rem;
  text-align: center;
  min-width: 50px;
  display: inline-block;
}
.product-total {
  background-color: #d4edda;
  color: #155724;
  font-weight: 700;
  font-family: monospace;
  padding: 2px 8px;
  border-radius: 0.25rem;
  text-align: center;
  min-width: 70px;
  display: inline-block;
}
.sales-empty {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  padding: 2rem;
  text-align: center;
  margin-top: 2rem;
}
.sales-empty p {
  font-size: 1.125rem;
  color: #4b5563;
  margin: 0;
}
#messageArea {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  min-width: 300px;
  max-width: 400px;
}
.sales-message {
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  border-left: 4px solid;
  font-size: 1rem;
  font-weight: 500;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  animation: slideInRight 0.3s ease-out;
}
.sales-success {
  background-color: #d1fae5;
  color: #085b40;
  border-left-color: #10b981;
}
.sales-error {
  background-color: #fee2e2;
  color: #bd1010;
  border-left-color: #ef4444;
}
.sales-info {
  background-color: #cffafe;
  color: #036171;
  border-left-color: #06b6d4;
}
@keyframes slideInRight {
  from {
    transform: translateX(100px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
@media (max-width: 1024px) {
  .sales-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .sales-container {
    padding: 1.5rem 1rem;
  }
  .sales-grid {
    grid-template-columns: 1fr;
  }
  .sales-filters {
    padding: 1rem;
  }
  .product-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 6px 1rem;
  }
  .product-metrics {
    width: 100%;
    justify-content: flex-end;
  }
}
