/*===== GOOGLE FONTS =====*/
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

/*===== VARIABLES CSS =====*/
:root {
  --header-height: 3rem;
  --nav-width: 68px;

  /*===== Colors =====*/
  --main-color: #ca5b3d;
  --main-color-light: #ffa58c;
  --main-color-gradient: linear-gradient(133deg, rgba(105, 124, 204, 100%) 50%, rgba(105, 117, 204, 80%) 100%) !important;
  --main-color-accent: #ca5b3d;
  --white-color: #fdfdfd;
  --white-color-gray: #f8f8f8;
  --white-color-moregray: #dedede;
  --red-color: #c01000;
  --orange-color: #f0a93b;
  --orange-color-light: #EFBE71;
  --green-color: #3d6038;

  /*===== Font and typography =====*/
  --body-font: "Poppins", sans-serif;
  --normal-font-size: 0.9rem !important;

  /*===== z index =====*/
  --z-fixed: 100;
  --btn-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px, rgba(0, 0, 0, 0.3) 0px 7px 13px -3px, rgba(0, 0, 0, 0.2) 0px -3px 0px inset;
}

.text-orange {
  color: var(--orange-color);
}

.text-green {
  color: var(--green-color);
}

.text-red {
  color: var(--red-color);
}

.tiny-label {
  font-size: 0.8rem !important;
}

.bg-red {
  background-color: var(--main-color) !important;
  color: #fff !important;
}

.row:before,
.row:after {
  display: none !important;
}

.display-none {
  display: none !important;
}

/* ===== SWAL ===== */
.swal-css {
  color: var(--main-color) !important;
  max-width: 500px !important;
  border-radius: 15px !important;
}

.swal2-popup {
  background-color: rgba(255, 255, 255, 100%) !important;
  backdrop-filter: blur(5px) !important;
}

.swal-css-notif {
  color: var(--main-color) !important;
  max-width: 500px !important;
  border-radius: 15px !important;
  background-color: rgba(255, 255, 255, 100%) !important;
}

.swal2-confirm {
  /* background-color: var(--orange-color) !important; */
  width: 120px;
  /* height: 40px; */
  border-radius: 15px !important;
  font-weight: 400;
  letter-spacing: 2px;
  transition: 0.3s;
}

.swal2-deny {}

.swal2-cancel {
  background-color: #fff !important;
  width: 120px;
  /* height: 40px; */
  border-radius: 15px !important;
  border: 1px solid var(--main-color) !important;
  color: var(--main-color) !important;
  font-weight: 400;
  letter-spacing: 2px;
}

.swal-title-css {
  font-weight: 600;
  color: var(--main-color);
  padding: 10px;
  font-size: 1.5em;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
}

.swal-text-css {
  color: var(--green-color);
}

.swal-title-css-notif {
  font-size: 0.8em !important;
  color: var(--main-color);
}

.swal-title-css-error {
  font-weight: 600;
  color: var(--main-color);

  padding: 10px;
  font-size: 1.5em;
}

.text-left {
  text-align: left !important;
}

.text-right {
  text-align: right !important;
}

.font-normal {
  font-family: var(--body-font) !important;
}

/*===== BASE =====*/
*,
::before,
::after {
  box-sizing: border-box;
}

body {
  position: relative;
  margin: var(--header-height) 0 0 0;
  padding: 0 1rem;
  font-family: var(--body-font) !important;
  font-size: var(--normal-font-size);
  transition: 0.5s;

  background-size: 52.45px 50.05px;
  background-image:
    linear-gradient(to right, var(--light-gray-color) 1px, transparent 1px),
    linear-gradient(to bottom, var(--light-gray-color) 1px, transparent 1px);
}


/*? ============================ BODY ============================== */
/*? ================================================================ */
html,
body,
.container-fluid {
  /* background-color: var(--white-color-gray); */
}


a {
  text-decoration: none !important;
}

/*? ============================ HEADER ============================ */
/*? ================================================================ */
.header {
  width: 100%;
  height: var(--header-height);
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  background-color: rgba(255, 255, 255, 0.5);
  z-index: var(--z-fixed);
  transition: 0.5s;
  backdrop-filter: blur(5px) !important;
}

.header__toggle {
  color: var(--main-color);
  font-size: 1.5rem;
  cursor: pointer;
}

.header__img {
  width: 35px;
  height: 35px;
  display: flex;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
  background-color: var(--main-color);
}

.header__img i {
  font-size: 1.2rem;
  color: #fff;
  display: flex;
  align-items: center;
}

.header-right-side {
  display: flex;
  text-align: right;
  align-items: center;
}

.header-right-side box-icon {
  width: 22px;
  height: 22px;
  vertical-align: middle;
}

.user-info {
  /* border: 1px solid red; */
}

.user-info div {
  /* border: 1px solid red; */
}

.user-info-sparator {
  height: 40px;
  width: 1px;
  background-color: #222222;
  margin-left: 25px;
  margin-right: 25px;
}

.user-name {
  font-weight: 600;
  font-size: 1.05em;
}

/*===== NAV =====*/
.l-navbar {
  position: fixed;
  top: 0;
  left: -30%;
  width: var(--nav-width);
  height: 100vh;
  background: var(--main-color);
  padding: 0.5rem 1rem 0 0;
  transition: 0.5s;
  z-index: var(--z-fixed);
}

.nav {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.nav__logo,
.nav__link {
  display: grid;
  grid-template-columns: max-content max-content;
  align-items: center;
  column-gap: 1rem;
  /* padding: 0.5rem 0 0.5rem 1.5rem; */
  /* border: 1px solid red;  */
}

.sidebar-icon {
  width: 50px;
  height: 50px;
  margin-left: 8px;
}

.nav__logo {
  margin-bottom: 2rem;
}

.nav__logo-icon {
  font-size: 1.25rem;
  color: var(--white-color);
}

.nav__logo-name {
  color: var(--white-color);
  font-weight: 700;
  letter-spacing: 2px;
}

.nav__link {
  position: relative;
  color: var(--main-color-light) !important;
  margin-bottom: 1.5rem;
  transition: 0.3s;
  padding: 0.5rem 0 0.5rem 1.4rem;
}

.nav__link:hover {
  color: var(--white-color) !important;
  cursor: pointer;
}

.nav__icon {
  font-size: 1.3rem !important;
}

/*Show navbar movil*/
.show-navbar {
  left: 0;
}

/*Add padding body movil*/
.body-pd {
  padding-left: calc(var(--nav-width) + 1rem);
}

/*Active links*/
.active {
  color: var(--white-color) !important;
}

.active::before {
  content: "";
  position: absolute;
  left: 0;
  width: 2px;
  height: 32px;
  background-color: var(--white-color) !important;
}



.title-content {
  /* border: 1px solid red; */
  margin-top: 10px;
  margin-bottom: 30px;
  color: var(--main-color-accent);
  font-variant: small-caps;
  font-weight: 800 !important;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.container-fluid>div {
  /* border: 1px solid red; */
}

table thead {
  background-color: var(--main-color) !important;
  color: #ffffff;
  font-size: 1em;
  text-align: center;
}

table thead tr th {
  vertical-align: middle !important;
}

table tbody tr td {
  vertical-align: middle !important;
  font-size: 1em;
  /* line-height: 1.1em; */
}

table tbody tr td button {
  box-shadow: var(--btn-shadow);
}

/* TABLE DETIL & EDIT */
.table-form {
  font-size: 1.1em;
  /* display: flex; */
}

.table-form tr {
  vertical-align: middle !important;
}

.btn {
  color: #ffffff !important;
  outline: none !important;
  border-radius: 15px;

  height: 40px;
  width: auto;
  /* height: 40px; */
  border-radius: 15px !important;
  font-weight: 700 !important;
  letter-spacing: 1px;
  padding-left: 20px;
  padding-right: 20px;
  min-width: 120px;
  text-transform: uppercase;
  font-size: 80%;
  display: flex;
  align-items: center;
  justify-content: center;
  /* box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 3px, rgba(0, 0, 0, 0.24) 0px 1px 2px; */
  box-shadow: var(--btn-shadow);
  transition: all 0.2s ease-in-out;
}

.btn,
.btn-primary,
.btn-secondary:active {
  outline: none;
}

.btn,
.btn-primary,
.btn-secondary:focus {
  outline: none;
}

.btn:hover {
  /* background-color: var(--main-color-light) !important; */
  filter: brightness(110%);
}

.btn:disabled {
  background-color: var(--main-color-light) !important;
}

.btn-primary {
  background-color: var(--main-color) !important;
  outline: none !important;
  border: none !important;
  transition: all 0.2s ease-in-out;
}

.btn-secondary {
  outline: none !important;
  border: none !important;
}

.btn-success {
  background-color: var(--green-color) !important;
  border: none !important;
}

button {
  border: none;
  cursor: pointer;
  border-radius: 0.15em;
}

button.close {
  background: none !important;
  font-size: 2em !important;
}

button:focus {
  outline: none;
}

.th-action {
  width: 150px !important;
}

tbody tr td button {
  float: right;
}

.button-action {
  background-color: var(--main-color);
  color: #ffffff !important;
  padding-top: 5px;
  padding-left: 8px;
  padding-right: 8px;
  margin: 2px;
  transition: 0.3s;
  font-size: 1.5em;
}

.button-action-red {
  background-color: var(--red-color) !important;
}

.button-action:hover {
  /* filter: brightness(90%); */
  background-color: var(--orange-color) !important;
}

.link-back-button {
  font-size: 20px;
  color: var(--main-color);
}

.link-back-button a {
  color: var(--main-color);
  font-variant: normal;
  transition: 0.3s;
}

.link-back-button a:hover {
  color: var(--main-color-light);
}

.link-back-button i {
  font-size: 25px;
  align-self: center;
  padding: 5px;
  display: flex;
}

.link-back-button i div {
  font-size: 20px;
  font-family: var(--body-font);
  font-variant: small-caps;
  display: inline;
  padding: 3px;
  vertical-align: middle;
}

.tooltip-ballon {
  --balloon-color: rgba(240, 169, 59, 100%);
}

.span {
  font-variant: normal;
  font-size: 0.7em;
  font-weight: bold;
  color: var(--green-color);
}

input {
  font-family: var(--body-font) !important;
}

input[type="file"]::file-selector-button {
  background-color: var(--main-color) !important;
  color: #fff !important;
  box-shadow: var(--btn-shadow);
  /* border-top-left-radius: 10px; */
  /* border-bottom-left-radius: 10px; */
}

input::placeholder,
textarea::placeholder {
  color: #ccc !important;
}

input:disabled,
select:disabled,
.form-control:disabled,
.form-control[readonly],
.form-control::selection {
  border: none !important;
  background-color: #fff !important;
  opacity: 1;
  outline: none;
  color: var(--main-color) !important;
  font-size: 1em !important;
  font-weight: 500;
}

.form-control {
  font-size: var(--normal-font-size);
}

.form-control-img-file {
  border-top-left-radius: 0px !important;
  border-top-right-radius: 0px !important;
  border-bottom-left-radius: 10px !important;
  border-bottom-right-radius: 10px !important;
}

.image-area {
  border: 1px dashed rgba(69, 95, 59, 20%);
  /* padding: 1rem; */
  position: relative;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
}

.image-area::before {
  /* content: 'Uploaded image result'; */
  color: var(--first-color);
  font-weight: bold;
  text-transform: uppercase;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.8rem;
  z-index: 1;
}

.image-area img {
  z-index: 2;
  position: relative;
  /* width: 150px; */
}
.image-area-artikel img {
  z-index: 2;
  position: relative;
  width: 220px !important;
  display: flex;
  align-items: center;
  /* border: 1px solid red; */
}

.tolowercase {
  text-transform: lowercase !important;
}

.bootstrap-select {
  width: 500px !important;
  vertical-align: middle;
}

.bootstrap-select>.dropdown-toggle {
  background-color: #eaecef !important;
  border-radius: 5px !important;
  color: #222222 !important;
}

.bootstrap-select>.dropdown-toggle:hover {
  background-color: var(--orange-color) !important;
}

.filter-option {
  display: flex;
  align-items: center;
}



.float-left {
  float: left !important
}

.float-right {
  float: right !important
}

/*? ========================== DASHBOARD SECTION =================== */
/*? ================================================================ */
.bg-card-main {
  background-color: var(--main-color) !important;
}


.card {
  border-radius: 5px;
  -webkit-box-shadow: 0 1px 2.94px 0.06px rgba(4, 26, 55, 0.16);
  box-shadow: 0 1px 2.94px 0.06px rgba(4, 26, 55, 0.16);
  border: none;
  margin-bottom: 30px;
  -webkit-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
  cursor: pointer;
  z-index: 1;
  color: #fff;
}

.card:hover {
  filter: brightness(110%)
}

.card:active {
  filter: brightness(90%)
}

.card .card-block {
  padding: 25px;
}

.card-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-content i {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 3rem;
  z-index: -1;
  position: absolute;
  left: 20px;
  color: var(--main-color-light);
  bottom: 15px;
  /* clip-path: inset(0px 0px 15px 0px); */
}

.f-left {
  float: left;
}

.f-right {
  float: right;
}

.zoom {
  transition: 0.3s;
}

.zoom:hover {
  transform: scale(2);
  box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px, rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;
  /* transition: 0.3s; */
  cursor: zoom-in;
  z-index: 1000 !important;
}



/* TODO ===== MEDIA QUERIES=====*/
@media screen and (min-width: 768px) {
  body {
    margin: calc(var(--header-height) + 1rem) 0 0 0;
    padding-left: calc(var(--nav-width) + 2rem);
  }

  .header {
    height: calc(var(--header-height) + 1rem);
    padding: 0 2rem 0 calc(var(--nav-width) + 2rem);
  }

  .header__img {
    width: 40px;
    height: 40px;
  }

  .header__img img {
    width: 45px;
  }

  .l-navbar {
    left: 0;
    padding: 1rem 1rem 0 0;
  }

  /*Show navbar desktop*/
  .show-navbar {
    width: calc(var(--nav-width) + 156px);
  }

  /*Add padding body desktop*/
  .body-pd {
    padding-left: calc(var(--nav-width) + 188px);
  }
}

/* BOOTSTRAP */

.checkbox-lg .custom-control-label::before,
.checkbox-lg .custom-control-label::after {
  top: -0rem;
  width: 1.55rem;
  height: 1.55rem;
}

.ckbx:hover {
  cursor: pointer !important;
}

.checkbox-lg .custom-control-label {
  padding-top: 13px;
  padding-left: 6px;
}


.modal-xl {
  width: 100vw !important;
  height: 93% !important;
}

.modal-content-custom {
  width: 100% !important;
  height: 100% !important;
}
 

.alert-input-exist,
.alert-input-exist:focus{
  border: 1px solid red;
  background-color: rgba(255, 0, 0, 0.1);
}

#alert-msg-exist-artikel,
#alert-msg-exist-tagproduk,
#alert-msg-exist-tagmodel,
#alert-msg-exist-daerah{
  position: absolute;
  top: -25px;
  background-color: var(--red-color);
  border-radius: 15px;
  color: #fff;
  font-size: 0.8rem;
  padding: 5px;
  padding-left: 10px;
  padding-right: 10px;
}

.notif-draft-tersimpan{
  position: absolute;
  top: 40px;
  right: 250px;
  font-variant: normal !important;
  font-weight: normal !important;
  background-color: var(--green-color);
  border-radius: 15px;
  color: #fff;
  font-size: 0.8rem;
  padding: 5px;
  padding-left: 10px;
  padding-right: 10px;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
}


/*? ======================= BUTTON DETAIL SECTION ================ */
/*? ============================================================== */
.floating-button-action {
  position: fixed;
  right: 0;
  bottom: 0;
  padding-right: 70px;
  padding-bottom: 5px;
  padding-top: 5px;
  z-index: 50;
  width: 100%;
  background-color: rgba(247, 246, 251, 70%);
  transition: 0.5s;
  backdrop-filter: blur(5px) !important;
}


.checkbox-datatable {
  width: 1.3rem !important;
  height: 1.3rem !important;
  cursor: pointer;
  background-color: white;
  border-radius: 50%;
  vertical-align: middle;
  border: 2px solid var(--main-color);
  appearance: none;
  -webkit-appearance: none;
  outline: none;
}
.checkbox-datatable:checked {
  border: 2px solid var(--main-color);
  /* border: 3px solid #ccc; */
  background-color: var(--main-color) !important;
}



.form-switch.form-switch-md {
  margin-bottom: 1rem; /* JUST FOR STYLING PURPOSE */
}

.form-switch.form-switch-md .form-check-input {
  cursor: pointer !important;
  height: 1.5rem;
  width: calc(2rem + 0.75rem);
  border-radius: 3rem;
}

.form-check-input:checked{
  background-color: var(--main-color);
  border-color: var(--main-color);
}