/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: url('../images/backgrounds.jpg') no-repeat center center fixed;
    background-size: cover;
    color: #333;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: -1;
}

/* Login Page */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: url('../images/backgrounds.jpg') no-repeat center center fixed;
    background-size: cover;
    position: relative;
}

.login-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.85) 0%, rgba(192, 57, 43, 0.85) 100%);
    z-index: 0;
}

.login-page .login-container {
    position: relative;
    z-index: 1;
}

.login-container {
    width: 100%;
    max-width: 450px;
    padding: 20px;
}

.login-box {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1 {
    color: #e74c3c;
    font-size: 32px;
    margin-bottom: 10px;
}

.login-header p {
    color: #666;
    font-size: 14px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #444;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #e74c3c;
}

.btn-login {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-login:hover {
    transform: translateY(-2px);
}

.btn-login:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.login-footer {
    text-align: center;
    margin-top: 30px;
    color: #999;
    font-size: 12px;
}

/* Alert */
.alert {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Main Layout */
.wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

/* Top Header */
.top-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 50px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    z-index: 999;
}

.header-left {
    display: flex;
    align-items: center;
}

.app-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    font-size: 22px;
}

.logo-text {
    font-size: 17px;
    font-weight: bold;
    color: #2c3e50;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-right {
    display: flex;
    align-items: center;
}

.hamburger-menu {
    width: 34px;
    height: 34px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    padding: 5px;
    border-radius: 8px;
    transition: background 0.3s;
}

.hamburger-menu:hover {
    background: rgba(231, 76, 60, 0.1);
}

.hamburger-menu span {
    display: block;
    width: 22px;
    height: 2px;
    background: #2c3e50;
    border-radius: 2px;
    transition: all 0.3s;
}

/* Drawer Menu */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.drawer-overlay.open {
    opacity: 1;
    visibility: visible;
}

.drawer-menu {
    position: fixed;
    top: 0;
    right: -320px;
    width: 320px;
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: -2px 0 15px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    transition: right 0.3s;
    overflow-y: auto;
}

.drawer-menu.open {
    right: 0;
}

.drawer-header {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    padding: 30px 20px;
    color: white;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    color: white;
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.user-info strong {
    font-size: 16px;
}

.user-info small {
    font-size: 13px;
    opacity: 0.9;
}

.drawer-nav {
    padding: 10px 0;
}

.drawer-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    color: #2c3e50;
    text-decoration: none;
    transition: background 0.3s;
}

.drawer-item:hover {
    background: rgba(231, 76, 60, 0.1);
}

.drawer-icon {
    font-size: 24px;
    width: 32px;
    text-align: center;
}

.drawer-divider {
    height: 1px;
    background: #e1e8ed;
    margin: 10px 0;
}

.drawer-logout {
    color: #e74c3c;
}

.drawer-logout:hover {
    background: rgba(231, 76, 60, 0.1);
}

body.drawer-open {
    overflow: hidden;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 55px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 10px;
    z-index: 999;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    text-decoration: none;
    color: #7f8c8d;
    transition: all 0.3s;
    padding: 5px 10px;
    border-radius: 8px;
    min-width: 54px;
}

.nav-item:hover {
    background: rgba(231, 76, 60, 0.1);
}

.nav-item.active {
    color: #7f8c8d;
}

.nav-icon {
    font-size: 21px;
    transition: transform 0.3s;
}

.nav-item.active .nav-icon {
    transform: scale(1.2);
}

.nav-label {
    font-size: 9.5px;
    font-weight: 600;
}

/* FAB (Floating Action Button) */
.nav-item-fab {
    position: relative;
    margin-top: -26px;
}

.nav-fab {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
    transition: all 0.3s;
}

.nav-item-fab:hover .nav-fab {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.5);
}

.nav-item-fab.active .nav-fab {
    background: linear-gradient(135deg, #c0392b, #a93226);
}

.fab-icon {
    font-size: 25px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.nav-item-fab .nav-label {
    margin-top: 8px;
    position: relative;
    z-index: 1;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 0;
    margin-top: 50px;
    margin-bottom: 55px;
    padding: 0;
    background: rgba(245, 247, 250, 0.95);
    backdrop-filter: blur(10px);
    min-height: calc(100vh - 105px);
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

.content-header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 14px 16px;
    border-bottom: 1px solid #e1e8ed;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

.content-header h1 {
    font-size: 20px;
    color: #2c3e50;
}

.header-info {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #666;
}

.content-body {
    padding: 14px 16px;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* Dashboard */
.dashboard-container {
    max-width: 1400px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 40px;
}

.stat-content h3 {
    font-size: 28px;
    margin-bottom: 5px;
}

.stat-content p {
    color: #666;
    font-size: 14px;
}

.stat-blue { border-left: 4px solid #e74c3c; }
.stat-green { border-left: 4px solid #2ecc71; }
.stat-orange { border-left: 4px solid #e67e22; }
.stat-purple { border-left: 4px solid #e74c3c; }

.dashboard-actions {
    margin-bottom: 30px;
}

.dashboard-actions h2 {
    margin-bottom: 20px;
    color: #2c3e50;
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.action-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    text-align: center;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.action-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.action-card h3 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.action-card p {
    color: #666;
    font-size: 14px;
}

.action-blue:hover { border-top: 4px solid #e74c3c; }
.action-green:hover { border-top: 4px solid #2ecc71; }
.action-orange:hover { border-top: 4px solid #e67e22; }

.alert-section {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.alert-section h2 {
    margin-bottom: 20px;
    color: #e74c3c;
}

/* Table */
.table-container {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    overflow-x: auto;
    overflow-y: hidden;
    border: 1px solid rgba(255, 255, 255, 0.3);
    -webkit-overflow-scrolling: touch;
    position: relative;
}

.table-container::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 30px;
    background: linear-gradient(to left, rgba(255,255,255,0.8), transparent);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.table-container:not(.scrolled-end)::after {
    opacity: 1;
}

.table-container::-webkit-scrollbar {
    height: 8px;
}

.table-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 0 0 12px 12px;
}

.table-container::-webkit-scrollbar-thumb {
    background: #3498db;
    border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb:hover {
    background: #2980b9;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background: #e74c3c;
    color: white;
}

.data-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
}

.data-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e1e8ed;
    font-size: 14px;
}

.data-table tbody tr:hover {
    background: #f8f9fa;
}

.row-warning {
    background: #fff3cd !important;
}

.alert-warning {
    background: #fff3cd;
}

.alert-danger {
    background: #f8d7da;
}

.text-center {
    text-align: center !important;
}

.text-right {
    text-align: right !important;
}

.text-muted {
    color: #999 !important;
}

/* Page Container */
.page-container {
    max-width: 1400px;
    padding: 0 10px;
}

.page-header {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.header-title {
    flex: 1;
    min-width: 250px;
}

.header-title h2 {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-title p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.header-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: flex-start;
    min-width: 200px;
}

.search-box {
    flex: 1;
}

.search-box input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 14px;
}

.search-box input:focus {
    outline: none;
    border-color: #e74c3c;
}

.filter-box select {
    padding: 12px 15px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 14px;
    min-width: 200px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.pagination button {
    padding: 8px 15px;
    border: 1px solid #e1e8ed;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.pagination button:hover:not(:disabled) {
    background: #e74c3c;
    color: white;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination button.active {
    background: #e74c3c;
    color: white;
}

/* Badge */
.badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.badge-success {
    background: #d4edda;
    color: #155724;
}

.badge-danger {
    background: #f8d7da;
    color: #721c24;
}

/* Transaksi */
.transaksi-container {
    max-width: 100%;
    width: 100%;
    background: transparent;
    padding: 0;
    margin: 0;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* ========================================
   MODERN COMPACT LAYOUT
   ======================================== */

/* 2 Column Layout */
.transaksi-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 12px;
    width: 100%;
    max-width: 100%;
}

/* Left Column: Inputs & Items */
.transaksi-left {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Right Column: Total & Payment */
.transaksi-right {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Compact Header */
.transaksi-header-compact {
    background: rgba(255, 255, 255, 0.98);
    padding: 10px 12px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.header-info-row {
    display: flex;
    gap: 20px;
    align-items: center;
}

.info-compact {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

.label-compact {
    color: #666;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 600;
}

.info-compact strong {
    color: #2c3e50;
    font-size: 13px;
}

/* Form Section Compact */
.form-section-compact {
    background: rgba(255, 255, 255, 0.98);
    padding: 12px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group-compact {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.label-inline {
    font-size: 12px;
    font-weight: 600;
    color: #2c3e50;
}

.required {
    color: #e74c3c;
}

.input-compact {
    width: 100%;
    padding: 8px 10px;
    border: 2px solid #e1e8ed;
    border-radius: 6px;
    font-size: 13px;
    transition: border-color 0.2s;
}

.input-compact:focus {
    outline: none;
    border-color: #e74c3c;
}

/* Autocomplete Styling */
.autocomplete-wrapper {
    position: relative;
    width: 100%;
}

.autocomplete-input {
    width: 100%;
    padding: 8px 10px;
    padding-right: 32px;
    border: 2px solid #e1e8ed;
    border-radius: 6px;
    font-size: 13px;
    background: white;
    transition: all 0.2s;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%23666' d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
}

.autocomplete-input:hover {
    border-color: #e74c3c;
}

.autocomplete-input:focus {
    outline: none;
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

/* Autocomplete Dropdown */
.autocomplete-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #e74c3c;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    scrollbar-width: thin;
    scrollbar-color: #e74c3c #f1f1f1;
}

.autocomplete-dropdown.show {
    display: block;
    animation: slideDown 0.2s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.autocomplete-dropdown::-webkit-scrollbar {
    width: 6px;
}

.autocomplete-dropdown::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.autocomplete-dropdown::-webkit-scrollbar-thumb {
    background: #e74c3c;
    border-radius: 3px;
}

.autocomplete-dropdown::-webkit-scrollbar-thumb:hover {
    background: #c0392b;
}

/* Autocomplete Item */
.autocomplete-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid #f1f1f1;
    cursor: pointer;
    transition: background 0.2s;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover {
    background: rgba(231, 76, 60, 0.05);
}

.autocomplete-item.empty {
    justify-content: center;
    color: #999;
    cursor: default;
    font-size: 13px;
}

.autocomplete-item.empty:hover {
    background: transparent;
}

.autocomplete-main {
    flex: 1;
    min-width: 0;
}

.autocomplete-title {
    font-size: 13px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.autocomplete-subtitle {
    font-size: 11px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.autocomplete-badge {
    margin-left: 10px;
    flex-shrink: 0;
}

.badge-info {
    padding: 3px 8px;
    background: #d1ecf1;
    color: #0c5460;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
}

.badge-warning {
    padding: 3px 8px;
    background: #fff3cd;
    color: #856404;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
}

.hint-inline {
    font-size: 11px;
    color: #999;
    font-weight: normal;
}

.info-text {
    font-size: 12px;
    margin-top: 4px;
    display: inline-block;
}

/* Input with Qty */
.input-with-qty {
    display: flex;
    gap: 8px;
    align-items: center;
}

.flex-1 {
    flex: 1;
}

.qty-compact {
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid #e1e8ed;
    border-radius: 6px;
    overflow: hidden;
}

.qty-btn-sm {
    width: 30px;
    height: 32px;
    border: none;
    background: #f8f9fa;
    color: #2c3e50;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

.qty-btn-sm:hover {
    background: #e9ecef;
}

.qty-btn-sm:active {
    background: #e74c3c;
    color: white;
}

.qty-input-sm {
    width: 40px;
    border: none;
    text-align: center;
    font-size: 13px;
    font-weight: bold;
    color: #2c3e50;
    padding: 6px 4px;
}

.btn-add-compact {
    padding: 8px 14px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
    transition: transform 0.2s;
}

.btn-add-compact:hover {
    transform: translateY(-1px);
}

.btn-add-compact:active {
    transform: scale(0.98);
}

/* Items Section */
.items-section-compact {
    background: rgba(255, 255, 255, 0.98);
    padding: 12px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.section-title {
    font-size: 13px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e1e8ed;
}

.items-list-compact {
    flex: 1;
    overflow-y: auto;
    max-height: 300px;
    min-height: 150px;
    scrollbar-width: thin;
    scrollbar-color: #e74c3c #f1f1f1;
}

.items-list-compact::-webkit-scrollbar {
    width: 6px;
}

.items-list-compact::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.items-list-compact::-webkit-scrollbar-thumb {
    background: #e74c3c;
    border-radius: 10px;
}

.items-list-compact::-webkit-scrollbar-thumb:hover {
    background: #c0392b;
}

.empty-state-compact {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 15px;
    color: #999;
    font-size: 13px;
    text-align: center;
    gap: 8px;
}

.empty-icon {
    font-size: 32px;
    opacity: 0.5;
}

/* Item Card in List */
.item-card-compact {
    background: #f8f9fa;
    padding: 10px;
    margin-bottom: 8px;
    border-radius: 8px;
    border-left: 3px solid #e74c3c;
}

.item-card-compact:last-child {
    margin-bottom: 0;
}

.item-header-compact {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 6px;
}

.item-name-compact {
    font-size: 13px;
    font-weight: 600;
    color: #2c3e50;
    flex: 1;
}

.item-delete-btn {
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 4px;
    width: 24px;
    height: 24px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.item-delete-btn:hover {
    background: #c0392b;
}

.item-details-compact {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

.item-price-compact {
    font-weight: 600;
    color: #27ae60;
}

/* Total Card */
.total-card {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    padding: 16px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
    color: white;
}

.total-label-compact {
    font-size: 12px;
    opacity: 0.9;
    margin-bottom: 6px;
}

.total-value-compact {
    font-size: 26px;
    font-weight: 700;
}

/* Payment Card */
.payment-card {
    background: rgba(255, 255, 255, 0.98);
    padding: 12px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.payment-title {
    font-size: 13px;
    font-weight: 700;
    color: #2c3e50;
    padding-bottom: 8px;
    border-bottom: 2px solid #e1e8ed;
}

.money-input-compact {
    display: flex;
    align-items: center;
    border: 2px solid #e1e8ed;
    border-radius: 6px;
    overflow: hidden;
    background: white;
}

.money-input-compact .prefix {
    padding: 8px 10px;
    background: #f8f9fa;
    font-size: 13px;
    font-weight: 600;
    color: #666;
}

.money-input-compact input {
    flex: 1;
    border: none;
    padding: 8px 10px;
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
}

.money-input-compact input:focus {
    outline: none;
}

.hint {
    font-size: 11px;
    color: #999;
    font-style: italic;
}

/* Result Cards */
.result-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 8px;
    font-size: 13px;
}

.result-card.success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    border-left: 3px solid #28a745;
}

.result-card.warning {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border-left: 3px solid #ffc107;
}

.result-icon {
    font-size: 20px;
}

.result-content {
    flex: 1;
}

.result-label {
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
    font-weight: 600;
}

.result-value {
    font-size: 16px;
    font-weight: 700;
    color: #2c3e50;
    margin-top: 2px;
}

/* Info Card for Sales */
.info-card-sales {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    background: linear-gradient(135deg, #fadbd8, #f5b7b1);
    border-left: 3px solid #e74c3c;
    border-radius: 8px;
    margin-bottom: 10px;
}

.info-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.info-content {
    flex: 1;
}

.info-title {
    font-size: 12px;
    font-weight: 700;
    color: #c0392b;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.info-text {
    font-size: 12px;
    color: #a93226;
    line-height: 1.4;
}

/* Action Buttons */
.action-buttons-compact {
    display: flex;
    gap: 8px;
}

.btn-reset-compact {
    flex: 1;
    padding: 10px;
    background: white;
    color: #e74c3c;
    border: 2px solid #e74c3c;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-reset-compact:hover {
    background: #e74c3c;
    color: white;
}

.btn-secondary-compact {
    flex: 1;
    padding: 10px;
    background: linear-gradient(135deg, #6c757d, #5a6268);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-secondary-compact:hover {
    background: linear-gradient(135deg, #5a6268, #545b62);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(108, 117, 125, 0.4);
}

.btn-secondary-compact:active {
    transform: scale(0.98);
}

.btn-secondary-compact:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-submit-compact {
    flex: 2;
    padding: 10px;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-submit-compact:hover {
    background: linear-gradient(135deg, #20c997, #1ea87a);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(40, 167, 69, 0.4);
}

.btn-submit-compact:active {
    transform: scale(0.98);
}

.btn-submit-compact:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Mobile Responsive untuk Compact Layout */
@media (max-width: 992px) {
    .transaksi-layout {
        grid-template-columns: 1fr 320px;
        gap: 10px;
    }
    
    .items-list-compact {
        max-height: 250px;
    }
}

@media (max-width: 768px) {
    .transaksi-layout {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .transaksi-right {
        order: 2;
    }
    
    .items-section-compact {
        min-height: 200px;
    }
    
    .items-list-compact {
        max-height: 200px;
    }
    
    .total-card {
        padding: 12px;
    }
    
    .total-value-compact {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .header-info-row {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .input-with-qty {
        flex-direction: column;
        align-items: stretch;
    }
    
    .qty-compact {
        justify-content: center;
    }
    
    .btn-add-compact {
        width: 100%;
    }
    
    /* Action buttons mobile */
    .action-buttons-compact {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-reset-compact,
    .btn-secondary-compact,
    .btn-submit-compact {
        width: 100%;
        flex: none;
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .items-list-compact {
        max-height: 180px;
    }
    
    .autocomplete-input {
        font-size: 14px;
        padding: 10px;
        padding-right: 34px;
    }
    
    .autocomplete-dropdown {
        max-height: 250px;
    }
    
    .autocomplete-item {
        padding: 14px;
    }
    
    .autocomplete-title {
        font-size: 14px;
    }
    
    .autocomplete-subtitle {
        font-size: 12px;
    }
}

/* ======================================== */

.transaksi-header {
    background: rgba(255, 255, 255, 0.98);
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #444;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e1e8ed;
    border-radius: 6px;
    font-size: 14px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #e74c3c;
}

.form-group input.readonly {
    background: #f5f7fa;
    cursor: not-allowed;
}

.search-group {
    position: relative;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border: 2px solid #e1e8ed;
    border-top: none;
    border-radius: 0 0 6px 6px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 100;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.search-item {
    padding: 12px;
    cursor: pointer;
    border-bottom: 1px solid #f5f7fa;
}

.search-item:hover {
    background: #f8f9fa;
}

.transaksi-items {
    background: rgba(255, 255, 255, 0.98);
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

.transaksi-items h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.add-item-section {
    background: transparent;
    padding: 0;
    border-radius: 0;
    margin-bottom: 15px;
}

.items-table {
    margin-top: 20px;
}

.items-table tfoot td {
    padding: 15px;
    font-size: 16px;
    background: #f8f9fa;
}

.btn-delete {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.btn-delete:hover {
    background: #c0392b;
}

.transaksi-footer {
    background: rgba(255, 255, 255, 0.98);
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

.pembayaran-section {
    background: transparent;
    padding: 0;
    border-radius: 0;
    margin-bottom: 0;
}

.pembayaran-section h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 20px;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 12px 24px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(231, 76, 60, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

.btn-success {
    background: #2ecc71;
    color: white;
}

.btn-success:hover {
    background: #27ae60;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Mobile-First UI Styles */
.mobile-info-card {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.95);
    padding: 12px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

.info-item {
    flex: 1;
    text-align: center;
    padding: 10px;
    border-right: 1px solid #e1e8ed;
}

.info-item:last-child {
    border-right: none;
}

.info-label {
    display: block;
    font-size: 11px;
    color: #666;
    margin-bottom: 5px;
    text-transform: uppercase;
    font-weight: 600;
}

.info-value {
    display: block;
    font-size: 14px;
    font-weight: bold;
    color: #2c3e50;
}

.section-header {
    margin-bottom: 15px;
}

.section-header h3 {
    font-size: 18px;
    color: #2c3e50;
    margin: 0;
}

/* Search Items Mobile */
.search-item-mobile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    border-bottom: 1px solid #e1e8ed;
    cursor: pointer;
    transition: background 0.2s;
}

.search-item-mobile:hover {
    background: rgba(231, 76, 60, 0.1);
}

.search-item-mobile:last-child {
    border-bottom: none;
}

.search-item-mobile.empty {
    justify-content: center;
    cursor: default;
    color: #999;
}

.item-main {
    flex: 1;
}

.item-title {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 4px;
}

.item-subtitle {
    font-size: 12px;
    color: #666;
}

.item-action {
    margin-left: 10px;
}

.badge-success {
    padding: 4px 10px;
    background: #d4edda;
    color: #155724;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.badge-danger {
    padding: 4px 10px;
    background: #f8d7da;
    color: #721c24;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

/* Add Item Mobile */
.add-item-mobile {
    background: rgba(255, 255, 255, 0.98);
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

.qty-add-group {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.qty-input-group {
    flex: 1;
}

.qty-input-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #2c3e50;
}

.qty-controls {
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    overflow: hidden;
}

.qty-btn {
    width: 40px;
    height: 44px;
    border: none;
    background: #f8f9fa;
    color: #2c3e50;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

.qty-btn:hover {
    background: #e9ecef;
}

.qty-btn:active {
    background: #e74c3c;
    color: white;
}

.qty-controls input {
    flex: 1;
    border: none;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    color: #2c3e50;
    padding: 10px;
}

.btn-add-item {
    padding: 12px 20px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
    transition: transform 0.2s;
}

.btn-add-item:hover {
    transform: translateY(-2px);
}

.btn-add-item:active {
    transform: scale(0.98);
}

/* Items List Mobile */
.items-list-mobile {
    margin-bottom: 15px;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.empty-state p {
    font-size: 16px;
    margin-bottom: 5px;
}

.empty-state small {
    font-size: 13px;
}

.item-card-mobile {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-left: 4px solid #e74c3c;
}

.item-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.item-number {
    font-size: 12px;
    font-weight: 600;
    color: #e74c3c;
}

.btn-delete-mobile {
    background: #e74c3c;
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-delete-mobile:hover {
    background: #c0392b;
    transform: scale(1.1);
}

.item-card-body {
    margin-bottom: 10px;
}

.item-name {
    font-size: 15px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 4px;
}

.item-code {
    font-size: 12px;
    color: #666;
}

.item-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid #e1e8ed;
}

.item-qty {
    font-size: 13px;
    color: #666;
}

.item-subtotal {
    font-size: 16px;
    font-weight: bold;
    color: #2c3e50;
}

/* Total Section */
.total-section {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.total-label {
    font-size: 14px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 5px;
}

.total-value {
    font-size: 28px;
    font-weight: bold;
    color: white;
}

/* Pembayaran Mobile */
.pembayaran-mobile {
    margin-bottom: 15px;
}

.form-group-mobile {
    margin-bottom: 15px;
}

.form-group-mobile label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #2c3e50;
}

.form-group-mobile label small {
    font-weight: normal;
    color: #666;
}

.money-input-group {
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.3s;
}

.money-input-group:focus-within {
    border-color: #e74c3c;
}

.money-prefix {
    padding: 0 15px;
    background: #f8f9fa;
    color: #666;
    font-weight: 600;
    height: 50px;
    display: flex;
    align-items: center;
    border-right: 1px solid #e1e8ed;
}

.money-input-group input {
    flex: 1;
    border: none;
    padding: 15px;
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
}

.money-input-group input:focus {
    outline: none;
}

.form-group-mobile textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
}

.form-group-mobile textarea:focus {
    outline: none;
    border-color: #e74c3c;
}

/* Info Cards (Kembalian/Hutang) */
.info-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border-radius: 12px;
    margin-top: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.success-card {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    border: 2px solid #28a745;
}

.warning-card {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border: 2px solid #ffc107;
}

.card-icon {
    font-size: 36px;
}

.card-content {
    flex: 1;
}

.card-label {
    font-size: 13px;
    color: #666;
    margin-bottom: 4px;
}

.card-value {
    font-size: 24px;
    font-weight: bold;
}

.success-card .card-value {
    color: #155724;
}

.warning-card .card-value {
    color: #856404;
}

/* Action Buttons Mobile */
.action-buttons-mobile {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    margin-bottom: 20px;
}

.btn-reset {
    flex: 0 0 auto;
    padding: 15px 20px;
    background: #95a5a6;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-reset:hover {
    background: #7f8c8d;
}

.btn-submit {
    flex: 1;
    padding: 15px;
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
    transition: all 0.2s;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.4);
}

.btn-submit:active {
    transform: scale(0.98);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Responsive Mobile */
@media (max-width: 768px) {
    * {
        box-sizing: border-box !important;
    }
    
    html {
        overflow-x: hidden !important;
        width: 100%;
        max-width: 100vw;
    }
    
    body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .wrapper {
        overflow-x: hidden !important;
        max-width: 100vw !important;
        width: 100% !important;
    }
    
    .main-content {
        overflow-x: hidden !important;
        max-width: 100vw !important;
        width: 100% !important;
        margin-top: 56px;
        margin-bottom: 60px;
        padding: 0 !important;
    }
    
    .top-header {
        padding: 0 12px;
        height: 56px;
        position: fixed !important;
        width: 100%;
        left: 0;
        right: 0;
    }
    
    .bottom-nav {
        height: 60px;
        padding: 0 8px;
        position: fixed !important;
        width: 100%;
        left: 0;
        right: 0;
        bottom: 0;
    }
    
    .logo-text {
        font-size: 16px;
    }
    
    .logo-icon {
        font-size: 22px;
    }
    
    .content-header {
        padding: 12px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .content-header h1 {
        font-size: 18px;
    }
    
    .header-info {
        flex-direction: column;
        gap: 4px;
        font-size: 11px;
    }
    
    .content-body {
        padding: 12px !important;
        overflow-x: hidden !important;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .stats-grid,
    .action-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .transaksi-container {
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow-x: hidden !important;
        box-sizing: border-box;
    }
    
    .transaksi-header,
    .add-item-mobile,
    .transaksi-items,
    .transaksi-footer {
        padding: 10px !important;
        margin: 0 0 10px 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }
    
    .mobile-info-card {
        flex-direction: column;
        gap: 0;
        padding: 10px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .info-item {
        border-right: none;
        border-bottom: 1px solid #e1e8ed;
        padding: 8px;
        width: 100%;
    }
    
    .info-item:last-child {
        border-bottom: none;
    }
    
    .form-group, .search-group {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .form-group input,
    .form-group textarea,
    .search-group input {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .search-results {
        width: 100% !important;
        max-width: 100% !important;
        left: 0 !important;
        right: 0 !important;
        box-sizing: border-box !important;
    }
    
    .qty-add-group {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    
    .qty-input-group {
        width: 100%;
    }
    
    .qty-controls {
        width: 100%;
        box-sizing: border-box;
    }
    
    .btn-add-item {
        width: 100%;
        justify-content: center;
    }
    
    .items-list-mobile {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
    }
    
    .item-card-mobile {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin-bottom: 10px;
    }
    
    .total-section {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .pembayaran-mobile {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .form-group-mobile {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .money-input-group {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .money-input-group input {
        width: 100%;
        box-sizing: border-box;
    }
    
    .form-group-mobile textarea {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .info-card {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .action-buttons-mobile {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        flex-wrap: wrap;
    }
    
    .btn-reset {
        min-width: 80px;
    }
    
    .btn-submit {
        min-width: 120px;
    }
    
    .drawer-menu {
        width: 280px;
        right: -280px;
    }
    
    .nav-item {
        min-width: 48px;
        padding: 4px 6px;
    }
    
    .nav-icon {
        font-size: 20px;
    }
    
    .nav-label {
        font-size: 9px;
    }
    
    .nav-fab {
        width: 48px;
        height: 48px;
    }
    
    .fab-icon {
        font-size: 24px;
    }
    
    .section-header h3 {
        font-size: 16px;
    }
    
    .empty-state {
        padding: 30px 15px;
    }
    
    .empty-icon {
        font-size: 40px;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .top-header {
        height: 52px;
        padding: 0 10px;
    }
    
    .bottom-nav {
        height: 56px;
        padding: 0 5px;
    }
    
    .main-content {
        margin-top: 52px;
        margin-bottom: 56px;
    }
    
    .content-body {
        padding: 10px !important;
    }
    
    .logo-text {
        font-size: 14px;
    }
    
    .logo-icon {
        font-size: 20px;
    }
    
    .nav-item {
        min-width: 44px;
        padding: 3px 4px;
    }
    
    .nav-icon {
        font-size: 18px;
    }
    
    .nav-label {
        font-size: 8px;
    }
    
    .nav-fab {
        width: 44px;
        height: 44px;
    }
    
    .fab-icon {
        font-size: 22px;
    }
    
    .transaksi-header,
    .add-item-mobile,
    .transaksi-items,
    .transaksi-footer {
        padding: 8px !important;
        margin-bottom: 8px !important;
    }
}

/* ============================================
   MODAL & DETAIL VIEW STYLES
   ============================================ */

/* Modal Overlay */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

/* Modal Content */
.modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    max-width: 650px;
    width: 90%;
    max-height: 75vh;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    position: relative;
    margin: 20px;
}

/* Modal Body - Enhanced Professional Design */
.modal-body {
    padding: 32px;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: calc(85vh - 140px);
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}

/* Enhanced Scrollbar for Modal Body */
.modal-body::-webkit-scrollbar {
    width: 8px;
    background: transparent;
}

.modal-body::-webkit-scrollbar-track {
    background: rgba(231, 76, 60, 0.05);
    border-radius: 10px;
    margin: 8px 0;
}

.modal-body::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: padding-box;
    min-height: 40px;
    transition: all 0.3s ease;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    background-clip: padding-box;
    border: 2px solid transparent;
}

.modal-body::-webkit-scrollbar-thumb:active {
    background: linear-gradient(135deg, #a93226, #922b21);
    background-clip: padding-box;
}

.modal-body::-webkit-scrollbar-corner {
    background: transparent;
}

/* Firefox Scrollbar */
.modal-body {
    scrollbar-width: thin;
    scrollbar-color: #e74c3c rgba(231, 76, 60, 0.1);
}

/* Scrollbar Shadow Indicators */
.modal-body::before,
.modal-body::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 20px;
    z-index: 10;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-body::before {
    top: 0;
    background: linear-gradient(to bottom,
        rgba(255,255,255,0.9) 0%,
        rgba(255,255,255,0) 100%);
    opacity: 0;
}

.modal-body::after {
    bottom: 0;
    background: linear-gradient(to top,
        rgba(255,255,255,0.9) 0%,
        rgba(255,255,255,0) 100%);
    opacity: 0;
}

/* Show shadow indicators when scrolling */
.modal-body.scroll-top::before {
    opacity: 1;
}

.modal-body.scroll-bottom::after {
    opacity: 1;
}

/* Professional Form Layout */
.modal-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    align-items: start;
}

.modal-form-grid .form-group:nth-child(odd):last-child {
    grid-column: span 2;
}

.modal-form-full {
    grid-column: span 2;
}

/* Enhanced Form Groups */
.modal-body .form-group {
    margin-bottom: 0;
}

.modal-body .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-body .form-group input,
.modal-body .form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e8ecf1;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.modal-body .form-group input:focus,
.modal-body .form-group select:focus {
    outline: none;
    border-color: #e74c3c;
    box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.08), 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-1px);
}

.modal-body .form-group input::placeholder {
    color: #95a5a6;
    font-style: normal;
}

/* Jenis Barang Autocomplete - Professional Design */
.jenis-input-wrapper {
    position: relative;
    width: 100%;
}

.jenis-input {
    width: 100%;
    padding: 14px 18px;
    padding-right: 45px;
    border: 2px solid #e8ecf1;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.jenis-input:focus {
    outline: none;
    border-color: #e74c3c;
    box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.08), 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-1px);
}

.jenis-suggestions {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 2px solid #e74c3c;
    border-radius: 10px;
    max-height: 220px;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1000;
    display: none;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    backdrop-filter: blur(10px);
}

/* Scrollbar for Jenis Suggestions */
.jenis-suggestions::-webkit-scrollbar {
    width: 6px;
    background: transparent;
}

.jenis-suggestions::-webkit-scrollbar-track {
    background: rgba(231, 76, 60, 0.05);
    border-radius: 6px;
    margin: 4px 0;
}

.jenis-suggestions::-webkit-scrollbar-thumb {
    background: #e74c3c;
    border-radius: 6px;
    border: 1px solid transparent;
    background-clip: padding-box;
    min-height: 20px;
    transition: all 0.2s ease;
}

.jenis-suggestions::-webkit-scrollbar-thumb:hover {
    background: #c0392b;
    background-clip: padding-box;
}

.jenis-suggestions::-webkit-scrollbar-corner {
    background: transparent;
}

/* Firefox Scrollbar for Suggestions */
.jenis-suggestions {
    scrollbar-width: thin;
    scrollbar-color: #e74c3c rgba(231, 76, 60, 0.1);
}

.jenis-suggestions.show {
    display: block;
    animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.jenis-suggestion-item {
    padding: 14px 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f5f7fa;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.jenis-suggestion-item:last-child {
    border-bottom: none;
}

.jenis-suggestion-item:hover {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.03) 0%, rgba(231, 76, 60, 0.08) 100%);
    padding-left: 22px;
}

.jenis-suggestion-item.active {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.1) 0%, rgba(231, 76, 60, 0.15) 100%);
    color: #e74c3c;
    font-weight: 600;
    padding-left: 22px;
}

.jenis-suggestion-item.empty {
    justify-content: center;
    color: #95a5a6;
    cursor: default;
    font-style: italic;
    padding: 20px;
    text-align: center;
}

.jenis-suggestion-item .jenis-count {
    font-size: 12px;
    color: #7f8c8d;
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 500;
}

.jenis-suggestion-item:hover .jenis-count {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

.jenis-input-hint {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #95a5a6;
    font-size: 13px;
    pointer-events: none;
    background: #ffffff;
    padding: 0 6px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.jenis-input:focus + .jenis-input-hint {
    color: #e74c3c;
    opacity: 0.7;
}

/* Responsive Form & Modal */
@media (max-width: 768px) {
    .modal-content {
        max-width: 95%;
        max-height: 92vh;
        border-radius: 16px;
    }

    .modal-body {
        padding: 24px;
        max-height: calc(92vh - 140px);
    }

    /* Mobile Scrollbar */
    .modal-body::-webkit-scrollbar {
        width: 6px;
    }

    .modal-body::-webkit-scrollbar-track {
        background: rgba(231, 76, 60, 0.08);
        border-radius: 6px;
        margin: 6px 0;
    }

    .modal-body::-webkit-scrollbar-thumb {
        background: #e74c3c;
        border-radius: 6px;
        border: 1px solid transparent;
        background-clip: padding-box;
        min-height: 30px;
    }

    /* Mobile Shadow Indicators */
    .modal-body::before,
    .modal-body::after {
        height: 15px;
    }

    .modal-header {
        padding: 20px 24px;
        border-radius: 16px 16px 0 0;
    }

    .modal-header h3 {
        font-size: 16px;
    }

    .modal-footer {
        padding: 20px 24px;
        border-radius: 0 0 16px 16px;
        flex-direction: column-reverse;
        gap: 12px;
    }

    .modal-footer .btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
        font-size: 15px;
    }

    .jenis-suggestions {
        max-height: 180px;
    }

    .modal-body .form-group input,
    .modal-body .form-group select,
    .jenis-input {
        padding: 16px 18px;
        font-size: 16px;
    }

    .modal-body .form-group label {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .modal-header {
        padding: 20px 24px;
        border-radius: 16px 16px 0 0;
    }

    .modal-header h3 {
        font-size: 16px;
    }

    .modal-footer {
        padding: 20px 24px;
        border-radius: 0 0 16px 16px;
        flex-direction: column-reverse;
        gap: 12px;
    }

    .modal-footer .btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
        font-size: 15px;
    }

    .jenis-suggestions {
        max-height: 180px;
    }

    .modal-body .form-group input,
    .modal-body .form-group select,
    .jenis-input {
        padding: 16px 18px;
        font-size: 16px;
    }

    .modal-body .form-group label {
        font-size: 14px;
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    .modal-content {
        max-width: 98%;
        margin: 10px;
        border-radius: 12px;
    }

    .modal-body {
        padding: 20px;
    }

    .modal-form-grid {
        gap: 5px;
    }

    .modal-header {
        padding: 16px 20px;
    }

    .modal-header h3 {
        font-size: 15px;
    }

    .modal-header h3 i {
        font-size: 18px;
    }

    .modal-footer {
        padding: 16px 20px;
        gap: 10px;
    }

    .jenis-suggestions {
        max-height: 160px;
    }

    .modal-body .form-group input,
    .modal-body .form-group select,
    .jenis-input {
        padding: 14px 16px;
        font-size: 16px;
    }

    .modal-body .form-group label {
        font-size: 13px;
    }
}

/* Enhanced Animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-12px);
        visibility: hidden;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        visibility: visible;
    }
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Enhanced Modal Footer */
.modal-footer {
    padding: 24px 32px;
    border-top: 1px solid #e8ecf1;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    display: flex;
    gap: 16px;
    justify-content: flex-end;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.04);
}

.modal-footer .btn {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 120px;
    justify-content: center;
    border: none;
    position: relative;
    overflow: hidden;
}

.modal-footer .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.modal-footer .btn:hover::before {
    left: 100%;
}

.modal-footer .btn-secondary {
    background: #95a5a6;
    color: white;
    box-shadow: 0 4px 12px rgba(149, 165, 166, 0.3);
}

.modal-footer .btn-secondary:hover {
    background: #7f8c8d;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(149, 165, 166, 0.4);
}

.modal-footer .btn-primary {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.modal-footer .btn-primary:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(231, 76, 60, 0.4);
}

.modal-footer .btn:active {
    transform: translateY(0);
}

/* Loading State */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner 0.8s linear infinite;
}

@keyframes spinner {
    to { transform: rotate(360deg); }
}

/* Toast Notifications */
.notification-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    z-index: 99999;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 300px;
    max-width: 400px;
    border: 2px solid transparent;
    backdrop-filter: blur(10px);
}

.notification-toast.show {
    transform: translateX(0);
    opacity: 1;
}

.notification-success {
    border-color: #27ae60;
    background: linear-gradient(135deg, #ffffff 0%, #f8fff9 100%);
}

.notification-error {
    border-color: #e74c3c;
    background: linear-gradient(135deg, #ffffff 0%, #fff5f5 100%);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
}

.notification-success .notification-content i {
    color: #27ae60;
    font-size: 20px;
}

.notification-error .notification-content i {
    color: #e74c3c;
    font-size: 20px;
}

.notification-content span {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: #2c3e50;
    line-height: 1.4;
}

/* Responsive notifications */
@media (max-width: 768px) {
    .notification-toast {
        right: 10px;
        left: 10px;
        min-width: auto;
        max-width: none;
        transform: translateY(-100px);
    }

    .notification-toast.show {
        transform: translateY(0);
    }
}

.modal-overlay.show .modal-content {
    transform: scale(1);
    animation: modalSlideUp 0.3s ease;
}

@keyframes modalSlideUp {
    from {
        transform: translateY(50px) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* Modal Header */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border-radius: 12px 12px 0 0;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-header h3 i {
    font-size: 20px;
}

.modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    line-height: 1;
    padding: 0;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Modal Body */
.modal-body {
    padding: 24px;
    overflow-y: auto;
    max-height: calc(80vh - 60px);
}

/* Form Groups in Modal */
.modal-body .form-group {
    margin-bottom: 20px;
    padding-left: 10px;
    padding-right: 10px;
}

.modal-body .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.modal-body .form-group input,
.modal-body .form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
}

.modal-body .form-group input:focus,
.modal-body .form-group select:focus {
    outline: none;
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.modal-body .form-group input::placeholder {
    color: #999;
}

/* Modal Footer */
.modal-footer {
    padding: 20px 24px;
    border-top: 1px solid #e1e8ed;
    background: #f8f9fa;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    border-radius: 0 0 12px 12px;
}

.modal-footer .btn {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 100px;
    justify-content: center;
}

.modal-footer .btn-secondary {
    background: #95a5a6;
    color: white;
    border: none;
}

.modal-footer .btn-secondary:hover {
    background: #7f8c8d;
    transform: translateY(-1px);
}

.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #e74c3c;
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #c0392b;
}

/* Detail Grid */
.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.detail-item {
    background: #f8f9fa;
    padding: 12px 14px;
    border-radius: 8px;
    border-left: 3px solid #e74c3c;
}

.detail-item label {
    display: block;
    font-size: 11px;
    color: #666;
    margin-bottom: 5px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.detail-value {
    font-size: 14px;
    color: #333;
    font-weight: 600;
    word-break: break-word;
    line-height: 1.4;
}

.detail-value-large {
    font-size: 22px;
    color: #e74c3c;
    font-weight: 700;
}

/* Detail Highlight */
.detail-item.detail-highlight {
    grid-column: span 2;
    background: linear-gradient(135deg, #fadbd8, #f5b7b1);
    border-left: 4px solid #e74c3c;
    text-align: center;
    padding: 20px;
}

.detail-item.detail-highlight label {
    font-size: 13px;
    color: #c0392b;
    margin-bottom: 8px;
}

.detail-item.detail-full {
    grid-column: span 2;
}

/* Detail Text Colors */
.text-red {
    color: #e74c3c !important;
}

.text-green {
    color: #28a745 !important;
}

.text-blue {
    color: #e74c3c !important;
}

.text-orange {
    color: #ffc107 !important;
}

/* Button Detail */
.btn-detail {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border: none;
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 2px 6px rgba(231, 76, 60, 0.3);
}

.btn-detail:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
    transform: translateY(-2px);
}

.btn-detail i {
    font-size: 14px;
}

/* Data Table Compact */
.data-table-compact {
    font-size: 14px;
}

.data-table-compact th {
    padding: 12px 10px;
    font-size: 13px;
}

.data-table-compact td {
    padding: 12px 10px;
}

.data-table-compact .badge {
    font-size: 12px;
    padding: 6px 10px;
}

/* Badge Variations */
.badge-success {
    background: linear-gradient(135deg, #28a745, #218838);
    color: white;
}

.badge-warning {
    background: linear-gradient(135deg, #ffc107, #e0a800);
    color: #333;
}

.badge-danger {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

.badge i {
    margin-right: 4px;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-content {
        width: 96%;
        max-height: 85vh;
        border-radius: 10px;
    }
    
    .modal-header {
        padding: 14px 16px;
        border-radius: 10px 10px 0 0;
    }
    
    .modal-header h3 {
        font-size: 16px;
    }
    
    .modal-header h3 i {
        font-size: 18px;
    }
    
    .modal-body {
        padding: 16px;
        max-height: calc(85vh - 56px);
    }
    
    .detail-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .detail-item {
        padding: 10px 12px;
    }
    
    .detail-item label {
        font-size: 10px;
        margin-bottom: 4px;
    }
    
    .detail-value {
        font-size: 13px;
    }
    
    .detail-item.detail-highlight,
    .detail-item.detail-full {
        grid-column: span 1;
    }
    
    .detail-value-large {
        font-size: 19px;
    }
    
    .btn-detail {
        padding: 6px 10px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    /* Full screen modal for mobile */
    .modal-content {
        width: 100vw;
        height: 100vh;
        max-height: 100vh;
        margin: 0;
        border-radius: 0;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        display: flex;
        flex-direction: column;
    }

    .modal-header {
        padding: 16px 20px;
        border-radius: 0;
        flex-shrink: 0;
        background: linear-gradient(135deg, #e74c3c, #c0392b);
        color: white;
    }

    .modal-header h3 {
        font-size: 16px;
        color: white;
    }

    .modal-header h3 i {
        font-size: 18px;
        color: white;
    }

    .modal-header .modal-close {
        background: rgba(255, 255, 255, 0.2);
        color: white;
        width: 36px;
        height: 36px;
        font-size: 20px;
    }

    .modal-header .modal-close:hover {
        background: rgba(255, 255, 255, 0.3);
    }

    .modal-body {
        padding: 20px;
        flex: 1;
        overflow-y: auto;
        overflow-x: hidden;
        max-height: calc(100vh - 180px); /* Account for header and footer */
        height: calc(100vh - 180px);
        box-sizing: border-box;
    }

    .modal-footer {
        padding: 16px 20px;
        gap: 12px;
        border-radius: 0;
        flex-shrink: 0;
        background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
        border-top: 1px solid #e8ecf1;
        flex-direction: column-reverse;
    }

    .modal-footer .btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
        font-size: 16px;
        min-height: 48px;
    }

    .detail-grid {
        gap: 8px;
    }

    .detail-item {
        padding: 10px 12px;
    }

    .detail-item label {
        font-size: 10px;
        margin-bottom: 3px;
    }

    .detail-value {
        font-size: 13px;
    }

    .detail-value-large {
        font-size: 17px;
    }

    .detail-item.detail-highlight {
        padding: 14px;
    }

    .btn-detail {
        padding: 5px 8px;
        font-size: 12px;
    }

    /* Form specific improvements */
    .modal-form-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .modal-form-grid .form-group {
        grid-column: span 1 !important;
    }

    .modal-body .form-group input,
    .modal-body .form-group select,
    .jenis-input {
        padding: 16px 14px;
        font-size: 16px;
        min-height: 52px;
        box-sizing: border-box;
        border: 2px solid #e8ecf1;
        border-radius: 10px;
    }

    .modal-body .form-group label {
        font-size: 13px;
        margin-bottom: 8px;
        text-transform: uppercase;
        letter-spacing: 0.3px;
        color: #2c3e50;
        font-weight: 600;
    }

    .jenis-input-wrapper {
        position: relative;
    }

    .jenis-input {
        padding-right: 40px;
    }

    .jenis-input-hint {
        display: none; /* Hide hint on mobile */
    }

    .jenis-suggestions {
        max-height: 150px;
        border-radius: 8px;
    }

    /* Scrollbar improvements for mobile */
    .modal-body::-webkit-scrollbar {
        width: 4px;
    }

    .modal-body::-webkit-scrollbar-track {
        background: rgba(231, 76, 60, 0.1);
        border-radius: 4px;
    }

    .modal-body::-webkit-scrollbar-thumb {
        background: #e74c3c;
        border-radius: 4px;
    }

    /* Shadow indicators */
    .modal-body::before,
    .modal-body::after {
        height: 8px;
    }
}

/* Extra small mobile devices */
@media (max-width: 375px) {
    .modal-body {
        padding: 16px;
        max-height: calc(100vh - 170px);
        height: calc(100vh - 170px);
    }

    .modal-body .form-group input,
    .modal-body .form-group select,
    .jenis-input {
        padding: 14px 12px;
        font-size: 16px;
        min-height: 48px;
    }

    .modal-body .form-group label {
        font-size: 12px;
        margin-bottom: 6px;
    }

    .modal-form-grid {
        gap: 12px;
    }

    .modal-header {
        padding: 14px 16px;
    }

    .modal-header h3 {
        font-size: 15px;
    }

    .modal-footer {
        padding: 14px 16px;
    }

    .modal-footer .btn {
        padding: 12px 16px;
        font-size: 15px;
        min-height: 44px;
    }
}

/* Landscape orientation for mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .modal-content {
        width: 90vw;
        height: 90vh;
        max-height: 90vh;
        margin: 5vh auto;
        border-radius: 16px;
        position: fixed;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
    }

    .modal-body {
        padding: 16px 20px;
        max-height: calc(90vh - 160px);
        height: calc(90vh - 160px);
    }

    .modal-form-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .modal-form-grid .form-group.modal-form-full {
        grid-column: span 2;
    }

    .modal-header {
        padding: 14px 20px;
        border-radius: 16px 16px 0 0;
    }

    .modal-footer {
        padding: 14px 20px;
        border-radius: 0 0 16px 16px;
        flex-direction: row;
        justify-content: flex-end;
    }

    .modal-footer .btn {
        width: auto;
        min-width: 120px;
    }
}

/* ========================================
   MODERN DASHBOARD STYLES
   ======================================== */

/* Dashboard Header */
.dashboard-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 0;
    position: relative;
}

.dashboard-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    animation: fadeInDown 0.8s ease-out;
}

.dashboard-subtitle {
    font-size: 1.2rem;
    color: #7f8c8d;
    font-weight: 400;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* Modern Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.stat-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
    backdrop-filter: blur(20px);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    gap: 25px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.stat-card:hover::before {
    transform: translateX(100%);
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    width: 65px;
    height: 65px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.stat-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s;
}

.stat-card:hover .stat-icon::before {
    animation: shine 0.6s ease-in-out;
}

.stat-blue .stat-icon {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

.stat-green .stat-icon {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

.stat-orange .stat-icon {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

.stat-purple .stat-icon {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 6px;
    line-height: 1;
    transition: all 0.3s;
}

.stat-card:hover .stat-number {
    transform: scale(1.05);
}

.stat-label {
    font-size: 0.95rem;
    color: #7f8c8d;
    font-weight: 500;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-change {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 12px;
    display: inline-flex;
}

.stat-change.positive {
    color: #27ae60;
    background: rgba(39, 174, 96, 0.1);
}

.stat-change.neutral {
    color: #7f8c8d;
    background: rgba(127, 140, 141, 0.1);
}

.stat-change.negative {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}

/* Quick Actions Section */
.quick-actions {
    margin-bottom: 50px;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    border-radius: 2px;
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

.action-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
    backdrop-filter: blur(20px);
    padding: 28px;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.action-card:hover::before {
    left: 100%;
}

.action-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: inherit;
}

.action-icon {
    width: 55px;
    height: 55px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    flex-shrink: 0;
    transition: all 0.3s;
}

.action-card:hover .action-icon {
    transform: scale(1.1) rotate(5deg);
}

.action-blue .action-icon {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

.action-green .action-icon {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

.action-orange .action-icon {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

.action-content {
    flex: 1;
}

.action-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 6px;
    transition: all 0.3s;
}

.action-card:hover .action-content h3 {
    color: #e74c3c;
}

.action-content p {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin: 0;
    transition: all 0.3s;
}

.action-card:hover .action-content p {
    color: #5d6d7e;
}

.action-arrow {
    font-size: 20px;
    color: #bdc3c7;
    transition: all 0.3s;
}

.action-card:hover .action-arrow {
    transform: translateX(8px);
    color: #e74c3c;
}

/* Alert Section Modern Design */
.alert-section {
    margin-bottom: 40px;
}

.alert-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    padding: 25px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
    backdrop-filter: blur(20px);
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #e74c3c;
}

.alert-icon {
    width: 55px;
    height: 55px;
    border-radius: 15px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    flex-shrink: 0;
    animation: pulse 2s infinite;
}

.alert-content h2 {
    font-size: 1.6rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.alert-content p {
    font-size: 0.95rem;
    color: #7f8c8d;
    margin: 0;
}

.alert-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.alert-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 22px;
    border-radius: 16px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-left: 4px solid;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.alert-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s;
}

.alert-card:hover::before {
    left: 100%;
}

.alert-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.alert-card.alert-danger {
    border-left-color: #e74c3c;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 248, 248, 0.95) 100%);
}

.alert-card.alert-warning {
    border-left-color: #f39c12;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 252, 248, 0.95) 100%);
}

.alert-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.alert-item-code {
    font-size: 0.85rem;
    font-weight: 600;
    color: #7f8c8d;
    background: #ecf0f1;
    padding: 5px 10px;
    border-radius: 8px;
    border: 1px solid #d5dbdb;
}

.alert-item-stock {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.stock-number {
    font-size: 1.4rem;
    font-weight: 700;
    transition: all 0.3s;
}

.alert-card:hover .stock-number {
    transform: scale(1.1);
}

.stock-unit {
    font-size: 0.8rem;
    color: #7f8c8d;
    font-weight: 500;
}

.alert-item-name {
    font-size: 1.05rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 12px;
    line-height: 1.4;
}

.alert-item-status {
    display: flex;
    justify-content: flex-end;
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s;
}

.alert-card:hover .status-badge {
    transform: scale(1.05);
}

.status-badge.critical {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    box-shadow: 0 3px 10px rgba(231, 76, 60, 0.3);
}

.status-badge.warning {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    box-shadow: 0 3px 10px rgba(243, 156, 18, 0.3);
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shine {
    0% {
        transform: rotate(45deg) translateY(-100%);
    }
    100% {
        transform: rotate(45deg) translateY(100%);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Responsive Dashboard */
@media (max-width: 768px) {
    .dashboard-title {
        font-size: 2.2rem;
    }

    .dashboard-subtitle {
        font-size: 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .stat-card {
        padding: 25px;
    }

    .stat-icon {
        width: 55px;
        height: 55px;
        font-size: 24px;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .action-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .alert-cards {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 1.6rem;
    }
}

/* ========================================
   KASIR TRANSACTION STYLES
   ======================================== */

/* Info Box untuk Kasir */
.info-box {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(231, 76, 60, 0.3);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.info-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    flex-shrink: 0;
}

.info-content {
    flex: 1;
}

.info-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 3px;
}

.info-text {
    font-size: 0.85rem;
    color: #7f8c8d;
    margin: 0;
}

/* Warning Text */
.warning-text {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #e74c3c;
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 5px;
}

/* Error Card */
.error-card {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.1) 0%, rgba(192, 57, 43, 0.1) 100%);
    border: 1px solid #e74c3c;
    border-radius: 12px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 15px;
    animation: shake 0.5s ease-in-out;
}

.error-icon {
    width: 35px;
    height: 35px;
    border-radius: 8px;
    background: #e74c3c;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    flex-shrink: 0;
}

.error-content {
    flex: 1;
}

.error-title {
    font-size: 1rem;
    font-weight: 600;
    color: #c0392b;
    margin-bottom: 3px;
}

.error-message {
    font-size: 0.85rem;
    color: #e74c3c;
    margin: 0;
    line-height: 1.4;
}

/* Shake Animation for Error */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Enhanced Payment Card for Kasir */
.payment-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.payment-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
    position: relative;
}

.payment-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    border-radius: 2px;
}

/* Money Input Enhanced */
.money-input-compact {
    position: relative;
    display: flex;
    align-items: center;
}

.money-input-compact .prefix {
    position: absolute;
    color: #e74c3c;
    font-weight: 600;
    font-size: 1.1rem;
    z-index: 1;
}

.money-input-compact input {
    padding-left: 40px !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    border: 2px solid #e74c3c !important;
    transition: all 0.3s !important;
}

.money-input-compact input:focus {
    border-color: #c0392b !important;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1) !important;
}

/* ========================================
   BARCODE SCANNER STYLES
   ======================================== */

/* Barcode Input Wrapper */
.barcode-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.barcode-icon {
    position: absolute;
    left: 15px;
    color: #e74c3c;
    font-size: 18px;
    z-index: 2;
    pointer-events: none;
    opacity: 0.7;
    transition: all 0.3s;
}

.barcode-input {
    padding-left: 45px !important;
    padding-right: 200px !important;
    font-size: 1rem !important;
    border: 2px solid #e74c3c !important;
    transition: all 0.3s !important;
    background: rgba(255, 255, 255, 0.95) !important;
}

.barcode-input:focus {
    border-color: #c0392b !important;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1) !important;
    background: white !important;
}

.barcode-input:focus + .barcode-icon {
    opacity: 1;
    transform: scale(1.1);
}

/* Barcode Indicator */
.barcode-indicator {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: #27ae60;
    font-weight: 600;
    background: rgba(39, 174, 96, 0.1);
    padding: 4px 8px;
    border-radius: 12px;
    border: 1px solid rgba(39, 174, 96, 0.2);
    z-index: 2;
    pointer-events: none;
    transition: all 0.3s;
}

.barcode-indicator i {
    font-size: 6px;
    animation: pulse 2s infinite;
}

.barcode-indicator.scanning {
    color: #f39c12;
    background: rgba(243, 156, 18, 0.1);
    border-color: rgba(243, 156, 18, 0.2);
}

.barcode-indicator.scanning i {
    animation: blink 0.5s infinite;
}

.barcode-indicator.success {
    color: #27ae60;
    background: rgba(39, 174, 96, 0.1);
    border-color: rgba(39, 174, 96, 0.2);
}

.barcode-indicator.error {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
    border-color: rgba(231, 76, 60, 0.2);
}

/* Hint Text */
.hint-text {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #7f8c8d;
    font-size: 0.8rem;
    margin-top: 8px;
    padding: 8px 12px;
    background: rgba(52, 152, 219, 0.1);
    border: 1px solid rgba(52, 152, 219, 0.2);
    border-radius: 8px;
    line-height: 1.4;
}

/* Enhanced Input with Barcode Focus */
.input-compact.barcode-input {
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Barcode Scanner Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

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

/* Responsive Barcode Input */
@media (max-width: 768px) {
    .barcode-indicator {
        display: none;
    }

    .barcode-input {
        padding-right: 15px !important;
    }

    .hint-text {
        font-size: 0.75rem;
        padding: 6px 10px;
    }
}

/* Focus Management */
.barcode-input:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.2) !important;
}

/* Auto-complete Dropdown Position */
.autocomplete-dropdown {
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
}

/* ========================================
   BROWSE BUTTON & MODAL STYLES
   ======================================== */

/* Browse Button */
.btn-browse-compact {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border: none;
    color: white;
    padding: 10px 15px;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 16px;
    min-width: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-browse-compact:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
    margin: 50px auto;
    border: 1px solid rgba(231, 76, 60, 0.2);
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideInUp 0.3s ease-out;
}

.modal-header {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 20px 20px 0 0;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.modal-body {
    padding: 0;
    max-height: 60vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-search {
    padding: 20px 25px;
    border-bottom: 1px solid #ecf0f1;
    position: relative;
}

.search-icon {
    position: absolute;
    left: 35px;
    top: 50%;
    transform: translateY(-50%);
    color: #7f8c8d;
    font-size: 16px;
}

.modal-search-input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 2px solid #e74c3c;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s;
    background: rgba(255, 255, 255, 0.95);
}

.modal-search-input:focus {
    outline: none;
    border-color: #c0392b;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
    background: white;
}

.modal-table-container {
    flex: 1;
    overflow-y: auto;
    padding: 0 25px 20px;
}

.modal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.modal-table th {
    background: rgba(231, 76, 60, 0.1);
    color: #2c3e50;
    font-weight: 600;
    padding: 12px 15px;
    text-align: left;
    border-bottom: 2px solid #e74c3c;
    position: sticky;
    top: 0;
    z-index: 10;
}

.modal-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #ecf0f1;
    vertical-align: middle;
}

.product-row {
    cursor: pointer;
    transition: all 0.2s;
}

.product-row:hover {
    background: rgba(231, 76, 60, 0.05);
    transform: scale(1.01);
}

.product-row:hover td {
    color: #e74c3c;
}

.text-right {
    text-align: right;
}

.stok-good {
    color: #27ae60;
    font-weight: 600;
}

.stok-warning {
    color: #e74c3c;
    font-weight: 600;
}

.modal-footer {
    padding: 20px 25px;
    border-top: 1px solid #ecf0f1;
    background: rgba(236, 240, 241, 0.5);
    text-align: right;
    border-radius: 0 0 20px 20px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary {
    background: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background: #7f8c8d;
    transform: translateY(-2px);
}

/* Modal Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-content {
        margin: 20px;
        width: calc(100% - 40px);
        max-height: 90vh;
    }

    .modal-header {
        padding: 15px 20px;
    }

    .modal-header h2 {
        font-size: 1.2rem;
    }

    .modal-search {
        padding: 15px 20px;
    }

    .modal-table-container {
        padding: 0 20px 15px;
    }

    .modal-table {
        font-size: 0.8rem;
    }

    .modal-table th,
    .modal-table td {
        padding: 10px 8px;
    }

    .modal-footer {
        padding: 15px 20px;
    }

    /* Hide some columns on mobile for better UX */
    .modal-table th:nth-child(3),
    .modal-table td:nth-child(3) {
        display: none;
    }
}

/* ========================================
   INPUT BARANG LAYOUT
   ======================================== */

.input-barang-row {
    display: flex;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 8px;
}

.input-section {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.button-section {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Scan Button */
.btn-scan-compact {
    background: linear-gradient(135deg, #27ae60, #229954);
    border: none;
    color: white;
    padding: 10px 15px;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 16px;
    min-width: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-scan-compact:hover {
    background: linear-gradient(135deg, #229954, #1e8449);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.3);
}

/* Update Browse Button Style */
.btn-browse-compact {
    background: linear-gradient(135deg, #3498db, #2980b9);
    border: none;
    color: white;
    padding: 10px 15px;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 16px;
    min-width: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-browse-compact:hover {
    background: linear-gradient(135deg, #2980b9, #21618c);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

/* Update Barcode Input */
.barcode-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.barcode-input {
    padding-left: 40px !important;
    padding-right: 140px !important;
    font-size: 0.95rem !important;
    border: 2px solid #e74c3c !important;
    transition: all 0.3s !important;
    background: rgba(255, 255, 255, 0.95) !important;
    border-radius: 8px 0 0 8px !important;
}

.barcode-input:focus {
    border-color: #c0392b !important;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1) !important;
    background: white !important;
}

.barcode-indicator {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    color: #27ae60;
    font-weight: 600;
    background: rgba(39, 174, 96, 0.1);
    padding: 3px 6px;
    border-radius: 10px;
    border: 1px solid rgba(39, 174, 96, 0.2);
    z-index: 2;
    pointer-events: none;
    transition: all 0.3s;
}

/* ========================================
   BARCODE SCANNER MODAL
   ======================================== */

.scanner-container {
    position: relative;
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    aspect-ratio: 4/3;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

.scanner-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.scanner-canvas {
    display: none;
}

.scanner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.scanner-frame {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 300px;
    height: 200px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 8px;
}

.scanner-corners {
    position: relative;
    width: 100%;
    height: 100%;
}

.corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 3px solid #e74c3c;
}

.corner.top-left {
    top: -2px;
    left: -2px;
    border-right: none;
    border-bottom: none;
}

.corner.top-right {
    top: -2px;
    right: -2px;
    border-left: none;
    border-bottom: none;
}

.corner.bottom-left {
    bottom: -2px;
    left: -2px;
    border-right: none;
    border-top: none;
}

.corner.bottom-right {
    bottom: -2px;
    right: -2px;
    border-left: none;
    border-top: none;
}

.scanner-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #e74c3c, transparent);
    animation: scanLine 2s linear infinite;
}

@keyframes scanLine {
    0% { top: 0; }
    100% { top: 100%; }
}

.scanner-info {
    padding: 20px 25px;
    text-align: center;
}

.scanner-status {
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.scanner-result {
    margin-top: 15px;
}

.scanner-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 20px 25px;
}

/* Scanner Status Colors */
.text-success { color: #27ae60; }
.text-danger { color: #e74c3c; }
.text-info { color: #3498db; }

/* Alert Styles for Scanner */
.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.alert-success {
    background: rgba(39, 174, 96, 0.1);
    border: 1px solid #27ae60;
    color: #229954;
}

.btn-primary {
    background: #e74c3c;
    color: white;
}

.btn-primary:hover {
    background: #c0392b;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
    margin-top: 10px;
}

/* Responsive Scanner */
@media (max-width: 768px) {
    .input-barang-row {
        flex-direction: column;
        gap: 8px;
    }

    .button-section {
        flex-wrap: wrap;
        justify-content: stretch;
    }

    .btn-scan-compact,
    .btn-browse-compact {
        border-radius: 8px;
        flex: 1;
    }

    .scanner-frame {
        width: 90%;
        height: 150px;
    }

    .scanner-controls {
        flex-direction: column;
        gap: 10px;
    }

    .scanner-controls .btn {
        width: 100%;
    }
}

/* Santuan Unit Selector Styles */
.santuan-selector {
    display: inline-flex;
    align-items: center;
    margin-right: 8px;
}

.santuan-select {
    padding: 6px 8px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    background: white;
    font-size: 12px;
    font-weight: 500;
    color: #495057;
    min-width: 100px;
    max-width: 150px;
    height: 32px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.santuan-select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.santuan-select:hover {
    border-color: #3498db;
    background: #f8f9fa;
}

.santuan-select option {
    padding: 8px;
    background: white;
    color: #2c3e50;
}

.santuan-select option:checked {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .santuan-selector {
        margin-right: 6px;
        margin-top: 4px;
    }

    .santuan-select {
        font-size: 11px;
        min-width: 80px;
        max-width: 120px;
        height: 30px;
        padding: 5px 6px;
    }
}

@media (max-width: 480px) {
    .santuan-selector {
        margin-right: 4px;
        margin-top: 2px;
    }

    .santuan-select {
        font-size: 10px;
        min-width: 70px;
        max-width: 100px;
        height: 28px;
        padding: 4px 5px;
    }
}

/* ========================================
   DETAIL TRANSAKSI RESPONSIVE STYLES
   ======================================== */

/* Detail Transaksi Button */
.btn-detail {
    background: #3498db;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 32px;
}

.btn-detail:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

.btn-detail:active {
    transform: translateY(0);
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px;
    overflow-y: auto;
}

.modal-overlay.show {
    display: flex;
}

/* Modal Content */
.modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-detail {
    max-width: 900px;
}

/* Modal Header */
.modal-header {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 12px 12px 0 0;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-close {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Modal Body */
.modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #3498db;
    border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #2980b9;
}

/* Detail Grid */
.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.detail-item {
    background: #f8f9fa;
    padding: 12px 15px;
    border-radius: 8px;
    border-left: 3px solid #3498db;
}

.detail-item label {
    display: block;
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.detail-value {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
}

/* Table Compact Styling */
.data-table-compact {
    font-size: 13px;
}

.data-table-compact thead {
    position: sticky;
    top: 0;
    z-index: 10;
}

.data-table-compact th {
    padding: 10px 12px;
    font-size: 12px;
    white-space: nowrap;
}

.data-table-compact td {
    padding: 8px 12px;
}

.data-table-compact code {
    background: #f1f3f5;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    color: #495057;
}

/* Modal Footer */
.modal-footer {
    padding: 15px 20px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    border-radius: 0 0 12px 12px;
}

.btn-info {
    background: linear-gradient(135deg, #17a2b8, #138496);
    color: white;
}

.btn-info:hover {
    background: linear-gradient(135deg, #138496, #117a8b);
}

.btn-warning {
    background: linear-gradient(135deg, #ffc107, #e0a800);
    color: #212529;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #e0a800, #d39e00);
}

/* Page Container Responsive */
@media (max-width: 1024px) {
    .page-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .header-title {
        min-width: 100%;
    }
    
    .search-box {
        width: 100%;
    }
    
    .filter-box {
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100%;
    }
    
    .filter-box input,
    .filter-box button {
        width: 100%;
    }
    
    .filter-box span {
        display: none;
    }
}

/* Scroll Hint for Mobile */
.scroll-hint {
    display: none;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(52, 152, 219, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    pointer-events: none;
    z-index: 10;
    animation: pulseHint 2s infinite;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

@keyframes pulseHint {
    0%, 100% { opacity: 0.8; transform: translateY(-50%) translateX(0); }
    50% { opacity: 1; transform: translateY(-50%) translateX(-5px); }
}

.table-container.has-scroll .scroll-hint {
    display: block;
}

.table-container.scrolled .scroll-hint,
.table-container.scrolled-end .scroll-hint {
    display: none;
}

/* Mobile Responsive for Detail Transaksi */
@media (max-width: 768px) {
    /* Page Header Mobile */
    .page-header {
        padding: 0;
        gap: 12px;
    }
    
    .header-title h2 {
        font-size: 18px;
    }
    
    .header-title p {
        font-size: 12px;
    }
    
    .search-box input {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .filter-box {
        flex-direction: row !important;
        flex-wrap: wrap;
    }
    
    .filter-box input {
        flex: 1;
        min-width: 120px;
    }
    
    .filter-box button {
        flex: 1;
        min-width: 100%;
        margin-top: 10px;
    }
    
    /* Table Mobile */
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        position: relative;
    }
    
    .table-container::-webkit-scrollbar {
        height: 6px;
    }
    
    .table-container::-webkit-scrollbar-track {
        background: #f1f1f1;
    }
    
    .table-container::-webkit-scrollbar-thumb {
        background: #3498db;
        border-radius: 3px;
    }
    
    .data-table {
        min-width: 700px;
        font-size: 12px;
        margin: 0;
    }
    
    .data-table th,
    .data-table td {
        padding: 8px 10px;
        white-space: nowrap;
    }
    
    .scroll-hint {
        font-size: 10px;
        padding: 6px 10px;
    }
    
    /* Pagination Mobile */
    .pagination {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .pagination button,
    .page-btn {
        min-width: 36px;
        height: 36px;
        padding: 6px 10px;
        font-size: 13px;
    }
    
    .page-dots {
        padding: 6px 4px;
        font-size: 13px;
    }
    
    /* Modal Mobile */
    .modal-content {
        width: 92%;
        max-height: 70vh;
        margin: 15px;
    }
    
    .modal-detail {
        max-width: 100%;
    }
    
    .modal-header {
        padding: 15px;
    }
    
    .modal-header h3 {
        font-size: 16px;
    }
    
    .modal-body {
        padding: 15px;
    }
    
    /* Detail Grid Mobile */
    .detail-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .detail-item {
        padding: 10px 12px;
    }
    
    .detail-item label {
        font-size: 10px;
    }
    
    .detail-value {
        font-size: 13px;
    }
    
    /* Table in Modal Mobile */
    .modal-body .table-container {
        max-height: 250px;
        overflow-x: auto;
        overflow-y: auto;
        margin: 0 -15px;
        padding: 0 15px;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }
    
    .modal-body .data-table {
        min-width: 600px;
    }
    
    .data-table-compact {
        font-size: 12px;
    }
    
    .data-table-compact th {
        padding: 8px 10px;
        font-size: 11px;
    }
    
    .data-table-compact td {
        padding: 6px 10px;
    }
    
    /* Modal Footer Mobile */
    .modal-footer {
        padding: 12px 15px;
        flex-wrap: wrap;
    }
    
    .modal-footer .btn {
        flex: 1;
        min-width: calc(50% - 5px);
        padding: 10px 15px;
        font-size: 13px;
    }
    
    .modal-footer .btn[style*="margin-left: auto"] {
        margin-left: 0 !important;
    }
}

/* Extra Small Mobile (iPhone SE, Small Androids) */
@media (max-width: 480px) {
    /* Page Container */
    .content-body {
        padding: 10px 12px;
    }
    
    .page-header {
        gap: 10px;
    }
    
    .header-title h2 {
        font-size: 16px;
    }
    
    .header-title h2 i {
        font-size: 14px;
    }
    
    .header-title p {
        font-size: 11px;
    }
    
    .search-box input {
        padding: 8px 10px;
        font-size: 13px;
    }
    
    .filter-box {
        gap: 8px;
    }
    
    .filter-box input {
        padding: 8px 10px;
        font-size: 13px;
    }
    
    .filter-box button {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    /* Table Container Mobile */
    .table-container {
        border-radius: 8px;
        margin-top: 10px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .data-table {
        min-width: 650px;
        font-size: 11px;
        table-layout: auto;
    }
    
    .data-table th {
        padding: 6px 8px;
        font-size: 10px;
        white-space: nowrap;
    }
    
    .data-table td {
        padding: 6px 8px;
        font-size: 11px;
        white-space: nowrap;
    }
    
    /* Make specific columns wrap if needed */
    .data-table td:nth-child(4) {
        white-space: normal;
        min-width: 100px;
        max-width: 150px;
    }
    
    .scroll-hint {
        font-size: 9px;
        padding: 5px 8px;
        right: 5px;
    }
    
    .btn-detail {
        padding: 5px 10px;
        font-size: 13px;
        min-width: 32px;
        height: 28px;
    }
    
    /* Badge Mobile */
    .badge {
        padding: 3px 8px;
        font-size: 10px;
    }
    
    /* Pagination Mobile */
    .pagination {
        gap: 4px;
        margin-top: 15px;
    }
    
    .pagination button,
    .page-btn {
        min-width: 32px;
        height: 32px;
        padding: 5px 8px;
        font-size: 12px;
    }
    
    /* Modal Mobile */
    .modal-content {
        width: 92%;
        max-height: 75vh;
        border-radius: 10px;
        margin: 15px;
    }
    
    .modal-header {
        padding: 12px 15px;
        border-radius: 0;
    }
    
    .modal-header h3 {
        font-size: 15px;
    }
    
    .modal-close {
        width: 28px;
        height: 28px;
        font-size: 20px;
    }
    
    .modal-body {
        padding: 12px;
    }
    
    /* Detail Grid Full Screen Mobile */
    .detail-grid {
        grid-template-columns: 1fr;
        gap: 8px;
        margin-bottom: 15px;
    }
    
    .detail-item {
        padding: 8px 10px;
    }
    
    .detail-item label {
        font-size: 9px;
        margin-bottom: 4px;
    }
    
    .detail-value {
        font-size: 12px;
    }
    
    /* Modal h4 */
    .modal-body h4 {
        font-size: 13px;
        margin-top: 15px;
        margin-bottom: 10px;
        padding-bottom: 6px;
    }
    
    .modal-body h4 i {
        font-size: 12px;
    }
    
    /* Table in Modal Full Mobile */
    .modal-body .table-container {
        max-height: 200px;
        margin: 0 -12px;
        padding: 0 12px;
        border-radius: 4px;
    }
    
    .data-table-compact {
        font-size: 11px;
    }
    
    .data-table-compact th {
        padding: 6px 8px;
        font-size: 10px;
    }
    
    .data-table-compact td {
        padding: 5px 8px;
        font-size: 11px;
    }
    
    .data-table-compact code {
        font-size: 10px;
        padding: 1px 4px;
    }
    
    .data-table-compact .badge {
        font-size: 9px;
        padding: 2px 6px;
    }
    
    /* Summary Section Mobile */
    .modal-body > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
        padding: 12px !important;
    }
    
    .modal-body > div[style*="grid-template-columns"] > div {
        padding: 6px 10px !important;
        font-size: 12px !important;
    }
    
    .modal-body > div[style*="grid-template-columns"] > div span:first-child {
        font-size: 11px !important;
    }
    
    .modal-body > div[style*="grid-template-columns"] > div span:last-child {
        font-size: 13px !important;
    }
    
    /* Keterangan Section Mobile */
    .modal-body > div:last-child label {
        font-size: 11px;
        margin-bottom: 6px;
    }
    
    .modal-body > div:last-child label i {
        font-size: 10px;
    }
    
    .modal-body #detailKeterangan {
        padding: 10px;
        font-size: 11px;
        min-height: 50px;
    }
    
    /* Modal Footer Mobile */
    .modal-footer {
        padding: 10px 12px;
        gap: 8px;
        border-radius: 0;
    }
    
    .modal-footer .btn {
        flex: 1;
        width: 100%;
        min-width: 100%;
        padding: 10px 12px;
        font-size: 12px;
    }
    
    .modal-footer .btn i {
        font-size: 11px;
    }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .modal-content {
        max-height: 100vh;
        height: 100vh;
    }
    
    .modal-body .table-container {
        max-height: 150px;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .btn-detail,
    .page-btn,
    .modal-footer .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .search-box input,
    .filter-box input,
    .filter-box button {
        min-height: 44px;
    }
    
    .modal-close {
        min-width: 44px;
        min-height: 44px;
    }
}

/* FIX: Ensure items table in modal detail is visible and not covered */
.modal-detail .modal-body .table-container {
    position: relative;
    z-index: 20;
    background: white;
}

.modal-detail .modal-body #detailItemsBody {
    position: relative;
    z-index: 20;
}

.modal-detail .modal-body h4 {
    position: relative;
    z-index: 20;
}

/* Ensure modal-body pseudo-elements don't cover content */
.modal-detail .modal-body::before,
.modal-detail .modal-body::after {
    z-index: 5 !important;
}

/* Action buttons in table */
.btn-action {
    padding: 6px 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    min-height: 32px;
}

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

.btn-action:active {
    transform: translateY(0);
}

.btn-action.btn-warning {
    background: #f39c12;
    color: white;
}

.btn-action.btn-warning:hover {
    background: #e67e22;
}

.btn-action.btn-danger {
    background: #e74c3c;
    color: white;
}

.btn-action.btn-danger:hover {
    background: #c0392b;
}

.btn-action.btn-info {
    background: #3498db;
    color: white;
}

.btn-action.btn-info:hover {
    background: #2980b9;
}


