@import 'https://fonts.googleapis.com/css?family=Prompt';

:root {
  font-family: system-ui, Avenir, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  font-weight: 400;

  color-scheme: light dark;
  color: rgba(255, 255, 255, 0.87);
  background-color: #242424;

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  --bg-first: linear-gradient(to right, #00398f, #000a39);
  --bg-second: linear-gradient(to right, #004cbf, #00398f);
  --bg-third: linear-gradient(to right, #97c0ff, #004cbf);
  --bg-four: linear-gradient(to right, #666, #000);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body,
#root {
  /* width: calc(100% - 8px); */
  width: 100%;
  height: 100%;
  margin: 0;
  font-family: 'Prompt' !important;
  font-style: normal !important;
  font-weight: 400 !important;
  /* color: #0b4b8e; */
  overflow: hidden;

}

body {
  background-color: #fff;
  /* min-height: 100vh; */
}

select.form-select,
input.form-control {
  font-family: 'Prompt' !important;
}

input {
  border: 1px solid #bfbfbf;
  background-color: #fff;
}

a {
  font-weight: 500;
  color: #646cff;
  text-decoration: inherit;
}

a:hover {
  color: #535bf2;
}

h1 {
  font-size: 3.2em;
  line-height: 1.1;
}

button {
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0.6em 1.2em;
  font-size: 1em;
  font-weight: 500;
  font-family: inherit;
  background-color: #1a1a1a;
  cursor: pointer;
  transition: border-color 0.25s;
}

button:hover {
  border-color: #646cff;
}

button:focus,
button:focus-visible {
  outline: 4px auto -webkit-focus-ring-color;
}

@media (prefers-color-scheme: light) {
  :root {
    color: #213547;
    background-color: #ffffff;
  }

  a:hover {
    color: #747bff;
  }

  button {
    background-color: #f9f9f9;
  }
}

/* sidebar base */
.sidebar {
  /* width: 220px; */
  width: 240px;
  min-height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  background: #212529;
  z-index: 1030;

  /* 🔥 smooth */
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: width;
}

.sidebar.collapsed {
  width: 70px;
}

.sidebar .nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  color: #adb5bd;
  border-radius: 10px;
  white-space: nowrap;

  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}

.sidebar .nav-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transform: translateX(3px);
}

.sidebar .nav-link.active {
  background: linear-gradient(135deg, #0d6efd, #0b5ed7);
  color: #fff;
  margin: 0 5px;
  /* transform: translateX(6px); */
  box-shadow: 0 4px 12px rgba(13, 110, 253, .35);
}

.nav-text {
  transition: opacity 0.2s ease, transform 0.2s ease;
  color: #fff;
}

.sidebar.collapsed .nav-text {
  opacity: 0;
  transform: translateX(-10px);
  pointer-events: none;
}

.sidebar.collapsed .nav-link {
  justify-content: center;
  padding: 12px 0;
}

#btnCollap {
  transition: all 0.3s ease-in-out;
  z-index: 1050;
  will-change: transform, opacity;
}

#btnCollap i {
  transition: transform 0.3s ease, opacity 0.2s ease;
}

#btnCollap .fa-times {
  transform: rotate(180deg);
}

#btnCollap .fa-bars {
  transform: rotate(0deg);
}


#btnCollap:hover {
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
  transform: scale(1.05);
}

.dropdown-slide {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-6px);
  transition:
    max-height 0.35s ease,
    opacity 0.25s ease,
    transform 0.25s ease;
}

.dropdown-slide.open {
  max-height: 300px;
  transform: scaleY(1);
  opacity: 1;
}

.sidebar.collapsed .dropdown-slide:not(.open) {
  display: none;
}

.dropdown-slide .nav-link {
  font-size: 0.9rem;
  padding-left: 44px;
  opacity: 0;
  transform: translateY(-4px);
  transition: all 0.25s ease;
  /* transition: color 0.2s ease, transform 0.2s ease; */
}

.dropdown-slide .nav-link:hover {
  transform: translateX(4px);
  color: #fff;
}

.dropdown-slide.open .nav-link {
  opacity: 1;
  transform: translateY(0);
}

.sidebar,
.sidebar * {
  box-sizing: border-box;
}

.sidebar.collapsed .dropdown-toggle-icon {
  position: absolute;
  top: 30%;
  right: 5%;
}

.dropdown-toggle-icon {
  transition: transform 0.3s ease;
}

.dropdown-toggle-icon.open {
  transform: rotate(90deg);
}

.sidebar.collapsed .dropdown-slide.open .nav-link {
  margin: 0 10px;
  justify-content: start;
}

.sidebar.collapsed .dropdown-slide.open .nav-link .nav-text {
  opacity: 1;
  margin-left: 10px;
}

.sidebar .nav-link i {
  font-size: 1.1rem;
  transition: transform 0.25s ease, color 0.25s ease;
}

.sidebar.collapsed .nav-link:hover i {
  transform: scale(1.2);
  color: #fff;
}

.sidebar.collapsed .dropdown-slide {
  position: absolute;
  left: 64px;
  top: 0;
  background: #212529;
  min-width: 180px;
  border-radius: 10px;
  padding: 6px 0;

  transform: translate(5px, 100px) scale(0.95);
  /* transform: translateX(-10px) scale(0.95); */
  opacity: 0;
  pointer-events: none;

  transition: all 0.25s ease;
}

.sidebar.collapsed .dropdown-slide.open {
  /* transform: translateX(0) scale(1); */
  transform: translate(6px, 100px) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.login-container {
  width: 100%;
  height: 100vh;
  background: no-repeat center / cover url("../img/BG.jpg");
  /* background-color: #555; */
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.logo-login-page {
  position: absolute;
  top: 4%;
  left: 1%;
}

.login-card {
  padding: 20px;
  background: linear-gradient(107deg, #ffffff38, transparent);
  border-radius: 20px;
  box-shadow: 1px 1px 10px -5px #000;
  height: 90%;
}

.login-title {
  height: 15%;
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: center;
  align-items: baseline;
  color: #fff;
}

.login-footer {
  height: 100px;
}

label:has(.login-input) {
  position: relative;
  color: #FFF !important;
}

input.login-input,
input.login-input:focus {
  font-size: 14px;
  font-weight: bold;
  width: 90%;
  margin: 0 auto;
}

input.login-input::placeholder {
  color: #b1b1b1;
}

label:has(input:required)::after,
label:has(select:required)::after,
label:has(textarea:required)::after {
  display: none;
}

button[name="Login"] {
  padding-left: 50px;
  padding-right: 50px;
  border-radius: 50px;
  border: 1px solid transparent;
  background:
    linear-gradient(white, white) padding-box,
    var(--bg-first) border-box;
}

button[name="Login"]:hover {
  border-color: #000;
  color: #000;
  background-color: #6e7327;
  box-shadow: 1px 5px 10px -5px #fff;
}

.col-login {
  display: flex;
  justify-content: center;
}

.login-label {
  font-size: 20px;
  color: #fff;
}

.page-content {
  margin-left: 0;
}

.logo-company {
  width: 100%;
  padding-left: 1rem;
}

.lo-com {
  margin-top: 1rem;
  width: 5%;
}

.title-img {
  height: 150px;
}

.log-img {
  z-index: 3;
  background-color: #fff;
  padding: 1rem 1.25rem;
  border-radius: 50%;
}

/* =========================
   HEADER WRAP FIX
========================= */

.quotation-table .rdt_TableCol .rdt_TableCol_Sortable div {
  white-space: normal !important;
}


.template-bg {
  background-color: #ecf3ff;
}

.template-first {
  background: var(--bg-first);
}

.template-second {
  background: var(--bg-second);
}

.template-third {
  background: var(--bg-third);
}

.template-four {
  background: var(--bg-four);
}

.setting-name {
  background: var(--bg-first);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.quotation-color {
  background: var(--bg-second);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.search-border {
  border: 1px solid transparent !important;
  border-radius: 15px !important;
  background:
    linear-gradient(#fff, #fff) padding-box,
    var(--bg-first) border-box !important;
}

.state-0-setting {
  background-color: #cccbc7;
  color: #000 !important;
}

.state-1-setting {
  background-color: #5db000;
  color: #fff;
}

.button-reject {
  background: linear-gradient(0deg, #860000, #ff0000);
  color: #fff !important;
}

.button-success {
  background: linear-gradient(0deg, #2f5900, #199400);
  color: #fff !important;
}

.bg-preview-no {
  background-color: #97c0ff45;
}