/* General Reset & Base Styling */
body {
  font-family: 'Segoe UI', Tahoma, sans-serif;
  background-color: #f8f9fa;
  margin: 0;
  padding: 20px;
  color: #333;
}

.select2-container--default .select2-selection--single {
    height: 38px;
    padding: 5px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
/* Headings */
h1, h2, h3 {
  color: #2c3e50;
  margin-bottom: 10px;
}

/* Form container */
form {
  background-color: #ffffff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  margin-bottom: 30px;
}

/* Labels */
label {
  font-weight: 500;
  margin-top: 10px;
  display: block;
}

/* Uniform Input Styles */
input[type="text"],
input[type="number"],
input[type="date"],
input[type="password"],
input[type="month"],
select,
textarea {
  font-family: inherit;
  font-size: 14px;
  font-weight: normal;
  text-align: left;
  width: 100%;
  padding: 8px 12px;
  margin-top: 5px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: white;
  color: #333;
}

/* Optional input utility class */
.input-field {
  font-family: inherit;
  font-size: 14px;
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  height: 36px;
  width: 100%;
  background-color: white;
  color: #333;
}

/* Currency styling */
.currency {
  font-weight: bold;
  color: #1e7e34;
}

/* Currency field formatting (Value ₹) */
input.currency-format {
  font-weight: normal !important;
  text-align: left !important;
}

/* Commission field: right-align with decimals */
input.percent-format {
  text-align: left;
}

/* Dropdown font styling */
select,
select option {
  font-family: inherit;
  font-size: 14px;
}

/* Buttons */
button,
input[type="submit"] {
  background-color: #007bff;
  color: #fff;
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  margin-top: 10px;
  transition: background-color 0.2s ease;
}

button:hover,
input[type="submit"]:hover {
  background-color: #0056b3;
}

/* Add new row button */
.add-button {
  background-color: #28a745;
  margin-left: 10px;
}

.add-button:hover {
  background-color: #1e7e34;
}

.remove-button {
    background-color: #dc3545;
    color: white;
    border: none;
    margin-left: 10px;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
}

.remove-button:hover {
    background-color: #bd2130;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  background-color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  border-radius: 8px;
  overflow: hidden;
}

th, td {
  padding: 12px;
  border: 1px solid #dee2e6;
  text-align: left;
}

th {
  background-color: #f1f1f1;
  font-weight: 600;
}

/* Multi-entry row for invoice fields */
.multi-entry-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
}

.multi-entry-row > div {
  flex: 1;
  min-width: 150px;
}

/* Section Headers */
.section-header {
  font-size: 18px;
  margin-top: 30px;
  font-weight: 600;
  border-bottom: 2px solid #ccc;
  padding-bottom: 5px;
}

/* Table wrapper for horizontal scrolling */
.table-wrapper {
  overflow-x: auto;
}

/* Optional spacing utilities */
.mb-20 {
  margin-bottom: 20px;
}

.mt-20 {
  margin-top: 20px;
}

/* Dashboard Navigation Buttons */
.nav-links {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 15px;
}

.nav-links li a {
  display: block;
  padding: 12px 20px;
  text-align: center;
  background-color: #007bff;
  color: white;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease;
}

.nav-links li a:hover {
  background-color: #0056b3;
}

.form-button {
    display: inline-block;
    padding: 8px 18px;
    background-color: #007BFF;
    color: white;
    font-size: 14px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
    margin-left: 10px;
    transition: background-color 0.3s ease;
}

.form-button:hover {
    background-color: #0056b3;
}

input.form-input {
    padding: 6px 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 250px;
}

