/* General Styles */
html {
    font-family: sans-serif;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    background-color: #ffffff;
    display: flex;
    min-height: 100vh;
    margin: 0;
}

#page-wrapper {
    position: relative;
    margin: 0;
    min-height: 100vh;
    background: #f4f6fa;
    width: calc(100% - 250px);
    flex: 1;
}

.wrapper-content {
    padding: 30px 15px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 100;
}

h1 { font-size: 30px; }
h2 { font-size: 24px; }
h3 { font-size: 16px; }
h4 { font-size: 14px; }
h5 { font-size: 12px; }
h6 { font-size: 10px; }

h3, h4, h5 {
    margin-top: 5px;
    font-weight: 600;
}

/* Sidebar */
.navbar-static-side {
    z-index: 2001;
    position: absolute;
    width: 235px;
    background-color: #ffffff;
    box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 1px 5px 0 rgba(0, 0, 0, 0.12);
}

.nav > li > a {
    color: #676a6c;
    padding: 14px 20px 14px 25px;
    font-weight: 400;
}

.nav > li.active > a {
    color: #5b5d5f;
    font-weight: 700;
}

.navbar-default .nav > li > a:hover,
.navbar-default .nav > li > a:focus {
    color: #5b5d5f;
    font-weight: 700;
}

/* Table */
table.table-striped {
    border: 1px solid #e7eaec;
}

table.table-striped th, table.table-striped td {
    padding: 10px 15px;
    font-size: 12px;
}

/* Make table rows clickable */
#sales-history-table tbody tr {
    cursor: pointer;
    user-select: none; /* Prevent text selection on double-click */
}

#sales-history-table tbody tr:hover {
    background-color: #e7eaec;
}

/* Form Elements */
.form-control {
    font-size: 11px;
    margin-bottom: 15px;
    border: 1px solid #e5e6e7;
    box-shadow: none;
}

/* Buttons */
.btn-primary {
    background-color: #1E88E5;
    border-color: #1E88E5;
    color: #FFFFFF;
    font-weight: 600;
    border-radius: 3px;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: #1E88E5;
    border-color: #1E88E5;
    color: #FFFFFF;
}

.btn-success {
    background-color: #76B945;
    border-color: #76B945;
    color: #FFFFFF;
    font-weight: 600;
    border-radius: 3px;
}

.btn-success:hover,
.btn-success:focus,
.btn-success:active {
    background-color: #76B945;
    border-color: #76B945;
    color: #FFFFFF;
}

.btn-danger {
    background-color: #EE3124;
    border-color: #EE3124;
    color: #FFFFFF;
    font-weight: 600;
    border-radius: 3px;
}

.btn-danger:hover,
.btn-danger:focus,
.btn-danger:active {
    background-color: #EE3124;
    border-color: #EE3124;
    color: #FFFFFF;
}

/* Sidebar and Content Alignment */
.sidebar {
    min-width: 250px;
    max-width: 250px;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
    box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 1px 5px 0 rgba(0, 0, 0, 0.12);
}

.sidebar-header {
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 600;
    color: #d9534f;
    background-color: #e7eaec;
    border-bottom: 1px solid #d1dade;
}

.sidebar a {
    padding: 10px 20px;
    text-decoration: none;
    color: #676a6c;
    display: block;
    font-size: 14px;
    font-weight: 400;
    transition: background-color 0.3s ease;
}

.sidebar a:hover {
    background-color: #e7eaec;
    color: #5b5d5f;
}

.sidebar a.active {
    background-color: #f8f8f9;
    color: #5b5d5f;
    font-weight: 700;
}

.content {
    padding: 20px;
    margin: 0;
    flex: 1;
}

/* Header Info Styling */
.header-info {
    padding: 10px 20px;
    font-size: 12px;
    color: #8095a8;
    background-color: #f4f6fa;
    border-bottom: 1px solid #d1dade;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-date, .header-user {
    display: inline-block;
}

/* Responsive Adjustments */
@media (max-width: 767px) {
    #page-wrapper {
        margin: 0;
        width: 100%;
    }

    .navbar-static-side {
        display: none;
    }

    body.mini-navbar .navbar-static-side {
        display: block;
        width: 200px;
        position: fixed;
        left: 0;
        top: 0;
        height: 100vh;
        transform: translateX(0);
    }

    body.mini-navbar #page-wrapper {
        transform: translateX(200px);
        width: calc(100% - 200px);
    }

    .form-control {
        width: 100% !important;
    }

    .content {
        padding: 10px;
    }

    .sidebar {
        min-width: 200px;
        max-width: 200px;
    }

    .header-info {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px;
    }

    .header-date, .header-user {
        margin-bottom: 5px;
    }
}