@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

::after,
::before {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
}
a:link { 
    text-decoration: none; 
  } 
  a:visited { 
    text-decoration: none; 
  } 
  a:hover { 
    text-decoration: none; 
  } 
  a:active { 
    text-decoration: none; 
  }

li {
    list-style: none;
}

h1 {
    font-weight: 600;
    font-size: 1.5rem;
}

body {
    font-family: 'Poppins', sans-serif;
   
}

.wrapper {
    display: flex;
}

.main {
    min-height: 100vh;
    width: 100%;
    transition: all 0.35s ease-in-out;
    background-color: #fafbfe;
}

#sidebar {
    width: 70px;
    min-width: 70px;
    z-index: 1000;
    transition: all .25s ease-in-out;
    background-color: #0e2238;
    display: flex;
    flex-direction: column;
}

#sidebar.expand {
    width: 260px;
    min-width: 260px;
}

.toggle-btn {
    background-color: transparent;
    cursor: pointer;
    border: 0;
    padding: 1rem 1.5rem;
}

.toggle-btn i {
    font-size: 1.5rem;
    color: #FFF;
}

.sidebar-logo {
    margin: auto 0;
}

.sidebar-logo a {
    color: #FFF;
    font-size: 1.15rem;
    font-weight: 600;
}

#sidebar:not(.expand) .sidebar-item .sidebar-link span {
    display: none;
}

.sidebar-nav {
    padding: 0;
    flex-grow: 1;
}

.sidebar-item {
    padding: .625em 1.5em;
}

.sidebar-link {
    color: #E9ECEF;
    position: relative;
    display: flex;
    white-space: nowrap;
}

.sidebar-link.collapsed::after {
    border-right: .3em solid transparent;
    border-top: .3em solid transparent;
    content: " ";
    height: 0;
    position: absolute;
    right: 1.5rem;
    top: 1.4rem;
    transform: rotate(45deg);
    transition: all .2s ease-in-out;
    width: 0;
}

.sidebar-link[aria-expanded="true"]::after {
    border-right: .3em solid transparent;
    border-top: .3em solid transparent;
    transform: rotate(135deg);
    transition: all .2s ease-in-out;
}

.sidebar-footer {
    background-color: #3b7ddd;
    padding: 1.5em 1.5em 1.5em;
    border-top: 1px solid rgba(255, 255, 255, .1);
}

.sidebar-footer a {
    color: #fff;
    padding: .625em 1.5em;
}

a.sidebar-link:hover {
    background-color: rgba(255, 255, 255, .075);
    border-left: 3px solid #3b7ddd;
}

.sidebar-item {
    position: relative;
}

#sidebar:not(.expand) .sidebar-item .sidebar-dropdown {
    position: absolute;
    top: 0;
    left: 70px;
    background-color: #d5ee9b;
    padding: 0;
    min-width: 15rem;
    display: none;
}

#sidebar:not(.expand) .sidebar-item:hover .has-dropdown+.sidebar-dropdown {
    display: block;
    max-height: 15em;
    width: 100%;
    opacity: 1;
}

#sidebar.expand .sidebar-link[data-bs-toggle="collapse"]::after {
    border: solid;
    border-width: 0 .075rem .075rem 0;
    content: "";
    display: inline-block;
    padding: 2px;
    position: absolute;
    right: 1.5rem;
    top: 1.4rem;
    transform: rotate(-135deg);
    transition: all .2s ease-out;
}

/* === New Styles for Full-Width POS View === */
body.pos-view .wrapper {
    display: block;
}

body.pos-view #sidebar {
    display: none;
}

body.pos-view .main {
    width: 100%;
    min-width: 100%;
    margin-left: 0 !important;
}

