body {
    font-family: "Poppins", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.8;
    font-weight: normal;
    background: #fafafa;
    color: gray;
}

a {
    -webkit-transition: 0.3s all ease;
    -o-transition: 0.3s all ease;
    transition: 0.3s all ease;
    color: #47b;
}

a:hover,
a:focus {
    text-decoration: none !important;
    outline: none !important;
    -webkit-box-shadow: none;
    box-shadow: none;
}

button {
    -webkit-transition: 0.3s all ease;
    -o-transition: 0.3s all ease;
    transition: 0.3s all ease;
}

button:hover,
button:focus {
    text-decoration: none !important;
    outline: none !important;
    -webkit-box-shadow: none !important;
    box-shadow: none !important;
}

h1,
h2,
h3,
h4,
h5,
.h1,
.h2,
.h3,
.h4,
.h5 {
    line-height: 1.5;
    font-weight: 400;
    font-family: "Poppins", Arial, sans-serif;
    color: #000;
}

.ftco-section {
    padding: 7em 0;
}

.ftco-no-pt {
    padding-top: 0;
}

.ftco-no-pb {
    padding-bottom: 0;
}

.heading-section {
    font-size: 28px;
    color: #000;
}

.heading-section small {
    font-size: 18px;
}

.img {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}

.wrapper {
    width: 100%;
}

#sidebar {
    min-width: 270px;
    max-width: 270px;
    background: #47b;
    color: #fff;
    -webkit-transition: all 0.3s;
    -o-transition: all 0.3s;
    transition: all 0.3s;
    position: relative;
}

#sidebar .h6 {
    color: #fff;
}

#sidebar.active {
    margin-left: -270px;
}

#sidebar h1 {
    margin-bottom: 20px;
    font-weight: 700;
    font-size: 30px;
}

#sidebar h1 .logo {
    color: #fff;
}

#sidebar h1 .logo span {
    font-size: 14px;
    color: #fff;
    display: block;
}

#sidebar ul.components {
    padding: 0;
}

#sidebar ul li {
    font-size: 16px;
}

#sidebar ul li>ul {
    margin-left: 10px;
}

#sidebar ul li>ul li {
    font-size: 14px;
}

#sidebar ul li a {
    padding: 10px 0;
    display: block;
    color: rgba(255, 255, 255, 255);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#sidebar ul li a span {
    color: #fff;
}

#sidebar ul li a:hover {
    color: #333;
}

#sidebar ul li.active>a {
    background: transparent;
    color: #fff;
}

@media (max-width: 991.98px) {
    #sidebar {
        margin-left: -270px;
    }

    #sidebar.active {
        margin-left: 0;
    }
}

#sidebar .custom-menu {
    display: inline-block;
    position: absolute;
    top: 20px;
    right: 0;
    margin-right: -20px;
    -webkit-transition: 0.3s;
    -o-transition: 0.3s;
    transition: 0.3s;
}

@media (prefers-reduced-motion: reduce) {
    #sidebar .custom-menu {
        -webkit-transition: none;
        -o-transition: none;
        transition: none;
    }
}

#sidebar .custom-menu .btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    position: relative;
}

#sidebar .custom-menu .btn i {
    margin-right: -40px;
    font-size: 14px;
}

#sidebar .custom-menu .btn.btn-primary {
    background: transparent;
    border-color: transparent;
}

#sidebar .custom-menu .btn.btn-primary:after {
    z-index: -1;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    content: "";
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
    background: #47b;
    border-radius: 10px;
}

#sidebar .custom-menu .btn.btn-primary:hover,
#sidebar .custom-menu .btn.btn-primary:focus {
    background: transparent !important;
    border-color: transparent !important;
}

a[data-toggle="collapse"] {
    position: relative;
}

.dropdown-toggle::after {
    display: block;
    position: absolute;
    top: 50%;
    right: 0;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
}

@media (max-width: 991.98px) {
    #sidebarCollapse span {
        display: none;
    }
}

#content {
    width: 100%;
    padding: 0;
    min-height: 100vh;
    -webkit-transition: all 0.3s;
    -o-transition: all 0.3s;
    transition: all 0.3s;
}

.btn.btn-primary {
    background: #3445b4;
    border-color: #3445b4;
}

.btn.btn-primary:hover,
.btn.btn-primary:focus {
    background: #eee !important;
    border-color: #3445b4 !important;
}

.footer p {
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
}

.form-control {
    height: 40px !important;
    background: #fff;
    color: #000;
    font-size: 13px;
    border-radius: 4px;
    -webkit-box-shadow: none !important;
    box-shadow: none !important;
    border: transparent;
}

.form-control:focus,
.form-control:active {
    border-color: #000;
}

.form-control::-webkit-input-placeholder {
    /* Chrome/Opera/Safari */
    color: rgba(255, 255, 255, 0.5);
}

.form-control::-moz-placeholder {
    /* Firefox 19+ */
    color: rgba(255, 255, 255, 0.5);
}

.form-control:-ms-input-placeholder {
    /* IE 10+ */
    color: rgba(255, 255, 255, 0.5);
}

.form-control:-moz-placeholder {
    /* Firefox 18- */
    color: rgba(255, 255, 255, 0.5);
}

.subscribe-form .form-control {
    background: #3b4ec6;
}

.data-table tbody td {
    padding: 0.3em 0.5em !important;
    border: none;
    border-bottom: 1px solid #ccc;
    font-size: 0.9em !important;
}

.input-text {
    background-color: #19518d !important;
    color: white !important;
}

.input-text:focus {
    background-color: #19518d !important;
    color: white !important;
}

.odd-row {
    background-color: #fff !important;
    font-size: 0.9em !important;
    padding: 5px !important;
}

.even-row {
    background-color: #eee !important;
    font-size: 0.9em !important;
    padding: 5px !important;
}

.row-stok-zero {
    background-color: #333 !important;
    color: white !important;
}

.row-stok-low {
    background-color: #f2ecce !important;
}

.status-close {
    width: 100%;
    color: #0e3a78;
    font-weight: bold;
    padding: 5px;
}

.status-open {
    width: 100%;
    color: #1d8347;
    font-weight: bold;
    padding: 5px;
}

.btn-stop {
    display: inline-block;
    padding: 4px 12px;
    font-size: 10px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    background-color: #d99712;
    color: #000;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-stop:hover {
    background-color: rgb(235, 221, 14);
    color: #eee;
}

.data-table thead th {
    background-color: #2d73b8;
    color: #fff;
    font-weight: bold;
    text-align: center;
    padding: 5px;
    vertical-align: middle !important;
}

th,
td {
    font-size: 0.9em;
    vertical-align: middle;
}

.summary-label {
    background-color: #19518d;
    color: #fff;
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 5px;
    padding-bottom: 5px;
    text-align: center;
    font-size: 14px;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 500;
}

.summary-value {
    background-color: #eee;
    color: #000;
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 5px;
    padding-bottom: 5px;
    font-size: 14px;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 500;
}

.error-msg {
    font-weight: bold;
    font-size: 16px;
    color: red;
    font-family: Arial, Helvetica, sans-serif;
}

.total-font {
    text-align: right;
    font-weight: bold;
    font-size: 26px;
    font-family: Arial, Helvetica, sans-serif;
}

.total-font2 {
    text-align: right;
    font-weight: bold;
    font-size: 16px;
    font-family: Arial, Helvetica, sans-serif;
}

.btn-add {
    display: inline-block !important;
    padding: 8px 16px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    text-align: center !important;
    text-decoration: none !important;
    border: none !important;
    border-radius: 4px !important;
    background-color: #19518d !important;
    color: #fff !important;
    cursor: pointer !important;
    transition: background-color 0.3s ease !important;
}

.btn-add:hover {
    background-color: #007bff !important;
    color: #fff !important;
}

.btn-delete {
    display: inline-block !important;
    padding: 2px 10px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    text-align: center !important;
    text-decoration: none !important;
    border: none !important;
    border-radius: 4px !important;
    background-color: #aa2121 !important;
    color: #fff !important;
    cursor: pointer !important;
    transition: background-color 0.3s ease !important;
}

.btn-delete:hover {
    background-color: #6b0e0e !important;
    color: #eee !important;
}

.btn-delete-item {
    display: inline-block !important;
    padding: 2px 10px !important;
    font-size: 10px !important;
    font-weight: 500 !important;
    text-align: center !important;
    text-decoration: none !important;
    border: none !important;
    border-radius: 4px !important;
    background-color: #aa2121 !important;
    color: #fff !important;
    cursor: pointer !important;
    transition: background-color 0.3s ease !important;
}

.btn-edit {
    display: inline-block !important;
    padding: 2px 10px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    text-align: center !important;
    text-decoration: none !important;
    border: none !important;
    border-radius: 4px !important;
    background-color: #19518d !important;
    color: #fff !important;
    cursor: pointer !important;
    transition: background-color 0.3s ease !important;
}

.btn-edit:hover {
    background-color: #007bff !important;
    color: #fff !important;
}

.btn-arsip {
    display: inline-block !important;
    padding: 2px 10px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-align: center !important;
    text-decoration: none !important;
    border: none !important;
    border-radius: 4px !important;
    background-color: #5c138d !important;
    color: #fff !important;
    cursor: pointer !important;
    transition: background-color 0.3s ease !important;
}

.btn-arsip:hover {
    background-color: #81198d !important;
    color: #fff !important;
}

.btn-tampil {
    display: inline-block !important;
    padding: 2px 10px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-align: center !important;
    text-decoration: none !important;
    border: none !important;
    border-radius: 4px !important;
    background-color: #108523 !important;
    color: #fff !important;
    cursor: pointer !important;
    transition: background-color 0.3s ease !important;
}

.btn-tampil:hover {
    background-color: #13c525 !important;
    color: #fff !important;
}

/* Loading overlay styles */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    /* Semi-transparent black background */
    z-index: 9999;
    /* Ensure the overlay is on top of other elements */
    display: flex;
    justify-content: center;
    align-items: center;
}

.loading-spinner {
    padding: 20px;
    /* background-color: #fff; */
    border-radius: 5px;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
    color: #007bff;
}
