@import url('https://fonts.googleapis.com/css2?family=Google+Sans+Flex:wght@100..700&display=swap');

* {
    font-family: 'Google Sans Flex', sans-serif;
}

body {
  background: #f0f4f9 !important;
}


.content-wrapper {
    background: #f0f4f9 !important;
    padding-bottom: 100px !important;
}

.layout-navbar-fixed .wrapper .content-wrapper {
    margin-top: calc(4rem + 1px) !important;
}

input,
select,
select span {
    font-size: 14px !important;
}

.form-group label {
    font-size: 14px !important;
}

.nav-item {
    padding: 5px 10px !important;
    transition: 0.1s;

    &:hover {
        color: #fff !important;
    }

    .nav-item:hover p {
        color: #fff !important;
        transition: 0.1s;
    }

    .nav {

        .nav-item {
            padding: 10px 7px !important;

            a {
                padding: 0 !important;
                width: 100% !important;
                margin: 0 !important;
            }
        }
    }

}

.nav-item i {
    margin-right: 5px !important;
    color: #929aac;
    min-width: 20px;

    &.fa-angle-left {
        min-width: 0;
    }
}

.brand-link {
    background: none !important;
    border: none !important;
}

.main-sidebar {
    background: #2b303b !important;

    &.elevation-4 {
        box-shadow: none !important;
    }
}

.nav-link {
    color: #929aac !important;
    font-weight: 600 !important;
    font-size: 14px !important;
}

.nav-link p {
    font-size: 14px !important;
}

.nav-link.active:not(.member-info) {
    background: none !important;
    color: #fff !important;
    box-shadow: none !important;
    font-weight: 600 !important;
}

.content-header h1 {
    font-size: 20px !important;
}

.content-header {
    padding: 20px 20px !important;
    background: white !important;
    margin-bottom: 30px !important;
}

.card {
    box-shadow: none !important;
    border-radius: 0 !important;
    background: white !important;
}

.card-header {
    font-weight: 500;
    opacity: 1;
    letter-spacing: 0px;
}

.card-header .btn {
    letter-spacing: 0;
    font-size: 14px;
    font-weight: 700;
}

.form-group div.col-10 {
    display: flex;
    flex-flow: column wrap;
    justify-content: center;
}

.form-group .col-form-label {
    font-weight: 500 !important;
    text-align: left;
}

table {
    font-size: 14px !important;
    font-family: 'Google Sans Flex', sans-serif;
}

table th {
    border-top: 0 !important;
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 500;
}

table .select2-container--focus,
table .select2-container--open {
    min-width: 300px;
}

.card-content table input:focus {
    min-width: 100px !important;
}

table textarea:focus {
    min-width: 200px !important;
    min-height: 150px !important;
}

table input {
    min-height: 42px;
    border: 1px solid #e6e6e6;
    border-radius: 5px;
    padding-left: 5px;
}

/* table textarea {
    min-width: 300px;
} */

table input[type="checkbox"] {
    width: 30px;
}

table .select2-container--default .select2-selection--single .select2-selection__rendered {
    white-space: nowrap !important;
}

table td:last-child {
    vertical-align: middle !important;
    white-space: nowrap;
}

table td:last-child a,
table td:last-child button {
    margin: 0 3px;
    white-space: nowrap;
    display: inline-block;
    vertical-align: middle;
}

@media only screen and (max-width: 768px) {
  .navbar-expand-md {
      flex-flow: row nowrap;
      justify-content: flex-start;
  }
  
  .navbar-expand-md .navbar-nav {
      flex-direction: row;
  }

  .navbar-expand-md .navbar-nav .dropdown-menu {
      position: absolute;
  }
  
  .navbar-expand-md .navbar-nav .nav-link {
      padding-right: 0.5rem;
      padding-left: 0.5rem;
  }

  .navbar-expand-md > .container,
  .navbar-expand-md > .container-fluid,
  .navbar-expand-md > .container-lg,
  .navbar-expand-md > .container-md,
  .navbar-expand-md > .container-sm,
  .navbar-expand-md > .container-xl {
      flex-wrap: nowrap;
  }

  .navbar-expand-md .navbar-collapse {
      display: flex !important;
      flex-basis: auto;
  }

  .navbar-expand-md .navbar-toggler {
      display: none;
  }

  .main-header ul:first-child {
    width: 100%;
      display: flex;
      flex-direction: row;
  }

  .card-header {
    font-size: .8rem !important;
  }
}

#snackbar {
    position: fixed;
    z-index: 1;
    right: 5%;
    top: 100px;
    font-size: 17px;
}

th.dt-center,
td.dt-center {
    text-align: center;
}

.nav-item i {
    color: #ffffffc9;

    &.right {
        top: 42% !important;
        margin-right: 0;
        right: 5px !important;
    }
}


.has-treeview.menu-open {
    background: rgba(255, 255, 255, .1) !important;
    border-radius: 10px;
    transition: 0.3s !important;
}

.sidebar .nav-item:last-child {
    margin-bottom: 0 !important;
}

.nav-link {
    background: none !important;
    padding: 0.5em !important;

    p {
        opacity: .8 !important;
    }
}

.nav-link.active {
    background: none !important;
    box-shadow: none !important;

    p {
        color: #fff !important;
        opacity: 1 !important;
    }
}

.main-sidebar .brand-text {
    display: none !important;
}

.brand-link {
    border: none !important;
}

.brand-image-xl {
    width: 100% !important;
    object-fit: contain !important;
    padding: 5px !important;
    object-position: center left !important;
}

.card-header {
    background: none !important;
    border: none !important;

    h6 {
        color: #000002 !important;
        font-weight: 600 !important;
        line-height: 1.3em !important;
        font-size: 14px;
    }
}


.card {
    border-radius: 8px !important;
    border: none !important;
    overflow: hidden !important;
    box-shadow: none !important;

    &.shadow {
        box-shadow: none !important;
    }

    .card-body {
        padding: 0px 20px;
    } 

    input {
        max-width: 100% !important;
    }
}

.col,
.col-1,
.col-10,
.col-11,
.col-12,
.col-2,
.col-3,
.col-4,
.col-5,
.col-6,
.col-7,
.col-8,
.col-9,
.col-auto,
.col-lg,
.col-lg-1,
.col-lg-10,
.col-lg-11,
.col-lg-12,
.col-lg-2,
.col-lg-3,
.col-lg-4,
.col-lg-5,
.col-lg-6,
.col-lg-7,
.col-lg-8,
.col-lg-9,
.col-lg-auto,
.col-md,
.col-md-1,
.col-md-10,
.col-md-11,
.col-md-12,
.col-md-2,
.col-md-3,
.col-md-4,
.col-md-5,
.col-md-6,
.col-md-7,
.col-md-8,
.col-md-9,
.col-md-auto,
.col-sm,
.col-sm-1,
.col-sm-10,
.col-sm-11,
.col-sm-12,
.col-sm-2,
.col-sm-3,
.col-sm-4,
.col-sm-5,
.col-sm-6,
.col-sm-7,
.col-sm-8,
.col-sm-9,
.col-sm-auto,
.col-xl,
.col-xl-1,
.col-xl-10,
.col-xl-11,
.col-xl-12,
.col-xl-2,
.col-xl-3,
.col-xl-4,
.col-xl-5,
.col-xl-6,
.col-xl-7,
.col-xl-8,
.col-xl-9,
.col-xl-auto {
    padding-left: 0.5em !important;
    padding-right: 0.5em !important;
}

.container-fluid {
    h1 {
        color: #000002 !important;
    }
}

.table {
    thead {

        tr {
            border-radius: 10px;
        }

        th {
            border: none !important;
            font-weight: 500 !important;
            border-bottom: 1px solid #e6e6e6 !important;
            padding:10px .5em !important;

            &:first-child {
                border-radius: 10px 0 0px 10px !important;
            }

            &:last-child {
                border-radius: 0px 10px 10px 0px !important;
            }
        }

    }

    td {
        vertical-align: middle !important;
        border-top: 0 !important;
        border-bottom: 1px solid #eaeaea !important;
        padding: 0.5em !important
    }
}

.dataTables_wrapper {
    padding: 0 10px;
}

button,
.btn {
    border-radius: 8px !important;
    min-width: 40px;
}

input,
textarea {
    border-radius: 8px !important;
    border: 1px solid #e6e6e6 !important;
    padding: 10px;
}

.select2-selection,
select {
    border-radius: 8px !important;
    border: 1px solid #e6e6e6 !important;
    padding: 10px;
}


.main-header {
    i {
        color: #000002 !important
    }
}

.nav-sidebar {
    overflow: visible !important;

    .nav-item {
        width: 100% !important;
    }
}

.saveBackButton.g-2.g-lg-0:has(.btn),
.saveBackButton:has(.btn-success):has(.btn-secondary),
.card-body .saveBackButton:last-child:has(.btn) {
    position: static !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    background: transparent !important;
    border-top: none !important;
    padding: 0 !important;
    margin: initial !important;
    z-index: auto !important;
    box-shadow: none !important;
    border-radius: initial !important;
}

.card label {
    font-size: 16px;
    font-weight: 500 !important;
}

/* Audit Information Table Styles */
.audit-info-section {
    background: white;
    border-radius: 8px;
}

.audit-info-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 25px;
    color: #000002;
}

.audit-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.audit-card {
    background: white;
    border-radius: 8px;
    padding: 12px;
    border: 1px solid #e6e6e6;
    transition: all 0.2s ease;
}

.audit-card:hover {
    border-color: #d0d0d0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.audit-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.audit-card-icon {
    width: 35px;
    height: 35px;
    background: #f8f9fa;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 14px;
    color: #666;
}

.audit-card-title {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #666;
}

.audit-card-value {
    font-size: 15px;
    font-weight: 500;
    color: #000002;
    word-break: break-word;
    line-height: 1.4;
}

.audit-card-value.empty {
    color: #999;
    font-style: italic;
}

@media (max-width: 768px) {
    .audit-cards-container {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 12px;
    }
    
    .audit-info-section {
        margin: 20px 0;
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .audit-cards-container {
        grid-template-columns: 1fr;
    }
}

.badge-pill {
border-radius: 4px !important;
  font-size: 14px !important;
  padding: 5px 10px !important;
}

.totalpembelian tr td {
    font-weight: 600 !important;
    background: #e6e6e6;
}

.tabsdetail {

    margin-top: 40px;

    ul {
        border-radius: 0 !important;
        display:flex;
        flex-flow:row;
    }

    li {
        padding:0 !important;
        border-radius: 0 !important;
        width:100%;
        text-align: center;

        a {
            border-radius: 0 !important;
            border: 1px solid #e6e6e6 !important;

            &.active {
                background: #007bff !important;
                color: #fff !important;
            }
        }
    }

    .card-body {
        padding:20px 10px !important
    }
}

.floating-buttons {
  background: white !important;
  position: fixed;
  bottom: 30px;
  right: 30px;
  padding: 10px !important;
  border-radius: 10px !important;
  box-shadow: 0 8px 8px rgba(0, 0, 0, 0.075);
  z-index: 1000;
  display: flex;
  gap: 10px;
}

.floating-btn {
  padding: 12px 20px;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  font-weight: 500;
  transition: all 0.3s ease;
  min-width: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.floating-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.floating-save {
  background-color: #28a745;
  border-color: #28a745;
}

.floating-back {
  background-color: #6c757d;
  border-color: #6c757d;
}

/* Responsive design untuk mobile */
@media (max-width: 768px) {
  .content-header {
    padding: 70px 2px 20px 20px !important;
    background: white !important;
    margin-bottom: 30px !important;
  }

  .floating-buttons {
    bottom: 20px;
    right: 20px;
    left: 20px;
    width: calc(100% - 40px);
  }
  
  .floating-btn {
    padding: 12px 16px;
    min-width: unset;
    width: calc(50% - 5px);
    font-size: 14px;
  }
}

@media (max-width: 576px) {
  .floating-buttons {
    bottom: 15px;
    right: 15px;
    left: 15px;
    width: calc(100% - 30px);
  }
  
  .floating-btn {
    padding: 10px 14px;
    min-width: unset;
    width: calc(50% - 5px);
    font-size: 13px;
  }
}