/* =========================================================
   Quote2Whatsapp - Professional UI for Ecolife
   Compatível com layout-both-columns.tpl
   ========================================================= */

:root{
  --q2w-bg: #ffffff;
  --q2w-bg-soft: #fafafa;
  --q2w-border: rgba(0,0,0,.08);
  --q2w-border-strong: rgba(0,0,0,.14);

  --q2w-text: rgba(0,0,0,.88);
  --q2w-muted: rgba(0,0,0,.60);

  --q2w-shadow-sm: 0 4px 14px rgba(0,0,0,.05);
  --q2w-shadow-md: 0 8px 24px rgba(0,0,0,.07);

  --q2w-radius: 14px;
  --q2w-radius-sm: 10px;

  --q2w-wa: #25D366;
  --q2w-wa-hover: #20bd5c;

  --q2w-blue: #0b57d0;
  --q2w-orange: #a95a00;
  --q2w-green: #0b6b35;
}

/* base */
.q2w-container{
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 8px 0 4px;
  color: var(--q2w-text);
}

.q2w-container *{
  box-sizing: border-box;
}

/* cards */
.q2w-card{
  background: var(--q2w-bg);
  border: 1px solid var(--q2w-border);
  border-radius: var(--q2w-radius);
  padding: 18px;
  box-shadow: var(--q2w-shadow-sm);
}

.q2w-card + .q2w-card{
  margin-top: 12px;
}

/* headings */
.q2w-container h1{
  margin: 0 0 4px 0;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: .2px;
  color: var(--q2w-text);
}

.q2w-container h3{
  margin: 0 0 10px 0;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 800;
  color: var(--q2w-text);
}

.q2w-muted{
  color: var(--q2w-muted);
}

.q2w-small{
  font-size: 13px;
  color: var(--q2w-muted);
}

.q2w-ref{
  font-size: 30px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: .4px;
  margin: 0;
  color: var(--q2w-text);
}

/* grid */
.q2w-grid{
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 14px;
  margin-top: 12px;
}

@media (max-width: 991px){
  .q2w-grid{
    grid-template-columns: 1fr;
  }
}

/* top action row */
.q2w-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
}

/* buttons */
.q2w-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 14px;
  line-height: 1;
  text-decoration: none !important;
  border: 1px solid var(--q2w-border-strong);
  transition: all .15s ease;
  white-space: nowrap;
}

.q2w-btn:hover{
  text-decoration: none !important;
  transform: translateY(-1px);
}

.q2w-btn:focus{
  outline: none;
}

.q2w-btn-wa{
  background: var(--q2w-wa);
  border-color: var(--q2w-wa);
  color: #fff !important;
  box-shadow: 0 10px 22px rgba(37,211,102,.18);
}

.q2w-btn-wa:hover{
  background: var(--q2w-wa-hover);
  border-color: var(--q2w-wa-hover);
  color: #fff !important;
  box-shadow: 0 12px 24px rgba(37,211,102,.22);
}

.q2w-ico{
  width: 18px;
  height: 18px;
  display: inline-block;
  flex: 0 0 18px;
}

/* textareas / forms */
.q2w-card .form-group{
  margin-bottom: 12px;
}

.q2w-card textarea.form-control{
  width: 100%;
  min-height: 120px;
  border-radius: 12px;
  border: 1px solid var(--q2w-border-strong);
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--q2w-text);
  background: #fff;
  box-shadow: none;
  resize: vertical;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.q2w-card textarea.form-control:focus{
  outline: none;
  border-color: rgba(37,211,102,.60);
  box-shadow: 0 0 0 4px rgba(37,211,102,.12);
}

/* tables */
.q2w-table{
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--q2w-border);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.q2w-table thead th{
  background: rgba(0,0,0,.03);
  color: rgba(0,0,0,.65);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .6px;
  padding: 11px 10px;
  border-bottom: 1px solid var(--q2w-border);
}

.q2w-table td{
  padding: 11px 10px;
  border-bottom: 1px solid rgba(0,0,0,.06);
  vertical-align: top;
  font-size: 14px;
  color: var(--q2w-text);
}

.q2w-table tbody tr:last-child td{
  border-bottom: 0;
}

.q2w-right{
  text-align: right;
}

/* badge */
.q2w-badge{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: .2px;
}

.q2w-badge--new{
  background: rgba(11,87,208,.12);
  color: var(--q2w-blue);
}

.q2w-badge--in_progress{
  background: rgba(255,165,0,.16);
  color: var(--q2w-orange);
}

.q2w-badge--closed{
  background: rgba(0,180,90,.16);
  color: var(--q2w-green);
}

/* note block */
.q2w-note{
  background: var(--q2w-bg-soft);
  border: 1px dashed rgba(0,0,0,.18);
  border-radius: 12px;
  padding: 12px 14px;
  white-space: pre-wrap;
  line-height: 1.45;
  color: var(--q2w-text);
}

/* summary rows */
.q2w-summary-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}

.q2w-summary-row__label{
  color: var(--q2w-muted);
  font-size: 14px;
}

.q2w-summary-row__value{
  font-size: 18px;
  font-weight: 900;
  color: var(--q2w-text);
}

/* links inside action area */
.q2w-actions .btn,
.q2w-actions a{
  margin: 0 !important;
}

/* make bootstrap secondary buttons nicer inside module */
.q2w-container .btn.btn-secondary{
  border-radius: 12px;
  font-weight: 700;
}

/* empty state */
.q2w-empty{
  text-align: center;
  padding: 24px 16px;
  color: var(--q2w-muted);
}

/* mobile fine tuning */
@media (max-width: 767px){
  .q2w-card{
    padding: 14px;
    border-radius: 12px;
  }

  .q2w-container h1{
    font-size: 24px;
  }

  .q2w-ref{
    font-size: 26px;
  }

  .q2w-btn{
    width: 100%;
  }

  .q2w-actions{
    align-items: stretch;
  }
}