@charset "utf-8";
/* CSS Document */

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background: #f5f7fb;
  margin: 0;
  color: #222;
}
.wrapper {
  max-width: 960px;
  margin: 40px auto;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
  padding: 24px 26px;
}
h1, h2 {
  margin-top: 0;
}
input[type=text],
input[type=email],
textarea,
select {
  width: 100%;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid #d3d7e3;
  font-size: 14px;
  box-sizing: border-box;
}
textarea { min-height: 120px; }

button, .btn {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  border: none;
  background: #E30613;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
.btn-secondary {
  background: #4E973A;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}
th, td {
  border: 1px solid #e3e6f0;
  padding: 6px 8px;
  font-size: 13px;
}
th {
  background: #f3f5fc;
}
.flash {
  padding: 8px 10px;
  border-radius: 8px;
  margin-bottom: 12px;
  font-size: 14px;
}
.flash-success { background: #e5f6ea; color: #166534; }
.flash-error   { background: #fee2e2; color: #991b1b; }
.top-nav {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:16px;
}
.small {
  font-size: 12px;
  color:#555;
}

.line-items-wrapper {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px;
    background: #f9fafb;
    margin-top: 4px;
}

.line-items-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin-bottom: 8px;
}

.line-items-table thead th {
    text-align: left;
    font-weight: 600;
    color: #374151;
    padding: 6px 8px;
    border-bottom: 1px solid #e5e7eb;
}

.line-items-table tbody td {
    padding: 4px 8px;
    border-bottom: 1px solid #eef2f7;
}

.line-items-table input {
    width: 100%;
    padding: 5px 7px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    font-size: 14px;
}

.li-total {
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.li-remove {
    border: none;
    background: transparent;
    color: #9ca3af;
    font-size: 18px;
    cursor: pointer;
    padding: 0 4px;
}
.li-remove:hover {
    color: #ef4444;
}

.btn-secondary {
    margin-top: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    font-size: 14px;
    cursor: pointer;
}
.btn-secondary:hover {
    background: #f3f4f6;
}

.line-items-totals {
    margin-top: 10px;
    max-width: 260px;
    margin-left: auto; /* keep totals aligned to the right */
}

.line-items-totals .totals-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 2px;
    font-variant-numeric: tabular-nums;
}

.line-items-totals .totals-row-total {
    margin-top: 4px;
    font-weight: 700;
    border-top: 1px solid #e5e7eb;
    padding-top: 4px;
}

/* Base button */
button,
.btn {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  background: #E30613;   /* Parcmed red */
  color: #ffffff;
}

/* Primary (red) */
.btn-primary,
button.btn-primary,
a.btn-primary {
  background: #E30613;   /* Parcmed red */
  color: #ffffff;
}

/* Secondary (green) */
.btn-secondary,
button.btn-secondary,
a.btn-secondary {
  background: #4E973A;   /* Parcmed green */
  color: #ffffff;
}

/* Small “x” remove button in line-items */
button.li-remove {
  background: transparent;
  color: #999;
  border-radius: 999px;
  width: 26px;
  height: 26px;
  padding: 0;
  font-size: 16px;
}
button.li-remove:hover {
  background: #f3f4f6;
  color: #666;
}

