/* ========================
   CSS VARIABLES
======================== */
:root {
  --color-primary: #2563eb;
  --color-primary-hover: #1d4ed8;
  --color-border: #e5e7eb;
  --color-bg: #ffffff;
  --color-muted: #6b7280;
  --color-text: #111827;
  --radius-sm: 6px;
  --radius-md: 8px;
  --transition: 150ms ease;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.06);
    --ink:#1C2B2A;
    --paper:#FAF7F0;
    --card:#FFFFFF;
    --line:#E4DFD2;
    --ochre:#B8843C;
    --ochre-dark:#8E6529;
    --teal:#3F7268;
    --muted:#7C7A6E;
}

/* ========================
   GLOBAL
======================== */
html {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-text);
  background-color: #f9fafb;
}

body {
  margin: 0;
}

/* ========================
   HEADINGS
======================== */
h1, h2, h3, h4, h5 {
  font-weight: 600;
  margin: 0.75rem;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.3rem; }

/* ========================
   BUTTONS
======================== */
button,
[type=button],
[type=submit],
[type=reset] {
  appearance: none;
  background-color: var(--color-primary);
  border: none;
  border-radius: var(--radius-sm);
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 400;
  padding: 6px 15px;
  transition: background-color var(--transition), transform var(--transition);
  width: fit-content;
}

button:hover,
[type=button]:hover,
[type=submit]:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-1px);
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ========================
   FORM ELEMENTS
======================== */
 label {
display: flex;
align-items: center;
gap: 0.5rem;
font-weight: 500;
font-size: 0.95rem;
color: #1f3b54;
letter-spacing: -0.01em;
}
 label i {
color: #317a9e;
font-size: 1rem;
width: 1.4rem;
text-align: center;
opacity: 0.7;
}
input::placeholder, textarea::placeholder {
color: #9bb1c7;
font-weight: 300;
font-size: 0.95rem;
}
input, select, textarea, .select2-selection{
width:100%;
  padding: 11px 13px ;
  font-family:'Inter', sans-serif;
  font-size:14.5px;color:var(--ink);
  background: #dddddc ;
  border:1px solid var(--line);
  border-radius:3px;
  transition:border-color .18s ease, background .18s ease, box-shadow .18s ease;}
 textarea{ 
resize:vertical; 
min-height:70px; 
line-height:1.5; 
 }
input:hover, select:hover, textarea:hover{ border-color:#C9C2AD; }
input:focus, select:focus, textarea:focus{
outline:none;
background:#fff;
border-color:var(--teal);
box-shadow:0 0 0 3px rgba(63,114,104,0.14);
  }
input:disabled,
textarea:disabled {
  background-color: #f3f4f6;
  cursor: not-allowed;
}
select, .select2{
appearance:none;
background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%237C7A6E' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
background-repeat:no-repeat;
background-position:right 13px center;
padding-right:34px;
  }
.select2{
 background: #dddddc !important; 
border: 1px solid var(--line);
border-radius: 3px;
}
.select2-selection{
border: none !important;
background: #dddddc !important;
padding: 20px 13px  !important;
}
.select2-selection__rendered{
position: relative;
top: -14px;
z-index: 900
}
/* ========================
   CHECKBOX & RADIO
======================== */
 input[type="radio"], input[type="checkbox"] {
width: 1.1rem;
height: 1.1rem;
margin: 0 0.2rem 0 0;
accent-color: #1e7eb0;
cursor: pointer;
flex-shrink: 0;
box-shadow: none;
border-radius: 50%;
}
input[type="checkbox"] {
border-radius: 5px;
}

/* ========================
   TABLES (Invoice friendly)
======================== */
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

thead {
  background-color: #f3f4f6;
}

th,
td {
  padding: 5px;
  font-size: 12px;
}

th {
  text-align: left;
  font-weight: 600;
  color: #374151;
}

tr:not(:last-child) {
  border-bottom: 1px solid var(--color-border);
}

/* ========================
   LINKS
======================== */
a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ========================
   UTILITY
======================== */
.card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 1rem;
}
