/* app.css */

/* Define theme colors */
:root {
    --primary-color: #DBE2EF;
    --primary-color-light: #F0F4FA;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --success-color-light: #D4EDDA;
    --danger-color: #dc3545;
    --danger-color-light: #F8D7DA;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --white-color: #ffffff;
    --black-color: #000000;
    --alternate-color: rgb(85, 50, 85);
}

/* Style for read-only input fields */
input:read-only {
    background-color: #d8dbde; /* Light grey background */
    color: #000000; /* Grey text color */
}

.bg-custom-primary {
    background-color: #3c67d2 !important;
    color: var(--white-color) !important;
    border-color: #3c67d2;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.bg-custom-primary-light {
    background-color: #F0F4FA !important;
    color: var(--black-color) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.bg-custom-success {
    background-color: #328044 !important;
    color: var(--white-color) !important;
    border-color: #328044;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.bg-custom-success-light {
    background-color: #D4EDDA !important;
    color: var(--black-color) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.bg-custom-danger {
    background-color: #ff5353 !important;
    color: var(--white-color) !important;
    border-color: #ff5353;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.bg-custom-danger-light {
    background-color: #F8D7DA !important;
    color: var(--black-color) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.btn-custom-primary {
    background-color: #3c67d2 !important;
    color: var(--white-color) !important;
    border-color: #3c67d2 !important;
}

.btn-custom-success {
    background-color: #328044 !important;
    color: var(--white-color) !important;
    border-color: #328044 !important;
}

.btn-custom-warning {
    background-color: #ff5353 !important;
    color: var(--white-color) !important;
    border-color: #ff5353 !important;
}

/* Apply a scale transform to the entire page */
body {
    transform: scale(1);
    transform-origin: top left;
    width: 100%; /* Compensate for the scale down to maintain the same width */
    overflow-x: hidden; /* Prevent horizontal scroll */
}

body, html {
    height: 100%;
    margin: 0;
    font-size: 12px; /* Smaller font size */
}


/* Make field labels bold */
label {
    font-weight: bold;
}

.form-group {
    margin-bottom: 10px; /* Increase this value to add more vertical space */
}




#app {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.sidebar {
    width: 175px;
    background-color: var(--light-color);
    padding: 15px;
    height: calc(100vh - 70px); /* Full height minus the height of the top bar */
    position: fixed; /* Fixed position */
    top: 70px; /* Height of the top bar */
    left: 0;
}

.content {
    margin-left: 0; /* Same as sidebar width */
    padding: 15px;
    width: calc(100%); /* Adjust width */
    margin-top: 0; /* Height of the top bar */
}

/* Custom navbar background color */
.navbar-custom {
    background-color: var(--primary-color) !important;
}

.navbar-nav .nav-link {
    font-size: 1.4rem; /* Adjust the font size as needed */
}

/* Custom button styles */

.btn-quote {
    background-color: var(--warning-color);
    color: var(--black-color);
    border-color: var(--warning-color);
}

.btn-order {
    background-color: var(--info-color);
    color: var(--white-color);
    border-color: var(--info-color);
}

.btn-invoice {
    background-color: var(--success-color);
    color: var(--white-color);
    border-color: var(--success-color);
}

.btn-po {
    background-color: var(--alternate-color);
    color: var(--white-color);
    border-color: var(--alternate-color);
}

.btn-customer {
background-color: var(--info-color);
color: var(--white-color);
border-color: var(--info-color);
}


.custom-btn-width {
    width: 100px; /* Adjust the width as needed */
}

.sortable {
    color: inherit;
    text-decoration: none;
}
.sortable:hover {
    text-decoration: underline;
}

.header-rows {
    display: flex;
    justify-content: space-between;
    gap: 10px; /* Adjust the gap between sections as needed */
    padding: 10px; /* Add padding inside the header rows */
    border: 1px solid lightgrey; /* Add border to match header-rows */
    border-radius: 5px; /* Optional: Add rounded corners */
    /* margin-bottom: 10px;  Add margin at the bottom */

}

.customer-section, .dates-section, .financials-section, .production-section {
    flex: 1;
    padding: 10px; /* Add padding inside the sections */
    background-color: #f9f9f9; /* Lightest shade of green for customer-section */
    border: 1px solid lightgrey; /* Add border to match header-rows */
    border-radius: 5px; /* Optional: Add rounded corners */
}

.button-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%; /* Ensure the row takes the full width */
}



.custom-textarea-height {
    height: 100px !important; /* Adjust the value as needed */
}



/* Drag and Drop Area Styles */
.drop-area {
    border: 2px dashed #ccc;
    border-radius: 4px;
    padding: 10px; /* Reduced padding */
    text-align: center;
    cursor: pointer;
    margin-top: 5px;
    height: 100px; /* Set a fixed height */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f9f9f9;
}

.drop-area.drag-over {
    border-color: #000;
    background-color: #e9e9e9;
}


.label-margin-bottom {
    margin-bottom: 0px; /* Adjust the value as needed */
}

/* Hide arrows in input[type=number] */
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
}

/* Dashboard styles */
.custom-row {
   
    width: 90%; /* Set width to 80% of the page */
    margin: 0 auto; /* Center the row */
}

.dashboard-card {
    border: 1px solid #dee2e6; /* Light border */
    border-radius: 10px; /* Rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    color: #333; /* Dark grey text */
    text-align: center; /* Center-align text */
}

.dashboard1-card {
    background-color: #d4edda; /* Light Green background */
}

.dashboard2-card {

    background-color: #cce5ff; /* Light Blue background */
}

.dashboard3-card {
    background-color: #f8d7da; /* Light Red background */
}
.dashboard4-card {
    background-color: #fff3cd; /* Light Yellow background */
}

.dashboard-card-title {
    border: 1px solid #dee2e6; /* Light border */
    border-radius: 5px; /* Rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    color: #333; /* Dark grey text */
    background-color: rgba(0, 0, 0, 0.2);
    text-align: center; /* Center-align text */
    padding: 0.5rem; /* Add padding */
    font-size: 1.2rem; /* Larger font size */
    font-weight: bold;
}

.dashboard-card-body {
    font-size: 1.1rem; /* Standard font size */
}


@media (max-width: 768px) {
    .custom-col1,
    .custom-col2,
    .custom-col3,
    .custom-col4 {
        width: 100%;
        margin-right: 0;
        float: none;
    }
}