/* Styles specific to the payroll page. These declarations were originally
 * defined inline within payroll.html. Moving them into this file improves
 * maintainability and satisfies strict Content Security Policy settings by
 * eliminating inline style blocks. */

.wrap {
  max-width: 1200px;
  margin: 24px auto;
  padding: 0 16px;
}

.row {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 16px;
}

.card h3 {
  margin-top: 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

label {
  display: block;
  font-size: 12px;
  color: #374151;
  margin-bottom: 4px;
}

input,
select {
  width: 100%;
  padding: 10px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 10px;
  border-bottom: 1px solid #e5e7eb;
  font-size: 14px;
}

th {
  text-align: left;
  background: #f3f4f6;
}

/* Tighter layout specifically for the Rincian Kasbon table to accommodate more rows */
#cardRincianKasbon table th,
#cardRincianKasbon table td {
  padding: 4px;
  font-size: 12px;
}

/* Flexbox container for action buttons */
.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Button base styles */
.btn {
  padding: 10px 14px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.btn-primary {
  background: #2563eb;
  color: #fff;
}

.btn-secondary {
  background: #e5e7eb;
}

.muted {
  color: #6b7280;
  font-size: 12px;
}

/* Grid for totals section */
.totals {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.totals .card {
  padding: 12px;
}

.right {
  text-align: right;
}

.nowrap {
  white-space: nowrap;
}

/* Utility classes extracted from inline style attributes */
.flex1 {
  flex: 1;
}

.hidden {
  display: none;
}

.mt8 {
  margin-top: 8px;
}

.mt12 {
  margin-top: 12px;
}

.mt24 {
  margin-top: 24px;
}

.mb8 {
  margin-bottom: 8px;
}

.gap8 {
  gap: 8px;
}

.gap12 {
  gap: 12px;
}

.flex-wrap {
  flex-wrap: wrap;
}

.align-center {
  align-items: center;
}

.w160 {
  width: 160px;
}

.w100 {
  width: 100%;
}