/* ESTILOS GENERALES */

@import url("https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");
:root {
  --background-body: #fffdf9;
  --background-body-hover: #f5f3ef;

  /* tailwind colors */
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;

  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  --zinc-50: #fafafa;
  --zinc-100: #f4f4f5;
  --zinc-200: #e4e4e7;
  --zinc-300: #d4d4d8;
  --zinc-400: #a1a1aa;
  --zinc-500: #71717a;
  --zinc-600: #52525b;
  --zinc-700: #3f3f46;
  --zinc-800: #27272a;
  --zinc-900: #18181b;

  --neutral-50: #fafafa;
  --neutral-100: #f5f5f5;
  --neutral-200: #e5e5e5;
  --neutral-300: #d4d4d4;
  --neutral-400: #a3a3a3;
  --neutral-500: #737373;
  --neutral-600: #525252;
  --neutral-700: #404040;
  --neutral-800: #262626;
  --neutral-900: #171717;

  --stone-50: #fafaf9;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --stone-300: #d6d3d1;
  --stone-400: #a8a29e;
  --stone-500: #78716c;
  --stone-600: #57534e;
  --stone-700: #44403c;
  --stone-800: #292524;
  --stone-900: #1c1917;

  --red-50: #fef2f2;
  --red-100: #fee2e2;
  --red-200: #fecaca;
  --red-300: #fca5a5;
  --red-400: #f87171;
  --red-500: #ef4444;
  --red-600: #dc2626;
  --red-700: #b91c1c;
  --red-800: #991b1b;
  --red-900: #7f1d1d;

  --orange-50: #fff7ed;
  --orange-100: #ffedd5;
  --orange-200: #fed7aa;
  --orange-300: #fdba74;
  --orange-400: #fb923c;
  --orange-500: #f97316;
  --orange-600: #ea580c;
  --orange-700: #c2410c;
  --orange-800: #9a3412;
  --orange-900: #7c2d12;

  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-300: #fcd34d;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --amber-800: #92400e;
  --amber-900: #78350f;

  --yellow-50: #fefce8;
  --yellow-100: #fef9c3;
  --yellow-200: #fef08a;
  --yellow-300: #fde047;
  --yellow-400: #facc15;
  --yellow-500: #eab308;
  --yellow-600: #ca8a04;
  --yellow-700: #a16207;
  --yellow-800: #854d0e;
  --yellow-900: #713f12;

  --lime-50: #f7fee7;
  --lime-100: #ecfccb;
  --lime-200: #d9f99d;
  --lime-300: #bef264;
  --lime-400: #a3e635;
  --lime-500: #84cc16;
  --lime-600: #65a30d;
  --lime-700: #4d7c0f;
  --lime-800: #3f6212;
  --lime-900: #365314;

  --green-50: #f0fdf4;
  --green-100: #dcfce7;
  --green-200: #bbf7d0;
  --green-300: #86efac;
  --green-400: #4ade80;
  --green-500: #22c55e;
  --green-600: #16a34a;
  --green-700: #15803d;
  --green-800: #166534;
  --green-900: #14532d;

  --emerald-50: #ecfdf5;
  --emerald-100: #d1fae5;
  --emerald-200: #a7f3d0;
  --emerald-300: #6ee7b7;
  --emerald-400: #34d399;
  --emerald-500: #10b981;
  --emerald-600: #059669;
  --emerald-700: #047857;
  --emerald-800: #065f46;
  --emerald-900: #064e3b;

  --teal-50: #f0fdfa;
  --teal-100: #ccfbf1;
  --teal-200: #99f6e4;
  --teal-300: #5eead4;
  --teal-400: #2dd4bf;
  --teal-500: #14b8a6;
  --teal-600: #0d9488;
  --teal-700: #0f766e;
  --teal-800: #115e59;
  --teal-900: #134e4a;

  --cyan-50: #ecfeff;
  --cyan-100: #cffafe;
  --cyan-200: #a5f3fc;
  --cyan-300: #67e8f9;
  --cyan-400: #22d3ee;
  --cyan-500: #06b6d4;
  --cyan-600: #0891b2;
  --cyan-700: #0e7490;
  --cyan-800: #155e75;
  --cyan-900: #164e63;

  --sky-50: #f0f9ff;
  --sky-100: #e0f2fe;
  --sky-200: #bae6fd;
  --sky-300: #7dd3fc;
  --sky-400: #38bdf8;
  --sky-500: #0ea5e9;
  --sky-600: #0284c7;
  --sky-700: #0369a1;
  --sky-800: #075985;
  --sky-900: #0c4a6e;

  --blue-50: #eff6ff;
  --blue-100: #dbeafe;
  --blue-200: #bfdbfe;
  --blue-300: #93c5fd;
  --blue-400: #60a5fa;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --blue-800: #1e40af;
  --blue-900: #1e3a8a;

  --indigo-50: #eef2ff;
  --indigo-100: #e0e7ff;
  --indigo-200: #c7d2fe;
  --indigo-300: #a5b4fc;
  --indigo-400: #818cf8;
  --indigo-500: #6366f1;
  --indigo-600: #4f46e5;
  --indigo-700: #4338ca;
  --indigo-800: #3730a3;
  --indigo-900: #312e81;

  --violet-50: #f5f3ff;
  --violet-100: #ede9fe;
  --violet-200: #ddd6fe;
  --violet-300: #c3b5fd;
  --violet-400: #a78bfa;
  --violet-500: #8b5cf6;
  --violet-600: #7c3aed;
  --violet-700: #6d28d9;
  --violet-800: #5b21b6;
  --violet-900: #4c1d95;

  --purple-50: #faf5ff;
  --purple-100: #f3e8ff;
  --purple-200: #e9d5ff;
  --purple-300: #d8b4fe;
  --purple-400: #c084fc;
  --purple-500: #a855f7;
  --purple-600: #9333ea;
  --purple-700: #7e22ce;
  --purple-800: #6b21a8;
  --purple-900: #581c87;

  --fuchsia-50: #fdf4ff;
  --fuchsia-100: #fae8ff;
  --fuchsia-200: #f5d0fe;
  --fuchsia-300: #f0abfc;
  --fuchsia-400: #e879f9;
  --fuchsia-500: #d946ef;
  --fuchsia-600: #c026d3;
  --fuchsia-700: #a21caf;
  --fuchsia-800: #86198f;
  --fuchsia-900: #701a75;

  --pink-50: #fdf2f8;
  --pink-100: #fce7f3;
  --pink-200: #fbcfe8;
  --pink-300: #f9a8d4;
  --pink-400: #f472b6;
  --pink-500: #ec4899;
  --pink-600: #db2777;
  --pink-700: #be185d;
  --pink-800: #9d174d;
  --pink-900: #831843;

  --rose-50: #fff1f2;
  --rose-100: #ffe4e6;
  --rose-200: #fecdd3;
  --rose-300: #fda4af;
  --rose-400: #fb7185;
  --rose-500: #f43f5e;
  --rose-600: #e11d48;
  --rose-700: #be123c;
  --rose-800: #9f1239;
  --rose-900: #881337;

  /* end tailwind colors */
  --xs: 14px;
  --sm: 16px;
  --md: 18px;
  --lg: 20px;
  --xl: 25px;
}
* {
  margin: 0;
  box-sizing: border-box;
  font-family: "Nunito", sans-serif;
  border: none;
}

body,
html {
  font-family: "Nunito", sans-serif;
  padding: 0;
  overflow-y: hidden;
  overflow-x: hidden;
}
body {
  max-width: 100vw;
  max-height: 100vh;
  background-color: var(--gray-700);
}
a {
  text-decoration: none;
}
.app-container {
  max-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
/* FIN ESTILOS GENERALES */

/* HEADER */

header {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  background-color: var(--background-body);
  max-width: 600px;
  width: 100%;
}

::-webkit-scrollbar {
  display: none;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  width: 100%;
  max-width: 600px;
  position: relative;
}
.navbar div:nth-child(1) {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background-color: var(--gray-200);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  align-self: flex-start;
  z-index: 2;
  cursor: pointer;
  transition: 200ms;
}
.navbar div:nth-child(1):hover {
  background-color: var(--gray-300);
}
.navbar div:nth-child(2) {
  position: absolute;
  top: 10px;
  width: auto;
  z-index: auto;
}
.navbar div > input {
  margin: 0;
  background: var(--gray-50);
  width: 40px;
  height: 40px;
  padding: 0;
  font-size: var(--md);
  border: none;
  border-radius: 20px;
  transition: 500ms;
  max-width: 570px;
}
.navbar div > input:focus {
  outline: none;
}
.navbar div > input::-webkit-search-cancel-button {
  margin-left: 6px;
}
.navbar div > input.show {
  padding: 0 10px 0 45px;
  box-shadow: 1px 2px 4px 0px #0000004d;
  width: 570px;
}
.navbar div:nth-child(3) {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.navbar div:nth-child(3) p {
  font-size: var(--sm);
  font-weight: 700;
  color: var(--gray-400);
}
.navbar div:nth-child(3) h1 {
  font-size: 28px;
  color: var(--sky-600);
}
/* CLIENTE - PROVEEDOR */
.add-option {
  height: 40px;
  width: 40px;
  place-content: center;
  display: grid;
  align-self: flex-start;
  background-color: var(--gray-200);
  border-radius: 8px;
  font-size: var(--xl);
  font-weight: 700;
  color: var(--gray-600);
  cursor: pointer;
  border: none;
  transition: 200ms;
}
.add-option:hover {
  background-color: var(--gray-300);
}

.cliente_proveedor {
  opacity: 0;
  display: none;
  position: absolute;
  top: 60px;
  right: 25px;
  z-index: 2;
  color: var(--gray-500);
  font-size: var(--md);
  transition: opacity 200ms linear;
}
.cliente_proveedor ul {
  border-radius: 8px;
  overflow: hidden;
  /* border: 2px solid var(--gray-300); */
}
.cliente_proveedor ul li {
  padding: 8px 16px 12px;
  cursor: pointer;
  background-color: var(--gray-200);
  transition: 200ms;
}
.cliente_proveedor ul li:hover {
  background-color: var(--gray-300);
}
.cliente_proveedor ul li:nth-child(1) {
  padding: 12px;
  /* border-bottom: 1px solid var(--gray-300); */
}

/* FIN HEADER */

/* OPCIONES PRINCIPALES */
ul {
  list-style: none;
  padding: 0;
}
.scroll-container {
  overflow-y: scroll;
  height: calc(100vh - 130px);
  background-color: var(--background-body);
  max-width: 600px;
  width: 100%;
}
.index-options ul {
  margin-top: 35px;
  display: flex;
  width: 100%;
  gap: 12px;
  justify-content: center;
}
.index-options ul li {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 70px;
  cursor: pointer;
}
.index-options ul li div {
  width: 55px;
  height: 55px;
  font-size: 30px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 200ms;
}
.index-options ul li:nth-child(1) div {
  color: var(--purple-500);
  background-color: var(--purple-50);
}
.index-options ul li:nth-child(1):hover div {
  background-color: var(--purple-100);
}

.index-options ul li:nth-child(2) div {
  color: var(--green-500);
  background-color: var(--green-50);
}
.index-options ul li:nth-child(2):hover div {
  background-color: var(--green-100);
}

.index-options ul li:nth-child(3) div {
  color: var(--orange-500);
  background-color: var(--orange-50);
}
.index-options ul li:nth-child(3):hover div {
  background-color: var(--orange-100);
}

.index-options ul li:nth-child(4) div {
  color: var(--blue-500);
  background-color: var(--blue-50);
}
.index-options ul li:nth-child(4):hover div {
  background-color: var(--blue-100);
}

.index-options ul li p {
  margin-top: 8px;
  font-size: var(--sm);
  font-weight: 600;
  color: var(--gray-400);
  margin-left: -10px;
}

/* FIN OPCIONES PRINCIPALES */

/* ULTIMOS MOVIMIENTOS */
.sin-movimientos {
  display: none;
  place-content: center;
  padding: 30px;
  color: var(--gray-500);
  text-align: center;
}
.sin-movimientos p {
  font-size: 50px;
}
.ultimos-movimientos {
  margin-left: auto;
  margin-right: auto;
  margin-top: 30px;
  max-width: 600px;
}
.ultimos-movimientos > p {
  text-align: left;
  margin-left: 24px;
  font-size: var(--lg);
  font-weight: 600;
  color: var(--gray-400);
}
.ultimos-movimientos ul {
  margin-top: 8px;
}
.ultimos-movimientos ul li {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 0;
  padding: 8px 20px;
  align-items: center;
  border-bottom: 1px solid var(--gray-100);
  transition: 200ms;
}
.ultimos-movimientos ul li:hover {
  background-color: var(--gray-50);
  cursor: pointer;
}
.movimiento-icon {
  display: grid;
  place-content: center;
  text-align: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  /* background-color: var(--gray-100); */
  color: var(--gray-500);
}
.movimiento-icon ion-icon {
  font-size: var(--xl);
}

.ultimos-movimientos ul li.ingreso.venta .movimiento-icon {
  color: var(--purple-400);
}
.ultimos-movimientos ul li.ingreso.cobro .movimiento-icon {
  color: var(--green-400);
}
.ultimos-movimientos ul li.compra .movimiento-icon {
  color: var(--orange-400);
}
.ultimos-movimientos ul li.pago .movimiento-icon {
  color: var(--blue-400);
}

.ultimos-movimientos ul li div p:nth-child(1) {
  font-size: var(--md);
  font-weight: 700;
  color: var(--gray-600);
}
.ultimos-movimientos ul li div p:nth-child(2) {
  font-size: var(--sm);
  font-weight: 600;
  color: var(--gray-400);
}
.ultimos-movimientos ul li > p {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: var(--md);
  font-weight: 700;
  color: var(--neutral-700);
}
.ultimos-movimientos ul li > p span {
  color: var(--neutral-400);
}

.ultimos-movimientos ul li.ingreso > p {
  /* background-color: var(--lime-50); */
  /* color: var(--lime-600); */
  max-height: 35px;
  display: flex;
  align-items: center;
}
/* .ultimos-movimientos ul li.ingreso > p span {
  color: var(--lime-500);
} */
/* FIN ULTIMOS MOVIMIENTOS */
/* FOOTER */
footer {
  position: static;
  bottom: 0;
  display: flex;
  justify-content: center;
  width: 100%;
}
footer ul {
  display: grid;
  width: 600px;
  z-index: 1;
  grid-template-columns: repeat(4, 1fr);
  box-shadow: 0px -3px 12px -8px #78350f80;
}
footer ul li {
  display: flex;
  height: 50px;
  font-size: var(--xs);
  font-weight: 400;
  background-color: var(--background-body);
  color: var(--gray-500);
  align-items: center;
  justify-content: center;
  transition: 200ms;
}
footer ul li:hover {
  background-color: var(--background-body-hover);
  cursor: pointer;
}

/* FIN FOOTER */

/* MODALES */
#modal-container {
  position: absolute;
  width: 100%;
  height: 100vh;
  display: none;
  place-content: center;
  background-color: transparent;
  z-index: 3;
}
#modal-container.show {
  display: grid;
}
.opacity {
  position: absolute;
  display: none;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.222);
  opacity: 0;
  transition: opacity 250ms linear;
  z-index: 3;
}
.opacity.show {
  display: block;
}
.modal {
  z-index: 4;
  opacity: 0;
  background: var(--background-body);
  padding: 30px;
  max-width: 80vw;
  max-height: 70vh;
  border-radius: 12px;
  display: none;
  box-sizing: border-box;
  transition: opacity 250ms linear;
  box-shadow: 0px 3px 7px 2px #00000036;
}
.head-modal {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}
.head-modal > div {
  background-color: var(--gray-300);
  font-size: 25px;
  height: 30px;
  width: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
}
.head-modal div ion-icon {
  color: var(--gray-900);
}
.form {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr auto;
  gap: 18px;
  grid-template-areas:
    "column1 column2"
    "btn btn";

  border-top: var(--stone-100) 2px solid;
}
.form div {
  display: flex;
  flex-direction: column;
}
.form div:nth-child(1) {
  grid-area: column1;
}
.form div:nth-child(2) {
  grid-area: column2;
}
.form div label {
  margin: 12px 0 4px 0;
  font-size: var(--md);
  font-weight: 500;
  color: var(--gray-800);
}
.form div input,
.modal-select {
  cursor: pointer;
  display: inline-block;
  position: relative;

  background-color: var(--gray-200);
  border: none;
  font-size: var(--sm);
  padding: 8px 12px;
  border-radius: 8px;
  height: 40px;
  width: 100%;
}
option {
  background-color: var(--gray-100);
  font-weight: 500;
  display: block;
  white-space: nowrap;
}
option > li {
  padding: 10px;
}
.amount-container {
  display: flex;
  flex-direction: row !important;
  align-items: center;
}
.input-icon {
  background-color: var(--gray-200);
  width: 40px;
  height: 40px;
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--gray-600);
  font-size: var(--md);
}

.form div input#date {
  min-height: 40px;
}
.form div .amount-container input {
  width: calc(100% - 40px);
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.modal-btn {
  margin-top: 10px;
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-size: var(--md);
  cursor: pointer;
  grid-area: btn;
  background-color: var(--gray-700);
  color: var(--gray-100);
}
#modal1 .modal-btn {
  background-color: var(--purple-600);
  color: var(--purple-50);
}
#modal2 .modal-btn {
  background-color: var(--green-600);
  color: var(--green-50);
}
#modal3 .modal-btn {
  background-color: var(--orange-600);
  color: var(--orange-50);
}
#modal4 .modal-btn {
  background-color: var(--blue-600);
  color: var(--blue-50);
}
.show {
  display: block;
}
.visuallyshow {
  opacity: 1;
}

/* FIN MODALES */
@media (min-width: 600px) {
  header {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
  }
}
@media (max-width: 600px) {
  .navbar div > input.show {
    width: calc(100vw - 20px);
  }
  .modal {
    min-width: 100vw;
    min-height: 100vh;
    border-radius: 0;
    padding: 22px;
    overflow: scroll;
  }
  .head-modal {
    position: absolute;
    width: calc(100% - 40px);
    top: 0;
    padding: 20px 0 10px;
    background: var(--background-body);
    border-bottom: var(--stone-100) 2px solid;
  }
  .form {
    padding-top: 30px;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    grid-template-areas: "column1" "column2" "btn";
    gap: 12px;
  }
  .form div label {
    margin: 20px 0 8px 0;
  }
  .modal-btn {
    max-height: 50px;
  }
}

@media (max-width: 375px) {
  .index-options ul {
    gap: 8px;
  }

  .index-options ul li {
    width: 65px;
  }
  .index-options ul li p {
    font-size: var(--xs) !important;
  }
}

@media (max-width: 300px) {
  .navbar div:nth-child(1) {
    width: 30px;
    height: 30px;
  }
  .navbar div > input {
    width: 30px;
    height: 30px;
  }
  .navbar div:nth-child(3) p {
    font-size: var(--xs);
  }
  .navbar div:nth-child(3) h1 {
    font-size: 22px;
  }
  .add-option {
    width: 30px;
    height: 30px;
  }
  .index-options ul {
    margin-top: 20px;
    gap: 0;
  }
  .index-options ul li div {
    width: 40px;
    height: 40px;
    font-size: 25px;
  }
  .index-options ul li p {
    font-size: var(--xs);
  }
  .ultimos-movimientos > p {
    font-size: var(--md);
  }
  .ultimos-movimientos ul li div p:nth-child(1) {
    font-size: var(--sm);
  }
  .ultimos-movimientos ul li div p:nth-child(2) {
    font-size: var(--xs);
  }
  .ultimos-movimientos ul li > p {
    font-size: var(--sm);
  }
  .scroll-container {
    height: calc(100vh - 119px);
  }
}

@media (max-height: 700px) and (min-width: 600px) {
  .form {
    max-height: calc(100% - 40px);
    overflow-y: scroll;
  }
}

@media (min-height: 620px) and (max-width: 600px) {
  #modal4,
  #modal2 {
    position: relative;
  }
  #modal4 .modal-btn,
  #modal2 .modal-btn {
    position: absolute;
    width: calc(100% - 40px);
    left: 20px;
    bottom: 20px;
  }
}
@media (min-height: 710px) and (max-width: 600px) {
  #modal1,
  #modal3,
  #addEmpresa,
  #editEmpresa {
    position: relative;
  }
  #modal1 .modal-btn,
  #modal3 .modal-btn,
  #addEmpresa .modal-btn,
  #editEmpresa .modal-btn {
    position: absolute;
    width: calc(100% - 40px);
    left: 20px;
    bottom: 20px;
  }
}

@media (max-height: 560px) {
  .modal {
    min-width: 100vw;
    min-height: 100vh;
    border-radius: 0;
    padding: 22px;
    overflow: scroll;
  }
  .head-modal {
    position: absolute;
    width: calc(100% - 40px);
    top: 0;
    padding: 20px 0 10px;
    background: var(--background-body);

    border-bottom: var(--stone-100) 2px solid;
  }
  .form {
    padding-top: 30px;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    grid-template-areas: "column1" "column2" "btn";
    gap: 12px;
  }
  .form div label {
    margin: 20px 0 8px 0;
  }
  .modal-btn {
    max-height: 50px;
  }
}
