/* Reset and base styles */
.split-cart-toping {
    font-size: 12px;
    margin-left: 16px;
    line-height: 1;
}

.split-cart-item-note {
    font-size: 13px;
    font-style: italic;
    margin-left: 16px;
    line-height: 0.5;
    padding-top: 4px;
}

.split-btn {
    height: 41px;
    font-size: 15px;
    margin-right: 2px;
}

.split-body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #D0CDCD;
    height: 100vh;
}

/* Layout */
.split-container {
    max-width: 100%;
    height: 100vh;
    padding: 20px;
    display: flex;
    flex-direction: column;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #DFDFDF;
    height: 100vh;
    margin-top: 0%;
    z-index: 20000;
}

.split-header {
    background-color: #FFF;
    padding: 3px 20px 5px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
    margin-right: 0;
    margin-top: -11px;
}

.split-section .sp-grids {
    margin-top: 4px;
    border-top-left-radius: 11px;
    border-top-right-radius: 10px;
}

.split-app-container {
    display: grid;
    grid-template-columns: 400px auto 1fr;
    gap: 9px;
    flex: 1;
    min-height: 0;
    padding-left: 0;
}

span.na {
    color: #E24848;
    position: absolute;
    /*+placement: -7px -25px;*/
    position: relative;
    left: -7px;
    top: -25px;
    font-size: 10px;
    font-weight: bold;
}

button.mm-btn span {
    background-color: #F6B5B5;
    position: absolute;
    /*+placement: -9px -22px;*/
    position: relative;
    left: -9px;
    top: -22px;
    font-size: 11px;
}

/* Master Grid Section */
.split-master-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 599px;
    width: 336px;
}

.split-master-grid {
    background: #FFF;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Control Buttons */
.split-control-buttons {
    background: #FFF;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-left: -64px;
}

.split-control-buttonr {
    align-self: center;
    background: #E6CCCC;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 60px;
}

/* Split Section */
.split-section {
    background: #CCCACA;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 605px;
    margin-top: -8px;
    margin-right: 0;
}

.split-split-header {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #424242;
    background: #F8F9FA;
    border-radius: 8px 8px 0 0;
}

.split-split-grids {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 20px;
    flex: 1;
    min-height: 0;
}

/* Grid Styles */
.split-grid {
    flex: 0 0 300px;
    background: #FFF;
    border-radius: 8px;
    border: 1px solid #E1E1E1;
    display: flex;
    flex-direction: column;
    height: 612px;
    max-height: 100%;
    overflow: hidden;
    margin-right: -14px;
    margin-top: 0;
    margin-left: 7px;
}

.split-grid-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 3px 15px 15px;
    background-color: #E7E7E7;
    border-bottom: 1px solid #E9ECEF;
    border-radius: 0px;
    height: 22px;
    margin-left: -7px;
}

.split-master-grid .split-grid-header {
    margin-left: 0px;
    border-top-left-radius: 11px;
    border-top-right-radius: 14px;
}

.sp-grids {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 12px 20px 20px;
    flex: 1;
    min-height: 0;
    background-color: #E8EEF2;
    height: 0px;
}

.split-header h2 {
    font-size: 18px;
}

.split-header h2 {
    height: 0px;
    margin-top: 0;
    margin-bottom: 4px;
}

.split-btn {
    padding: 6px 16px 8px 18px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
    height: 40px;
}

.split-header h1 {
    height: 4px;
    padding-top: 0;
    font-size: 26px;
    padding-bottom: 0px;
    width: 35px;
}

.split-container .split-header {
    width:96.5 %;
    display: flex;
}

.split-section .split-header {
    width: 496px;
    height: 59px;
    display: none;
}

.split-grid-header-buttons {
    display: flex;
    gap: 8px;
}

.split-grid-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2C3E50;
    padding-right: 12px;
}

/* Table Styles */
.split-table-container {
    overflow-y: auto;
    flex: 1;
}

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

.split-th, .split-td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #E9ECEF;
}

.split-th {
    background-color: #F8F9FA;
    font-weight: 600;
    color: #2C3E50;
    position: sticky;
    top: 0;
    z-index: 1;
}

.split-tr:hover {
    background-color: #F8F9FA;
    cursor: pointer;
}

/* Button Styles */
.split-btn-primary {
    background-color: #007BFF;
    color: white;
    /*+placement: -7px 1px;*/
    position: relative;
    left: -7px;
    top: 1px;
}

div.split-grid-header button.split-btn.split-btn-primary {
}

.split-btn-primary:hover {
    background-color: #0056B3;
}

.split-btn-success {
    background-color: #28A745;
    color: white;
}

.split-btn-success:hover {
    background-color: #218838;
}

.split-btn-danger {
    background-color: #DC3545;
    color: white;
}

.split-btn-danger:hover {
    background-color: #C82333;
}

/* Control button styles */
.split-control-button {
    display: flex;
    justify-content: center;
    background: #C3E3D8;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.8rem;
    font-weight: bold;
    color: #000000;
}

.split-control-buttonb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 12px 8px;
    border: 1px solid #DDD;
    border-radius: 4px;
    background: #9FB0E2;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    margin-bottom: 6px;
    font-weight: bold;
    color: #000000;
}

.split-control-buttonb:hover {
    background: #F0F0F0;
}

.split-control-spacer {
    height: 0px;
    background: #E9ECEF;
    margin: 10px 0;
}

/* Selected States */
.split-selected {
    background-color: #FFF3CD !important;
    height: 45px;
    font-weight: bold;
}

.split-grid-selected {
    border: 3px solid #FFC107;
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.2);
    background-color: #FBFFEF;
}

div.split-grids {
    flex: 0 0 300px;
    background: #FFF;
    border-radius: 8px;
    border: 1px solid #E9ECEF;
    display: flex;
    flex-direction: column;
    height: fit-content;
    max-height: 100%;
    overflow: hidden;
}

.split-grids {
}

div.split-grids {
}

/* Scrollbar Styles */
.split-split-grids::-webkit-scrollbar {
    height: 8px;
}

.split-split-grids::-webkit-scrollbar-track {
    background: #F1F1F1;
    border-radius: 4px;
}

.split-split-grids::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.split-split-grids::-webkit-scrollbar-thumb:hover {
    background: #666;
}

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

.split-table-container::-webkit-scrollbar-track {
    background: #F1F1F1;
}

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

.split-table-container::-webkit-scrollbar-thumb:hover {
    background: #666;
}

.split-control-button.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.split-control-button.active {
    opacity: 1;
    cursor: pointer;
    background-color: #007BFF;
    color: white;
}

.split-tr.selected {
    background-color: #E6F3FF;
    font-weight: bold;
}

.split-modal {
    position: absolute;
    /* Agar modal tetap di tempat saat scrolling */
    top: 0;
    left: 0;
    width: 100%;
    height: 117%;
    background-color: #F0A1A1;
    z-index: 10000000;
}

.split-table-container table {
    height: 22px;
    width: 100%;
}

button.split-btn.split-btn-primary {
}

.split-table-container thead {
}

.split-table-container tr {
    background-color: #ECF5FE;
    text-align: left;
}

.split-master-grid td {
    font-weight: normal;
}

.split-table-container th {
    text-align: left;
    background-color: #CFCFCF;
    padding-left: 2px;
}

.split-control-buttonb {
    display: flex;
    flex-direction: column;
    /* Mengatur agar teks dan ikon ditampilkan secara vertikal */
    align-items: center;
    /* Memusatkan konten secara horizontal */
    padding-top: 14px;
    line-height: 0;
}

.split-control-button .arrow-icon {
    font-size: 38px;
    line-height: 0.6;
    padding-bottom: 4px;
    color: ;
    background-color: ;
}

.split-control-buttonb .arrow-icon {
    font-size: 38px;
    line-height: 0.6;
    padding-bottom: 4px;
}

.arrow-icon {
    font-size: 24px;
    /* Ukuran font untuk ikon panah */
    margin-top: 5px;
    /* Jarak antara teks dan ikon panah */
    color: #000000;
}

MENU MODERN {
}

/* Modern Context Menu Styling */
.context-menu-modern {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 750px;
    /* Disesuaikan agar lebih pas */
    background-color: #2C3E50;
    color: #ECF0F1;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    z-index: 10001;
    border: 1px solid #34495E;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    display: flex;
    flex-direction: column;
}

.cm-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 20px;
    background-color: #34495E;
    flex-shrink: 0;
}

.cm-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.cm-close-btn {
    background: none;
    border: none;
    color: #ECF0F1;
    font-size: 24px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.cm-close-btn:hover {
    opacity: 1;
}

.cm-body-single-column {
    padding: 0px 20px;
    overflow-y: hidden;
}

.cm-divider {
    border: 0;
    height: 1px;
    background-color: #34495E;
    margin: 20px 0;
}

.cm-section h4 {
    margin-top: 17px;
    margin-bottom: -10px;
    color: #95A5A6;
    font-size: 14px;
    text-transform: uppercase;
    border-bottom: 1px solid #34495E;
    padding-bottom: 8px;
}

.cm-section h4 i {
    margin-right: 8px;
}

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

.form-group label {
    display: block;
    font-weight: 500;
    font-size: 14px;
    color: #BDC3C7;
    width: 106px;
    margin-top: -1px;
    margin-bottom: 29px;
    height: 0px;
    padding-bottom: 20px;
}

.form-group label i {
    margin-right: 6px;
    width: 16px;
    text-align: center;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    background-color: #34495E;
    border: 1px solid #4A627A;
    border-radius: 6px;
    color: #ECF0F1;
    font-size: 14px;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: #3498DB;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.25);
}

.form-group-inline {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-group-inline label {
    margin-bottom: 0;
    flex-shrink: 0;
}

.form-group-inline .form-control {
    flex-grow: 1;
}

.update-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    height: 214px;
}

.update-column {
    display: flex;
    flex-direction: column;
}

.image-uploader {
    display: flex;
    align-items: center;
    gap: 10px;
}

.image-preview {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
    background-color: #34495E;
    border: 1px solid #4A627A;
    flex-shrink: 0;
}

.btn-icon {
    padding: 8px 12px;
    background-color: #3498DB;
    border: none;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-icon:hover {
    background-color: #2980B9;
}

.color-picker-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.color-input {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 40px;
    height: 40px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
}

.color-input::-webkit-color-swatch {
    border-radius: 6px;
    border: 2px solid #4A627A;
}

.color-input::-moz-color-swatch {
    border-radius: 6px;
    border: 2px solid #4A627A;
}

.cm-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 35px 20px 32px;
    background-color: #253545;
    border-top: 1px solid #34495E;
    flex-shrink: 0;
}

.footer-actions {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 8px 15px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn i {
    margin-right: 8px;
}

.btn-primary {
    background-color: #2980B9;
}

.btn-primary:hover {
    background-color: #3498DB;
}

.btn-secondary {
    background-color: #536E8A;
}

.btn-secondary:hover {
    background-color: #6C88A5;
}

.btn-danger {
    background-color: #C0392B;
}

.btn-danger:hover {
    background-color: #E74C3C;
}

.btn-success {
    background-color: #27AE60;
}

.btn-success:hover {
    background-color: #2ECC71;
}
