.csc-app, .csc-login-wrap { font-family: Arial, sans-serif; color: #000; }
.csc-login-wrap { display: flex; justify-content: center; padding: 40px 15px; }
.csc-login-card { width: 100%; max-width: 430px; border: 1px solid #d5d5d5; border-radius: 8px; padding: 28px; background: #fff; box-shadow: 0 8px 30px rgba(0,0,0,.08); }
.csc-login-card label, .csc-field label { display: block; font-weight: 700; margin-bottom: 6px; }
.csc-login-card input, .csc-field input, .csc-app select, .csc-app textarea, .csc-app input { width: 100%; box-sizing: border-box; font-size: 16px; padding: 8px; }
.csc-login-card .csc-button { width: 100%; margin-top: 14px; }
.csc-toolbar { display: grid; grid-template-columns: repeat(4, minmax(180px, 1fr)); gap: 12px; margin-bottom: 14px; }
.csc-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.csc-button { display: inline-block; background: #444; color: #fff !important; border: 0; border-radius: 4px; padding: 10px 15px; cursor: pointer; font-weight: 700; text-decoration: none !important; }
.csc-button:hover { opacity: .85; }
.csc-primary { background: #81b43c; }
.csc-danger { background: #b32727; }
.csc-link-button { line-height: 1.3; }
.csc-status { min-height: 24px; margin-bottom: 10px; font-weight: 700; }
.csc-status-success { color: #27651c; }
.csc-status-error, .csc-alert-error { color: #9c1f1f; }
.csc-alert { margin: 10px 0; font-weight: 700; }
.csc-table-wrap { overflow-x: auto; }
#csc-item-table, .csc-summary-table { width: 100%; border-collapse: collapse; }
#csc-item-table th, .csc-summary-table th { background: #81b43c; color: #fff; font-weight: 700; padding: 9px; }
#csc-item-table td, .csc-summary-table td { border: 2px solid #bbb; padding: 6px; text-align: center; vertical-align: middle; }
#csc-item-table textarea { min-width: 180px; resize: vertical; }
#csc-item-table input[type="number"] { min-width: 80px; }
.csc-general-notes { margin: 18px 0; }
.csc-summary-table { margin-top: 18px; }
.csc-summary-table td { font-size: 20px; font-weight: 700; }
.csc-print-header { display: none; }
@media (max-width: 900px) {
  .csc-toolbar { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .csc-toolbar { grid-template-columns: 1fr; }
}
@media print {
  @page { size: landscape; margin: 0.4in; }
  body * { visibility: hidden; }
  #csc-app, #csc-app * { visibility: visible; }
  #csc-app { position: absolute; left: 0; top: 0; width: 100%; }
  .csc-no-print { display: none !important; }
  .csc-print-header { display: block; margin-bottom: 14px; }
  .csc-print-header h1 { margin: 0 0 8px; }
  #csc-item-table tr { display: table-row; }
  #csc-item-table tbody tr:not(:has(.csc-quantity[value])) { display: none; }
  #csc-item-table th, #csc-item-table td, .csc-summary-table th, .csc-summary-table td { border: 1px solid #666; padding: 4px; font-size: 10px; }
  #csc-item-table select, #csc-item-table textarea, #csc-item-table input, #csc-general-notes { border: 0; padding: 0; background: transparent; color: #000; font-size: 10px; appearance: none; }
  #csc-item-table textarea { resize: none; overflow: visible; }
  .csc-table-wrap { overflow: visible; }
}
