/* Global styles for bookkeeping system */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Tabular figures for number alignment */
.tabular-nums {
  font-variant-numeric: tabular-nums;
}

/* Amount colors */
.amount-positive {
  color: #52c41a;
}

.amount-negative {
  color: #ff4d4f;
}

.amount-zero {
  color: #8c8c8c;
}

/* Right-aligned numbers in tables */
.text-right {
  text-align: right;
}

/* Currency formatting */
.currency {
  font-variant-numeric: tabular-nums;
  text-align: right;
}

/* Sticky table headers */
.ant-table-sticky-holder {
  z-index: 3;
}

/* High-density table rows */
.ant-table-tbody > tr > td {
  padding: 8px 12px !important;
}

/* Sidebar navigation improvements */
.ant-layout-sider {
  overflow: auto;
  height: 100vh;
  position: fixed !important;
  left: 0;
  top: 0;
  bottom: 0;
}

/* Main content area */
.ant-layout-content {
  min-height: calc(100vh - 64px);
  padding: 16px;
  overflow: auto;
}

/* Card shadows for depth */
.ant-card {
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03), 0 1px 6px -1px rgba(0, 0, 0, 0.02),
    0 2px 4px rgba(0, 0, 0, 0.02);
}

/* Form labels */
.ant-form-item-label > label {
  font-weight: 500;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a1a1a1;
}

/* Print styles */
@media print {
  .ant-layout-sider,
  .ant-layout-header {
    display: none !important;
  }

  .ant-layout-content {
    margin: 0 !important;
    padding: 0 !important;
  }
}
