#ss-menu-live-search {
    margin-top: 25px;
    padding: 6px 10px;
    font-size: 1em;
    width: 200px;
    border: 1px solid  rgba(1,1,1,0.5);
    border-radius: 20px;
}
/* Search results container */
#ss-menu-search-results {
    position: absolute;
    background: #fff;
    z-index: 99999;
    width: 400px; /* match your searchbox width */
    list-style: none;
    margin: 0;
    padding: 0;
    border: 1px solid #bbb;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.13);

    /* New: scrolling behaviour */
    max-height: 500px;       /* adjust height as needed */
    overflow-y: auto;        /* enable vertical scroll */
    overscroll-behavior: contain; /* prevents scroll chaining */
}

/* Scrollbar styling (WebKit browsers) */
#ss-menu-search-results::-webkit-scrollbar {
    width: 16px;
}
#ss-menu-search-results::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,0.2);
    border-radius: 4px;
}
#ss-menu-search-results::-webkit-scrollbar-track {
    background: transparent;
}

#ss-menu-search-results li {
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
}
#ss-menu-search-results li:last-child {
    border-bottom: none;
}
#ss-menu-search-results li a {
    text-decoration: none;
    color: inherit;
    display: block;
}
#ss-menu-search-results li:hover {
    background: #f1f6ff;
}

.ss-products-table {
    width: 97%;
    border-collapse: collapse;
    font-family: Arial, sans-serif;
/* 109 added font size
    margin: 10px 0;
*/
    font-size: 12px;
    margin: 5px 0;
}

#ss-products-table {
/* 109 added font size
    margin: 0 25px;
*/
    margin: 0 12px;
    width: calc(97vw - 50px);
}

.ss-th, .ss-td {

    padding: 4px 5px;
    text-align: left;
    border-bottom: 1px solid #ddd;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ss-th {
    background-color: #f2f2f2;
    font-weight: bold;
    color: #818181;
    font-size: 16px;
}

.ss-tr:nth-child(even) {
    background-color: #f8f8f8;
}

.ss-tr:hover {
    background-color: #f1f1f1;
}

.ss-input {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
/* 109 font size reduction
    font-size: 14px;
*/
    font-size: 12px;
}

.ss-insert-row {
    background-color: #f0f0f0;
}

.ss-button {
    padding: 5px 10px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: white;
    border-radius: 4px;
}

.ss-button.ss-insert {
    background-color: #008000;
}

.ss-button.ss-update {
    background-color: #0000FF;
}

.ss-button.ss-delete {
    background-color: #FF0000;
}

.ss-button.ss-product-side {
    background-color: #FFA500;
    margin-left: 5px;
}

.ss-button:hover:not(:disabled) {
    opacity: 0.8;
}

.ss-button:disabled {
    background-color: #808080;
    cursor: not-allowed;
}

.ss-button i.iconoir-loader {
    color: white;
    stroke-width: 1.5px;
    font-size: 18px;
}
.animate-spin {
    animation: spin 1s linear infinite;
    opacity: 0.25;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Feedback Pop-up */
.ss-admin-feedback-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9999;
    max-width: 300px;
    font-family: Arial, sans-serif;
    pointer-events: none; /* Prevent interaction */
}

.ss-admin-feedback {
    background-color: #019b01f0; /* Green, semi-transparent */
    color: white;
    padding: 10px 15px;
    margin-bottom: 5px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    font-size: 14px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.ss-admin-feedback--visible {
    opacity: 1;
    transform: translateY(0);
}

.ss-admin-feedback--error {
    background-color: rgba(255, 0, 0, 0.9); /* Red for errors */
}

/* Configurable placement classes */
.ss-admin-feedback-container--top-left {
    top: 20px;
    bottom: auto;
}

.ss-admin-feedback-container--top-right {
    top: 20px;
    right: 20px;
    left: auto;
    bottom: auto;
}

.ss-admin-feedback-container--bottom-right {
    right: 20px;
    left: auto;
}

@media (max-width: 600px) {
    .ss-admin-feedback:nth-child(n+4) {
        display: none;
    }
}

/* Modal styles */

.ss-admin-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
    justify-content: center;
    align-items: center;
}

.ss-admin-progress-circle {
    width: 30vmin;
    height: 30vmin;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.ss-admin-progress-circle svg {
    display: block;
}

.ss-admin-progress-circle circle {
    transition: stroke-dashoffset 0.3s ease;
}

.modal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.modal-title {
    font-weight: bold;
    color: #202020;
    font-size: 18px;
    margin-bottom: 20px;
}

.modal-summary {
    margin-top: 20px;
}

.summary-total {
    font-weight: bold;
    color: #404040;
    font-size: 16px;
}

.summary-success {
    color: #008000;
    font-size: 14px;
}

.summary-error {
    color: #DD0000;
    font-size: 14px;
}

#modal-ok-button {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #1d43ec;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#modal-ok-button:hover {
    opacity: 0.8;
}

.modal-box {
    background: white;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80vw;
    max-height: 90vh;
}
.modal-box-progress {
    background: white;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 40vw;
    max-height: 90vh;
}

.ss-admin-progress-circle {
    width: 30vmin;
    height: 30vmin;
    /* No background needed */
}

.modal-field {
    margin-bottom: 15px;
    width: 100%;
    /* max-width: 400px; */
}

.modal-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #202020;
}

.modal-field .ss-input {
    width: 100%;
    box-sizing: border-box;
}

.modal-field textarea.ss-input {
    resize: vertical;
/* 111 reduce height
    min-height: 100px;
*/
    min-height: 100px;
}

.ss-products-table td:nth-child(2), 
.ss-products-table td:nth-child(3) 
{
    max-width: fit-content;
}
.ss-products-table td:nth-child(4) 
.ss-products-table td:nth-child(5) 
.ss-products-table td:nth-child(6) 
.ss-products-table td:nth-child(7) 
.ss-products-table td:nth-child(8) 
{
    max-width: 100px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ss-button.ss-edit {
    background-color: white;
    border: 1px solid #000;
    padding: 5px;
}

.ss-button.ss-edit i.iconoir-edit {
    color: #000;
    stroke: #000;
    stroke-width: 1.5px;
    font-size: 24px;
}

@keyframes zoomIn {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

@keyframes zoomOut {
    from { transform: scale(1); }
    to { transform: scale(0); }
}

#edit-modal .modal-box {
    animation: zoomIn 0.3s ease forwards;
}

.modal-top-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
    width: 95%;
/* 111 reduce margins
    margin-bottom: 20px;
*/
    margin-bottom: 10px;
}

.modal-top-fields .modal-field {
    flex: 1;
    min-width: 50px;
    max-width: 150px;
}

.modal-long-field {
    width: 90%;
}
.ss-action-form-modal {
    width: 90%;
}

.ss-button.ss-cancel {
    background-color: #808080;
    margin-left: 10px;
}

.ss-button.ss-cancel:hover {
    opacity: 0.8;
}

.modal-buttons {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.ss-edit-modal .modal-box {
    width: 80vw;
    max-height: 90vh;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.ss-edit-modal .modal-title {
    width: 95%;
    text-align: center;
    margin-bottom: 10px;
}

.ss-edit-modal .modal-top-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
    width: 95%;
    margin-bottom: 10px;
}

.ss-edit-modal .modal-top-fields .modal-field {
    flex: 1;
    min-width: 150px;
    width: auto;
}

.ss-edit-modal .modal-long-field {
    width: 95%;
    margin-bottom: 15px;
}

.ss-edit-modal .modal-long-field .ss-input,
.ss-edit-modal .modal-top-fields .modal-field .ss-input {
    width: 100%;
    box-sizing: border-box;
}

.ss-edit-modal .modal-buttons {
    width: 95%;
    display: flex;
    justify-content: center;
    gap: 10px;
/* 111 reduce margins
    margin-top: 20px;
*/
    margin-top: 10px;
}

.ss-edit-modal .modal-long-field {
    margin-left: 5px;
    margin-right: 5px;
    width: calc(100% - 10px);
}

#ss-products {
    overflow-x: auto;
/* 104 try */
    max-width: 99%;
}
