@import '../rourets/toastr/toastr.css';

html {
  margin: 0px;
  padding: 0px;
}


body {
  margin: 0px;
  padding: 0px;
  font-family: 'Lato', sans-serif;
  font-size: 18px;
  line-height: 1.3em;
  background-color: #ced0bf;
  color: black;
  text-align: left;
}
/* perquè el dropdown de Selectize quedi sempre per sobre dels modals */
.selectize-dropdown {
  z-index: 11000 !important;
}
.is-invalid { border-color: red; }
/* Quan Selectize està dins d’un modal, fem que el dropdown ocupi tot l’amplada del control */
#reassign-circuit-modal .selectize-control.single .selectize-dropdown {
  width: 100% !important;
  box-sizing: border-box;
      border: none;
}

/* Perquè el desplegable se superposi per sobre de la resta */
#reassign-circuit-modal .selectize-control.single .selectize-dropdown,
#reassign-circuit-modal .selectize-control.single .selectize-dropdown-content {
  z-index: 2050; /* més gran que el z-index de Bootstrap modal */
}

.field-error {
  display: none;
  color: #a94442;
  font-size: 12px;
  text-align: left;
  margin-top: 3px;
}

.input-error:focus {
  border-color: #ebccd1;
}

label.checkbox-label input[type=checkbox], label.checkbox-label input[type=radio], input.input-checkbox{
  position: relative;
  vertical-align: middle;
  margin-top: 2px;
}

img {
  border: 0px;
}

a {
  cursor: pointer;
}

a:link, a:visited {
  color: #666666;
  text-decoration: none;
}

a:active, a:hover  {
  color: black;
  text-decoration: none;
}

h1 {
  text-align: left;
  color: black;
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 24px;
  margin-top: 24px;
}

h2 {
  text-align: left;
  color: black;
  font-size: 20px;
  font-weight: bold;
}

h3 {
  text-align: left;
  color: black;
  font-size: 18px;
  font-weight: bold;
}

.npp {
  text-align: left;
  float: left;
  margin-top: 15px;
}

.title {
  min-height: 30px;
}

.zone  {
  background-color: white;
  padding: 5px;
  margin: 5px 0px 5px 0px;
}

.backoffice-page-surface,
.route-page-surface,
.dashboard-page-surface {
  background-color: #ffffff;
  padding: 16px;
  margin: 5px 0;
  min-height: calc(100vh - 120px);
}

.dashboard-hero {
  background: #ffffff;
  border: 1px solid #e7e9dc;
  padding: 18px 20px;
  margin-bottom: 18px;
}

.dashboard-hero h1 {
  margin-top: 0;
  margin-bottom: 10px;
}

.dashboard-intro {
  margin-bottom: 0;
}

.route-hero {
  background: linear-gradient(135deg, #f7f8f2 0%, #ffffff 65%);
  border: 1px solid #d7d9c8;
  padding: 18px 20px;
  margin-bottom: 18px;
}

.route-eyebrow {
  color: #6d7753;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.route-page-title {
  margin: 0 0 8px 0;
}

.route-page-description {
  margin-bottom: 0;
  max-width: 720px;
}

.route-hero-machine {
  background: #edf6e7;
  border: 1px solid #cfe2bf;
  border-left: 4px solid #3a7d44;
  display: inline-block;
  margin: 0 0 12px 0;
  padding: 10px 14px;
}

.route-hero-machine-label {
  color: #527135;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
  text-transform: uppercase;
}

.route-hero-machine-value {
  color: #214b29;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

.route-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
}

.route-summary-card {
  background: #ffffff;
  border: 1px solid #dfe3d1;
  color: inherit;
  display: block;
  height: 100%;
  min-height: 110px;
  padding: 14px 16px;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.route-summary-card:hover {
  border-color: #bcc59f;
  box-shadow: 0 8px 20px rgba(79, 90, 48, 0.08);
  color: inherit;
  text-decoration: none;
  transform: translateY(-1px);
}

.route-summary-card.active {
  border-color: #88a13c;
  box-shadow: inset 0 0 0 2px #88a13c;
}

.route-summary-card--success {
  border-top: 3px solid #3a7d44;
}

.route-summary-card--warning {
  border-top: 3px solid #c48718;
}

.route-summary-card--info {
  border-top: 3px solid #2c7fb8;
}

.route-summary-card--secondary,
.route-summary-card--neutral {
  border-top: 3px solid #7b8561;
}

.route-summary-card--accent {
  border-top: 3px solid #567a22;
}

.route-summary-label {
  color: #6d7753;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.route-summary-value {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.05;
}

.route-multi-select {
  min-height: 220px;
}

.route-selection-toolbar {
  background: #f5f6ef;
  border: 1px solid #d7d9c8;
  box-shadow: 0 8px 18px rgba(79, 90, 48, 0.08);
  position: sticky;
  padding: 10px 12px;
  margin-bottom: 12px;
  top: 10px;
  z-index: 10;
}

.route-selection-toolbar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.route-selection-count {
  font-size: 14px;
  line-height: 1.6;
}

.route-selection-summary {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
}

.route-selection-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
}

.route-selection-fixed-value {
  background: #ffffff;
  border: 1px solid #d7d9c8;
  padding: 5px 10px;
  line-height: 1.5;
}

.route-selection-helper {
  color: #5f654a;
  flex-basis: 100%;
  font-size: 13px;
}

.route-form-zone,
.route-items-zone,
.route-add-zone {
  border: 1px solid #e3e6d8;
  padding: 16px 18px;
}

.route-filter-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.route-filter-chip {
  align-items: center;
  background: #f5f6ef;
  border: 1px solid #d7d9c8;
  border-radius: 999px;
  color: #46512c;
  display: inline-flex;
  font-size: 13px;
  gap: 6px;
  padding: 6px 10px;
}

.route-filter-chip--active {
  background: #eef5dc;
  border-color: #b8c98b;
}

.route-filter-chip--link {
  text-decoration: none;
}

.route-inline-filter {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
}

.route-status-pill {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  gap: 4px;
  margin: 0 6px 6px 0;
  padding: 5px 10px;
}

.route-status-pill--neutral,
.route-status-pill--secondary {
  background: #eef0e5;
  color: #52603a;
}

.route-status-pill--info {
  background: #e6f2fb;
  color: #1f5f8a;
}

.route-status-pill--warning {
  background: #fff4df;
  color: #8d5b00;
}

.route-status-pill--success {
  background: #e7f6ea;
  color: #246332;
}

.route-table-responsive table.results thead th {
  background: #f8f9f2;
  position: sticky;
  top: 0;
  z-index: 1;
}

.route-row--secondary td {
  background: #fafbf7;
}

.route-row--info td {
  background: #eef7ff;
}

.route-row--warning td {
  background: #fff7e9;
}

.route-row--success td {
  background: #eef8ef;
}

.route-row-note {
  color: #6d747d;
  display: block;
  font-size: 12px;
  line-height: 1.35;
  margin-top: 4px;
}

.route-quick-actions {
  min-width: 180px;
}

.route-quick-actions .btn {
  margin-right: 6px;
}

.route-add-zone .selectize-control.multi .selectize-input {
  min-height: 220px;
}

.dispenser-activity-surface {
  background: linear-gradient(135deg, #f9faf4 0%, #ffffff 62%);
  border: 1px solid #e7e9dc;
  margin-bottom: 16px;
}

.dispenser-activity-hero {
  background: linear-gradient(135deg, #eef4e1 0%, #ffffff 70%);
}

.dispenser-activity-panel {
  border: 1px solid #e7e9dc;
}

.dispenser-bar-chart {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(14, minmax(28px, 1fr));
  min-height: 180px;
  padding: 16px 0 4px;
}

.dispenser-bar-chart-item {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: end;
  min-width: 0;
}

.dispenser-bar-value {
  color: #58613d;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 6px;
}

.dispenser-bar {
  background: linear-gradient(180deg, #7b8b55 0%, #cfd7b6 100%);
  border: 1px solid #6f7d4c;
  min-height: 4px;
  width: 100%;
}

.dispenser-bar-label {
  color: #666666;
  font-size: 11px;
  margin-top: 6px;
  white-space: nowrap;
}

@media (max-width: 991px) {
  .route-hero-meta {
    margin-top: 12px;
  }

  .route-inline-filter {
    margin-top: 8px;
  }

  .dispenser-bar-chart {
    gap: 6px;
    overflow-x: auto;
  }

  .dispenser-bar-chart-item {
    min-width: 34px;
  }
}

.lang {
  float: right;
  font-size: 10px;
}

.language_selected {
  font-weight: bold;
}

.exit {
  float: right;
}

.message, .greenmessage {
  color: green;
  font-weight: bold;
}

.redmessage {
  color: red;
  font-weight: bold;
}

table.results {
  width: 100%;
  border: solid 1px #666666;
  margin-bottom: 15px;
}

table.results tr th , table.results tr td {
  padding: 10px;
}

table.results tr th {
  font-weight: bold;
  border-bottom: solid 1px black;
}

table.results tr.final th {
  border-bottom: 0px;
  border-top: solid 1px black;
}

.color1, table.results tbody tr:nth-child(2n+1) {
  background-color: #ced0bf;
}

.color2, table.results tbody tr:nth-child(2n) {
  background-color: #ffffff;
}

td img {
  vertical-align: middle;
}

fieldset {
  width: 100%;
  border: 0px;
}

/* pager */
.total-items {
  clear: both;
  padding-top: 20px;
  font-size: 16px;
  line-height: 16px;
}

.web-pager {
  clear: both;
  padding-top: 20px;
  font-size: 16px;
  line-height: 16px;
}

.web-pager a {
  margin-right: 10px;
  margin-bottom: 10px;
  font-size: 16px;
}

.web-pager a.current-pag {
  font-weight: bold;
}

a.current_pag, a.current_pag:visited {
  font-weight: bold;
  background: #ced0bf;
}

table.results input[type=checkbox], table.results input[type=radio], input.input-checkbox{
  position: relative;
  vertical-align: middle;
  bottom: 3px;
}

/* Bootstrap Overwrite */

.navbar {
  margin-bottom: 5px;
}

.navbar-default .navbar-collapse,
.navbar-default .navbar-form {
  border-color: transparent;
}

.navbar-top {
  background: white;
  margin-bottom: 5px;
  border: 0px;
  border-radius: 0px;
  position: relative;
  top: 0px;
}

.navbar-top nav ul {
  margin-top: 0px;
}

.navbar-header {
  width: auto;
  height: auto;
}

.navbar-menu {
  background-color: #ffffff;
  min-height: 50px;
}

.navbar-right {
  float: right !important;
}

.navbar-filter {
  padding-top: 5px;
}

.main-menu {
  font-size: 18px;
}

@media (min-width: 992px) {
  .main-menu {
    padding-left: 50px;
  }
}

.nav-link {
  color:black !important;
}

li.active .nav-link {
  font-weight:bold;
}

li.separator {
  padding: 5px;
  padding-top: 7px;
}

.toast {
  opacity: 1 !important;
}

.login {
  text-align: center;
}

.btn {
  font-size: 18px;
  margin-bottom: 10px;
}

.btn-primary, a.btn-primary, .btn-primary:hover, .btn-primary:active, .btn-primary:focus, .btn-primary[disabled] {
  background: #ced0bf;
  border-color: #ced0bf;
  color: #000000;
}

.btn-primary:hover, .btn-primary:active, .btn-primary:focus, .btn-primary:not(:disabled):not(.disabled).active, .btn-primary:not(:disabled):not(.disabled):active, .show > .btn-primary.dropdown-toggle {
  background: #ced0bf;
  border-color: #ced0bf;
  box-shadow: 0 0 0 .2rem rgba(206,208,191,.5);
  color: #000000;
}

a.btn-secondary {
  color: #ffffff;
}

.btn-apats {
  width: 100%;
  min-height: 100px;
  font-size: 24px;
  line-height: 30px;
}

.btn-apats-selected {
  border-color: #666666 !important;
  border-width: 5px !important;
  box-shadow: 0px !important;
}

.btn-imprimir, a.btn-imprimir {
  height: 100px;
  font-size: 24px;
  line-height: 30px;
}

.btn-imprimir:before {
  content: "";
  display: inline-block;
  vertical-align: middle;
  height: 100%;
}

.inner {
  display: inline-block;
  vertical-align: middle;
}

.btn-green, a.btn-green, .btn-green:hover, .btn-green:focus, .btn-green:active {
  background: #51A351 !important;
}

.btn-green:hover, .btn-green:focus, .btn-green:active {
  border-color: #51A351 !important;
  box-shadow: 0 0 0 .2rem rgba(81,163,81,.5) !important;
}

.btn-orange, a.btn-orange, .btn-orange:hover, .btn-orange:focus, .btn-orange:active {
  background: #ff9e1b !important;
}

.btn-orange:hover, .btn-orange:focus, .btn-orange:active {
  border-color: #ff9e1b !important;
  box-shadow: 0 0 0 .2rem rgba(255,159,27,.5) !important;
}

.btn-danger {
  color: #ffffff !important;
}

.btn-action {

}

.form-control:focus {
  border-color: #ced0bf;
  box-shadow: 0 0 0 .2rem rgba(206,208,191,.5);
}

.btn {
  border-color: gray;
}

.oneless {
  visibility: hidden;
}

.multiple-items .oneless {
	visibility: visible;
}

table.membresFamilia tr td {
  vertical-align: top;
}

table.membresFamilia tr td.button {
  vertical-align: middle;
}

table.membresFamilia tr th.membre, table.membresFamilia tr td.membre {
  padding: 5px;
}

table.membresFamilia tr td.edat {
  padding-top: 12px;
}

.modal-confirm {
  font-size: 20px;
  line-height: 25px;
}

.text-recollida {
  padding: 30px;
  background-color: #ffc000;
  font-size:24px;
  border: solid 1px #000000;
}

.devel {
  background: #ffbebe;
}

.import-error {
  color: #a94442;
}

.import-success {
  color: #51A351;
}

signature-container img {
  border: solid 1px gray;
  margin: 10px auto;
}

#signModal .draw-container {
  border: solid 1px gray;
  margin: 10px auto;
  /* max-width: 90%; */
  width: 300px;
  height: 300px;
}
#signModal .signature-help {
  color: darkgray;
  font-size: 0.9em;
  padding: 5px 20px 10px;
  text-align: center;
}
