.spl-login-container,
.spl-profile-container,
.spl-dashboard,
.spl-pl-form,
.spl-pl-view {
  max-width: 1200px;
  margin: 20px auto;
  padding: 20px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 5px;
}

/* Center alignment for forms */
.spl-login-container,
.spl-profile-container {
  max-width: 500px;
  text-align: center;
}

.spl-login-container .spl-login-form,
.spl-login-container .spl-register-form,
.spl-profile-container .spl-profile-form {
  text-align: left;
}

.spl-form-group {
  margin-bottom: 20px;
}

.spl-form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.spl-form-group input,
.spl-form-group textarea,
.spl-form-group select {
  width: 100%;
  max-width: 400px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-size: 14px;
}

.spl-form-group textarea {
  height: 100px;
  resize: vertical;
}

.spl-button {
  display: inline-block;
  padding: 10px 20px;
  background: #0073aa;
  color: white;
  text-decoration: none;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  font-size: 14px;
}

.spl-button:hover {
  background: #005a87;
}

.spl-button-primary {
  background: #0073aa;
}

.spl-button-secondary {
  background: #666;
}

.spl-button-small {
  padding: 5px 10px;
  font-size: 12px;
}

.spl-error {
  background: #f8d7da;
  color: #721c24;
  padding: 10px;
  border: 1px solid #f5c6cb;
  border-radius: 3px;
  margin-bottom: 20px;
}

.spl-success {
  background: #d4edda;
  color: #155724;
  padding: 10px;
  border: 1px solid #c3e6cb;
  border-radius: 3px;
  margin-bottom: 20px;
}

.spl-header {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.spl-header h2 {
  margin: 0 0 10px 0;
}

.spl-header h3 {
  margin: 0 0 15px 0;
  color: #0073aa;
}

.spl-actions {
  margin: 20px 0;
}

.spl-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.spl-table th,
.spl-table td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

.spl-table th {
  background: #f9f9f9;
  font-weight: bold;
}

.spl-table tr:hover {
  background: #f5f5f5;
}

.spl-form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.spl-form-row .spl-form-group {
  flex: 1;
  margin-bottom: 0;
}

.spl-supplier-info {
  background: #f9f9f9;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 5px;
}

.spl-items-table-wrapper {
  overflow-x: auto;
  margin: 20px 0;
}

.spl-items-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1300px;
}

.spl-items-table th,
.spl-items-table td {
  padding: 8px 4px;
  border: 1px solid #ddd;
  text-align: left;
  font-size: 12px;
}

.spl-items-table th {
  background: #f9f9f9;
  font-weight: bold;
  text-align: center;
  white-space: nowrap;
}

.spl-items-table th small {
  display: block;
  font-size: 10px;
  color: #666;
  font-weight: normal;
}

.spl-input {
  width: 100%;
  padding: 5px;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-size: 12px;
  min-width: 80px;
}

.spl-input[readonly] {
  background-color: #f9f9f9;
  color: #666;
}

.spl-table-actions {
  margin: 10px 0;
}

.spl-totals {
  background: #e8f4f8;
  padding: 20px;
  border-radius: 5px;
  margin: 20px 0;
}

.spl-totals h4 {
  margin: 0 0 15px 0;
}

.spl-totals-row {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.spl-totals-row span {
  font-size: 14px;
}

.spl-form-actions {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.spl-pl-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}

.spl-view-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.spl-view-table th,
.spl-view-table td {
  padding: 8px;
  border: 1px solid #ddd;
  text-align: left;
}

.spl-view-table th {
  background: #f9f9f9;
  font-weight: bold;
  text-align: center;
}

.spl-view-table tfoot .spl-totals-row {
  background: #e8f4f8;
  font-weight: bold;
}

.spl-view-table .text-right {
  text-align: right;
}

.spl-view-table .text-center {
  text-align: center;
}

@media (max-width: 768px) {
  .spl-form-row {
    flex-direction: column;
    gap: 0;
  }
  
  .spl-pl-header {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .spl-totals-row {
    flex-direction: column;
    gap: 10px;
  }
  
  .spl-login-container,
  .spl-profile-container {
    margin: 10px;
    max-width: calc(100% - 20px);
  }
  
  .spl-items-table-wrapper {
    overflow-x: scroll;
  }
}