/* Page base: same as the other dashboard pages (alert.css / favourites.css): Nunito, grey background,
 * scale wrapper and the .page container. */
:root { --js-bg: #EDEDED; --js-primary: #008374; --primary: #008374; --js-text-main: #1f2937; --yellow: #f6bb26;
  --font-main: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif; --ui-scaling: 0.8333vw; }
* { margin: 0; padding: 0; box-sizing: border-box; }
#topLoader { position: fixed; top: 0; left: 0; height: .4em; width: 0%; background: var(--yellow); z-index: 999999; transition: width .4s ease; }
.custom-scale-wrapper { font-size: var(--ui-scaling); width: 100%; }
@media (max-width: 1000px) { .custom-scale-wrapper { font-size: 10px; } }
@media (min-width: 7680px) { .custom-scale-wrapper { font-size: 64px; } }
.ico { font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif; font-size: 1em; line-height: 1; }
html, body { height: 100%; }
body { font-family: var(--font-main); background: var(--js-bg); color: var(--js-text-main); -webkit-font-smoothing: antialiased; font-weight: 400; }
a { text-decoration: none; color: inherit; }
.page { max-width: 100%; margin: 0 auto; padding: 1.6em 1.5em 2.4em; padding-inline: 8em; }
@media (max-width: 767px) { .page { padding: 1.25rem 1rem 1.8rem; padding-top: 1em; } }

/* "Mon entreprise" + "Demandes de devis" (Business Directory), dashboard look: white cards, teal actions.
 * Sizes in em follow the page scale (.custom-scale-wrapper). */
.biz, .quotes { --b-teal: #008374; --b-teal-d: #00695d; --b-ink: #1f2937; --b-muted: #64748b; --b-line: #dbe4ee; --b-soft: #f4f8f7; --b-yellow: #f6bb26;
  font-family: Nunito, sans-serif; color: var(--b-ink); font-size: 1.1em; display: grid; gap: 1.2em; max-width: none; }
.biz-card { background: #fff; border: .1em solid var(--b-line); border-radius: 1.1em; padding: 1.5em 1.6em; box-shadow: 0 .4em 1.4em rgba(15, 23, 42, .06); }
.biz-h2 { font-size: 1.45em; font-weight: 800; margin: 0; }
.biz-h3 { font-size: 1.2em; font-weight: 800; margin: 0 0 .6em; }
.biz-loading { color: var(--b-muted); }
.biz-hint, .biz-hint-block { color: var(--b-muted); font-size: .88em; }
.biz-hint-block { margin: 0 0 1em; }

/* status */
.biz-status { display: flex; gap: 1.5em; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; }
.biz-status-main { flex: 1 1 32em; min-width: 0; }
.biz-status-top { display: flex; gap: .8em; align-items: center; flex-wrap: wrap; }
.biz-status-actions { display: flex; gap: .7em; flex-wrap: wrap; }
.biz-badge { display: inline-flex; align-items: center; gap: .35em; padding: .3em .85em; border-radius: 99em; font-size: .85em; font-weight: 800; background: #eef2f7; color: #334155; }
.biz-badge.is-listed, .biz-badge.is-verified, .biz-badge.q-won { background: #dcfce7; color: #166534; }
.biz-badge.is-draft, .biz-badge.is-pending, .biz-badge.q-new, .biz-badge.q-quoted { background: #fff7e0; color: #7a5200; }
.biz-badge.is-hidden, .biz-badge.is-refused, .biz-badge.q-lost, .biz-badge.q-closed { background: #fee2e2; color: #991b1b; }
.biz-badge.q-replied, .biz-badge.q-viewed { background: #e0f2fe; color: #075985; }
.biz-progress-row { display: flex; align-items: center; gap: 1em; margin-top: 1em; flex-wrap: wrap; }
.biz-progress { flex: 1 1 18em; height: .7em; border-radius: 99em; background: #e5edf0; overflow: hidden; }
.biz-progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--b-teal), #13a090); border-radius: inherit; }
.biz-progress-num { font-weight: 800; font-size: .92em; color: var(--b-teal-d); }
.biz-missing-title { margin: 1em 0 .3em; font-weight: 700; }
.biz-missing { margin: 0; padding-left: 1.2em; color: #7a5200; }

/* tabs */
.biz-tabs { display: flex; gap: .5em; flex-wrap: wrap; border-bottom: .1em solid var(--b-line); padding-bottom: .1em; }
.biz-tab { border: 0; background: transparent; padding: .7em 1.1em; font: inherit; font-weight: 800; color: var(--b-muted); border-radius: .7em .7em 0 0; cursor: pointer; text-decoration: none; }
.biz-tab.is-active { color: var(--b-teal-d); box-shadow: inset 0 -.2em 0 var(--b-teal); }
.biz-tab:focus-visible, .biz-btn:focus-visible, .biz-input:focus-visible, .biz-icon:focus-visible { outline: .2em solid var(--b-yellow); outline-offset: .15em; }

/* forms */
.biz-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1em 1.2em; }
.biz-span2 { grid-column: 1 / -1; }
.biz-field { display: flex; flex-direction: column; gap: .35em; min-width: 0; }
.biz-label { font-weight: 800; font-size: .9em; }
.biz-input { font: inherit; font-size: 1em; width: 100%; box-sizing: border-box; padding: .7em .85em; border: .1em solid #cbd5e1; border-radius: .7em; background: #fff; color: var(--b-ink); }
.biz-input:focus { border-color: var(--b-teal); }
textarea.biz-input { resize: vertical; min-height: 6em; }
.biz-ta { position: relative; }
.biz-counter { position: absolute; right: .8em; bottom: .5em; color: var(--b-muted); font-size: .78em; pointer-events: none; }
.biz-field.has-error .biz-input { border-color: #dc2626; }
.biz-field-error { color: #b91c1c; font-size: .85em; min-height: 0; }
.biz-checks { display: flex; flex-wrap: wrap; gap: .4em .9em; }
.biz-check { display: inline-flex; align-items: center; gap: .35em; font-size: .95em; }
.biz-form-foot { display: flex; align-items: center; justify-content: flex-end; gap: 1em; margin-top: 1.2em; flex-wrap: wrap; }
.biz-notice { margin: 0 auto 0 0; font-weight: 700; font-size: .92em; }
.biz-notice.is-ok { color: #166534; }
.biz-notice.is-error { color: #b91c1c; }
.biz-total { font-weight: 800; color: var(--b-teal-d); }
.biz-total.is-error { color: #b91c1c; }
.biz-empty { color: var(--b-muted); }

.biz-btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; font: inherit; font-weight: 800; font-size: .95em; padding: .7em 1.3em; border-radius: 99em; border: .1em solid transparent; cursor: pointer; text-decoration: none; }
.biz-btn[disabled] { opacity: .55; cursor: not-allowed; }
.biz-btn-primary { background: var(--b-teal); color: #fff; }
.biz-btn-primary:hover { background: var(--b-teal-d); }
.biz-btn-light { background: #fff; color: var(--b-teal-d); border-color: #b9d7d2; }
.biz-btn-ghost { background: transparent; color: var(--b-muted); padding-left: .4em; padding-right: .4em; }
.biz-icon { width: 2.4em; height: 2.4em; border-radius: 50%; border: .1em solid var(--b-line); background: #fff; color: var(--b-ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.biz-icon.is-danger { color: #b91c1c; }

/* pictures */
.biz-image { display: flex; align-items: center; gap: 1em; flex-wrap: wrap; }
.biz-image-preview { width: 9em; height: 6em; border-radius: .8em; background: var(--b-soft); border: .1em dashed #b9d7d2; display: flex; align-items: center; justify-content: center; overflow: hidden; color: #8aa9a4; font-size: 1.6em; }
.biz-image.is-round .biz-image-preview { width: 5.5em; height: 5.5em; border-radius: 1.2em; font-size: 1.3em; }
.biz-image-preview img { width: 100%; height: 100%; object-fit: cover; }
.biz-image-actions { display: flex; align-items: center; gap: .5em; flex-wrap: wrap; }
.biz-image-status { color: var(--b-muted); }
.biz-file { display: none; }

/* lists */
.biz-rows { display: grid; gap: 1em; }
.biz-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1em; padding: 1.1em; border: .1em solid var(--b-line); border-radius: 1em; background: #fbfdfd; }
.biz-row-tools { display: flex; flex-direction: column; gap: .4em; }

.biz-empty-state { display: grid; justify-items: center; text-align: center; gap: .8em; padding: 2.4em; }
.biz-empty-state > i { font-size: 2.6em; color: var(--b-teal); }

/* quotes */
.q-logo { width: 3.4em; height: 3.4em; border-radius: .9em; object-fit: cover; flex-shrink: 0; background: var(--b-soft); }
.q-logo.is-letter { display: inline-flex; align-items: center; justify-content: center; font-weight: 900; color: #fff; background: linear-gradient(135deg, #0b5d58, #13a090); }
.q-target, .q-head, .q-item { display: flex; gap: 1em; align-items: flex-start; }
.q-kicker { margin: 0; color: var(--b-muted); font-weight: 700; font-size: .85em; }
.q-list { display: grid; gap: .8em; }
.q-item { text-decoration: none; color: inherit; padding: 1.1em 1.3em; }
.q-item.is-unseen { border-color: var(--b-teal); box-shadow: inset .3em 0 0 var(--b-teal); }
.q-item-main, .q-head-main { flex: 1; min-width: 0; }
.q-item-top { display: flex; justify-content: space-between; gap: .8em; align-items: center; flex-wrap: wrap; }
.q-item p { margin: .3em 0 0; }
.q-desc { white-space: pre-line; margin: .8em 0 0; }
.q-thread { display: grid; gap: .8em; }
.q-msg { max-width: 75%; padding: .8em 1em; border-radius: 1em; background: var(--b-soft); justify-self: start; }
.q-msg.is-mine { justify-self: end; background: #e6f4f1; }
.q-msg.is-offer { border: .15em solid var(--b-yellow); background: #fffaf0; }
.q-msg-body { margin: 0 0 .3em; white-space: pre-line; overflow-wrap: anywhere; }
.q-offer-amount { margin: 0; font-weight: 900; font-size: 1.15em; }
.q-reply { display: flex; gap: .7em; align-items: flex-end; margin-top: .5em; }
.q-actions { display: flex; gap: .7em; flex-wrap: wrap; }
.q-stars-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15em, 1fr)); gap: .8em; margin-bottom: 1em; }
.q-stars { border: 0; padding: 0; margin: 0; display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: .15em; flex-wrap: wrap; }
.q-stars legend { font-weight: 800; font-size: .9em; width: 100%; margin-bottom: .2em; }
.q-stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.q-stars label { font-size: 1.5em; color: #cbd5e1; cursor: pointer; }
.q-stars input:checked ~ label, .q-stars label:hover, .q-stars label:hover ~ label { color: var(--b-yellow); }
.q-stars input:focus-visible + label { outline: .15em solid var(--b-teal); border-radius: .2em; }
.q-stars-read { color: var(--b-yellow); font-size: 1.3em; margin: 0; }

@media (max-width: 999px) {
  .biz, .quotes { font-size: 1.4em; }
}
@media (max-width: 640px) {
  .biz-grid { grid-template-columns: minmax(0, 1fr); }
  .biz-row { grid-template-columns: minmax(0, 1fr); }
  .biz-row-tools { flex-direction: row; }
  .q-msg { max-width: 92%; }
  .q-reply { flex-direction: column; align-items: stretch; }
  .biz-card { padding: 1.1em; }
}
.quotes > .biz-btn-ghost { justify-self: start; }
