/* Table */
.cashbook-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  font-size: 0.875rem;
  table-layout: fixed;
}

/* Column widths */
.td-date,
th.col-date    { width: 130px; }
.td-amount,
th.col-amount  { width: 90px; }
.td-text,
th.col-text    { width: auto; }

/* Inputs */
.edit-input {
  border: 1px solid transparent;
  background: transparent;
  padding: 6px 8px;
  font-size: 0.875rem;
  outline: none;
  transition: background 0.1s;
  height: 34px;
  width: 100%;
  box-sizing: border-box;
}
.edit-input:focus {
  border-color: #3b82f6;
  background: #eff6ff;
  box-shadow: inset 0 0 0 1px rgba(59,130,246,0.3);
}

/* Table */
.cashbook-table td,
.cashbook-table th {
  border: 1px solid #e5e7eb;
}
.cashbook-table tr:hover { background: #f9fafb; }
.cashbook-table td { vertical-align: middle; }

/* Delete button */
.btn-icon {
  opacity: 0.3;
  transition: opacity 0.15s;
  cursor: pointer;
}
.cashbook-table tr:hover .btn-icon { opacity: 1; }

/* Date picker cell */
.date-cell {
  display: flex;
  align-items: center;
  height: 34px;
}
.date-cell .edit-input {
  flex: 1;
  min-width: 0;
}
.date-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 34px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #9ca3af;
  flex-shrink: 0;
  transition: color 0.15s;
}
.date-btn:hover { color: #3b82f6; }
.hidden-date {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}

/* Tabs */
.tab-btn {
  flex: 1;
  padding: 12px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #6b7280;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.tab-btn:hover { color: #374151; background: #f9fafb; }
.tab-active {
  color: #2563eb;
  border-bottom-color: #2563eb;
  font-weight: 600;
}

/* Responsive */
.desktop-only { display: table; }
.mobile-only { display: none; }

@media (max-width: 640px) {
  .desktop-only { display: none !important; }
  .mobile-only { display: block !important; }
  .cashbook-table { font-size: 0.8125rem; }
  .td-date, th.col-date { width: 110px; }
  .td-amount, th.col-amount { width: 80px; }
}
