@import "https://unpkg.com/leaflet@1.9.4/dist/leaflet.css";

@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
  :root {
    --background: 0 0% 100%;
    --foreground: 222.2 84% 4.9%;
    --color-primary: #3e78bc;
    --color-primary-shade-1: rgba(62, 121, 188, 0.8);
    --color-primary-shade-2: rgba(62, 121, 188, 0.7);
    --color-primary-shade-3: rgba(62, 121, 188, 0.5);
    --color-primary-shade-4: #ecf2f8;

    --card: 0 0% 100%;
    --card-foreground: 222.2 84% 4.9%;

    --popover: 0 0% 100%;
    --popover-foreground: 222.2 84% 4.9%;

    --primary: 222.2 47.4% 11.2%;
    --primary-foreground: 210 40% 98%;

    --secondary: 210 40% 96.1%;
    --secondary-foreground: 222.2 47.4% 11.2%;

    --muted: 210 40% 96.1%;
    --muted-foreground: 215.4 16.3% 46.9%;

    --accent: 210 40% 96.1%;
    --accent-foreground: 222.2 47.4% 11.2%;

    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 210 40% 98%;

    --border: 214.3 31.8% 91.4%;
    --input: 214.3 31.8% 91.4%;
    --ring: 222.2 84% 4.9%;

    --radius: 0.5rem;
  }

  .dark {
    --background: 222.2 84% 4.9%;
    --foreground: 210 40% 98%;

    --card: 222.2 84% 4.9%;
    --card-foreground: 210 40% 98%;

    --popover: 222.2 84% 4.9%;
    --popover-foreground: 210 40% 98%;

    --primary: 210 40% 98%;
    --primary-foreground: 222.2 47.4% 11.2%;

    --secondary: 217.2 32.6% 17.5%;
    --secondary-foreground: 210 40% 98%;

    --muted: 217.2 32.6% 17.5%;
    --muted-foreground: 215 20.2% 65.1%;

    --accent: 217.2 32.6% 17.5%;
    --accent-foreground: 210 40% 98%;

    --destructive: 0 62.8% 30.6%;
    --destructive-foreground: 210 40% 98%;

    --border: 217.2 32.6% 17.5%;
    --input: 217.2 32.6% 17.5%;
    --ring: 212.7 26.8% 83.9%;
  }
}

@layer base {
  button {
    @apply disabled:cursor-not-allowed disabled:opacity-75;
  }
}

@layer components {
  .heading-h1 {
    @apply text-2xl font-bold font-serif;
  }
  .btn-primary {
    @apply transition-all bg-color-primary text-white text-sm px-2 py-1 font-serif rounded-sm cursor-pointer hover:opacity-70;
  }
  .btn-primary-1 {
    @apply inline-flex text-white items-center py-2.5 px-6 ms-2 text-sm font-serif bg-color-primary hover:bg-color-primary focus:ring-4 focus:outline-none focus:ring-color-primary_shade-3;
  }

  .required-field {
    @apply after:content-['*'] after:ml-0.5 after:text-red-600;
  }

  .email-editor p {
    @apply text-lg;
  }
}

/* width */
::-webkit-scrollbar {
  width: 8px;
}

/* Track */
::-webkit-scrollbar-track {
  background: #f1f1f1;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: #888;

  border-radius: 2px 2px 5px 5px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.sidebar::-webkit-scrollbar {
  width: 0px;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

/* .focus-visible\:ring-offset-2:focus-visible {
  offset-distance: 1px !important;
  color: var(var(--color-primary)) !important;
} */

input[type="checkbox"] {
  accent-color: var(--color-primary);
  padding: 0.3rem;
}

.btn-active {
  color: var(--color-primary-shade-3);
}

.btn-active::after {
  content: "";
  display: block;
  width: 100%;
  height: 3px;
  background: var(--color-primary-shade-3);

  transition: width 0.3s;
}

.file-preview path {
  stroke-width: 1.1px !important;
}

.active {
  background-color: var(--color-primary-shade-4);
  color: var(--color-primary);
  font-weight: 600;
}
.active svg path {
  stroke: var(--color-primary) !important;
}
.recharts-sector {
  outline: 0;
}

/* .table_modify {
  border: 1px solid #ccc;
  border-collapse: collapse;
  margin: 0;
  padding: 0;
  width: 100%;
  /* table-layout: fixed;
}   */

.stores > div {
  cursor: pointer;
}
.icon-heart {
}

.leaflet-control-container {
  position: absolute;
  right: 56px;
}

.product__thumbnails img {
  height: 70px;
  width: auto !important;
}

.leaflet-popup-content p {
  margin: 10px 0 !important;
}

.leaflet-container a {
  color: #444 !important;
}
.leaflet-container .leaflet-marker-pane img,
.leaflet-container .leaflet-shadow-pane img,
.leaflet-container .leaflet-tile-pane img,
.leaflet-container img.leaflet-image-layer,
.leaflet-container .leaflet-tile {
  width: auto !important;
}

.rbc-today {
  background-color: #f1f3f5 !important;
}
.rbc-day-bg + .rbc-day-bg {
  cursor: pointer;
}
.rbc-off-range-bg {
  background-color: #fafaf9 !important;
}

.loader {
  border: 4px solid rgba(0, 0, 0, 0.1);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border-left-color: var(--color-primary);
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

table th {
  font-weight: 600 !important;
}

@media (max-width: 600px) {
  .product__thumbnails img {
    height: 50px;
  }
}
/* table caption {
  font-size: 1.5rem;
  margin: 0.5em 0 0.75em;
  text-align: left;
}

table tr {
  background-color: #f8f8f8;
  border: 1px solid #ddd;
  padding: 0.35em;
}

table th,
table td {
  padding: 0.625em;
  border: 1px solid #ddd;
}

table th {
  text-align: left;
}

@media screen and (max-width: 1024px) {
  table {
    border: 0;
  }

  table caption {
    font-size: 1.3em;
  }

  table thead {
    border: none;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
  }

  table tr {
    border-bottom: 3px solid #ddd;
    display: block;
    margin-bottom: 0.625em;
  }

  table td {
    border-bottom: 1px solid #ddd;
    display: block;
    font-size: 1em;
    text-align: right !important;
  }

  table td::before {
    /*
    * aria-label has no advantage, it won't be read inside a table
    content: attr(aria-label);
   
    content: attr(data-label);
    float: left;
    font-weight: bold;
  }

  table td:last-child {
    border-bottom: 0;
  }
}  */

.leaflet-popup {
  opacity: 1 !important;
}

.rbc-event,
.rbc-day-slot .rbc-background-event {
  background-color: #555;
  text-align: center !important;
}

.magnifier-container {
  position: relative;
  background-color: #fff;
}

.magnifier-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.magnifier-large-container {
  position: absolute;

  display: none;
  background-color: #fff;
}

@media (max-width: 700px) {
  .magnifier-container {
    height: 350px !important;
    width: 100% !important;
  }
}

.magnifier-img.large {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform-origin: top left;
  pointer-events: none;
}

.magnifier-lens {
  position: absolute;
  width: 100px;
  height: 100px;
  border: 1px solid #000;

  background-color: rgba(255, 255, 255, 0.3);
  display: none;
  pointer-events: none;
}

.magnifier-container {
  position: relative;
}

.magnifier-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.magnifier-large-container {
  position: absolute;
  top: 0;
  left: 100%;
  overflow: hidden;
  display: none;
}

.magnifier-img.large {
  transform: scale(2);
  pointer-events: none;
}

.magnifier-lens {
  position: absolute;
  width: 100px;
  height: 100px;
  border: 1px solid #000;
  background-color: rgba(255, 255, 255, 0.3);
  display: none;
  pointer-events: none;
}

.leaflet-control-geocoder-form input {
  padding: 4px 12px;
  border: border solid #777;
}

.rdp {
  padding: 0 !important;
}

.street-number-label {
  background-color: white;
  border-radius: 3px;
  padding: 2px 4px;
  font-weight: bold;
  color: black;
  text-align: center;
}

.ql-editor {
  min-height: 250px;
}
