*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Segoe UI, Arial, sans-serif;
}

html, body{
    height:100%;
}

body{
    background:#f3f5f9;
    transition: background-color 0.3s, color 0.3s;
}

/* =============================
   DARK MODE
============================= */

body.dark-mode {
    background: #1a1a1a;
    color: #f0f0f0;
}

body.dark-mode .card,
body.dark-mode .section-card,
body.dark-mode .auth-card,
body.dark-mode .modal-content,
body.dark-mode .ai-insight-container,
body.dark-mode .shift-summary,
body.dark-mode .shift-alert,
body.dark-mode .print-area {
    background: #2d2d2d;
    border-color: #404040;
    color: #f0f0f0;
}

body.dark-mode input,
body.dark-mode select,
body.dark-mode textarea {
    background: #3d3d3d;
    border-color: #555;
    color: #f0f0f0;
}

body.dark-mode input:focus,
body.dark-mode select:focus,
body.dark-mode textarea:focus {
    border-color: #165c2c;
}

body.dark-mode table td {
    border-bottom-color: #404040;
}

body.dark-mode table tr:hover {
    background: #3d3d3d;
}

body.dark-mode .sidebar {
    background: #0f3f1d;
}

body.dark-mode .card h3,
body.dark-mode .card p {
    color: #f0f0f0;
}

/* =============================
   TOAST NOTIFICATIONS
============================= */

.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 9999;
    animation: slideInRight 0.3s ease;
    min-width: 300px;
    max-width: 400px;
}

.toast-success { 
    border-left: 4px solid #27ae60; 
    color: #27ae60;
}

.toast-error { 
    border-left: 4px solid #c0392b; 
    color: #c0392b;
}

.toast-warning { 
    border-left: 4px solid #f39c12; 
    color: #f39c12;
}

.toast-info { 
    border-left: 4px solid #3498db; 
    color: #3498db;
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInLeft {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* =============================
   SIDEBAR (SCROLL FIXED)
============================= */

.sidebar{
    width:240px;
    position:fixed;
    top:0;
    bottom:0;
    left:0;
    background:#165c2c;
    color:white;
    display:flex;
    flex-direction:column;
    overflow-y:auto;
    overflow-x:hidden;
    -webkit-overflow-scrolling:touch;
    transition: width 0.3s;
    z-index: 100;
}

.sidebar.collapsed {
    width: 70px;
}

.sidebar.collapsed .sidebar-links a span {
    display: none;
}

.sidebar.collapsed .sidebar-section-title {
    display: none;
}

.sidebar.collapsed .sidebar-links a i {
    margin: 0 auto;
}

.sidebar.collapsed .logo-title,
.sidebar.collapsed .logo-sub {
    display: none;
}

/* Sidebar Toggle Button */
.sidebar-toggle {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    padding: 5px;
    font-size: 18px;
}

/* Sidebar Header - Now properly sticky at top */
.sidebar-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:18px;
    background:white;
    border-bottom:1px solid #e5e5e5;
    position:sticky;
    top:0;
    z-index:10;
    flex-shrink:0;
}

.sidebar-header h2{
    font-size:18px;
    font-weight:700;
    color:#165c2c;
}

.sidebar-logo{
    width:30px;
    height:30px;
}

/* Container for sidebar links */
.sidebar-links {
    flex:1;
    overflow-y:auto;
    overflow-x:hidden;
    padding-bottom:20px;
}

/* Sidebar Links */
.sidebar-links a{
    display:flex;
    align-items:center;
    gap: 12px;
    padding:13px 20px;
    color:white;
    text-decoration:none;
    font-size:14px;
    transition:0.3s;
    border-left: 3px solid transparent;
}

.sidebar-links a i {
    width: 20px;
    text-align: center;
}

.sidebar-links a:hover,
.sidebar-links a.active{
    background:#c0392b;
    border-left-color: white;
}

/* Section headers in sidebar */
.sidebar-section-title {
    color: rgba(255,255,255,0.5);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 15px 20px 5px 20px;
    font-weight: 600;
}

/* Custom Scrollbar for the links container */
.sidebar-links::-webkit-scrollbar{
    width:6px;
}

.sidebar-links::-webkit-scrollbar-thumb{
    background:#0f4721;
    border-radius:10px;
}

.sidebar-links::-webkit-scrollbar-thumb:hover{
    background:#0c3a1b;
}

/* =============================
   MAIN CONTENT
============================= */

.main{
    margin-left:240px;
    padding:30px;
    min-height:100vh;
    transition: margin-left 0.3s;
}

.main.expanded {
    margin-left: 70px;
}

/* =============================
   PAGE HEADER
============================= */

.page-header{
    margin-bottom:25px;
}

.page-header h1{
    font-size:22px;
    color:#165c2c;
    margin-bottom:5px;
}

.page-header p{
    color:#777;
    font-size:14px;
}

/* =============================
   SECTION CARD
============================= */

.section-card{
    background:white;
    padding:25px;
    border-radius:10px;
    box-shadow:0 3px 10px rgba(0,0,0,0.07);
    margin-bottom:25px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.section-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* =============================
   FORMS
============================= */

.form-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:20px;
}

.form-group{
    margin-bottom:15px;
}

.form-group label{
    display:block;
    margin-bottom:8px;
    font-weight:600;
    font-size:13px;
    color:#444;
}

.form-group label i {
    color: #165c2c;
    width: 20px;
    margin-right: 5px;
}

.form-group label .required {
    color: #c0392b;
    margin-left: 3px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width:100%;
    padding:12px;
    margin-top:6px;
    border-radius:8px;
    border:2px solid #e8e8e8;
    font-size:14px;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus{
    border-color:#165c2c;
    outline:none;
    box-shadow:0 0 0 3px rgba(22,92,44,0.1);
}

.form-group .hint {
    font-size: 12px;
    color: #95a5a6;
    margin-top: 5px;
}

/* =============================
   BUTTONS
============================= */

.btn{
    padding:12px 24px;
    border:none;
    border-radius:8px;
    cursor:pointer;
    font-size:14px;
    font-weight:600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary{
    background:#165c2c;
    color:white;
}

.btn-primary:hover{
    background:#c0392b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(192,57,43,0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-success{
    background:#27ae60;
    color:white;
}

.btn-success:hover{
    background:#219a52;
    transform: translateY(-2px);
}

.btn-danger{
    background:#c0392b;
    color:white;
}

.btn-danger:hover{
    background:#922b21;
    transform: translateY(-2px);
}

.btn-warning{
    background:#f39c12;
    color:white;
}

.btn-warning:hover{
    background:#e67e22;
}

.btn-info{
    background:#3498db;
    color:white;
}

.btn-info:hover{
    background:#2980b9;
}

.btn-secondary{
    background:#95a5a6;
    color:white;
}

.btn-secondary:hover{
    background:#7f8c8d;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 12px;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

.btn-block {
    width: 100%;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* =============================
   TABLES
============================= */

.table-responsive {
    overflow-x: auto;
}

table{
    width:100%;
    border-collapse:collapse;
    margin-top:10px;
}

table th{
    background:#165c2c;
    color:white;
    padding:12px;
    text-align:left;
    font-size:13px;
    font-weight:600;
    white-space: nowrap;
}

table td{
    padding:12px;
    border-bottom:1px solid #eee;
    font-size:13px;
}

table tr:hover{
    background:#f5f5f5;
}

table .positive {
    color: #27ae60;
    font-weight: 600;
}

table .negative {
    color: #c0392b;
    font-weight: 600;
}

/* =============================
   BADGES
============================= */

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.badge-success {
    background: #d4edda;
    color: #27ae60;
}

.badge-warning {
    background: #fff3cd;
    color: #f39c12;
}

.badge-danger {
    background: #f8d7da;
    color: #c0392b;
}

.badge-info {
    background: #d1ecf1;
    color: #3498db;
}

/* =============================
   ALERTS
============================= */

.alert{
    padding:15px 20px;
    border-radius:8px;
    margin-bottom:20px;
    font-size:14px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideDown 0.3s ease;
}

.alert-success{
    background:#d4edda;
    color:#27ae60;
    border-left: 4px solid #27ae60;
}

.alert-error{
    background:#f8d7da;
    color:#c0392b;
    border-left: 4px solid #c0392b;
}

.alert-warning{
    background:#fff3cd;
    color:#f39c12;
    border-left: 4px solid #f39c12;
}

.alert-info{
    background:#d1ecf1;
    color:#3498db;
    border-left: 4px solid #3498db;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =============================
   DASHBOARD GRID
============================= */

.grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:20px;
    margin-top:20px;
}

.card{
    background:white;
    padding:20px;
    border-radius:12px;
    box-shadow:0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.card:hover{
    transform:translateY(-5px);
    box-shadow:0 10px 25px rgba(0,0,0,0.12);
    border-color: #165c2c;
}

.card h3{
    margin-bottom:10px;
    font-size:16px;
    color:#333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card h3 i {
    color: #165c2c;
}

.card p{
    font-size:24px;
    font-weight:700;
    color: #165c2c;
}

.metric{
    background: linear-gradient(135deg, #165c2c, #1f7a3b);
    color:white;
}

.metric h3,
.metric p{
    color:white;
}

.metric h3 i {
    color: white;
}

.alert-card{
    background:#fff3cd;
    border-left:5px solid #f39c12;
}

.alert-card p {
    color: #856404;
}

.ai-box{
    background:#e8f5e9;
    border-left:5px solid #165c2c;
}

/* =============================
   STATISTICS CARDS
============================= */

.stats-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid #165c2c;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-3px);
}

.stat-card.warning {
    border-left-color: #f39c12;
}

.stat-card.danger {
    border-left-color: #c0392b;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #165c2c;
}

.stat-label {
    color: #7f8c8d;
    font-size: 13px;
    margin-top: 5px;
}

/* =============================
   POS LAYOUT
============================= */

.pos-layout{
    display:grid;
    grid-template-columns:2.5fr 1.2fr;
    gap:25px;
}

.pos-left .card,
.pos-right .card{
    margin-bottom:20px;
}

.search-box{
    position: relative;
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #95a5a6;
}

.search-box input{
    width:100%;
    padding:14px 14px 14px 45px;
    border-radius:50px;
    border:2px solid #eef2f0;
    font-size:15px;
    transition: all 0.3s;
}

.search-box input:focus {
    border-color: #165c2c;
    outline: none;
    box-shadow: 0 0 0 3px rgba(22,92,44,0.1);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    max-height: 500px;
    overflow-y: auto;
    padding-right: 10px;
}

.product-grid::-webkit-scrollbar {
    width: 6px;
}

.product-grid::-webkit-scrollbar-thumb {
    background: #cbd5cb;
    border-radius: 10px;
}

.product-item{
    border:1px solid #eef2f0;
    padding:15px;
    border-radius:12px;
    margin-bottom:10px;
    display:flex;
    flex-direction: column;
    gap: 10px;
    transition:0.3s;
    background: white;
    position: relative;
}

.product-item:hover{
    transform: translateY(-3px);
    box-shadow:0 10px 20px rgba(22,92,44,0.1);
    border-color:#165c2c;
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #e8f5e9;
    color: #165c2c;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 20px;
}

.product-name {
    font-weight: 600;
    font-size: 15px;
    color: #2c3e50;
    padding-right: 60px;
}

.product-price {
    font-size: 20px;
    font-weight: 700;
    color: #165c2c;
}

.product-stock {
    font-size: 13px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
}

.stock-low {
    color: #c0392b;
}

.stock-good {
    color: #27ae60;
}

.product-item button{
    background:#165c2c;
    color:white;
    border:none;
    padding:8px 12px;
    border-radius:8px;
    cursor:pointer;
    font-weight:600;
    transition:0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.product-item button:hover{
    background:#1f7a3b;
    transform: scale(1.02);
}

.product-item button:active {
    transform: scale(0.98);
}

.product-item button:disabled {
    background: #95a5a6;
    cursor: not-allowed;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.cart-count {
    background: #165c2c;
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.cart-items {
    max-height: 350px;
    overflow-y: auto;
    margin-bottom: 15px;
}

.cart-items::-webkit-scrollbar {
    width: 4px;
}

.cart-items::-webkit-scrollbar-thumb {
    background: #cbd5cb;
    border-radius: 10px;
}

.cart-item{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:12px;
    padding:10px;
    background: #f9f9f9;
    border-radius: 8px;
    font-size:14px;
    transition: 0.2s;
}

.cart-item:hover {
    background: #f0f0f0;
}

.cart-item-info {
    flex: 2;
}

.cart-item-name {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 4px;
}

.cart-item-price {
    font-size: 12px;
    color: #7f8c8d;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 5px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 2px;
}

.cart-item-qty button {
    background: none;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    cursor: pointer;
    color: #555;
    transition: 0.2s;
}

.cart-item-qty button:hover {
    background: #165c2c;
    color: white;
}

.cart-item-total {
    font-weight: 700;
    min-width: 80px;
    text-align: right;
}

.remove-item {
    color: #c0392b;
    text-decoration: none;
    padding: 5px;
    border-radius: 50%;
    transition: 0.2s;
}

.remove-item:hover {
    background: #fdecea;
}

.cart-summary {
    background: #f5f9f5;
    border-radius: 10px;
    padding: 15px;
    margin: 15px 0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.summary-row.total {
    font-size: 18px;
    font-weight: 700;
    color: #165c2c;
    border-top: 2px dashed #ccc;
    padding-top: 10px;
    margin-top: 10px;
}

.cart-total{
    font-size:22px;
    font-weight:bold;
    margin-top:15px;
    text-align:right;
    color: #165c2c;
}

.payment-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 15px;
}

.btn-cash,
.btn-mpesa{
    padding:14px;
    border:none;
    border-radius:8px;
    font-size:15px;
    font-weight:600;
    cursor:pointer;
    transition:0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-cash{
    background:#165c2c;
    color:white;
}

.btn-mpesa{
    background:#34b233;
    color:white;
}

.btn-cash:hover{
    background:#1f7a3b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(22,92,44,0.3);
}

.btn-mpesa:hover{
    background:#2d9c2c;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52,178,51,0.3);
}

.btn-cash:active,
.btn-mpesa:active {
    transform: translateY(0);
}

.pos-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:25px;
    background: white;
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    border-left: 5px solid #165c2c;
}

.branch-badge{
    background:#165c2c;
    color:white;
    padding:8px 16px;
    border-radius:40px;
    font-size:13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-dashboard{
    background:#165c2c;
    color:white;
    padding:10px 20px;
    border-radius:8px;
    text-decoration:none;
    font-size:14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition:0.3s;
}

.btn-dashboard:hover{
    background:#c0392b;
    transform: translateY(-2px);
}

/* =============================
   LOADING SPINNER
============================= */

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #165c2c;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

.spinner-sm {
    width: 20px;
    height: 20px;
    border-width: 2px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* =============================
   MODAL
============================= */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.modal-header h3 {
    margin: 0;
    font-size: 20px;
    color: #165c2c;
}

.close-modal {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #95a5a6;
    transition: 0.3s;
}

.close-modal:hover {
    color: #c0392b;
}

/* =============================
   TIMELINE
============================= */

.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e0e0e0;
}

.timeline-item {
    position: relative;
    padding-left: 70px;
    margin-bottom: 30px;
}

.timeline-icon {
    position: absolute;
    left: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    z-index: 1;
}

.timeline-icon.bg-success { background: #27ae60; }
.timeline-icon.bg-info { background: #3498db; }
.timeline-icon.bg-warning { background: #f39c12; }
.timeline-icon.bg-danger { background: #c0392b; }

.timeline-content {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.timeline-content h4 {
    margin-bottom: 5px;
    color: #2c3e50;
}

.timeline-content .time {
    font-size: 12px;
    color: #95a5a6;
}

/* =============================
   REAL-TIME CLOCK
============================= */

.real-time-clock {
    background: white;
    padding: 15px 20px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

#liveTime {
    font-size: 24px;
    font-weight: 700;
    color: #165c2c;
    font-family: monospace;
}

#liveDate {
    color: #7f8c8d;
    font-size: 14px;
}

/* =============================
   QUICK ACTIONS
============================= */

.quick-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.quick-action-btn {
    padding: 12px 20px;
    background: white;
    border: 1px solid #eef2f0;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
    flex: 1;
    min-width: 150px;
}

.quick-action-btn:hover {
    background: #165c2c;
    color: white;
    border-color: #165c2c;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(22,92,44,0.2);
}

.quick-action-btn i {
    font-size: 20px;
    color: #165c2c;
}

.quick-action-btn:hover i {
    color: white;
}

.quick-action-btn span {
    font-weight: 600;
}

/* =============================
   RECEIPT PRINT STYLES
============================= */

.print-area {
    max-width: 400px;
    margin: 20px auto;
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    font-family: 'Courier New', monospace;
}

.receipt-header {
    text-align: center;
    border-bottom: 2px dashed #165c2c;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.receipt-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dotted #ccc;
    font-size: 13px;
}

.receipt-total {
    font-size: 18px;
    font-weight: bold;
    color: #165c2c;
    text-align: right;
    margin-top: 15px;
    padding-top: 10px;
    border-top: 2px solid #165c2c;
}

.receipt-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 11px;
    color: #777;
}

@media print {
    .no-print {
        display: none !important;
    }
    .print-area {
        box-shadow: none;
    }
}

/* =============================
   KEYBOARD SHORTCUTS
============================= */

.keyboard-shortcuts {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 12px;
    z-index: 1000;
    display: none;
}

.keyboard-shortcuts.show {
    display: block;
    animation: slideUp 0.3s ease;
}

.shortcut-item {
    display: flex;
    align-items: center;
    margin: 8px 0;
}

.shortcut-key {
    background: #333;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: monospace;
    margin-right: 10px;
    min-width: 60px;
}

/* =============================
   SHIFT MANAGEMENT
============================= */

.shift-alert {
    background: #fff3cd;
    border: 1px solid #ffeeba;
    border-left: 5px solid #f39c12;
    color: #856404;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.shift-alert.warning {
    background: #f8d7da;
    border-left-color: #c0392b;
    color: #721c24;
}

.shift-alert.success {
    background: #d4edda;
    border-left-color: #27ae60;
    color: #155724;
}

.shift-alert i {
    font-size: 24px;
}

.shift-form {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.shift-summary {
    background: #d4edda;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    border-left: 5px solid #27ae60;
}

/* =============================
   RESPONSIVE DESIGN
============================= */

@media (max-width: 1024px) {
    .pos-layout {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        width: 200px;
    }
    
    .main {
        margin-left: 200px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 0;
        transform: translateX(-100%);
    }
    
    .sidebar.active {
        width: 240px;
        transform: translateX(0);
    }
    
    .main {
        margin-left: 0;
        padding: 20px;
    }
    
    .grid {
        grid-template-columns: 1fr;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-bar {
        grid-template-columns: 1fr;
    }
    
    .quick-actions {
        flex-direction: column;
    }
    
    .quick-action-btn {
        width: 100%;
    }
    
    .toast-notification {
        min-width: 90%;
        left: 5%;
        right: 5%;
    }
    
    .modal-content {
        width: 95%;
        padding: 20px;
    }
}

/* =============================
   PRINT STYLES
============================= */

@media print {
    .sidebar,
    .btn,
    .no-print,
    .quick-actions,
    .toast-notification,
    .modal {
        display: none !important;
    }
    
    .main {
        margin: 0;
        padding: 0;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* =============================
   ANIMATIONS
============================= */

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.shake {
    animation: shake 0.3s ease;
}

/* Receipt VAT Styling */
.receipt-vat-breakdown {
    margin: 15px 0;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 5px;
}

.receipt-vat-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    font-size: 13px;
}

.receipt-vat-row.total {
    font-weight: bold;
    color: #165c2c;
    border-top: 2px solid #165c2c;
    margin-top: 5px;
    padding-top: 8px;
}

.receipt-items-table {
    width: 100%;
    font-size: 12px;
    border-collapse: collapse;
}

.receipt-items-table th {
    background: #f5f5f5;
    padding: 5px;
    text-align: left;
}

.receipt-items-table td {
    padding: 5px;
    border-bottom: 1px dotted #ddd;
}

.receipt-vat-info {
    margin-top: 15px;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 5px;
    font-size: 11px;
    text-align: center;
    border-left: 3px solid #165c2c;
}