body {
    font-family: 'Roboto', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Make container wider for all pages */
.container {
    max-width: 98% !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
}

body-print {
    background-color: white;
}

.menu-image {
    width: 60px;
    height: 60px;
    border-radius: 30px;
    border: 3px solid gray;
}

.title-bar {
    background-color: rgb(170, 198, 198);
    padding: 5px;
    color: black;
    align-items: center;
    margin-bottom: 10px;
}

.title {
    cursor: default;
    font-size: 12px;
}

.cursor {
    cursor: default;
}

/* sidebar */
/* 
.sidebar {
    padding-left: 0px;
    padding-right: 0px;
}

.sidebar>nav>ul>li>a {
    color: #006838;
    padding: 10px;
    border: 1px solid;
    border-color: #c0c0c0;
    min-width: 200px;
}

.sidebar>nav>ul>li.active>a {
    cursor: default;
    background-color: #006838;
    color: white;
    padding: 10px;
    border: 1px solid;
    border-color: #c0c0c0;
    min-width: 200px;
} */

.padding-0 {
    padding-right: 0 !important;
    padding-left: 0 !important;
}

.padding-10 {
    padding: 10px;
}

.breadcrump {
    margin-top: -22px;
    background-color: #006838 !important;
    color: white;
    min-height: 20px !important;
}

.breadcrump a {
    color: white !important;
    padding-top: 5px !important;
    padding-bottom: 5px !important;
}

/* cards -- see banks */
/* https://bootsnipp.com/snippets/xvodW */

.shape {
    border-style: solid;
    border-width: 0 70px 40px 0;
    float: right;
    height: 0px;
    width: 0px;
    -ms-transform: rotate(360deg);
    /* IE 9 */
    -o-transform: rotate(360deg);
    /* Opera 10.5 */
    -webkit-transform: rotate(360deg);
    /* Safari and Chrome */
    transform: rotate(360deg);
}

.shape-text {
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    position: relative;
    right: -40px;
    top: 2px;
    white-space: nowrap;
    -ms-transform: rotate(30deg);
    /* IE 9 */
    -o-transform: rotate(360deg);
    /* Opera 10.5 */
    -webkit-transform: rotate(30deg);
    /* Safari and Chrome */
    transform: rotate(30deg);
}

.project {
    min-height: 200px;
    height: auto;
}

.project {
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    margin: 15px 0;
    overflow: hidden;
}

.project-radius {
    border-radius: 7px;
}

.project-default {
    border-color: #999999;
}

.project-default .shape {
    border-color: transparent #999999 transparent transparent;
    border-color: rgba(255, 255, 255, 0) #999999 rgba(255, 255, 255, 0) rgba(255, 255, 255, 0);
}

.project-danger {
    border-color: #d9534f;
}

.project-danger .shape {
    border-color: transparent #d9534f transparent transparent;
    border-color: rgba(255, 255, 255, 0) #d9534f rgba(255, 255, 255, 0) rgba(255, 255, 255, 0);
}

.project-success {
    border-color: #5cb85c;
}

.project-success .shape {
    border-color: transparent #5cb85c transparent transparent;
    border-color: rgba(255, 255, 255, 0) #5cb85c rgba(255, 255, 255, 0) rgba(255, 255, 255, 0);
}

.project-primary {
    border-color: #428bca;
}

.project-primary .shape {
    border-color: transparent #428bca transparent transparent;
    border-color: rgba(255, 255, 255, 0) #428bca rgba(255, 255, 255, 0) rgba(255, 255, 255, 0);
}

.project-info {
    border-color: #5bc0de;
}

.project-info .shape {
    border-color: transparent #5bc0de transparent transparent;
    border-color: rgba(255, 255, 255, 0) #5bc0de rgba(255, 255, 255, 0) rgba(255, 255, 255, 0);
}

.project-warning {
    border-color: #f0ad4e;
}

.project-warning .shape {
    border-color: transparent #f0ad4e transparent transparent;
    border-color: rgba(255, 255, 255, 0) #f0ad4e rgba(255, 255, 255, 0) rgba(255, 255, 255, 0);
}

.project-content {
    padding: 0 20px 10px;
}








/*
.table-invoice table { border-collapse: collapse; }
.table-invoice tr { border: solid 1px #f00; }
.table-invoice td {
  border-right: solid 1px #f00;
  border-left: solid 1px #f00;
}
*/


.tile {
    background-color: white;
    /*padding: 0px;*/
    border: solid 1px #f0f0f0;
}

.tile.green {
    background-color: green;
    color: white;
}

.rotate {

    /* Safari */
    -webkit-transform: rotate(-90deg);

    /* Firefox */
    -moz-transform: rotate(-90deg);

    /* IE */
    -ms-transform: rotate(-90deg);

    /* Opera */
    -o-transform: rotate(-90deg);

    /* Internet Explorer */
    filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3);

}








/* circle buttons */

.btn-circle {
    width: 30px;
    height: 30px;
    text-align: center;
    padding: 6px 0;
    font-size: 12px;
    line-height: 1.428571429;
    border-radius: 15px;
}

.btn-circle.btn-lg {
    width: 50px;
    height: 50px;
    padding: 10px 16px;
    font-size: 18px;
    line-height: 1.33;
    border-radius: 25px;
}

.btn-circle.btn-xl {
    width: 70px;
    height: 70px;
    padding: 10px 16px;
    font-size: 24px;
    line-height: 1.33;
    border-radius: 35px;
}







.vcenter {
    display: inline-block;
    vertical-align: middle;
    float: none;
}





















/* panel default with tabs */


.panel.with-nav-tabs .panel-heading {
    padding: 5px 5px 0 5px;
}

.panel.with-nav-tabs .nav-tabs {
    border-bottom: none;
}

.panel.with-nav-tabs .nav-justified {
    margin-bottom: -1px;
}

/********************************************************************/
/*** PANEL DEFAULT ***/
.with-nav-tabs.panel-default .nav-tabs>li>a,
.with-nav-tabs.panel-default .nav-tabs>li>a:hover,
.with-nav-tabs.panel-default .nav-tabs>li>a:focus {
    color: #777;
}

.with-nav-tabs.panel-default .nav-tabs>.open>a,
.with-nav-tabs.panel-default .nav-tabs>.open>a:hover,
.with-nav-tabs.panel-default .nav-tabs>.open>a:focus,
.with-nav-tabs.panel-default .nav-tabs>li>a:hover,
.with-nav-tabs.panel-default .nav-tabs>li>a:focus {
    color: #777;
    background-color: #ddd;
    border-color: transparent;
}

.with-nav-tabs.panel-default .nav-tabs>li.active>a,
.with-nav-tabs.panel-default .nav-tabs>li.active>a:hover,
.with-nav-tabs.panel-default .nav-tabs>li.active>a:focus {
    color: #555;
    background-color: #fff;
    border-color: #ddd;
    border-bottom-color: transparent;
}

.with-nav-tabs.panel-default .nav-tabs>li.dropdown .dropdown-menu {
    background-color: #f5f5f5;
    border-color: #ddd;
}

.with-nav-tabs.panel-default .nav-tabs>li.dropdown .dropdown-menu>li>a {
    color: #777;
}

.with-nav-tabs.panel-default .nav-tabs>li.dropdown .dropdown-menu>li>a:hover,
.with-nav-tabs.panel-default .nav-tabs>li.dropdown .dropdown-menu>li>a:focus {
    background-color: #ddd;
}

.with-nav-tabs.panel-default .nav-tabs>li.dropdown .dropdown-menu>.active>a,
.with-nav-tabs.panel-default .nav-tabs>li.dropdown .dropdown-menu>.active>a:hover,
.with-nav-tabs.panel-default .nav-tabs>li.dropdown .dropdown-menu>.active>a:focus {
    color: #fff;
    background-color: #555;
}

/********************************************************************/
/*** PANEL INFO ***/
.with-nav-tabs.panel-info .nav-tabs>li>a,
.with-nav-tabs.panel-info .nav-tabs>li>a:hover,
.with-nav-tabs.panel-info .nav-tabs>li>a:focus {
    color: #31708f;
}

.with-nav-tabs.panel-info .nav-tabs>.open>a,
.with-nav-tabs.panel-info .nav-tabs>.open>a:hover,
.with-nav-tabs.panel-info .nav-tabs>.open>a:focus,
.with-nav-tabs.panel-info .nav-tabs>li>a:hover,
.with-nav-tabs.panel-info .nav-tabs>li>a:focus {
    color: #31708f;
    background-color: #bce8f1;
    border-color: transparent;
}

.with-nav-tabs.panel-info .nav-tabs>li.active>a,
.with-nav-tabs.panel-info .nav-tabs>li.active>a:hover,
.with-nav-tabs.panel-info .nav-tabs>li.active>a:focus {
    color: #31708f;
    background-color: #fff;
    border-color: #bce8f1;
    border-bottom-color: transparent;
}

.with-nav-tabs.panel-info .nav-tabs>li.dropdown .dropdown-menu {
    background-color: #d9edf7;
    border-color: #bce8f1;
}

.with-nav-tabs.panel-info .nav-tabs>li.dropdown .dropdown-menu>li>a {
    color: #31708f;
}

.with-nav-tabs.panel-info .nav-tabs>li.dropdown .dropdown-menu>li>a:hover,
.with-nav-tabs.panel-info .nav-tabs>li.dropdown .dropdown-menu>li>a:focus {
    background-color: #bce8f1;
}

.with-nav-tabs.panel-info .nav-tabs>li.dropdown .dropdown-menu>.active>a,
.with-nav-tabs.panel-info .nav-tabs>li.dropdown .dropdown-menu>.active>a:hover,
.with-nav-tabs.panel-info .nav-tabs>li.dropdown .dropdown-menu>.active>a:focus {
    color: #fff;
    background-color: #31708f;
}















.min-180 {
    min-height: 180px;
}

.min-50 {
    min-height: 50px;
}

.min-75 {
    min-height: 75px;
}









.float-bottom-right {
    position: fixed;
    bottom: 20px;
    right: 20px;
}











.print-footer {
    position: fixed;
    bottom: 0px;
}


tr.total-row>td.jsgrid-cell {
    font-weight: bold;
}


.minus-red {
    color: red;
}

.minus-red::before {
    content: "-";
}

.bold {
    font-weight: bold;
}







.small-tile {
    background-color: white;
    padding: 15px;
    border-bottom: 1px solid #c0c0c0;
    /* #f0f0f0; */
    border-right: 1px solid #c0c0c0;
    border-left: 1px solid #f0f0f0;
    border-top: 1px solid #f0f0f0;
    cursor: default;
}


.boxed {
    border: 1px solid #f0f0f0;
}

.border-left {
    border-left: 1px solid #f0f0f0;
}

.border-right {
    border-right: 1px solid #f0f0f0;
}





.bg-blue {
    background-color: blue;
}

.bg-red {
    background-color: red;
}

.bg-orange {
    background-color: orange;
}

.bg-yellow {
    background-color: yellow;
}

.bg-green {
    background-color: green;
}

.bg-light-green {
    background-color: lightgreen;
}

.bg-purple {
    background-color: #96588A;
}

.bg-gray {
    background-color: #c0c0c0;
}

.deleted {
    text-decoration: line-through;
    color: red;
}






.hometile {
    max-height: 300px;
    border-bottom: 1px solid;
    border-right: 1px solid;

}

.img200 {
    max-width: 200px;
}

.img100 {
    max-width: 100px;
}

.note {
    min-height: 200px;
    border-bottom: 1px #c0c0c0 solid;
    border-right: 1px #c0c0c0 solid;
    padding: 10px;
    margin: 10px;
    background-color: #ffffa5;
    font-size: smaller;
    cursor: default;
}

.note-blue {
    background-color: #66d6d6 !important;
}

.sheet {
    min-height: 200px;
    border-bottom: 1px #c0c0c0 solid;
    border-right: 1px #c0c0c0 solid;
    padding: 10px;
    background-color: white;
    /* #ffffa5; */
    font-size: smaller;
    cursor: default;
}

.btn-spaced {
    margin: 3px;
}


.bordered_item.active {
    border: 2px solid;
}

.bordered_item {
    border: 1px solid;
    font-size: x-small;
    padding: 8px;
    line-height: 3.5;
    white-space: nowrap;
    background-color: white;

}

.mynav {
    padding: 5px;
    border: 1px solid;
    background-color: whitesmoke;
}

.bread {
    background: #e9ecef;
    margin-top: auto;
    padding-top: 15px;
    padding-bottom: 1px;
}

.bread>nav>ol>li>a {
    margin-left: 10px;
    text-decoration: none;
}

footer {
    min-height: 20px;
    background: black;
    color: white;
    font-size: xx-small;
    padding: 5px;
    text-align: center;

    margin-top: auto;
}

footer>span {
    padding-left: 10px;
    padding-right: 10px;
}

/* posts */

.message-board {
    max-width: 800px;
    margin: 2rem auto;
}

.message-card {
    margin-bottom: 1rem;
}

.message-card {
    margin-bottom: 1rem;
    border-radius: 10px;
}

.message-card:nth-child(odd) {
    background-color: #d1e7dd;
    text-align: left;
}

.message-card:nth-child(even) {
    background-color: #f8d7da;
    text-align: right;
}

.message-card .card-body {
    display: inline-block;
    /* max-width: 70%; */
}

/* Modern Sidebar Styles */
.modern-sidebar {
    position: sticky;
    top: 1rem;
}

.modern-sidebar .nav-link {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    color: #495057;
    font-weight: 500;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.modern-sidebar .nav-link:hover {
    background: #f8f9fa;
    border-left-color: #667eea;
    padding-left: 1.25rem;
}

.modern-sidebar .nav-link.active {
    background: linear-gradient(90deg, #f8f9fa 0%, #e9ecef 100%);
    border-left-color: #667eea;
    color: #667eea;
}

/* User Form Card Styles */
.user-form-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
}

.user-form-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1.5rem;
    color: white;
}

.user-form-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.user-form-body {
    padding: 2rem;
}

.user-form-actions {
    padding: 1.5rem 2rem;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

/* User Form Grid & Sections */
.user-form-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-section {
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.form-section:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.form-section-title {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1rem 1.5rem;
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
}

.form-section-title i {
    color: #667eea;
}

.form-section-body {
    padding: 1.5rem;
}

/* Enhanced form controls */
.user-form-body .form-control,
.user-form-body .form-select {
    border-radius: 6px;
    border: 1px solid #ced4da;
    padding: 0.625rem 0.875rem;
    transition: all 0.2s ease;
}

.user-form-body .form-control:focus,
.user-form-body .form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.15);
}

.user-form-body .form-label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.5rem;
}

.user-form-body .text-muted {
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: block;
}

/* Form switches */
.form-check-input:checked {
    background-color: #667eea;
    border-color: #667eea;
}

.form-check-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.15);
}

/* Modern Buttons */
.modern-btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.modern-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.modern-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.modern-btn i {
    opacity: 0.9;
}

.btn-success.modern-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.btn-success.modern-btn:hover {
    background: linear-gradient(135deg, #218838 0%, #1ba87e 100%);
}

.btn-secondary.modern-btn {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
}

.btn-secondary.modern-btn:hover {
    background: linear-gradient(135deg, #5a6268 0%, #545b62 100%);
}

.btn-danger.modern-btn {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

.btn-danger.modern-btn:hover {
    background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
}

/* Preparation Scanner Card */
.prepare-scanner-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    overflow: hidden;
}

.scanner-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.scanner-icon {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.5rem;
}

.scanner-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
}

.scanner-stats {
    display: flex;
    gap: 1.5rem;
}

.stat-item {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    background: rgba(255,255,255,0.15);
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.scanner-body {
    padding: 2.5rem;
}

.barcode-input-wrapper {
    position: relative;
    margin-bottom: 2rem;
}

.barcode-icon-large {
    text-align: center;
    font-size: 4rem;
    color: #667eea;
    margin-bottom: 1.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.barcode-input-wrapper input {
    font-size: 1.25rem;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.barcode-input-wrapper input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.3rem rgba(102, 126, 234, 0.15);
    transform: scale(1.02);
}

.scan-indicator {
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    height: 3px;
    background: #f8f9fa;
    border-radius: 3px;
    overflow: hidden;
}

.scan-line {
    height: 100%;
    background: linear-gradient(90deg, transparent, #667eea, transparent);
    animation: scan 2s infinite;
}

@keyframes scan {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(200%); }
}

/* Preparations History */
.preparations-history {
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    overflow: hidden;
}

.history-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #dee2e6;
}

.history-header h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #495057;
}

.history-body {
    padding: 1.5rem;
    max-height: 600px;
    overflow-y: auto;
}

.preparations-grid {
    display: grid;
    gap: 0.75rem;
}

.preparation-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 3px solid #667eea;
    transition: all 0.2s ease;
}

.preparation-item:hover {
    background: #e9ecef;
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.prep-icon {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667eea;
    margin-right: 1rem;
    font-size: 1.1rem;
}

.prep-info {
    flex: 1;
}

.prep-barcode {
    font-weight: 600;
    color: #212529;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.prep-time {
    font-size: 0.85rem;
    color: #6c757d;
}

.prep-badge {
    font-size: 1.2rem;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
}

.empty-state i {
    font-size: 4rem;
    color: #dee2e6;
    margin-bottom: 1rem;
}

.empty-state p {
    margin: 0;
    font-size: 1rem;
}

/* Scrollbar styling */
.history-body::-webkit-scrollbar {
    width: 8px;
}

.history-body::-webkit-scrollbar-track {
    background: #f8f9fa;
}

.history-body::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 4px;
}

.history-body::-webkit-scrollbar-thumb:hover {
    background: #5568d3;
}

/* Barcode Display (no input) */
.barcode-display {
    text-align: center;
    padding: 2rem 0;
}

.scanner-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 1rem;
}

.channel-display {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.channel-display i {
    font-size: 1.3rem;
}
