/* Modal Styles */
.finalpos-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow: auto;
}

.finalpos-modal-content {
    background-color: #FFFFFF;
    display: flex;
    flex-direction: column;
    margin: 10% auto;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    border: 1px solid #E5E0EB;
    box-shadow: 0px 10px 30px 0px rgba(62, 19, 77, 0.47);
    padding: 24px;
    gap: 12px;
}

.finalpos-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.finalpos-modal-close {
    font-size: 32px;
    cursor: pointer;
    color: var(--finalpos-base-blue);
}

.finalpos-modal-title {
    font-size: 16px;
    font-weight: 600;
    color: #243249; /* base blue dark */
    margin: 0;
}

.finalpos-modal-description {
    font-size: 14px;
    font-weight: 300;
    color: var(--finalpos-base-blue);
    margin: 8px 0 16px 0;
}

.finalpos-form-group {
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.finalpos-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.finalpos-search-box {
    width: 50%;
    max-width: 200px;
}

.finalpos-search-box input {
    width: 100%;
    padding: 6px 10px;
    font-size: 13px;
    border-radius: 8px;
    border: 1px solid #ABA7AF;
}

/* Placeholder color for search box */
.finalpos-search-box input::placeholder {
    color: #ABA7AF;
}

.finalpos-form-label {
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--finalpos-base-blue);
}

.finalpos-form-input {
    width: 100%;
    padding: 8px 12px;
    font-size: 14px;
}

.finalpos-form-help-text {
    font-size: 12px;
    color: #ABA7AF;
    margin-top: 4px;
}

.finalpos-categories-list {
    max-height: 200px;
    padding: 8px;
    overflow-y: scroll;
}

.finalpos-category-item {
    padding: 8px;
    transition: background-color 0.2s;
}


.finalpos-category-item label {
    display: flex;
    align-items: center;
    cursor: pointer;
    width: 100%;
}

.finalpos-category-item input[type="checkbox"] {
    margin-right: 8px;
}

.finalpos-category-item.all-categories {
    font-weight: 600;
    background-color: #F8FAFC;
    padding-left: 8px;
}

.finalpos-category-item.uncategorized {
    margin-top: 8px;
}

.category-name {
    font-size: 13px;
    color: var(--finalpos-base-blue);
}

/* Parent-child highlight effect */
.finalpos-category-item.parent-disabled {
    opacity: 0.5;
}

.finalpos-category-item.highlight {
    background-color: #E0F2FE;
}

.finalpos-form-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
} 